|
|
|
@ -1,5 +1,5 @@
|
|
|
|
|
import { shortcut } from '@core/core'; |
|
|
|
|
import { Vertical, TextEditor, TextValueCombo, Label, TextAreaEditor, Editor, EdirotIconCheckCombo, Left, TextButton } from 'ui'; |
|
|
|
|
import { Vertical, TextEditor, TextValueCombo, Label, TextAreaEditor, Editor, EdirotIconCheckCombo, Left, TextButton, 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'; |
|
|
|
@ -114,6 +114,7 @@ export class FormJdbc extends BI.Widget {
|
|
|
|
|
name: BI.i18nText('Dec-Dcm_Connection_Form_Database_Name'), |
|
|
|
|
forms: [{ |
|
|
|
|
type: TextEditor, |
|
|
|
|
cls: 'bi-border-radius', |
|
|
|
|
width: 300, |
|
|
|
|
allowBlank: true, |
|
|
|
|
watermark: BI.i18nText('Dec-Dcm_Connection_Form_Database_Name'), |
|
|
|
@ -134,6 +135,7 @@ export class FormJdbc extends BI.Widget {
|
|
|
|
|
name: BI.i18nText('Dec-Dcm_Connection_Form_Host'), |
|
|
|
|
forms: [{ |
|
|
|
|
type: TextEditor, |
|
|
|
|
cls: 'bi-border-radius', |
|
|
|
|
width: 300, |
|
|
|
|
allowBlank: true, |
|
|
|
|
value: host, |
|
|
|
@ -219,6 +221,7 @@ export class FormJdbc extends BI.Widget {
|
|
|
|
|
}, |
|
|
|
|
forms: [{ |
|
|
|
|
type: TextEditor, |
|
|
|
|
cls: 'bi-border-radius', |
|
|
|
|
width: 300, |
|
|
|
|
allowBlank: true, |
|
|
|
|
value: user, |
|
|
|
@ -237,7 +240,7 @@ export class FormJdbc extends BI.Widget {
|
|
|
|
|
}, |
|
|
|
|
forms: [{ |
|
|
|
|
type: Editor, |
|
|
|
|
cls: 'bi-border', |
|
|
|
|
cls: 'bi-border bi-border-radius', |
|
|
|
|
width: 300, |
|
|
|
|
height: 20, |
|
|
|
|
allowBlank: true, |
|
|
|
@ -258,6 +261,7 @@ export class FormJdbc extends BI.Widget {
|
|
|
|
|
}, |
|
|
|
|
forms: [{ |
|
|
|
|
type: TextEditor, |
|
|
|
|
cls: 'bi-border-radius', |
|
|
|
|
width: 300, |
|
|
|
|
allowBlank: true, |
|
|
|
|
value: principal, |
|
|
|
@ -276,7 +280,7 @@ export class FormJdbc extends BI.Widget {
|
|
|
|
|
}, |
|
|
|
|
forms: [{ |
|
|
|
|
type: Editor, |
|
|
|
|
cls: 'bi-border', |
|
|
|
|
cls: 'bi-border bi-border-radius', |
|
|
|
|
width: 300, |
|
|
|
|
height: 20, |
|
|
|
|
allowBlank: true, |
|
|
|
@ -313,6 +317,7 @@ export class FormJdbc extends BI.Widget {
|
|
|
|
|
{ |
|
|
|
|
type: FormItemXtype, |
|
|
|
|
invisible: !databaseType.hasSchema, |
|
|
|
|
height: 64, |
|
|
|
|
name: BI.i18nText('Dec-Dcm_Connection_Form_Pattern'), |
|
|
|
|
forms: [{ |
|
|
|
|
type: Vertical, |
|
|
|
@ -344,11 +349,17 @@ export class FormJdbc extends BI.Widget {
|
|
|
|
|
}], |
|
|
|
|
}], |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
type: Layout, |
|
|
|
|
cls: 'bi-border-top', |
|
|
|
|
bgap: 8, |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
type: FormItemXtype, |
|
|
|
|
name: BI.i18nText('Dec-Dcm_Connection_Form_Database_URL'), |
|
|
|
|
forms: [{ |
|
|
|
|
type: TextEditor, |
|
|
|
|
cls: 'bi-border-radius', |
|
|
|
|
width: 300, |
|
|
|
|
allowBlank: true, |
|
|
|
|
value: url, |
|
|
|
@ -383,6 +394,7 @@ export class FormJdbc extends BI.Widget {
|
|
|
|
|
{ |
|
|
|
|
type: Vertical, |
|
|
|
|
vgap, |
|
|
|
|
tgap: -15, |
|
|
|
|
invisible: true, |
|
|
|
|
ref: (_ref: any) => { |
|
|
|
|
this.advancedSet = _ref; |
|
|
|
@ -486,6 +498,7 @@ export class FormJdbc extends BI.Widget {
|
|
|
|
|
{ |
|
|
|
|
type: Label, |
|
|
|
|
lgap: 5, |
|
|
|
|
height: CONNECTION_LAYOUT.labelHeight, |
|
|
|
|
text: BI.i18nText('Dec-Dcm_Millisecond'), |
|
|
|
|
}, |
|
|
|
|
], |
|
|
|
@ -495,7 +508,7 @@ export class FormJdbc extends BI.Widget {
|
|
|
|
|
name: BI.i18nText('Dec-Dcm_Connection_Form_SQL_Validation_Query'), |
|
|
|
|
forms: [{ |
|
|
|
|
type: TextAreaEditor, |
|
|
|
|
cls: 'bi-border', |
|
|
|
|
cls: 'bi-border bi-border-radius', |
|
|
|
|
allowBlank: true, |
|
|
|
|
watermark: BI.i18nText('Dec-Dcm_Connection_Form_Place_Input'), |
|
|
|
|
value: validationQuery, |
|
|
|
@ -573,6 +586,7 @@ export class FormJdbc extends BI.Widget {
|
|
|
|
|
{ |
|
|
|
|
type: Label, |
|
|
|
|
lgap: 5, |
|
|
|
|
height: CONNECTION_LAYOUT.labelHeight, |
|
|
|
|
text: BI.i18nText('Dec-Dcm_Millisecond'), |
|
|
|
|
}, |
|
|
|
|
], |
|
|
|
@ -618,6 +632,7 @@ export class FormJdbc extends BI.Widget {
|
|
|
|
|
{ |
|
|
|
|
type: Label, |
|
|
|
|
lgap: 5, |
|
|
|
|
height: CONNECTION_LAYOUT.labelHeight, |
|
|
|
|
text: BI.i18nText('BI-Basic_Seconds'), |
|
|
|
|
}, |
|
|
|
|
], |
|
|
|
|