Browse Source

chore: build dist

es6
iapyang 5 years ago
parent
commit
0640b9b5a0
  1. 58
      dist/2.0/fineui.ie.js
  2. 48
      dist/2.0/fineui.ie.min.js
  3. 58
      dist/2.0/fineui.js
  4. 2
      dist/2.0/fineui.min.css
  5. 18
      dist/2.0/fineui.min.js
  6. 58
      dist/bundle.ie.js
  7. 48
      dist/bundle.ie.min.js
  8. 58
      dist/bundle.js
  9. 2
      dist/bundle.min.css
  10. 18
      dist/bundle.min.js
  11. 11
      dist/case.js
  12. 45
      dist/core.js
  13. 58
      dist/fineui.ie.js
  14. 79
      dist/fineui.ie.min.js
  15. 58
      dist/fineui.js
  16. 2
      dist/fineui.min.css
  17. 79
      dist/fineui.min.js
  18. 57
      dist/fineui_without_jquery_polyfill.js
  19. 22
      dist/utils.js
  20. 8
      dist/utils.min.js

58
dist/2.0/fineui.ie.js vendored

@ -11480,23 +11480,31 @@ if (!_global.BI) {
* @abstract * @abstract
*/ */
BI.OB = function (config) { BI.OB = function (config) {
var props = this.props; this._constructor(config);
if (BI.isFunction(this.props)) {
props = this.props(config);
}
this.options = extend(this._defaultConfig(config), props, config);
this._init();
this._initRef();
}; };
_.extend(BI.OB.prototype, { _.extend(BI.OB.prototype, {
props: {}, props: {},
init: null, init: null,
destroyed: null, destroyed: null,
_constructor: function (config) {
this._initProps(config);
this._init();
this._initRef();
},
_defaultConfig: function (config) { _defaultConfig: function (config) {
return {}; return {};
}, },
_initProps: function (config) {
var props = this.props;
if (BI.isFunction(this.props)) {
props = this.props(config);
}
this.options = extend(this._defaultConfig(config), props, config);
},
_init: function () { _init: function () {
this._initListeners(); this._initListeners();
this.init && this.init(); this.init && this.init();
@ -11653,6 +11661,9 @@ if (!_global.BI) {
}); });
}, },
// 覆盖父类的_constructor方法,widget不走ob的生命周期
_constructor: function () {},
beforeInit: null, beforeInit: null,
// 生命周期函数 // 生命周期函数
@ -11813,16 +11824,17 @@ if (!_global.BI) {
* @private * @private
*/ */
_mount: function (force, deep, lifeHook, predicate) { _mount: function (force, deep, lifeHook, predicate) {
var self = this;
if (!force && (this._isMounted || !this.isVisible() || this.__asking === true || !(this._isRoot === true || (this._parent && this._parent._isMounted === true)))) { if (!force && (this._isMounted || !this.isVisible() || this.__asking === true || !(this._isRoot === true || (this._parent && this._parent._isMounted === true)))) {
return false; return false;
} }
lifeHook !== false && this.beforeMount && this.beforeMount(); lifeHook !== false && this.beforeMount && this.beforeMount();
this._isMounted = true; this._isMounted = true;
this._mountChildren && this._mountChildren(); this._mountChildren && this._mountChildren();
if(BI.isNotNull(this._parent)) {
!this._parent.isEnabled() && this._setEnable(false);
!this._parent.isValid() && this._setValid(false);
}
BI.each(this._children, function (i, widget) { BI.each(this._children, function (i, widget) {
!self.isEnabled() && widget._setEnable(false);
!self.isValid() && widget._setValid(false);
widget._mount && widget._mount(deep ? force : false, deep, lifeHook, predicate); widget._mount && widget._mount(deep ? force : false, deep, lifeHook, predicate);
}); });
lifeHook !== false && this.mounted && this.mounted(); lifeHook !== false && this.mounted && this.mounted();
@ -12170,12 +12182,15 @@ if (!_global.BI) {
// 根据配置属性生成widget // 根据配置属性生成widget
var createWidget = function (config) { var createWidget = function (config) {
if (config["classType"]) {
return new (new Function("return " + config["classType"] + ";")())(config);
}
var cls = kv[config.type]; var cls = kv[config.type];
return new cls(config);
var widget = new cls();
widget._initProps(config);
widget._init();
widget._initRef();
return widget;
}; };
BI.createWidget = function (item, options, context) { BI.createWidget = function (item, options, context) {
@ -44177,7 +44192,7 @@ BI.shortcut("bi.popover", BI.Popover);
BI.BarPopover = BI.inherit(BI.Popover, { BI.BarPopover = BI.inherit(BI.Popover, {
_defaultConfig: function () { _defaultConfig: function () {
return BI.extend(BI.BarPopover.superclass._defaultConfig.apply(this, arguments), { return BI.extend(BI.BarPopover.superclass._defaultConfig.apply(this, arguments), {
btns: [BI.i18nText(BI.i18nText("BI-Basic_Sure")), BI.i18nText(BI.i18nText("BI-Basic_Cancel"))] btns: [BI.i18nText("BI-Basic_Sure"), BI.i18nText("BI-Basic_Cancel")]
}); });
}, },
@ -54230,7 +54245,6 @@ BI.ColorChooser = BI.inherit(BI.Widget, {
} }
}] }]
}, o.popup), }, o.popup),
stopPropagation: true,
width: 230 width: 230
}, },
value: o.value value: o.value
@ -57980,7 +57994,7 @@ BI.SignEditor = BI.inherit(BI.Widget, {
tipType: o.tipType, tipType: o.tipType,
textAlign: "left", textAlign: "left",
height: o.height, height: o.height,
hgap: 4, hgap: o.hgap,
handler: function () { handler: function () {
self._showInput(); self._showInput();
self.editor.focus(); self.editor.focus();
@ -58248,7 +58262,7 @@ BI.StateEditor = BI.inherit(BI.Widget, {
textAlign: "left", textAlign: "left",
height: o.height, height: o.height,
text: o.text, text: o.text,
hgap: 4, hgap: o.hgap,
handler: function () { handler: function () {
self._showInput(); self._showInput();
self.editor.focus(); self.editor.focus();
@ -58542,7 +58556,7 @@ BI.SimpleStateEditor = BI.inherit(BI.Widget, {
textAlign: "left", textAlign: "left",
text: o.text, text: o.text,
height: o.height, height: o.height,
hgap: 4, hgap: o.hgap,
handler: function () { handler: function () {
self._showInput(); self._showInput();
self.editor.focus(); self.editor.focus();
@ -59287,7 +59301,7 @@ BI.SelectList = BI.inherit(BI.Widget, {
callback.apply(self, arguments); callback.apply(self, arguments);
if (op.times === 1) { if (op.times === 1) {
self.toolbar.setVisible(items && items.length > 0); self.toolbar.setVisible(items && items.length > 0);
self.toolbar.setEnable(items && items.length > 0); self.toolbar.setEnable(self.isEnabled() && items && items.length > 0);
} }
self._checkAllSelected(); self._checkAllSelected();
}); });
@ -59395,7 +59409,7 @@ BI.SelectList = BI.inherit(BI.Widget, {
populate: function (items) { populate: function (items) {
this.toolbar.setVisible(!BI.isEmptyArray(items)); this.toolbar.setVisible(!BI.isEmptyArray(items));
this.toolbar.setEnable(!BI.isEmptyArray(items)); this.toolbar.setEnable(this.isEnabled() && !BI.isEmptyArray(items));
this.list.populate.apply(this.list, arguments); this.list.populate.apply(this.list, arguments);
this._checkAllSelected(); this._checkAllSelected();
}, },

48
dist/2.0/fineui.ie.min.js vendored

File diff suppressed because one or more lines are too long

58
dist/2.0/fineui.js vendored

@ -11480,23 +11480,31 @@ if (!_global.BI) {
* @abstract * @abstract
*/ */
BI.OB = function (config) { BI.OB = function (config) {
var props = this.props; this._constructor(config);
if (BI.isFunction(this.props)) {
props = this.props(config);
}
this.options = extend(this._defaultConfig(config), props, config);
this._init();
this._initRef();
}; };
_.extend(BI.OB.prototype, { _.extend(BI.OB.prototype, {
props: {}, props: {},
init: null, init: null,
destroyed: null, destroyed: null,
_constructor: function (config) {
this._initProps(config);
this._init();
this._initRef();
},
_defaultConfig: function (config) { _defaultConfig: function (config) {
return {}; return {};
}, },
_initProps: function (config) {
var props = this.props;
if (BI.isFunction(this.props)) {
props = this.props(config);
}
this.options = extend(this._defaultConfig(config), props, config);
},
_init: function () { _init: function () {
this._initListeners(); this._initListeners();
this.init && this.init(); this.init && this.init();
@ -11653,6 +11661,9 @@ if (!_global.BI) {
}); });
}, },
// 覆盖父类的_constructor方法,widget不走ob的生命周期
_constructor: function () {},
beforeInit: null, beforeInit: null,
// 生命周期函数 // 生命周期函数
@ -11813,16 +11824,17 @@ if (!_global.BI) {
* @private * @private
*/ */
_mount: function (force, deep, lifeHook, predicate) { _mount: function (force, deep, lifeHook, predicate) {
var self = this;
if (!force && (this._isMounted || !this.isVisible() || this.__asking === true || !(this._isRoot === true || (this._parent && this._parent._isMounted === true)))) { if (!force && (this._isMounted || !this.isVisible() || this.__asking === true || !(this._isRoot === true || (this._parent && this._parent._isMounted === true)))) {
return false; return false;
} }
lifeHook !== false && this.beforeMount && this.beforeMount(); lifeHook !== false && this.beforeMount && this.beforeMount();
this._isMounted = true; this._isMounted = true;
this._mountChildren && this._mountChildren(); this._mountChildren && this._mountChildren();
if(BI.isNotNull(this._parent)) {
!this._parent.isEnabled() && this._setEnable(false);
!this._parent.isValid() && this._setValid(false);
}
BI.each(this._children, function (i, widget) { BI.each(this._children, function (i, widget) {
!self.isEnabled() && widget._setEnable(false);
!self.isValid() && widget._setValid(false);
widget._mount && widget._mount(deep ? force : false, deep, lifeHook, predicate); widget._mount && widget._mount(deep ? force : false, deep, lifeHook, predicate);
}); });
lifeHook !== false && this.mounted && this.mounted(); lifeHook !== false && this.mounted && this.mounted();
@ -12170,12 +12182,15 @@ if (!_global.BI) {
// 根据配置属性生成widget // 根据配置属性生成widget
var createWidget = function (config) { var createWidget = function (config) {
if (config["classType"]) {
return new (new Function("return " + config["classType"] + ";")())(config);
}
var cls = kv[config.type]; var cls = kv[config.type];
return new cls(config);
var widget = new cls();
widget._initProps(config);
widget._init();
widget._initRef();
return widget;
}; };
BI.createWidget = function (item, options, context) { BI.createWidget = function (item, options, context) {
@ -44581,7 +44596,7 @@ BI.shortcut("bi.popover", BI.Popover);
BI.BarPopover = BI.inherit(BI.Popover, { BI.BarPopover = BI.inherit(BI.Popover, {
_defaultConfig: function () { _defaultConfig: function () {
return BI.extend(BI.BarPopover.superclass._defaultConfig.apply(this, arguments), { return BI.extend(BI.BarPopover.superclass._defaultConfig.apply(this, arguments), {
btns: [BI.i18nText(BI.i18nText("BI-Basic_Sure")), BI.i18nText(BI.i18nText("BI-Basic_Cancel"))] btns: [BI.i18nText("BI-Basic_Sure"), BI.i18nText("BI-Basic_Cancel")]
}); });
}, },
@ -54634,7 +54649,6 @@ BI.ColorChooser = BI.inherit(BI.Widget, {
} }
}] }]
}, o.popup), }, o.popup),
stopPropagation: true,
width: 230 width: 230
}, },
value: o.value value: o.value
@ -58384,7 +58398,7 @@ BI.SignEditor = BI.inherit(BI.Widget, {
tipType: o.tipType, tipType: o.tipType,
textAlign: "left", textAlign: "left",
height: o.height, height: o.height,
hgap: 4, hgap: o.hgap,
handler: function () { handler: function () {
self._showInput(); self._showInput();
self.editor.focus(); self.editor.focus();
@ -58652,7 +58666,7 @@ BI.StateEditor = BI.inherit(BI.Widget, {
textAlign: "left", textAlign: "left",
height: o.height, height: o.height,
text: o.text, text: o.text,
hgap: 4, hgap: o.hgap,
handler: function () { handler: function () {
self._showInput(); self._showInput();
self.editor.focus(); self.editor.focus();
@ -58946,7 +58960,7 @@ BI.SimpleStateEditor = BI.inherit(BI.Widget, {
textAlign: "left", textAlign: "left",
text: o.text, text: o.text,
height: o.height, height: o.height,
hgap: 4, hgap: o.hgap,
handler: function () { handler: function () {
self._showInput(); self._showInput();
self.editor.focus(); self.editor.focus();
@ -59691,7 +59705,7 @@ BI.SelectList = BI.inherit(BI.Widget, {
callback.apply(self, arguments); callback.apply(self, arguments);
if (op.times === 1) { if (op.times === 1) {
self.toolbar.setVisible(items && items.length > 0); self.toolbar.setVisible(items && items.length > 0);
self.toolbar.setEnable(items && items.length > 0); self.toolbar.setEnable(self.isEnabled() && items && items.length > 0);
} }
self._checkAllSelected(); self._checkAllSelected();
}); });
@ -59799,7 +59813,7 @@ BI.SelectList = BI.inherit(BI.Widget, {
populate: function (items) { populate: function (items) {
this.toolbar.setVisible(!BI.isEmptyArray(items)); this.toolbar.setVisible(!BI.isEmptyArray(items));
this.toolbar.setEnable(!BI.isEmptyArray(items)); this.toolbar.setEnable(this.isEnabled() && !BI.isEmptyArray(items));
this.list.populate.apply(this.list, arguments); this.list.populate.apply(this.list, arguments);
this._checkAllSelected(); this._checkAllSelected();
}, },

2
dist/2.0/fineui.min.css vendored

File diff suppressed because one or more lines are too long

18
dist/2.0/fineui.min.js vendored

File diff suppressed because one or more lines are too long

58
dist/bundle.ie.js vendored

@ -11480,23 +11480,31 @@ if (!_global.BI) {
* @abstract * @abstract
*/ */
BI.OB = function (config) { BI.OB = function (config) {
var props = this.props; this._constructor(config);
if (BI.isFunction(this.props)) {
props = this.props(config);
}
this.options = extend(this._defaultConfig(config), props, config);
this._init();
this._initRef();
}; };
_.extend(BI.OB.prototype, { _.extend(BI.OB.prototype, {
props: {}, props: {},
init: null, init: null,
destroyed: null, destroyed: null,
_constructor: function (config) {
this._initProps(config);
this._init();
this._initRef();
},
_defaultConfig: function (config) { _defaultConfig: function (config) {
return {}; return {};
}, },
_initProps: function (config) {
var props = this.props;
if (BI.isFunction(this.props)) {
props = this.props(config);
}
this.options = extend(this._defaultConfig(config), props, config);
},
_init: function () { _init: function () {
this._initListeners(); this._initListeners();
this.init && this.init(); this.init && this.init();
@ -11653,6 +11661,9 @@ if (!_global.BI) {
}); });
}, },
// 覆盖父类的_constructor方法,widget不走ob的生命周期
_constructor: function () {},
beforeInit: null, beforeInit: null,
// 生命周期函数 // 生命周期函数
@ -11813,16 +11824,17 @@ if (!_global.BI) {
* @private * @private
*/ */
_mount: function (force, deep, lifeHook, predicate) { _mount: function (force, deep, lifeHook, predicate) {
var self = this;
if (!force && (this._isMounted || !this.isVisible() || this.__asking === true || !(this._isRoot === true || (this._parent && this._parent._isMounted === true)))) { if (!force && (this._isMounted || !this.isVisible() || this.__asking === true || !(this._isRoot === true || (this._parent && this._parent._isMounted === true)))) {
return false; return false;
} }
lifeHook !== false && this.beforeMount && this.beforeMount(); lifeHook !== false && this.beforeMount && this.beforeMount();
this._isMounted = true; this._isMounted = true;
this._mountChildren && this._mountChildren(); this._mountChildren && this._mountChildren();
if(BI.isNotNull(this._parent)) {
!this._parent.isEnabled() && this._setEnable(false);
!this._parent.isValid() && this._setValid(false);
}
BI.each(this._children, function (i, widget) { BI.each(this._children, function (i, widget) {
!self.isEnabled() && widget._setEnable(false);
!self.isValid() && widget._setValid(false);
widget._mount && widget._mount(deep ? force : false, deep, lifeHook, predicate); widget._mount && widget._mount(deep ? force : false, deep, lifeHook, predicate);
}); });
lifeHook !== false && this.mounted && this.mounted(); lifeHook !== false && this.mounted && this.mounted();
@ -12170,12 +12182,15 @@ if (!_global.BI) {
// 根据配置属性生成widget // 根据配置属性生成widget
var createWidget = function (config) { var createWidget = function (config) {
if (config["classType"]) {
return new (new Function("return " + config["classType"] + ";")())(config);
}
var cls = kv[config.type]; var cls = kv[config.type];
return new cls(config);
var widget = new cls();
widget._initProps(config);
widget._init();
widget._initRef();
return widget;
}; };
BI.createWidget = function (item, options, context) { BI.createWidget = function (item, options, context) {
@ -44177,7 +44192,7 @@ BI.shortcut("bi.popover", BI.Popover);
BI.BarPopover = BI.inherit(BI.Popover, { BI.BarPopover = BI.inherit(BI.Popover, {
_defaultConfig: function () { _defaultConfig: function () {
return BI.extend(BI.BarPopover.superclass._defaultConfig.apply(this, arguments), { return BI.extend(BI.BarPopover.superclass._defaultConfig.apply(this, arguments), {
btns: [BI.i18nText(BI.i18nText("BI-Basic_Sure")), BI.i18nText(BI.i18nText("BI-Basic_Cancel"))] btns: [BI.i18nText("BI-Basic_Sure"), BI.i18nText("BI-Basic_Cancel")]
}); });
}, },
@ -54230,7 +54245,6 @@ BI.ColorChooser = BI.inherit(BI.Widget, {
} }
}] }]
}, o.popup), }, o.popup),
stopPropagation: true,
width: 230 width: 230
}, },
value: o.value value: o.value
@ -57980,7 +57994,7 @@ BI.SignEditor = BI.inherit(BI.Widget, {
tipType: o.tipType, tipType: o.tipType,
textAlign: "left", textAlign: "left",
height: o.height, height: o.height,
hgap: 4, hgap: o.hgap,
handler: function () { handler: function () {
self._showInput(); self._showInput();
self.editor.focus(); self.editor.focus();
@ -58248,7 +58262,7 @@ BI.StateEditor = BI.inherit(BI.Widget, {
textAlign: "left", textAlign: "left",
height: o.height, height: o.height,
text: o.text, text: o.text,
hgap: 4, hgap: o.hgap,
handler: function () { handler: function () {
self._showInput(); self._showInput();
self.editor.focus(); self.editor.focus();
@ -58542,7 +58556,7 @@ BI.SimpleStateEditor = BI.inherit(BI.Widget, {
textAlign: "left", textAlign: "left",
text: o.text, text: o.text,
height: o.height, height: o.height,
hgap: 4, hgap: o.hgap,
handler: function () { handler: function () {
self._showInput(); self._showInput();
self.editor.focus(); self.editor.focus();
@ -59287,7 +59301,7 @@ BI.SelectList = BI.inherit(BI.Widget, {
callback.apply(self, arguments); callback.apply(self, arguments);
if (op.times === 1) { if (op.times === 1) {
self.toolbar.setVisible(items && items.length > 0); self.toolbar.setVisible(items && items.length > 0);
self.toolbar.setEnable(items && items.length > 0); self.toolbar.setEnable(self.isEnabled() && items && items.length > 0);
} }
self._checkAllSelected(); self._checkAllSelected();
}); });
@ -59395,7 +59409,7 @@ BI.SelectList = BI.inherit(BI.Widget, {
populate: function (items) { populate: function (items) {
this.toolbar.setVisible(!BI.isEmptyArray(items)); this.toolbar.setVisible(!BI.isEmptyArray(items));
this.toolbar.setEnable(!BI.isEmptyArray(items)); this.toolbar.setEnable(this.isEnabled() && !BI.isEmptyArray(items));
this.list.populate.apply(this.list, arguments); this.list.populate.apply(this.list, arguments);
this._checkAllSelected(); this._checkAllSelected();
}, },

48
dist/bundle.ie.min.js vendored

File diff suppressed because one or more lines are too long

58
dist/bundle.js vendored

@ -11480,23 +11480,31 @@ if (!_global.BI) {
* @abstract * @abstract
*/ */
BI.OB = function (config) { BI.OB = function (config) {
var props = this.props; this._constructor(config);
if (BI.isFunction(this.props)) {
props = this.props(config);
}
this.options = extend(this._defaultConfig(config), props, config);
this._init();
this._initRef();
}; };
_.extend(BI.OB.prototype, { _.extend(BI.OB.prototype, {
props: {}, props: {},
init: null, init: null,
destroyed: null, destroyed: null,
_constructor: function (config) {
this._initProps(config);
this._init();
this._initRef();
},
_defaultConfig: function (config) { _defaultConfig: function (config) {
return {}; return {};
}, },
_initProps: function (config) {
var props = this.props;
if (BI.isFunction(this.props)) {
props = this.props(config);
}
this.options = extend(this._defaultConfig(config), props, config);
},
_init: function () { _init: function () {
this._initListeners(); this._initListeners();
this.init && this.init(); this.init && this.init();
@ -11653,6 +11661,9 @@ if (!_global.BI) {
}); });
}, },
// 覆盖父类的_constructor方法,widget不走ob的生命周期
_constructor: function () {},
beforeInit: null, beforeInit: null,
// 生命周期函数 // 生命周期函数
@ -11813,16 +11824,17 @@ if (!_global.BI) {
* @private * @private
*/ */
_mount: function (force, deep, lifeHook, predicate) { _mount: function (force, deep, lifeHook, predicate) {
var self = this;
if (!force && (this._isMounted || !this.isVisible() || this.__asking === true || !(this._isRoot === true || (this._parent && this._parent._isMounted === true)))) { if (!force && (this._isMounted || !this.isVisible() || this.__asking === true || !(this._isRoot === true || (this._parent && this._parent._isMounted === true)))) {
return false; return false;
} }
lifeHook !== false && this.beforeMount && this.beforeMount(); lifeHook !== false && this.beforeMount && this.beforeMount();
this._isMounted = true; this._isMounted = true;
this._mountChildren && this._mountChildren(); this._mountChildren && this._mountChildren();
if(BI.isNotNull(this._parent)) {
!this._parent.isEnabled() && this._setEnable(false);
!this._parent.isValid() && this._setValid(false);
}
BI.each(this._children, function (i, widget) { BI.each(this._children, function (i, widget) {
!self.isEnabled() && widget._setEnable(false);
!self.isValid() && widget._setValid(false);
widget._mount && widget._mount(deep ? force : false, deep, lifeHook, predicate); widget._mount && widget._mount(deep ? force : false, deep, lifeHook, predicate);
}); });
lifeHook !== false && this.mounted && this.mounted(); lifeHook !== false && this.mounted && this.mounted();
@ -12170,12 +12182,15 @@ if (!_global.BI) {
// 根据配置属性生成widget // 根据配置属性生成widget
var createWidget = function (config) { var createWidget = function (config) {
if (config["classType"]) {
return new (new Function("return " + config["classType"] + ";")())(config);
}
var cls = kv[config.type]; var cls = kv[config.type];
return new cls(config);
var widget = new cls();
widget._initProps(config);
widget._init();
widget._initRef();
return widget;
}; };
BI.createWidget = function (item, options, context) { BI.createWidget = function (item, options, context) {
@ -44581,7 +44596,7 @@ BI.shortcut("bi.popover", BI.Popover);
BI.BarPopover = BI.inherit(BI.Popover, { BI.BarPopover = BI.inherit(BI.Popover, {
_defaultConfig: function () { _defaultConfig: function () {
return BI.extend(BI.BarPopover.superclass._defaultConfig.apply(this, arguments), { return BI.extend(BI.BarPopover.superclass._defaultConfig.apply(this, arguments), {
btns: [BI.i18nText(BI.i18nText("BI-Basic_Sure")), BI.i18nText(BI.i18nText("BI-Basic_Cancel"))] btns: [BI.i18nText("BI-Basic_Sure"), BI.i18nText("BI-Basic_Cancel")]
}); });
}, },
@ -54634,7 +54649,6 @@ BI.ColorChooser = BI.inherit(BI.Widget, {
} }
}] }]
}, o.popup), }, o.popup),
stopPropagation: true,
width: 230 width: 230
}, },
value: o.value value: o.value
@ -58384,7 +58398,7 @@ BI.SignEditor = BI.inherit(BI.Widget, {
tipType: o.tipType, tipType: o.tipType,
textAlign: "left", textAlign: "left",
height: o.height, height: o.height,
hgap: 4, hgap: o.hgap,
handler: function () { handler: function () {
self._showInput(); self._showInput();
self.editor.focus(); self.editor.focus();
@ -58652,7 +58666,7 @@ BI.StateEditor = BI.inherit(BI.Widget, {
textAlign: "left", textAlign: "left",
height: o.height, height: o.height,
text: o.text, text: o.text,
hgap: 4, hgap: o.hgap,
handler: function () { handler: function () {
self._showInput(); self._showInput();
self.editor.focus(); self.editor.focus();
@ -58946,7 +58960,7 @@ BI.SimpleStateEditor = BI.inherit(BI.Widget, {
textAlign: "left", textAlign: "left",
text: o.text, text: o.text,
height: o.height, height: o.height,
hgap: 4, hgap: o.hgap,
handler: function () { handler: function () {
self._showInput(); self._showInput();
self.editor.focus(); self.editor.focus();
@ -59691,7 +59705,7 @@ BI.SelectList = BI.inherit(BI.Widget, {
callback.apply(self, arguments); callback.apply(self, arguments);
if (op.times === 1) { if (op.times === 1) {
self.toolbar.setVisible(items && items.length > 0); self.toolbar.setVisible(items && items.length > 0);
self.toolbar.setEnable(items && items.length > 0); self.toolbar.setEnable(self.isEnabled() && items && items.length > 0);
} }
self._checkAllSelected(); self._checkAllSelected();
}); });
@ -59799,7 +59813,7 @@ BI.SelectList = BI.inherit(BI.Widget, {
populate: function (items) { populate: function (items) {
this.toolbar.setVisible(!BI.isEmptyArray(items)); this.toolbar.setVisible(!BI.isEmptyArray(items));
this.toolbar.setEnable(!BI.isEmptyArray(items)); this.toolbar.setEnable(this.isEnabled() && !BI.isEmptyArray(items));
this.list.populate.apply(this.list, arguments); this.list.populate.apply(this.list, arguments);
this._checkAllSelected(); this._checkAllSelected();
}, },

2
dist/bundle.min.css vendored

File diff suppressed because one or more lines are too long

18
dist/bundle.min.js vendored

File diff suppressed because one or more lines are too long

11
dist/case.js vendored

@ -2261,7 +2261,6 @@ BI.ColorChooser = BI.inherit(BI.Widget, {
} }
}] }]
}, o.popup), }, o.popup),
stopPropagation: true,
width: 230 width: 230
}, },
value: o.value value: o.value
@ -6011,7 +6010,7 @@ BI.SignEditor = BI.inherit(BI.Widget, {
tipType: o.tipType, tipType: o.tipType,
textAlign: "left", textAlign: "left",
height: o.height, height: o.height,
hgap: 4, hgap: o.hgap,
handler: function () { handler: function () {
self._showInput(); self._showInput();
self.editor.focus(); self.editor.focus();
@ -6279,7 +6278,7 @@ BI.StateEditor = BI.inherit(BI.Widget, {
textAlign: "left", textAlign: "left",
height: o.height, height: o.height,
text: o.text, text: o.text,
hgap: 4, hgap: o.hgap,
handler: function () { handler: function () {
self._showInput(); self._showInput();
self.editor.focus(); self.editor.focus();
@ -6573,7 +6572,7 @@ BI.SimpleStateEditor = BI.inherit(BI.Widget, {
textAlign: "left", textAlign: "left",
text: o.text, text: o.text,
height: o.height, height: o.height,
hgap: 4, hgap: o.hgap,
handler: function () { handler: function () {
self._showInput(); self._showInput();
self.editor.focus(); self.editor.focus();
@ -7318,7 +7317,7 @@ BI.SelectList = BI.inherit(BI.Widget, {
callback.apply(self, arguments); callback.apply(self, arguments);
if (op.times === 1) { if (op.times === 1) {
self.toolbar.setVisible(items && items.length > 0); self.toolbar.setVisible(items && items.length > 0);
self.toolbar.setEnable(items && items.length > 0); self.toolbar.setEnable(self.isEnabled() && items && items.length > 0);
} }
self._checkAllSelected(); self._checkAllSelected();
}); });
@ -7426,7 +7425,7 @@ BI.SelectList = BI.inherit(BI.Widget, {
populate: function (items) { populate: function (items) {
this.toolbar.setVisible(!BI.isEmptyArray(items)); this.toolbar.setVisible(!BI.isEmptyArray(items));
this.toolbar.setEnable(!BI.isEmptyArray(items)); this.toolbar.setEnable(this.isEnabled() && !BI.isEmptyArray(items));
this.list.populate.apply(this.list, arguments); this.list.populate.apply(this.list, arguments);
this._checkAllSelected(); this._checkAllSelected();
}, },

45
dist/core.js vendored

@ -11480,23 +11480,31 @@ if (!_global.BI) {
* @abstract * @abstract
*/ */
BI.OB = function (config) { BI.OB = function (config) {
var props = this.props; this._constructor(config);
if (BI.isFunction(this.props)) {
props = this.props(config);
}
this.options = extend(this._defaultConfig(config), props, config);
this._init();
this._initRef();
}; };
_.extend(BI.OB.prototype, { _.extend(BI.OB.prototype, {
props: {}, props: {},
init: null, init: null,
destroyed: null, destroyed: null,
_constructor: function (config) {
this._initProps(config);
this._init();
this._initRef();
},
_defaultConfig: function (config) { _defaultConfig: function (config) {
return {}; return {};
}, },
_initProps: function (config) {
var props = this.props;
if (BI.isFunction(this.props)) {
props = this.props(config);
}
this.options = extend(this._defaultConfig(config), props, config);
},
_init: function () { _init: function () {
this._initListeners(); this._initListeners();
this.init && this.init(); this.init && this.init();
@ -11653,6 +11661,9 @@ if (!_global.BI) {
}); });
}, },
// 覆盖父类的_constructor方法,widget不走ob的生命周期
_constructor: function () {},
beforeInit: null, beforeInit: null,
// 生命周期函数 // 生命周期函数
@ -11813,16 +11824,17 @@ if (!_global.BI) {
* @private * @private
*/ */
_mount: function (force, deep, lifeHook, predicate) { _mount: function (force, deep, lifeHook, predicate) {
var self = this;
if (!force && (this._isMounted || !this.isVisible() || this.__asking === true || !(this._isRoot === true || (this._parent && this._parent._isMounted === true)))) { if (!force && (this._isMounted || !this.isVisible() || this.__asking === true || !(this._isRoot === true || (this._parent && this._parent._isMounted === true)))) {
return false; return false;
} }
lifeHook !== false && this.beforeMount && this.beforeMount(); lifeHook !== false && this.beforeMount && this.beforeMount();
this._isMounted = true; this._isMounted = true;
this._mountChildren && this._mountChildren(); this._mountChildren && this._mountChildren();
if(BI.isNotNull(this._parent)) {
!this._parent.isEnabled() && this._setEnable(false);
!this._parent.isValid() && this._setValid(false);
}
BI.each(this._children, function (i, widget) { BI.each(this._children, function (i, widget) {
!self.isEnabled() && widget._setEnable(false);
!self.isValid() && widget._setValid(false);
widget._mount && widget._mount(deep ? force : false, deep, lifeHook, predicate); widget._mount && widget._mount(deep ? force : false, deep, lifeHook, predicate);
}); });
lifeHook !== false && this.mounted && this.mounted(); lifeHook !== false && this.mounted && this.mounted();
@ -12170,12 +12182,15 @@ if (!_global.BI) {
// 根据配置属性生成widget // 根据配置属性生成widget
var createWidget = function (config) { var createWidget = function (config) {
if (config["classType"]) {
return new (new Function("return " + config["classType"] + ";")())(config);
}
var cls = kv[config.type]; var cls = kv[config.type];
return new cls(config);
var widget = new cls();
widget._initProps(config);
widget._init();
widget._initRef();
return widget;
}; };
BI.createWidget = function (item, options, context) { BI.createWidget = function (item, options, context) {

58
dist/fineui.ie.js vendored

@ -11725,23 +11725,31 @@ if (!_global.BI) {
* @abstract * @abstract
*/ */
BI.OB = function (config) { BI.OB = function (config) {
var props = this.props; this._constructor(config);
if (BI.isFunction(this.props)) {
props = this.props(config);
}
this.options = extend(this._defaultConfig(config), props, config);
this._init();
this._initRef();
}; };
_.extend(BI.OB.prototype, { _.extend(BI.OB.prototype, {
props: {}, props: {},
init: null, init: null,
destroyed: null, destroyed: null,
_constructor: function (config) {
this._initProps(config);
this._init();
this._initRef();
},
_defaultConfig: function (config) { _defaultConfig: function (config) {
return {}; return {};
}, },
_initProps: function (config) {
var props = this.props;
if (BI.isFunction(this.props)) {
props = this.props(config);
}
this.options = extend(this._defaultConfig(config), props, config);
},
_init: function () { _init: function () {
this._initListeners(); this._initListeners();
this.init && this.init(); this.init && this.init();
@ -11898,6 +11906,9 @@ if (!_global.BI) {
}); });
}, },
// 覆盖父类的_constructor方法,widget不走ob的生命周期
_constructor: function () {},
beforeInit: null, beforeInit: null,
// 生命周期函数 // 生命周期函数
@ -12058,16 +12069,17 @@ if (!_global.BI) {
* @private * @private
*/ */
_mount: function (force, deep, lifeHook, predicate) { _mount: function (force, deep, lifeHook, predicate) {
var self = this;
if (!force && (this._isMounted || !this.isVisible() || this.__asking === true || !(this._isRoot === true || (this._parent && this._parent._isMounted === true)))) { if (!force && (this._isMounted || !this.isVisible() || this.__asking === true || !(this._isRoot === true || (this._parent && this._parent._isMounted === true)))) {
return false; return false;
} }
lifeHook !== false && this.beforeMount && this.beforeMount(); lifeHook !== false && this.beforeMount && this.beforeMount();
this._isMounted = true; this._isMounted = true;
this._mountChildren && this._mountChildren(); this._mountChildren && this._mountChildren();
if(BI.isNotNull(this._parent)) {
!this._parent.isEnabled() && this._setEnable(false);
!this._parent.isValid() && this._setValid(false);
}
BI.each(this._children, function (i, widget) { BI.each(this._children, function (i, widget) {
!self.isEnabled() && widget._setEnable(false);
!self.isValid() && widget._setValid(false);
widget._mount && widget._mount(deep ? force : false, deep, lifeHook, predicate); widget._mount && widget._mount(deep ? force : false, deep, lifeHook, predicate);
}); });
lifeHook !== false && this.mounted && this.mounted(); lifeHook !== false && this.mounted && this.mounted();
@ -12415,12 +12427,15 @@ if (!_global.BI) {
// 根据配置属性生成widget // 根据配置属性生成widget
var createWidget = function (config) { var createWidget = function (config) {
if (config["classType"]) {
return new (new Function("return " + config["classType"] + ";")())(config);
}
var cls = kv[config.type]; var cls = kv[config.type];
return new cls(config);
var widget = new cls();
widget._initProps(config);
widget._init();
widget._initRef();
return widget;
}; };
BI.createWidget = function (item, options, context) { BI.createWidget = function (item, options, context) {
@ -44422,7 +44437,7 @@ BI.shortcut("bi.popover", BI.Popover);
BI.BarPopover = BI.inherit(BI.Popover, { BI.BarPopover = BI.inherit(BI.Popover, {
_defaultConfig: function () { _defaultConfig: function () {
return BI.extend(BI.BarPopover.superclass._defaultConfig.apply(this, arguments), { return BI.extend(BI.BarPopover.superclass._defaultConfig.apply(this, arguments), {
btns: [BI.i18nText(BI.i18nText("BI-Basic_Sure")), BI.i18nText(BI.i18nText("BI-Basic_Cancel"))] btns: [BI.i18nText("BI-Basic_Sure"), BI.i18nText("BI-Basic_Cancel")]
}); });
}, },
@ -54475,7 +54490,6 @@ BI.ColorChooser = BI.inherit(BI.Widget, {
} }
}] }]
}, o.popup), }, o.popup),
stopPropagation: true,
width: 230 width: 230
}, },
value: o.value value: o.value
@ -58225,7 +58239,7 @@ BI.SignEditor = BI.inherit(BI.Widget, {
tipType: o.tipType, tipType: o.tipType,
textAlign: "left", textAlign: "left",
height: o.height, height: o.height,
hgap: 4, hgap: o.hgap,
handler: function () { handler: function () {
self._showInput(); self._showInput();
self.editor.focus(); self.editor.focus();
@ -58493,7 +58507,7 @@ BI.StateEditor = BI.inherit(BI.Widget, {
textAlign: "left", textAlign: "left",
height: o.height, height: o.height,
text: o.text, text: o.text,
hgap: 4, hgap: o.hgap,
handler: function () { handler: function () {
self._showInput(); self._showInput();
self.editor.focus(); self.editor.focus();
@ -58787,7 +58801,7 @@ BI.SimpleStateEditor = BI.inherit(BI.Widget, {
textAlign: "left", textAlign: "left",
text: o.text, text: o.text,
height: o.height, height: o.height,
hgap: 4, hgap: o.hgap,
handler: function () { handler: function () {
self._showInput(); self._showInput();
self.editor.focus(); self.editor.focus();
@ -59532,7 +59546,7 @@ BI.SelectList = BI.inherit(BI.Widget, {
callback.apply(self, arguments); callback.apply(self, arguments);
if (op.times === 1) { if (op.times === 1) {
self.toolbar.setVisible(items && items.length > 0); self.toolbar.setVisible(items && items.length > 0);
self.toolbar.setEnable(items && items.length > 0); self.toolbar.setEnable(self.isEnabled() && items && items.length > 0);
} }
self._checkAllSelected(); self._checkAllSelected();
}); });
@ -59640,7 +59654,7 @@ BI.SelectList = BI.inherit(BI.Widget, {
populate: function (items) { populate: function (items) {
this.toolbar.setVisible(!BI.isEmptyArray(items)); this.toolbar.setVisible(!BI.isEmptyArray(items));
this.toolbar.setEnable(!BI.isEmptyArray(items)); this.toolbar.setEnable(this.isEnabled() && !BI.isEmptyArray(items));
this.list.populate.apply(this.list, arguments); this.list.populate.apply(this.list, arguments);
this._checkAllSelected(); this._checkAllSelected();
}, },

79
dist/fineui.ie.min.js vendored

File diff suppressed because one or more lines are too long

58
dist/fineui.js vendored

@ -11725,23 +11725,31 @@ if (!_global.BI) {
* @abstract * @abstract
*/ */
BI.OB = function (config) { BI.OB = function (config) {
var props = this.props; this._constructor(config);
if (BI.isFunction(this.props)) {
props = this.props(config);
}
this.options = extend(this._defaultConfig(config), props, config);
this._init();
this._initRef();
}; };
_.extend(BI.OB.prototype, { _.extend(BI.OB.prototype, {
props: {}, props: {},
init: null, init: null,
destroyed: null, destroyed: null,
_constructor: function (config) {
this._initProps(config);
this._init();
this._initRef();
},
_defaultConfig: function (config) { _defaultConfig: function (config) {
return {}; return {};
}, },
_initProps: function (config) {
var props = this.props;
if (BI.isFunction(this.props)) {
props = this.props(config);
}
this.options = extend(this._defaultConfig(config), props, config);
},
_init: function () { _init: function () {
this._initListeners(); this._initListeners();
this.init && this.init(); this.init && this.init();
@ -11898,6 +11906,9 @@ if (!_global.BI) {
}); });
}, },
// 覆盖父类的_constructor方法,widget不走ob的生命周期
_constructor: function () {},
beforeInit: null, beforeInit: null,
// 生命周期函数 // 生命周期函数
@ -12058,16 +12069,17 @@ if (!_global.BI) {
* @private * @private
*/ */
_mount: function (force, deep, lifeHook, predicate) { _mount: function (force, deep, lifeHook, predicate) {
var self = this;
if (!force && (this._isMounted || !this.isVisible() || this.__asking === true || !(this._isRoot === true || (this._parent && this._parent._isMounted === true)))) { if (!force && (this._isMounted || !this.isVisible() || this.__asking === true || !(this._isRoot === true || (this._parent && this._parent._isMounted === true)))) {
return false; return false;
} }
lifeHook !== false && this.beforeMount && this.beforeMount(); lifeHook !== false && this.beforeMount && this.beforeMount();
this._isMounted = true; this._isMounted = true;
this._mountChildren && this._mountChildren(); this._mountChildren && this._mountChildren();
if(BI.isNotNull(this._parent)) {
!this._parent.isEnabled() && this._setEnable(false);
!this._parent.isValid() && this._setValid(false);
}
BI.each(this._children, function (i, widget) { BI.each(this._children, function (i, widget) {
!self.isEnabled() && widget._setEnable(false);
!self.isValid() && widget._setValid(false);
widget._mount && widget._mount(deep ? force : false, deep, lifeHook, predicate); widget._mount && widget._mount(deep ? force : false, deep, lifeHook, predicate);
}); });
lifeHook !== false && this.mounted && this.mounted(); lifeHook !== false && this.mounted && this.mounted();
@ -12415,12 +12427,15 @@ if (!_global.BI) {
// 根据配置属性生成widget // 根据配置属性生成widget
var createWidget = function (config) { var createWidget = function (config) {
if (config["classType"]) {
return new (new Function("return " + config["classType"] + ";")())(config);
}
var cls = kv[config.type]; var cls = kv[config.type];
return new cls(config);
var widget = new cls();
widget._initProps(config);
widget._init();
widget._initRef();
return widget;
}; };
BI.createWidget = function (item, options, context) { BI.createWidget = function (item, options, context) {
@ -44826,7 +44841,7 @@ BI.shortcut("bi.popover", BI.Popover);
BI.BarPopover = BI.inherit(BI.Popover, { BI.BarPopover = BI.inherit(BI.Popover, {
_defaultConfig: function () { _defaultConfig: function () {
return BI.extend(BI.BarPopover.superclass._defaultConfig.apply(this, arguments), { return BI.extend(BI.BarPopover.superclass._defaultConfig.apply(this, arguments), {
btns: [BI.i18nText(BI.i18nText("BI-Basic_Sure")), BI.i18nText(BI.i18nText("BI-Basic_Cancel"))] btns: [BI.i18nText("BI-Basic_Sure"), BI.i18nText("BI-Basic_Cancel")]
}); });
}, },
@ -54879,7 +54894,6 @@ BI.ColorChooser = BI.inherit(BI.Widget, {
} }
}] }]
}, o.popup), }, o.popup),
stopPropagation: true,
width: 230 width: 230
}, },
value: o.value value: o.value
@ -58629,7 +58643,7 @@ BI.SignEditor = BI.inherit(BI.Widget, {
tipType: o.tipType, tipType: o.tipType,
textAlign: "left", textAlign: "left",
height: o.height, height: o.height,
hgap: 4, hgap: o.hgap,
handler: function () { handler: function () {
self._showInput(); self._showInput();
self.editor.focus(); self.editor.focus();
@ -58897,7 +58911,7 @@ BI.StateEditor = BI.inherit(BI.Widget, {
textAlign: "left", textAlign: "left",
height: o.height, height: o.height,
text: o.text, text: o.text,
hgap: 4, hgap: o.hgap,
handler: function () { handler: function () {
self._showInput(); self._showInput();
self.editor.focus(); self.editor.focus();
@ -59191,7 +59205,7 @@ BI.SimpleStateEditor = BI.inherit(BI.Widget, {
textAlign: "left", textAlign: "left",
text: o.text, text: o.text,
height: o.height, height: o.height,
hgap: 4, hgap: o.hgap,
handler: function () { handler: function () {
self._showInput(); self._showInput();
self.editor.focus(); self.editor.focus();
@ -59936,7 +59950,7 @@ BI.SelectList = BI.inherit(BI.Widget, {
callback.apply(self, arguments); callback.apply(self, arguments);
if (op.times === 1) { if (op.times === 1) {
self.toolbar.setVisible(items && items.length > 0); self.toolbar.setVisible(items && items.length > 0);
self.toolbar.setEnable(items && items.length > 0); self.toolbar.setEnable(self.isEnabled() && items && items.length > 0);
} }
self._checkAllSelected(); self._checkAllSelected();
}); });
@ -60044,7 +60058,7 @@ BI.SelectList = BI.inherit(BI.Widget, {
populate: function (items) { populate: function (items) {
this.toolbar.setVisible(!BI.isEmptyArray(items)); this.toolbar.setVisible(!BI.isEmptyArray(items));
this.toolbar.setEnable(!BI.isEmptyArray(items)); this.toolbar.setEnable(this.isEnabled() && !BI.isEmptyArray(items));
this.list.populate.apply(this.list, arguments); this.list.populate.apply(this.list, arguments);
this._checkAllSelected(); this._checkAllSelected();
}, },

2
dist/fineui.min.css vendored

File diff suppressed because one or more lines are too long

79
dist/fineui.min.js vendored

File diff suppressed because one or more lines are too long

57
dist/fineui_without_jquery_polyfill.js vendored

@ -11480,23 +11480,31 @@ if (!_global.BI) {
* @abstract * @abstract
*/ */
BI.OB = function (config) { BI.OB = function (config) {
var props = this.props; this._constructor(config);
if (BI.isFunction(this.props)) {
props = this.props(config);
}
this.options = extend(this._defaultConfig(config), props, config);
this._init();
this._initRef();
}; };
_.extend(BI.OB.prototype, { _.extend(BI.OB.prototype, {
props: {}, props: {},
init: null, init: null,
destroyed: null, destroyed: null,
_constructor: function (config) {
this._initProps(config);
this._init();
this._initRef();
},
_defaultConfig: function (config) { _defaultConfig: function (config) {
return {}; return {};
}, },
_initProps: function (config) {
var props = this.props;
if (BI.isFunction(this.props)) {
props = this.props(config);
}
this.options = extend(this._defaultConfig(config), props, config);
},
_init: function () { _init: function () {
this._initListeners(); this._initListeners();
this.init && this.init(); this.init && this.init();
@ -11653,6 +11661,9 @@ if (!_global.BI) {
}); });
}, },
// 覆盖父类的_constructor方法,widget不走ob的生命周期
_constructor: function () {},
beforeInit: null, beforeInit: null,
// 生命周期函数 // 生命周期函数
@ -11813,16 +11824,17 @@ if (!_global.BI) {
* @private * @private
*/ */
_mount: function (force, deep, lifeHook, predicate) { _mount: function (force, deep, lifeHook, predicate) {
var self = this;
if (!force && (this._isMounted || !this.isVisible() || this.__asking === true || !(this._isRoot === true || (this._parent && this._parent._isMounted === true)))) { if (!force && (this._isMounted || !this.isVisible() || this.__asking === true || !(this._isRoot === true || (this._parent && this._parent._isMounted === true)))) {
return false; return false;
} }
lifeHook !== false && this.beforeMount && this.beforeMount(); lifeHook !== false && this.beforeMount && this.beforeMount();
this._isMounted = true; this._isMounted = true;
this._mountChildren && this._mountChildren(); this._mountChildren && this._mountChildren();
if(BI.isNotNull(this._parent)) {
!this._parent.isEnabled() && this._setEnable(false);
!this._parent.isValid() && this._setValid(false);
}
BI.each(this._children, function (i, widget) { BI.each(this._children, function (i, widget) {
!self.isEnabled() && widget._setEnable(false);
!self.isValid() && widget._setValid(false);
widget._mount && widget._mount(deep ? force : false, deep, lifeHook, predicate); widget._mount && widget._mount(deep ? force : false, deep, lifeHook, predicate);
}); });
lifeHook !== false && this.mounted && this.mounted(); lifeHook !== false && this.mounted && this.mounted();
@ -12170,12 +12182,15 @@ if (!_global.BI) {
// 根据配置属性生成widget // 根据配置属性生成widget
var createWidget = function (config) { var createWidget = function (config) {
if (config["classType"]) {
return new (new Function("return " + config["classType"] + ";")())(config);
}
var cls = kv[config.type]; var cls = kv[config.type];
return new cls(config);
var widget = new cls();
widget._initProps(config);
widget._init();
widget._initRef();
return widget;
}; };
BI.createWidget = function (item, options, context) { BI.createWidget = function (item, options, context) {
@ -31944,7 +31959,7 @@ BI.shortcut("bi.popover", BI.Popover);
BI.BarPopover = BI.inherit(BI.Popover, { BI.BarPopover = BI.inherit(BI.Popover, {
_defaultConfig: function () { _defaultConfig: function () {
return BI.extend(BI.BarPopover.superclass._defaultConfig.apply(this, arguments), { return BI.extend(BI.BarPopover.superclass._defaultConfig.apply(this, arguments), {
btns: [BI.i18nText(BI.i18nText("BI-Basic_Sure")), BI.i18nText(BI.i18nText("BI-Basic_Cancel"))] btns: [BI.i18nText("BI-Basic_Sure"), BI.i18nText("BI-Basic_Cancel")]
}); });
}, },
@ -41208,7 +41223,7 @@ BI.SignEditor = BI.inherit(BI.Widget, {
tipType: o.tipType, tipType: o.tipType,
textAlign: "left", textAlign: "left",
height: o.height, height: o.height,
hgap: 4, hgap: o.hgap,
handler: function () { handler: function () {
self._showInput(); self._showInput();
self.editor.focus(); self.editor.focus();
@ -41476,7 +41491,7 @@ BI.StateEditor = BI.inherit(BI.Widget, {
textAlign: "left", textAlign: "left",
height: o.height, height: o.height,
text: o.text, text: o.text,
hgap: 4, hgap: o.hgap,
handler: function () { handler: function () {
self._showInput(); self._showInput();
self.editor.focus(); self.editor.focus();
@ -41770,7 +41785,7 @@ BI.SimpleStateEditor = BI.inherit(BI.Widget, {
textAlign: "left", textAlign: "left",
text: o.text, text: o.text,
height: o.height, height: o.height,
hgap: 4, hgap: o.hgap,
handler: function () { handler: function () {
self._showInput(); self._showInput();
self.editor.focus(); self.editor.focus();
@ -42515,7 +42530,7 @@ BI.SelectList = BI.inherit(BI.Widget, {
callback.apply(self, arguments); callback.apply(self, arguments);
if (op.times === 1) { if (op.times === 1) {
self.toolbar.setVisible(items && items.length > 0); self.toolbar.setVisible(items && items.length > 0);
self.toolbar.setEnable(items && items.length > 0); self.toolbar.setEnable(self.isEnabled() && items && items.length > 0);
} }
self._checkAllSelected(); self._checkAllSelected();
}); });
@ -42623,7 +42638,7 @@ BI.SelectList = BI.inherit(BI.Widget, {
populate: function (items) { populate: function (items) {
this.toolbar.setVisible(!BI.isEmptyArray(items)); this.toolbar.setVisible(!BI.isEmptyArray(items));
this.toolbar.setEnable(!BI.isEmptyArray(items)); this.toolbar.setEnable(this.isEnabled() && !BI.isEmptyArray(items));
this.list.populate.apply(this.list, arguments); this.list.populate.apply(this.list, arguments);
this._checkAllSelected(); this._checkAllSelected();
}, },

22
dist/utils.js vendored

@ -12259,23 +12259,31 @@ if (!_global.BI) {
* @abstract * @abstract
*/ */
BI.OB = function (config) { BI.OB = function (config) {
var props = this.props; this._constructor(config);
if (BI.isFunction(this.props)) {
props = this.props(config);
}
this.options = extend(this._defaultConfig(config), props, config);
this._init();
this._initRef();
}; };
_.extend(BI.OB.prototype, { _.extend(BI.OB.prototype, {
props: {}, props: {},
init: null, init: null,
destroyed: null, destroyed: null,
_constructor: function (config) {
this._initProps(config);
this._init();
this._initRef();
},
_defaultConfig: function (config) { _defaultConfig: function (config) {
return {}; return {};
}, },
_initProps: function (config) {
var props = this.props;
if (BI.isFunction(this.props)) {
props = this.props(config);
}
this.options = extend(this._defaultConfig(config), props, config);
},
_init: function () { _init: function () {
this._initListeners(); this._initListeners();
this.init && this.init(); this.init && this.init();

8
dist/utils.min.js vendored

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save