@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,166 +1,172 @@
|
|
|
1
|
-
function
|
|
2
|
-
var
|
|
3
|
-
if (!
|
|
4
|
-
if (Array.isArray(
|
|
5
|
-
|
|
6
|
-
var
|
|
1
|
+
function _createForOfIteratorHelper$1(o, allowArrayLike) {
|
|
2
|
+
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
|
|
3
|
+
if (!it) {
|
|
4
|
+
if (Array.isArray(o) || (it = _unsupportedIterableToArray$3(o)) || allowArrayLike) {
|
|
5
|
+
if (it) o = it;
|
|
6
|
+
var i = 0;
|
|
7
|
+
var F = function F2() {
|
|
7
8
|
};
|
|
8
|
-
return { s:
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
9
|
+
return { s: F, n: function n() {
|
|
10
|
+
if (i >= o.length) return { done: true };
|
|
11
|
+
return { done: false, value: o[i++] };
|
|
12
|
+
}, e: function e(_e) {
|
|
13
|
+
throw _e;
|
|
14
|
+
}, f: F };
|
|
15
|
+
}
|
|
16
|
+
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
16
17
|
}
|
|
17
|
-
var
|
|
18
|
-
return { s: function() {
|
|
19
|
-
|
|
20
|
-
}, n: function() {
|
|
21
|
-
var
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
18
|
+
var normalCompletion = true, didErr = false, err;
|
|
19
|
+
return { s: function s() {
|
|
20
|
+
it = it.call(o);
|
|
21
|
+
}, n: function n() {
|
|
22
|
+
var step = it.next();
|
|
23
|
+
normalCompletion = step.done;
|
|
24
|
+
return step;
|
|
25
|
+
}, e: function e(_e2) {
|
|
26
|
+
didErr = true;
|
|
27
|
+
err = _e2;
|
|
28
|
+
}, f: function f() {
|
|
26
29
|
try {
|
|
27
|
-
!
|
|
30
|
+
if (!normalCompletion && it["return"] != null) it["return"]();
|
|
28
31
|
} finally {
|
|
29
|
-
if (
|
|
32
|
+
if (didErr) throw err;
|
|
30
33
|
}
|
|
31
34
|
} };
|
|
32
35
|
}
|
|
33
|
-
function
|
|
34
|
-
return
|
|
36
|
+
function _toConsumableArray$3(arr) {
|
|
37
|
+
return _arrayWithoutHoles$3(arr) || _iterableToArray$3(arr) || _unsupportedIterableToArray$3(arr) || _nonIterableSpread$3();
|
|
35
38
|
}
|
|
36
|
-
function
|
|
37
|
-
throw new TypeError(
|
|
38
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
39
|
+
function _nonIterableSpread$3() {
|
|
40
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
39
41
|
}
|
|
40
|
-
function $(
|
|
41
|
-
if (typeof Symbol
|
|
42
|
+
function _iterableToArray$3(iter) {
|
|
43
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
42
44
|
}
|
|
43
|
-
function
|
|
44
|
-
if (Array.isArray(
|
|
45
|
+
function _arrayWithoutHoles$3(arr) {
|
|
46
|
+
if (Array.isArray(arr)) return _arrayLikeToArray$3(arr);
|
|
45
47
|
}
|
|
46
|
-
function
|
|
48
|
+
function _typeof$3(o) {
|
|
47
49
|
"@babel/helpers - typeof";
|
|
48
|
-
return
|
|
49
|
-
return typeof
|
|
50
|
-
} : function(
|
|
51
|
-
return
|
|
52
|
-
},
|
|
50
|
+
return _typeof$3 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
|
|
51
|
+
return typeof o2;
|
|
52
|
+
} : function(o2) {
|
|
53
|
+
return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
|
|
54
|
+
}, _typeof$3(o);
|
|
53
55
|
}
|
|
54
|
-
function
|
|
55
|
-
return
|
|
56
|
+
function _slicedToArray$1(arr, i) {
|
|
57
|
+
return _arrayWithHoles$1(arr) || _iterableToArrayLimit$1(arr, i) || _unsupportedIterableToArray$3(arr, i) || _nonIterableRest$1();
|
|
56
58
|
}
|
|
57
|
-
function
|
|
58
|
-
throw new TypeError(
|
|
59
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
59
|
+
function _nonIterableRest$1() {
|
|
60
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
60
61
|
}
|
|
61
|
-
function
|
|
62
|
-
if (
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
62
|
+
function _unsupportedIterableToArray$3(o, minLen) {
|
|
63
|
+
if (!o) return;
|
|
64
|
+
if (typeof o === "string") return _arrayLikeToArray$3(o, minLen);
|
|
65
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
66
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
67
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
|
68
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$3(o, minLen);
|
|
68
69
|
}
|
|
69
|
-
function
|
|
70
|
-
(
|
|
71
|
-
for (var
|
|
72
|
-
return
|
|
70
|
+
function _arrayLikeToArray$3(arr, len) {
|
|
71
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
72
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
73
|
+
return arr2;
|
|
73
74
|
}
|
|
74
|
-
function
|
|
75
|
-
var
|
|
76
|
-
if (
|
|
77
|
-
var
|
|
75
|
+
function _iterableToArrayLimit$1(r, l) {
|
|
76
|
+
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
77
|
+
if (null != t) {
|
|
78
|
+
var e, n, i, u, a = [], f = true, o = false;
|
|
78
79
|
try {
|
|
79
|
-
if (
|
|
80
|
-
|
|
81
|
-
|
|
80
|
+
if (i = (t = t.call(r)).next, 0 === l) ;
|
|
81
|
+
else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = true) ;
|
|
82
|
+
} catch (r2) {
|
|
83
|
+
o = true, n = r2;
|
|
82
84
|
} finally {
|
|
83
85
|
try {
|
|
84
|
-
if (!
|
|
86
|
+
if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
|
|
85
87
|
} finally {
|
|
86
|
-
if (
|
|
88
|
+
if (o) throw n;
|
|
87
89
|
}
|
|
88
90
|
}
|
|
89
|
-
return
|
|
91
|
+
return a;
|
|
90
92
|
}
|
|
91
93
|
}
|
|
92
|
-
function
|
|
93
|
-
if (Array.isArray(
|
|
94
|
+
function _arrayWithHoles$1(arr) {
|
|
95
|
+
if (Array.isArray(arr)) return arr;
|
|
94
96
|
}
|
|
95
|
-
var
|
|
96
|
-
innerWidth: function(
|
|
97
|
-
if (
|
|
98
|
-
var
|
|
99
|
-
|
|
97
|
+
var DomHandler = {
|
|
98
|
+
innerWidth: function innerWidth(el) {
|
|
99
|
+
if (el) {
|
|
100
|
+
var width2 = el.offsetWidth;
|
|
101
|
+
var style = getComputedStyle(el);
|
|
102
|
+
width2 += parseFloat(style.paddingLeft) + parseFloat(style.paddingRight);
|
|
103
|
+
return width2;
|
|
100
104
|
}
|
|
101
105
|
return 0;
|
|
102
106
|
},
|
|
103
|
-
width: function(
|
|
104
|
-
if (
|
|
105
|
-
var
|
|
106
|
-
|
|
107
|
+
width: function width(el) {
|
|
108
|
+
if (el) {
|
|
109
|
+
var width2 = el.offsetWidth;
|
|
110
|
+
var style = getComputedStyle(el);
|
|
111
|
+
width2 -= parseFloat(style.paddingLeft) + parseFloat(style.paddingRight);
|
|
112
|
+
return width2;
|
|
107
113
|
}
|
|
108
114
|
return 0;
|
|
109
115
|
},
|
|
110
|
-
getWindowScrollTop: function() {
|
|
111
|
-
var
|
|
112
|
-
return (window.pageYOffset ||
|
|
116
|
+
getWindowScrollTop: function getWindowScrollTop() {
|
|
117
|
+
var doc = document.documentElement;
|
|
118
|
+
return (window.pageYOffset || doc.scrollTop) - (doc.clientTop || 0);
|
|
113
119
|
},
|
|
114
|
-
getWindowScrollLeft: function() {
|
|
115
|
-
var
|
|
116
|
-
return (window.pageXOffset ||
|
|
120
|
+
getWindowScrollLeft: function getWindowScrollLeft() {
|
|
121
|
+
var doc = document.documentElement;
|
|
122
|
+
return (window.pageXOffset || doc.scrollLeft) - (doc.clientLeft || 0);
|
|
117
123
|
},
|
|
118
|
-
getOuterWidth: function(
|
|
119
|
-
if (
|
|
120
|
-
var
|
|
121
|
-
if (
|
|
122
|
-
var
|
|
123
|
-
|
|
124
|
+
getOuterWidth: function getOuterWidth(el, margin) {
|
|
125
|
+
if (el) {
|
|
126
|
+
var width2 = el.offsetWidth;
|
|
127
|
+
if (margin) {
|
|
128
|
+
var style = getComputedStyle(el);
|
|
129
|
+
width2 += parseFloat(style.marginLeft) + parseFloat(style.marginRight);
|
|
124
130
|
}
|
|
125
|
-
return
|
|
131
|
+
return width2;
|
|
126
132
|
}
|
|
127
133
|
return 0;
|
|
128
134
|
},
|
|
129
|
-
getOuterHeight: function(
|
|
130
|
-
if (
|
|
131
|
-
var
|
|
132
|
-
if (
|
|
133
|
-
var
|
|
134
|
-
|
|
135
|
+
getOuterHeight: function getOuterHeight(el, margin) {
|
|
136
|
+
if (el) {
|
|
137
|
+
var height = el.offsetHeight;
|
|
138
|
+
if (margin) {
|
|
139
|
+
var style = getComputedStyle(el);
|
|
140
|
+
height += parseFloat(style.marginTop) + parseFloat(style.marginBottom);
|
|
135
141
|
}
|
|
136
|
-
return
|
|
142
|
+
return height;
|
|
137
143
|
}
|
|
138
144
|
return 0;
|
|
139
145
|
},
|
|
140
|
-
getClientHeight: function(
|
|
141
|
-
if (
|
|
142
|
-
var
|
|
143
|
-
if (
|
|
144
|
-
var
|
|
145
|
-
|
|
146
|
+
getClientHeight: function getClientHeight(el, margin) {
|
|
147
|
+
if (el) {
|
|
148
|
+
var height = el.clientHeight;
|
|
149
|
+
if (margin) {
|
|
150
|
+
var style = getComputedStyle(el);
|
|
151
|
+
height += parseFloat(style.marginTop) + parseFloat(style.marginBottom);
|
|
146
152
|
}
|
|
147
|
-
return
|
|
153
|
+
return height;
|
|
148
154
|
}
|
|
149
155
|
return 0;
|
|
150
156
|
},
|
|
151
|
-
getViewport: function() {
|
|
152
|
-
var
|
|
157
|
+
getViewport: function getViewport() {
|
|
158
|
+
var win = window, d = document, e = d.documentElement, g = d.getElementsByTagName("body")[0], w = win.innerWidth || e.clientWidth || g.clientWidth, h = win.innerHeight || e.clientHeight || g.clientHeight;
|
|
153
159
|
return {
|
|
154
|
-
width:
|
|
155
|
-
height:
|
|
160
|
+
width: w,
|
|
161
|
+
height: h
|
|
156
162
|
};
|
|
157
163
|
},
|
|
158
|
-
getOffset: function(
|
|
159
|
-
if (
|
|
160
|
-
var
|
|
164
|
+
getOffset: function getOffset(el) {
|
|
165
|
+
if (el) {
|
|
166
|
+
var rect = el.getBoundingClientRect();
|
|
161
167
|
return {
|
|
162
|
-
top:
|
|
163
|
-
left:
|
|
168
|
+
top: rect.top + (window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop || 0),
|
|
169
|
+
left: rect.left + (window.pageXOffset || document.documentElement.scrollLeft || document.body.scrollLeft || 0)
|
|
164
170
|
};
|
|
165
171
|
}
|
|
166
172
|
return {
|
|
@@ -168,913 +174,1213 @@ var _ = {
|
|
|
168
174
|
left: "auto"
|
|
169
175
|
};
|
|
170
176
|
},
|
|
171
|
-
index: function(
|
|
172
|
-
if (
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
177
|
+
index: function index(element) {
|
|
178
|
+
if (element) {
|
|
179
|
+
var _this$getParentNode;
|
|
180
|
+
var children = (_this$getParentNode = this.getParentNode(element)) === null || _this$getParentNode === void 0 ? void 0 : _this$getParentNode.childNodes;
|
|
181
|
+
var num = 0;
|
|
182
|
+
for (var i = 0; i < children.length; i++) {
|
|
183
|
+
if (children[i] === element) return num;
|
|
184
|
+
if (children[i].nodeType === 1) num++;
|
|
176
185
|
}
|
|
186
|
+
}
|
|
177
187
|
return -1;
|
|
178
188
|
},
|
|
179
|
-
addMultipleClasses: function(
|
|
180
|
-
var
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
return
|
|
189
|
+
addMultipleClasses: function addMultipleClasses(element, classNames) {
|
|
190
|
+
var _this = this;
|
|
191
|
+
if (element && classNames) {
|
|
192
|
+
[classNames].flat().filter(Boolean).forEach(function(cNames) {
|
|
193
|
+
return cNames.split(" ").forEach(function(className) {
|
|
194
|
+
return _this.addClass(element, className);
|
|
195
|
+
});
|
|
184
196
|
});
|
|
185
|
-
}
|
|
197
|
+
}
|
|
186
198
|
},
|
|
187
|
-
removeMultipleClasses: function(
|
|
188
|
-
var
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
return
|
|
199
|
+
removeMultipleClasses: function removeMultipleClasses(element, classNames) {
|
|
200
|
+
var _this2 = this;
|
|
201
|
+
if (element && classNames) {
|
|
202
|
+
[classNames].flat().filter(Boolean).forEach(function(cNames) {
|
|
203
|
+
return cNames.split(" ").forEach(function(className) {
|
|
204
|
+
return _this2.removeClass(element, className);
|
|
205
|
+
});
|
|
192
206
|
});
|
|
193
|
-
}
|
|
207
|
+
}
|
|
194
208
|
},
|
|
195
|
-
addClass: function(
|
|
196
|
-
|
|
209
|
+
addClass: function addClass(element, className) {
|
|
210
|
+
if (element && className && !this.hasClass(element, className)) {
|
|
211
|
+
if (element.classList) element.classList.add(className);
|
|
212
|
+
else element.className += " " + className;
|
|
213
|
+
}
|
|
197
214
|
},
|
|
198
|
-
removeClass: function(
|
|
199
|
-
|
|
215
|
+
removeClass: function removeClass(element, className) {
|
|
216
|
+
if (element && className) {
|
|
217
|
+
if (element.classList) element.classList.remove(className);
|
|
218
|
+
else element.className = element.className.replace(new RegExp("(^|\\b)" + className.split(" ").join("|") + "(\\b|$)", "gi"), " ");
|
|
219
|
+
}
|
|
200
220
|
},
|
|
201
|
-
hasClass: function(
|
|
202
|
-
|
|
221
|
+
hasClass: function hasClass(element, className) {
|
|
222
|
+
if (element) {
|
|
223
|
+
if (element.classList) return element.classList.contains(className);
|
|
224
|
+
else return new RegExp("(^| )" + className + "( |$)", "gi").test(element.className);
|
|
225
|
+
}
|
|
226
|
+
return false;
|
|
227
|
+
},
|
|
228
|
+
addStyles: function addStyles(element) {
|
|
229
|
+
var styles = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
230
|
+
if (element) {
|
|
231
|
+
Object.entries(styles).forEach(function(_ref) {
|
|
232
|
+
var _ref2 = _slicedToArray$1(_ref, 2), key = _ref2[0], value = _ref2[1];
|
|
233
|
+
return element.style[key] = value;
|
|
234
|
+
});
|
|
235
|
+
}
|
|
203
236
|
},
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
});
|
|
237
|
+
find: function find(element, selector) {
|
|
238
|
+
return this.isElement(element) ? element.querySelectorAll(selector) : [];
|
|
239
|
+
},
|
|
240
|
+
findSingle: function findSingle(element, selector) {
|
|
241
|
+
return this.isElement(element) ? element.querySelector(selector) : null;
|
|
210
242
|
},
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
},
|
|
231
|
-
setAttributes: function(
|
|
232
|
-
var
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
243
|
+
createElement: function createElement(type) {
|
|
244
|
+
var attributes = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
245
|
+
if (type) {
|
|
246
|
+
var element = document.createElement(type);
|
|
247
|
+
this.setAttributes(element, attributes);
|
|
248
|
+
for (var _len = arguments.length, children = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
|
|
249
|
+
children[_key - 2] = arguments[_key];
|
|
250
|
+
}
|
|
251
|
+
element.append.apply(element, children);
|
|
252
|
+
return element;
|
|
253
|
+
}
|
|
254
|
+
return void 0;
|
|
255
|
+
},
|
|
256
|
+
setAttribute: function setAttribute(element) {
|
|
257
|
+
var attribute = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "";
|
|
258
|
+
var value = arguments.length > 2 ? arguments[2] : void 0;
|
|
259
|
+
if (this.isElement(element) && value !== null && value !== void 0) {
|
|
260
|
+
element.setAttribute(attribute, value);
|
|
261
|
+
}
|
|
262
|
+
},
|
|
263
|
+
setAttributes: function setAttributes(element) {
|
|
264
|
+
var _this3 = this;
|
|
265
|
+
var attributes = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
266
|
+
if (this.isElement(element)) {
|
|
267
|
+
var computedStyles = function computedStyles2(rule, value) {
|
|
268
|
+
var _element$$attrs, _element$$attrs2;
|
|
269
|
+
var styles = element !== null && element !== void 0 && (_element$$attrs = element.$attrs) !== null && _element$$attrs !== void 0 && _element$$attrs[rule] ? [element === null || element === void 0 || (_element$$attrs2 = element.$attrs) === null || _element$$attrs2 === void 0 ? void 0 : _element$$attrs2[rule]] : [];
|
|
270
|
+
return [value].flat().reduce(function(cv, v) {
|
|
271
|
+
if (v !== null && v !== void 0) {
|
|
272
|
+
var type = _typeof$3(v);
|
|
273
|
+
if (type === "string" || type === "number") {
|
|
274
|
+
cv.push(v);
|
|
275
|
+
} else if (type === "object") {
|
|
276
|
+
var _cv = Array.isArray(v) ? computedStyles2(rule, v) : Object.entries(v).map(function(_ref3) {
|
|
277
|
+
var _ref4 = _slicedToArray$1(_ref3, 2), _k = _ref4[0], _v = _ref4[1];
|
|
278
|
+
return rule === "style" && (!!_v || _v === 0) ? "".concat(_k.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase(), ":").concat(_v) : !!_v ? _k : void 0;
|
|
245
279
|
});
|
|
246
|
-
|
|
247
|
-
return !!
|
|
248
|
-
})) :
|
|
280
|
+
cv = _cv.length ? cv.concat(_cv.filter(function(c) {
|
|
281
|
+
return !!c;
|
|
282
|
+
})) : cv;
|
|
249
283
|
}
|
|
250
284
|
}
|
|
251
|
-
return
|
|
252
|
-
},
|
|
285
|
+
return cv;
|
|
286
|
+
}, styles);
|
|
253
287
|
};
|
|
254
|
-
Object.entries(
|
|
255
|
-
var
|
|
256
|
-
if (
|
|
257
|
-
var
|
|
258
|
-
|
|
288
|
+
Object.entries(attributes).forEach(function(_ref5) {
|
|
289
|
+
var _ref6 = _slicedToArray$1(_ref5, 2), key = _ref6[0], value = _ref6[1];
|
|
290
|
+
if (value !== void 0 && value !== null) {
|
|
291
|
+
var matchedEvent = key.match(/^on(.+)/);
|
|
292
|
+
if (matchedEvent) {
|
|
293
|
+
element.addEventListener(matchedEvent[1].toLowerCase(), value);
|
|
294
|
+
} else if (key === "p-bind") {
|
|
295
|
+
_this3.setAttributes(element, value);
|
|
296
|
+
} else {
|
|
297
|
+
value = key === "class" ? _toConsumableArray$3(new Set(computedStyles("class", value))).join(" ").trim() : key === "style" ? computedStyles("style", value).join(";").trim() : value;
|
|
298
|
+
(element.$attrs = element.$attrs || {}) && (element.$attrs[key] = value);
|
|
299
|
+
element.setAttribute(key, value);
|
|
300
|
+
}
|
|
259
301
|
}
|
|
260
302
|
});
|
|
261
303
|
}
|
|
262
304
|
},
|
|
263
|
-
getAttribute: function(
|
|
264
|
-
if (this.isElement(
|
|
265
|
-
var
|
|
266
|
-
|
|
305
|
+
getAttribute: function getAttribute(element, name) {
|
|
306
|
+
if (this.isElement(element)) {
|
|
307
|
+
var value = element.getAttribute(name);
|
|
308
|
+
if (!isNaN(value)) {
|
|
309
|
+
return +value;
|
|
310
|
+
}
|
|
311
|
+
if (value === "true" || value === "false") {
|
|
312
|
+
return value === "true";
|
|
313
|
+
}
|
|
314
|
+
return value;
|
|
267
315
|
}
|
|
316
|
+
return void 0;
|
|
268
317
|
},
|
|
269
|
-
isAttributeEquals: function(
|
|
270
|
-
return this.isElement(
|
|
318
|
+
isAttributeEquals: function isAttributeEquals(element, name, value) {
|
|
319
|
+
return this.isElement(element) ? this.getAttribute(element, name) === value : false;
|
|
271
320
|
},
|
|
272
|
-
isAttributeNotEquals: function(
|
|
273
|
-
return !this.isAttributeEquals(
|
|
321
|
+
isAttributeNotEquals: function isAttributeNotEquals(element, name, value) {
|
|
322
|
+
return !this.isAttributeEquals(element, name, value);
|
|
274
323
|
},
|
|
275
|
-
getHeight: function(
|
|
276
|
-
if (
|
|
277
|
-
var
|
|
278
|
-
|
|
324
|
+
getHeight: function getHeight(el) {
|
|
325
|
+
if (el) {
|
|
326
|
+
var height = el.offsetHeight;
|
|
327
|
+
var style = getComputedStyle(el);
|
|
328
|
+
height -= parseFloat(style.paddingTop) + parseFloat(style.paddingBottom) + parseFloat(style.borderTopWidth) + parseFloat(style.borderBottomWidth);
|
|
329
|
+
return height;
|
|
279
330
|
}
|
|
280
331
|
return 0;
|
|
281
332
|
},
|
|
282
|
-
getWidth: function(
|
|
283
|
-
if (
|
|
284
|
-
var
|
|
285
|
-
|
|
333
|
+
getWidth: function getWidth(el) {
|
|
334
|
+
if (el) {
|
|
335
|
+
var width2 = el.offsetWidth;
|
|
336
|
+
var style = getComputedStyle(el);
|
|
337
|
+
width2 -= parseFloat(style.paddingLeft) + parseFloat(style.paddingRight) + parseFloat(style.borderLeftWidth) + parseFloat(style.borderRightWidth);
|
|
338
|
+
return width2;
|
|
286
339
|
}
|
|
287
340
|
return 0;
|
|
288
341
|
},
|
|
289
|
-
absolutePosition: function(
|
|
290
|
-
var
|
|
291
|
-
if (
|
|
292
|
-
var
|
|
293
|
-
width:
|
|
294
|
-
height:
|
|
295
|
-
} : this.getHiddenElementDimensions(
|
|
296
|
-
|
|
342
|
+
absolutePosition: function absolutePosition(element, target) {
|
|
343
|
+
var gutter = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true;
|
|
344
|
+
if (element) {
|
|
345
|
+
var elementDimensions = element.offsetParent ? {
|
|
346
|
+
width: element.offsetWidth,
|
|
347
|
+
height: element.offsetHeight
|
|
348
|
+
} : this.getHiddenElementDimensions(element);
|
|
349
|
+
var elementOuterHeight = elementDimensions.height;
|
|
350
|
+
var elementOuterWidth = elementDimensions.width;
|
|
351
|
+
var targetOuterHeight = target.offsetHeight;
|
|
352
|
+
var targetOuterWidth = target.offsetWidth;
|
|
353
|
+
var targetOffset = target.getBoundingClientRect();
|
|
354
|
+
var windowScrollTop = this.getWindowScrollTop();
|
|
355
|
+
var windowScrollLeft = this.getWindowScrollLeft();
|
|
356
|
+
var viewport = this.getViewport();
|
|
357
|
+
var top, left, origin = "top";
|
|
358
|
+
if (targetOffset.top + targetOuterHeight + elementOuterHeight > viewport.height) {
|
|
359
|
+
top = targetOffset.top + windowScrollTop - elementOuterHeight;
|
|
360
|
+
origin = "bottom";
|
|
361
|
+
if (top < 0) {
|
|
362
|
+
top = windowScrollTop;
|
|
363
|
+
}
|
|
364
|
+
} else {
|
|
365
|
+
top = targetOuterHeight + targetOffset.top + windowScrollTop;
|
|
366
|
+
}
|
|
367
|
+
if (targetOffset.left + elementOuterWidth > viewport.width) left = Math.max(0, targetOffset.left + windowScrollLeft + targetOuterWidth - elementOuterWidth);
|
|
368
|
+
else left = targetOffset.left + windowScrollLeft;
|
|
369
|
+
element.style.top = top + "px";
|
|
370
|
+
element.style.left = left + "px";
|
|
371
|
+
element.style.transformOrigin = origin;
|
|
372
|
+
gutter && (element.style.marginTop = origin === "bottom" ? "calc(var(--p-anchor-gutter) * -1)" : "calc(var(--p-anchor-gutter))");
|
|
297
373
|
}
|
|
298
374
|
},
|
|
299
|
-
relativePosition: function(
|
|
300
|
-
var
|
|
301
|
-
if (
|
|
302
|
-
var
|
|
303
|
-
width:
|
|
304
|
-
height:
|
|
305
|
-
} : this.getHiddenElementDimensions(
|
|
306
|
-
|
|
375
|
+
relativePosition: function relativePosition(element, target) {
|
|
376
|
+
var gutter = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true;
|
|
377
|
+
if (element) {
|
|
378
|
+
var elementDimensions = element.offsetParent ? {
|
|
379
|
+
width: element.offsetWidth,
|
|
380
|
+
height: element.offsetHeight
|
|
381
|
+
} : this.getHiddenElementDimensions(element);
|
|
382
|
+
var targetHeight = target.offsetHeight;
|
|
383
|
+
var targetOffset = target.getBoundingClientRect();
|
|
384
|
+
var viewport = this.getViewport();
|
|
385
|
+
var top, left, origin = "top";
|
|
386
|
+
if (targetOffset.top + targetHeight + elementDimensions.height > viewport.height) {
|
|
387
|
+
top = -1 * elementDimensions.height;
|
|
388
|
+
origin = "bottom";
|
|
389
|
+
if (targetOffset.top + top < 0) {
|
|
390
|
+
top = -1 * targetOffset.top;
|
|
391
|
+
}
|
|
392
|
+
} else {
|
|
393
|
+
top = targetHeight;
|
|
394
|
+
}
|
|
395
|
+
if (elementDimensions.width > viewport.width) {
|
|
396
|
+
left = targetOffset.left * -1;
|
|
397
|
+
} else if (targetOffset.left + elementDimensions.width > viewport.width) {
|
|
398
|
+
left = (targetOffset.left + elementDimensions.width - viewport.width) * -1;
|
|
399
|
+
} else {
|
|
400
|
+
left = 0;
|
|
401
|
+
}
|
|
402
|
+
element.style.top = top + "px";
|
|
403
|
+
element.style.left = left + "px";
|
|
404
|
+
element.style.transformOrigin = origin;
|
|
405
|
+
gutter && (element.style.marginTop = origin === "bottom" ? "calc(var(--p-anchor-gutter) * -1)" : "calc(var(--p-anchor-gutter))");
|
|
307
406
|
}
|
|
308
407
|
},
|
|
309
|
-
nestedPosition: function(
|
|
310
|
-
if (
|
|
311
|
-
var
|
|
312
|
-
|
|
408
|
+
nestedPosition: function nestedPosition(element, level) {
|
|
409
|
+
if (element) {
|
|
410
|
+
var parentItem = element.parentElement;
|
|
411
|
+
var elementOffset = this.getOffset(parentItem);
|
|
412
|
+
var viewport = this.getViewport();
|
|
413
|
+
var sublistWidth = element.offsetParent ? element.offsetWidth : this.getHiddenElementOuterWidth(element);
|
|
414
|
+
var itemOuterWidth = this.getOuterWidth(parentItem.children[0]);
|
|
415
|
+
var left;
|
|
416
|
+
if (parseInt(elementOffset.left, 10) + itemOuterWidth + sublistWidth > viewport.width - this.calculateScrollbarWidth()) {
|
|
417
|
+
if (parseInt(elementOffset.left, 10) < sublistWidth) {
|
|
418
|
+
if (level % 2 === 1) {
|
|
419
|
+
left = parseInt(elementOffset.left, 10) ? "-" + parseInt(elementOffset.left, 10) + "px" : "100%";
|
|
420
|
+
} else if (level % 2 === 0) {
|
|
421
|
+
left = viewport.width - sublistWidth - this.calculateScrollbarWidth() + "px";
|
|
422
|
+
}
|
|
423
|
+
} else {
|
|
424
|
+
left = "-100%";
|
|
425
|
+
}
|
|
426
|
+
} else {
|
|
427
|
+
left = "100%";
|
|
428
|
+
}
|
|
429
|
+
element.style.top = "0px";
|
|
430
|
+
element.style.left = left;
|
|
313
431
|
}
|
|
314
432
|
},
|
|
315
|
-
getParentNode: function(
|
|
316
|
-
var
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
var
|
|
325
|
-
|
|
326
|
-
|
|
433
|
+
getParentNode: function getParentNode(element) {
|
|
434
|
+
var parent = element === null || element === void 0 ? void 0 : element.parentNode;
|
|
435
|
+
if (parent && parent instanceof ShadowRoot && parent.host) {
|
|
436
|
+
parent = parent.host;
|
|
437
|
+
}
|
|
438
|
+
return parent;
|
|
439
|
+
},
|
|
440
|
+
getParents: function getParents(element) {
|
|
441
|
+
var parents = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
|
|
442
|
+
var parent = this.getParentNode(element);
|
|
443
|
+
return parent === null ? parents : this.getParents(parent, parents.concat([parent]));
|
|
444
|
+
},
|
|
445
|
+
getScrollableParents: function getScrollableParents(element) {
|
|
446
|
+
var scrollableParents = [];
|
|
447
|
+
if (element) {
|
|
448
|
+
var parents = this.getParents(element);
|
|
449
|
+
var overflowRegex = /(auto|scroll)/;
|
|
450
|
+
var overflowCheck = function overflowCheck2(node) {
|
|
327
451
|
try {
|
|
328
|
-
var
|
|
329
|
-
return
|
|
330
|
-
} catch {
|
|
331
|
-
return
|
|
452
|
+
var styleDeclaration = window["getComputedStyle"](node, null);
|
|
453
|
+
return overflowRegex.test(styleDeclaration.getPropertyValue("overflow")) || overflowRegex.test(styleDeclaration.getPropertyValue("overflowX")) || overflowRegex.test(styleDeclaration.getPropertyValue("overflowY"));
|
|
454
|
+
} catch (err) {
|
|
455
|
+
return false;
|
|
332
456
|
}
|
|
333
|
-
}
|
|
457
|
+
};
|
|
458
|
+
var _iterator = _createForOfIteratorHelper$1(parents), _step;
|
|
334
459
|
try {
|
|
335
|
-
for (
|
|
336
|
-
var
|
|
337
|
-
|
|
338
|
-
|
|
460
|
+
for (_iterator.s(); !(_step = _iterator.n()).done; ) {
|
|
461
|
+
var parent = _step.value;
|
|
462
|
+
var scrollSelectors = parent.nodeType === 1 && parent.dataset["scrollselectors"];
|
|
463
|
+
if (scrollSelectors) {
|
|
464
|
+
var selectors = scrollSelectors.split(",");
|
|
465
|
+
var _iterator2 = _createForOfIteratorHelper$1(selectors), _step2;
|
|
339
466
|
try {
|
|
340
|
-
for (
|
|
341
|
-
var
|
|
342
|
-
|
|
467
|
+
for (_iterator2.s(); !(_step2 = _iterator2.n()).done; ) {
|
|
468
|
+
var selector = _step2.value;
|
|
469
|
+
var el = this.findSingle(parent, selector);
|
|
470
|
+
if (el && overflowCheck(el)) {
|
|
471
|
+
scrollableParents.push(el);
|
|
472
|
+
}
|
|
343
473
|
}
|
|
344
|
-
} catch (
|
|
345
|
-
|
|
474
|
+
} catch (err) {
|
|
475
|
+
_iterator2.e(err);
|
|
346
476
|
} finally {
|
|
347
|
-
|
|
477
|
+
_iterator2.f();
|
|
348
478
|
}
|
|
349
479
|
}
|
|
350
|
-
|
|
480
|
+
if (parent.nodeType !== 9 && overflowCheck(parent)) {
|
|
481
|
+
scrollableParents.push(parent);
|
|
482
|
+
}
|
|
351
483
|
}
|
|
352
|
-
} catch (
|
|
353
|
-
|
|
484
|
+
} catch (err) {
|
|
485
|
+
_iterator.e(err);
|
|
354
486
|
} finally {
|
|
355
|
-
|
|
487
|
+
_iterator.f();
|
|
356
488
|
}
|
|
357
489
|
}
|
|
358
|
-
return
|
|
359
|
-
},
|
|
360
|
-
getHiddenElementOuterHeight: function(
|
|
361
|
-
if (
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
490
|
+
return scrollableParents;
|
|
491
|
+
},
|
|
492
|
+
getHiddenElementOuterHeight: function getHiddenElementOuterHeight(element) {
|
|
493
|
+
if (element) {
|
|
494
|
+
element.style.visibility = "hidden";
|
|
495
|
+
element.style.display = "block";
|
|
496
|
+
var elementHeight = element.offsetHeight;
|
|
497
|
+
element.style.display = "none";
|
|
498
|
+
element.style.visibility = "visible";
|
|
499
|
+
return elementHeight;
|
|
365
500
|
}
|
|
366
501
|
return 0;
|
|
367
502
|
},
|
|
368
|
-
getHiddenElementOuterWidth: function(
|
|
369
|
-
if (
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
503
|
+
getHiddenElementOuterWidth: function getHiddenElementOuterWidth(element) {
|
|
504
|
+
if (element) {
|
|
505
|
+
element.style.visibility = "hidden";
|
|
506
|
+
element.style.display = "block";
|
|
507
|
+
var elementWidth = element.offsetWidth;
|
|
508
|
+
element.style.display = "none";
|
|
509
|
+
element.style.visibility = "visible";
|
|
510
|
+
return elementWidth;
|
|
373
511
|
}
|
|
374
512
|
return 0;
|
|
375
513
|
},
|
|
376
|
-
getHiddenElementDimensions: function(
|
|
377
|
-
if (
|
|
378
|
-
var
|
|
379
|
-
|
|
514
|
+
getHiddenElementDimensions: function getHiddenElementDimensions(element) {
|
|
515
|
+
if (element) {
|
|
516
|
+
var dimensions = {};
|
|
517
|
+
element.style.visibility = "hidden";
|
|
518
|
+
element.style.display = "block";
|
|
519
|
+
dimensions.width = element.offsetWidth;
|
|
520
|
+
dimensions.height = element.offsetHeight;
|
|
521
|
+
element.style.display = "none";
|
|
522
|
+
element.style.visibility = "visible";
|
|
523
|
+
return dimensions;
|
|
380
524
|
}
|
|
381
525
|
return 0;
|
|
382
526
|
},
|
|
383
|
-
fadeIn: function(
|
|
384
|
-
if (
|
|
385
|
-
|
|
386
|
-
var
|
|
387
|
-
|
|
527
|
+
fadeIn: function fadeIn(element, duration) {
|
|
528
|
+
if (element) {
|
|
529
|
+
element.style.opacity = 0;
|
|
530
|
+
var last = +/* @__PURE__ */ new Date();
|
|
531
|
+
var opacity = 0;
|
|
532
|
+
var tick = function tick2() {
|
|
533
|
+
opacity = +element.style.opacity + ((/* @__PURE__ */ new Date()).getTime() - last) / duration;
|
|
534
|
+
element.style.opacity = opacity;
|
|
535
|
+
last = +/* @__PURE__ */ new Date();
|
|
536
|
+
if (+opacity < 1) {
|
|
537
|
+
window.requestAnimationFrame && requestAnimationFrame(tick2) || setTimeout(tick2, 16);
|
|
538
|
+
}
|
|
388
539
|
};
|
|
389
|
-
|
|
540
|
+
tick();
|
|
390
541
|
}
|
|
391
542
|
},
|
|
392
|
-
fadeOut: function(
|
|
393
|
-
if (
|
|
394
|
-
var
|
|
395
|
-
|
|
396
|
-
|
|
543
|
+
fadeOut: function fadeOut(element, ms) {
|
|
544
|
+
if (element) {
|
|
545
|
+
var opacity = 1, interval = 50, duration = ms, gap = interval / duration;
|
|
546
|
+
var fading = setInterval(function() {
|
|
547
|
+
opacity -= gap;
|
|
548
|
+
if (opacity <= 0) {
|
|
549
|
+
opacity = 0;
|
|
550
|
+
clearInterval(fading);
|
|
551
|
+
}
|
|
552
|
+
element.style.opacity = opacity;
|
|
553
|
+
}, interval);
|
|
554
|
+
}
|
|
397
555
|
},
|
|
398
|
-
getUserAgent: function() {
|
|
556
|
+
getUserAgent: function getUserAgent() {
|
|
399
557
|
return navigator.userAgent;
|
|
400
558
|
},
|
|
401
|
-
appendChild: function(
|
|
402
|
-
if (this.isElement(
|
|
403
|
-
else if (
|
|
404
|
-
else throw new Error("Cannot append " +
|
|
405
|
-
},
|
|
406
|
-
isElement: function(
|
|
407
|
-
return (typeof HTMLElement
|
|
408
|
-
},
|
|
409
|
-
scrollInView: function(
|
|
410
|
-
var
|
|
411
|
-
|
|
559
|
+
appendChild: function appendChild(element, target) {
|
|
560
|
+
if (this.isElement(target)) target.appendChild(element);
|
|
561
|
+
else if (target.el && target.elElement) target.elElement.appendChild(element);
|
|
562
|
+
else throw new Error("Cannot append " + target + " to " + element);
|
|
563
|
+
},
|
|
564
|
+
isElement: function isElement(obj) {
|
|
565
|
+
return (typeof HTMLElement === "undefined" ? "undefined" : _typeof$3(HTMLElement)) === "object" ? obj instanceof HTMLElement : obj && _typeof$3(obj) === "object" && obj !== null && obj.nodeType === 1 && typeof obj.nodeName === "string";
|
|
566
|
+
},
|
|
567
|
+
scrollInView: function scrollInView(container, item) {
|
|
568
|
+
var borderTopValue = getComputedStyle(container).getPropertyValue("borderTopWidth");
|
|
569
|
+
var borderTop = borderTopValue ? parseFloat(borderTopValue) : 0;
|
|
570
|
+
var paddingTopValue = getComputedStyle(container).getPropertyValue("paddingTop");
|
|
571
|
+
var paddingTop = paddingTopValue ? parseFloat(paddingTopValue) : 0;
|
|
572
|
+
var containerRect = container.getBoundingClientRect();
|
|
573
|
+
var itemRect = item.getBoundingClientRect();
|
|
574
|
+
var offset = itemRect.top + document.body.scrollTop - (containerRect.top + document.body.scrollTop) - borderTop - paddingTop;
|
|
575
|
+
var scroll = container.scrollTop;
|
|
576
|
+
var elementHeight = container.clientHeight;
|
|
577
|
+
var itemHeight = this.getOuterHeight(item);
|
|
578
|
+
if (offset < 0) {
|
|
579
|
+
container.scrollTop = scroll + offset;
|
|
580
|
+
} else if (offset + itemHeight > elementHeight) {
|
|
581
|
+
container.scrollTop = scroll + offset - elementHeight + itemHeight;
|
|
582
|
+
}
|
|
412
583
|
},
|
|
413
|
-
clearSelection: function() {
|
|
414
|
-
if (window.getSelection)
|
|
415
|
-
|
|
416
|
-
|
|
584
|
+
clearSelection: function clearSelection() {
|
|
585
|
+
if (window.getSelection) {
|
|
586
|
+
if (window.getSelection().empty) {
|
|
587
|
+
window.getSelection().empty();
|
|
588
|
+
} else if (window.getSelection().removeAllRanges && window.getSelection().rangeCount > 0 && window.getSelection().getRangeAt(0).getClientRects().length > 0) {
|
|
589
|
+
window.getSelection().removeAllRanges();
|
|
590
|
+
}
|
|
591
|
+
} else if (document["selection"] && document["selection"].empty) {
|
|
417
592
|
try {
|
|
418
|
-
document
|
|
419
|
-
} catch {
|
|
593
|
+
document["selection"].empty();
|
|
594
|
+
} catch (error) {
|
|
420
595
|
}
|
|
596
|
+
}
|
|
421
597
|
},
|
|
422
|
-
getSelection: function() {
|
|
423
|
-
|
|
598
|
+
getSelection: function getSelection() {
|
|
599
|
+
if (window.getSelection) return window.getSelection().toString();
|
|
600
|
+
else if (document.getSelection) return document.getSelection().toString();
|
|
601
|
+
else if (document["selection"]) return document["selection"].createRange().text;
|
|
602
|
+
return null;
|
|
424
603
|
},
|
|
425
|
-
calculateScrollbarWidth: function() {
|
|
604
|
+
calculateScrollbarWidth: function calculateScrollbarWidth() {
|
|
426
605
|
if (this.calculatedScrollbarWidth != null) return this.calculatedScrollbarWidth;
|
|
427
|
-
var
|
|
428
|
-
this.addStyles(
|
|
606
|
+
var scrollDiv = document.createElement("div");
|
|
607
|
+
this.addStyles(scrollDiv, {
|
|
429
608
|
width: "100px",
|
|
430
609
|
height: "100px",
|
|
431
610
|
overflow: "scroll",
|
|
432
611
|
position: "absolute",
|
|
433
612
|
top: "-9999px"
|
|
434
|
-
})
|
|
435
|
-
|
|
436
|
-
|
|
613
|
+
});
|
|
614
|
+
document.body.appendChild(scrollDiv);
|
|
615
|
+
var scrollbarWidth = scrollDiv.offsetWidth - scrollDiv.clientWidth;
|
|
616
|
+
document.body.removeChild(scrollDiv);
|
|
617
|
+
this.calculatedScrollbarWidth = scrollbarWidth;
|
|
618
|
+
return scrollbarWidth;
|
|
437
619
|
},
|
|
438
|
-
calculateBodyScrollbarWidth: function() {
|
|
620
|
+
calculateBodyScrollbarWidth: function calculateBodyScrollbarWidth() {
|
|
439
621
|
return window.innerWidth - document.documentElement.offsetWidth;
|
|
440
622
|
},
|
|
441
|
-
getBrowser: function() {
|
|
623
|
+
getBrowser: function getBrowser() {
|
|
442
624
|
if (!this.browser) {
|
|
443
|
-
var
|
|
444
|
-
this.browser = {}
|
|
625
|
+
var matched = this.resolveUserAgent();
|
|
626
|
+
this.browser = {};
|
|
627
|
+
if (matched.browser) {
|
|
628
|
+
this.browser[matched.browser] = true;
|
|
629
|
+
this.browser["version"] = matched.version;
|
|
630
|
+
}
|
|
631
|
+
if (this.browser["chrome"]) {
|
|
632
|
+
this.browser["webkit"] = true;
|
|
633
|
+
} else if (this.browser["webkit"]) {
|
|
634
|
+
this.browser["safari"] = true;
|
|
635
|
+
}
|
|
445
636
|
}
|
|
446
637
|
return this.browser;
|
|
447
638
|
},
|
|
448
|
-
resolveUserAgent: function() {
|
|
449
|
-
var
|
|
639
|
+
resolveUserAgent: function resolveUserAgent() {
|
|
640
|
+
var ua = navigator.userAgent.toLowerCase();
|
|
641
|
+
var match = /(chrome)[ ]([\w.]+)/.exec(ua) || /(webkit)[ ]([\w.]+)/.exec(ua) || /(opera)(?:.*version|)[ ]([\w.]+)/.exec(ua) || /(msie) ([\w.]+)/.exec(ua) || ua.indexOf("compatible") < 0 && /(mozilla)(?:.*? rv:([\w.]+)|)/.exec(ua) || [];
|
|
450
642
|
return {
|
|
451
|
-
browser:
|
|
452
|
-
version:
|
|
643
|
+
browser: match[1] || "",
|
|
644
|
+
version: match[2] || "0"
|
|
453
645
|
};
|
|
454
646
|
},
|
|
455
|
-
isVisible: function(
|
|
456
|
-
return
|
|
457
|
-
},
|
|
458
|
-
invokeElementMethod: function(
|
|
459
|
-
|
|
460
|
-
},
|
|
461
|
-
isExist: function(
|
|
462
|
-
return !!(
|
|
463
|
-
},
|
|
464
|
-
isClient: function() {
|
|
465
|
-
return !!(typeof window < "u" && window.document && window.document.createElement);
|
|
466
|
-
},
|
|
467
|
-
focus: function(t, e) {
|
|
468
|
-
t && document.activeElement !== t && t.focus(e);
|
|
469
|
-
},
|
|
470
|
-
isFocusableElement: function(t) {
|
|
471
|
-
var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "";
|
|
472
|
-
return this.isElement(t) ? t.matches('button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])'.concat(e, `,
|
|
473
|
-
[href][clientHeight][clientWidth]:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])`).concat(e, `,
|
|
474
|
-
input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])`).concat(e, `,
|
|
475
|
-
select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])`).concat(e, `,
|
|
476
|
-
textarea:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])`).concat(e, `,
|
|
477
|
-
[tabIndex]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])`).concat(e, `,
|
|
478
|
-
[contenteditable]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])`).concat(e)) : !1;
|
|
479
|
-
},
|
|
480
|
-
getFocusableElements: function(t) {
|
|
481
|
-
var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "", r = this.find(t, 'button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])'.concat(e, `,
|
|
482
|
-
[href][clientHeight][clientWidth]:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])`).concat(e, `,
|
|
483
|
-
input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])`).concat(e, `,
|
|
484
|
-
select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])`).concat(e, `,
|
|
485
|
-
textarea:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])`).concat(e, `,
|
|
486
|
-
[tabIndex]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])`).concat(e, `,
|
|
487
|
-
[contenteditable]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])`).concat(e)), i = [], o = x(r), a;
|
|
488
|
-
try {
|
|
489
|
-
for (o.s(); !(a = o.n()).done; ) {
|
|
490
|
-
var s = a.value;
|
|
491
|
-
getComputedStyle(s).display != "none" && getComputedStyle(s).visibility != "hidden" && i.push(s);
|
|
492
|
-
}
|
|
493
|
-
} catch (u) {
|
|
494
|
-
o.e(u);
|
|
495
|
-
} finally {
|
|
496
|
-
o.f();
|
|
497
|
-
}
|
|
498
|
-
return i;
|
|
647
|
+
isVisible: function isVisible(element) {
|
|
648
|
+
return element && element.offsetParent != null;
|
|
649
|
+
},
|
|
650
|
+
invokeElementMethod: function invokeElementMethod(element, methodName, args) {
|
|
651
|
+
element[methodName].apply(element, args);
|
|
652
|
+
},
|
|
653
|
+
isExist: function isExist(element) {
|
|
654
|
+
return !!(element !== null && typeof element !== "undefined" && element.nodeName && this.getParentNode(element));
|
|
499
655
|
},
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
return r.length > 0 ? r[0] : null;
|
|
656
|
+
isClient: function isClient() {
|
|
657
|
+
return !!(typeof window !== "undefined" && window.document && window.document.createElement);
|
|
503
658
|
},
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
return r.length > 0 ? r[r.length - 1] : null;
|
|
659
|
+
focus: function focus(el, options) {
|
|
660
|
+
el && document.activeElement !== el && el.focus(options);
|
|
507
661
|
},
|
|
508
|
-
|
|
509
|
-
var
|
|
510
|
-
|
|
511
|
-
}) : -1, a = o > -1 && i.length >= o + 1 ? o + 1 : -1;
|
|
512
|
-
return a > -1 ? i[a] : null;
|
|
662
|
+
isFocusableElement: function isFocusableElement(element) {
|
|
663
|
+
var selector = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "";
|
|
664
|
+
return this.isElement(element) ? element.matches('button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])'.concat(selector, ',\n [href][clientHeight][clientWidth]:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])').concat(selector, ',\n input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])').concat(selector, ',\n select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])').concat(selector, ',\n textarea:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])').concat(selector, ',\n [tabIndex]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])').concat(selector, ',\n [contenteditable]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])').concat(selector)) : false;
|
|
513
665
|
},
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
666
|
+
getFocusableElements: function getFocusableElements(element) {
|
|
667
|
+
var selector = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "";
|
|
668
|
+
var focusableElements = this.find(element, 'button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])'.concat(selector, ',\n [href][clientHeight][clientWidth]:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])').concat(selector, ',\n input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])').concat(selector, ',\n select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])').concat(selector, ',\n textarea:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])').concat(selector, ',\n [tabIndex]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])').concat(selector, ',\n [contenteditable]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])').concat(selector));
|
|
669
|
+
var visibleFocusableElements = [];
|
|
670
|
+
var _iterator3 = _createForOfIteratorHelper$1(focusableElements), _step3;
|
|
671
|
+
try {
|
|
672
|
+
for (_iterator3.s(); !(_step3 = _iterator3.n()).done; ) {
|
|
673
|
+
var focusableElement = _step3.value;
|
|
674
|
+
if (getComputedStyle(focusableElement).display != "none" && getComputedStyle(focusableElement).visibility != "hidden") visibleFocusableElements.push(focusableElement);
|
|
675
|
+
}
|
|
676
|
+
} catch (err) {
|
|
677
|
+
_iterator3.e(err);
|
|
678
|
+
} finally {
|
|
679
|
+
_iterator3.f();
|
|
680
|
+
}
|
|
681
|
+
return visibleFocusableElements;
|
|
682
|
+
},
|
|
683
|
+
getFirstFocusableElement: function getFirstFocusableElement(element, selector) {
|
|
684
|
+
var focusableElements = this.getFocusableElements(element, selector);
|
|
685
|
+
return focusableElements.length > 0 ? focusableElements[0] : null;
|
|
686
|
+
},
|
|
687
|
+
getLastFocusableElement: function getLastFocusableElement(element, selector) {
|
|
688
|
+
var focusableElements = this.getFocusableElements(element, selector);
|
|
689
|
+
return focusableElements.length > 0 ? focusableElements[focusableElements.length - 1] : null;
|
|
690
|
+
},
|
|
691
|
+
getNextFocusableElement: function getNextFocusableElement(container, element, selector) {
|
|
692
|
+
var focusableElements = this.getFocusableElements(container, selector);
|
|
693
|
+
var index2 = focusableElements.length > 0 ? focusableElements.findIndex(function(el) {
|
|
694
|
+
return el === element;
|
|
695
|
+
}) : -1;
|
|
696
|
+
var nextIndex = index2 > -1 && focusableElements.length >= index2 + 1 ? index2 + 1 : -1;
|
|
697
|
+
return nextIndex > -1 ? focusableElements[nextIndex] : null;
|
|
698
|
+
},
|
|
699
|
+
getPreviousElementSibling: function getPreviousElementSibling(element, selector) {
|
|
700
|
+
var previousElement = element.previousElementSibling;
|
|
701
|
+
while (previousElement) {
|
|
702
|
+
if (previousElement.matches(selector)) {
|
|
703
|
+
return previousElement;
|
|
704
|
+
} else {
|
|
705
|
+
previousElement = previousElement.previousElementSibling;
|
|
706
|
+
}
|
|
519
707
|
}
|
|
520
708
|
return null;
|
|
521
709
|
},
|
|
522
|
-
getNextElementSibling: function(
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
710
|
+
getNextElementSibling: function getNextElementSibling(element, selector) {
|
|
711
|
+
var nextElement = element.nextElementSibling;
|
|
712
|
+
while (nextElement) {
|
|
713
|
+
if (nextElement.matches(selector)) {
|
|
714
|
+
return nextElement;
|
|
715
|
+
} else {
|
|
716
|
+
nextElement = nextElement.nextElementSibling;
|
|
717
|
+
}
|
|
527
718
|
}
|
|
528
719
|
return null;
|
|
529
720
|
},
|
|
530
|
-
isClickable: function(
|
|
531
|
-
if (
|
|
532
|
-
var
|
|
533
|
-
|
|
721
|
+
isClickable: function isClickable(element) {
|
|
722
|
+
if (element) {
|
|
723
|
+
var targetNode = element.nodeName;
|
|
724
|
+
var parentNode = element.parentElement && element.parentElement.nodeName;
|
|
725
|
+
return targetNode === "INPUT" || targetNode === "TEXTAREA" || targetNode === "BUTTON" || targetNode === "A" || parentNode === "INPUT" || parentNode === "TEXTAREA" || parentNode === "BUTTON" || parentNode === "A" || !!element.closest(".p-button, .p-checkbox, .p-radiobutton");
|
|
726
|
+
}
|
|
727
|
+
return false;
|
|
728
|
+
},
|
|
729
|
+
applyStyle: function applyStyle(element, style) {
|
|
730
|
+
if (typeof style === "string") {
|
|
731
|
+
element.style.cssText = style;
|
|
732
|
+
} else {
|
|
733
|
+
for (var prop in style) {
|
|
734
|
+
element.style[prop] = style[prop];
|
|
735
|
+
}
|
|
534
736
|
}
|
|
535
|
-
return !1;
|
|
536
|
-
},
|
|
537
|
-
applyStyle: function(t, e) {
|
|
538
|
-
if (typeof e == "string")
|
|
539
|
-
t.style.cssText = e;
|
|
540
|
-
else
|
|
541
|
-
for (var r in e)
|
|
542
|
-
t.style[r] = e[r];
|
|
543
737
|
},
|
|
544
|
-
isIOS: function() {
|
|
545
|
-
return /iPad|iPhone|iPod/.test(navigator.userAgent) && !window
|
|
738
|
+
isIOS: function isIOS() {
|
|
739
|
+
return /iPad|iPhone|iPod/.test(navigator.userAgent) && !window["MSStream"];
|
|
546
740
|
},
|
|
547
|
-
isAndroid: function() {
|
|
741
|
+
isAndroid: function isAndroid() {
|
|
548
742
|
return /(android)/i.test(navigator.userAgent);
|
|
549
743
|
},
|
|
550
|
-
isTouchDevice: function() {
|
|
744
|
+
isTouchDevice: function isTouchDevice() {
|
|
551
745
|
return "ontouchstart" in window || navigator.maxTouchPoints > 0 || navigator.msMaxTouchPoints > 0;
|
|
552
746
|
},
|
|
553
|
-
hasCSSAnimation: function(
|
|
554
|
-
if (
|
|
555
|
-
var
|
|
556
|
-
|
|
747
|
+
hasCSSAnimation: function hasCSSAnimation(element) {
|
|
748
|
+
if (element) {
|
|
749
|
+
var style = getComputedStyle(element);
|
|
750
|
+
var animationDuration = parseFloat(style.getPropertyValue("animation-duration") || "0");
|
|
751
|
+
return animationDuration > 0;
|
|
557
752
|
}
|
|
558
|
-
return
|
|
753
|
+
return false;
|
|
559
754
|
},
|
|
560
|
-
hasCSSTransition: function(
|
|
561
|
-
if (
|
|
562
|
-
var
|
|
563
|
-
|
|
755
|
+
hasCSSTransition: function hasCSSTransition(element) {
|
|
756
|
+
if (element) {
|
|
757
|
+
var style = getComputedStyle(element);
|
|
758
|
+
var transitionDuration = parseFloat(style.getPropertyValue("transition-duration") || "0");
|
|
759
|
+
return transitionDuration > 0;
|
|
564
760
|
}
|
|
565
|
-
return
|
|
761
|
+
return false;
|
|
566
762
|
},
|
|
567
|
-
exportCSV: function(
|
|
568
|
-
var
|
|
763
|
+
exportCSV: function exportCSV(csv, filename) {
|
|
764
|
+
var blob = new Blob([csv], {
|
|
569
765
|
type: "application/csv;charset=utf-8;"
|
|
570
766
|
});
|
|
571
|
-
if (window.navigator.msSaveOrOpenBlob)
|
|
572
|
-
navigator.msSaveOrOpenBlob(
|
|
573
|
-
else {
|
|
574
|
-
var
|
|
575
|
-
|
|
767
|
+
if (window.navigator.msSaveOrOpenBlob) {
|
|
768
|
+
navigator.msSaveOrOpenBlob(blob, filename + ".csv");
|
|
769
|
+
} else {
|
|
770
|
+
var link = document.createElement("a");
|
|
771
|
+
if (link.download !== void 0) {
|
|
772
|
+
link.setAttribute("href", URL.createObjectURL(blob));
|
|
773
|
+
link.setAttribute("download", filename + ".csv");
|
|
774
|
+
link.style.display = "none";
|
|
775
|
+
document.body.appendChild(link);
|
|
776
|
+
link.click();
|
|
777
|
+
document.body.removeChild(link);
|
|
778
|
+
} else {
|
|
779
|
+
csv = "data:text/csv;charset=utf-8," + csv;
|
|
780
|
+
window.open(encodeURI(csv));
|
|
781
|
+
}
|
|
576
782
|
}
|
|
577
783
|
},
|
|
578
|
-
blockBodyScroll: function() {
|
|
579
|
-
var
|
|
580
|
-
document.body.style.setProperty("--scrollbar-width", this.calculateBodyScrollbarWidth() + "px")
|
|
784
|
+
blockBodyScroll: function blockBodyScroll() {
|
|
785
|
+
var className = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "p-overflow-hidden";
|
|
786
|
+
document.body.style.setProperty("--scrollbar-width", this.calculateBodyScrollbarWidth() + "px");
|
|
787
|
+
this.addClass(document.body, className);
|
|
581
788
|
},
|
|
582
|
-
unblockBodyScroll: function() {
|
|
583
|
-
var
|
|
584
|
-
document.body.style.removeProperty("--scrollbar-width")
|
|
789
|
+
unblockBodyScroll: function unblockBodyScroll() {
|
|
790
|
+
var className = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "p-overflow-hidden";
|
|
791
|
+
document.body.style.removeProperty("--scrollbar-width");
|
|
792
|
+
this.removeClass(document.body, className);
|
|
585
793
|
}
|
|
586
794
|
};
|
|
587
|
-
function
|
|
795
|
+
function _typeof$2(o) {
|
|
588
796
|
"@babel/helpers - typeof";
|
|
589
|
-
return
|
|
590
|
-
return typeof
|
|
591
|
-
} : function(
|
|
592
|
-
return
|
|
593
|
-
},
|
|
797
|
+
return _typeof$2 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
|
|
798
|
+
return typeof o2;
|
|
799
|
+
} : function(o2) {
|
|
800
|
+
return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
|
|
801
|
+
}, _typeof$2(o);
|
|
594
802
|
}
|
|
595
|
-
function
|
|
596
|
-
if (!(
|
|
803
|
+
function _classCallCheck$1(instance, Constructor) {
|
|
804
|
+
if (!(instance instanceof Constructor)) {
|
|
597
805
|
throw new TypeError("Cannot call a class as a function");
|
|
806
|
+
}
|
|
598
807
|
}
|
|
599
|
-
function
|
|
600
|
-
for (var
|
|
601
|
-
var
|
|
602
|
-
|
|
808
|
+
function _defineProperties$1(target, props) {
|
|
809
|
+
for (var i = 0; i < props.length; i++) {
|
|
810
|
+
var descriptor = props[i];
|
|
811
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
|
812
|
+
descriptor.configurable = true;
|
|
813
|
+
if ("value" in descriptor) descriptor.writable = true;
|
|
814
|
+
Object.defineProperty(target, _toPropertyKey$1(descriptor.key), descriptor);
|
|
603
815
|
}
|
|
604
816
|
}
|
|
605
|
-
function
|
|
606
|
-
|
|
817
|
+
function _createClass$1(Constructor, protoProps, staticProps) {
|
|
818
|
+
if (protoProps) _defineProperties$1(Constructor.prototype, protoProps);
|
|
819
|
+
Object.defineProperty(Constructor, "prototype", { writable: false });
|
|
820
|
+
return Constructor;
|
|
607
821
|
}
|
|
608
|
-
function
|
|
609
|
-
var
|
|
610
|
-
return
|
|
822
|
+
function _toPropertyKey$1(t) {
|
|
823
|
+
var i = _toPrimitive$1(t, "string");
|
|
824
|
+
return "symbol" == _typeof$2(i) ? i : String(i);
|
|
611
825
|
}
|
|
612
|
-
function
|
|
613
|
-
if (
|
|
614
|
-
var e =
|
|
615
|
-
if (
|
|
616
|
-
var
|
|
617
|
-
if (
|
|
826
|
+
function _toPrimitive$1(t, r) {
|
|
827
|
+
if ("object" != _typeof$2(t) || !t) return t;
|
|
828
|
+
var e = t[Symbol.toPrimitive];
|
|
829
|
+
if (void 0 !== e) {
|
|
830
|
+
var i = e.call(t, r);
|
|
831
|
+
if ("object" != _typeof$2(i)) return i;
|
|
618
832
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
619
833
|
}
|
|
620
|
-
return String(
|
|
834
|
+
return String(t);
|
|
621
835
|
}
|
|
622
|
-
var
|
|
623
|
-
function
|
|
624
|
-
var
|
|
836
|
+
var ConnectedOverlayScrollHandler = /* @__PURE__ */ function() {
|
|
837
|
+
function ConnectedOverlayScrollHandler2(element) {
|
|
838
|
+
var listener = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : function() {
|
|
625
839
|
};
|
|
626
|
-
|
|
840
|
+
_classCallCheck$1(this, ConnectedOverlayScrollHandler2);
|
|
841
|
+
this.element = element;
|
|
842
|
+
this.listener = listener;
|
|
627
843
|
}
|
|
628
|
-
|
|
844
|
+
_createClass$1(ConnectedOverlayScrollHandler2, [{
|
|
629
845
|
key: "bindScrollListener",
|
|
630
|
-
value: function() {
|
|
631
|
-
this.scrollableParents =
|
|
632
|
-
for (var
|
|
633
|
-
this.scrollableParents[
|
|
846
|
+
value: function bindScrollListener() {
|
|
847
|
+
this.scrollableParents = DomHandler.getScrollableParents(this.element);
|
|
848
|
+
for (var i = 0; i < this.scrollableParents.length; i++) {
|
|
849
|
+
this.scrollableParents[i].addEventListener("scroll", this.listener);
|
|
850
|
+
}
|
|
634
851
|
}
|
|
635
852
|
}, {
|
|
636
853
|
key: "unbindScrollListener",
|
|
637
|
-
value: function() {
|
|
638
|
-
if (this.scrollableParents)
|
|
639
|
-
for (var
|
|
640
|
-
this.scrollableParents[
|
|
854
|
+
value: function unbindScrollListener() {
|
|
855
|
+
if (this.scrollableParents) {
|
|
856
|
+
for (var i = 0; i < this.scrollableParents.length; i++) {
|
|
857
|
+
this.scrollableParents[i].removeEventListener("scroll", this.listener);
|
|
858
|
+
}
|
|
859
|
+
}
|
|
641
860
|
}
|
|
642
861
|
}, {
|
|
643
862
|
key: "destroy",
|
|
644
|
-
value: function() {
|
|
645
|
-
this.unbindScrollListener()
|
|
863
|
+
value: function destroy() {
|
|
864
|
+
this.unbindScrollListener();
|
|
865
|
+
this.element = null;
|
|
866
|
+
this.listener = null;
|
|
867
|
+
this.scrollableParents = null;
|
|
646
868
|
}
|
|
647
|
-
}])
|
|
869
|
+
}]);
|
|
870
|
+
return ConnectedOverlayScrollHandler2;
|
|
648
871
|
}();
|
|
649
|
-
function
|
|
650
|
-
var
|
|
872
|
+
function primebus() {
|
|
873
|
+
var allHandlers = /* @__PURE__ */ new Map();
|
|
651
874
|
return {
|
|
652
|
-
on: function(
|
|
653
|
-
var
|
|
654
|
-
|
|
875
|
+
on: function on(type, handler2) {
|
|
876
|
+
var handlers = allHandlers.get(type);
|
|
877
|
+
if (!handlers) handlers = [handler2];
|
|
878
|
+
else handlers.push(handler2);
|
|
879
|
+
allHandlers.set(type, handlers);
|
|
655
880
|
},
|
|
656
|
-
off: function(
|
|
657
|
-
var
|
|
658
|
-
|
|
881
|
+
off: function off(type, handler2) {
|
|
882
|
+
var handlers = allHandlers.get(type);
|
|
883
|
+
if (handlers) {
|
|
884
|
+
handlers.splice(handlers.indexOf(handler2) >>> 0, 1);
|
|
885
|
+
}
|
|
659
886
|
},
|
|
660
|
-
emit: function(
|
|
661
|
-
var
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
887
|
+
emit: function emit(type, evt) {
|
|
888
|
+
var handlers = allHandlers.get(type);
|
|
889
|
+
if (handlers) {
|
|
890
|
+
handlers.slice().map(function(handler2) {
|
|
891
|
+
handler2(evt);
|
|
892
|
+
});
|
|
893
|
+
}
|
|
665
894
|
}
|
|
666
895
|
};
|
|
667
896
|
}
|
|
668
|
-
function
|
|
669
|
-
return
|
|
897
|
+
function _slicedToArray(arr, i) {
|
|
898
|
+
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray$2(arr, i) || _nonIterableRest();
|
|
670
899
|
}
|
|
671
|
-
function
|
|
672
|
-
throw new TypeError(
|
|
673
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
900
|
+
function _nonIterableRest() {
|
|
901
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
674
902
|
}
|
|
675
|
-
function
|
|
676
|
-
var
|
|
677
|
-
if (
|
|
678
|
-
var
|
|
903
|
+
function _iterableToArrayLimit(r, l) {
|
|
904
|
+
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
905
|
+
if (null != t) {
|
|
906
|
+
var e, n, i, u, a = [], f = true, o = false;
|
|
679
907
|
try {
|
|
680
|
-
if (
|
|
681
|
-
|
|
682
|
-
|
|
908
|
+
if (i = (t = t.call(r)).next, 0 === l) ;
|
|
909
|
+
else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = true) ;
|
|
910
|
+
} catch (r2) {
|
|
911
|
+
o = true, n = r2;
|
|
683
912
|
} finally {
|
|
684
913
|
try {
|
|
685
|
-
if (!
|
|
914
|
+
if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
|
|
686
915
|
} finally {
|
|
687
|
-
if (
|
|
916
|
+
if (o) throw n;
|
|
688
917
|
}
|
|
689
918
|
}
|
|
690
|
-
return
|
|
919
|
+
return a;
|
|
691
920
|
}
|
|
692
921
|
}
|
|
693
|
-
function
|
|
694
|
-
if (Array.isArray(
|
|
922
|
+
function _arrayWithHoles(arr) {
|
|
923
|
+
if (Array.isArray(arr)) return arr;
|
|
695
924
|
}
|
|
696
|
-
function
|
|
697
|
-
return
|
|
925
|
+
function _toConsumableArray$2(arr) {
|
|
926
|
+
return _arrayWithoutHoles$2(arr) || _iterableToArray$2(arr) || _unsupportedIterableToArray$2(arr) || _nonIterableSpread$2();
|
|
698
927
|
}
|
|
699
|
-
function
|
|
700
|
-
throw new TypeError(
|
|
701
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
928
|
+
function _nonIterableSpread$2() {
|
|
929
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
702
930
|
}
|
|
703
|
-
function
|
|
704
|
-
if (typeof Symbol
|
|
931
|
+
function _iterableToArray$2(iter) {
|
|
932
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
705
933
|
}
|
|
706
|
-
function
|
|
707
|
-
if (Array.isArray(
|
|
934
|
+
function _arrayWithoutHoles$2(arr) {
|
|
935
|
+
if (Array.isArray(arr)) return _arrayLikeToArray$2(arr);
|
|
708
936
|
}
|
|
709
|
-
function
|
|
710
|
-
var
|
|
711
|
-
if (!
|
|
712
|
-
if (Array.isArray(
|
|
713
|
-
|
|
714
|
-
var
|
|
937
|
+
function _createForOfIteratorHelper(o, allowArrayLike) {
|
|
938
|
+
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
|
|
939
|
+
if (!it) {
|
|
940
|
+
if (Array.isArray(o) || (it = _unsupportedIterableToArray$2(o)) || allowArrayLike) {
|
|
941
|
+
if (it) o = it;
|
|
942
|
+
var i = 0;
|
|
943
|
+
var F = function F2() {
|
|
715
944
|
};
|
|
716
|
-
return { s:
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
945
|
+
return { s: F, n: function n() {
|
|
946
|
+
if (i >= o.length) return { done: true };
|
|
947
|
+
return { done: false, value: o[i++] };
|
|
948
|
+
}, e: function e(_e) {
|
|
949
|
+
throw _e;
|
|
950
|
+
}, f: F };
|
|
951
|
+
}
|
|
952
|
+
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
724
953
|
}
|
|
725
|
-
var
|
|
726
|
-
return { s: function() {
|
|
727
|
-
|
|
728
|
-
}, n: function() {
|
|
729
|
-
var
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
954
|
+
var normalCompletion = true, didErr = false, err;
|
|
955
|
+
return { s: function s() {
|
|
956
|
+
it = it.call(o);
|
|
957
|
+
}, n: function n() {
|
|
958
|
+
var step = it.next();
|
|
959
|
+
normalCompletion = step.done;
|
|
960
|
+
return step;
|
|
961
|
+
}, e: function e(_e2) {
|
|
962
|
+
didErr = true;
|
|
963
|
+
err = _e2;
|
|
964
|
+
}, f: function f() {
|
|
734
965
|
try {
|
|
735
|
-
!
|
|
966
|
+
if (!normalCompletion && it["return"] != null) it["return"]();
|
|
736
967
|
} finally {
|
|
737
|
-
if (
|
|
968
|
+
if (didErr) throw err;
|
|
738
969
|
}
|
|
739
970
|
} };
|
|
740
971
|
}
|
|
741
|
-
function
|
|
742
|
-
if (
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
972
|
+
function _unsupportedIterableToArray$2(o, minLen) {
|
|
973
|
+
if (!o) return;
|
|
974
|
+
if (typeof o === "string") return _arrayLikeToArray$2(o, minLen);
|
|
975
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
976
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
977
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
|
978
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$2(o, minLen);
|
|
748
979
|
}
|
|
749
|
-
function
|
|
750
|
-
(
|
|
751
|
-
for (var
|
|
752
|
-
return
|
|
980
|
+
function _arrayLikeToArray$2(arr, len) {
|
|
981
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
982
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
983
|
+
return arr2;
|
|
753
984
|
}
|
|
754
|
-
function
|
|
985
|
+
function _typeof$1(o) {
|
|
755
986
|
"@babel/helpers - typeof";
|
|
756
|
-
return
|
|
757
|
-
return typeof
|
|
758
|
-
} : function(
|
|
759
|
-
return
|
|
760
|
-
},
|
|
987
|
+
return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
|
|
988
|
+
return typeof o2;
|
|
989
|
+
} : function(o2) {
|
|
990
|
+
return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
|
|
991
|
+
}, _typeof$1(o);
|
|
761
992
|
}
|
|
762
|
-
var
|
|
763
|
-
equals: function(
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
if (
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
return
|
|
993
|
+
var ObjectUtils = {
|
|
994
|
+
equals: function equals(obj1, obj2, field) {
|
|
995
|
+
if (field) return this.resolveFieldData(obj1, field) === this.resolveFieldData(obj2, field);
|
|
996
|
+
else return this.deepEquals(obj1, obj2);
|
|
997
|
+
},
|
|
998
|
+
deepEquals: function deepEquals(a, b) {
|
|
999
|
+
if (a === b) return true;
|
|
1000
|
+
if (a && b && _typeof$1(a) == "object" && _typeof$1(b) == "object") {
|
|
1001
|
+
var arrA = Array.isArray(a), arrB = Array.isArray(b), i, length, key;
|
|
1002
|
+
if (arrA && arrB) {
|
|
1003
|
+
length = a.length;
|
|
1004
|
+
if (length != b.length) return false;
|
|
1005
|
+
for (i = length; i-- !== 0; ) if (!this.deepEquals(a[i], b[i])) return false;
|
|
1006
|
+
return true;
|
|
1007
|
+
}
|
|
1008
|
+
if (arrA != arrB) return false;
|
|
1009
|
+
var dateA = a instanceof Date, dateB = b instanceof Date;
|
|
1010
|
+
if (dateA != dateB) return false;
|
|
1011
|
+
if (dateA && dateB) return a.getTime() == b.getTime();
|
|
1012
|
+
var regexpA = a instanceof RegExp, regexpB = b instanceof RegExp;
|
|
1013
|
+
if (regexpA != regexpB) return false;
|
|
1014
|
+
if (regexpA && regexpB) return a.toString() == b.toString();
|
|
1015
|
+
var keys = Object.keys(a);
|
|
1016
|
+
length = keys.length;
|
|
1017
|
+
if (length !== Object.keys(b).length) return false;
|
|
1018
|
+
for (i = length; i-- !== 0; ) if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
|
|
1019
|
+
for (i = length; i-- !== 0; ) {
|
|
1020
|
+
key = keys[i];
|
|
1021
|
+
if (!this.deepEquals(a[key], b[key])) return false;
|
|
774
1022
|
}
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
if (c && f) return t.toString() == e.toString();
|
|
782
|
-
var d = Object.keys(t);
|
|
783
|
-
if (a = d.length, a !== Object.keys(e).length) return !1;
|
|
784
|
-
for (o = a; o-- !== 0; ) if (!Object.prototype.hasOwnProperty.call(e, d[o])) return !1;
|
|
785
|
-
for (o = a; o-- !== 0; )
|
|
786
|
-
if (s = d[o], !this.deepEquals(t[s], e[s])) return !1;
|
|
787
|
-
return !0;
|
|
788
|
-
}
|
|
789
|
-
return t !== t && e !== e;
|
|
790
|
-
},
|
|
791
|
-
resolveFieldData: function(t, e) {
|
|
792
|
-
if (!t || !e)
|
|
1023
|
+
return true;
|
|
1024
|
+
}
|
|
1025
|
+
return a !== a && b !== b;
|
|
1026
|
+
},
|
|
1027
|
+
resolveFieldData: function resolveFieldData(data, field) {
|
|
1028
|
+
if (!data || !field) {
|
|
793
1029
|
return null;
|
|
1030
|
+
}
|
|
794
1031
|
try {
|
|
795
|
-
var
|
|
796
|
-
if (this.isNotEmpty(
|
|
797
|
-
} catch {
|
|
798
|
-
}
|
|
799
|
-
if (Object.keys(
|
|
800
|
-
if (this.isFunction(
|
|
801
|
-
return
|
|
802
|
-
if (
|
|
803
|
-
return
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
1032
|
+
var value = data[field];
|
|
1033
|
+
if (this.isNotEmpty(value)) return value;
|
|
1034
|
+
} catch (_unused) {
|
|
1035
|
+
}
|
|
1036
|
+
if (Object.keys(data).length) {
|
|
1037
|
+
if (this.isFunction(field)) {
|
|
1038
|
+
return field(data);
|
|
1039
|
+
} else if (field.indexOf(".") === -1) {
|
|
1040
|
+
return data[field];
|
|
1041
|
+
} else {
|
|
1042
|
+
var fields = field.split(".");
|
|
1043
|
+
var _value = data;
|
|
1044
|
+
for (var i = 0, len = fields.length; i < len; ++i) {
|
|
1045
|
+
if (_value == null) {
|
|
1046
|
+
return null;
|
|
1047
|
+
}
|
|
1048
|
+
_value = _value[fields[i]];
|
|
1049
|
+
}
|
|
1050
|
+
return _value;
|
|
808
1051
|
}
|
|
809
|
-
return o;
|
|
810
1052
|
}
|
|
811
1053
|
return null;
|
|
812
1054
|
},
|
|
813
|
-
getItemValue: function(
|
|
814
|
-
for (var
|
|
815
|
-
|
|
816
|
-
|
|
1055
|
+
getItemValue: function getItemValue(obj) {
|
|
1056
|
+
for (var _len = arguments.length, params = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
1057
|
+
params[_key - 1] = arguments[_key];
|
|
1058
|
+
}
|
|
1059
|
+
return this.isFunction(obj) ? obj.apply(void 0, params) : obj;
|
|
817
1060
|
},
|
|
818
|
-
filter: function(
|
|
819
|
-
var
|
|
820
|
-
if (
|
|
821
|
-
var
|
|
1061
|
+
filter: function filter(value, fields, filterValue) {
|
|
1062
|
+
var filteredItems = [];
|
|
1063
|
+
if (value) {
|
|
1064
|
+
var _iterator = _createForOfIteratorHelper(value), _step;
|
|
822
1065
|
try {
|
|
823
|
-
for (
|
|
824
|
-
var
|
|
1066
|
+
for (_iterator.s(); !(_step = _iterator.n()).done; ) {
|
|
1067
|
+
var item = _step.value;
|
|
1068
|
+
var _iterator2 = _createForOfIteratorHelper(fields), _step2;
|
|
825
1069
|
try {
|
|
826
|
-
for (
|
|
827
|
-
var
|
|
828
|
-
if (String(this.resolveFieldData(
|
|
829
|
-
|
|
1070
|
+
for (_iterator2.s(); !(_step2 = _iterator2.n()).done; ) {
|
|
1071
|
+
var field = _step2.value;
|
|
1072
|
+
if (String(this.resolveFieldData(item, field)).toLowerCase().indexOf(filterValue.toLowerCase()) > -1) {
|
|
1073
|
+
filteredItems.push(item);
|
|
830
1074
|
break;
|
|
831
1075
|
}
|
|
832
1076
|
}
|
|
833
|
-
} catch (
|
|
834
|
-
|
|
1077
|
+
} catch (err) {
|
|
1078
|
+
_iterator2.e(err);
|
|
835
1079
|
} finally {
|
|
836
|
-
|
|
1080
|
+
_iterator2.f();
|
|
837
1081
|
}
|
|
838
1082
|
}
|
|
839
|
-
} catch (
|
|
840
|
-
|
|
1083
|
+
} catch (err) {
|
|
1084
|
+
_iterator.e(err);
|
|
841
1085
|
} finally {
|
|
842
|
-
|
|
1086
|
+
_iterator.f();
|
|
843
1087
|
}
|
|
844
1088
|
}
|
|
845
|
-
return
|
|
1089
|
+
return filteredItems;
|
|
846
1090
|
},
|
|
847
|
-
reorderArray: function(
|
|
848
|
-
|
|
1091
|
+
reorderArray: function reorderArray(value, from, to) {
|
|
1092
|
+
if (value && from !== to) {
|
|
1093
|
+
if (to >= value.length) {
|
|
1094
|
+
to %= value.length;
|
|
1095
|
+
from %= value.length;
|
|
1096
|
+
}
|
|
1097
|
+
value.splice(to, 0, value.splice(from, 1)[0]);
|
|
1098
|
+
}
|
|
849
1099
|
},
|
|
850
|
-
findIndexInList: function(
|
|
851
|
-
var
|
|
852
|
-
if (
|
|
853
|
-
for (var i = 0; i <
|
|
854
|
-
if (
|
|
855
|
-
|
|
1100
|
+
findIndexInList: function findIndexInList(value, list) {
|
|
1101
|
+
var index2 = -1;
|
|
1102
|
+
if (list) {
|
|
1103
|
+
for (var i = 0; i < list.length; i++) {
|
|
1104
|
+
if (list[i] === value) {
|
|
1105
|
+
index2 = i;
|
|
856
1106
|
break;
|
|
857
1107
|
}
|
|
1108
|
+
}
|
|
858
1109
|
}
|
|
859
|
-
return
|
|
1110
|
+
return index2;
|
|
860
1111
|
},
|
|
861
|
-
contains: function(
|
|
862
|
-
if (
|
|
863
|
-
var
|
|
1112
|
+
contains: function contains(value, list) {
|
|
1113
|
+
if (value != null && list && list.length) {
|
|
1114
|
+
var _iterator3 = _createForOfIteratorHelper(list), _step3;
|
|
864
1115
|
try {
|
|
865
|
-
for (
|
|
866
|
-
var
|
|
867
|
-
if (this.equals(
|
|
1116
|
+
for (_iterator3.s(); !(_step3 = _iterator3.n()).done; ) {
|
|
1117
|
+
var val = _step3.value;
|
|
1118
|
+
if (this.equals(value, val)) return true;
|
|
868
1119
|
}
|
|
869
|
-
} catch (
|
|
870
|
-
|
|
1120
|
+
} catch (err) {
|
|
1121
|
+
_iterator3.e(err);
|
|
871
1122
|
} finally {
|
|
872
|
-
|
|
1123
|
+
_iterator3.f();
|
|
873
1124
|
}
|
|
874
1125
|
}
|
|
875
|
-
return
|
|
876
|
-
},
|
|
877
|
-
insertIntoOrderedArray: function(
|
|
878
|
-
if (
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
1126
|
+
return false;
|
|
1127
|
+
},
|
|
1128
|
+
insertIntoOrderedArray: function insertIntoOrderedArray(item, index2, arr, sourceArr) {
|
|
1129
|
+
if (arr.length > 0) {
|
|
1130
|
+
var injected = false;
|
|
1131
|
+
for (var i = 0; i < arr.length; i++) {
|
|
1132
|
+
var currentItemIndex = this.findIndexInList(arr[i], sourceArr);
|
|
1133
|
+
if (currentItemIndex > index2) {
|
|
1134
|
+
arr.splice(i, 0, item);
|
|
1135
|
+
injected = true;
|
|
883
1136
|
break;
|
|
884
1137
|
}
|
|
885
1138
|
}
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
},
|
|
893
|
-
|
|
894
|
-
if (
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
1139
|
+
if (!injected) {
|
|
1140
|
+
arr.push(item);
|
|
1141
|
+
}
|
|
1142
|
+
} else {
|
|
1143
|
+
arr.push(item);
|
|
1144
|
+
}
|
|
1145
|
+
},
|
|
1146
|
+
removeAccents: function removeAccents(str) {
|
|
1147
|
+
if (str && str.search(/[\xC0-\xFF]/g) > -1) {
|
|
1148
|
+
str = str.replace(/[\xC0-\xC5]/g, "A").replace(/[\xC6]/g, "AE").replace(/[\xC7]/g, "C").replace(/[\xC8-\xCB]/g, "E").replace(/[\xCC-\xCF]/g, "I").replace(/[\xD0]/g, "D").replace(/[\xD1]/g, "N").replace(/[\xD2-\xD6\xD8]/g, "O").replace(/[\xD9-\xDC]/g, "U").replace(/[\xDD]/g, "Y").replace(/[\xDE]/g, "P").replace(/[\xE0-\xE5]/g, "a").replace(/[\xE6]/g, "ae").replace(/[\xE7]/g, "c").replace(/[\xE8-\xEB]/g, "e").replace(/[\xEC-\xEF]/g, "i").replace(/[\xF1]/g, "n").replace(/[\xF2-\xF6\xF8]/g, "o").replace(/[\xF9-\xFC]/g, "u").replace(/[\xFE]/g, "p").replace(/[\xFD\xFF]/g, "y");
|
|
1149
|
+
}
|
|
1150
|
+
return str;
|
|
1151
|
+
},
|
|
1152
|
+
getVNodeProp: function getVNodeProp(vnode, prop) {
|
|
1153
|
+
if (vnode) {
|
|
1154
|
+
var props = vnode.props;
|
|
1155
|
+
if (props) {
|
|
1156
|
+
var kebabProp = prop.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase();
|
|
1157
|
+
var propName = Object.prototype.hasOwnProperty.call(props, kebabProp) ? kebabProp : prop;
|
|
1158
|
+
return vnode.type["extends"].props[prop].type === Boolean && props[propName] === "" ? true : props[propName];
|
|
899
1159
|
}
|
|
900
1160
|
}
|
|
901
1161
|
return null;
|
|
902
1162
|
},
|
|
903
|
-
toFlatCase: function(
|
|
904
|
-
return this.isString(
|
|
1163
|
+
toFlatCase: function toFlatCase(str) {
|
|
1164
|
+
return this.isString(str) ? str.replace(/(-|_)/g, "").toLowerCase() : str;
|
|
905
1165
|
},
|
|
906
|
-
toKebabCase: function(
|
|
907
|
-
return this.isString(
|
|
908
|
-
return
|
|
909
|
-
}).toLowerCase() :
|
|
1166
|
+
toKebabCase: function toKebabCase(str) {
|
|
1167
|
+
return this.isString(str) ? str.replace(/(_)/g, "-").replace(/[A-Z]/g, function(c, i) {
|
|
1168
|
+
return i === 0 ? c : "-" + c.toLowerCase();
|
|
1169
|
+
}).toLowerCase() : str;
|
|
910
1170
|
},
|
|
911
|
-
toCapitalCase: function(
|
|
912
|
-
return this.isString(
|
|
913
|
-
empty:
|
|
914
|
-
}) ?
|
|
1171
|
+
toCapitalCase: function toCapitalCase(str) {
|
|
1172
|
+
return this.isString(str, {
|
|
1173
|
+
empty: false
|
|
1174
|
+
}) ? str[0].toUpperCase() + str.slice(1) : str;
|
|
915
1175
|
},
|
|
916
|
-
isEmpty: function(
|
|
917
|
-
return
|
|
1176
|
+
isEmpty: function isEmpty(value) {
|
|
1177
|
+
return value === null || value === void 0 || value === "" || Array.isArray(value) && value.length === 0 || !(value instanceof Date) && _typeof$1(value) === "object" && Object.keys(value).length === 0;
|
|
918
1178
|
},
|
|
919
|
-
isNotEmpty: function(
|
|
920
|
-
return !this.isEmpty(
|
|
1179
|
+
isNotEmpty: function isNotEmpty(value) {
|
|
1180
|
+
return !this.isEmpty(value);
|
|
921
1181
|
},
|
|
922
|
-
isFunction: function(
|
|
923
|
-
return !!(
|
|
1182
|
+
isFunction: function isFunction(value) {
|
|
1183
|
+
return !!(value && value.constructor && value.call && value.apply);
|
|
924
1184
|
},
|
|
925
|
-
isObject: function(
|
|
926
|
-
var
|
|
927
|
-
return
|
|
1185
|
+
isObject: function isObject(value) {
|
|
1186
|
+
var empty = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : true;
|
|
1187
|
+
return value instanceof Object && value.constructor === Object && (empty || Object.keys(value).length !== 0);
|
|
928
1188
|
},
|
|
929
|
-
isDate: function(
|
|
930
|
-
return
|
|
1189
|
+
isDate: function isDate(value) {
|
|
1190
|
+
return value instanceof Date && value.constructor === Date;
|
|
931
1191
|
},
|
|
932
|
-
isArray: function(
|
|
933
|
-
var
|
|
934
|
-
return Array.isArray(
|
|
1192
|
+
isArray: function isArray(value) {
|
|
1193
|
+
var empty = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : true;
|
|
1194
|
+
return Array.isArray(value) && (empty || value.length !== 0);
|
|
935
1195
|
},
|
|
936
|
-
isString: function(
|
|
937
|
-
var
|
|
938
|
-
return typeof
|
|
1196
|
+
isString: function isString(value) {
|
|
1197
|
+
var empty = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : true;
|
|
1198
|
+
return typeof value === "string" && (empty || value !== "");
|
|
939
1199
|
},
|
|
940
|
-
isPrintableCharacter: function() {
|
|
941
|
-
var
|
|
942
|
-
return this.isNotEmpty(
|
|
1200
|
+
isPrintableCharacter: function isPrintableCharacter() {
|
|
1201
|
+
var _char = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "";
|
|
1202
|
+
return this.isNotEmpty(_char) && _char.length === 1 && _char.match(/\S| /);
|
|
943
1203
|
},
|
|
944
1204
|
/**
|
|
945
1205
|
* Firefox-v103 does not currently support the "findLast" method. It is stated that this method will be supported with Firefox-v104.
|
|
946
1206
|
* https://caniuse.com/mdn-javascript_builtins_array_findlast
|
|
947
1207
|
*/
|
|
948
|
-
findLast: function(
|
|
949
|
-
var
|
|
950
|
-
if (this.isNotEmpty(
|
|
1208
|
+
findLast: function findLast(arr, callback) {
|
|
1209
|
+
var item;
|
|
1210
|
+
if (this.isNotEmpty(arr)) {
|
|
951
1211
|
try {
|
|
952
|
-
|
|
953
|
-
} catch {
|
|
954
|
-
|
|
1212
|
+
item = arr.findLast(callback);
|
|
1213
|
+
} catch (_unused2) {
|
|
1214
|
+
item = _toConsumableArray$2(arr).reverse().find(callback);
|
|
955
1215
|
}
|
|
956
|
-
|
|
1216
|
+
}
|
|
1217
|
+
return item;
|
|
957
1218
|
},
|
|
958
1219
|
/**
|
|
959
1220
|
* Firefox-v103 does not currently support the "findLastIndex" method. It is stated that this method will be supported with Firefox-v104.
|
|
960
1221
|
* https://caniuse.com/mdn-javascript_builtins_array_findlastindex
|
|
961
1222
|
*/
|
|
962
|
-
findLastIndex: function(
|
|
963
|
-
var
|
|
964
|
-
if (this.isNotEmpty(
|
|
1223
|
+
findLastIndex: function findLastIndex(arr, callback) {
|
|
1224
|
+
var index2 = -1;
|
|
1225
|
+
if (this.isNotEmpty(arr)) {
|
|
965
1226
|
try {
|
|
966
|
-
|
|
967
|
-
} catch {
|
|
968
|
-
|
|
1227
|
+
index2 = arr.findLastIndex(callback);
|
|
1228
|
+
} catch (_unused3) {
|
|
1229
|
+
index2 = arr.lastIndexOf(_toConsumableArray$2(arr).reverse().find(callback));
|
|
969
1230
|
}
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
var
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
1231
|
+
}
|
|
1232
|
+
return index2;
|
|
1233
|
+
},
|
|
1234
|
+
sort: function sort(value1, value2) {
|
|
1235
|
+
var order = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 1;
|
|
1236
|
+
var comparator = arguments.length > 3 ? arguments[3] : void 0;
|
|
1237
|
+
var nullSortOrder = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : 1;
|
|
1238
|
+
var result = this.compare(value1, value2, comparator, order);
|
|
1239
|
+
var finalSortOrder = order;
|
|
1240
|
+
if (this.isEmpty(value1) || this.isEmpty(value2)) {
|
|
1241
|
+
finalSortOrder = nullSortOrder === 1 ? order : nullSortOrder;
|
|
1242
|
+
}
|
|
1243
|
+
return finalSortOrder * result;
|
|
1244
|
+
},
|
|
1245
|
+
compare: function compare(value1, value2, comparator) {
|
|
1246
|
+
var order = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : 1;
|
|
1247
|
+
var result = -1;
|
|
1248
|
+
var emptyValue1 = this.isEmpty(value1);
|
|
1249
|
+
var emptyValue2 = this.isEmpty(value2);
|
|
1250
|
+
if (emptyValue1 && emptyValue2) result = 0;
|
|
1251
|
+
else if (emptyValue1) result = order;
|
|
1252
|
+
else if (emptyValue2) result = -order;
|
|
1253
|
+
else if (typeof value1 === "string" && typeof value2 === "string") result = comparator(value1, value2);
|
|
1254
|
+
else result = value1 < value2 ? -1 : value1 > value2 ? 1 : 0;
|
|
1255
|
+
return result;
|
|
1256
|
+
},
|
|
1257
|
+
localeComparator: function localeComparator() {
|
|
981
1258
|
return new Intl.Collator(void 0, {
|
|
982
|
-
numeric:
|
|
1259
|
+
numeric: true
|
|
983
1260
|
}).compare;
|
|
984
1261
|
},
|
|
985
|
-
nestedKeys: function() {
|
|
986
|
-
var
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
1262
|
+
nestedKeys: function nestedKeys() {
|
|
1263
|
+
var _this = this;
|
|
1264
|
+
var obj = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
1265
|
+
var parentKey = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "";
|
|
1266
|
+
return Object.entries(obj).reduce(function(o, _ref) {
|
|
1267
|
+
var _ref2 = _slicedToArray(_ref, 2), key = _ref2[0], value = _ref2[1];
|
|
1268
|
+
var currentKey = parentKey ? "".concat(parentKey, ".").concat(key) : key;
|
|
1269
|
+
_this.isObject(value) ? o = o.concat(_this.nestedKeys(value, currentKey)) : o.push(currentKey);
|
|
1270
|
+
return o;
|
|
990
1271
|
}, []);
|
|
991
1272
|
},
|
|
992
|
-
stringify: function(
|
|
993
|
-
var
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
return ""
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1273
|
+
stringify: function stringify(value) {
|
|
1274
|
+
var _this2 = this;
|
|
1275
|
+
var indent = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 2;
|
|
1276
|
+
var currentIndent = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 0;
|
|
1277
|
+
var currentIndentStr = " ".repeat(currentIndent);
|
|
1278
|
+
var nextIndentStr = " ".repeat(currentIndent + indent);
|
|
1279
|
+
if (this.isArray(value)) {
|
|
1280
|
+
return "[" + value.map(function(v) {
|
|
1281
|
+
return _this2.stringify(v, indent, currentIndent + indent);
|
|
1282
|
+
}).join(", ") + "]";
|
|
1283
|
+
} else if (this.isDate(value)) {
|
|
1284
|
+
return value.toISOString();
|
|
1285
|
+
} else if (this.isFunction(value)) {
|
|
1286
|
+
return value.toString();
|
|
1287
|
+
} else if (this.isObject(value)) {
|
|
1288
|
+
return "{\n" + Object.entries(value).map(function(_ref3) {
|
|
1289
|
+
var _ref4 = _slicedToArray(_ref3, 2), k = _ref4[0], v = _ref4[1];
|
|
1290
|
+
return "".concat(nextIndentStr).concat(k, ": ").concat(_this2.stringify(v, indent, currentIndent + indent));
|
|
1291
|
+
}).join(",\n") + "\n".concat(currentIndentStr) + "}";
|
|
1292
|
+
} else {
|
|
1293
|
+
return JSON.stringify(value);
|
|
1294
|
+
}
|
|
1003
1295
|
}
|
|
1004
|
-
}
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1296
|
+
};
|
|
1297
|
+
var lastId = 0;
|
|
1298
|
+
function UniqueComponentId() {
|
|
1299
|
+
var prefix = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "pv_id_";
|
|
1300
|
+
lastId++;
|
|
1301
|
+
return "".concat(prefix).concat(lastId);
|
|
1008
1302
|
}
|
|
1009
|
-
function
|
|
1010
|
-
return
|
|
1303
|
+
function _toConsumableArray(arr) {
|
|
1304
|
+
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
|
1011
1305
|
}
|
|
1012
|
-
function
|
|
1013
|
-
throw new TypeError(
|
|
1014
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
1306
|
+
function _nonIterableSpread() {
|
|
1307
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
1015
1308
|
}
|
|
1016
|
-
function
|
|
1017
|
-
if (
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1309
|
+
function _unsupportedIterableToArray(o, minLen) {
|
|
1310
|
+
if (!o) return;
|
|
1311
|
+
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
1312
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
1313
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
1314
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
|
1315
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
1023
1316
|
}
|
|
1024
|
-
function
|
|
1025
|
-
if (typeof Symbol
|
|
1317
|
+
function _iterableToArray(iter) {
|
|
1318
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
1026
1319
|
}
|
|
1027
|
-
function
|
|
1028
|
-
if (Array.isArray(
|
|
1320
|
+
function _arrayWithoutHoles(arr) {
|
|
1321
|
+
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
|
1029
1322
|
}
|
|
1030
|
-
function
|
|
1031
|
-
(
|
|
1032
|
-
for (var
|
|
1033
|
-
return
|
|
1323
|
+
function _arrayLikeToArray(arr, len) {
|
|
1324
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
1325
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
1326
|
+
return arr2;
|
|
1034
1327
|
}
|
|
1035
|
-
function
|
|
1036
|
-
var
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
return u.value !== s;
|
|
1328
|
+
function handler() {
|
|
1329
|
+
var zIndexes = [];
|
|
1330
|
+
var generateZIndex = function generateZIndex2(key, autoZIndex) {
|
|
1331
|
+
var baseZIndex = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 999;
|
|
1332
|
+
var lastZIndex = getLastZIndex(key, autoZIndex, baseZIndex);
|
|
1333
|
+
var newZIndex = lastZIndex.value + (lastZIndex.key === key ? 0 : baseZIndex) + 1;
|
|
1334
|
+
zIndexes.push({
|
|
1335
|
+
key,
|
|
1336
|
+
value: newZIndex
|
|
1045
1337
|
});
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1338
|
+
return newZIndex;
|
|
1339
|
+
};
|
|
1340
|
+
var revertZIndex = function revertZIndex2(zIndex) {
|
|
1341
|
+
zIndexes = zIndexes.filter(function(obj) {
|
|
1342
|
+
return obj.value !== zIndex;
|
|
1343
|
+
});
|
|
1344
|
+
};
|
|
1345
|
+
var getCurrentZIndex = function getCurrentZIndex2(key, autoZIndex) {
|
|
1346
|
+
return getLastZIndex(key, autoZIndex).value;
|
|
1347
|
+
};
|
|
1348
|
+
var getLastZIndex = function getLastZIndex2(key, autoZIndex) {
|
|
1349
|
+
var baseZIndex = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 0;
|
|
1350
|
+
return _toConsumableArray(zIndexes).reverse().find(function(obj) {
|
|
1351
|
+
return true;
|
|
1052
1352
|
}) || {
|
|
1053
|
-
key
|
|
1054
|
-
value:
|
|
1353
|
+
key,
|
|
1354
|
+
value: baseZIndex
|
|
1055
1355
|
};
|
|
1056
|
-
}
|
|
1057
|
-
|
|
1356
|
+
};
|
|
1357
|
+
var getZIndex = function getZIndex2(el) {
|
|
1358
|
+
return el ? parseInt(el.style.zIndex, 10) || 0 : 0;
|
|
1058
1359
|
};
|
|
1059
1360
|
return {
|
|
1060
|
-
get:
|
|
1061
|
-
set: function(
|
|
1062
|
-
|
|
1361
|
+
get: getZIndex,
|
|
1362
|
+
set: function set(key, el, baseZIndex) {
|
|
1363
|
+
if (el) {
|
|
1364
|
+
el.style.zIndex = String(generateZIndex(key, true, baseZIndex));
|
|
1365
|
+
}
|
|
1063
1366
|
},
|
|
1064
|
-
clear: function(
|
|
1065
|
-
|
|
1367
|
+
clear: function clear(el) {
|
|
1368
|
+
if (el) {
|
|
1369
|
+
revertZIndex(getZIndex(el));
|
|
1370
|
+
el.style.zIndex = "";
|
|
1371
|
+
}
|
|
1066
1372
|
},
|
|
1067
|
-
getCurrent: function(
|
|
1068
|
-
return
|
|
1373
|
+
getCurrent: function getCurrent(key) {
|
|
1374
|
+
return getCurrentZIndex(key, true);
|
|
1069
1375
|
}
|
|
1070
1376
|
};
|
|
1071
1377
|
}
|
|
1072
|
-
var
|
|
1378
|
+
var ZIndexUtils = handler();
|
|
1073
1379
|
export {
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1380
|
+
ConnectedOverlayScrollHandler as C,
|
|
1381
|
+
DomHandler as D,
|
|
1382
|
+
ObjectUtils as O,
|
|
1383
|
+
UniqueComponentId as U,
|
|
1384
|
+
ZIndexUtils as Z,
|
|
1385
|
+
primebus as p
|
|
1080
1386
|
};
|