@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,558 +1,1215 @@
|
|
|
1
|
-
const
|
|
1
|
+
const NAMESPACE = "core";
|
|
2
|
+
const BUILD = (
|
|
2
3
|
/* core */
|
|
3
|
-
{ hydratedSelectorName: "hydrated", lazyLoad:
|
|
4
|
+
{ hydratedSelectorName: "hydrated", lazyLoad: false, shadowDom: false, slotRelocation: true, updatable: true }
|
|
4
5
|
);
|
|
5
|
-
var
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
6
|
+
var __defProp = Object.defineProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var reWireGetterSetter = (instance, hostRef) => {
|
|
12
|
+
var _a;
|
|
13
|
+
const cmpMeta = hostRef.$cmpMeta$;
|
|
14
|
+
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
15
|
+
members.map(([memberName, [memberFlags]]) => {
|
|
16
|
+
if (memberFlags & 31 || memberFlags & 32) {
|
|
17
|
+
const ogValue = instance[memberName];
|
|
18
|
+
const ogDescriptor = Object.getOwnPropertyDescriptor(Object.getPrototypeOf(instance), memberName);
|
|
19
|
+
Object.defineProperty(instance, memberName, {
|
|
15
20
|
get() {
|
|
16
|
-
return
|
|
21
|
+
return ogDescriptor.get.call(this);
|
|
17
22
|
},
|
|
18
|
-
set(
|
|
19
|
-
|
|
23
|
+
set(newValue) {
|
|
24
|
+
ogDescriptor.set.call(this, newValue);
|
|
20
25
|
},
|
|
21
|
-
configurable:
|
|
22
|
-
enumerable:
|
|
23
|
-
})
|
|
26
|
+
configurable: true,
|
|
27
|
+
enumerable: true
|
|
28
|
+
});
|
|
29
|
+
instance[memberName] = hostRef.$instanceValues$.has(memberName) ? hostRef.$instanceValues$.get(memberName) : ogValue;
|
|
24
30
|
}
|
|
25
31
|
});
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
32
|
+
};
|
|
33
|
+
var getHostRef = (ref) => {
|
|
34
|
+
if (ref.__stencil__getHostRef) {
|
|
35
|
+
return ref.__stencil__getHostRef();
|
|
36
|
+
}
|
|
37
|
+
return void 0;
|
|
38
|
+
};
|
|
39
|
+
var registerHost = (hostElement, cmpMeta) => {
|
|
40
|
+
const hostRef = {
|
|
31
41
|
$flags$: 0,
|
|
32
|
-
$hostElement$:
|
|
33
|
-
$cmpMeta$:
|
|
42
|
+
$hostElement$: hostElement,
|
|
43
|
+
$cmpMeta$: cmpMeta,
|
|
34
44
|
$instanceValues$: /* @__PURE__ */ new Map()
|
|
35
45
|
};
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
}
|
|
46
|
+
{
|
|
47
|
+
hostRef.$onReadyPromise$ = new Promise((r) => hostRef.$onReadyResolve$ = r);
|
|
48
|
+
hostElement["s-p"] = [];
|
|
49
|
+
hostElement["s-rc"] = [];
|
|
50
|
+
}
|
|
51
|
+
const ref = hostRef;
|
|
52
|
+
hostElement.__stencil__getHostRef = () => ref;
|
|
53
|
+
{
|
|
54
|
+
reWireGetterSetter(hostElement, hostRef);
|
|
55
|
+
}
|
|
56
|
+
return ref;
|
|
57
|
+
};
|
|
58
|
+
var isMemberInElement = (elm, memberName) => memberName in elm;
|
|
59
|
+
var consoleError = (e, el) => (0, console.error)(e, el);
|
|
60
|
+
var XLINK_NS = "http://www.w3.org/1999/xlink";
|
|
61
|
+
var win = typeof window !== "undefined" ? window : {};
|
|
62
|
+
var H = win.HTMLElement || class {
|
|
63
|
+
};
|
|
64
|
+
var plt = {
|
|
41
65
|
$flags$: 0,
|
|
42
66
|
$resourcesUrl$: "",
|
|
43
|
-
jmp: (
|
|
44
|
-
raf: (
|
|
45
|
-
ael: (
|
|
46
|
-
rel: (
|
|
47
|
-
ce: (
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
|
|
67
|
+
jmp: (h2) => h2(),
|
|
68
|
+
raf: (h2) => requestAnimationFrame(h2),
|
|
69
|
+
ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
|
|
70
|
+
rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
|
|
71
|
+
ce: (eventName, opts) => new CustomEvent(eventName, opts)
|
|
72
|
+
};
|
|
73
|
+
var supportsShadow = BUILD.shadowDom;
|
|
74
|
+
var supportsListenerOptions = /* @__PURE__ */ (() => {
|
|
75
|
+
var _a;
|
|
76
|
+
let supportsListenerOptions2 = false;
|
|
51
77
|
try {
|
|
52
|
-
(
|
|
78
|
+
(_a = win.document) == null ? void 0 : _a.addEventListener(
|
|
53
79
|
"e",
|
|
54
80
|
null,
|
|
55
81
|
Object.defineProperty({}, "passive", {
|
|
56
82
|
get() {
|
|
57
|
-
|
|
83
|
+
supportsListenerOptions2 = true;
|
|
58
84
|
}
|
|
59
85
|
})
|
|
60
86
|
);
|
|
61
|
-
} catch {
|
|
87
|
+
} catch (e) {
|
|
62
88
|
}
|
|
63
|
-
return
|
|
64
|
-
})()
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
89
|
+
return supportsListenerOptions2;
|
|
90
|
+
})();
|
|
91
|
+
var promiseResolve = (v) => Promise.resolve(v);
|
|
92
|
+
var queuePending = false;
|
|
93
|
+
var queueDomReads = [];
|
|
94
|
+
var queueDomWrites = [];
|
|
95
|
+
var queueTask = (queue, write) => (cb) => {
|
|
96
|
+
queue.push(cb);
|
|
97
|
+
if (!queuePending) {
|
|
98
|
+
queuePending = true;
|
|
99
|
+
if (plt.$flags$ & 4) {
|
|
100
|
+
nextTick(flush);
|
|
101
|
+
} else {
|
|
102
|
+
plt.raf(flush);
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
};
|
|
106
|
+
var consume = (queue) => {
|
|
107
|
+
for (let i2 = 0; i2 < queue.length; i2++) {
|
|
68
108
|
try {
|
|
69
|
-
|
|
70
|
-
} catch (
|
|
71
|
-
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
109
|
+
queue[i2](performance.now());
|
|
110
|
+
} catch (e) {
|
|
111
|
+
consoleError(e);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
queue.length = 0;
|
|
115
|
+
};
|
|
116
|
+
var flush = () => {
|
|
117
|
+
consume(queueDomReads);
|
|
118
|
+
{
|
|
119
|
+
consume(queueDomWrites);
|
|
120
|
+
if (queuePending = queueDomReads.length > 0) {
|
|
121
|
+
plt.raf(flush);
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
};
|
|
125
|
+
var nextTick = (cb) => promiseResolve().then(cb);
|
|
126
|
+
var writeTask = /* @__PURE__ */ queueTask(queueDomWrites);
|
|
127
|
+
var isComplexType = (o) => {
|
|
128
|
+
o = typeof o;
|
|
129
|
+
return o === "object" || o === "function";
|
|
130
|
+
};
|
|
131
|
+
var escapeRegExpSpecialCharacters = (text) => {
|
|
132
|
+
return text.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
133
|
+
};
|
|
134
|
+
var result_exports = {};
|
|
135
|
+
__export(result_exports, {
|
|
136
|
+
err: () => err,
|
|
137
|
+
map: () => map,
|
|
138
|
+
ok: () => ok,
|
|
139
|
+
unwrap: () => unwrap,
|
|
140
|
+
unwrapErr: () => unwrapErr
|
|
141
|
+
});
|
|
142
|
+
var ok = (value) => ({
|
|
143
|
+
isOk: true,
|
|
144
|
+
isErr: false,
|
|
145
|
+
value
|
|
83
146
|
});
|
|
84
|
-
var
|
|
85
|
-
isOk:
|
|
86
|
-
isErr:
|
|
87
|
-
value
|
|
88
|
-
}), $e = (e) => ({
|
|
89
|
-
isOk: !1,
|
|
90
|
-
isErr: !0,
|
|
91
|
-
value: e
|
|
147
|
+
var err = (value) => ({
|
|
148
|
+
isOk: false,
|
|
149
|
+
isErr: true,
|
|
150
|
+
value
|
|
92
151
|
});
|
|
93
|
-
function
|
|
94
|
-
if (
|
|
95
|
-
const
|
|
96
|
-
|
|
152
|
+
function map(result, fn) {
|
|
153
|
+
if (result.isOk) {
|
|
154
|
+
const val = fn(result.value);
|
|
155
|
+
if (val instanceof Promise) {
|
|
156
|
+
return val.then((newVal) => ok(newVal));
|
|
157
|
+
} else {
|
|
158
|
+
return ok(val);
|
|
159
|
+
}
|
|
97
160
|
}
|
|
98
|
-
if (
|
|
99
|
-
const
|
|
100
|
-
return
|
|
161
|
+
if (result.isErr) {
|
|
162
|
+
const value = result.value;
|
|
163
|
+
return err(value);
|
|
101
164
|
}
|
|
102
165
|
throw "should never get here";
|
|
103
166
|
}
|
|
104
|
-
var
|
|
105
|
-
if (
|
|
106
|
-
return
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
};
|
|
130
|
-
|
|
131
|
-
let
|
|
132
|
-
for (;
|
|
133
|
-
|
|
134
|
-
|
|
167
|
+
var unwrap = (result) => {
|
|
168
|
+
if (result.isOk) {
|
|
169
|
+
return result.value;
|
|
170
|
+
} else {
|
|
171
|
+
throw result.value;
|
|
172
|
+
}
|
|
173
|
+
};
|
|
174
|
+
var unwrapErr = (result) => {
|
|
175
|
+
if (result.isErr) {
|
|
176
|
+
return result.value;
|
|
177
|
+
} else {
|
|
178
|
+
throw result.value;
|
|
179
|
+
}
|
|
180
|
+
};
|
|
181
|
+
var updateFallbackSlotVisibility = (elm) => {
|
|
182
|
+
const childNodes = internalCall(elm, "childNodes");
|
|
183
|
+
if (elm.tagName && elm.tagName.includes("-") && elm["s-cr"] && elm.tagName !== "SLOT-FB") {
|
|
184
|
+
getHostSlotNodes(childNodes, elm.tagName).forEach((slotNode) => {
|
|
185
|
+
if (slotNode.nodeType === 1 && slotNode.tagName === "SLOT-FB") {
|
|
186
|
+
if (getSlotChildSiblings(slotNode, getSlotName(slotNode), false).length) {
|
|
187
|
+
slotNode.hidden = true;
|
|
188
|
+
} else {
|
|
189
|
+
slotNode.hidden = false;
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
});
|
|
193
|
+
}
|
|
194
|
+
let i2 = 0;
|
|
195
|
+
for (i2 = 0; i2 < childNodes.length; i2++) {
|
|
196
|
+
const childNode = childNodes[i2];
|
|
197
|
+
if (childNode.nodeType === 1 && internalCall(childNode, "childNodes").length) {
|
|
198
|
+
updateFallbackSlotVisibility(childNode);
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
};
|
|
202
|
+
var getSlottedChildNodes = (childNodes) => {
|
|
203
|
+
const result = [];
|
|
204
|
+
for (let i2 = 0; i2 < childNodes.length; i2++) {
|
|
205
|
+
const slottedNode = childNodes[i2]["s-nr"] || void 0;
|
|
206
|
+
if (slottedNode && slottedNode.isConnected) {
|
|
207
|
+
result.push(slottedNode);
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
return result;
|
|
211
|
+
};
|
|
212
|
+
function getHostSlotNodes(childNodes, hostName, slotName) {
|
|
213
|
+
let i2 = 0;
|
|
214
|
+
let slottedNodes = [];
|
|
215
|
+
let childNode;
|
|
216
|
+
for (; i2 < childNodes.length; i2++) {
|
|
217
|
+
childNode = childNodes[i2];
|
|
218
|
+
if (childNode["s-sr"] && (!hostName || childNode["s-hn"] === hostName) && slotName === void 0) {
|
|
219
|
+
slottedNodes.push(childNode);
|
|
220
|
+
}
|
|
221
|
+
slottedNodes = [...slottedNodes, ...getHostSlotNodes(childNode.childNodes, hostName, slotName)];
|
|
222
|
+
}
|
|
223
|
+
return slottedNodes;
|
|
135
224
|
}
|
|
136
|
-
var
|
|
137
|
-
const
|
|
138
|
-
(
|
|
139
|
-
let
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
225
|
+
var getSlotChildSiblings = (slot, slotName, includeSlot = true) => {
|
|
226
|
+
const childNodes = [];
|
|
227
|
+
if (includeSlot && slot["s-sr"] || !slot["s-sr"]) childNodes.push(slot);
|
|
228
|
+
let node = slot;
|
|
229
|
+
while (node = node.nextSibling) {
|
|
230
|
+
if (getSlotName(node) === slotName && (includeSlot || !node["s-sr"])) childNodes.push(node);
|
|
231
|
+
}
|
|
232
|
+
return childNodes;
|
|
233
|
+
};
|
|
234
|
+
var isNodeLocatedInSlot = (nodeToRelocate, slotName) => {
|
|
235
|
+
if (nodeToRelocate.nodeType === 1) {
|
|
236
|
+
if (nodeToRelocate.getAttribute("slot") === null && slotName === "") {
|
|
237
|
+
return true;
|
|
238
|
+
}
|
|
239
|
+
if (nodeToRelocate.getAttribute("slot") === slotName) {
|
|
240
|
+
return true;
|
|
241
|
+
}
|
|
242
|
+
return false;
|
|
243
|
+
}
|
|
244
|
+
if (nodeToRelocate["s-sn"] === slotName) {
|
|
245
|
+
return true;
|
|
246
|
+
}
|
|
247
|
+
return slotName === "";
|
|
248
|
+
};
|
|
249
|
+
var getSlotName = (node) => typeof node["s-sn"] === "string" ? node["s-sn"] : node.nodeType === 1 && node.getAttribute("slot") || void 0;
|
|
250
|
+
function patchSlotNode(node) {
|
|
251
|
+
if (node.assignedElements || node.assignedNodes || !node["s-sr"]) return;
|
|
252
|
+
const assignedFactory = (elementsOnly) => (function(opts) {
|
|
253
|
+
const toReturn = [];
|
|
254
|
+
const slotName = this["s-sn"];
|
|
255
|
+
if (opts == null ? void 0 : opts.flatten) {
|
|
256
|
+
console.error(`
|
|
149
257
|
Flattening is not supported for Stencil non-shadow slots.
|
|
150
258
|
You can use \`.childNodes\` to nested slot fallback content.
|
|
151
259
|
If you have a particular use case, please open an issue on the Stencil repo.
|
|
152
260
|
`);
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
(
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
261
|
+
}
|
|
262
|
+
const parent = this["s-cr"].parentElement;
|
|
263
|
+
const slottedNodes = parent.__childNodes ? parent.childNodes : getSlottedChildNodes(parent.childNodes);
|
|
264
|
+
slottedNodes.forEach((n) => {
|
|
265
|
+
if (slotName === getSlotName(n)) {
|
|
266
|
+
toReturn.push(n);
|
|
267
|
+
}
|
|
268
|
+
});
|
|
269
|
+
if (elementsOnly) {
|
|
270
|
+
return toReturn.filter(
|
|
271
|
+
(n) => n.nodeType === 1
|
|
272
|
+
/* ElementNode */
|
|
273
|
+
);
|
|
274
|
+
}
|
|
275
|
+
return toReturn;
|
|
276
|
+
}).bind(node);
|
|
277
|
+
node.assignedElements = assignedFactory(true);
|
|
278
|
+
node.assignedNodes = assignedFactory(false);
|
|
162
279
|
}
|
|
163
|
-
function
|
|
164
|
-
if ("__" +
|
|
165
|
-
const
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
280
|
+
function internalCall(node, method) {
|
|
281
|
+
if ("__" + method in node) {
|
|
282
|
+
const toReturn = node["__" + method];
|
|
283
|
+
if (typeof toReturn !== "function") return toReturn;
|
|
284
|
+
return toReturn.bind(node);
|
|
285
|
+
} else {
|
|
286
|
+
if (typeof node[method] !== "function") return node[method];
|
|
287
|
+
return node[method].bind(node);
|
|
288
|
+
}
|
|
169
289
|
}
|
|
170
|
-
var
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
290
|
+
var createTime = (fnName, tagName = "") => {
|
|
291
|
+
{
|
|
292
|
+
return () => {
|
|
293
|
+
return;
|
|
294
|
+
};
|
|
295
|
+
}
|
|
296
|
+
};
|
|
297
|
+
var h = (nodeName, vnodeData, ...children) => {
|
|
298
|
+
let child = null;
|
|
299
|
+
let key = null;
|
|
300
|
+
let slotName = null;
|
|
301
|
+
let simple = false;
|
|
302
|
+
let lastSimple = false;
|
|
303
|
+
const vNodeChildren = [];
|
|
304
|
+
const walk = (c) => {
|
|
305
|
+
for (let i2 = 0; i2 < c.length; i2++) {
|
|
306
|
+
child = c[i2];
|
|
307
|
+
if (Array.isArray(child)) {
|
|
308
|
+
walk(child);
|
|
309
|
+
} else if (child != null && typeof child !== "boolean") {
|
|
310
|
+
if (simple = typeof nodeName !== "function" && !isComplexType(child)) {
|
|
311
|
+
child = String(child);
|
|
312
|
+
}
|
|
313
|
+
if (simple && lastSimple) {
|
|
314
|
+
vNodeChildren[vNodeChildren.length - 1].$text$ += child;
|
|
315
|
+
} else {
|
|
316
|
+
vNodeChildren.push(simple ? newVNode(null, child) : child);
|
|
317
|
+
}
|
|
318
|
+
lastSimple = simple;
|
|
319
|
+
}
|
|
320
|
+
}
|
|
176
321
|
};
|
|
177
|
-
|
|
178
|
-
|
|
322
|
+
walk(children);
|
|
323
|
+
if (vnodeData) {
|
|
324
|
+
if (vnodeData.key) {
|
|
325
|
+
key = vnodeData.key;
|
|
326
|
+
}
|
|
327
|
+
if (vnodeData.name) {
|
|
328
|
+
slotName = vnodeData.name;
|
|
329
|
+
}
|
|
179
330
|
{
|
|
180
|
-
const
|
|
181
|
-
|
|
331
|
+
const classData = vnodeData.className || vnodeData.class;
|
|
332
|
+
if (classData) {
|
|
333
|
+
vnodeData.class = typeof classData !== "object" ? classData : Object.keys(classData).filter((k) => classData[k]).join(" ");
|
|
334
|
+
}
|
|
182
335
|
}
|
|
183
336
|
}
|
|
184
|
-
const
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
337
|
+
const vnode = newVNode(nodeName, null);
|
|
338
|
+
vnode.$attrs$ = vnodeData;
|
|
339
|
+
if (vNodeChildren.length > 0) {
|
|
340
|
+
vnode.$children$ = vNodeChildren;
|
|
341
|
+
}
|
|
342
|
+
{
|
|
343
|
+
vnode.$key$ = key;
|
|
344
|
+
}
|
|
345
|
+
{
|
|
346
|
+
vnode.$name$ = slotName;
|
|
347
|
+
}
|
|
348
|
+
return vnode;
|
|
349
|
+
};
|
|
350
|
+
var newVNode = (tag, text) => {
|
|
351
|
+
const vnode = {
|
|
188
352
|
$flags$: 0,
|
|
189
|
-
$tag$:
|
|
190
|
-
$text$:
|
|
353
|
+
$tag$: tag,
|
|
354
|
+
$text$: text,
|
|
191
355
|
$elm$: null,
|
|
192
356
|
$children$: null
|
|
193
357
|
};
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
358
|
+
{
|
|
359
|
+
vnode.$attrs$ = null;
|
|
360
|
+
}
|
|
361
|
+
{
|
|
362
|
+
vnode.$key$ = null;
|
|
363
|
+
}
|
|
364
|
+
{
|
|
365
|
+
vnode.$name$ = null;
|
|
366
|
+
}
|
|
367
|
+
return vnode;
|
|
368
|
+
};
|
|
369
|
+
var Host = {};
|
|
370
|
+
var isHost = (node) => node && node.$tag$ === Host;
|
|
371
|
+
var createSupportsRuleRe = (selector) => {
|
|
372
|
+
const safeSelector2 = escapeRegExpSpecialCharacters(selector);
|
|
197
373
|
return new RegExp(
|
|
198
374
|
// First capture group: match any context before the selector that's not inside @supports selector()
|
|
199
375
|
// Using negative lookahead to avoid matching inside @supports selector(...) condition
|
|
200
|
-
`(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?${
|
|
376
|
+
`(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?${safeSelector2}))(${safeSelector2}\\b)`,
|
|
201
377
|
"g"
|
|
202
378
|
);
|
|
203
379
|
};
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
var
|
|
208
|
-
|
|
380
|
+
createSupportsRuleRe("::slotted");
|
|
381
|
+
createSupportsRuleRe(":host");
|
|
382
|
+
createSupportsRuleRe(":host-context");
|
|
383
|
+
var parsePropertyValue = (propValue, propType) => {
|
|
384
|
+
if (propValue != null && !isComplexType(propValue)) {
|
|
385
|
+
if (propType & 4) {
|
|
386
|
+
return propValue === "false" ? false : propValue === "" || !!propValue;
|
|
387
|
+
}
|
|
388
|
+
if (propType & 2) {
|
|
389
|
+
return typeof propValue === "string" ? parseFloat(propValue) : typeof propValue === "number" ? propValue : NaN;
|
|
390
|
+
}
|
|
391
|
+
if (propType & 1) {
|
|
392
|
+
return String(propValue);
|
|
393
|
+
}
|
|
394
|
+
return propValue;
|
|
395
|
+
}
|
|
396
|
+
return propValue;
|
|
397
|
+
};
|
|
398
|
+
var getElement = (ref) => ref;
|
|
399
|
+
var createEvent = (ref, name, flags) => {
|
|
400
|
+
const elm = getElement(ref);
|
|
209
401
|
return {
|
|
210
|
-
emit: (
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
402
|
+
emit: (detail) => {
|
|
403
|
+
return emitEvent(elm, name, {
|
|
404
|
+
bubbles: true,
|
|
405
|
+
composed: true,
|
|
406
|
+
cancelable: true,
|
|
407
|
+
detail
|
|
408
|
+
});
|
|
409
|
+
}
|
|
216
410
|
};
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
411
|
+
};
|
|
412
|
+
var emitEvent = (elm, name, opts) => {
|
|
413
|
+
const ev = plt.ce(name, opts);
|
|
414
|
+
elm.dispatchEvent(ev);
|
|
415
|
+
return ev;
|
|
416
|
+
};
|
|
417
|
+
var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
|
|
418
|
+
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
|
|
419
|
+
if (oldValue === newValue) {
|
|
222
420
|
return;
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
(
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
421
|
+
}
|
|
422
|
+
let isProp = isMemberInElement(elm, memberName);
|
|
423
|
+
let ln = memberName.toLowerCase();
|
|
424
|
+
if (memberName === "class") {
|
|
425
|
+
const classList = elm.classList;
|
|
426
|
+
const oldClasses = parseClassList(oldValue);
|
|
427
|
+
let newClasses = parseClassList(newValue);
|
|
428
|
+
{
|
|
429
|
+
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
430
|
+
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
431
|
+
}
|
|
432
|
+
} else if (memberName === "style") {
|
|
433
|
+
{
|
|
434
|
+
for (const prop in oldValue) {
|
|
435
|
+
if (!newValue || newValue[prop] == null) {
|
|
436
|
+
if (prop.includes("-")) {
|
|
437
|
+
elm.style.removeProperty(prop);
|
|
438
|
+
} else {
|
|
439
|
+
elm.style[prop] = "";
|
|
440
|
+
}
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
}
|
|
444
|
+
for (const prop in newValue) {
|
|
445
|
+
if (!oldValue || newValue[prop] !== oldValue[prop]) {
|
|
446
|
+
if (prop.includes("-")) {
|
|
447
|
+
elm.style.setProperty(prop, newValue[prop]);
|
|
448
|
+
} else {
|
|
449
|
+
elm.style[prop] = newValue[prop];
|
|
450
|
+
}
|
|
451
|
+
}
|
|
452
|
+
}
|
|
453
|
+
} else if (memberName === "key") ;
|
|
454
|
+
else if (memberName === "ref") {
|
|
455
|
+
if (newValue) {
|
|
456
|
+
newValue(elm);
|
|
457
|
+
}
|
|
458
|
+
} else if (!elm.__lookupSetter__(memberName) && memberName[0] === "o" && memberName[1] === "n") {
|
|
459
|
+
if (memberName[2] === "-") {
|
|
460
|
+
memberName = memberName.slice(3);
|
|
461
|
+
} else if (isMemberInElement(win, ln)) {
|
|
462
|
+
memberName = ln.slice(2);
|
|
463
|
+
} else {
|
|
464
|
+
memberName = ln[2] + memberName.slice(3);
|
|
465
|
+
}
|
|
466
|
+
if (oldValue || newValue) {
|
|
467
|
+
const capture = memberName.endsWith(CAPTURE_EVENT_SUFFIX);
|
|
468
|
+
memberName = memberName.replace(CAPTURE_EVENT_REGEX, "");
|
|
469
|
+
if (oldValue) {
|
|
470
|
+
plt.rel(elm, memberName, oldValue, capture);
|
|
471
|
+
}
|
|
472
|
+
if (newValue) {
|
|
473
|
+
plt.ael(elm, memberName, newValue, capture);
|
|
474
|
+
}
|
|
239
475
|
}
|
|
240
476
|
} else {
|
|
241
|
-
const
|
|
242
|
-
if (
|
|
477
|
+
const isComplex = isComplexType(newValue);
|
|
478
|
+
if ((isProp || isComplex && newValue !== null) && true) {
|
|
243
479
|
try {
|
|
244
|
-
if (
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
480
|
+
if (!elm.tagName.includes("-")) {
|
|
481
|
+
const n = newValue == null ? "" : newValue;
|
|
482
|
+
if (memberName === "list") {
|
|
483
|
+
isProp = false;
|
|
484
|
+
} else if (oldValue == null || elm[memberName] != n) {
|
|
485
|
+
if (typeof elm.__lookupSetter__(memberName) === "function") {
|
|
486
|
+
elm[memberName] = n;
|
|
487
|
+
} else {
|
|
488
|
+
elm.setAttribute(memberName, n);
|
|
489
|
+
}
|
|
490
|
+
}
|
|
491
|
+
} else if (elm[memberName] !== newValue) {
|
|
492
|
+
elm[memberName] = newValue;
|
|
249
493
|
}
|
|
250
|
-
} catch {
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
494
|
+
} catch (e) {
|
|
495
|
+
}
|
|
496
|
+
}
|
|
497
|
+
let xlink = false;
|
|
498
|
+
{
|
|
499
|
+
if (ln !== (ln = ln.replace(/^xlink\:?/, ""))) {
|
|
500
|
+
memberName = ln;
|
|
501
|
+
xlink = true;
|
|
502
|
+
}
|
|
503
|
+
}
|
|
504
|
+
if (newValue == null || newValue === false) {
|
|
505
|
+
if (newValue !== false || elm.getAttribute(memberName) === "") {
|
|
506
|
+
if (xlink) {
|
|
507
|
+
elm.removeAttributeNS(XLINK_NS, memberName);
|
|
508
|
+
} else {
|
|
509
|
+
elm.removeAttribute(memberName);
|
|
510
|
+
}
|
|
511
|
+
}
|
|
512
|
+
} else if ((!isProp || flags & 4 || isSvg) && !isComplex && elm.nodeType === 1) {
|
|
513
|
+
newValue = newValue === true ? "" : newValue;
|
|
514
|
+
if (xlink) {
|
|
515
|
+
elm.setAttributeNS(XLINK_NS, memberName, newValue);
|
|
516
|
+
} else {
|
|
517
|
+
elm.setAttribute(memberName, newValue);
|
|
518
|
+
}
|
|
519
|
+
}
|
|
520
|
+
}
|
|
521
|
+
};
|
|
522
|
+
var parseClassListRegex = /\s/;
|
|
523
|
+
var parseClassList = (value) => {
|
|
524
|
+
if (typeof value === "object" && value && "baseVal" in value) {
|
|
525
|
+
value = value.baseVal;
|
|
526
|
+
}
|
|
527
|
+
if (!value || typeof value !== "string") {
|
|
528
|
+
return [];
|
|
529
|
+
}
|
|
530
|
+
return value.split(parseClassListRegex);
|
|
531
|
+
};
|
|
532
|
+
var CAPTURE_EVENT_SUFFIX = "Capture";
|
|
533
|
+
var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
|
|
534
|
+
var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
|
|
535
|
+
const elm = newVnode.$elm$.nodeType === 11 && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
|
|
536
|
+
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
|
|
537
|
+
const newVnodeAttrs = newVnode.$attrs$ || {};
|
|
538
|
+
{
|
|
539
|
+
for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
|
|
540
|
+
if (!(memberName in newVnodeAttrs)) {
|
|
541
|
+
setAccessor(
|
|
542
|
+
elm,
|
|
543
|
+
memberName,
|
|
544
|
+
oldVnodeAttrs[memberName],
|
|
545
|
+
void 0,
|
|
546
|
+
isSvgMode2,
|
|
547
|
+
newVnode.$flags$
|
|
548
|
+
);
|
|
549
|
+
}
|
|
550
|
+
}
|
|
551
|
+
}
|
|
552
|
+
for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
|
|
553
|
+
setAccessor(
|
|
554
|
+
elm,
|
|
555
|
+
memberName,
|
|
556
|
+
oldVnodeAttrs[memberName],
|
|
557
|
+
newVnodeAttrs[memberName],
|
|
558
|
+
isSvgMode2,
|
|
559
|
+
newVnode.$flags$
|
|
274
560
|
);
|
|
561
|
+
}
|
|
275
562
|
};
|
|
276
|
-
function
|
|
277
|
-
return
|
|
563
|
+
function sortedAttrNames(attrNames) {
|
|
564
|
+
return attrNames.includes("ref") ? (
|
|
278
565
|
// we need to sort these to ensure that `'ref'` is the last attr
|
|
279
|
-
[...
|
|
566
|
+
[...attrNames.filter((attr) => attr !== "ref"), "ref"]
|
|
280
567
|
) : (
|
|
281
568
|
// no need to sort, return the original array
|
|
282
|
-
|
|
569
|
+
attrNames
|
|
283
570
|
);
|
|
284
571
|
}
|
|
285
|
-
var
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
)
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
572
|
+
var contentRef;
|
|
573
|
+
var hostTagName;
|
|
574
|
+
var useNativeShadowDom = false;
|
|
575
|
+
var checkSlotFallbackVisibility = false;
|
|
576
|
+
var checkSlotRelocate = false;
|
|
577
|
+
var isSvgMode = false;
|
|
578
|
+
var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
579
|
+
var _a;
|
|
580
|
+
const newVNode2 = newParentVNode.$children$[childIndex];
|
|
581
|
+
let i2 = 0;
|
|
582
|
+
let elm;
|
|
583
|
+
let childNode;
|
|
584
|
+
let oldVNode;
|
|
585
|
+
if (!useNativeShadowDom) {
|
|
586
|
+
checkSlotRelocate = true;
|
|
587
|
+
if (newVNode2.$tag$ === "slot") {
|
|
588
|
+
newVNode2.$flags$ |= newVNode2.$children$ ? (
|
|
589
|
+
// slot element has fallback content
|
|
590
|
+
// still create an element that "mocks" the slot element
|
|
591
|
+
2
|
|
592
|
+
) : (
|
|
593
|
+
// slot element does not have fallback content
|
|
594
|
+
// create an html comment we'll use to always reference
|
|
595
|
+
// where actual slot content should sit next to
|
|
596
|
+
1
|
|
597
|
+
);
|
|
598
|
+
}
|
|
599
|
+
}
|
|
600
|
+
if (newVNode2.$text$ !== null) {
|
|
601
|
+
elm = newVNode2.$elm$ = win.document.createTextNode(newVNode2.$text$);
|
|
602
|
+
} else if (newVNode2.$flags$ & 1) {
|
|
603
|
+
elm = newVNode2.$elm$ = win.document.createTextNode("");
|
|
604
|
+
{
|
|
605
|
+
updateElement(null, newVNode2, isSvgMode);
|
|
606
|
+
}
|
|
607
|
+
} else {
|
|
608
|
+
if (!win.document) {
|
|
304
609
|
throw new Error(
|
|
305
610
|
"You are trying to render a Stencil component in an environment that doesn't support the DOM. Make sure to populate the [`window`](https://developer.mozilla.org/en-US/docs/Web/API/Window/window) object before rendering a component."
|
|
306
611
|
);
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
r["s-hn"] !== J && r["s-ol"] && (k(j(r).parentNode, r, j(r)), r["s-ol"].remove(), r["s-ol"] = void 0, r["s-sh"] = void 0, Q = !0), t && P(r, t);
|
|
320
|
-
}
|
|
321
|
-
y.$flags$ &= -2;
|
|
322
|
-
}, ge = (e, t, s, n, r, o) => {
|
|
323
|
-
let l = e["s-cr"] && e["s-cr"].parentNode || e, i;
|
|
324
|
-
for (; r <= o; ++r)
|
|
325
|
-
n[r] && (i = N(null, s, r), i && (n[r].$elm$ = i, k(l, i, j(t))));
|
|
326
|
-
}, ve = (e, t, s) => {
|
|
327
|
-
for (let n = t; n <= s; ++n) {
|
|
328
|
-
const r = e[n];
|
|
329
|
-
if (r) {
|
|
330
|
-
const o = r.$elm$;
|
|
331
|
-
_e(r), o && (C = !0, o["s-ol"] ? o["s-ol"].remove() : P(o, !0), o.remove());
|
|
332
|
-
}
|
|
333
|
-
}
|
|
334
|
-
}, Ye = (e, t, s, n, r = !1) => {
|
|
335
|
-
let o = 0, l = 0, i = 0, a = 0, $ = t.length - 1, f = t[0], d = t[$], c = n.length - 1, u = n[0], h = n[c], g, S;
|
|
336
|
-
for (; o <= $ && l <= c; )
|
|
337
|
-
if (f == null)
|
|
338
|
-
f = t[++o];
|
|
339
|
-
else if (d == null)
|
|
340
|
-
d = t[--$];
|
|
341
|
-
else if (u == null)
|
|
342
|
-
u = n[++l];
|
|
343
|
-
else if (h == null)
|
|
344
|
-
h = n[--c];
|
|
345
|
-
else if (w(f, u, r))
|
|
346
|
-
x(f, u, r), f = t[++o], u = n[++l];
|
|
347
|
-
else if (w(d, h, r))
|
|
348
|
-
x(d, h, r), d = t[--$], h = n[--c];
|
|
349
|
-
else if (w(f, h, r))
|
|
350
|
-
(f.$tag$ === "slot" || h.$tag$ === "slot") && P(f.$elm$.parentNode, !1), x(f, h, r), k(e, f.$elm$, d.$elm$.nextSibling), f = t[++o], h = n[--c];
|
|
351
|
-
else if (w(d, u, r))
|
|
352
|
-
(f.$tag$ === "slot" || h.$tag$ === "slot") && P(d.$elm$.parentNode, !1), x(d, u, r), k(e, d.$elm$, f.$elm$), d = t[--$], u = n[++l];
|
|
353
|
-
else {
|
|
354
|
-
for (i = -1, a = o; a <= $; ++a)
|
|
355
|
-
if (t[a] && t[a].$key$ !== null && t[a].$key$ === u.$key$) {
|
|
356
|
-
i = a;
|
|
357
|
-
break;
|
|
612
|
+
}
|
|
613
|
+
elm = newVNode2.$elm$ = win.document.createElement(
|
|
614
|
+
!useNativeShadowDom && BUILD.slotRelocation && newVNode2.$flags$ & 2 ? "slot-fb" : newVNode2.$tag$
|
|
615
|
+
);
|
|
616
|
+
{
|
|
617
|
+
updateElement(null, newVNode2, isSvgMode);
|
|
618
|
+
}
|
|
619
|
+
if (newVNode2.$children$) {
|
|
620
|
+
for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
|
|
621
|
+
childNode = createElm(oldParentVNode, newVNode2, i2);
|
|
622
|
+
if (childNode) {
|
|
623
|
+
elm.appendChild(childNode);
|
|
358
624
|
}
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
625
|
+
}
|
|
626
|
+
}
|
|
627
|
+
}
|
|
628
|
+
elm["s-hn"] = hostTagName;
|
|
629
|
+
{
|
|
630
|
+
if (newVNode2.$flags$ & (2 | 1)) {
|
|
631
|
+
elm["s-sr"] = true;
|
|
632
|
+
elm["s-cr"] = contentRef;
|
|
633
|
+
elm["s-sn"] = newVNode2.$name$ || "";
|
|
634
|
+
elm["s-rf"] = (_a = newVNode2.$attrs$) == null ? void 0 : _a.ref;
|
|
635
|
+
patchSlotNode(elm);
|
|
636
|
+
oldVNode = oldParentVNode && oldParentVNode.$children$ && oldParentVNode.$children$[childIndex];
|
|
637
|
+
if (oldVNode && oldVNode.$tag$ === newVNode2.$tag$ && oldParentVNode.$elm$) {
|
|
638
|
+
{
|
|
639
|
+
putBackInOriginalLocation(oldParentVNode.$elm$, false);
|
|
640
|
+
}
|
|
641
|
+
}
|
|
642
|
+
}
|
|
643
|
+
}
|
|
644
|
+
return elm;
|
|
645
|
+
};
|
|
646
|
+
var putBackInOriginalLocation = (parentElm, recursive) => {
|
|
647
|
+
plt.$flags$ |= 1;
|
|
648
|
+
const oldSlotChildNodes = Array.from(parentElm.__childNodes || parentElm.childNodes);
|
|
649
|
+
for (let i2 = oldSlotChildNodes.length - 1; i2 >= 0; i2--) {
|
|
650
|
+
const childNode = oldSlotChildNodes[i2];
|
|
651
|
+
if (childNode["s-hn"] !== hostTagName && childNode["s-ol"]) {
|
|
652
|
+
insertBefore(referenceNode(childNode).parentNode, childNode, referenceNode(childNode));
|
|
653
|
+
childNode["s-ol"].remove();
|
|
654
|
+
childNode["s-ol"] = void 0;
|
|
655
|
+
childNode["s-sh"] = void 0;
|
|
656
|
+
checkSlotRelocate = true;
|
|
657
|
+
}
|
|
658
|
+
if (recursive) {
|
|
659
|
+
putBackInOriginalLocation(childNode, recursive);
|
|
660
|
+
}
|
|
661
|
+
}
|
|
662
|
+
plt.$flags$ &= -2;
|
|
663
|
+
};
|
|
664
|
+
var addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
|
|
665
|
+
let containerElm = parentElm["s-cr"] && parentElm["s-cr"].parentNode || parentElm;
|
|
666
|
+
let childNode;
|
|
667
|
+
for (; startIdx <= endIdx; ++startIdx) {
|
|
668
|
+
if (vnodes[startIdx]) {
|
|
669
|
+
childNode = createElm(null, parentVNode, startIdx);
|
|
670
|
+
if (childNode) {
|
|
671
|
+
vnodes[startIdx].$elm$ = childNode;
|
|
672
|
+
insertBefore(containerElm, childNode, referenceNode(before));
|
|
673
|
+
}
|
|
674
|
+
}
|
|
675
|
+
}
|
|
676
|
+
};
|
|
677
|
+
var removeVnodes = (vnodes, startIdx, endIdx) => {
|
|
678
|
+
for (let index = startIdx; index <= endIdx; ++index) {
|
|
679
|
+
const vnode = vnodes[index];
|
|
680
|
+
if (vnode) {
|
|
681
|
+
const elm = vnode.$elm$;
|
|
682
|
+
nullifyVNodeRefs(vnode);
|
|
683
|
+
if (elm) {
|
|
684
|
+
{
|
|
685
|
+
checkSlotFallbackVisibility = true;
|
|
686
|
+
if (elm["s-ol"]) {
|
|
687
|
+
elm["s-ol"].remove();
|
|
688
|
+
} else {
|
|
689
|
+
putBackInOriginalLocation(elm, true);
|
|
690
|
+
}
|
|
691
|
+
}
|
|
692
|
+
elm.remove();
|
|
693
|
+
}
|
|
694
|
+
}
|
|
695
|
+
}
|
|
696
|
+
};
|
|
697
|
+
var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = false) => {
|
|
698
|
+
let oldStartIdx = 0;
|
|
699
|
+
let newStartIdx = 0;
|
|
700
|
+
let idxInOld = 0;
|
|
701
|
+
let i2 = 0;
|
|
702
|
+
let oldEndIdx = oldCh.length - 1;
|
|
703
|
+
let oldStartVnode = oldCh[0];
|
|
704
|
+
let oldEndVnode = oldCh[oldEndIdx];
|
|
705
|
+
let newEndIdx = newCh.length - 1;
|
|
706
|
+
let newStartVnode = newCh[0];
|
|
707
|
+
let newEndVnode = newCh[newEndIdx];
|
|
708
|
+
let node;
|
|
709
|
+
let elmToMove;
|
|
710
|
+
while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {
|
|
711
|
+
if (oldStartVnode == null) {
|
|
712
|
+
oldStartVnode = oldCh[++oldStartIdx];
|
|
713
|
+
} else if (oldEndVnode == null) {
|
|
714
|
+
oldEndVnode = oldCh[--oldEndIdx];
|
|
715
|
+
} else if (newStartVnode == null) {
|
|
716
|
+
newStartVnode = newCh[++newStartIdx];
|
|
717
|
+
} else if (newEndVnode == null) {
|
|
718
|
+
newEndVnode = newCh[--newEndIdx];
|
|
719
|
+
} else if (isSameVnode(oldStartVnode, newStartVnode, isInitialRender)) {
|
|
720
|
+
patch(oldStartVnode, newStartVnode, isInitialRender);
|
|
721
|
+
oldStartVnode = oldCh[++oldStartIdx];
|
|
722
|
+
newStartVnode = newCh[++newStartIdx];
|
|
723
|
+
} else if (isSameVnode(oldEndVnode, newEndVnode, isInitialRender)) {
|
|
724
|
+
patch(oldEndVnode, newEndVnode, isInitialRender);
|
|
725
|
+
oldEndVnode = oldCh[--oldEndIdx];
|
|
726
|
+
newEndVnode = newCh[--newEndIdx];
|
|
727
|
+
} else if (isSameVnode(oldStartVnode, newEndVnode, isInitialRender)) {
|
|
728
|
+
if (oldStartVnode.$tag$ === "slot" || newEndVnode.$tag$ === "slot") {
|
|
729
|
+
putBackInOriginalLocation(oldStartVnode.$elm$.parentNode, false);
|
|
730
|
+
}
|
|
731
|
+
patch(oldStartVnode, newEndVnode, isInitialRender);
|
|
732
|
+
insertBefore(parentElm, oldStartVnode.$elm$, oldEndVnode.$elm$.nextSibling);
|
|
733
|
+
oldStartVnode = oldCh[++oldStartIdx];
|
|
734
|
+
newEndVnode = newCh[--newEndIdx];
|
|
735
|
+
} else if (isSameVnode(oldEndVnode, newStartVnode, isInitialRender)) {
|
|
736
|
+
if (oldStartVnode.$tag$ === "slot" || newEndVnode.$tag$ === "slot") {
|
|
737
|
+
putBackInOriginalLocation(oldEndVnode.$elm$.parentNode, false);
|
|
738
|
+
}
|
|
739
|
+
patch(oldEndVnode, newStartVnode, isInitialRender);
|
|
740
|
+
insertBefore(parentElm, oldEndVnode.$elm$, oldStartVnode.$elm$);
|
|
741
|
+
oldEndVnode = oldCh[--oldEndIdx];
|
|
742
|
+
newStartVnode = newCh[++newStartIdx];
|
|
743
|
+
} else {
|
|
744
|
+
idxInOld = -1;
|
|
745
|
+
{
|
|
746
|
+
for (i2 = oldStartIdx; i2 <= oldEndIdx; ++i2) {
|
|
747
|
+
if (oldCh[i2] && oldCh[i2].$key$ !== null && oldCh[i2].$key$ === newStartVnode.$key$) {
|
|
748
|
+
idxInOld = i2;
|
|
749
|
+
break;
|
|
750
|
+
}
|
|
751
|
+
}
|
|
752
|
+
}
|
|
753
|
+
if (idxInOld >= 0) {
|
|
754
|
+
elmToMove = oldCh[idxInOld];
|
|
755
|
+
if (elmToMove.$tag$ !== newStartVnode.$tag$) {
|
|
756
|
+
node = createElm(oldCh && oldCh[newStartIdx], newVNode2, idxInOld);
|
|
757
|
+
} else {
|
|
758
|
+
patch(elmToMove, newStartVnode, isInitialRender);
|
|
759
|
+
oldCh[idxInOld] = void 0;
|
|
760
|
+
node = elmToMove.$elm$;
|
|
761
|
+
}
|
|
762
|
+
newStartVnode = newCh[++newStartIdx];
|
|
763
|
+
} else {
|
|
764
|
+
node = createElm(oldCh && oldCh[newStartIdx], newVNode2, newStartIdx);
|
|
765
|
+
newStartVnode = newCh[++newStartIdx];
|
|
766
|
+
}
|
|
767
|
+
if (node) {
|
|
768
|
+
{
|
|
769
|
+
insertBefore(
|
|
770
|
+
referenceNode(oldStartVnode.$elm$).parentNode,
|
|
771
|
+
node,
|
|
772
|
+
referenceNode(oldStartVnode.$elm$)
|
|
773
|
+
);
|
|
774
|
+
}
|
|
775
|
+
}
|
|
364
776
|
}
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
if (
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
777
|
+
}
|
|
778
|
+
if (oldStartIdx > oldEndIdx) {
|
|
779
|
+
addVnodes(
|
|
780
|
+
parentElm,
|
|
781
|
+
newCh[newEndIdx + 1] == null ? null : newCh[newEndIdx + 1].$elm$,
|
|
782
|
+
newVNode2,
|
|
783
|
+
newCh,
|
|
784
|
+
newStartIdx,
|
|
785
|
+
newEndIdx
|
|
786
|
+
);
|
|
787
|
+
} else if (newStartIdx > newEndIdx) {
|
|
788
|
+
removeVnodes(oldCh, oldStartIdx, oldEndIdx);
|
|
789
|
+
}
|
|
790
|
+
};
|
|
791
|
+
var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
|
|
792
|
+
if (leftVNode.$tag$ === rightVNode.$tag$) {
|
|
793
|
+
if (leftVNode.$tag$ === "slot") {
|
|
794
|
+
return leftVNode.$name$ === rightVNode.$name$;
|
|
795
|
+
}
|
|
796
|
+
if (!isInitialRender) {
|
|
797
|
+
return leftVNode.$key$ === rightVNode.$key$;
|
|
798
|
+
}
|
|
799
|
+
if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
|
|
800
|
+
leftVNode.$key$ = rightVNode.$key$;
|
|
801
|
+
}
|
|
802
|
+
return true;
|
|
803
|
+
}
|
|
804
|
+
return false;
|
|
805
|
+
};
|
|
806
|
+
var referenceNode = (node) => node && node["s-ol"] || node;
|
|
807
|
+
var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
808
|
+
const elm = newVNode2.$elm$ = oldVNode.$elm$;
|
|
809
|
+
const oldChildren = oldVNode.$children$;
|
|
810
|
+
const newChildren = newVNode2.$children$;
|
|
811
|
+
const text = newVNode2.$text$;
|
|
812
|
+
let defaultHolder;
|
|
813
|
+
if (text === null) {
|
|
814
|
+
{
|
|
815
|
+
updateElement(oldVNode, newVNode2, isSvgMode);
|
|
816
|
+
}
|
|
817
|
+
if (oldChildren !== null && newChildren !== null) {
|
|
818
|
+
updateChildren(elm, oldChildren, newVNode2, newChildren, isInitialRender);
|
|
819
|
+
} else if (newChildren !== null) {
|
|
820
|
+
if (oldVNode.$text$ !== null) {
|
|
821
|
+
elm.textContent = "";
|
|
822
|
+
}
|
|
823
|
+
addVnodes(elm, null, newVNode2, newChildren, 0, newChildren.length - 1);
|
|
824
|
+
} else if (
|
|
825
|
+
// don't do this on initial render as it can cause non-hydrated content to be removed
|
|
826
|
+
!isInitialRender && BUILD.updatable && oldChildren !== null
|
|
827
|
+
) {
|
|
828
|
+
removeVnodes(oldChildren, 0, oldChildren.length - 1);
|
|
829
|
+
}
|
|
830
|
+
} else if (defaultHolder = elm["s-cr"]) {
|
|
831
|
+
defaultHolder.parentNode.textContent = text;
|
|
832
|
+
} else if (oldVNode.$text$ !== text) {
|
|
833
|
+
elm.data = text;
|
|
834
|
+
}
|
|
835
|
+
};
|
|
836
|
+
var relocateNodes = [];
|
|
837
|
+
var markSlotContentForRelocation = (elm) => {
|
|
838
|
+
let node;
|
|
839
|
+
let hostContentNodes;
|
|
840
|
+
let j;
|
|
841
|
+
const children = elm.__childNodes || elm.childNodes;
|
|
842
|
+
for (const childNode of children) {
|
|
843
|
+
if (childNode["s-sr"] && (node = childNode["s-cr"]) && node.parentNode) {
|
|
844
|
+
hostContentNodes = node.parentNode.__childNodes || node.parentNode.childNodes;
|
|
845
|
+
const slotName = childNode["s-sn"];
|
|
846
|
+
for (j = hostContentNodes.length - 1; j >= 0; j--) {
|
|
847
|
+
node = hostContentNodes[j];
|
|
848
|
+
if (!node["s-cn"] && !node["s-nr"] && node["s-hn"] !== childNode["s-hn"] && true) {
|
|
849
|
+
if (isNodeLocatedInSlot(node, slotName)) {
|
|
850
|
+
let relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
|
|
851
|
+
checkSlotFallbackVisibility = true;
|
|
852
|
+
node["s-sn"] = node["s-sn"] || slotName;
|
|
853
|
+
if (relocateNodeData) {
|
|
854
|
+
relocateNodeData.$nodeToRelocate$["s-sh"] = childNode["s-hn"];
|
|
855
|
+
relocateNodeData.$slotRefNode$ = childNode;
|
|
856
|
+
} else {
|
|
857
|
+
node["s-sh"] = childNode["s-hn"];
|
|
858
|
+
relocateNodes.push({
|
|
859
|
+
$slotRefNode$: childNode,
|
|
860
|
+
$nodeToRelocate$: node
|
|
861
|
+
});
|
|
862
|
+
}
|
|
863
|
+
if (node["s-sr"]) {
|
|
864
|
+
relocateNodes.map((relocateNode) => {
|
|
865
|
+
if (isNodeLocatedInSlot(relocateNode.$nodeToRelocate$, node["s-sn"])) {
|
|
866
|
+
relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
|
|
867
|
+
if (relocateNodeData && !relocateNode.$slotRefNode$) {
|
|
868
|
+
relocateNode.$slotRefNode$ = relocateNodeData.$slotRefNode$;
|
|
869
|
+
}
|
|
870
|
+
}
|
|
871
|
+
});
|
|
872
|
+
}
|
|
873
|
+
} else if (!relocateNodes.some((r) => r.$nodeToRelocate$ === node)) {
|
|
874
|
+
relocateNodes.push({
|
|
875
|
+
$nodeToRelocate$: node
|
|
396
876
|
});
|
|
397
|
-
}
|
|
398
|
-
|
|
399
|
-
|
|
877
|
+
}
|
|
878
|
+
}
|
|
879
|
+
}
|
|
880
|
+
}
|
|
881
|
+
if (childNode.nodeType === 1) {
|
|
882
|
+
markSlotContentForRelocation(childNode);
|
|
400
883
|
}
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
e.$attrs$ && e.$attrs$.ref && e.$attrs$.ref(null), e.$children$ && e.$children$.map(_e);
|
|
405
|
-
}, k = (e, t, s) => e == null ? void 0 : e.insertBefore(t, s), Ke = (e, t, s = !1) => {
|
|
406
|
-
var n, r, o, l;
|
|
407
|
-
const i = e.$hostElement$, a = e.$vnode$ || F(null, null), f = ze(t) ? t : Fe(null, null, t);
|
|
408
|
-
if (J = i.tagName, s && f.$attrs$)
|
|
409
|
-
for (const d of Object.keys(f.$attrs$))
|
|
410
|
-
i.hasAttribute(d) && !["key", "ref", "style", "class"].includes(d) && (f.$attrs$[d] = i[d]);
|
|
411
|
-
f.$tag$ = null, f.$flags$ |= 4, e.$vnode$ = f, f.$elm$ = a.$elm$ = i, q = Le, z = i["s-cr"], C = !1, x(a, f, s);
|
|
884
|
+
}
|
|
885
|
+
};
|
|
886
|
+
var nullifyVNodeRefs = (vNode) => {
|
|
412
887
|
{
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
888
|
+
vNode.$attrs$ && vNode.$attrs$.ref && vNode.$attrs$.ref(null);
|
|
889
|
+
vNode.$children$ && vNode.$children$.map(nullifyVNodeRefs);
|
|
890
|
+
}
|
|
891
|
+
};
|
|
892
|
+
var insertBefore = (parent, newNode, reference) => {
|
|
893
|
+
{
|
|
894
|
+
return parent == null ? void 0 : parent.insertBefore(newNode, reference);
|
|
895
|
+
}
|
|
896
|
+
};
|
|
897
|
+
var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
898
|
+
var _a, _b, _c, _d;
|
|
899
|
+
const hostElm = hostRef.$hostElement$;
|
|
900
|
+
const oldVNode = hostRef.$vnode$ || newVNode(null, null);
|
|
901
|
+
const isHostElement = isHost(renderFnResults);
|
|
902
|
+
const rootVnode = isHostElement ? renderFnResults : h(null, null, renderFnResults);
|
|
903
|
+
hostTagName = hostElm.tagName;
|
|
904
|
+
if (isInitialLoad && rootVnode.$attrs$) {
|
|
905
|
+
for (const key of Object.keys(rootVnode.$attrs$)) {
|
|
906
|
+
if (hostElm.hasAttribute(key) && !["key", "ref", "style", "class"].includes(key)) {
|
|
907
|
+
rootVnode.$attrs$[key] = hostElm[key];
|
|
908
|
+
}
|
|
909
|
+
}
|
|
910
|
+
}
|
|
911
|
+
rootVnode.$tag$ = null;
|
|
912
|
+
rootVnode.$flags$ |= 4;
|
|
913
|
+
hostRef.$vnode$ = rootVnode;
|
|
914
|
+
rootVnode.$elm$ = oldVNode.$elm$ = hostElm;
|
|
915
|
+
useNativeShadowDom = supportsShadow;
|
|
916
|
+
{
|
|
917
|
+
contentRef = hostElm["s-cr"];
|
|
918
|
+
checkSlotFallbackVisibility = false;
|
|
919
|
+
}
|
|
920
|
+
patch(oldVNode, rootVnode, isInitialLoad);
|
|
921
|
+
{
|
|
922
|
+
plt.$flags$ |= 1;
|
|
923
|
+
if (checkSlotRelocate) {
|
|
924
|
+
markSlotContentForRelocation(rootVnode.$elm$);
|
|
925
|
+
for (const relocateData of relocateNodes) {
|
|
926
|
+
const nodeToRelocate = relocateData.$nodeToRelocate$;
|
|
927
|
+
if (!nodeToRelocate["s-ol"] && win.document) {
|
|
928
|
+
const orgLocationNode = win.document.createTextNode("");
|
|
929
|
+
orgLocationNode["s-nr"] = nodeToRelocate;
|
|
930
|
+
insertBefore(nodeToRelocate.parentNode, nodeToRelocate["s-ol"] = orgLocationNode, nodeToRelocate);
|
|
420
931
|
}
|
|
421
932
|
}
|
|
422
|
-
for (const
|
|
423
|
-
const
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
933
|
+
for (const relocateData of relocateNodes) {
|
|
934
|
+
const nodeToRelocate = relocateData.$nodeToRelocate$;
|
|
935
|
+
const slotRefNode = relocateData.$slotRefNode$;
|
|
936
|
+
if (slotRefNode) {
|
|
937
|
+
const parentNodeRef = slotRefNode.parentNode;
|
|
938
|
+
let insertBeforeNode = slotRefNode.nextSibling;
|
|
427
939
|
{
|
|
428
|
-
let
|
|
429
|
-
|
|
430
|
-
let
|
|
431
|
-
if (
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
940
|
+
let orgLocationNode = (_a = nodeToRelocate["s-ol"]) == null ? void 0 : _a.previousSibling;
|
|
941
|
+
while (orgLocationNode) {
|
|
942
|
+
let refNode = (_b = orgLocationNode["s-nr"]) != null ? _b : null;
|
|
943
|
+
if (refNode && refNode["s-sn"] === nodeToRelocate["s-sn"] && parentNodeRef === (refNode.__parentNode || refNode.parentNode)) {
|
|
944
|
+
refNode = refNode.nextSibling;
|
|
945
|
+
while (refNode === nodeToRelocate || (refNode == null ? void 0 : refNode["s-sr"])) {
|
|
946
|
+
refNode = refNode == null ? void 0 : refNode.nextSibling;
|
|
947
|
+
}
|
|
948
|
+
if (!refNode || !refNode["s-nr"]) {
|
|
949
|
+
insertBeforeNode = refNode;
|
|
436
950
|
break;
|
|
437
951
|
}
|
|
438
952
|
}
|
|
439
|
-
|
|
953
|
+
orgLocationNode = orgLocationNode.previousSibling;
|
|
954
|
+
}
|
|
955
|
+
}
|
|
956
|
+
const parent = nodeToRelocate.__parentNode || nodeToRelocate.parentNode;
|
|
957
|
+
const nextSibling = nodeToRelocate.__nextSibling || nodeToRelocate.nextSibling;
|
|
958
|
+
if (!insertBeforeNode && parentNodeRef !== parent || nextSibling !== insertBeforeNode) {
|
|
959
|
+
if (nodeToRelocate !== insertBeforeNode) {
|
|
960
|
+
if (!nodeToRelocate["s-hn"] && nodeToRelocate["s-ol"]) {
|
|
961
|
+
nodeToRelocate["s-hn"] = nodeToRelocate["s-ol"].parentNode.nodeName;
|
|
962
|
+
}
|
|
963
|
+
insertBefore(parentNodeRef, nodeToRelocate, insertBeforeNode);
|
|
964
|
+
if (nodeToRelocate.nodeType === 1 && nodeToRelocate.tagName !== "SLOT-FB") {
|
|
965
|
+
nodeToRelocate.hidden = (_c = nodeToRelocate["s-ih"]) != null ? _c : false;
|
|
966
|
+
}
|
|
967
|
+
}
|
|
968
|
+
}
|
|
969
|
+
nodeToRelocate && typeof slotRefNode["s-rf"] === "function" && slotRefNode["s-rf"](slotRefNode);
|
|
970
|
+
} else {
|
|
971
|
+
if (nodeToRelocate.nodeType === 1) {
|
|
972
|
+
if (isInitialLoad) {
|
|
973
|
+
nodeToRelocate["s-ih"] = (_d = nodeToRelocate.hidden) != null ? _d : false;
|
|
440
974
|
}
|
|
975
|
+
nodeToRelocate.hidden = true;
|
|
441
976
|
}
|
|
442
|
-
|
|
443
|
-
(!g && h !== S || L !== g) && c !== g && (!c["s-hn"] && c["s-ol"] && (c["s-hn"] = c["s-ol"].parentNode.nodeName), k(h, c, g), c.nodeType === 1 && c.tagName !== "SLOT-FB" && (c.hidden = (o = c["s-ih"]) != null ? o : !1)), c && typeof u["s-rf"] == "function" && u["s-rf"](u);
|
|
444
|
-
} else
|
|
445
|
-
c.nodeType === 1 && (s && (c["s-ih"] = (l = c.hidden) != null ? l : !1), c.hidden = !0);
|
|
977
|
+
}
|
|
446
978
|
}
|
|
447
979
|
}
|
|
448
|
-
|
|
980
|
+
if (checkSlotFallbackVisibility) {
|
|
981
|
+
updateFallbackSlotVisibility(rootVnode.$elm$);
|
|
982
|
+
}
|
|
983
|
+
plt.$flags$ &= -2;
|
|
984
|
+
relocateNodes.length = 0;
|
|
449
985
|
}
|
|
450
|
-
|
|
451
|
-
}
|
|
452
|
-
|
|
453
|
-
|
|
986
|
+
contentRef = void 0;
|
|
987
|
+
};
|
|
988
|
+
var attachToAncestor = (hostRef, ancestorComponent) => {
|
|
989
|
+
if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
|
|
990
|
+
const index = ancestorComponent["s-p"].push(
|
|
454
991
|
new Promise(
|
|
455
|
-
(
|
|
456
|
-
|
|
992
|
+
(r) => hostRef.$onRenderResolve$ = () => {
|
|
993
|
+
ancestorComponent["s-p"].splice(index - 1, 1);
|
|
994
|
+
r();
|
|
457
995
|
}
|
|
458
996
|
)
|
|
459
997
|
);
|
|
460
998
|
}
|
|
461
|
-
}
|
|
462
|
-
|
|
463
|
-
|
|
999
|
+
};
|
|
1000
|
+
var scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
1001
|
+
{
|
|
1002
|
+
hostRef.$flags$ |= 16;
|
|
1003
|
+
}
|
|
1004
|
+
if (hostRef.$flags$ & 4) {
|
|
1005
|
+
hostRef.$flags$ |= 512;
|
|
464
1006
|
return;
|
|
465
1007
|
}
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
1008
|
+
attachToAncestor(hostRef, hostRef.$ancestorComponent$);
|
|
1009
|
+
const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
|
|
1010
|
+
return writeTask(dispatch);
|
|
1011
|
+
};
|
|
1012
|
+
var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
1013
|
+
const elm = hostRef.$hostElement$;
|
|
1014
|
+
const endSchedule = createTime("scheduleUpdate", hostRef.$cmpMeta$.$tagName$);
|
|
1015
|
+
const instance = elm;
|
|
1016
|
+
if (!instance) {
|
|
470
1017
|
throw new Error(
|
|
471
|
-
`Can't render component <${
|
|
1018
|
+
`Can't render component <${elm.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`
|
|
472
1019
|
);
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
}
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
1020
|
+
}
|
|
1021
|
+
let maybePromise;
|
|
1022
|
+
if (isInitialLoad) {
|
|
1023
|
+
maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
|
|
1024
|
+
} else {
|
|
1025
|
+
maybePromise = safeCall(instance, "componentWillUpdate", void 0, elm);
|
|
1026
|
+
}
|
|
1027
|
+
maybePromise = enqueue(maybePromise, () => safeCall(instance, "componentWillRender", void 0, elm));
|
|
1028
|
+
endSchedule();
|
|
1029
|
+
return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
|
|
1030
|
+
};
|
|
1031
|
+
var enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn).catch((err2) => {
|
|
1032
|
+
console.error(err2);
|
|
1033
|
+
fn();
|
|
1034
|
+
}) : fn();
|
|
1035
|
+
var isPromisey = (maybePromise) => maybePromise instanceof Promise || maybePromise && maybePromise.then && typeof maybePromise.then === "function";
|
|
1036
|
+
var updateComponent = async (hostRef, instance, isInitialLoad) => {
|
|
1037
|
+
var _a;
|
|
1038
|
+
const elm = hostRef.$hostElement$;
|
|
1039
|
+
const endUpdate = createTime("update", hostRef.$cmpMeta$.$tagName$);
|
|
1040
|
+
const rc = elm["s-rc"];
|
|
1041
|
+
const endRender = createTime("render", hostRef.$cmpMeta$.$tagName$);
|
|
1042
|
+
{
|
|
1043
|
+
callRender(hostRef, instance, elm, isInitialLoad);
|
|
1044
|
+
}
|
|
1045
|
+
if (rc) {
|
|
1046
|
+
rc.map((cb) => cb());
|
|
1047
|
+
elm["s-rc"] = void 0;
|
|
1048
|
+
}
|
|
1049
|
+
endRender();
|
|
1050
|
+
endUpdate();
|
|
481
1051
|
{
|
|
482
|
-
const
|
|
483
|
-
|
|
1052
|
+
const childrenPromises = (_a = elm["s-p"]) != null ? _a : [];
|
|
1053
|
+
const postUpdate = () => postUpdateComponent(hostRef);
|
|
1054
|
+
if (childrenPromises.length === 0) {
|
|
1055
|
+
postUpdate();
|
|
1056
|
+
} else {
|
|
1057
|
+
Promise.all(childrenPromises).then(postUpdate);
|
|
1058
|
+
hostRef.$flags$ |= 4;
|
|
1059
|
+
childrenPromises.length = 0;
|
|
1060
|
+
}
|
|
484
1061
|
}
|
|
485
|
-
}
|
|
1062
|
+
};
|
|
1063
|
+
var callRender = (hostRef, instance, elm, isInitialLoad) => {
|
|
486
1064
|
try {
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
1065
|
+
instance = instance.render();
|
|
1066
|
+
{
|
|
1067
|
+
hostRef.$flags$ &= -17;
|
|
1068
|
+
}
|
|
1069
|
+
{
|
|
1070
|
+
hostRef.$flags$ |= 2;
|
|
1071
|
+
}
|
|
1072
|
+
{
|
|
1073
|
+
{
|
|
1074
|
+
{
|
|
1075
|
+
renderVdom(hostRef, instance, isInitialLoad);
|
|
1076
|
+
}
|
|
1077
|
+
}
|
|
1078
|
+
}
|
|
1079
|
+
} catch (e) {
|
|
1080
|
+
consoleError(e, hostRef.$hostElement$);
|
|
490
1081
|
}
|
|
491
1082
|
return null;
|
|
492
|
-
}
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
1083
|
+
};
|
|
1084
|
+
var postUpdateComponent = (hostRef) => {
|
|
1085
|
+
const tagName = hostRef.$cmpMeta$.$tagName$;
|
|
1086
|
+
const elm = hostRef.$hostElement$;
|
|
1087
|
+
const endPostUpdate = createTime("postUpdate", tagName);
|
|
1088
|
+
const instance = elm;
|
|
1089
|
+
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
1090
|
+
safeCall(instance, "componentDidRender", void 0, elm);
|
|
1091
|
+
if (!(hostRef.$flags$ & 64)) {
|
|
1092
|
+
hostRef.$flags$ |= 64;
|
|
1093
|
+
{
|
|
1094
|
+
addHydratedFlag(elm);
|
|
1095
|
+
}
|
|
1096
|
+
safeCall(instance, "componentDidLoad", void 0, elm);
|
|
1097
|
+
endPostUpdate();
|
|
1098
|
+
{
|
|
1099
|
+
hostRef.$onReadyResolve$(elm);
|
|
1100
|
+
if (!ancestorComponent) {
|
|
1101
|
+
appDidLoad();
|
|
1102
|
+
}
|
|
1103
|
+
}
|
|
1104
|
+
} else {
|
|
1105
|
+
safeCall(instance, "componentDidUpdate", void 0, elm);
|
|
1106
|
+
endPostUpdate();
|
|
1107
|
+
}
|
|
1108
|
+
{
|
|
1109
|
+
if (hostRef.$onRenderResolve$) {
|
|
1110
|
+
hostRef.$onRenderResolve$();
|
|
1111
|
+
hostRef.$onRenderResolve$ = void 0;
|
|
1112
|
+
}
|
|
1113
|
+
if (hostRef.$flags$ & 512) {
|
|
1114
|
+
nextTick(() => scheduleUpdate(hostRef, false));
|
|
1115
|
+
}
|
|
1116
|
+
hostRef.$flags$ &= -517;
|
|
1117
|
+
}
|
|
1118
|
+
};
|
|
1119
|
+
var appDidLoad = (who) => {
|
|
1120
|
+
nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
|
|
1121
|
+
};
|
|
1122
|
+
var safeCall = (instance, method, arg, elm) => {
|
|
1123
|
+
if (instance && instance[method]) {
|
|
499
1124
|
try {
|
|
500
|
-
return
|
|
501
|
-
} catch (
|
|
502
|
-
|
|
503
|
-
}
|
|
504
|
-
}
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
1125
|
+
return instance[method](arg);
|
|
1126
|
+
} catch (e) {
|
|
1127
|
+
consoleError(e, elm);
|
|
1128
|
+
}
|
|
1129
|
+
}
|
|
1130
|
+
return void 0;
|
|
1131
|
+
};
|
|
1132
|
+
var addHydratedFlag = (elm) => {
|
|
1133
|
+
var _a;
|
|
1134
|
+
return elm.classList.add((_a = BUILD.hydratedSelectorName) != null ? _a : "hydrated");
|
|
1135
|
+
};
|
|
1136
|
+
var getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
|
|
1137
|
+
var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
1138
|
+
const hostRef = getHostRef(ref);
|
|
1139
|
+
const elm = ref;
|
|
1140
|
+
const oldVal = hostRef.$instanceValues$.get(propName);
|
|
1141
|
+
const flags = hostRef.$flags$;
|
|
1142
|
+
const instance = elm;
|
|
1143
|
+
newVal = parsePropertyValue(newVal, cmpMeta.$members$[propName][0]);
|
|
1144
|
+
const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);
|
|
1145
|
+
const didValueChange = newVal !== oldVal && !areBothNaN;
|
|
1146
|
+
if (didValueChange) {
|
|
1147
|
+
hostRef.$instanceValues$.set(propName, newVal);
|
|
513
1148
|
{
|
|
514
|
-
if (
|
|
515
|
-
const
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
1149
|
+
if (cmpMeta.$watchers$ && flags & 128) {
|
|
1150
|
+
const watchMethods = cmpMeta.$watchers$[propName];
|
|
1151
|
+
if (watchMethods) {
|
|
1152
|
+
watchMethods.map((watchMethodName) => {
|
|
1153
|
+
try {
|
|
1154
|
+
instance[watchMethodName](newVal, oldVal, propName);
|
|
1155
|
+
} catch (e) {
|
|
1156
|
+
consoleError(e, elm);
|
|
1157
|
+
}
|
|
1158
|
+
});
|
|
1159
|
+
}
|
|
1160
|
+
}
|
|
1161
|
+
if ((flags & (2 | 16)) === 2) {
|
|
1162
|
+
if (instance.componentShouldUpdate) {
|
|
1163
|
+
if (instance.componentShouldUpdate(newVal, oldVal, propName) === false) {
|
|
1164
|
+
return;
|
|
521
1165
|
}
|
|
522
|
-
}
|
|
1166
|
+
}
|
|
1167
|
+
scheduleUpdate(hostRef, false);
|
|
523
1168
|
}
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
1169
|
+
}
|
|
1170
|
+
}
|
|
1171
|
+
};
|
|
1172
|
+
var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
1173
|
+
var _a, _b;
|
|
1174
|
+
const prototype = Cstr.prototype;
|
|
1175
|
+
if (cmpMeta.$members$ || (cmpMeta.$watchers$ || Cstr.watchers)) {
|
|
1176
|
+
if (Cstr.watchers && !cmpMeta.$watchers$) {
|
|
1177
|
+
cmpMeta.$watchers$ = Cstr.watchers;
|
|
1178
|
+
}
|
|
1179
|
+
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
1180
|
+
members.map(([memberName, [memberFlags]]) => {
|
|
1181
|
+
if (memberFlags & 31 || memberFlags & 32) {
|
|
1182
|
+
const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
|
|
1183
|
+
if (origGetter) cmpMeta.$members$[memberName][0] |= 2048;
|
|
1184
|
+
if (origSetter) cmpMeta.$members$[memberName][0] |= 4096;
|
|
1185
|
+
{
|
|
1186
|
+
Object.defineProperty(prototype, memberName, {
|
|
1187
|
+
get() {
|
|
1188
|
+
{
|
|
1189
|
+
return origGetter ? origGetter.apply(this) : getValue(this, memberName);
|
|
1190
|
+
}
|
|
1191
|
+
},
|
|
1192
|
+
configurable: true,
|
|
1193
|
+
enumerable: true
|
|
1194
|
+
});
|
|
1195
|
+
}
|
|
1196
|
+
Object.defineProperty(prototype, memberName, {
|
|
1197
|
+
set(newValue) {
|
|
1198
|
+
const ref = getHostRef(this);
|
|
1199
|
+
if (origSetter) {
|
|
1200
|
+
const currentValue = memberFlags & 32 ? this[memberName] : ref.$hostElement$[memberName];
|
|
1201
|
+
if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
|
|
1202
|
+
newValue = ref.$instanceValues$.get(memberName);
|
|
1203
|
+
} else if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
1204
|
+
ref.$instanceValues$.set(memberName, currentValue);
|
|
1205
|
+
}
|
|
1206
|
+
origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
|
|
1207
|
+
newValue = memberFlags & 32 ? this[memberName] : ref.$hostElement$[memberName];
|
|
1208
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
552
1209
|
return;
|
|
553
1210
|
}
|
|
554
1211
|
{
|
|
555
|
-
|
|
1212
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
556
1213
|
return;
|
|
557
1214
|
}
|
|
558
1215
|
}
|
|
@@ -560,141 +1217,231 @@ var z, J, q = !1, C = !1, Q = !1, G = !1, N = (e, t, s) => {
|
|
|
560
1217
|
}
|
|
561
1218
|
});
|
|
562
1219
|
{
|
|
563
|
-
const
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
var
|
|
567
|
-
const
|
|
568
|
-
if (
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
1220
|
+
const attrNameToPropName = /* @__PURE__ */ new Map();
|
|
1221
|
+
prototype.attributeChangedCallback = function(attrName, oldValue, newValue) {
|
|
1222
|
+
plt.jmp(() => {
|
|
1223
|
+
var _a2;
|
|
1224
|
+
const propName = attrNameToPropName.get(attrName);
|
|
1225
|
+
if (this.hasOwnProperty(propName) && BUILD.lazyLoad) ;
|
|
1226
|
+
else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
|
|
1227
|
+
this[propName] == newValue) {
|
|
1228
|
+
return;
|
|
1229
|
+
} else if (propName == null) {
|
|
1230
|
+
const hostRef = getHostRef(this);
|
|
1231
|
+
const flags2 = hostRef == null ? void 0 : hostRef.$flags$;
|
|
1232
|
+
if (flags2 && !(flags2 & 8) && flags2 & 128 && newValue !== oldValue) {
|
|
1233
|
+
const elm = this;
|
|
1234
|
+
const instance = elm;
|
|
1235
|
+
const entry = (_a2 = cmpMeta.$watchers$) == null ? void 0 : _a2[attrName];
|
|
1236
|
+
entry == null ? void 0 : entry.forEach((callbackName) => {
|
|
1237
|
+
if (instance[callbackName] != null) {
|
|
1238
|
+
instance[callbackName].call(instance, newValue, oldValue, attrName);
|
|
1239
|
+
}
|
|
1240
|
+
});
|
|
581
1241
|
}
|
|
1242
|
+
return;
|
|
1243
|
+
}
|
|
1244
|
+
const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
|
|
1245
|
+
newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
1246
|
+
if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
|
|
1247
|
+
this[propName] = newValue;
|
|
582
1248
|
}
|
|
583
|
-
const u = Object.getOwnPropertyDescriptor(o, c);
|
|
584
|
-
f = f === null && typeof this[c] == "boolean" ? !1 : f, f !== this[c] && (!u.get || u.set) && (this[c] = f);
|
|
585
1249
|
});
|
|
586
|
-
}
|
|
1250
|
+
};
|
|
1251
|
+
Cstr.observedAttributes = Array.from(
|
|
587
1252
|
/* @__PURE__ */ new Set([
|
|
588
|
-
...Object.keys((
|
|
589
|
-
...
|
|
590
|
-
([
|
|
1253
|
+
...Object.keys((_b = cmpMeta.$watchers$) != null ? _b : {}),
|
|
1254
|
+
...members.filter(
|
|
1255
|
+
([_, m]) => m[0] & 15
|
|
591
1256
|
/* HasAttribute */
|
|
592
|
-
).map(([
|
|
593
|
-
const
|
|
594
|
-
|
|
1257
|
+
).map(([propName, m]) => {
|
|
1258
|
+
const attrName = m[1] || propName;
|
|
1259
|
+
attrNameToPropName.set(attrName, propName);
|
|
1260
|
+
return attrName;
|
|
595
1261
|
})
|
|
596
1262
|
])
|
|
597
1263
|
);
|
|
598
1264
|
}
|
|
599
1265
|
}
|
|
600
|
-
return
|
|
601
|
-
}
|
|
602
|
-
|
|
603
|
-
|
|
1266
|
+
return Cstr;
|
|
1267
|
+
};
|
|
1268
|
+
var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
1269
|
+
if ((hostRef.$flags$ & 32) === 0) {
|
|
1270
|
+
hostRef.$flags$ |= 32;
|
|
604
1271
|
{
|
|
605
|
-
const
|
|
606
|
-
customElements.whenDefined(
|
|
607
|
-
() =>
|
|
1272
|
+
const cmpTag = elm.localName;
|
|
1273
|
+
customElements.whenDefined(cmpTag).then(
|
|
1274
|
+
() => hostRef.$flags$ |= 128
|
|
608
1275
|
/* isWatchReady */
|
|
609
1276
|
);
|
|
610
1277
|
}
|
|
611
1278
|
}
|
|
612
|
-
const
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
1279
|
+
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
1280
|
+
const schedule = () => scheduleUpdate(hostRef, true);
|
|
1281
|
+
if (ancestorComponent && ancestorComponent["s-rc"]) {
|
|
1282
|
+
ancestorComponent["s-rc"].push(schedule);
|
|
1283
|
+
} else {
|
|
1284
|
+
schedule();
|
|
1285
|
+
}
|
|
1286
|
+
};
|
|
1287
|
+
var fireConnectedCallback = (instance, elm) => {
|
|
1288
|
+
};
|
|
1289
|
+
var connectedCallback = (elm) => {
|
|
1290
|
+
if ((plt.$flags$ & 1) === 0) {
|
|
1291
|
+
const hostRef = getHostRef(elm);
|
|
1292
|
+
const cmpMeta = hostRef.$cmpMeta$;
|
|
1293
|
+
const endConnected = createTime("connectedCallback", cmpMeta.$tagName$);
|
|
1294
|
+
if (!(hostRef.$flags$ & 1)) {
|
|
1295
|
+
hostRef.$flags$ |= 1;
|
|
623
1296
|
{
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
1297
|
+
if (
|
|
1298
|
+
// TODO(STENCIL-854): Remove code related to legacy shadowDomShim field
|
|
1299
|
+
cmpMeta.$flags$ & (4 | 8)
|
|
1300
|
+
) {
|
|
1301
|
+
setContentReference(elm);
|
|
1302
|
+
}
|
|
1303
|
+
}
|
|
1304
|
+
{
|
|
1305
|
+
let ancestorComponent = elm;
|
|
1306
|
+
while (ancestorComponent = ancestorComponent.parentNode || ancestorComponent.host) {
|
|
1307
|
+
if (ancestorComponent["s-p"]) {
|
|
1308
|
+
attachToAncestor(hostRef, hostRef.$ancestorComponent$ = ancestorComponent);
|
|
628
1309
|
break;
|
|
629
1310
|
}
|
|
630
|
-
}
|
|
631
|
-
s.$members$ && Object.entries(s.$members$).map(([r, [o]]) => {
|
|
632
|
-
if (o & 31 && e.hasOwnProperty(r)) {
|
|
633
|
-
const l = e[r];
|
|
634
|
-
delete e[r], e[r] = l;
|
|
635
1311
|
}
|
|
636
|
-
}
|
|
1312
|
+
}
|
|
1313
|
+
if (cmpMeta.$members$) {
|
|
1314
|
+
Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
|
|
1315
|
+
if (memberFlags & 31 && elm.hasOwnProperty(memberName)) {
|
|
1316
|
+
const value = elm[memberName];
|
|
1317
|
+
delete elm[memberName];
|
|
1318
|
+
elm[memberName] = value;
|
|
1319
|
+
}
|
|
1320
|
+
});
|
|
1321
|
+
}
|
|
1322
|
+
if (BUILD.initializeNextTick) {
|
|
1323
|
+
nextTick(() => initializeComponent(elm, hostRef));
|
|
1324
|
+
} else {
|
|
1325
|
+
initializeComponent(elm, hostRef);
|
|
1326
|
+
}
|
|
1327
|
+
} else {
|
|
1328
|
+
addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
|
|
1329
|
+
if (hostRef == null ? void 0 : hostRef.$lazyInstance$) ;
|
|
1330
|
+
else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
|
1331
|
+
hostRef.$onReadyPromise$.then(() => fireConnectedCallback());
|
|
1332
|
+
}
|
|
637
1333
|
}
|
|
638
|
-
|
|
1334
|
+
endConnected();
|
|
639
1335
|
}
|
|
640
|
-
}
|
|
641
|
-
|
|
1336
|
+
};
|
|
1337
|
+
var setContentReference = (elm) => {
|
|
1338
|
+
if (!win.document) {
|
|
642
1339
|
return;
|
|
643
|
-
|
|
1340
|
+
}
|
|
1341
|
+
const contentRefElm = elm["s-cr"] = win.document.createComment(
|
|
644
1342
|
""
|
|
645
1343
|
);
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
1344
|
+
contentRefElm["s-cn"] = true;
|
|
1345
|
+
insertBefore(elm, contentRefElm, elm.firstChild);
|
|
1346
|
+
};
|
|
1347
|
+
var disconnectedCallback = async (elm) => {
|
|
1348
|
+
if ((plt.$flags$ & 1) === 0) {
|
|
1349
|
+
const hostRef = getHostRef(elm);
|
|
1350
|
+
{
|
|
1351
|
+
if (hostRef.$rmListeners$) {
|
|
1352
|
+
hostRef.$rmListeners$.map((rmListener) => rmListener());
|
|
1353
|
+
hostRef.$rmListeners$ = void 0;
|
|
1354
|
+
}
|
|
1355
|
+
}
|
|
1356
|
+
}
|
|
1357
|
+
if (rootAppliedStyles.has(elm)) {
|
|
1358
|
+
rootAppliedStyles.delete(elm);
|
|
1359
|
+
}
|
|
1360
|
+
if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
|
|
1361
|
+
rootAppliedStyles.delete(elm.shadowRoot);
|
|
1362
|
+
}
|
|
1363
|
+
};
|
|
1364
|
+
var proxyCustomElement = (Cstr, compactMeta) => {
|
|
1365
|
+
const cmpMeta = {
|
|
1366
|
+
$flags$: compactMeta[0],
|
|
1367
|
+
$tagName$: compactMeta[1]
|
|
657
1368
|
};
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
1369
|
+
{
|
|
1370
|
+
cmpMeta.$members$ = compactMeta[2];
|
|
1371
|
+
}
|
|
1372
|
+
{
|
|
1373
|
+
cmpMeta.$listeners$ = compactMeta[3];
|
|
1374
|
+
}
|
|
1375
|
+
{
|
|
1376
|
+
cmpMeta.$watchers$ = Cstr.$watchers$;
|
|
1377
|
+
}
|
|
1378
|
+
const originalConnectedCallback = Cstr.prototype.connectedCallback;
|
|
1379
|
+
const originalDisconnectedCallback = Cstr.prototype.disconnectedCallback;
|
|
1380
|
+
Object.assign(Cstr.prototype, {
|
|
1381
|
+
__hasHostListenerAttached: false,
|
|
662
1382
|
__registerHost() {
|
|
663
|
-
|
|
1383
|
+
registerHost(this, cmpMeta);
|
|
664
1384
|
},
|
|
665
1385
|
connectedCallback() {
|
|
666
1386
|
if (!this.__hasHostListenerAttached) {
|
|
667
|
-
const
|
|
668
|
-
|
|
1387
|
+
const hostRef = getHostRef(this);
|
|
1388
|
+
addHostEventListeners(this, hostRef, cmpMeta.$listeners$);
|
|
1389
|
+
this.__hasHostListenerAttached = true;
|
|
1390
|
+
}
|
|
1391
|
+
connectedCallback(this);
|
|
1392
|
+
if (originalConnectedCallback) {
|
|
1393
|
+
originalConnectedCallback.call(this);
|
|
669
1394
|
}
|
|
670
|
-
rt(this), n && n.call(this);
|
|
671
1395
|
},
|
|
672
1396
|
disconnectedCallback() {
|
|
673
|
-
|
|
1397
|
+
disconnectedCallback(this);
|
|
1398
|
+
if (originalDisconnectedCallback) {
|
|
1399
|
+
originalDisconnectedCallback.call(this);
|
|
1400
|
+
}
|
|
674
1401
|
},
|
|
675
1402
|
__attachShadow() {
|
|
676
|
-
|
|
1403
|
+
{
|
|
1404
|
+
this.shadowRoot = this;
|
|
1405
|
+
}
|
|
677
1406
|
}
|
|
678
|
-
}), e.is = s.$tagName$, st(e, s);
|
|
679
|
-
}, Se = (e, t, s, n) => {
|
|
680
|
-
s && v.document && s.map(([r, o, l]) => {
|
|
681
|
-
const i = at(v.document, e, r), a = lt(t, l), $ = ct(r);
|
|
682
|
-
y.ael(i, o, a, $), (t.$rmListeners$ = t.$rmListeners$ || []).push(() => y.rel(i, o, a, $));
|
|
683
1407
|
});
|
|
684
|
-
|
|
1408
|
+
Cstr.is = cmpMeta.$tagName$;
|
|
1409
|
+
return proxyComponent(Cstr, cmpMeta);
|
|
1410
|
+
};
|
|
1411
|
+
var addHostEventListeners = (elm, hostRef, listeners, attachParentListeners) => {
|
|
1412
|
+
if (listeners && win.document) {
|
|
1413
|
+
listeners.map(([flags, name, method]) => {
|
|
1414
|
+
const target = getHostListenerTarget(win.document, elm, flags);
|
|
1415
|
+
const handler = hostListenerProxy(hostRef, method);
|
|
1416
|
+
const opts = hostListenerOpts(flags);
|
|
1417
|
+
plt.ael(target, name, handler, opts);
|
|
1418
|
+
(hostRef.$rmListeners$ = hostRef.$rmListeners$ || []).push(() => plt.rel(target, name, handler, opts));
|
|
1419
|
+
});
|
|
1420
|
+
}
|
|
1421
|
+
};
|
|
1422
|
+
var hostListenerProxy = (hostRef, methodName) => (ev) => {
|
|
685
1423
|
try {
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
}
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
1424
|
+
{
|
|
1425
|
+
hostRef.$hostElement$[methodName](ev);
|
|
1426
|
+
}
|
|
1427
|
+
} catch (e) {
|
|
1428
|
+
consoleError(e, hostRef.$hostElement$);
|
|
1429
|
+
}
|
|
1430
|
+
};
|
|
1431
|
+
var getHostListenerTarget = (doc, elm, flags) => {
|
|
1432
|
+
if (flags & 8) {
|
|
1433
|
+
return win;
|
|
1434
|
+
}
|
|
1435
|
+
return elm;
|
|
1436
|
+
};
|
|
1437
|
+
var hostListenerOpts = (flags) => supportsListenerOptions ? {
|
|
1438
|
+
passive: (flags & 1) !== 0,
|
|
1439
|
+
capture: (flags & 2) !== 0
|
|
1440
|
+
} : (flags & 2) !== 0;
|
|
694
1441
|
export {
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
1442
|
+
H,
|
|
1443
|
+
Host as a,
|
|
1444
|
+
createEvent as c,
|
|
1445
|
+
h,
|
|
1446
|
+
proxyCustomElement as p
|
|
700
1447
|
};
|