|
|
@ -1,5 +1,4 @@ |
|
|
|
import { shortcut } from '@core/core'; |
|
|
|
import { shortcut } from '@core/core'; |
|
|
|
import { Vertical, Left, Layout } from 'ui'; |
|
|
|
|
|
|
|
import { CollapseXtype, EVENT_CHANGE } from 'src/modules/components/collapse/collapse'; |
|
|
|
import { CollapseXtype, EVENT_CHANGE } from 'src/modules/components/collapse/collapse'; |
|
|
|
import { FormItemXtype } from '../../components/form_item/form_item'; |
|
|
|
import { FormItemXtype } from '../../components/form_item/form_item'; |
|
|
|
import { Connection, ConnectionJDBC, ConnectionPoolJDBC } from 'src/modules/crud/crud.typings'; |
|
|
|
import { Connection, ConnectionJDBC, ConnectionPoolJDBC } from 'src/modules/crud/crud.typings'; |
|
|
@ -8,7 +7,8 @@ import { CONNECT_CHARSET, CONNECTION_LAYOUT, INT_MAX_VALUE, INT_MIN_VALUE } from |
|
|
|
import { getAllDatabaseTypes, getJdbcDatabaseType, resolveUrlInfo, splitUrl } from '../../../../app.service'; |
|
|
|
import { getAllDatabaseTypes, getJdbcDatabaseType, resolveUrlInfo, splitUrl } from '../../../../app.service'; |
|
|
|
import { TextCheckerXtype } from '../../../../components/text_checker/text_checker'; |
|
|
|
import { TextCheckerXtype } from '../../../../components/text_checker/text_checker'; |
|
|
|
import { ApiFactory } from 'src/modules/crud/apiFactory'; |
|
|
|
import { ApiFactory } from 'src/modules/crud/apiFactory'; |
|
|
|
import { Editor, EditorIconCheckCombo, Label, TextAreaEditor, TextEditor, TextValueCombo } from '@fui/core'; |
|
|
|
import { Editor, EditorIconCheckCombo, Label, TextAreaEditor, TextEditor, TextValueCombo, VerticalLayout } from '@fui/core'; |
|
|
|
|
|
|
|
import { FormItem } from '../../../connection/components/form_item/form_item'; |
|
|
|
const api = new ApiFactory().create(); |
|
|
|
const api = new ApiFactory().create(); |
|
|
|
|
|
|
|
|
|
|
|
export const FormJdbcXtype = 'dec.dcm.maintain.form.jdbc'; |
|
|
|
export const FormJdbcXtype = 'dec.dcm.maintain.form.jdbc'; |
|
|
@ -21,13 +21,12 @@ export class FormJdbc extends BI.Widget { |
|
|
|
oldPassword = ''; |
|
|
|
oldPassword = ''; |
|
|
|
allDatabaseTypes = getAllDatabaseTypes(); |
|
|
|
allDatabaseTypes = getAllDatabaseTypes(); |
|
|
|
|
|
|
|
|
|
|
|
testStatus: any; |
|
|
|
advancedSet: VerticalLayout; |
|
|
|
advancedSet: any; |
|
|
|
formUser: FormItem; |
|
|
|
formUser: any; |
|
|
|
formPassword: FormItem; |
|
|
|
formPassword: any; |
|
|
|
formPrincipal: FormItem; |
|
|
|
formPrincipal: any; |
|
|
|
formKeyPath: FormItem; |
|
|
|
formKeyPath: any; |
|
|
|
labelTips: Label; |
|
|
|
labelTips: any; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
form = { |
|
|
|
form = { |
|
|
|
connectionName: null, |
|
|
|
connectionName: null, |
|
|
@ -73,7 +72,7 @@ export class FormJdbc extends BI.Widget { |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
return { |
|
|
|
return { |
|
|
|
type: Vertical, |
|
|
|
type: BI.VerticalLayout.xtype, |
|
|
|
hgap, |
|
|
|
hgap, |
|
|
|
vgap, |
|
|
|
vgap, |
|
|
|
items: [ |
|
|
|
items: [ |
|
|
@ -230,7 +229,7 @@ export class FormJdbc extends BI.Widget { |
|
|
|
type: FormItemXtype, |
|
|
|
type: FormItemXtype, |
|
|
|
name: BI.i18nText('Dec-Dcm_Connection_Form_UserName'), |
|
|
|
name: BI.i18nText('Dec-Dcm_Connection_Form_UserName'), |
|
|
|
invisible: !!authType, |
|
|
|
invisible: !!authType, |
|
|
|
ref: (_ref: any) => { |
|
|
|
ref: (_ref: FormItem) => { |
|
|
|
this.formUser = _ref; |
|
|
|
this.formUser = _ref; |
|
|
|
}, |
|
|
|
}, |
|
|
|
forms: [{ |
|
|
|
forms: [{ |
|
|
@ -249,7 +248,7 @@ export class FormJdbc extends BI.Widget { |
|
|
|
type: FormItemXtype, |
|
|
|
type: FormItemXtype, |
|
|
|
name: BI.i18nText('Dec-Dcm_Connection_Form_Password'), |
|
|
|
name: BI.i18nText('Dec-Dcm_Connection_Form_Password'), |
|
|
|
invisible: !!authType, |
|
|
|
invisible: !!authType, |
|
|
|
ref: (_ref: any) => { |
|
|
|
ref: (_ref: FormItem) => { |
|
|
|
this.formPassword = _ref; |
|
|
|
this.formPassword = _ref; |
|
|
|
}, |
|
|
|
}, |
|
|
|
forms: [{ |
|
|
|
forms: [{ |
|
|
@ -272,7 +271,7 @@ export class FormJdbc extends BI.Widget { |
|
|
|
type: FormItemXtype, |
|
|
|
type: FormItemXtype, |
|
|
|
name: BI.i18nText('Dec-Dcm_Connection_Form_Principal'), |
|
|
|
name: BI.i18nText('Dec-Dcm_Connection_Form_Principal'), |
|
|
|
invisible: !authType, |
|
|
|
invisible: !authType, |
|
|
|
ref: (_ref: any) => { |
|
|
|
ref: (_ref: FormItem) => { |
|
|
|
this.formPrincipal = _ref; |
|
|
|
this.formPrincipal = _ref; |
|
|
|
}, |
|
|
|
}, |
|
|
|
forms: [{ |
|
|
|
forms: [{ |
|
|
@ -291,7 +290,7 @@ export class FormJdbc extends BI.Widget { |
|
|
|
type: FormItemXtype, |
|
|
|
type: FormItemXtype, |
|
|
|
name: BI.i18nText('Dec-Dcm_Connection_Form_KeyPath'), |
|
|
|
name: BI.i18nText('Dec-Dcm_Connection_Form_KeyPath'), |
|
|
|
invisible: !authType, |
|
|
|
invisible: !authType, |
|
|
|
ref: (_ref: any) => { |
|
|
|
ref: (_ref: FormItem) => { |
|
|
|
this.formKeyPath = _ref; |
|
|
|
this.formKeyPath = _ref; |
|
|
|
}, |
|
|
|
}, |
|
|
|
forms: [{ |
|
|
|
forms: [{ |
|
|
@ -338,9 +337,9 @@ export class FormJdbc extends BI.Widget { |
|
|
|
height: 64, |
|
|
|
height: 64, |
|
|
|
name: BI.i18nText('Dec-Dcm_Connection_Form_Pattern'), |
|
|
|
name: BI.i18nText('Dec-Dcm_Connection_Form_Pattern'), |
|
|
|
forms: [{ |
|
|
|
forms: [{ |
|
|
|
type: Vertical, |
|
|
|
type: BI.VerticalLayout.xtype, |
|
|
|
items: [{ |
|
|
|
items: [{ |
|
|
|
type: Left, |
|
|
|
type: BI.FloatLeftLayout.xtype, |
|
|
|
items: [{ |
|
|
|
items: [{ |
|
|
|
type: BI.TextButton.xtype, |
|
|
|
type: BI.TextButton.xtype, |
|
|
|
cls: 'bi-high-light', |
|
|
|
cls: 'bi-high-light', |
|
|
@ -369,7 +368,7 @@ export class FormJdbc extends BI.Widget { |
|
|
|
}], |
|
|
|
}], |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
type: Layout, |
|
|
|
type: BI.Layout.xtype, |
|
|
|
cls: 'bi-border-top', |
|
|
|
cls: 'bi-border-top', |
|
|
|
bgap: 8, |
|
|
|
bgap: 8, |
|
|
|
}, |
|
|
|
}, |
|
|
@ -412,11 +411,11 @@ export class FormJdbc extends BI.Widget { |
|
|
|
], |
|
|
|
], |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
type: Vertical, |
|
|
|
type: BI.VerticalLayout.xtype, |
|
|
|
vgap, |
|
|
|
vgap, |
|
|
|
tgap: -15, |
|
|
|
tgap: -15, |
|
|
|
invisible: true, |
|
|
|
invisible: true, |
|
|
|
ref: (_ref: any) => { |
|
|
|
ref: (_ref: VerticalLayout) => { |
|
|
|
this.advancedSet = _ref; |
|
|
|
this.advancedSet = _ref; |
|
|
|
}, |
|
|
|
}, |
|
|
|
items: [ |
|
|
|
items: [ |
|
|
|