@fewangsit/wangsvue 1.5.219-alpha.2 → 1.5.219-alpha.4

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 (1052) hide show
  1. package/changelog/index.d.ts +164 -0
  2. package/changelogpage/index.d.ts +184 -0
  3. package/comment/index.d.ts +187 -0
  4. package/components.d.ts +21 -0
  5. package/detailmember/index.d.ts +77 -0
  6. package/detailsprint/index.d.ts +86 -0
  7. package/inputinitialname/index.d.ts +118 -0
  8. package/inputrepositoryname/index.d.ts +86 -0
  9. package/loading-page-BrQattYE.js +1 -0
  10. package/loading-page-CgfbWppy.js +1 -0
  11. package/loading-page-CoC9UhfC.js +4 -0
  12. package/loading-page-CoXtqoc9.js +4 -0
  13. package/loading-page-DbLuqCHa.js +1 -0
  14. package/loading-page-f8D03l3G.js +4 -0
  15. package/loading-plane-CgfbWppy.js +1 -0
  16. package/loading-plane-CoXtqoc9.js +4 -0
  17. package/loading-table-Bdr9ZhtP.js +1 -0
  18. package/loading-table-ByUoWqUo.js +4 -0
  19. package/loading-table-BygEMzFM.js +4 -0
  20. package/loading-table-BzrSQlA0.js +1 -0
  21. package/loading-table-D9bw9OcI.js +4 -0
  22. package/loading-table-chOgXi94.js +1 -0
  23. package/no-data-CTKux8RI.js +4 -0
  24. package/no-data-Cgze_Rvp.js +1 -0
  25. package/no-data-DLHO1L_u.js +4 -0
  26. package/no-data-Dep79CBh.js +1 -0
  27. package/no-data-g0dJCy2p.js +4 -0
  28. package/no-data-y1X5WtcQ.js +1 -0
  29. package/notificationitem/index.d.ts +107 -0
  30. package/package.json +1 -1
  31. package/stats.html +1 -1
  32. package/style.css +2 -2
  33. package/summaryaccordion/index.d.ts +121 -0
  34. package/taskdetail/index.d.ts +82 -0
  35. package/taskdetailpbi/index.d.ts +35 -0
  36. package/tasktable/index.d.ts +87 -0
  37. package/wangsvue.es.js +66312 -170
  38. package/wangsvue.js +66314 -0
  39. package/wangsvue.system.js +234 -67600
  40. package/animation/index.es.js +0 -69
  41. package/assets/lottiejs/loading-page.es.js +0 -20
  42. package/assets/lottiejs/loading-plane.es.js +0 -4
  43. package/assets/lottiejs/loading-table.es.js +0 -20
  44. package/assets/lottiejs/no-data.es.js +0 -20
  45. package/backgroundimagecropper/index.es.js +0 -76
  46. package/badge/index.es.js +0 -121
  47. package/badgegroup/index.es.js +0 -80
  48. package/basecalendar/index.es.js +0 -1399
  49. package/basetree/index.es.js +0 -269
  50. package/breadcrumb/index.es.js +0 -54
  51. package/button/index.es.js +0 -126
  52. package/buttonbulkaction/index.es.js +0 -237
  53. package/buttoncopy/index.es.js +0 -34
  54. package/buttondownload/index.es.js +0 -162
  55. package/buttonfilter/index.es.js +0 -37
  56. package/buttonradio/index.es.js +0 -117
  57. package/buttonsearch/index.es.js +0 -86
  58. package/buttonselecttree/index.es.js +0 -281
  59. package/buttontoggle/index.es.js +0 -13
  60. package/calendar/index.es.js +0 -172
  61. package/card/index.es.js +0 -49
  62. package/checkbox/index.es.js +0 -166
  63. package/codesnippet/index.es.js +0 -138
  64. package/codesnippetadapter/index.es.js +0 -30
  65. package/columnlist/index.es.js +0 -282
  66. package/config/defaultProps.es.js +0 -24
  67. package/config/index.es.js +0 -13
  68. package/config/locale.es.js +0 -41
  69. package/customcolumn/index.es.js +0 -155
  70. package/datatable/index.es.js +0 -1328
  71. package/dialog/index.es.js +0 -121
  72. package/dialogconfirm/index.es.js +0 -155
  73. package/dialogform/index.es.js +0 -260
  74. package/dialogselecttree/index.es.js +0 -317
  75. package/directives/focus.es.js +0 -18
  76. package/directives/index.es.js +0 -2
  77. package/directives/tooltip.es.js +0 -1
  78. package/dropdown/index.es.js +0 -297
  79. package/editor/index.es.js +0 -1160
  80. package/editorbutton/index.es.js +0 -30
  81. package/event-bus/index.es.js +0 -5
  82. package/event-bus/mitt.es.js +0 -70
  83. package/fieldwrapper/index.es.js +0 -45
  84. package/fileupload/index.es.js +0 -266
  85. package/filtercontainer/index.es.js +0 -347
  86. package/form/index.es.js +0 -238
  87. package/gallerypreview/index.es.js +0 -157
  88. package/icon/index.es.js +0 -84
  89. package/image/index.es.js +0 -224
  90. package/imagecompressor/index.es.js +0 -701
  91. package/imageinputinfo/index.es.js +0 -50
  92. package/inlinemessage/index.es.js +0 -106
  93. package/inputbadge/index.es.js +0 -261
  94. package/inputcurrency/index.es.js +0 -186
  95. package/inputemail/index.es.js +0 -51
  96. package/inputgroup/index.es.js +0 -34
  97. package/inputnumber/index.es.js +0 -310
  98. package/inputpassword/index.es.js +0 -147
  99. package/inputphonenumber/index.es.js +0 -1060
  100. package/inputrangenumber/index.es.js +0 -165
  101. package/inputtext/index.es.js +0 -317
  102. package/inputurl/index.es.js +0 -63
  103. package/invisiblefield/index.es.js +0 -35
  104. package/litedropdown/index.es.js +0 -108
  105. package/loading/index.es.js +0 -26
  106. package/loading-page-BXZ4fLOS.js +0 -8
  107. package/loading-page-BuLpsb_1.js +0 -8
  108. package/loading-page-CNqVBg__.js +0 -4
  109. package/loading-page-DbhhZih2.js +0 -4
  110. package/loading-page-DjfWXoOy.js +0 -8
  111. package/loading-page-S-KRY5zm.js +0 -4
  112. package/loading-plane-C1mi7Whv.js +0 -4
  113. package/loading-plane-CWq1hz_l.js +0 -8
  114. package/loading-table-B7LAXzAp.js +0 -4
  115. package/loading-table-BLmgKUsR.js +0 -4
  116. package/loading-table-CG7-cuhv.js +0 -8
  117. package/loading-table-CUPS49ta.js +0 -4
  118. package/loading-table-CuWWrTbv.js +0 -8
  119. package/loading-table-DbBzVwaZ.js +0 -8
  120. package/mentionlist/index.es.js +0 -91
  121. package/mentionsection/index.es.js +0 -62
  122. package/menu/index.es.js +0 -87
  123. package/menuitem/index.es.js +0 -67
  124. package/multirow/index.es.js +0 -53
  125. package/multiselect/index.es.js +0 -221
  126. package/no-data-B781skt3.js +0 -4
  127. package/no-data-CAksOnDl.js +0 -4
  128. package/no-data-DCsjBXQR.js +0 -4
  129. package/no-data-Dz0QOe7Q.js +0 -8
  130. package/no-data-_Huxiv9q.js +0 -8
  131. package/no-data-ybRQontJ.js +0 -8
  132. package/overlaypanel/index.es.js +0 -62
  133. package/paginator/index.es.js +0 -53
  134. package/plugins/WangsVue.es.js +0 -363
  135. package/plugins/formValidation.es.js +0 -19
  136. package/progressbar/index.es.js +0 -50
  137. package/quickfilter/index.es.js +0 -153
  138. package/tabmenu/index.es.js +0 -31
  139. package/textarea/index.es.js +0 -130
  140. package/timeline/index.es.js +0 -149
  141. package/timelinecontentbytype/index.es.js +0 -133
  142. package/toast/index.es.js +0 -87
  143. package/toggleswitch/index.es.js +0 -107
  144. package/tree/index.es.js +0 -379
  145. package/treenode/index.es.js +0 -631
  146. package/treesearchinput/index.es.js +0 -62
  147. package/usergroup/index.es.js +0 -101
  148. package/username/index.es.js +0 -160
  149. package/utils/addAttachment.util.es.js +0 -50
  150. package/utils/baseToast.util.es.js +0 -52
  151. package/utils/convertJsonImage.util.es.js +0 -28
  152. package/utils/date.util.es.js +0 -253
  153. package/utils/exportToExcel.util.es.js +0 -89
  154. package/utils/filterOptions.util.es.js +0 -10
  155. package/utils/genPlaceholder.util.es.js +0 -51
  156. package/utils/getProjectPermission.util.es.js +0 -20
  157. package/utils/getSalesRole.util.es.js +0 -7
  158. package/utils/getUser.util.es.js +0 -4
  159. package/utils/getUserType.util.es.js +0 -18
  160. package/utils/index.es.js +0 -3
  161. package/utils/isIntersect.es.js +0 -6
  162. package/utils/mergePropsWithDefaults.util.es.js +0 -10
  163. package/utils/object.util.es.js +0 -95
  164. package/utils/queryParamsStringfy.util.es.js +0 -23
  165. package/utils/role.util.es.js +0 -8
  166. package/utils/statusSeverity.util.es.js +0 -36
  167. package/utils/textFormatter.util.es.js +0 -32
  168. package/utils/toast.util.es.js +0 -20
  169. package/utils/xlsx.util.es.js +0 -15
  170. package/validatormessage/index.es.js +0 -19
  171. package/vendor/@popperjs/core/lib/createPopper.es.js +0 -149
  172. package/vendor/@popperjs/core/lib/dom-utils/contains.es.js +0 -19
  173. package/vendor/@popperjs/core/lib/dom-utils/getBoundingClientRect.es.js +0 -38
  174. package/vendor/@popperjs/core/lib/dom-utils/getClippingRect.es.js +0 -61
  175. package/vendor/@popperjs/core/lib/dom-utils/getCompositeRect.es.js +0 -53
  176. package/vendor/@popperjs/core/lib/dom-utils/getComputedStyle.es.js +0 -7
  177. package/vendor/@popperjs/core/lib/dom-utils/getDocumentElement.es.js +0 -10
  178. package/vendor/@popperjs/core/lib/dom-utils/getDocumentRect.es.js +0 -27
  179. package/vendor/@popperjs/core/lib/dom-utils/getHTMLElementScroll.es.js +0 -9
  180. package/vendor/@popperjs/core/lib/dom-utils/getLayoutRect.es.js +0 -21
  181. package/vendor/@popperjs/core/lib/dom-utils/getNodeName.es.js +0 -6
  182. package/vendor/@popperjs/core/lib/dom-utils/getNodeScroll.es.js +0 -14
  183. package/vendor/@popperjs/core/lib/dom-utils/getOffsetParent.es.js +0 -51
  184. package/vendor/@popperjs/core/lib/dom-utils/getParentNode.es.js +0 -21
  185. package/vendor/@popperjs/core/lib/dom-utils/getScrollParent.es.js +0 -16
  186. package/vendor/@popperjs/core/lib/dom-utils/getViewportRect.es.js +0 -31
  187. package/vendor/@popperjs/core/lib/dom-utils/getWindow.es.js +0 -13
  188. package/vendor/@popperjs/core/lib/dom-utils/getWindowScroll.es.js +0 -13
  189. package/vendor/@popperjs/core/lib/dom-utils/getWindowScrollBarX.es.js +0 -9
  190. package/vendor/@popperjs/core/lib/dom-utils/instanceOf.es.js +0 -21
  191. package/vendor/@popperjs/core/lib/dom-utils/isLayoutViewport.es.js +0 -7
  192. package/vendor/@popperjs/core/lib/dom-utils/isScrollParent.es.js +0 -8
  193. package/vendor/@popperjs/core/lib/dom-utils/isTableElement.es.js +0 -7
  194. package/vendor/@popperjs/core/lib/dom-utils/listScrollParents.es.js +0 -22
  195. package/vendor/@popperjs/core/lib/enums.es.js +0 -45
  196. package/vendor/@popperjs/core/lib/index.es.js +0 -1
  197. package/vendor/@popperjs/core/lib/modifiers/applyStyles.es.js +0 -71
  198. package/vendor/@popperjs/core/lib/modifiers/arrow.es.js +0 -72
  199. package/vendor/@popperjs/core/lib/modifiers/computeStyles.es.js +0 -130
  200. package/vendor/@popperjs/core/lib/modifiers/eventListeners.es.js +0 -40
  201. package/vendor/@popperjs/core/lib/modifiers/flip.es.js +0 -113
  202. package/vendor/@popperjs/core/lib/modifiers/hide.es.js +0 -57
  203. package/vendor/@popperjs/core/lib/modifiers/index.es.js +0 -1
  204. package/vendor/@popperjs/core/lib/modifiers/offset.es.js +0 -42
  205. package/vendor/@popperjs/core/lib/modifiers/popperOffsets.es.js +0 -19
  206. package/vendor/@popperjs/core/lib/modifiers/preventOverflow.es.js +0 -105
  207. package/vendor/@popperjs/core/lib/popper-lite.es.js +0 -1
  208. package/vendor/@popperjs/core/lib/popper.es.js +0 -17
  209. package/vendor/@popperjs/core/lib/utils/computeAutoPlacement.es.js +0 -35
  210. package/vendor/@popperjs/core/lib/utils/computeOffsets.es.js +0 -59
  211. package/vendor/@popperjs/core/lib/utils/debounce.es.js +0 -17
  212. package/vendor/@popperjs/core/lib/utils/detectOverflow.es.js +0 -47
  213. package/vendor/@popperjs/core/lib/utils/expandToHashMap.es.js +0 -9
  214. package/vendor/@popperjs/core/lib/utils/getAltAxis.es.js +0 -6
  215. package/vendor/@popperjs/core/lib/utils/getBasePlacement.es.js +0 -6
  216. package/vendor/@popperjs/core/lib/utils/getFreshSideObject.es.js +0 -11
  217. package/vendor/@popperjs/core/lib/utils/getMainAxisFromPlacement.es.js +0 -6
  218. package/vendor/@popperjs/core/lib/utils/getOppositePlacement.es.js +0 -14
  219. package/vendor/@popperjs/core/lib/utils/getOppositeVariationPlacement.es.js +0 -12
  220. package/vendor/@popperjs/core/lib/utils/getVariation.es.js +0 -6
  221. package/vendor/@popperjs/core/lib/utils/math.es.js +0 -8
  222. package/vendor/@popperjs/core/lib/utils/mergeByName.es.js +0 -16
  223. package/vendor/@popperjs/core/lib/utils/mergePaddingObject.es.js +0 -7
  224. package/vendor/@popperjs/core/lib/utils/orderModifiers.es.js +0 -39
  225. package/vendor/@popperjs/core/lib/utils/rectToClientRect.es.js +0 -11
  226. package/vendor/@popperjs/core/lib/utils/userAgent.es.js +0 -12
  227. package/vendor/@popperjs/core/lib/utils/within.es.js +0 -12
  228. package/vendor/@tiptap/core/dist/index.es.js +0 -4362
  229. package/vendor/@tiptap/extension-bold/dist/index.es.js +0 -81
  230. package/vendor/@tiptap/extension-bubble-menu/dist/index.es.js +0 -202
  231. package/vendor/@tiptap/extension-bullet-list/dist/index.es.js +0 -66
  232. package/vendor/@tiptap/extension-code/dist/index.es.js +0 -59
  233. package/vendor/@tiptap/extension-document/dist/index.es.js +0 -9
  234. package/vendor/@tiptap/extension-floating-menu/dist/index.es.js +0 -154
  235. package/vendor/@tiptap/extension-heading/dist/index.es.js +0 -70
  236. package/vendor/@tiptap/extension-history/dist/index.es.js +0 -39
  237. package/vendor/@tiptap/extension-image/dist/index.es.js +0 -67
  238. package/vendor/@tiptap/extension-italic/dist/index.es.js +0 -80
  239. package/vendor/@tiptap/extension-link/dist/index.es.js +0 -351
  240. package/vendor/@tiptap/extension-list-item/dist/index.es.js +0 -33
  241. package/vendor/@tiptap/extension-mention/dist/index.es.js +0 -165
  242. package/vendor/@tiptap/extension-ordered-list/dist/index.es.js +0 -84
  243. package/vendor/@tiptap/extension-paragraph/dist/index.es.js +0 -35
  244. package/vendor/@tiptap/extension-placeholder/dist/index.es.js +0 -59
  245. package/vendor/@tiptap/extension-text/dist/index.es.js +0 -8
  246. package/vendor/@tiptap/extension-underline/dist/index.es.js +0 -46
  247. package/vendor/@tiptap/pm/commands/dist/index.es.js +0 -1
  248. package/vendor/@tiptap/pm/history/dist/index.es.js +0 -1
  249. package/vendor/@tiptap/pm/keymap/dist/index.es.js +0 -1
  250. package/vendor/@tiptap/pm/model/dist/index.es.js +0 -1
  251. package/vendor/@tiptap/pm/schema-list/dist/index.es.js +0 -1
  252. package/vendor/@tiptap/pm/state/dist/index.es.js +0 -1
  253. package/vendor/@tiptap/pm/transform/dist/index.es.js +0 -1
  254. package/vendor/@tiptap/pm/view/dist/index.es.js +0 -1
  255. package/vendor/@tiptap/suggestion/dist/index.es.js +0 -215
  256. package/vendor/@tiptap/vue-3/dist/index.es.js +0 -535
  257. package/vendor/@wangs-ui/core/components/p-BU8h34na.es.js +0 -22
  258. package/vendor/@wangs-ui/core/components/p-C5lMEBcj.es.js +0 -163
  259. package/vendor/@wangs-ui/core/components/p-CKYwZoTo.es.js +0 -61
  260. package/vendor/@wangs-ui/core/components/p-CsoK-EWG.es.js +0 -203
  261. package/vendor/@wangs-ui/core/components/p-DPHEi31J.es.js +0 -160
  262. package/vendor/@wangs-ui/core/components/p-DTTCzifR.es.js +0 -1447
  263. package/vendor/@wangs-ui/core/components/p-Duri5p90.es.js +0 -184
  264. package/vendor/@wangs-ui/core/components/wangs-button.es.js +0 -38
  265. package/vendor/@wangs-ui/core/components/wangs-icon.es.js +0 -5
  266. package/vendor/@wangs-ui/core/components/wangs-input-otp.es.js +0 -5
  267. package/vendor/@wangs-ui/core/components/wangs-tab-menu.es.js +0 -5
  268. package/vendor/@wangs-ui/core/dist/esm/index-DCkh3cGv.es.js +0 -340
  269. package/vendor/@wangs-ui/core/dist/esm/index.es.js +0 -1
  270. package/vendor/@wangs-ui/core/dist/index.es.js +0 -1
  271. package/vendor/@wangs-ui/vue/dist/index.es.js +0 -98
  272. package/vendor/base64toblob/base64toblob.es.js +0 -37
  273. package/vendor/highlight.js/es/core.es.js +0 -7
  274. package/vendor/highlight.js/es/languages/javascript.es.js +0 -700
  275. package/vendor/highlight.js/es/languages/json.es.js +0 -41
  276. package/vendor/highlight.js/es/languages/typescript.es.js +0 -803
  277. package/vendor/highlight.js/es/languages/vbscript-html.es.js +0 -16
  278. package/vendor/highlight.js/lib/core.es.js +0 -1541
  279. package/vendor/linkifyjs/dist/linkify.es.es.js +0 -1158
  280. package/vendor/lodash/_Symbol.es.js +0 -14
  281. package/vendor/lodash/_baseGetTag.es.js +0 -23
  282. package/vendor/lodash/_baseTrim.es.js +0 -17
  283. package/vendor/lodash/_freeGlobal.es.js +0 -13
  284. package/vendor/lodash/_getRawTag.es.js +0 -34
  285. package/vendor/lodash/_objectToString.es.js +0 -16
  286. package/vendor/lodash/_root.es.js +0 -15
  287. package/vendor/lodash/_trimmedEndIndex.es.js +0 -18
  288. package/vendor/lodash/debounce.es.js +0 -98
  289. package/vendor/lodash/isObject.es.js +0 -15
  290. package/vendor/lodash/isObjectLike.es.js +0 -14
  291. package/vendor/lodash/isSymbol.es.js +0 -18
  292. package/vendor/lodash/now.es.js +0 -16
  293. package/vendor/lodash/throttle.es.js +0 -30
  294. package/vendor/lodash/toNumber.es.js +0 -38
  295. package/vendor/lodash-es/_DataView.es.js +0 -6
  296. package/vendor/lodash-es/_Hash.es.js +0 -21
  297. package/vendor/lodash-es/_LazyWrapper.es.js +0 -1
  298. package/vendor/lodash-es/_ListCache.es.js +0 -21
  299. package/vendor/lodash-es/_LodashWrapper.es.js +0 -1
  300. package/vendor/lodash-es/_Map.es.js +0 -6
  301. package/vendor/lodash-es/_MapCache.es.js +0 -21
  302. package/vendor/lodash-es/_Promise.es.js +0 -6
  303. package/vendor/lodash-es/_Set.es.js +0 -6
  304. package/vendor/lodash-es/_SetCache.es.js +0 -15
  305. package/vendor/lodash-es/_Stack.es.js +0 -18
  306. package/vendor/lodash-es/_Symbol.es.js +0 -5
  307. package/vendor/lodash-es/_Uint8Array.es.js +0 -5
  308. package/vendor/lodash-es/_WeakMap.es.js +0 -6
  309. package/vendor/lodash-es/_apply.es.js +0 -1
  310. package/vendor/lodash-es/_arrayAggregator.es.js +0 -1
  311. package/vendor/lodash-es/_arrayEach.es.js +0 -12
  312. package/vendor/lodash-es/_arrayEachRight.es.js +0 -1
  313. package/vendor/lodash-es/_arrayEvery.es.js +0 -1
  314. package/vendor/lodash-es/_arrayFilter.es.js +0 -13
  315. package/vendor/lodash-es/_arrayIncludes.es.js +0 -1
  316. package/vendor/lodash-es/_arrayIncludesWith.es.js +0 -1
  317. package/vendor/lodash-es/_arrayLikeKeys.es.js +0 -24
  318. package/vendor/lodash-es/_arrayMap.es.js +0 -1
  319. package/vendor/lodash-es/_arrayPush.es.js +0 -10
  320. package/vendor/lodash-es/_arrayReduce.es.js +0 -1
  321. package/vendor/lodash-es/_arrayReduceRight.es.js +0 -1
  322. package/vendor/lodash-es/_arraySample.es.js +0 -1
  323. package/vendor/lodash-es/_arraySampleSize.es.js +0 -1
  324. package/vendor/lodash-es/_arrayShuffle.es.js +0 -1
  325. package/vendor/lodash-es/_arraySome.es.js +0 -12
  326. package/vendor/lodash-es/_asciiSize.es.js +0 -1
  327. package/vendor/lodash-es/_asciiToArray.es.js +0 -1
  328. package/vendor/lodash-es/_asciiWords.es.js +0 -1
  329. package/vendor/lodash-es/_assignMergeValue.es.js +0 -1
  330. package/vendor/lodash-es/_assignValue.es.js +0 -13
  331. package/vendor/lodash-es/_assocIndexOf.es.js +0 -13
  332. package/vendor/lodash-es/_baseAggregator.es.js +0 -1
  333. package/vendor/lodash-es/_baseAssign.es.js +0 -1
  334. package/vendor/lodash-es/_baseAssignIn.es.js +0 -1
  335. package/vendor/lodash-es/_baseAssignValue.es.js +0 -16
  336. package/vendor/lodash-es/_baseAt.es.js +0 -1
  337. package/vendor/lodash-es/_baseClamp.es.js +0 -1
  338. package/vendor/lodash-es/_baseClone.es.js +0 -73
  339. package/vendor/lodash-es/_baseConforms.es.js +0 -1
  340. package/vendor/lodash-es/_baseConformsTo.es.js +0 -1
  341. package/vendor/lodash-es/_baseCreate.es.js +0 -21
  342. package/vendor/lodash-es/_baseDelay.es.js +0 -1
  343. package/vendor/lodash-es/_baseDifference.es.js +0 -1
  344. package/vendor/lodash-es/_baseEach.es.js +0 -1
  345. package/vendor/lodash-es/_baseEachRight.es.js +0 -1
  346. package/vendor/lodash-es/_baseEvery.es.js +0 -1
  347. package/vendor/lodash-es/_baseExtremum.es.js +0 -1
  348. package/vendor/lodash-es/_baseFill.es.js +0 -1
  349. package/vendor/lodash-es/_baseFilter.es.js +0 -1
  350. package/vendor/lodash-es/_baseFindIndex.es.js +0 -1
  351. package/vendor/lodash-es/_baseFindKey.es.js +0 -1
  352. package/vendor/lodash-es/_baseFlatten.es.js +0 -1
  353. package/vendor/lodash-es/_baseFor.es.js +0 -1
  354. package/vendor/lodash-es/_baseForOwn.es.js +0 -1
  355. package/vendor/lodash-es/_baseForOwnRight.es.js +0 -1
  356. package/vendor/lodash-es/_baseForRight.es.js +0 -1
  357. package/vendor/lodash-es/_baseFunctions.es.js +0 -1
  358. package/vendor/lodash-es/_baseGet.es.js +0 -1
  359. package/vendor/lodash-es/_baseGetAllKeys.es.js +0 -9
  360. package/vendor/lodash-es/_baseGetTag.es.js +0 -14
  361. package/vendor/lodash-es/_baseGt.es.js +0 -1
  362. package/vendor/lodash-es/_baseHas.es.js +0 -1
  363. package/vendor/lodash-es/_baseHasIn.es.js +0 -1
  364. package/vendor/lodash-es/_baseInRange.es.js +0 -1
  365. package/vendor/lodash-es/_baseIndexOf.es.js +0 -1
  366. package/vendor/lodash-es/_baseIndexOfWith.es.js +0 -1
  367. package/vendor/lodash-es/_baseIntersection.es.js +0 -1
  368. package/vendor/lodash-es/_baseInverter.es.js +0 -1
  369. package/vendor/lodash-es/_baseInvoke.es.js +0 -1
  370. package/vendor/lodash-es/_baseIsArguments.es.js +0 -9
  371. package/vendor/lodash-es/_baseIsArrayBuffer.es.js +0 -1
  372. package/vendor/lodash-es/_baseIsDate.es.js +0 -1
  373. package/vendor/lodash-es/_baseIsEqual.es.js +0 -14
  374. package/vendor/lodash-es/_baseIsEqualDeep.es.js +0 -45
  375. package/vendor/lodash-es/_baseIsMap.es.js +0 -9
  376. package/vendor/lodash-es/_baseIsMatch.es.js +0 -1
  377. package/vendor/lodash-es/_baseIsNaN.es.js +0 -1
  378. package/vendor/lodash-es/_baseIsNative.es.js +0 -22
  379. package/vendor/lodash-es/_baseIsRegExp.es.js +0 -1
  380. package/vendor/lodash-es/_baseIsSet.es.js +0 -9
  381. package/vendor/lodash-es/_baseIsTypedArray.es.js +0 -14
  382. package/vendor/lodash-es/_baseIteratee.es.js +0 -1
  383. package/vendor/lodash-es/_baseKeys.es.js +0 -19
  384. package/vendor/lodash-es/_baseKeysIn.es.js +0 -1
  385. package/vendor/lodash-es/_baseLodash.es.js +0 -1
  386. package/vendor/lodash-es/_baseLt.es.js +0 -1
  387. package/vendor/lodash-es/_baseMap.es.js +0 -1
  388. package/vendor/lodash-es/_baseMatches.es.js +0 -1
  389. package/vendor/lodash-es/_baseMatchesProperty.es.js +0 -1
  390. package/vendor/lodash-es/_baseMean.es.js +0 -1
  391. package/vendor/lodash-es/_baseMerge.es.js +0 -1
  392. package/vendor/lodash-es/_baseMergeDeep.es.js +0 -1
  393. package/vendor/lodash-es/_baseNth.es.js +0 -1
  394. package/vendor/lodash-es/_baseOrderBy.es.js +0 -1
  395. package/vendor/lodash-es/_basePick.es.js +0 -1
  396. package/vendor/lodash-es/_basePickBy.es.js +0 -1
  397. package/vendor/lodash-es/_baseProperty.es.js +0 -1
  398. package/vendor/lodash-es/_basePropertyDeep.es.js +0 -1
  399. package/vendor/lodash-es/_basePropertyOf.es.js +0 -1
  400. package/vendor/lodash-es/_basePullAll.es.js +0 -1
  401. package/vendor/lodash-es/_basePullAt.es.js +0 -1
  402. package/vendor/lodash-es/_baseRandom.es.js +0 -1
  403. package/vendor/lodash-es/_baseRange.es.js +0 -1
  404. package/vendor/lodash-es/_baseReduce.es.js +0 -1
  405. package/vendor/lodash-es/_baseRepeat.es.js +0 -1
  406. package/vendor/lodash-es/_baseRest.es.js +0 -1
  407. package/vendor/lodash-es/_baseSample.es.js +0 -1
  408. package/vendor/lodash-es/_baseSampleSize.es.js +0 -1
  409. package/vendor/lodash-es/_baseSet.es.js +0 -1
  410. package/vendor/lodash-es/_baseSetData.es.js +0 -1
  411. package/vendor/lodash-es/_baseSetToString.es.js +0 -1
  412. package/vendor/lodash-es/_baseShuffle.es.js +0 -1
  413. package/vendor/lodash-es/_baseSlice.es.js +0 -1
  414. package/vendor/lodash-es/_baseSome.es.js +0 -1
  415. package/vendor/lodash-es/_baseSortBy.es.js +0 -1
  416. package/vendor/lodash-es/_baseSortedIndex.es.js +0 -1
  417. package/vendor/lodash-es/_baseSortedIndexBy.es.js +0 -1
  418. package/vendor/lodash-es/_baseSortedUniq.es.js +0 -1
  419. package/vendor/lodash-es/_baseSum.es.js +0 -1
  420. package/vendor/lodash-es/_baseTimes.es.js +0 -10
  421. package/vendor/lodash-es/_baseToNumber.es.js +0 -1
  422. package/vendor/lodash-es/_baseToPairs.es.js +0 -1
  423. package/vendor/lodash-es/_baseToString.es.js +0 -1
  424. package/vendor/lodash-es/_baseTrim.es.js +0 -8
  425. package/vendor/lodash-es/_baseUnary.es.js +0 -8
  426. package/vendor/lodash-es/_baseUniq.es.js +0 -1
  427. package/vendor/lodash-es/_baseUnset.es.js +0 -1
  428. package/vendor/lodash-es/_baseUpdate.es.js +0 -1
  429. package/vendor/lodash-es/_baseValues.es.js +0 -1
  430. package/vendor/lodash-es/_baseWhile.es.js +0 -1
  431. package/vendor/lodash-es/_baseWrapperValue.es.js +0 -1
  432. package/vendor/lodash-es/_baseXor.es.js +0 -1
  433. package/vendor/lodash-es/_baseZipObject.es.js +0 -1
  434. package/vendor/lodash-es/_cacheHas.es.js +0 -6
  435. package/vendor/lodash-es/_castArrayLikeObject.es.js +0 -1
  436. package/vendor/lodash-es/_castFunction.es.js +0 -1
  437. package/vendor/lodash-es/_castPath.es.js +0 -1
  438. package/vendor/lodash-es/_castRest.es.js +0 -1
  439. package/vendor/lodash-es/_castSlice.es.js +0 -1
  440. package/vendor/lodash-es/_charsEndIndex.es.js +0 -1
  441. package/vendor/lodash-es/_charsStartIndex.es.js +0 -1
  442. package/vendor/lodash-es/_cloneArrayBuffer.es.js +0 -9
  443. package/vendor/lodash-es/_cloneBuffer.es.js +0 -14
  444. package/vendor/lodash-es/_cloneDataView.es.js +0 -8
  445. package/vendor/lodash-es/_cloneRegExp.es.js +0 -9
  446. package/vendor/lodash-es/_cloneSymbol.es.js +0 -8
  447. package/vendor/lodash-es/_cloneTypedArray.es.js +0 -8
  448. package/vendor/lodash-es/_compareAscending.es.js +0 -1
  449. package/vendor/lodash-es/_compareMultiple.es.js +0 -1
  450. package/vendor/lodash-es/_composeArgs.es.js +0 -1
  451. package/vendor/lodash-es/_composeArgsRight.es.js +0 -1
  452. package/vendor/lodash-es/_copyArray.es.js +0 -1
  453. package/vendor/lodash-es/_copyObject.es.js +0 -1
  454. package/vendor/lodash-es/_copySymbols.es.js +0 -1
  455. package/vendor/lodash-es/_copySymbolsIn.es.js +0 -1
  456. package/vendor/lodash-es/_coreJsData.es.js +0 -5
  457. package/vendor/lodash-es/_countHolders.es.js +0 -1
  458. package/vendor/lodash-es/_createAggregator.es.js +0 -1
  459. package/vendor/lodash-es/_createAssigner.es.js +0 -1
  460. package/vendor/lodash-es/_createBaseEach.es.js +0 -1
  461. package/vendor/lodash-es/_createBaseFor.es.js +0 -1
  462. package/vendor/lodash-es/_createBind.es.js +0 -1
  463. package/vendor/lodash-es/_createCaseFirst.es.js +0 -1
  464. package/vendor/lodash-es/_createCompounder.es.js +0 -1
  465. package/vendor/lodash-es/_createCtor.es.js +0 -1
  466. package/vendor/lodash-es/_createCurry.es.js +0 -1
  467. package/vendor/lodash-es/_createFind.es.js +0 -1
  468. package/vendor/lodash-es/_createFlow.es.js +0 -1
  469. package/vendor/lodash-es/_createHybrid.es.js +0 -1
  470. package/vendor/lodash-es/_createInverter.es.js +0 -1
  471. package/vendor/lodash-es/_createMathOperation.es.js +0 -1
  472. package/vendor/lodash-es/_createOver.es.js +0 -1
  473. package/vendor/lodash-es/_createPadding.es.js +0 -1
  474. package/vendor/lodash-es/_createPartial.es.js +0 -1
  475. package/vendor/lodash-es/_createRange.es.js +0 -1
  476. package/vendor/lodash-es/_createRecurry.es.js +0 -1
  477. package/vendor/lodash-es/_createRelationalOperation.es.js +0 -1
  478. package/vendor/lodash-es/_createRound.es.js +0 -1
  479. package/vendor/lodash-es/_createSet.es.js +0 -1
  480. package/vendor/lodash-es/_createToPairs.es.js +0 -1
  481. package/vendor/lodash-es/_createWrap.es.js +0 -1
  482. package/vendor/lodash-es/_customDefaultsAssignIn.es.js +0 -1
  483. package/vendor/lodash-es/_customDefaultsMerge.es.js +0 -1
  484. package/vendor/lodash-es/_customOmitClone.es.js +0 -1
  485. package/vendor/lodash-es/_deburrLetter.es.js +0 -1
  486. package/vendor/lodash-es/_defineProperty.es.js +0 -12
  487. package/vendor/lodash-es/_equalArrays.es.js +0 -50
  488. package/vendor/lodash-es/_equalByTag.es.js +0 -59
  489. package/vendor/lodash-es/_equalObjects.es.js +0 -50
  490. package/vendor/lodash-es/_escapeHtmlChar.es.js +0 -1
  491. package/vendor/lodash-es/_escapeStringChar.es.js +0 -1
  492. package/vendor/lodash-es/_flatRest.es.js +0 -1
  493. package/vendor/lodash-es/_freeGlobal.es.js +0 -4
  494. package/vendor/lodash-es/_getAllKeys.es.js +0 -9
  495. package/vendor/lodash-es/_getAllKeysIn.es.js +0 -1
  496. package/vendor/lodash-es/_getData.es.js +0 -1
  497. package/vendor/lodash-es/_getFuncName.es.js +0 -1
  498. package/vendor/lodash-es/_getHolder.es.js +0 -1
  499. package/vendor/lodash-es/_getMapData.es.js +0 -8
  500. package/vendor/lodash-es/_getMatchData.es.js +0 -1
  501. package/vendor/lodash-es/_getNative.es.js +0 -9
  502. package/vendor/lodash-es/_getPrototype.es.js +0 -5
  503. package/vendor/lodash-es/_getRawTag.es.js +0 -25
  504. package/vendor/lodash-es/_getSymbols.es.js +0 -17
  505. package/vendor/lodash-es/_getSymbolsIn.es.js +0 -1
  506. package/vendor/lodash-es/_getTag.es.js +0 -34
  507. package/vendor/lodash-es/_getValue.es.js +0 -6
  508. package/vendor/lodash-es/_getView.es.js +0 -1
  509. package/vendor/lodash-es/_getWrapDetails.es.js +0 -1
  510. package/vendor/lodash-es/_hasPath.es.js +0 -1
  511. package/vendor/lodash-es/_hasUnicode.es.js +0 -1
  512. package/vendor/lodash-es/_hasUnicodeWord.es.js +0 -1
  513. package/vendor/lodash-es/_hashClear.es.js +0 -8
  514. package/vendor/lodash-es/_hashDelete.es.js +0 -8
  515. package/vendor/lodash-es/_hashGet.es.js +0 -15
  516. package/vendor/lodash-es/_hashHas.es.js +0 -10
  517. package/vendor/lodash-es/_hashSet.es.js +0 -11
  518. package/vendor/lodash-es/_initCloneArray.es.js +0 -13
  519. package/vendor/lodash-es/_initCloneByTag.es.js +0 -43
  520. package/vendor/lodash-es/_initCloneObject.es.js +0 -9
  521. package/vendor/lodash-es/_insertWrapDetails.es.js +0 -1
  522. package/vendor/lodash-es/_isFlattenable.es.js +0 -1
  523. package/vendor/lodash-es/_isIndex.es.js +0 -10
  524. package/vendor/lodash-es/_isIterateeCall.es.js +0 -1
  525. package/vendor/lodash-es/_isKey.es.js +0 -1
  526. package/vendor/lodash-es/_isKeyable.es.js +0 -7
  527. package/vendor/lodash-es/_isLaziable.es.js +0 -1
  528. package/vendor/lodash-es/_isMaskable.es.js +0 -1
  529. package/vendor/lodash-es/_isMasked.es.js +0 -11
  530. package/vendor/lodash-es/_isPrototype.es.js +0 -8
  531. package/vendor/lodash-es/_isStrictComparable.es.js +0 -1
  532. package/vendor/lodash-es/_iteratorToArray.es.js +0 -1
  533. package/vendor/lodash-es/_lazyClone.es.js +0 -1
  534. package/vendor/lodash-es/_lazyReverse.es.js +0 -1
  535. package/vendor/lodash-es/_lazyValue.es.js +0 -1
  536. package/vendor/lodash-es/_listCacheClear.es.js +0 -7
  537. package/vendor/lodash-es/_listCacheDelete.es.js +0 -20
  538. package/vendor/lodash-es/_listCacheGet.es.js +0 -8
  539. package/vendor/lodash-es/_listCacheHas.es.js +0 -7
  540. package/vendor/lodash-es/_listCacheSet.es.js +0 -14
  541. package/vendor/lodash-es/_mapCacheClear.es.js +0 -14
  542. package/vendor/lodash-es/_mapCacheDelete.es.js +0 -9
  543. package/vendor/lodash-es/_mapCacheGet.es.js +0 -7
  544. package/vendor/lodash-es/_mapCacheHas.es.js +0 -7
  545. package/vendor/lodash-es/_mapCacheSet.es.js +0 -10
  546. package/vendor/lodash-es/_mapToArray.es.js +0 -10
  547. package/vendor/lodash-es/_matchesStrictComparable.es.js +0 -1
  548. package/vendor/lodash-es/_memoizeCapped.es.js +0 -1
  549. package/vendor/lodash-es/_mergeData.es.js +0 -1
  550. package/vendor/lodash-es/_metaMap.es.js +0 -1
  551. package/vendor/lodash-es/_nativeCreate.es.js +0 -5
  552. package/vendor/lodash-es/_nativeKeys.es.js +0 -5
  553. package/vendor/lodash-es/_nativeKeysIn.es.js +0 -1
  554. package/vendor/lodash-es/_nodeUtil.es.js +0 -18
  555. package/vendor/lodash-es/_objectToString.es.js +0 -8
  556. package/vendor/lodash-es/_overArg.es.js +0 -8
  557. package/vendor/lodash-es/_overRest.es.js +0 -1
  558. package/vendor/lodash-es/_parent.es.js +0 -1
  559. package/vendor/lodash-es/_reEscape.es.js +0 -1
  560. package/vendor/lodash-es/_reEvaluate.es.js +0 -1
  561. package/vendor/lodash-es/_reInterpolate.es.js +0 -1
  562. package/vendor/lodash-es/_realNames.es.js +0 -1
  563. package/vendor/lodash-es/_reorder.es.js +0 -1
  564. package/vendor/lodash-es/_replaceHolders.es.js +0 -1
  565. package/vendor/lodash-es/_root.es.js +0 -6
  566. package/vendor/lodash-es/_safeGet.es.js +0 -1
  567. package/vendor/lodash-es/_setCacheAdd.es.js +0 -8
  568. package/vendor/lodash-es/_setCacheHas.es.js +0 -6
  569. package/vendor/lodash-es/_setData.es.js +0 -1
  570. package/vendor/lodash-es/_setToArray.es.js +0 -10
  571. package/vendor/lodash-es/_setToPairs.es.js +0 -1
  572. package/vendor/lodash-es/_setToString.es.js +0 -1
  573. package/vendor/lodash-es/_setWrapToString.es.js +0 -1
  574. package/vendor/lodash-es/_shortOut.es.js +0 -1
  575. package/vendor/lodash-es/_shuffleSelf.es.js +0 -1
  576. package/vendor/lodash-es/_stackClear.es.js +0 -8
  577. package/vendor/lodash-es/_stackDelete.es.js +0 -8
  578. package/vendor/lodash-es/_stackGet.es.js +0 -6
  579. package/vendor/lodash-es/_stackHas.es.js +0 -6
  580. package/vendor/lodash-es/_stackSet.es.js +0 -22
  581. package/vendor/lodash-es/_strictIndexOf.es.js +0 -1
  582. package/vendor/lodash-es/_strictLastIndexOf.es.js +0 -1
  583. package/vendor/lodash-es/_stringSize.es.js +0 -1
  584. package/vendor/lodash-es/_stringToArray.es.js +0 -1
  585. package/vendor/lodash-es/_stringToPath.es.js +0 -1
  586. package/vendor/lodash-es/_toKey.es.js +0 -1
  587. package/vendor/lodash-es/_toSource.es.js +0 -18
  588. package/vendor/lodash-es/_trimmedEndIndex.es.js +0 -10
  589. package/vendor/lodash-es/_unescapeHtmlChar.es.js +0 -1
  590. package/vendor/lodash-es/_unicodeSize.es.js +0 -1
  591. package/vendor/lodash-es/_unicodeToArray.es.js +0 -1
  592. package/vendor/lodash-es/_unicodeWords.es.js +0 -1
  593. package/vendor/lodash-es/_updateWrapDetails.es.js +0 -1
  594. package/vendor/lodash-es/_wrapperClone.es.js +0 -1
  595. package/vendor/lodash-es/add.es.js +0 -1
  596. package/vendor/lodash-es/after.es.js +0 -1
  597. package/vendor/lodash-es/array.default.es.js +0 -1
  598. package/vendor/lodash-es/array.es.js +0 -1
  599. package/vendor/lodash-es/ary.es.js +0 -1
  600. package/vendor/lodash-es/assign.es.js +0 -1
  601. package/vendor/lodash-es/assignIn.es.js +0 -1
  602. package/vendor/lodash-es/assignInWith.es.js +0 -1
  603. package/vendor/lodash-es/assignWith.es.js +0 -1
  604. package/vendor/lodash-es/at.es.js +0 -1
  605. package/vendor/lodash-es/attempt.es.js +0 -1
  606. package/vendor/lodash-es/before.es.js +0 -1
  607. package/vendor/lodash-es/bind.es.js +0 -1
  608. package/vendor/lodash-es/bindAll.es.js +0 -1
  609. package/vendor/lodash-es/bindKey.es.js +0 -1
  610. package/vendor/lodash-es/camelCase.es.js +0 -1
  611. package/vendor/lodash-es/capitalize.es.js +0 -1
  612. package/vendor/lodash-es/castArray.es.js +0 -1
  613. package/vendor/lodash-es/ceil.es.js +0 -1
  614. package/vendor/lodash-es/chain.es.js +0 -1
  615. package/vendor/lodash-es/chunk.es.js +0 -1
  616. package/vendor/lodash-es/clamp.es.js +0 -1
  617. package/vendor/lodash-es/clone.es.js +0 -1
  618. package/vendor/lodash-es/cloneDeep.es.js +0 -8
  619. package/vendor/lodash-es/cloneDeepWith.es.js +0 -1
  620. package/vendor/lodash-es/cloneWith.es.js +0 -1
  621. package/vendor/lodash-es/collection.default.es.js +0 -1
  622. package/vendor/lodash-es/collection.es.js +0 -1
  623. package/vendor/lodash-es/commit.es.js +0 -1
  624. package/vendor/lodash-es/compact.es.js +0 -1
  625. package/vendor/lodash-es/concat.es.js +0 -1
  626. package/vendor/lodash-es/cond.es.js +0 -1
  627. package/vendor/lodash-es/conforms.es.js +0 -1
  628. package/vendor/lodash-es/conformsTo.es.js +0 -1
  629. package/vendor/lodash-es/constant.es.js +0 -1
  630. package/vendor/lodash-es/countBy.es.js +0 -1
  631. package/vendor/lodash-es/create.es.js +0 -1
  632. package/vendor/lodash-es/curry.es.js +0 -1
  633. package/vendor/lodash-es/curryRight.es.js +0 -1
  634. package/vendor/lodash-es/date.default.es.js +0 -1
  635. package/vendor/lodash-es/date.es.js +0 -1
  636. package/vendor/lodash-es/debounce.es.js +0 -89
  637. package/vendor/lodash-es/deburr.es.js +0 -1
  638. package/vendor/lodash-es/defaultTo.es.js +0 -1
  639. package/vendor/lodash-es/defaults.es.js +0 -1
  640. package/vendor/lodash-es/defaultsDeep.es.js +0 -1
  641. package/vendor/lodash-es/defer.es.js +0 -1
  642. package/vendor/lodash-es/delay.es.js +0 -1
  643. package/vendor/lodash-es/difference.es.js +0 -1
  644. package/vendor/lodash-es/differenceBy.es.js +0 -1
  645. package/vendor/lodash-es/differenceWith.es.js +0 -1
  646. package/vendor/lodash-es/divide.es.js +0 -1
  647. package/vendor/lodash-es/drop.es.js +0 -1
  648. package/vendor/lodash-es/dropRight.es.js +0 -1
  649. package/vendor/lodash-es/dropRightWhile.es.js +0 -1
  650. package/vendor/lodash-es/dropWhile.es.js +0 -1
  651. package/vendor/lodash-es/each.es.js +0 -1
  652. package/vendor/lodash-es/eachRight.es.js +0 -1
  653. package/vendor/lodash-es/endsWith.es.js +0 -1
  654. package/vendor/lodash-es/entries.es.js +0 -1
  655. package/vendor/lodash-es/entriesIn.es.js +0 -1
  656. package/vendor/lodash-es/eq.es.js +0 -6
  657. package/vendor/lodash-es/escape.es.js +0 -1
  658. package/vendor/lodash-es/escapeRegExp.es.js +0 -1
  659. package/vendor/lodash-es/every.es.js +0 -1
  660. package/vendor/lodash-es/extend.es.js +0 -1
  661. package/vendor/lodash-es/extendWith.es.js +0 -1
  662. package/vendor/lodash-es/fill.es.js +0 -1
  663. package/vendor/lodash-es/filter.es.js +0 -1
  664. package/vendor/lodash-es/find.es.js +0 -1
  665. package/vendor/lodash-es/findIndex.es.js +0 -1
  666. package/vendor/lodash-es/findKey.es.js +0 -1
  667. package/vendor/lodash-es/findLast.es.js +0 -1
  668. package/vendor/lodash-es/findLastIndex.es.js +0 -1
  669. package/vendor/lodash-es/findLastKey.es.js +0 -1
  670. package/vendor/lodash-es/first.es.js +0 -1
  671. package/vendor/lodash-es/flatMap.es.js +0 -1
  672. package/vendor/lodash-es/flatMapDeep.es.js +0 -1
  673. package/vendor/lodash-es/flatMapDepth.es.js +0 -1
  674. package/vendor/lodash-es/flatten.es.js +0 -1
  675. package/vendor/lodash-es/flattenDeep.es.js +0 -1
  676. package/vendor/lodash-es/flattenDepth.es.js +0 -1
  677. package/vendor/lodash-es/flip.es.js +0 -1
  678. package/vendor/lodash-es/floor.es.js +0 -1
  679. package/vendor/lodash-es/flow.es.js +0 -1
  680. package/vendor/lodash-es/flowRight.es.js +0 -1
  681. package/vendor/lodash-es/forEach.es.js +0 -1
  682. package/vendor/lodash-es/forEachRight.es.js +0 -1
  683. package/vendor/lodash-es/forIn.es.js +0 -1
  684. package/vendor/lodash-es/forInRight.es.js +0 -1
  685. package/vendor/lodash-es/forOwn.es.js +0 -1
  686. package/vendor/lodash-es/forOwnRight.es.js +0 -1
  687. package/vendor/lodash-es/fromPairs.es.js +0 -1
  688. package/vendor/lodash-es/function.default.es.js +0 -1
  689. package/vendor/lodash-es/function.es.js +0 -1
  690. package/vendor/lodash-es/functions.es.js +0 -1
  691. package/vendor/lodash-es/functionsIn.es.js +0 -1
  692. package/vendor/lodash-es/get.es.js +0 -1
  693. package/vendor/lodash-es/groupBy.es.js +0 -1
  694. package/vendor/lodash-es/gt.es.js +0 -1
  695. package/vendor/lodash-es/gte.es.js +0 -1
  696. package/vendor/lodash-es/has.es.js +0 -1
  697. package/vendor/lodash-es/hasIn.es.js +0 -1
  698. package/vendor/lodash-es/head.es.js +0 -1
  699. package/vendor/lodash-es/identity.es.js +0 -1
  700. package/vendor/lodash-es/inRange.es.js +0 -1
  701. package/vendor/lodash-es/includes.es.js +0 -1
  702. package/vendor/lodash-es/indexOf.es.js +0 -1
  703. package/vendor/lodash-es/initial.es.js +0 -1
  704. package/vendor/lodash-es/intersection.es.js +0 -1
  705. package/vendor/lodash-es/intersectionBy.es.js +0 -1
  706. package/vendor/lodash-es/intersectionWith.es.js +0 -1
  707. package/vendor/lodash-es/invert.es.js +0 -1
  708. package/vendor/lodash-es/invertBy.es.js +0 -1
  709. package/vendor/lodash-es/invoke.es.js +0 -1
  710. package/vendor/lodash-es/invokeMap.es.js +0 -1
  711. package/vendor/lodash-es/isArguments.es.js +0 -13
  712. package/vendor/lodash-es/isArray.es.js +0 -4
  713. package/vendor/lodash-es/isArrayBuffer.es.js +0 -1
  714. package/vendor/lodash-es/isArrayLike.es.js +0 -8
  715. package/vendor/lodash-es/isArrayLikeObject.es.js +0 -1
  716. package/vendor/lodash-es/isBoolean.es.js +0 -1
  717. package/vendor/lodash-es/isBuffer.es.js +0 -11
  718. package/vendor/lodash-es/isDate.es.js +0 -1
  719. package/vendor/lodash-es/isElement.es.js +0 -1
  720. package/vendor/lodash-es/isEmpty.es.js +0 -1
  721. package/vendor/lodash-es/isEqual.es.js +0 -7
  722. package/vendor/lodash-es/isEqualWith.es.js +0 -1
  723. package/vendor/lodash-es/isError.es.js +0 -1
  724. package/vendor/lodash-es/isFinite.es.js +0 -1
  725. package/vendor/lodash-es/isFunction.es.js +0 -13
  726. package/vendor/lodash-es/isInteger.es.js +0 -1
  727. package/vendor/lodash-es/isLength.es.js +0 -7
  728. package/vendor/lodash-es/isMap.es.js +0 -8
  729. package/vendor/lodash-es/isMatch.es.js +0 -1
  730. package/vendor/lodash-es/isMatchWith.es.js +0 -1
  731. package/vendor/lodash-es/isNaN.es.js +0 -1
  732. package/vendor/lodash-es/isNative.es.js +0 -1
  733. package/vendor/lodash-es/isNil.es.js +0 -1
  734. package/vendor/lodash-es/isNull.es.js +0 -1
  735. package/vendor/lodash-es/isNumber.es.js +0 -1
  736. package/vendor/lodash-es/isObject.es.js +0 -7
  737. package/vendor/lodash-es/isObjectLike.es.js +0 -6
  738. package/vendor/lodash-es/isPlainObject.es.js +0 -1
  739. package/vendor/lodash-es/isRegExp.es.js +0 -1
  740. package/vendor/lodash-es/isSafeInteger.es.js +0 -1
  741. package/vendor/lodash-es/isSet.es.js +0 -8
  742. package/vendor/lodash-es/isString.es.js +0 -1
  743. package/vendor/lodash-es/isSymbol.es.js +0 -9
  744. package/vendor/lodash-es/isTypedArray.es.js +0 -8
  745. package/vendor/lodash-es/isUndefined.es.js +0 -1
  746. package/vendor/lodash-es/isWeakMap.es.js +0 -1
  747. package/vendor/lodash-es/isWeakSet.es.js +0 -1
  748. package/vendor/lodash-es/iteratee.es.js +0 -1
  749. package/vendor/lodash-es/join.es.js +0 -1
  750. package/vendor/lodash-es/kebabCase.es.js +0 -1
  751. package/vendor/lodash-es/keyBy.es.js +0 -1
  752. package/vendor/lodash-es/keys.es.js +0 -9
  753. package/vendor/lodash-es/keysIn.es.js +0 -1
  754. package/vendor/lodash-es/lang.default.es.js +0 -1
  755. package/vendor/lodash-es/lang.es.js +0 -1
  756. package/vendor/lodash-es/last.es.js +0 -1
  757. package/vendor/lodash-es/lastIndexOf.es.js +0 -1
  758. package/vendor/lodash-es/lodash.default.es.js +0 -1
  759. package/vendor/lodash-es/lodash.es.js +0 -1
  760. package/vendor/lodash-es/lowerCase.es.js +0 -1
  761. package/vendor/lodash-es/lowerFirst.es.js +0 -1
  762. package/vendor/lodash-es/lt.es.js +0 -1
  763. package/vendor/lodash-es/lte.es.js +0 -1
  764. package/vendor/lodash-es/map.es.js +0 -1
  765. package/vendor/lodash-es/mapKeys.es.js +0 -1
  766. package/vendor/lodash-es/mapValues.es.js +0 -1
  767. package/vendor/lodash-es/matches.es.js +0 -1
  768. package/vendor/lodash-es/matchesProperty.es.js +0 -1
  769. package/vendor/lodash-es/math.default.es.js +0 -1
  770. package/vendor/lodash-es/math.es.js +0 -1
  771. package/vendor/lodash-es/max.es.js +0 -1
  772. package/vendor/lodash-es/maxBy.es.js +0 -1
  773. package/vendor/lodash-es/mean.es.js +0 -1
  774. package/vendor/lodash-es/meanBy.es.js +0 -1
  775. package/vendor/lodash-es/memoize.es.js +0 -1
  776. package/vendor/lodash-es/merge.es.js +0 -1
  777. package/vendor/lodash-es/mergeWith.es.js +0 -1
  778. package/vendor/lodash-es/method.es.js +0 -1
  779. package/vendor/lodash-es/methodOf.es.js +0 -1
  780. package/vendor/lodash-es/min.es.js +0 -1
  781. package/vendor/lodash-es/minBy.es.js +0 -1
  782. package/vendor/lodash-es/mixin.es.js +0 -1
  783. package/vendor/lodash-es/multiply.es.js +0 -1
  784. package/vendor/lodash-es/negate.es.js +0 -1
  785. package/vendor/lodash-es/next.es.js +0 -1
  786. package/vendor/lodash-es/noop.es.js +0 -1
  787. package/vendor/lodash-es/now.es.js +0 -7
  788. package/vendor/lodash-es/nth.es.js +0 -1
  789. package/vendor/lodash-es/nthArg.es.js +0 -1
  790. package/vendor/lodash-es/number.default.es.js +0 -1
  791. package/vendor/lodash-es/number.es.js +0 -1
  792. package/vendor/lodash-es/object.default.es.js +0 -1
  793. package/vendor/lodash-es/object.es.js +0 -1
  794. package/vendor/lodash-es/omit.es.js +0 -1
  795. package/vendor/lodash-es/omitBy.es.js +0 -1
  796. package/vendor/lodash-es/once.es.js +0 -1
  797. package/vendor/lodash-es/orderBy.es.js +0 -1
  798. package/vendor/lodash-es/over.es.js +0 -1
  799. package/vendor/lodash-es/overArgs.es.js +0 -1
  800. package/vendor/lodash-es/overEvery.es.js +0 -1
  801. package/vendor/lodash-es/overSome.es.js +0 -1
  802. package/vendor/lodash-es/pad.es.js +0 -1
  803. package/vendor/lodash-es/padEnd.es.js +0 -1
  804. package/vendor/lodash-es/padStart.es.js +0 -1
  805. package/vendor/lodash-es/parseInt.es.js +0 -1
  806. package/vendor/lodash-es/partial.es.js +0 -1
  807. package/vendor/lodash-es/partialRight.es.js +0 -1
  808. package/vendor/lodash-es/partition.es.js +0 -1
  809. package/vendor/lodash-es/pick.es.js +0 -1
  810. package/vendor/lodash-es/pickBy.es.js +0 -1
  811. package/vendor/lodash-es/plant.es.js +0 -1
  812. package/vendor/lodash-es/property.es.js +0 -1
  813. package/vendor/lodash-es/propertyOf.es.js +0 -1
  814. package/vendor/lodash-es/pull.es.js +0 -1
  815. package/vendor/lodash-es/pullAll.es.js +0 -1
  816. package/vendor/lodash-es/pullAllBy.es.js +0 -1
  817. package/vendor/lodash-es/pullAllWith.es.js +0 -1
  818. package/vendor/lodash-es/pullAt.es.js +0 -1
  819. package/vendor/lodash-es/random.es.js +0 -1
  820. package/vendor/lodash-es/range.es.js +0 -1
  821. package/vendor/lodash-es/rangeRight.es.js +0 -1
  822. package/vendor/lodash-es/rearg.es.js +0 -1
  823. package/vendor/lodash-es/reduce.es.js +0 -1
  824. package/vendor/lodash-es/reduceRight.es.js +0 -1
  825. package/vendor/lodash-es/reject.es.js +0 -1
  826. package/vendor/lodash-es/remove.es.js +0 -1
  827. package/vendor/lodash-es/repeat.es.js +0 -1
  828. package/vendor/lodash-es/replace.es.js +0 -1
  829. package/vendor/lodash-es/rest.es.js +0 -1
  830. package/vendor/lodash-es/result.es.js +0 -1
  831. package/vendor/lodash-es/reverse.es.js +0 -1
  832. package/vendor/lodash-es/round.es.js +0 -1
  833. package/vendor/lodash-es/sample.es.js +0 -1
  834. package/vendor/lodash-es/sampleSize.es.js +0 -1
  835. package/vendor/lodash-es/seq.default.es.js +0 -1
  836. package/vendor/lodash-es/seq.es.js +0 -1
  837. package/vendor/lodash-es/set.es.js +0 -1
  838. package/vendor/lodash-es/setWith.es.js +0 -1
  839. package/vendor/lodash-es/shuffle.es.js +0 -1
  840. package/vendor/lodash-es/size.es.js +0 -1
  841. package/vendor/lodash-es/slice.es.js +0 -1
  842. package/vendor/lodash-es/snakeCase.es.js +0 -1
  843. package/vendor/lodash-es/some.es.js +0 -1
  844. package/vendor/lodash-es/sortBy.es.js +0 -1
  845. package/vendor/lodash-es/sortedIndex.es.js +0 -1
  846. package/vendor/lodash-es/sortedIndexBy.es.js +0 -1
  847. package/vendor/lodash-es/sortedIndexOf.es.js +0 -1
  848. package/vendor/lodash-es/sortedLastIndex.es.js +0 -1
  849. package/vendor/lodash-es/sortedLastIndexBy.es.js +0 -1
  850. package/vendor/lodash-es/sortedLastIndexOf.es.js +0 -1
  851. package/vendor/lodash-es/sortedUniq.es.js +0 -1
  852. package/vendor/lodash-es/sortedUniqBy.es.js +0 -1
  853. package/vendor/lodash-es/split.es.js +0 -1
  854. package/vendor/lodash-es/spread.es.js +0 -1
  855. package/vendor/lodash-es/startCase.es.js +0 -1
  856. package/vendor/lodash-es/startsWith.es.js +0 -1
  857. package/vendor/lodash-es/string.default.es.js +0 -1
  858. package/vendor/lodash-es/string.es.js +0 -1
  859. package/vendor/lodash-es/stubArray.es.js +0 -6
  860. package/vendor/lodash-es/stubFalse.es.js +0 -6
  861. package/vendor/lodash-es/stubObject.es.js +0 -1
  862. package/vendor/lodash-es/stubString.es.js +0 -1
  863. package/vendor/lodash-es/stubTrue.es.js +0 -1
  864. package/vendor/lodash-es/subtract.es.js +0 -1
  865. package/vendor/lodash-es/sum.es.js +0 -1
  866. package/vendor/lodash-es/sumBy.es.js +0 -1
  867. package/vendor/lodash-es/tail.es.js +0 -1
  868. package/vendor/lodash-es/take.es.js +0 -1
  869. package/vendor/lodash-es/takeRight.es.js +0 -1
  870. package/vendor/lodash-es/takeRightWhile.es.js +0 -1
  871. package/vendor/lodash-es/takeWhile.es.js +0 -1
  872. package/vendor/lodash-es/tap.es.js +0 -1
  873. package/vendor/lodash-es/template.es.js +0 -1
  874. package/vendor/lodash-es/templateSettings.es.js +0 -1
  875. package/vendor/lodash-es/throttle.es.js +0 -1
  876. package/vendor/lodash-es/thru.es.js +0 -1
  877. package/vendor/lodash-es/times.es.js +0 -1
  878. package/vendor/lodash-es/toArray.es.js +0 -1
  879. package/vendor/lodash-es/toFinite.es.js +0 -1
  880. package/vendor/lodash-es/toInteger.es.js +0 -1
  881. package/vendor/lodash-es/toIterator.es.js +0 -1
  882. package/vendor/lodash-es/toJSON.es.js +0 -1
  883. package/vendor/lodash-es/toLength.es.js +0 -1
  884. package/vendor/lodash-es/toLower.es.js +0 -1
  885. package/vendor/lodash-es/toNumber.es.js +0 -29
  886. package/vendor/lodash-es/toPairs.es.js +0 -1
  887. package/vendor/lodash-es/toPairsIn.es.js +0 -1
  888. package/vendor/lodash-es/toPath.es.js +0 -1
  889. package/vendor/lodash-es/toPlainObject.es.js +0 -1
  890. package/vendor/lodash-es/toSafeInteger.es.js +0 -1
  891. package/vendor/lodash-es/toString.es.js +0 -6
  892. package/vendor/lodash-es/toUpper.es.js +0 -1
  893. package/vendor/lodash-es/transform.es.js +0 -1
  894. package/vendor/lodash-es/trim.es.js +0 -1
  895. package/vendor/lodash-es/trimEnd.es.js +0 -1
  896. package/vendor/lodash-es/trimStart.es.js +0 -1
  897. package/vendor/lodash-es/truncate.es.js +0 -1
  898. package/vendor/lodash-es/unary.es.js +0 -1
  899. package/vendor/lodash-es/unescape.es.js +0 -1
  900. package/vendor/lodash-es/union.es.js +0 -1
  901. package/vendor/lodash-es/unionBy.es.js +0 -1
  902. package/vendor/lodash-es/unionWith.es.js +0 -1
  903. package/vendor/lodash-es/uniq.es.js +0 -1
  904. package/vendor/lodash-es/uniqBy.es.js +0 -1
  905. package/vendor/lodash-es/uniqWith.es.js +0 -1
  906. package/vendor/lodash-es/uniqueId.es.js +0 -9
  907. package/vendor/lodash-es/unset.es.js +0 -1
  908. package/vendor/lodash-es/unzip.es.js +0 -1
  909. package/vendor/lodash-es/unzipWith.es.js +0 -1
  910. package/vendor/lodash-es/update.es.js +0 -1
  911. package/vendor/lodash-es/updateWith.es.js +0 -1
  912. package/vendor/lodash-es/upperCase.es.js +0 -1
  913. package/vendor/lodash-es/upperFirst.es.js +0 -1
  914. package/vendor/lodash-es/util.default.es.js +0 -1
  915. package/vendor/lodash-es/util.es.js +0 -1
  916. package/vendor/lodash-es/value.es.js +0 -1
  917. package/vendor/lodash-es/valueOf.es.js +0 -1
  918. package/vendor/lodash-es/values.es.js +0 -1
  919. package/vendor/lodash-es/valuesIn.es.js +0 -1
  920. package/vendor/lodash-es/without.es.js +0 -1
  921. package/vendor/lodash-es/words.es.js +0 -1
  922. package/vendor/lodash-es/wrap.es.js +0 -1
  923. package/vendor/lodash-es/wrapperAt.es.js +0 -1
  924. package/vendor/lodash-es/wrapperChain.es.js +0 -1
  925. package/vendor/lodash-es/wrapperLodash.es.js +0 -1
  926. package/vendor/lodash-es/wrapperReverse.es.js +0 -1
  927. package/vendor/lodash-es/wrapperValue.es.js +0 -1
  928. package/vendor/lodash-es/xor.es.js +0 -1
  929. package/vendor/lodash-es/xorBy.es.js +0 -1
  930. package/vendor/lodash-es/xorWith.es.js +0 -1
  931. package/vendor/lodash-es/zip.es.js +0 -1
  932. package/vendor/lodash-es/zipObject.es.js +0 -1
  933. package/vendor/lodash-es/zipObjectDeep.es.js +0 -1
  934. package/vendor/lodash-es/zipWith.es.js +0 -1
  935. package/vendor/orderedmap/dist/index.es.js +0 -119
  936. package/vendor/primevue/api/api.esm.es.js +0 -276
  937. package/vendor/primevue/avatar/avatar.esm.es.js +0 -85
  938. package/vendor/primevue/avatar/style/avatarstyle.esm.es.js +0 -21
  939. package/vendor/primevue/avatargroup/avatargroup.esm.es.js +0 -27
  940. package/vendor/primevue/avatargroup/style/avatargroupstyle.esm.es.js +0 -11
  941. package/vendor/primevue/badge/badge.esm.es.js +0 -43
  942. package/vendor/primevue/badge/style/badgestyle.esm.es.js +0 -26
  943. package/vendor/primevue/base/style/basestyle.esm.es.js +0 -129
  944. package/vendor/primevue/basecomponent/basecomponent.esm.es.js +0 -475
  945. package/vendor/primevue/basedirective/basedirective.esm.es.js +0 -326
  946. package/vendor/primevue/baseicon/baseicon.esm.es.js +0 -87
  947. package/vendor/primevue/baseicon/style/baseiconstyle.esm.es.js +0 -9
  948. package/vendor/primevue/button/button.esm.es.js +0 -167
  949. package/vendor/primevue/button/style/buttonstyle.esm.es.js +0 -63
  950. package/vendor/primevue/card/card.esm.es.js +0 -41
  951. package/vendor/primevue/card/style/cardstyle.esm.es.js +0 -18
  952. package/vendor/primevue/checkbox/checkbox.esm.es.js +0 -197
  953. package/vendor/primevue/checkbox/style/checkboxstyle.esm.es.js +0 -22
  954. package/vendor/primevue/config/config.esm.es.js +0 -230
  955. package/vendor/primevue/dialog/dialog.esm.es.js +0 -641
  956. package/vendor/primevue/dialog/style/dialogstyle.esm.es.js +0 -59
  957. package/vendor/primevue/dropdown/dropdown.esm.es.js +0 -1443
  958. package/vendor/primevue/dropdown/style/dropdownstyle.esm.es.js +0 -67
  959. package/vendor/primevue/fileupload/fileupload.esm.es.js +0 -870
  960. package/vendor/primevue/fileupload/style/fileuploadstyle.esm.es.js +0 -37
  961. package/vendor/primevue/focustrap/focustrap.esm.es.js +0 -167
  962. package/vendor/primevue/focustrap/style/focustrapstyle.esm.es.js +0 -4
  963. package/vendor/primevue/icons/angledoubleleft/index.esm.es.js +0 -26
  964. package/vendor/primevue/icons/angledoubleright/index.esm.es.js +0 -26
  965. package/vendor/primevue/icons/angledown/index.esm.es.js +0 -24
  966. package/vendor/primevue/icons/angleleft/index.esm.es.js +0 -24
  967. package/vendor/primevue/icons/angleright/index.esm.es.js +0 -24
  968. package/vendor/primevue/icons/angleup/index.esm.es.js +0 -24
  969. package/vendor/primevue/icons/blank/index.esm.es.js +0 -26
  970. package/vendor/primevue/icons/check/index.esm.es.js +0 -24
  971. package/vendor/primevue/icons/chevrondown/index.esm.es.js +0 -24
  972. package/vendor/primevue/icons/exclamationtriangle/index.esm.es.js +0 -32
  973. package/vendor/primevue/icons/eye/index.esm.es.js +0 -26
  974. package/vendor/primevue/icons/eyeslash/index.esm.es.js +0 -26
  975. package/vendor/primevue/icons/infocircle/index.esm.es.js +0 -26
  976. package/vendor/primevue/icons/plus/index.esm.es.js +0 -24
  977. package/vendor/primevue/icons/refresh/index.esm.es.js +0 -26
  978. package/vendor/primevue/icons/search/index.esm.es.js +0 -26
  979. package/vendor/primevue/icons/searchminus/index.esm.es.js +0 -26
  980. package/vendor/primevue/icons/searchplus/index.esm.es.js +0 -26
  981. package/vendor/primevue/icons/spinner/index.esm.es.js +0 -24
  982. package/vendor/primevue/icons/times/index.esm.es.js +0 -24
  983. package/vendor/primevue/icons/timescircle/index.esm.es.js +0 -26
  984. package/vendor/primevue/icons/undo/index.esm.es.js +0 -26
  985. package/vendor/primevue/icons/upload/index.esm.es.js +0 -26
  986. package/vendor/primevue/icons/windowmaximize/index.esm.es.js +0 -26
  987. package/vendor/primevue/icons/windowminimize/index.esm.es.js +0 -26
  988. package/vendor/primevue/image/image.esm.es.js +0 -426
  989. package/vendor/primevue/image/style/imagestyle.esm.es.js +0 -40
  990. package/vendor/primevue/inputgroup/inputgroup.esm.es.js +0 -27
  991. package/vendor/primevue/inputgroup/style/inputgroupstyle.esm.es.js +0 -11
  992. package/vendor/primevue/inputgroupaddon/inputgroupaddon.esm.es.js +0 -27
  993. package/vendor/primevue/inputgroupaddon/style/inputgroupaddonstyle.esm.es.js +0 -11
  994. package/vendor/primevue/inputnumber/inputnumber.esm.es.js +0 -1205
  995. package/vendor/primevue/inputnumber/style/inputnumberstyle.esm.es.js +0 -40
  996. package/vendor/primevue/inputtext/inputtext.esm.es.js +0 -68
  997. package/vendor/primevue/inputtext/style/inputtextstyle.esm.es.js +0 -20
  998. package/vendor/primevue/menu/menu.esm.es.js +0 -606
  999. package/vendor/primevue/menu/style/menustyle.esm.es.js +0 -33
  1000. package/vendor/primevue/message/message.esm.es.js +0 -215
  1001. package/vendor/primevue/message/style/messagestyle.esm.es.js +0 -19
  1002. package/vendor/primevue/multiselect/multiselect.esm.es.js +0 -1631
  1003. package/vendor/primevue/multiselect/style/multiselectstyle.esm.es.js +0 -76
  1004. package/vendor/primevue/overlayeventbus/overlayeventbus.esm.es.js +0 -5
  1005. package/vendor/primevue/overlaypanel/overlaypanel.esm.es.js +0 -400
  1006. package/vendor/primevue/overlaypanel/style/overlaypanelstyle.esm.es.js +0 -19
  1007. package/vendor/primevue/paginator/paginator.esm.es.js +0 -882
  1008. package/vendor/primevue/paginator/style/paginatorstyle.esm.es.js +0 -88
  1009. package/vendor/primevue/password/password.esm.es.js +0 -516
  1010. package/vendor/primevue/password/style/passwordstyle.esm.es.js +0 -47
  1011. package/vendor/primevue/portal/portal.esm.es.js +0 -40
  1012. package/vendor/primevue/progressbar/progressbar.esm.es.js +0 -74
  1013. package/vendor/primevue/progressbar/style/progressbarstyle.esm.es.js +0 -20
  1014. package/vendor/primevue/ripple/ripple.esm.es.js +0 -118
  1015. package/vendor/primevue/ripple/style/ripplestyle.esm.es.js +0 -11
  1016. package/vendor/primevue/selectbutton/selectbutton.esm.es.js +0 -324
  1017. package/vendor/primevue/selectbutton/style/selectbuttonstyle.esm.es.js +0 -25
  1018. package/vendor/primevue/skeleton/skeleton.esm.es.js +0 -69
  1019. package/vendor/primevue/skeleton/style/skeletonstyle.esm.es.js +0 -23
  1020. package/vendor/primevue/textarea/style/textareastyle.esm.es.js +0 -19
  1021. package/vendor/primevue/textarea/textarea.esm.es.js +0 -86
  1022. package/vendor/primevue/timeline/style/timelinestyle.esm.es.js +0 -20
  1023. package/vendor/primevue/timeline/timeline.esm.es.js +0 -87
  1024. package/vendor/primevue/toast/style/toaststyle.esm.es.js +0 -81
  1025. package/vendor/primevue/toast/toast.esm.es.js +0 -500
  1026. package/vendor/primevue/toasteventbus/toasteventbus.esm.es.js +0 -5
  1027. package/vendor/primevue/toastservice/toastservice.esm.es.js +0 -25
  1028. package/vendor/primevue/tooltip/style/tooltipstyle.esm.es.js +0 -13
  1029. package/vendor/primevue/tooltip/tooltip.esm.es.js +0 -453
  1030. package/vendor/primevue/usestyle/usestyle.esm.es.js +0 -115
  1031. package/vendor/primevue/usetoast/usetoast.esm.es.js +0 -13
  1032. package/vendor/primevue/utils/utils.esm.es.js +0 -1386
  1033. package/vendor/primevue/virtualscroller/style/virtualscrollerstyle.esm.es.js +0 -9
  1034. package/vendor/primevue/virtualscroller/virtualscroller.esm.es.js +0 -931
  1035. package/vendor/prosemirror-commands/dist/index.es.js +0 -521
  1036. package/vendor/prosemirror-history/dist/index.es.js +0 -356
  1037. package/vendor/prosemirror-keymap/dist/index.es.js +0 -80
  1038. package/vendor/prosemirror-model/dist/index.es.js +0 -3205
  1039. package/vendor/prosemirror-schema-list/dist/index.es.js +0 -129
  1040. package/vendor/prosemirror-state/dist/index.es.js +0 -934
  1041. package/vendor/prosemirror-transform/dist/index.es.js +0 -1824
  1042. package/vendor/prosemirror-view/dist/index.es.js +0 -5150
  1043. package/vendor/rope-sequence/dist/index.es.js +0 -183
  1044. package/vendor/simplebar-core/dist/index.es.js +0 -767
  1045. package/vendor/simplebar-vue/dist/simplebar-vue.esm.es.js +0 -189
  1046. package/vendor/single-spa/lib/es2015/esm/single-spa.min.es.js +0 -669
  1047. package/vendor/tippy.js/dist/tippy.esm.es.js +0 -1168
  1048. package/vendor/vee-validate/dist/vee-validate.esm.es.js +0 -2042
  1049. package/vendor/vue-advanced-cropper/dist/index.esm-bundler.es.js +0 -1382
  1050. package/vendor/vue-demi/lib/index.es.js +0 -1
  1051. package/vendor/w3c-keyname/index.es.js +0 -104
  1052. package/wangsvue.esm.browser.js +0 -67705
@@ -1,2042 +0,0 @@
1
- import { ref, reactive, computed, unref, onMounted, isRef, watch, provide, toValue, readonly, getCurrentInstance, onBeforeUnmount, watchEffect, nextTick, shallowRef, inject } from "vue";
2
- /**
3
- * vee-validate v4.13.2
4
- * (c) 2024 Abdelrahman Awad
5
- * @license MIT
6
- */
7
- function isCallable(fn) {
8
- return typeof fn === "function";
9
- }
10
- function isNullOrUndefined(value) {
11
- return value === null || value === void 0;
12
- }
13
- const isObject = (obj) => obj !== null && !!obj && typeof obj === "object" && !Array.isArray(obj);
14
- function isIndex(value) {
15
- return Number(value) >= 0;
16
- }
17
- function toNumber(value) {
18
- const n = parseFloat(value);
19
- return isNaN(n) ? value : n;
20
- }
21
- function isObjectLike(value) {
22
- return typeof value === "object" && value !== null;
23
- }
24
- function getTag(value) {
25
- if (value == null) {
26
- return value === void 0 ? "[object Undefined]" : "[object Null]";
27
- }
28
- return Object.prototype.toString.call(value);
29
- }
30
- function isPlainObject(value) {
31
- if (!isObjectLike(value) || getTag(value) !== "[object Object]") {
32
- return false;
33
- }
34
- if (Object.getPrototypeOf(value) === null) {
35
- return true;
36
- }
37
- let proto = value;
38
- while (Object.getPrototypeOf(proto) !== null) {
39
- proto = Object.getPrototypeOf(proto);
40
- }
41
- return Object.getPrototypeOf(value) === proto;
42
- }
43
- function merge(target, source) {
44
- Object.keys(source).forEach((key) => {
45
- if (isPlainObject(source[key]) && isPlainObject(target[key])) {
46
- if (!target[key]) {
47
- target[key] = {};
48
- }
49
- merge(target[key], source[key]);
50
- return;
51
- }
52
- target[key] = source[key];
53
- });
54
- return target;
55
- }
56
- function normalizeFormPath(path) {
57
- const pathArr = path.split(".");
58
- if (!pathArr.length) {
59
- return "";
60
- }
61
- let fullPath = String(pathArr[0]);
62
- for (let i = 1; i < pathArr.length; i++) {
63
- if (isIndex(pathArr[i])) {
64
- fullPath += `[${pathArr[i]}]`;
65
- continue;
66
- }
67
- fullPath += `.${pathArr[i]}`;
68
- }
69
- return fullPath;
70
- }
71
- const RULES = {};
72
- function resolveRule(id) {
73
- return RULES[id];
74
- }
75
- function set(obj, key, val) {
76
- if (typeof val.value === "object") val.value = klona(val.value);
77
- if (!val.enumerable || val.get || val.set || !val.configurable || !val.writable || key === "__proto__") {
78
- Object.defineProperty(obj, key, val);
79
- } else obj[key] = val.value;
80
- }
81
- function klona(x) {
82
- if (typeof x !== "object") return x;
83
- var i = 0, k, list, tmp, str = Object.prototype.toString.call(x);
84
- if (str === "[object Object]") {
85
- tmp = Object.create(x.__proto__ || null);
86
- } else if (str === "[object Array]") {
87
- tmp = Array(x.length);
88
- } else if (str === "[object Set]") {
89
- tmp = /* @__PURE__ */ new Set();
90
- x.forEach(function(val) {
91
- tmp.add(klona(val));
92
- });
93
- } else if (str === "[object Map]") {
94
- tmp = /* @__PURE__ */ new Map();
95
- x.forEach(function(val, key) {
96
- tmp.set(klona(key), klona(val));
97
- });
98
- } else if (str === "[object Date]") {
99
- tmp = /* @__PURE__ */ new Date(+x);
100
- } else if (str === "[object RegExp]") {
101
- tmp = new RegExp(x.source, x.flags);
102
- } else if (str === "[object DataView]") {
103
- tmp = new x.constructor(klona(x.buffer));
104
- } else if (str === "[object ArrayBuffer]") {
105
- tmp = x.slice(0);
106
- } else if (str.slice(-6) === "Array]") {
107
- tmp = new x.constructor(x);
108
- }
109
- if (tmp) {
110
- for (list = Object.getOwnPropertySymbols(x); i < list.length; i++) {
111
- set(tmp, list[i], Object.getOwnPropertyDescriptor(x, list[i]));
112
- }
113
- for (i = 0, list = Object.getOwnPropertyNames(x); i < list.length; i++) {
114
- if (Object.hasOwnProperty.call(tmp, k = list[i]) && tmp[k] === x[k]) continue;
115
- set(tmp, k, Object.getOwnPropertyDescriptor(x, k));
116
- }
117
- }
118
- return tmp || x;
119
- }
120
- const FormContextKey = Symbol("vee-validate-form");
121
- const FieldContextKey = Symbol("vee-validate-field-instance");
122
- const IS_ABSENT = Symbol("Default empty value");
123
- const isClient = typeof window !== "undefined";
124
- function isLocator(value) {
125
- return isCallable(value) && !!value.__locatorRef;
126
- }
127
- function isTypedSchema(value) {
128
- return !!value && isCallable(value.parse) && value.__type === "VVTypedSchema";
129
- }
130
- function isYupValidator(value) {
131
- return !!value && isCallable(value.validate);
132
- }
133
- function hasCheckedAttr(type) {
134
- return type === "checkbox" || type === "radio";
135
- }
136
- function isContainerValue(value) {
137
- return isObject(value) || Array.isArray(value);
138
- }
139
- function isEmptyContainer(value) {
140
- if (Array.isArray(value)) {
141
- return value.length === 0;
142
- }
143
- return isObject(value) && Object.keys(value).length === 0;
144
- }
145
- function isNotNestedPath(path) {
146
- return /^\[.+\]$/i.test(path);
147
- }
148
- function isNativeMultiSelect(el) {
149
- return isNativeSelect(el) && el.multiple;
150
- }
151
- function isNativeSelect(el) {
152
- return el.tagName === "SELECT";
153
- }
154
- function isFormSubmitEvent(evt) {
155
- return isEvent(evt) && evt.target && "submit" in evt.target;
156
- }
157
- function isEvent(evt) {
158
- if (!evt) {
159
- return false;
160
- }
161
- if (typeof Event !== "undefined" && isCallable(Event) && evt instanceof Event) {
162
- return true;
163
- }
164
- if (evt && evt.srcElement) {
165
- return true;
166
- }
167
- return false;
168
- }
169
- function isEqual(a, b) {
170
- if (a === b)
171
- return true;
172
- if (a && b && typeof a === "object" && typeof b === "object") {
173
- if (a.constructor !== b.constructor)
174
- return false;
175
- var length, i, keys;
176
- if (Array.isArray(a)) {
177
- length = a.length;
178
- if (length != b.length)
179
- return false;
180
- for (i = length; i-- !== 0; )
181
- if (!isEqual(a[i], b[i]))
182
- return false;
183
- return true;
184
- }
185
- if (a instanceof Map && b instanceof Map) {
186
- if (a.size !== b.size)
187
- return false;
188
- for (i of a.entries())
189
- if (!b.has(i[0]))
190
- return false;
191
- for (i of a.entries())
192
- if (!isEqual(i[1], b.get(i[0])))
193
- return false;
194
- return true;
195
- }
196
- if (isFile(a) && isFile(b)) {
197
- if (a.size !== b.size)
198
- return false;
199
- if (a.name !== b.name)
200
- return false;
201
- if (a.lastModified !== b.lastModified)
202
- return false;
203
- if (a.type !== b.type)
204
- return false;
205
- return true;
206
- }
207
- if (a instanceof Set && b instanceof Set) {
208
- if (a.size !== b.size)
209
- return false;
210
- for (i of a.entries())
211
- if (!b.has(i[0]))
212
- return false;
213
- return true;
214
- }
215
- if (ArrayBuffer.isView(a) && ArrayBuffer.isView(b)) {
216
- length = a.length;
217
- if (length != b.length)
218
- return false;
219
- for (i = length; i-- !== 0; )
220
- if (a[i] !== b[i])
221
- return false;
222
- return true;
223
- }
224
- if (a.constructor === RegExp)
225
- return a.source === b.source && a.flags === b.flags;
226
- if (a.valueOf !== Object.prototype.valueOf)
227
- return a.valueOf() === b.valueOf();
228
- if (a.toString !== Object.prototype.toString)
229
- return a.toString() === b.toString();
230
- keys = Object.keys(a);
231
- length = keys.length;
232
- for (i = length; i-- !== 0; ) {
233
- var key = keys[i];
234
- if (!isEqual(a[key], b[key]))
235
- return false;
236
- }
237
- return true;
238
- }
239
- return a !== a && b !== b;
240
- }
241
- function isFile(a) {
242
- if (!isClient) {
243
- return false;
244
- }
245
- return a instanceof File;
246
- }
247
- function cleanupNonNestedPath(path) {
248
- if (isNotNestedPath(path)) {
249
- return path.replace(/\[|\]/gi, "");
250
- }
251
- return path;
252
- }
253
- function getFromPath(object, path, fallback) {
254
- if (!object) {
255
- return fallback;
256
- }
257
- if (isNotNestedPath(path)) {
258
- return object[cleanupNonNestedPath(path)];
259
- }
260
- const resolvedValue = (path || "").split(/\.|\[(\d+)\]/).filter(Boolean).reduce((acc, propKey) => {
261
- if (isContainerValue(acc) && propKey in acc) {
262
- return acc[propKey];
263
- }
264
- return fallback;
265
- }, object);
266
- return resolvedValue;
267
- }
268
- function setInPath(object, path, value) {
269
- if (isNotNestedPath(path)) {
270
- object[cleanupNonNestedPath(path)] = value;
271
- return;
272
- }
273
- const keys = path.split(/\.|\[(\d+)\]/).filter(Boolean);
274
- let acc = object;
275
- for (let i = 0; i < keys.length; i++) {
276
- if (i === keys.length - 1) {
277
- acc[keys[i]] = value;
278
- return;
279
- }
280
- if (!(keys[i] in acc) || isNullOrUndefined(acc[keys[i]])) {
281
- acc[keys[i]] = isIndex(keys[i + 1]) ? [] : {};
282
- }
283
- acc = acc[keys[i]];
284
- }
285
- }
286
- function unset(object, key) {
287
- if (Array.isArray(object) && isIndex(key)) {
288
- object.splice(Number(key), 1);
289
- return;
290
- }
291
- if (isObject(object)) {
292
- delete object[key];
293
- }
294
- }
295
- function unsetPath(object, path) {
296
- if (isNotNestedPath(path)) {
297
- delete object[cleanupNonNestedPath(path)];
298
- return;
299
- }
300
- const keys = path.split(/\.|\[(\d+)\]/).filter(Boolean);
301
- let acc = object;
302
- for (let i = 0; i < keys.length; i++) {
303
- if (i === keys.length - 1) {
304
- unset(acc, keys[i]);
305
- break;
306
- }
307
- if (!(keys[i] in acc) || isNullOrUndefined(acc[keys[i]])) {
308
- break;
309
- }
310
- acc = acc[keys[i]];
311
- }
312
- const pathValues = keys.map((_, idx) => {
313
- return getFromPath(object, keys.slice(0, idx).join("."));
314
- });
315
- for (let i = pathValues.length - 1; i >= 0; i--) {
316
- if (!isEmptyContainer(pathValues[i])) {
317
- continue;
318
- }
319
- if (i === 0) {
320
- unset(object, keys[0]);
321
- continue;
322
- }
323
- unset(pathValues[i - 1], keys[i - 1]);
324
- }
325
- }
326
- function keysOf(record) {
327
- return Object.keys(record);
328
- }
329
- function injectWithSelf(symbol, def = void 0) {
330
- const vm = getCurrentInstance();
331
- return (vm === null || vm === void 0 ? void 0 : vm.provides[symbol]) || inject(symbol, def);
332
- }
333
- function resolveNextCheckboxValue(currentValue, checkedValue, uncheckedValue) {
334
- if (Array.isArray(currentValue)) {
335
- const newVal = [...currentValue];
336
- const idx = newVal.findIndex((v) => isEqual(v, checkedValue));
337
- idx >= 0 ? newVal.splice(idx, 1) : newVal.push(checkedValue);
338
- return newVal;
339
- }
340
- return isEqual(currentValue, checkedValue) ? uncheckedValue : checkedValue;
341
- }
342
- function debounceAsync(inner, ms = 0) {
343
- let timer = null;
344
- let resolves = [];
345
- return function(...args) {
346
- if (timer) {
347
- clearTimeout(timer);
348
- }
349
- timer = setTimeout(() => {
350
- const result = inner(...args);
351
- resolves.forEach((r) => r(result));
352
- resolves = [];
353
- }, ms);
354
- return new Promise((resolve) => resolves.push(resolve));
355
- };
356
- }
357
- function applyModelModifiers(value, modifiers) {
358
- if (!isObject(modifiers)) {
359
- return value;
360
- }
361
- if (modifiers.number) {
362
- return toNumber(value);
363
- }
364
- return value;
365
- }
366
- function withLatest(fn, onDone) {
367
- let latestRun;
368
- return async function runLatest(...args) {
369
- const pending = fn(...args);
370
- latestRun = pending;
371
- const result = await pending;
372
- if (pending !== latestRun) {
373
- return result;
374
- }
375
- latestRun = void 0;
376
- return onDone(result, args);
377
- };
378
- }
379
- function normalizeErrorItem(message) {
380
- return Array.isArray(message) ? message : message ? [message] : [];
381
- }
382
- function omit(obj, keys) {
383
- const target = {};
384
- for (const key in obj) {
385
- if (!keys.includes(key)) {
386
- target[key] = obj[key];
387
- }
388
- }
389
- return target;
390
- }
391
- function debounceNextTick(inner) {
392
- let lastTick = null;
393
- let resolves = [];
394
- return function(...args) {
395
- const thisTick = nextTick(() => {
396
- if (lastTick !== thisTick) {
397
- return;
398
- }
399
- const result = inner(...args);
400
- resolves.forEach((r) => r(result));
401
- resolves = [];
402
- lastTick = null;
403
- });
404
- lastTick = thisTick;
405
- return new Promise((resolve) => resolves.push(resolve));
406
- };
407
- }
408
- function getBoundValue(el) {
409
- if (hasValueBinding(el)) {
410
- return el._value;
411
- }
412
- return void 0;
413
- }
414
- function hasValueBinding(el) {
415
- return "_value" in el;
416
- }
417
- function parseInputValue(el) {
418
- if (el.type === "number") {
419
- return Number.isNaN(el.valueAsNumber) ? el.value : el.valueAsNumber;
420
- }
421
- if (el.type === "range") {
422
- return Number.isNaN(el.valueAsNumber) ? el.value : el.valueAsNumber;
423
- }
424
- return el.value;
425
- }
426
- function normalizeEventValue(value) {
427
- if (!isEvent(value)) {
428
- return value;
429
- }
430
- const input = value.target;
431
- if (hasCheckedAttr(input.type) && hasValueBinding(input)) {
432
- return getBoundValue(input);
433
- }
434
- if (input.type === "file" && input.files) {
435
- const files = Array.from(input.files);
436
- return input.multiple ? files : files[0];
437
- }
438
- if (isNativeMultiSelect(input)) {
439
- return Array.from(input.options).filter((opt) => opt.selected && !opt.disabled).map(getBoundValue);
440
- }
441
- if (isNativeSelect(input)) {
442
- const selectedOption = Array.from(input.options).find((opt) => opt.selected);
443
- return selectedOption ? getBoundValue(selectedOption) : input.value;
444
- }
445
- return parseInputValue(input);
446
- }
447
- function normalizeRules(rules) {
448
- const acc = {};
449
- Object.defineProperty(acc, "_$$isNormalized", {
450
- value: true,
451
- writable: false,
452
- enumerable: false,
453
- configurable: false
454
- });
455
- if (!rules) {
456
- return acc;
457
- }
458
- if (isObject(rules) && rules._$$isNormalized) {
459
- return rules;
460
- }
461
- if (isObject(rules)) {
462
- return Object.keys(rules).reduce((prev, curr) => {
463
- const params = normalizeParams(rules[curr]);
464
- if (rules[curr] !== false) {
465
- prev[curr] = buildParams(params);
466
- }
467
- return prev;
468
- }, acc);
469
- }
470
- if (typeof rules !== "string") {
471
- return acc;
472
- }
473
- return rules.split("|").reduce((prev, rule) => {
474
- const parsedRule = parseRule(rule);
475
- if (!parsedRule.name) {
476
- return prev;
477
- }
478
- prev[parsedRule.name] = buildParams(parsedRule.params);
479
- return prev;
480
- }, acc);
481
- }
482
- function normalizeParams(params) {
483
- if (params === true) {
484
- return [];
485
- }
486
- if (Array.isArray(params)) {
487
- return params;
488
- }
489
- if (isObject(params)) {
490
- return params;
491
- }
492
- return [params];
493
- }
494
- function buildParams(provided) {
495
- const mapValueToLocator = (value) => {
496
- if (typeof value === "string" && value[0] === "@") {
497
- return createLocator(value.slice(1));
498
- }
499
- return value;
500
- };
501
- if (Array.isArray(provided)) {
502
- return provided.map(mapValueToLocator);
503
- }
504
- if (provided instanceof RegExp) {
505
- return [provided];
506
- }
507
- return Object.keys(provided).reduce((prev, key) => {
508
- prev[key] = mapValueToLocator(provided[key]);
509
- return prev;
510
- }, {});
511
- }
512
- const parseRule = (rule) => {
513
- let params = [];
514
- const name = rule.split(":")[0];
515
- if (rule.includes(":")) {
516
- params = rule.split(":").slice(1).join(":").split(",");
517
- }
518
- return { name, params };
519
- };
520
- function createLocator(value) {
521
- const locator = (crossTable) => {
522
- const val = getFromPath(crossTable, value) || crossTable[value];
523
- return val;
524
- };
525
- locator.__locatorRef = value;
526
- return locator;
527
- }
528
- function extractLocators(params) {
529
- if (Array.isArray(params)) {
530
- return params.filter(isLocator);
531
- }
532
- return keysOf(params).filter((key) => isLocator(params[key])).map((key) => params[key]);
533
- }
534
- const DEFAULT_CONFIG = {
535
- generateMessage: ({ field }) => `${field} is not valid.`,
536
- bails: true,
537
- validateOnBlur: true,
538
- validateOnChange: true,
539
- validateOnInput: false,
540
- validateOnModelUpdate: true
541
- };
542
- let currentConfig = Object.assign({}, DEFAULT_CONFIG);
543
- const getConfig = () => currentConfig;
544
- async function validate(value, rules, options = {}) {
545
- const shouldBail = options === null || options === void 0 ? void 0 : options.bails;
546
- const field = {
547
- name: (options === null || options === void 0 ? void 0 : options.name) || "{field}",
548
- rules,
549
- label: options === null || options === void 0 ? void 0 : options.label,
550
- bails: shouldBail !== null && shouldBail !== void 0 ? shouldBail : true,
551
- formData: (options === null || options === void 0 ? void 0 : options.values) || {}
552
- };
553
- const result = await _validate(field, value);
554
- return Object.assign(Object.assign({}, result), { valid: !result.errors.length });
555
- }
556
- async function _validate(field, value) {
557
- const rules = field.rules;
558
- if (isTypedSchema(rules) || isYupValidator(rules)) {
559
- return validateFieldWithTypedSchema(value, Object.assign(Object.assign({}, field), { rules }));
560
- }
561
- if (isCallable(rules) || Array.isArray(rules)) {
562
- const ctx = {
563
- field: field.label || field.name,
564
- name: field.name,
565
- label: field.label,
566
- form: field.formData,
567
- value
568
- };
569
- const pipeline = Array.isArray(rules) ? rules : [rules];
570
- const length2 = pipeline.length;
571
- const errors2 = [];
572
- for (let i = 0; i < length2; i++) {
573
- const rule = pipeline[i];
574
- const result = await rule(value, ctx);
575
- const isValid = typeof result !== "string" && !Array.isArray(result) && result;
576
- if (isValid) {
577
- continue;
578
- }
579
- if (Array.isArray(result)) {
580
- errors2.push(...result);
581
- } else {
582
- const message = typeof result === "string" ? result : _generateFieldError(ctx);
583
- errors2.push(message);
584
- }
585
- if (field.bails) {
586
- return {
587
- errors: errors2
588
- };
589
- }
590
- }
591
- return {
592
- errors: errors2
593
- };
594
- }
595
- const normalizedContext = Object.assign(Object.assign({}, field), { rules: normalizeRules(rules) });
596
- const errors = [];
597
- const rulesKeys = Object.keys(normalizedContext.rules);
598
- const length = rulesKeys.length;
599
- for (let i = 0; i < length; i++) {
600
- const rule = rulesKeys[i];
601
- const result = await _test(normalizedContext, value, {
602
- name: rule,
603
- params: normalizedContext.rules[rule]
604
- });
605
- if (result.error) {
606
- errors.push(result.error);
607
- if (field.bails) {
608
- return {
609
- errors
610
- };
611
- }
612
- }
613
- }
614
- return {
615
- errors
616
- };
617
- }
618
- function isYupError(err) {
619
- return !!err && err.name === "ValidationError";
620
- }
621
- function yupToTypedSchema(yupSchema) {
622
- const schema = {
623
- __type: "VVTypedSchema",
624
- async parse(values, context) {
625
- var _a;
626
- try {
627
- const output = await yupSchema.validate(values, { abortEarly: false, context: (context === null || context === void 0 ? void 0 : context.formData) || {} });
628
- return {
629
- output,
630
- errors: []
631
- };
632
- } catch (err) {
633
- if (!isYupError(err)) {
634
- throw err;
635
- }
636
- if (!((_a = err.inner) === null || _a === void 0 ? void 0 : _a.length) && err.errors.length) {
637
- return { errors: [{ path: err.path, errors: err.errors }] };
638
- }
639
- const errors = err.inner.reduce((acc, curr) => {
640
- const path = curr.path || "";
641
- if (!acc[path]) {
642
- acc[path] = { errors: [], path };
643
- }
644
- acc[path].errors.push(...curr.errors);
645
- return acc;
646
- }, {});
647
- return { errors: Object.values(errors) };
648
- }
649
- }
650
- };
651
- return schema;
652
- }
653
- async function validateFieldWithTypedSchema(value, context) {
654
- const typedSchema = isTypedSchema(context.rules) ? context.rules : yupToTypedSchema(context.rules);
655
- const result = await typedSchema.parse(value, { formData: context.formData });
656
- const messages = [];
657
- for (const error of result.errors) {
658
- if (error.errors.length) {
659
- messages.push(...error.errors);
660
- }
661
- }
662
- return {
663
- value: result.value,
664
- errors: messages
665
- };
666
- }
667
- async function _test(field, value, rule) {
668
- const validator = resolveRule(rule.name);
669
- if (!validator) {
670
- throw new Error(`No such validator '${rule.name}' exists.`);
671
- }
672
- const params = fillTargetValues(rule.params, field.formData);
673
- const ctx = {
674
- field: field.label || field.name,
675
- name: field.name,
676
- label: field.label,
677
- value,
678
- form: field.formData,
679
- rule: Object.assign(Object.assign({}, rule), { params })
680
- };
681
- const result = await validator(value, params, ctx);
682
- if (typeof result === "string") {
683
- return {
684
- error: result
685
- };
686
- }
687
- return {
688
- error: result ? void 0 : _generateFieldError(ctx)
689
- };
690
- }
691
- function _generateFieldError(fieldCtx) {
692
- const message = getConfig().generateMessage;
693
- if (!message) {
694
- return "Field is invalid";
695
- }
696
- return message(fieldCtx);
697
- }
698
- function fillTargetValues(params, crossTable) {
699
- const normalize = (value) => {
700
- if (isLocator(value)) {
701
- return value(crossTable);
702
- }
703
- return value;
704
- };
705
- if (Array.isArray(params)) {
706
- return params.map(normalize);
707
- }
708
- return Object.keys(params).reduce((acc, param) => {
709
- acc[param] = normalize(params[param]);
710
- return acc;
711
- }, {});
712
- }
713
- async function validateTypedSchema(schema, values) {
714
- const typedSchema = isTypedSchema(schema) ? schema : yupToTypedSchema(schema);
715
- const validationResult = await typedSchema.parse(klona(values));
716
- const results = {};
717
- const errors = {};
718
- for (const error of validationResult.errors) {
719
- const messages = error.errors;
720
- const path = (error.path || "").replace(/\["(\d+)"\]/g, (_, m) => {
721
- return `[${m}]`;
722
- });
723
- results[path] = { valid: !messages.length, errors: messages };
724
- if (messages.length) {
725
- errors[path] = messages[0];
726
- }
727
- }
728
- return {
729
- valid: !validationResult.errors.length,
730
- results,
731
- errors,
732
- values: validationResult.value,
733
- source: "schema"
734
- };
735
- }
736
- async function validateObjectSchema(schema, values, opts) {
737
- const paths = keysOf(schema);
738
- const validations = paths.map(async (path) => {
739
- var _a, _b, _c;
740
- const strings = (_a = opts === null || opts === void 0 ? void 0 : opts.names) === null || _a === void 0 ? void 0 : _a[path];
741
- const fieldResult = await validate(getFromPath(values, path), schema[path], {
742
- name: (strings === null || strings === void 0 ? void 0 : strings.name) || path,
743
- label: strings === null || strings === void 0 ? void 0 : strings.label,
744
- values,
745
- bails: (_c = (_b = opts === null || opts === void 0 ? void 0 : opts.bailsMap) === null || _b === void 0 ? void 0 : _b[path]) !== null && _c !== void 0 ? _c : true
746
- });
747
- return Object.assign(Object.assign({}, fieldResult), { path });
748
- });
749
- let isAllValid = true;
750
- const validationResults = await Promise.all(validations);
751
- const results = {};
752
- const errors = {};
753
- for (const result of validationResults) {
754
- results[result.path] = {
755
- valid: result.valid,
756
- errors: result.errors
757
- };
758
- if (!result.valid) {
759
- isAllValid = false;
760
- errors[result.path] = result.errors[0];
761
- }
762
- }
763
- return {
764
- valid: isAllValid,
765
- results,
766
- errors,
767
- source: "schema"
768
- };
769
- }
770
- let ID_COUNTER = 0;
771
- function useFieldState(path, init) {
772
- const { value, initialValue, setInitialValue } = _useFieldValue(path, init.modelValue, init.form);
773
- if (!init.form) {
774
- let setState2 = function(state2) {
775
- var _a;
776
- if ("value" in state2) {
777
- value.value = state2.value;
778
- }
779
- if ("errors" in state2) {
780
- setErrors(state2.errors);
781
- }
782
- if ("touched" in state2) {
783
- meta.touched = (_a = state2.touched) !== null && _a !== void 0 ? _a : meta.touched;
784
- }
785
- if ("initialValue" in state2) {
786
- setInitialValue(state2.initialValue);
787
- }
788
- };
789
- const { errors: errors2, setErrors } = createFieldErrors();
790
- const id = ID_COUNTER >= Number.MAX_SAFE_INTEGER ? 0 : ++ID_COUNTER;
791
- const meta = createFieldMeta(value, initialValue, errors2, init.schema);
792
- return {
793
- id,
794
- path,
795
- value,
796
- initialValue,
797
- meta,
798
- flags: { pendingUnmount: { [id]: false }, pendingReset: false },
799
- errors: errors2,
800
- setState: setState2
801
- };
802
- }
803
- const state = init.form.createPathState(path, {
804
- bails: init.bails,
805
- label: init.label,
806
- type: init.type,
807
- validate: init.validate,
808
- schema: init.schema
809
- });
810
- const errors = computed(() => state.errors);
811
- function setState(state2) {
812
- var _a, _b, _c;
813
- if ("value" in state2) {
814
- value.value = state2.value;
815
- }
816
- if ("errors" in state2) {
817
- (_a = init.form) === null || _a === void 0 ? void 0 : _a.setFieldError(unref(path), state2.errors);
818
- }
819
- if ("touched" in state2) {
820
- (_b = init.form) === null || _b === void 0 ? void 0 : _b.setFieldTouched(unref(path), (_c = state2.touched) !== null && _c !== void 0 ? _c : false);
821
- }
822
- if ("initialValue" in state2) {
823
- setInitialValue(state2.initialValue);
824
- }
825
- }
826
- return {
827
- id: Array.isArray(state.id) ? state.id[state.id.length - 1] : state.id,
828
- path,
829
- value,
830
- errors,
831
- meta: state,
832
- initialValue,
833
- flags: state.__flags,
834
- setState
835
- };
836
- }
837
- function _useFieldValue(path, modelValue, form) {
838
- const modelRef = ref(unref(modelValue));
839
- function resolveInitialValue2() {
840
- if (!form) {
841
- return unref(modelRef);
842
- }
843
- return getFromPath(form.initialValues.value, unref(path), unref(modelRef));
844
- }
845
- function setInitialValue(value2) {
846
- if (!form) {
847
- modelRef.value = value2;
848
- return;
849
- }
850
- form.setFieldInitialValue(unref(path), value2, true);
851
- }
852
- const initialValue = computed(resolveInitialValue2);
853
- if (!form) {
854
- const value2 = ref(resolveInitialValue2());
855
- return {
856
- value: value2,
857
- initialValue,
858
- setInitialValue
859
- };
860
- }
861
- const currentValue = resolveModelValue(modelValue, form, initialValue, path);
862
- form.stageInitialValue(unref(path), currentValue, true);
863
- const value = computed({
864
- get() {
865
- return getFromPath(form.values, unref(path));
866
- },
867
- set(newVal) {
868
- form.setFieldValue(unref(path), newVal, false);
869
- }
870
- });
871
- return {
872
- value,
873
- initialValue,
874
- setInitialValue
875
- };
876
- }
877
- function resolveModelValue(modelValue, form, initialValue, path) {
878
- if (isRef(modelValue)) {
879
- return unref(modelValue);
880
- }
881
- if (modelValue !== void 0) {
882
- return modelValue;
883
- }
884
- return getFromPath(form.values, unref(path), unref(initialValue));
885
- }
886
- function createFieldMeta(currentValue, initialValue, errors, schema) {
887
- const isRequired = computed(() => {
888
- var _a, _b, _c;
889
- return (_c = (_b = (_a = toValue(schema)) === null || _a === void 0 ? void 0 : _a.describe) === null || _b === void 0 ? void 0 : _b.call(_a).required) !== null && _c !== void 0 ? _c : false;
890
- });
891
- const meta = reactive({
892
- touched: false,
893
- pending: false,
894
- valid: true,
895
- required: isRequired,
896
- validated: !!unref(errors).length,
897
- initialValue: computed(() => unref(initialValue)),
898
- dirty: computed(() => {
899
- return !isEqual(unref(currentValue), unref(initialValue));
900
- })
901
- });
902
- watch(errors, (value) => {
903
- meta.valid = !value.length;
904
- }, {
905
- immediate: true,
906
- flush: "sync"
907
- });
908
- return meta;
909
- }
910
- function createFieldErrors() {
911
- const errors = ref([]);
912
- return {
913
- errors,
914
- setErrors: (messages) => {
915
- errors.value = normalizeErrorItem(messages);
916
- }
917
- };
918
- }
919
- function useField(path, rules, opts) {
920
- if (hasCheckedAttr(opts === null || opts === void 0 ? void 0 : opts.type)) {
921
- return useFieldWithChecked(path, rules, opts);
922
- }
923
- return _useField(path, rules, opts);
924
- }
925
- function _useField(path, rules, opts) {
926
- const { initialValue: modelValue, validateOnMount, bails, type, checkedValue, label, validateOnValueUpdate, uncheckedValue, controlled, keepValueOnUnmount, syncVModel, form: controlForm } = normalizeOptions(opts);
927
- const injectedForm = controlled ? injectWithSelf(FormContextKey) : void 0;
928
- const form = controlForm || injectedForm;
929
- const name = computed(() => normalizeFormPath(toValue(path)));
930
- const validator = computed(() => {
931
- const schema = toValue(form === null || form === void 0 ? void 0 : form.schema);
932
- if (schema) {
933
- return void 0;
934
- }
935
- const rulesValue = unref(rules);
936
- if (isYupValidator(rulesValue) || isTypedSchema(rulesValue) || isCallable(rulesValue) || Array.isArray(rulesValue)) {
937
- return rulesValue;
938
- }
939
- return normalizeRules(rulesValue);
940
- });
941
- const isTyped = !isCallable(validator.value) && isTypedSchema(toValue(rules));
942
- const { id, value, initialValue, meta, setState, errors, flags } = useFieldState(name, {
943
- modelValue,
944
- form,
945
- bails,
946
- label,
947
- type,
948
- validate: validator.value ? validate$1 : void 0,
949
- schema: isTyped ? rules : void 0
950
- });
951
- const errorMessage = computed(() => errors.value[0]);
952
- if (syncVModel) {
953
- useVModel({
954
- value,
955
- prop: syncVModel,
956
- handleChange,
957
- shouldValidate: () => validateOnValueUpdate && !flags.pendingReset
958
- });
959
- }
960
- const handleBlur = (evt, shouldValidate = false) => {
961
- meta.touched = true;
962
- if (shouldValidate) {
963
- validateWithStateMutation();
964
- }
965
- };
966
- async function validateCurrentValue(mode) {
967
- var _a, _b;
968
- if (form === null || form === void 0 ? void 0 : form.validateSchema) {
969
- const { results } = await form.validateSchema(mode);
970
- return (_a = results[toValue(name)]) !== null && _a !== void 0 ? _a : { valid: true, errors: [] };
971
- }
972
- if (validator.value) {
973
- return validate(value.value, validator.value, {
974
- name: toValue(name),
975
- label: toValue(label),
976
- values: (_b = form === null || form === void 0 ? void 0 : form.values) !== null && _b !== void 0 ? _b : {},
977
- bails
978
- });
979
- }
980
- return { valid: true, errors: [] };
981
- }
982
- const validateWithStateMutation = withLatest(async () => {
983
- meta.pending = true;
984
- meta.validated = true;
985
- return validateCurrentValue("validated-only");
986
- }, (result) => {
987
- if (flags.pendingUnmount[field.id]) {
988
- return result;
989
- }
990
- setState({ errors: result.errors });
991
- meta.pending = false;
992
- meta.valid = result.valid;
993
- return result;
994
- });
995
- const validateValidStateOnly = withLatest(async () => {
996
- return validateCurrentValue("silent");
997
- }, (result) => {
998
- meta.valid = result.valid;
999
- return result;
1000
- });
1001
- function validate$1(opts2) {
1002
- if ((opts2 === null || opts2 === void 0 ? void 0 : opts2.mode) === "silent") {
1003
- return validateValidStateOnly();
1004
- }
1005
- return validateWithStateMutation();
1006
- }
1007
- function handleChange(e, shouldValidate = true) {
1008
- const newValue = normalizeEventValue(e);
1009
- setValue(newValue, shouldValidate);
1010
- }
1011
- onMounted(() => {
1012
- if (validateOnMount) {
1013
- return validateWithStateMutation();
1014
- }
1015
- if (!form || !form.validateSchema) {
1016
- validateValidStateOnly();
1017
- }
1018
- });
1019
- function setTouched(isTouched) {
1020
- meta.touched = isTouched;
1021
- }
1022
- function resetField(state) {
1023
- var _a;
1024
- const newValue = state && "value" in state ? state.value : initialValue.value;
1025
- setState({
1026
- value: klona(newValue),
1027
- initialValue: klona(newValue),
1028
- touched: (_a = state === null || state === void 0 ? void 0 : state.touched) !== null && _a !== void 0 ? _a : false,
1029
- errors: (state === null || state === void 0 ? void 0 : state.errors) || []
1030
- });
1031
- meta.pending = false;
1032
- meta.validated = false;
1033
- validateValidStateOnly();
1034
- }
1035
- const vm = getCurrentInstance();
1036
- function setValue(newValue, shouldValidate = true) {
1037
- value.value = vm && syncVModel ? applyModelModifiers(newValue, vm.props.modelModifiers) : newValue;
1038
- const validateFn = shouldValidate ? validateWithStateMutation : validateValidStateOnly;
1039
- validateFn();
1040
- }
1041
- function setErrors(errors2) {
1042
- setState({ errors: Array.isArray(errors2) ? errors2 : [errors2] });
1043
- }
1044
- const valueProxy = computed({
1045
- get() {
1046
- return value.value;
1047
- },
1048
- set(newValue) {
1049
- setValue(newValue, validateOnValueUpdate);
1050
- }
1051
- });
1052
- const field = {
1053
- id,
1054
- name,
1055
- label,
1056
- value: valueProxy,
1057
- meta,
1058
- errors,
1059
- errorMessage,
1060
- type,
1061
- checkedValue,
1062
- uncheckedValue,
1063
- bails,
1064
- keepValueOnUnmount,
1065
- resetField,
1066
- handleReset: () => resetField(),
1067
- validate: validate$1,
1068
- handleChange,
1069
- handleBlur,
1070
- setState,
1071
- setTouched,
1072
- setErrors,
1073
- setValue
1074
- };
1075
- provide(FieldContextKey, field);
1076
- if (isRef(rules) && typeof unref(rules) !== "function") {
1077
- watch(rules, (value2, oldValue) => {
1078
- if (isEqual(value2, oldValue)) {
1079
- return;
1080
- }
1081
- meta.validated ? validateWithStateMutation() : validateValidStateOnly();
1082
- }, {
1083
- deep: true
1084
- });
1085
- }
1086
- if (!form) {
1087
- return field;
1088
- }
1089
- const dependencies = computed(() => {
1090
- const rulesVal = validator.value;
1091
- if (!rulesVal || isCallable(rulesVal) || isYupValidator(rulesVal) || isTypedSchema(rulesVal) || Array.isArray(rulesVal)) {
1092
- return {};
1093
- }
1094
- return Object.keys(rulesVal).reduce((acc, rule) => {
1095
- const deps = extractLocators(rulesVal[rule]).map((dep) => dep.__locatorRef).reduce((depAcc, depName) => {
1096
- const depValue = getFromPath(form.values, depName) || form.values[depName];
1097
- if (depValue !== void 0) {
1098
- depAcc[depName] = depValue;
1099
- }
1100
- return depAcc;
1101
- }, {});
1102
- Object.assign(acc, deps);
1103
- return acc;
1104
- }, {});
1105
- });
1106
- watch(dependencies, (deps, oldDeps) => {
1107
- if (!Object.keys(deps).length) {
1108
- return;
1109
- }
1110
- const shouldValidate = !isEqual(deps, oldDeps);
1111
- if (shouldValidate) {
1112
- meta.validated ? validateWithStateMutation() : validateValidStateOnly();
1113
- }
1114
- });
1115
- onBeforeUnmount(() => {
1116
- var _a;
1117
- const shouldKeepValue = (_a = toValue(field.keepValueOnUnmount)) !== null && _a !== void 0 ? _a : toValue(form.keepValuesOnUnmount);
1118
- const path2 = toValue(name);
1119
- if (shouldKeepValue || !form || flags.pendingUnmount[field.id]) {
1120
- form === null || form === void 0 ? void 0 : form.removePathState(path2, id);
1121
- return;
1122
- }
1123
- flags.pendingUnmount[field.id] = true;
1124
- const pathState = form.getPathState(path2);
1125
- const matchesId = Array.isArray(pathState === null || pathState === void 0 ? void 0 : pathState.id) && (pathState === null || pathState === void 0 ? void 0 : pathState.multiple) ? pathState === null || pathState === void 0 ? void 0 : pathState.id.includes(field.id) : (pathState === null || pathState === void 0 ? void 0 : pathState.id) === field.id;
1126
- if (!matchesId) {
1127
- return;
1128
- }
1129
- if ((pathState === null || pathState === void 0 ? void 0 : pathState.multiple) && Array.isArray(pathState.value)) {
1130
- const valueIdx = pathState.value.findIndex((i) => isEqual(i, toValue(field.checkedValue)));
1131
- if (valueIdx > -1) {
1132
- const newVal = [...pathState.value];
1133
- newVal.splice(valueIdx, 1);
1134
- form.setFieldValue(path2, newVal);
1135
- }
1136
- if (Array.isArray(pathState.id)) {
1137
- pathState.id.splice(pathState.id.indexOf(field.id), 1);
1138
- }
1139
- } else {
1140
- form.unsetPathValue(toValue(name));
1141
- }
1142
- form.removePathState(path2, id);
1143
- });
1144
- return field;
1145
- }
1146
- function normalizeOptions(opts) {
1147
- const defaults = () => ({
1148
- initialValue: void 0,
1149
- validateOnMount: false,
1150
- bails: true,
1151
- label: void 0,
1152
- validateOnValueUpdate: true,
1153
- keepValueOnUnmount: void 0,
1154
- syncVModel: false,
1155
- controlled: true
1156
- });
1157
- const isVModelSynced = !!(opts === null || opts === void 0 ? void 0 : opts.syncVModel);
1158
- const modelPropName = typeof (opts === null || opts === void 0 ? void 0 : opts.syncVModel) === "string" ? opts.syncVModel : (opts === null || opts === void 0 ? void 0 : opts.modelPropName) || "modelValue";
1159
- const initialValue = isVModelSynced && !("initialValue" in (opts || {})) ? getCurrentModelValue(getCurrentInstance(), modelPropName) : opts === null || opts === void 0 ? void 0 : opts.initialValue;
1160
- if (!opts) {
1161
- return Object.assign(Object.assign({}, defaults()), { initialValue });
1162
- }
1163
- const checkedValue = "valueProp" in opts ? opts.valueProp : opts.checkedValue;
1164
- const controlled = "standalone" in opts ? !opts.standalone : opts.controlled;
1165
- const syncVModel = (opts === null || opts === void 0 ? void 0 : opts.modelPropName) || (opts === null || opts === void 0 ? void 0 : opts.syncVModel) || false;
1166
- return Object.assign(Object.assign(Object.assign({}, defaults()), opts || {}), {
1167
- initialValue,
1168
- controlled: controlled !== null && controlled !== void 0 ? controlled : true,
1169
- checkedValue,
1170
- syncVModel
1171
- });
1172
- }
1173
- function useFieldWithChecked(name, rules, opts) {
1174
- const form = !(opts === null || opts === void 0 ? void 0 : opts.standalone) ? injectWithSelf(FormContextKey) : void 0;
1175
- const checkedValue = opts === null || opts === void 0 ? void 0 : opts.checkedValue;
1176
- const uncheckedValue = opts === null || opts === void 0 ? void 0 : opts.uncheckedValue;
1177
- function patchCheckedApi(field) {
1178
- const handleChange = field.handleChange;
1179
- const checked = computed(() => {
1180
- const currentValue = toValue(field.value);
1181
- const checkedVal = toValue(checkedValue);
1182
- return Array.isArray(currentValue) ? currentValue.findIndex((v) => isEqual(v, checkedVal)) >= 0 : isEqual(checkedVal, currentValue);
1183
- });
1184
- function handleCheckboxChange(e, shouldValidate = true) {
1185
- var _a, _b;
1186
- if (checked.value === ((_a = e === null || e === void 0 ? void 0 : e.target) === null || _a === void 0 ? void 0 : _a.checked)) {
1187
- if (shouldValidate) {
1188
- field.validate();
1189
- }
1190
- return;
1191
- }
1192
- const path = toValue(name);
1193
- const pathState = form === null || form === void 0 ? void 0 : form.getPathState(path);
1194
- const value = normalizeEventValue(e);
1195
- let newValue = (_b = toValue(checkedValue)) !== null && _b !== void 0 ? _b : value;
1196
- if (form && (pathState === null || pathState === void 0 ? void 0 : pathState.multiple) && pathState.type === "checkbox") {
1197
- newValue = resolveNextCheckboxValue(getFromPath(form.values, path) || [], newValue, void 0);
1198
- } else if ((opts === null || opts === void 0 ? void 0 : opts.type) === "checkbox") {
1199
- newValue = resolveNextCheckboxValue(toValue(field.value), newValue, toValue(uncheckedValue));
1200
- }
1201
- handleChange(newValue, shouldValidate);
1202
- }
1203
- return Object.assign(Object.assign({}, field), {
1204
- checked,
1205
- checkedValue,
1206
- uncheckedValue,
1207
- handleChange: handleCheckboxChange
1208
- });
1209
- }
1210
- return patchCheckedApi(_useField(name, rules, opts));
1211
- }
1212
- function useVModel({ prop, value, handleChange, shouldValidate }) {
1213
- const vm = getCurrentInstance();
1214
- if (!vm || !prop) {
1215
- return;
1216
- }
1217
- const propName = typeof prop === "string" ? prop : "modelValue";
1218
- const emitName = `update:${propName}`;
1219
- if (!(propName in vm.props)) {
1220
- return;
1221
- }
1222
- watch(value, (newValue) => {
1223
- if (isEqual(newValue, getCurrentModelValue(vm, propName))) {
1224
- return;
1225
- }
1226
- vm.emit(emitName, newValue);
1227
- });
1228
- watch(() => getCurrentModelValue(vm, propName), (propValue) => {
1229
- if (propValue === IS_ABSENT && value.value === void 0) {
1230
- return;
1231
- }
1232
- const newValue = propValue === IS_ABSENT ? void 0 : propValue;
1233
- if (isEqual(newValue, value.value)) {
1234
- return;
1235
- }
1236
- handleChange(newValue, shouldValidate());
1237
- });
1238
- }
1239
- function getCurrentModelValue(vm, propName) {
1240
- if (!vm) {
1241
- return void 0;
1242
- }
1243
- return vm.props[propName];
1244
- }
1245
- let FORM_COUNTER = 0;
1246
- const PRIVATE_PATH_STATE_KEYS = ["bails", "fieldsCount", "id", "multiple", "type", "validate"];
1247
- function resolveInitialValues(opts) {
1248
- const givenInitial = {};
1249
- const providedValues = Object.assign({}, toValue(givenInitial));
1250
- const schema = unref(void 0);
1251
- if (schema && isTypedSchema(schema) && isCallable(schema.cast)) {
1252
- return klona(schema.cast(providedValues) || {});
1253
- }
1254
- return klona(providedValues);
1255
- }
1256
- function useForm(opts) {
1257
- var _a;
1258
- const formId = FORM_COUNTER++;
1259
- let FIELD_ID_COUNTER = 0;
1260
- const isSubmitting = ref(false);
1261
- const isValidating = ref(false);
1262
- const submitCount = ref(0);
1263
- const fieldArrays = [];
1264
- const formValues = reactive(resolveInitialValues());
1265
- const pathStates = ref([]);
1266
- const extraErrorsBag = ref({});
1267
- const pathStateLookup = ref({});
1268
- const rebuildPathLookup = debounceNextTick(() => {
1269
- pathStateLookup.value = pathStates.value.reduce((names, state) => {
1270
- names[normalizeFormPath(toValue(state.path))] = state;
1271
- return names;
1272
- }, {});
1273
- });
1274
- function setFieldError(field, message) {
1275
- const state = findPathState(field);
1276
- if (!state) {
1277
- if (typeof field === "string") {
1278
- extraErrorsBag.value[normalizeFormPath(field)] = normalizeErrorItem(message);
1279
- }
1280
- return;
1281
- }
1282
- if (typeof field === "string") {
1283
- const normalizedPath = normalizeFormPath(field);
1284
- if (extraErrorsBag.value[normalizedPath]) {
1285
- delete extraErrorsBag.value[normalizedPath];
1286
- }
1287
- }
1288
- state.errors = normalizeErrorItem(message);
1289
- state.valid = !state.errors.length;
1290
- }
1291
- function setErrors(paths) {
1292
- keysOf(paths).forEach((path) => {
1293
- setFieldError(path, paths[path]);
1294
- });
1295
- }
1296
- const errorBag = computed(() => {
1297
- const pathErrors = pathStates.value.reduce((acc, state) => {
1298
- if (state.errors.length) {
1299
- acc[state.path] = state.errors;
1300
- }
1301
- return acc;
1302
- }, {});
1303
- return Object.assign(Object.assign({}, extraErrorsBag.value), pathErrors);
1304
- });
1305
- const errors = computed(() => {
1306
- return keysOf(errorBag.value).reduce((acc, key) => {
1307
- const errors2 = errorBag.value[key];
1308
- if (errors2 === null || errors2 === void 0 ? void 0 : errors2.length) {
1309
- acc[key] = errors2[0];
1310
- }
1311
- return acc;
1312
- }, {});
1313
- });
1314
- const fieldNames = computed(() => {
1315
- return pathStates.value.reduce((names, state) => {
1316
- names[state.path] = { name: state.path || "", label: state.label || "" };
1317
- return names;
1318
- }, {});
1319
- });
1320
- const fieldBailsMap = computed(() => {
1321
- return pathStates.value.reduce((map, state) => {
1322
- var _a2;
1323
- map[state.path] = (_a2 = state.bails) !== null && _a2 !== void 0 ? _a2 : true;
1324
- return map;
1325
- }, {});
1326
- });
1327
- const initialErrors = Object.assign({}, {});
1328
- const keepValuesOnUnmount = (_a = void 0) !== null && _a !== void 0 ? _a : false;
1329
- const { initialValues, originalInitialValues, setInitialValues } = useFormInitialValues(pathStates, formValues);
1330
- const meta = useFormMeta(pathStates, formValues, originalInitialValues, errors);
1331
- const controlledValues = computed(() => {
1332
- return pathStates.value.reduce((acc, state) => {
1333
- const value = getFromPath(formValues, state.path);
1334
- setInPath(acc, state.path, value);
1335
- return acc;
1336
- }, {});
1337
- });
1338
- const schema = void 0;
1339
- function createPathState(path, config) {
1340
- var _a2, _b;
1341
- const initialValue = computed(() => getFromPath(initialValues.value, toValue(path)));
1342
- const pathStateExists = pathStateLookup.value[toValue(path)];
1343
- const isCheckboxOrRadio = (config === null || config === void 0 ? void 0 : config.type) === "checkbox" || (config === null || config === void 0 ? void 0 : config.type) === "radio";
1344
- if (pathStateExists && isCheckboxOrRadio) {
1345
- pathStateExists.multiple = true;
1346
- const id2 = FIELD_ID_COUNTER++;
1347
- if (Array.isArray(pathStateExists.id)) {
1348
- pathStateExists.id.push(id2);
1349
- } else {
1350
- pathStateExists.id = [pathStateExists.id, id2];
1351
- }
1352
- pathStateExists.fieldsCount++;
1353
- pathStateExists.__flags.pendingUnmount[id2] = false;
1354
- return pathStateExists;
1355
- }
1356
- const currentValue = computed(() => getFromPath(formValues, toValue(path)));
1357
- const pathValue = toValue(path);
1358
- const unsetBatchIndex = UNSET_BATCH.findIndex((_path) => _path === pathValue);
1359
- if (unsetBatchIndex !== -1) {
1360
- UNSET_BATCH.splice(unsetBatchIndex, 1);
1361
- }
1362
- const isRequired = computed(() => {
1363
- var _a3, _b2, _c, _d;
1364
- const schemaValue = toValue(schema);
1365
- if (isTypedSchema(schemaValue)) {
1366
- return (_b2 = (_a3 = schemaValue.describe) === null || _a3 === void 0 ? void 0 : _a3.call(schemaValue, toValue(path)).required) !== null && _b2 !== void 0 ? _b2 : false;
1367
- }
1368
- const configSchemaValue = toValue(config === null || config === void 0 ? void 0 : config.schema);
1369
- if (isTypedSchema(configSchemaValue)) {
1370
- return (_d = (_c = configSchemaValue.describe) === null || _c === void 0 ? void 0 : _c.call(configSchemaValue).required) !== null && _d !== void 0 ? _d : false;
1371
- }
1372
- return false;
1373
- });
1374
- const id = FIELD_ID_COUNTER++;
1375
- const state = reactive({
1376
- id,
1377
- path,
1378
- touched: false,
1379
- pending: false,
1380
- valid: true,
1381
- validated: !!((_a2 = initialErrors[pathValue]) === null || _a2 === void 0 ? void 0 : _a2.length),
1382
- required: isRequired,
1383
- initialValue,
1384
- errors: shallowRef([]),
1385
- bails: (_b = config === null || config === void 0 ? void 0 : config.bails) !== null && _b !== void 0 ? _b : false,
1386
- label: config === null || config === void 0 ? void 0 : config.label,
1387
- type: (config === null || config === void 0 ? void 0 : config.type) || "default",
1388
- value: currentValue,
1389
- multiple: false,
1390
- __flags: {
1391
- pendingUnmount: { [id]: false },
1392
- pendingReset: false
1393
- },
1394
- fieldsCount: 1,
1395
- validate: config === null || config === void 0 ? void 0 : config.validate,
1396
- dirty: computed(() => {
1397
- return !isEqual(unref(currentValue), unref(initialValue));
1398
- })
1399
- });
1400
- pathStates.value.push(state);
1401
- pathStateLookup.value[pathValue] = state;
1402
- rebuildPathLookup();
1403
- if (errors.value[pathValue] && !initialErrors[pathValue]) {
1404
- nextTick(() => {
1405
- validateField(pathValue, { mode: "silent" });
1406
- });
1407
- }
1408
- if (isRef(path)) {
1409
- watch(path, (newPath) => {
1410
- rebuildPathLookup();
1411
- const nextValue = klona(currentValue.value);
1412
- pathStateLookup.value[newPath] = state;
1413
- nextTick(() => {
1414
- setInPath(formValues, newPath, nextValue);
1415
- });
1416
- });
1417
- }
1418
- return state;
1419
- }
1420
- const debouncedSilentValidation = debounceAsync(_validateSchema, 5);
1421
- const debouncedValidation = debounceAsync(_validateSchema, 5);
1422
- const validateSchema = withLatest(async (mode) => {
1423
- return await (mode === "silent" ? debouncedSilentValidation() : debouncedValidation());
1424
- }, (formResult, [mode]) => {
1425
- const currentErrorsPaths = keysOf(formCtx.errorBag.value);
1426
- const paths = [
1427
- .../* @__PURE__ */ new Set([...keysOf(formResult.results), ...pathStates.value.map((p) => p.path), ...currentErrorsPaths])
1428
- ].sort();
1429
- const results = paths.reduce((validation, _path) => {
1430
- var _a2;
1431
- const expectedPath = _path;
1432
- const pathState = findPathState(expectedPath) || findHoistedPath(expectedPath);
1433
- const messages = ((_a2 = formResult.results[expectedPath]) === null || _a2 === void 0 ? void 0 : _a2.errors) || [];
1434
- const path = toValue(pathState === null || pathState === void 0 ? void 0 : pathState.path) || expectedPath;
1435
- const fieldResult = mergeValidationResults({ errors: messages, valid: !messages.length }, validation.results[path]);
1436
- validation.results[path] = fieldResult;
1437
- if (!fieldResult.valid) {
1438
- validation.errors[path] = fieldResult.errors[0];
1439
- }
1440
- if (pathState && extraErrorsBag.value[path]) {
1441
- delete extraErrorsBag.value[path];
1442
- }
1443
- if (!pathState) {
1444
- setFieldError(path, messages);
1445
- return validation;
1446
- }
1447
- pathState.valid = fieldResult.valid;
1448
- if (mode === "silent") {
1449
- return validation;
1450
- }
1451
- if (mode === "validated-only" && !pathState.validated) {
1452
- return validation;
1453
- }
1454
- setFieldError(pathState, fieldResult.errors);
1455
- return validation;
1456
- }, {
1457
- valid: formResult.valid,
1458
- results: {},
1459
- errors: {},
1460
- source: formResult.source
1461
- });
1462
- if (formResult.values) {
1463
- results.values = formResult.values;
1464
- results.source = formResult.source;
1465
- }
1466
- keysOf(results.results).forEach((path) => {
1467
- var _a2;
1468
- const pathState = findPathState(path);
1469
- if (!pathState) {
1470
- return;
1471
- }
1472
- if (mode === "silent") {
1473
- return;
1474
- }
1475
- if (mode === "validated-only" && !pathState.validated) {
1476
- return;
1477
- }
1478
- setFieldError(pathState, (_a2 = results.results[path]) === null || _a2 === void 0 ? void 0 : _a2.errors);
1479
- });
1480
- return results;
1481
- });
1482
- function mutateAllPathState(mutation) {
1483
- pathStates.value.forEach(mutation);
1484
- }
1485
- function findPathState(path) {
1486
- const normalizedPath = typeof path === "string" ? normalizeFormPath(path) : path;
1487
- const pathState = typeof normalizedPath === "string" ? pathStateLookup.value[normalizedPath] : normalizedPath;
1488
- return pathState;
1489
- }
1490
- function findHoistedPath(path) {
1491
- const candidates = pathStates.value.filter((state) => path.startsWith(state.path));
1492
- return candidates.reduce((bestCandidate, candidate) => {
1493
- if (!bestCandidate) {
1494
- return candidate;
1495
- }
1496
- return candidate.path.length > bestCandidate.path.length ? candidate : bestCandidate;
1497
- }, void 0);
1498
- }
1499
- let UNSET_BATCH = [];
1500
- let PENDING_UNSET;
1501
- function unsetPathValue(path) {
1502
- UNSET_BATCH.push(path);
1503
- if (!PENDING_UNSET) {
1504
- PENDING_UNSET = nextTick(() => {
1505
- const sortedPaths = [...UNSET_BATCH].sort().reverse();
1506
- sortedPaths.forEach((p) => {
1507
- unsetPath(formValues, p);
1508
- });
1509
- UNSET_BATCH = [];
1510
- PENDING_UNSET = null;
1511
- });
1512
- }
1513
- return PENDING_UNSET;
1514
- }
1515
- function makeSubmissionFactory(onlyControlled) {
1516
- return function submitHandlerFactory(fn, onValidationError) {
1517
- return function submissionHandler(e) {
1518
- if (e instanceof Event) {
1519
- e.preventDefault();
1520
- e.stopPropagation();
1521
- }
1522
- mutateAllPathState((s) => s.touched = true);
1523
- isSubmitting.value = true;
1524
- submitCount.value++;
1525
- return validate2().then((result) => {
1526
- const values = klona(formValues);
1527
- if (result.valid && typeof fn === "function") {
1528
- const controlled = klona(controlledValues.value);
1529
- let submittedValues = onlyControlled ? controlled : values;
1530
- if (result.values) {
1531
- submittedValues = result.source === "schema" ? result.values : Object.assign({}, submittedValues, result.values);
1532
- }
1533
- return fn(submittedValues, {
1534
- evt: e,
1535
- controlledValues: controlled,
1536
- setErrors,
1537
- setFieldError,
1538
- setTouched,
1539
- setFieldTouched,
1540
- setValues,
1541
- setFieldValue,
1542
- resetForm,
1543
- resetField
1544
- });
1545
- }
1546
- if (!result.valid && typeof onValidationError === "function") {
1547
- onValidationError({
1548
- values,
1549
- evt: e,
1550
- errors: result.errors,
1551
- results: result.results
1552
- });
1553
- }
1554
- }).then((returnVal) => {
1555
- isSubmitting.value = false;
1556
- return returnVal;
1557
- }, (err) => {
1558
- isSubmitting.value = false;
1559
- throw err;
1560
- });
1561
- };
1562
- };
1563
- }
1564
- const handleSubmitImpl = makeSubmissionFactory(false);
1565
- const handleSubmit = handleSubmitImpl;
1566
- handleSubmit.withControlled = makeSubmissionFactory(true);
1567
- function removePathState(path, id) {
1568
- const idx = pathStates.value.findIndex((s) => {
1569
- return s.path === path && (Array.isArray(s.id) ? s.id.includes(id) : s.id === id);
1570
- });
1571
- const pathState = pathStates.value[idx];
1572
- if (idx === -1 || !pathState) {
1573
- return;
1574
- }
1575
- nextTick(() => {
1576
- validateField(path, { mode: "silent", warn: false });
1577
- });
1578
- if (pathState.multiple && pathState.fieldsCount) {
1579
- pathState.fieldsCount--;
1580
- }
1581
- if (Array.isArray(pathState.id)) {
1582
- const idIndex = pathState.id.indexOf(id);
1583
- if (idIndex >= 0) {
1584
- pathState.id.splice(idIndex, 1);
1585
- }
1586
- delete pathState.__flags.pendingUnmount[id];
1587
- }
1588
- if (!pathState.multiple || pathState.fieldsCount <= 0) {
1589
- pathStates.value.splice(idx, 1);
1590
- unsetInitialValue(path);
1591
- rebuildPathLookup();
1592
- delete pathStateLookup.value[path];
1593
- }
1594
- }
1595
- function destroyPath(path) {
1596
- keysOf(pathStateLookup.value).forEach((key) => {
1597
- if (key.startsWith(path)) {
1598
- delete pathStateLookup.value[key];
1599
- }
1600
- });
1601
- pathStates.value = pathStates.value.filter((s) => !s.path.startsWith(path));
1602
- nextTick(() => {
1603
- rebuildPathLookup();
1604
- });
1605
- }
1606
- const formCtx = {
1607
- formId,
1608
- values: formValues,
1609
- controlledValues,
1610
- errorBag,
1611
- errors,
1612
- schema,
1613
- submitCount,
1614
- meta,
1615
- isSubmitting,
1616
- isValidating,
1617
- fieldArrays,
1618
- keepValuesOnUnmount,
1619
- validateSchema: unref(schema) ? validateSchema : void 0,
1620
- validate: validate2,
1621
- setFieldError,
1622
- validateField,
1623
- setFieldValue,
1624
- setValues,
1625
- setErrors,
1626
- setFieldTouched,
1627
- setTouched,
1628
- resetForm,
1629
- resetField,
1630
- handleSubmit,
1631
- useFieldModel,
1632
- defineInputBinds,
1633
- defineComponentBinds,
1634
- defineField,
1635
- stageInitialValue,
1636
- unsetInitialValue,
1637
- setFieldInitialValue,
1638
- createPathState,
1639
- getPathState: findPathState,
1640
- unsetPathValue,
1641
- removePathState,
1642
- initialValues,
1643
- getAllPathStates: () => pathStates.value,
1644
- destroyPath,
1645
- isFieldTouched,
1646
- isFieldDirty,
1647
- isFieldValid
1648
- };
1649
- function setFieldValue(field, value, shouldValidate = true) {
1650
- const clonedValue = klona(value);
1651
- const path = typeof field === "string" ? field : field.path;
1652
- const pathState = findPathState(path);
1653
- if (!pathState) {
1654
- createPathState(path);
1655
- }
1656
- setInPath(formValues, path, clonedValue);
1657
- if (shouldValidate) {
1658
- validateField(path);
1659
- }
1660
- }
1661
- function forceSetValues(fields, shouldValidate = true) {
1662
- keysOf(formValues).forEach((key) => {
1663
- delete formValues[key];
1664
- });
1665
- keysOf(fields).forEach((path) => {
1666
- setFieldValue(path, fields[path], false);
1667
- });
1668
- if (shouldValidate) {
1669
- validate2();
1670
- }
1671
- }
1672
- function setValues(fields, shouldValidate = true) {
1673
- merge(formValues, fields);
1674
- fieldArrays.forEach((f) => f && f.reset());
1675
- if (shouldValidate) {
1676
- validate2();
1677
- }
1678
- }
1679
- function createModel(path, shouldValidate) {
1680
- const pathState = findPathState(toValue(path)) || createPathState(path);
1681
- return computed({
1682
- get() {
1683
- return pathState.value;
1684
- },
1685
- set(value) {
1686
- var _a2;
1687
- const pathValue = toValue(path);
1688
- setFieldValue(pathValue, value, (_a2 = toValue(shouldValidate)) !== null && _a2 !== void 0 ? _a2 : false);
1689
- }
1690
- });
1691
- }
1692
- function setFieldTouched(field, isTouched) {
1693
- const pathState = findPathState(field);
1694
- if (pathState) {
1695
- pathState.touched = isTouched;
1696
- }
1697
- }
1698
- function isFieldTouched(field) {
1699
- const pathState = findPathState(field);
1700
- if (pathState) {
1701
- return pathState.touched;
1702
- }
1703
- return pathStates.value.filter((s) => s.path.startsWith(field)).some((s) => s.touched);
1704
- }
1705
- function isFieldDirty(field) {
1706
- const pathState = findPathState(field);
1707
- if (pathState) {
1708
- return pathState.dirty;
1709
- }
1710
- return pathStates.value.filter((s) => s.path.startsWith(field)).some((s) => s.dirty);
1711
- }
1712
- function isFieldValid(field) {
1713
- const pathState = findPathState(field);
1714
- if (pathState) {
1715
- return pathState.valid;
1716
- }
1717
- return pathStates.value.filter((s) => s.path.startsWith(field)).every((s) => s.valid);
1718
- }
1719
- function setTouched(fields) {
1720
- if (typeof fields === "boolean") {
1721
- mutateAllPathState((state) => {
1722
- state.touched = fields;
1723
- });
1724
- return;
1725
- }
1726
- keysOf(fields).forEach((field) => {
1727
- setFieldTouched(field, !!fields[field]);
1728
- });
1729
- }
1730
- function resetField(field, state) {
1731
- var _a2;
1732
- const newValue = state && "value" in state ? state.value : getFromPath(initialValues.value, field);
1733
- const pathState = findPathState(field);
1734
- if (pathState) {
1735
- pathState.__flags.pendingReset = true;
1736
- }
1737
- setFieldInitialValue(field, klona(newValue), true);
1738
- setFieldValue(field, newValue, false);
1739
- setFieldTouched(field, (_a2 = state === null || state === void 0 ? void 0 : state.touched) !== null && _a2 !== void 0 ? _a2 : false);
1740
- setFieldError(field, (state === null || state === void 0 ? void 0 : state.errors) || []);
1741
- nextTick(() => {
1742
- if (pathState) {
1743
- pathState.__flags.pendingReset = false;
1744
- }
1745
- });
1746
- }
1747
- function resetForm(resetState, opts2) {
1748
- let newValues = klona((resetState === null || resetState === void 0 ? void 0 : resetState.values) ? resetState.values : originalInitialValues.value);
1749
- newValues = (opts2 === null || opts2 === void 0 ? void 0 : opts2.force) ? newValues : merge(originalInitialValues.value, newValues);
1750
- newValues = isTypedSchema(schema) && isCallable(schema.cast) ? schema.cast(newValues) : newValues;
1751
- setInitialValues(newValues, { force: opts2 === null || opts2 === void 0 ? void 0 : opts2.force });
1752
- mutateAllPathState((state) => {
1753
- var _a2;
1754
- state.__flags.pendingReset = true;
1755
- state.validated = false;
1756
- state.touched = ((_a2 = resetState === null || resetState === void 0 ? void 0 : resetState.touched) === null || _a2 === void 0 ? void 0 : _a2[state.path]) || false;
1757
- setFieldValue(state.path, getFromPath(newValues, state.path), false);
1758
- setFieldError(state.path, void 0);
1759
- });
1760
- (opts2 === null || opts2 === void 0 ? void 0 : opts2.force) ? forceSetValues(newValues, false) : setValues(newValues, false);
1761
- setErrors((resetState === null || resetState === void 0 ? void 0 : resetState.errors) || {});
1762
- submitCount.value = (resetState === null || resetState === void 0 ? void 0 : resetState.submitCount) || 0;
1763
- nextTick(() => {
1764
- validate2({ mode: "silent" });
1765
- mutateAllPathState((state) => {
1766
- state.__flags.pendingReset = false;
1767
- });
1768
- });
1769
- }
1770
- async function validate2(opts2) {
1771
- const mode = (opts2 === null || opts2 === void 0 ? void 0 : opts2.mode) || "force";
1772
- if (mode === "force") {
1773
- mutateAllPathState((f) => f.validated = true);
1774
- }
1775
- if (formCtx.validateSchema) {
1776
- return formCtx.validateSchema(mode);
1777
- }
1778
- isValidating.value = true;
1779
- const validations = await Promise.all(pathStates.value.map((state) => {
1780
- if (!state.validate) {
1781
- return Promise.resolve({
1782
- key: state.path,
1783
- valid: true,
1784
- errors: [],
1785
- value: void 0
1786
- });
1787
- }
1788
- return state.validate(opts2).then((result) => {
1789
- return {
1790
- key: state.path,
1791
- valid: result.valid,
1792
- errors: result.errors,
1793
- value: result.value
1794
- };
1795
- });
1796
- }));
1797
- isValidating.value = false;
1798
- const results = {};
1799
- const errors2 = {};
1800
- const values = {};
1801
- for (const validation of validations) {
1802
- results[validation.key] = {
1803
- valid: validation.valid,
1804
- errors: validation.errors
1805
- };
1806
- if (validation.value) {
1807
- setInPath(values, validation.key, validation.value);
1808
- }
1809
- if (validation.errors.length) {
1810
- errors2[validation.key] = validation.errors[0];
1811
- }
1812
- }
1813
- return {
1814
- valid: validations.every((r) => r.valid),
1815
- results,
1816
- errors: errors2,
1817
- values,
1818
- source: "fields"
1819
- };
1820
- }
1821
- async function validateField(path, opts2) {
1822
- var _a2;
1823
- const state = findPathState(path);
1824
- if (state && (opts2 === null || opts2 === void 0 ? void 0 : opts2.mode) !== "silent") {
1825
- state.validated = true;
1826
- }
1827
- if (state === null || state === void 0 ? void 0 : state.validate) {
1828
- return state.validate(opts2);
1829
- }
1830
- !state && ((_a2 = opts2 === null || opts2 === void 0 ? void 0 : opts2.warn) !== null && _a2 !== void 0 ? _a2 : true);
1831
- return Promise.resolve({ errors: [], valid: true });
1832
- }
1833
- function unsetInitialValue(path) {
1834
- unsetPath(initialValues.value, path);
1835
- }
1836
- function stageInitialValue(path, value, updateOriginal = false) {
1837
- setFieldInitialValue(path, value);
1838
- setInPath(formValues, path, value);
1839
- if (updateOriginal && true) {
1840
- setInPath(originalInitialValues.value, path, klona(value));
1841
- }
1842
- }
1843
- function setFieldInitialValue(path, value, updateOriginal = false) {
1844
- setInPath(initialValues.value, path, klona(value));
1845
- if (updateOriginal) {
1846
- setInPath(originalInitialValues.value, path, klona(value));
1847
- }
1848
- }
1849
- async function _validateSchema() {
1850
- const schemaValue = unref(schema);
1851
- if (!schemaValue) {
1852
- return { valid: true, results: {}, errors: {}, source: "none" };
1853
- }
1854
- isValidating.value = true;
1855
- const formResult = isYupValidator(schemaValue) || isTypedSchema(schemaValue) ? await validateTypedSchema(schemaValue, formValues) : await validateObjectSchema(schemaValue, formValues, {
1856
- names: fieldNames.value,
1857
- bailsMap: fieldBailsMap.value
1858
- });
1859
- isValidating.value = false;
1860
- return formResult;
1861
- }
1862
- const submitForm = handleSubmit((_, { evt }) => {
1863
- if (isFormSubmitEvent(evt)) {
1864
- evt.target.submit();
1865
- }
1866
- });
1867
- onMounted(() => {
1868
- if (formCtx.validateSchema) {
1869
- formCtx.validateSchema("silent");
1870
- }
1871
- });
1872
- if (isRef(schema)) {
1873
- watch(schema, () => {
1874
- var _a2;
1875
- (_a2 = formCtx.validateSchema) === null || _a2 === void 0 ? void 0 : _a2.call(formCtx, "validated-only");
1876
- });
1877
- }
1878
- provide(FormContextKey, formCtx);
1879
- function defineField(path, config) {
1880
- const label = isCallable(config) ? void 0 : config === null || config === void 0 ? void 0 : config.label;
1881
- const pathState = findPathState(toValue(path)) || createPathState(path, { label });
1882
- const evalConfig = () => isCallable(config) ? config(omit(pathState, PRIVATE_PATH_STATE_KEYS)) : config || {};
1883
- function onBlur() {
1884
- var _a2;
1885
- pathState.touched = true;
1886
- const validateOnBlur = (_a2 = evalConfig().validateOnBlur) !== null && _a2 !== void 0 ? _a2 : getConfig().validateOnBlur;
1887
- if (validateOnBlur) {
1888
- validateField(pathState.path);
1889
- }
1890
- }
1891
- function onInput() {
1892
- var _a2;
1893
- const validateOnInput = (_a2 = evalConfig().validateOnInput) !== null && _a2 !== void 0 ? _a2 : getConfig().validateOnInput;
1894
- if (validateOnInput) {
1895
- nextTick(() => {
1896
- validateField(pathState.path);
1897
- });
1898
- }
1899
- }
1900
- function onChange() {
1901
- var _a2;
1902
- const validateOnChange = (_a2 = evalConfig().validateOnChange) !== null && _a2 !== void 0 ? _a2 : getConfig().validateOnChange;
1903
- if (validateOnChange) {
1904
- nextTick(() => {
1905
- validateField(pathState.path);
1906
- });
1907
- }
1908
- }
1909
- const props = computed(() => {
1910
- const base = {
1911
- onChange,
1912
- onInput,
1913
- onBlur
1914
- };
1915
- if (isCallable(config)) {
1916
- return Object.assign(Object.assign({}, base), config(omit(pathState, PRIVATE_PATH_STATE_KEYS)).props || {});
1917
- }
1918
- if (config === null || config === void 0 ? void 0 : config.props) {
1919
- return Object.assign(Object.assign({}, base), config.props(omit(pathState, PRIVATE_PATH_STATE_KEYS)));
1920
- }
1921
- return base;
1922
- });
1923
- const model = createModel(path, () => {
1924
- var _a2, _b, _c;
1925
- return (_c = (_a2 = evalConfig().validateOnModelUpdate) !== null && _a2 !== void 0 ? _a2 : (_b = getConfig()) === null || _b === void 0 ? void 0 : _b.validateOnModelUpdate) !== null && _c !== void 0 ? _c : true;
1926
- });
1927
- return [model, props];
1928
- }
1929
- function useFieldModel(pathOrPaths) {
1930
- if (!Array.isArray(pathOrPaths)) {
1931
- return createModel(pathOrPaths);
1932
- }
1933
- return pathOrPaths.map((p) => createModel(p, true));
1934
- }
1935
- function defineInputBinds(path, config) {
1936
- const [model, props] = defineField(path, config);
1937
- function onBlur() {
1938
- props.value.onBlur();
1939
- }
1940
- function onInput(e) {
1941
- const value = normalizeEventValue(e);
1942
- setFieldValue(toValue(path), value, false);
1943
- props.value.onInput();
1944
- }
1945
- function onChange(e) {
1946
- const value = normalizeEventValue(e);
1947
- setFieldValue(toValue(path), value, false);
1948
- props.value.onChange();
1949
- }
1950
- return computed(() => {
1951
- return Object.assign(Object.assign({}, props.value), {
1952
- onBlur,
1953
- onInput,
1954
- onChange,
1955
- value: model.value
1956
- });
1957
- });
1958
- }
1959
- function defineComponentBinds(path, config) {
1960
- const [model, props] = defineField(path, config);
1961
- const pathState = findPathState(toValue(path));
1962
- function onUpdateModelValue(value) {
1963
- model.value = value;
1964
- }
1965
- return computed(() => {
1966
- const conf = isCallable(config) ? config(omit(pathState, PRIVATE_PATH_STATE_KEYS)) : config || {};
1967
- return Object.assign({ [conf.model || "modelValue"]: model.value, [`onUpdate:${conf.model || "modelValue"}`]: onUpdateModelValue }, props.value);
1968
- });
1969
- }
1970
- return Object.assign(Object.assign({}, formCtx), { values: readonly(formValues), handleReset: () => resetForm(), submitForm });
1971
- }
1972
- function useFormMeta(pathsState, currentValues, initialValues, errors) {
1973
- const MERGE_STRATEGIES = {
1974
- touched: "some",
1975
- pending: "some",
1976
- valid: "every"
1977
- };
1978
- const isDirty = computed(() => {
1979
- return !isEqual(currentValues, unref(initialValues));
1980
- });
1981
- function calculateFlags() {
1982
- const states = pathsState.value;
1983
- return keysOf(MERGE_STRATEGIES).reduce((acc, flag) => {
1984
- const mergeMethod = MERGE_STRATEGIES[flag];
1985
- acc[flag] = states[mergeMethod]((s) => s[flag]);
1986
- return acc;
1987
- }, {});
1988
- }
1989
- const flags = reactive(calculateFlags());
1990
- watchEffect(() => {
1991
- const value = calculateFlags();
1992
- flags.touched = value.touched;
1993
- flags.valid = value.valid;
1994
- flags.pending = value.pending;
1995
- });
1996
- return computed(() => {
1997
- return Object.assign(Object.assign({ initialValues: unref(initialValues) }, flags), { valid: flags.valid && !keysOf(errors.value).length, dirty: isDirty.value });
1998
- });
1999
- }
2000
- function useFormInitialValues(pathsState, formValues, opts) {
2001
- const values = resolveInitialValues();
2002
- const initialValues = ref(values);
2003
- const originalInitialValues = ref(klona(values));
2004
- function setInitialValues(values2, opts2) {
2005
- if (opts2 === null || opts2 === void 0 ? void 0 : opts2.force) {
2006
- initialValues.value = klona(values2);
2007
- originalInitialValues.value = klona(values2);
2008
- } else {
2009
- initialValues.value = merge(klona(initialValues.value) || {}, klona(values2));
2010
- originalInitialValues.value = merge(klona(originalInitialValues.value) || {}, klona(values2));
2011
- }
2012
- if (!(opts2 === null || opts2 === void 0 ? void 0 : opts2.updateFields)) {
2013
- return;
2014
- }
2015
- pathsState.value.forEach((state) => {
2016
- const wasTouched = state.touched;
2017
- if (wasTouched) {
2018
- return;
2019
- }
2020
- const newValue = getFromPath(initialValues.value, state.path);
2021
- setInPath(formValues, state.path, klona(newValue));
2022
- });
2023
- }
2024
- return {
2025
- initialValues,
2026
- originalInitialValues,
2027
- setInitialValues
2028
- };
2029
- }
2030
- function mergeValidationResults(a, b) {
2031
- if (!b) {
2032
- return a;
2033
- }
2034
- return {
2035
- valid: a.valid && b.valid,
2036
- errors: [...a.errors, ...b.errors]
2037
- };
2038
- }
2039
- export {
2040
- useForm as a,
2041
- useField as u
2042
- };