@bpui/checkbox
Advanced tools
Comparing version 0.1.7 to 0.1.8
/*! | ||
* bpui checkbox v0.1.7 | ||
* bpui checkbox v0.1.8 | ||
* Copyright (c) 2020 Copyright bpoint.lee@live.com All Rights Reserved. | ||
@@ -38,3 +38,2 @@ * Released under the MIT License. | ||
// | ||
var script = { | ||
@@ -49,3 +48,3 @@ components: {}, | ||
type: Boolean | ||
}, | ||
} | ||
}, | ||
@@ -56,3 +55,3 @@ model: { | ||
}, | ||
data() { | ||
data: function data() { | ||
return { | ||
@@ -64,14 +63,14 @@ isChecked: false, | ||
computed: { | ||
isDisabled() { | ||
isDisabled: function isDisabled() { | ||
return this.disabled || this.disabled !== false; | ||
} | ||
}, | ||
created() { | ||
created: function created() { | ||
this.isChecked = this.checked; | ||
}, | ||
beforeDestroy() {}, | ||
beforeMount() {}, | ||
mounted() {}, | ||
beforeDestroy: function beforeDestroy() {}, | ||
beforeMount: function beforeMount() {}, | ||
mounted: function mounted() {}, | ||
methods: { | ||
handelChange(e) { | ||
handelChange: function handelChange(e) { | ||
this.$emit("change", e.target.checked); | ||
@@ -83,75 +82,745 @@ this.isChecked = e.target.checked; | ||
function normalizeComponent(template, style, script, scopeId, isFunctionalTemplate, moduleIdentifier /* server only */, shadowMode, createInjector, createInjectorSSR, createInjectorShadow) { | ||
if (typeof shadowMode !== 'boolean') { | ||
createInjectorSSR = createInjector; | ||
createInjector = shadowMode; | ||
shadowMode = false; | ||
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {}; | ||
function createCommonjsModule(fn, module) { | ||
return module = { exports: {} }, fn(module, module.exports), module.exports; | ||
} | ||
var check = function (it) { | ||
return it && it.Math == Math && it; | ||
}; | ||
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028 | ||
var global_1 = | ||
// eslint-disable-next-line no-undef | ||
check(typeof globalThis == 'object' && globalThis) || | ||
check(typeof window == 'object' && window) || | ||
check(typeof self == 'object' && self) || | ||
check(typeof commonjsGlobal == 'object' && commonjsGlobal) || | ||
// eslint-disable-next-line no-new-func | ||
Function('return this')(); | ||
var fails = function (exec) { | ||
try { | ||
return !!exec(); | ||
} catch (error) { | ||
return true; | ||
} | ||
}; | ||
// Thank's IE8 for his funny defineProperty | ||
var descriptors = !fails(function () { | ||
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7; | ||
}); | ||
var nativePropertyIsEnumerable = {}.propertyIsEnumerable; | ||
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; | ||
// Nashorn ~ JDK8 bug | ||
var NASHORN_BUG = getOwnPropertyDescriptor && !nativePropertyIsEnumerable.call({ 1: 2 }, 1); | ||
// `Object.prototype.propertyIsEnumerable` method implementation | ||
// https://tc39.github.io/ecma262/#sec-object.prototype.propertyisenumerable | ||
var f = NASHORN_BUG ? function propertyIsEnumerable(V) { | ||
var descriptor = getOwnPropertyDescriptor(this, V); | ||
return !!descriptor && descriptor.enumerable; | ||
} : nativePropertyIsEnumerable; | ||
var objectPropertyIsEnumerable = { | ||
f: f | ||
}; | ||
var createPropertyDescriptor = function (bitmap, value) { | ||
return { | ||
enumerable: !(bitmap & 1), | ||
configurable: !(bitmap & 2), | ||
writable: !(bitmap & 4), | ||
value: value | ||
}; | ||
}; | ||
var toString = {}.toString; | ||
var classofRaw = function (it) { | ||
return toString.call(it).slice(8, -1); | ||
}; | ||
var split = ''.split; | ||
// fallback for non-array-like ES3 and non-enumerable old V8 strings | ||
var indexedObject = fails(function () { | ||
// throws an error in rhino, see https://github.com/mozilla/rhino/issues/346 | ||
// eslint-disable-next-line no-prototype-builtins | ||
return !Object('z').propertyIsEnumerable(0); | ||
}) ? function (it) { | ||
return classofRaw(it) == 'String' ? split.call(it, '') : Object(it); | ||
} : Object; | ||
// `RequireObjectCoercible` abstract operation | ||
// https://tc39.github.io/ecma262/#sec-requireobjectcoercible | ||
var requireObjectCoercible = function (it) { | ||
if (it == undefined) throw TypeError("Can't call method on " + it); | ||
return it; | ||
}; | ||
// toObject with fallback for non-array-like ES3 strings | ||
var toIndexedObject = function (it) { | ||
return indexedObject(requireObjectCoercible(it)); | ||
}; | ||
var isObject = function (it) { | ||
return typeof it === 'object' ? it !== null : typeof it === 'function'; | ||
}; | ||
// `ToPrimitive` abstract operation | ||
// https://tc39.github.io/ecma262/#sec-toprimitive | ||
// instead of the ES6 spec version, we didn't implement @@toPrimitive case | ||
// and the second argument - flag - preferred type is a string | ||
var toPrimitive = function (input, PREFERRED_STRING) { | ||
if (!isObject(input)) return input; | ||
var fn, val; | ||
if (PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject(val = fn.call(input))) return val; | ||
if (typeof (fn = input.valueOf) == 'function' && !isObject(val = fn.call(input))) return val; | ||
if (!PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject(val = fn.call(input))) return val; | ||
throw TypeError("Can't convert object to primitive value"); | ||
}; | ||
var hasOwnProperty = {}.hasOwnProperty; | ||
var has = function (it, key) { | ||
return hasOwnProperty.call(it, key); | ||
}; | ||
var document = global_1.document; | ||
// typeof document.createElement is 'object' in old IE | ||
var EXISTS = isObject(document) && isObject(document.createElement); | ||
var documentCreateElement = function (it) { | ||
return EXISTS ? document.createElement(it) : {}; | ||
}; | ||
// Thank's IE8 for his funny defineProperty | ||
var ie8DomDefine = !descriptors && !fails(function () { | ||
return Object.defineProperty(documentCreateElement('div'), 'a', { | ||
get: function () { return 7; } | ||
}).a != 7; | ||
}); | ||
var nativeGetOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; | ||
// `Object.getOwnPropertyDescriptor` method | ||
// https://tc39.github.io/ecma262/#sec-object.getownpropertydescriptor | ||
var f$1 = descriptors ? nativeGetOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) { | ||
O = toIndexedObject(O); | ||
P = toPrimitive(P, true); | ||
if (ie8DomDefine) try { | ||
return nativeGetOwnPropertyDescriptor(O, P); | ||
} catch (error) { /* empty */ } | ||
if (has(O, P)) return createPropertyDescriptor(!objectPropertyIsEnumerable.f.call(O, P), O[P]); | ||
}; | ||
var objectGetOwnPropertyDescriptor = { | ||
f: f$1 | ||
}; | ||
var anObject = function (it) { | ||
if (!isObject(it)) { | ||
throw TypeError(String(it) + ' is not an object'); | ||
} return it; | ||
}; | ||
var nativeDefineProperty = Object.defineProperty; | ||
// `Object.defineProperty` method | ||
// https://tc39.github.io/ecma262/#sec-object.defineproperty | ||
var f$2 = descriptors ? nativeDefineProperty : function defineProperty(O, P, Attributes) { | ||
anObject(O); | ||
P = toPrimitive(P, true); | ||
anObject(Attributes); | ||
if (ie8DomDefine) try { | ||
return nativeDefineProperty(O, P, Attributes); | ||
} catch (error) { /* empty */ } | ||
if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported'); | ||
if ('value' in Attributes) O[P] = Attributes.value; | ||
return O; | ||
}; | ||
var objectDefineProperty = { | ||
f: f$2 | ||
}; | ||
var createNonEnumerableProperty = descriptors ? function (object, key, value) { | ||
return objectDefineProperty.f(object, key, createPropertyDescriptor(1, value)); | ||
} : function (object, key, value) { | ||
object[key] = value; | ||
return object; | ||
}; | ||
var setGlobal = function (key, value) { | ||
try { | ||
createNonEnumerableProperty(global_1, key, value); | ||
} catch (error) { | ||
global_1[key] = value; | ||
} return value; | ||
}; | ||
var SHARED = '__core-js_shared__'; | ||
var store = global_1[SHARED] || setGlobal(SHARED, {}); | ||
var sharedStore = store; | ||
var functionToString = Function.toString; | ||
// this helper broken in `3.4.1-3.4.4`, so we can't use `shared` helper | ||
if (typeof sharedStore.inspectSource != 'function') { | ||
sharedStore.inspectSource = function (it) { | ||
return functionToString.call(it); | ||
}; | ||
} | ||
var inspectSource = sharedStore.inspectSource; | ||
var WeakMap = global_1.WeakMap; | ||
var nativeWeakMap = typeof WeakMap === 'function' && /native code/.test(inspectSource(WeakMap)); | ||
var shared = createCommonjsModule(function (module) { | ||
(module.exports = function (key, value) { | ||
return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {}); | ||
})('versions', []).push({ | ||
version: '3.6.5', | ||
mode: 'global', | ||
copyright: '© 2020 Denis Pushkarev (zloirock.ru)' | ||
}); | ||
}); | ||
var id = 0; | ||
var postfix = Math.random(); | ||
var uid = function (key) { | ||
return 'Symbol(' + String(key === undefined ? '' : key) + ')_' + (++id + postfix).toString(36); | ||
}; | ||
var keys = shared('keys'); | ||
var sharedKey = function (key) { | ||
return keys[key] || (keys[key] = uid(key)); | ||
}; | ||
var hiddenKeys = {}; | ||
var WeakMap$1 = global_1.WeakMap; | ||
var set, get, has$1; | ||
var enforce = function (it) { | ||
return has$1(it) ? get(it) : set(it, {}); | ||
}; | ||
var getterFor = function (TYPE) { | ||
return function (it) { | ||
var state; | ||
if (!isObject(it) || (state = get(it)).type !== TYPE) { | ||
throw TypeError('Incompatible receiver, ' + TYPE + ' required'); | ||
} return state; | ||
}; | ||
}; | ||
if (nativeWeakMap) { | ||
var store$1 = new WeakMap$1(); | ||
var wmget = store$1.get; | ||
var wmhas = store$1.has; | ||
var wmset = store$1.set; | ||
set = function (it, metadata) { | ||
wmset.call(store$1, it, metadata); | ||
return metadata; | ||
}; | ||
get = function (it) { | ||
return wmget.call(store$1, it) || {}; | ||
}; | ||
has$1 = function (it) { | ||
return wmhas.call(store$1, it); | ||
}; | ||
} else { | ||
var STATE = sharedKey('state'); | ||
hiddenKeys[STATE] = true; | ||
set = function (it, metadata) { | ||
createNonEnumerableProperty(it, STATE, metadata); | ||
return metadata; | ||
}; | ||
get = function (it) { | ||
return has(it, STATE) ? it[STATE] : {}; | ||
}; | ||
has$1 = function (it) { | ||
return has(it, STATE); | ||
}; | ||
} | ||
var internalState = { | ||
set: set, | ||
get: get, | ||
has: has$1, | ||
enforce: enforce, | ||
getterFor: getterFor | ||
}; | ||
var redefine = createCommonjsModule(function (module) { | ||
var getInternalState = internalState.get; | ||
var enforceInternalState = internalState.enforce; | ||
var TEMPLATE = String(String).split('String'); | ||
(module.exports = function (O, key, value, options) { | ||
var unsafe = options ? !!options.unsafe : false; | ||
var simple = options ? !!options.enumerable : false; | ||
var noTargetGet = options ? !!options.noTargetGet : false; | ||
if (typeof value == 'function') { | ||
if (typeof key == 'string' && !has(value, 'name')) createNonEnumerableProperty(value, 'name', key); | ||
enforceInternalState(value).source = TEMPLATE.join(typeof key == 'string' ? key : ''); | ||
} | ||
if (O === global_1) { | ||
if (simple) O[key] = value; | ||
else setGlobal(key, value); | ||
return; | ||
} else if (!unsafe) { | ||
delete O[key]; | ||
} else if (!noTargetGet && O[key]) { | ||
simple = true; | ||
} | ||
if (simple) O[key] = value; | ||
else createNonEnumerableProperty(O, key, value); | ||
// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative | ||
})(Function.prototype, 'toString', function toString() { | ||
return typeof this == 'function' && getInternalState(this).source || inspectSource(this); | ||
}); | ||
}); | ||
var path = global_1; | ||
var aFunction = function (variable) { | ||
return typeof variable == 'function' ? variable : undefined; | ||
}; | ||
var getBuiltIn = function (namespace, method) { | ||
return arguments.length < 2 ? aFunction(path[namespace]) || aFunction(global_1[namespace]) | ||
: path[namespace] && path[namespace][method] || global_1[namespace] && global_1[namespace][method]; | ||
}; | ||
var ceil = Math.ceil; | ||
var floor = Math.floor; | ||
// `ToInteger` abstract operation | ||
// https://tc39.github.io/ecma262/#sec-tointeger | ||
var toInteger = function (argument) { | ||
return isNaN(argument = +argument) ? 0 : (argument > 0 ? floor : ceil)(argument); | ||
}; | ||
var min = Math.min; | ||
// `ToLength` abstract operation | ||
// https://tc39.github.io/ecma262/#sec-tolength | ||
var toLength = function (argument) { | ||
return argument > 0 ? min(toInteger(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991 | ||
}; | ||
var max = Math.max; | ||
var min$1 = Math.min; | ||
// Helper for a popular repeating case of the spec: | ||
// Let integer be ? ToInteger(index). | ||
// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length). | ||
var toAbsoluteIndex = function (index, length) { | ||
var integer = toInteger(index); | ||
return integer < 0 ? max(integer + length, 0) : min$1(integer, length); | ||
}; | ||
// `Array.prototype.{ indexOf, includes }` methods implementation | ||
var createMethod = function (IS_INCLUDES) { | ||
return function ($this, el, fromIndex) { | ||
var O = toIndexedObject($this); | ||
var length = toLength(O.length); | ||
var index = toAbsoluteIndex(fromIndex, length); | ||
var value; | ||
// Array#includes uses SameValueZero equality algorithm | ||
// eslint-disable-next-line no-self-compare | ||
if (IS_INCLUDES && el != el) while (length > index) { | ||
value = O[index++]; | ||
// eslint-disable-next-line no-self-compare | ||
if (value != value) return true; | ||
// Array#indexOf ignores holes, Array#includes - not | ||
} else for (;length > index; index++) { | ||
if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0; | ||
} return !IS_INCLUDES && -1; | ||
}; | ||
}; | ||
var arrayIncludes = { | ||
// `Array.prototype.includes` method | ||
// https://tc39.github.io/ecma262/#sec-array.prototype.includes | ||
includes: createMethod(true), | ||
// `Array.prototype.indexOf` method | ||
// https://tc39.github.io/ecma262/#sec-array.prototype.indexof | ||
indexOf: createMethod(false) | ||
}; | ||
var indexOf = arrayIncludes.indexOf; | ||
var objectKeysInternal = function (object, names) { | ||
var O = toIndexedObject(object); | ||
var i = 0; | ||
var result = []; | ||
var key; | ||
for (key in O) !has(hiddenKeys, key) && has(O, key) && result.push(key); | ||
// Don't enum bug & hidden keys | ||
while (names.length > i) if (has(O, key = names[i++])) { | ||
~indexOf(result, key) || result.push(key); | ||
} | ||
return result; | ||
}; | ||
// IE8- don't enum bug keys | ||
var enumBugKeys = [ | ||
'constructor', | ||
'hasOwnProperty', | ||
'isPrototypeOf', | ||
'propertyIsEnumerable', | ||
'toLocaleString', | ||
'toString', | ||
'valueOf' | ||
]; | ||
var hiddenKeys$1 = enumBugKeys.concat('length', 'prototype'); | ||
// `Object.getOwnPropertyNames` method | ||
// https://tc39.github.io/ecma262/#sec-object.getownpropertynames | ||
var f$3 = Object.getOwnPropertyNames || function getOwnPropertyNames(O) { | ||
return objectKeysInternal(O, hiddenKeys$1); | ||
}; | ||
var objectGetOwnPropertyNames = { | ||
f: f$3 | ||
}; | ||
var f$4 = Object.getOwnPropertySymbols; | ||
var objectGetOwnPropertySymbols = { | ||
f: f$4 | ||
}; | ||
// all object keys, includes non-enumerable and symbols | ||
var ownKeys = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) { | ||
var keys = objectGetOwnPropertyNames.f(anObject(it)); | ||
var getOwnPropertySymbols = objectGetOwnPropertySymbols.f; | ||
return getOwnPropertySymbols ? keys.concat(getOwnPropertySymbols(it)) : keys; | ||
}; | ||
var copyConstructorProperties = function (target, source) { | ||
var keys = ownKeys(source); | ||
var defineProperty = objectDefineProperty.f; | ||
var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f; | ||
for (var i = 0; i < keys.length; i++) { | ||
var key = keys[i]; | ||
if (!has(target, key)) defineProperty(target, key, getOwnPropertyDescriptor(source, key)); | ||
} | ||
}; | ||
var replacement = /#|\.prototype\./; | ||
var isForced = function (feature, detection) { | ||
var value = data[normalize(feature)]; | ||
return value == POLYFILL ? true | ||
: value == NATIVE ? false | ||
: typeof detection == 'function' ? fails(detection) | ||
: !!detection; | ||
}; | ||
var normalize = isForced.normalize = function (string) { | ||
return String(string).replace(replacement, '.').toLowerCase(); | ||
}; | ||
var data = isForced.data = {}; | ||
var NATIVE = isForced.NATIVE = 'N'; | ||
var POLYFILL = isForced.POLYFILL = 'P'; | ||
var isForced_1 = isForced; | ||
var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f; | ||
/* | ||
options.target - name of the target object | ||
options.global - target is the global object | ||
options.stat - export as static methods of target | ||
options.proto - export as prototype methods of target | ||
options.real - real prototype method for the `pure` version | ||
options.forced - export even if the native feature is available | ||
options.bind - bind methods to the target, required for the `pure` version | ||
options.wrap - wrap constructors to preventing global pollution, required for the `pure` version | ||
options.unsafe - use the simple assignment of property instead of delete + defineProperty | ||
options.sham - add a flag to not completely full polyfills | ||
options.enumerable - export as enumerable property | ||
options.noTargetGet - prevent calling a getter on target | ||
*/ | ||
var _export = function (options, source) { | ||
var TARGET = options.target; | ||
var GLOBAL = options.global; | ||
var STATIC = options.stat; | ||
var FORCED, target, key, targetProperty, sourceProperty, descriptor; | ||
if (GLOBAL) { | ||
target = global_1; | ||
} else if (STATIC) { | ||
target = global_1[TARGET] || setGlobal(TARGET, {}); | ||
} else { | ||
target = (global_1[TARGET] || {}).prototype; | ||
} | ||
if (target) for (key in source) { | ||
sourceProperty = source[key]; | ||
if (options.noTargetGet) { | ||
descriptor = getOwnPropertyDescriptor$1(target, key); | ||
targetProperty = descriptor && descriptor.value; | ||
} else targetProperty = target[key]; | ||
FORCED = isForced_1(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced); | ||
// contained in target | ||
if (!FORCED && targetProperty !== undefined) { | ||
if (typeof sourceProperty === typeof targetProperty) continue; | ||
copyConstructorProperties(sourceProperty, targetProperty); | ||
} | ||
// Vue.extend constructor export interop. | ||
const options = typeof script === 'function' ? script.options : script; | ||
// render functions | ||
if (template && template.render) { | ||
options.render = template.render; | ||
options.staticRenderFns = template.staticRenderFns; | ||
options._compiled = true; | ||
// functional template | ||
if (isFunctionalTemplate) { | ||
options.functional = true; | ||
} | ||
// add a flag to not completely full polyfills | ||
if (options.sham || (targetProperty && targetProperty.sham)) { | ||
createNonEnumerableProperty(sourceProperty, 'sham', true); | ||
} | ||
// scopedId | ||
if (scopeId) { | ||
options._scopeId = scopeId; | ||
// extend global | ||
redefine(target, key, sourceProperty, options); | ||
} | ||
}; | ||
// `IsArray` abstract operation | ||
// https://tc39.github.io/ecma262/#sec-isarray | ||
var isArray = Array.isArray || function isArray(arg) { | ||
return classofRaw(arg) == 'Array'; | ||
}; | ||
// `ToObject` abstract operation | ||
// https://tc39.github.io/ecma262/#sec-toobject | ||
var toObject = function (argument) { | ||
return Object(requireObjectCoercible(argument)); | ||
}; | ||
var createProperty = function (object, key, value) { | ||
var propertyKey = toPrimitive(key); | ||
if (propertyKey in object) objectDefineProperty.f(object, propertyKey, createPropertyDescriptor(0, value)); | ||
else object[propertyKey] = value; | ||
}; | ||
var nativeSymbol = !!Object.getOwnPropertySymbols && !fails(function () { | ||
// Chrome 38 Symbol has incorrect toString conversion | ||
// eslint-disable-next-line no-undef | ||
return !String(Symbol()); | ||
}); | ||
var useSymbolAsUid = nativeSymbol | ||
// eslint-disable-next-line no-undef | ||
&& !Symbol.sham | ||
// eslint-disable-next-line no-undef | ||
&& typeof Symbol.iterator == 'symbol'; | ||
var WellKnownSymbolsStore = shared('wks'); | ||
var Symbol$1 = global_1.Symbol; | ||
var createWellKnownSymbol = useSymbolAsUid ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid; | ||
var wellKnownSymbol = function (name) { | ||
if (!has(WellKnownSymbolsStore, name)) { | ||
if (nativeSymbol && has(Symbol$1, name)) WellKnownSymbolsStore[name] = Symbol$1[name]; | ||
else WellKnownSymbolsStore[name] = createWellKnownSymbol('Symbol.' + name); | ||
} return WellKnownSymbolsStore[name]; | ||
}; | ||
var SPECIES = wellKnownSymbol('species'); | ||
// `ArraySpeciesCreate` abstract operation | ||
// https://tc39.github.io/ecma262/#sec-arrayspeciescreate | ||
var arraySpeciesCreate = function (originalArray, length) { | ||
var C; | ||
if (isArray(originalArray)) { | ||
C = originalArray.constructor; | ||
// cross-realm fallback | ||
if (typeof C == 'function' && (C === Array || isArray(C.prototype))) C = undefined; | ||
else if (isObject(C)) { | ||
C = C[SPECIES]; | ||
if (C === null) C = undefined; | ||
} | ||
let hook; | ||
if (moduleIdentifier) { | ||
// server build | ||
hook = function (context) { | ||
// 2.3 injection | ||
context = | ||
context || // cached call | ||
(this.$vnode && this.$vnode.ssrContext) || // stateful | ||
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext); // functional | ||
// 2.2 with runInNewContext: true | ||
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') { | ||
context = __VUE_SSR_CONTEXT__; | ||
} | ||
// inject component styles | ||
if (style) { | ||
style.call(this, createInjectorSSR(context)); | ||
} | ||
// register component module identifier for async chunk inference | ||
if (context && context._registeredComponents) { | ||
context._registeredComponents.add(moduleIdentifier); | ||
} | ||
}; | ||
// used by ssr in case component is cached and beforeCreate | ||
// never gets called | ||
options._ssrRegister = hook; | ||
} return new (C === undefined ? Array : C)(length === 0 ? 0 : length); | ||
}; | ||
var engineUserAgent = getBuiltIn('navigator', 'userAgent') || ''; | ||
var process = global_1.process; | ||
var versions = process && process.versions; | ||
var v8 = versions && versions.v8; | ||
var match, version; | ||
if (v8) { | ||
match = v8.split('.'); | ||
version = match[0] + match[1]; | ||
} else if (engineUserAgent) { | ||
match = engineUserAgent.match(/Edge\/(\d+)/); | ||
if (!match || match[1] >= 74) { | ||
match = engineUserAgent.match(/Chrome\/(\d+)/); | ||
if (match) version = match[1]; | ||
} | ||
} | ||
var engineV8Version = version && +version; | ||
var SPECIES$1 = wellKnownSymbol('species'); | ||
var arrayMethodHasSpeciesSupport = function (METHOD_NAME) { | ||
// We can't use this feature detection in V8 since it causes | ||
// deoptimization and serious performance degradation | ||
// https://github.com/zloirock/core-js/issues/677 | ||
return engineV8Version >= 51 || !fails(function () { | ||
var array = []; | ||
var constructor = array.constructor = {}; | ||
constructor[SPECIES$1] = function () { | ||
return { foo: 1 }; | ||
}; | ||
return array[METHOD_NAME](Boolean).foo !== 1; | ||
}); | ||
}; | ||
var IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable'); | ||
var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; | ||
var MAXIMUM_ALLOWED_INDEX_EXCEEDED = 'Maximum allowed index exceeded'; | ||
// We can't use this feature detection in V8 since it causes | ||
// deoptimization and serious performance degradation | ||
// https://github.com/zloirock/core-js/issues/679 | ||
var IS_CONCAT_SPREADABLE_SUPPORT = engineV8Version >= 51 || !fails(function () { | ||
var array = []; | ||
array[IS_CONCAT_SPREADABLE] = false; | ||
return array.concat()[0] !== array; | ||
}); | ||
var SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('concat'); | ||
var isConcatSpreadable = function (O) { | ||
if (!isObject(O)) return false; | ||
var spreadable = O[IS_CONCAT_SPREADABLE]; | ||
return spreadable !== undefined ? !!spreadable : isArray(O); | ||
}; | ||
var FORCED = !IS_CONCAT_SPREADABLE_SUPPORT || !SPECIES_SUPPORT; | ||
// `Array.prototype.concat` method | ||
// https://tc39.github.io/ecma262/#sec-array.prototype.concat | ||
// with adding support of @@isConcatSpreadable and @@species | ||
_export({ target: 'Array', proto: true, forced: FORCED }, { | ||
concat: function concat(arg) { // eslint-disable-line no-unused-vars | ||
var O = toObject(this); | ||
var A = arraySpeciesCreate(O, 0); | ||
var n = 0; | ||
var i, k, length, len, E; | ||
for (i = -1, length = arguments.length; i < length; i++) { | ||
E = i === -1 ? O : arguments[i]; | ||
if (isConcatSpreadable(E)) { | ||
len = toLength(E.length); | ||
if (n + len > MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED); | ||
for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]); | ||
} else { | ||
if (n >= MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED); | ||
createProperty(A, n++, E); | ||
} | ||
} | ||
else if (style) { | ||
hook = shadowMode | ||
? function (context) { | ||
style.call(this, createInjectorShadow(context, this.$root.$options.shadowRoot)); | ||
} | ||
: function (context) { | ||
style.call(this, createInjector(context)); | ||
}; | ||
A.length = n; | ||
return A; | ||
} | ||
}); | ||
function normalizeComponent(template, style, script, scopeId, isFunctionalTemplate, moduleIdentifier | ||
/* server only */ | ||
, shadowMode, createInjector, createInjectorSSR, createInjectorShadow) { | ||
if (typeof shadowMode !== 'boolean') { | ||
createInjectorSSR = createInjector; | ||
createInjector = shadowMode; | ||
shadowMode = false; | ||
} // Vue.extend constructor export interop. | ||
var options = typeof script === 'function' ? script.options : script; // render functions | ||
if (template && template.render) { | ||
options.render = template.render; | ||
options.staticRenderFns = template.staticRenderFns; | ||
options._compiled = true; // functional template | ||
if (isFunctionalTemplate) { | ||
options.functional = true; | ||
} | ||
if (hook) { | ||
if (options.functional) { | ||
// register for functional component in vue file | ||
const originalRender = options.render; | ||
options.render = function renderWithStyleInjection(h, context) { | ||
hook.call(context); | ||
return originalRender(h, context); | ||
}; | ||
} | ||
else { | ||
// inject component registration as beforeCreate hook | ||
const existing = options.beforeCreate; | ||
options.beforeCreate = existing ? [].concat(existing, hook) : [hook]; | ||
} | ||
} // scopedId | ||
if (scopeId) { | ||
options._scopeId = scopeId; | ||
} | ||
var hook; | ||
if (moduleIdentifier) { | ||
// server build | ||
hook = function hook(context) { | ||
// 2.3 injection | ||
context = context || // cached call | ||
this.$vnode && this.$vnode.ssrContext || // stateful | ||
this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext; // functional | ||
// 2.2 with runInNewContext: true | ||
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') { | ||
context = __VUE_SSR_CONTEXT__; | ||
} // inject component styles | ||
if (style) { | ||
style.call(this, createInjectorSSR(context)); | ||
} // register component module identifier for async chunk inference | ||
if (context && context._registeredComponents) { | ||
context._registeredComponents.add(moduleIdentifier); | ||
} | ||
}; // used by ssr in case component is cached and beforeCreate | ||
// never gets called | ||
options._ssrRegister = hook; | ||
} else if (style) { | ||
hook = shadowMode ? function (context) { | ||
style.call(this, createInjectorShadow(context, this.$root.$options.shadowRoot)); | ||
} : function (context) { | ||
style.call(this, createInjector(context)); | ||
}; | ||
} | ||
if (hook) { | ||
if (options.functional) { | ||
// register for functional component in vue file | ||
var originalRender = options.render; | ||
options.render = function renderWithStyleInjection(h, context) { | ||
hook.call(context); | ||
return originalRender(h, context); | ||
}; | ||
} else { | ||
// inject component registration as beforeCreate hook | ||
var existing = options.beforeCreate; | ||
options.beforeCreate = existing ? [].concat(existing, hook) : [hook]; | ||
} | ||
return script; | ||
} | ||
return script; | ||
} | ||
@@ -261,11 +930,10 @@ | ||
// register alias icon. | ||
function init() { | ||
bpLibs.icons.registerAliasIcon('bp-checkbox_checked', 'ok'); | ||
} | ||
init(); | ||
var index = { | ||
init, | ||
bpCheckbox: __vue_component__, | ||
init: init, | ||
bpCheckbox: __vue_component__ | ||
}; | ||
@@ -272,0 +940,0 @@ |
/*! | ||
* bpui checkbox v0.1.7 | ||
* bpui checkbox v0.1.8 | ||
* Copyright (c) 2020 Copyright bpoint.lee@live.com All Rights Reserved. | ||
@@ -4,0 +4,0 @@ * Released under the MIT License. |
/*! | ||
* bpui checkbox v0.1.7 | ||
* bpui checkbox v0.1.8 | ||
* Copyright (c) 2020 Copyright bpoint.lee@live.com All Rights Reserved. | ||
@@ -34,3 +34,2 @@ * Released under the MIT License. | ||
// | ||
var script = { | ||
@@ -45,3 +44,3 @@ components: {}, | ||
type: Boolean | ||
}, | ||
} | ||
}, | ||
@@ -52,3 +51,3 @@ model: { | ||
}, | ||
data() { | ||
data: function data() { | ||
return { | ||
@@ -60,14 +59,14 @@ isChecked: false, | ||
computed: { | ||
isDisabled() { | ||
isDisabled: function isDisabled() { | ||
return this.disabled || this.disabled !== false; | ||
} | ||
}, | ||
created() { | ||
created: function created() { | ||
this.isChecked = this.checked; | ||
}, | ||
beforeDestroy() {}, | ||
beforeMount() {}, | ||
mounted() {}, | ||
beforeDestroy: function beforeDestroy() {}, | ||
beforeMount: function beforeMount() {}, | ||
mounted: function mounted() {}, | ||
methods: { | ||
handelChange(e) { | ||
handelChange: function handelChange(e) { | ||
this.$emit("change", e.target.checked); | ||
@@ -79,75 +78,745 @@ this.isChecked = e.target.checked; | ||
function normalizeComponent(template, style, script, scopeId, isFunctionalTemplate, moduleIdentifier /* server only */, shadowMode, createInjector, createInjectorSSR, createInjectorShadow) { | ||
if (typeof shadowMode !== 'boolean') { | ||
createInjectorSSR = createInjector; | ||
createInjector = shadowMode; | ||
shadowMode = false; | ||
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {}; | ||
function createCommonjsModule(fn, module) { | ||
return module = { exports: {} }, fn(module, module.exports), module.exports; | ||
} | ||
var check = function (it) { | ||
return it && it.Math == Math && it; | ||
}; | ||
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028 | ||
var global_1 = | ||
// eslint-disable-next-line no-undef | ||
check(typeof globalThis == 'object' && globalThis) || | ||
check(typeof window == 'object' && window) || | ||
check(typeof self == 'object' && self) || | ||
check(typeof commonjsGlobal == 'object' && commonjsGlobal) || | ||
// eslint-disable-next-line no-new-func | ||
Function('return this')(); | ||
var fails = function (exec) { | ||
try { | ||
return !!exec(); | ||
} catch (error) { | ||
return true; | ||
} | ||
}; | ||
// Thank's IE8 for his funny defineProperty | ||
var descriptors = !fails(function () { | ||
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7; | ||
}); | ||
var nativePropertyIsEnumerable = {}.propertyIsEnumerable; | ||
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; | ||
// Nashorn ~ JDK8 bug | ||
var NASHORN_BUG = getOwnPropertyDescriptor && !nativePropertyIsEnumerable.call({ 1: 2 }, 1); | ||
// `Object.prototype.propertyIsEnumerable` method implementation | ||
// https://tc39.github.io/ecma262/#sec-object.prototype.propertyisenumerable | ||
var f = NASHORN_BUG ? function propertyIsEnumerable(V) { | ||
var descriptor = getOwnPropertyDescriptor(this, V); | ||
return !!descriptor && descriptor.enumerable; | ||
} : nativePropertyIsEnumerable; | ||
var objectPropertyIsEnumerable = { | ||
f: f | ||
}; | ||
var createPropertyDescriptor = function (bitmap, value) { | ||
return { | ||
enumerable: !(bitmap & 1), | ||
configurable: !(bitmap & 2), | ||
writable: !(bitmap & 4), | ||
value: value | ||
}; | ||
}; | ||
var toString = {}.toString; | ||
var classofRaw = function (it) { | ||
return toString.call(it).slice(8, -1); | ||
}; | ||
var split = ''.split; | ||
// fallback for non-array-like ES3 and non-enumerable old V8 strings | ||
var indexedObject = fails(function () { | ||
// throws an error in rhino, see https://github.com/mozilla/rhino/issues/346 | ||
// eslint-disable-next-line no-prototype-builtins | ||
return !Object('z').propertyIsEnumerable(0); | ||
}) ? function (it) { | ||
return classofRaw(it) == 'String' ? split.call(it, '') : Object(it); | ||
} : Object; | ||
// `RequireObjectCoercible` abstract operation | ||
// https://tc39.github.io/ecma262/#sec-requireobjectcoercible | ||
var requireObjectCoercible = function (it) { | ||
if (it == undefined) throw TypeError("Can't call method on " + it); | ||
return it; | ||
}; | ||
// toObject with fallback for non-array-like ES3 strings | ||
var toIndexedObject = function (it) { | ||
return indexedObject(requireObjectCoercible(it)); | ||
}; | ||
var isObject = function (it) { | ||
return typeof it === 'object' ? it !== null : typeof it === 'function'; | ||
}; | ||
// `ToPrimitive` abstract operation | ||
// https://tc39.github.io/ecma262/#sec-toprimitive | ||
// instead of the ES6 spec version, we didn't implement @@toPrimitive case | ||
// and the second argument - flag - preferred type is a string | ||
var toPrimitive = function (input, PREFERRED_STRING) { | ||
if (!isObject(input)) return input; | ||
var fn, val; | ||
if (PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject(val = fn.call(input))) return val; | ||
if (typeof (fn = input.valueOf) == 'function' && !isObject(val = fn.call(input))) return val; | ||
if (!PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject(val = fn.call(input))) return val; | ||
throw TypeError("Can't convert object to primitive value"); | ||
}; | ||
var hasOwnProperty = {}.hasOwnProperty; | ||
var has = function (it, key) { | ||
return hasOwnProperty.call(it, key); | ||
}; | ||
var document = global_1.document; | ||
// typeof document.createElement is 'object' in old IE | ||
var EXISTS = isObject(document) && isObject(document.createElement); | ||
var documentCreateElement = function (it) { | ||
return EXISTS ? document.createElement(it) : {}; | ||
}; | ||
// Thank's IE8 for his funny defineProperty | ||
var ie8DomDefine = !descriptors && !fails(function () { | ||
return Object.defineProperty(documentCreateElement('div'), 'a', { | ||
get: function () { return 7; } | ||
}).a != 7; | ||
}); | ||
var nativeGetOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; | ||
// `Object.getOwnPropertyDescriptor` method | ||
// https://tc39.github.io/ecma262/#sec-object.getownpropertydescriptor | ||
var f$1 = descriptors ? nativeGetOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) { | ||
O = toIndexedObject(O); | ||
P = toPrimitive(P, true); | ||
if (ie8DomDefine) try { | ||
return nativeGetOwnPropertyDescriptor(O, P); | ||
} catch (error) { /* empty */ } | ||
if (has(O, P)) return createPropertyDescriptor(!objectPropertyIsEnumerable.f.call(O, P), O[P]); | ||
}; | ||
var objectGetOwnPropertyDescriptor = { | ||
f: f$1 | ||
}; | ||
var anObject = function (it) { | ||
if (!isObject(it)) { | ||
throw TypeError(String(it) + ' is not an object'); | ||
} return it; | ||
}; | ||
var nativeDefineProperty = Object.defineProperty; | ||
// `Object.defineProperty` method | ||
// https://tc39.github.io/ecma262/#sec-object.defineproperty | ||
var f$2 = descriptors ? nativeDefineProperty : function defineProperty(O, P, Attributes) { | ||
anObject(O); | ||
P = toPrimitive(P, true); | ||
anObject(Attributes); | ||
if (ie8DomDefine) try { | ||
return nativeDefineProperty(O, P, Attributes); | ||
} catch (error) { /* empty */ } | ||
if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported'); | ||
if ('value' in Attributes) O[P] = Attributes.value; | ||
return O; | ||
}; | ||
var objectDefineProperty = { | ||
f: f$2 | ||
}; | ||
var createNonEnumerableProperty = descriptors ? function (object, key, value) { | ||
return objectDefineProperty.f(object, key, createPropertyDescriptor(1, value)); | ||
} : function (object, key, value) { | ||
object[key] = value; | ||
return object; | ||
}; | ||
var setGlobal = function (key, value) { | ||
try { | ||
createNonEnumerableProperty(global_1, key, value); | ||
} catch (error) { | ||
global_1[key] = value; | ||
} return value; | ||
}; | ||
var SHARED = '__core-js_shared__'; | ||
var store = global_1[SHARED] || setGlobal(SHARED, {}); | ||
var sharedStore = store; | ||
var functionToString = Function.toString; | ||
// this helper broken in `3.4.1-3.4.4`, so we can't use `shared` helper | ||
if (typeof sharedStore.inspectSource != 'function') { | ||
sharedStore.inspectSource = function (it) { | ||
return functionToString.call(it); | ||
}; | ||
} | ||
var inspectSource = sharedStore.inspectSource; | ||
var WeakMap = global_1.WeakMap; | ||
var nativeWeakMap = typeof WeakMap === 'function' && /native code/.test(inspectSource(WeakMap)); | ||
var shared = createCommonjsModule(function (module) { | ||
(module.exports = function (key, value) { | ||
return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {}); | ||
})('versions', []).push({ | ||
version: '3.6.5', | ||
mode: 'global', | ||
copyright: '© 2020 Denis Pushkarev (zloirock.ru)' | ||
}); | ||
}); | ||
var id = 0; | ||
var postfix = Math.random(); | ||
var uid = function (key) { | ||
return 'Symbol(' + String(key === undefined ? '' : key) + ')_' + (++id + postfix).toString(36); | ||
}; | ||
var keys = shared('keys'); | ||
var sharedKey = function (key) { | ||
return keys[key] || (keys[key] = uid(key)); | ||
}; | ||
var hiddenKeys = {}; | ||
var WeakMap$1 = global_1.WeakMap; | ||
var set, get, has$1; | ||
var enforce = function (it) { | ||
return has$1(it) ? get(it) : set(it, {}); | ||
}; | ||
var getterFor = function (TYPE) { | ||
return function (it) { | ||
var state; | ||
if (!isObject(it) || (state = get(it)).type !== TYPE) { | ||
throw TypeError('Incompatible receiver, ' + TYPE + ' required'); | ||
} return state; | ||
}; | ||
}; | ||
if (nativeWeakMap) { | ||
var store$1 = new WeakMap$1(); | ||
var wmget = store$1.get; | ||
var wmhas = store$1.has; | ||
var wmset = store$1.set; | ||
set = function (it, metadata) { | ||
wmset.call(store$1, it, metadata); | ||
return metadata; | ||
}; | ||
get = function (it) { | ||
return wmget.call(store$1, it) || {}; | ||
}; | ||
has$1 = function (it) { | ||
return wmhas.call(store$1, it); | ||
}; | ||
} else { | ||
var STATE = sharedKey('state'); | ||
hiddenKeys[STATE] = true; | ||
set = function (it, metadata) { | ||
createNonEnumerableProperty(it, STATE, metadata); | ||
return metadata; | ||
}; | ||
get = function (it) { | ||
return has(it, STATE) ? it[STATE] : {}; | ||
}; | ||
has$1 = function (it) { | ||
return has(it, STATE); | ||
}; | ||
} | ||
var internalState = { | ||
set: set, | ||
get: get, | ||
has: has$1, | ||
enforce: enforce, | ||
getterFor: getterFor | ||
}; | ||
var redefine = createCommonjsModule(function (module) { | ||
var getInternalState = internalState.get; | ||
var enforceInternalState = internalState.enforce; | ||
var TEMPLATE = String(String).split('String'); | ||
(module.exports = function (O, key, value, options) { | ||
var unsafe = options ? !!options.unsafe : false; | ||
var simple = options ? !!options.enumerable : false; | ||
var noTargetGet = options ? !!options.noTargetGet : false; | ||
if (typeof value == 'function') { | ||
if (typeof key == 'string' && !has(value, 'name')) createNonEnumerableProperty(value, 'name', key); | ||
enforceInternalState(value).source = TEMPLATE.join(typeof key == 'string' ? key : ''); | ||
} | ||
if (O === global_1) { | ||
if (simple) O[key] = value; | ||
else setGlobal(key, value); | ||
return; | ||
} else if (!unsafe) { | ||
delete O[key]; | ||
} else if (!noTargetGet && O[key]) { | ||
simple = true; | ||
} | ||
if (simple) O[key] = value; | ||
else createNonEnumerableProperty(O, key, value); | ||
// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative | ||
})(Function.prototype, 'toString', function toString() { | ||
return typeof this == 'function' && getInternalState(this).source || inspectSource(this); | ||
}); | ||
}); | ||
var path = global_1; | ||
var aFunction = function (variable) { | ||
return typeof variable == 'function' ? variable : undefined; | ||
}; | ||
var getBuiltIn = function (namespace, method) { | ||
return arguments.length < 2 ? aFunction(path[namespace]) || aFunction(global_1[namespace]) | ||
: path[namespace] && path[namespace][method] || global_1[namespace] && global_1[namespace][method]; | ||
}; | ||
var ceil = Math.ceil; | ||
var floor = Math.floor; | ||
// `ToInteger` abstract operation | ||
// https://tc39.github.io/ecma262/#sec-tointeger | ||
var toInteger = function (argument) { | ||
return isNaN(argument = +argument) ? 0 : (argument > 0 ? floor : ceil)(argument); | ||
}; | ||
var min = Math.min; | ||
// `ToLength` abstract operation | ||
// https://tc39.github.io/ecma262/#sec-tolength | ||
var toLength = function (argument) { | ||
return argument > 0 ? min(toInteger(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991 | ||
}; | ||
var max = Math.max; | ||
var min$1 = Math.min; | ||
// Helper for a popular repeating case of the spec: | ||
// Let integer be ? ToInteger(index). | ||
// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length). | ||
var toAbsoluteIndex = function (index, length) { | ||
var integer = toInteger(index); | ||
return integer < 0 ? max(integer + length, 0) : min$1(integer, length); | ||
}; | ||
// `Array.prototype.{ indexOf, includes }` methods implementation | ||
var createMethod = function (IS_INCLUDES) { | ||
return function ($this, el, fromIndex) { | ||
var O = toIndexedObject($this); | ||
var length = toLength(O.length); | ||
var index = toAbsoluteIndex(fromIndex, length); | ||
var value; | ||
// Array#includes uses SameValueZero equality algorithm | ||
// eslint-disable-next-line no-self-compare | ||
if (IS_INCLUDES && el != el) while (length > index) { | ||
value = O[index++]; | ||
// eslint-disable-next-line no-self-compare | ||
if (value != value) return true; | ||
// Array#indexOf ignores holes, Array#includes - not | ||
} else for (;length > index; index++) { | ||
if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0; | ||
} return !IS_INCLUDES && -1; | ||
}; | ||
}; | ||
var arrayIncludes = { | ||
// `Array.prototype.includes` method | ||
// https://tc39.github.io/ecma262/#sec-array.prototype.includes | ||
includes: createMethod(true), | ||
// `Array.prototype.indexOf` method | ||
// https://tc39.github.io/ecma262/#sec-array.prototype.indexof | ||
indexOf: createMethod(false) | ||
}; | ||
var indexOf = arrayIncludes.indexOf; | ||
var objectKeysInternal = function (object, names) { | ||
var O = toIndexedObject(object); | ||
var i = 0; | ||
var result = []; | ||
var key; | ||
for (key in O) !has(hiddenKeys, key) && has(O, key) && result.push(key); | ||
// Don't enum bug & hidden keys | ||
while (names.length > i) if (has(O, key = names[i++])) { | ||
~indexOf(result, key) || result.push(key); | ||
} | ||
return result; | ||
}; | ||
// IE8- don't enum bug keys | ||
var enumBugKeys = [ | ||
'constructor', | ||
'hasOwnProperty', | ||
'isPrototypeOf', | ||
'propertyIsEnumerable', | ||
'toLocaleString', | ||
'toString', | ||
'valueOf' | ||
]; | ||
var hiddenKeys$1 = enumBugKeys.concat('length', 'prototype'); | ||
// `Object.getOwnPropertyNames` method | ||
// https://tc39.github.io/ecma262/#sec-object.getownpropertynames | ||
var f$3 = Object.getOwnPropertyNames || function getOwnPropertyNames(O) { | ||
return objectKeysInternal(O, hiddenKeys$1); | ||
}; | ||
var objectGetOwnPropertyNames = { | ||
f: f$3 | ||
}; | ||
var f$4 = Object.getOwnPropertySymbols; | ||
var objectGetOwnPropertySymbols = { | ||
f: f$4 | ||
}; | ||
// all object keys, includes non-enumerable and symbols | ||
var ownKeys = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) { | ||
var keys = objectGetOwnPropertyNames.f(anObject(it)); | ||
var getOwnPropertySymbols = objectGetOwnPropertySymbols.f; | ||
return getOwnPropertySymbols ? keys.concat(getOwnPropertySymbols(it)) : keys; | ||
}; | ||
var copyConstructorProperties = function (target, source) { | ||
var keys = ownKeys(source); | ||
var defineProperty = objectDefineProperty.f; | ||
var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f; | ||
for (var i = 0; i < keys.length; i++) { | ||
var key = keys[i]; | ||
if (!has(target, key)) defineProperty(target, key, getOwnPropertyDescriptor(source, key)); | ||
} | ||
}; | ||
var replacement = /#|\.prototype\./; | ||
var isForced = function (feature, detection) { | ||
var value = data[normalize(feature)]; | ||
return value == POLYFILL ? true | ||
: value == NATIVE ? false | ||
: typeof detection == 'function' ? fails(detection) | ||
: !!detection; | ||
}; | ||
var normalize = isForced.normalize = function (string) { | ||
return String(string).replace(replacement, '.').toLowerCase(); | ||
}; | ||
var data = isForced.data = {}; | ||
var NATIVE = isForced.NATIVE = 'N'; | ||
var POLYFILL = isForced.POLYFILL = 'P'; | ||
var isForced_1 = isForced; | ||
var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f; | ||
/* | ||
options.target - name of the target object | ||
options.global - target is the global object | ||
options.stat - export as static methods of target | ||
options.proto - export as prototype methods of target | ||
options.real - real prototype method for the `pure` version | ||
options.forced - export even if the native feature is available | ||
options.bind - bind methods to the target, required for the `pure` version | ||
options.wrap - wrap constructors to preventing global pollution, required for the `pure` version | ||
options.unsafe - use the simple assignment of property instead of delete + defineProperty | ||
options.sham - add a flag to not completely full polyfills | ||
options.enumerable - export as enumerable property | ||
options.noTargetGet - prevent calling a getter on target | ||
*/ | ||
var _export = function (options, source) { | ||
var TARGET = options.target; | ||
var GLOBAL = options.global; | ||
var STATIC = options.stat; | ||
var FORCED, target, key, targetProperty, sourceProperty, descriptor; | ||
if (GLOBAL) { | ||
target = global_1; | ||
} else if (STATIC) { | ||
target = global_1[TARGET] || setGlobal(TARGET, {}); | ||
} else { | ||
target = (global_1[TARGET] || {}).prototype; | ||
} | ||
if (target) for (key in source) { | ||
sourceProperty = source[key]; | ||
if (options.noTargetGet) { | ||
descriptor = getOwnPropertyDescriptor$1(target, key); | ||
targetProperty = descriptor && descriptor.value; | ||
} else targetProperty = target[key]; | ||
FORCED = isForced_1(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced); | ||
// contained in target | ||
if (!FORCED && targetProperty !== undefined) { | ||
if (typeof sourceProperty === typeof targetProperty) continue; | ||
copyConstructorProperties(sourceProperty, targetProperty); | ||
} | ||
// Vue.extend constructor export interop. | ||
const options = typeof script === 'function' ? script.options : script; | ||
// render functions | ||
if (template && template.render) { | ||
options.render = template.render; | ||
options.staticRenderFns = template.staticRenderFns; | ||
options._compiled = true; | ||
// functional template | ||
if (isFunctionalTemplate) { | ||
options.functional = true; | ||
} | ||
// add a flag to not completely full polyfills | ||
if (options.sham || (targetProperty && targetProperty.sham)) { | ||
createNonEnumerableProperty(sourceProperty, 'sham', true); | ||
} | ||
// scopedId | ||
if (scopeId) { | ||
options._scopeId = scopeId; | ||
// extend global | ||
redefine(target, key, sourceProperty, options); | ||
} | ||
}; | ||
// `IsArray` abstract operation | ||
// https://tc39.github.io/ecma262/#sec-isarray | ||
var isArray = Array.isArray || function isArray(arg) { | ||
return classofRaw(arg) == 'Array'; | ||
}; | ||
// `ToObject` abstract operation | ||
// https://tc39.github.io/ecma262/#sec-toobject | ||
var toObject = function (argument) { | ||
return Object(requireObjectCoercible(argument)); | ||
}; | ||
var createProperty = function (object, key, value) { | ||
var propertyKey = toPrimitive(key); | ||
if (propertyKey in object) objectDefineProperty.f(object, propertyKey, createPropertyDescriptor(0, value)); | ||
else object[propertyKey] = value; | ||
}; | ||
var nativeSymbol = !!Object.getOwnPropertySymbols && !fails(function () { | ||
// Chrome 38 Symbol has incorrect toString conversion | ||
// eslint-disable-next-line no-undef | ||
return !String(Symbol()); | ||
}); | ||
var useSymbolAsUid = nativeSymbol | ||
// eslint-disable-next-line no-undef | ||
&& !Symbol.sham | ||
// eslint-disable-next-line no-undef | ||
&& typeof Symbol.iterator == 'symbol'; | ||
var WellKnownSymbolsStore = shared('wks'); | ||
var Symbol$1 = global_1.Symbol; | ||
var createWellKnownSymbol = useSymbolAsUid ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid; | ||
var wellKnownSymbol = function (name) { | ||
if (!has(WellKnownSymbolsStore, name)) { | ||
if (nativeSymbol && has(Symbol$1, name)) WellKnownSymbolsStore[name] = Symbol$1[name]; | ||
else WellKnownSymbolsStore[name] = createWellKnownSymbol('Symbol.' + name); | ||
} return WellKnownSymbolsStore[name]; | ||
}; | ||
var SPECIES = wellKnownSymbol('species'); | ||
// `ArraySpeciesCreate` abstract operation | ||
// https://tc39.github.io/ecma262/#sec-arrayspeciescreate | ||
var arraySpeciesCreate = function (originalArray, length) { | ||
var C; | ||
if (isArray(originalArray)) { | ||
C = originalArray.constructor; | ||
// cross-realm fallback | ||
if (typeof C == 'function' && (C === Array || isArray(C.prototype))) C = undefined; | ||
else if (isObject(C)) { | ||
C = C[SPECIES]; | ||
if (C === null) C = undefined; | ||
} | ||
let hook; | ||
if (moduleIdentifier) { | ||
// server build | ||
hook = function (context) { | ||
// 2.3 injection | ||
context = | ||
context || // cached call | ||
(this.$vnode && this.$vnode.ssrContext) || // stateful | ||
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext); // functional | ||
// 2.2 with runInNewContext: true | ||
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') { | ||
context = __VUE_SSR_CONTEXT__; | ||
} | ||
// inject component styles | ||
if (style) { | ||
style.call(this, createInjectorSSR(context)); | ||
} | ||
// register component module identifier for async chunk inference | ||
if (context && context._registeredComponents) { | ||
context._registeredComponents.add(moduleIdentifier); | ||
} | ||
}; | ||
// used by ssr in case component is cached and beforeCreate | ||
// never gets called | ||
options._ssrRegister = hook; | ||
} return new (C === undefined ? Array : C)(length === 0 ? 0 : length); | ||
}; | ||
var engineUserAgent = getBuiltIn('navigator', 'userAgent') || ''; | ||
var process = global_1.process; | ||
var versions = process && process.versions; | ||
var v8 = versions && versions.v8; | ||
var match, version; | ||
if (v8) { | ||
match = v8.split('.'); | ||
version = match[0] + match[1]; | ||
} else if (engineUserAgent) { | ||
match = engineUserAgent.match(/Edge\/(\d+)/); | ||
if (!match || match[1] >= 74) { | ||
match = engineUserAgent.match(/Chrome\/(\d+)/); | ||
if (match) version = match[1]; | ||
} | ||
} | ||
var engineV8Version = version && +version; | ||
var SPECIES$1 = wellKnownSymbol('species'); | ||
var arrayMethodHasSpeciesSupport = function (METHOD_NAME) { | ||
// We can't use this feature detection in V8 since it causes | ||
// deoptimization and serious performance degradation | ||
// https://github.com/zloirock/core-js/issues/677 | ||
return engineV8Version >= 51 || !fails(function () { | ||
var array = []; | ||
var constructor = array.constructor = {}; | ||
constructor[SPECIES$1] = function () { | ||
return { foo: 1 }; | ||
}; | ||
return array[METHOD_NAME](Boolean).foo !== 1; | ||
}); | ||
}; | ||
var IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable'); | ||
var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; | ||
var MAXIMUM_ALLOWED_INDEX_EXCEEDED = 'Maximum allowed index exceeded'; | ||
// We can't use this feature detection in V8 since it causes | ||
// deoptimization and serious performance degradation | ||
// https://github.com/zloirock/core-js/issues/679 | ||
var IS_CONCAT_SPREADABLE_SUPPORT = engineV8Version >= 51 || !fails(function () { | ||
var array = []; | ||
array[IS_CONCAT_SPREADABLE] = false; | ||
return array.concat()[0] !== array; | ||
}); | ||
var SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('concat'); | ||
var isConcatSpreadable = function (O) { | ||
if (!isObject(O)) return false; | ||
var spreadable = O[IS_CONCAT_SPREADABLE]; | ||
return spreadable !== undefined ? !!spreadable : isArray(O); | ||
}; | ||
var FORCED = !IS_CONCAT_SPREADABLE_SUPPORT || !SPECIES_SUPPORT; | ||
// `Array.prototype.concat` method | ||
// https://tc39.github.io/ecma262/#sec-array.prototype.concat | ||
// with adding support of @@isConcatSpreadable and @@species | ||
_export({ target: 'Array', proto: true, forced: FORCED }, { | ||
concat: function concat(arg) { // eslint-disable-line no-unused-vars | ||
var O = toObject(this); | ||
var A = arraySpeciesCreate(O, 0); | ||
var n = 0; | ||
var i, k, length, len, E; | ||
for (i = -1, length = arguments.length; i < length; i++) { | ||
E = i === -1 ? O : arguments[i]; | ||
if (isConcatSpreadable(E)) { | ||
len = toLength(E.length); | ||
if (n + len > MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED); | ||
for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]); | ||
} else { | ||
if (n >= MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED); | ||
createProperty(A, n++, E); | ||
} | ||
} | ||
else if (style) { | ||
hook = shadowMode | ||
? function (context) { | ||
style.call(this, createInjectorShadow(context, this.$root.$options.shadowRoot)); | ||
} | ||
: function (context) { | ||
style.call(this, createInjector(context)); | ||
}; | ||
A.length = n; | ||
return A; | ||
} | ||
}); | ||
function normalizeComponent(template, style, script, scopeId, isFunctionalTemplate, moduleIdentifier | ||
/* server only */ | ||
, shadowMode, createInjector, createInjectorSSR, createInjectorShadow) { | ||
if (typeof shadowMode !== 'boolean') { | ||
createInjectorSSR = createInjector; | ||
createInjector = shadowMode; | ||
shadowMode = false; | ||
} // Vue.extend constructor export interop. | ||
var options = typeof script === 'function' ? script.options : script; // render functions | ||
if (template && template.render) { | ||
options.render = template.render; | ||
options.staticRenderFns = template.staticRenderFns; | ||
options._compiled = true; // functional template | ||
if (isFunctionalTemplate) { | ||
options.functional = true; | ||
} | ||
if (hook) { | ||
if (options.functional) { | ||
// register for functional component in vue file | ||
const originalRender = options.render; | ||
options.render = function renderWithStyleInjection(h, context) { | ||
hook.call(context); | ||
return originalRender(h, context); | ||
}; | ||
} | ||
else { | ||
// inject component registration as beforeCreate hook | ||
const existing = options.beforeCreate; | ||
options.beforeCreate = existing ? [].concat(existing, hook) : [hook]; | ||
} | ||
} // scopedId | ||
if (scopeId) { | ||
options._scopeId = scopeId; | ||
} | ||
var hook; | ||
if (moduleIdentifier) { | ||
// server build | ||
hook = function hook(context) { | ||
// 2.3 injection | ||
context = context || // cached call | ||
this.$vnode && this.$vnode.ssrContext || // stateful | ||
this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext; // functional | ||
// 2.2 with runInNewContext: true | ||
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') { | ||
context = __VUE_SSR_CONTEXT__; | ||
} // inject component styles | ||
if (style) { | ||
style.call(this, createInjectorSSR(context)); | ||
} // register component module identifier for async chunk inference | ||
if (context && context._registeredComponents) { | ||
context._registeredComponents.add(moduleIdentifier); | ||
} | ||
}; // used by ssr in case component is cached and beforeCreate | ||
// never gets called | ||
options._ssrRegister = hook; | ||
} else if (style) { | ||
hook = shadowMode ? function (context) { | ||
style.call(this, createInjectorShadow(context, this.$root.$options.shadowRoot)); | ||
} : function (context) { | ||
style.call(this, createInjector(context)); | ||
}; | ||
} | ||
if (hook) { | ||
if (options.functional) { | ||
// register for functional component in vue file | ||
var originalRender = options.render; | ||
options.render = function renderWithStyleInjection(h, context) { | ||
hook.call(context); | ||
return originalRender(h, context); | ||
}; | ||
} else { | ||
// inject component registration as beforeCreate hook | ||
var existing = options.beforeCreate; | ||
options.beforeCreate = existing ? [].concat(existing, hook) : [hook]; | ||
} | ||
return script; | ||
} | ||
return script; | ||
} | ||
@@ -257,11 +926,10 @@ | ||
// register alias icon. | ||
function init() { | ||
bpLibs.icons.registerAliasIcon('bp-checkbox_checked', 'ok'); | ||
} | ||
init(); | ||
var index = { | ||
init, | ||
bpCheckbox: __vue_component__, | ||
init: init, | ||
bpCheckbox: __vue_component__ | ||
}; | ||
@@ -268,0 +936,0 @@ |
/*! | ||
* bpui checkbox v0.1.7 | ||
* bpui checkbox v0.1.8 | ||
* Copyright (c) 2020 Copyright bpoint.lee@live.com All Rights Reserved. | ||
@@ -4,0 +4,0 @@ * Released under the MIT License. |
/*! | ||
* bpui checkbox v0.1.7 | ||
* bpui checkbox v0.1.8 | ||
* Copyright (c) 2020 Copyright bpoint.lee@live.com All Rights Reserved. | ||
@@ -40,3 +40,2 @@ * Released under the MIT License. | ||
// | ||
var script = { | ||
@@ -51,3 +50,3 @@ components: {}, | ||
type: Boolean | ||
}, | ||
} | ||
}, | ||
@@ -58,3 +57,3 @@ model: { | ||
}, | ||
data() { | ||
data: function data() { | ||
return { | ||
@@ -66,14 +65,14 @@ isChecked: false, | ||
computed: { | ||
isDisabled() { | ||
isDisabled: function isDisabled() { | ||
return this.disabled || this.disabled !== false; | ||
} | ||
}, | ||
created() { | ||
created: function created() { | ||
this.isChecked = this.checked; | ||
}, | ||
beforeDestroy() {}, | ||
beforeMount() {}, | ||
mounted() {}, | ||
beforeDestroy: function beforeDestroy() {}, | ||
beforeMount: function beforeMount() {}, | ||
mounted: function mounted() {}, | ||
methods: { | ||
handelChange(e) { | ||
handelChange: function handelChange(e) { | ||
this.$emit("change", e.target.checked); | ||
@@ -85,75 +84,745 @@ this.isChecked = e.target.checked; | ||
function normalizeComponent(template, style, script, scopeId, isFunctionalTemplate, moduleIdentifier /* server only */, shadowMode, createInjector, createInjectorSSR, createInjectorShadow) { | ||
if (typeof shadowMode !== 'boolean') { | ||
createInjectorSSR = createInjector; | ||
createInjector = shadowMode; | ||
shadowMode = false; | ||
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {}; | ||
function createCommonjsModule(fn, module) { | ||
return module = { exports: {} }, fn(module, module.exports), module.exports; | ||
} | ||
var check = function (it) { | ||
return it && it.Math == Math && it; | ||
}; | ||
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028 | ||
var global_1 = | ||
// eslint-disable-next-line no-undef | ||
check(typeof globalThis == 'object' && globalThis) || | ||
check(typeof window == 'object' && window) || | ||
check(typeof self == 'object' && self) || | ||
check(typeof commonjsGlobal == 'object' && commonjsGlobal) || | ||
// eslint-disable-next-line no-new-func | ||
Function('return this')(); | ||
var fails = function (exec) { | ||
try { | ||
return !!exec(); | ||
} catch (error) { | ||
return true; | ||
} | ||
}; | ||
// Thank's IE8 for his funny defineProperty | ||
var descriptors = !fails(function () { | ||
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7; | ||
}); | ||
var nativePropertyIsEnumerable = {}.propertyIsEnumerable; | ||
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; | ||
// Nashorn ~ JDK8 bug | ||
var NASHORN_BUG = getOwnPropertyDescriptor && !nativePropertyIsEnumerable.call({ 1: 2 }, 1); | ||
// `Object.prototype.propertyIsEnumerable` method implementation | ||
// https://tc39.github.io/ecma262/#sec-object.prototype.propertyisenumerable | ||
var f = NASHORN_BUG ? function propertyIsEnumerable(V) { | ||
var descriptor = getOwnPropertyDescriptor(this, V); | ||
return !!descriptor && descriptor.enumerable; | ||
} : nativePropertyIsEnumerable; | ||
var objectPropertyIsEnumerable = { | ||
f: f | ||
}; | ||
var createPropertyDescriptor = function (bitmap, value) { | ||
return { | ||
enumerable: !(bitmap & 1), | ||
configurable: !(bitmap & 2), | ||
writable: !(bitmap & 4), | ||
value: value | ||
}; | ||
}; | ||
var toString = {}.toString; | ||
var classofRaw = function (it) { | ||
return toString.call(it).slice(8, -1); | ||
}; | ||
var split = ''.split; | ||
// fallback for non-array-like ES3 and non-enumerable old V8 strings | ||
var indexedObject = fails(function () { | ||
// throws an error in rhino, see https://github.com/mozilla/rhino/issues/346 | ||
// eslint-disable-next-line no-prototype-builtins | ||
return !Object('z').propertyIsEnumerable(0); | ||
}) ? function (it) { | ||
return classofRaw(it) == 'String' ? split.call(it, '') : Object(it); | ||
} : Object; | ||
// `RequireObjectCoercible` abstract operation | ||
// https://tc39.github.io/ecma262/#sec-requireobjectcoercible | ||
var requireObjectCoercible = function (it) { | ||
if (it == undefined) throw TypeError("Can't call method on " + it); | ||
return it; | ||
}; | ||
// toObject with fallback for non-array-like ES3 strings | ||
var toIndexedObject = function (it) { | ||
return indexedObject(requireObjectCoercible(it)); | ||
}; | ||
var isObject = function (it) { | ||
return typeof it === 'object' ? it !== null : typeof it === 'function'; | ||
}; | ||
// `ToPrimitive` abstract operation | ||
// https://tc39.github.io/ecma262/#sec-toprimitive | ||
// instead of the ES6 spec version, we didn't implement @@toPrimitive case | ||
// and the second argument - flag - preferred type is a string | ||
var toPrimitive = function (input, PREFERRED_STRING) { | ||
if (!isObject(input)) return input; | ||
var fn, val; | ||
if (PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject(val = fn.call(input))) return val; | ||
if (typeof (fn = input.valueOf) == 'function' && !isObject(val = fn.call(input))) return val; | ||
if (!PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject(val = fn.call(input))) return val; | ||
throw TypeError("Can't convert object to primitive value"); | ||
}; | ||
var hasOwnProperty = {}.hasOwnProperty; | ||
var has = function (it, key) { | ||
return hasOwnProperty.call(it, key); | ||
}; | ||
var document = global_1.document; | ||
// typeof document.createElement is 'object' in old IE | ||
var EXISTS = isObject(document) && isObject(document.createElement); | ||
var documentCreateElement = function (it) { | ||
return EXISTS ? document.createElement(it) : {}; | ||
}; | ||
// Thank's IE8 for his funny defineProperty | ||
var ie8DomDefine = !descriptors && !fails(function () { | ||
return Object.defineProperty(documentCreateElement('div'), 'a', { | ||
get: function () { return 7; } | ||
}).a != 7; | ||
}); | ||
var nativeGetOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; | ||
// `Object.getOwnPropertyDescriptor` method | ||
// https://tc39.github.io/ecma262/#sec-object.getownpropertydescriptor | ||
var f$1 = descriptors ? nativeGetOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) { | ||
O = toIndexedObject(O); | ||
P = toPrimitive(P, true); | ||
if (ie8DomDefine) try { | ||
return nativeGetOwnPropertyDescriptor(O, P); | ||
} catch (error) { /* empty */ } | ||
if (has(O, P)) return createPropertyDescriptor(!objectPropertyIsEnumerable.f.call(O, P), O[P]); | ||
}; | ||
var objectGetOwnPropertyDescriptor = { | ||
f: f$1 | ||
}; | ||
var anObject = function (it) { | ||
if (!isObject(it)) { | ||
throw TypeError(String(it) + ' is not an object'); | ||
} return it; | ||
}; | ||
var nativeDefineProperty = Object.defineProperty; | ||
// `Object.defineProperty` method | ||
// https://tc39.github.io/ecma262/#sec-object.defineproperty | ||
var f$2 = descriptors ? nativeDefineProperty : function defineProperty(O, P, Attributes) { | ||
anObject(O); | ||
P = toPrimitive(P, true); | ||
anObject(Attributes); | ||
if (ie8DomDefine) try { | ||
return nativeDefineProperty(O, P, Attributes); | ||
} catch (error) { /* empty */ } | ||
if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported'); | ||
if ('value' in Attributes) O[P] = Attributes.value; | ||
return O; | ||
}; | ||
var objectDefineProperty = { | ||
f: f$2 | ||
}; | ||
var createNonEnumerableProperty = descriptors ? function (object, key, value) { | ||
return objectDefineProperty.f(object, key, createPropertyDescriptor(1, value)); | ||
} : function (object, key, value) { | ||
object[key] = value; | ||
return object; | ||
}; | ||
var setGlobal = function (key, value) { | ||
try { | ||
createNonEnumerableProperty(global_1, key, value); | ||
} catch (error) { | ||
global_1[key] = value; | ||
} return value; | ||
}; | ||
var SHARED = '__core-js_shared__'; | ||
var store = global_1[SHARED] || setGlobal(SHARED, {}); | ||
var sharedStore = store; | ||
var functionToString = Function.toString; | ||
// this helper broken in `3.4.1-3.4.4`, so we can't use `shared` helper | ||
if (typeof sharedStore.inspectSource != 'function') { | ||
sharedStore.inspectSource = function (it) { | ||
return functionToString.call(it); | ||
}; | ||
} | ||
var inspectSource = sharedStore.inspectSource; | ||
var WeakMap = global_1.WeakMap; | ||
var nativeWeakMap = typeof WeakMap === 'function' && /native code/.test(inspectSource(WeakMap)); | ||
var shared = createCommonjsModule(function (module) { | ||
(module.exports = function (key, value) { | ||
return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {}); | ||
})('versions', []).push({ | ||
version: '3.6.5', | ||
mode: 'global', | ||
copyright: '© 2020 Denis Pushkarev (zloirock.ru)' | ||
}); | ||
}); | ||
var id = 0; | ||
var postfix = Math.random(); | ||
var uid = function (key) { | ||
return 'Symbol(' + String(key === undefined ? '' : key) + ')_' + (++id + postfix).toString(36); | ||
}; | ||
var keys = shared('keys'); | ||
var sharedKey = function (key) { | ||
return keys[key] || (keys[key] = uid(key)); | ||
}; | ||
var hiddenKeys = {}; | ||
var WeakMap$1 = global_1.WeakMap; | ||
var set, get, has$1; | ||
var enforce = function (it) { | ||
return has$1(it) ? get(it) : set(it, {}); | ||
}; | ||
var getterFor = function (TYPE) { | ||
return function (it) { | ||
var state; | ||
if (!isObject(it) || (state = get(it)).type !== TYPE) { | ||
throw TypeError('Incompatible receiver, ' + TYPE + ' required'); | ||
} return state; | ||
}; | ||
}; | ||
if (nativeWeakMap) { | ||
var store$1 = new WeakMap$1(); | ||
var wmget = store$1.get; | ||
var wmhas = store$1.has; | ||
var wmset = store$1.set; | ||
set = function (it, metadata) { | ||
wmset.call(store$1, it, metadata); | ||
return metadata; | ||
}; | ||
get = function (it) { | ||
return wmget.call(store$1, it) || {}; | ||
}; | ||
has$1 = function (it) { | ||
return wmhas.call(store$1, it); | ||
}; | ||
} else { | ||
var STATE = sharedKey('state'); | ||
hiddenKeys[STATE] = true; | ||
set = function (it, metadata) { | ||
createNonEnumerableProperty(it, STATE, metadata); | ||
return metadata; | ||
}; | ||
get = function (it) { | ||
return has(it, STATE) ? it[STATE] : {}; | ||
}; | ||
has$1 = function (it) { | ||
return has(it, STATE); | ||
}; | ||
} | ||
var internalState = { | ||
set: set, | ||
get: get, | ||
has: has$1, | ||
enforce: enforce, | ||
getterFor: getterFor | ||
}; | ||
var redefine = createCommonjsModule(function (module) { | ||
var getInternalState = internalState.get; | ||
var enforceInternalState = internalState.enforce; | ||
var TEMPLATE = String(String).split('String'); | ||
(module.exports = function (O, key, value, options) { | ||
var unsafe = options ? !!options.unsafe : false; | ||
var simple = options ? !!options.enumerable : false; | ||
var noTargetGet = options ? !!options.noTargetGet : false; | ||
if (typeof value == 'function') { | ||
if (typeof key == 'string' && !has(value, 'name')) createNonEnumerableProperty(value, 'name', key); | ||
enforceInternalState(value).source = TEMPLATE.join(typeof key == 'string' ? key : ''); | ||
} | ||
if (O === global_1) { | ||
if (simple) O[key] = value; | ||
else setGlobal(key, value); | ||
return; | ||
} else if (!unsafe) { | ||
delete O[key]; | ||
} else if (!noTargetGet && O[key]) { | ||
simple = true; | ||
} | ||
if (simple) O[key] = value; | ||
else createNonEnumerableProperty(O, key, value); | ||
// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative | ||
})(Function.prototype, 'toString', function toString() { | ||
return typeof this == 'function' && getInternalState(this).source || inspectSource(this); | ||
}); | ||
}); | ||
var path = global_1; | ||
var aFunction = function (variable) { | ||
return typeof variable == 'function' ? variable : undefined; | ||
}; | ||
var getBuiltIn = function (namespace, method) { | ||
return arguments.length < 2 ? aFunction(path[namespace]) || aFunction(global_1[namespace]) | ||
: path[namespace] && path[namespace][method] || global_1[namespace] && global_1[namespace][method]; | ||
}; | ||
var ceil = Math.ceil; | ||
var floor = Math.floor; | ||
// `ToInteger` abstract operation | ||
// https://tc39.github.io/ecma262/#sec-tointeger | ||
var toInteger = function (argument) { | ||
return isNaN(argument = +argument) ? 0 : (argument > 0 ? floor : ceil)(argument); | ||
}; | ||
var min = Math.min; | ||
// `ToLength` abstract operation | ||
// https://tc39.github.io/ecma262/#sec-tolength | ||
var toLength = function (argument) { | ||
return argument > 0 ? min(toInteger(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991 | ||
}; | ||
var max = Math.max; | ||
var min$1 = Math.min; | ||
// Helper for a popular repeating case of the spec: | ||
// Let integer be ? ToInteger(index). | ||
// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length). | ||
var toAbsoluteIndex = function (index, length) { | ||
var integer = toInteger(index); | ||
return integer < 0 ? max(integer + length, 0) : min$1(integer, length); | ||
}; | ||
// `Array.prototype.{ indexOf, includes }` methods implementation | ||
var createMethod = function (IS_INCLUDES) { | ||
return function ($this, el, fromIndex) { | ||
var O = toIndexedObject($this); | ||
var length = toLength(O.length); | ||
var index = toAbsoluteIndex(fromIndex, length); | ||
var value; | ||
// Array#includes uses SameValueZero equality algorithm | ||
// eslint-disable-next-line no-self-compare | ||
if (IS_INCLUDES && el != el) while (length > index) { | ||
value = O[index++]; | ||
// eslint-disable-next-line no-self-compare | ||
if (value != value) return true; | ||
// Array#indexOf ignores holes, Array#includes - not | ||
} else for (;length > index; index++) { | ||
if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0; | ||
} return !IS_INCLUDES && -1; | ||
}; | ||
}; | ||
var arrayIncludes = { | ||
// `Array.prototype.includes` method | ||
// https://tc39.github.io/ecma262/#sec-array.prototype.includes | ||
includes: createMethod(true), | ||
// `Array.prototype.indexOf` method | ||
// https://tc39.github.io/ecma262/#sec-array.prototype.indexof | ||
indexOf: createMethod(false) | ||
}; | ||
var indexOf = arrayIncludes.indexOf; | ||
var objectKeysInternal = function (object, names) { | ||
var O = toIndexedObject(object); | ||
var i = 0; | ||
var result = []; | ||
var key; | ||
for (key in O) !has(hiddenKeys, key) && has(O, key) && result.push(key); | ||
// Don't enum bug & hidden keys | ||
while (names.length > i) if (has(O, key = names[i++])) { | ||
~indexOf(result, key) || result.push(key); | ||
} | ||
return result; | ||
}; | ||
// IE8- don't enum bug keys | ||
var enumBugKeys = [ | ||
'constructor', | ||
'hasOwnProperty', | ||
'isPrototypeOf', | ||
'propertyIsEnumerable', | ||
'toLocaleString', | ||
'toString', | ||
'valueOf' | ||
]; | ||
var hiddenKeys$1 = enumBugKeys.concat('length', 'prototype'); | ||
// `Object.getOwnPropertyNames` method | ||
// https://tc39.github.io/ecma262/#sec-object.getownpropertynames | ||
var f$3 = Object.getOwnPropertyNames || function getOwnPropertyNames(O) { | ||
return objectKeysInternal(O, hiddenKeys$1); | ||
}; | ||
var objectGetOwnPropertyNames = { | ||
f: f$3 | ||
}; | ||
var f$4 = Object.getOwnPropertySymbols; | ||
var objectGetOwnPropertySymbols = { | ||
f: f$4 | ||
}; | ||
// all object keys, includes non-enumerable and symbols | ||
var ownKeys = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) { | ||
var keys = objectGetOwnPropertyNames.f(anObject(it)); | ||
var getOwnPropertySymbols = objectGetOwnPropertySymbols.f; | ||
return getOwnPropertySymbols ? keys.concat(getOwnPropertySymbols(it)) : keys; | ||
}; | ||
var copyConstructorProperties = function (target, source) { | ||
var keys = ownKeys(source); | ||
var defineProperty = objectDefineProperty.f; | ||
var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f; | ||
for (var i = 0; i < keys.length; i++) { | ||
var key = keys[i]; | ||
if (!has(target, key)) defineProperty(target, key, getOwnPropertyDescriptor(source, key)); | ||
} | ||
}; | ||
var replacement = /#|\.prototype\./; | ||
var isForced = function (feature, detection) { | ||
var value = data[normalize(feature)]; | ||
return value == POLYFILL ? true | ||
: value == NATIVE ? false | ||
: typeof detection == 'function' ? fails(detection) | ||
: !!detection; | ||
}; | ||
var normalize = isForced.normalize = function (string) { | ||
return String(string).replace(replacement, '.').toLowerCase(); | ||
}; | ||
var data = isForced.data = {}; | ||
var NATIVE = isForced.NATIVE = 'N'; | ||
var POLYFILL = isForced.POLYFILL = 'P'; | ||
var isForced_1 = isForced; | ||
var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f; | ||
/* | ||
options.target - name of the target object | ||
options.global - target is the global object | ||
options.stat - export as static methods of target | ||
options.proto - export as prototype methods of target | ||
options.real - real prototype method for the `pure` version | ||
options.forced - export even if the native feature is available | ||
options.bind - bind methods to the target, required for the `pure` version | ||
options.wrap - wrap constructors to preventing global pollution, required for the `pure` version | ||
options.unsafe - use the simple assignment of property instead of delete + defineProperty | ||
options.sham - add a flag to not completely full polyfills | ||
options.enumerable - export as enumerable property | ||
options.noTargetGet - prevent calling a getter on target | ||
*/ | ||
var _export = function (options, source) { | ||
var TARGET = options.target; | ||
var GLOBAL = options.global; | ||
var STATIC = options.stat; | ||
var FORCED, target, key, targetProperty, sourceProperty, descriptor; | ||
if (GLOBAL) { | ||
target = global_1; | ||
} else if (STATIC) { | ||
target = global_1[TARGET] || setGlobal(TARGET, {}); | ||
} else { | ||
target = (global_1[TARGET] || {}).prototype; | ||
} | ||
if (target) for (key in source) { | ||
sourceProperty = source[key]; | ||
if (options.noTargetGet) { | ||
descriptor = getOwnPropertyDescriptor$1(target, key); | ||
targetProperty = descriptor && descriptor.value; | ||
} else targetProperty = target[key]; | ||
FORCED = isForced_1(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced); | ||
// contained in target | ||
if (!FORCED && targetProperty !== undefined) { | ||
if (typeof sourceProperty === typeof targetProperty) continue; | ||
copyConstructorProperties(sourceProperty, targetProperty); | ||
} | ||
// Vue.extend constructor export interop. | ||
const options = typeof script === 'function' ? script.options : script; | ||
// render functions | ||
if (template && template.render) { | ||
options.render = template.render; | ||
options.staticRenderFns = template.staticRenderFns; | ||
options._compiled = true; | ||
// functional template | ||
if (isFunctionalTemplate) { | ||
options.functional = true; | ||
} | ||
// add a flag to not completely full polyfills | ||
if (options.sham || (targetProperty && targetProperty.sham)) { | ||
createNonEnumerableProperty(sourceProperty, 'sham', true); | ||
} | ||
// scopedId | ||
if (scopeId) { | ||
options._scopeId = scopeId; | ||
// extend global | ||
redefine(target, key, sourceProperty, options); | ||
} | ||
}; | ||
// `IsArray` abstract operation | ||
// https://tc39.github.io/ecma262/#sec-isarray | ||
var isArray = Array.isArray || function isArray(arg) { | ||
return classofRaw(arg) == 'Array'; | ||
}; | ||
// `ToObject` abstract operation | ||
// https://tc39.github.io/ecma262/#sec-toobject | ||
var toObject = function (argument) { | ||
return Object(requireObjectCoercible(argument)); | ||
}; | ||
var createProperty = function (object, key, value) { | ||
var propertyKey = toPrimitive(key); | ||
if (propertyKey in object) objectDefineProperty.f(object, propertyKey, createPropertyDescriptor(0, value)); | ||
else object[propertyKey] = value; | ||
}; | ||
var nativeSymbol = !!Object.getOwnPropertySymbols && !fails(function () { | ||
// Chrome 38 Symbol has incorrect toString conversion | ||
// eslint-disable-next-line no-undef | ||
return !String(Symbol()); | ||
}); | ||
var useSymbolAsUid = nativeSymbol | ||
// eslint-disable-next-line no-undef | ||
&& !Symbol.sham | ||
// eslint-disable-next-line no-undef | ||
&& typeof Symbol.iterator == 'symbol'; | ||
var WellKnownSymbolsStore = shared('wks'); | ||
var Symbol$1 = global_1.Symbol; | ||
var createWellKnownSymbol = useSymbolAsUid ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid; | ||
var wellKnownSymbol = function (name) { | ||
if (!has(WellKnownSymbolsStore, name)) { | ||
if (nativeSymbol && has(Symbol$1, name)) WellKnownSymbolsStore[name] = Symbol$1[name]; | ||
else WellKnownSymbolsStore[name] = createWellKnownSymbol('Symbol.' + name); | ||
} return WellKnownSymbolsStore[name]; | ||
}; | ||
var SPECIES = wellKnownSymbol('species'); | ||
// `ArraySpeciesCreate` abstract operation | ||
// https://tc39.github.io/ecma262/#sec-arrayspeciescreate | ||
var arraySpeciesCreate = function (originalArray, length) { | ||
var C; | ||
if (isArray(originalArray)) { | ||
C = originalArray.constructor; | ||
// cross-realm fallback | ||
if (typeof C == 'function' && (C === Array || isArray(C.prototype))) C = undefined; | ||
else if (isObject(C)) { | ||
C = C[SPECIES]; | ||
if (C === null) C = undefined; | ||
} | ||
let hook; | ||
if (moduleIdentifier) { | ||
// server build | ||
hook = function (context) { | ||
// 2.3 injection | ||
context = | ||
context || // cached call | ||
(this.$vnode && this.$vnode.ssrContext) || // stateful | ||
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext); // functional | ||
// 2.2 with runInNewContext: true | ||
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') { | ||
context = __VUE_SSR_CONTEXT__; | ||
} | ||
// inject component styles | ||
if (style) { | ||
style.call(this, createInjectorSSR(context)); | ||
} | ||
// register component module identifier for async chunk inference | ||
if (context && context._registeredComponents) { | ||
context._registeredComponents.add(moduleIdentifier); | ||
} | ||
}; | ||
// used by ssr in case component is cached and beforeCreate | ||
// never gets called | ||
options._ssrRegister = hook; | ||
} return new (C === undefined ? Array : C)(length === 0 ? 0 : length); | ||
}; | ||
var engineUserAgent = getBuiltIn('navigator', 'userAgent') || ''; | ||
var process = global_1.process; | ||
var versions = process && process.versions; | ||
var v8 = versions && versions.v8; | ||
var match, version; | ||
if (v8) { | ||
match = v8.split('.'); | ||
version = match[0] + match[1]; | ||
} else if (engineUserAgent) { | ||
match = engineUserAgent.match(/Edge\/(\d+)/); | ||
if (!match || match[1] >= 74) { | ||
match = engineUserAgent.match(/Chrome\/(\d+)/); | ||
if (match) version = match[1]; | ||
} | ||
} | ||
var engineV8Version = version && +version; | ||
var SPECIES$1 = wellKnownSymbol('species'); | ||
var arrayMethodHasSpeciesSupport = function (METHOD_NAME) { | ||
// We can't use this feature detection in V8 since it causes | ||
// deoptimization and serious performance degradation | ||
// https://github.com/zloirock/core-js/issues/677 | ||
return engineV8Version >= 51 || !fails(function () { | ||
var array = []; | ||
var constructor = array.constructor = {}; | ||
constructor[SPECIES$1] = function () { | ||
return { foo: 1 }; | ||
}; | ||
return array[METHOD_NAME](Boolean).foo !== 1; | ||
}); | ||
}; | ||
var IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable'); | ||
var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; | ||
var MAXIMUM_ALLOWED_INDEX_EXCEEDED = 'Maximum allowed index exceeded'; | ||
// We can't use this feature detection in V8 since it causes | ||
// deoptimization and serious performance degradation | ||
// https://github.com/zloirock/core-js/issues/679 | ||
var IS_CONCAT_SPREADABLE_SUPPORT = engineV8Version >= 51 || !fails(function () { | ||
var array = []; | ||
array[IS_CONCAT_SPREADABLE] = false; | ||
return array.concat()[0] !== array; | ||
}); | ||
var SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('concat'); | ||
var isConcatSpreadable = function (O) { | ||
if (!isObject(O)) return false; | ||
var spreadable = O[IS_CONCAT_SPREADABLE]; | ||
return spreadable !== undefined ? !!spreadable : isArray(O); | ||
}; | ||
var FORCED = !IS_CONCAT_SPREADABLE_SUPPORT || !SPECIES_SUPPORT; | ||
// `Array.prototype.concat` method | ||
// https://tc39.github.io/ecma262/#sec-array.prototype.concat | ||
// with adding support of @@isConcatSpreadable and @@species | ||
_export({ target: 'Array', proto: true, forced: FORCED }, { | ||
concat: function concat(arg) { // eslint-disable-line no-unused-vars | ||
var O = toObject(this); | ||
var A = arraySpeciesCreate(O, 0); | ||
var n = 0; | ||
var i, k, length, len, E; | ||
for (i = -1, length = arguments.length; i < length; i++) { | ||
E = i === -1 ? O : arguments[i]; | ||
if (isConcatSpreadable(E)) { | ||
len = toLength(E.length); | ||
if (n + len > MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED); | ||
for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]); | ||
} else { | ||
if (n >= MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED); | ||
createProperty(A, n++, E); | ||
} | ||
} | ||
else if (style) { | ||
hook = shadowMode | ||
? function (context) { | ||
style.call(this, createInjectorShadow(context, this.$root.$options.shadowRoot)); | ||
} | ||
: function (context) { | ||
style.call(this, createInjector(context)); | ||
}; | ||
A.length = n; | ||
return A; | ||
} | ||
}); | ||
function normalizeComponent(template, style, script, scopeId, isFunctionalTemplate, moduleIdentifier | ||
/* server only */ | ||
, shadowMode, createInjector, createInjectorSSR, createInjectorShadow) { | ||
if (typeof shadowMode !== 'boolean') { | ||
createInjectorSSR = createInjector; | ||
createInjector = shadowMode; | ||
shadowMode = false; | ||
} // Vue.extend constructor export interop. | ||
var options = typeof script === 'function' ? script.options : script; // render functions | ||
if (template && template.render) { | ||
options.render = template.render; | ||
options.staticRenderFns = template.staticRenderFns; | ||
options._compiled = true; // functional template | ||
if (isFunctionalTemplate) { | ||
options.functional = true; | ||
} | ||
if (hook) { | ||
if (options.functional) { | ||
// register for functional component in vue file | ||
const originalRender = options.render; | ||
options.render = function renderWithStyleInjection(h, context) { | ||
hook.call(context); | ||
return originalRender(h, context); | ||
}; | ||
} | ||
else { | ||
// inject component registration as beforeCreate hook | ||
const existing = options.beforeCreate; | ||
options.beforeCreate = existing ? [].concat(existing, hook) : [hook]; | ||
} | ||
} // scopedId | ||
if (scopeId) { | ||
options._scopeId = scopeId; | ||
} | ||
var hook; | ||
if (moduleIdentifier) { | ||
// server build | ||
hook = function hook(context) { | ||
// 2.3 injection | ||
context = context || // cached call | ||
this.$vnode && this.$vnode.ssrContext || // stateful | ||
this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext; // functional | ||
// 2.2 with runInNewContext: true | ||
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') { | ||
context = __VUE_SSR_CONTEXT__; | ||
} // inject component styles | ||
if (style) { | ||
style.call(this, createInjectorSSR(context)); | ||
} // register component module identifier for async chunk inference | ||
if (context && context._registeredComponents) { | ||
context._registeredComponents.add(moduleIdentifier); | ||
} | ||
}; // used by ssr in case component is cached and beforeCreate | ||
// never gets called | ||
options._ssrRegister = hook; | ||
} else if (style) { | ||
hook = shadowMode ? function (context) { | ||
style.call(this, createInjectorShadow(context, this.$root.$options.shadowRoot)); | ||
} : function (context) { | ||
style.call(this, createInjector(context)); | ||
}; | ||
} | ||
if (hook) { | ||
if (options.functional) { | ||
// register for functional component in vue file | ||
var originalRender = options.render; | ||
options.render = function renderWithStyleInjection(h, context) { | ||
hook.call(context); | ||
return originalRender(h, context); | ||
}; | ||
} else { | ||
// inject component registration as beforeCreate hook | ||
var existing = options.beforeCreate; | ||
options.beforeCreate = existing ? [].concat(existing, hook) : [hook]; | ||
} | ||
return script; | ||
} | ||
return script; | ||
} | ||
@@ -263,11 +932,10 @@ | ||
// register alias icon. | ||
function init() { | ||
bpLibs.icons.registerAliasIcon('bp-checkbox_checked', 'ok'); | ||
} | ||
init(); | ||
var index = { | ||
init, | ||
bpCheckbox: __vue_component__, | ||
init: init, | ||
bpCheckbox: __vue_component__ | ||
}; | ||
@@ -274,0 +942,0 @@ |
/*! | ||
* bpui checkbox v0.1.7 | ||
* bpui checkbox v0.1.8 | ||
* Copyright (c) 2020 Copyright bpoint.lee@live.com All Rights Reserved. | ||
@@ -4,0 +4,0 @@ * Released under the MIT License. |
{ | ||
"description": "checkbox", | ||
"dependencies": { | ||
"@bpui/libs": "^0.2.6" | ||
"@bpui/libs": "^0.2.7" | ||
}, | ||
@@ -41,3 +41,3 @@ "directories": {}, | ||
"name": "@bpui/checkbox", | ||
"version": "0.1.7" | ||
"version": "0.1.8" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
308726
3026
6
Updated@bpui/libs@^0.2.7