cronapp-framework-mobile-js
Version:
Javascript library for CronApp's projects
143 lines (142 loc) • 3.78 kB
JSON
{
"name": "crn-dynamic-file",
"text_pt_BR": "Envio de Arquivo Dinâmico",
"text_en_US": "Dynamic File Upload",
"image": "/node_modules/cronapp-framework-mobile-js/img/cron-icon/crn-dynamic-file.svg",
"description": "Estrutura para armazenar arquivos na fonte de dados",
"description_en_US": "Structure for storing file in data source",
"category": [
"INPUTS", "FORMS"
],
"wrapper": false,
"templateURL": "src/main/mobileapp/www/node_modules/cronapp-framework-mobile-js/dist/components/templates/dynamicfile.template.html",
"designTimeHTMLURL": "src/main/mobileapp/www/node_modules/cronapp-framework-mobile-js/dist/components/templates/dynamicfile.designtime.html",
"designTimeSelector": "div[dynamic-file]",
"designTimeDynamic": true,
"properties": {
"id": {
"order": 2
},
"class": {
"order": 9999
}
},
"childrenProperties": [
{
"name": "content",
"selector": "label",
"displayName_pt_BR": "Título",
"displayName_en_US": "Title",
"type": "text",
"order": 1
},
{
"name": "ng-model",
"selector": "div[dynamic-file]",
"onSave": "javascript:function() { var result = arguments[0]; if (result.indexOf('.') == -1 && result.trim().length > 0 ) { result = 'vars.'+result; } return result; }",
"onDisplay": "javascript:function() { return arguments[0].replace('vars.',''); }",
"type": "text",
"order": 2,
"displayName_pt_BR": "Valor",
"displayName_en_US": "Value",
"mandatory": true
},
{
"name": "file-info",
"selector": "div[dynamic-file]",
"type": "text",
"order": 3
},
{
"name": "max-file-size",
"displayName_pt_BR": "Tamanho máximo do arquivo",
"displayName_en_US": "Maximum file size",
"selector": "div[dynamic-file]",
"type": "text",
"order": 2
},
{
"name": "accept-file",
"displayName_pt_BR": "Arquivos Permitidos",
"displayName_en_US": "Allowed Files",
"type": "list",
"selector": "div[accept-file]",
"options": [
{
"value": "All",
"value_pt_BR": "Todos",
"key": "'*.*'"
},
{
"value": "Audio",
"value_pt_BR": "Áudio",
"key": "'audio/*'"
},
{
"value": "Image",
"value_pt_BR": "Imagem",
"key": "'image/*'"
},
{
"value": "Video",
"value_pt_BR": "Vídeo",
"key": "'video/*'"
},
{
"value": "PDF",
"key": "'.pdf'"
},
{
"value": "Word (doc/docx)",
"key": "'.doc,.docx'"
},
{
"value": "Excel (xls/xlsx)",
"key": "'.xls,.xlsx'"
}
]
},
{
"name": "ng-required",
"selector": "div[dynamic-file]",
"type": "logic"
},
{
"name": "ng-click",
"selector": "div[dynamic-file]",
"type": "event"
},
{
"name": "on-tap",
"selector": "div[dynamic-file]",
"type": "event"
},
{
"name": "on-hold",
"selector": "div.item",
"type": "event"
},
{
"name": "on-drag",
"selector": "div.item",
"type": "event"
},
{
"name": "on-swipe",
"selector": "div.item",
"type": "event"
}
],
"styles": [
{
"selector": "div#{id} .form-group",
"text_pt_BR": "Campo Interno",
"text_en_US": "Internal Field"
},
{
"selector": "div#{id} label",
"text_pt_BR": "Título",
"text_en_US": "Title"
}
]
}