|
|
@ -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,53 +76301,84 @@ BI.ColorChooserPopup = BI.inherit(BI.Widget, { |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
BI.createWidget({ |
|
|
|
return { |
|
|
|
type: "bi.vtape", |
|
|
|
type: "bi.absolute", |
|
|
|
element: this, |
|
|
|
|
|
|
|
items: [{ |
|
|
|
items: [{ |
|
|
|
el: { |
|
|
|
el: { |
|
|
|
type: "bi.absolute", |
|
|
|
type: "bi.vtape", |
|
|
|
cls: "bi-background bi-border-bottom", |
|
|
|
|
|
|
|
items: [{ |
|
|
|
|
|
|
|
el: this.colorEditor, |
|
|
|
|
|
|
|
left: 0, |
|
|
|
|
|
|
|
right: 0, |
|
|
|
|
|
|
|
top: 5 |
|
|
|
|
|
|
|
}] |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
height: 30 |
|
|
|
|
|
|
|
}, { |
|
|
|
|
|
|
|
el: { |
|
|
|
|
|
|
|
type: "bi.absolute", |
|
|
|
|
|
|
|
items: [{ |
|
|
|
items: [{ |
|
|
|
el: this.storeColors, |
|
|
|
el: { |
|
|
|
left: 5, |
|
|
|
type: "bi.absolute", |
|
|
|
right: 5, |
|
|
|
cls: "bi-background bi-border-bottom", |
|
|
|
top: 5 |
|
|
|
items: [{ |
|
|
|
|
|
|
|
el: this.colorEditor, |
|
|
|
|
|
|
|
left: 0, |
|
|
|
|
|
|
|
right: 0, |
|
|
|
|
|
|
|
top: 5 |
|
|
|
|
|
|
|
}] |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
height: 30 |
|
|
|
|
|
|
|
}, { |
|
|
|
|
|
|
|
el: { |
|
|
|
|
|
|
|
type: "bi.absolute", |
|
|
|
|
|
|
|
items: [{ |
|
|
|
|
|
|
|
el: this.storeColors, |
|
|
|
|
|
|
|
left: 5, |
|
|
|
|
|
|
|
right: 5, |
|
|
|
|
|
|
|
top: 5 |
|
|
|
|
|
|
|
}] |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
height: 30 |
|
|
|
|
|
|
|
}, { |
|
|
|
|
|
|
|
el: { |
|
|
|
|
|
|
|
type: "bi.absolute", |
|
|
|
|
|
|
|
items: [{ |
|
|
|
|
|
|
|
el: this.colorPicker, |
|
|
|
|
|
|
|
left: 5, |
|
|
|
|
|
|
|
right: 5, |
|
|
|
|
|
|
|
top: 5 |
|
|
|
|
|
|
|
}] |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
height: 65 |
|
|
|
|
|
|
|
}, { |
|
|
|
|
|
|
|
el: this.more, |
|
|
|
|
|
|
|
height: 20 |
|
|
|
}] |
|
|
|
}] |
|
|
|
}, |
|
|
|
}, |
|
|
|
height: 30 |
|
|
|
left: 0, |
|
|
|
|
|
|
|
right: 0, |
|
|
|
|
|
|
|
top: 0, |
|
|
|
|
|
|
|
bottom: 0 |
|
|
|
}, { |
|
|
|
}, { |
|
|
|
el: { |
|
|
|
el: { |
|
|
|
type: "bi.absolute", |
|
|
|
type: "bi.layout", |
|
|
|
items: [{ |
|
|
|
cls: "disable-mask", |
|
|
|
el: this.colorPicker, |
|
|
|
invisible: !o.disabled, |
|
|
|
left: 5, |
|
|
|
ref: function () { |
|
|
|
right: 5, |
|
|
|
self.mask = this; |
|
|
|
top: 5 |
|
|
|
} |
|
|
|
}] |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
height: 65 |
|
|
|
left: 0, |
|
|
|
}, { |
|
|
|
right: 0, |
|
|
|
el: this.more, |
|
|
|
top: 0, |
|
|
|
height: 20 |
|
|
|
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(); |
|
|
|
}, |
|
|
|
}, |
|
|
|