@assecosolutions/fox-image
Advanced tools
Comparing version 1.11.2-beta.1 to 1.11.2
271
index.js
@@ -18,3 +18,3 @@ import { css, LitElement, html as html$2 } from 'lit'; | ||
var functionBindNative = !fails$9(function () { | ||
// eslint-disable-next-line es/no-function-prototype-bind -- safe | ||
// eslint-disable-next-line es-x/no-function-prototype-bind -- safe | ||
var test = (function () { /* empty */ }).bind(); | ||
@@ -28,7 +28,10 @@ // eslint-disable-next-line no-prototype-builtins -- safe | ||
var FunctionPrototype$1 = Function.prototype; | ||
var bind = FunctionPrototype$1.bind; | ||
var call$5 = FunctionPrototype$1.call; | ||
var uncurryThisWithBind = NATIVE_BIND$1 && FunctionPrototype$1.bind.bind(call$5, call$5); | ||
var uncurryThis$a = NATIVE_BIND$1 && bind.bind(call$5, call$5); | ||
var functionUncurryThis = NATIVE_BIND$1 ? uncurryThisWithBind : function (fn) { | ||
return function () { | ||
var functionUncurryThis = NATIVE_BIND$1 ? function (fn) { | ||
return fn && uncurryThis$a(fn); | ||
} : function (fn) { | ||
return fn && function () { | ||
return call$5.apply(fn, arguments); | ||
@@ -41,6 +44,6 @@ }; | ||
var toString$1 = uncurryThis$9({}.toString); | ||
var stringSlice$1 = uncurryThis$9(''.slice); | ||
var stringSlice = uncurryThis$9(''.slice); | ||
var classofRaw = function (it) { | ||
return stringSlice$1(toString$1(it), 8, -1); | ||
return stringSlice(toString$1(it), 8, -1); | ||
}; | ||
@@ -95,3 +98,3 @@ | ||
var global$b = | ||
// eslint-disable-next-line es/no-global-this -- safe | ||
// eslint-disable-next-line es-x/no-global-this -- safe | ||
check(typeof globalThis == 'object' && globalThis) || | ||
@@ -109,3 +112,3 @@ check(typeof window == 'object' && window) || | ||
// eslint-disable-next-line es/no-object-defineproperty -- safe | ||
// eslint-disable-next-line es-x/no-object-defineproperty -- safe | ||
var defineProperty$4 = Object.defineProperty; | ||
@@ -134,6 +137,6 @@ | ||
})('versions', []).push({ | ||
version: '3.28.0', | ||
version: '3.25.0', | ||
mode: 'global', | ||
copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)', | ||
license: 'https://github.com/zloirock/core-js/blob/v3.28.0/LICENSE', | ||
copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)', | ||
license: 'https://github.com/zloirock/core-js/blob/v3.25.0/LICENSE', | ||
source: 'https://github.com/zloirock/core-js' | ||
@@ -159,3 +162,3 @@ }); | ||
// https://tc39.es/ecma262/#sec-hasownproperty | ||
// eslint-disable-next-line es/no-object-hasown -- safe | ||
// eslint-disable-next-line es-x/no-object-hasown -- safe | ||
var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) { | ||
@@ -175,9 +178,28 @@ return hasOwnProperty(toObject$1(it), key); | ||
var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || ''; | ||
// `IsCallable` abstract operation | ||
// https://tc39.es/ecma262/#sec-iscallable | ||
var isCallable$e = function (argument) { | ||
return typeof argument == 'function'; | ||
}; | ||
var global$8 = global$b; | ||
var isCallable$d = isCallable$e; | ||
var aFunction = function (argument) { | ||
return isCallable$d(argument) ? argument : undefined; | ||
}; | ||
var getBuiltIn$4 = function (namespace, method) { | ||
return arguments.length < 2 ? aFunction(global$8[namespace]) : global$8[namespace] && global$8[namespace][method]; | ||
}; | ||
var getBuiltIn$3 = getBuiltIn$4; | ||
var engineUserAgent = getBuiltIn$3('navigator', 'userAgent') || ''; | ||
var global$7 = global$b; | ||
var userAgent = engineUserAgent; | ||
var process = global$8.process; | ||
var Deno = global$8.Deno; | ||
var process = global$7.process; | ||
var Deno = global$7.Deno; | ||
var versions = process && process.versions || Deno && Deno.version; | ||
@@ -206,3 +228,3 @@ var v8 = versions && versions.v8; | ||
/* eslint-disable es/no-symbol -- required for testing */ | ||
/* eslint-disable es-x/no-symbol -- required for testing */ | ||
@@ -212,3 +234,3 @@ var V8_VERSION = engineV8Version; | ||
// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing | ||
// eslint-disable-next-line es-x/no-object-getownpropertysymbols -- required for testing | ||
var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$7(function () { | ||
@@ -223,3 +245,3 @@ var symbol = Symbol(); | ||
/* eslint-disable es/no-symbol -- required for testing */ | ||
/* eslint-disable es-x/no-symbol -- required for testing */ | ||
@@ -232,3 +254,3 @@ var NATIVE_SYMBOL$1 = symbolConstructorDetection; | ||
var global$7 = global$b; | ||
var global$6 = global$b; | ||
var shared$2 = shared$3.exports; | ||
@@ -240,46 +262,31 @@ var hasOwn$8 = hasOwnProperty_1; | ||
var Symbol$1 = global$7.Symbol; | ||
var WellKnownSymbolsStore = shared$2('wks'); | ||
var createWellKnownSymbol = USE_SYMBOL_AS_UID$1 ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1; | ||
var Symbol$1 = global$6.Symbol; | ||
var symbolFor = Symbol$1 && Symbol$1['for']; | ||
var createWellKnownSymbol = USE_SYMBOL_AS_UID$1 ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1; | ||
var wellKnownSymbol$6 = function (name) { | ||
if (!hasOwn$8(WellKnownSymbolsStore, name)) { | ||
WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$8(Symbol$1, name) | ||
? Symbol$1[name] | ||
: createWellKnownSymbol('Symbol.' + name); | ||
if (!hasOwn$8(WellKnownSymbolsStore, name) || !(NATIVE_SYMBOL || typeof WellKnownSymbolsStore[name] == 'string')) { | ||
var description = 'Symbol.' + name; | ||
if (NATIVE_SYMBOL && hasOwn$8(Symbol$1, name)) { | ||
WellKnownSymbolsStore[name] = Symbol$1[name]; | ||
} else if (USE_SYMBOL_AS_UID$1 && symbolFor) { | ||
WellKnownSymbolsStore[name] = symbolFor(description); | ||
} else { | ||
WellKnownSymbolsStore[name] = createWellKnownSymbol(description); | ||
} | ||
} return WellKnownSymbolsStore[name]; | ||
}; | ||
var documentAll$2 = typeof document == 'object' && document.all; | ||
var isCallable$c = isCallable$e; | ||
var documentAll = typeof document == 'object' && document.all; | ||
// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot | ||
// eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing | ||
var IS_HTMLDDA = typeof documentAll$2 == 'undefined' && documentAll$2 !== undefined; | ||
var SPECIAL_DOCUMENT_ALL = typeof documentAll == 'undefined' && documentAll !== undefined; | ||
var documentAll_1 = { | ||
all: documentAll$2, | ||
IS_HTMLDDA: IS_HTMLDDA | ||
}; | ||
var $documentAll$1 = documentAll_1; | ||
var documentAll$1 = $documentAll$1.all; | ||
// `IsCallable` abstract operation | ||
// https://tc39.es/ecma262/#sec-iscallable | ||
var isCallable$e = $documentAll$1.IS_HTMLDDA ? function (argument) { | ||
return typeof argument == 'function' || argument === documentAll$1; | ||
} : function (argument) { | ||
return typeof argument == 'function'; | ||
}; | ||
var isCallable$d = isCallable$e; | ||
var $documentAll = documentAll_1; | ||
var documentAll = $documentAll.all; | ||
var isObject$6 = $documentAll.IS_HTMLDDA ? function (it) { | ||
return typeof it == 'object' ? it !== null : isCallable$d(it) || it === documentAll; | ||
var isObject$6 = SPECIAL_DOCUMENT_ALL ? function (it) { | ||
return typeof it == 'object' ? it !== null : isCallable$c(it) || it === documentAll; | ||
} : function (it) { | ||
return typeof it == 'object' ? it !== null : isCallable$d(it); | ||
return typeof it == 'object' ? it !== null : isCallable$c(it); | ||
}; | ||
@@ -289,3 +296,3 @@ | ||
var $String$3 = String; | ||
var $String$2 = String; | ||
var $TypeError$5 = TypeError; | ||
@@ -296,3 +303,3 @@ | ||
if (isObject$5(argument)) return argument; | ||
throw $TypeError$5($String$3(argument) + ' is not an object'); | ||
throw $TypeError$5($String$2(argument) + ' is not an object'); | ||
}; | ||
@@ -306,3 +313,3 @@ | ||
var descriptors = !fails$6(function () { | ||
// eslint-disable-next-line es/no-object-defineproperty -- required for testing | ||
// eslint-disable-next-line es-x/no-object-defineproperty -- required for testing | ||
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7; | ||
@@ -317,3 +324,3 @@ }); | ||
var v8PrototypeDefineBug = DESCRIPTORS$8 && fails$5(function () { | ||
// eslint-disable-next-line es/no-object-defineproperty -- required for testing | ||
// eslint-disable-next-line es-x/no-object-defineproperty -- required for testing | ||
return Object.defineProperty(function () { /* empty */ }, 'prototype', { | ||
@@ -327,6 +334,6 @@ value: 42, | ||
var global$6 = global$b; | ||
var global$5 = global$b; | ||
var isObject$4 = isObject$6; | ||
var document$1 = global$6.document; | ||
var document$1 = global$5.document; | ||
// typeof document.createElement is 'object' in old IE | ||
@@ -345,3 +352,3 @@ var EXISTS$1 = isObject$4(document$1) && isObject$4(document$1.createElement); | ||
var ie8DomDefine = !DESCRIPTORS$7 && !fails$4(function () { | ||
// eslint-disable-next-line es/no-object-defineproperty -- required for testing | ||
// eslint-disable-next-line es-x/no-object-defineproperty -- required for testing | ||
return Object.defineProperty(createElement('div'), 'a', { | ||
@@ -360,13 +367,2 @@ get: function () { return 7; } | ||
var global$5 = global$b; | ||
var isCallable$c = isCallable$e; | ||
var aFunction = function (argument) { | ||
return isCallable$c(argument) ? argument : undefined; | ||
}; | ||
var getBuiltIn$3 = function (namespace, method) { | ||
return arguments.length < 2 ? aFunction(global$5[namespace]) : global$5[namespace] && global$5[namespace][method]; | ||
}; | ||
var uncurryThis$5 = functionUncurryThis; | ||
@@ -376,3 +372,3 @@ | ||
var getBuiltIn$2 = getBuiltIn$3; | ||
var getBuiltIn$2 = getBuiltIn$4; | ||
var isCallable$b = isCallable$e; | ||
@@ -391,7 +387,7 @@ var isPrototypeOf = objectIsPrototypeOf; | ||
var $String$2 = String; | ||
var $String$1 = String; | ||
var tryToString$1 = function (argument) { | ||
try { | ||
return $String$2(argument); | ||
return $String$1(argument); | ||
} catch (error) { | ||
@@ -408,3 +404,3 @@ return 'Object'; | ||
// `Assert: IsCallable(argument) is true` | ||
var aCallable$2 = function (argument) { | ||
var aCallable$1 = function (argument) { | ||
if (isCallable$a(argument)) return argument; | ||
@@ -414,3 +410,3 @@ throw $TypeError$4(tryToString(argument) + ' is not a function'); | ||
var aCallable$1 = aCallable$2; | ||
var aCallable = aCallable$1; | ||
var isNullOrUndefined = isNullOrUndefined$2; | ||
@@ -422,3 +418,3 @@ | ||
var func = V[P]; | ||
return isNullOrUndefined(func) ? undefined : aCallable$1(func); | ||
return isNullOrUndefined(func) ? undefined : aCallable(func); | ||
}; | ||
@@ -485,5 +481,5 @@ | ||
var $TypeError$1 = TypeError; | ||
// eslint-disable-next-line es/no-object-defineproperty -- safe | ||
// eslint-disable-next-line es-x/no-object-defineproperty -- safe | ||
var $defineProperty = Object.defineProperty; | ||
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe | ||
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe | ||
var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor; | ||
@@ -528,3 +524,3 @@ var ENUMERABLE = 'enumerable'; | ||
// https://tc39.es/ecma262/#sec-math.trunc | ||
// eslint-disable-next-line es/no-math-trunc -- safe | ||
// eslint-disable-next-line es-x/no-math-trunc -- safe | ||
var mathTrunc = Math.trunc || function trunc(x) { | ||
@@ -648,3 +644,3 @@ var n = +x; | ||
// https://tc39.es/ecma262/#sec-object.keys | ||
// eslint-disable-next-line es/no-object-keys -- safe | ||
// eslint-disable-next-line es-x/no-object-keys -- safe | ||
var objectKeys$1 = Object.keys || function keys(O) { | ||
@@ -663,3 +659,3 @@ return internalObjectKeys$1(O, enumBugKeys$2); | ||
// https://tc39.es/ecma262/#sec-object.defineproperties | ||
// eslint-disable-next-line es/no-object-defineproperties -- safe | ||
// eslint-disable-next-line es-x/no-object-defineproperties -- safe | ||
objectDefineProperties.f = DESCRIPTORS$5 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) { | ||
@@ -676,3 +672,3 @@ anObject$3(O); | ||
var getBuiltIn$1 = getBuiltIn$3; | ||
var getBuiltIn$1 = getBuiltIn$4; | ||
@@ -762,3 +758,3 @@ var html$1 = getBuiltIn$1('document', 'documentElement'); | ||
// https://tc39.es/ecma262/#sec-object.create | ||
// eslint-disable-next-line es/no-object-create -- safe | ||
// eslint-disable-next-line es-x/no-object-create -- safe | ||
var objectCreate = Object.create || function create(O, Properties) { | ||
@@ -828,2 +824,3 @@ var result; | ||
var global$3 = global$b; | ||
var uncurryThis$3 = functionUncurryThis; | ||
var isObject$1 = isObject$6; | ||
@@ -856,18 +853,16 @@ var createNonEnumerableProperty$3 = createNonEnumerableProperty$4; | ||
var store$1 = shared.state || (shared.state = new WeakMap()); | ||
/* eslint-disable no-self-assign -- prototype methods protection */ | ||
store$1.get = store$1.get; | ||
store$1.has = store$1.has; | ||
store$1.set = store$1.set; | ||
/* eslint-enable no-self-assign -- prototype methods protection */ | ||
var wmget = uncurryThis$3(store$1.get); | ||
var wmhas = uncurryThis$3(store$1.has); | ||
var wmset = uncurryThis$3(store$1.set); | ||
set = function (it, metadata) { | ||
if (store$1.has(it)) throw TypeError$1(OBJECT_ALREADY_INITIALIZED); | ||
if (wmhas(store$1, it)) throw TypeError$1(OBJECT_ALREADY_INITIALIZED); | ||
metadata.facade = it; | ||
store$1.set(it, metadata); | ||
wmset(store$1, it, metadata); | ||
return metadata; | ||
}; | ||
get = function (it) { | ||
return store$1.get(it) || {}; | ||
return wmget(store$1, it) || {}; | ||
}; | ||
has = function (it) { | ||
return store$1.has(it); | ||
return wmhas(store$1, it); | ||
}; | ||
@@ -904,3 +899,3 @@ } else { | ||
var $propertyIsEnumerable = {}.propertyIsEnumerable; | ||
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe | ||
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe | ||
var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor; | ||
@@ -927,3 +922,3 @@ | ||
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe | ||
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe | ||
var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; | ||
@@ -948,3 +943,3 @@ | ||
var FunctionPrototype = Function.prototype; | ||
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe | ||
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe | ||
var getDescriptor = DESCRIPTORS$2 && Object.getOwnPropertyDescriptor; | ||
@@ -963,7 +958,7 @@ | ||
var uncurryThis$3 = functionUncurryThis; | ||
var uncurryThis$2 = functionUncurryThis; | ||
var isCallable$7 = isCallable$e; | ||
var store = sharedStore; | ||
var functionToString = uncurryThis$3(Function.toString); | ||
var functionToString = uncurryThis$2(Function.toString); | ||
@@ -979,3 +974,2 @@ // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper | ||
var uncurryThis$2 = functionUncurryThis; | ||
var fails$3 = fails$a; | ||
@@ -991,8 +985,4 @@ var isCallable$6 = isCallable$e; | ||
var getInternalState$1 = InternalStateModule$1.get; | ||
var $String$1 = String; | ||
// eslint-disable-next-line es/no-object-defineproperty -- safe | ||
// eslint-disable-next-line es-x/no-object-defineproperty -- safe | ||
var defineProperty$2 = Object.defineProperty; | ||
var stringSlice = uncurryThis$2(''.slice); | ||
var replace = uncurryThis$2(''.replace); | ||
var join = uncurryThis$2([].join); | ||
@@ -1006,4 +996,4 @@ var CONFIGURABLE_LENGTH = DESCRIPTORS$1 && !fails$3(function () { | ||
var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) { | ||
if (stringSlice($String$1(name), 0, 7) === 'Symbol(') { | ||
name = '[' + replace($String$1(name), /^Symbol\(([^)]*)\)/, '$1') + ']'; | ||
if (String(name).slice(0, 7) === 'Symbol(') { | ||
name = '[' + String(name).replace(/^Symbol\(([^)]*)\)/, '$1') + ']'; | ||
} | ||
@@ -1027,3 +1017,3 @@ if (options && options.getter) name = 'get ' + name; | ||
if (!hasOwn$3(state, 'source')) { | ||
state.source = join(TEMPLATE, typeof name == 'string' ? name : ''); | ||
state.source = TEMPLATE.join(typeof name == 'string' ? name : ''); | ||
} return value; | ||
@@ -1075,3 +1065,3 @@ }; | ||
// https://tc39.es/ecma262/#sec-object.getownpropertynames | ||
// eslint-disable-next-line es/no-object-getownpropertynames -- safe | ||
// eslint-disable-next-line es-x/no-object-getownpropertynames -- safe | ||
objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) { | ||
@@ -1083,6 +1073,6 @@ return internalObjectKeys(O, hiddenKeys); | ||
// eslint-disable-next-line es/no-object-getownpropertysymbols -- safe | ||
// eslint-disable-next-line es-x/no-object-getownpropertysymbols -- safe | ||
objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols; | ||
var getBuiltIn = getBuiltIn$3; | ||
var getBuiltIn = getBuiltIn$4; | ||
var uncurryThis$1 = functionUncurryThis; | ||
@@ -1202,3 +1192,3 @@ var getOwnPropertyNamesModule = objectGetOwnPropertyNames; | ||
F.prototype.constructor = null; | ||
// eslint-disable-next-line es/no-object-getprototypeof -- required for testing | ||
// eslint-disable-next-line es-x/no-object-getprototypeof -- required for testing | ||
return Object.getPrototypeOf(new F()) !== F.prototype; | ||
@@ -1219,3 +1209,3 @@ }); | ||
// https://tc39.es/ecma262/#sec-object.getprototypeof | ||
// eslint-disable-next-line es/no-object-getprototypeof -- safe | ||
// eslint-disable-next-line es-x/no-object-getprototypeof -- safe | ||
var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object.getPrototypeOf : function (O) { | ||
@@ -1244,3 +1234,3 @@ var object = toObject(O); | ||
/* eslint-disable es/no-array-prototype-keys -- safe */ | ||
/* eslint-disable es-x/no-array-prototype-keys -- safe */ | ||
if ([].keys) { | ||
@@ -1306,12 +1296,2 @@ arrayIterator = [].keys(); | ||
var uncurryThis = functionUncurryThis; | ||
var aCallable = aCallable$2; | ||
var functionUncurryThisAccessor = function (object, key, method) { | ||
try { | ||
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe | ||
return uncurryThis(aCallable(Object.getOwnPropertyDescriptor(object, key)[method])); | ||
} catch (error) { /* empty */ } | ||
}; | ||
var isCallable$1 = isCallable$e; | ||
@@ -1329,3 +1309,3 @@ | ||
var uncurryThisAccessor = functionUncurryThisAccessor; | ||
var uncurryThis = functionUncurryThis; | ||
var anObject = anObject$5; | ||
@@ -1337,3 +1317,3 @@ var aPossiblePrototype = aPossiblePrototype$1; | ||
// Works with __proto__ only. Old v8 can't work with null proto objects. | ||
// eslint-disable-next-line es/no-object-setprototypeof -- safe | ||
// eslint-disable-next-line es-x/no-object-setprototypeof -- safe | ||
var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () { | ||
@@ -1344,3 +1324,4 @@ var CORRECT_SETTER = false; | ||
try { | ||
setter = uncurryThisAccessor(Object.prototype, '__proto__', 'set'); | ||
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe | ||
setter = uncurryThis(Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set); | ||
setter(test, []); | ||
@@ -1455,8 +1436,2 @@ CORRECT_SETTER = test instanceof Array; | ||
// `CreateIterResultObject` abstract operation | ||
// https://tc39.es/ecma262/#sec-createiterresultobject | ||
var createIterResultObject$1 = function (value, done) { | ||
return { value: value, done: done }; | ||
}; | ||
var toIndexedObject = toIndexedObject$5; | ||
@@ -1468,3 +1443,2 @@ var addToUnscopables = addToUnscopables$1; | ||
var defineIterator = iteratorDefine; | ||
var createIterResultObject = createIterResultObject$1; | ||
var DESCRIPTORS = descriptors; | ||
@@ -1502,7 +1476,7 @@ | ||
state.target = undefined; | ||
return createIterResultObject(undefined, true); | ||
return { value: undefined, done: true }; | ||
} | ||
if (kind == 'keys') return createIterResultObject(index, false); | ||
if (kind == 'values') return createIterResultObject(target[index], false); | ||
return createIterResultObject([index, target[index]], false); | ||
if (kind == 'keys') return { value: index, done: false }; | ||
if (kind == 'values') return { value: target[index], done: false }; | ||
return { value: [index, target[index]], done: false }; | ||
}, 'values'); | ||
@@ -1635,7 +1609,7 @@ | ||
let _$1 = t => t, | ||
_t$1; | ||
_t$1; | ||
const styles = css(_t$1 || (_t$1 = _$1`:host{max-width:max-content;display:inline-flex}.fox-image__rounded{border-radius:50%}.fox-image__rectangle{border-radius:4px}`)); | ||
let _ = t => t, | ||
_t; | ||
_t; | ||
/** | ||
@@ -1647,2 +1621,3 @@ * This is a fox-image | ||
*/ | ||
class FoxImage extends LitElement { | ||
@@ -1655,2 +1630,3 @@ constructor() { | ||
*/ | ||
this.width = '100%'; | ||
@@ -1661,2 +1637,3 @@ /** | ||
*/ | ||
this.fit = 'cover'; | ||
@@ -1667,2 +1644,3 @@ /** | ||
*/ | ||
this.rounded = false; | ||
@@ -1673,4 +1651,6 @@ /** | ||
*/ | ||
this.rectangle = false; | ||
} | ||
render() { | ||
@@ -1684,2 +1664,3 @@ const imageSizes = { | ||
}; | ||
if (this.size) { | ||
@@ -1689,2 +1670,3 @@ this.height = imageSizes[this.size]; | ||
} | ||
const classes = { | ||
@@ -1704,13 +1686,18 @@ 'fox-image__rounded': this.rounded, | ||
} | ||
} | ||
FoxImage.styles = [styles]; | ||
__decorate([property({ | ||
type: String | ||
}), __metadata("design:type", String)], FoxImage.prototype, "size", void 0); | ||
__decorate([property({ | ||
type: String | ||
}), __metadata("design:type", Object)], FoxImage.prototype, "width", void 0); | ||
__decorate([property({ | ||
type: String | ||
}), __metadata("design:type", String)], FoxImage.prototype, "height", void 0); | ||
__decorate([property({ | ||
@@ -1720,8 +1707,11 @@ type: String, | ||
}), __metadata("design:type", String)], FoxImage.prototype, "fit", void 0); | ||
__decorate([property({ | ||
type: Boolean | ||
}), __metadata("design:type", Object)], FoxImage.prototype, "rounded", void 0); | ||
__decorate([property({ | ||
type: Boolean | ||
}), __metadata("design:type", Object)], FoxImage.prototype, "rectangle", void 0); | ||
__decorate([property({ | ||
@@ -1731,2 +1721,3 @@ type: String, | ||
}), __metadata("design:type", String)], FoxImage.prototype, "src", void 0); | ||
__decorate([property({ | ||
@@ -1736,3 +1727,5 @@ type: String, | ||
}), __metadata("design:type", String)], FoxImage.prototype, "alt", void 0); | ||
const name = 'fox-image'; | ||
if (!customElements.get(name)) { | ||
@@ -1739,0 +1732,0 @@ customElements.define(name, FoxImage); |
{ | ||
"name": "@assecosolutions/fox-image", | ||
"version": "1.11.2-beta.1", | ||
"version": "1.11.2", | ||
"public": true, | ||
@@ -18,3 +18,3 @@ "publishConfig": { | ||
"type": "module", | ||
"types": "./src/index.d.ts", | ||
"types": "./index.d.ts", | ||
"dependencies": {}, | ||
@@ -21,0 +21,0 @@ "peerDependencies": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
1
62845
1514