|
|
|
@ -4,7 +4,7 @@ import charset from './right.edit.constant';
|
|
|
|
|
import Model from '../../link-set.model'; |
|
|
|
|
import FormItem from '@shared/components/form.item.component'; |
|
|
|
|
import Title from '@shared/components/title.component'; |
|
|
|
|
import {getDrivers} from './right.edit.service'; |
|
|
|
|
import {getDrivers, connectNameChecker} from './right.edit.service'; |
|
|
|
|
let ConnectionName: any = null; |
|
|
|
|
const className = 'fr.component.right.edit'; |
|
|
|
|
const Widget: WidgetType = { |
|
|
|
@ -114,7 +114,13 @@ const Widget: WidgetType = {
|
|
|
|
|
cls: 'bi-border', |
|
|
|
|
width: 300, |
|
|
|
|
text: linkSelected.originalCharsetName === '' ? BI.i18nText('Dec-Dcm_Connection_Form_Auto') : linkSelected.originalCharsetName, |
|
|
|
|
items: BI.Constants.getConstant(charset), |
|
|
|
|
items: [ |
|
|
|
|
{ |
|
|
|
|
text: BI.i18nText('Dec-Dcm_Connection_Form_Auto'), |
|
|
|
|
value: '', |
|
|
|
|
}, |
|
|
|
|
...BI.Constants.getConstant(charset), |
|
|
|
|
], |
|
|
|
|
listeners: [{ |
|
|
|
|
eventName: BI.TextValueCombo.EVENT_CHANGE, |
|
|
|
|
action() { |
|
|
|
@ -226,13 +232,7 @@ const Widget: WidgetType = {
|
|
|
|
|
width: 60, |
|
|
|
|
value: linkSelected.maxActive, |
|
|
|
|
errorText: BI.i18nText('Dec-Dcm_Connection_Form_Place_Input-Number'), |
|
|
|
|
validationChecker (v: string) { |
|
|
|
|
if (/^\+?[1-9][0-9]*$/.test(v)) { |
|
|
|
|
return true; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
return false; |
|
|
|
|
}, |
|
|
|
|
validationChecker: connectNameChecker, |
|
|
|
|
listeners: [{ |
|
|
|
|
eventName: BI.Editor.EVENT_CHANGE, |
|
|
|
|
action() { |
|
|
|
|