easy-elplus 1.0.0
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/LICENSE +21 -0
- package/README.md +69 -0
- package/dist/index.full.js +4431 -0
- package/es/_virtual/_plugin-vue_export-helper.mjs +9 -0
- package/es/index.mjs +35 -0
- package/es/node_modules/.pnpm/@vue_shared@3.5.27/node_modules/@vue/shared/dist/shared.esm-bundler.mjs +13 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_DataView.mjs +7 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_Hash.mjs +32 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_ListCache.mjs +32 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_Map.mjs +7 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_MapCache.mjs +32 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_Promise.mjs +7 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_Set.mjs +7 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_Stack.mjs +27 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_Symbol.mjs +6 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_Uint8Array.mjs +6 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_WeakMap.mjs +7 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_apply.mjs +21 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_arrayEach.mjs +22 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_arrayFilter.mjs +25 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_arrayLikeKeys.mjs +42 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_arrayMap.mjs +21 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_arrayPush.mjs +20 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_assignValue.mjs +28 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_assocIndexOf.mjs +21 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseAssignValue.mjs +25 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseClone.mjs +140 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseFlatten.mjs +35 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseGet.mjs +24 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseGetAllKeys.mjs +20 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseGetTag.mjs +28 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseIsArguments.mjs +18 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseIsMap.mjs +18 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseIsNative.mjs +47 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseIsSet.mjs +18 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseIsTypedArray.mjs +60 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseKeysIn.mjs +33 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseSetToString.mjs +22 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseSlice.mjs +31 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseTimes.mjs +20 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseToString.mjs +34 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseUnary.mjs +14 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseUnset.mjs +65 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_castPath.mjs +21 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_cloneArrayBuffer.mjs +16 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_cloneBuffer.mjs +30 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_cloneDataView.mjs +16 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_cloneRegExp.mjs +17 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_cloneSymbol.mjs +18 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_cloneTypedArray.mjs +16 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_copyObject.mjs +38 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_coreJsData.mjs +6 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_customOmitClone.mjs +16 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_defineProperty.mjs +11 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_flatRest.mjs +16 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_freeGlobal.mjs +4 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_getAllKeysIn.mjs +17 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_getMapData.mjs +18 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_getNative.mjs +17 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_getPrototype.mjs +6 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_getRawTag.mjs +46 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_getSymbols.mjs +30 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_getSymbolsIn.mjs +25 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_getTag.mjs +58 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_getValue.mjs +13 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_hashClear.mjs +15 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_hashDelete.mjs +17 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_hashGet.mjs +30 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_hashHas.mjs +23 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_hashSet.mjs +23 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_initCloneArray.mjs +26 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_initCloneByTag.mjs +77 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_isFlattenable.mjs +20 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_isIndex.mjs +25 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_isKey.mjs +29 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_isKeyable.mjs +15 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_isMasked.mjs +20 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_isPrototype.mjs +18 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_listCacheClear.mjs +13 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_listCacheDelete.mjs +35 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_listCacheGet.mjs +19 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_listCacheHas.mjs +16 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_listCacheSet.mjs +26 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_mapCacheClear.mjs +21 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_mapCacheDelete.mjs +18 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_mapCacheGet.mjs +16 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_mapCacheHas.mjs +16 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_mapCacheSet.mjs +22 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_memoizeCapped.mjs +26 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_nativeCreate.mjs +6 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_nativeKeysIn.mjs +20 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_nodeUtil.mjs +30 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_objectToString.mjs +22 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_overArg.mjs +15 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_overRest.mjs +36 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_parent.mjs +16 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_root.mjs +9 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_setToString.mjs +14 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_shortOut.mjs +37 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_stackClear.mjs +15 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_stackDelete.mjs +18 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_stackGet.mjs +14 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_stackHas.mjs +14 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_stackSet.mjs +34 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_stringToPath.mjs +27 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_toKey.mjs +18 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_toSource.mjs +26 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/constant.mjs +26 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/eq.mjs +37 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/flatten.mjs +22 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/identity.mjs +21 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isArguments.mjs +36 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isArray.mjs +26 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isArrayLike.mjs +33 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isBuffer.mjs +38 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isFunction.mjs +37 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isLength.mjs +35 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isMap.mjs +27 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isObject.mjs +31 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isObjectLike.mjs +29 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isPlainObject.mjs +62 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isSet.mjs +27 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isSymbol.mjs +29 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isTypedArray.mjs +27 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/keysIn.mjs +32 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/last.mjs +20 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/memoize.mjs +73 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/omit.mjs +57 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/stubArray.mjs +23 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/stubFalse.mjs +18 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/toString.mjs +28 -0
- package/es/node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.mjs +28 -0
- package/es/packages/components/FileUpload/index.mjs +6 -0
- package/es/packages/components/FileUpload/src/FileUpload.vue.mjs +332 -0
- package/es/packages/components/FileUpload/src/FileUpload.vue2.mjs +4 -0
- package/es/packages/components/ImageUpload/index.mjs +6 -0
- package/es/packages/components/ImageUpload/src/ImageUpload.vue.mjs +258 -0
- package/es/packages/components/ImageUpload/src/ImageUpload.vue2.mjs +4 -0
- package/es/packages/components/button/index.mjs +10 -0
- package/es/packages/components/button/src/button.vue.mjs +42 -0
- package/es/packages/components/descriptions/index.mjs +10 -0
- package/es/packages/components/descriptions/src/comp.vue.mjs +51 -0
- package/es/packages/components/descriptions/src/descriptions.vue.mjs +178 -0
- package/es/packages/components/dialog/index.mjs +11 -0
- package/es/packages/components/dialog/src/appContext.mjs +25 -0
- package/es/packages/components/dialog/src/dialog.mjs +130 -0
- package/es/packages/components/dialog/src/useDialog.mjs +183 -0
- package/es/packages/components/table/index.mjs +10 -0
- package/es/packages/components/table/src/scrollTo.mjs +69 -0
- package/es/packages/components/table/src/table.vue.mjs +357 -0
- package/es/packages/components/table/src/table.vue2.mjs +4 -0
- package/es/packages/components/table/src/tableColumn.vue.mjs +72 -0
- package/es/packages/constants/event.mjs +3 -0
- package/es/packages/hooks/src/useDynamicComponent.mjs +53 -0
- package/es/packages/utils/type.mjs +5 -0
- package/es/packages/utils/vue/appContext.mjs +25 -0
- package/es/packages/utils/vue/install.mjs +22 -0
- package/lib/_virtual/_plugin-vue_export-helper.js +13 -0
- package/lib/index.js +46 -0
- package/lib/node_modules/.pnpm/@vue_shared@3.5.27/node_modules/@vue/shared/dist/shared.esm-bundler.js +16 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_DataView.js +11 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_Hash.js +36 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_ListCache.js +36 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_Map.js +11 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_MapCache.js +36 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_Promise.js +11 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_Set.js +11 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_Stack.js +31 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_Symbol.js +10 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_Uint8Array.js +10 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_WeakMap.js +11 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_apply.js +25 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_arrayEach.js +26 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_arrayFilter.js +29 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_arrayLikeKeys.js +46 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_arrayMap.js +25 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_arrayPush.js +24 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_assignValue.js +32 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_assocIndexOf.js +25 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseAssignValue.js +29 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseClone.js +144 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseFlatten.js +39 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseGet.js +28 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseGetAllKeys.js +24 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseGetTag.js +32 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseIsArguments.js +22 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseIsMap.js +22 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseIsNative.js +51 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseIsSet.js +22 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseIsTypedArray.js +64 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseKeysIn.js +37 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseSetToString.js +26 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseSlice.js +35 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseTimes.js +24 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseToString.js +38 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseUnary.js +18 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseUnset.js +69 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_castPath.js +25 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_cloneArrayBuffer.js +20 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_cloneBuffer.js +34 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_cloneDataView.js +20 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_cloneRegExp.js +21 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_cloneSymbol.js +22 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_cloneTypedArray.js +20 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_copyObject.js +42 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_coreJsData.js +10 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_customOmitClone.js +20 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_defineProperty.js +15 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_flatRest.js +20 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_freeGlobal.js +8 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_getAllKeysIn.js +21 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_getMapData.js +22 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_getNative.js +21 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_getPrototype.js +10 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_getRawTag.js +50 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_getSymbols.js +34 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_getSymbolsIn.js +29 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_getTag.js +60 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_getValue.js +17 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_hashClear.js +19 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_hashDelete.js +21 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_hashGet.js +34 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_hashHas.js +27 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_hashSet.js +27 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_initCloneArray.js +30 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_initCloneByTag.js +81 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_isFlattenable.js +24 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_isIndex.js +29 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_isKey.js +33 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_isKeyable.js +19 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_isMasked.js +24 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_isPrototype.js +22 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_listCacheClear.js +17 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_listCacheDelete.js +39 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_listCacheGet.js +23 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_listCacheHas.js +20 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_listCacheSet.js +30 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_mapCacheClear.js +25 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_mapCacheDelete.js +22 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_mapCacheGet.js +20 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_mapCacheHas.js +20 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_mapCacheSet.js +26 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_memoizeCapped.js +30 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_nativeCreate.js +10 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_nativeKeysIn.js +24 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_nodeUtil.js +34 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_objectToString.js +26 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_overArg.js +19 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_overRest.js +40 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_parent.js +20 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_root.js +13 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_setToString.js +18 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_shortOut.js +41 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_stackClear.js +19 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_stackDelete.js +22 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_stackGet.js +18 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_stackHas.js +18 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_stackSet.js +38 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_stringToPath.js +31 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_toKey.js +22 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_toSource.js +30 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/constant.js +30 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/eq.js +41 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/flatten.js +26 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/identity.js +25 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isArguments.js +40 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isArray.js +30 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isArrayLike.js +37 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isBuffer.js +42 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isFunction.js +41 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isLength.js +39 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isMap.js +31 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isObject.js +35 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isObjectLike.js +33 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isPlainObject.js +66 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isSet.js +31 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isSymbol.js +33 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isTypedArray.js +31 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/keysIn.js +36 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/last.js +24 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/memoize.js +77 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/omit.js +61 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/stubArray.js +27 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/stubFalse.js +22 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/toString.js +32 -0
- package/lib/node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.js +32 -0
- package/lib/packages/components/FileUpload/index.js +11 -0
- package/lib/packages/components/FileUpload/src/FileUpload.vue.js +336 -0
- package/lib/packages/components/FileUpload/src/FileUpload.vue2.js +6 -0
- package/lib/packages/components/ImageUpload/index.js +11 -0
- package/lib/packages/components/ImageUpload/src/ImageUpload.vue.js +262 -0
- package/lib/packages/components/ImageUpload/src/ImageUpload.vue2.js +6 -0
- package/lib/packages/components/button/index.js +15 -0
- package/lib/packages/components/button/src/button.vue.js +46 -0
- package/lib/packages/components/descriptions/index.js +15 -0
- package/lib/packages/components/descriptions/src/comp.vue.js +55 -0
- package/lib/packages/components/descriptions/src/descriptions.vue.js +182 -0
- package/lib/packages/components/dialog/index.js +14 -0
- package/lib/packages/components/dialog/src/appContext.js +28 -0
- package/lib/packages/components/dialog/src/dialog.js +132 -0
- package/lib/packages/components/dialog/src/useDialog.js +185 -0
- package/lib/packages/components/table/index.js +15 -0
- package/lib/packages/components/table/src/scrollTo.js +71 -0
- package/lib/packages/components/table/src/table.vue.js +361 -0
- package/lib/packages/components/table/src/table.vue2.js +6 -0
- package/lib/packages/components/table/src/tableColumn.vue.js +76 -0
- package/lib/packages/constants/event.js +5 -0
- package/lib/packages/hooks/src/useDynamicComponent.js +55 -0
- package/lib/packages/utils/type.js +9 -0
- package/lib/packages/utils/vue/appContext.js +28 -0
- package/lib/packages/utils/vue/install.js +24 -0
- package/package.json +62 -0
- package/public/qq.jpg +0 -0
package/es/index.mjs
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { EasyButton } from './packages/components/button/index.mjs';
|
|
2
|
+
import { EasyDescriptions } from './packages/components/descriptions/index.mjs';
|
|
3
|
+
import { EasyTable } from './packages/components/table/index.mjs';
|
|
4
|
+
import { EasyImageUpload } from './packages/components/ImageUpload/index.mjs';
|
|
5
|
+
import { EasyFileUpload } from './packages/components/FileUpload/index.mjs';
|
|
6
|
+
import { setGlobalAppContext } from './packages/utils/vue/appContext.mjs';
|
|
7
|
+
export { EasyDialog } from './packages/components/dialog/index.mjs';
|
|
8
|
+
export { useDialog } from './packages/components/dialog/src/useDialog.mjs';
|
|
9
|
+
|
|
10
|
+
// 组件列表
|
|
11
|
+
const components = [EasyButton, EasyDescriptions, EasyTable, EasyImageUpload, EasyFileUpload];
|
|
12
|
+
|
|
13
|
+
// 是否已安装标识(防止重复 install)
|
|
14
|
+
const INSTALLED_KEY = Symbol("INSTALLED_KEY");
|
|
15
|
+
|
|
16
|
+
// 组件库插件
|
|
17
|
+
const EasyElementPlus = {
|
|
18
|
+
install(app) {
|
|
19
|
+
// 防止重复安装
|
|
20
|
+
if (app[INSTALLED_KEY]) return
|
|
21
|
+
|
|
22
|
+
app[INSTALLED_KEY] = true;
|
|
23
|
+
|
|
24
|
+
// 保存全局应用上下文,供 EasyDialog 等工具使用
|
|
25
|
+
// 这样即使在非组件上下文中调用,也能访问到主应用的插件和全局组件
|
|
26
|
+
setGlobalAppContext(app._context);
|
|
27
|
+
|
|
28
|
+
// 逐个安装组件
|
|
29
|
+
components.forEach(component => {
|
|
30
|
+
app.use(component);
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
export { EasyButton, EasyDescriptions, EasyFileUpload, EasyImageUpload, EasyTable, EasyElementPlus as default };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @vue/shared v3.5.27
|
|
3
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
|
+
* @license MIT
|
|
5
|
+
**/
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
!!(process.env.NODE_ENV !== "production") ? Object.freeze({}) : {};
|
|
9
|
+
!!(process.env.NODE_ENV !== "production") ? Object.freeze([]) : [];
|
|
10
|
+
const isFunction = (val) => typeof val === "function";
|
|
11
|
+
const isObject = (val) => val !== null && typeof val === "object";
|
|
12
|
+
|
|
13
|
+
export { isFunction, isObject };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import hashClear from './_hashClear.mjs';
|
|
2
|
+
import hashDelete from './_hashDelete.mjs';
|
|
3
|
+
import hashGet from './_hashGet.mjs';
|
|
4
|
+
import hashHas from './_hashHas.mjs';
|
|
5
|
+
import hashSet from './_hashSet.mjs';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Creates a hash object.
|
|
9
|
+
*
|
|
10
|
+
* @private
|
|
11
|
+
* @constructor
|
|
12
|
+
* @param {Array} [entries] The key-value pairs to cache.
|
|
13
|
+
*/
|
|
14
|
+
function Hash(entries) {
|
|
15
|
+
var index = -1,
|
|
16
|
+
length = entries == null ? 0 : entries.length;
|
|
17
|
+
|
|
18
|
+
this.clear();
|
|
19
|
+
while (++index < length) {
|
|
20
|
+
var entry = entries[index];
|
|
21
|
+
this.set(entry[0], entry[1]);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
// Add methods to `Hash`.
|
|
26
|
+
Hash.prototype.clear = hashClear;
|
|
27
|
+
Hash.prototype['delete'] = hashDelete;
|
|
28
|
+
Hash.prototype.get = hashGet;
|
|
29
|
+
Hash.prototype.has = hashHas;
|
|
30
|
+
Hash.prototype.set = hashSet;
|
|
31
|
+
|
|
32
|
+
export { Hash as default };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import listCacheClear from './_listCacheClear.mjs';
|
|
2
|
+
import listCacheDelete from './_listCacheDelete.mjs';
|
|
3
|
+
import listCacheGet from './_listCacheGet.mjs';
|
|
4
|
+
import listCacheHas from './_listCacheHas.mjs';
|
|
5
|
+
import listCacheSet from './_listCacheSet.mjs';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Creates an list cache object.
|
|
9
|
+
*
|
|
10
|
+
* @private
|
|
11
|
+
* @constructor
|
|
12
|
+
* @param {Array} [entries] The key-value pairs to cache.
|
|
13
|
+
*/
|
|
14
|
+
function ListCache(entries) {
|
|
15
|
+
var index = -1,
|
|
16
|
+
length = entries == null ? 0 : entries.length;
|
|
17
|
+
|
|
18
|
+
this.clear();
|
|
19
|
+
while (++index < length) {
|
|
20
|
+
var entry = entries[index];
|
|
21
|
+
this.set(entry[0], entry[1]);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
// Add methods to `ListCache`.
|
|
26
|
+
ListCache.prototype.clear = listCacheClear;
|
|
27
|
+
ListCache.prototype['delete'] = listCacheDelete;
|
|
28
|
+
ListCache.prototype.get = listCacheGet;
|
|
29
|
+
ListCache.prototype.has = listCacheHas;
|
|
30
|
+
ListCache.prototype.set = listCacheSet;
|
|
31
|
+
|
|
32
|
+
export { ListCache as default };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import mapCacheClear from './_mapCacheClear.mjs';
|
|
2
|
+
import mapCacheDelete from './_mapCacheDelete.mjs';
|
|
3
|
+
import mapCacheGet from './_mapCacheGet.mjs';
|
|
4
|
+
import mapCacheHas from './_mapCacheHas.mjs';
|
|
5
|
+
import mapCacheSet from './_mapCacheSet.mjs';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Creates a map cache object to store key-value pairs.
|
|
9
|
+
*
|
|
10
|
+
* @private
|
|
11
|
+
* @constructor
|
|
12
|
+
* @param {Array} [entries] The key-value pairs to cache.
|
|
13
|
+
*/
|
|
14
|
+
function MapCache(entries) {
|
|
15
|
+
var index = -1,
|
|
16
|
+
length = entries == null ? 0 : entries.length;
|
|
17
|
+
|
|
18
|
+
this.clear();
|
|
19
|
+
while (++index < length) {
|
|
20
|
+
var entry = entries[index];
|
|
21
|
+
this.set(entry[0], entry[1]);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
// Add methods to `MapCache`.
|
|
26
|
+
MapCache.prototype.clear = mapCacheClear;
|
|
27
|
+
MapCache.prototype['delete'] = mapCacheDelete;
|
|
28
|
+
MapCache.prototype.get = mapCacheGet;
|
|
29
|
+
MapCache.prototype.has = mapCacheHas;
|
|
30
|
+
MapCache.prototype.set = mapCacheSet;
|
|
31
|
+
|
|
32
|
+
export { MapCache as default };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import ListCache from './_ListCache.mjs';
|
|
2
|
+
import stackClear from './_stackClear.mjs';
|
|
3
|
+
import stackDelete from './_stackDelete.mjs';
|
|
4
|
+
import stackGet from './_stackGet.mjs';
|
|
5
|
+
import stackHas from './_stackHas.mjs';
|
|
6
|
+
import stackSet from './_stackSet.mjs';
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Creates a stack cache object to store key-value pairs.
|
|
10
|
+
*
|
|
11
|
+
* @private
|
|
12
|
+
* @constructor
|
|
13
|
+
* @param {Array} [entries] The key-value pairs to cache.
|
|
14
|
+
*/
|
|
15
|
+
function Stack(entries) {
|
|
16
|
+
var data = this.__data__ = new ListCache(entries);
|
|
17
|
+
this.size = data.size;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
// Add methods to `Stack`.
|
|
21
|
+
Stack.prototype.clear = stackClear;
|
|
22
|
+
Stack.prototype['delete'] = stackDelete;
|
|
23
|
+
Stack.prototype.get = stackGet;
|
|
24
|
+
Stack.prototype.has = stackHas;
|
|
25
|
+
Stack.prototype.set = stackSet;
|
|
26
|
+
|
|
27
|
+
export { Stack as default };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A faster alternative to `Function#apply`, this function invokes `func`
|
|
3
|
+
* with the `this` binding of `thisArg` and the arguments of `args`.
|
|
4
|
+
*
|
|
5
|
+
* @private
|
|
6
|
+
* @param {Function} func The function to invoke.
|
|
7
|
+
* @param {*} thisArg The `this` binding of `func`.
|
|
8
|
+
* @param {Array} args The arguments to invoke `func` with.
|
|
9
|
+
* @returns {*} Returns the result of `func`.
|
|
10
|
+
*/
|
|
11
|
+
function apply(func, thisArg, args) {
|
|
12
|
+
switch (args.length) {
|
|
13
|
+
case 0: return func.call(thisArg);
|
|
14
|
+
case 1: return func.call(thisArg, args[0]);
|
|
15
|
+
case 2: return func.call(thisArg, args[0], args[1]);
|
|
16
|
+
case 3: return func.call(thisArg, args[0], args[1], args[2]);
|
|
17
|
+
}
|
|
18
|
+
return func.apply(thisArg, args);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export { apply as default };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A specialized version of `_.forEach` for arrays without support for
|
|
3
|
+
* iteratee shorthands.
|
|
4
|
+
*
|
|
5
|
+
* @private
|
|
6
|
+
* @param {Array} [array] The array to iterate over.
|
|
7
|
+
* @param {Function} iteratee The function invoked per iteration.
|
|
8
|
+
* @returns {Array} Returns `array`.
|
|
9
|
+
*/
|
|
10
|
+
function arrayEach(array, iteratee) {
|
|
11
|
+
var index = -1,
|
|
12
|
+
length = array == null ? 0 : array.length;
|
|
13
|
+
|
|
14
|
+
while (++index < length) {
|
|
15
|
+
if (iteratee(array[index], index, array) === false) {
|
|
16
|
+
break;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
return array;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export { arrayEach as default };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A specialized version of `_.filter` for arrays without support for
|
|
3
|
+
* iteratee shorthands.
|
|
4
|
+
*
|
|
5
|
+
* @private
|
|
6
|
+
* @param {Array} [array] The array to iterate over.
|
|
7
|
+
* @param {Function} predicate The function invoked per iteration.
|
|
8
|
+
* @returns {Array} Returns the new filtered array.
|
|
9
|
+
*/
|
|
10
|
+
function arrayFilter(array, predicate) {
|
|
11
|
+
var index = -1,
|
|
12
|
+
length = array == null ? 0 : array.length,
|
|
13
|
+
resIndex = 0,
|
|
14
|
+
result = [];
|
|
15
|
+
|
|
16
|
+
while (++index < length) {
|
|
17
|
+
var value = array[index];
|
|
18
|
+
if (predicate(value, index, array)) {
|
|
19
|
+
result[resIndex++] = value;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
return result;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export { arrayFilter as default };
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import baseTimes from './_baseTimes.mjs';
|
|
2
|
+
import isArguments from './isArguments.mjs';
|
|
3
|
+
import isArray from './isArray.mjs';
|
|
4
|
+
import isBuffer from './isBuffer.mjs';
|
|
5
|
+
import isIndex from './_isIndex.mjs';
|
|
6
|
+
import isTypedArray from './isTypedArray.mjs';
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Creates an array of the enumerable property names of the array-like `value`.
|
|
10
|
+
*
|
|
11
|
+
* @private
|
|
12
|
+
* @param {*} value The value to query.
|
|
13
|
+
* @param {boolean} inherited Specify returning inherited property names.
|
|
14
|
+
* @returns {Array} Returns the array of property names.
|
|
15
|
+
*/
|
|
16
|
+
function arrayLikeKeys(value, inherited) {
|
|
17
|
+
var isArr = isArray(value),
|
|
18
|
+
isArg = !isArr && isArguments(value),
|
|
19
|
+
isBuff = !isArr && !isArg && isBuffer(value),
|
|
20
|
+
isType = !isArr && !isArg && !isBuff && isTypedArray(value),
|
|
21
|
+
skipIndexes = isArr || isArg || isBuff || isType,
|
|
22
|
+
result = skipIndexes ? baseTimes(value.length, String) : [],
|
|
23
|
+
length = result.length;
|
|
24
|
+
|
|
25
|
+
for (var key in value) {
|
|
26
|
+
if (!(skipIndexes && (
|
|
27
|
+
// Safari 9 has enumerable `arguments.length` in strict mode.
|
|
28
|
+
key == 'length' ||
|
|
29
|
+
// Node.js 0.10 has enumerable non-index properties on buffers.
|
|
30
|
+
(isBuff && (key == 'offset' || key == 'parent')) ||
|
|
31
|
+
// PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
32
|
+
(isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||
|
|
33
|
+
// Skip index properties.
|
|
34
|
+
isIndex(key, length)
|
|
35
|
+
))) {
|
|
36
|
+
result.push(key);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
return result;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export { arrayLikeKeys as default };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A specialized version of `_.map` for arrays without support for iteratee
|
|
3
|
+
* shorthands.
|
|
4
|
+
*
|
|
5
|
+
* @private
|
|
6
|
+
* @param {Array} [array] The array to iterate over.
|
|
7
|
+
* @param {Function} iteratee The function invoked per iteration.
|
|
8
|
+
* @returns {Array} Returns the new mapped array.
|
|
9
|
+
*/
|
|
10
|
+
function arrayMap(array, iteratee) {
|
|
11
|
+
var index = -1,
|
|
12
|
+
length = array == null ? 0 : array.length,
|
|
13
|
+
result = Array(length);
|
|
14
|
+
|
|
15
|
+
while (++index < length) {
|
|
16
|
+
result[index] = iteratee(array[index], index, array);
|
|
17
|
+
}
|
|
18
|
+
return result;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export { arrayMap as default };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Appends the elements of `values` to `array`.
|
|
3
|
+
*
|
|
4
|
+
* @private
|
|
5
|
+
* @param {Array} array The array to modify.
|
|
6
|
+
* @param {Array} values The values to append.
|
|
7
|
+
* @returns {Array} Returns `array`.
|
|
8
|
+
*/
|
|
9
|
+
function arrayPush(array, values) {
|
|
10
|
+
var index = -1,
|
|
11
|
+
length = values.length,
|
|
12
|
+
offset = array.length;
|
|
13
|
+
|
|
14
|
+
while (++index < length) {
|
|
15
|
+
array[offset + index] = values[index];
|
|
16
|
+
}
|
|
17
|
+
return array;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export { arrayPush as default };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import baseAssignValue from './_baseAssignValue.mjs';
|
|
2
|
+
import eq from './eq.mjs';
|
|
3
|
+
|
|
4
|
+
/** Used for built-in method references. */
|
|
5
|
+
var objectProto = Object.prototype;
|
|
6
|
+
|
|
7
|
+
/** Used to check objects for own properties. */
|
|
8
|
+
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Assigns `value` to `key` of `object` if the existing value is not equivalent
|
|
12
|
+
* using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
|
|
13
|
+
* for equality comparisons.
|
|
14
|
+
*
|
|
15
|
+
* @private
|
|
16
|
+
* @param {Object} object The object to modify.
|
|
17
|
+
* @param {string} key The key of the property to assign.
|
|
18
|
+
* @param {*} value The value to assign.
|
|
19
|
+
*/
|
|
20
|
+
function assignValue(object, key, value) {
|
|
21
|
+
var objValue = object[key];
|
|
22
|
+
if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) ||
|
|
23
|
+
(value === undefined && !(key in object))) {
|
|
24
|
+
baseAssignValue(object, key, value);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export { assignValue as default };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import eq from './eq.mjs';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Gets the index at which the `key` is found in `array` of key-value pairs.
|
|
5
|
+
*
|
|
6
|
+
* @private
|
|
7
|
+
* @param {Array} array The array to inspect.
|
|
8
|
+
* @param {*} key The key to search for.
|
|
9
|
+
* @returns {number} Returns the index of the matched value, else `-1`.
|
|
10
|
+
*/
|
|
11
|
+
function assocIndexOf(array, key) {
|
|
12
|
+
var length = array.length;
|
|
13
|
+
while (length--) {
|
|
14
|
+
if (eq(array[length][0], key)) {
|
|
15
|
+
return length;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
return -1;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export { assocIndexOf as default };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import defineProperty from './_defineProperty.mjs';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* The base implementation of `assignValue` and `assignMergeValue` without
|
|
5
|
+
* value checks.
|
|
6
|
+
*
|
|
7
|
+
* @private
|
|
8
|
+
* @param {Object} object The object to modify.
|
|
9
|
+
* @param {string} key The key of the property to assign.
|
|
10
|
+
* @param {*} value The value to assign.
|
|
11
|
+
*/
|
|
12
|
+
function baseAssignValue(object, key, value) {
|
|
13
|
+
if (key == '__proto__' && defineProperty) {
|
|
14
|
+
defineProperty(object, key, {
|
|
15
|
+
'configurable': true,
|
|
16
|
+
'enumerable': true,
|
|
17
|
+
'value': value,
|
|
18
|
+
'writable': true
|
|
19
|
+
});
|
|
20
|
+
} else {
|
|
21
|
+
object[key] = value;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export { baseAssignValue as default };
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
import Stack from './_Stack.mjs';
|
|
2
|
+
import arrayEach from './_arrayEach.mjs';
|
|
3
|
+
import assignValue from './_assignValue.mjs';
|
|
4
|
+
import cloneBuffer from './_cloneBuffer.mjs';
|
|
5
|
+
import getAllKeysIn from './_getAllKeysIn.mjs';
|
|
6
|
+
import getTag from './_getTag.mjs';
|
|
7
|
+
import initCloneArray from './_initCloneArray.mjs';
|
|
8
|
+
import initCloneByTag from './_initCloneByTag.mjs';
|
|
9
|
+
import isArray from './isArray.mjs';
|
|
10
|
+
import isBuffer from './isBuffer.mjs';
|
|
11
|
+
import isMap from './isMap.mjs';
|
|
12
|
+
import isObject from './isObject.mjs';
|
|
13
|
+
import isSet from './isSet.mjs';
|
|
14
|
+
|
|
15
|
+
/** `Object#toString` result references. */
|
|
16
|
+
var argsTag = '[object Arguments]',
|
|
17
|
+
arrayTag = '[object Array]',
|
|
18
|
+
boolTag = '[object Boolean]',
|
|
19
|
+
dateTag = '[object Date]',
|
|
20
|
+
errorTag = '[object Error]',
|
|
21
|
+
funcTag = '[object Function]',
|
|
22
|
+
genTag = '[object GeneratorFunction]',
|
|
23
|
+
mapTag = '[object Map]',
|
|
24
|
+
numberTag = '[object Number]',
|
|
25
|
+
objectTag = '[object Object]',
|
|
26
|
+
regexpTag = '[object RegExp]',
|
|
27
|
+
setTag = '[object Set]',
|
|
28
|
+
stringTag = '[object String]',
|
|
29
|
+
symbolTag = '[object Symbol]',
|
|
30
|
+
weakMapTag = '[object WeakMap]';
|
|
31
|
+
|
|
32
|
+
var arrayBufferTag = '[object ArrayBuffer]',
|
|
33
|
+
dataViewTag = '[object DataView]',
|
|
34
|
+
float32Tag = '[object Float32Array]',
|
|
35
|
+
float64Tag = '[object Float64Array]',
|
|
36
|
+
int8Tag = '[object Int8Array]',
|
|
37
|
+
int16Tag = '[object Int16Array]',
|
|
38
|
+
int32Tag = '[object Int32Array]',
|
|
39
|
+
uint8Tag = '[object Uint8Array]',
|
|
40
|
+
uint8ClampedTag = '[object Uint8ClampedArray]',
|
|
41
|
+
uint16Tag = '[object Uint16Array]',
|
|
42
|
+
uint32Tag = '[object Uint32Array]';
|
|
43
|
+
|
|
44
|
+
/** Used to identify `toStringTag` values supported by `_.clone`. */
|
|
45
|
+
var cloneableTags = {};
|
|
46
|
+
cloneableTags[argsTag] = cloneableTags[arrayTag] =
|
|
47
|
+
cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] =
|
|
48
|
+
cloneableTags[boolTag] = cloneableTags[dateTag] =
|
|
49
|
+
cloneableTags[float32Tag] = cloneableTags[float64Tag] =
|
|
50
|
+
cloneableTags[int8Tag] = cloneableTags[int16Tag] =
|
|
51
|
+
cloneableTags[int32Tag] = cloneableTags[mapTag] =
|
|
52
|
+
cloneableTags[numberTag] = cloneableTags[objectTag] =
|
|
53
|
+
cloneableTags[regexpTag] = cloneableTags[setTag] =
|
|
54
|
+
cloneableTags[stringTag] = cloneableTags[symbolTag] =
|
|
55
|
+
cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] =
|
|
56
|
+
cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;
|
|
57
|
+
cloneableTags[errorTag] = cloneableTags[funcTag] =
|
|
58
|
+
cloneableTags[weakMapTag] = false;
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* The base implementation of `_.clone` and `_.cloneDeep` which tracks
|
|
62
|
+
* traversed objects.
|
|
63
|
+
*
|
|
64
|
+
* @private
|
|
65
|
+
* @param {*} value The value to clone.
|
|
66
|
+
* @param {boolean} bitmask The bitmask flags.
|
|
67
|
+
* 1 - Deep clone
|
|
68
|
+
* 2 - Flatten inherited properties
|
|
69
|
+
* 4 - Clone symbols
|
|
70
|
+
* @param {Function} [customizer] The function to customize cloning.
|
|
71
|
+
* @param {string} [key] The key of `value`.
|
|
72
|
+
* @param {Object} [object] The parent object of `value`.
|
|
73
|
+
* @param {Object} [stack] Tracks traversed objects and their clone counterparts.
|
|
74
|
+
* @returns {*} Returns the cloned value.
|
|
75
|
+
*/
|
|
76
|
+
function baseClone(value, bitmask, customizer, key, object, stack) {
|
|
77
|
+
var result;
|
|
78
|
+
|
|
79
|
+
if (customizer) {
|
|
80
|
+
result = object ? customizer(value, key, object, stack) : customizer(value);
|
|
81
|
+
}
|
|
82
|
+
if (result !== undefined) {
|
|
83
|
+
return result;
|
|
84
|
+
}
|
|
85
|
+
if (!isObject(value)) {
|
|
86
|
+
return value;
|
|
87
|
+
}
|
|
88
|
+
var isArr = isArray(value);
|
|
89
|
+
if (isArr) {
|
|
90
|
+
result = initCloneArray(value);
|
|
91
|
+
} else {
|
|
92
|
+
var tag = getTag(value),
|
|
93
|
+
isFunc = tag == funcTag || tag == genTag;
|
|
94
|
+
|
|
95
|
+
if (isBuffer(value)) {
|
|
96
|
+
return cloneBuffer(value);
|
|
97
|
+
}
|
|
98
|
+
if (tag == objectTag || tag == argsTag || (isFunc && !object)) {
|
|
99
|
+
result = {} ;
|
|
100
|
+
} else {
|
|
101
|
+
if (!cloneableTags[tag]) {
|
|
102
|
+
return object ? value : {};
|
|
103
|
+
}
|
|
104
|
+
result = initCloneByTag(value, tag);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
// Check for circular references and return its corresponding clone.
|
|
108
|
+
stack || (stack = new Stack);
|
|
109
|
+
var stacked = stack.get(value);
|
|
110
|
+
if (stacked) {
|
|
111
|
+
return stacked;
|
|
112
|
+
}
|
|
113
|
+
stack.set(value, result);
|
|
114
|
+
|
|
115
|
+
if (isSet(value)) {
|
|
116
|
+
value.forEach(function(subValue) {
|
|
117
|
+
result.add(baseClone(subValue, bitmask, customizer, subValue, value, stack));
|
|
118
|
+
});
|
|
119
|
+
} else if (isMap(value)) {
|
|
120
|
+
value.forEach(function(subValue, key) {
|
|
121
|
+
result.set(key, baseClone(subValue, bitmask, customizer, key, value, stack));
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
var keysFunc = (getAllKeysIn )
|
|
126
|
+
;
|
|
127
|
+
|
|
128
|
+
var props = isArr ? undefined : keysFunc(value);
|
|
129
|
+
arrayEach(props || value, function(subValue, key) {
|
|
130
|
+
if (props) {
|
|
131
|
+
key = subValue;
|
|
132
|
+
subValue = value[key];
|
|
133
|
+
}
|
|
134
|
+
// Recursively populate clone (susceptible to call stack limits).
|
|
135
|
+
assignValue(result, key, baseClone(subValue, bitmask, customizer, key, value, stack));
|
|
136
|
+
});
|
|
137
|
+
return result;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
export { baseClone as default };
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import arrayPush from './_arrayPush.mjs';
|
|
2
|
+
import isFlattenable from './_isFlattenable.mjs';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* The base implementation of `_.flatten` with support for restricting flattening.
|
|
6
|
+
*
|
|
7
|
+
* @private
|
|
8
|
+
* @param {Array} array The array to flatten.
|
|
9
|
+
* @param {number} depth The maximum recursion depth.
|
|
10
|
+
* @param {boolean} [predicate=isFlattenable] The function invoked per iteration.
|
|
11
|
+
* @param {boolean} [isStrict] Restrict to values that pass `predicate` checks.
|
|
12
|
+
* @param {Array} [result=[]] The initial result value.
|
|
13
|
+
* @returns {Array} Returns the new flattened array.
|
|
14
|
+
*/
|
|
15
|
+
function baseFlatten(array, depth, predicate, isStrict, result) {
|
|
16
|
+
var index = -1,
|
|
17
|
+
length = array.length;
|
|
18
|
+
|
|
19
|
+
predicate || (predicate = isFlattenable);
|
|
20
|
+
result || (result = []);
|
|
21
|
+
|
|
22
|
+
while (++index < length) {
|
|
23
|
+
var value = array[index];
|
|
24
|
+
if (predicate(value)) {
|
|
25
|
+
{
|
|
26
|
+
arrayPush(result, value);
|
|
27
|
+
}
|
|
28
|
+
} else {
|
|
29
|
+
result[result.length] = value;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
return result;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export { baseFlatten as default };
|