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

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 (598) hide show
  1. package/animation/index.es.js +54 -37
  2. package/assets/lottiejs/loading-page.es.js +14 -9
  3. package/assets/lottiejs/loading-plane.es.js +2 -2
  4. package/assets/lottiejs/loading-table.es.js +14 -9
  5. package/assets/lottiejs/no-data.es.js +14 -9
  6. package/backgroundimagecropper/index.es.js +61 -37
  7. package/badge/index.es.js +77 -67
  8. package/badgegroup/index.es.js +62 -50
  9. package/basecalendar/index.es.js +1258 -735
  10. package/basetree/index.es.js +213 -113
  11. package/breadcrumb/index.es.js +46 -38
  12. package/button/index.es.js +60 -54
  13. package/buttonbulkaction/index.es.js +168 -117
  14. package/buttoncopy/index.es.js +25 -22
  15. package/buttondownload/index.es.js +125 -76
  16. package/buttonfilter/index.es.js +21 -15
  17. package/buttonradio/index.es.js +91 -67
  18. package/buttonsearch/index.es.js +62 -46
  19. package/buttonselecttree/index.es.js +233 -172
  20. package/buttontoggle/index.es.js +8 -6
  21. package/calendar/index.es.js +113 -58
  22. package/card/index.es.js +44 -42
  23. package/checkbox/index.es.js +105 -74
  24. package/codesnippet/index.es.js +91 -71
  25. package/codesnippetadapter/index.es.js +25 -21
  26. package/columnlist/index.es.js +249 -171
  27. package/components.d.ts +0 -21
  28. package/config/defaultProps.es.js +9 -9
  29. package/config/index.es.js +11 -10
  30. package/config/locale.es.js +2 -2
  31. package/customcolumn/index.es.js +95 -78
  32. package/datatable/index.es.js +1071 -732
  33. package/dialog/index.es.js +54 -54
  34. package/dialogconfirm/index.es.js +90 -75
  35. package/dialogform/index.es.js +170 -133
  36. package/dialogselecttree/index.es.js +242 -194
  37. package/directives/focus.es.js +13 -8
  38. package/dropdown/index.es.js +250 -196
  39. package/editor/index.es.js +694 -498
  40. package/editorbutton/index.es.js +21 -19
  41. package/event-bus/index.es.js +3 -3
  42. package/event-bus/mitt.es.js +37 -20
  43. package/fieldwrapper/index.es.js +30 -25
  44. package/fileupload/index.es.js +230 -140
  45. package/filtercontainer/index.es.js +299 -222
  46. package/form/index.es.js +176 -126
  47. package/gallerypreview/index.es.js +138 -101
  48. package/icon/index.es.js +38 -36
  49. package/image/index.es.js +161 -108
  50. package/imagecompressor/index.es.js +616 -449
  51. package/imageinputinfo/index.es.js +26 -22
  52. package/inlinemessage/index.es.js +77 -65
  53. package/inputbadge/index.es.js +230 -156
  54. package/inputcurrency/index.es.js +146 -109
  55. package/inputemail/index.es.js +18 -16
  56. package/inputgroup/index.es.js +19 -16
  57. package/inputnumber/index.es.js +252 -182
  58. package/inputpassword/index.es.js +120 -94
  59. package/inputphonenumber/index.es.js +1017 -550
  60. package/inputrangenumber/index.es.js +129 -98
  61. package/inputtext/index.es.js +264 -189
  62. package/inputurl/index.es.js +31 -29
  63. package/invisiblefield/index.es.js +24 -16
  64. package/litedropdown/index.es.js +87 -81
  65. package/loading/index.es.js +21 -19
  66. package/loading-page-BXZ4fLOS.js +8 -0
  67. package/loading-page-BuLpsb_1.js +8 -0
  68. package/loading-page-CNqVBg__.js +4 -0
  69. package/loading-page-DbhhZih2.js +4 -0
  70. package/loading-page-DjfWXoOy.js +8 -0
  71. package/loading-page-S-KRY5zm.js +4 -0
  72. package/loading-plane-C1mi7Whv.js +4 -0
  73. package/loading-plane-CWq1hz_l.js +8 -0
  74. package/loading-table-B7LAXzAp.js +4 -0
  75. package/loading-table-BLmgKUsR.js +4 -0
  76. package/loading-table-CG7-cuhv.js +8 -0
  77. package/loading-table-CUPS49ta.js +4 -0
  78. package/loading-table-CuWWrTbv.js +8 -0
  79. package/loading-table-DbBzVwaZ.js +8 -0
  80. package/mentionlist/index.es.js +77 -44
  81. package/mentionsection/index.es.js +53 -43
  82. package/menu/index.es.js +65 -51
  83. package/menuitem/index.es.js +39 -37
  84. package/multirow/index.es.js +29 -28
  85. package/multiselect/index.es.js +184 -152
  86. package/no-data-B781skt3.js +4 -0
  87. package/no-data-CAksOnDl.js +4 -0
  88. package/no-data-DCsjBXQR.js +4 -0
  89. package/no-data-Dz0QOe7Q.js +8 -0
  90. package/no-data-_Huxiv9q.js +8 -0
  91. package/no-data-ybRQontJ.js +8 -0
  92. package/overlaypanel/index.es.js +49 -36
  93. package/package.json +1 -1
  94. package/paginator/index.es.js +36 -33
  95. package/plugins/WangsVue.es.js +63 -45
  96. package/plugins/formValidation.es.js +15 -11
  97. package/progressbar/index.es.js +39 -32
  98. package/quickfilter/index.es.js +94 -81
  99. package/stats.html +1 -1
  100. package/style.css +2 -2
  101. package/tabmenu/index.es.js +18 -16
  102. package/textarea/index.es.js +94 -72
  103. package/timeline/index.es.js +124 -102
  104. package/timelinecontentbytype/index.es.js +114 -92
  105. package/toast/index.es.js +67 -54
  106. package/toggleswitch/index.es.js +83 -66
  107. package/tree/index.es.js +306 -198
  108. package/treenode/index.es.js +464 -339
  109. package/treesearchinput/index.es.js +32 -26
  110. package/usergroup/index.es.js +83 -67
  111. package/username/index.es.js +99 -85
  112. package/utils/addAttachment.util.es.js +47 -21
  113. package/utils/baseToast.util.es.js +41 -33
  114. package/utils/convertJsonImage.util.es.js +24 -24
  115. package/utils/date.util.es.js +131 -106
  116. package/utils/exportToExcel.util.es.js +81 -47
  117. package/utils/filterOptions.util.es.js +8 -2
  118. package/utils/genPlaceholder.util.es.js +30 -16
  119. package/utils/getProjectPermission.util.es.js +15 -12
  120. package/utils/getSalesRole.util.es.js +4 -4
  121. package/utils/getUser.util.es.js +2 -2
  122. package/utils/getUserType.util.es.js +13 -8
  123. package/utils/isIntersect.es.js +4 -2
  124. package/utils/mergePropsWithDefaults.util.es.js +7 -6
  125. package/utils/object.util.es.js +88 -54
  126. package/utils/queryParamsStringfy.util.es.js +19 -11
  127. package/utils/role.util.es.js +5 -4
  128. package/utils/statusSeverity.util.es.js +20 -5
  129. package/utils/textFormatter.util.es.js +28 -50
  130. package/utils/toast.util.es.js +8 -5
  131. package/utils/xlsx.util.es.js +12 -6
  132. package/validatormessage/index.es.js +9 -9
  133. package/vendor/@popperjs/core/lib/createPopper.es.js +110 -83
  134. package/vendor/@popperjs/core/lib/dom-utils/contains.es.js +14 -13
  135. package/vendor/@popperjs/core/lib/dom-utils/getBoundingClientRect.es.js +33 -18
  136. package/vendor/@popperjs/core/lib/dom-utils/getClippingRect.es.js +55 -31
  137. package/vendor/@popperjs/core/lib/dom-utils/getCompositeRect.es.js +43 -22
  138. package/vendor/@popperjs/core/lib/dom-utils/getComputedStyle.es.js +4 -4
  139. package/vendor/@popperjs/core/lib/dom-utils/getDocumentElement.es.js +5 -5
  140. package/vendor/@popperjs/core/lib/dom-utils/getDocumentRect.es.js +23 -13
  141. package/vendor/@popperjs/core/lib/dom-utils/getHTMLElementScroll.es.js +4 -4
  142. package/vendor/@popperjs/core/lib/dom-utils/getLayoutRect.es.js +17 -9
  143. package/vendor/@popperjs/core/lib/dom-utils/getNodeName.es.js +3 -3
  144. package/vendor/@popperjs/core/lib/dom-utils/getNodeScroll.es.js +11 -7
  145. package/vendor/@popperjs/core/lib/dom-utils/getOffsetParent.es.js +42 -26
  146. package/vendor/@popperjs/core/lib/dom-utils/getParentNode.es.js +13 -10
  147. package/vendor/@popperjs/core/lib/dom-utils/getScrollParent.es.js +13 -7
  148. package/vendor/@popperjs/core/lib/dom-utils/getViewportRect.es.js +25 -15
  149. package/vendor/@popperjs/core/lib/dom-utils/getWindow.es.js +8 -7
  150. package/vendor/@popperjs/core/lib/dom-utils/getWindowScroll.es.js +8 -6
  151. package/vendor/@popperjs/core/lib/dom-utils/getWindowScrollBarX.es.js +6 -6
  152. package/vendor/@popperjs/core/lib/dom-utils/instanceOf.es.js +16 -15
  153. package/vendor/@popperjs/core/lib/dom-utils/isLayoutViewport.es.js +4 -4
  154. package/vendor/@popperjs/core/lib/dom-utils/isScrollParent.es.js +5 -5
  155. package/vendor/@popperjs/core/lib/dom-utils/isTableElement.es.js +4 -4
  156. package/vendor/@popperjs/core/lib/dom-utils/listScrollParents.es.js +17 -11
  157. package/vendor/@popperjs/core/lib/enums.es.js +43 -20
  158. package/vendor/@popperjs/core/lib/modifiers/applyStyles.es.js +49 -25
  159. package/vendor/@popperjs/core/lib/modifiers/arrow.es.js +61 -26
  160. package/vendor/@popperjs/core/lib/modifiers/computeStyles.es.js +101 -69
  161. package/vendor/@popperjs/core/lib/modifiers/eventListeners.es.js +30 -16
  162. package/vendor/@popperjs/core/lib/modifiers/flip.es.js +99 -60
  163. package/vendor/@popperjs/core/lib/modifiers/hide.es.js +44 -31
  164. package/vendor/@popperjs/core/lib/modifiers/offset.es.js +32 -20
  165. package/vendor/@popperjs/core/lib/modifiers/popperOffsets.es.js +11 -11
  166. package/vendor/@popperjs/core/lib/modifiers/preventOverflow.es.js +91 -40
  167. package/vendor/@popperjs/core/lib/popper.es.js +14 -13
  168. package/vendor/@popperjs/core/lib/utils/computeAutoPlacement.es.js +29 -21
  169. package/vendor/@popperjs/core/lib/utils/computeOffsets.es.js +41 -36
  170. package/vendor/@popperjs/core/lib/utils/debounce.es.js +11 -7
  171. package/vendor/@popperjs/core/lib/utils/detectOverflow.es.js +42 -28
  172. package/vendor/@popperjs/core/lib/utils/expandToHashMap.es.js +5 -4
  173. package/vendor/@popperjs/core/lib/utils/getAltAxis.es.js +3 -3
  174. package/vendor/@popperjs/core/lib/utils/getBasePlacement.es.js +3 -3
  175. package/vendor/@popperjs/core/lib/utils/getFreshSideObject.es.js +2 -2
  176. package/vendor/@popperjs/core/lib/utils/getMainAxisFromPlacement.es.js +3 -3
  177. package/vendor/@popperjs/core/lib/utils/getOppositePlacement.es.js +5 -5
  178. package/vendor/@popperjs/core/lib/utils/getOppositeVariationPlacement.es.js +5 -5
  179. package/vendor/@popperjs/core/lib/utils/getVariation.es.js +3 -3
  180. package/vendor/@popperjs/core/lib/utils/math.es.js +6 -4
  181. package/vendor/@popperjs/core/lib/utils/mergeByName.es.js +11 -10
  182. package/vendor/@popperjs/core/lib/utils/mergePaddingObject.es.js +4 -4
  183. package/vendor/@popperjs/core/lib/utils/orderModifiers.es.js +30 -22
  184. package/vendor/@popperjs/core/lib/utils/rectToClientRect.es.js +7 -7
  185. package/vendor/@popperjs/core/lib/utils/userAgent.es.js +9 -6
  186. package/vendor/@popperjs/core/lib/utils/within.es.js +8 -8
  187. package/vendor/@tiptap/core/dist/index.es.js +3494 -2000
  188. package/vendor/@tiptap/extension-bold/dist/index.es.js +29 -19
  189. package/vendor/@tiptap/extension-bubble-menu/dist/index.es.js +145 -71
  190. package/vendor/@tiptap/extension-bullet-list/dist/index.es.js +32 -19
  191. package/vendor/@tiptap/extension-code/dist/index.es.js +22 -14
  192. package/vendor/@tiptap/extension-document/dist/index.es.js +4 -4
  193. package/vendor/@tiptap/extension-floating-menu/dist/index.es.js +106 -51
  194. package/vendor/@tiptap/extension-heading/dist/index.es.js +38 -22
  195. package/vendor/@tiptap/extension-history/dist/index.es.js +11 -7
  196. package/vendor/@tiptap/extension-image/dist/index.es.js +20 -17
  197. package/vendor/@tiptap/extension-italic/dist/index.es.js +28 -18
  198. package/vendor/@tiptap/extension-link/dist/index.es.js +236 -147
  199. package/vendor/@tiptap/extension-list-item/dist/index.es.js +6 -6
  200. package/vendor/@tiptap/extension-mention/dist/index.es.js +98 -63
  201. package/vendor/@tiptap/extension-ordered-list/dist/index.es.js +38 -25
  202. package/vendor/@tiptap/extension-paragraph/dist/index.es.js +8 -6
  203. package/vendor/@tiptap/extension-placeholder/dist/index.es.js +34 -27
  204. package/vendor/@tiptap/extension-text/dist/index.es.js +3 -3
  205. package/vendor/@tiptap/extension-underline/dist/index.es.js +16 -10
  206. package/vendor/@tiptap/suggestion/dist/index.es.js +174 -90
  207. package/vendor/@tiptap/vue-3/dist/index.es.js +287 -188
  208. package/vendor/@wangs-ui/core/components/p-BU8h34na.es.js +17 -14
  209. package/vendor/@wangs-ui/core/components/p-C5lMEBcj.es.js +69 -55
  210. package/vendor/@wangs-ui/core/components/p-CKYwZoTo.es.js +26 -22
  211. package/vendor/@wangs-ui/core/components/p-CsoK-EWG.es.js +147 -102
  212. package/vendor/@wangs-ui/core/components/p-DPHEi31J.es.js +102 -77
  213. package/vendor/@wangs-ui/core/components/p-DTTCzifR.es.js +1298 -551
  214. package/vendor/@wangs-ui/core/components/p-Duri5p90.es.js +60 -49
  215. package/vendor/@wangs-ui/core/components/wangs-button.es.js +19 -15
  216. package/vendor/@wangs-ui/core/components/wangs-icon.es.js +3 -3
  217. package/vendor/@wangs-ui/core/components/wangs-input-otp.es.js +3 -3
  218. package/vendor/@wangs-ui/core/components/wangs-tab-menu.es.js +3 -3
  219. package/vendor/@wangs-ui/core/dist/esm/index-DCkh3cGv.es.js +116 -102
  220. package/vendor/@wangs-ui/vue/dist/index.es.js +77 -77
  221. package/vendor/base64toblob/base64toblob.es.js +31 -15
  222. package/vendor/highlight.js/es/core.es.js +5 -5
  223. package/vendor/highlight.js/es/languages/javascript.es.js +237 -193
  224. package/vendor/highlight.js/es/languages/json.es.js +18 -15
  225. package/vendor/highlight.js/es/languages/typescript.es.js +288 -228
  226. package/vendor/highlight.js/es/languages/vbscript-html.es.js +2 -2
  227. package/vendor/highlight.js/lib/core.es.js +1144 -666
  228. package/vendor/linkifyjs/dist/linkify.es.es.js +858 -405
  229. package/vendor/lodash/_Symbol.es.js +11 -8
  230. package/vendor/lodash/_baseGetTag.es.js +19 -12
  231. package/vendor/lodash/_baseTrim.es.js +13 -10
  232. package/vendor/lodash/_freeGlobal.es.js +10 -8
  233. package/vendor/lodash/_getRawTag.es.js +28 -15
  234. package/vendor/lodash/_objectToString.es.js +12 -9
  235. package/vendor/lodash/_root.es.js +12 -8
  236. package/vendor/lodash/_trimmedEndIndex.es.js +14 -11
  237. package/vendor/lodash/debounce.es.js +92 -54
  238. package/vendor/lodash/isObject.es.js +11 -9
  239. package/vendor/lodash/isObjectLike.es.js +10 -8
  240. package/vendor/lodash/isSymbol.es.js +14 -11
  241. package/vendor/lodash/now.es.js +12 -9
  242. package/vendor/lodash/throttle.es.js +25 -17
  243. package/vendor/lodash/toNumber.es.js +33 -23
  244. package/vendor/lodash-es/_DataView.es.js +4 -4
  245. package/vendor/lodash-es/_Hash.es.js +17 -16
  246. package/vendor/lodash-es/_ListCache.es.js +17 -16
  247. package/vendor/lodash-es/_Map.es.js +4 -4
  248. package/vendor/lodash-es/_MapCache.es.js +17 -16
  249. package/vendor/lodash-es/_Promise.es.js +4 -4
  250. package/vendor/lodash-es/_Set.es.js +4 -4
  251. package/vendor/lodash-es/_SetCache.es.js +12 -10
  252. package/vendor/lodash-es/_Stack.es.js +15 -15
  253. package/vendor/lodash-es/_Symbol.es.js +3 -3
  254. package/vendor/lodash-es/_Uint8Array.es.js +3 -3
  255. package/vendor/lodash-es/_WeakMap.es.js +4 -4
  256. package/vendor/lodash-es/_arrayEach.es.js +9 -5
  257. package/vendor/lodash-es/_arrayFilter.es.js +9 -6
  258. package/vendor/lodash-es/_arrayLikeKeys.es.js +21 -17
  259. package/vendor/lodash-es/_arrayPush.es.js +7 -5
  260. package/vendor/lodash-es/_arraySome.es.js +9 -6
  261. package/vendor/lodash-es/_assignValue.es.js +10 -7
  262. package/vendor/lodash-es/_assocIndexOf.es.js +9 -6
  263. package/vendor/lodash-es/_baseAssignValue.es.js +13 -9
  264. package/vendor/lodash-es/_baseClone.es.js +67 -49
  265. package/vendor/lodash-es/_baseCreate.es.js +15 -11
  266. package/vendor/lodash-es/_baseGetAllKeys.es.js +6 -6
  267. package/vendor/lodash-es/_baseGetTag.es.js +11 -7
  268. package/vendor/lodash-es/_baseIsArguments.es.js +6 -6
  269. package/vendor/lodash-es/_baseIsEqual.es.js +11 -5
  270. package/vendor/lodash-es/_baseIsEqualDeep.es.js +39 -26
  271. package/vendor/lodash-es/_baseIsMap.es.js +6 -6
  272. package/vendor/lodash-es/_baseIsNative.es.js +18 -12
  273. package/vendor/lodash-es/_baseIsSet.es.js +6 -6
  274. package/vendor/lodash-es/_baseIsTypedArray.es.js +11 -9
  275. package/vendor/lodash-es/_baseKeys.es.js +16 -11
  276. package/vendor/lodash-es/_baseTimes.es.js +7 -5
  277. package/vendor/lodash-es/_baseTrim.es.js +5 -5
  278. package/vendor/lodash-es/_baseUnary.es.js +4 -4
  279. package/vendor/lodash-es/_cacheHas.es.js +3 -3
  280. package/vendor/lodash-es/_cloneArrayBuffer.es.js +6 -5
  281. package/vendor/lodash-es/_cloneBuffer.es.js +11 -6
  282. package/vendor/lodash-es/_cloneDataView.es.js +5 -5
  283. package/vendor/lodash-es/_cloneRegExp.es.js +6 -5
  284. package/vendor/lodash-es/_cloneSymbol.es.js +5 -5
  285. package/vendor/lodash-es/_cloneTypedArray.es.js +5 -5
  286. package/vendor/lodash-es/_coreJsData.es.js +3 -3
  287. package/vendor/lodash-es/_defineProperty.es.js +7 -6
  288. package/vendor/lodash-es/_equalArrays.es.js +38 -28
  289. package/vendor/lodash-es/_equalByTag.es.js +55 -41
  290. package/vendor/lodash-es/_equalObjects.es.js +42 -28
  291. package/vendor/lodash-es/_freeGlobal.es.js +2 -2
  292. package/vendor/lodash-es/_getAllKeys.es.js +6 -6
  293. package/vendor/lodash-es/_getMapData.es.js +5 -5
  294. package/vendor/lodash-es/_getNative.es.js +6 -6
  295. package/vendor/lodash-es/_getPrototype.es.js +3 -3
  296. package/vendor/lodash-es/_getRawTag.es.js +20 -10
  297. package/vendor/lodash-es/_getSymbols.es.js +15 -8
  298. package/vendor/lodash-es/_getTag.es.js +31 -25
  299. package/vendor/lodash-es/_getValue.es.js +3 -3
  300. package/vendor/lodash-es/_hashClear.es.js +5 -4
  301. package/vendor/lodash-es/_hashDelete.es.js +5 -4
  302. package/vendor/lodash-es/_hashGet.es.js +11 -9
  303. package/vendor/lodash-es/_hashHas.es.js +7 -6
  304. package/vendor/lodash-es/_hashSet.es.js +8 -6
  305. package/vendor/lodash-es/_initCloneArray.es.js +10 -5
  306. package/vendor/lodash-es/_initCloneByTag.es.js +39 -38
  307. package/vendor/lodash-es/_initCloneObject.es.js +6 -6
  308. package/vendor/lodash-es/_isIndex.es.js +7 -5
  309. package/vendor/lodash-es/_isKeyable.es.js +4 -4
  310. package/vendor/lodash-es/_isMasked.es.js +7 -7
  311. package/vendor/lodash-es/_isPrototype.es.js +5 -5
  312. package/vendor/lodash-es/_listCacheClear.es.js +4 -3
  313. package/vendor/lodash-es/_listCacheDelete.es.js +17 -9
  314. package/vendor/lodash-es/_listCacheGet.es.js +5 -5
  315. package/vendor/lodash-es/_listCacheHas.es.js +4 -4
  316. package/vendor/lodash-es/_listCacheSet.es.js +11 -5
  317. package/vendor/lodash-es/_mapCacheClear.es.js +10 -9
  318. package/vendor/lodash-es/_mapCacheDelete.es.js +6 -5
  319. package/vendor/lodash-es/_mapCacheGet.es.js +4 -4
  320. package/vendor/lodash-es/_mapCacheHas.es.js +4 -4
  321. package/vendor/lodash-es/_mapCacheSet.es.js +7 -5
  322. package/vendor/lodash-es/_mapToArray.es.js +7 -6
  323. package/vendor/lodash-es/_nativeCreate.es.js +3 -3
  324. package/vendor/lodash-es/_nativeKeys.es.js +3 -3
  325. package/vendor/lodash-es/_nodeUtil.es.js +13 -6
  326. package/vendor/lodash-es/_objectToString.es.js +5 -4
  327. package/vendor/lodash-es/_overArg.es.js +4 -4
  328. package/vendor/lodash-es/_root.es.js +4 -3
  329. package/vendor/lodash-es/_setCacheAdd.es.js +5 -4
  330. package/vendor/lodash-es/_setCacheHas.es.js +3 -3
  331. package/vendor/lodash-es/_setToArray.es.js +7 -6
  332. package/vendor/lodash-es/_stackClear.es.js +5 -4
  333. package/vendor/lodash-es/_stackDelete.es.js +5 -4
  334. package/vendor/lodash-es/_stackGet.es.js +3 -3
  335. package/vendor/lodash-es/_stackHas.es.js +3 -3
  336. package/vendor/lodash-es/_stackSet.es.js +18 -13
  337. package/vendor/lodash-es/_toSource.es.js +9 -8
  338. package/vendor/lodash-es/_trimmedEndIndex.es.js +7 -6
  339. package/vendor/lodash-es/cloneDeep.es.js +5 -5
  340. package/vendor/lodash-es/debounce.es.js +84 -49
  341. package/vendor/lodash-es/eq.es.js +3 -3
  342. package/vendor/lodash-es/isArguments.es.js +9 -6
  343. package/vendor/lodash-es/isArray.es.js +2 -2
  344. package/vendor/lodash-es/isArrayLike.es.js +5 -5
  345. package/vendor/lodash-es/isBuffer.es.js +9 -4
  346. package/vendor/lodash-es/isEqual.es.js +4 -4
  347. package/vendor/lodash-es/isFunction.es.js +10 -9
  348. package/vendor/lodash-es/isLength.es.js +4 -4
  349. package/vendor/lodash-es/isMap.es.js +6 -5
  350. package/vendor/lodash-es/isObject.es.js +4 -4
  351. package/vendor/lodash-es/isObjectLike.es.js +3 -3
  352. package/vendor/lodash-es/isSet.es.js +6 -5
  353. package/vendor/lodash-es/isSymbol.es.js +6 -6
  354. package/vendor/lodash-es/isTypedArray.es.js +6 -5
  355. package/vendor/lodash-es/keys.es.js +6 -6
  356. package/vendor/lodash-es/now.es.js +4 -4
  357. package/vendor/lodash-es/stubArray.es.js +2 -2
  358. package/vendor/lodash-es/stubFalse.es.js +3 -3
  359. package/vendor/lodash-es/toNumber.es.js +25 -18
  360. package/vendor/lodash-es/toString.es.js +2 -2
  361. package/vendor/lodash-es/uniqueId.es.js +6 -6
  362. package/vendor/orderedmap/dist/index.es.js +65 -49
  363. package/vendor/primevue/api/api.esm.es.js +214 -121
  364. package/vendor/primevue/avatar/avatar.esm.es.js +44 -41
  365. package/vendor/primevue/avatar/style/avatarstyle.esm.es.js +12 -11
  366. package/vendor/primevue/avatargroup/avatargroup.esm.es.js +17 -16
  367. package/vendor/primevue/avatargroup/style/avatargroupstyle.esm.es.js +6 -5
  368. package/vendor/primevue/badge/badge.esm.es.js +21 -20
  369. package/vendor/primevue/badge/style/badgestyle.esm.es.js +19 -18
  370. package/vendor/primevue/base/style/basestyle.esm.es.js +88 -99
  371. package/vendor/primevue/basecomponent/basecomponent.esm.es.js +327 -261
  372. package/vendor/primevue/basedirective/basedirective.esm.es.js +257 -186
  373. package/vendor/primevue/baseicon/baseicon.esm.es.js +55 -49
  374. package/vendor/primevue/baseicon/style/baseiconstyle.esm.es.js +5 -35
  375. package/vendor/primevue/button/button.esm.es.js +76 -72
  376. package/vendor/primevue/button/style/buttonstyle.esm.es.js +46 -39
  377. package/vendor/primevue/card/card.esm.es.js +30 -29
  378. package/vendor/primevue/card/style/cardstyle.esm.es.js +6 -5
  379. package/vendor/primevue/checkbox/checkbox.esm.es.js +109 -101
  380. package/vendor/primevue/checkbox/style/checkboxstyle.esm.es.js +12 -11
  381. package/vendor/primevue/config/config.esm.es.js +76 -58
  382. package/vendor/primevue/dialog/dialog.esm.es.js +421 -281
  383. package/vendor/primevue/dialog/style/dialogstyle.esm.es.js +26 -22
  384. package/vendor/primevue/dropdown/dropdown.esm.es.js +956 -742
  385. package/vendor/primevue/dropdown/style/dropdownstyle.esm.es.js +33 -31
  386. package/vendor/primevue/fileupload/fileupload.esm.es.js +559 -450
  387. package/vendor/primevue/fileupload/style/fileuploadstyle.esm.es.js +14 -13
  388. package/vendor/primevue/focustrap/focustrap.esm.es.js +128 -90
  389. package/vendor/primevue/focustrap/style/focustrapstyle.esm.es.js +2 -2
  390. package/vendor/primevue/icons/angledoubleleft/index.esm.es.js +13 -11
  391. package/vendor/primevue/icons/angledoubleright/index.esm.es.js +13 -11
  392. package/vendor/primevue/icons/angledown/index.esm.es.js +13 -11
  393. package/vendor/primevue/icons/angleleft/index.esm.es.js +13 -11
  394. package/vendor/primevue/icons/angleright/index.esm.es.js +13 -11
  395. package/vendor/primevue/icons/angleup/index.esm.es.js +13 -11
  396. package/vendor/primevue/icons/blank/index.esm.es.js +13 -11
  397. package/vendor/primevue/icons/check/index.esm.es.js +13 -11
  398. package/vendor/primevue/icons/chevrondown/index.esm.es.js +13 -11
  399. package/vendor/primevue/icons/exclamationtriangle/index.esm.es.js +17 -13
  400. package/vendor/primevue/icons/eye/index.esm.es.js +13 -11
  401. package/vendor/primevue/icons/eyeslash/index.esm.es.js +13 -11
  402. package/vendor/primevue/icons/infocircle/index.esm.es.js +13 -11
  403. package/vendor/primevue/icons/plus/index.esm.es.js +13 -11
  404. package/vendor/primevue/icons/refresh/index.esm.es.js +13 -11
  405. package/vendor/primevue/icons/search/index.esm.es.js +13 -11
  406. package/vendor/primevue/icons/searchminus/index.esm.es.js +13 -11
  407. package/vendor/primevue/icons/searchplus/index.esm.es.js +13 -11
  408. package/vendor/primevue/icons/spinner/index.esm.es.js +13 -11
  409. package/vendor/primevue/icons/times/index.esm.es.js +13 -11
  410. package/vendor/primevue/icons/timescircle/index.esm.es.js +13 -11
  411. package/vendor/primevue/icons/undo/index.esm.es.js +13 -11
  412. package/vendor/primevue/icons/upload/index.esm.es.js +13 -11
  413. package/vendor/primevue/icons/windowmaximize/index.esm.es.js +13 -11
  414. package/vendor/primevue/icons/windowminimize/index.esm.es.js +13 -11
  415. package/vendor/primevue/image/image.esm.es.js +280 -235
  416. package/vendor/primevue/image/style/imagestyle.esm.es.js +18 -17
  417. package/vendor/primevue/inputgroup/inputgroup.esm.es.js +17 -16
  418. package/vendor/primevue/inputgroup/style/inputgroupstyle.esm.es.js +6 -5
  419. package/vendor/primevue/inputgroupaddon/inputgroupaddon.esm.es.js +17 -16
  420. package/vendor/primevue/inputgroupaddon/style/inputgroupaddonstyle.esm.es.js +6 -5
  421. package/vendor/primevue/inputnumber/inputnumber.esm.es.js +834 -566
  422. package/vendor/primevue/inputnumber/style/inputnumberstyle.esm.es.js +23 -22
  423. package/vendor/primevue/inputtext/inputtext.esm.es.js +32 -30
  424. package/vendor/primevue/inputtext/style/inputtextstyle.esm.es.js +13 -12
  425. package/vendor/primevue/menu/menu.esm.es.js +402 -304
  426. package/vendor/primevue/menu/style/menustyle.esm.es.js +14 -13
  427. package/vendor/primevue/message/message.esm.es.js +126 -112
  428. package/vendor/primevue/message/style/messagestyle.esm.es.js +9 -8
  429. package/vendor/primevue/multiselect/multiselect.esm.es.js +1083 -835
  430. package/vendor/primevue/multiselect/style/multiselectstyle.esm.es.js +38 -36
  431. package/vendor/primevue/overlayeventbus/overlayeventbus.esm.es.js +3 -3
  432. package/vendor/primevue/overlaypanel/overlaypanel.esm.es.js +275 -169
  433. package/vendor/primevue/overlaypanel/style/overlaypanelstyle.esm.es.js +9 -8
  434. package/vendor/primevue/paginator/paginator.esm.es.js +513 -469
  435. package/vendor/primevue/paginator/style/paginatorstyle.esm.es.js +50 -43
  436. package/vendor/primevue/password/password.esm.es.js +306 -233
  437. package/vendor/primevue/password/style/passwordstyle.esm.es.js +26 -24
  438. package/vendor/primevue/portal/portal.esm.es.js +17 -17
  439. package/vendor/primevue/progressbar/progressbar.esm.es.js +37 -35
  440. package/vendor/primevue/progressbar/style/progressbarstyle.esm.es.js +10 -9
  441. package/vendor/primevue/ripple/ripple.esm.es.js +90 -62
  442. package/vendor/primevue/ripple/style/ripplestyle.esm.es.js +6 -5
  443. package/vendor/primevue/selectbutton/selectbutton.esm.es.js +213 -167
  444. package/vendor/primevue/selectbutton/style/selectbuttonstyle.esm.es.js +14 -13
  445. package/vendor/primevue/skeleton/skeleton.esm.es.js +28 -26
  446. package/vendor/primevue/skeleton/style/skeletonstyle.esm.es.js +13 -11
  447. package/vendor/primevue/textarea/style/textareastyle.esm.es.js +12 -11
  448. package/vendor/primevue/textarea/textarea.esm.es.js +49 -33
  449. package/vendor/primevue/timeline/style/timelinestyle.esm.es.js +9 -8
  450. package/vendor/primevue/timeline/timeline.esm.es.js +53 -52
  451. package/vendor/primevue/toast/style/toaststyle.esm.es.js +54 -46
  452. package/vendor/primevue/toast/toast.esm.es.js +309 -260
  453. package/vendor/primevue/toasteventbus/toasteventbus.esm.es.js +3 -3
  454. package/vendor/primevue/toastservice/toastservice.esm.es.js +16 -15
  455. package/vendor/primevue/tooltip/style/tooltipstyle.esm.es.js +6 -5
  456. package/vendor/primevue/tooltip/tooltip.esm.es.js +383 -186
  457. package/vendor/primevue/usestyle/usestyle.esm.es.js +94 -64
  458. package/vendor/primevue/usetoast/usetoast.esm.es.js +9 -8
  459. package/vendor/primevue/utils/utils.esm.es.js +1078 -772
  460. package/vendor/primevue/virtualscroller/style/virtualscrollerstyle.esm.es.js +5 -67
  461. package/vendor/primevue/virtualscroller/virtualscroller.esm.es.js +655 -428
  462. package/vendor/prosemirror-commands/dist/index.es.js +454 -316
  463. package/vendor/prosemirror-history/dist/index.es.js +286 -178
  464. package/vendor/prosemirror-keymap/dist/index.es.js +68 -48
  465. package/vendor/prosemirror-model/dist/index.es.js +1905 -1436
  466. package/vendor/prosemirror-schema-list/dist/index.es.js +115 -73
  467. package/vendor/prosemirror-state/dist/index.es.js +467 -353
  468. package/vendor/prosemirror-transform/dist/index.es.js +1146 -829
  469. package/vendor/prosemirror-view/dist/index.es.js +4127 -2719
  470. package/vendor/rope-sequence/dist/index.es.js +165 -82
  471. package/vendor/simplebar-core/dist/index.es.js +670 -242
  472. package/vendor/simplebar-vue/dist/simplebar-vue.esm.es.js +73 -60
  473. package/vendor/single-spa/lib/es2015/esm/single-spa.min.es.js +511 -510
  474. package/vendor/tippy.js/dist/tippy.esm.es.js +971 -525
  475. package/vendor/vee-validate/dist/vee-validate.esm.es.js +1830 -1097
  476. package/vendor/vue-advanced-cropper/dist/index.esm-bundler.es.js +740 -738
  477. package/vendor/w3c-keyname/index.es.js +25 -13
  478. package/wangsvue.es.js +167 -208
  479. package/wangsvue.esm.browser.js +49417 -48026
  480. package/wangsvue.system.js +67600 -234
  481. package/api/index.es.js +0 -149
  482. package/apiitem/index.es.js +0 -611
  483. package/assignmember/index.es.js +0 -434
  484. package/attachment/index.es.js +0 -118
  485. package/attachmentchangelog/index.es.js +0 -79
  486. package/attachmentitem/index.es.js +0 -231
  487. package/attachmentthumbnail/index.es.js +0 -83
  488. package/changelog/index.d.ts +0 -164
  489. package/changelog/index.es.js +0 -85
  490. package/changelogfilter/index.es.js +0 -113
  491. package/changelogpage/index.d.ts +0 -184
  492. package/changelogpage/index.es.js +0 -176
  493. package/checklist/index.es.js +0 -571
  494. package/checklistchangelog/index.es.js +0 -85
  495. package/comment/index.d.ts +0 -187
  496. package/comment/index.es.js +0 -267
  497. package/commentblock/index.es.js +0 -337
  498. package/confirmdeploy/index.es.js +0 -64
  499. package/dependencycol/index.es.js +0 -32
  500. package/description/index.es.js +0 -135
  501. package/descriptiontab/index.es.js +0 -30
  502. package/detailmember/index.d.ts +0 -77
  503. package/detailmember/index.es.js +0 -32
  504. package/detailmemberadmin/index.es.js +0 -210
  505. package/detailmemberleader/index.es.js +0 -164
  506. package/detailmemberlog/index.es.js +0 -117
  507. package/detailsprint/index.d.ts +0 -86
  508. package/detailsprint/index.es.js +0 -414
  509. package/dialogaddattachment/index.es.js +0 -273
  510. package/dialogaddchecklist/index.es.js +0 -120
  511. package/dialogaddeditapi/index.es.js +0 -87
  512. package/dialogaddpbi/index.es.js +0 -197
  513. package/dialogadjustmenttask/index.es.js +0 -484
  514. package/dialogadjustmenttaskheader/index.es.js +0 -193
  515. package/dialogapichangelog/index.es.js +0 -83
  516. package/dialogassignmember/index.es.js +0 -171
  517. package/dialogconfirmapproval/index.es.js +0 -54
  518. package/dialogconfirmchecklist/index.es.js +0 -189
  519. package/dialogconfirmdeletetask/index.es.js +0 -70
  520. package/dialogconfirmdeletetaskpermanently/index.es.js +0 -50
  521. package/dialogconfirmedit/index.es.js +0 -50
  522. package/dialogconfirmfinishtask/index.es.js +0 -50
  523. package/dialogconfirmrestoretask/index.es.js +0 -46
  524. package/dialogconfirmsprint/index.es.js +0 -42
  525. package/dialogcopyapi/index.es.js +0 -130
  526. package/dialogcustomdependency/index.es.js +0 -55
  527. package/dialogdetailchecklisttemplate/index.es.js +0 -214
  528. package/dialogdetailcomponent/index.es.js +0 -121
  529. package/dialogdetailpbi/index.es.js +0 -192
  530. package/dialogfinishreview/index.es.js +0 -126
  531. package/dialogimprovementtask/index.es.js +0 -191
  532. package/dialogmemberadmin/index.es.js +0 -93
  533. package/dialogpreparepbi/index.es.js +0 -93
  534. package/dialogpriorityvalue/index.es.js +0 -85
  535. package/dialogreportbug/index.es.js +0 -207
  536. package/dialogreviewleader/index.es.js +0 -280
  537. package/dialogsavechecklisttemplate/index.es.js +0 -127
  538. package/dialogselectproject/index.es.js +0 -69
  539. package/dialogsetduration/index.es.js +0 -109
  540. package/dialogsettasklink/index.es.js +0 -153
  541. package/dialogtestapi/index.es.js +0 -389
  542. package/eventlogtab/index.es.js +0 -50
  543. package/infotasktab/index.es.js +0 -186
  544. package/inputadditional/index.es.js +0 -62
  545. package/inputinitialname/index.d.ts +0 -118
  546. package/inputinitialname/index.es.js +0 -95
  547. package/inputrepositoryname/index.d.ts +0 -86
  548. package/inputrepositoryname/index.es.js +0 -41
  549. package/isrequiredtext/index.es.js +0 -16
  550. package/legend/index.es.js +0 -727
  551. package/legendlist/index.es.js +0 -33
  552. package/loading-page-BrQattYE.js +0 -1
  553. package/loading-page-CgfbWppy.js +0 -1
  554. package/loading-page-CoC9UhfC.js +0 -4
  555. package/loading-page-CoXtqoc9.js +0 -4
  556. package/loading-page-DbLuqCHa.js +0 -1
  557. package/loading-page-f8D03l3G.js +0 -4
  558. package/loading-plane-CgfbWppy.js +0 -1
  559. package/loading-plane-CoXtqoc9.js +0 -4
  560. package/loading-table-Bdr9ZhtP.js +0 -1
  561. package/loading-table-ByUoWqUo.js +0 -4
  562. package/loading-table-BygEMzFM.js +0 -4
  563. package/loading-table-BzrSQlA0.js +0 -1
  564. package/loading-table-D9bw9OcI.js +0 -4
  565. package/loading-table-chOgXi94.js +0 -1
  566. package/no-data-CTKux8RI.js +0 -4
  567. package/no-data-Cgze_Rvp.js +0 -1
  568. package/no-data-DLHO1L_u.js +0 -4
  569. package/no-data-Dep79CBh.js +0 -1
  570. package/no-data-g0dJCy2p.js +0 -4
  571. package/no-data-y1X5WtcQ.js +0 -1
  572. package/notificationitem/index.d.ts +0 -107
  573. package/notificationitem/index.es.js +0 -333
  574. package/reviewitem/index.es.js +0 -65
  575. package/reviewtab/index.es.js +0 -44
  576. package/services/calendar.service.es.js +0 -32
  577. package/sonarqubesummary/index.es.js +0 -234
  578. package/sprintsummary/index.es.js +0 -73
  579. package/summaryaccordion/index.d.ts +0 -121
  580. package/summaryaccordion/index.es.js +0 -365
  581. package/taskdependency/index.es.js +0 -686
  582. package/taskdetail/index.d.ts +0 -82
  583. package/taskdetail/index.es.js +0 -491
  584. package/taskdetailpbi/index.d.ts +0 -35
  585. package/taskdetailpbi/index.es.js +0 -172
  586. package/taskdetailunassignedpbi/index.es.js +0 -261
  587. package/tasklink/index.es.js +0 -257
  588. package/tasklinkchangelog/index.es.js +0 -93
  589. package/tasklist/index.es.js +0 -92
  590. package/taskmore/index.es.js +0 -52
  591. package/taskstatusbadge/index.es.js +0 -18
  592. package/tasktable/index.d.ts +0 -87
  593. package/tasktable/index.es.js +0 -832
  594. package/ticket/index.es.js +0 -151
  595. package/tooltipspan/index.es.js +0 -30
  596. package/utils/updateSprintStatus.util.es.js +0 -17
  597. package/valueformdatainput/index.es.js +0 -70
  598. package/workcalendar/index.es.js +0 -351
@@ -1,250 +1,255 @@
1
- import { s as j } from "../button/button.esm.es.js";
2
- import { s as _ } from "../icons/angledown/index.esm.es.js";
3
- import { s as G } from "../icons/angleup/index.esm.es.js";
4
- import { s as W } from "../inputtext/inputtext.esm.es.js";
5
- import { D as C, O } from "../utils/utils.esm.es.js";
6
- import { s as H } from "../basecomponent/basecomponent.esm.es.js";
7
- import { I as q } from "./style/inputnumberstyle.esm.es.js";
8
- import { resolveComponent as k, createElementBlock as U, openBlock as m, mergeProps as p, createVNode as $, createCommentVNode as V, createBlock as I, toHandlers as w, withCtx as x, renderSlot as S, resolveDynamicComponent as v } from "vue";
9
- var z = {
1
+ import { s as script$4 } from "../button/button.esm.es.js";
2
+ import { s as script$2 } from "../icons/angledown/index.esm.es.js";
3
+ import { s as script$3 } from "../icons/angleup/index.esm.es.js";
4
+ import { s as script$5 } from "../inputtext/inputtext.esm.es.js";
5
+ import { D as DomHandler, O as ObjectUtils } from "../utils/utils.esm.es.js";
6
+ import { s as script$6 } from "../basecomponent/basecomponent.esm.es.js";
7
+ import { I as InputNumberStyle } from "./style/inputnumberstyle.esm.es.js";
8
+ import { resolveComponent, createElementBlock, openBlock, mergeProps, createVNode, createCommentVNode, createBlock, toHandlers, withCtx, renderSlot, resolveDynamicComponent } from "vue";
9
+ var script$1 = {
10
10
  name: "BaseInputNumber",
11
- extends: H,
11
+ "extends": script$6,
12
12
  props: {
13
13
  modelValue: {
14
14
  type: Number,
15
- default: null
15
+ "default": null
16
16
  },
17
17
  format: {
18
18
  type: Boolean,
19
- default: !0
19
+ "default": true
20
20
  },
21
21
  showButtons: {
22
22
  type: Boolean,
23
- default: !1
23
+ "default": false
24
24
  },
25
25
  buttonLayout: {
26
26
  type: String,
27
- default: "stacked"
27
+ "default": "stacked"
28
28
  },
29
29
  incrementButtonClass: {
30
30
  type: String,
31
- default: null
31
+ "default": null
32
32
  },
33
33
  decrementButtonClass: {
34
34
  type: String,
35
- default: null
35
+ "default": null
36
36
  },
37
37
  incrementButtonIcon: {
38
38
  type: String,
39
- default: void 0
39
+ "default": void 0
40
40
  },
41
41
  decrementButtonIcon: {
42
42
  type: String,
43
- default: void 0
43
+ "default": void 0
44
44
  },
45
45
  locale: {
46
46
  type: String,
47
- default: void 0
47
+ "default": void 0
48
48
  },
49
49
  localeMatcher: {
50
50
  type: String,
51
- default: void 0
51
+ "default": void 0
52
52
  },
53
53
  mode: {
54
54
  type: String,
55
- default: "decimal"
55
+ "default": "decimal"
56
56
  },
57
57
  prefix: {
58
58
  type: String,
59
- default: null
59
+ "default": null
60
60
  },
61
61
  suffix: {
62
62
  type: String,
63
- default: null
63
+ "default": null
64
64
  },
65
65
  currency: {
66
66
  type: String,
67
- default: void 0
67
+ "default": void 0
68
68
  },
69
69
  currencyDisplay: {
70
70
  type: String,
71
- default: void 0
71
+ "default": void 0
72
72
  },
73
73
  useGrouping: {
74
74
  type: Boolean,
75
- default: !0
75
+ "default": true
76
76
  },
77
77
  minFractionDigits: {
78
78
  type: Number,
79
- default: void 0
79
+ "default": void 0
80
80
  },
81
81
  maxFractionDigits: {
82
82
  type: Number,
83
- default: void 0
83
+ "default": void 0
84
84
  },
85
85
  roundingMode: {
86
86
  type: String,
87
- default: "halfExpand",
88
- validator: function(e) {
89
- return ["ceil", "floor", "expand", "trunc", "halfCeil", "halfFloor", "halfExpand", "halfTrunc", "halfEven"].includes(e);
87
+ "default": "halfExpand",
88
+ validator: function validator(value) {
89
+ return ["ceil", "floor", "expand", "trunc", "halfCeil", "halfFloor", "halfExpand", "halfTrunc", "halfEven"].includes(value);
90
90
  }
91
91
  },
92
92
  min: {
93
93
  type: Number,
94
- default: null
94
+ "default": null
95
95
  },
96
96
  max: {
97
97
  type: Number,
98
- default: null
98
+ "default": null
99
99
  },
100
100
  step: {
101
101
  type: Number,
102
- default: 1
102
+ "default": 1
103
103
  },
104
104
  allowEmpty: {
105
105
  type: Boolean,
106
- default: !0
106
+ "default": true
107
107
  },
108
108
  highlightOnFocus: {
109
109
  type: Boolean,
110
- default: !1
110
+ "default": false
111
111
  },
112
112
  readonly: {
113
113
  type: Boolean,
114
- default: !1
114
+ "default": false
115
115
  },
116
116
  variant: {
117
117
  type: String,
118
- default: null
118
+ "default": null
119
119
  },
120
120
  invalid: {
121
121
  type: Boolean,
122
- default: !1
122
+ "default": false
123
123
  },
124
124
  disabled: {
125
125
  type: Boolean,
126
- default: !1
126
+ "default": false
127
127
  },
128
128
  placeholder: {
129
129
  type: String,
130
- default: null
130
+ "default": null
131
131
  },
132
132
  inputId: {
133
133
  type: String,
134
- default: null
134
+ "default": null
135
135
  },
136
136
  inputClass: {
137
137
  type: [String, Object],
138
- default: null
138
+ "default": null
139
139
  },
140
140
  inputStyle: {
141
141
  type: Object,
142
- default: null
142
+ "default": null
143
143
  },
144
144
  inputProps: {
145
145
  type: null,
146
- default: null
146
+ "default": null
147
147
  },
148
148
  incrementButtonProps: {
149
149
  type: null,
150
- default: null
150
+ "default": null
151
151
  },
152
152
  decrementButtonProps: {
153
153
  type: null,
154
- default: null
154
+ "default": null
155
155
  },
156
156
  ariaLabelledby: {
157
157
  type: String,
158
- default: null
158
+ "default": null
159
159
  },
160
160
  ariaLabel: {
161
161
  type: String,
162
- default: null
162
+ "default": null
163
163
  }
164
164
  },
165
- style: q,
166
- provide: function() {
165
+ style: InputNumberStyle,
166
+ provide: function provide() {
167
167
  return {
168
168
  $parentInstance: this
169
169
  };
170
170
  }
171
171
  };
172
- function D(n) {
172
+ function _typeof(o) {
173
173
  "@babel/helpers - typeof";
174
- return D = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
175
- return typeof e;
176
- } : function(e) {
177
- return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
178
- }, D(n);
174
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
175
+ return typeof o2;
176
+ } : function(o2) {
177
+ return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
178
+ }, _typeof(o);
179
179
  }
180
- function A(n, e) {
181
- var t = Object.keys(n);
180
+ function ownKeys(e, r) {
181
+ var t = Object.keys(e);
182
182
  if (Object.getOwnPropertySymbols) {
183
- var i = Object.getOwnPropertySymbols(n);
184
- e && (i = i.filter(function(r) {
185
- return Object.getOwnPropertyDescriptor(n, r).enumerable;
186
- })), t.push.apply(t, i);
183
+ var o = Object.getOwnPropertySymbols(e);
184
+ r && (o = o.filter(function(r2) {
185
+ return Object.getOwnPropertyDescriptor(e, r2).enumerable;
186
+ })), t.push.apply(t, o);
187
187
  }
188
188
  return t;
189
189
  }
190
- function R(n) {
191
- for (var e = 1; e < arguments.length; e++) {
192
- var t = arguments[e] != null ? arguments[e] : {};
193
- e % 2 ? A(Object(t), !0).forEach(function(i) {
194
- J(n, i, t[i]);
195
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(n, Object.getOwnPropertyDescriptors(t)) : A(Object(t)).forEach(function(i) {
196
- Object.defineProperty(n, i, Object.getOwnPropertyDescriptor(t, i));
190
+ function _objectSpread(e) {
191
+ for (var r = 1; r < arguments.length; r++) {
192
+ var t = null != arguments[r] ? arguments[r] : {};
193
+ r % 2 ? ownKeys(Object(t), true).forEach(function(r2) {
194
+ _defineProperty(e, r2, t[r2]);
195
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function(r2) {
196
+ Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
197
197
  });
198
198
  }
199
- return n;
199
+ return e;
200
200
  }
201
- function J(n, e, t) {
202
- return e = Q(e), e in n ? Object.defineProperty(n, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : n[e] = t, n;
201
+ function _defineProperty(obj, key, value) {
202
+ key = _toPropertyKey(key);
203
+ if (key in obj) {
204
+ Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true });
205
+ } else {
206
+ obj[key] = value;
207
+ }
208
+ return obj;
203
209
  }
204
- function Q(n) {
205
- var e = X(n, "string");
206
- return D(e) == "symbol" ? e : String(e);
210
+ function _toPropertyKey(t) {
211
+ var i = _toPrimitive(t, "string");
212
+ return "symbol" == _typeof(i) ? i : String(i);
207
213
  }
208
- function X(n, e) {
209
- if (D(n) != "object" || !n) return n;
210
- var t = n[Symbol.toPrimitive];
211
- if (t !== void 0) {
212
- var i = t.call(n, e);
213
- if (D(i) != "object") return i;
214
+ function _toPrimitive(t, r) {
215
+ if ("object" != _typeof(t) || !t) return t;
216
+ var e = t[Symbol.toPrimitive];
217
+ if (void 0 !== e) {
218
+ var i = e.call(t, r);
219
+ if ("object" != _typeof(i)) return i;
214
220
  throw new TypeError("@@toPrimitive must return a primitive value.");
215
221
  }
216
- return (e === "string" ? String : Number)(n);
222
+ return ("string" === r ? String : Number)(t);
217
223
  }
218
- function Y(n) {
219
- return ne(n) || te(n) || ee(n) || Z();
224
+ function _toConsumableArray(arr) {
225
+ return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
220
226
  }
221
- function Z() {
222
- throw new TypeError(`Invalid attempt to spread non-iterable instance.
223
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
227
+ function _nonIterableSpread() {
228
+ throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
224
229
  }
225
- function ee(n, e) {
226
- if (n) {
227
- if (typeof n == "string") return M(n, e);
228
- var t = Object.prototype.toString.call(n).slice(8, -1);
229
- if (t === "Object" && n.constructor && (t = n.constructor.name), t === "Map" || t === "Set") return Array.from(n);
230
- if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)) return M(n, e);
231
- }
230
+ function _unsupportedIterableToArray(o, minLen) {
231
+ if (!o) return;
232
+ if (typeof o === "string") return _arrayLikeToArray(o, minLen);
233
+ var n = Object.prototype.toString.call(o).slice(8, -1);
234
+ if (n === "Object" && o.constructor) n = o.constructor.name;
235
+ if (n === "Map" || n === "Set") return Array.from(o);
236
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
232
237
  }
233
- function te(n) {
234
- if (typeof Symbol < "u" && n[Symbol.iterator] != null || n["@@iterator"] != null) return Array.from(n);
238
+ function _iterableToArray(iter) {
239
+ if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
235
240
  }
236
- function ne(n) {
237
- if (Array.isArray(n)) return M(n);
241
+ function _arrayWithoutHoles(arr) {
242
+ if (Array.isArray(arr)) return _arrayLikeToArray(arr);
238
243
  }
239
- function M(n, e) {
240
- (e == null || e > n.length) && (e = n.length);
241
- for (var t = 0, i = new Array(e); t < e; t++) i[t] = n[t];
242
- return i;
244
+ function _arrayLikeToArray(arr, len) {
245
+ if (len == null || len > arr.length) len = arr.length;
246
+ for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
247
+ return arr2;
243
248
  }
244
- var ie = {
249
+ var script = {
245
250
  name: "InputNumber",
246
- extends: z,
247
- inheritAttrs: !1,
251
+ "extends": script$1,
252
+ inheritAttrs: false,
248
253
  emits: ["update:modelValue", "input", "focus", "blur"],
249
254
  numberFormat: null,
250
255
  _numeral: null,
@@ -260,102 +265,113 @@ var ie = {
260
265
  prefixChar: null,
261
266
  suffixChar: null,
262
267
  timer: null,
263
- data: function() {
268
+ data: function data() {
264
269
  return {
265
270
  d_modelValue: this.modelValue,
266
- focused: !1
271
+ focused: false
267
272
  };
268
273
  },
269
274
  watch: {
270
- modelValue: function(e) {
271
- this.d_modelValue = e;
275
+ modelValue: function modelValue(newValue) {
276
+ this.d_modelValue = newValue;
272
277
  },
273
- locale: function(e, t) {
274
- this.updateConstructParser(e, t);
278
+ locale: function locale(newValue, oldValue) {
279
+ this.updateConstructParser(newValue, oldValue);
275
280
  },
276
- localeMatcher: function(e, t) {
277
- this.updateConstructParser(e, t);
281
+ localeMatcher: function localeMatcher(newValue, oldValue) {
282
+ this.updateConstructParser(newValue, oldValue);
278
283
  },
279
- mode: function(e, t) {
280
- this.updateConstructParser(e, t);
284
+ mode: function mode(newValue, oldValue) {
285
+ this.updateConstructParser(newValue, oldValue);
281
286
  },
282
- currency: function(e, t) {
283
- this.updateConstructParser(e, t);
287
+ currency: function currency(newValue, oldValue) {
288
+ this.updateConstructParser(newValue, oldValue);
284
289
  },
285
- currencyDisplay: function(e, t) {
286
- this.updateConstructParser(e, t);
290
+ currencyDisplay: function currencyDisplay(newValue, oldValue) {
291
+ this.updateConstructParser(newValue, oldValue);
287
292
  },
288
- useGrouping: function(e, t) {
289
- this.updateConstructParser(e, t);
293
+ useGrouping: function useGrouping(newValue, oldValue) {
294
+ this.updateConstructParser(newValue, oldValue);
290
295
  },
291
- minFractionDigits: function(e, t) {
292
- this.updateConstructParser(e, t);
296
+ minFractionDigits: function minFractionDigits(newValue, oldValue) {
297
+ this.updateConstructParser(newValue, oldValue);
293
298
  },
294
- maxFractionDigits: function(e, t) {
295
- this.updateConstructParser(e, t);
299
+ maxFractionDigits: function maxFractionDigits(newValue, oldValue) {
300
+ this.updateConstructParser(newValue, oldValue);
296
301
  },
297
- suffix: function(e, t) {
298
- this.updateConstructParser(e, t);
302
+ suffix: function suffix(newValue, oldValue) {
303
+ this.updateConstructParser(newValue, oldValue);
299
304
  },
300
- prefix: function(e, t) {
301
- this.updateConstructParser(e, t);
305
+ prefix: function prefix(newValue, oldValue) {
306
+ this.updateConstructParser(newValue, oldValue);
302
307
  }
303
308
  },
304
- created: function() {
309
+ created: function created() {
305
310
  this.constructParser();
306
311
  },
307
312
  methods: {
308
- getOptions: function() {
309
- var e, t;
313
+ getOptions: function getOptions() {
314
+ var _this$minFractionDigi, _this$maxFractionDigi;
310
315
  return {
311
316
  localeMatcher: this.localeMatcher,
312
317
  style: this.mode,
313
318
  currency: this.currency,
314
319
  currencyDisplay: this.currencyDisplay,
315
320
  useGrouping: this.useGrouping,
316
- minimumFractionDigits: (e = this.minFractionDigits) !== null && e !== void 0 ? e : void 0,
317
- maximumFractionDigits: (t = this.maxFractionDigits) !== null && t !== void 0 ? t : void 0,
321
+ minimumFractionDigits: (_this$minFractionDigi = this.minFractionDigits) !== null && _this$minFractionDigi !== void 0 ? _this$minFractionDigi : void 0,
322
+ maximumFractionDigits: (_this$maxFractionDigi = this.maxFractionDigits) !== null && _this$maxFractionDigi !== void 0 ? _this$maxFractionDigi : void 0,
318
323
  roundingMode: this.roundingMode
319
324
  };
320
325
  },
321
- constructParser: function() {
326
+ constructParser: function constructParser() {
322
327
  this.numberFormat = new Intl.NumberFormat(this.locale, this.getOptions());
323
- var e = Y(new Intl.NumberFormat(this.locale, {
324
- useGrouping: !1
325
- }).format(9876543210)).reverse(), t = new Map(e.map(function(i, r) {
326
- return [i, r];
328
+ var numerals = _toConsumableArray(new Intl.NumberFormat(this.locale, {
329
+ useGrouping: false
330
+ }).format(9876543210)).reverse();
331
+ var index = new Map(numerals.map(function(d, i) {
332
+ return [d, i];
327
333
  }));
328
- this._numeral = new RegExp("[".concat(e.join(""), "]"), "g"), this._group = this.getGroupingExpression(), this._minusSign = this.getMinusSignExpression(), this._currency = this.getCurrencyExpression(), this._decimal = this.getDecimalExpression(), this._suffix = this.getSuffixExpression(), this._prefix = this.getPrefixExpression(), this._index = function(i) {
329
- return t.get(i);
334
+ this._numeral = new RegExp("[".concat(numerals.join(""), "]"), "g");
335
+ this._group = this.getGroupingExpression();
336
+ this._minusSign = this.getMinusSignExpression();
337
+ this._currency = this.getCurrencyExpression();
338
+ this._decimal = this.getDecimalExpression();
339
+ this._suffix = this.getSuffixExpression();
340
+ this._prefix = this.getPrefixExpression();
341
+ this._index = function(d) {
342
+ return index.get(d);
330
343
  };
331
344
  },
332
- updateConstructParser: function(e, t) {
333
- e !== t && this.constructParser();
345
+ updateConstructParser: function updateConstructParser(newValue, oldValue) {
346
+ if (newValue !== oldValue) {
347
+ this.constructParser();
348
+ }
334
349
  },
335
- escapeRegExp: function(e) {
336
- return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
350
+ escapeRegExp: function escapeRegExp(text) {
351
+ return text.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
337
352
  },
338
- getDecimalExpression: function() {
339
- var e = new Intl.NumberFormat(this.locale, R(R({}, this.getOptions()), {}, {
340
- useGrouping: !1
353
+ getDecimalExpression: function getDecimalExpression() {
354
+ var formatter = new Intl.NumberFormat(this.locale, _objectSpread(_objectSpread({}, this.getOptions()), {}, {
355
+ useGrouping: false
341
356
  }));
342
- return new RegExp("[".concat(e.format(1.1).replace(this._currency, "").trim().replace(this._numeral, ""), "]"), "g");
357
+ return new RegExp("[".concat(formatter.format(1.1).replace(this._currency, "").trim().replace(this._numeral, ""), "]"), "g");
343
358
  },
344
- getGroupingExpression: function() {
345
- var e = new Intl.NumberFormat(this.locale, {
346
- useGrouping: !0
359
+ getGroupingExpression: function getGroupingExpression() {
360
+ var formatter = new Intl.NumberFormat(this.locale, {
361
+ useGrouping: true
347
362
  });
348
- return this.groupChar = e.format(1e6).trim().replace(this._numeral, "").charAt(0), new RegExp("[".concat(this.groupChar, "]"), "g");
363
+ this.groupChar = formatter.format(1e6).trim().replace(this._numeral, "").charAt(0);
364
+ return new RegExp("[".concat(this.groupChar, "]"), "g");
349
365
  },
350
- getMinusSignExpression: function() {
351
- var e = new Intl.NumberFormat(this.locale, {
352
- useGrouping: !1
366
+ getMinusSignExpression: function getMinusSignExpression() {
367
+ var formatter = new Intl.NumberFormat(this.locale, {
368
+ useGrouping: false
353
369
  });
354
- return new RegExp("[".concat(e.format(-1).trim().replace(this._numeral, ""), "]"), "g");
370
+ return new RegExp("[".concat(formatter.format(-1).trim().replace(this._numeral, ""), "]"), "g");
355
371
  },
356
- getCurrencyExpression: function() {
372
+ getCurrencyExpression: function getCurrencyExpression() {
357
373
  if (this.currency) {
358
- var e = new Intl.NumberFormat(this.locale, {
374
+ var formatter = new Intl.NumberFormat(this.locale, {
359
375
  style: "currency",
360
376
  currency: this.currency,
361
377
  currencyDisplay: this.currencyDisplay,
@@ -363,28 +379,28 @@ var ie = {
363
379
  maximumFractionDigits: 0,
364
380
  roundingMode: this.roundingMode
365
381
  });
366
- return new RegExp("[".concat(e.format(1).replace(/\s/g, "").replace(this._numeral, "").replace(this._group, ""), "]"), "g");
382
+ return new RegExp("[".concat(formatter.format(1).replace(/\s/g, "").replace(this._numeral, "").replace(this._group, ""), "]"), "g");
367
383
  }
368
384
  return new RegExp("[]", "g");
369
385
  },
370
- getPrefixExpression: function() {
371
- if (this.prefix)
386
+ getPrefixExpression: function getPrefixExpression() {
387
+ if (this.prefix) {
372
388
  this.prefixChar = this.prefix;
373
- else {
374
- var e = new Intl.NumberFormat(this.locale, {
389
+ } else {
390
+ var formatter = new Intl.NumberFormat(this.locale, {
375
391
  style: this.mode,
376
392
  currency: this.currency,
377
393
  currencyDisplay: this.currencyDisplay
378
394
  });
379
- this.prefixChar = e.format(1).split("1")[0];
395
+ this.prefixChar = formatter.format(1).split("1")[0];
380
396
  }
381
397
  return new RegExp("".concat(this.escapeRegExp(this.prefixChar || "")), "g");
382
398
  },
383
- getSuffixExpression: function() {
384
- if (this.suffix)
399
+ getSuffixExpression: function getSuffixExpression() {
400
+ if (this.suffix) {
385
401
  this.suffixChar = this.suffix;
386
- else {
387
- var e = new Intl.NumberFormat(this.locale, {
402
+ } else {
403
+ var formatter = new Intl.NumberFormat(this.locale, {
388
404
  style: this.mode,
389
405
  currency: this.currency,
390
406
  currencyDisplay: this.currencyDisplay,
@@ -392,546 +408,798 @@ var ie = {
392
408
  maximumFractionDigits: 0,
393
409
  roundingMode: this.roundingMode
394
410
  });
395
- this.suffixChar = e.format(1).split("1")[1];
411
+ this.suffixChar = formatter.format(1).split("1")[1];
396
412
  }
397
413
  return new RegExp("".concat(this.escapeRegExp(this.suffixChar || "")), "g");
398
414
  },
399
- formatValue: function(e) {
400
- if (e != null) {
401
- if (e === "-")
402
- return e;
415
+ formatValue: function formatValue(value) {
416
+ if (value != null) {
417
+ if (value === "-") {
418
+ return value;
419
+ }
403
420
  if (this.format) {
404
- var t = new Intl.NumberFormat(this.locale, this.getOptions()), i = t.format(e);
405
- return this.prefix && (i = this.prefix + i), this.suffix && (i = i + this.suffix), i;
421
+ var formatter = new Intl.NumberFormat(this.locale, this.getOptions());
422
+ var formattedValue2 = formatter.format(value);
423
+ if (this.prefix) {
424
+ formattedValue2 = this.prefix + formattedValue2;
425
+ }
426
+ if (this.suffix) {
427
+ formattedValue2 = formattedValue2 + this.suffix;
428
+ }
429
+ return formattedValue2;
406
430
  }
407
- return e.toString();
431
+ return value.toString();
408
432
  }
409
433
  return "";
410
434
  },
411
- parseValue: function(e) {
412
- var t = e.replace(this._suffix, "").replace(this._prefix, "").trim().replace(/\s/g, "").replace(this._currency, "").replace(this._group, "").replace(this._minusSign, "-").replace(this._decimal, ".").replace(this._numeral, this._index);
413
- if (t) {
414
- if (t === "-")
415
- return t;
416
- var i = +t;
417
- return isNaN(i) ? null : i;
435
+ parseValue: function parseValue(text) {
436
+ var filteredText = text.replace(this._suffix, "").replace(this._prefix, "").trim().replace(/\s/g, "").replace(this._currency, "").replace(this._group, "").replace(this._minusSign, "-").replace(this._decimal, ".").replace(this._numeral, this._index);
437
+ if (filteredText) {
438
+ if (filteredText === "-")
439
+ return filteredText;
440
+ var parsedValue = +filteredText;
441
+ return isNaN(parsedValue) ? null : parsedValue;
418
442
  }
419
443
  return null;
420
444
  },
421
- repeat: function(e, t, i) {
422
- var r = this;
423
- if (!this.readonly) {
424
- var s = t || 500;
425
- this.clearTimer(), this.timer = setTimeout(function() {
426
- r.repeat(e, 40, i);
427
- }, s), this.spin(e, i);
445
+ repeat: function repeat(event, interval, dir) {
446
+ var _this = this;
447
+ if (this.readonly) {
448
+ return;
428
449
  }
429
- },
430
- spin: function(e, t) {
450
+ var i = interval || 500;
451
+ this.clearTimer();
452
+ this.timer = setTimeout(function() {
453
+ _this.repeat(event, 40, dir);
454
+ }, i);
455
+ this.spin(event, dir);
456
+ },
457
+ spin: function spin(event, dir) {
431
458
  if (this.$refs.input) {
432
- var i = this.step * t, r = this.parseValue(this.$refs.input.$el.value) || 0, s = this.validateValue(r + i);
433
- this.updateInput(s, null, "spin"), this.updateModel(e, s), this.handleOnInput(e, r, s);
459
+ var step = this.step * dir;
460
+ var currentValue = this.parseValue(this.$refs.input.$el.value) || 0;
461
+ var newValue = this.validateValue(currentValue + step);
462
+ this.updateInput(newValue, null, "spin");
463
+ this.updateModel(event, newValue);
464
+ this.handleOnInput(event, currentValue, newValue);
434
465
  }
435
466
  },
436
- onUpButtonMouseDown: function(e) {
437
- this.disabled || (this.$refs.input.$el.focus(), this.repeat(e, null, 1), e.preventDefault());
467
+ onUpButtonMouseDown: function onUpButtonMouseDown(event) {
468
+ if (!this.disabled) {
469
+ this.$refs.input.$el.focus();
470
+ this.repeat(event, null, 1);
471
+ event.preventDefault();
472
+ }
438
473
  },
439
- onUpButtonMouseUp: function() {
440
- this.disabled || this.clearTimer();
474
+ onUpButtonMouseUp: function onUpButtonMouseUp() {
475
+ if (!this.disabled) {
476
+ this.clearTimer();
477
+ }
441
478
  },
442
- onUpButtonMouseLeave: function() {
443
- this.disabled || this.clearTimer();
479
+ onUpButtonMouseLeave: function onUpButtonMouseLeave() {
480
+ if (!this.disabled) {
481
+ this.clearTimer();
482
+ }
444
483
  },
445
- onUpButtonKeyUp: function() {
446
- this.disabled || this.clearTimer();
484
+ onUpButtonKeyUp: function onUpButtonKeyUp() {
485
+ if (!this.disabled) {
486
+ this.clearTimer();
487
+ }
447
488
  },
448
- onUpButtonKeyDown: function(e) {
449
- (e.code === "Space" || e.code === "Enter" || e.code === "NumpadEnter") && this.repeat(e, null, 1);
489
+ onUpButtonKeyDown: function onUpButtonKeyDown(event) {
490
+ if (event.code === "Space" || event.code === "Enter" || event.code === "NumpadEnter") {
491
+ this.repeat(event, null, 1);
492
+ }
450
493
  },
451
- onDownButtonMouseDown: function(e) {
452
- this.disabled || (this.$refs.input.$el.focus(), this.repeat(e, null, -1), e.preventDefault());
494
+ onDownButtonMouseDown: function onDownButtonMouseDown(event) {
495
+ if (!this.disabled) {
496
+ this.$refs.input.$el.focus();
497
+ this.repeat(event, null, -1);
498
+ event.preventDefault();
499
+ }
453
500
  },
454
- onDownButtonMouseUp: function() {
455
- this.disabled || this.clearTimer();
501
+ onDownButtonMouseUp: function onDownButtonMouseUp() {
502
+ if (!this.disabled) {
503
+ this.clearTimer();
504
+ }
456
505
  },
457
- onDownButtonMouseLeave: function() {
458
- this.disabled || this.clearTimer();
506
+ onDownButtonMouseLeave: function onDownButtonMouseLeave() {
507
+ if (!this.disabled) {
508
+ this.clearTimer();
509
+ }
459
510
  },
460
- onDownButtonKeyUp: function() {
461
- this.disabled || this.clearTimer();
511
+ onDownButtonKeyUp: function onDownButtonKeyUp() {
512
+ if (!this.disabled) {
513
+ this.clearTimer();
514
+ }
462
515
  },
463
- onDownButtonKeyDown: function(e) {
464
- (e.code === "Space" || e.code === "Enter" || e.code === "NumpadEnter") && this.repeat(e, null, -1);
516
+ onDownButtonKeyDown: function onDownButtonKeyDown(event) {
517
+ if (event.code === "Space" || event.code === "Enter" || event.code === "NumpadEnter") {
518
+ this.repeat(event, null, -1);
519
+ }
465
520
  },
466
- onUserInput: function() {
467
- this.isSpecialChar && (this.$refs.input.$el.value = this.lastValue), this.isSpecialChar = !1;
521
+ onUserInput: function onUserInput() {
522
+ if (this.isSpecialChar) {
523
+ this.$refs.input.$el.value = this.lastValue;
524
+ }
525
+ this.isSpecialChar = false;
468
526
  },
469
- onInputKeyDown: function(e) {
470
- if (!this.readonly) {
471
- if (e.altKey || e.ctrlKey || e.metaKey) {
472
- this.isSpecialChar = !0, this.lastValue = this.$refs.input.$el.value;
473
- return;
474
- }
475
- this.lastValue = e.target.value;
476
- var t = e.target.selectionStart, i = e.target.selectionEnd, r = e.target.value, s = null;
477
- switch (e.code) {
478
- case "ArrowUp":
479
- this.spin(e, 1), e.preventDefault();
480
- break;
481
- case "ArrowDown":
482
- this.spin(e, -1), e.preventDefault();
483
- break;
484
- case "ArrowLeft":
485
- this.isNumeralChar(r.charAt(t - 1)) || e.preventDefault();
486
- break;
487
- case "ArrowRight":
488
- this.isNumeralChar(r.charAt(t)) || e.preventDefault();
489
- break;
490
- case "Tab":
491
- case "Enter":
492
- case "NumpadEnter":
493
- s = this.validateValue(this.parseValue(r)), this.$refs.input.$el.value = this.formatValue(s), this.$refs.input.$el.setAttribute("aria-valuenow", s), this.updateModel(e, s);
494
- break;
495
- case "Backspace": {
496
- if (e.preventDefault(), t === i) {
497
- var a = r.charAt(t - 1), u = this.getDecimalCharIndexes(r), h = u.decimalCharIndex, c = u.decimalCharIndexWithoutPrefix;
498
- if (this.isNumeralChar(a)) {
499
- var g = this.getDecimalLength(r);
500
- if (this._group.test(a))
501
- this._group.lastIndex = 0, s = r.slice(0, t - 2) + r.slice(t - 1);
502
- else if (this._decimal.test(a))
503
- this._decimal.lastIndex = 0, g ? this.$refs.input.$el.setSelectionRange(t - 1, t - 1) : s = r.slice(0, t - 1) + r.slice(t);
504
- else if (h > 0 && t > h) {
505
- var l = this.isDecimalMode() && (this.minFractionDigits || 0) < g ? "" : "0";
506
- s = r.slice(0, t - 1) + l + r.slice(t);
507
- } else c === 1 ? (s = r.slice(0, t - 1) + "0" + r.slice(t), s = this.parseValue(s) > 0 ? s : "") : s = r.slice(0, t - 1) + r.slice(t);
508
- }
509
- this.updateValue(e, s, null, "delete-single");
510
- } else
511
- s = this.deleteRange(r, t, i), this.updateValue(e, s, null, "delete-range");
512
- break;
527
+ onInputKeyDown: function onInputKeyDown(event) {
528
+ if (this.readonly) {
529
+ return;
530
+ }
531
+ if (event.altKey || event.ctrlKey || event.metaKey) {
532
+ this.isSpecialChar = true;
533
+ this.lastValue = this.$refs.input.$el.value;
534
+ return;
535
+ }
536
+ this.lastValue = event.target.value;
537
+ var selectionStart = event.target.selectionStart;
538
+ var selectionEnd = event.target.selectionEnd;
539
+ var inputValue = event.target.value;
540
+ var newValueStr = null;
541
+ switch (event.code) {
542
+ case "ArrowUp":
543
+ this.spin(event, 1);
544
+ event.preventDefault();
545
+ break;
546
+ case "ArrowDown":
547
+ this.spin(event, -1);
548
+ event.preventDefault();
549
+ break;
550
+ case "ArrowLeft":
551
+ if (!this.isNumeralChar(inputValue.charAt(selectionStart - 1))) {
552
+ event.preventDefault();
513
553
  }
514
- case "Delete":
515
- if (e.preventDefault(), t === i) {
516
- var f = r.charAt(t), o = this.getDecimalCharIndexes(r), y = o.decimalCharIndex, b = o.decimalCharIndexWithoutPrefix;
517
- if (this.isNumeralChar(f)) {
518
- var d = this.getDecimalLength(r);
519
- if (this._group.test(f))
520
- this._group.lastIndex = 0, s = r.slice(0, t) + r.slice(t + 2);
521
- else if (this._decimal.test(f))
522
- this._decimal.lastIndex = 0, d ? this.$refs.input.$el.setSelectionRange(t + 1, t + 1) : s = r.slice(0, t) + r.slice(t + 1);
523
- else if (y > 0 && t > y) {
524
- var B = this.isDecimalMode() && (this.minFractionDigits || 0) < d ? "" : "0";
525
- s = r.slice(0, t) + B + r.slice(t + 1);
526
- } else b === 1 ? (s = r.slice(0, t) + "0" + r.slice(t + 1), s = this.parseValue(s) > 0 ? s : "") : s = r.slice(0, t) + r.slice(t + 1);
554
+ break;
555
+ case "ArrowRight":
556
+ if (!this.isNumeralChar(inputValue.charAt(selectionStart))) {
557
+ event.preventDefault();
558
+ }
559
+ break;
560
+ case "Tab":
561
+ case "Enter":
562
+ case "NumpadEnter":
563
+ newValueStr = this.validateValue(this.parseValue(inputValue));
564
+ this.$refs.input.$el.value = this.formatValue(newValueStr);
565
+ this.$refs.input.$el.setAttribute("aria-valuenow", newValueStr);
566
+ this.updateModel(event, newValueStr);
567
+ break;
568
+ case "Backspace": {
569
+ event.preventDefault();
570
+ if (selectionStart === selectionEnd) {
571
+ var deleteChar = inputValue.charAt(selectionStart - 1);
572
+ var _this$getDecimalCharI = this.getDecimalCharIndexes(inputValue), decimalCharIndex = _this$getDecimalCharI.decimalCharIndex, decimalCharIndexWithoutPrefix = _this$getDecimalCharI.decimalCharIndexWithoutPrefix;
573
+ if (this.isNumeralChar(deleteChar)) {
574
+ var decimalLength = this.getDecimalLength(inputValue);
575
+ if (this._group.test(deleteChar)) {
576
+ this._group.lastIndex = 0;
577
+ newValueStr = inputValue.slice(0, selectionStart - 2) + inputValue.slice(selectionStart - 1);
578
+ } else if (this._decimal.test(deleteChar)) {
579
+ this._decimal.lastIndex = 0;
580
+ if (decimalLength) {
581
+ this.$refs.input.$el.setSelectionRange(selectionStart - 1, selectionStart - 1);
582
+ } else {
583
+ newValueStr = inputValue.slice(0, selectionStart - 1) + inputValue.slice(selectionStart);
584
+ }
585
+ } else if (decimalCharIndex > 0 && selectionStart > decimalCharIndex) {
586
+ var insertedText = this.isDecimalMode() && (this.minFractionDigits || 0) < decimalLength ? "" : "0";
587
+ newValueStr = inputValue.slice(0, selectionStart - 1) + insertedText + inputValue.slice(selectionStart);
588
+ } else if (decimalCharIndexWithoutPrefix === 1) {
589
+ newValueStr = inputValue.slice(0, selectionStart - 1) + "0" + inputValue.slice(selectionStart);
590
+ newValueStr = this.parseValue(newValueStr) > 0 ? newValueStr : "";
591
+ } else {
592
+ newValueStr = inputValue.slice(0, selectionStart - 1) + inputValue.slice(selectionStart);
527
593
  }
528
- this.updateValue(e, s, null, "delete-back-single");
529
- } else
530
- s = this.deleteRange(r, t, i), this.updateValue(e, s, null, "delete-range");
531
- break;
532
- case "Home":
533
- e.preventDefault(), O.isEmpty(this.min) || this.updateModel(e, this.min);
534
- break;
535
- case "End":
536
- e.preventDefault(), O.isEmpty(this.max) || this.updateModel(e, this.max);
537
- break;
594
+ }
595
+ this.updateValue(event, newValueStr, null, "delete-single");
596
+ } else {
597
+ newValueStr = this.deleteRange(inputValue, selectionStart, selectionEnd);
598
+ this.updateValue(event, newValueStr, null, "delete-range");
599
+ }
600
+ break;
538
601
  }
602
+ case "Delete":
603
+ event.preventDefault();
604
+ if (selectionStart === selectionEnd) {
605
+ var _deleteChar = inputValue.charAt(selectionStart);
606
+ var _this$getDecimalCharI2 = this.getDecimalCharIndexes(inputValue), _decimalCharIndex = _this$getDecimalCharI2.decimalCharIndex, _decimalCharIndexWithoutPrefix = _this$getDecimalCharI2.decimalCharIndexWithoutPrefix;
607
+ if (this.isNumeralChar(_deleteChar)) {
608
+ var _decimalLength = this.getDecimalLength(inputValue);
609
+ if (this._group.test(_deleteChar)) {
610
+ this._group.lastIndex = 0;
611
+ newValueStr = inputValue.slice(0, selectionStart) + inputValue.slice(selectionStart + 2);
612
+ } else if (this._decimal.test(_deleteChar)) {
613
+ this._decimal.lastIndex = 0;
614
+ if (_decimalLength) {
615
+ this.$refs.input.$el.setSelectionRange(selectionStart + 1, selectionStart + 1);
616
+ } else {
617
+ newValueStr = inputValue.slice(0, selectionStart) + inputValue.slice(selectionStart + 1);
618
+ }
619
+ } else if (_decimalCharIndex > 0 && selectionStart > _decimalCharIndex) {
620
+ var _insertedText = this.isDecimalMode() && (this.minFractionDigits || 0) < _decimalLength ? "" : "0";
621
+ newValueStr = inputValue.slice(0, selectionStart) + _insertedText + inputValue.slice(selectionStart + 1);
622
+ } else if (_decimalCharIndexWithoutPrefix === 1) {
623
+ newValueStr = inputValue.slice(0, selectionStart) + "0" + inputValue.slice(selectionStart + 1);
624
+ newValueStr = this.parseValue(newValueStr) > 0 ? newValueStr : "";
625
+ } else {
626
+ newValueStr = inputValue.slice(0, selectionStart) + inputValue.slice(selectionStart + 1);
627
+ }
628
+ }
629
+ this.updateValue(event, newValueStr, null, "delete-back-single");
630
+ } else {
631
+ newValueStr = this.deleteRange(inputValue, selectionStart, selectionEnd);
632
+ this.updateValue(event, newValueStr, null, "delete-range");
633
+ }
634
+ break;
635
+ case "Home":
636
+ event.preventDefault();
637
+ if (!ObjectUtils.isEmpty(this.min)) {
638
+ this.updateModel(event, this.min);
639
+ }
640
+ break;
641
+ case "End":
642
+ event.preventDefault();
643
+ if (!ObjectUtils.isEmpty(this.max)) {
644
+ this.updateModel(event, this.max);
645
+ }
646
+ break;
539
647
  }
540
648
  },
541
- onInputKeyPress: function(e) {
542
- if (!this.readonly) {
543
- var t = e.key, i = this.isDecimalSign(t), r = this.isMinusSign(t);
544
- this.locale === "fr-FR" && (e.code === "Comma" || e.code === "NumpadDecimal") && !i && (i = !0, t = decimalSign), e.code !== "Enter" && e.preventDefault(), (Number(t) >= 0 && Number(t) <= 9 || r || i) && this.insert(e, t, {
545
- isDecimalSign: i,
546
- isMinusSign: r
649
+ onInputKeyPress: function onInputKeyPress(event) {
650
+ if (this.readonly) {
651
+ return;
652
+ }
653
+ var _char = event.key;
654
+ var isDecimalSign2 = this.isDecimalSign(_char);
655
+ var isMinusSign2 = this.isMinusSign(_char);
656
+ if (this.locale === "fr-FR" && (event.code === "Comma" || event.code === "NumpadDecimal") && !isDecimalSign2) {
657
+ isDecimalSign2 = true;
658
+ _char = decimalSign;
659
+ }
660
+ if (event.code !== "Enter") {
661
+ event.preventDefault();
662
+ }
663
+ if (Number(_char) >= 0 && Number(_char) <= 9 || isMinusSign2 || isDecimalSign2) {
664
+ this.insert(event, _char, {
665
+ isDecimalSign: isDecimalSign2,
666
+ isMinusSign: isMinusSign2
547
667
  });
548
668
  }
549
669
  },
550
- onPaste: function(e) {
551
- if (!(this.readonly || this.disabled)) {
552
- e.preventDefault();
553
- var t = (e.clipboardData || window.clipboardData).getData("Text");
554
- if (t) {
555
- var i = this.parseValue(t);
556
- i != null && this.insert(e, i.toString());
670
+ onPaste: function onPaste(event) {
671
+ if (this.readonly || this.disabled) {
672
+ return;
673
+ }
674
+ event.preventDefault();
675
+ var data2 = (event.clipboardData || window["clipboardData"]).getData("Text");
676
+ if (data2) {
677
+ var filteredData = this.parseValue(data2);
678
+ if (filteredData != null) {
679
+ this.insert(event, filteredData.toString());
557
680
  }
558
681
  }
559
682
  },
560
- allowMinusSign: function() {
683
+ allowMinusSign: function allowMinusSign() {
561
684
  return this.min === null || this.min < 0;
562
685
  },
563
- isMinusSign: function(e) {
564
- return this._minusSign.test(e) || e === "-" ? (this._minusSign.lastIndex = 0, !0) : !1;
686
+ isMinusSign: function isMinusSign(_char2) {
687
+ if (this._minusSign.test(_char2) || _char2 === "-") {
688
+ this._minusSign.lastIndex = 0;
689
+ return true;
690
+ }
691
+ return false;
565
692
  },
566
- isDecimalSign: function(e) {
567
- return this._decimal.test(e) ? (this._decimal.lastIndex = 0, !0) : !1;
693
+ isDecimalSign: function isDecimalSign(_char3) {
694
+ if (this._decimal.test(_char3)) {
695
+ this._decimal.lastIndex = 0;
696
+ return true;
697
+ }
698
+ return false;
568
699
  },
569
- isDecimalMode: function() {
700
+ isDecimalMode: function isDecimalMode() {
570
701
  return this.mode === "decimal";
571
702
  },
572
- getDecimalCharIndexes: function(e) {
573
- var t = e.search(this._decimal);
703
+ getDecimalCharIndexes: function getDecimalCharIndexes(val) {
704
+ var decimalCharIndex = val.search(this._decimal);
574
705
  this._decimal.lastIndex = 0;
575
- var i = e.replace(this._prefix, "").trim().replace(/\s/g, "").replace(this._currency, ""), r = i.search(this._decimal);
576
- return this._decimal.lastIndex = 0, {
577
- decimalCharIndex: t,
578
- decimalCharIndexWithoutPrefix: r
706
+ var filteredVal = val.replace(this._prefix, "").trim().replace(/\s/g, "").replace(this._currency, "");
707
+ var decimalCharIndexWithoutPrefix = filteredVal.search(this._decimal);
708
+ this._decimal.lastIndex = 0;
709
+ return {
710
+ decimalCharIndex,
711
+ decimalCharIndexWithoutPrefix
579
712
  };
580
713
  },
581
- getCharIndexes: function(e) {
582
- var t = e.search(this._decimal);
714
+ getCharIndexes: function getCharIndexes(val) {
715
+ var decimalCharIndex = val.search(this._decimal);
583
716
  this._decimal.lastIndex = 0;
584
- var i = e.search(this._minusSign);
717
+ var minusCharIndex = val.search(this._minusSign);
585
718
  this._minusSign.lastIndex = 0;
586
- var r = e.search(this._suffix);
719
+ var suffixCharIndex = val.search(this._suffix);
587
720
  this._suffix.lastIndex = 0;
588
- var s = e.search(this._currency);
589
- return this._currency.lastIndex = 0, {
590
- decimalCharIndex: t,
591
- minusCharIndex: i,
592
- suffixCharIndex: r,
593
- currencyCharIndex: s
721
+ var currencyCharIndex = val.search(this._currency);
722
+ this._currency.lastIndex = 0;
723
+ return {
724
+ decimalCharIndex,
725
+ minusCharIndex,
726
+ suffixCharIndex,
727
+ currencyCharIndex
594
728
  };
595
729
  },
596
- insert: function(e, t) {
597
- var i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {
598
- isDecimalSign: !1,
599
- isMinusSign: !1
600
- }, r = t.search(this._minusSign);
601
- if (this._minusSign.lastIndex = 0, !(!this.allowMinusSign() && r !== -1)) {
602
- var s = this.$refs.input.$el.selectionStart, a = this.$refs.input.$el.selectionEnd, u = this.$refs.input.$el.value.trim(), h = this.getCharIndexes(u), c = h.decimalCharIndex, g = h.minusCharIndex, l = h.suffixCharIndex, f = h.currencyCharIndex, o;
603
- if (i.isMinusSign)
604
- s === 0 && (o = u, (g === -1 || a !== 0) && (o = this.insertText(u, t, 0, a)), this.updateValue(e, o, t, "insert"));
605
- else if (i.isDecimalSign)
606
- c > 0 && s === c ? this.updateValue(e, u, t, "insert") : c > s && c < a ? (o = this.insertText(u, t, s, a), this.updateValue(e, o, t, "insert")) : c === -1 && this.maxFractionDigits && (o = this.insertText(u, t, s, a), this.updateValue(e, o, t, "insert"));
607
- else {
608
- var y = this.numberFormat.resolvedOptions().maximumFractionDigits, b = s !== a ? "range-insert" : "insert";
609
- if (c > 0 && s > c) {
610
- if (s + t.length - (c + 1) <= y) {
611
- var d = f >= s ? f - 1 : l >= s ? l : u.length;
612
- o = u.slice(0, s) + t + u.slice(s + t.length, d) + u.slice(d), this.updateValue(e, o, t, b);
613
- }
614
- } else
615
- o = this.insertText(u, t, s, a), this.updateValue(e, o, t, b);
730
+ insert: function insert(event, text) {
731
+ var sign = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {
732
+ isDecimalSign: false,
733
+ isMinusSign: false
734
+ };
735
+ var minusCharIndexOnText = text.search(this._minusSign);
736
+ this._minusSign.lastIndex = 0;
737
+ if (!this.allowMinusSign() && minusCharIndexOnText !== -1) {
738
+ return;
739
+ }
740
+ var selectionStart = this.$refs.input.$el.selectionStart;
741
+ var selectionEnd = this.$refs.input.$el.selectionEnd;
742
+ var inputValue = this.$refs.input.$el.value.trim();
743
+ var _this$getCharIndexes = this.getCharIndexes(inputValue), decimalCharIndex = _this$getCharIndexes.decimalCharIndex, minusCharIndex = _this$getCharIndexes.minusCharIndex, suffixCharIndex = _this$getCharIndexes.suffixCharIndex, currencyCharIndex = _this$getCharIndexes.currencyCharIndex;
744
+ var newValueStr;
745
+ if (sign.isMinusSign) {
746
+ if (selectionStart === 0) {
747
+ newValueStr = inputValue;
748
+ if (minusCharIndex === -1 || selectionEnd !== 0) {
749
+ newValueStr = this.insertText(inputValue, text, 0, selectionEnd);
750
+ }
751
+ this.updateValue(event, newValueStr, text, "insert");
752
+ }
753
+ } else if (sign.isDecimalSign) {
754
+ if (decimalCharIndex > 0 && selectionStart === decimalCharIndex) {
755
+ this.updateValue(event, inputValue, text, "insert");
756
+ } else if (decimalCharIndex > selectionStart && decimalCharIndex < selectionEnd) {
757
+ newValueStr = this.insertText(inputValue, text, selectionStart, selectionEnd);
758
+ this.updateValue(event, newValueStr, text, "insert");
759
+ } else if (decimalCharIndex === -1 && this.maxFractionDigits) {
760
+ newValueStr = this.insertText(inputValue, text, selectionStart, selectionEnd);
761
+ this.updateValue(event, newValueStr, text, "insert");
762
+ }
763
+ } else {
764
+ var maxFractionDigits2 = this.numberFormat.resolvedOptions().maximumFractionDigits;
765
+ var operation = selectionStart !== selectionEnd ? "range-insert" : "insert";
766
+ if (decimalCharIndex > 0 && selectionStart > decimalCharIndex) {
767
+ if (selectionStart + text.length - (decimalCharIndex + 1) <= maxFractionDigits2) {
768
+ var charIndex = currencyCharIndex >= selectionStart ? currencyCharIndex - 1 : suffixCharIndex >= selectionStart ? suffixCharIndex : inputValue.length;
769
+ newValueStr = inputValue.slice(0, selectionStart) + text + inputValue.slice(selectionStart + text.length, charIndex) + inputValue.slice(charIndex);
770
+ this.updateValue(event, newValueStr, text, operation);
771
+ }
772
+ } else {
773
+ newValueStr = this.insertText(inputValue, text, selectionStart, selectionEnd);
774
+ this.updateValue(event, newValueStr, text, operation);
616
775
  }
617
776
  }
618
777
  },
619
- insertText: function(e, t, i, r) {
620
- var s = t === "." ? t : t.split(".");
621
- if (s.length === 2) {
622
- var a = e.slice(i, r).search(this._decimal);
623
- return this._decimal.lastIndex = 0, a > 0 ? e.slice(0, i) + this.formatValue(t) + e.slice(r) : this.formatValue(t) || e;
624
- } else return r - i === e.length ? this.formatValue(t) : i === 0 ? t + e.slice(r) : r === e.length ? e.slice(0, i) + t : e.slice(0, i) + t + e.slice(r);
625
- },
626
- deleteRange: function(e, t, i) {
627
- var r;
628
- return i - t === e.length ? r = "" : t === 0 ? r = e.slice(i) : i === e.length ? r = e.slice(0, t) : r = e.slice(0, t) + e.slice(i), r;
629
- },
630
- initCursor: function() {
631
- var e = this.$refs.input.$el.selectionStart, t = this.$refs.input.$el.value, i = t.length, r = null, s = (this.prefixChar || "").length;
632
- t = t.replace(this._prefix, ""), e = e - s;
633
- var a = t.charAt(e);
634
- if (this.isNumeralChar(a))
635
- return e + s;
636
- for (var u = e - 1; u >= 0; )
637
- if (a = t.charAt(u), this.isNumeralChar(a)) {
638
- r = u + s;
778
+ insertText: function insertText(value, text, start, end) {
779
+ var textSplit = text === "." ? text : text.split(".");
780
+ if (textSplit.length === 2) {
781
+ var decimalCharIndex = value.slice(start, end).search(this._decimal);
782
+ this._decimal.lastIndex = 0;
783
+ return decimalCharIndex > 0 ? value.slice(0, start) + this.formatValue(text) + value.slice(end) : this.formatValue(text) || value;
784
+ } else if (end - start === value.length) {
785
+ return this.formatValue(text);
786
+ } else if (start === 0) {
787
+ return text + value.slice(end);
788
+ } else if (end === value.length) {
789
+ return value.slice(0, start) + text;
790
+ } else {
791
+ return value.slice(0, start) + text + value.slice(end);
792
+ }
793
+ },
794
+ deleteRange: function deleteRange(value, start, end) {
795
+ var newValueStr;
796
+ if (end - start === value.length) newValueStr = "";
797
+ else if (start === 0) newValueStr = value.slice(end);
798
+ else if (end === value.length) newValueStr = value.slice(0, start);
799
+ else newValueStr = value.slice(0, start) + value.slice(end);
800
+ return newValueStr;
801
+ },
802
+ initCursor: function initCursor() {
803
+ var selectionStart = this.$refs.input.$el.selectionStart;
804
+ var inputValue = this.$refs.input.$el.value;
805
+ var valueLength = inputValue.length;
806
+ var index = null;
807
+ var prefixLength = (this.prefixChar || "").length;
808
+ inputValue = inputValue.replace(this._prefix, "");
809
+ selectionStart = selectionStart - prefixLength;
810
+ var _char4 = inputValue.charAt(selectionStart);
811
+ if (this.isNumeralChar(_char4)) {
812
+ return selectionStart + prefixLength;
813
+ }
814
+ var i = selectionStart - 1;
815
+ while (i >= 0) {
816
+ _char4 = inputValue.charAt(i);
817
+ if (this.isNumeralChar(_char4)) {
818
+ index = i + prefixLength;
639
819
  break;
640
- } else
641
- u--;
642
- if (r !== null)
643
- this.$refs.input.$el.setSelectionRange(r + 1, r + 1);
644
- else {
645
- for (u = e; u < i; )
646
- if (a = t.charAt(u), this.isNumeralChar(a)) {
647
- r = u + s;
820
+ } else {
821
+ i--;
822
+ }
823
+ }
824
+ if (index !== null) {
825
+ this.$refs.input.$el.setSelectionRange(index + 1, index + 1);
826
+ } else {
827
+ i = selectionStart;
828
+ while (i < valueLength) {
829
+ _char4 = inputValue.charAt(i);
830
+ if (this.isNumeralChar(_char4)) {
831
+ index = i + prefixLength;
648
832
  break;
649
- } else
650
- u++;
651
- r !== null && this.$refs.input.$el.setSelectionRange(r, r);
833
+ } else {
834
+ i++;
835
+ }
836
+ }
837
+ if (index !== null) {
838
+ this.$refs.input.$el.setSelectionRange(index, index);
839
+ }
652
840
  }
653
- return r || 0;
841
+ return index || 0;
654
842
  },
655
- onInputClick: function() {
656
- var e = this.$refs.input.$el.value;
657
- !this.readonly && e !== C.getSelection() && this.initCursor();
843
+ onInputClick: function onInputClick() {
844
+ var currentValue = this.$refs.input.$el.value;
845
+ if (!this.readonly && currentValue !== DomHandler.getSelection()) {
846
+ this.initCursor();
847
+ }
658
848
  },
659
- isNumeralChar: function(e) {
660
- return e.length === 1 && (this._numeral.test(e) || this._decimal.test(e) || this._group.test(e) || this._minusSign.test(e)) ? (this.resetRegex(), !0) : !1;
849
+ isNumeralChar: function isNumeralChar(_char5) {
850
+ if (_char5.length === 1 && (this._numeral.test(_char5) || this._decimal.test(_char5) || this._group.test(_char5) || this._minusSign.test(_char5))) {
851
+ this.resetRegex();
852
+ return true;
853
+ }
854
+ return false;
661
855
  },
662
- resetRegex: function() {
663
- this._numeral.lastIndex = 0, this._decimal.lastIndex = 0, this._group.lastIndex = 0, this._minusSign.lastIndex = 0;
856
+ resetRegex: function resetRegex() {
857
+ this._numeral.lastIndex = 0;
858
+ this._decimal.lastIndex = 0;
859
+ this._group.lastIndex = 0;
860
+ this._minusSign.lastIndex = 0;
664
861
  },
665
- updateValue: function(e, t, i, r) {
666
- var s = this.$refs.input.$el.value, a = null;
667
- t != null && (a = this.parseValue(t), a = !a && !this.allowEmpty ? 0 : a, this.updateInput(a, i, r, t), this.handleOnInput(e, s, a));
862
+ updateValue: function updateValue(event, valueStr, insertedValueStr, operation) {
863
+ var currentValue = this.$refs.input.$el.value;
864
+ var newValue = null;
865
+ if (valueStr != null) {
866
+ newValue = this.parseValue(valueStr);
867
+ newValue = !newValue && !this.allowEmpty ? 0 : newValue;
868
+ this.updateInput(newValue, insertedValueStr, operation, valueStr);
869
+ this.handleOnInput(event, currentValue, newValue);
870
+ }
668
871
  },
669
- handleOnInput: function(e, t, i) {
670
- this.isValueChanged(t, i) && this.$emit("input", {
671
- originalEvent: e,
672
- value: i,
673
- formattedValue: t
674
- });
872
+ handleOnInput: function handleOnInput(event, currentValue, newValue) {
873
+ if (this.isValueChanged(currentValue, newValue)) {
874
+ this.$emit("input", {
875
+ originalEvent: event,
876
+ value: newValue,
877
+ formattedValue: currentValue
878
+ });
879
+ }
880
+ },
881
+ isValueChanged: function isValueChanged(currentValue, newValue) {
882
+ if (newValue === null && currentValue !== null) {
883
+ return true;
884
+ }
885
+ if (newValue != null) {
886
+ var parsedCurrentValue = typeof currentValue === "string" ? this.parseValue(currentValue) : currentValue;
887
+ return newValue !== parsedCurrentValue;
888
+ }
889
+ return false;
675
890
  },
676
- isValueChanged: function(e, t) {
677
- if (t === null && e !== null)
678
- return !0;
679
- if (t != null) {
680
- var i = typeof e == "string" ? this.parseValue(e) : e;
681
- return t !== i;
682
- }
683
- return !1;
684
- },
685
- validateValue: function(e) {
686
- return e === "-" || e == null ? null : this.min != null && e < this.min ? this.min : this.max != null && e > this.max ? this.max : e;
687
- },
688
- updateInput: function(e, t, i, r) {
689
- t = t || "";
690
- var s = this.$refs.input.$el.value, a = this.formatValue(e), u = s.length;
691
- if (a !== r && (a = this.concatValues(a, r)), u === 0) {
692
- this.$refs.input.$el.value = a, this.$refs.input.$el.setSelectionRange(0, 0);
693
- var h = this.initCursor(), c = h + t.length;
694
- this.$refs.input.$el.setSelectionRange(c, c);
891
+ validateValue: function validateValue(value) {
892
+ if (value === "-" || value == null) {
893
+ return null;
894
+ }
895
+ if (this.min != null && value < this.min) {
896
+ return this.min;
897
+ }
898
+ if (this.max != null && value > this.max) {
899
+ return this.max;
900
+ }
901
+ return value;
902
+ },
903
+ updateInput: function updateInput(value, insertedValueStr, operation, valueStr) {
904
+ insertedValueStr = insertedValueStr || "";
905
+ var inputValue = this.$refs.input.$el.value;
906
+ var newValue = this.formatValue(value);
907
+ var currentLength = inputValue.length;
908
+ if (newValue !== valueStr) {
909
+ newValue = this.concatValues(newValue, valueStr);
910
+ }
911
+ if (currentLength === 0) {
912
+ this.$refs.input.$el.value = newValue;
913
+ this.$refs.input.$el.setSelectionRange(0, 0);
914
+ var index = this.initCursor();
915
+ var selectionEnd = index + insertedValueStr.length;
916
+ this.$refs.input.$el.setSelectionRange(selectionEnd, selectionEnd);
695
917
  } else {
696
- var g = this.$refs.input.$el.selectionStart, l = this.$refs.input.$el.selectionEnd;
697
- this.$refs.input.$el.value = a;
698
- var f = a.length;
699
- if (i === "range-insert") {
700
- var o = this.parseValue((s || "").slice(0, g)), y = o !== null ? o.toString() : "", b = y.split("").join("(".concat(this.groupChar, ")?")), d = new RegExp(b, "g");
701
- d.test(a);
702
- var B = t.split("").join("(".concat(this.groupChar, ")?")), P = new RegExp(B, "g");
703
- P.test(a.slice(d.lastIndex)), l = d.lastIndex + P.lastIndex, this.$refs.input.$el.setSelectionRange(l, l);
704
- } else if (f === u)
705
- i === "insert" || i === "delete-back-single" ? this.$refs.input.$el.setSelectionRange(l + 1, l + 1) : i === "delete-single" ? this.$refs.input.$el.setSelectionRange(l - 1, l - 1) : (i === "delete-range" || i === "spin") && this.$refs.input.$el.setSelectionRange(l, l);
706
- else if (i === "delete-back-single") {
707
- var T = s.charAt(l - 1), K = s.charAt(l), F = u - f, N = this._group.test(K);
708
- N && F === 1 ? l += 1 : !N && this.isNumeralChar(T) && (l += -1 * F + 1), this._group.lastIndex = 0, this.$refs.input.$el.setSelectionRange(l, l);
709
- } else if (s === "-" && i === "insert") {
918
+ var selectionStart = this.$refs.input.$el.selectionStart;
919
+ var _selectionEnd = this.$refs.input.$el.selectionEnd;
920
+ this.$refs.input.$el.value = newValue;
921
+ var newLength = newValue.length;
922
+ if (operation === "range-insert") {
923
+ var startValue = this.parseValue((inputValue || "").slice(0, selectionStart));
924
+ var startValueStr = startValue !== null ? startValue.toString() : "";
925
+ var startExpr = startValueStr.split("").join("(".concat(this.groupChar, ")?"));
926
+ var sRegex = new RegExp(startExpr, "g");
927
+ sRegex.test(newValue);
928
+ var tExpr = insertedValueStr.split("").join("(".concat(this.groupChar, ")?"));
929
+ var tRegex = new RegExp(tExpr, "g");
930
+ tRegex.test(newValue.slice(sRegex.lastIndex));
931
+ _selectionEnd = sRegex.lastIndex + tRegex.lastIndex;
932
+ this.$refs.input.$el.setSelectionRange(_selectionEnd, _selectionEnd);
933
+ } else if (newLength === currentLength) {
934
+ if (operation === "insert" || operation === "delete-back-single") {
935
+ this.$refs.input.$el.setSelectionRange(_selectionEnd + 1, _selectionEnd + 1);
936
+ } else if (operation === "delete-single") {
937
+ this.$refs.input.$el.setSelectionRange(_selectionEnd - 1, _selectionEnd - 1);
938
+ } else if (operation === "delete-range" || operation === "spin") {
939
+ this.$refs.input.$el.setSelectionRange(_selectionEnd, _selectionEnd);
940
+ }
941
+ } else if (operation === "delete-back-single") {
942
+ var prevChar = inputValue.charAt(_selectionEnd - 1);
943
+ var nextChar = inputValue.charAt(_selectionEnd);
944
+ var diff = currentLength - newLength;
945
+ var isGroupChar = this._group.test(nextChar);
946
+ if (isGroupChar && diff === 1) {
947
+ _selectionEnd += 1;
948
+ } else if (!isGroupChar && this.isNumeralChar(prevChar)) {
949
+ _selectionEnd += -1 * diff + 1;
950
+ }
951
+ this._group.lastIndex = 0;
952
+ this.$refs.input.$el.setSelectionRange(_selectionEnd, _selectionEnd);
953
+ } else if (inputValue === "-" && operation === "insert") {
710
954
  this.$refs.input.$el.setSelectionRange(0, 0);
711
- var L = this.initCursor(), E = L + t.length + 1;
712
- this.$refs.input.$el.setSelectionRange(E, E);
713
- } else
714
- l = l + (f - u), this.$refs.input.$el.setSelectionRange(l, l);
955
+ var _index = this.initCursor();
956
+ var _selectionEnd2 = _index + insertedValueStr.length + 1;
957
+ this.$refs.input.$el.setSelectionRange(_selectionEnd2, _selectionEnd2);
958
+ } else {
959
+ _selectionEnd = _selectionEnd + (newLength - currentLength);
960
+ this.$refs.input.$el.setSelectionRange(_selectionEnd, _selectionEnd);
961
+ }
715
962
  }
716
- this.$refs.input.$el.setAttribute("aria-valuenow", e);
717
- },
718
- concatValues: function(e, t) {
719
- if (e && t) {
720
- var i = t.search(this._decimal);
721
- return this._decimal.lastIndex = 0, this.suffixChar ? i !== -1 ? e.replace(this.suffixChar, "").split(this._decimal)[0] + t.replace(this.suffixChar, "").slice(i) + this.suffixChar : e : i !== -1 ? e.split(this._decimal)[0] + t.slice(i) : e;
963
+ this.$refs.input.$el.setAttribute("aria-valuenow", value);
964
+ },
965
+ concatValues: function concatValues(val1, val2) {
966
+ if (val1 && val2) {
967
+ var decimalCharIndex = val2.search(this._decimal);
968
+ this._decimal.lastIndex = 0;
969
+ if (this.suffixChar) {
970
+ return decimalCharIndex !== -1 ? val1.replace(this.suffixChar, "").split(this._decimal)[0] + val2.replace(this.suffixChar, "").slice(decimalCharIndex) + this.suffixChar : val1;
971
+ } else {
972
+ return decimalCharIndex !== -1 ? val1.split(this._decimal)[0] + val2.slice(decimalCharIndex) : val1;
973
+ }
722
974
  }
723
- return e;
975
+ return val1;
724
976
  },
725
- getDecimalLength: function(e) {
726
- if (e) {
727
- var t = e.split(this._decimal);
728
- if (t.length === 2)
729
- return t[1].replace(this._suffix, "").trim().replace(/\s/g, "").replace(this._currency, "").length;
977
+ getDecimalLength: function getDecimalLength(value) {
978
+ if (value) {
979
+ var valueSplit = value.split(this._decimal);
980
+ if (valueSplit.length === 2) {
981
+ return valueSplit[1].replace(this._suffix, "").trim().replace(/\s/g, "").replace(this._currency, "").length;
982
+ }
730
983
  }
731
984
  return 0;
732
985
  },
733
- updateModel: function(e, t) {
734
- this.d_modelValue = t, this.$emit("update:modelValue", t);
986
+ updateModel: function updateModel(event, value) {
987
+ this.d_modelValue = value;
988
+ this.$emit("update:modelValue", value);
735
989
  },
736
- onInputFocus: function(e) {
737
- this.focused = !0, !this.disabled && !this.readonly && this.$refs.input.$el.value !== C.getSelection() && this.highlightOnFocus && e.target.select(), this.$emit("focus", e);
990
+ onInputFocus: function onInputFocus(event) {
991
+ this.focused = true;
992
+ if (!this.disabled && !this.readonly && this.$refs.input.$el.value !== DomHandler.getSelection() && this.highlightOnFocus) {
993
+ event.target.select();
994
+ }
995
+ this.$emit("focus", event);
738
996
  },
739
- onInputBlur: function(e) {
740
- this.focused = !1;
741
- var t = e.target, i = this.validateValue(this.parseValue(t.value));
997
+ onInputBlur: function onInputBlur(event) {
998
+ this.focused = false;
999
+ var input = event.target;
1000
+ var newValue = this.validateValue(this.parseValue(input.value));
742
1001
  this.$emit("blur", {
743
- originalEvent: e,
744
- value: t.value
745
- }), t.value = this.formatValue(i), t.setAttribute("aria-valuenow", i), this.updateModel(e, i), !this.disabled && !this.readonly && this.highlightOnFocus && C.clearSelection();
1002
+ originalEvent: event,
1003
+ value: input.value
1004
+ });
1005
+ input.value = this.formatValue(newValue);
1006
+ input.setAttribute("aria-valuenow", newValue);
1007
+ this.updateModel(event, newValue);
1008
+ if (!this.disabled && !this.readonly && this.highlightOnFocus) {
1009
+ DomHandler.clearSelection();
1010
+ }
746
1011
  },
747
- clearTimer: function() {
748
- this.timer && clearInterval(this.timer);
1012
+ clearTimer: function clearTimer() {
1013
+ if (this.timer) {
1014
+ clearInterval(this.timer);
1015
+ }
749
1016
  },
750
- maxBoundry: function() {
1017
+ maxBoundry: function maxBoundry() {
751
1018
  return this.d_modelValue >= this.max;
752
1019
  },
753
- minBoundry: function() {
1020
+ minBoundry: function minBoundry() {
754
1021
  return this.d_modelValue <= this.min;
755
1022
  }
756
1023
  },
757
1024
  computed: {
758
- filled: function() {
1025
+ filled: function filled() {
759
1026
  return this.modelValue != null && this.modelValue.toString().length > 0;
760
1027
  },
761
- upButtonListeners: function() {
762
- var e = this;
1028
+ upButtonListeners: function upButtonListeners() {
1029
+ var _this2 = this;
763
1030
  return {
764
- mousedown: function(i) {
765
- return e.onUpButtonMouseDown(i);
1031
+ mousedown: function mousedown(event) {
1032
+ return _this2.onUpButtonMouseDown(event);
766
1033
  },
767
- mouseup: function(i) {
768
- return e.onUpButtonMouseUp(i);
1034
+ mouseup: function mouseup(event) {
1035
+ return _this2.onUpButtonMouseUp(event);
769
1036
  },
770
- mouseleave: function(i) {
771
- return e.onUpButtonMouseLeave(i);
1037
+ mouseleave: function mouseleave(event) {
1038
+ return _this2.onUpButtonMouseLeave(event);
772
1039
  },
773
- keydown: function(i) {
774
- return e.onUpButtonKeyDown(i);
1040
+ keydown: function keydown(event) {
1041
+ return _this2.onUpButtonKeyDown(event);
775
1042
  },
776
- keyup: function(i) {
777
- return e.onUpButtonKeyUp(i);
1043
+ keyup: function keyup(event) {
1044
+ return _this2.onUpButtonKeyUp(event);
778
1045
  }
779
1046
  };
780
1047
  },
781
- downButtonListeners: function() {
782
- var e = this;
1048
+ downButtonListeners: function downButtonListeners() {
1049
+ var _this3 = this;
783
1050
  return {
784
- mousedown: function(i) {
785
- return e.onDownButtonMouseDown(i);
1051
+ mousedown: function mousedown(event) {
1052
+ return _this3.onDownButtonMouseDown(event);
786
1053
  },
787
- mouseup: function(i) {
788
- return e.onDownButtonMouseUp(i);
1054
+ mouseup: function mouseup(event) {
1055
+ return _this3.onDownButtonMouseUp(event);
789
1056
  },
790
- mouseleave: function(i) {
791
- return e.onDownButtonMouseLeave(i);
1057
+ mouseleave: function mouseleave(event) {
1058
+ return _this3.onDownButtonMouseLeave(event);
792
1059
  },
793
- keydown: function(i) {
794
- return e.onDownButtonKeyDown(i);
1060
+ keydown: function keydown(event) {
1061
+ return _this3.onDownButtonKeyDown(event);
795
1062
  },
796
- keyup: function(i) {
797
- return e.onDownButtonKeyUp(i);
1063
+ keyup: function keyup(event) {
1064
+ return _this3.onDownButtonKeyUp(event);
798
1065
  }
799
1066
  };
800
1067
  },
801
- formattedValue: function() {
802
- var e = !this.modelValue && !this.allowEmpty ? 0 : this.modelValue;
803
- return this.formatValue(e);
1068
+ formattedValue: function formattedValue() {
1069
+ var val = !this.modelValue && !this.allowEmpty ? 0 : this.modelValue;
1070
+ return this.formatValue(val);
804
1071
  },
805
- getFormatter: function() {
1072
+ getFormatter: function getFormatter() {
806
1073
  return this.numberFormat;
807
1074
  }
808
1075
  },
809
1076
  components: {
810
- INInputText: W,
811
- INButton: j,
812
- AngleUpIcon: G,
813
- AngleDownIcon: _
1077
+ INInputText: script$5,
1078
+ INButton: script$4,
1079
+ AngleUpIcon: script$3,
1080
+ AngleDownIcon: script$2
814
1081
  }
815
1082
  };
816
- function re(n, e, t, i, r, s) {
817
- var a = k("INInputText"), u = k("INButton");
818
- return m(), U("span", p({
819
- class: n.cx("root")
820
- }, n.ptmi("root")), [$(a, p({
1083
+ function render(_ctx, _cache, $props, $setup, $data, $options) {
1084
+ var _component_INInputText = resolveComponent("INInputText");
1085
+ var _component_INButton = resolveComponent("INButton");
1086
+ return openBlock(), createElementBlock("span", mergeProps({
1087
+ "class": _ctx.cx("root")
1088
+ }, _ctx.ptmi("root")), [createVNode(_component_INInputText, mergeProps({
821
1089
  ref: "input",
822
- id: n.inputId,
1090
+ id: _ctx.inputId,
823
1091
  role: "spinbutton",
824
- class: [n.cx("input"), n.inputClass],
825
- style: n.inputStyle,
826
- value: s.formattedValue,
827
- "aria-valuemin": n.min,
828
- "aria-valuemax": n.max,
829
- "aria-valuenow": n.modelValue,
830
- inputmode: n.mode === "decimal" && !n.minFractionDigits ? "numeric" : "decimal",
831
- disabled: n.disabled,
832
- readonly: n.readonly,
833
- placeholder: n.placeholder,
834
- "aria-labelledby": n.ariaLabelledby,
835
- "aria-label": n.ariaLabel,
836
- "aria-invalid": n.invalid || void 0,
837
- onInput: s.onUserInput,
838
- onKeydown: s.onInputKeyDown,
839
- onKeypress: s.onInputKeyPress,
840
- onPaste: s.onPaste,
841
- onClick: s.onInputClick,
842
- onFocus: s.onInputFocus,
843
- onBlur: s.onInputBlur
844
- }, n.inputProps, {
845
- pt: n.ptm("input"),
846
- unstyled: n.unstyled
847
- }), null, 16, ["id", "class", "style", "value", "aria-valuemin", "aria-valuemax", "aria-valuenow", "inputmode", "disabled", "readonly", "placeholder", "aria-labelledby", "aria-label", "aria-invalid", "onInput", "onKeydown", "onKeypress", "onPaste", "onClick", "onFocus", "onBlur", "pt", "unstyled"]), n.showButtons && n.buttonLayout === "stacked" ? (m(), U("span", p({
1092
+ "class": [_ctx.cx("input"), _ctx.inputClass],
1093
+ style: _ctx.inputStyle,
1094
+ value: $options.formattedValue,
1095
+ "aria-valuemin": _ctx.min,
1096
+ "aria-valuemax": _ctx.max,
1097
+ "aria-valuenow": _ctx.modelValue,
1098
+ inputmode: _ctx.mode === "decimal" && !_ctx.minFractionDigits ? "numeric" : "decimal",
1099
+ disabled: _ctx.disabled,
1100
+ readonly: _ctx.readonly,
1101
+ placeholder: _ctx.placeholder,
1102
+ "aria-labelledby": _ctx.ariaLabelledby,
1103
+ "aria-label": _ctx.ariaLabel,
1104
+ "aria-invalid": _ctx.invalid || void 0,
1105
+ onInput: $options.onUserInput,
1106
+ onKeydown: $options.onInputKeyDown,
1107
+ onKeypress: $options.onInputKeyPress,
1108
+ onPaste: $options.onPaste,
1109
+ onClick: $options.onInputClick,
1110
+ onFocus: $options.onInputFocus,
1111
+ onBlur: $options.onInputBlur
1112
+ }, _ctx.inputProps, {
1113
+ pt: _ctx.ptm("input"),
1114
+ unstyled: _ctx.unstyled
1115
+ }), null, 16, ["id", "class", "style", "value", "aria-valuemin", "aria-valuemax", "aria-valuenow", "inputmode", "disabled", "readonly", "placeholder", "aria-labelledby", "aria-label", "aria-invalid", "onInput", "onKeydown", "onKeypress", "onPaste", "onClick", "onFocus", "onBlur", "pt", "unstyled"]), _ctx.showButtons && _ctx.buttonLayout === "stacked" ? (openBlock(), createElementBlock("span", mergeProps({
848
1116
  key: 0,
849
- class: n.cx("buttonGroup")
850
- }, n.ptm("buttonGroup")), [$(u, p({
851
- class: [n.cx("incrementButton"), n.incrementButtonClass]
852
- }, w(s.upButtonListeners), {
853
- disabled: n.disabled,
1117
+ "class": _ctx.cx("buttonGroup")
1118
+ }, _ctx.ptm("buttonGroup")), [createVNode(_component_INButton, mergeProps({
1119
+ "class": [_ctx.cx("incrementButton"), _ctx.incrementButtonClass]
1120
+ }, toHandlers($options.upButtonListeners), {
1121
+ disabled: _ctx.disabled,
854
1122
  tabindex: -1,
855
1123
  "aria-hidden": "true"
856
- }, n.incrementButtonProps, {
857
- pt: n.ptm("incrementButton"),
858
- unstyled: n.unstyled
1124
+ }, _ctx.incrementButtonProps, {
1125
+ pt: _ctx.ptm("incrementButton"),
1126
+ unstyled: _ctx.unstyled
859
1127
  }), {
860
- icon: x(function() {
861
- return [S(n.$slots, "incrementbuttonicon", {}, function() {
862
- return [(m(), I(v(n.incrementButtonIcon ? "span" : "AngleUpIcon"), p({
863
- class: n.incrementButtonIcon
864
- }, n.ptm("incrementButton").icon, {
1128
+ icon: withCtx(function() {
1129
+ return [renderSlot(_ctx.$slots, "incrementbuttonicon", {}, function() {
1130
+ return [(openBlock(), createBlock(resolveDynamicComponent(_ctx.incrementButtonIcon ? "span" : "AngleUpIcon"), mergeProps({
1131
+ "class": _ctx.incrementButtonIcon
1132
+ }, _ctx.ptm("incrementButton")["icon"], {
865
1133
  "data-pc-section": "incrementbuttonicon"
866
1134
  }), null, 16, ["class"]))];
867
1135
  })];
868
1136
  }),
869
1137
  _: 3
870
- }, 16, ["class", "disabled", "pt", "unstyled"]), $(u, p({
871
- class: [n.cx("decrementButton"), n.decrementButtonClass]
872
- }, w(s.downButtonListeners), {
873
- disabled: n.disabled,
1138
+ }, 16, ["class", "disabled", "pt", "unstyled"]), createVNode(_component_INButton, mergeProps({
1139
+ "class": [_ctx.cx("decrementButton"), _ctx.decrementButtonClass]
1140
+ }, toHandlers($options.downButtonListeners), {
1141
+ disabled: _ctx.disabled,
874
1142
  tabindex: -1,
875
1143
  "aria-hidden": "true"
876
- }, n.decrementButtonProps, {
877
- pt: n.ptm("decrementButton"),
878
- unstyled: n.unstyled
1144
+ }, _ctx.decrementButtonProps, {
1145
+ pt: _ctx.ptm("decrementButton"),
1146
+ unstyled: _ctx.unstyled
879
1147
  }), {
880
- icon: x(function() {
881
- return [S(n.$slots, "decrementbuttonicon", {}, function() {
882
- return [(m(), I(v(n.decrementButtonIcon ? "span" : "AngleDownIcon"), p({
883
- class: n.decrementButtonIcon
884
- }, n.ptm("decrementButton").icon, {
1148
+ icon: withCtx(function() {
1149
+ return [renderSlot(_ctx.$slots, "decrementbuttonicon", {}, function() {
1150
+ return [(openBlock(), createBlock(resolveDynamicComponent(_ctx.decrementButtonIcon ? "span" : "AngleDownIcon"), mergeProps({
1151
+ "class": _ctx.decrementButtonIcon
1152
+ }, _ctx.ptm("decrementButton")["icon"], {
885
1153
  "data-pc-section": "decrementbuttonicon"
886
1154
  }), null, 16, ["class"]))];
887
1155
  })];
888
1156
  }),
889
1157
  _: 3
890
- }, 16, ["class", "disabled", "pt", "unstyled"])], 16)) : V("", !0), n.showButtons && n.buttonLayout !== "stacked" ? (m(), I(u, p({
1158
+ }, 16, ["class", "disabled", "pt", "unstyled"])], 16)) : createCommentVNode("", true), _ctx.showButtons && _ctx.buttonLayout !== "stacked" ? (openBlock(), createBlock(_component_INButton, mergeProps({
891
1159
  key: 1,
892
- class: [n.cx("incrementButton"), n.incrementButtonClass]
893
- }, w(s.upButtonListeners), {
894
- disabled: n.disabled,
1160
+ "class": [_ctx.cx("incrementButton"), _ctx.incrementButtonClass]
1161
+ }, toHandlers($options.upButtonListeners), {
1162
+ disabled: _ctx.disabled,
895
1163
  tabindex: -1,
896
1164
  "aria-hidden": "true"
897
- }, n.incrementButtonProps, {
898
- pt: n.ptm("incrementButton"),
899
- unstyled: n.unstyled
1165
+ }, _ctx.incrementButtonProps, {
1166
+ pt: _ctx.ptm("incrementButton"),
1167
+ unstyled: _ctx.unstyled
900
1168
  }), {
901
- icon: x(function() {
902
- return [S(n.$slots, "incrementbuttonicon", {}, function() {
903
- return [(m(), I(v(n.incrementButtonIcon ? "span" : "AngleUpIcon"), p({
904
- class: n.incrementButtonIcon
905
- }, n.ptm("incrementButton").icon, {
1169
+ icon: withCtx(function() {
1170
+ return [renderSlot(_ctx.$slots, "incrementbuttonicon", {}, function() {
1171
+ return [(openBlock(), createBlock(resolveDynamicComponent(_ctx.incrementButtonIcon ? "span" : "AngleUpIcon"), mergeProps({
1172
+ "class": _ctx.incrementButtonIcon
1173
+ }, _ctx.ptm("incrementButton")["icon"], {
906
1174
  "data-pc-section": "incrementbuttonicon"
907
1175
  }), null, 16, ["class"]))];
908
1176
  })];
909
1177
  }),
910
1178
  _: 3
911
- }, 16, ["class", "disabled", "pt", "unstyled"])) : V("", !0), n.showButtons && n.buttonLayout !== "stacked" ? (m(), I(u, p({
1179
+ }, 16, ["class", "disabled", "pt", "unstyled"])) : createCommentVNode("", true), _ctx.showButtons && _ctx.buttonLayout !== "stacked" ? (openBlock(), createBlock(_component_INButton, mergeProps({
912
1180
  key: 2,
913
- class: [n.cx("decrementButton"), n.decrementButtonClass]
914
- }, w(s.downButtonListeners), {
915
- disabled: n.disabled,
1181
+ "class": [_ctx.cx("decrementButton"), _ctx.decrementButtonClass]
1182
+ }, toHandlers($options.downButtonListeners), {
1183
+ disabled: _ctx.disabled,
916
1184
  tabindex: -1,
917
1185
  "aria-hidden": "true"
918
- }, n.decrementButtonProps, {
919
- pt: n.ptm("decrementButton"),
920
- unstyled: n.unstyled
1186
+ }, _ctx.decrementButtonProps, {
1187
+ pt: _ctx.ptm("decrementButton"),
1188
+ unstyled: _ctx.unstyled
921
1189
  }), {
922
- icon: x(function() {
923
- return [S(n.$slots, "decrementbuttonicon", {}, function() {
924
- return [(m(), I(v(n.decrementButtonIcon ? "span" : "AngleDownIcon"), p({
925
- class: n.decrementButtonIcon
926
- }, n.ptm("decrementButton").icon, {
1190
+ icon: withCtx(function() {
1191
+ return [renderSlot(_ctx.$slots, "decrementbuttonicon", {}, function() {
1192
+ return [(openBlock(), createBlock(resolveDynamicComponent(_ctx.decrementButtonIcon ? "span" : "AngleDownIcon"), mergeProps({
1193
+ "class": _ctx.decrementButtonIcon
1194
+ }, _ctx.ptm("decrementButton")["icon"], {
927
1195
  "data-pc-section": "decrementbuttonicon"
928
1196
  }), null, 16, ["class"]))];
929
1197
  })];
930
1198
  }),
931
1199
  _: 3
932
- }, 16, ["class", "disabled", "pt", "unstyled"])) : V("", !0)], 16);
1200
+ }, 16, ["class", "disabled", "pt", "unstyled"])) : createCommentVNode("", true)], 16);
933
1201
  }
934
- ie.render = re;
1202
+ script.render = render;
935
1203
  export {
936
- ie as s
1204
+ script as s
937
1205
  };