0.1.48 • Published 2 years ago

credcomponents v0.1.48

Weekly downloads
148
License
-
Repository
gitlab
Last release
2 years ago

Installation

npm install credcomponents --save

Available components to use

- Chat
- File Upload
- Macro Component
- Maps
- Mega Menu
- Tooltip

Available directives to use

- Comma Seprator
- Sticky Scroll

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.

Usage

All the components, directives and utilites are tree shaked, where you will install only specific dependency not others with it.

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'
// 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>>" 
});

Above components can be used as webcomponents in your legacy application.

  • Include webcomponents/credence.min.js in your html file or load the you load other javascript files.
  • The use above published component this way.
<!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>

Each published components, directives and utility can be installed individually instead of installing all package credcomponents.

  • e.g
npm install @credenceanalytics/file-upload --save
npm install @credenceanalytics/macro-component --save
// plugin
// To use Macro component you need to register it globally via plugin
import Vue from 'vue'
import { Macro } from '@credenceanalytics/macro-component'

Vue.use(Macro, { 
    applicationName: "<< Your appname>>", macroJSFileUrl: "<<Your path for macro file, where in custom code get executed>>" 
});

import { FileUpload } from "@credenceanalytics/file-upload";

import SearchBar from "@credenceanalytics/search-bar"
0.1.48

2 years ago

0.1.44

2 years ago

0.1.45

2 years ago

0.1.41

2 years ago

0.1.42

2 years ago

0.1.40

2 years ago

0.1.39

3 years ago

0.1.38

3 years ago

0.1.36

3 years ago

0.1.37

3 years ago

0.1.34

3 years ago

0.1.35

3 years ago

0.1.33

3 years ago

0.1.32

3 years ago

0.1.31

3 years ago

0.1.29

3 years ago

0.1.28

3 years ago

0.1.27

3 years ago

0.1.22

3 years ago

0.1.23

3 years ago

0.1.24

3 years ago

0.1.25

3 years ago

0.1.26

3 years ago

0.1.21

3 years ago

0.1.20

3 years ago

0.1.19

3 years ago

0.1.18

3 years ago

0.1.17

3 years ago

0.1.16

3 years ago

0.1.14

3 years ago

0.1.15

3 years ago

0.1.13

3 years ago

0.1.12

3 years ago

0.1.11

3 years ago

0.1.10

3 years ago

0.1.8

3 years ago

0.1.9

3 years ago

0.1.7

3 years ago

0.1.6

3 years ago

0.1.5

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago