eda.easyFormViewer stable version
This commit is contained in:
parent
74c8ce3770
commit
6f11b68dec
12 changed files with 134 additions and 134 deletions
|
@ -5,21 +5,22 @@
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
<script src="/static/js/jquery-2.1.3.min.js"></script>
|
<script type="text/javascript" src="/static/js/jquery-2.1.3.min.js"></script>
|
||||||
<script src="/static/js/angular.min.js"></script>
|
<script type="text/javascript" src="/static/js/angular.min.js"></script>
|
||||||
<script src="/static/js/bootstrap.min.js"></script>
|
<script type="text/javascript" src="/static/js/bootstrap.min.js"></script>
|
||||||
<script src="/static/js/ui-bootstrap-tpls-0.14.3.min.js"></script>
|
<script type="text/javascript" src="/static/js/ui-bootstrap-tpls-0.14.3.min.js"></script>
|
||||||
<script src="/static/js/angular-route.min.js"></script>
|
<script type="text/javascript" src="/static/js/angular-route.min.js"></script>
|
||||||
<script src="/static/js/angular-animate.min.js"></script>
|
<script type="text/javascript" src="/static/js/angular-animate.min.js"></script>
|
||||||
<script src="/static/js/angular-touch.min.js"></script>
|
<script type="text/javascript" src="/static/js/angular-touch.min.js"></script>
|
||||||
<script src="/static/js/angular-resource.min.js"></script>
|
<script type="text/javascript" src="/static/js/angular-resource.min.js"></script>
|
||||||
<script src="/static/js/angular-file-upload.min.js"></script>
|
<script type="text/javascript" src="/static/js/angular-file-upload.min.js"></script>
|
||||||
<script src="/static/js/angular-ui-router.min.js"></script>
|
<script type="text/javascript" src="/static/js/angular-ui-router.min.js"></script>
|
||||||
<script src="/static/js/angular-websocket.js"></script>
|
<script type="text/javascript" src="/static/js/angular-websocket.js"></script>
|
||||||
<script src="/static/js/angular-translate.min.js"></script>
|
<script type="text/javascript" src="/static/js/angular-translate.min.js"></script>
|
||||||
<script src="/static/js/angular-translate-loader-static-files.min.js"></script>
|
<script type="text/javascript" src="/static/js/angular-translate-loader-static-files.min.js"></script>
|
||||||
<script src="/static/js/nya-bs-select.min.js"></script>
|
<script type="text/javascript" src="/static/js/nya-bs-select.min.js"></script>
|
||||||
<script type="text/javascript" src="/static/js/eda.stepway.js"></script>
|
<script type="text/javascript" src="/static/js/eda.stepway.js"></script>
|
||||||
|
<script type="text/javascript" src="/static/js/eda.easyFormViewer.min.js"></script>
|
||||||
<script type="text/javascript" src="/static/js/textAngular-rangy.min.js"></script>
|
<script type="text/javascript" src="/static/js/textAngular-rangy.min.js"></script>
|
||||||
<script type="text/javascript" src="/static/js/textAngular-sanitize.min.js"></script>
|
<script type="text/javascript" src="/static/js/textAngular-sanitize.min.js"></script>
|
||||||
<script type="text/javascript" src="/static/js/textAngular.min.js"></script>
|
<script type="text/javascript" src="/static/js/textAngular.min.js"></script>
|
||||||
|
@ -29,24 +30,25 @@
|
||||||
<script type="text/javascript" src="/static/js/formly.min.js"></script>
|
<script type="text/javascript" src="/static/js/formly.min.js"></script>
|
||||||
<script type="text/javascript" src="/static/js/angular-formly-templates-bootstrap.min.js"></script>
|
<script type="text/javascript" src="/static/js/angular-formly-templates-bootstrap.min.js"></script>
|
||||||
|
|
||||||
<script src="/static/js/eventman.js"></script>
|
<script type="text/javascript" src="/static/js/eventman.js"></script>
|
||||||
<script src="/js/app.js"></script>
|
<script type="text/javascript" src="/js/app.js"></script>
|
||||||
<script src="/js/i18n.js"></script>
|
<script type="text/javascript" src="/js/i18n.js"></script>
|
||||||
<script src="/js/filters.js"></script>
|
<script type="text/javascript" src="/js/filters.js"></script>
|
||||||
<script src="/js/directives.js"></script>
|
<script type="text/javascript" src="/js/directives.js"></script>
|
||||||
<script src="/js/services.js"></script>
|
<script type="text/javascript" src="/js/services.js"></script>
|
||||||
<script src="/js/controllers.js"></script>
|
<script type="text/javascript" src="/js/controllers.js"></script>
|
||||||
|
|
||||||
<link href="/static/css/bootstrap.min.css" rel="stylesheet">
|
<link rel="stylesheet" href="/static/css/bootstrap.min.css">
|
||||||
<link href="/static/css/animate.min.css" rel="stylesheet">
|
<link rel="stylesheet" href="/static/css/animate.min.css">
|
||||||
<link href="/static/css/textAngular.css" rel="stylesheet">
|
<link rel="stylesheet" href="/static/css/textAngular.css">
|
||||||
<link href="/static/css/toaster.min.css" rel="stylesheet">
|
<link rel="stylesheet" href="/static/css/toaster.min.css">
|
||||||
<link href="/static/css/normalize.css" rel="stylesheet">
|
<link rel="stylesheet" href="/static/css/normalize.css">
|
||||||
<link href="/static/css/bootstrap-theme.min.css" rel="stylesheet">
|
<link rel="stylesheet" href="/static/css/bootstrap-theme.min.css">
|
||||||
<link href="/static/css/font-awesome-4.3.0/css/font-awesome.min.css" rel="stylesheet">
|
<link rel="stylesheet" href="/static/css/font-awesome-4.3.0/css/font-awesome.min.css">
|
||||||
<link href="/static/css/eda.stepway.min.css" rel="stylesheet">
|
<link rel="stylesheet" href="/static/css/eda.stepway.min.css">
|
||||||
<link href="/static/css/nya-bs-select.min.css" rel="stylesheet">
|
<link rel="stylesheet" href="/static/css/eda.easyFormViewer.min.css">
|
||||||
<link href="/static/css/eventman.css" rel="stylesheet">
|
<link rel="stylesheet" href="/static/css/nya-bs-select.min.css">
|
||||||
|
<link rel="stylesheet" href="/static/css/eventman.css">
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* easyFormGenerator — drag and drop way — version
|
* easyFormGenerator — drag and drop way — version
|
||||||
* Version 1.2.0
|
* Version 1.1.0
|
||||||
* Author : Erwan Datin (MacKentoch)
|
* Author : Erwan Datin (MacKentoch)
|
||||||
*Link: https://github.com/MacKentoch/easyFormGenerator
|
*Link: https://github.com/MacKentoch/easyFormGenerator
|
||||||
* License : 2015 MIT
|
* License : 2015 MIT
|
||||||
|
|
2
static/css/eda.dragdropway.min.css
vendored
2
static/css/eda.dragdropway.min.css
vendored
|
@ -1,7 +1,7 @@
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* easyFormGenerator — drag and drop way — version
|
* easyFormGenerator — drag and drop way — version
|
||||||
* Version 1.2.0
|
* Version 1.1.0
|
||||||
* Author : Erwan Datin (MacKentoch)
|
* Author : Erwan Datin (MacKentoch)
|
||||||
*Link: https://github.com/MacKentoch/easyFormGenerator
|
*Link: https://github.com/MacKentoch/easyFormGenerator
|
||||||
* License : 2015 MIT
|
* License : 2015 MIT
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* easyFormViewer
|
* easyFormViewer
|
||||||
* Version 1.2.0
|
* Version 1.1.0
|
||||||
* Author : Erwan Datin (MacKentoch)
|
* Author : Erwan Datin (MacKentoch)
|
||||||
*Link: https://github.com/MacKentoch/easyFormGenerator
|
*Link: https://github.com/MacKentoch/easyFormGenerator
|
||||||
* License : 2015 MIT
|
* License : 2015 MIT
|
||||||
|
|
2
static/css/eda.easyFormViewer.min.css
vendored
2
static/css/eda.easyFormViewer.min.css
vendored
|
@ -1,7 +1,7 @@
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* easyFormViewer
|
* easyFormViewer
|
||||||
* Version 1.2.0
|
* Version 1.1.0
|
||||||
* Author : Erwan Datin (MacKentoch)
|
* Author : Erwan Datin (MacKentoch)
|
||||||
*Link: https://github.com/MacKentoch/easyFormGenerator
|
*Link: https://github.com/MacKentoch/easyFormGenerator
|
||||||
* License : 2015 MIT
|
* License : 2015 MIT
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* easyFormGenerator — step way — version
|
* easyFormGenerator — step way — version
|
||||||
* Version 1.2.1-beta1
|
* Version 1.1.0
|
||||||
* Author : Erwan Datin (MacKentoch)
|
* Author : Erwan Datin (MacKentoch)
|
||||||
*Link: https://github.com/MacKentoch/easyFormGenerator
|
*Link: https://github.com/MacKentoch/easyFormGenerator
|
||||||
* License : 2015 MIT
|
* License : 2015 MIT
|
||||||
|
|
2
static/css/eda.stepway.min.css
vendored
2
static/css/eda.stepway.min.css
vendored
|
@ -1,7 +1,7 @@
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* easyFormGenerator — step way — version
|
* easyFormGenerator — step way — version
|
||||||
* Version 1.2.1-beta1
|
* Version 1.1.0
|
||||||
* Author : Erwan Datin (MacKentoch)
|
* Author : Erwan Datin (MacKentoch)
|
||||||
*Link: https://github.com/MacKentoch/easyFormGenerator
|
*Link: https://github.com/MacKentoch/easyFormGenerator
|
||||||
* License : 2015 MIT
|
* License : 2015 MIT
|
||||||
|
|
File diff suppressed because one or more lines are too long
10
static/js/eda.dragdropway.min.js
vendored
10
static/js/eda.dragdropway.min.js
vendored
File diff suppressed because one or more lines are too long
|
@ -428,7 +428,7 @@ $__System.register('e', [], function (_export) {
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
var resetNyaSelect, getConfigurationModelInit, getEmptyConfigModelResult, resetDataModel, getErrorObject, getMessageObject, resetFormlyModel, extractTemplateOptionDescription, extractTemplateOptionPlaceholder, extractTemplateOptionType, extractTemplateOptionLabel, extractTemplateOptionDatepickerOptions, extractFormlyExpressionProperties, extractFormlyValidators, extractFormlyValidation, extractTemplateOptionRequired, extractTemplateOptionOptions, addDatepickerOptionsProperty, addOneColumnHeader, addOneColumnControl, addTwoColumnControl, addThreeColumnControl;
|
var resetNyaSelect, getConfigurationModelInit, getEmptyConfigModelResult, resetDataModel, getErrorObject, getMessageObject, resetFormlyModel, extractTemplateOptionDescription, extractTemplateOptionPlaceholder, extractTemplateOptionType, extractTemplateOptionLabel, extractTemplateOptionDatepickerPopup, extractFormlyExpressionProperties, extractFormlyValidators, extractFormlyValidation, extractTemplateOptionRequired, extractTemplateOptionOptions, addDatepickerPopupProperty, addOneColumnHeader, addOneColumnControl, addTwoColumnControl, addThreeColumnControl;
|
||||||
return {
|
return {
|
||||||
setters: [],
|
setters: [],
|
||||||
execute: function () {
|
execute: function () {
|
||||||
|
@ -555,7 +555,7 @@ $__System.register('e', [], function (_export) {
|
||||||
required: function required(viewValue, modelValue, scope) {
|
required: function required(viewValue, modelValue, scope) {
|
||||||
//return a required validation message :
|
//return a required validation message :
|
||||||
//-> '<label as name> is required '
|
//-> '<label as name> is required '
|
||||||
//-> or if not exists or empty just 'this field is required'
|
//-> or if not exists or empty just 'this field is required'
|
||||||
var defaultReturnMsg = 'this Email field is required';
|
var defaultReturnMsg = 'this Email field is required';
|
||||||
var returnMsg = typeof scope.to.label !== 'undefined' ? scope.to.label !== '' ? scope.to.label + ' is required' : defaultReturnMsg : defaultReturnMsg;
|
var returnMsg = typeof scope.to.label !== 'undefined' ? scope.to.label !== '' ? scope.to.label + ' is required' : defaultReturnMsg : defaultReturnMsg;
|
||||||
//check if validation is really dued to require validation
|
//check if validation is really dued to require validation
|
||||||
|
@ -575,7 +575,7 @@ $__System.register('e', [], function (_export) {
|
||||||
formlyRequired: false,
|
formlyRequired: false,
|
||||||
formlyDesciption: '',
|
formlyDesciption: '',
|
||||||
formlyOptions: [],
|
formlyOptions: [],
|
||||||
datepickerOptions: { format: 'dd-MMMM-yyyy' },
|
datepickerPopup: 'dd-MMMM-yyyy',
|
||||||
formlyExpressionProperties: {},
|
formlyExpressionProperties: {},
|
||||||
formlyValidators: {},
|
formlyValidators: {},
|
||||||
formlyValidation: {
|
formlyValidation: {
|
||||||
|
@ -865,8 +865,8 @@ $__System.register('e', [], function (_export) {
|
||||||
return typeof obj.templateOptions !== 'undefined' ? typeof obj.templateOptions.label !== 'undefined' ? obj.templateOptions.label : '' : '';
|
return typeof obj.templateOptions !== 'undefined' ? typeof obj.templateOptions.label !== 'undefined' ? obj.templateOptions.label : '' : '';
|
||||||
};
|
};
|
||||||
|
|
||||||
extractTemplateOptionDatepickerOptions = function extractTemplateOptionDatepickerOptions(obj) {
|
extractTemplateOptionDatepickerPopup = function extractTemplateOptionDatepickerPopup(obj) {
|
||||||
return typeof obj.templateOptions !== 'undefined' ? typeof obj.templateOptions.datepickerOptions !== 'undefined' ? angular.copy(obj.templateOptions.datepickerOptions) : '' : '';
|
return typeof obj.templateOptions !== 'undefined' ? typeof obj.templateOptions.datepickerPopup !== 'undefined' ? obj.templateOptions.datepickerPopup : '' : '';
|
||||||
};
|
};
|
||||||
|
|
||||||
extractFormlyExpressionProperties = function extractFormlyExpressionProperties(obj) {
|
extractFormlyExpressionProperties = function extractFormlyExpressionProperties(obj) {
|
||||||
|
@ -889,13 +889,13 @@ $__System.register('e', [], function (_export) {
|
||||||
return typeof obj.templateOptions !== 'undefined' ? typeof obj.templateOptions.options !== 'undefined' ? obj.templateOptions.options : '' : '';
|
return typeof obj.templateOptions !== 'undefined' ? typeof obj.templateOptions.options !== 'undefined' ? obj.templateOptions.options : '' : '';
|
||||||
};
|
};
|
||||||
|
|
||||||
addDatepickerOptionsProperty = function addDatepickerOptionsProperty(fieldToPush, configurationModel, lineIndex) {
|
addDatepickerPopupProperty = function addDatepickerPopupProperty(fieldToPush, configurationModel, lineIndex) {
|
||||||
return fieldToPush.templateOptions.datepickerOptions = extractTemplateOptionDatepickerOptions(configurationModel.lines[lineIndex].columns[0].control);
|
return fieldToPush.templateOptions.datepickerPopup = extractTemplateOptionDatepickerPopup(configurationModel.lines[lineIndex].columns[0].control);
|
||||||
};
|
};
|
||||||
|
|
||||||
addOneColumnHeader = function addOneColumnHeader(formlyModel, configurationModel, lineIndex) {
|
addOneColumnHeader = function addOneColumnHeader(formlyModel, configurationModel, lineIndex) {
|
||||||
/**
|
/**
|
||||||
* text header is stored in "description" in templateOtion model
|
* text header is stored in "description" in templateOtion model
|
||||||
*/
|
*/
|
||||||
var headerTemplateCol0 = '<div class="row"><div class="col-xs-12 col-sm-12 col-md-12 col-lg-12"><h2 class="text-center">' + extractTemplateOptionDescription(configurationModel.lines[lineIndex].columns[0].control) + '<h2></div></div><hr/>';
|
var headerTemplateCol0 = '<div class="row"><div class="col-xs-12 col-sm-12 col-md-12 col-lg-12"><h2 class="text-center">' + extractTemplateOptionDescription(configurationModel.lines[lineIndex].columns[0].control) + '<h2></div></div><hr/>';
|
||||||
formlyModel.push({
|
formlyModel.push({
|
||||||
|
@ -920,10 +920,10 @@ $__System.register('e', [], function (_export) {
|
||||||
validators: extractFormlyValidators(configurationModel.lines[lineIndex].columns[0].control),
|
validators: extractFormlyValidators(configurationModel.lines[lineIndex].columns[0].control),
|
||||||
validation: extractFormlyValidation(configurationModel.lines[lineIndex].columns[0].control)
|
validation: extractFormlyValidation(configurationModel.lines[lineIndex].columns[0].control)
|
||||||
};
|
};
|
||||||
//////////////////////////////////////////////
|
//////////////////////////////////////////////
|
||||||
//datepicker additionnal particular property
|
//datepicker additionnal particular property
|
||||||
//////////////////////////////////////////////
|
//////////////////////////////////////////////
|
||||||
if (configurationModel.lines[lineIndex].columns[0].control.type === 'datepicker') addDatepickerOptionsProperty(fieldToPush, configurationModel, lineIndex);
|
if (configurationModel.lines[lineIndex].columns[0].control.type === 'datepicker') addDatepickerPopupProperty(fieldToPush, configurationModel, lineIndex);
|
||||||
|
|
||||||
formlyModel.push(fieldToPush);
|
formlyModel.push(fieldToPush);
|
||||||
};
|
};
|
||||||
|
@ -957,10 +957,10 @@ $__System.register('e', [], function (_export) {
|
||||||
validators: extractFormlyValidators(configurationModel.lines[lineIndex].columns[0].control),
|
validators: extractFormlyValidators(configurationModel.lines[lineIndex].columns[0].control),
|
||||||
validation: extractFormlyValidation(configurationModel.lines[lineIndex].columns[0].control)
|
validation: extractFormlyValidation(configurationModel.lines[lineIndex].columns[0].control)
|
||||||
};
|
};
|
||||||
//////////////////////////////////////////////
|
//////////////////////////////////////////////
|
||||||
//datepicker additionnal particular property
|
//datepicker additionnal particular property
|
||||||
//////////////////////////////////////////////
|
//////////////////////////////////////////////
|
||||||
if (configurationModel.lines[lineIndex].columns[0].control.type === 'datepicker') addDatepickerOptionsProperty(controlCol0, configurationModel, lineIndex);
|
if (configurationModel.lines[lineIndex].columns[0].control.type === 'datepicker') addDatepickerPopupProperty(controlCol0, configurationModel, lineIndex);
|
||||||
|
|
||||||
var controlCol1 = {
|
var controlCol1 = {
|
||||||
className: 'col-xs-6',
|
className: 'col-xs-6',
|
||||||
|
@ -979,10 +979,10 @@ $__System.register('e', [], function (_export) {
|
||||||
validation: extractFormlyValidation(configurationModel.lines[lineIndex].columns[1].control)
|
validation: extractFormlyValidation(configurationModel.lines[lineIndex].columns[1].control)
|
||||||
};
|
};
|
||||||
|
|
||||||
//////////////////////////////////////////////
|
//////////////////////////////////////////////
|
||||||
//datepicker additionnal particular property
|
//datepicker additionnal particular property
|
||||||
//////////////////////////////////////////////
|
//////////////////////////////////////////////
|
||||||
if (configurationModel.lines[lineIndex].columns[1].control.type === 'datepicker') addDatepickerOptionsProperty(controlCol1, configurationModel, lineIndex);
|
if (configurationModel.lines[lineIndex].columns[1].control.type === 'datepicker') addDatepickerPopupProperty(controlCol1, configurationModel, lineIndex);
|
||||||
|
|
||||||
var FieldGroup = [];
|
var FieldGroup = [];
|
||||||
|
|
||||||
|
@ -1037,10 +1037,10 @@ $__System.register('e', [], function (_export) {
|
||||||
validators: extractFormlyValidators(configurationModel.lines[lineIndex].columns[0].control),
|
validators: extractFormlyValidators(configurationModel.lines[lineIndex].columns[0].control),
|
||||||
validation: extractFormlyValidation(configurationModel.lines[lineIndex].columns[0].control)
|
validation: extractFormlyValidation(configurationModel.lines[lineIndex].columns[0].control)
|
||||||
};
|
};
|
||||||
//////////////////////////////////////////////
|
//////////////////////////////////////////////
|
||||||
//datepicker additionnal particular property
|
//datepicker additionnal particular property
|
||||||
//////////////////////////////////////////////
|
//////////////////////////////////////////////
|
||||||
if (configurationModel.lines[lineIndex].columns[0].control.type === 'datepicker') addDatepickerOptionsProperty(controlCol0, configurationModel, lineIndex);
|
if (configurationModel.lines[lineIndex].columns[0].control.type === 'datepicker') addDatepickerPopupProperty(controlCol0, configurationModel, lineIndex);
|
||||||
|
|
||||||
var controlCol1 = {
|
var controlCol1 = {
|
||||||
className: 'col-xs-4',
|
className: 'col-xs-4',
|
||||||
|
@ -1058,10 +1058,10 @@ $__System.register('e', [], function (_export) {
|
||||||
validators: extractFormlyValidators(configurationModel.lines[lineIndex].columns[1].control),
|
validators: extractFormlyValidators(configurationModel.lines[lineIndex].columns[1].control),
|
||||||
validation: extractFormlyValidation(configurationModel.lines[lineIndex].columns[1].control)
|
validation: extractFormlyValidation(configurationModel.lines[lineIndex].columns[1].control)
|
||||||
};
|
};
|
||||||
//////////////////////////////////////////////
|
//////////////////////////////////////////////
|
||||||
//datepicker additionnal particular property
|
//datepicker additionnal particular property
|
||||||
//////////////////////////////////////////////
|
//////////////////////////////////////////////
|
||||||
if (configurationModel.lines[lineIndex].columns[1].control.type === 'datepicker') addDatepickerOptionsProperty(controlCol1, configurationModel, lineIndex);
|
if (configurationModel.lines[lineIndex].columns[1].control.type === 'datepicker') addDatepickerPopupProperty(controlCol1, configurationModel, lineIndex);
|
||||||
|
|
||||||
var controlCol2 = {
|
var controlCol2 = {
|
||||||
className: 'col-xs-4',
|
className: 'col-xs-4',
|
||||||
|
@ -1079,10 +1079,10 @@ $__System.register('e', [], function (_export) {
|
||||||
validators: extractFormlyValidators(configurationModel.lines[lineIndex].columns[2].control),
|
validators: extractFormlyValidators(configurationModel.lines[lineIndex].columns[2].control),
|
||||||
validation: extractFormlyValidation(configurationModel.lines[lineIndex].columns[2].control)
|
validation: extractFormlyValidation(configurationModel.lines[lineIndex].columns[2].control)
|
||||||
};
|
};
|
||||||
//////////////////////////////////////////////
|
//////////////////////////////////////////////
|
||||||
//datepicker additionnal particular property
|
//datepicker additionnal particular property
|
||||||
//////////////////////////////////////////////
|
//////////////////////////////////////////////
|
||||||
if (configurationModel.lines[lineIndex].columns[2].control.type === 'datepicker') addDatepickerOptionsProperty(controlCol2, configurationModel, lineIndex);
|
if (configurationModel.lines[lineIndex].columns[2].control.type === 'datepicker') addDatepickerPopupProperty(controlCol2, configurationModel, lineIndex);
|
||||||
|
|
||||||
var FieldGroup = [];
|
var FieldGroup = [];
|
||||||
|
|
||||||
|
@ -1345,12 +1345,12 @@ $__System.register("11", [], function (_export) {
|
||||||
return {
|
return {
|
||||||
setters: [],
|
setters: [],
|
||||||
execute: function () {
|
execute: function () {
|
||||||
richTextTemplate = "\n\t<text-angular name=\"{{id}}\"\n\t\tclass=\"richTextAngular\"\n\t\tng-model=\"model[options.key || index]\">\n\t</text-angular>";
|
richTextTemplate = "\n\t<text-angular name=\"{{id}}\" \n\t\tclass=\"richTextAngular\" \n\t\tng-model=\"model[options.key || index]\">\n\t</text-angular>";
|
||||||
blankTemplate = "<div></div>";
|
blankTemplate = "<div></div>";
|
||||||
subTitleTemplate = "\n\t<div class=\"row\">\n\t\t<div class=\"\">\n\t\t\t<h4 class=\"text-center\">\n\t\t\t{{options.templateOptions.placeholder}}\n\t\t\t<h4><hr/>\n\t\t</div>\n\t</div>";
|
subTitleTemplate = "\n\t<div class=\"row\">\n\t\t<div class=\"\">\n\t\t\t<h4 class=\"text-center\">\n\t\t\t{{options.templateOptions.placeholder}}\n\t\t\t<h4><hr/>\n\t\t</div>\n\t</div>";
|
||||||
basicSelectTemplate = "\n<ol\n\tclass=\"nya-bs-select col-sm-12 col-xs-12 col-md-12 col-lg12\"\n\tng-model=\"model[options.key || index]\"\n\tid=\"{{id}}\"\n\tdisabled=\"options.templateOptions.options.length === 0\">\n\t<li class=\"nya-bs-option\" nya-bs-option=\"option in options.templateOptions.options\">\n\t\t<a>{{option.name}}</a>\n\t</li>\n</ol>";
|
basicSelectTemplate = " \n<ol \n\tclass=\"nya-bs-select col-sm-12 col-xs-12 col-md-12 col-lg12\" \n\tng-model=\"model[options.key || index]\" \n\tid=\"{{id}}\" \n\tdisabled=\"options.templateOptions.options.length === 0\"> \n\t<li class=\"nya-bs-option\" nya-bs-option=\"option in options.templateOptions.options\"> \n\t\t<a>{{option.name}}</a> \n\t</li> \n</ol>";
|
||||||
groupedSelectTemplate = "\n\t<ol class=\"nya-bs-select col-sm-12 col-xs-12 col-md-12 col-lg12\"\n\t\tng-model=\"model[options.key || index]\"\n\t\tdata-live-search=\"true\"\n\t\tdisabled=\"options.templateOptions.options.length === 0\">\n\t\t<li nya-bs-option=\"option in options.templateOptions.options group by option.group\">\n\t\t\t<span class=\"dropdown-header\">{{$group}}</span>\n\t\t\t<a>\n\t\t\t\t<span>{{option.name}}</span>\n\t\t\t\t<span class=\"glyphicon glyphicon-ok check-mark\"></span>\n\t\t\t</a>\n\t\t</li>\n\t</ol>";
|
groupedSelectTemplate = "\n\t<ol class=\"nya-bs-select col-sm-12 col-xs-12 col-md-12 col-lg12\" \n\t\tng-model=\"model[options.key || index]\" \n\t\tdata-live-search=\"true\" \n\t\tdisabled=\"options.templateOptions.options.length === 0\">\n\t\t<li nya-bs-option=\"option in options.templateOptions.options group by option.group\">\n\t\t\t<span class=\"dropdown-header\">{{$group}}</span> \n\t\t\t<a>\n\t\t\t\t<span>{{option.name}}</span>\n\t\t\t\t<span class=\"glyphicon glyphicon-ok check-mark\"></span>\n\t\t\t</a>\n\t\t</li>\n\t</ol>";
|
||||||
datepickerTemplate = "\n <p class=\"input-group\">\n <span class=\"input-group-btn\">\n <button\n type=\"button\"\n class=\"btn btn-default\"\n ng-click=\"formlyDatePicker.open($event)\">\n <i class=\"glyphicon glyphicon-calendar\"></i>\n </button>\n </span>\n <input type=\"text\"\n id=\"{{::id}}\"\n name=\"{{::id}}\"\n ng-model=\"model[options.key]\"\n class=\"form-control\"\n ng-click=\"datepicker.open($event)\"\n uib-datepicker-popup=\"{{to.datepickerOptions.format}}\"\n is-open=\"datepicker.opened\"\n datepicker-options=\"to.datepickerOptions\"\n />\n </p>\n ";
|
datepickerTemplate = "\t<input id=\"{{id}}\" \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tclass=\"form-control\" \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tng-click=\"open($event)\" \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tng-model=\"model[options.key || index]\" \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tis-open=\"to.isOpen\" \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tng-click=\"to.isOpen = true\" \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdatepicker-options=\"to.datepickerOptions\" />";
|
||||||
validationTemplate = "\n\t<div class=\"formly-template-wrapper form-group\"\n\t\t\t\t\t\tng-class=\"{'has-error': options.validation.errorExistsAndShouldBeVisible}\">\n\t\t\t\t<formly-transclude></formly-transclude>\n\t\t\t\t<div class=\"validation\"\n\t\t\t\t\t\t\tng-if=\"options.validation.errorExistsAndShouldBeVisible\"\n\t\t\t\t\t\t\tng-messages=\"options.formControl.$error\">\n\t\t\t\t\t<div ng-messages-include=\"validation.html\"></div>\n\t\t\t\t\t<div ng-message=\"{{::name}}\" ng-repeat=\"(name, message) in ::options.validation.messages\">\n\t\t\t\t\t\t{{message(options.formControl.$viewValue, options.formControl.$modelValue, this)}}\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>";
|
validationTemplate = "\n\t<div class=\"formly-template-wrapper form-group\"\n\t\t\t\t\t\tng-class=\"{'has-error': options.validation.errorExistsAndShouldBeVisible}\">\n\t\t\t\t<formly-transclude></formly-transclude>\n\t\t\t\t<div class=\"validation\"\n\t\t\t\t\t\t\tng-if=\"options.validation.errorExistsAndShouldBeVisible\"\n\t\t\t\t\t\t\tng-messages=\"options.formControl.$error\">\n\t\t\t\t\t<div ng-messages-include=\"validation.html\"></div>\n\t\t\t\t\t<div ng-message=\"{{::name}}\" ng-repeat=\"(name, message) in ::options.validation.messages\">\n\t\t\t\t\t\t{{message(options.formControl.$viewValue, options.formControl.$modelValue, this)}}\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>";
|
||||||
|
|
||||||
_export("richTextTemplate", richTextTemplate);
|
_export("richTextTemplate", richTextTemplate);
|
||||||
|
@ -1426,35 +1426,29 @@ $__System.register('12', ['11'], function (_export) {
|
||||||
formlyConfigProvider.setType({
|
formlyConfigProvider.setType({
|
||||||
name: 'datepicker',
|
name: 'datepicker',
|
||||||
template: datepickerTemplate,
|
template: datepickerTemplate,
|
||||||
|
wrapper: ['bootstrapLabel', 'bootstrapHasError'],
|
||||||
|
controller: ['$scope', function ($scope) {
|
||||||
|
$scope.open = function ($event) {
|
||||||
|
$event.preventDefault();
|
||||||
|
$event.stopPropagation();
|
||||||
|
$scope.opened = true;
|
||||||
|
};
|
||||||
|
}],
|
||||||
defaultOptions: {
|
defaultOptions: {
|
||||||
ngModelAttrs: ngModelAttrs,
|
ngModelAttrs: ngModelAttrs,
|
||||||
templateOptions: {
|
templateOptions: {
|
||||||
datepickerOptions: {
|
addonLeft: {
|
||||||
format: 'dd/MM/yyyy',
|
'class': 'glyphicon glyphicon-calendar',
|
||||||
initDate: new Date(),
|
onClick: function onClick(options) {
|
||||||
showWeeks: false
|
return options.templateOptions.isOpen = !options.templateOptions.isOpen;
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
onFocus: function onFocus($viewValue, $modelValue, scope) {
|
||||||
|
return scope.to.isOpen = !scope.to.isOpen;
|
||||||
|
},
|
||||||
|
datepickerOptions: {}
|
||||||
}
|
}
|
||||||
},
|
}
|
||||||
wrapper: ['bootstrapLabel', 'bootstrapHasError'],
|
|
||||||
controller: ['$scope', function ($scope) {
|
|
||||||
// console.info('ui calendar init');
|
|
||||||
$scope.datepicker = {};
|
|
||||||
|
|
||||||
// make sure the initial value is of type DATE!
|
|
||||||
var currentModelVal = $scope.model[$scope.options.key];
|
|
||||||
if (typeof currentModelVal == 'string') {
|
|
||||||
$scope.model[$scope.options.key] = new Date(currentModelVal);
|
|
||||||
}
|
|
||||||
|
|
||||||
$scope.datepicker.opened = false;
|
|
||||||
$scope.datepicker.open = function ($event) {
|
|
||||||
$event.preventDefault();
|
|
||||||
$event.stopPropagation();
|
|
||||||
// console.info('ui calendar open event');
|
|
||||||
$scope.datepicker.opened = !$scope.datepicker.opened;
|
|
||||||
};
|
|
||||||
}]
|
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -1500,9 +1494,9 @@ $__System.registerDynamic("13", [], true, function($__require, exports, module)
|
||||||
__define = global.define;
|
__define = global.define;
|
||||||
global.define = undefined;
|
global.define = undefined;
|
||||||
module.exports = {
|
module.exports = {
|
||||||
"stepway": {"version": "1.2.1-beta1"},
|
"stepway": {"version": "1.1.0"},
|
||||||
"dragdropway": {"version": "1.2.0"},
|
"dragdropway": {"version": "1.1.0"},
|
||||||
"formviewer": {"version": "1.2.0"}
|
"formviewer": {"version": "1.1.0"}
|
||||||
};
|
};
|
||||||
global.define = __define;
|
global.define = __define;
|
||||||
return module.exports;
|
return module.exports;
|
||||||
|
|
4
static/js/eda.easyFormViewer.min.js
vendored
4
static/js/eda.easyFormViewer.min.js
vendored
File diff suppressed because one or more lines are too long
11
static/js/eda.stepway.min.js
vendored
11
static/js/eda.stepway.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue