@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,250 +1,255 @@
|
|
|
1
|
-
import { s as
|
|
2
|
-
import { s as
|
|
3
|
-
import { s as
|
|
4
|
-
import { s as
|
|
5
|
-
import { D as
|
|
6
|
-
import { s as
|
|
7
|
-
import { I as
|
|
8
|
-
import { resolveComponent
|
|
9
|
-
var
|
|
1
|
+
import { s as script$4 } from "../button/button.esm.es.js";
|
|
2
|
+
import { s as script$2 } from "../icons/angledown/index.esm.es.js";
|
|
3
|
+
import { s as script$3 } from "../icons/angleup/index.esm.es.js";
|
|
4
|
+
import { s as script$5 } from "../inputtext/inputtext.esm.es.js";
|
|
5
|
+
import { D as DomHandler, O as ObjectUtils } from "../utils/utils.esm.es.js";
|
|
6
|
+
import { s as script$6 } from "../basecomponent/basecomponent.esm.es.js";
|
|
7
|
+
import { I as InputNumberStyle } from "./style/inputnumberstyle.esm.es.js";
|
|
8
|
+
import { resolveComponent, createElementBlock, openBlock, mergeProps, createVNode, createCommentVNode, createBlock, toHandlers, withCtx, renderSlot, resolveDynamicComponent } from "vue";
|
|
9
|
+
var script$1 = {
|
|
10
10
|
name: "BaseInputNumber",
|
|
11
|
-
extends:
|
|
11
|
+
"extends": script$6,
|
|
12
12
|
props: {
|
|
13
13
|
modelValue: {
|
|
14
14
|
type: Number,
|
|
15
|
-
default: null
|
|
15
|
+
"default": null
|
|
16
16
|
},
|
|
17
17
|
format: {
|
|
18
18
|
type: Boolean,
|
|
19
|
-
default:
|
|
19
|
+
"default": true
|
|
20
20
|
},
|
|
21
21
|
showButtons: {
|
|
22
22
|
type: Boolean,
|
|
23
|
-
default:
|
|
23
|
+
"default": false
|
|
24
24
|
},
|
|
25
25
|
buttonLayout: {
|
|
26
26
|
type: String,
|
|
27
|
-
default: "stacked"
|
|
27
|
+
"default": "stacked"
|
|
28
28
|
},
|
|
29
29
|
incrementButtonClass: {
|
|
30
30
|
type: String,
|
|
31
|
-
default: null
|
|
31
|
+
"default": null
|
|
32
32
|
},
|
|
33
33
|
decrementButtonClass: {
|
|
34
34
|
type: String,
|
|
35
|
-
default: null
|
|
35
|
+
"default": null
|
|
36
36
|
},
|
|
37
37
|
incrementButtonIcon: {
|
|
38
38
|
type: String,
|
|
39
|
-
default: void 0
|
|
39
|
+
"default": void 0
|
|
40
40
|
},
|
|
41
41
|
decrementButtonIcon: {
|
|
42
42
|
type: String,
|
|
43
|
-
default: void 0
|
|
43
|
+
"default": void 0
|
|
44
44
|
},
|
|
45
45
|
locale: {
|
|
46
46
|
type: String,
|
|
47
|
-
default: void 0
|
|
47
|
+
"default": void 0
|
|
48
48
|
},
|
|
49
49
|
localeMatcher: {
|
|
50
50
|
type: String,
|
|
51
|
-
default: void 0
|
|
51
|
+
"default": void 0
|
|
52
52
|
},
|
|
53
53
|
mode: {
|
|
54
54
|
type: String,
|
|
55
|
-
default: "decimal"
|
|
55
|
+
"default": "decimal"
|
|
56
56
|
},
|
|
57
57
|
prefix: {
|
|
58
58
|
type: String,
|
|
59
|
-
default: null
|
|
59
|
+
"default": null
|
|
60
60
|
},
|
|
61
61
|
suffix: {
|
|
62
62
|
type: String,
|
|
63
|
-
default: null
|
|
63
|
+
"default": null
|
|
64
64
|
},
|
|
65
65
|
currency: {
|
|
66
66
|
type: String,
|
|
67
|
-
default: void 0
|
|
67
|
+
"default": void 0
|
|
68
68
|
},
|
|
69
69
|
currencyDisplay: {
|
|
70
70
|
type: String,
|
|
71
|
-
default: void 0
|
|
71
|
+
"default": void 0
|
|
72
72
|
},
|
|
73
73
|
useGrouping: {
|
|
74
74
|
type: Boolean,
|
|
75
|
-
default:
|
|
75
|
+
"default": true
|
|
76
76
|
},
|
|
77
77
|
minFractionDigits: {
|
|
78
78
|
type: Number,
|
|
79
|
-
default: void 0
|
|
79
|
+
"default": void 0
|
|
80
80
|
},
|
|
81
81
|
maxFractionDigits: {
|
|
82
82
|
type: Number,
|
|
83
|
-
default: void 0
|
|
83
|
+
"default": void 0
|
|
84
84
|
},
|
|
85
85
|
roundingMode: {
|
|
86
86
|
type: String,
|
|
87
|
-
default: "halfExpand",
|
|
88
|
-
validator: function(
|
|
89
|
-
return ["ceil", "floor", "expand", "trunc", "halfCeil", "halfFloor", "halfExpand", "halfTrunc", "halfEven"].includes(
|
|
87
|
+
"default": "halfExpand",
|
|
88
|
+
validator: function validator(value) {
|
|
89
|
+
return ["ceil", "floor", "expand", "trunc", "halfCeil", "halfFloor", "halfExpand", "halfTrunc", "halfEven"].includes(value);
|
|
90
90
|
}
|
|
91
91
|
},
|
|
92
92
|
min: {
|
|
93
93
|
type: Number,
|
|
94
|
-
default: null
|
|
94
|
+
"default": null
|
|
95
95
|
},
|
|
96
96
|
max: {
|
|
97
97
|
type: Number,
|
|
98
|
-
default: null
|
|
98
|
+
"default": null
|
|
99
99
|
},
|
|
100
100
|
step: {
|
|
101
101
|
type: Number,
|
|
102
|
-
default: 1
|
|
102
|
+
"default": 1
|
|
103
103
|
},
|
|
104
104
|
allowEmpty: {
|
|
105
105
|
type: Boolean,
|
|
106
|
-
default:
|
|
106
|
+
"default": true
|
|
107
107
|
},
|
|
108
108
|
highlightOnFocus: {
|
|
109
109
|
type: Boolean,
|
|
110
|
-
default:
|
|
110
|
+
"default": false
|
|
111
111
|
},
|
|
112
112
|
readonly: {
|
|
113
113
|
type: Boolean,
|
|
114
|
-
default:
|
|
114
|
+
"default": false
|
|
115
115
|
},
|
|
116
116
|
variant: {
|
|
117
117
|
type: String,
|
|
118
|
-
default: null
|
|
118
|
+
"default": null
|
|
119
119
|
},
|
|
120
120
|
invalid: {
|
|
121
121
|
type: Boolean,
|
|
122
|
-
default:
|
|
122
|
+
"default": false
|
|
123
123
|
},
|
|
124
124
|
disabled: {
|
|
125
125
|
type: Boolean,
|
|
126
|
-
default:
|
|
126
|
+
"default": false
|
|
127
127
|
},
|
|
128
128
|
placeholder: {
|
|
129
129
|
type: String,
|
|
130
|
-
default: null
|
|
130
|
+
"default": null
|
|
131
131
|
},
|
|
132
132
|
inputId: {
|
|
133
133
|
type: String,
|
|
134
|
-
default: null
|
|
134
|
+
"default": null
|
|
135
135
|
},
|
|
136
136
|
inputClass: {
|
|
137
137
|
type: [String, Object],
|
|
138
|
-
default: null
|
|
138
|
+
"default": null
|
|
139
139
|
},
|
|
140
140
|
inputStyle: {
|
|
141
141
|
type: Object,
|
|
142
|
-
default: null
|
|
142
|
+
"default": null
|
|
143
143
|
},
|
|
144
144
|
inputProps: {
|
|
145
145
|
type: null,
|
|
146
|
-
default: null
|
|
146
|
+
"default": null
|
|
147
147
|
},
|
|
148
148
|
incrementButtonProps: {
|
|
149
149
|
type: null,
|
|
150
|
-
default: null
|
|
150
|
+
"default": null
|
|
151
151
|
},
|
|
152
152
|
decrementButtonProps: {
|
|
153
153
|
type: null,
|
|
154
|
-
default: null
|
|
154
|
+
"default": null
|
|
155
155
|
},
|
|
156
156
|
ariaLabelledby: {
|
|
157
157
|
type: String,
|
|
158
|
-
default: null
|
|
158
|
+
"default": null
|
|
159
159
|
},
|
|
160
160
|
ariaLabel: {
|
|
161
161
|
type: String,
|
|
162
|
-
default: null
|
|
162
|
+
"default": null
|
|
163
163
|
}
|
|
164
164
|
},
|
|
165
|
-
style:
|
|
166
|
-
provide: function() {
|
|
165
|
+
style: InputNumberStyle,
|
|
166
|
+
provide: function provide() {
|
|
167
167
|
return {
|
|
168
168
|
$parentInstance: this
|
|
169
169
|
};
|
|
170
170
|
}
|
|
171
171
|
};
|
|
172
|
-
function
|
|
172
|
+
function _typeof(o) {
|
|
173
173
|
"@babel/helpers - typeof";
|
|
174
|
-
return
|
|
175
|
-
return typeof
|
|
176
|
-
} : function(
|
|
177
|
-
return
|
|
178
|
-
},
|
|
174
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
|
|
175
|
+
return typeof o2;
|
|
176
|
+
} : function(o2) {
|
|
177
|
+
return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
|
|
178
|
+
}, _typeof(o);
|
|
179
179
|
}
|
|
180
|
-
function
|
|
181
|
-
var t = Object.keys(
|
|
180
|
+
function ownKeys(e, r) {
|
|
181
|
+
var t = Object.keys(e);
|
|
182
182
|
if (Object.getOwnPropertySymbols) {
|
|
183
|
-
var
|
|
184
|
-
|
|
185
|
-
return Object.getOwnPropertyDescriptor(
|
|
186
|
-
})), t.push.apply(t,
|
|
183
|
+
var o = Object.getOwnPropertySymbols(e);
|
|
184
|
+
r && (o = o.filter(function(r2) {
|
|
185
|
+
return Object.getOwnPropertyDescriptor(e, r2).enumerable;
|
|
186
|
+
})), t.push.apply(t, o);
|
|
187
187
|
}
|
|
188
188
|
return t;
|
|
189
189
|
}
|
|
190
|
-
function
|
|
191
|
-
for (var
|
|
192
|
-
var t = arguments[
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(
|
|
196
|
-
Object.defineProperty(
|
|
190
|
+
function _objectSpread(e) {
|
|
191
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
192
|
+
var t = null != arguments[r] ? arguments[r] : {};
|
|
193
|
+
r % 2 ? ownKeys(Object(t), true).forEach(function(r2) {
|
|
194
|
+
_defineProperty(e, r2, t[r2]);
|
|
195
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function(r2) {
|
|
196
|
+
Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
|
|
197
197
|
});
|
|
198
198
|
}
|
|
199
|
-
return
|
|
199
|
+
return e;
|
|
200
200
|
}
|
|
201
|
-
function
|
|
202
|
-
|
|
201
|
+
function _defineProperty(obj, key, value) {
|
|
202
|
+
key = _toPropertyKey(key);
|
|
203
|
+
if (key in obj) {
|
|
204
|
+
Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true });
|
|
205
|
+
} else {
|
|
206
|
+
obj[key] = value;
|
|
207
|
+
}
|
|
208
|
+
return obj;
|
|
203
209
|
}
|
|
204
|
-
function
|
|
205
|
-
var
|
|
206
|
-
return
|
|
210
|
+
function _toPropertyKey(t) {
|
|
211
|
+
var i = _toPrimitive(t, "string");
|
|
212
|
+
return "symbol" == _typeof(i) ? i : String(i);
|
|
207
213
|
}
|
|
208
|
-
function
|
|
209
|
-
if (
|
|
210
|
-
var
|
|
211
|
-
if (
|
|
212
|
-
var i =
|
|
213
|
-
if (
|
|
214
|
+
function _toPrimitive(t, r) {
|
|
215
|
+
if ("object" != _typeof(t) || !t) return t;
|
|
216
|
+
var e = t[Symbol.toPrimitive];
|
|
217
|
+
if (void 0 !== e) {
|
|
218
|
+
var i = e.call(t, r);
|
|
219
|
+
if ("object" != _typeof(i)) return i;
|
|
214
220
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
215
221
|
}
|
|
216
|
-
return (
|
|
222
|
+
return ("string" === r ? String : Number)(t);
|
|
217
223
|
}
|
|
218
|
-
function
|
|
219
|
-
return
|
|
224
|
+
function _toConsumableArray(arr) {
|
|
225
|
+
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
|
220
226
|
}
|
|
221
|
-
function
|
|
222
|
-
throw new TypeError(
|
|
223
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
227
|
+
function _nonIterableSpread() {
|
|
228
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
224
229
|
}
|
|
225
|
-
function
|
|
226
|
-
if (
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
230
|
+
function _unsupportedIterableToArray(o, minLen) {
|
|
231
|
+
if (!o) return;
|
|
232
|
+
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
233
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
234
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
235
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
|
236
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
232
237
|
}
|
|
233
|
-
function
|
|
234
|
-
if (typeof Symbol
|
|
238
|
+
function _iterableToArray(iter) {
|
|
239
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
235
240
|
}
|
|
236
|
-
function
|
|
237
|
-
if (Array.isArray(
|
|
241
|
+
function _arrayWithoutHoles(arr) {
|
|
242
|
+
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
|
238
243
|
}
|
|
239
|
-
function
|
|
240
|
-
(
|
|
241
|
-
for (var
|
|
242
|
-
return
|
|
244
|
+
function _arrayLikeToArray(arr, len) {
|
|
245
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
246
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
247
|
+
return arr2;
|
|
243
248
|
}
|
|
244
|
-
var
|
|
249
|
+
var script = {
|
|
245
250
|
name: "InputNumber",
|
|
246
|
-
extends:
|
|
247
|
-
inheritAttrs:
|
|
251
|
+
"extends": script$1,
|
|
252
|
+
inheritAttrs: false,
|
|
248
253
|
emits: ["update:modelValue", "input", "focus", "blur"],
|
|
249
254
|
numberFormat: null,
|
|
250
255
|
_numeral: null,
|
|
@@ -260,102 +265,113 @@ var ie = {
|
|
|
260
265
|
prefixChar: null,
|
|
261
266
|
suffixChar: null,
|
|
262
267
|
timer: null,
|
|
263
|
-
data: function() {
|
|
268
|
+
data: function data() {
|
|
264
269
|
return {
|
|
265
270
|
d_modelValue: this.modelValue,
|
|
266
|
-
focused:
|
|
271
|
+
focused: false
|
|
267
272
|
};
|
|
268
273
|
},
|
|
269
274
|
watch: {
|
|
270
|
-
modelValue: function(
|
|
271
|
-
this.d_modelValue =
|
|
275
|
+
modelValue: function modelValue(newValue) {
|
|
276
|
+
this.d_modelValue = newValue;
|
|
272
277
|
},
|
|
273
|
-
locale: function(
|
|
274
|
-
this.updateConstructParser(
|
|
278
|
+
locale: function locale(newValue, oldValue) {
|
|
279
|
+
this.updateConstructParser(newValue, oldValue);
|
|
275
280
|
},
|
|
276
|
-
localeMatcher: function(
|
|
277
|
-
this.updateConstructParser(
|
|
281
|
+
localeMatcher: function localeMatcher(newValue, oldValue) {
|
|
282
|
+
this.updateConstructParser(newValue, oldValue);
|
|
278
283
|
},
|
|
279
|
-
mode: function(
|
|
280
|
-
this.updateConstructParser(
|
|
284
|
+
mode: function mode(newValue, oldValue) {
|
|
285
|
+
this.updateConstructParser(newValue, oldValue);
|
|
281
286
|
},
|
|
282
|
-
currency: function(
|
|
283
|
-
this.updateConstructParser(
|
|
287
|
+
currency: function currency(newValue, oldValue) {
|
|
288
|
+
this.updateConstructParser(newValue, oldValue);
|
|
284
289
|
},
|
|
285
|
-
currencyDisplay: function(
|
|
286
|
-
this.updateConstructParser(
|
|
290
|
+
currencyDisplay: function currencyDisplay(newValue, oldValue) {
|
|
291
|
+
this.updateConstructParser(newValue, oldValue);
|
|
287
292
|
},
|
|
288
|
-
useGrouping: function(
|
|
289
|
-
this.updateConstructParser(
|
|
293
|
+
useGrouping: function useGrouping(newValue, oldValue) {
|
|
294
|
+
this.updateConstructParser(newValue, oldValue);
|
|
290
295
|
},
|
|
291
|
-
minFractionDigits: function(
|
|
292
|
-
this.updateConstructParser(
|
|
296
|
+
minFractionDigits: function minFractionDigits(newValue, oldValue) {
|
|
297
|
+
this.updateConstructParser(newValue, oldValue);
|
|
293
298
|
},
|
|
294
|
-
maxFractionDigits: function(
|
|
295
|
-
this.updateConstructParser(
|
|
299
|
+
maxFractionDigits: function maxFractionDigits(newValue, oldValue) {
|
|
300
|
+
this.updateConstructParser(newValue, oldValue);
|
|
296
301
|
},
|
|
297
|
-
suffix: function(
|
|
298
|
-
this.updateConstructParser(
|
|
302
|
+
suffix: function suffix(newValue, oldValue) {
|
|
303
|
+
this.updateConstructParser(newValue, oldValue);
|
|
299
304
|
},
|
|
300
|
-
prefix: function(
|
|
301
|
-
this.updateConstructParser(
|
|
305
|
+
prefix: function prefix(newValue, oldValue) {
|
|
306
|
+
this.updateConstructParser(newValue, oldValue);
|
|
302
307
|
}
|
|
303
308
|
},
|
|
304
|
-
created: function() {
|
|
309
|
+
created: function created() {
|
|
305
310
|
this.constructParser();
|
|
306
311
|
},
|
|
307
312
|
methods: {
|
|
308
|
-
getOptions: function() {
|
|
309
|
-
var
|
|
313
|
+
getOptions: function getOptions() {
|
|
314
|
+
var _this$minFractionDigi, _this$maxFractionDigi;
|
|
310
315
|
return {
|
|
311
316
|
localeMatcher: this.localeMatcher,
|
|
312
317
|
style: this.mode,
|
|
313
318
|
currency: this.currency,
|
|
314
319
|
currencyDisplay: this.currencyDisplay,
|
|
315
320
|
useGrouping: this.useGrouping,
|
|
316
|
-
minimumFractionDigits: (
|
|
317
|
-
maximumFractionDigits: (
|
|
321
|
+
minimumFractionDigits: (_this$minFractionDigi = this.minFractionDigits) !== null && _this$minFractionDigi !== void 0 ? _this$minFractionDigi : void 0,
|
|
322
|
+
maximumFractionDigits: (_this$maxFractionDigi = this.maxFractionDigits) !== null && _this$maxFractionDigi !== void 0 ? _this$maxFractionDigi : void 0,
|
|
318
323
|
roundingMode: this.roundingMode
|
|
319
324
|
};
|
|
320
325
|
},
|
|
321
|
-
constructParser: function() {
|
|
326
|
+
constructParser: function constructParser() {
|
|
322
327
|
this.numberFormat = new Intl.NumberFormat(this.locale, this.getOptions());
|
|
323
|
-
var
|
|
324
|
-
useGrouping:
|
|
325
|
-
}).format(9876543210)).reverse()
|
|
326
|
-
|
|
328
|
+
var numerals = _toConsumableArray(new Intl.NumberFormat(this.locale, {
|
|
329
|
+
useGrouping: false
|
|
330
|
+
}).format(9876543210)).reverse();
|
|
331
|
+
var index = new Map(numerals.map(function(d, i) {
|
|
332
|
+
return [d, i];
|
|
327
333
|
}));
|
|
328
|
-
this._numeral = new RegExp("[".concat(
|
|
329
|
-
|
|
334
|
+
this._numeral = new RegExp("[".concat(numerals.join(""), "]"), "g");
|
|
335
|
+
this._group = this.getGroupingExpression();
|
|
336
|
+
this._minusSign = this.getMinusSignExpression();
|
|
337
|
+
this._currency = this.getCurrencyExpression();
|
|
338
|
+
this._decimal = this.getDecimalExpression();
|
|
339
|
+
this._suffix = this.getSuffixExpression();
|
|
340
|
+
this._prefix = this.getPrefixExpression();
|
|
341
|
+
this._index = function(d) {
|
|
342
|
+
return index.get(d);
|
|
330
343
|
};
|
|
331
344
|
},
|
|
332
|
-
updateConstructParser: function(
|
|
333
|
-
|
|
345
|
+
updateConstructParser: function updateConstructParser(newValue, oldValue) {
|
|
346
|
+
if (newValue !== oldValue) {
|
|
347
|
+
this.constructParser();
|
|
348
|
+
}
|
|
334
349
|
},
|
|
335
|
-
escapeRegExp: function(
|
|
336
|
-
return
|
|
350
|
+
escapeRegExp: function escapeRegExp(text) {
|
|
351
|
+
return text.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
|
|
337
352
|
},
|
|
338
|
-
getDecimalExpression: function() {
|
|
339
|
-
var
|
|
340
|
-
useGrouping:
|
|
353
|
+
getDecimalExpression: function getDecimalExpression() {
|
|
354
|
+
var formatter = new Intl.NumberFormat(this.locale, _objectSpread(_objectSpread({}, this.getOptions()), {}, {
|
|
355
|
+
useGrouping: false
|
|
341
356
|
}));
|
|
342
|
-
return new RegExp("[".concat(
|
|
357
|
+
return new RegExp("[".concat(formatter.format(1.1).replace(this._currency, "").trim().replace(this._numeral, ""), "]"), "g");
|
|
343
358
|
},
|
|
344
|
-
getGroupingExpression: function() {
|
|
345
|
-
var
|
|
346
|
-
useGrouping:
|
|
359
|
+
getGroupingExpression: function getGroupingExpression() {
|
|
360
|
+
var formatter = new Intl.NumberFormat(this.locale, {
|
|
361
|
+
useGrouping: true
|
|
347
362
|
});
|
|
348
|
-
|
|
363
|
+
this.groupChar = formatter.format(1e6).trim().replace(this._numeral, "").charAt(0);
|
|
364
|
+
return new RegExp("[".concat(this.groupChar, "]"), "g");
|
|
349
365
|
},
|
|
350
|
-
getMinusSignExpression: function() {
|
|
351
|
-
var
|
|
352
|
-
useGrouping:
|
|
366
|
+
getMinusSignExpression: function getMinusSignExpression() {
|
|
367
|
+
var formatter = new Intl.NumberFormat(this.locale, {
|
|
368
|
+
useGrouping: false
|
|
353
369
|
});
|
|
354
|
-
return new RegExp("[".concat(
|
|
370
|
+
return new RegExp("[".concat(formatter.format(-1).trim().replace(this._numeral, ""), "]"), "g");
|
|
355
371
|
},
|
|
356
|
-
getCurrencyExpression: function() {
|
|
372
|
+
getCurrencyExpression: function getCurrencyExpression() {
|
|
357
373
|
if (this.currency) {
|
|
358
|
-
var
|
|
374
|
+
var formatter = new Intl.NumberFormat(this.locale, {
|
|
359
375
|
style: "currency",
|
|
360
376
|
currency: this.currency,
|
|
361
377
|
currencyDisplay: this.currencyDisplay,
|
|
@@ -363,28 +379,28 @@ var ie = {
|
|
|
363
379
|
maximumFractionDigits: 0,
|
|
364
380
|
roundingMode: this.roundingMode
|
|
365
381
|
});
|
|
366
|
-
return new RegExp("[".concat(
|
|
382
|
+
return new RegExp("[".concat(formatter.format(1).replace(/\s/g, "").replace(this._numeral, "").replace(this._group, ""), "]"), "g");
|
|
367
383
|
}
|
|
368
384
|
return new RegExp("[]", "g");
|
|
369
385
|
},
|
|
370
|
-
getPrefixExpression: function() {
|
|
371
|
-
if (this.prefix)
|
|
386
|
+
getPrefixExpression: function getPrefixExpression() {
|
|
387
|
+
if (this.prefix) {
|
|
372
388
|
this.prefixChar = this.prefix;
|
|
373
|
-
else {
|
|
374
|
-
var
|
|
389
|
+
} else {
|
|
390
|
+
var formatter = new Intl.NumberFormat(this.locale, {
|
|
375
391
|
style: this.mode,
|
|
376
392
|
currency: this.currency,
|
|
377
393
|
currencyDisplay: this.currencyDisplay
|
|
378
394
|
});
|
|
379
|
-
this.prefixChar =
|
|
395
|
+
this.prefixChar = formatter.format(1).split("1")[0];
|
|
380
396
|
}
|
|
381
397
|
return new RegExp("".concat(this.escapeRegExp(this.prefixChar || "")), "g");
|
|
382
398
|
},
|
|
383
|
-
getSuffixExpression: function() {
|
|
384
|
-
if (this.suffix)
|
|
399
|
+
getSuffixExpression: function getSuffixExpression() {
|
|
400
|
+
if (this.suffix) {
|
|
385
401
|
this.suffixChar = this.suffix;
|
|
386
|
-
else {
|
|
387
|
-
var
|
|
402
|
+
} else {
|
|
403
|
+
var formatter = new Intl.NumberFormat(this.locale, {
|
|
388
404
|
style: this.mode,
|
|
389
405
|
currency: this.currency,
|
|
390
406
|
currencyDisplay: this.currencyDisplay,
|
|
@@ -392,546 +408,798 @@ var ie = {
|
|
|
392
408
|
maximumFractionDigits: 0,
|
|
393
409
|
roundingMode: this.roundingMode
|
|
394
410
|
});
|
|
395
|
-
this.suffixChar =
|
|
411
|
+
this.suffixChar = formatter.format(1).split("1")[1];
|
|
396
412
|
}
|
|
397
413
|
return new RegExp("".concat(this.escapeRegExp(this.suffixChar || "")), "g");
|
|
398
414
|
},
|
|
399
|
-
formatValue: function(
|
|
400
|
-
if (
|
|
401
|
-
if (
|
|
402
|
-
return
|
|
415
|
+
formatValue: function formatValue(value) {
|
|
416
|
+
if (value != null) {
|
|
417
|
+
if (value === "-") {
|
|
418
|
+
return value;
|
|
419
|
+
}
|
|
403
420
|
if (this.format) {
|
|
404
|
-
var
|
|
405
|
-
|
|
421
|
+
var formatter = new Intl.NumberFormat(this.locale, this.getOptions());
|
|
422
|
+
var formattedValue2 = formatter.format(value);
|
|
423
|
+
if (this.prefix) {
|
|
424
|
+
formattedValue2 = this.prefix + formattedValue2;
|
|
425
|
+
}
|
|
426
|
+
if (this.suffix) {
|
|
427
|
+
formattedValue2 = formattedValue2 + this.suffix;
|
|
428
|
+
}
|
|
429
|
+
return formattedValue2;
|
|
406
430
|
}
|
|
407
|
-
return
|
|
431
|
+
return value.toString();
|
|
408
432
|
}
|
|
409
433
|
return "";
|
|
410
434
|
},
|
|
411
|
-
parseValue: function(
|
|
412
|
-
var
|
|
413
|
-
if (
|
|
414
|
-
if (
|
|
415
|
-
return
|
|
416
|
-
var
|
|
417
|
-
return isNaN(
|
|
435
|
+
parseValue: function parseValue(text) {
|
|
436
|
+
var filteredText = text.replace(this._suffix, "").replace(this._prefix, "").trim().replace(/\s/g, "").replace(this._currency, "").replace(this._group, "").replace(this._minusSign, "-").replace(this._decimal, ".").replace(this._numeral, this._index);
|
|
437
|
+
if (filteredText) {
|
|
438
|
+
if (filteredText === "-")
|
|
439
|
+
return filteredText;
|
|
440
|
+
var parsedValue = +filteredText;
|
|
441
|
+
return isNaN(parsedValue) ? null : parsedValue;
|
|
418
442
|
}
|
|
419
443
|
return null;
|
|
420
444
|
},
|
|
421
|
-
repeat: function(
|
|
422
|
-
var
|
|
423
|
-
if (
|
|
424
|
-
|
|
425
|
-
this.clearTimer(), this.timer = setTimeout(function() {
|
|
426
|
-
r.repeat(e, 40, i);
|
|
427
|
-
}, s), this.spin(e, i);
|
|
445
|
+
repeat: function repeat(event, interval, dir) {
|
|
446
|
+
var _this = this;
|
|
447
|
+
if (this.readonly) {
|
|
448
|
+
return;
|
|
428
449
|
}
|
|
429
|
-
|
|
430
|
-
|
|
450
|
+
var i = interval || 500;
|
|
451
|
+
this.clearTimer();
|
|
452
|
+
this.timer = setTimeout(function() {
|
|
453
|
+
_this.repeat(event, 40, dir);
|
|
454
|
+
}, i);
|
|
455
|
+
this.spin(event, dir);
|
|
456
|
+
},
|
|
457
|
+
spin: function spin(event, dir) {
|
|
431
458
|
if (this.$refs.input) {
|
|
432
|
-
var
|
|
433
|
-
|
|
459
|
+
var step = this.step * dir;
|
|
460
|
+
var currentValue = this.parseValue(this.$refs.input.$el.value) || 0;
|
|
461
|
+
var newValue = this.validateValue(currentValue + step);
|
|
462
|
+
this.updateInput(newValue, null, "spin");
|
|
463
|
+
this.updateModel(event, newValue);
|
|
464
|
+
this.handleOnInput(event, currentValue, newValue);
|
|
434
465
|
}
|
|
435
466
|
},
|
|
436
|
-
onUpButtonMouseDown: function(
|
|
437
|
-
|
|
467
|
+
onUpButtonMouseDown: function onUpButtonMouseDown(event) {
|
|
468
|
+
if (!this.disabled) {
|
|
469
|
+
this.$refs.input.$el.focus();
|
|
470
|
+
this.repeat(event, null, 1);
|
|
471
|
+
event.preventDefault();
|
|
472
|
+
}
|
|
438
473
|
},
|
|
439
|
-
onUpButtonMouseUp: function() {
|
|
440
|
-
this.disabled
|
|
474
|
+
onUpButtonMouseUp: function onUpButtonMouseUp() {
|
|
475
|
+
if (!this.disabled) {
|
|
476
|
+
this.clearTimer();
|
|
477
|
+
}
|
|
441
478
|
},
|
|
442
|
-
onUpButtonMouseLeave: function() {
|
|
443
|
-
this.disabled
|
|
479
|
+
onUpButtonMouseLeave: function onUpButtonMouseLeave() {
|
|
480
|
+
if (!this.disabled) {
|
|
481
|
+
this.clearTimer();
|
|
482
|
+
}
|
|
444
483
|
},
|
|
445
|
-
onUpButtonKeyUp: function() {
|
|
446
|
-
this.disabled
|
|
484
|
+
onUpButtonKeyUp: function onUpButtonKeyUp() {
|
|
485
|
+
if (!this.disabled) {
|
|
486
|
+
this.clearTimer();
|
|
487
|
+
}
|
|
447
488
|
},
|
|
448
|
-
onUpButtonKeyDown: function(
|
|
449
|
-
(
|
|
489
|
+
onUpButtonKeyDown: function onUpButtonKeyDown(event) {
|
|
490
|
+
if (event.code === "Space" || event.code === "Enter" || event.code === "NumpadEnter") {
|
|
491
|
+
this.repeat(event, null, 1);
|
|
492
|
+
}
|
|
450
493
|
},
|
|
451
|
-
onDownButtonMouseDown: function(
|
|
452
|
-
|
|
494
|
+
onDownButtonMouseDown: function onDownButtonMouseDown(event) {
|
|
495
|
+
if (!this.disabled) {
|
|
496
|
+
this.$refs.input.$el.focus();
|
|
497
|
+
this.repeat(event, null, -1);
|
|
498
|
+
event.preventDefault();
|
|
499
|
+
}
|
|
453
500
|
},
|
|
454
|
-
onDownButtonMouseUp: function() {
|
|
455
|
-
this.disabled
|
|
501
|
+
onDownButtonMouseUp: function onDownButtonMouseUp() {
|
|
502
|
+
if (!this.disabled) {
|
|
503
|
+
this.clearTimer();
|
|
504
|
+
}
|
|
456
505
|
},
|
|
457
|
-
onDownButtonMouseLeave: function() {
|
|
458
|
-
this.disabled
|
|
506
|
+
onDownButtonMouseLeave: function onDownButtonMouseLeave() {
|
|
507
|
+
if (!this.disabled) {
|
|
508
|
+
this.clearTimer();
|
|
509
|
+
}
|
|
459
510
|
},
|
|
460
|
-
onDownButtonKeyUp: function() {
|
|
461
|
-
this.disabled
|
|
511
|
+
onDownButtonKeyUp: function onDownButtonKeyUp() {
|
|
512
|
+
if (!this.disabled) {
|
|
513
|
+
this.clearTimer();
|
|
514
|
+
}
|
|
462
515
|
},
|
|
463
|
-
onDownButtonKeyDown: function(
|
|
464
|
-
(
|
|
516
|
+
onDownButtonKeyDown: function onDownButtonKeyDown(event) {
|
|
517
|
+
if (event.code === "Space" || event.code === "Enter" || event.code === "NumpadEnter") {
|
|
518
|
+
this.repeat(event, null, -1);
|
|
519
|
+
}
|
|
465
520
|
},
|
|
466
|
-
onUserInput: function() {
|
|
467
|
-
|
|
521
|
+
onUserInput: function onUserInput() {
|
|
522
|
+
if (this.isSpecialChar) {
|
|
523
|
+
this.$refs.input.$el.value = this.lastValue;
|
|
524
|
+
}
|
|
525
|
+
this.isSpecialChar = false;
|
|
468
526
|
},
|
|
469
|
-
onInputKeyDown: function(
|
|
470
|
-
if (
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
this.lastValue =
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
case "Backspace": {
|
|
496
|
-
if (e.preventDefault(), t === i) {
|
|
497
|
-
var a = r.charAt(t - 1), u = this.getDecimalCharIndexes(r), h = u.decimalCharIndex, c = u.decimalCharIndexWithoutPrefix;
|
|
498
|
-
if (this.isNumeralChar(a)) {
|
|
499
|
-
var g = this.getDecimalLength(r);
|
|
500
|
-
if (this._group.test(a))
|
|
501
|
-
this._group.lastIndex = 0, s = r.slice(0, t - 2) + r.slice(t - 1);
|
|
502
|
-
else if (this._decimal.test(a))
|
|
503
|
-
this._decimal.lastIndex = 0, g ? this.$refs.input.$el.setSelectionRange(t - 1, t - 1) : s = r.slice(0, t - 1) + r.slice(t);
|
|
504
|
-
else if (h > 0 && t > h) {
|
|
505
|
-
var l = this.isDecimalMode() && (this.minFractionDigits || 0) < g ? "" : "0";
|
|
506
|
-
s = r.slice(0, t - 1) + l + r.slice(t);
|
|
507
|
-
} else c === 1 ? (s = r.slice(0, t - 1) + "0" + r.slice(t), s = this.parseValue(s) > 0 ? s : "") : s = r.slice(0, t - 1) + r.slice(t);
|
|
508
|
-
}
|
|
509
|
-
this.updateValue(e, s, null, "delete-single");
|
|
510
|
-
} else
|
|
511
|
-
s = this.deleteRange(r, t, i), this.updateValue(e, s, null, "delete-range");
|
|
512
|
-
break;
|
|
527
|
+
onInputKeyDown: function onInputKeyDown(event) {
|
|
528
|
+
if (this.readonly) {
|
|
529
|
+
return;
|
|
530
|
+
}
|
|
531
|
+
if (event.altKey || event.ctrlKey || event.metaKey) {
|
|
532
|
+
this.isSpecialChar = true;
|
|
533
|
+
this.lastValue = this.$refs.input.$el.value;
|
|
534
|
+
return;
|
|
535
|
+
}
|
|
536
|
+
this.lastValue = event.target.value;
|
|
537
|
+
var selectionStart = event.target.selectionStart;
|
|
538
|
+
var selectionEnd = event.target.selectionEnd;
|
|
539
|
+
var inputValue = event.target.value;
|
|
540
|
+
var newValueStr = null;
|
|
541
|
+
switch (event.code) {
|
|
542
|
+
case "ArrowUp":
|
|
543
|
+
this.spin(event, 1);
|
|
544
|
+
event.preventDefault();
|
|
545
|
+
break;
|
|
546
|
+
case "ArrowDown":
|
|
547
|
+
this.spin(event, -1);
|
|
548
|
+
event.preventDefault();
|
|
549
|
+
break;
|
|
550
|
+
case "ArrowLeft":
|
|
551
|
+
if (!this.isNumeralChar(inputValue.charAt(selectionStart - 1))) {
|
|
552
|
+
event.preventDefault();
|
|
513
553
|
}
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
554
|
+
break;
|
|
555
|
+
case "ArrowRight":
|
|
556
|
+
if (!this.isNumeralChar(inputValue.charAt(selectionStart))) {
|
|
557
|
+
event.preventDefault();
|
|
558
|
+
}
|
|
559
|
+
break;
|
|
560
|
+
case "Tab":
|
|
561
|
+
case "Enter":
|
|
562
|
+
case "NumpadEnter":
|
|
563
|
+
newValueStr = this.validateValue(this.parseValue(inputValue));
|
|
564
|
+
this.$refs.input.$el.value = this.formatValue(newValueStr);
|
|
565
|
+
this.$refs.input.$el.setAttribute("aria-valuenow", newValueStr);
|
|
566
|
+
this.updateModel(event, newValueStr);
|
|
567
|
+
break;
|
|
568
|
+
case "Backspace": {
|
|
569
|
+
event.preventDefault();
|
|
570
|
+
if (selectionStart === selectionEnd) {
|
|
571
|
+
var deleteChar = inputValue.charAt(selectionStart - 1);
|
|
572
|
+
var _this$getDecimalCharI = this.getDecimalCharIndexes(inputValue), decimalCharIndex = _this$getDecimalCharI.decimalCharIndex, decimalCharIndexWithoutPrefix = _this$getDecimalCharI.decimalCharIndexWithoutPrefix;
|
|
573
|
+
if (this.isNumeralChar(deleteChar)) {
|
|
574
|
+
var decimalLength = this.getDecimalLength(inputValue);
|
|
575
|
+
if (this._group.test(deleteChar)) {
|
|
576
|
+
this._group.lastIndex = 0;
|
|
577
|
+
newValueStr = inputValue.slice(0, selectionStart - 2) + inputValue.slice(selectionStart - 1);
|
|
578
|
+
} else if (this._decimal.test(deleteChar)) {
|
|
579
|
+
this._decimal.lastIndex = 0;
|
|
580
|
+
if (decimalLength) {
|
|
581
|
+
this.$refs.input.$el.setSelectionRange(selectionStart - 1, selectionStart - 1);
|
|
582
|
+
} else {
|
|
583
|
+
newValueStr = inputValue.slice(0, selectionStart - 1) + inputValue.slice(selectionStart);
|
|
584
|
+
}
|
|
585
|
+
} else if (decimalCharIndex > 0 && selectionStart > decimalCharIndex) {
|
|
586
|
+
var insertedText = this.isDecimalMode() && (this.minFractionDigits || 0) < decimalLength ? "" : "0";
|
|
587
|
+
newValueStr = inputValue.slice(0, selectionStart - 1) + insertedText + inputValue.slice(selectionStart);
|
|
588
|
+
} else if (decimalCharIndexWithoutPrefix === 1) {
|
|
589
|
+
newValueStr = inputValue.slice(0, selectionStart - 1) + "0" + inputValue.slice(selectionStart);
|
|
590
|
+
newValueStr = this.parseValue(newValueStr) > 0 ? newValueStr : "";
|
|
591
|
+
} else {
|
|
592
|
+
newValueStr = inputValue.slice(0, selectionStart - 1) + inputValue.slice(selectionStart);
|
|
527
593
|
}
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
case "End":
|
|
536
|
-
e.preventDefault(), O.isEmpty(this.max) || this.updateModel(e, this.max);
|
|
537
|
-
break;
|
|
594
|
+
}
|
|
595
|
+
this.updateValue(event, newValueStr, null, "delete-single");
|
|
596
|
+
} else {
|
|
597
|
+
newValueStr = this.deleteRange(inputValue, selectionStart, selectionEnd);
|
|
598
|
+
this.updateValue(event, newValueStr, null, "delete-range");
|
|
599
|
+
}
|
|
600
|
+
break;
|
|
538
601
|
}
|
|
602
|
+
case "Delete":
|
|
603
|
+
event.preventDefault();
|
|
604
|
+
if (selectionStart === selectionEnd) {
|
|
605
|
+
var _deleteChar = inputValue.charAt(selectionStart);
|
|
606
|
+
var _this$getDecimalCharI2 = this.getDecimalCharIndexes(inputValue), _decimalCharIndex = _this$getDecimalCharI2.decimalCharIndex, _decimalCharIndexWithoutPrefix = _this$getDecimalCharI2.decimalCharIndexWithoutPrefix;
|
|
607
|
+
if (this.isNumeralChar(_deleteChar)) {
|
|
608
|
+
var _decimalLength = this.getDecimalLength(inputValue);
|
|
609
|
+
if (this._group.test(_deleteChar)) {
|
|
610
|
+
this._group.lastIndex = 0;
|
|
611
|
+
newValueStr = inputValue.slice(0, selectionStart) + inputValue.slice(selectionStart + 2);
|
|
612
|
+
} else if (this._decimal.test(_deleteChar)) {
|
|
613
|
+
this._decimal.lastIndex = 0;
|
|
614
|
+
if (_decimalLength) {
|
|
615
|
+
this.$refs.input.$el.setSelectionRange(selectionStart + 1, selectionStart + 1);
|
|
616
|
+
} else {
|
|
617
|
+
newValueStr = inputValue.slice(0, selectionStart) + inputValue.slice(selectionStart + 1);
|
|
618
|
+
}
|
|
619
|
+
} else if (_decimalCharIndex > 0 && selectionStart > _decimalCharIndex) {
|
|
620
|
+
var _insertedText = this.isDecimalMode() && (this.minFractionDigits || 0) < _decimalLength ? "" : "0";
|
|
621
|
+
newValueStr = inputValue.slice(0, selectionStart) + _insertedText + inputValue.slice(selectionStart + 1);
|
|
622
|
+
} else if (_decimalCharIndexWithoutPrefix === 1) {
|
|
623
|
+
newValueStr = inputValue.slice(0, selectionStart) + "0" + inputValue.slice(selectionStart + 1);
|
|
624
|
+
newValueStr = this.parseValue(newValueStr) > 0 ? newValueStr : "";
|
|
625
|
+
} else {
|
|
626
|
+
newValueStr = inputValue.slice(0, selectionStart) + inputValue.slice(selectionStart + 1);
|
|
627
|
+
}
|
|
628
|
+
}
|
|
629
|
+
this.updateValue(event, newValueStr, null, "delete-back-single");
|
|
630
|
+
} else {
|
|
631
|
+
newValueStr = this.deleteRange(inputValue, selectionStart, selectionEnd);
|
|
632
|
+
this.updateValue(event, newValueStr, null, "delete-range");
|
|
633
|
+
}
|
|
634
|
+
break;
|
|
635
|
+
case "Home":
|
|
636
|
+
event.preventDefault();
|
|
637
|
+
if (!ObjectUtils.isEmpty(this.min)) {
|
|
638
|
+
this.updateModel(event, this.min);
|
|
639
|
+
}
|
|
640
|
+
break;
|
|
641
|
+
case "End":
|
|
642
|
+
event.preventDefault();
|
|
643
|
+
if (!ObjectUtils.isEmpty(this.max)) {
|
|
644
|
+
this.updateModel(event, this.max);
|
|
645
|
+
}
|
|
646
|
+
break;
|
|
539
647
|
}
|
|
540
648
|
},
|
|
541
|
-
onInputKeyPress: function(
|
|
542
|
-
if (
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
649
|
+
onInputKeyPress: function onInputKeyPress(event) {
|
|
650
|
+
if (this.readonly) {
|
|
651
|
+
return;
|
|
652
|
+
}
|
|
653
|
+
var _char = event.key;
|
|
654
|
+
var isDecimalSign2 = this.isDecimalSign(_char);
|
|
655
|
+
var isMinusSign2 = this.isMinusSign(_char);
|
|
656
|
+
if (this.locale === "fr-FR" && (event.code === "Comma" || event.code === "NumpadDecimal") && !isDecimalSign2) {
|
|
657
|
+
isDecimalSign2 = true;
|
|
658
|
+
_char = decimalSign;
|
|
659
|
+
}
|
|
660
|
+
if (event.code !== "Enter") {
|
|
661
|
+
event.preventDefault();
|
|
662
|
+
}
|
|
663
|
+
if (Number(_char) >= 0 && Number(_char) <= 9 || isMinusSign2 || isDecimalSign2) {
|
|
664
|
+
this.insert(event, _char, {
|
|
665
|
+
isDecimalSign: isDecimalSign2,
|
|
666
|
+
isMinusSign: isMinusSign2
|
|
547
667
|
});
|
|
548
668
|
}
|
|
549
669
|
},
|
|
550
|
-
onPaste: function(
|
|
551
|
-
if (
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
670
|
+
onPaste: function onPaste(event) {
|
|
671
|
+
if (this.readonly || this.disabled) {
|
|
672
|
+
return;
|
|
673
|
+
}
|
|
674
|
+
event.preventDefault();
|
|
675
|
+
var data2 = (event.clipboardData || window["clipboardData"]).getData("Text");
|
|
676
|
+
if (data2) {
|
|
677
|
+
var filteredData = this.parseValue(data2);
|
|
678
|
+
if (filteredData != null) {
|
|
679
|
+
this.insert(event, filteredData.toString());
|
|
557
680
|
}
|
|
558
681
|
}
|
|
559
682
|
},
|
|
560
|
-
allowMinusSign: function() {
|
|
683
|
+
allowMinusSign: function allowMinusSign() {
|
|
561
684
|
return this.min === null || this.min < 0;
|
|
562
685
|
},
|
|
563
|
-
isMinusSign: function(
|
|
564
|
-
|
|
686
|
+
isMinusSign: function isMinusSign(_char2) {
|
|
687
|
+
if (this._minusSign.test(_char2) || _char2 === "-") {
|
|
688
|
+
this._minusSign.lastIndex = 0;
|
|
689
|
+
return true;
|
|
690
|
+
}
|
|
691
|
+
return false;
|
|
565
692
|
},
|
|
566
|
-
isDecimalSign: function(
|
|
567
|
-
|
|
693
|
+
isDecimalSign: function isDecimalSign(_char3) {
|
|
694
|
+
if (this._decimal.test(_char3)) {
|
|
695
|
+
this._decimal.lastIndex = 0;
|
|
696
|
+
return true;
|
|
697
|
+
}
|
|
698
|
+
return false;
|
|
568
699
|
},
|
|
569
|
-
isDecimalMode: function() {
|
|
700
|
+
isDecimalMode: function isDecimalMode() {
|
|
570
701
|
return this.mode === "decimal";
|
|
571
702
|
},
|
|
572
|
-
getDecimalCharIndexes: function(
|
|
573
|
-
var
|
|
703
|
+
getDecimalCharIndexes: function getDecimalCharIndexes(val) {
|
|
704
|
+
var decimalCharIndex = val.search(this._decimal);
|
|
574
705
|
this._decimal.lastIndex = 0;
|
|
575
|
-
var
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
706
|
+
var filteredVal = val.replace(this._prefix, "").trim().replace(/\s/g, "").replace(this._currency, "");
|
|
707
|
+
var decimalCharIndexWithoutPrefix = filteredVal.search(this._decimal);
|
|
708
|
+
this._decimal.lastIndex = 0;
|
|
709
|
+
return {
|
|
710
|
+
decimalCharIndex,
|
|
711
|
+
decimalCharIndexWithoutPrefix
|
|
579
712
|
};
|
|
580
713
|
},
|
|
581
|
-
getCharIndexes: function(
|
|
582
|
-
var
|
|
714
|
+
getCharIndexes: function getCharIndexes(val) {
|
|
715
|
+
var decimalCharIndex = val.search(this._decimal);
|
|
583
716
|
this._decimal.lastIndex = 0;
|
|
584
|
-
var
|
|
717
|
+
var minusCharIndex = val.search(this._minusSign);
|
|
585
718
|
this._minusSign.lastIndex = 0;
|
|
586
|
-
var
|
|
719
|
+
var suffixCharIndex = val.search(this._suffix);
|
|
587
720
|
this._suffix.lastIndex = 0;
|
|
588
|
-
var
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
721
|
+
var currencyCharIndex = val.search(this._currency);
|
|
722
|
+
this._currency.lastIndex = 0;
|
|
723
|
+
return {
|
|
724
|
+
decimalCharIndex,
|
|
725
|
+
minusCharIndex,
|
|
726
|
+
suffixCharIndex,
|
|
727
|
+
currencyCharIndex
|
|
594
728
|
};
|
|
595
729
|
},
|
|
596
|
-
insert: function(
|
|
597
|
-
var
|
|
598
|
-
isDecimalSign:
|
|
599
|
-
isMinusSign:
|
|
600
|
-
}
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
730
|
+
insert: function insert(event, text) {
|
|
731
|
+
var sign = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {
|
|
732
|
+
isDecimalSign: false,
|
|
733
|
+
isMinusSign: false
|
|
734
|
+
};
|
|
735
|
+
var minusCharIndexOnText = text.search(this._minusSign);
|
|
736
|
+
this._minusSign.lastIndex = 0;
|
|
737
|
+
if (!this.allowMinusSign() && minusCharIndexOnText !== -1) {
|
|
738
|
+
return;
|
|
739
|
+
}
|
|
740
|
+
var selectionStart = this.$refs.input.$el.selectionStart;
|
|
741
|
+
var selectionEnd = this.$refs.input.$el.selectionEnd;
|
|
742
|
+
var inputValue = this.$refs.input.$el.value.trim();
|
|
743
|
+
var _this$getCharIndexes = this.getCharIndexes(inputValue), decimalCharIndex = _this$getCharIndexes.decimalCharIndex, minusCharIndex = _this$getCharIndexes.minusCharIndex, suffixCharIndex = _this$getCharIndexes.suffixCharIndex, currencyCharIndex = _this$getCharIndexes.currencyCharIndex;
|
|
744
|
+
var newValueStr;
|
|
745
|
+
if (sign.isMinusSign) {
|
|
746
|
+
if (selectionStart === 0) {
|
|
747
|
+
newValueStr = inputValue;
|
|
748
|
+
if (minusCharIndex === -1 || selectionEnd !== 0) {
|
|
749
|
+
newValueStr = this.insertText(inputValue, text, 0, selectionEnd);
|
|
750
|
+
}
|
|
751
|
+
this.updateValue(event, newValueStr, text, "insert");
|
|
752
|
+
}
|
|
753
|
+
} else if (sign.isDecimalSign) {
|
|
754
|
+
if (decimalCharIndex > 0 && selectionStart === decimalCharIndex) {
|
|
755
|
+
this.updateValue(event, inputValue, text, "insert");
|
|
756
|
+
} else if (decimalCharIndex > selectionStart && decimalCharIndex < selectionEnd) {
|
|
757
|
+
newValueStr = this.insertText(inputValue, text, selectionStart, selectionEnd);
|
|
758
|
+
this.updateValue(event, newValueStr, text, "insert");
|
|
759
|
+
} else if (decimalCharIndex === -1 && this.maxFractionDigits) {
|
|
760
|
+
newValueStr = this.insertText(inputValue, text, selectionStart, selectionEnd);
|
|
761
|
+
this.updateValue(event, newValueStr, text, "insert");
|
|
762
|
+
}
|
|
763
|
+
} else {
|
|
764
|
+
var maxFractionDigits2 = this.numberFormat.resolvedOptions().maximumFractionDigits;
|
|
765
|
+
var operation = selectionStart !== selectionEnd ? "range-insert" : "insert";
|
|
766
|
+
if (decimalCharIndex > 0 && selectionStart > decimalCharIndex) {
|
|
767
|
+
if (selectionStart + text.length - (decimalCharIndex + 1) <= maxFractionDigits2) {
|
|
768
|
+
var charIndex = currencyCharIndex >= selectionStart ? currencyCharIndex - 1 : suffixCharIndex >= selectionStart ? suffixCharIndex : inputValue.length;
|
|
769
|
+
newValueStr = inputValue.slice(0, selectionStart) + text + inputValue.slice(selectionStart + text.length, charIndex) + inputValue.slice(charIndex);
|
|
770
|
+
this.updateValue(event, newValueStr, text, operation);
|
|
771
|
+
}
|
|
772
|
+
} else {
|
|
773
|
+
newValueStr = this.insertText(inputValue, text, selectionStart, selectionEnd);
|
|
774
|
+
this.updateValue(event, newValueStr, text, operation);
|
|
616
775
|
}
|
|
617
776
|
}
|
|
618
777
|
},
|
|
619
|
-
insertText: function(
|
|
620
|
-
var
|
|
621
|
-
if (
|
|
622
|
-
var
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
778
|
+
insertText: function insertText(value, text, start, end) {
|
|
779
|
+
var textSplit = text === "." ? text : text.split(".");
|
|
780
|
+
if (textSplit.length === 2) {
|
|
781
|
+
var decimalCharIndex = value.slice(start, end).search(this._decimal);
|
|
782
|
+
this._decimal.lastIndex = 0;
|
|
783
|
+
return decimalCharIndex > 0 ? value.slice(0, start) + this.formatValue(text) + value.slice(end) : this.formatValue(text) || value;
|
|
784
|
+
} else if (end - start === value.length) {
|
|
785
|
+
return this.formatValue(text);
|
|
786
|
+
} else if (start === 0) {
|
|
787
|
+
return text + value.slice(end);
|
|
788
|
+
} else if (end === value.length) {
|
|
789
|
+
return value.slice(0, start) + text;
|
|
790
|
+
} else {
|
|
791
|
+
return value.slice(0, start) + text + value.slice(end);
|
|
792
|
+
}
|
|
793
|
+
},
|
|
794
|
+
deleteRange: function deleteRange(value, start, end) {
|
|
795
|
+
var newValueStr;
|
|
796
|
+
if (end - start === value.length) newValueStr = "";
|
|
797
|
+
else if (start === 0) newValueStr = value.slice(end);
|
|
798
|
+
else if (end === value.length) newValueStr = value.slice(0, start);
|
|
799
|
+
else newValueStr = value.slice(0, start) + value.slice(end);
|
|
800
|
+
return newValueStr;
|
|
801
|
+
},
|
|
802
|
+
initCursor: function initCursor() {
|
|
803
|
+
var selectionStart = this.$refs.input.$el.selectionStart;
|
|
804
|
+
var inputValue = this.$refs.input.$el.value;
|
|
805
|
+
var valueLength = inputValue.length;
|
|
806
|
+
var index = null;
|
|
807
|
+
var prefixLength = (this.prefixChar || "").length;
|
|
808
|
+
inputValue = inputValue.replace(this._prefix, "");
|
|
809
|
+
selectionStart = selectionStart - prefixLength;
|
|
810
|
+
var _char4 = inputValue.charAt(selectionStart);
|
|
811
|
+
if (this.isNumeralChar(_char4)) {
|
|
812
|
+
return selectionStart + prefixLength;
|
|
813
|
+
}
|
|
814
|
+
var i = selectionStart - 1;
|
|
815
|
+
while (i >= 0) {
|
|
816
|
+
_char4 = inputValue.charAt(i);
|
|
817
|
+
if (this.isNumeralChar(_char4)) {
|
|
818
|
+
index = i + prefixLength;
|
|
639
819
|
break;
|
|
640
|
-
} else
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
820
|
+
} else {
|
|
821
|
+
i--;
|
|
822
|
+
}
|
|
823
|
+
}
|
|
824
|
+
if (index !== null) {
|
|
825
|
+
this.$refs.input.$el.setSelectionRange(index + 1, index + 1);
|
|
826
|
+
} else {
|
|
827
|
+
i = selectionStart;
|
|
828
|
+
while (i < valueLength) {
|
|
829
|
+
_char4 = inputValue.charAt(i);
|
|
830
|
+
if (this.isNumeralChar(_char4)) {
|
|
831
|
+
index = i + prefixLength;
|
|
648
832
|
break;
|
|
649
|
-
} else
|
|
650
|
-
|
|
651
|
-
|
|
833
|
+
} else {
|
|
834
|
+
i++;
|
|
835
|
+
}
|
|
836
|
+
}
|
|
837
|
+
if (index !== null) {
|
|
838
|
+
this.$refs.input.$el.setSelectionRange(index, index);
|
|
839
|
+
}
|
|
652
840
|
}
|
|
653
|
-
return
|
|
841
|
+
return index || 0;
|
|
654
842
|
},
|
|
655
|
-
onInputClick: function() {
|
|
656
|
-
var
|
|
657
|
-
!this.readonly &&
|
|
843
|
+
onInputClick: function onInputClick() {
|
|
844
|
+
var currentValue = this.$refs.input.$el.value;
|
|
845
|
+
if (!this.readonly && currentValue !== DomHandler.getSelection()) {
|
|
846
|
+
this.initCursor();
|
|
847
|
+
}
|
|
658
848
|
},
|
|
659
|
-
isNumeralChar: function(
|
|
660
|
-
|
|
849
|
+
isNumeralChar: function isNumeralChar(_char5) {
|
|
850
|
+
if (_char5.length === 1 && (this._numeral.test(_char5) || this._decimal.test(_char5) || this._group.test(_char5) || this._minusSign.test(_char5))) {
|
|
851
|
+
this.resetRegex();
|
|
852
|
+
return true;
|
|
853
|
+
}
|
|
854
|
+
return false;
|
|
661
855
|
},
|
|
662
|
-
resetRegex: function() {
|
|
663
|
-
this._numeral.lastIndex = 0
|
|
856
|
+
resetRegex: function resetRegex() {
|
|
857
|
+
this._numeral.lastIndex = 0;
|
|
858
|
+
this._decimal.lastIndex = 0;
|
|
859
|
+
this._group.lastIndex = 0;
|
|
860
|
+
this._minusSign.lastIndex = 0;
|
|
664
861
|
},
|
|
665
|
-
updateValue: function(
|
|
666
|
-
var
|
|
667
|
-
|
|
862
|
+
updateValue: function updateValue(event, valueStr, insertedValueStr, operation) {
|
|
863
|
+
var currentValue = this.$refs.input.$el.value;
|
|
864
|
+
var newValue = null;
|
|
865
|
+
if (valueStr != null) {
|
|
866
|
+
newValue = this.parseValue(valueStr);
|
|
867
|
+
newValue = !newValue && !this.allowEmpty ? 0 : newValue;
|
|
868
|
+
this.updateInput(newValue, insertedValueStr, operation, valueStr);
|
|
869
|
+
this.handleOnInput(event, currentValue, newValue);
|
|
870
|
+
}
|
|
668
871
|
},
|
|
669
|
-
handleOnInput: function(
|
|
670
|
-
this.isValueChanged(
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
872
|
+
handleOnInput: function handleOnInput(event, currentValue, newValue) {
|
|
873
|
+
if (this.isValueChanged(currentValue, newValue)) {
|
|
874
|
+
this.$emit("input", {
|
|
875
|
+
originalEvent: event,
|
|
876
|
+
value: newValue,
|
|
877
|
+
formattedValue: currentValue
|
|
878
|
+
});
|
|
879
|
+
}
|
|
880
|
+
},
|
|
881
|
+
isValueChanged: function isValueChanged(currentValue, newValue) {
|
|
882
|
+
if (newValue === null && currentValue !== null) {
|
|
883
|
+
return true;
|
|
884
|
+
}
|
|
885
|
+
if (newValue != null) {
|
|
886
|
+
var parsedCurrentValue = typeof currentValue === "string" ? this.parseValue(currentValue) : currentValue;
|
|
887
|
+
return newValue !== parsedCurrentValue;
|
|
888
|
+
}
|
|
889
|
+
return false;
|
|
675
890
|
},
|
|
676
|
-
|
|
677
|
-
if (
|
|
678
|
-
return
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
return
|
|
682
|
-
}
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
return
|
|
687
|
-
},
|
|
688
|
-
updateInput: function(
|
|
689
|
-
|
|
690
|
-
var
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
this
|
|
891
|
+
validateValue: function validateValue(value) {
|
|
892
|
+
if (value === "-" || value == null) {
|
|
893
|
+
return null;
|
|
894
|
+
}
|
|
895
|
+
if (this.min != null && value < this.min) {
|
|
896
|
+
return this.min;
|
|
897
|
+
}
|
|
898
|
+
if (this.max != null && value > this.max) {
|
|
899
|
+
return this.max;
|
|
900
|
+
}
|
|
901
|
+
return value;
|
|
902
|
+
},
|
|
903
|
+
updateInput: function updateInput(value, insertedValueStr, operation, valueStr) {
|
|
904
|
+
insertedValueStr = insertedValueStr || "";
|
|
905
|
+
var inputValue = this.$refs.input.$el.value;
|
|
906
|
+
var newValue = this.formatValue(value);
|
|
907
|
+
var currentLength = inputValue.length;
|
|
908
|
+
if (newValue !== valueStr) {
|
|
909
|
+
newValue = this.concatValues(newValue, valueStr);
|
|
910
|
+
}
|
|
911
|
+
if (currentLength === 0) {
|
|
912
|
+
this.$refs.input.$el.value = newValue;
|
|
913
|
+
this.$refs.input.$el.setSelectionRange(0, 0);
|
|
914
|
+
var index = this.initCursor();
|
|
915
|
+
var selectionEnd = index + insertedValueStr.length;
|
|
916
|
+
this.$refs.input.$el.setSelectionRange(selectionEnd, selectionEnd);
|
|
695
917
|
} else {
|
|
696
|
-
var
|
|
697
|
-
this.$refs.input.$el.
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
var
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
var
|
|
708
|
-
|
|
709
|
-
|
|
918
|
+
var selectionStart = this.$refs.input.$el.selectionStart;
|
|
919
|
+
var _selectionEnd = this.$refs.input.$el.selectionEnd;
|
|
920
|
+
this.$refs.input.$el.value = newValue;
|
|
921
|
+
var newLength = newValue.length;
|
|
922
|
+
if (operation === "range-insert") {
|
|
923
|
+
var startValue = this.parseValue((inputValue || "").slice(0, selectionStart));
|
|
924
|
+
var startValueStr = startValue !== null ? startValue.toString() : "";
|
|
925
|
+
var startExpr = startValueStr.split("").join("(".concat(this.groupChar, ")?"));
|
|
926
|
+
var sRegex = new RegExp(startExpr, "g");
|
|
927
|
+
sRegex.test(newValue);
|
|
928
|
+
var tExpr = insertedValueStr.split("").join("(".concat(this.groupChar, ")?"));
|
|
929
|
+
var tRegex = new RegExp(tExpr, "g");
|
|
930
|
+
tRegex.test(newValue.slice(sRegex.lastIndex));
|
|
931
|
+
_selectionEnd = sRegex.lastIndex + tRegex.lastIndex;
|
|
932
|
+
this.$refs.input.$el.setSelectionRange(_selectionEnd, _selectionEnd);
|
|
933
|
+
} else if (newLength === currentLength) {
|
|
934
|
+
if (operation === "insert" || operation === "delete-back-single") {
|
|
935
|
+
this.$refs.input.$el.setSelectionRange(_selectionEnd + 1, _selectionEnd + 1);
|
|
936
|
+
} else if (operation === "delete-single") {
|
|
937
|
+
this.$refs.input.$el.setSelectionRange(_selectionEnd - 1, _selectionEnd - 1);
|
|
938
|
+
} else if (operation === "delete-range" || operation === "spin") {
|
|
939
|
+
this.$refs.input.$el.setSelectionRange(_selectionEnd, _selectionEnd);
|
|
940
|
+
}
|
|
941
|
+
} else if (operation === "delete-back-single") {
|
|
942
|
+
var prevChar = inputValue.charAt(_selectionEnd - 1);
|
|
943
|
+
var nextChar = inputValue.charAt(_selectionEnd);
|
|
944
|
+
var diff = currentLength - newLength;
|
|
945
|
+
var isGroupChar = this._group.test(nextChar);
|
|
946
|
+
if (isGroupChar && diff === 1) {
|
|
947
|
+
_selectionEnd += 1;
|
|
948
|
+
} else if (!isGroupChar && this.isNumeralChar(prevChar)) {
|
|
949
|
+
_selectionEnd += -1 * diff + 1;
|
|
950
|
+
}
|
|
951
|
+
this._group.lastIndex = 0;
|
|
952
|
+
this.$refs.input.$el.setSelectionRange(_selectionEnd, _selectionEnd);
|
|
953
|
+
} else if (inputValue === "-" && operation === "insert") {
|
|
710
954
|
this.$refs.input.$el.setSelectionRange(0, 0);
|
|
711
|
-
var
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
955
|
+
var _index = this.initCursor();
|
|
956
|
+
var _selectionEnd2 = _index + insertedValueStr.length + 1;
|
|
957
|
+
this.$refs.input.$el.setSelectionRange(_selectionEnd2, _selectionEnd2);
|
|
958
|
+
} else {
|
|
959
|
+
_selectionEnd = _selectionEnd + (newLength - currentLength);
|
|
960
|
+
this.$refs.input.$el.setSelectionRange(_selectionEnd, _selectionEnd);
|
|
961
|
+
}
|
|
715
962
|
}
|
|
716
|
-
this.$refs.input.$el.setAttribute("aria-valuenow",
|
|
717
|
-
},
|
|
718
|
-
concatValues: function(
|
|
719
|
-
if (
|
|
720
|
-
var
|
|
721
|
-
|
|
963
|
+
this.$refs.input.$el.setAttribute("aria-valuenow", value);
|
|
964
|
+
},
|
|
965
|
+
concatValues: function concatValues(val1, val2) {
|
|
966
|
+
if (val1 && val2) {
|
|
967
|
+
var decimalCharIndex = val2.search(this._decimal);
|
|
968
|
+
this._decimal.lastIndex = 0;
|
|
969
|
+
if (this.suffixChar) {
|
|
970
|
+
return decimalCharIndex !== -1 ? val1.replace(this.suffixChar, "").split(this._decimal)[0] + val2.replace(this.suffixChar, "").slice(decimalCharIndex) + this.suffixChar : val1;
|
|
971
|
+
} else {
|
|
972
|
+
return decimalCharIndex !== -1 ? val1.split(this._decimal)[0] + val2.slice(decimalCharIndex) : val1;
|
|
973
|
+
}
|
|
722
974
|
}
|
|
723
|
-
return
|
|
975
|
+
return val1;
|
|
724
976
|
},
|
|
725
|
-
getDecimalLength: function(
|
|
726
|
-
if (
|
|
727
|
-
var
|
|
728
|
-
if (
|
|
729
|
-
return
|
|
977
|
+
getDecimalLength: function getDecimalLength(value) {
|
|
978
|
+
if (value) {
|
|
979
|
+
var valueSplit = value.split(this._decimal);
|
|
980
|
+
if (valueSplit.length === 2) {
|
|
981
|
+
return valueSplit[1].replace(this._suffix, "").trim().replace(/\s/g, "").replace(this._currency, "").length;
|
|
982
|
+
}
|
|
730
983
|
}
|
|
731
984
|
return 0;
|
|
732
985
|
},
|
|
733
|
-
updateModel: function(
|
|
734
|
-
this.d_modelValue =
|
|
986
|
+
updateModel: function updateModel(event, value) {
|
|
987
|
+
this.d_modelValue = value;
|
|
988
|
+
this.$emit("update:modelValue", value);
|
|
735
989
|
},
|
|
736
|
-
onInputFocus: function(
|
|
737
|
-
this.focused =
|
|
990
|
+
onInputFocus: function onInputFocus(event) {
|
|
991
|
+
this.focused = true;
|
|
992
|
+
if (!this.disabled && !this.readonly && this.$refs.input.$el.value !== DomHandler.getSelection() && this.highlightOnFocus) {
|
|
993
|
+
event.target.select();
|
|
994
|
+
}
|
|
995
|
+
this.$emit("focus", event);
|
|
738
996
|
},
|
|
739
|
-
onInputBlur: function(
|
|
740
|
-
this.focused =
|
|
741
|
-
var
|
|
997
|
+
onInputBlur: function onInputBlur(event) {
|
|
998
|
+
this.focused = false;
|
|
999
|
+
var input = event.target;
|
|
1000
|
+
var newValue = this.validateValue(this.parseValue(input.value));
|
|
742
1001
|
this.$emit("blur", {
|
|
743
|
-
originalEvent:
|
|
744
|
-
value:
|
|
745
|
-
})
|
|
1002
|
+
originalEvent: event,
|
|
1003
|
+
value: input.value
|
|
1004
|
+
});
|
|
1005
|
+
input.value = this.formatValue(newValue);
|
|
1006
|
+
input.setAttribute("aria-valuenow", newValue);
|
|
1007
|
+
this.updateModel(event, newValue);
|
|
1008
|
+
if (!this.disabled && !this.readonly && this.highlightOnFocus) {
|
|
1009
|
+
DomHandler.clearSelection();
|
|
1010
|
+
}
|
|
746
1011
|
},
|
|
747
|
-
clearTimer: function() {
|
|
748
|
-
|
|
1012
|
+
clearTimer: function clearTimer() {
|
|
1013
|
+
if (this.timer) {
|
|
1014
|
+
clearInterval(this.timer);
|
|
1015
|
+
}
|
|
749
1016
|
},
|
|
750
|
-
maxBoundry: function() {
|
|
1017
|
+
maxBoundry: function maxBoundry() {
|
|
751
1018
|
return this.d_modelValue >= this.max;
|
|
752
1019
|
},
|
|
753
|
-
minBoundry: function() {
|
|
1020
|
+
minBoundry: function minBoundry() {
|
|
754
1021
|
return this.d_modelValue <= this.min;
|
|
755
1022
|
}
|
|
756
1023
|
},
|
|
757
1024
|
computed: {
|
|
758
|
-
filled: function() {
|
|
1025
|
+
filled: function filled() {
|
|
759
1026
|
return this.modelValue != null && this.modelValue.toString().length > 0;
|
|
760
1027
|
},
|
|
761
|
-
upButtonListeners: function() {
|
|
762
|
-
var
|
|
1028
|
+
upButtonListeners: function upButtonListeners() {
|
|
1029
|
+
var _this2 = this;
|
|
763
1030
|
return {
|
|
764
|
-
mousedown: function(
|
|
765
|
-
return
|
|
1031
|
+
mousedown: function mousedown(event) {
|
|
1032
|
+
return _this2.onUpButtonMouseDown(event);
|
|
766
1033
|
},
|
|
767
|
-
mouseup: function(
|
|
768
|
-
return
|
|
1034
|
+
mouseup: function mouseup(event) {
|
|
1035
|
+
return _this2.onUpButtonMouseUp(event);
|
|
769
1036
|
},
|
|
770
|
-
mouseleave: function(
|
|
771
|
-
return
|
|
1037
|
+
mouseleave: function mouseleave(event) {
|
|
1038
|
+
return _this2.onUpButtonMouseLeave(event);
|
|
772
1039
|
},
|
|
773
|
-
keydown: function(
|
|
774
|
-
return
|
|
1040
|
+
keydown: function keydown(event) {
|
|
1041
|
+
return _this2.onUpButtonKeyDown(event);
|
|
775
1042
|
},
|
|
776
|
-
keyup: function(
|
|
777
|
-
return
|
|
1043
|
+
keyup: function keyup(event) {
|
|
1044
|
+
return _this2.onUpButtonKeyUp(event);
|
|
778
1045
|
}
|
|
779
1046
|
};
|
|
780
1047
|
},
|
|
781
|
-
downButtonListeners: function() {
|
|
782
|
-
var
|
|
1048
|
+
downButtonListeners: function downButtonListeners() {
|
|
1049
|
+
var _this3 = this;
|
|
783
1050
|
return {
|
|
784
|
-
mousedown: function(
|
|
785
|
-
return
|
|
1051
|
+
mousedown: function mousedown(event) {
|
|
1052
|
+
return _this3.onDownButtonMouseDown(event);
|
|
786
1053
|
},
|
|
787
|
-
mouseup: function(
|
|
788
|
-
return
|
|
1054
|
+
mouseup: function mouseup(event) {
|
|
1055
|
+
return _this3.onDownButtonMouseUp(event);
|
|
789
1056
|
},
|
|
790
|
-
mouseleave: function(
|
|
791
|
-
return
|
|
1057
|
+
mouseleave: function mouseleave(event) {
|
|
1058
|
+
return _this3.onDownButtonMouseLeave(event);
|
|
792
1059
|
},
|
|
793
|
-
keydown: function(
|
|
794
|
-
return
|
|
1060
|
+
keydown: function keydown(event) {
|
|
1061
|
+
return _this3.onDownButtonKeyDown(event);
|
|
795
1062
|
},
|
|
796
|
-
keyup: function(
|
|
797
|
-
return
|
|
1063
|
+
keyup: function keyup(event) {
|
|
1064
|
+
return _this3.onDownButtonKeyUp(event);
|
|
798
1065
|
}
|
|
799
1066
|
};
|
|
800
1067
|
},
|
|
801
|
-
formattedValue: function() {
|
|
802
|
-
var
|
|
803
|
-
return this.formatValue(
|
|
1068
|
+
formattedValue: function formattedValue() {
|
|
1069
|
+
var val = !this.modelValue && !this.allowEmpty ? 0 : this.modelValue;
|
|
1070
|
+
return this.formatValue(val);
|
|
804
1071
|
},
|
|
805
|
-
getFormatter: function() {
|
|
1072
|
+
getFormatter: function getFormatter() {
|
|
806
1073
|
return this.numberFormat;
|
|
807
1074
|
}
|
|
808
1075
|
},
|
|
809
1076
|
components: {
|
|
810
|
-
INInputText:
|
|
811
|
-
INButton:
|
|
812
|
-
AngleUpIcon:
|
|
813
|
-
AngleDownIcon:
|
|
1077
|
+
INInputText: script$5,
|
|
1078
|
+
INButton: script$4,
|
|
1079
|
+
AngleUpIcon: script$3,
|
|
1080
|
+
AngleDownIcon: script$2
|
|
814
1081
|
}
|
|
815
1082
|
};
|
|
816
|
-
function
|
|
817
|
-
var
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
1083
|
+
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1084
|
+
var _component_INInputText = resolveComponent("INInputText");
|
|
1085
|
+
var _component_INButton = resolveComponent("INButton");
|
|
1086
|
+
return openBlock(), createElementBlock("span", mergeProps({
|
|
1087
|
+
"class": _ctx.cx("root")
|
|
1088
|
+
}, _ctx.ptmi("root")), [createVNode(_component_INInputText, mergeProps({
|
|
821
1089
|
ref: "input",
|
|
822
|
-
id:
|
|
1090
|
+
id: _ctx.inputId,
|
|
823
1091
|
role: "spinbutton",
|
|
824
|
-
class: [
|
|
825
|
-
style:
|
|
826
|
-
value:
|
|
827
|
-
"aria-valuemin":
|
|
828
|
-
"aria-valuemax":
|
|
829
|
-
"aria-valuenow":
|
|
830
|
-
inputmode:
|
|
831
|
-
disabled:
|
|
832
|
-
readonly:
|
|
833
|
-
placeholder:
|
|
834
|
-
"aria-labelledby":
|
|
835
|
-
"aria-label":
|
|
836
|
-
"aria-invalid":
|
|
837
|
-
onInput:
|
|
838
|
-
onKeydown:
|
|
839
|
-
onKeypress:
|
|
840
|
-
onPaste:
|
|
841
|
-
onClick:
|
|
842
|
-
onFocus:
|
|
843
|
-
onBlur:
|
|
844
|
-
},
|
|
845
|
-
pt:
|
|
846
|
-
unstyled:
|
|
847
|
-
}), null, 16, ["id", "class", "style", "value", "aria-valuemin", "aria-valuemax", "aria-valuenow", "inputmode", "disabled", "readonly", "placeholder", "aria-labelledby", "aria-label", "aria-invalid", "onInput", "onKeydown", "onKeypress", "onPaste", "onClick", "onFocus", "onBlur", "pt", "unstyled"]),
|
|
1092
|
+
"class": [_ctx.cx("input"), _ctx.inputClass],
|
|
1093
|
+
style: _ctx.inputStyle,
|
|
1094
|
+
value: $options.formattedValue,
|
|
1095
|
+
"aria-valuemin": _ctx.min,
|
|
1096
|
+
"aria-valuemax": _ctx.max,
|
|
1097
|
+
"aria-valuenow": _ctx.modelValue,
|
|
1098
|
+
inputmode: _ctx.mode === "decimal" && !_ctx.minFractionDigits ? "numeric" : "decimal",
|
|
1099
|
+
disabled: _ctx.disabled,
|
|
1100
|
+
readonly: _ctx.readonly,
|
|
1101
|
+
placeholder: _ctx.placeholder,
|
|
1102
|
+
"aria-labelledby": _ctx.ariaLabelledby,
|
|
1103
|
+
"aria-label": _ctx.ariaLabel,
|
|
1104
|
+
"aria-invalid": _ctx.invalid || void 0,
|
|
1105
|
+
onInput: $options.onUserInput,
|
|
1106
|
+
onKeydown: $options.onInputKeyDown,
|
|
1107
|
+
onKeypress: $options.onInputKeyPress,
|
|
1108
|
+
onPaste: $options.onPaste,
|
|
1109
|
+
onClick: $options.onInputClick,
|
|
1110
|
+
onFocus: $options.onInputFocus,
|
|
1111
|
+
onBlur: $options.onInputBlur
|
|
1112
|
+
}, _ctx.inputProps, {
|
|
1113
|
+
pt: _ctx.ptm("input"),
|
|
1114
|
+
unstyled: _ctx.unstyled
|
|
1115
|
+
}), null, 16, ["id", "class", "style", "value", "aria-valuemin", "aria-valuemax", "aria-valuenow", "inputmode", "disabled", "readonly", "placeholder", "aria-labelledby", "aria-label", "aria-invalid", "onInput", "onKeydown", "onKeypress", "onPaste", "onClick", "onFocus", "onBlur", "pt", "unstyled"]), _ctx.showButtons && _ctx.buttonLayout === "stacked" ? (openBlock(), createElementBlock("span", mergeProps({
|
|
848
1116
|
key: 0,
|
|
849
|
-
class:
|
|
850
|
-
},
|
|
851
|
-
class: [
|
|
852
|
-
},
|
|
853
|
-
disabled:
|
|
1117
|
+
"class": _ctx.cx("buttonGroup")
|
|
1118
|
+
}, _ctx.ptm("buttonGroup")), [createVNode(_component_INButton, mergeProps({
|
|
1119
|
+
"class": [_ctx.cx("incrementButton"), _ctx.incrementButtonClass]
|
|
1120
|
+
}, toHandlers($options.upButtonListeners), {
|
|
1121
|
+
disabled: _ctx.disabled,
|
|
854
1122
|
tabindex: -1,
|
|
855
1123
|
"aria-hidden": "true"
|
|
856
|
-
},
|
|
857
|
-
pt:
|
|
858
|
-
unstyled:
|
|
1124
|
+
}, _ctx.incrementButtonProps, {
|
|
1125
|
+
pt: _ctx.ptm("incrementButton"),
|
|
1126
|
+
unstyled: _ctx.unstyled
|
|
859
1127
|
}), {
|
|
860
|
-
icon:
|
|
861
|
-
return [
|
|
862
|
-
return [(
|
|
863
|
-
class:
|
|
864
|
-
},
|
|
1128
|
+
icon: withCtx(function() {
|
|
1129
|
+
return [renderSlot(_ctx.$slots, "incrementbuttonicon", {}, function() {
|
|
1130
|
+
return [(openBlock(), createBlock(resolveDynamicComponent(_ctx.incrementButtonIcon ? "span" : "AngleUpIcon"), mergeProps({
|
|
1131
|
+
"class": _ctx.incrementButtonIcon
|
|
1132
|
+
}, _ctx.ptm("incrementButton")["icon"], {
|
|
865
1133
|
"data-pc-section": "incrementbuttonicon"
|
|
866
1134
|
}), null, 16, ["class"]))];
|
|
867
1135
|
})];
|
|
868
1136
|
}),
|
|
869
1137
|
_: 3
|
|
870
|
-
}, 16, ["class", "disabled", "pt", "unstyled"]),
|
|
871
|
-
class: [
|
|
872
|
-
},
|
|
873
|
-
disabled:
|
|
1138
|
+
}, 16, ["class", "disabled", "pt", "unstyled"]), createVNode(_component_INButton, mergeProps({
|
|
1139
|
+
"class": [_ctx.cx("decrementButton"), _ctx.decrementButtonClass]
|
|
1140
|
+
}, toHandlers($options.downButtonListeners), {
|
|
1141
|
+
disabled: _ctx.disabled,
|
|
874
1142
|
tabindex: -1,
|
|
875
1143
|
"aria-hidden": "true"
|
|
876
|
-
},
|
|
877
|
-
pt:
|
|
878
|
-
unstyled:
|
|
1144
|
+
}, _ctx.decrementButtonProps, {
|
|
1145
|
+
pt: _ctx.ptm("decrementButton"),
|
|
1146
|
+
unstyled: _ctx.unstyled
|
|
879
1147
|
}), {
|
|
880
|
-
icon:
|
|
881
|
-
return [
|
|
882
|
-
return [(
|
|
883
|
-
class:
|
|
884
|
-
},
|
|
1148
|
+
icon: withCtx(function() {
|
|
1149
|
+
return [renderSlot(_ctx.$slots, "decrementbuttonicon", {}, function() {
|
|
1150
|
+
return [(openBlock(), createBlock(resolveDynamicComponent(_ctx.decrementButtonIcon ? "span" : "AngleDownIcon"), mergeProps({
|
|
1151
|
+
"class": _ctx.decrementButtonIcon
|
|
1152
|
+
}, _ctx.ptm("decrementButton")["icon"], {
|
|
885
1153
|
"data-pc-section": "decrementbuttonicon"
|
|
886
1154
|
}), null, 16, ["class"]))];
|
|
887
1155
|
})];
|
|
888
1156
|
}),
|
|
889
1157
|
_: 3
|
|
890
|
-
}, 16, ["class", "disabled", "pt", "unstyled"])], 16)) :
|
|
1158
|
+
}, 16, ["class", "disabled", "pt", "unstyled"])], 16)) : createCommentVNode("", true), _ctx.showButtons && _ctx.buttonLayout !== "stacked" ? (openBlock(), createBlock(_component_INButton, mergeProps({
|
|
891
1159
|
key: 1,
|
|
892
|
-
class: [
|
|
893
|
-
},
|
|
894
|
-
disabled:
|
|
1160
|
+
"class": [_ctx.cx("incrementButton"), _ctx.incrementButtonClass]
|
|
1161
|
+
}, toHandlers($options.upButtonListeners), {
|
|
1162
|
+
disabled: _ctx.disabled,
|
|
895
1163
|
tabindex: -1,
|
|
896
1164
|
"aria-hidden": "true"
|
|
897
|
-
},
|
|
898
|
-
pt:
|
|
899
|
-
unstyled:
|
|
1165
|
+
}, _ctx.incrementButtonProps, {
|
|
1166
|
+
pt: _ctx.ptm("incrementButton"),
|
|
1167
|
+
unstyled: _ctx.unstyled
|
|
900
1168
|
}), {
|
|
901
|
-
icon:
|
|
902
|
-
return [
|
|
903
|
-
return [(
|
|
904
|
-
class:
|
|
905
|
-
},
|
|
1169
|
+
icon: withCtx(function() {
|
|
1170
|
+
return [renderSlot(_ctx.$slots, "incrementbuttonicon", {}, function() {
|
|
1171
|
+
return [(openBlock(), createBlock(resolveDynamicComponent(_ctx.incrementButtonIcon ? "span" : "AngleUpIcon"), mergeProps({
|
|
1172
|
+
"class": _ctx.incrementButtonIcon
|
|
1173
|
+
}, _ctx.ptm("incrementButton")["icon"], {
|
|
906
1174
|
"data-pc-section": "incrementbuttonicon"
|
|
907
1175
|
}), null, 16, ["class"]))];
|
|
908
1176
|
})];
|
|
909
1177
|
}),
|
|
910
1178
|
_: 3
|
|
911
|
-
}, 16, ["class", "disabled", "pt", "unstyled"])) :
|
|
1179
|
+
}, 16, ["class", "disabled", "pt", "unstyled"])) : createCommentVNode("", true), _ctx.showButtons && _ctx.buttonLayout !== "stacked" ? (openBlock(), createBlock(_component_INButton, mergeProps({
|
|
912
1180
|
key: 2,
|
|
913
|
-
class: [
|
|
914
|
-
},
|
|
915
|
-
disabled:
|
|
1181
|
+
"class": [_ctx.cx("decrementButton"), _ctx.decrementButtonClass]
|
|
1182
|
+
}, toHandlers($options.downButtonListeners), {
|
|
1183
|
+
disabled: _ctx.disabled,
|
|
916
1184
|
tabindex: -1,
|
|
917
1185
|
"aria-hidden": "true"
|
|
918
|
-
},
|
|
919
|
-
pt:
|
|
920
|
-
unstyled:
|
|
1186
|
+
}, _ctx.decrementButtonProps, {
|
|
1187
|
+
pt: _ctx.ptm("decrementButton"),
|
|
1188
|
+
unstyled: _ctx.unstyled
|
|
921
1189
|
}), {
|
|
922
|
-
icon:
|
|
923
|
-
return [
|
|
924
|
-
return [(
|
|
925
|
-
class:
|
|
926
|
-
},
|
|
1190
|
+
icon: withCtx(function() {
|
|
1191
|
+
return [renderSlot(_ctx.$slots, "decrementbuttonicon", {}, function() {
|
|
1192
|
+
return [(openBlock(), createBlock(resolveDynamicComponent(_ctx.decrementButtonIcon ? "span" : "AngleDownIcon"), mergeProps({
|
|
1193
|
+
"class": _ctx.decrementButtonIcon
|
|
1194
|
+
}, _ctx.ptm("decrementButton")["icon"], {
|
|
927
1195
|
"data-pc-section": "decrementbuttonicon"
|
|
928
1196
|
}), null, 16, ["class"]))];
|
|
929
1197
|
})];
|
|
930
1198
|
}),
|
|
931
1199
|
_: 3
|
|
932
|
-
}, 16, ["class", "disabled", "pt", "unstyled"])) :
|
|
1200
|
+
}, 16, ["class", "disabled", "pt", "unstyled"])) : createCommentVNode("", true)], 16);
|
|
933
1201
|
}
|
|
934
|
-
|
|
1202
|
+
script.render = render;
|
|
935
1203
|
export {
|
|
936
|
-
|
|
1204
|
+
script as s
|
|
937
1205
|
};
|