@intelligentgrowthsolutions/eco
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -1,122 +0,1 @@ | ||
import { B as BUILD, c as consoleDevInfo, p as plt, w as win, H, d as doc, N as NAMESPACE, a as promiseResolve, b as bootstrapLazy } from './index-5fcaba2c.js'; | ||
import { g as globalScripts } from './app-globals-0f993ce5.js'; | ||
/* | ||
Stencil Client Patch Browser v2.3.0 | MIT Licensed | https://stenciljs.com | ||
*/ | ||
const getDynamicImportFunction = (namespace) => `__sc_import_${namespace.replace(/\s|-/g, '_')}`; | ||
const patchBrowser = () => { | ||
// NOTE!! This fn cannot use async/await! | ||
if (BUILD.isDev && !BUILD.isTesting) { | ||
consoleDevInfo('Running in development mode.'); | ||
} | ||
if (BUILD.cssVarShim) { | ||
// shim css vars | ||
plt.$cssShim$ = win.__cssshim; | ||
} | ||
if (BUILD.cloneNodeFix) { | ||
// opted-in to polyfill cloneNode() for slot polyfilled components | ||
patchCloneNodeFix(H.prototype); | ||
} | ||
if (BUILD.profile && !performance.mark) { | ||
// not all browsers support performance.mark/measure (Safari 10) | ||
performance.mark = performance.measure = () => { | ||
/*noop*/ | ||
}; | ||
performance.getEntriesByName = () => []; | ||
} | ||
// @ts-ignore | ||
const scriptElm = BUILD.scriptDataOpts || BUILD.safari10 || BUILD.dynamicImportShim | ||
? Array.from(doc.querySelectorAll('script')).find(s => new RegExp(`\/${NAMESPACE}(\\.esm)?\\.js($|\\?|#)`).test(s.src) || s.getAttribute('data-stencil-namespace') === NAMESPACE) | ||
: null; | ||
const importMeta = import.meta.url; | ||
const opts = BUILD.scriptDataOpts ? scriptElm['data-opts'] || {} : {}; | ||
if (BUILD.safari10 && 'onbeforeload' in scriptElm && !history.scrollRestoration /* IS_ESM_BUILD */) { | ||
// Safari < v11 support: This IF is true if it's Safari below v11. | ||
// This fn cannot use async/await since Safari didn't support it until v11, | ||
// however, Safari 10 did support modules. Safari 10 also didn't support "nomodule", | ||
// so both the ESM file and nomodule file would get downloaded. Only Safari | ||
// has 'onbeforeload' in the script, and "history.scrollRestoration" was added | ||
// to Safari in v11. Return a noop then() so the async/await ESM code doesn't continue. | ||
// IS_ESM_BUILD is replaced at build time so this check doesn't happen in systemjs builds. | ||
return { | ||
then() { | ||
/* promise noop */ | ||
}, | ||
}; | ||
} | ||
if (!BUILD.safari10 && importMeta !== '') { | ||
opts.resourcesUrl = new URL('.', importMeta).href; | ||
} | ||
else if (BUILD.dynamicImportShim || BUILD.safari10) { | ||
opts.resourcesUrl = new URL('.', new URL(scriptElm.getAttribute('data-resources-url') || scriptElm.src, win.location.href)).href; | ||
if (BUILD.dynamicImportShim) { | ||
patchDynamicImport(opts.resourcesUrl, scriptElm); | ||
} | ||
if (BUILD.dynamicImportShim && !win.customElements) { | ||
// module support, but no custom elements support (Old Edge) | ||
// @ts-ignore | ||
return import(/* webpackChunkName: "polyfills-dom" */ './dom-424264d0.js').then(() => opts); | ||
} | ||
} | ||
return promiseResolve(opts); | ||
}; | ||
const patchDynamicImport = (base, orgScriptElm) => { | ||
const importFunctionName = getDynamicImportFunction(NAMESPACE); | ||
try { | ||
// test if this browser supports dynamic imports | ||
// There is a caching issue in V8, that breaks using import() in Function | ||
// By generating a random string, we can workaround it | ||
// Check https://bugs.chromium.org/p/chromium/issues/detail?id=990810 for more info | ||
win[importFunctionName] = new Function('w', `return import(w);//${Math.random()}`); | ||
} | ||
catch (e) { | ||
// this shim is specifically for browsers that do support "esm" imports | ||
// however, they do NOT support "dynamic" imports | ||
// basically this code is for old Edge, v18 and below | ||
const moduleMap = new Map(); | ||
win[importFunctionName] = (src) => { | ||
const url = new URL(src, base).href; | ||
let mod = moduleMap.get(url); | ||
if (!mod) { | ||
const script = doc.createElement('script'); | ||
script.type = 'module'; | ||
script.crossOrigin = orgScriptElm.crossOrigin; | ||
script.src = URL.createObjectURL(new Blob([`import * as m from '${url}'; window.${importFunctionName}.m = m;`], { type: 'application/javascript' })); | ||
mod = new Promise(resolve => { | ||
script.onload = () => { | ||
resolve(win[importFunctionName].m); | ||
script.remove(); | ||
}; | ||
}); | ||
moduleMap.set(url, mod); | ||
doc.head.appendChild(script); | ||
} | ||
return mod; | ||
}; | ||
} | ||
}; | ||
const patchCloneNodeFix = (HTMLElementPrototype) => { | ||
const nativeCloneNodeFn = HTMLElementPrototype.cloneNode; | ||
HTMLElementPrototype.cloneNode = function (deep) { | ||
if (this.nodeName === 'TEMPLATE') { | ||
return nativeCloneNodeFn.call(this, deep); | ||
} | ||
const clonedNode = nativeCloneNodeFn.call(this, false); | ||
const srcChildNodes = this.childNodes; | ||
if (deep) { | ||
for (let i = 0; i < srcChildNodes.length; i++) { | ||
// Node.ATTRIBUTE_NODE === 2, and checking because IE11 | ||
if (srcChildNodes[i].nodeType !== 2) { | ||
clonedNode.appendChild(srcChildNodes[i].cloneNode(true)); | ||
} | ||
} | ||
} | ||
return clonedNode; | ||
}; | ||
}; | ||
patchBrowser().then(options => { | ||
globalScripts(); | ||
return bootstrapLazy([["eco-input-file",[[1,"eco-input-file",{"label":[1],"help":[1],"optional":[1],"value":[1],"status":[1],"width":[1],"disabled":[4],"readonly":[4],"required":[4],"inputId":[1,"input-id"]}]]],["eco-card",[[1,"eco-card",{"cardQaId":[1,"card-qa-id"],"sticky":[4],"collapsable":[4],"collapsed":[4]}]]],["eco-input-date",[[1,"eco-input-date",{"label":[1],"help":[1],"optional":[1],"readonly":[4],"required":[4],"disabled":[4],"withnow":[4],"withtime":[4],"ddmin":[2],"ddmax":[2],"mmmin":[2],"mmmax":[2],"yyyymin":[2],"yyyymax":[2],"minutemin":[2],"minutemax":[2],"hourmin":[2],"hourmax":[2]}]]],["eco-input-text",[[1,"eco-input-text",{"type":[1],"label":[1],"help":[1],"optional":[1],"value":[1],"status":[1],"width":[1],"disabled":[4],"readonly":[4],"required":[4],"inputId":[1,"input-id"]}]]],["eco-input-textarea",[[1,"eco-input-textarea",{"label":[1],"value":[1],"help":[1],"optional":[1],"status":[1],"width":[1],"height":[1],"disabled":[4],"readonly":[4],"required":[4],"resize":[4],"inputId":[1,"input-id"]}]]],["eco-radio-group",[[1,"eco-radio-group",{"label":[1],"help":[1],"radioData":[16]}]]],["eco-select",[[4,"eco-select",{"label":[1],"help":[1],"name":[1],"optional":[1],"status":[1],"width":[1],"selectQaId":[1,"select-qa-id"],"disabled":[4],"required":[4],"inputId":[1,"input-id"]}]]],["eco-checkbox",[[1,"eco-checkbox",{"label":[1],"name":[1],"checkboxQaId":[1,"checkbox-qa-id"],"checked":[4],"disabled":[4],"inputId":[1,"input-id"]}]]],["eco-messagebox",[[1,"eco-messagebox",{"type":[1],"icon":[1],"icontype":[1]}]]],["eco-radio-button",[[1,"eco-radio-button",{"name":[1],"label":[1],"radioQaId":[1,"radio-qa-id"],"checked":[4],"disabled":[4],"controlValue":[1,"control-value"],"inputId":[1,"input-id"]}]]],["eco-description",[[1,"eco-description",{"term":[1],"description":[1],"descQaId":[1,"desc-qa-id"]}]]],["eco-description-group",[[1,"eco-description-group",{"vertical":[4]}]]],["eco-table",[[1,"eco-table"]]],["eco-input-number",[[1,"eco-input-number",{"type":[1],"label":[1],"help":[1],"optional":[1],"value":[2],"status":[1],"width":[1],"disabled":[4],"readonly":[4],"required":[4],"min":[2],"max":[2],"step":[2],"inputId":[1,"input-id"]}]]],["eco-icon",[[1,"eco-icon",{"icon":[1],"icontype":[1],"iconsize":[1],"url":[1]}]]],["eco-button",[[1,"eco-button",{"label":[1],"size":[1],"type":[1],"disabled":[4],"icon":[1],"icontype":[1],"iconsize":[1]}]]],["eco-card-body",[[1,"eco-card-body"]]],["eco-card-footer",[[1,"eco-card-footer"]]],["eco-card-header",[[1,"eco-card-header"]]],["eco-text-input-optional",[[1,"eco-text-input-optional"]]],["eco-text-input-help",[[1,"eco-text-input-help"]]],["eco-text-label",[[1,"eco-text-label",{"for":[1],"labelQaId":[1,"label-qa-id"],"wrap":[4]}]]]], options); | ||
}); | ||
import{p as e,b as a}from"./p-8908b1ea.js";(()=>{const a=import.meta.url,i={};return""!==a&&(i.resourcesUrl=new URL(".",a).href),e(i)})().then((e=>a([["p-2b792b7f",[[1,"eco-icon",{icon:[1],icontype:[1],iconsize:[1],url:[1]}]]],["p-2104b95b",[[1,"eco-input-file",{label:[1],help:[1],optional:[1],value:[1],status:[1],width:[1],disabled:[4],readonly:[4],required:[4],inputId:[1,"input-id"]}]]],["p-24b61043",[[1,"eco-card",{cardQaId:[1,"card-qa-id"],sticky:[4],collapsable:[4],collapsed:[4]}]]],["p-bfcf61ab",[[1,"eco-input-date",{label:[1],help:[1],optional:[1],readonly:[4],required:[4],disabled:[4],withnow:[4],withtime:[4],ddmin:[2],ddmax:[2],mmmin:[2],mmmax:[2],yyyymin:[2],yyyymax:[2],minutemin:[2],minutemax:[2],hourmin:[2],hourmax:[2]}]]],["p-18c6956c",[[1,"eco-input-text",{type:[1],label:[1],help:[1],optional:[1],value:[1],status:[1],width:[1],disabled:[4],readonly:[4],required:[4],inputId:[1,"input-id"]}]]],["p-df4d18c8",[[1,"eco-input-textarea",{label:[1],value:[1],help:[1],optional:[1],status:[1],width:[1],height:[1],disabled:[4],readonly:[4],required:[4],resize:[4],inputId:[1,"input-id"]}]]],["p-1242c800",[[1,"eco-radio-group",{label:[1],help:[1],radioData:[16]}]]],["p-703e41f0",[[4,"eco-select",{label:[1],help:[1],name:[1],optional:[1],status:[1],width:[1],selectQaId:[1,"select-qa-id"],disabled:[4],required:[4],inputId:[1,"input-id"]}]]],["p-7c96afeb",[[1,"eco-checkbox",{label:[1],name:[1],checkboxQaId:[1,"checkbox-qa-id"],checked:[4],disabled:[4],inputId:[1,"input-id"]}]]],["p-dc6fab70",[[1,"eco-messagebox",{type:[1],icon:[1],icontype:[1]}]]],["p-1e6376d0",[[1,"eco-radio-button",{name:[1],label:[1],radioQaId:[1,"radio-qa-id"],checked:[4],disabled:[4],controlValue:[1,"control-value"],inputId:[1,"input-id"]}]]],["p-81e19add",[[1,"eco-description",{term:[1],description:[1],descQaId:[1,"desc-qa-id"]}]]],["p-178d8da8",[[1,"eco-description-group",{vertical:[4]}]]],["p-ae9f7192",[[1,"eco-table"]]],["p-5f0647fa",[[1,"eco-text-label",{for:[1],labelQaId:[1,"label-qa-id"],wrap:[4]}]]],["p-e73b2438",[[1,"eco-input-number",{type:[1],label:[1],help:[1],optional:[1],value:[2],status:[1],width:[1],disabled:[4],readonly:[4],required:[4],min:[2],max:[2],step:[2],inputId:[1,"input-id"]}]]],["p-cafbc95f",[[1,"eco-button",{label:[1],size:[1],type:[1],disabled:[4],icon:[1],icontype:[1],iconsize:[1]}]]],["p-08f0a10b",[[1,"eco-card-body"],[1,"eco-card-footer"],[1,"eco-card-header"]]],["p-e7404a01",[[1,"eco-text-input-optional"],[1,"eco-text-input-help"]]]],e))); |
{ | ||
"name": "@intelligentgrowthsolutions/eco", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "Eco Design System for Intelligent Growth Solutions", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.cjs.js", |
Sorry, the diff of this file is not supported yet
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
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
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
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
665071
248
0
12501
21
3