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