Skip to content

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

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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=git@github.com:convertigo/c8oprj-lib-extended-components-ui-ngx.git:branch=8.3.0.0
    
    To simply use
    lib_ExtendedComponents_ui_ngx=git@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
customLocaleTextAdd or surcharge Grid localisation. You have to provide:
  • { [key_lang: string]: { [key: string]: string } } => A map of key_lang->object pairs for adding or surcharging localising text within the grid.

The default value is an empty object.

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
localeTextDefine the Grid localisation. You can provide:
  • { [key: string]: string } => A map of key->value pairs for localising text within the grid.
  • 'fr' or 'fr-FR' => A string representing the translation language (BCP47 Tag or Sub tag)

The default language of the grid is American English.

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: 20 by default
paginationPageSizeSelectorarray | boolean: [20,50,100] by default. If 'paginationPageSize' has a value not in the default array, it is automatically added.
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.
showCsvDownloadAlignmentIf 'showCsvDownload' is set to true, you can define the CSV button horizontal or vertical alignment to 'start', 'center' or 'end'.
showCsvDownloadPositionIf 'showCsvDownload' is set to true, you can define the CSV button position to 'top', 'bottom', 'left', 'right', 'both_row' or 'both_col' relative to the Grid.
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

agGrid_CsvDownload

variables

namecomment
ag_grid

agGrid_CsvDownload_Row

variables

namecomment
ag_grid
alignment

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

ngSelect

Lightweight all in one UI Select, Multiselect and Autocomplete

Features :

  • Custom binding to property or object
  • Custom option, label, header and footer templates
  • Virtual Scroll support with large data sets (>5000 items).
  • Infinite scroll
  • Keyboard navigation
  • Multiselect
  • Flexible autocomplete with client/server filtering
  • Custom search
  • Custom tags
  • Append to
  • Group items
  • Output events
  • Accessibility
  • Good base functionality test coverage
  • Themes

For more informations see documentation

variables

namecomment
addTagAllows to create custom options.
addTagTextSet custom text when using tagging
appearanceAllows to select dropdown appearance. Set to outline to add border instead of underline (applies only to Material theme)
appendToAppend dropdown to body or any other element using css selector. For correct positioning body should have position:relative
bindLabelObject property to use for label. Default label
bindValueObject property to use for selected model. By default binds to whole object.
clearableAllow to clear selected value. Default true
clearAllTextSet custom text for clear all icon title
clearOnBackspaceClear selected values one by one when clicking backspace. Default true
clearSearchOnAddClears search input when item is selected. Default true. Default false when closeOnSelect is false
closeOnSelectWhether to close the menu when a value is selected
compareWithA function to compare the option values with the selected values. The first argument is a value from an option. The second is a value from the selection(model). A boolean should be returned.
deselectOnClickDeselects a selected item when it is clicked in the dropdown. Default false. Default true when multiple is true
dropdownPositionSet the dropdown position on open -- bottom | top | auto
editableSearchTermAllow to edit search query if option selected. Default false. Works only if multiple is false.
groupByAllow to group items by key or function expression
groupValueFunction expression to provide group value
hideSelectedAllows to hide selected items.
inputAttrsPass custom attributes to underlying input element
isOpenAllows manual control of dropdown opening and closing. true - won't close. false - won't open.
itemsItems array
keyDownFnProvide custom keyDown function. Executed before default handler. Return false to suppress execution of default key down handlers.
labelForIdId to associate control with label.
loadingYou can set the loading state from the outside (e.g. async items loading)
loadingTextSet custom text when for loading items
markFirstMarks first item as focused when opening/filtering.
maxSelectedItemsWhen multiple = true, allows to set a limit number of selection.
minTermLengthMinimum term length to start a search. Should be used with typeahead
multipleAllows to select multiple items.
notFoundTextSet custom text when filter returns empty result
openOnEnterOpen dropdown using enter. Default true
placeholderPlaceholder text.
readonlySet ng-select as readonly. Mostly used with reactive forms.
searchableAllow to search for value. Default true
searchFnAllow to filter by custom search function
searchWhileComposingWhether items should be filtered while composition started
selectableGroupAllow to select group when groupBy is used
selectableGroupAsModelIndicates whether to select all children or group itself
selectOnTabSelect marked dropdown item using tab. Default false
tabIndexSet tabindex on ng-select
trackByFnProvide custom trackBy function
typeaheadCustom autocomplete or advanced filter.
typeToSearchTextSet custom text when using Typeahead
virtualScrollEnable virtual scroll for better performance when rendering a lot of data

events

namecomment
addFired when item is added while [multiple]="true". Outputs added item
blurFired on select blur
changeFired on model change. Outputs whole model
clearFired on clear icon click
closeFired on select dropdown close
focusFired on select focus
openFired on select dropdown open
removeFired when item is removed while [multiple]="true"
scrollFired when scrolled. Provides the start and end index of the currently available items. Can be used for loading more items in chunks before the user has scrolled all the way to the bottom of the list.
scrollToEndFired when scrolled to the end of items. Can be used for loading more items in chunks.
searchFired while typing search term. Outputs search term with filtered items

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