@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.
- package/animation/index.es.js +54 -37
- package/assets/lottiejs/loading-page.es.js +14 -9
- package/assets/lottiejs/loading-plane.es.js +2 -2
- package/assets/lottiejs/loading-table.es.js +14 -9
- package/assets/lottiejs/no-data.es.js +14 -9
- package/backgroundimagecropper/index.es.js +61 -37
- package/badge/index.es.js +77 -67
- package/badgegroup/index.es.js +62 -50
- package/basecalendar/index.es.js +1258 -735
- package/basetree/index.es.js +213 -113
- package/breadcrumb/index.es.js +46 -38
- package/button/index.es.js +60 -54
- package/buttonbulkaction/index.es.js +168 -117
- package/buttoncopy/index.es.js +25 -22
- package/buttondownload/index.es.js +125 -76
- package/buttonfilter/index.es.js +21 -15
- package/buttonradio/index.es.js +91 -67
- package/buttonsearch/index.es.js +62 -46
- package/buttonselecttree/index.es.js +233 -172
- package/buttontoggle/index.es.js +8 -6
- package/calendar/index.es.js +113 -58
- package/card/index.es.js +44 -42
- package/checkbox/index.es.js +105 -74
- package/codesnippet/index.es.js +91 -71
- package/codesnippetadapter/index.es.js +25 -21
- package/columnlist/index.es.js +249 -171
- package/components.d.ts +0 -21
- package/config/defaultProps.es.js +9 -9
- package/config/index.es.js +11 -10
- package/config/locale.es.js +2 -2
- package/customcolumn/index.es.js +95 -78
- package/datatable/index.es.js +1071 -732
- package/dialog/index.es.js +54 -54
- package/dialogconfirm/index.es.js +90 -75
- package/dialogform/index.es.js +170 -133
- package/dialogselecttree/index.es.js +242 -194
- package/directives/focus.es.js +13 -8
- package/dropdown/index.es.js +250 -196
- package/editor/index.es.js +694 -498
- package/editorbutton/index.es.js +21 -19
- package/event-bus/index.es.js +3 -3
- package/event-bus/mitt.es.js +37 -20
- package/fieldwrapper/index.es.js +30 -25
- package/fileupload/index.es.js +230 -140
- package/filtercontainer/index.es.js +299 -222
- package/form/index.es.js +176 -126
- package/gallerypreview/index.es.js +138 -101
- package/icon/index.es.js +38 -36
- package/image/index.es.js +161 -108
- package/imagecompressor/index.es.js +616 -449
- package/imageinputinfo/index.es.js +26 -22
- package/inlinemessage/index.es.js +77 -65
- package/inputbadge/index.es.js +230 -156
- package/inputcurrency/index.es.js +146 -109
- package/inputemail/index.es.js +18 -16
- package/inputgroup/index.es.js +19 -16
- package/inputnumber/index.es.js +252 -182
- package/inputpassword/index.es.js +120 -94
- package/inputphonenumber/index.es.js +1017 -550
- package/inputrangenumber/index.es.js +129 -98
- package/inputtext/index.es.js +264 -189
- package/inputurl/index.es.js +31 -29
- package/invisiblefield/index.es.js +24 -16
- package/litedropdown/index.es.js +87 -81
- package/loading/index.es.js +21 -19
- package/loading-page-BXZ4fLOS.js +8 -0
- package/loading-page-BuLpsb_1.js +8 -0
- package/loading-page-CNqVBg__.js +4 -0
- package/loading-page-DbhhZih2.js +4 -0
- package/loading-page-DjfWXoOy.js +8 -0
- package/loading-page-S-KRY5zm.js +4 -0
- package/loading-plane-C1mi7Whv.js +4 -0
- package/loading-plane-CWq1hz_l.js +8 -0
- package/loading-table-B7LAXzAp.js +4 -0
- package/loading-table-BLmgKUsR.js +4 -0
- package/loading-table-CG7-cuhv.js +8 -0
- package/loading-table-CUPS49ta.js +4 -0
- package/loading-table-CuWWrTbv.js +8 -0
- package/loading-table-DbBzVwaZ.js +8 -0
- package/mentionlist/index.es.js +77 -44
- package/mentionsection/index.es.js +53 -43
- package/menu/index.es.js +65 -51
- package/menuitem/index.es.js +39 -37
- package/multirow/index.es.js +29 -28
- package/multiselect/index.es.js +184 -152
- package/no-data-B781skt3.js +4 -0
- package/no-data-CAksOnDl.js +4 -0
- package/no-data-DCsjBXQR.js +4 -0
- package/no-data-Dz0QOe7Q.js +8 -0
- package/no-data-_Huxiv9q.js +8 -0
- package/no-data-ybRQontJ.js +8 -0
- package/overlaypanel/index.es.js +49 -36
- package/package.json +1 -1
- package/paginator/index.es.js +36 -33
- package/plugins/WangsVue.es.js +63 -45
- package/plugins/formValidation.es.js +15 -11
- package/progressbar/index.es.js +39 -32
- package/quickfilter/index.es.js +94 -81
- package/stats.html +1 -1
- package/style.css +2 -2
- package/tabmenu/index.es.js +18 -16
- package/textarea/index.es.js +94 -72
- package/timeline/index.es.js +124 -102
- package/timelinecontentbytype/index.es.js +114 -92
- package/toast/index.es.js +67 -54
- package/toggleswitch/index.es.js +83 -66
- package/tree/index.es.js +306 -198
- package/treenode/index.es.js +464 -339
- package/treesearchinput/index.es.js +32 -26
- package/usergroup/index.es.js +83 -67
- package/username/index.es.js +99 -85
- package/utils/addAttachment.util.es.js +47 -21
- package/utils/baseToast.util.es.js +41 -33
- package/utils/convertJsonImage.util.es.js +24 -24
- package/utils/date.util.es.js +131 -106
- package/utils/exportToExcel.util.es.js +81 -47
- package/utils/filterOptions.util.es.js +8 -2
- package/utils/genPlaceholder.util.es.js +30 -16
- package/utils/getProjectPermission.util.es.js +15 -12
- package/utils/getSalesRole.util.es.js +4 -4
- package/utils/getUser.util.es.js +2 -2
- package/utils/getUserType.util.es.js +13 -8
- package/utils/isIntersect.es.js +4 -2
- package/utils/mergePropsWithDefaults.util.es.js +7 -6
- package/utils/object.util.es.js +88 -54
- package/utils/queryParamsStringfy.util.es.js +19 -11
- package/utils/role.util.es.js +5 -4
- package/utils/statusSeverity.util.es.js +20 -5
- package/utils/textFormatter.util.es.js +28 -50
- package/utils/toast.util.es.js +8 -5
- package/utils/xlsx.util.es.js +12 -6
- package/validatormessage/index.es.js +9 -9
- package/vendor/@popperjs/core/lib/createPopper.es.js +110 -83
- package/vendor/@popperjs/core/lib/dom-utils/contains.es.js +14 -13
- package/vendor/@popperjs/core/lib/dom-utils/getBoundingClientRect.es.js +33 -18
- package/vendor/@popperjs/core/lib/dom-utils/getClippingRect.es.js +55 -31
- package/vendor/@popperjs/core/lib/dom-utils/getCompositeRect.es.js +43 -22
- package/vendor/@popperjs/core/lib/dom-utils/getComputedStyle.es.js +4 -4
- package/vendor/@popperjs/core/lib/dom-utils/getDocumentElement.es.js +5 -5
- package/vendor/@popperjs/core/lib/dom-utils/getDocumentRect.es.js +23 -13
- package/vendor/@popperjs/core/lib/dom-utils/getHTMLElementScroll.es.js +4 -4
- package/vendor/@popperjs/core/lib/dom-utils/getLayoutRect.es.js +17 -9
- package/vendor/@popperjs/core/lib/dom-utils/getNodeName.es.js +3 -3
- package/vendor/@popperjs/core/lib/dom-utils/getNodeScroll.es.js +11 -7
- package/vendor/@popperjs/core/lib/dom-utils/getOffsetParent.es.js +42 -26
- package/vendor/@popperjs/core/lib/dom-utils/getParentNode.es.js +13 -10
- package/vendor/@popperjs/core/lib/dom-utils/getScrollParent.es.js +13 -7
- package/vendor/@popperjs/core/lib/dom-utils/getViewportRect.es.js +25 -15
- package/vendor/@popperjs/core/lib/dom-utils/getWindow.es.js +8 -7
- package/vendor/@popperjs/core/lib/dom-utils/getWindowScroll.es.js +8 -6
- package/vendor/@popperjs/core/lib/dom-utils/getWindowScrollBarX.es.js +6 -6
- package/vendor/@popperjs/core/lib/dom-utils/instanceOf.es.js +16 -15
- package/vendor/@popperjs/core/lib/dom-utils/isLayoutViewport.es.js +4 -4
- package/vendor/@popperjs/core/lib/dom-utils/isScrollParent.es.js +5 -5
- package/vendor/@popperjs/core/lib/dom-utils/isTableElement.es.js +4 -4
- package/vendor/@popperjs/core/lib/dom-utils/listScrollParents.es.js +17 -11
- package/vendor/@popperjs/core/lib/enums.es.js +43 -20
- package/vendor/@popperjs/core/lib/modifiers/applyStyles.es.js +49 -25
- package/vendor/@popperjs/core/lib/modifiers/arrow.es.js +61 -26
- package/vendor/@popperjs/core/lib/modifiers/computeStyles.es.js +101 -69
- package/vendor/@popperjs/core/lib/modifiers/eventListeners.es.js +30 -16
- package/vendor/@popperjs/core/lib/modifiers/flip.es.js +99 -60
- package/vendor/@popperjs/core/lib/modifiers/hide.es.js +44 -31
- package/vendor/@popperjs/core/lib/modifiers/offset.es.js +32 -20
- package/vendor/@popperjs/core/lib/modifiers/popperOffsets.es.js +11 -11
- package/vendor/@popperjs/core/lib/modifiers/preventOverflow.es.js +91 -40
- package/vendor/@popperjs/core/lib/popper.es.js +14 -13
- package/vendor/@popperjs/core/lib/utils/computeAutoPlacement.es.js +29 -21
- package/vendor/@popperjs/core/lib/utils/computeOffsets.es.js +41 -36
- package/vendor/@popperjs/core/lib/utils/debounce.es.js +11 -7
- package/vendor/@popperjs/core/lib/utils/detectOverflow.es.js +42 -28
- package/vendor/@popperjs/core/lib/utils/expandToHashMap.es.js +5 -4
- package/vendor/@popperjs/core/lib/utils/getAltAxis.es.js +3 -3
- package/vendor/@popperjs/core/lib/utils/getBasePlacement.es.js +3 -3
- package/vendor/@popperjs/core/lib/utils/getFreshSideObject.es.js +2 -2
- package/vendor/@popperjs/core/lib/utils/getMainAxisFromPlacement.es.js +3 -3
- package/vendor/@popperjs/core/lib/utils/getOppositePlacement.es.js +5 -5
- package/vendor/@popperjs/core/lib/utils/getOppositeVariationPlacement.es.js +5 -5
- package/vendor/@popperjs/core/lib/utils/getVariation.es.js +3 -3
- package/vendor/@popperjs/core/lib/utils/math.es.js +6 -4
- package/vendor/@popperjs/core/lib/utils/mergeByName.es.js +11 -10
- package/vendor/@popperjs/core/lib/utils/mergePaddingObject.es.js +4 -4
- package/vendor/@popperjs/core/lib/utils/orderModifiers.es.js +30 -22
- package/vendor/@popperjs/core/lib/utils/rectToClientRect.es.js +7 -7
- package/vendor/@popperjs/core/lib/utils/userAgent.es.js +9 -6
- package/vendor/@popperjs/core/lib/utils/within.es.js +8 -8
- package/vendor/@tiptap/core/dist/index.es.js +3494 -2000
- package/vendor/@tiptap/extension-bold/dist/index.es.js +29 -19
- package/vendor/@tiptap/extension-bubble-menu/dist/index.es.js +145 -71
- package/vendor/@tiptap/extension-bullet-list/dist/index.es.js +32 -19
- package/vendor/@tiptap/extension-code/dist/index.es.js +22 -14
- package/vendor/@tiptap/extension-document/dist/index.es.js +4 -4
- package/vendor/@tiptap/extension-floating-menu/dist/index.es.js +106 -51
- package/vendor/@tiptap/extension-heading/dist/index.es.js +38 -22
- package/vendor/@tiptap/extension-history/dist/index.es.js +11 -7
- package/vendor/@tiptap/extension-image/dist/index.es.js +20 -17
- package/vendor/@tiptap/extension-italic/dist/index.es.js +28 -18
- package/vendor/@tiptap/extension-link/dist/index.es.js +236 -147
- package/vendor/@tiptap/extension-list-item/dist/index.es.js +6 -6
- package/vendor/@tiptap/extension-mention/dist/index.es.js +98 -63
- package/vendor/@tiptap/extension-ordered-list/dist/index.es.js +38 -25
- package/vendor/@tiptap/extension-paragraph/dist/index.es.js +8 -6
- package/vendor/@tiptap/extension-placeholder/dist/index.es.js +34 -27
- package/vendor/@tiptap/extension-text/dist/index.es.js +3 -3
- package/vendor/@tiptap/extension-underline/dist/index.es.js +16 -10
- package/vendor/@tiptap/suggestion/dist/index.es.js +174 -90
- package/vendor/@tiptap/vue-3/dist/index.es.js +287 -188
- package/vendor/@wangs-ui/core/components/p-BU8h34na.es.js +17 -14
- package/vendor/@wangs-ui/core/components/p-C5lMEBcj.es.js +69 -55
- package/vendor/@wangs-ui/core/components/p-CKYwZoTo.es.js +26 -22
- package/vendor/@wangs-ui/core/components/p-CsoK-EWG.es.js +147 -102
- package/vendor/@wangs-ui/core/components/p-DPHEi31J.es.js +102 -77
- package/vendor/@wangs-ui/core/components/p-DTTCzifR.es.js +1298 -551
- package/vendor/@wangs-ui/core/components/p-Duri5p90.es.js +60 -49
- package/vendor/@wangs-ui/core/components/wangs-button.es.js +19 -15
- package/vendor/@wangs-ui/core/components/wangs-icon.es.js +3 -3
- package/vendor/@wangs-ui/core/components/wangs-input-otp.es.js +3 -3
- package/vendor/@wangs-ui/core/components/wangs-tab-menu.es.js +3 -3
- package/vendor/@wangs-ui/core/dist/esm/index-DCkh3cGv.es.js +116 -102
- package/vendor/@wangs-ui/vue/dist/index.es.js +77 -77
- package/vendor/base64toblob/base64toblob.es.js +31 -15
- package/vendor/highlight.js/es/core.es.js +5 -5
- package/vendor/highlight.js/es/languages/javascript.es.js +237 -193
- package/vendor/highlight.js/es/languages/json.es.js +18 -15
- package/vendor/highlight.js/es/languages/typescript.es.js +288 -228
- package/vendor/highlight.js/es/languages/vbscript-html.es.js +2 -2
- package/vendor/highlight.js/lib/core.es.js +1144 -666
- package/vendor/linkifyjs/dist/linkify.es.es.js +858 -405
- package/vendor/lodash/_Symbol.es.js +11 -8
- package/vendor/lodash/_baseGetTag.es.js +19 -12
- package/vendor/lodash/_baseTrim.es.js +13 -10
- package/vendor/lodash/_freeGlobal.es.js +10 -8
- package/vendor/lodash/_getRawTag.es.js +28 -15
- package/vendor/lodash/_objectToString.es.js +12 -9
- package/vendor/lodash/_root.es.js +12 -8
- package/vendor/lodash/_trimmedEndIndex.es.js +14 -11
- package/vendor/lodash/debounce.es.js +92 -54
- package/vendor/lodash/isObject.es.js +11 -9
- package/vendor/lodash/isObjectLike.es.js +10 -8
- package/vendor/lodash/isSymbol.es.js +14 -11
- package/vendor/lodash/now.es.js +12 -9
- package/vendor/lodash/throttle.es.js +25 -17
- package/vendor/lodash/toNumber.es.js +33 -23
- package/vendor/lodash-es/_DataView.es.js +4 -4
- package/vendor/lodash-es/_Hash.es.js +17 -16
- package/vendor/lodash-es/_ListCache.es.js +17 -16
- package/vendor/lodash-es/_Map.es.js +4 -4
- package/vendor/lodash-es/_MapCache.es.js +17 -16
- package/vendor/lodash-es/_Promise.es.js +4 -4
- package/vendor/lodash-es/_Set.es.js +4 -4
- package/vendor/lodash-es/_SetCache.es.js +12 -10
- package/vendor/lodash-es/_Stack.es.js +15 -15
- package/vendor/lodash-es/_Symbol.es.js +3 -3
- package/vendor/lodash-es/_Uint8Array.es.js +3 -3
- package/vendor/lodash-es/_WeakMap.es.js +4 -4
- package/vendor/lodash-es/_arrayEach.es.js +9 -5
- package/vendor/lodash-es/_arrayFilter.es.js +9 -6
- package/vendor/lodash-es/_arrayLikeKeys.es.js +21 -17
- package/vendor/lodash-es/_arrayPush.es.js +7 -5
- package/vendor/lodash-es/_arraySome.es.js +9 -6
- package/vendor/lodash-es/_assignValue.es.js +10 -7
- package/vendor/lodash-es/_assocIndexOf.es.js +9 -6
- package/vendor/lodash-es/_baseAssignValue.es.js +13 -9
- package/vendor/lodash-es/_baseClone.es.js +67 -49
- package/vendor/lodash-es/_baseCreate.es.js +15 -11
- package/vendor/lodash-es/_baseGetAllKeys.es.js +6 -6
- package/vendor/lodash-es/_baseGetTag.es.js +11 -7
- package/vendor/lodash-es/_baseIsArguments.es.js +6 -6
- package/vendor/lodash-es/_baseIsEqual.es.js +11 -5
- package/vendor/lodash-es/_baseIsEqualDeep.es.js +39 -26
- package/vendor/lodash-es/_baseIsMap.es.js +6 -6
- package/vendor/lodash-es/_baseIsNative.es.js +18 -12
- package/vendor/lodash-es/_baseIsSet.es.js +6 -6
- package/vendor/lodash-es/_baseIsTypedArray.es.js +11 -9
- package/vendor/lodash-es/_baseKeys.es.js +16 -11
- package/vendor/lodash-es/_baseTimes.es.js +7 -5
- package/vendor/lodash-es/_baseTrim.es.js +5 -5
- package/vendor/lodash-es/_baseUnary.es.js +4 -4
- package/vendor/lodash-es/_cacheHas.es.js +3 -3
- package/vendor/lodash-es/_cloneArrayBuffer.es.js +6 -5
- package/vendor/lodash-es/_cloneBuffer.es.js +11 -6
- package/vendor/lodash-es/_cloneDataView.es.js +5 -5
- package/vendor/lodash-es/_cloneRegExp.es.js +6 -5
- package/vendor/lodash-es/_cloneSymbol.es.js +5 -5
- package/vendor/lodash-es/_cloneTypedArray.es.js +5 -5
- package/vendor/lodash-es/_coreJsData.es.js +3 -3
- package/vendor/lodash-es/_defineProperty.es.js +7 -6
- package/vendor/lodash-es/_equalArrays.es.js +38 -28
- package/vendor/lodash-es/_equalByTag.es.js +55 -41
- package/vendor/lodash-es/_equalObjects.es.js +42 -28
- package/vendor/lodash-es/_freeGlobal.es.js +2 -2
- package/vendor/lodash-es/_getAllKeys.es.js +6 -6
- package/vendor/lodash-es/_getMapData.es.js +5 -5
- package/vendor/lodash-es/_getNative.es.js +6 -6
- package/vendor/lodash-es/_getPrototype.es.js +3 -3
- package/vendor/lodash-es/_getRawTag.es.js +20 -10
- package/vendor/lodash-es/_getSymbols.es.js +15 -8
- package/vendor/lodash-es/_getTag.es.js +31 -25
- package/vendor/lodash-es/_getValue.es.js +3 -3
- package/vendor/lodash-es/_hashClear.es.js +5 -4
- package/vendor/lodash-es/_hashDelete.es.js +5 -4
- package/vendor/lodash-es/_hashGet.es.js +11 -9
- package/vendor/lodash-es/_hashHas.es.js +7 -6
- package/vendor/lodash-es/_hashSet.es.js +8 -6
- package/vendor/lodash-es/_initCloneArray.es.js +10 -5
- package/vendor/lodash-es/_initCloneByTag.es.js +39 -38
- package/vendor/lodash-es/_initCloneObject.es.js +6 -6
- package/vendor/lodash-es/_isIndex.es.js +7 -5
- package/vendor/lodash-es/_isKeyable.es.js +4 -4
- package/vendor/lodash-es/_isMasked.es.js +7 -7
- package/vendor/lodash-es/_isPrototype.es.js +5 -5
- package/vendor/lodash-es/_listCacheClear.es.js +4 -3
- package/vendor/lodash-es/_listCacheDelete.es.js +17 -9
- package/vendor/lodash-es/_listCacheGet.es.js +5 -5
- package/vendor/lodash-es/_listCacheHas.es.js +4 -4
- package/vendor/lodash-es/_listCacheSet.es.js +11 -5
- package/vendor/lodash-es/_mapCacheClear.es.js +10 -9
- package/vendor/lodash-es/_mapCacheDelete.es.js +6 -5
- package/vendor/lodash-es/_mapCacheGet.es.js +4 -4
- package/vendor/lodash-es/_mapCacheHas.es.js +4 -4
- package/vendor/lodash-es/_mapCacheSet.es.js +7 -5
- package/vendor/lodash-es/_mapToArray.es.js +7 -6
- package/vendor/lodash-es/_nativeCreate.es.js +3 -3
- package/vendor/lodash-es/_nativeKeys.es.js +3 -3
- package/vendor/lodash-es/_nodeUtil.es.js +13 -6
- package/vendor/lodash-es/_objectToString.es.js +5 -4
- package/vendor/lodash-es/_overArg.es.js +4 -4
- package/vendor/lodash-es/_root.es.js +4 -3
- package/vendor/lodash-es/_setCacheAdd.es.js +5 -4
- package/vendor/lodash-es/_setCacheHas.es.js +3 -3
- package/vendor/lodash-es/_setToArray.es.js +7 -6
- package/vendor/lodash-es/_stackClear.es.js +5 -4
- package/vendor/lodash-es/_stackDelete.es.js +5 -4
- package/vendor/lodash-es/_stackGet.es.js +3 -3
- package/vendor/lodash-es/_stackHas.es.js +3 -3
- package/vendor/lodash-es/_stackSet.es.js +18 -13
- package/vendor/lodash-es/_toSource.es.js +9 -8
- package/vendor/lodash-es/_trimmedEndIndex.es.js +7 -6
- package/vendor/lodash-es/cloneDeep.es.js +5 -5
- package/vendor/lodash-es/debounce.es.js +84 -49
- package/vendor/lodash-es/eq.es.js +3 -3
- package/vendor/lodash-es/isArguments.es.js +9 -6
- package/vendor/lodash-es/isArray.es.js +2 -2
- package/vendor/lodash-es/isArrayLike.es.js +5 -5
- package/vendor/lodash-es/isBuffer.es.js +9 -4
- package/vendor/lodash-es/isEqual.es.js +4 -4
- package/vendor/lodash-es/isFunction.es.js +10 -9
- package/vendor/lodash-es/isLength.es.js +4 -4
- package/vendor/lodash-es/isMap.es.js +6 -5
- package/vendor/lodash-es/isObject.es.js +4 -4
- package/vendor/lodash-es/isObjectLike.es.js +3 -3
- package/vendor/lodash-es/isSet.es.js +6 -5
- package/vendor/lodash-es/isSymbol.es.js +6 -6
- package/vendor/lodash-es/isTypedArray.es.js +6 -5
- package/vendor/lodash-es/keys.es.js +6 -6
- package/vendor/lodash-es/now.es.js +4 -4
- package/vendor/lodash-es/stubArray.es.js +2 -2
- package/vendor/lodash-es/stubFalse.es.js +3 -3
- package/vendor/lodash-es/toNumber.es.js +25 -18
- package/vendor/lodash-es/toString.es.js +2 -2
- package/vendor/lodash-es/uniqueId.es.js +6 -6
- package/vendor/orderedmap/dist/index.es.js +65 -49
- package/vendor/primevue/api/api.esm.es.js +214 -121
- package/vendor/primevue/avatar/avatar.esm.es.js +44 -41
- package/vendor/primevue/avatar/style/avatarstyle.esm.es.js +12 -11
- package/vendor/primevue/avatargroup/avatargroup.esm.es.js +17 -16
- package/vendor/primevue/avatargroup/style/avatargroupstyle.esm.es.js +6 -5
- package/vendor/primevue/badge/badge.esm.es.js +21 -20
- package/vendor/primevue/badge/style/badgestyle.esm.es.js +19 -18
- package/vendor/primevue/base/style/basestyle.esm.es.js +88 -99
- package/vendor/primevue/basecomponent/basecomponent.esm.es.js +327 -261
- package/vendor/primevue/basedirective/basedirective.esm.es.js +257 -186
- package/vendor/primevue/baseicon/baseicon.esm.es.js +55 -49
- package/vendor/primevue/baseicon/style/baseiconstyle.esm.es.js +5 -35
- package/vendor/primevue/button/button.esm.es.js +76 -72
- package/vendor/primevue/button/style/buttonstyle.esm.es.js +46 -39
- package/vendor/primevue/card/card.esm.es.js +30 -29
- package/vendor/primevue/card/style/cardstyle.esm.es.js +6 -5
- package/vendor/primevue/checkbox/checkbox.esm.es.js +109 -101
- package/vendor/primevue/checkbox/style/checkboxstyle.esm.es.js +12 -11
- package/vendor/primevue/config/config.esm.es.js +76 -58
- package/vendor/primevue/dialog/dialog.esm.es.js +421 -281
- package/vendor/primevue/dialog/style/dialogstyle.esm.es.js +26 -22
- package/vendor/primevue/dropdown/dropdown.esm.es.js +956 -742
- package/vendor/primevue/dropdown/style/dropdownstyle.esm.es.js +33 -31
- package/vendor/primevue/fileupload/fileupload.esm.es.js +559 -450
- package/vendor/primevue/fileupload/style/fileuploadstyle.esm.es.js +14 -13
- package/vendor/primevue/focustrap/focustrap.esm.es.js +128 -90
- package/vendor/primevue/focustrap/style/focustrapstyle.esm.es.js +2 -2
- package/vendor/primevue/icons/angledoubleleft/index.esm.es.js +13 -11
- package/vendor/primevue/icons/angledoubleright/index.esm.es.js +13 -11
- package/vendor/primevue/icons/angledown/index.esm.es.js +13 -11
- package/vendor/primevue/icons/angleleft/index.esm.es.js +13 -11
- package/vendor/primevue/icons/angleright/index.esm.es.js +13 -11
- package/vendor/primevue/icons/angleup/index.esm.es.js +13 -11
- package/vendor/primevue/icons/blank/index.esm.es.js +13 -11
- package/vendor/primevue/icons/check/index.esm.es.js +13 -11
- package/vendor/primevue/icons/chevrondown/index.esm.es.js +13 -11
- package/vendor/primevue/icons/exclamationtriangle/index.esm.es.js +17 -13
- package/vendor/primevue/icons/eye/index.esm.es.js +13 -11
- package/vendor/primevue/icons/eyeslash/index.esm.es.js +13 -11
- package/vendor/primevue/icons/infocircle/index.esm.es.js +13 -11
- package/vendor/primevue/icons/plus/index.esm.es.js +13 -11
- package/vendor/primevue/icons/refresh/index.esm.es.js +13 -11
- package/vendor/primevue/icons/search/index.esm.es.js +13 -11
- package/vendor/primevue/icons/searchminus/index.esm.es.js +13 -11
- package/vendor/primevue/icons/searchplus/index.esm.es.js +13 -11
- package/vendor/primevue/icons/spinner/index.esm.es.js +13 -11
- package/vendor/primevue/icons/times/index.esm.es.js +13 -11
- package/vendor/primevue/icons/timescircle/index.esm.es.js +13 -11
- package/vendor/primevue/icons/undo/index.esm.es.js +13 -11
- package/vendor/primevue/icons/upload/index.esm.es.js +13 -11
- package/vendor/primevue/icons/windowmaximize/index.esm.es.js +13 -11
- package/vendor/primevue/icons/windowminimize/index.esm.es.js +13 -11
- package/vendor/primevue/image/image.esm.es.js +280 -235
- package/vendor/primevue/image/style/imagestyle.esm.es.js +18 -17
- package/vendor/primevue/inputgroup/inputgroup.esm.es.js +17 -16
- package/vendor/primevue/inputgroup/style/inputgroupstyle.esm.es.js +6 -5
- package/vendor/primevue/inputgroupaddon/inputgroupaddon.esm.es.js +17 -16
- package/vendor/primevue/inputgroupaddon/style/inputgroupaddonstyle.esm.es.js +6 -5
- package/vendor/primevue/inputnumber/inputnumber.esm.es.js +834 -566
- package/vendor/primevue/inputnumber/style/inputnumberstyle.esm.es.js +23 -22
- package/vendor/primevue/inputtext/inputtext.esm.es.js +32 -30
- package/vendor/primevue/inputtext/style/inputtextstyle.esm.es.js +13 -12
- package/vendor/primevue/menu/menu.esm.es.js +402 -304
- package/vendor/primevue/menu/style/menustyle.esm.es.js +14 -13
- package/vendor/primevue/message/message.esm.es.js +126 -112
- package/vendor/primevue/message/style/messagestyle.esm.es.js +9 -8
- package/vendor/primevue/multiselect/multiselect.esm.es.js +1083 -835
- package/vendor/primevue/multiselect/style/multiselectstyle.esm.es.js +38 -36
- package/vendor/primevue/overlayeventbus/overlayeventbus.esm.es.js +3 -3
- package/vendor/primevue/overlaypanel/overlaypanel.esm.es.js +275 -169
- package/vendor/primevue/overlaypanel/style/overlaypanelstyle.esm.es.js +9 -8
- package/vendor/primevue/paginator/paginator.esm.es.js +513 -469
- package/vendor/primevue/paginator/style/paginatorstyle.esm.es.js +50 -43
- package/vendor/primevue/password/password.esm.es.js +306 -233
- package/vendor/primevue/password/style/passwordstyle.esm.es.js +26 -24
- package/vendor/primevue/portal/portal.esm.es.js +17 -17
- package/vendor/primevue/progressbar/progressbar.esm.es.js +37 -35
- package/vendor/primevue/progressbar/style/progressbarstyle.esm.es.js +10 -9
- package/vendor/primevue/ripple/ripple.esm.es.js +90 -62
- package/vendor/primevue/ripple/style/ripplestyle.esm.es.js +6 -5
- package/vendor/primevue/selectbutton/selectbutton.esm.es.js +213 -167
- package/vendor/primevue/selectbutton/style/selectbuttonstyle.esm.es.js +14 -13
- package/vendor/primevue/skeleton/skeleton.esm.es.js +28 -26
- package/vendor/primevue/skeleton/style/skeletonstyle.esm.es.js +13 -11
- package/vendor/primevue/textarea/style/textareastyle.esm.es.js +12 -11
- package/vendor/primevue/textarea/textarea.esm.es.js +49 -33
- package/vendor/primevue/timeline/style/timelinestyle.esm.es.js +9 -8
- package/vendor/primevue/timeline/timeline.esm.es.js +53 -52
- package/vendor/primevue/toast/style/toaststyle.esm.es.js +54 -46
- package/vendor/primevue/toast/toast.esm.es.js +309 -260
- package/vendor/primevue/toasteventbus/toasteventbus.esm.es.js +3 -3
- package/vendor/primevue/toastservice/toastservice.esm.es.js +16 -15
- package/vendor/primevue/tooltip/style/tooltipstyle.esm.es.js +6 -5
- package/vendor/primevue/tooltip/tooltip.esm.es.js +383 -186
- package/vendor/primevue/usestyle/usestyle.esm.es.js +94 -64
- package/vendor/primevue/usetoast/usetoast.esm.es.js +9 -8
- package/vendor/primevue/utils/utils.esm.es.js +1078 -772
- package/vendor/primevue/virtualscroller/style/virtualscrollerstyle.esm.es.js +5 -67
- package/vendor/primevue/virtualscroller/virtualscroller.esm.es.js +655 -428
- package/vendor/prosemirror-commands/dist/index.es.js +454 -316
- package/vendor/prosemirror-history/dist/index.es.js +286 -178
- package/vendor/prosemirror-keymap/dist/index.es.js +68 -48
- package/vendor/prosemirror-model/dist/index.es.js +1905 -1436
- package/vendor/prosemirror-schema-list/dist/index.es.js +115 -73
- package/vendor/prosemirror-state/dist/index.es.js +467 -353
- package/vendor/prosemirror-transform/dist/index.es.js +1146 -829
- package/vendor/prosemirror-view/dist/index.es.js +4127 -2719
- package/vendor/rope-sequence/dist/index.es.js +165 -82
- package/vendor/simplebar-core/dist/index.es.js +670 -242
- package/vendor/simplebar-vue/dist/simplebar-vue.esm.es.js +73 -60
- package/vendor/single-spa/lib/es2015/esm/single-spa.min.es.js +511 -510
- package/vendor/tippy.js/dist/tippy.esm.es.js +971 -525
- package/vendor/vee-validate/dist/vee-validate.esm.es.js +1830 -1097
- package/vendor/vue-advanced-cropper/dist/index.esm-bundler.es.js +740 -738
- package/vendor/w3c-keyname/index.es.js +25 -13
- package/wangsvue.es.js +167 -208
- package/wangsvue.esm.browser.js +49417 -48026
- package/wangsvue.system.js +67600 -234
- package/api/index.es.js +0 -149
- package/apiitem/index.es.js +0 -611
- package/assignmember/index.es.js +0 -434
- package/attachment/index.es.js +0 -118
- package/attachmentchangelog/index.es.js +0 -79
- package/attachmentitem/index.es.js +0 -231
- package/attachmentthumbnail/index.es.js +0 -83
- package/changelog/index.d.ts +0 -164
- package/changelog/index.es.js +0 -85
- package/changelogfilter/index.es.js +0 -113
- package/changelogpage/index.d.ts +0 -184
- package/changelogpage/index.es.js +0 -176
- package/checklist/index.es.js +0 -571
- package/checklistchangelog/index.es.js +0 -85
- package/comment/index.d.ts +0 -187
- package/comment/index.es.js +0 -267
- package/commentblock/index.es.js +0 -337
- package/confirmdeploy/index.es.js +0 -64
- package/dependencycol/index.es.js +0 -32
- package/description/index.es.js +0 -135
- package/descriptiontab/index.es.js +0 -30
- package/detailmember/index.d.ts +0 -77
- package/detailmember/index.es.js +0 -32
- package/detailmemberadmin/index.es.js +0 -210
- package/detailmemberleader/index.es.js +0 -164
- package/detailmemberlog/index.es.js +0 -117
- package/detailsprint/index.d.ts +0 -86
- package/detailsprint/index.es.js +0 -414
- package/dialogaddattachment/index.es.js +0 -273
- package/dialogaddchecklist/index.es.js +0 -120
- package/dialogaddeditapi/index.es.js +0 -87
- package/dialogaddpbi/index.es.js +0 -197
- package/dialogadjustmenttask/index.es.js +0 -484
- package/dialogadjustmenttaskheader/index.es.js +0 -193
- package/dialogapichangelog/index.es.js +0 -83
- package/dialogassignmember/index.es.js +0 -171
- package/dialogconfirmapproval/index.es.js +0 -54
- package/dialogconfirmchecklist/index.es.js +0 -189
- package/dialogconfirmdeletetask/index.es.js +0 -70
- package/dialogconfirmdeletetaskpermanently/index.es.js +0 -50
- package/dialogconfirmedit/index.es.js +0 -50
- package/dialogconfirmfinishtask/index.es.js +0 -50
- package/dialogconfirmrestoretask/index.es.js +0 -46
- package/dialogconfirmsprint/index.es.js +0 -42
- package/dialogcopyapi/index.es.js +0 -130
- package/dialogcustomdependency/index.es.js +0 -55
- package/dialogdetailchecklisttemplate/index.es.js +0 -214
- package/dialogdetailcomponent/index.es.js +0 -121
- package/dialogdetailpbi/index.es.js +0 -192
- package/dialogfinishreview/index.es.js +0 -126
- package/dialogimprovementtask/index.es.js +0 -191
- package/dialogmemberadmin/index.es.js +0 -93
- package/dialogpreparepbi/index.es.js +0 -93
- package/dialogpriorityvalue/index.es.js +0 -85
- package/dialogreportbug/index.es.js +0 -207
- package/dialogreviewleader/index.es.js +0 -280
- package/dialogsavechecklisttemplate/index.es.js +0 -127
- package/dialogselectproject/index.es.js +0 -69
- package/dialogsetduration/index.es.js +0 -109
- package/dialogsettasklink/index.es.js +0 -153
- package/dialogtestapi/index.es.js +0 -389
- package/eventlogtab/index.es.js +0 -50
- package/infotasktab/index.es.js +0 -186
- package/inputadditional/index.es.js +0 -62
- package/inputinitialname/index.d.ts +0 -118
- package/inputinitialname/index.es.js +0 -95
- package/inputrepositoryname/index.d.ts +0 -86
- package/inputrepositoryname/index.es.js +0 -41
- package/isrequiredtext/index.es.js +0 -16
- package/legend/index.es.js +0 -727
- package/legendlist/index.es.js +0 -33
- package/loading-page-BrQattYE.js +0 -1
- package/loading-page-CgfbWppy.js +0 -1
- package/loading-page-CoC9UhfC.js +0 -4
- package/loading-page-CoXtqoc9.js +0 -4
- package/loading-page-DbLuqCHa.js +0 -1
- package/loading-page-f8D03l3G.js +0 -4
- package/loading-plane-CgfbWppy.js +0 -1
- package/loading-plane-CoXtqoc9.js +0 -4
- package/loading-table-Bdr9ZhtP.js +0 -1
- package/loading-table-ByUoWqUo.js +0 -4
- package/loading-table-BygEMzFM.js +0 -4
- package/loading-table-BzrSQlA0.js +0 -1
- package/loading-table-D9bw9OcI.js +0 -4
- package/loading-table-chOgXi94.js +0 -1
- package/no-data-CTKux8RI.js +0 -4
- package/no-data-Cgze_Rvp.js +0 -1
- package/no-data-DLHO1L_u.js +0 -4
- package/no-data-Dep79CBh.js +0 -1
- package/no-data-g0dJCy2p.js +0 -4
- package/no-data-y1X5WtcQ.js +0 -1
- package/notificationitem/index.d.ts +0 -107
- package/notificationitem/index.es.js +0 -333
- package/reviewitem/index.es.js +0 -65
- package/reviewtab/index.es.js +0 -44
- package/services/calendar.service.es.js +0 -32
- package/sonarqubesummary/index.es.js +0 -234
- package/sprintsummary/index.es.js +0 -73
- package/summaryaccordion/index.d.ts +0 -121
- package/summaryaccordion/index.es.js +0 -365
- package/taskdependency/index.es.js +0 -686
- package/taskdetail/index.d.ts +0 -82
- package/taskdetail/index.es.js +0 -491
- package/taskdetailpbi/index.d.ts +0 -35
- package/taskdetailpbi/index.es.js +0 -172
- package/taskdetailunassignedpbi/index.es.js +0 -261
- package/tasklink/index.es.js +0 -257
- package/tasklinkchangelog/index.es.js +0 -93
- package/tasklist/index.es.js +0 -92
- package/taskmore/index.es.js +0 -52
- package/taskstatusbadge/index.es.js +0 -18
- package/tasktable/index.d.ts +0 -87
- package/tasktable/index.es.js +0 -832
- package/ticket/index.es.js +0 -151
- package/tooltipspan/index.es.js +0 -30
- package/utils/updateSprintStatus.util.es.js +0 -17
- package/valueformdatainput/index.es.js +0 -70
- package/workcalendar/index.es.js +0 -351
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
const
|
|
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
|
-
]
|
|
45
|
+
];
|
|
46
|
+
const LITERALS = [
|
|
45
47
|
"true",
|
|
46
48
|
"false",
|
|
47
49
|
"null",
|
|
48
50
|
"undefined",
|
|
49
51
|
"NaN",
|
|
50
52
|
"Infinity"
|
|
51
|
-
]
|
|
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
|
-
]
|
|
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
|
-
]
|
|
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
|
-
]
|
|
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
|
-
]
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
146
|
+
];
|
|
147
|
+
const BUILT_INS = [].concat(
|
|
148
|
+
BUILT_IN_GLOBALS,
|
|
149
|
+
TYPES,
|
|
150
|
+
ERROR_TYPES
|
|
144
151
|
);
|
|
145
|
-
function
|
|
146
|
-
const
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
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
|
-
}
|
|
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: (
|
|
160
|
-
const
|
|
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
|
-
|
|
179
|
+
nextChar === "<" || // the , gives away that this is not HTML
|
|
166
180
|
// `<T, A extends keyof T, V>`
|
|
167
|
-
|
|
181
|
+
nextChar === ","
|
|
168
182
|
) {
|
|
169
|
-
|
|
183
|
+
response.ignoreMatch();
|
|
170
184
|
return;
|
|
171
185
|
}
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
l.ignoreMatch();
|
|
177
|
-
return;
|
|
186
|
+
if (nextChar === ">") {
|
|
187
|
+
if (!hasClosingTag(match, { after: afterMatchIndex })) {
|
|
188
|
+
response.ignoreMatch();
|
|
189
|
+
}
|
|
178
190
|
}
|
|
179
|
-
|
|
180
|
-
|
|
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
|
-
}
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
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(${
|
|
195
|
-
{ begin: `\\b(${
|
|
219
|
+
{ begin: `(\\b(${decimalInteger})((${frac})|\\.)?|(${frac}))[eE][+-]?(${decimalDigits})\\b` },
|
|
220
|
+
{ begin: `\\b(${decimalInteger})\\b((${frac})\\b|\\.)?|(${frac})\\b` },
|
|
196
221
|
// DecimalBigIntegerLiteral
|
|
197
|
-
{ begin:
|
|
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
|
-
}
|
|
232
|
+
};
|
|
233
|
+
const SUBST = {
|
|
208
234
|
className: "subst",
|
|
209
235
|
begin: "\\$\\{",
|
|
210
236
|
end: "\\}",
|
|
211
|
-
keywords:
|
|
237
|
+
keywords: KEYWORDS$1,
|
|
212
238
|
contains: []
|
|
213
239
|
// defined later
|
|
214
|
-
}
|
|
240
|
+
};
|
|
241
|
+
const HTML_TEMPLATE = {
|
|
215
242
|
begin: ".?html`",
|
|
216
243
|
end: "",
|
|
217
244
|
starts: {
|
|
218
245
|
end: "`",
|
|
219
|
-
returnEnd:
|
|
246
|
+
returnEnd: false,
|
|
220
247
|
contains: [
|
|
221
|
-
|
|
222
|
-
|
|
248
|
+
hljs.BACKSLASH_ESCAPE,
|
|
249
|
+
SUBST
|
|
223
250
|
],
|
|
224
251
|
subLanguage: "xml"
|
|
225
252
|
}
|
|
226
|
-
}
|
|
253
|
+
};
|
|
254
|
+
const CSS_TEMPLATE = {
|
|
227
255
|
begin: ".?css`",
|
|
228
256
|
end: "",
|
|
229
257
|
starts: {
|
|
230
258
|
end: "`",
|
|
231
|
-
returnEnd:
|
|
259
|
+
returnEnd: false,
|
|
232
260
|
contains: [
|
|
233
|
-
|
|
234
|
-
|
|
261
|
+
hljs.BACKSLASH_ESCAPE,
|
|
262
|
+
SUBST
|
|
235
263
|
],
|
|
236
264
|
subLanguage: "css"
|
|
237
265
|
}
|
|
238
|
-
}
|
|
266
|
+
};
|
|
267
|
+
const GRAPHQL_TEMPLATE = {
|
|
239
268
|
begin: ".?gql`",
|
|
240
269
|
end: "",
|
|
241
270
|
starts: {
|
|
242
271
|
end: "`",
|
|
243
|
-
returnEnd:
|
|
272
|
+
returnEnd: false,
|
|
244
273
|
contains: [
|
|
245
|
-
|
|
246
|
-
|
|
274
|
+
hljs.BACKSLASH_ESCAPE,
|
|
275
|
+
SUBST
|
|
247
276
|
],
|
|
248
277
|
subLanguage: "graphql"
|
|
249
278
|
}
|
|
250
|
-
}
|
|
279
|
+
};
|
|
280
|
+
const TEMPLATE_STRING = {
|
|
251
281
|
className: "string",
|
|
252
282
|
begin: "`",
|
|
253
283
|
end: "`",
|
|
254
284
|
contains: [
|
|
255
|
-
|
|
256
|
-
|
|
285
|
+
hljs.BACKSLASH_ESCAPE,
|
|
286
|
+
SUBST
|
|
257
287
|
]
|
|
258
|
-
}
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
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
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
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
|
-
|
|
301
|
-
|
|
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
|
-
}
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
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
|
-
|
|
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:
|
|
355
|
+
keywords: KEYWORDS$1,
|
|
323
356
|
contains: [
|
|
324
357
|
"self"
|
|
325
|
-
].concat(
|
|
358
|
+
].concat(SUBST_INTERNALS)
|
|
326
359
|
});
|
|
327
|
-
const
|
|
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:
|
|
333
|
-
contains: ["self"].concat(
|
|
366
|
+
keywords: KEYWORDS$1,
|
|
367
|
+
contains: ["self"].concat(SUBST_AND_COMMENTS)
|
|
334
368
|
}
|
|
335
|
-
])
|
|
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:
|
|
342
|
-
excludeEnd:
|
|
343
|
-
keywords:
|
|
344
|
-
contains:
|
|
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
|
-
|
|
388
|
+
IDENT_RE$1,
|
|
353
389
|
/\s+/,
|
|
354
390
|
/extends/,
|
|
355
391
|
/\s+/,
|
|
356
|
-
|
|
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
|
-
|
|
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
|
-
}
|
|
414
|
+
};
|
|
415
|
+
const CLASS_REFERENCE = {
|
|
379
416
|
relevance: 0,
|
|
380
|
-
match:
|
|
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
|
-
...
|
|
399
|
-
...
|
|
435
|
+
...TYPES,
|
|
436
|
+
...ERROR_TYPES
|
|
400
437
|
]
|
|
401
438
|
}
|
|
402
|
-
}
|
|
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
|
-
}
|
|
445
|
+
};
|
|
446
|
+
const FUNCTION_DEFINITION = {
|
|
408
447
|
variants: [
|
|
409
448
|
{
|
|
410
449
|
match: [
|
|
411
450
|
/function/,
|
|
412
451
|
/\s+/,
|
|
413
|
-
|
|
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: [
|
|
469
|
+
contains: [PARAMS],
|
|
431
470
|
illegal: /%/
|
|
432
|
-
}
|
|
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
|
|
438
|
-
return
|
|
477
|
+
function noneOf(list) {
|
|
478
|
+
return regex.concat("(?!", list.join("|"), ")");
|
|
439
479
|
}
|
|
440
|
-
const
|
|
441
|
-
match:
|
|
480
|
+
const FUNCTION_CALL = {
|
|
481
|
+
match: regex.concat(
|
|
442
482
|
/\b/,
|
|
443
|
-
|
|
444
|
-
...
|
|
483
|
+
noneOf([
|
|
484
|
+
...BUILT_IN_GLOBALS,
|
|
445
485
|
"super",
|
|
446
486
|
"import"
|
|
447
|
-
].map((
|
|
448
|
-
|
|
449
|
-
|
|
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
|
-
}
|
|
454
|
-
|
|
455
|
-
|
|
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:
|
|
458
|
-
excludeBegin:
|
|
498
|
+
end: IDENT_RE$1,
|
|
499
|
+
excludeBegin: true,
|
|
459
500
|
keywords: "prototype",
|
|
460
501
|
className: "property",
|
|
461
502
|
relevance: 0
|
|
462
|
-
}
|
|
503
|
+
};
|
|
504
|
+
const GETTER_OR_SETTER = {
|
|
463
505
|
match: [
|
|
464
506
|
/get|set/,
|
|
465
507
|
/\s+/,
|
|
466
|
-
|
|
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
|
-
|
|
520
|
+
PARAMS
|
|
479
521
|
]
|
|
480
|
-
}
|
|
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
|
-
|
|
528
|
+
IDENT_RE$1,
|
|
485
529
|
/\s*/,
|
|
486
530
|
/=\s*/,
|
|
487
531
|
/(async\s*)?/,
|
|
488
532
|
// async is optional
|
|
489
|
-
|
|
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
|
-
|
|
541
|
+
PARAMS
|
|
498
542
|
]
|
|
499
543
|
};
|
|
500
544
|
return {
|
|
501
545
|
name: "JavaScript",
|
|
502
546
|
aliases: ["js", "jsx", "mjs", "cjs"],
|
|
503
|
-
keywords:
|
|
547
|
+
keywords: KEYWORDS$1,
|
|
504
548
|
// this will be extended by TypeScript
|
|
505
|
-
exports: { PARAMS_CONTAINS
|
|
549
|
+
exports: { PARAMS_CONTAINS, CLASS_REFERENCE },
|
|
506
550
|
illegal: /#(?![$_A-z])/,
|
|
507
551
|
contains: [
|
|
508
|
-
|
|
552
|
+
hljs.SHEBANG({
|
|
509
553
|
label: "shebang",
|
|
510
554
|
binary: "node",
|
|
511
555
|
relevance: 5
|
|
512
556
|
}),
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
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
|
-
|
|
567
|
+
NUMBER,
|
|
568
|
+
CLASS_REFERENCE,
|
|
525
569
|
{
|
|
526
570
|
className: "attr",
|
|
527
|
-
begin:
|
|
571
|
+
begin: IDENT_RE$1 + regex.lookahead(":"),
|
|
528
572
|
relevance: 0
|
|
529
573
|
},
|
|
530
|
-
|
|
574
|
+
FUNCTION_VARIABLE,
|
|
531
575
|
{
|
|
532
576
|
// "value" container
|
|
533
|
-
begin: "(" +
|
|
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
|
-
|
|
538
|
-
|
|
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:
|
|
545
|
-
returnBegin:
|
|
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:
|
|
596
|
+
begin: hljs.UNDERSCORE_IDENT_RE,
|
|
553
597
|
relevance: 0
|
|
554
598
|
},
|
|
555
599
|
{
|
|
556
600
|
className: null,
|
|
557
601
|
begin: /\(\s*\)/,
|
|
558
|
-
skip:
|
|
602
|
+
skip: true
|
|
559
603
|
},
|
|
560
604
|
{
|
|
561
605
|
begin: /(\s*)\(/,
|
|
562
606
|
end: /\)/,
|
|
563
|
-
excludeBegin:
|
|
564
|
-
excludeEnd:
|
|
565
|
-
keywords:
|
|
566
|
-
contains:
|
|
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:
|
|
585
|
-
{ match:
|
|
628
|
+
{ begin: FRAGMENT.begin, end: FRAGMENT.end },
|
|
629
|
+
{ match: XML_SELF_CLOSING },
|
|
586
630
|
{
|
|
587
|
-
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":
|
|
591
|
-
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:
|
|
598
|
-
end:
|
|
599
|
-
skip:
|
|
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
|
-
|
|
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)" +
|
|
660
|
+
begin: "\\b(?!function)" + hljs.UNDERSCORE_IDENT_RE + "\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",
|
|
617
661
|
// end parens
|
|
618
|
-
returnBegin:
|
|
662
|
+
returnBegin: true,
|
|
619
663
|
label: "func.def",
|
|
620
664
|
contains: [
|
|
621
|
-
|
|
622
|
-
|
|
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
|
-
|
|
674
|
+
PROPERTY_ACCESS,
|
|
631
675
|
// hack: prevents detection of keywords in some circumstances
|
|
632
676
|
// .keyword()
|
|
633
677
|
// $keyword = x
|
|
634
678
|
{
|
|
635
|
-
match: "\\$" +
|
|
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: [
|
|
685
|
+
contains: [PARAMS]
|
|
642
686
|
},
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
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
|
|
655
|
-
const
|
|
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
|
-
]
|
|
712
|
+
];
|
|
713
|
+
const NAMESPACE = {
|
|
667
714
|
begin: [
|
|
668
715
|
/namespace/,
|
|
669
716
|
/\s+/,
|
|
670
|
-
|
|
717
|
+
hljs.IDENT_RE
|
|
671
718
|
],
|
|
672
719
|
beginScope: {
|
|
673
720
|
1: "keyword",
|
|
674
721
|
3: "title.class"
|
|
675
722
|
}
|
|
676
|
-
}
|
|
723
|
+
};
|
|
724
|
+
const INTERFACE = {
|
|
677
725
|
beginKeywords: "interface",
|
|
678
726
|
end: /\{/,
|
|
679
|
-
excludeEnd:
|
|
727
|
+
excludeEnd: true,
|
|
680
728
|
keywords: {
|
|
681
729
|
keyword: "interface extends",
|
|
682
|
-
built_in:
|
|
730
|
+
built_in: TYPES2
|
|
683
731
|
},
|
|
684
|
-
contains: [
|
|
685
|
-
}
|
|
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
|
-
}
|
|
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
|
-
]
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
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: "@" +
|
|
712
|
-
}
|
|
713
|
-
|
|
714
|
-
|
|
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
|
-
|
|
769
|
+
}
|
|
770
|
+
mode.contains.splice(indx, 1, replacement);
|
|
717
771
|
};
|
|
718
|
-
Object.assign(
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
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
|
-
])
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
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
|
-
})
|
|
798
|
+
});
|
|
799
|
+
return tsLanguage;
|
|
740
800
|
}
|
|
741
801
|
export {
|
|
742
|
-
|
|
802
|
+
typescript as t
|
|
743
803
|
};
|