Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

credcomponents

Package Overview
Dependencies
Maintainers
1
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

credcomponents - npm Package Compare versions

Comparing version 0.1.40 to 0.1.41

.eslintrc.js

2

dist/remoteEntry.js

@@ -1,2 +0,2 @@

var app_component;(function(){"use strict";var n={6828:function(n,e,t){var r={"./FileUpload":function(){return Promise.all([t.e(345),t.e(915)]).then((function(){return function(){return t(7740)}}))}},o=function(n,e){return t.R=e,e=t.o(r,n)?r[n]():Promise.resolve().then((function(){throw new Error('Module "'+n+'" does not exist in container.')})),t.R=void 0,e},i=function(n,e){if(t.S){var r=t.S["default"],o="default";if(r&&r!==n)throw new Error("Container initialization failed as it has already been initialized with a different share scope");return t.S[o]=n,t.I(o,e)}};t.d(e,{get:function(){return o},init:function(){return i}})}},e={};function t(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={exports:{}};return n[r](i,i.exports,t),i.exports}t.m=n,t.c=e,function(){var n=[];t.O=function(e,r,o,i){if(!r){var u=1/0;for(s=0;s<n.length;s++){r=n[s][0],o=n[s][1],i=n[s][2];for(var a=!0,f=0;f<r.length;f++)(!1&i||u>=i)&&Object.keys(t.O).every((function(n){return t.O[n](r[f])}))?r.splice(f--,1):(a=!1,i<u&&(u=i));if(a){n.splice(s--,1);var c=o();void 0!==c&&(e=c)}}return e}i=i||0;for(var s=n.length;s>0&&n[s-1][2]>i;s--)n[s]=n[s-1];n[s]=[r,o,i]}}(),function(){t.d=function(n,e){for(var r in e)t.o(e,r)&&!t.o(n,r)&&Object.defineProperty(n,r,{enumerable:!0,get:e[r]})}}(),function(){t.f={},t.e=function(n){return Promise.all(Object.keys(t.f).reduce((function(e,r){return t.f[r](n,e),e}),[]))}}(),function(){t.u=function(n){return"js/"+n+"."+{144:"abb452cd",345:"64873de9",915:"84a2a9bc"}[n]+".js"}}(),function(){t.miniCssF=function(n){return"css/"+n+".71ccb6b9.css"}}(),function(){t.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(n){if("object"===typeof window)return window}}()}(),function(){t.o=function(n,e){return Object.prototype.hasOwnProperty.call(n,e)}}(),function(){var n={},e="credcomponents:";t.l=function(r,o,i,u){if(n[r])n[r].push(o);else{var a,f;if(void 0!==i)for(var c=document.getElementsByTagName("script"),s=0;s<c.length;s++){var l=c[s];if(l.getAttribute("src")==r||l.getAttribute("data-webpack")==e+i){a=l;break}}a||(f=!0,a=document.createElement("script"),a.charset="utf-8",a.timeout=120,t.nc&&a.setAttribute("nonce",t.nc),a.setAttribute("data-webpack",e+i),a.src=r),n[r]=[o];var d=function(e,t){a.onerror=a.onload=null,clearTimeout(p);var o=n[r];if(delete n[r],a.parentNode&&a.parentNode.removeChild(a),o&&o.forEach((function(n){return n(t)})),e)return e(t)},p=setTimeout(d.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=d.bind(null,a.onerror),a.onload=d.bind(null,a.onload),f&&document.head.appendChild(a)}}}(),function(){t.r=function(n){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})}}(),function(){var e={},r={};t.f.remotes=function(o,i){t.o(e,o)&&e[o].forEach((function(e){var o=t.R;o||(o=[]);var u=r[e];if(!(o.indexOf(u)>=0)){if(o.push(u),u.p)return i.push(u.p);var a=function(t){t||(t=new Error("Container missing")),"string"===typeof t.message&&(t.message+='\nwhile loading "'+u[1]+'" from '+u[2]),n[e]=function(){throw t},u.p=0},f=function(n,e,t,r,o,f){try{var c=n(e,t);if(!c||!c.then)return o(c,r,f);var s=c.then((function(n){return o(n,r)}),a);if(!f)return s;i.push(u.p=s)}catch(l){a(l)}},c=function(n,e,r){return n?f(t.I,u[0],0,n,s,r):a()},s=function(n,e,t){return f(e.get,u[1],o,0,l,t)},l=function(t){u.p=1,n[e]=function(n){n.exports=t()}};f(t,u[2],0,0,c,1)}}))}}(),function(){t.S={};var n={},e={};t.I=function(r,o){o||(o=[]);var i=e[r];if(i||(i=e[r]={}),!(o.indexOf(i)>=0)){if(o.push(i),n[r])return n[r];t.o(t.S,r)||(t.S[r]={});var u=t.S[r],a="credcomponents",f=function(n,e,t,r){var o=u[n]=u[n]||{},i=o[e];(!i||!i.loaded&&(!r!=!i.eager?r:a>i.from))&&(o[e]={get:t,from:a,eager:!!r})},c=[];switch(r){case"default":f("vue","2.6.14",(function(){return t.e(144).then((function(){return function(){return t(144)}}))}));break}return c.length?n[r]=Promise.all(c).then((function(){return n[r]=1})):n[r]=1}}}(),function(){t.p=""}(),function(){var n=function(n,e,t,r){var o=document.createElement("link");o.rel="stylesheet",o.type="text/css";var i=function(i){if(o.onerror=o.onload=null,"load"===i.type)t();else{var u=i&&("load"===i.type?"missing":i.type),a=i&&i.target&&i.target.href||e,f=new Error("Loading CSS chunk "+n+" failed.\n("+a+")");f.code="CSS_CHUNK_LOAD_FAILED",f.type=u,f.request=a,o.parentNode.removeChild(o),r(f)}};return o.onerror=o.onload=i,o.href=e,document.head.appendChild(o),o},e=function(n,e){for(var t=document.getElementsByTagName("link"),r=0;r<t.length;r++){var o=t[r],i=o.getAttribute("data-href")||o.getAttribute("href");if("stylesheet"===o.rel&&(i===n||i===e))return o}var u=document.getElementsByTagName("style");for(r=0;r<u.length;r++){o=u[r],i=o.getAttribute("data-href");if(i===n||i===e)return o}},r=function(r){return new Promise((function(o,i){var u=t.miniCssF(r),a=t.p+u;if(e(u,a))return o();n(r,a,o,i)}))},o={966:0};t.f.miniCss=function(n,e){var t={915:1};o[n]?e.push(o[n]):0!==o[n]&&t[n]&&e.push(o[n]=r(n).then((function(){o[n]=0}),(function(e){throw delete o[n],e})))}}(),function(){var n={966:0,64:0};t.f.j=function(e,r){var o=t.o(n,e)?n[e]:void 0;if(0!==o)if(o)r.push(o[2]);else if(64!=e){var i=new Promise((function(t,r){o=n[e]=[t,r]}));r.push(o[2]=i);var u=t.p+t.u(e),a=new Error,f=function(r){if(t.o(n,e)&&(o=n[e],0!==o&&(n[e]=void 0),o)){var i=r&&("load"===r.type?"missing":r.type),u=r&&r.target&&r.target.src;a.message="Loading chunk "+e+" failed.\n("+i+": "+u+")",a.name="ChunkLoadError",a.type=i,a.request=u,o[1](a)}};t.l(u,f,"chunk-"+e,e)}else n[e]=0},t.O.j=function(e){return 0===n[e]};var e=function(e,r){var o,i,u=r[0],a=r[1],f=r[2],c=0;if(u.some((function(e){return 0!==n[e]}))){for(o in a)t.o(a,o)&&(t.m[o]=a[o]);if(f)var s=f(t)}for(e&&e(r);c<u.length;c++)i=u[c],t.o(n,i)&&n[i]&&n[i][0](),n[u[c]]=0;return t.O(s)},r=self["webpackChunkcredcomponents"]=self["webpackChunkcredcomponents"]||[];r.forEach(e.bind(null,0)),r.push=e.bind(null,r.push.bind(r))}();var r=t.O(void 0,[64],(function(){return t(6828)}));r=t.O(r),app_component=r})();
var micro_credcomponents;(function(){var n={2476:function(n,e,t){document.currentScript&&(t.p=document.currentScript.src+"/../")},4698:function(n,e,t){"use strict";var r={"./FileUpload":function(){return t.e(213).then((function(){return function(){return t(8213)}}))}},o=function(n,e){return t.R=e,e=t.o(r,n)?r[n]():Promise.resolve().then((function(){throw new Error('Module "'+n+'" does not exist in container.')})),t.R=void 0,e},i=function(n,e){if(t.S){var r=t.S["default"],o="default";if(r&&r!==n)throw new Error("Container initialization failed as it has already been initialized with a different share scope");return t.S[o]=n,t.I(o,e)}};t.d(e,{get:function(){return o},init:function(){return i}})}},e={};function t(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={exports:{}};return n[r](i,i.exports,t),i.exports}t.m=n,t.c=e,function(){t.d=function(n,e){for(var r in e)t.o(e,r)&&!t.o(n,r)&&Object.defineProperty(n,r,{enumerable:!0,get:e[r]})}}(),function(){t.f={},t.e=function(n){return Promise.all(Object.keys(t.f).reduce((function(e,r){return t.f[r](n,e),e}),[]))}}(),function(){t.u=function(n){return"js/"+n+"."+{144:"abb452cd",213:"ef6f1c90"}[n]+".js"}}(),function(){t.miniCssF=function(n){return"css/"+n+".380b7d0e.css"}}(),function(){t.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(n){if("object"===typeof window)return window}}()}(),function(){t.o=function(n,e){return Object.prototype.hasOwnProperty.call(n,e)}}(),function(){var n={},e="credcomponents:";t.l=function(r,o,i,u){if(n[r])n[r].push(o);else{var c,f;if(void 0!==i)for(var a=document.getElementsByTagName("script"),s=0;s<a.length;s++){var d=a[s];if(d.getAttribute("src")==r||d.getAttribute("data-webpack")==e+i){c=d;break}}c||(f=!0,c=document.createElement("script"),c.charset="utf-8",c.timeout=120,t.nc&&c.setAttribute("nonce",t.nc),c.setAttribute("data-webpack",e+i),c.src=r),n[r]=[o];var l=function(e,t){c.onerror=c.onload=null,clearTimeout(p);var o=n[r];if(delete n[r],c.parentNode&&c.parentNode.removeChild(c),o&&o.forEach((function(n){return n(t)})),e)return e(t)},p=setTimeout(l.bind(null,void 0,{type:"timeout",target:c}),12e4);c.onerror=l.bind(null,c.onerror),c.onload=l.bind(null,c.onload),f&&document.head.appendChild(c)}}}(),function(){t.r=function(n){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})}}(),function(){var e={},r={};t.f.remotes=function(o,i){t.o(e,o)&&e[o].forEach((function(e){var o=t.R;o||(o=[]);var u=r[e];if(!(o.indexOf(u)>=0)){if(o.push(u),u.p)return i.push(u.p);var c=function(t){t||(t=new Error("Container missing")),"string"===typeof t.message&&(t.message+='\nwhile loading "'+u[1]+'" from '+u[2]),n[e]=function(){throw t},u.p=0},f=function(n,e,t,r,o,f){try{var a=n(e,t);if(!a||!a.then)return o(a,r,f);var s=a.then((function(n){return o(n,r)}),c);if(!f)return s;i.push(u.p=s)}catch(d){c(d)}},a=function(n,e,r){return n?f(t.I,u[0],0,n,s,r):c()},s=function(n,e,t){return f(e.get,u[1],o,0,d,t)},d=function(t){u.p=1,n[e]=function(n){n.exports=t()}};f(t,u[2],0,0,a,1)}}))}}(),function(){t.S={};var n={},e={};t.I=function(r,o){o||(o=[]);var i=e[r];if(i||(i=e[r]={}),!(o.indexOf(i)>=0)){if(o.push(i),n[r])return n[r];t.o(t.S,r)||(t.S[r]={});var u=t.S[r],c="credcomponents",f=function(n,e,t,r){var o=u[n]=u[n]||{},i=o[e];(!i||!i.loaded&&(!r!=!i.eager?r:c>i.from))&&(o[e]={get:t,from:c,eager:!!r})},a=[];switch(r){case"default":f("vue","2.6.14",(function(){return t.e(144).then((function(){return function(){return t(144)}}))}));break}return a.length?n[r]=Promise.all(a).then((function(){return n[r]=1})):n[r]=1}}}(),function(){t.p=""}(),function(){var n=function(n,e,t,r){var o=document.createElement("link");o.rel="stylesheet",o.type="text/css";var i=function(i){if(o.onerror=o.onload=null,"load"===i.type)t();else{var u=i&&("load"===i.type?"missing":i.type),c=i&&i.target&&i.target.href||e,f=new Error("Loading CSS chunk "+n+" failed.\n("+c+")");f.code="CSS_CHUNK_LOAD_FAILED",f.type=u,f.request=c,o.parentNode.removeChild(o),r(f)}};return o.onerror=o.onload=i,o.href=e,document.head.appendChild(o),o},e=function(n,e){for(var t=document.getElementsByTagName("link"),r=0;r<t.length;r++){var o=t[r],i=o.getAttribute("data-href")||o.getAttribute("href");if("stylesheet"===o.rel&&(i===n||i===e))return o}var u=document.getElementsByTagName("style");for(r=0;r<u.length;r++){o=u[r],i=o.getAttribute("data-href");if(i===n||i===e)return o}},r=function(r){return new Promise((function(o,i){var u=t.miniCssF(r),c=t.p+u;if(e(u,c))return o();n(r,c,o,i)}))},o={874:0};t.f.miniCss=function(n,e){var t={213:1};o[n]?e.push(o[n]):0!==o[n]&&t[n]&&e.push(o[n]=r(n).then((function(){o[n]=0}),(function(e){throw delete o[n],e})))}}(),function(){var n={874:0};t.f.j=function(e,r){var o=t.o(n,e)?n[e]:void 0;if(0!==o)if(o)r.push(o[2]);else{var i=new Promise((function(t,r){o=n[e]=[t,r]}));r.push(o[2]=i);var u=t.p+t.u(e),c=new Error,f=function(r){if(t.o(n,e)&&(o=n[e],0!==o&&(n[e]=void 0),o)){var i=r&&("load"===r.type?"missing":r.type),u=r&&r.target&&r.target.src;c.message="Loading chunk "+e+" failed.\n("+i+": "+u+")",c.name="ChunkLoadError",c.type=i,c.request=u,o[1](c)}};t.l(u,f,"chunk-"+e,e)}};var e=function(e,r){var o,i,u=r[0],c=r[1],f=r[2],a=0;if(u.some((function(e){return 0!==n[e]}))){for(o in c)t.o(c,o)&&(t.m[o]=c[o]);if(f)f(t)}for(e&&e(r);a<u.length;a++)i=u[a],t.o(n,i)&&n[i]&&n[i][0](),n[u[a]]=0},r=self["webpackChunkcredcomponents"]=self["webpackChunkcredcomponents"]||[];r.forEach(e.bind(null,0)),r.push=e.bind(null,r.push.bind(r))}(),t(2476);var r=t(4698);micro_credcomponents=r})();
//# sourceMappingURL=remoteEntry.js.map
{
"name": "credcomponents",
"version": "0.1.40",
"version": "0.1.41",
"repository": {
"type": "git",
"url": "https://gitlab.credenceanalytics.com/iwf/app-component.git"
},
"scripts": {

@@ -53,16 +57,2 @@ "serve": "vue-cli-service serve",

},
"eslintConfig": {
"root": true,
"env": {
"node": true
},
"extends": [
"plugin:vue/vue3-essential",
"eslint:recommended"
],
"parserOptions": {
"parser": "@babel/eslint-parser"
},
"rules": {}
},
"browserslist": [

@@ -69,0 +59,0 @@ "> 1%",

@@ -1,44 +0,91 @@

# app-component
# Installation
## Project setup
```bash
npm install credcomponents --save
```
npm install
```
## Available components to use
- Chat
- File Upload
- Macro Component
- Maps
- Mega Menu
- Tooltip
### Compiles and hot-reloads for development
```
npm run serve
```
## Available directives to use
- Comma Seprator
- Sticky Scroll
### Compiles and minifies for production
```
npm run build
```
## Available utilities to use
- LoadScript
- Using `LoadScript` utility function you can load external files and can be unloaded using `unloadScript` utility function.
- There are also other utilities to check type of variables, is property are available or not in object, loops, filters.
### Lints and fixes files
## Usage
All the components, directives and utilites are tree shaked, where you will install only specific dependency not others with it.
```js
import {
// Components
FileUpload,
Chat,
Macro,
BubbleMap,
GoogleMap,
LeafletMaps,
LineMap,
yandexMap,
ymapMarker,
...,
// Directives
CommaSeprator,
StickyScroll,
...,
// Utilities
isPrimitive,
isUndef,
isDef,
isTrue,
isFalse,
isPrimitive,
isRefrence,
isPlainArray,
isPlainObject,
isRegExp,
isFunction,
isPromise,
isValidArrayIndex,
toNumber,
...
} from 'credcomponents'
```
npm run lint
```
### Customize configuration
See [Configuration Reference](https://cli.vuejs.org/config/).
```js
// plugin
// To use Macro component you need to register it globally via plugin
import Vue from 'vue'
import { Macro } from 'credcomponents'
Vue.use(Macro, {
applicationName: "<< Your appname>>", macroJSFileUrl: "<<Your path for macro file, where in custom code get executed>>"
});
```
## WebComponents
1. Mega Menu.
To Use mega menu include `./webcomponents\credence.min.js` in your html file and add this custom tag in your html file
`<credence-mega-menu-web-component></credence-mega-menu-web-component>`.
e.g:
```html
<script src="https://unpkg.com/vue"></script>
<script src="./credence.js"></script>
## Above components can be used as webcomponents in your legacy application.
<credence-mega-menu-web-component id="mega-menu"></credence-mega-menu-web-component>
```
- To pass mega menu details use below code
<script>
var megamenu = document.querySelector("credence-mega-menu-web-component");
megamenu.vueComponent.menuList = [];
<!-- where menuList can be a promise which return a array or array -->
</script>
- Include `webcomponents/credence.min.js` in your html file or load the you load other javascript files.
- The use above published component this way.
```html
<!doctype html>
<meta charset="utf-8">
<title>credence demo</title>
<script src="https://unpkg.com/vue"></script>
<script src="/credcomponents/webcomponents/credence.min.js"></script>
<credence-file-upload></credence-file-upload>
<credence-macro></credence-macro>
<credence-mega-menu-web-component></credence-mega-menu-web-component>
```

@@ -1,4 +0,9 @@

const REMOTES_AND_EXPOSED_MODULES = require("./remotesAndExposedModules");
const overrideVueConfigs = require("./micro-frontends/index");
const VueConfig = {
configureWebpack: {
optimization: {
splitChunks: false
},
},
module.exports = {
chainWebpack: config => {

@@ -20,23 +25,6 @@

.loader('svg-url-loader');
if (!process.env.IGNORE_MODULE_FEDERATION) {
config.plugin('module-federation-plugin')
.use(require('webpack').container.ModuleFederationPlugin, [REMOTES_AND_EXPOSED_MODULES])
}
},
publicPath: './',
}
devServer: {
port: 9696,
https: true,
headers: {
"Access-Control-Allow-Origin": "*",
"Access-Control-Allow-Methods": "GET, POST, PUT, DELETE, PATCH, OPTIONS",
"Access-Control-Allow-Headers":
"X-Requested-With, content-type, Authorization",
}
}
}
module.exports = overrideVueConfigs(VueConfig);

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc