@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,4 +1,5 @@
1
- const m = "[A-Za-z$_][0-9A-Za-z$_]*", x = [
1
+ const IDENT_RE = "[A-Za-z$_][0-9A-Za-z$_]*";
2
+ const KEYWORDS = [
2
3
  "as",
3
4
  // for exports
4
5
  "in",
@@ -41,14 +42,16 @@ const m = "[A-Za-z$_][0-9A-Za-z$_]*", x = [
41
42
  "from",
42
43
  "export",
43
44
  "extends"
44
- ], D = [
45
+ ];
46
+ const LITERALS = [
45
47
  "true",
46
48
  "false",
47
49
  "null",
48
50
  "undefined",
49
51
  "NaN",
50
52
  "Infinity"
51
- ], k = [
53
+ ];
54
+ const TYPES = [
52
55
  // Fundamental objects
53
56
  "Object",
54
57
  "Function",
@@ -98,7 +101,8 @@ const m = "[A-Za-z$_][0-9A-Za-z$_]*", x = [
98
101
  "Intl",
99
102
  // WebAssembly
100
103
  "WebAssembly"
101
- ], B = [
104
+ ];
105
+ const ERROR_TYPES = [
102
106
  "Error",
103
107
  "EvalError",
104
108
  "InternalError",
@@ -107,7 +111,8 @@ const m = "[A-Za-z$_][0-9A-Za-z$_]*", x = [
107
111
  "SyntaxError",
108
112
  "TypeError",
109
113
  "URIError"
110
- ], U = [
114
+ ];
115
+ const BUILT_IN_GLOBALS = [
111
116
  "setInterval",
112
117
  "setTimeout",
113
118
  "clearInterval",
@@ -125,7 +130,8 @@ const m = "[A-Za-z$_][0-9A-Za-z$_]*", x = [
125
130
  "encodeURIComponent",
126
131
  "escape",
127
132
  "unescape"
128
- ], h = [
133
+ ];
134
+ const BUILT_IN_VARIABLES = [
129
135
  "arguments",
130
136
  "this",
131
137
  "super",
@@ -137,64 +143,83 @@ const m = "[A-Za-z$_][0-9A-Za-z$_]*", x = [
137
143
  "module",
138
144
  "global"
139
145
  // Node.js
140
- ], P = [].concat(
141
- U,
142
- k,
143
- B
146
+ ];
147
+ const BUILT_INS = [].concat(
148
+ BUILT_IN_GLOBALS,
149
+ TYPES,
150
+ ERROR_TYPES
144
151
  );
145
- function J(n) {
146
- const e = n.regex, R = (a, { after: l }) => {
147
- const g = "</" + a[0].slice(1);
148
- return a.input.indexOf(g, l) !== -1;
149
- }, t = m, u = {
152
+ function javascript(hljs) {
153
+ const regex = hljs.regex;
154
+ const hasClosingTag = (match, { after }) => {
155
+ const tag = "</" + match[0].slice(1);
156
+ const pos = match.input.indexOf(tag, after);
157
+ return pos !== -1;
158
+ };
159
+ const IDENT_RE$1 = IDENT_RE;
160
+ const FRAGMENT = {
150
161
  begin: "<>",
151
162
  end: "</>"
152
- }, f = /<[A-Za-z0-9\\._:-]+\s*\/>/, o = {
163
+ };
164
+ const XML_SELF_CLOSING = /<[A-Za-z0-9\\._:-]+\s*\/>/;
165
+ const XML_TAG = {
153
166
  begin: /<[A-Za-z0-9\\._:-]+/,
154
167
  end: /\/[A-Za-z0-9\\._:-]+>|\/>/,
155
168
  /**
156
169
  * @param {RegExpMatchArray} match
157
170
  * @param {CallbackResponse} response
158
171
  */
159
- isTrulyOpeningTag: (a, l) => {
160
- const g = a[0].length + a.index, T = a.input[g];
172
+ isTrulyOpeningTag: (match, response) => {
173
+ const afterMatchIndex = match[0].length + match.index;
174
+ const nextChar = match.input[afterMatchIndex];
161
175
  if (
162
176
  // HTML should not include another raw `<` inside a tag
163
177
  // nested type?
164
178
  // `<Array<Array<number>>`, etc.
165
- T === "<" || // the , gives away that this is not HTML
179
+ nextChar === "<" || // the , gives away that this is not HTML
166
180
  // `<T, A extends keyof T, V>`
167
- T === ","
181
+ nextChar === ","
168
182
  ) {
169
- l.ignoreMatch();
183
+ response.ignoreMatch();
170
184
  return;
171
185
  }
172
- T === ">" && (R(a, { after: g }) || l.ignoreMatch());
173
- let p;
174
- const L = a.input.substring(g);
175
- if (p = L.match(/^\s*=/)) {
176
- l.ignoreMatch();
177
- return;
186
+ if (nextChar === ">") {
187
+ if (!hasClosingTag(match, { after: afterMatchIndex })) {
188
+ response.ignoreMatch();
189
+ }
178
190
  }
179
- if ((p = L.match(/^\s+extends\s+/)) && p.index === 0) {
180
- l.ignoreMatch();
191
+ let m;
192
+ const afterMatch = match.input.substring(afterMatchIndex);
193
+ if (m = afterMatch.match(/^\s*=/)) {
194
+ response.ignoreMatch();
181
195
  return;
182
196
  }
197
+ if (m = afterMatch.match(/^\s+extends\s+/)) {
198
+ if (m.index === 0) {
199
+ response.ignoreMatch();
200
+ return;
201
+ }
202
+ }
183
203
  }
184
- }, c = {
185
- $pattern: m,
186
- keyword: x,
187
- literal: D,
188
- built_in: P,
189
- "variable.language": h
190
- }, A = "[0-9](_?[0-9])*", i = `\\.(${A})`, E = "0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*", _ = {
204
+ };
205
+ const KEYWORDS$1 = {
206
+ $pattern: IDENT_RE,
207
+ keyword: KEYWORDS,
208
+ literal: LITERALS,
209
+ built_in: BUILT_INS,
210
+ "variable.language": BUILT_IN_VARIABLES
211
+ };
212
+ const decimalDigits = "[0-9](_?[0-9])*";
213
+ const frac = `\\.(${decimalDigits})`;
214
+ const decimalInteger = `0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*`;
215
+ const NUMBER = {
191
216
  className: "number",
192
217
  variants: [
193
218
  // DecimalLiteral
194
- { begin: `(\\b(${E})((${i})|\\.)?|(${i}))[eE][+-]?(${A})\\b` },
195
- { begin: `\\b(${E})\\b((${i})\\b|\\.)?|(${i})\\b` },
219
+ { begin: `(\\b(${decimalInteger})((${frac})|\\.)?|(${frac}))[eE][+-]?(${decimalDigits})\\b` },
220
+ { begin: `\\b(${decimalInteger})\\b((${frac})\\b|\\.)?|(${frac})\\b` },
196
221
  // DecimalBigIntegerLiteral
197
- { begin: "\\b(0|[1-9](_?[0-9])*)n\\b" },
222
+ { begin: `\\b(0|[1-9](_?[0-9])*)n\\b` },
198
223
  // NonDecimalIntegerLiteral
199
224
  { begin: "\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b" },
200
225
  { begin: "\\b0[bB][0-1](_?[0-1])*n?\\b" },
@@ -204,156 +229,167 @@ function J(n) {
204
229
  { begin: "\\b0[0-7]+n?\\b" }
205
230
  ],
206
231
  relevance: 0
207
- }, r = {
232
+ };
233
+ const SUBST = {
208
234
  className: "subst",
209
235
  begin: "\\$\\{",
210
236
  end: "\\}",
211
- keywords: c,
237
+ keywords: KEYWORDS$1,
212
238
  contains: []
213
239
  // defined later
214
- }, s = {
240
+ };
241
+ const HTML_TEMPLATE = {
215
242
  begin: ".?html`",
216
243
  end: "",
217
244
  starts: {
218
245
  end: "`",
219
- returnEnd: !1,
246
+ returnEnd: false,
220
247
  contains: [
221
- n.BACKSLASH_ESCAPE,
222
- r
248
+ hljs.BACKSLASH_ESCAPE,
249
+ SUBST
223
250
  ],
224
251
  subLanguage: "xml"
225
252
  }
226
- }, S = {
253
+ };
254
+ const CSS_TEMPLATE = {
227
255
  begin: ".?css`",
228
256
  end: "",
229
257
  starts: {
230
258
  end: "`",
231
- returnEnd: !1,
259
+ returnEnd: false,
232
260
  contains: [
233
- n.BACKSLASH_ESCAPE,
234
- r
261
+ hljs.BACKSLASH_ESCAPE,
262
+ SUBST
235
263
  ],
236
264
  subLanguage: "css"
237
265
  }
238
- }, N = {
266
+ };
267
+ const GRAPHQL_TEMPLATE = {
239
268
  begin: ".?gql`",
240
269
  end: "",
241
270
  starts: {
242
271
  end: "`",
243
- returnEnd: !1,
272
+ returnEnd: false,
244
273
  contains: [
245
- n.BACKSLASH_ESCAPE,
246
- r
274
+ hljs.BACKSLASH_ESCAPE,
275
+ SUBST
247
276
  ],
248
277
  subLanguage: "graphql"
249
278
  }
250
- }, d = {
279
+ };
280
+ const TEMPLATE_STRING = {
251
281
  className: "string",
252
282
  begin: "`",
253
283
  end: "`",
254
284
  contains: [
255
- n.BACKSLASH_ESCAPE,
256
- r
285
+ hljs.BACKSLASH_ESCAPE,
286
+ SUBST
257
287
  ]
258
- }, y = {
259
- className: "comment",
260
- variants: [
261
- n.COMMENT(
262
- /\/\*\*(?!\/)/,
263
- "\\*/",
288
+ };
289
+ const JSDOC_COMMENT = hljs.COMMENT(
290
+ /\/\*\*(?!\/)/,
291
+ "\\*/",
292
+ {
293
+ relevance: 0,
294
+ contains: [
264
295
  {
296
+ begin: "(?=@[A-Za-z]+)",
265
297
  relevance: 0,
266
298
  contains: [
267
299
  {
268
- begin: "(?=@[A-Za-z]+)",
269
- relevance: 0,
270
- contains: [
271
- {
272
- className: "doctag",
273
- begin: "@[A-Za-z]+"
274
- },
275
- {
276
- className: "type",
277
- begin: "\\{",
278
- end: "\\}",
279
- excludeEnd: !0,
280
- excludeBegin: !0,
281
- relevance: 0
282
- },
283
- {
284
- className: "variable",
285
- begin: t + "(?=\\s*(-)|$)",
286
- endsParent: !0,
287
- relevance: 0
288
- },
289
- // eat spaces (not newlines) so we can find
290
- // types or variables
291
- {
292
- begin: /(?=[^\n])\s/,
293
- relevance: 0
294
- }
295
- ]
300
+ className: "doctag",
301
+ begin: "@[A-Za-z]+"
302
+ },
303
+ {
304
+ className: "type",
305
+ begin: "\\{",
306
+ end: "\\}",
307
+ excludeEnd: true,
308
+ excludeBegin: true,
309
+ relevance: 0
310
+ },
311
+ {
312
+ className: "variable",
313
+ begin: IDENT_RE$1 + "(?=\\s*(-)|$)",
314
+ endsParent: true,
315
+ relevance: 0
316
+ },
317
+ // eat spaces (not newlines) so we can find
318
+ // types or variables
319
+ {
320
+ begin: /(?=[^\n])\s/,
321
+ relevance: 0
296
322
  }
297
323
  ]
298
324
  }
299
- ),
300
- n.C_BLOCK_COMMENT_MODE,
301
- n.C_LINE_COMMENT_MODE
325
+ ]
326
+ }
327
+ );
328
+ const COMMENT = {
329
+ className: "comment",
330
+ variants: [
331
+ JSDOC_COMMENT,
332
+ hljs.C_BLOCK_COMMENT_MODE,
333
+ hljs.C_LINE_COMMENT_MODE
302
334
  ]
303
- }, O = [
304
- n.APOS_STRING_MODE,
305
- n.QUOTE_STRING_MODE,
306
- s,
307
- S,
308
- N,
309
- d,
335
+ };
336
+ const SUBST_INTERNALS = [
337
+ hljs.APOS_STRING_MODE,
338
+ hljs.QUOTE_STRING_MODE,
339
+ HTML_TEMPLATE,
340
+ CSS_TEMPLATE,
341
+ GRAPHQL_TEMPLATE,
342
+ TEMPLATE_STRING,
310
343
  // Skip numbers when they are part of a variable name
311
344
  { match: /\$\d+/ },
312
- _
345
+ NUMBER
313
346
  // This is intentional:
314
347
  // See https://github.com/highlightjs/highlight.js/issues/3288
315
348
  // hljs.REGEXP_MODE
316
349
  ];
317
- r.contains = O.concat({
350
+ SUBST.contains = SUBST_INTERNALS.concat({
318
351
  // we need to pair up {} inside our subst to prevent
319
352
  // it from ending too early by matching another }
320
353
  begin: /\{/,
321
354
  end: /\}/,
322
- keywords: c,
355
+ keywords: KEYWORDS$1,
323
356
  contains: [
324
357
  "self"
325
- ].concat(O)
358
+ ].concat(SUBST_INTERNALS)
326
359
  });
327
- const M = [].concat(y, r.contains), I = M.concat([
360
+ const SUBST_AND_COMMENTS = [].concat(COMMENT, SUBST.contains);
361
+ const PARAMS_CONTAINS = SUBST_AND_COMMENTS.concat([
328
362
  // eat recursive parens in sub expressions
329
363
  {
330
364
  begin: /(\s*)\(/,
331
365
  end: /\)/,
332
- keywords: c,
333
- contains: ["self"].concat(M)
366
+ keywords: KEYWORDS$1,
367
+ contains: ["self"].concat(SUBST_AND_COMMENTS)
334
368
  }
335
- ]), b = {
369
+ ]);
370
+ const PARAMS = {
336
371
  className: "params",
337
372
  // convert this to negative lookbehind in v12
338
373
  begin: /(\s*)\(/,
339
374
  // to match the parms with
340
375
  end: /\)/,
341
- excludeBegin: !0,
342
- excludeEnd: !0,
343
- keywords: c,
344
- contains: I
345
- }, $ = {
376
+ excludeBegin: true,
377
+ excludeEnd: true,
378
+ keywords: KEYWORDS$1,
379
+ contains: PARAMS_CONTAINS
380
+ };
381
+ const CLASS_OR_EXTENDS = {
346
382
  variants: [
347
383
  // class Car extends vehicle
348
384
  {
349
385
  match: [
350
386
  /class/,
351
387
  /\s+/,
352
- t,
388
+ IDENT_RE$1,
353
389
  /\s+/,
354
390
  /extends/,
355
391
  /\s+/,
356
- e.concat(t, "(", e.concat(/\./, t), ")*")
392
+ regex.concat(IDENT_RE$1, "(", regex.concat(/\./, IDENT_RE$1), ")*")
357
393
  ],
358
394
  scope: {
359
395
  1: "keyword",
@@ -367,7 +403,7 @@ function J(n) {
367
403
  match: [
368
404
  /class/,
369
405
  /\s+/,
370
- t
406
+ IDENT_RE$1
371
407
  ],
372
408
  scope: {
373
409
  1: "keyword",
@@ -375,9 +411,10 @@ function J(n) {
375
411
  }
376
412
  }
377
413
  ]
378
- }, v = {
414
+ };
415
+ const CLASS_REFERENCE = {
379
416
  relevance: 0,
380
- match: e.either(
417
+ match: regex.either(
381
418
  // Hard coded exceptions
382
419
  /\bJSON/,
383
420
  // Float32Array, OutT
@@ -395,22 +432,24 @@ function J(n) {
395
432
  keywords: {
396
433
  _: [
397
434
  // se we still get relevance credit for JS library classes
398
- ...k,
399
- ...B
435
+ ...TYPES,
436
+ ...ERROR_TYPES
400
437
  ]
401
438
  }
402
- }, F = {
439
+ };
440
+ const USE_STRICT = {
403
441
  label: "use_strict",
404
442
  className: "meta",
405
443
  relevance: 10,
406
444
  begin: /^\s*['"]use (strict|asm)['"]/
407
- }, G = {
445
+ };
446
+ const FUNCTION_DEFINITION = {
408
447
  variants: [
409
448
  {
410
449
  match: [
411
450
  /function/,
412
451
  /\s+/,
413
- t,
452
+ IDENT_RE$1,
414
453
  /(?=\s*\()/
415
454
  ]
416
455
  },
@@ -427,43 +466,46 @@ function J(n) {
427
466
  3: "title.function"
428
467
  },
429
468
  label: "func.def",
430
- contains: [b],
469
+ contains: [PARAMS],
431
470
  illegal: /%/
432
- }, Z = {
471
+ };
472
+ const UPPER_CASE_CONSTANT = {
433
473
  relevance: 0,
434
474
  match: /\b[A-Z][A-Z_0-9]+\b/,
435
475
  className: "variable.constant"
436
476
  };
437
- function z(a) {
438
- return e.concat("(?!", a.join("|"), ")");
477
+ function noneOf(list) {
478
+ return regex.concat("(?!", list.join("|"), ")");
439
479
  }
440
- const H = {
441
- match: e.concat(
480
+ const FUNCTION_CALL = {
481
+ match: regex.concat(
442
482
  /\b/,
443
- z([
444
- ...U,
483
+ noneOf([
484
+ ...BUILT_IN_GLOBALS,
445
485
  "super",
446
486
  "import"
447
- ].map((a) => `${a}\\s*\\(`)),
448
- t,
449
- e.lookahead(/\s*\(/)
487
+ ].map((x) => `${x}\\s*\\(`)),
488
+ IDENT_RE$1,
489
+ regex.lookahead(/\s*\(/)
450
490
  ),
451
491
  className: "title.function",
452
492
  relevance: 0
453
- }, K = {
454
- begin: e.concat(/\./, e.lookahead(
455
- e.concat(t, /(?![0-9A-Za-z$_(])/)
493
+ };
494
+ const PROPERTY_ACCESS = {
495
+ begin: regex.concat(/\./, regex.lookahead(
496
+ regex.concat(IDENT_RE$1, /(?![0-9A-Za-z$_(])/)
456
497
  )),
457
- end: t,
458
- excludeBegin: !0,
498
+ end: IDENT_RE$1,
499
+ excludeBegin: true,
459
500
  keywords: "prototype",
460
501
  className: "property",
461
502
  relevance: 0
462
- }, Y = {
503
+ };
504
+ const GETTER_OR_SETTER = {
463
505
  match: [
464
506
  /get|set/,
465
507
  /\s+/,
466
- t,
508
+ IDENT_RE$1,
467
509
  /(?=\()/
468
510
  ],
469
511
  className: {
@@ -475,18 +517,20 @@ function J(n) {
475
517
  // eat to avoid empty params
476
518
  begin: /\(\)/
477
519
  },
478
- b
520
+ PARAMS
479
521
  ]
480
- }, w = "(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|" + n.UNDERSCORE_IDENT_RE + ")\\s*=>", W = {
522
+ };
523
+ const FUNC_LEAD_IN_RE = "(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|" + hljs.UNDERSCORE_IDENT_RE + ")\\s*=>";
524
+ const FUNCTION_VARIABLE = {
481
525
  match: [
482
526
  /const|var|let/,
483
527
  /\s+/,
484
- t,
528
+ IDENT_RE$1,
485
529
  /\s*/,
486
530
  /=\s*/,
487
531
  /(async\s*)?/,
488
532
  // async is optional
489
- e.lookahead(w)
533
+ regex.lookahead(FUNC_LEAD_IN_RE)
490
534
  ],
491
535
  keywords: "async",
492
536
  className: {
@@ -494,76 +538,76 @@ function J(n) {
494
538
  3: "title.function"
495
539
  },
496
540
  contains: [
497
- b
541
+ PARAMS
498
542
  ]
499
543
  };
500
544
  return {
501
545
  name: "JavaScript",
502
546
  aliases: ["js", "jsx", "mjs", "cjs"],
503
- keywords: c,
547
+ keywords: KEYWORDS$1,
504
548
  // this will be extended by TypeScript
505
- exports: { PARAMS_CONTAINS: I, CLASS_REFERENCE: v },
549
+ exports: { PARAMS_CONTAINS, CLASS_REFERENCE },
506
550
  illegal: /#(?![$_A-z])/,
507
551
  contains: [
508
- n.SHEBANG({
552
+ hljs.SHEBANG({
509
553
  label: "shebang",
510
554
  binary: "node",
511
555
  relevance: 5
512
556
  }),
513
- F,
514
- n.APOS_STRING_MODE,
515
- n.QUOTE_STRING_MODE,
516
- s,
517
- S,
518
- N,
519
- d,
520
- y,
557
+ USE_STRICT,
558
+ hljs.APOS_STRING_MODE,
559
+ hljs.QUOTE_STRING_MODE,
560
+ HTML_TEMPLATE,
561
+ CSS_TEMPLATE,
562
+ GRAPHQL_TEMPLATE,
563
+ TEMPLATE_STRING,
564
+ COMMENT,
521
565
  // Skip numbers when they are part of a variable name
522
566
  { match: /\$\d+/ },
523
- _,
524
- v,
567
+ NUMBER,
568
+ CLASS_REFERENCE,
525
569
  {
526
570
  className: "attr",
527
- begin: t + e.lookahead(":"),
571
+ begin: IDENT_RE$1 + regex.lookahead(":"),
528
572
  relevance: 0
529
573
  },
530
- W,
574
+ FUNCTION_VARIABLE,
531
575
  {
532
576
  // "value" container
533
- begin: "(" + n.RE_STARTERS_RE + "|\\b(case|return|throw)\\b)\\s*",
577
+ begin: "(" + hljs.RE_STARTERS_RE + "|\\b(case|return|throw)\\b)\\s*",
534
578
  keywords: "return throw case",
535
579
  relevance: 0,
536
580
  contains: [
537
- y,
538
- n.REGEXP_MODE,
581
+ COMMENT,
582
+ hljs.REGEXP_MODE,
539
583
  {
540
584
  className: "function",
541
585
  // we have to count the parens to make sure we actually have the
542
586
  // correct bounding ( ) before the =>. There could be any number of
543
587
  // sub-expressions inside also surrounded by parens.
544
- begin: w,
545
- returnBegin: !0,
588
+ begin: FUNC_LEAD_IN_RE,
589
+ returnBegin: true,
546
590
  end: "\\s*=>",
547
591
  contains: [
548
592
  {
549
593
  className: "params",
550
594
  variants: [
551
595
  {
552
- begin: n.UNDERSCORE_IDENT_RE,
596
+ begin: hljs.UNDERSCORE_IDENT_RE,
553
597
  relevance: 0
554
598
  },
555
599
  {
556
600
  className: null,
557
601
  begin: /\(\s*\)/,
558
- skip: !0
602
+ skip: true
559
603
  },
560
604
  {
561
605
  begin: /(\s*)\(/,
562
606
  end: /\)/,
563
- excludeBegin: !0,
564
- excludeEnd: !0,
565
- keywords: c,
566
- contains: I
607
+ excludeBegin: true,
608
+ excludeEnd: true,
609
+ keywords: KEYWORDS$1,
610
+ contains: PARAMS_CONTAINS
567
611
  }
568
612
  ]
569
613
  }
@@ -581,29 +625,29 @@ function J(n) {
581
625
  {
582
626
  // JSX
583
627
  variants: [
584
- { begin: u.begin, end: u.end },
585
- { match: f },
628
+ { begin: FRAGMENT.begin, end: FRAGMENT.end },
629
+ { match: XML_SELF_CLOSING },
586
630
  {
587
- begin: o.begin,
631
+ begin: XML_TAG.begin,
588
632
  // we carefully check the opening tag to see if it truly
589
633
  // is a tag and not a false positive
590
- "on:begin": o.isTrulyOpeningTag,
591
- end: o.end
634
+ "on:begin": XML_TAG.isTrulyOpeningTag,
635
+ end: XML_TAG.end
592
636
  }
593
637
  ],
594
638
  subLanguage: "xml",
595
639
  contains: [
596
640
  {
597
- begin: o.begin,
598
- end: o.end,
599
- skip: !0,
641
+ begin: XML_TAG.begin,
642
+ end: XML_TAG.end,
643
+ skip: true,
600
644
  contains: ["self"]
601
645
  }
602
646
  ]
603
647
  }
604
648
  ]
605
649
  },
606
- G,
650
+ FUNCTION_DEFINITION,
607
651
  {
608
652
  // prevent this from getting swallowed up by function
609
653
  // since they appear "function like"
@@ -613,13 +657,13 @@ function J(n) {
613
657
  // we have to count the parens to make sure we actually have the correct
614
658
  // bounding ( ). There could be any number of sub-expressions inside
615
659
  // also surrounded by parens.
616
- begin: "\\b(?!function)" + n.UNDERSCORE_IDENT_RE + "\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",
660
+ begin: "\\b(?!function)" + hljs.UNDERSCORE_IDENT_RE + "\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",
617
661
  // end parens
618
- returnBegin: !0,
662
+ returnBegin: true,
619
663
  label: "func.def",
620
664
  contains: [
621
- b,
622
- n.inherit(n.TITLE_MODE, { begin: t, className: "title.function" })
665
+ PARAMS,
666
+ hljs.inherit(hljs.TITLE_MODE, { begin: IDENT_RE$1, className: "title.function" })
623
667
  ]
624
668
  },
625
669
  // catch ... so it won't trigger the property rule below
@@ -627,23 +671,23 @@ function J(n) {
627
671
  match: /\.\.\./,
628
672
  relevance: 0
629
673
  },
630
- K,
674
+ PROPERTY_ACCESS,
631
675
  // hack: prevents detection of keywords in some circumstances
632
676
  // .keyword()
633
677
  // $keyword = x
634
678
  {
635
- match: "\\$" + t,
679
+ match: "\\$" + IDENT_RE$1,
636
680
  relevance: 0
637
681
  },
638
682
  {
639
683
  match: [/\bconstructor(?=\s*\()/],
640
684
  className: { 1: "title.function" },
641
- contains: [b]
685
+ contains: [PARAMS]
642
686
  },
643
- H,
644
- Z,
645
- $,
646
- Y,
687
+ FUNCTION_CALL,
688
+ UPPER_CASE_CONSTANT,
689
+ CLASS_OR_EXTENDS,
690
+ GETTER_OR_SETTER,
647
691
  {
648
692
  match: /\$[(.]/
649
693
  // relevance booster for a pattern common to JS libs: `$(something)` and `$.something`
@@ -651,8 +695,10 @@ function J(n) {
651
695
  ]
652
696
  };
653
697
  }
654
- function X(n) {
655
- const e = J(n), R = m, t = [
698
+ function typescript(hljs) {
699
+ const tsLanguage = javascript(hljs);
700
+ const IDENT_RE$1 = IDENT_RE;
701
+ const TYPES2 = [
656
702
  "any",
657
703
  "void",
658
704
  "number",
@@ -663,30 +709,34 @@ function X(n) {
663
709
  "symbol",
664
710
  "bigint",
665
711
  "unknown"
666
- ], u = {
712
+ ];
713
+ const NAMESPACE = {
667
714
  begin: [
668
715
  /namespace/,
669
716
  /\s+/,
670
- n.IDENT_RE
717
+ hljs.IDENT_RE
671
718
  ],
672
719
  beginScope: {
673
720
  1: "keyword",
674
721
  3: "title.class"
675
722
  }
676
- }, f = {
723
+ };
724
+ const INTERFACE = {
677
725
  beginKeywords: "interface",
678
726
  end: /\{/,
679
- excludeEnd: !0,
727
+ excludeEnd: true,
680
728
  keywords: {
681
729
  keyword: "interface extends",
682
- built_in: t
730
+ built_in: TYPES2
683
731
  },
684
- contains: [e.exports.CLASS_REFERENCE]
685
- }, o = {
732
+ contains: [tsLanguage.exports.CLASS_REFERENCE]
733
+ };
734
+ const USE_STRICT = {
686
735
  className: "meta",
687
736
  relevance: 10,
688
737
  begin: /^\s*['"]use strict['"]/
689
- }, c = [
738
+ };
739
+ const TS_SPECIFIC_KEYWORDS = [
690
740
  "type",
691
741
  // "namespace",
692
742
  "interface",
@@ -700,35 +750,44 @@ function X(n) {
700
750
  "enum",
701
751
  "override",
702
752
  "satisfies"
703
- ], A = {
704
- $pattern: m,
705
- keyword: x.concat(c),
706
- literal: D,
707
- built_in: P.concat(t),
708
- "variable.language": h
709
- }, i = {
753
+ ];
754
+ const KEYWORDS$1 = {
755
+ $pattern: IDENT_RE,
756
+ keyword: KEYWORDS.concat(TS_SPECIFIC_KEYWORDS),
757
+ literal: LITERALS,
758
+ built_in: BUILT_INS.concat(TYPES2),
759
+ "variable.language": BUILT_IN_VARIABLES
760
+ };
761
+ const DECORATOR = {
710
762
  className: "meta",
711
- begin: "@" + R
712
- }, E = (s, S, N) => {
713
- const d = s.contains.findIndex((C) => C.label === S);
714
- if (d === -1)
763
+ begin: "@" + IDENT_RE$1
764
+ };
765
+ const swapMode = (mode, label, replacement) => {
766
+ const indx = mode.contains.findIndex((m) => m.label === label);
767
+ if (indx === -1) {
715
768
  throw new Error("can not find mode to replace");
716
- s.contains.splice(d, 1, N);
769
+ }
770
+ mode.contains.splice(indx, 1, replacement);
717
771
  };
718
- Object.assign(e.keywords, A), e.exports.PARAMS_CONTAINS.push(i);
719
- const _ = e.contains.find((s) => s.className === "attr");
720
- e.exports.PARAMS_CONTAINS.push([
721
- e.exports.CLASS_REFERENCE,
772
+ Object.assign(tsLanguage.keywords, KEYWORDS$1);
773
+ tsLanguage.exports.PARAMS_CONTAINS.push(DECORATOR);
774
+ const ATTRIBUTE_HIGHLIGHT = tsLanguage.contains.find((c) => c.className === "attr");
775
+ tsLanguage.exports.PARAMS_CONTAINS.push([
776
+ tsLanguage.exports.CLASS_REFERENCE,
722
777
  // class reference for highlighting the params types
723
- _
778
+ ATTRIBUTE_HIGHLIGHT
724
779
  // highlight the params key
725
- ]), e.contains = e.contains.concat([
726
- i,
727
- u,
728
- f
729
- ]), E(e, "shebang", n.SHEBANG()), E(e, "use_strict", o);
730
- const r = e.contains.find((s) => s.label === "func.def");
731
- return r.relevance = 0, Object.assign(e, {
780
+ ]);
781
+ tsLanguage.contains = tsLanguage.contains.concat([
782
+ DECORATOR,
783
+ NAMESPACE,
784
+ INTERFACE
785
+ ]);
786
+ swapMode(tsLanguage, "shebang", hljs.SHEBANG());
787
+ swapMode(tsLanguage, "use_strict", USE_STRICT);
788
+ const functionDeclaration = tsLanguage.contains.find((m) => m.label === "func.def");
789
+ functionDeclaration.relevance = 0;
790
+ Object.assign(tsLanguage, {
732
791
  name: "TypeScript",
733
792
  aliases: [
734
793
  "ts",
@@ -736,8 +795,9 @@ function X(n) {
736
795
  "mts",
737
796
  "cts"
738
797
  ]
739
- }), e;
798
+ });
799
+ return tsLanguage;
740
800
  }
741
801
  export {
742
- X as t
802
+ typescript as t
743
803
  };