Skip to content

convertigo/c8oprj-lib-extended-components-ui-ngx

Repository files navigation

lib_ExtendedComponents_ui_ngx

Set of shared components you can use in your projects :

  • Grid : Display & Edit tabular data
  • Chips : display / remove tags in input fields

For more technical informations : documentation

Installation

  1. In your Convertigo Studio click on to import a project in the treeview

  2. In the import wizard

    paste the text below into the Project remote URL field:

    UsageClick the copy button at the end of the line
    To contribute
    lib_ExtendedComponents_ui_ngx=https://github.com/convertigo/c8oprj-lib-extended-components-ui-ngx.git:branch=8.3.0.0
    
    To simply use
    lib_ExtendedComponents_ui_ngx=https://github.com/convertigo/c8oprj-lib-extended-components-ui-ngx/archive/8.3.0.0.zip
    
  3. Click the Finish button. This will automatically import the lib_ExtendedComponents_ui_ngx project

Mobile Library

Describes the mobile application global properties

Shared Actions

agGridUpdateRows

agGrid Update Rows, must be called in a GetRows Control

variables

namecomment
agGridEventmap agGridEvent to the TS 'event' parameter from the GetRows Control
datadata must receive a JSON with a RowData key and an optional ColDef key

cardIO_sa

CardIO SharedAction

variables

namecomment
ccard_topicPublish Topic name to use with a Subscribe component. Optional
ccnInput tag identifier to set Card Number value to. Optional
cexpInput tag identifier to set Expiry date value (MM/YY) to. Optional
cvvInput tag identifier to set cryptogram value (123) to. Optional
local_ccard_suffixSuffix for local page variable in case of multiple CardIO plugin instances. Default: ''. Optional
optionsCardIO plugin options. See https://github.com/card-io/card.io-Cordova-Plugin

ZXing_sa

ZXing SharedAction

variables

namecomment
fileFile object as Array (if not provided from an input type file).
imgIdImg tag identifier to output image file. Optional
isOutputEventPublish scan result or not to the topic event. Default: true.
isOutputGlobalInsert or not the scan result in a global page variable. The variable is composed of 'zxing:' + topic + ref variables. Default: true.
refIn case of multiple ZXing package instances, set the variable to different values to distinguish the Publish data event and/or the local page variable. Default: ''. Optional
resultIdInput tag identifier to set value to. Optional
topicPublish Topic name to use with a Subscribe component. Optional
typeScan from file or video. Default: 'file'
videoIdVideo tag identifier to output video camera. Default: 'video'. Optional

Shared Components

agGrid

This Shared component wraps the ag-grid component. Most of the properties and events are supported. Please see https://www.ag-grid.com/ for more details.

variables

namecomment
accessibilityboolean: true (default) or false
ariaLabel
autoSizeColumns
classOne of the themes provided here :

https://www.ag-grid.com/javascript-grid-themes-provided/

Also be shure to add the theme in the Theme object as :

@import "../../node_modules/ag-grid-community/dist/styles/ag-theme-balham-dark/sass/ag-theme-balham-dark.scss";

columnDefsArray of columnDef {headerName: 'headerName', field: 'fieldName'} objects
defaultColDefdefault is {hide: false, editable: true, sortable: true, resizable: true, filter: true, checkboxSelection: false, singleClickEdit: false}
heightheight is 'auto' or value in % or px
idAn Optional ID
maxBlocksInCacheHow many blocks to keep in the store. Default is no limit, so every requested block is kept
overlayLoadingTemplate
overlayNoRowsTemplate
paginationboolean: true (default) or false
paginationPageSizeinteger: 10 by default
rowDataArray of row { fieldName1: 'value1', fieldName2: 'value2', fieldName3: true, ...} objects
rowDeselectionboolean: true (default) or false
rowHeightHeight of the row in pixels as a string
rowModelTypeRow model type
rowSelectionstring: 'single' (default) or 'multiple'
showCsvDownloadIf set to true will display a side bar menu where user can click a download button to download the grid content as a CSV file.
suppressCellSelection
suppressRowClickSelection
widthwidth value in % or px
wrapperClassHeight of the row in pixels as a string

events

namecomment
CellClickedFired when a cell is clicked. Data will be the agGrid event
CellValueChangedFired when A Cell is edited changed. Data will be the agGrid event
GetRowsFire when the RowModelType is 'infinite'. Excepts fromatted data into a agGridUpdateRows action
GridReadyFired when the Grid is ready. Data will be the agGrid event
RowClickedFired when a row is clicked. Data will be the agGrid event
RowDataChangedFired when Row data changed. Data will be the agGrid event
RowDoubleClickedFired when A Cell is edited changed. Data will be the agGrid event
RowSelectedFired when a row is selected. Data will be the agGrid event
SelectionChangedFired when selectionChange. Data will be the agGrid event
SortChangedFired when a a column is sorted. Data will be the agGrid event

angularxQRCode

A QR Code Reader using Full JS Algorithm

variables

namecomment
allowEmptyStringAllow qrdata to be an empty string
altHTML alt attribute (supported by img, url)
ariaLabelHTML aria-label attribute (supported by canvas, img, url)
colordarkRGBA color, color of dark module (foreground)
colorlightRGBA color, color of light module (background)
cssClassCSS Class
elementType'canvas', 'svg', 'img', 'url' (alias for 'img')
errorCorrectionLevelQR Correction level ('L', 'M', 'Q', 'H')
imageHeightheight of your image
imageSrcLink to your image
imageWidthwidth of your image
marginDefine how much wide the quiet zone should be.
qrdataString to encode
scaleScale factor. A value of 1 means 1px per modules (black dots).
titleHTML title attribute (supported by canvas, img, url)
version1-40
widthHeight/Width (any value)

cardIO_sc

CardIO SharedComponent

DropZoneComponent

This component handles file trop an a Zone. It will fire a FileDropped event with a Files object as data. The File dropped will be in the out[0]

variables

namecomment
Information

events

namecomment
FilesDropped

materialDatePicker

variables

namecomment
buttonAriaLabel
inputAriaLabel
model

materialSlider

variables

namecomment
ariaLabel
id
max
min
model
step

ngxTagInput

This component provides Chips management for your apps

variables

namecomment
addOnBlur
autocompleteItems
editableTag
inputtext
itemDisplayBy
itemIdentifyBy
items
maxItems
onlyFromAutocomplete
placeholder
removableTag
secondaryPlaceholder
showAutoCompleteDropdownIfEmpty
theme

events

namecomment
Add
Blur
Focus
ModelChange
Paste
Remove
Select
TagEdited
TextChange
ValidationError

tinyMce

This is the TinyMCE WYSIWIG HTML editor you can use to provide rich text editing in your apps

variables

namecomment
apiKey
cloudChannel
disabled
id
init
initialValue
inline
model
plugins
tagName
toolbar

events

namecomment
onBlur