@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,23 +1,24 @@
1
- var c = Object.defineProperty;
2
- var g = (r, t, e) => t in r ? c(r, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[t] = e;
3
- var h = (r, t, e) => g(r, typeof t != "symbol" ? t + "" : t, e);
4
- const a = class a {
1
+ var __defProp = Object.defineProperty;
2
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3
+ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
4
+ const _WangsUIRouter = class _WangsUIRouter {
5
5
  constructor() {
6
6
  /**
7
7
  * Stores base URLs associated with different app identifiers.
8
8
  */
9
- h(this, "_baseUrl", "");
10
- if (globalThis[a.SINGLETON_KEY])
11
- return globalThis[a.SINGLETON_KEY];
12
- globalThis[a.SINGLETON_KEY] = this;
9
+ __publicField(this, "_baseUrl", "");
10
+ if (globalThis[_WangsUIRouter.SINGLETON_KEY]) {
11
+ return globalThis[_WangsUIRouter.SINGLETON_KEY];
12
+ }
13
+ globalThis[_WangsUIRouter.SINGLETON_KEY] = this;
13
14
  }
14
15
  /**
15
16
  * Registers a base URL for a specific app.
16
17
  *
17
18
  * @param base - The base URL to be used as a prefix for all routes in that app.
18
19
  */
19
- setNavigationBaseUrl(t) {
20
- this._baseUrl = this.normalizeBase(t);
20
+ setNavigationBaseUrl(base) {
21
+ this._baseUrl = this.normalizeBase(base);
21
22
  }
22
23
  /**
23
24
  * Retrieves the base URL for a specific app.
@@ -33,8 +34,8 @@ const a = class a {
33
34
  * @param base - The base URL to normalize.
34
35
  * @returns A clean base URL ending with a single `/`.
35
36
  */
36
- normalizeBase(t) {
37
- return t.replace(/\/+$/, "").concat("/");
37
+ normalizeBase(base) {
38
+ return base.replace(/\/+$/, "").concat("/");
38
39
  }
39
40
  /**
40
41
  * Prepends the base URL (if any) to the given path.
@@ -42,14 +43,15 @@ const a = class a {
42
43
  * @param path - The relative path to normalize.
43
44
  * @returns A fully normalized path prefixed with the base URL if applicable.
44
45
  */
45
- normalizePath(t) {
46
- if (!t.startsWith("/"))
47
- return new URL(t, window.location.href).pathname;
48
- const e = this.getNavigationBaseUrl();
49
- if (!e)
50
- return t;
51
- const i = t.slice(1);
52
- return `${e}${i}`;
46
+ normalizePath(path) {
47
+ if (!path.startsWith("/")) {
48
+ return new URL(path, window.location.href).pathname;
49
+ }
50
+ const base = this.getNavigationBaseUrl();
51
+ if (!base)
52
+ return path;
53
+ const sanitizedPath = path.slice(1);
54
+ return `${base}${sanitizedPath}`;
53
55
  }
54
56
  /**
55
57
  * Removes the specified base path from the beginning of a given route path.
@@ -67,8 +69,9 @@ const a = class a {
67
69
  * stripBase('/about', '/base'); // returns '/about' (base not present)
68
70
  * stripBase('/base', '/base'); // returns '/'
69
71
  */
70
- stripBase(t, e) {
71
- return e || (e = this.getNavigationBaseUrl()), e !== "/" && t.startsWith(e) ? "/" + t.slice(e.length).replace(/^\/+/, "") : t;
72
+ stripBase(path, base) {
73
+ base || (base = this.getNavigationBaseUrl());
74
+ return base !== "/" && path.startsWith(base) ? "/" + path.slice(base.length).replace(/^\/+/, "") : path;
72
75
  }
73
76
  /**
74
77
  * Pushes a new entry to the browser's history stack.
@@ -80,18 +83,18 @@ const a = class a {
80
83
  * @example
81
84
  * Router.push('/about', { from: 'home' });
82
85
  */
83
- push(t, e = {}, i = "") {
84
- var o;
85
- const s = {
86
- ...e,
86
+ push(route, data = {}, unused = "") {
87
+ var _a;
88
+ const state = {
89
+ ...data,
87
90
  ...history.state ?? {},
88
- current: t,
89
- back: (o = history.state) == null ? void 0 : o.current,
91
+ current: route,
92
+ back: (_a = history.state) == null ? void 0 : _a.current,
90
93
  forward: void 0,
91
- replaced: !1,
94
+ replaced: false,
92
95
  position: history.length + 1
93
96
  };
94
- window.history.pushState(s, i, t);
97
+ window.history.pushState(state, unused, route);
95
98
  }
96
99
  /**
97
100
  * Replaces the current entry in the browser's history stack.
@@ -103,15 +106,15 @@ const a = class a {
103
106
  * @example
104
107
  * Router.replace('/login', { reason: 'session expired' });
105
108
  */
106
- replace(t, e = {}, i = "") {
107
- const s = {
108
- ...e,
109
+ replace(route, data = {}, unused = "") {
110
+ const state = {
111
+ ...data,
109
112
  ...history.state ?? {},
110
113
  forward: void 0,
111
- current: t,
112
- replaced: !0
114
+ current: route,
115
+ replaced: true
113
116
  };
114
- window.history.replaceState(s, i, t);
117
+ window.history.replaceState(state, unused, route);
115
118
  }
116
119
  /**
117
120
  * Dispatches a custom event before navigation occurs.
@@ -121,9 +124,9 @@ const a = class a {
121
124
  * @param mode - The navigation mode ('push' or 'replace').
122
125
  * @param data - Optional state object for the navigation.
123
126
  */
124
- dispatchBeforeNavigationEvent(t, e, i) {
127
+ dispatchBeforeNavigationEvent(route, mode, data) {
125
128
  window.dispatchEvent(new CustomEvent("wangs-ui-core:before-navigation-event", {
126
- detail: { route: t, mode: e, state: i }
129
+ detail: { route, mode, state: data }
127
130
  }));
128
131
  }
129
132
  /**
@@ -134,9 +137,9 @@ const a = class a {
134
137
  * @param mode - The navigation mode ('push' or 'replace').
135
138
  * @param data - Optional state object for the navigation.
136
139
  */
137
- dispatchNavigationEvent(t, e, i) {
140
+ dispatchNavigationEvent(route, mode, data) {
138
141
  window.dispatchEvent(new CustomEvent("wangs-ui-core:navigation-event", {
139
- detail: { route: t, mode: e, state: i }
142
+ detail: { route, mode, state: data }
140
143
  }));
141
144
  }
142
145
  /**
@@ -156,18 +159,26 @@ const a = class a {
156
159
  * @example
157
160
  * router.navigateToRoute('/about', 'push', { some: 'state' }, '',);
158
161
  */
159
- navigateToRoute(t, e = "push", i = history.state, s = "") {
160
- if (!t)
162
+ navigateToRoute(route, navigationMode = "push", data = history.state, unused = "") {
163
+ if (!route)
161
164
  return;
162
- const o = typeof t == "string" ? t : t.toString(), n = this.normalizePath(o);
163
- if (n === location.pathname)
165
+ const rawUrl = typeof route === "string" ? route : route.toString();
166
+ const finalUrl = this.normalizePath(rawUrl);
167
+ if (finalUrl === location.pathname) {
164
168
  return console.warn("[WangsUIRouter] Navigation aborted: target route is the same as the current route.");
165
- this.dispatchBeforeNavigationEvent(n, e, i), e === "push" ? this.push(n, i, s) : this.replace(n, i, s), this.dispatchNavigationEvent(n, e, i);
169
+ }
170
+ this.dispatchBeforeNavigationEvent(finalUrl, navigationMode, data);
171
+ if (navigationMode === "push") {
172
+ this.push(finalUrl, data, unused);
173
+ } else {
174
+ this.replace(finalUrl, data, unused);
175
+ }
176
+ this.dispatchNavigationEvent(finalUrl, navigationMode, data);
166
177
  }
167
178
  };
168
- h(a, "SINGLETON_KEY", "__WANGS_UI_ROUTER_INSTANCE__");
169
- let l = a;
170
- const v = new l();
179
+ __publicField(_WangsUIRouter, "SINGLETON_KEY", "__WANGS_UI_ROUTER_INSTANCE__");
180
+ let WangsUIRouter = _WangsUIRouter;
181
+ const router = new WangsUIRouter();
171
182
  export {
172
- v as r
183
+ router as r
173
184
  };
@@ -1,34 +1,38 @@
1
- var c = Object.defineProperty;
2
- var f = (t, e, n) => e in t ? c(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
3
- var o = (t, e, n) => f(t, typeof e != "symbol" ? e + "" : e, n);
4
- import { p as a, H as r, h as s, a as u } from "./p-DTTCzifR.es.js";
5
- const l = /* @__PURE__ */ a(class extends r {
1
+ var __defProp = Object.defineProperty;
2
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3
+ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
4
+ import { p as proxyCustomElement, H, h, a as Host } from "./p-DTTCzifR.es.js";
5
+ const Button = /* @__PURE__ */ proxyCustomElement(class Button2 extends H {
6
6
  constructor() {
7
7
  super();
8
8
  /**
9
9
  * The first name
10
10
  */
11
- o(this, "label");
11
+ __publicField(this, "label");
12
12
  this.__registerHost();
13
13
  }
14
14
  render() {
15
- return s(u, { key: "b38f4386d6fb33972469caffc9b7f95b7fb0e7c9" }, s("slot", { key: "e1f130e8171a7ac985fc07612e3e8a693d6058ea", name: "icon" }), s("slot", { key: "f7395cc5ea9dc2d6125bf3e30a97e0303dab43e0" }, this.label));
15
+ return h(Host, { key: "b38f4386d6fb33972469caffc9b7f95b7fb0e7c9" }, h("slot", { key: "e1f130e8171a7ac985fc07612e3e8a693d6058ea", name: "icon" }), h("slot", { key: "f7395cc5ea9dc2d6125bf3e30a97e0303dab43e0" }, this.label));
16
16
  }
17
17
  }, [4, "wangs-button", {
18
- label: [1]
18
+ "label": [1]
19
19
  }]);
20
- function m() {
21
- if (typeof customElements > "u")
20
+ function defineCustomElement$1() {
21
+ if (typeof customElements === "undefined") {
22
22
  return;
23
- ["wangs-button"].forEach((e) => {
24
- switch (e) {
23
+ }
24
+ const components = ["wangs-button"];
25
+ components.forEach((tagName) => {
26
+ switch (tagName) {
25
27
  case "wangs-button":
26
- customElements.get(e) || customElements.define(e, l);
28
+ if (!customElements.get(tagName)) {
29
+ customElements.define(tagName, Button);
30
+ }
27
31
  break;
28
32
  }
29
33
  });
30
34
  }
31
- const p = m;
35
+ const defineCustomElement = defineCustomElement$1;
32
36
  export {
33
- p as d
37
+ defineCustomElement as d
34
38
  };
@@ -1,5 +1,5 @@
1
- import { d as e } from "./p-CKYwZoTo.es.js";
2
- const m = e;
1
+ import { d as defineCustomElement$1 } from "./p-CKYwZoTo.es.js";
2
+ const defineCustomElement = defineCustomElement$1;
3
3
  export {
4
- m as d
4
+ defineCustomElement as d
5
5
  };
@@ -1,5 +1,5 @@
1
- import { d as e } from "./p-CsoK-EWG.es.js";
2
- const m = e;
1
+ import { d as defineCustomElement$1 } from "./p-CsoK-EWG.es.js";
2
+ const defineCustomElement = defineCustomElement$1;
3
3
  export {
4
- m as d
4
+ defineCustomElement as d
5
5
  };
@@ -1,5 +1,5 @@
1
- import { d as e } from "./p-DPHEi31J.es.js";
2
- const m = e;
1
+ import { d as defineCustomElement$1 } from "./p-DPHEi31J.es.js";
2
+ const defineCustomElement = defineCustomElement$1;
3
3
  export {
4
- m as d
4
+ defineCustomElement as d
5
5
  };
@@ -1,25 +1,28 @@
1
- var c = Object.defineProperty;
2
- var u = (t, e, i) => e in t ? c(t, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : t[e] = i;
3
- var o = (t, e, i) => u(t, typeof e != "symbol" ? e + "" : e, i);
4
- function m() {
5
- window.WangsUI || (window.WangsUI = {
6
- presets: {
7
- "WANGS-TAB-MENU": {},
8
- "WANGS-INPUT-OTP": {}
9
- }
10
- });
1
+ var __defProp = Object.defineProperty;
2
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3
+ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
4
+ function initWangsUIStore() {
5
+ if (!window.WangsUI) {
6
+ window.WangsUI = {
7
+ presets: {
8
+ "WANGS-TAB-MENU": {},
9
+ "WANGS-INPUT-OTP": {}
10
+ }
11
+ };
12
+ }
11
13
  }
12
- function f(t, e) {
13
- m(), window.WangsUI.presets[t] = e;
14
+ function setPreset(tagName, value) {
15
+ initWangsUIStore();
16
+ window.WangsUI.presets[tagName] = value;
14
17
  }
15
- function g(t, e) {
16
- return { [t]: e }[t];
18
+ function definePreset(tag, preset) {
19
+ return { [tag]: preset }[tag];
17
20
  }
18
- g("WANGS-TAB-MENU", {
21
+ definePreset("WANGS-TAB-MENU", {
19
22
  root: {
20
23
  class: "overflow-x-visible"
21
24
  },
22
- menu: ({ props: t }) => ({
25
+ menu: ({ props }) => ({
23
26
  class: [
24
27
  // Flexbox
25
28
  "flex flex-1",
@@ -28,14 +31,14 @@ g("WANGS-TAB-MENU", {
28
31
  "p-0 m-0",
29
32
  // Colors
30
33
  "text-general-100",
31
- { "w-max ring-1 ring-inset ring-general-100 rounded": t.type === "segmented" }
34
+ { "w-max ring-1 ring-inset ring-general-100 rounded": props.type === "segmented" }
32
35
  ]
33
36
  }),
34
37
  menuitem: {
35
38
  class: "mr-0"
36
39
  },
37
- action: ({ props: t, context: e }) => {
38
- var i, a;
40
+ action: ({ props, context }) => {
41
+ var _a, _b;
39
42
  return {
40
43
  class: [
41
44
  "relative",
@@ -46,40 +49,40 @@ g("WANGS-TAB-MENU", {
46
49
  "flex items-center",
47
50
  // Spacing
48
51
  {
49
- "rounded-xl py-1 px-3": t.type === "pill",
50
- rounded: t.type === "segmented",
51
- "p-2 pb-1.5 pt-0.5 !h-6": t.type === "tab",
52
- "py-[5px] px-3 !h-6": t.type === "segmented",
53
- "ml-1": t.type === "pill" && e.index !== 0,
54
- "gap-1": e.item.icon
52
+ "rounded-xl py-1 px-3": props.type === "pill",
53
+ "rounded": props.type === "segmented",
54
+ "p-2 pb-1.5 pt-0.5 !h-6": props.type === "tab",
55
+ "py-[5px] px-3 !h-6": props.type === "segmented",
56
+ "ml-1": props.type === "pill" && context.index !== 0,
57
+ "gap-1": context.item.icon
55
58
  },
56
59
  // Shape
57
60
  {
58
- "border-b-2": t.type === "tab",
59
- "shadow-[-2px_2px_2px_rgba(0,0,0,0.25)] overflow-visible": t.type === "segmented" && e.active
61
+ "border-b-2": props.type === "tab",
62
+ "shadow-[-2px_2px_2px_rgba(0,0,0,0.25)] overflow-visible": props.type === "segmented" && context.active
60
63
  },
61
64
  // Colors and Conditions
62
65
  {
63
- "border-primary-700": e.active,
64
- "border-grayscale-400": !e.active,
65
- "text-grayscale-600": !e.active && t.type === "tab",
66
- "text-primary-700": e.active && t.type === "tab",
67
- "bg-primary-700 text-white": t.type === "pill" && e.active,
68
- "bg-grayscale-100 text-grayscale-800": t.type === "pill" && !e.active,
69
- "bg-primary-500 text-white": t.type === "segmented" && e.active,
70
- "!text-general-800": t.type === "segmented" && !e.active,
71
- "bg-transparent ": t.type !== "pill" && !e.active
66
+ "border-primary-700": context.active,
67
+ "border-grayscale-400": !context.active,
68
+ "text-grayscale-600": !context.active && props.type === "tab",
69
+ "text-primary-700": context.active && props.type === "tab",
70
+ "bg-primary-700 text-white": props.type === "pill" && context.active,
71
+ "bg-grayscale-100 text-grayscale-800": props.type === "pill" && !context.active,
72
+ "bg-primary-500 text-white": props.type === "segmented" && context.active,
73
+ "!text-general-800": props.type === "segmented" && !context.active,
74
+ "bg-transparent ": props.type !== "pill" && !context.active
72
75
  },
73
76
  // States
74
- { "hover:bg-primary-50": t.type === "tab" },
77
+ { "hover:bg-primary-50": props.type === "tab" },
75
78
  "focus-visible:outline-none focus-visible:outline-offset-0",
76
79
  {
77
- "focus-visible:border-primary-200 focus-visible:text-primary-400": !e.active
80
+ "focus-visible:border-primary-200 focus-visible:text-primary-400": !context.active
78
81
  },
79
82
  // Disabled States
80
83
  {
81
- "pointer-events-none": (i = e.item) == null ? void 0 : i.disabled,
82
- "opacity-60": (a = e.item) == null ? void 0 : a.disabled
84
+ "pointer-events-none": (_a = context.item) == null ? void 0 : _a.disabled,
85
+ "opacity-60": (_b = context.item) == null ? void 0 : _b.disabled
83
86
  },
84
87
  // Transitions
85
88
  "transition-all duration-200",
@@ -95,11 +98,11 @@ g("WANGS-TAB-MENU", {
95
98
  icon: {
96
99
  class: "mr-2"
97
100
  },
98
- inkbar: ({ props: t }) => ({
99
- class: ["grow border-b-2 border-grayscale-400", { hidden: t.type === "pill" || t.useTrailingLine === !1 || t.type === "segmented" }]
101
+ inkbar: ({ props }) => ({
102
+ class: ["grow border-b-2 border-grayscale-400", { hidden: props.type === "pill" || props.useTrailingLine === false || props.type === "segmented" }]
100
103
  })
101
104
  });
102
- g("WANGS-INPUT-OTP", {
105
+ definePreset("WANGS-INPUT-OTP", {
103
106
  root: {
104
107
  class: [
105
108
  // Alignment
@@ -108,24 +111,24 @@ g("WANGS-INPUT-OTP", {
108
111
  "w-max"
109
112
  ]
110
113
  },
111
- input: ({ props: t, context: e, parent: i }) => ({
114
+ input: ({ props, context, parent }) => ({
112
115
  class: [
113
116
  // Font
114
117
  "text-[14px] leading-none font-medium",
115
118
  // Flex & Alignment
116
- { "flex-1 w-[1%]": i.tagName == "WANGS-INPUT-GROUP" },
119
+ { "flex-1 w-[1%]": parent.tagName == "WANGS-INPUT-GROUP" },
117
120
  "text-center",
118
121
  // Spacing
119
122
  "m-0",
120
123
  // Size
121
124
  "w-[42px] h-[42px]",
122
125
  // Shape
123
- { "rounded-md": i.tagName !== "WANGS-INPUT-GROUP" },
126
+ { "rounded-md": parent.tagName !== "WANGS-INPUT-GROUP" },
124
127
  {
125
- "first:rounded-l-md rounded-none last:rounded-r-md": i.tagName == "WANGS-INPUT-GROUP"
128
+ "first:rounded-l-md rounded-none last:rounded-r-md": parent.tagName == "WANGS-INPUT-GROUP"
126
129
  },
127
130
  {
128
- "border-0 border-y border-l last:border-r": i.tagName == "WANGS-INPUT-GROUP"
131
+ "border-0 border-y border-l last:border-r": parent.tagName == "WANGS-INPUT-GROUP"
129
132
  },
130
133
  // Colors
131
134
  "text-general-800 dark:text-general-800",
@@ -135,41 +138,42 @@ g("WANGS-INPUT-OTP", {
135
138
  "ring-1": navigator.userAgent.includes("Firefox"),
136
139
  "ring-[0.5px]": !navigator.userAgent.includes("Firefox")
137
140
  },
138
- { "ring-general-200 dark:ring-general-200": !t.invalid },
141
+ { "ring-general-200 dark:ring-general-200": !props.invalid },
139
142
  // Invalid State
140
- { "ring-danger-500 dark:ring-danger-500": t.invalid },
143
+ { "ring-danger-500 dark:ring-danger-500": props.invalid },
141
144
  // States
142
145
  {
143
- "hover:bg-primary-50/50 hover:ring-primary-500 dark:hover:ring-primary-400": !e.disabled && !t.invalid,
144
- "focus:bg-primary-50/50 focus:ring-primary-500 dark:focus:ring-primary-400": !e.disabled && !t.invalid,
145
- "focus:outline-none focus:outline-offset-0": !e.disabled,
146
- "opacity-60 select-none pointer-events-none cursor-default": e.disabled
146
+ "hover:bg-primary-50/50 hover:ring-primary-500 dark:hover:ring-primary-400": !context.disabled && !props.invalid,
147
+ "focus:bg-primary-50/50 focus:ring-primary-500 dark:focus:ring-primary-400": !context.disabled && !props.invalid,
148
+ "focus:outline-none focus:outline-offset-0": !context.disabled,
149
+ "opacity-60 select-none pointer-events-none cursor-default": context.disabled
147
150
  },
148
151
  // Filled State *for FloatLabel
149
- { filled: i.tagName == "WANGS-FLOAT-LABEL" && e.filled },
152
+ { filled: parent.tagName == "WANGS-FLOAT-LABEL" && context.filled },
150
153
  // Misc
151
154
  "appearance-none",
152
155
  "transition-colors duration-200"
153
156
  ]
154
157
  })
155
158
  });
156
- const n = class n {
159
+ const _WangsUIRouter = class _WangsUIRouter {
157
160
  constructor() {
158
161
  /**
159
162
  * Stores base URLs associated with different app identifiers.
160
163
  */
161
- o(this, "_baseUrl", "");
162
- if (globalThis[n.SINGLETON_KEY])
163
- return globalThis[n.SINGLETON_KEY];
164
- globalThis[n.SINGLETON_KEY] = this;
164
+ __publicField(this, "_baseUrl", "");
165
+ if (globalThis[_WangsUIRouter.SINGLETON_KEY]) {
166
+ return globalThis[_WangsUIRouter.SINGLETON_KEY];
167
+ }
168
+ globalThis[_WangsUIRouter.SINGLETON_KEY] = this;
165
169
  }
166
170
  /**
167
171
  * Registers a base URL for a specific app.
168
172
  *
169
173
  * @param base - The base URL to be used as a prefix for all routes in that app.
170
174
  */
171
- setNavigationBaseUrl(e) {
172
- this._baseUrl = this.normalizeBase(e);
175
+ setNavigationBaseUrl(base) {
176
+ this._baseUrl = this.normalizeBase(base);
173
177
  }
174
178
  /**
175
179
  * Retrieves the base URL for a specific app.
@@ -185,8 +189,8 @@ const n = class n {
185
189
  * @param base - The base URL to normalize.
186
190
  * @returns A clean base URL ending with a single `/`.
187
191
  */
188
- normalizeBase(e) {
189
- return e.replace(/\/+$/, "").concat("/");
192
+ normalizeBase(base) {
193
+ return base.replace(/\/+$/, "").concat("/");
190
194
  }
191
195
  /**
192
196
  * Prepends the base URL (if any) to the given path.
@@ -194,14 +198,15 @@ const n = class n {
194
198
  * @param path - The relative path to normalize.
195
199
  * @returns A fully normalized path prefixed with the base URL if applicable.
196
200
  */
197
- normalizePath(e) {
198
- if (!e.startsWith("/"))
199
- return new URL(e, window.location.href).pathname;
200
- const i = this.getNavigationBaseUrl();
201
- if (!i)
202
- return e;
203
- const a = e.slice(1);
204
- return `${i}${a}`;
201
+ normalizePath(path) {
202
+ if (!path.startsWith("/")) {
203
+ return new URL(path, window.location.href).pathname;
204
+ }
205
+ const base = this.getNavigationBaseUrl();
206
+ if (!base)
207
+ return path;
208
+ const sanitizedPath = path.slice(1);
209
+ return `${base}${sanitizedPath}`;
205
210
  }
206
211
  /**
207
212
  * Removes the specified base path from the beginning of a given route path.
@@ -219,8 +224,9 @@ const n = class n {
219
224
  * stripBase('/about', '/base'); // returns '/about' (base not present)
220
225
  * stripBase('/base', '/base'); // returns '/'
221
226
  */
222
- stripBase(e, i) {
223
- return i || (i = this.getNavigationBaseUrl()), i !== "/" && e.startsWith(i) ? "/" + e.slice(i.length).replace(/^\/+/, "") : e;
227
+ stripBase(path, base) {
228
+ base || (base = this.getNavigationBaseUrl());
229
+ return base !== "/" && path.startsWith(base) ? "/" + path.slice(base.length).replace(/^\/+/, "") : path;
224
230
  }
225
231
  /**
226
232
  * Pushes a new entry to the browser's history stack.
@@ -232,18 +238,18 @@ const n = class n {
232
238
  * @example
233
239
  * Router.push('/about', { from: 'home' });
234
240
  */
235
- push(e, i = {}, a = "") {
236
- var l;
237
- const r = {
238
- ...i,
241
+ push(route, data = {}, unused = "") {
242
+ var _a;
243
+ const state = {
244
+ ...data,
239
245
  ...history.state ?? {},
240
- current: e,
241
- back: (l = history.state) == null ? void 0 : l.current,
246
+ current: route,
247
+ back: (_a = history.state) == null ? void 0 : _a.current,
242
248
  forward: void 0,
243
- replaced: !1,
249
+ replaced: false,
244
250
  position: history.length + 1
245
251
  };
246
- window.history.pushState(r, a, e);
252
+ window.history.pushState(state, unused, route);
247
253
  }
248
254
  /**
249
255
  * Replaces the current entry in the browser's history stack.
@@ -255,15 +261,15 @@ const n = class n {
255
261
  * @example
256
262
  * Router.replace('/login', { reason: 'session expired' });
257
263
  */
258
- replace(e, i = {}, a = "") {
259
- const r = {
260
- ...i,
264
+ replace(route, data = {}, unused = "") {
265
+ const state = {
266
+ ...data,
261
267
  ...history.state ?? {},
262
268
  forward: void 0,
263
- current: e,
264
- replaced: !0
269
+ current: route,
270
+ replaced: true
265
271
  };
266
- window.history.replaceState(r, a, e);
272
+ window.history.replaceState(state, unused, route);
267
273
  }
268
274
  /**
269
275
  * Dispatches a custom event before navigation occurs.
@@ -273,9 +279,9 @@ const n = class n {
273
279
  * @param mode - The navigation mode ('push' or 'replace').
274
280
  * @param data - Optional state object for the navigation.
275
281
  */
276
- dispatchBeforeNavigationEvent(e, i, a) {
282
+ dispatchBeforeNavigationEvent(route, mode, data) {
277
283
  window.dispatchEvent(new CustomEvent("wangs-ui-core:before-navigation-event", {
278
- detail: { route: e, mode: i, state: a }
284
+ detail: { route, mode, state: data }
279
285
  }));
280
286
  }
281
287
  /**
@@ -286,9 +292,9 @@ const n = class n {
286
292
  * @param mode - The navigation mode ('push' or 'replace').
287
293
  * @param data - Optional state object for the navigation.
288
294
  */
289
- dispatchNavigationEvent(e, i, a) {
295
+ dispatchNavigationEvent(route, mode, data) {
290
296
  window.dispatchEvent(new CustomEvent("wangs-ui-core:navigation-event", {
291
- detail: { route: e, mode: i, state: a }
297
+ detail: { route, mode, state: data }
292
298
  }));
293
299
  }
294
300
  /**
@@ -308,19 +314,27 @@ const n = class n {
308
314
  * @example
309
315
  * router.navigateToRoute('/about', 'push', { some: 'state' }, '',);
310
316
  */
311
- navigateToRoute(e, i = "push", a = history.state, r = "") {
312
- if (!e)
317
+ navigateToRoute(route, navigationMode = "push", data = history.state, unused = "") {
318
+ if (!route)
313
319
  return;
314
- const l = typeof e == "string" ? e : e.toString(), s = this.normalizePath(l);
315
- if (s === location.pathname)
320
+ const rawUrl = typeof route === "string" ? route : route.toString();
321
+ const finalUrl = this.normalizePath(rawUrl);
322
+ if (finalUrl === location.pathname) {
316
323
  return console.warn("[WangsUIRouter] Navigation aborted: target route is the same as the current route.");
317
- this.dispatchBeforeNavigationEvent(s, i, a), i === "push" ? this.push(s, a, r) : this.replace(s, a, r), this.dispatchNavigationEvent(s, i, a);
324
+ }
325
+ this.dispatchBeforeNavigationEvent(finalUrl, navigationMode, data);
326
+ if (navigationMode === "push") {
327
+ this.push(finalUrl, data, unused);
328
+ } else {
329
+ this.replace(finalUrl, data, unused);
330
+ }
331
+ this.dispatchNavigationEvent(finalUrl, navigationMode, data);
318
332
  }
319
333
  };
320
- o(n, "SINGLETON_KEY", "__WANGS_UI_ROUTER_INSTANCE__");
321
- let d = n;
322
- const v = new d();
334
+ __publicField(_WangsUIRouter, "SINGLETON_KEY", "__WANGS_UI_ROUTER_INSTANCE__");
335
+ let WangsUIRouter = _WangsUIRouter;
336
+ const router = new WangsUIRouter();
323
337
  export {
324
- v as r,
325
- f as s
338
+ router as r,
339
+ setPreset as s
326
340
  };