|
|
|
@ -50495,7 +50495,7 @@ BI.FormulaEditor = BI.inherit(BI.Single, {
|
|
|
|
|
|
|
|
|
|
getValue: function () { |
|
|
|
|
var fieldMap = this.options.fieldTextValueMap; |
|
|
|
|
return this.editor.getValue("\n", function (line) { |
|
|
|
|
var v = this.editor.getValue("\n", function (line) { |
|
|
|
|
var rawText = line.text, value = line.text, num = 0; |
|
|
|
|
value.text = rawText; |
|
|
|
|
_.forEach(line.markedSpans, function (i, ms) { |
|
|
|
@ -50510,7 +50510,7 @@ BI.FormulaEditor = BI.inherit(BI.Single, {
|
|
|
|
|
break; |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
return value; |
|
|
|
|
return v.replaceAll("(\\$\\{.*?\\})\\s", "$1"); |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
@ -52344,6 +52344,7 @@ BI.IconButton = BI.inherit(BI.BasicButton, {
|
|
|
|
|
items: [this.icon] |
|
|
|
|
}); |
|
|
|
|
} else { |
|
|
|
|
this.element.css("lineHeight", "1"); |
|
|
|
|
BI.createWidget({ |
|
|
|
|
element: this, |
|
|
|
|
type: "bi.center_adapt", |
|
|
|
@ -76137,7 +76138,7 @@ BI.ColorChooser = BI.inherit(BI.Widget, {
|
|
|
|
|
}] |
|
|
|
|
}, o.popup), |
|
|
|
|
stopPropagation: false, |
|
|
|
|
width: 202 |
|
|
|
|
width: 230 |
|
|
|
|
}, |
|
|
|
|
value: o.value |
|
|
|
|
}); |
|
|
|
@ -76193,7 +76194,7 @@ BI.ColorChooserPopup = BI.inherit(BI.Widget, {
|
|
|
|
|
|
|
|
|
|
props: { |
|
|
|
|
baseCls: "bi-color-chooser-popup", |
|
|
|
|
width: 200, |
|
|
|
|
width: 230, |
|
|
|
|
height: 145 |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
@ -76201,7 +76202,9 @@ BI.ColorChooserPopup = BI.inherit(BI.Widget, {
|
|
|
|
|
var self = this, o = this.options; |
|
|
|
|
this.colorEditor = BI.createWidget(o.editor, { |
|
|
|
|
type: "bi.color_picker_editor", |
|
|
|
|
value: o.value |
|
|
|
|
value: o.value, |
|
|
|
|
cls: "bi-background bi-border-bottom", |
|
|
|
|
height: 30 |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
this.colorEditor.on(BI.ColorPickerEditor.EVENT_CHANGE, function () { |
|
|
|
@ -76236,8 +76239,8 @@ BI.ColorChooserPopup = BI.inherit(BI.Widget, {
|
|
|
|
|
value: "", |
|
|
|
|
disabled: true |
|
|
|
|
}]], |
|
|
|
|
width: 190, |
|
|
|
|
height: 25, |
|
|
|
|
width: 210, |
|
|
|
|
height: 24, |
|
|
|
|
value: o.value |
|
|
|
|
}); |
|
|
|
|
this.storeColors.on(BI.ColorPicker.EVENT_CHANGE, function () { |
|
|
|
@ -76247,7 +76250,7 @@ BI.ColorChooserPopup = BI.inherit(BI.Widget, {
|
|
|
|
|
|
|
|
|
|
this.colorPicker = BI.createWidget({ |
|
|
|
|
type: "bi.color_picker", |
|
|
|
|
width: 190, |
|
|
|
|
width: 210, |
|
|
|
|
height: 50, |
|
|
|
|
value: o.value |
|
|
|
|
}); |
|
|
|
@ -76282,7 +76285,7 @@ BI.ColorChooserPopup = BI.inherit(BI.Widget, {
|
|
|
|
|
type: "bi.text_item", |
|
|
|
|
cls: "color-chooser-popup-more bi-list-item", |
|
|
|
|
textAlign: "center", |
|
|
|
|
height: 20, |
|
|
|
|
height: 24, |
|
|
|
|
text: BI.i18nText("BI-Basic_More") + "..." |
|
|
|
|
}, |
|
|
|
|
popup: panel |
|
|
|
@ -76309,43 +76312,32 @@ BI.ColorChooserPopup = BI.inherit(BI.Widget, {
|
|
|
|
|
items: [{ |
|
|
|
|
el: { |
|
|
|
|
type: "bi.vtape", |
|
|
|
|
items: [{ |
|
|
|
|
el: { |
|
|
|
|
type: "bi.absolute", |
|
|
|
|
cls: "bi-background bi-border-bottom", |
|
|
|
|
items: [{ |
|
|
|
|
el: this.colorEditor, |
|
|
|
|
left: 0, |
|
|
|
|
right: 0, |
|
|
|
|
top: 5 |
|
|
|
|
}] |
|
|
|
|
}, |
|
|
|
|
height: 30 |
|
|
|
|
}, { |
|
|
|
|
items: [this.colorEditor, { |
|
|
|
|
el: { |
|
|
|
|
type: "bi.absolute", |
|
|
|
|
items: [{ |
|
|
|
|
el: this.storeColors, |
|
|
|
|
left: 5, |
|
|
|
|
right: 5, |
|
|
|
|
left: 10, |
|
|
|
|
right: 10, |
|
|
|
|
top: 5 |
|
|
|
|
}] |
|
|
|
|
}, |
|
|
|
|
height: 30 |
|
|
|
|
height: 29 |
|
|
|
|
}, { |
|
|
|
|
el: { |
|
|
|
|
type: "bi.absolute", |
|
|
|
|
items: [{ |
|
|
|
|
el: this.colorPicker, |
|
|
|
|
left: 5, |
|
|
|
|
right: 5, |
|
|
|
|
top: 5 |
|
|
|
|
left: 10, |
|
|
|
|
right: 10, |
|
|
|
|
top: 5, |
|
|
|
|
bottom: 5 |
|
|
|
|
}] |
|
|
|
|
}, |
|
|
|
|
height: 65 |
|
|
|
|
height: 60 |
|
|
|
|
}, { |
|
|
|
|
el: this.more, |
|
|
|
|
height: 20 |
|
|
|
|
height: 24 |
|
|
|
|
}] |
|
|
|
|
}, |
|
|
|
|
left: 0, |
|
|
|
@ -76934,7 +76926,7 @@ BI.ColorPickerEditor = BI.inherit(BI.Widget, {
|
|
|
|
|
return BI.extend(BI.ColorPickerEditor.superclass._defaultConfig.apply(this, arguments), { |
|
|
|
|
baseCls: "bi-color-picker-editor", |
|
|
|
|
// width: 200,
|
|
|
|
|
height: 20 |
|
|
|
|
height: 30 |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
@ -76945,12 +76937,13 @@ BI.ColorPickerEditor = BI.inherit(BI.Widget, {
|
|
|
|
|
this.colorShow = BI.createWidget({ |
|
|
|
|
type: "bi.layout", |
|
|
|
|
cls: "color-picker-editor-display bi-card", |
|
|
|
|
height: 20 |
|
|
|
|
height: 16, |
|
|
|
|
width: 16 |
|
|
|
|
}); |
|
|
|
|
var RGB = BI.createWidgets(BI.createItems([{text: "R"}, {text: "G"}, {text: "B"}], { |
|
|
|
|
type: "bi.label", |
|
|
|
|
cls: "color-picker-editor-label", |
|
|
|
|
width: 10, |
|
|
|
|
width: 20, |
|
|
|
|
height: 20 |
|
|
|
|
})); |
|
|
|
|
|
|
|
|
@ -76983,8 +76976,8 @@ BI.ColorPickerEditor = BI.inherit(BI.Widget, {
|
|
|
|
|
this.none = BI.createWidget({ |
|
|
|
|
type: "bi.icon_button", |
|
|
|
|
cls: "auto-color-icon", |
|
|
|
|
width: 16, |
|
|
|
|
height: 16, |
|
|
|
|
width: 24, |
|
|
|
|
height: 24, |
|
|
|
|
iconWidth: 16, |
|
|
|
|
iconHeight: 16, |
|
|
|
|
title: BI.i18nText("BI-Basic_Auto") |
|
|
|
@ -77005,8 +76998,8 @@ BI.ColorPickerEditor = BI.inherit(BI.Widget, {
|
|
|
|
|
this.transparent = BI.createWidget({ |
|
|
|
|
type: "bi.icon_button", |
|
|
|
|
cls: "trans-color-icon", |
|
|
|
|
width: 16, |
|
|
|
|
height: 16, |
|
|
|
|
width: 24, |
|
|
|
|
height: 24, |
|
|
|
|
iconWidth: 16, |
|
|
|
|
iconHeight: 16, |
|
|
|
|
title: BI.i18nText("BI-Transparent_Color") |
|
|
|
@ -77029,44 +77022,44 @@ BI.ColorPickerEditor = BI.inherit(BI.Widget, {
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
BI.createWidget({ |
|
|
|
|
type: "bi.htape", |
|
|
|
|
type: "bi.absolute", |
|
|
|
|
element: this, |
|
|
|
|
items: [{ |
|
|
|
|
el: { |
|
|
|
|
type: "bi.vertical_adapt", |
|
|
|
|
items: [{ |
|
|
|
|
el: this.colorShow, |
|
|
|
|
width: "fill" |
|
|
|
|
width: 16 |
|
|
|
|
}, { |
|
|
|
|
el: RGB[0], |
|
|
|
|
lgap: 10, |
|
|
|
|
width: 16 |
|
|
|
|
width: 20 |
|
|
|
|
}, { |
|
|
|
|
el: this.R, |
|
|
|
|
width: 32 |
|
|
|
|
width: 30 |
|
|
|
|
}, { |
|
|
|
|
el: RGB[1], |
|
|
|
|
lgap: 10, |
|
|
|
|
width: 16 |
|
|
|
|
width: 20 |
|
|
|
|
}, { |
|
|
|
|
el: this.G, |
|
|
|
|
width: 32 |
|
|
|
|
width: 30 |
|
|
|
|
}, { |
|
|
|
|
el: RGB[2], |
|
|
|
|
lgap: 10, |
|
|
|
|
width: 16 |
|
|
|
|
width: 20 |
|
|
|
|
}, { |
|
|
|
|
el: this.B, |
|
|
|
|
width: 32 |
|
|
|
|
width: 30 |
|
|
|
|
}, { |
|
|
|
|
el: { |
|
|
|
|
type: "bi.center_adapt", |
|
|
|
|
items: [this.none] |
|
|
|
|
}, |
|
|
|
|
width: 18 |
|
|
|
|
el: this.transparent, |
|
|
|
|
width: 24 |
|
|
|
|
}, { |
|
|
|
|
el: { |
|
|
|
|
type: "bi.center_adapt", |
|
|
|
|
items: [this.transparent] |
|
|
|
|
el: this.none, |
|
|
|
|
width: 24 |
|
|
|
|
}] |
|
|
|
|
}, |
|
|
|
|
width: 18 |
|
|
|
|
left: 10, |
|
|
|
|
right: 20, |
|
|
|
|
top: 0, |
|
|
|
|
bottom: 0 |
|
|
|
|
}] |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
@ -77171,12 +77164,13 @@ BI.SimpleColorPickerEditor = BI.inherit(BI.Widget, {
|
|
|
|
|
this.colorShow = BI.createWidget({ |
|
|
|
|
type: "bi.layout", |
|
|
|
|
cls: "color-picker-editor-display bi-card", |
|
|
|
|
height: 20 |
|
|
|
|
height: 20, |
|
|
|
|
width: 40 |
|
|
|
|
}); |
|
|
|
|
var RGB = BI.createWidgets(BI.createItems([{text: "R"}, {text: "G"}, {text: "B"}], { |
|
|
|
|
type: "bi.label", |
|
|
|
|
cls: "color-picker-editor-label", |
|
|
|
|
width: 10, |
|
|
|
|
width: 20, |
|
|
|
|
height: 20 |
|
|
|
|
})); |
|
|
|
|
|
|
|
|
@ -77206,34 +77200,31 @@ BI.SimpleColorPickerEditor = BI.inherit(BI.Widget, {
|
|
|
|
|
this.B = Ws[2]; |
|
|
|
|
|
|
|
|
|
BI.createWidget({ |
|
|
|
|
type: "bi.htape", |
|
|
|
|
type: "bi.vertical_adapt", |
|
|
|
|
element: this, |
|
|
|
|
items: [{ |
|
|
|
|
el: this.colorShow, |
|
|
|
|
width: 40, |
|
|
|
|
lgap: 5, |
|
|
|
|
rgap: 5 |
|
|
|
|
}, { |
|
|
|
|
el: RGB[0], |
|
|
|
|
lgap: 10, |
|
|
|
|
width: 16 |
|
|
|
|
width: 20 |
|
|
|
|
}, { |
|
|
|
|
el: this.R, |
|
|
|
|
width: 36 |
|
|
|
|
width: 30 |
|
|
|
|
}, { |
|
|
|
|
el: RGB[1], |
|
|
|
|
lgap: 10, |
|
|
|
|
width: 16 |
|
|
|
|
width: 20 |
|
|
|
|
}, { |
|
|
|
|
el: this.G, |
|
|
|
|
width: 36 |
|
|
|
|
width: 30 |
|
|
|
|
}, { |
|
|
|
|
el: RGB[2], |
|
|
|
|
lgap: 10, |
|
|
|
|
width: 16 |
|
|
|
|
width: 20 |
|
|
|
|
}, { |
|
|
|
|
el: this.B, |
|
|
|
|
width: 36, |
|
|
|
|
rgap: 10 |
|
|
|
|
width: 30 |
|
|
|
|
}] |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
@ -91398,6 +91389,7 @@ BI.shortcut("bi.dynamic_date_popup", BI.DynamicDatePopup);BI.DynamicDateTrigger
|
|
|
|
|
_init: function () { |
|
|
|
|
BI.DynamicDateTrigger.superclass._init.apply(this, arguments); |
|
|
|
|
var self = this, o = this.options, c = this._const; |
|
|
|
|
this.storeTriggerValue = ""; |
|
|
|
|
this.editor = BI.createWidget({ |
|
|
|
|
type: "bi.sign_editor", |
|
|
|
|
height: o.height, |
|
|
|
@ -91447,6 +91439,7 @@ BI.shortcut("bi.dynamic_date_popup", BI.DynamicDatePopup);BI.DynamicDateTrigger
|
|
|
|
|
self.fireEvent(BI.DynamicDateTrigger.EVENT_KEY_DOWN); |
|
|
|
|
}); |
|
|
|
|
this.editor.on(BI.SignEditor.EVENT_FOCUS, function () { |
|
|
|
|
self.storeTriggerValue = self.getKey(); |
|
|
|
|
self.fireEvent(BI.DynamicDateTrigger.EVENT_FOCUS); |
|
|
|
|
}); |
|
|
|
|
this.editor.on(BI.SignEditor.EVENT_STOP, function () { |
|
|
|
@ -91464,7 +91457,7 @@ BI.shortcut("bi.dynamic_date_popup", BI.DynamicDatePopup);BI.DynamicDateTrigger
|
|
|
|
|
self.editor.setState(value); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (BI.isNotEmptyString(value)) { |
|
|
|
|
if (BI.isNotEmptyString(value) && !BI.isEqual(self.storeTriggerValue, self.getKey())) { |
|
|
|
|
var date = value.split("-"); |
|
|
|
|
self.storeValue = { |
|
|
|
|
type: BI.DynamicDateCombo.Static, |
|
|
|
@ -92379,6 +92372,7 @@ BI.extend(BI.DynamicDateTimeSelect, {
|
|
|
|
|
_init: function () { |
|
|
|
|
BI.DynamicDateTimeTrigger.superclass._init.apply(this, arguments); |
|
|
|
|
var self = this, o = this.options, c = this._const; |
|
|
|
|
this.storeTriggerValue = ""; |
|
|
|
|
this.editor = BI.createWidget({ |
|
|
|
|
type: "bi.sign_editor", |
|
|
|
|
height: o.height, |
|
|
|
@ -92428,6 +92422,7 @@ BI.extend(BI.DynamicDateTimeSelect, {
|
|
|
|
|
self.fireEvent(BI.DynamicDateTimeTrigger.EVENT_KEY_DOWN); |
|
|
|
|
}); |
|
|
|
|
this.editor.on(BI.SignEditor.EVENT_FOCUS, function () { |
|
|
|
|
self.storeTriggerValue = self.getKey(); |
|
|
|
|
self.fireEvent(BI.DynamicDateTimeTrigger.EVENT_FOCUS); |
|
|
|
|
}); |
|
|
|
|
this.editor.on(BI.SignEditor.EVENT_STOP, function () { |
|
|
|
@ -92445,7 +92440,7 @@ BI.extend(BI.DynamicDateTimeSelect, {
|
|
|
|
|
self.editor.setState(value); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (BI.isNotEmptyString(value)) { |
|
|
|
|
if (BI.isNotEmptyString(value) && !BI.isEqual(self.storeTriggerValue, self.getKey())) { |
|
|
|
|
var date = value.split(/-|\s|:/); |
|
|
|
|
self.storeValue = { |
|
|
|
|
type: BI.DynamicDateCombo.Static, |
|
|
|
@ -98724,6 +98719,7 @@ BI.MultiSelectLoader = BI.inherit(BI.Widget, {
|
|
|
|
|
return BI.createItems(items, { |
|
|
|
|
type: "bi.multi_select_item", |
|
|
|
|
logic: this.options.logic, |
|
|
|
|
cls: "bi-list-item-active", |
|
|
|
|
height: 24, |
|
|
|
|
selected: this.isAllSelected() |
|
|
|
|
}); |
|
|
|
@ -99551,7 +99547,7 @@ BI.MultiSelectCheckSelectedButton = BI.inherit(BI.Single, {
|
|
|
|
|
|
|
|
|
|
_defaultConfig: function () { |
|
|
|
|
return BI.extend(BI.MultiSelectCheckSelectedButton.superclass._defaultConfig.apply(this, arguments), { |
|
|
|
|
baseCls: "bi-multi-select-check-selected-button bi-high-light", |
|
|
|
|
baseCls: "bi-multi-select-check-selected-button", |
|
|
|
|
itemsCreator: BI.emptyFn |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
@ -99565,7 +99561,8 @@ BI.MultiSelectCheckSelectedButton = BI.inherit(BI.Single, {
|
|
|
|
|
hgap: 4, |
|
|
|
|
text: "0", |
|
|
|
|
textAlign: "center", |
|
|
|
|
textHeight: 15 |
|
|
|
|
textHeight: 16, |
|
|
|
|
cls: "bi-high-light-background count-tip" |
|
|
|
|
}); |
|
|
|
|
this.numberCounter.on(BI.Controller.EVENT_CHANGE, function () { |
|
|
|
|
self.fireEvent(BI.Controller.EVENT_CHANGE, arguments); |
|
|
|
|