|
|
@ -182,6 +182,7 @@ export class MultiTreeCombo extends Single { |
|
|
|
return self.combo.isViewVisible(); |
|
|
|
return self.combo.isViewVisible(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let shouldComboPopulate = true; |
|
|
|
this.trigger.on(MultiSelectTrigger.EVENT_FOCUS, () => { |
|
|
|
this.trigger.on(MultiSelectTrigger.EVENT_FOCUS, () => { |
|
|
|
self.fireEvent(MultiTreeCombo.EVENT_FOCUS); |
|
|
|
self.fireEvent(MultiTreeCombo.EVENT_FOCUS); |
|
|
|
}); |
|
|
|
}); |
|
|
@ -259,14 +260,14 @@ export class MultiTreeCombo extends Single { |
|
|
|
} |
|
|
|
} |
|
|
|
self.combo.setValue(self.storeValue); |
|
|
|
self.combo.setValue(self.storeValue); |
|
|
|
self.numberCounter.setValue(self.storeValue); |
|
|
|
self.numberCounter.setValue(self.storeValue); |
|
|
|
self.populate(); |
|
|
|
shouldComboPopulate && self.populate(); |
|
|
|
self.fireEvent(MultiTreeCombo.EVENT_BEFORE_POPUPVIEW); |
|
|
|
self.fireEvent(MultiTreeCombo.EVENT_BEFORE_POPUPVIEW); |
|
|
|
}); |
|
|
|
}); |
|
|
|
this.combo.on(Combo.EVENT_BEFORE_HIDEVIEW, () => { |
|
|
|
this.combo.on(Combo.EVENT_BEFORE_HIDEVIEW, () => { |
|
|
|
if (isSearching()) { |
|
|
|
if (isSearching()) { |
|
|
|
self._stopEditing(); |
|
|
|
self._stopEditing(); |
|
|
|
self._dataChange && |
|
|
|
self._dataChange && |
|
|
|
self.fireEvent(MultiTreeCombo.EVENT_CONFIRM); |
|
|
|
self.fireEvent(MultiTreeCombo.EVENT_CONFIRM); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
if (isPopupView()) { |
|
|
|
if (isPopupView()) { |
|
|
|
self._stopEditing(); |
|
|
|
self._stopEditing(); |
|
|
@ -275,7 +276,7 @@ export class MultiTreeCombo extends Single { |
|
|
|
self.storeValue = { value: {} }; |
|
|
|
self.storeValue = { value: {} }; |
|
|
|
} |
|
|
|
} |
|
|
|
self._dataChange && |
|
|
|
self._dataChange && |
|
|
|
self.fireEvent(MultiTreeCombo.EVENT_CONFIRM); |
|
|
|
self.fireEvent(MultiTreeCombo.EVENT_CONFIRM); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
clear = false; |
|
|
|
clear = false; |
|
|
@ -316,10 +317,18 @@ export class MultiTreeCombo extends Single { |
|
|
|
valueFormatter: o.valueFormatter, |
|
|
|
valueFormatter: o.valueFormatter, |
|
|
|
value: { value: o.value || {} }, |
|
|
|
value: { value: o.value || {} }, |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
this.numberCounter.on( |
|
|
|
|
|
|
|
MultiSelectCheckSelectedSwitcher.EVENT_TRIGGER_COMBO, |
|
|
|
|
|
|
|
() => { |
|
|
|
|
|
|
|
self.populate(); |
|
|
|
|
|
|
|
shouldComboPopulate = true; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
); |
|
|
|
this.numberCounter.on( |
|
|
|
this.numberCounter.on( |
|
|
|
MultiSelectCheckSelectedSwitcher.EVENT_TRIGGER_CHANGE, |
|
|
|
MultiSelectCheckSelectedSwitcher.EVENT_TRIGGER_CHANGE, |
|
|
|
() => { |
|
|
|
() => { |
|
|
|
if (!self.combo.isViewVisible()) { |
|
|
|
if (!self.combo.isViewVisible()) { |
|
|
|
|
|
|
|
shouldComboPopulate = false; |
|
|
|
self.combo.showView(); |
|
|
|
self.combo.showView(); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|