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