|
|
@ -76188,16 +76188,13 @@ BI.shortcut("bi.color_chooser", BI.ColorChooser);/** |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
BI.ColorChooserPopup = BI.inherit(BI.Widget, { |
|
|
|
BI.ColorChooserPopup = BI.inherit(BI.Widget, { |
|
|
|
|
|
|
|
|
|
|
|
_defaultConfig: function () { |
|
|
|
props: { |
|
|
|
return BI.extend(BI.ColorChooserPopup.superclass._defaultConfig.apply(this, arguments), { |
|
|
|
|
|
|
|
baseCls: "bi-color-chooser-popup", |
|
|
|
baseCls: "bi-color-chooser-popup", |
|
|
|
width: 200, |
|
|
|
width: 200, |
|
|
|
height: 145 |
|
|
|
height: 145 |
|
|
|
}); |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
_init: function () { |
|
|
|
render: function () { |
|
|
|
BI.ColorChooserPopup.superclass._init.apply(this, arguments); |
|
|
|
|
|
|
|
var self = this, o = this.options; |
|
|
|
var self = this, o = this.options; |
|
|
|
this.colorEditor = BI.createWidget(o.editor, { |
|
|
|
this.colorEditor = BI.createWidget(o.editor, { |
|
|
|
type: "bi.color_picker_editor", |
|
|
|
type: "bi.color_picker_editor", |
|
|
@ -76304,9 +76301,11 @@ BI.ColorChooserPopup = BI.inherit(BI.Widget, { |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
BI.createWidget({ |
|
|
|
return { |
|
|
|
|
|
|
|
type: "bi.absolute", |
|
|
|
|
|
|
|
items: [{ |
|
|
|
|
|
|
|
el: { |
|
|
|
type: "bi.vtape", |
|
|
|
type: "bi.vtape", |
|
|
|
element: this, |
|
|
|
|
|
|
|
items: [{ |
|
|
|
items: [{ |
|
|
|
el: { |
|
|
|
el: { |
|
|
|
type: "bi.absolute", |
|
|
|
type: "bi.absolute", |
|
|
@ -76345,12 +76344,41 @@ BI.ColorChooserPopup = BI.inherit(BI.Widget, { |
|
|
|
el: this.more, |
|
|
|
el: this.more, |
|
|
|
height: 20 |
|
|
|
height: 20 |
|
|
|
}] |
|
|
|
}] |
|
|
|
}); |
|
|
|
}, |
|
|
|
|
|
|
|
left: 0, |
|
|
|
|
|
|
|
right: 0, |
|
|
|
|
|
|
|
top: 0, |
|
|
|
|
|
|
|
bottom: 0 |
|
|
|
|
|
|
|
}, { |
|
|
|
|
|
|
|
el: { |
|
|
|
|
|
|
|
type: "bi.layout", |
|
|
|
|
|
|
|
cls: "disable-mask", |
|
|
|
|
|
|
|
invisible: !o.disabled, |
|
|
|
|
|
|
|
ref: function () { |
|
|
|
|
|
|
|
self.mask = this; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
left: 0, |
|
|
|
|
|
|
|
right: 0, |
|
|
|
|
|
|
|
top: 0, |
|
|
|
|
|
|
|
bottom: 0 |
|
|
|
|
|
|
|
}] |
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
mounted: function () { |
|
|
|
|
|
|
|
var self = this; |
|
|
|
|
|
|
|
var o = this.options; |
|
|
|
if (BI.isNotNull(o.value)) { |
|
|
|
if (BI.isNotNull(o.value)) { |
|
|
|
this.setValue(o.value); |
|
|
|
this.setValue(o.value); |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_setEnable: function (enable) { |
|
|
|
|
|
|
|
BI.ColorChooserPopup.superclass._setEnable.apply(this, arguments); |
|
|
|
|
|
|
|
this.mask.setVisible(!enable); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
setStoreColors: function (colors) { |
|
|
|
setStoreColors: function (colors) { |
|
|
|
if (BI.isArray(colors)) { |
|
|
|
if (BI.isArray(colors)) { |
|
|
|
var items = BI.map(colors, function (i, color) { |
|
|
|
var items = BI.map(colors, function (i, color) { |
|
|
@ -80709,7 +80737,7 @@ BI.SimpleStateEditor = BI.inherit(BI.Widget, { |
|
|
|
}); |
|
|
|
}); |
|
|
|
this.text = BI.createWidget({ |
|
|
|
this.text = BI.createWidget({ |
|
|
|
type: "bi.text_button", |
|
|
|
type: "bi.text_button", |
|
|
|
cls: "state-editor-infinite-text bi-disabled", |
|
|
|
cls: "state-editor-infinite-text", |
|
|
|
textAlign: "left", |
|
|
|
textAlign: "left", |
|
|
|
height: o.height, |
|
|
|
height: o.height, |
|
|
|
text: BI.i18nText("BI-Basic_Unrestricted"), |
|
|
|
text: BI.i18nText("BI-Basic_Unrestricted"), |
|
|
@ -84089,7 +84117,7 @@ BI.shortcut("bi.rich_editor_size_chooser", BI.RichEditorSizeChooser);/** |
|
|
|
BI.RichEditor = BI.inherit(BI.Widget, { |
|
|
|
BI.RichEditor = BI.inherit(BI.Widget, { |
|
|
|
|
|
|
|
|
|
|
|
props: { |
|
|
|
props: { |
|
|
|
baseCls: "bi-rich-editor", |
|
|
|
baseCls: "bi-rich-editor bi-textarea", |
|
|
|
toolbar: {}, |
|
|
|
toolbar: {}, |
|
|
|
readOnly: false |
|
|
|
readOnly: false |
|
|
|
}, |
|
|
|
}, |
|
|
@ -84160,6 +84188,11 @@ BI.RichEditor = BI.inherit(BI.Widget, { |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_setEnable: function (enable) { |
|
|
|
|
|
|
|
BI.RichEditor.superclass._setEnable.apply(this, arguments); |
|
|
|
|
|
|
|
this.mask.setVisible(!enable); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
focus: function () { |
|
|
|
focus: function () { |
|
|
|
this.editor.focus(); |
|
|
|
this.editor.focus(); |
|
|
|
}, |
|
|
|
}, |
|
|
|