@sme.up/kokos-ketchup-converters
TypeScript icon, indicating that this package has built-in type declarations

8.2.4 • Public • Published

Kokos Ketchup Converters

Kokos-Ketchup-Converters is a library which includes some functions for the purpose of converting Smeup Data Structures to Ketchup components props.

Installation for using as library

npm i -save @sme.up/kokos-ketchup-converters

Description

Component converters

  • boxListConverter
  • buttonListConverter
  • calendarConverter
  • chartConverter
  • dashListConverter
  • dataTableConverter
  • fbkConverter
  • fieldConverter
  • imageConverter
  • imageListConverter
  • inputPanelConverter
  • labelConverter
  • listConverter
  • radioButtonConverter
  • textFieldConverter
  • treeConverter

Smeup data structures

  • SmeupButtonsArray
  • SmeupDataStructure
  • SmeupFBKData
  • SmeupInputPanel
  • SmeupObject
  • SmeupObjectArray
  • SmeupSch
  • SmeupTable
  • SmeupTreeNode

Use

const { data, config } = [converterName]([converterOption], [backendData]);

Development

For develop on local machine, using local version of ketchup package:

execute:

npm link (in ketchup/package/ketchup dir)

then:

npm link @sme.up/ketchup (in kokos-ketchup-converters dir)

After this, ketchup-kokos-converter will load ketchup from local machine, using the created link.
If you modify ketchup, you have to compile first ketchup project (npm run build) and then kokos-ketchup-converter project (npm run build)

Build with tests:

npm run build

Build without tests:

npm run build-notest

Clean node_modules for reset and re-install dependencies:

npm run clean-modules

Readme

Keywords

Package Sidebar

Install

npm i @sme.up/kokos-ketchup-converters

Weekly Downloads

1

Version

8.2.4

License

ISC

Unpacked Size

197 kB

Total Files

136

Last publish

Collaborators

  • pasere-smeup
  • lucafoscili
  • mattiabonardi
  • smeup