|
|
|
@ -35264,12 +35264,12 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
|
|
|
|
defineProps(this, keys); |
|
|
|
|
childContext && defineContext(this, childContext); |
|
|
|
|
this.$$model && (this.model.__ob__ = this.$$model.__ob__); |
|
|
|
|
initMixins(this, mixins); |
|
|
|
|
this._init(); |
|
|
|
|
initState(this, state); |
|
|
|
|
initMixins(this, mixins); |
|
|
|
|
initMethods(this, actions); |
|
|
|
|
initComputed(this, computed); |
|
|
|
|
initWatch(this, watch$$1); |
|
|
|
|
initMethods(this, actions); |
|
|
|
|
this.created && this.created(); |
|
|
|
|
if (this.$$model) { |
|
|
|
|
return this.model; |
|
|
|
@ -35619,10 +35619,14 @@ BI.Pane = BI.inherit(BI.Widget, {
|
|
|
|
|
width: 5 |
|
|
|
|
}] |
|
|
|
|
}); |
|
|
|
|
// pane在同步方式下由items决定tipText的显示与否
|
|
|
|
|
// loading的异步情况下由loaded后对面板的populate的时机决定
|
|
|
|
|
this.setTipVisible(false); |
|
|
|
|
if (o.overlap === true) { |
|
|
|
|
if (!BI.Layers.has(this.getName())) { |
|
|
|
|
BI.createWidget({ |
|
|
|
|
type: "bi.absolute_center_adapt", |
|
|
|
|
cls: "loading-container", |
|
|
|
|
items: [{ |
|
|
|
|
el: loadingAnimation |
|
|
|
|
}], |
|
|
|
@ -35636,6 +35640,7 @@ BI.Pane = BI.inherit(BI.Widget, {
|
|
|
|
|
BI.createWidget({ |
|
|
|
|
type: "bi.absolute_center_adapt", |
|
|
|
|
element: this, |
|
|
|
|
cls: "loading-container", |
|
|
|
|
items: [{ |
|
|
|
|
el: this._loading, |
|
|
|
|
left: 0, |
|
|
|
@ -66930,6 +66935,7 @@ BI.MultiSelectCombo = BI.inherit(BI.Single, {
|
|
|
|
|
BI.each(items, function (i, v) { |
|
|
|
|
if (BI.isNotNull(map[v])) { |
|
|
|
|
change = true; |
|
|
|
|
self.storeValue.assist && self.storeValue.assist.push(map[v]); |
|
|
|
|
delete map[v]; |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
@ -66942,9 +66948,11 @@ BI.MultiSelectCombo = BI.inherit(BI.Single, {
|
|
|
|
|
var newItems = []; |
|
|
|
|
BI.each(items, function (i, item) { |
|
|
|
|
if (BI.isNotNull(selectedMap[items[i]])) { |
|
|
|
|
self.storeValue.assist && self.storeValue.assist.push(selectedMap[items[i]]); |
|
|
|
|
delete selectedMap[items[i]]; |
|
|
|
|
} |
|
|
|
|
if (BI.isNull(notSelectedMap[items[i]])) { |
|
|
|
|
BI.remove(self.storeValue.assist, item); |
|
|
|
|
newItems.push(item); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
@ -66998,6 +67006,7 @@ BI.MultiSelectCombo = BI.inherit(BI.Single, {
|
|
|
|
|
BI.each(res.value, function (i, v) { |
|
|
|
|
if (!map[v]) { |
|
|
|
|
self.storeValue.value.push(v); |
|
|
|
|
BI.remove(self.storeValue.assist, v); |
|
|
|
|
map[v] = v; |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
@ -67005,6 +67014,7 @@ BI.MultiSelectCombo = BI.inherit(BI.Single, {
|
|
|
|
|
BI.each(res.assist, function (i, v) { |
|
|
|
|
if (BI.isNotNull(map[v])) { |
|
|
|
|
change = true; |
|
|
|
|
self.storeValue.assist && self.storeValue.assist.push(map[v]); |
|
|
|
|
delete map[v]; |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
@ -67328,6 +67338,7 @@ BI.MultiSelectInsertCombo = BI.inherit(BI.Single, {
|
|
|
|
|
BI.each(items, function (i, v) { |
|
|
|
|
if (BI.isNotNull(map[v])) { |
|
|
|
|
change = true; |
|
|
|
|
self.storeValue.assist && self.storeValue.assist.push(map[v]); |
|
|
|
|
delete map[v]; |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
@ -67340,9 +67351,11 @@ BI.MultiSelectInsertCombo = BI.inherit(BI.Single, {
|
|
|
|
|
var newItems = []; |
|
|
|
|
BI.each(items, function (i, item) { |
|
|
|
|
if (BI.isNotNull(selectedMap[items[i]])) { |
|
|
|
|
self.storeValue.assist && self.storeValue.assist.push(selectedMap[items[i]]); |
|
|
|
|
delete selectedMap[items[i]]; |
|
|
|
|
} |
|
|
|
|
if (BI.isNull(notSelectedMap[items[i]])) { |
|
|
|
|
BI.remove(self.storeValue.assist, item); |
|
|
|
|
newItems.push(item); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
@ -67373,6 +67386,8 @@ BI.MultiSelectInsertCombo = BI.inherit(BI.Single, {
|
|
|
|
|
BI.each(res.value, function (i, v) { |
|
|
|
|
if (!map[v]) { |
|
|
|
|
self.storeValue.value.push(v); |
|
|
|
|
// value更新的时候assist也需要更新
|
|
|
|
|
BI.remove(self.storeValue.assist, v); |
|
|
|
|
map[v] = v; |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
@ -67380,6 +67395,7 @@ BI.MultiSelectInsertCombo = BI.inherit(BI.Single, {
|
|
|
|
|
BI.each(res.assist, function (i, v) { |
|
|
|
|
if (BI.isNotNull(map[v])) { |
|
|
|
|
change = true; |
|
|
|
|
self.storeValue.assist && self.storeValue.assist.push(map[v]); |
|
|
|
|
delete map[v]; |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
@ -67714,6 +67730,7 @@ BI.MultiSelectInsertNoBarCombo = BI.inherit(BI.Single, {
|
|
|
|
|
BI.each(items, function (i, v) { |
|
|
|
|
if (BI.isNotNull(map[v])) { |
|
|
|
|
change = true; |
|
|
|
|
self.storeValue.assist && self.storeValue.assist.push(map[v]); |
|
|
|
|
delete map[v]; |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
@ -67726,9 +67743,11 @@ BI.MultiSelectInsertNoBarCombo = BI.inherit(BI.Single, {
|
|
|
|
|
var newItems = []; |
|
|
|
|
BI.each(items, function (i, item) { |
|
|
|
|
if (BI.isNotNull(selectedMap[items[i]])) { |
|
|
|
|
self.storeValue.assist && self.storeValue.assist.push(selectedMap[items[i]]); |
|
|
|
|
delete selectedMap[items[i]]; |
|
|
|
|
} |
|
|
|
|
if (BI.isNull(notSelectedMap[items[i]])) { |
|
|
|
|
BI.remove(self.storeValue.assist, item); |
|
|
|
|
newItems.push(item); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
@ -67759,6 +67778,7 @@ BI.MultiSelectInsertNoBarCombo = BI.inherit(BI.Single, {
|
|
|
|
|
BI.each(res.value, function (i, v) { |
|
|
|
|
if (!map[v]) { |
|
|
|
|
self.storeValue.value.push(v); |
|
|
|
|
BI.remove(self.storeValue.assist, v); |
|
|
|
|
map[v] = v; |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
@ -67766,6 +67786,7 @@ BI.MultiSelectInsertNoBarCombo = BI.inherit(BI.Single, {
|
|
|
|
|
BI.each(res.assist, function (i, v) { |
|
|
|
|
if (BI.isNotNull(map[v])) { |
|
|
|
|
change = true; |
|
|
|
|
self.storeValue.assist && self.storeValue.assist.push(map[v]); |
|
|
|
|
delete map[v]; |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
@ -72901,6 +72922,7 @@ BI.SearchMultiTextValueCombo = BI.inherit(BI.Single, {
|
|
|
|
|
BI.each(items, function (i, v) { |
|
|
|
|
if (BI.isNotNull(map[v])) { |
|
|
|
|
change = true; |
|
|
|
|
self.storeValue.assist && self.storeValue.assist.push(map[v]); |
|
|
|
|
delete map[v]; |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
@ -72913,9 +72935,11 @@ BI.SearchMultiTextValueCombo = BI.inherit(BI.Single, {
|
|
|
|
|
var newItems = []; |
|
|
|
|
BI.each(items, function (i, item) { |
|
|
|
|
if (BI.isNotNull(selectedMap[items[i]])) { |
|
|
|
|
self.storeValue.assist && self.storeValue.assist.push(selectedMap[items[i]]); |
|
|
|
|
delete selectedMap[items[i]]; |
|
|
|
|
} |
|
|
|
|
if (BI.isNull(notSelectedMap[items[i]])) { |
|
|
|
|
BI.remove(self.storeValue.assist, item); |
|
|
|
|
newItems.push(item); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
@ -72971,6 +72995,7 @@ BI.SearchMultiTextValueCombo = BI.inherit(BI.Single, {
|
|
|
|
|
BI.each(res.value, function (i, v) { |
|
|
|
|
if (!map[v]) { |
|
|
|
|
self.storeValue.value.push(v); |
|
|
|
|
BI.remove(self.storeValue.assist, v); |
|
|
|
|
map[v] = v; |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
@ -72978,6 +73003,7 @@ BI.SearchMultiTextValueCombo = BI.inherit(BI.Single, {
|
|
|
|
|
BI.each(res.assist, function (i, v) { |
|
|
|
|
if (BI.isNotNull(map[v])) { |
|
|
|
|
change = true; |
|
|
|
|
self.storeValue.assist && self.storeValue.assist.push(map[v]); |
|
|
|
|
delete map[v]; |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
@ -76612,10 +76638,9 @@ BI.SingleSliderLabel = BI.inherit(BI.Widget, {
|
|
|
|
|
el: { |
|
|
|
|
type: "bi.vertical", |
|
|
|
|
items: [{ |
|
|
|
|
type: "bi.absolute", |
|
|
|
|
type: "bi.horizontal_auto", |
|
|
|
|
items: [this.label] |
|
|
|
|
}], |
|
|
|
|
rgap: c.EDITOR_WIDTH, |
|
|
|
|
height: c.EDITOR_HEIGHT |
|
|
|
|
}, |
|
|
|
|
top: 0, |
|
|
|
@ -76642,7 +76667,7 @@ BI.SingleSliderLabel = BI.inherit(BI.Widget, {
|
|
|
|
|
self._setSliderPosition(significantPercent); |
|
|
|
|
var v = self._getValueByPercent(significantPercent); |
|
|
|
|
v = o.digit === false ? v : v.toFixed(o.digit); |
|
|
|
|
self.label.setValue(v); |
|
|
|
|
self.label.setValue(v + o.unit); |
|
|
|
|
self.value = v; |
|
|
|
|
self.fireEvent(BI.SingleSliderLabel.EVENT_CHANGE); |
|
|
|
|
} |
|
|
|
@ -76714,7 +76739,7 @@ BI.SingleSliderLabel = BI.inherit(BI.Widget, {
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
_setLabelPosition: function (percent) { |
|
|
|
|
this.label.element.css({left: percent + "%"}); |
|
|
|
|
// this.label.element.css({left: percent + "%"});
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
_setSliderPosition: function (percent) { |
|
|
|
|