Browse Source

auto upgrade version to 2.0.20210920090231

es6
data 3 years ago
parent
commit
cab7dec0e4
  1. 2
      dist/2.0/fineui.css
  2. 4
      dist/2.0/fineui.ie.min.js
  3. 2
      dist/2.0/fineui.ie.min.js.map
  4. 237
      dist/2.0/fineui.js
  5. 2
      dist/2.0/fineui.js.map
  6. 2
      dist/2.0/fineui.min.css
  7. 4
      dist/2.0/fineui.min.js
  8. 2
      dist/2.0/fineui.min.js.map
  9. 2
      dist/2.0/fineui.modern.min.css
  10. 2
      dist/2.0/fineui.modern.min.js
  11. 2
      dist/2.0/fineui_without_normalize.css
  12. 2
      dist/2.0/fineui_without_normalize.min.css
  13. 2
      dist/core.css
  14. 237
      dist/core.js
  15. 2
      dist/core.js.map
  16. 2
      dist/demo.css
  17. 237
      dist/demo.js
  18. 2
      dist/demo.js.map
  19. 2
      dist/fineui.css
  20. 4
      dist/fineui.ie.min.js
  21. 2
      dist/fineui.ie.min.js.map
  22. 237
      dist/fineui.js
  23. 2
      dist/fineui.js.map
  24. 2
      dist/fineui.min.css
  25. 4
      dist/fineui.min.js
  26. 2
      dist/fineui.min.js.map
  27. 2
      dist/fineui.modern.min.css
  28. 2
      dist/fineui.modern.min.js
  29. 2
      dist/fineui.proxy.css
  30. 237
      dist/fineui.proxy.js
  31. 2
      dist/fineui.proxy.js.map
  32. 2
      dist/fineui.proxy.min.css
  33. 4
      dist/fineui.proxy.min.js
  34. 2
      dist/fineui.proxy.min.js.map
  35. 234
      dist/fineui_without_jquery_polyfill.js
  36. 2
      dist/fineui_without_jquery_polyfill.js.map
  37. 2
      dist/fineui_without_normalize.min.css
  38. 2
      dist/font.css
  39. 2
      dist/resource.css
  40. 2
      dist/utils.js
  41. 2
      dist/utils.min.js
  42. 2
      package.json

2
dist/2.0/fineui.css vendored

File diff suppressed because one or more lines are too long

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

File diff suppressed because one or more lines are too long

2
dist/2.0/fineui.ie.min.js.map vendored

File diff suppressed because one or more lines are too long

237
dist/2.0/fineui.js vendored

@ -1,4 +1,4 @@
/*! time: 2021-9-18 9:50:56 */
/*! time: 2021-9-20 9:00:58 */
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
@ -9204,7 +9204,7 @@ module.exports = !__webpack_require__(909)(function () {
baseCls: "",
extraCls: "",
cls: "",
css: null,
css: null
// vdom: false
});
@ -9323,9 +9323,19 @@ module.exports = !__webpack_require__(909)(function () {
},
_initCurrent: function () {
var o = this.options;
if (o._baseCls || o.baseCls || o.extraCls || o.cls) {
this.element.addClass((o._baseCls || "") + " " + (o.baseCls || "") + " " + (o.extraCls || "") + " " + (o.cls || ""));
var self = this, o = this.options;
if (o._baseCls || o.baseCls || o.extraCls) {
this.element.addClass((o._baseCls || "") + " " + (o.baseCls || "") + " " + (o.extraCls || ""));
}
if (o.cls) {
if (BI.isFunction(o.cls)) {
var cls = this.__watch(o.cls, function (newValue) {
self.element.removeClass(cls).addClass(cls = newValue);
});
this.element.addClass(cls);
} else {
this.element.addClass(o.cls);
}
}
if (o.key != null) {
this.element.attr("key", o.key);
@ -9337,7 +9347,32 @@ module.exports = !__webpack_require__(909)(function () {
this.element.data(o.data);
}
if (o.css) {
this.element.css(o.css);
if (BI.isFunction(o.css)) {
var css = this.__watch(o.css, function (newValue) {
for (var k in css) {
if (!newValue[k]) {
newValue[k] = "";
}
}
self.element.css(css = newValue);
}, {
deep: true
});
this.element.css(css);
} else {
this.element.css(o.css);
}
}
},
__watch: function (getter, handler, options) {
if (Fix.Model.target) {
this._watchers = this._watchers || [];
var watcher = new Fix.Watcher(Fix.Model.target, BI.bind(getter, this), (handler && BI.bind(handler, this)) || BI.emptyFn, options);
this._watchers.push(watcher);
return watcher.value;
} else {
return getter();
}
},
@ -9390,7 +9425,7 @@ module.exports = !__webpack_require__(909)(function () {
},
_initEffects: function () {
var o = this.options;
var self = this, o = this.options;
if (o.disabled || o.invalid) {
if (this.options.disabled) {
this.setEnable(false);
@ -9399,6 +9434,23 @@ module.exports = !__webpack_require__(909)(function () {
this.setValid(false);
}
}
if (o.effect) {
if (BI.isArray(o.effect)) {
if (BI.isArray(o.effect[0])) {
BI.each(o.effect, function (i, effect) {
self.__watch(effect[0], effect[1], {
deep: true
});
});
} else {
self.__watch(o.effect[0], o.effect[1], {
deep: true
});
}
} else {
this.__watch(o.effect);
}
}
},
_initState: function () {
@ -23920,8 +23972,7 @@ BI.CollectionView = BI.inherit(BI.Widget, {
});
},
_init: function () {
BI.CollectionView.superclass._init.apply(this, arguments);
render: function () {
var self = this, o = this.options;
this.renderedCells = [];
this.renderedKeys = [];
@ -24325,8 +24376,7 @@ BI.shortcut("bi.collection_view", BI.CollectionView);
});
},
_init: function () {
BI.Combo.superclass._init.apply(this, arguments);
render: function () {
var self = this, o = this.options;
this._initCombo();
this._initPullDownAction();
@ -24885,8 +24935,7 @@ BI.Expander = BI.inherit(BI.Widget, {
});
},
_init: function () {
BI.Expander.superclass._init.apply(this, arguments);
render: function () {
var self = this, o = this.options;
this._expanded = !!o.el.open;
this._initExpander();
@ -25145,6 +25194,7 @@ BI.Expander.EVENT_AFTER_HIDEVIEW = "EVENT_AFTER_HIDEVIEW";
BI.shortcut("bi.expander", BI.Expander);
/***/ }),
/* 365 */
/***/ (function(module, exports) {
@ -25171,8 +25221,7 @@ BI.ButtonGroup = BI.inherit(BI.Widget, {
});
},
_init: function () {
BI.ButtonGroup.superclass._init.apply(this, arguments);
render: function () {
var o = this.options;
var behaviors = {};
BI.each(o.behaviors, function (key, rule) {
@ -25480,6 +25529,7 @@ BI.ButtonGroup.EVENT_CHANGE = "EVENT_CHANGE";
BI.shortcut("bi.button_group", BI.ButtonGroup);
/***/ }),
/* 366 */
/***/ (function(module, exports) {
@ -25516,8 +25566,7 @@ BI.ComboGroup = BI.inherit(BI.Widget, {
});
},
_init: function () {
BI.ComboGroup.superclass._init.apply(this, arguments);
render: function () {
this._populate(this.options.el);
},
@ -25582,6 +25631,7 @@ BI.ComboGroup.EVENT_CHANGE = "EVENT_CHANGE";
BI.shortcut("bi.combo_group", BI.ComboGroup);
/***/ }),
/* 367 */
/***/ (function(module, exports) {
@ -25762,8 +25812,7 @@ BI.Loader = BI.inherit(BI.Widget, {
}]);
},
_init: function () {
BI.Loader.superclass._init.apply(this, arguments);
render: function () {
var self = this, o = this.options;
if (o.itemsCreator === false) {
o.prev = false;
@ -26185,8 +26234,7 @@ BI.Searcher = BI.inherit(BI.Widget, {
});
},
_init: function () {
BI.Searcher.superclass._init.apply(this, arguments);
render: function () {
var self = this, o = this.options;
this.editor = BI.createWidget(o.el, {
@ -26462,6 +26510,7 @@ BI.Searcher.EVENT_AFTER_INIT = "EVENT_AFTER_INIT";
BI.shortcut("bi.searcher", BI.Searcher);
/***/ }),
/* 371 */
/***/ (function(module, exports) {
@ -26490,8 +26539,7 @@ BI.Switcher = BI.inherit(BI.Widget, {
});
},
_init: function () {
BI.Switcher.superclass._init.apply(this, arguments);
render: function () {
var self = this, o = this.options;
this._initSwitcher();
this._initPullDownAction();
@ -26759,6 +26807,7 @@ BI.Switcher.EVENT_AFTER_HIDEVIEW = "EVENT_AFTER_HIDEVIEW";
BI.shortcut("bi.switcher", BI.Switcher);
/***/ }),
/* 372 */
/***/ (function(module, exports) {
@ -26939,10 +26988,6 @@ BI.ButtonTree = BI.inherit(BI.ButtonGroup, {
});
},
_init: function () {
BI.ButtonTree.superclass._init.apply(this, arguments);
},
setNotSelectedValue: function (v) {
v = BI.isArray(v) ? v : [v];
BI.each(this.buttons, function (i, item) {
@ -27109,6 +27154,7 @@ BI.ButtonTree.EVENT_CHANGE = "EVENT_CHANGE";
BI.shortcut("bi.button_tree", BI.ButtonTree);
/***/ }),
/* 374 */
/***/ (function(module, exports) {
@ -27393,8 +27439,7 @@ BI.GridView = BI.inherit(BI.Widget, {
});
},
_init: function () {
BI.GridView.superclass._init.apply(this, arguments);
render: function () {
var self = this, o = this.options;
this.renderedCells = [];
this.renderedKeys = [];
@ -28084,8 +28129,7 @@ BI.PopupView = BI.inherit(BI.Widget, {
});
},
_init: function () {
BI.PopupView.superclass._init.apply(this, arguments);
render: function () {
var self = this, o = this.options;
var fn = function (e) {
e.stopPropagation();
@ -28270,8 +28314,7 @@ BI.SearcherView = BI.inherit(BI.Pane, {
});
},
_init: function () {
BI.SearcherView.superclass._init.apply(this, arguments);
render: function () {
var self = this, o = this.options;
this.matcher = BI.createWidget(o.matcher, {
@ -28369,6 +28412,7 @@ BI.SearcherView.EVENT_CHANGE = "EVENT_CHANGE";
BI.shortcut("bi.searcher_view", BI.SearcherView);
/***/ }),
/* 380 */
/***/ (function(module, exports) {
@ -28897,8 +28941,8 @@ BI.Pager = BI.inherit(BI.Widget, {
hasNext: BI.emptyFn // pages不可用时有效
});
},
_init: function () {
BI.Pager.superclass._init.apply(this, arguments);
render: function () {
var self = this;
this.currPage = BI.result(this.options, "curr");
// 翻页太灵敏
@ -29145,6 +29189,7 @@ BI.Pager.EVENT_CHANGE = "EVENT_CHANGE";
BI.Pager.EVENT_AFTER_POPULATE = "EVENT_AFTER_POPULATE";
BI.shortcut("bi.pager", BI.Pager);
/***/ }),
/* 384 */
/***/ (function(module, exports) {
@ -29558,9 +29603,9 @@ BI.A = BI.inherit(BI.Text, {
tagName: "a"
});
},
_init: function () {
render: function () {
var o = this.options;
BI.A.superclass._init.apply(this, arguments);
this.element.attr({href: o.href, target: o.target});
if (o.el) {
BI.createWidget(o.el, {
@ -29572,6 +29617,7 @@ BI.A = BI.inherit(BI.Text, {
BI.shortcut("bi.a", BI.A);
/***/ }),
/* 387 */
/***/ (function(module, exports) {
@ -29590,8 +29636,8 @@ BI.LoadingBar = BI.inherit(BI.Single, {
handler: BI.emptyFn
});
},
_init: function () {
BI.LoadingBar.superclass._init.apply(this, arguments);
render: function () {
var self = this;
this.loaded = BI.createWidget({
type: "bi.text_button",
@ -29657,6 +29703,7 @@ BI.LoadingBar = BI.inherit(BI.Single, {
BI.shortcut("bi.loading_bar", BI.LoadingBar);
/***/ }),
/* 388 */
/***/ (function(module, exports) {
@ -30157,8 +30204,7 @@ BI.IconButton = BI.inherit(BI.BasicButton, {
});
},
_init: function () {
BI.IconButton.superclass._init.apply(this, arguments);
render: function () {
var o = this.options;
this.element.css({
textAlign: "center"
@ -30218,8 +30264,7 @@ BI.ImageButton = BI.inherit(BI.BasicButton, {
});
},
_init: function () {
BI.ImageButton.superclass._init.apply(this, arguments);
render: function () {
var o = this.options;
this.image = BI.createWidget({
type: "bi.img",
@ -30288,6 +30333,7 @@ BI.ImageButton = BI.inherit(BI.BasicButton, {
BI.ImageButton.EVENT_CHANGE = "EVENT_CHANGE";
BI.shortcut("bi.image_button", BI.ImageButton);
/***/ }),
/* 392 */
/***/ (function(module, exports) {
@ -30333,8 +30379,7 @@ BI.Button = BI.inherit(BI.BasicButton, {
});
},
_init: function () {
BI.Button.superclass._init.apply(this, arguments);
render: function () {
var o = this.options, self = this;
if (BI.isKey(o.iconCls)) {
this.icon = BI.createWidget({
@ -30474,8 +30519,7 @@ BI.TextButton = BI.inherit(BI.BasicButton, {
});
},
_init: function () {
BI.TextButton.superclass._init.apply(this, arguments);
render: function () {
var o = this.options;
this.text = BI.createWidget({
type: "bi.label",
@ -30541,6 +30585,7 @@ BI.TextButton = BI.inherit(BI.BasicButton, {
BI.TextButton.EVENT_CHANGE = "EVENT_CHANGE";
BI.shortcut("bi.text_button", BI.TextButton);
/***/ }),
/* 394 */
/***/ (function(module, exports) {
@ -30572,8 +30617,8 @@ BI.BlankIconIconTextItem = BI.inherit(BI.BasicButton, {
textRgap: 0
});
},
_init: function () {
BI.BlankIconIconTextItem.superclass._init.apply(this, arguments);
render: function () {
var o = this.options, c = this._const;
var blank = BI.createWidget({
type: "bi.layout",
@ -30698,8 +30743,8 @@ BI.BlankIconTextIconItem = BI.inherit(BI.BasicButton, {
textRgap: 0
});
},
_init: function () {
BI.BlankIconTextIconItem.superclass._init.apply(this, arguments);
render: function () {
var o = this.options, c = this._const;
this.text = BI.createWidget({
type: "bi.label",
@ -30828,8 +30873,8 @@ BI.BlankIconTextItem = BI.inherit(BI.BasicButton, {
textRgap: 0
});
},
_init: function () {
BI.BlankIconTextItem.superclass._init.apply(this, arguments);
render: function () {
var o = this.options, c = this._const;
var blank = BI.createWidget({
type: "bi.layout",
@ -30940,8 +30985,8 @@ BI.IconTextIconItem = BI.inherit(BI.BasicButton, {
textRgap: 0
});
},
_init: function () {
BI.IconTextIconItem.superclass._init.apply(this, arguments);
render: function () {
var o = this.options, c = this._const;
this.text = BI.createWidget({
type: "bi.label",
@ -31069,8 +31114,8 @@ BI.IconTextItem = BI.inherit(BI.BasicButton, {
textRgap: 0
});
},
_init: function () {
BI.IconTextItem.superclass._init.apply(this, arguments);
render: function () {
var o = this.options, c = this._const;
this.text = BI.createWidget({
type: "bi.label",
@ -31176,8 +31221,8 @@ BI.TextIconItem = BI.inherit(BI.BasicButton, {
textRgap: 0
});
},
_init: function () {
BI.TextIconItem.superclass._init.apply(this, arguments);
render: function () {
var o = this.options, c = this._const;
this.text = BI.createWidget({
type: "bi.label",
@ -31279,8 +31324,8 @@ BI.TextItem = BI.inherit(BI.BasicButton, {
textRgap: 0
});
},
_init: function () {
BI.TextItem.superclass._init.apply(this, arguments);
render: function () {
var o = this.options;
this.text = BI.createWidget({
type: "bi.label",
@ -31344,6 +31389,7 @@ BI.TextItem = BI.inherit(BI.BasicButton, {
BI.TextItem.EVENT_CHANGE = "EVENT_CHANGE";
BI.shortcut("bi.text_item", BI.TextItem);
/***/ }),
/* 401 */
/***/ (function(module, exports) {
@ -31373,8 +31419,8 @@ BI.IconTextIconNode = BI.inherit(BI.NodeButton, {
textRgap: 0
});
},
_init: function () {
BI.IconTextIconNode.superclass._init.apply(this, arguments);
render: function () {
var o = this.options, c = this._const;
this.text = BI.createWidget({
type: "bi.label",
@ -31462,6 +31508,7 @@ BI.IconTextIconNode = BI.inherit(BI.NodeButton, {
BI.IconTextIconNode.EVENT_CHANGE = "EVENT_CHANGE";
BI.shortcut("bi.icon_text_icon_node", BI.IconTextIconNode);
/***/ }),
/* 402 */
/***/ (function(module, exports) {
@ -31490,8 +31537,8 @@ BI.IconTextNode = BI.inherit(BI.NodeButton, {
textRgap: 0
});
},
_init: function () {
BI.IconTextNode.superclass._init.apply(this, arguments);
render: function () {
var o = this.options, c = this._const;
this.text = BI.createWidget({
type: "bi.label",
@ -31557,6 +31604,7 @@ BI.IconTextNode = BI.inherit(BI.NodeButton, {
BI.IconTextNode.EVENT_CHANGE = "EVENT_CHANGE";
BI.shortcut("bi.icon_text_node", BI.IconTextNode);
/***/ }),
/* 403 */
/***/ (function(module, exports) {
@ -31584,8 +31632,8 @@ BI.TextIconNode = BI.inherit(BI.NodeButton, {
textRgap: 0
});
},
_init: function () {
BI.TextIconNode.superclass._init.apply(this, arguments);
render: function () {
var o = this.options, c = this._const;
this.text = BI.createWidget({
type: "bi.label",
@ -31651,6 +31699,7 @@ BI.TextIconNode = BI.inherit(BI.NodeButton, {
BI.TextIconNode.EVENT_CHANGE = "EVENT_CHANGE";
BI.shortcut("bi.text_icon_node", BI.TextIconNode);
/***/ }),
/* 404 */
/***/ (function(module, exports) {
@ -31676,8 +31725,8 @@ BI.TextNode = BI.inherit(BI.NodeButton, {
textRgap: 0
});
},
_init: function () {
BI.TextNode.superclass._init.apply(this, arguments);
render: function () {
var o = this.options;
this.text = BI.createWidget({
type: "bi.label",
@ -31733,6 +31782,7 @@ BI.TextNode = BI.inherit(BI.NodeButton, {
BI.TextNode.EVENT_CHANGE = "EVENT_CHANGE";
BI.shortcut("bi.text_node", BI.TextNode);
/***/ }),
/* 405 */
/***/ (function(module, exports) {
@ -31765,8 +31815,7 @@ BI.Editor = BI.inherit(BI.Single, {
});
},
_init: function () {
BI.Editor.superclass._init.apply(this, arguments);
render: function () {
var self = this, o = this.options;
// 密码输入框设置autocomplete="new-password"的情况下Firefox和chrome不会自动填充密码
var autocomplete = o.autocomplete ? " autocomplete=" + o.autocomplete : "";
@ -32134,8 +32183,7 @@ BI.MultifileEditor = BI.inherit(BI.Widget, {
});
},
_init: function () {
var self = this, o = this.options;
render: function () {
BI.MultifileEditor.superclass._init.apply(this, arguments);
this.file = BI.createWidget({
type: "bi.file",
@ -32611,8 +32659,8 @@ BI.Icon = BI.inherit(BI.Single, {
baseCls: (conf.baseCls || "") + " x-icon b-font horizon-center display-block"
});
},
_init: function () {
BI.Icon.superclass._init.apply(this, arguments);
render: function () {
if (BI.isIE9Below && BI.isIE9Below()) {
this.element.addClass("hack");
}
@ -32620,6 +32668,7 @@ BI.Icon = BI.inherit(BI.Single, {
});
BI.shortcut("bi.icon", BI.Icon);
/***/ }),
/* 410 */
/***/ (function(module, exports) {
@ -32644,9 +32693,8 @@ BI.Iframe = BI.inherit(BI.Single, {
});
},
_init: function () {
render: function () {
var self = this;
BI.Iframe.superclass._init.apply(this, arguments);
this.element.on("load", function () {
self.fireEvent("EVENT_LOADED");
});
@ -32845,8 +32893,7 @@ BI.Input = BI.inherit(BI.Single, {
});
},
_init: function () {
BI.Input.superclass._init.apply(this, arguments);
render: function () {
var self = this;
var ctrlKey = false;
var keyCode = null;
@ -33168,10 +33215,6 @@ BI.ImageRadio = BI.inherit(BI.IconButton, {
});
},
_init: function () {
BI.ImageRadio.superclass._init.apply(this, arguments);
},
doClick: function () {
BI.ImageRadio.superclass.doClick.apply(this, arguments);
if(this.isValid()) {
@ -33183,6 +33226,7 @@ BI.ImageRadio.EVENT_CHANGE = BI.IconButton.EVENT_CHANGE;
BI.shortcut("bi.image_radio", BI.ImageRadio);
/***/ }),
/* 416 */
/***/ (function(module, exports) {
@ -33294,9 +33338,7 @@ BI.shortcut("bi.radio", BI.Radio);
};
},
_init: function () {
BI.AbstractLabel.superclass._init.apply(this, arguments);
render: function () {
if (this.options.textAlign === "center") {
this._createCenterEl();
} else {
@ -33689,8 +33731,7 @@ BI.IconLabel = BI.inherit(BI.Single, {
iconHeight: null
},
_init: function () {
BI.IconLabel.superclass._init.apply(this, arguments);
render: function () {
var o = this.options;
this.element.css({
textAlign: "center"
@ -33888,8 +33929,8 @@ BI.Toast = BI.inherit(BI.Tip, {
level: "success" // success或warning
});
},
_init: function () {
BI.Toast.superclass._init.apply(this, arguments);
render: function () {
var self = this, o = this.options;
this.element.css({
minWidth: this._const.minWidth / BI.pixRatio + BI.pixUnit
@ -34003,8 +34044,8 @@ BI.Tooltip = BI.inherit(BI.Tip, {
stopPropagation: false
});
},
_init: function () {
BI.Tooltip.superclass._init.apply(this, arguments);
render: function () {
var self = this, o = this.options;
this.element.addClass("tooltip-" + o.level);
var fn = function (e) {
@ -34066,6 +34107,7 @@ BI.Tooltip = BI.inherit(BI.Tip, {
BI.shortcut("bi.tooltip", BI.Tooltip);
/***/ }),
/* 426 */
/***/ (function(module, exports) {
@ -34085,10 +34127,6 @@ BI.Trigger = BI.inherit(BI.Single, {
});
},
_init: function () {
BI.Trigger.superclass._init.apply(this, arguments);
},
setKey: function () {
},
@ -34098,6 +34136,7 @@ BI.Trigger = BI.inherit(BI.Single, {
},
});
/***/ }),
/* 427 */
/***/ (function(module, exports) {
@ -39614,9 +39653,6 @@ BI.BubblePopupView = BI.inherit(BI.PopupView, {
maxWidth: 300,
minHeight: 90
});
},
_init: function () {
BI.BubblePopupView.superclass._init.apply(this, arguments);
}
});
@ -94003,9 +94039,8 @@ _.extend(BI, {
});
},
_init: function () {
render: function () {
var self = this, o = this.options;
BI.File.superclass._init.apply(this, arguments);
if (o.multiple === true) {
this.element.attr("multiple", "multiple");
}

2
dist/2.0/fineui.js.map vendored

File diff suppressed because one or more lines are too long

2
dist/2.0/fineui.min.css vendored

File diff suppressed because one or more lines are too long

4
dist/2.0/fineui.min.js vendored

File diff suppressed because one or more lines are too long

2
dist/2.0/fineui.min.js.map vendored

File diff suppressed because one or more lines are too long

2
dist/2.0/fineui.modern.min.css vendored

File diff suppressed because one or more lines are too long

2
dist/2.0/fineui.modern.min.js vendored

@ -1,2 +1,2 @@
/*! time: 2021-9-18 9:50:56 */
/*! time: 2021-9-20 9:00:58 */
!function(e){var n={};function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var o in e)t.d(r,o,function(n){return e[n]}.bind(null,o));return r},t.n=function(e){var n=e&&e.__esModule?function(){return e["default"]}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="",t(t.s=1450)}({1192:function(e,n,t){},1450:function(e,n,t){t(1192),t(1451),t(1452),t(1453),t(1454),e.exports=t(1455)},1451:function(e,n,t){},1452:function(e,n,t){},1453:function(e,n,t){},1454:function(e,n,t){},1455:function(e,n,t){}});

2
dist/2.0/fineui_without_normalize.css vendored

File diff suppressed because one or more lines are too long

2
dist/2.0/fineui_without_normalize.min.css vendored

File diff suppressed because one or more lines are too long

2
dist/core.css vendored

File diff suppressed because one or more lines are too long

237
dist/core.js vendored

@ -1,4 +1,4 @@
/*! time: 2021-9-18 9:50:56 */
/*! time: 2021-9-20 9:00:58 */
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
@ -9204,7 +9204,7 @@ module.exports = !__webpack_require__(909)(function () {
baseCls: "",
extraCls: "",
cls: "",
css: null,
css: null
// vdom: false
});
@ -9323,9 +9323,19 @@ module.exports = !__webpack_require__(909)(function () {
},
_initCurrent: function () {
var o = this.options;
if (o._baseCls || o.baseCls || o.extraCls || o.cls) {
this.element.addClass((o._baseCls || "") + " " + (o.baseCls || "") + " " + (o.extraCls || "") + " " + (o.cls || ""));
var self = this, o = this.options;
if (o._baseCls || o.baseCls || o.extraCls) {
this.element.addClass((o._baseCls || "") + " " + (o.baseCls || "") + " " + (o.extraCls || ""));
}
if (o.cls) {
if (BI.isFunction(o.cls)) {
var cls = this.__watch(o.cls, function (newValue) {
self.element.removeClass(cls).addClass(cls = newValue);
});
this.element.addClass(cls);
} else {
this.element.addClass(o.cls);
}
}
if (o.key != null) {
this.element.attr("key", o.key);
@ -9337,7 +9347,32 @@ module.exports = !__webpack_require__(909)(function () {
this.element.data(o.data);
}
if (o.css) {
this.element.css(o.css);
if (BI.isFunction(o.css)) {
var css = this.__watch(o.css, function (newValue) {
for (var k in css) {
if (!newValue[k]) {
newValue[k] = "";
}
}
self.element.css(css = newValue);
}, {
deep: true
});
this.element.css(css);
} else {
this.element.css(o.css);
}
}
},
__watch: function (getter, handler, options) {
if (Fix.Model.target) {
this._watchers = this._watchers || [];
var watcher = new Fix.Watcher(Fix.Model.target, BI.bind(getter, this), (handler && BI.bind(handler, this)) || BI.emptyFn, options);
this._watchers.push(watcher);
return watcher.value;
} else {
return getter();
}
},
@ -9390,7 +9425,7 @@ module.exports = !__webpack_require__(909)(function () {
},
_initEffects: function () {
var o = this.options;
var self = this, o = this.options;
if (o.disabled || o.invalid) {
if (this.options.disabled) {
this.setEnable(false);
@ -9399,6 +9434,23 @@ module.exports = !__webpack_require__(909)(function () {
this.setValid(false);
}
}
if (o.effect) {
if (BI.isArray(o.effect)) {
if (BI.isArray(o.effect[0])) {
BI.each(o.effect, function (i, effect) {
self.__watch(effect[0], effect[1], {
deep: true
});
});
} else {
self.__watch(o.effect[0], o.effect[1], {
deep: true
});
}
} else {
this.__watch(o.effect);
}
}
},
_initState: function () {
@ -23920,8 +23972,7 @@ BI.CollectionView = BI.inherit(BI.Widget, {
});
},
_init: function () {
BI.CollectionView.superclass._init.apply(this, arguments);
render: function () {
var self = this, o = this.options;
this.renderedCells = [];
this.renderedKeys = [];
@ -24325,8 +24376,7 @@ BI.shortcut("bi.collection_view", BI.CollectionView);
});
},
_init: function () {
BI.Combo.superclass._init.apply(this, arguments);
render: function () {
var self = this, o = this.options;
this._initCombo();
this._initPullDownAction();
@ -24885,8 +24935,7 @@ BI.Expander = BI.inherit(BI.Widget, {
});
},
_init: function () {
BI.Expander.superclass._init.apply(this, arguments);
render: function () {
var self = this, o = this.options;
this._expanded = !!o.el.open;
this._initExpander();
@ -25145,6 +25194,7 @@ BI.Expander.EVENT_AFTER_HIDEVIEW = "EVENT_AFTER_HIDEVIEW";
BI.shortcut("bi.expander", BI.Expander);
/***/ }),
/* 365 */
/***/ (function(module, exports) {
@ -25171,8 +25221,7 @@ BI.ButtonGroup = BI.inherit(BI.Widget, {
});
},
_init: function () {
BI.ButtonGroup.superclass._init.apply(this, arguments);
render: function () {
var o = this.options;
var behaviors = {};
BI.each(o.behaviors, function (key, rule) {
@ -25480,6 +25529,7 @@ BI.ButtonGroup.EVENT_CHANGE = "EVENT_CHANGE";
BI.shortcut("bi.button_group", BI.ButtonGroup);
/***/ }),
/* 366 */
/***/ (function(module, exports) {
@ -25516,8 +25566,7 @@ BI.ComboGroup = BI.inherit(BI.Widget, {
});
},
_init: function () {
BI.ComboGroup.superclass._init.apply(this, arguments);
render: function () {
this._populate(this.options.el);
},
@ -25582,6 +25631,7 @@ BI.ComboGroup.EVENT_CHANGE = "EVENT_CHANGE";
BI.shortcut("bi.combo_group", BI.ComboGroup);
/***/ }),
/* 367 */
/***/ (function(module, exports) {
@ -25762,8 +25812,7 @@ BI.Loader = BI.inherit(BI.Widget, {
}]);
},
_init: function () {
BI.Loader.superclass._init.apply(this, arguments);
render: function () {
var self = this, o = this.options;
if (o.itemsCreator === false) {
o.prev = false;
@ -26185,8 +26234,7 @@ BI.Searcher = BI.inherit(BI.Widget, {
});
},
_init: function () {
BI.Searcher.superclass._init.apply(this, arguments);
render: function () {
var self = this, o = this.options;
this.editor = BI.createWidget(o.el, {
@ -26462,6 +26510,7 @@ BI.Searcher.EVENT_AFTER_INIT = "EVENT_AFTER_INIT";
BI.shortcut("bi.searcher", BI.Searcher);
/***/ }),
/* 371 */
/***/ (function(module, exports) {
@ -26490,8 +26539,7 @@ BI.Switcher = BI.inherit(BI.Widget, {
});
},
_init: function () {
BI.Switcher.superclass._init.apply(this, arguments);
render: function () {
var self = this, o = this.options;
this._initSwitcher();
this._initPullDownAction();
@ -26759,6 +26807,7 @@ BI.Switcher.EVENT_AFTER_HIDEVIEW = "EVENT_AFTER_HIDEVIEW";
BI.shortcut("bi.switcher", BI.Switcher);
/***/ }),
/* 372 */
/***/ (function(module, exports) {
@ -26939,10 +26988,6 @@ BI.ButtonTree = BI.inherit(BI.ButtonGroup, {
});
},
_init: function () {
BI.ButtonTree.superclass._init.apply(this, arguments);
},
setNotSelectedValue: function (v) {
v = BI.isArray(v) ? v : [v];
BI.each(this.buttons, function (i, item) {
@ -27109,6 +27154,7 @@ BI.ButtonTree.EVENT_CHANGE = "EVENT_CHANGE";
BI.shortcut("bi.button_tree", BI.ButtonTree);
/***/ }),
/* 374 */
/***/ (function(module, exports) {
@ -27393,8 +27439,7 @@ BI.GridView = BI.inherit(BI.Widget, {
});
},
_init: function () {
BI.GridView.superclass._init.apply(this, arguments);
render: function () {
var self = this, o = this.options;
this.renderedCells = [];
this.renderedKeys = [];
@ -28084,8 +28129,7 @@ BI.PopupView = BI.inherit(BI.Widget, {
});
},
_init: function () {
BI.PopupView.superclass._init.apply(this, arguments);
render: function () {
var self = this, o = this.options;
var fn = function (e) {
e.stopPropagation();
@ -28270,8 +28314,7 @@ BI.SearcherView = BI.inherit(BI.Pane, {
});
},
_init: function () {
BI.SearcherView.superclass._init.apply(this, arguments);
render: function () {
var self = this, o = this.options;
this.matcher = BI.createWidget(o.matcher, {
@ -28369,6 +28412,7 @@ BI.SearcherView.EVENT_CHANGE = "EVENT_CHANGE";
BI.shortcut("bi.searcher_view", BI.SearcherView);
/***/ }),
/* 380 */
/***/ (function(module, exports) {
@ -28897,8 +28941,8 @@ BI.Pager = BI.inherit(BI.Widget, {
hasNext: BI.emptyFn // pages不可用时有效
});
},
_init: function () {
BI.Pager.superclass._init.apply(this, arguments);
render: function () {
var self = this;
this.currPage = BI.result(this.options, "curr");
// 翻页太灵敏
@ -29145,6 +29189,7 @@ BI.Pager.EVENT_CHANGE = "EVENT_CHANGE";
BI.Pager.EVENT_AFTER_POPULATE = "EVENT_AFTER_POPULATE";
BI.shortcut("bi.pager", BI.Pager);
/***/ }),
/* 384 */
/***/ (function(module, exports) {
@ -29558,9 +29603,9 @@ BI.A = BI.inherit(BI.Text, {
tagName: "a"
});
},
_init: function () {
render: function () {
var o = this.options;
BI.A.superclass._init.apply(this, arguments);
this.element.attr({href: o.href, target: o.target});
if (o.el) {
BI.createWidget(o.el, {
@ -29572,6 +29617,7 @@ BI.A = BI.inherit(BI.Text, {
BI.shortcut("bi.a", BI.A);
/***/ }),
/* 387 */
/***/ (function(module, exports) {
@ -29590,8 +29636,8 @@ BI.LoadingBar = BI.inherit(BI.Single, {
handler: BI.emptyFn
});
},
_init: function () {
BI.LoadingBar.superclass._init.apply(this, arguments);
render: function () {
var self = this;
this.loaded = BI.createWidget({
type: "bi.text_button",
@ -29657,6 +29703,7 @@ BI.LoadingBar = BI.inherit(BI.Single, {
BI.shortcut("bi.loading_bar", BI.LoadingBar);
/***/ }),
/* 388 */
/***/ (function(module, exports) {
@ -30157,8 +30204,7 @@ BI.IconButton = BI.inherit(BI.BasicButton, {
});
},
_init: function () {
BI.IconButton.superclass._init.apply(this, arguments);
render: function () {
var o = this.options;
this.element.css({
textAlign: "center"
@ -30218,8 +30264,7 @@ BI.ImageButton = BI.inherit(BI.BasicButton, {
});
},
_init: function () {
BI.ImageButton.superclass._init.apply(this, arguments);
render: function () {
var o = this.options;
this.image = BI.createWidget({
type: "bi.img",
@ -30288,6 +30333,7 @@ BI.ImageButton = BI.inherit(BI.BasicButton, {
BI.ImageButton.EVENT_CHANGE = "EVENT_CHANGE";
BI.shortcut("bi.image_button", BI.ImageButton);
/***/ }),
/* 392 */
/***/ (function(module, exports) {
@ -30333,8 +30379,7 @@ BI.Button = BI.inherit(BI.BasicButton, {
});
},
_init: function () {
BI.Button.superclass._init.apply(this, arguments);
render: function () {
var o = this.options, self = this;
if (BI.isKey(o.iconCls)) {
this.icon = BI.createWidget({
@ -30474,8 +30519,7 @@ BI.TextButton = BI.inherit(BI.BasicButton, {
});
},
_init: function () {
BI.TextButton.superclass._init.apply(this, arguments);
render: function () {
var o = this.options;
this.text = BI.createWidget({
type: "bi.label",
@ -30541,6 +30585,7 @@ BI.TextButton = BI.inherit(BI.BasicButton, {
BI.TextButton.EVENT_CHANGE = "EVENT_CHANGE";
BI.shortcut("bi.text_button", BI.TextButton);
/***/ }),
/* 394 */
/***/ (function(module, exports) {
@ -30572,8 +30617,8 @@ BI.BlankIconIconTextItem = BI.inherit(BI.BasicButton, {
textRgap: 0
});
},
_init: function () {
BI.BlankIconIconTextItem.superclass._init.apply(this, arguments);
render: function () {
var o = this.options, c = this._const;
var blank = BI.createWidget({
type: "bi.layout",
@ -30698,8 +30743,8 @@ BI.BlankIconTextIconItem = BI.inherit(BI.BasicButton, {
textRgap: 0
});
},
_init: function () {
BI.BlankIconTextIconItem.superclass._init.apply(this, arguments);
render: function () {
var o = this.options, c = this._const;
this.text = BI.createWidget({
type: "bi.label",
@ -30828,8 +30873,8 @@ BI.BlankIconTextItem = BI.inherit(BI.BasicButton, {
textRgap: 0
});
},
_init: function () {
BI.BlankIconTextItem.superclass._init.apply(this, arguments);
render: function () {
var o = this.options, c = this._const;
var blank = BI.createWidget({
type: "bi.layout",
@ -30940,8 +30985,8 @@ BI.IconTextIconItem = BI.inherit(BI.BasicButton, {
textRgap: 0
});
},
_init: function () {
BI.IconTextIconItem.superclass._init.apply(this, arguments);
render: function () {
var o = this.options, c = this._const;
this.text = BI.createWidget({
type: "bi.label",
@ -31069,8 +31114,8 @@ BI.IconTextItem = BI.inherit(BI.BasicButton, {
textRgap: 0
});
},
_init: function () {
BI.IconTextItem.superclass._init.apply(this, arguments);
render: function () {
var o = this.options, c = this._const;
this.text = BI.createWidget({
type: "bi.label",
@ -31176,8 +31221,8 @@ BI.TextIconItem = BI.inherit(BI.BasicButton, {
textRgap: 0
});
},
_init: function () {
BI.TextIconItem.superclass._init.apply(this, arguments);
render: function () {
var o = this.options, c = this._const;
this.text = BI.createWidget({
type: "bi.label",
@ -31279,8 +31324,8 @@ BI.TextItem = BI.inherit(BI.BasicButton, {
textRgap: 0
});
},
_init: function () {
BI.TextItem.superclass._init.apply(this, arguments);
render: function () {
var o = this.options;
this.text = BI.createWidget({
type: "bi.label",
@ -31344,6 +31389,7 @@ BI.TextItem = BI.inherit(BI.BasicButton, {
BI.TextItem.EVENT_CHANGE = "EVENT_CHANGE";
BI.shortcut("bi.text_item", BI.TextItem);
/***/ }),
/* 401 */
/***/ (function(module, exports) {
@ -31373,8 +31419,8 @@ BI.IconTextIconNode = BI.inherit(BI.NodeButton, {
textRgap: 0
});
},
_init: function () {
BI.IconTextIconNode.superclass._init.apply(this, arguments);
render: function () {
var o = this.options, c = this._const;
this.text = BI.createWidget({
type: "bi.label",
@ -31462,6 +31508,7 @@ BI.IconTextIconNode = BI.inherit(BI.NodeButton, {
BI.IconTextIconNode.EVENT_CHANGE = "EVENT_CHANGE";
BI.shortcut("bi.icon_text_icon_node", BI.IconTextIconNode);
/***/ }),
/* 402 */
/***/ (function(module, exports) {
@ -31490,8 +31537,8 @@ BI.IconTextNode = BI.inherit(BI.NodeButton, {
textRgap: 0
});
},
_init: function () {
BI.IconTextNode.superclass._init.apply(this, arguments);
render: function () {
var o = this.options, c = this._const;
this.text = BI.createWidget({
type: "bi.label",
@ -31557,6 +31604,7 @@ BI.IconTextNode = BI.inherit(BI.NodeButton, {
BI.IconTextNode.EVENT_CHANGE = "EVENT_CHANGE";
BI.shortcut("bi.icon_text_node", BI.IconTextNode);
/***/ }),
/* 403 */
/***/ (function(module, exports) {
@ -31584,8 +31632,8 @@ BI.TextIconNode = BI.inherit(BI.NodeButton, {
textRgap: 0
});
},
_init: function () {
BI.TextIconNode.superclass._init.apply(this, arguments);
render: function () {
var o = this.options, c = this._const;
this.text = BI.createWidget({
type: "bi.label",
@ -31651,6 +31699,7 @@ BI.TextIconNode = BI.inherit(BI.NodeButton, {
BI.TextIconNode.EVENT_CHANGE = "EVENT_CHANGE";
BI.shortcut("bi.text_icon_node", BI.TextIconNode);
/***/ }),
/* 404 */
/***/ (function(module, exports) {
@ -31676,8 +31725,8 @@ BI.TextNode = BI.inherit(BI.NodeButton, {
textRgap: 0
});
},
_init: function () {
BI.TextNode.superclass._init.apply(this, arguments);
render: function () {
var o = this.options;
this.text = BI.createWidget({
type: "bi.label",
@ -31733,6 +31782,7 @@ BI.TextNode = BI.inherit(BI.NodeButton, {
BI.TextNode.EVENT_CHANGE = "EVENT_CHANGE";
BI.shortcut("bi.text_node", BI.TextNode);
/***/ }),
/* 405 */
/***/ (function(module, exports) {
@ -31765,8 +31815,7 @@ BI.Editor = BI.inherit(BI.Single, {
});
},
_init: function () {
BI.Editor.superclass._init.apply(this, arguments);
render: function () {
var self = this, o = this.options;
// 密码输入框设置autocomplete="new-password"的情况下Firefox和chrome不会自动填充密码
var autocomplete = o.autocomplete ? " autocomplete=" + o.autocomplete : "";
@ -32134,8 +32183,7 @@ BI.MultifileEditor = BI.inherit(BI.Widget, {
});
},
_init: function () {
var self = this, o = this.options;
render: function () {
BI.MultifileEditor.superclass._init.apply(this, arguments);
this.file = BI.createWidget({
type: "bi.file",
@ -32611,8 +32659,8 @@ BI.Icon = BI.inherit(BI.Single, {
baseCls: (conf.baseCls || "") + " x-icon b-font horizon-center display-block"
});
},
_init: function () {
BI.Icon.superclass._init.apply(this, arguments);
render: function () {
if (BI.isIE9Below && BI.isIE9Below()) {
this.element.addClass("hack");
}
@ -32620,6 +32668,7 @@ BI.Icon = BI.inherit(BI.Single, {
});
BI.shortcut("bi.icon", BI.Icon);
/***/ }),
/* 410 */
/***/ (function(module, exports) {
@ -32644,9 +32693,8 @@ BI.Iframe = BI.inherit(BI.Single, {
});
},
_init: function () {
render: function () {
var self = this;
BI.Iframe.superclass._init.apply(this, arguments);
this.element.on("load", function () {
self.fireEvent("EVENT_LOADED");
});
@ -32845,8 +32893,7 @@ BI.Input = BI.inherit(BI.Single, {
});
},
_init: function () {
BI.Input.superclass._init.apply(this, arguments);
render: function () {
var self = this;
var ctrlKey = false;
var keyCode = null;
@ -33168,10 +33215,6 @@ BI.ImageRadio = BI.inherit(BI.IconButton, {
});
},
_init: function () {
BI.ImageRadio.superclass._init.apply(this, arguments);
},
doClick: function () {
BI.ImageRadio.superclass.doClick.apply(this, arguments);
if(this.isValid()) {
@ -33183,6 +33226,7 @@ BI.ImageRadio.EVENT_CHANGE = BI.IconButton.EVENT_CHANGE;
BI.shortcut("bi.image_radio", BI.ImageRadio);
/***/ }),
/* 416 */
/***/ (function(module, exports) {
@ -33294,9 +33338,7 @@ BI.shortcut("bi.radio", BI.Radio);
};
},
_init: function () {
BI.AbstractLabel.superclass._init.apply(this, arguments);
render: function () {
if (this.options.textAlign === "center") {
this._createCenterEl();
} else {
@ -33689,8 +33731,7 @@ BI.IconLabel = BI.inherit(BI.Single, {
iconHeight: null
},
_init: function () {
BI.IconLabel.superclass._init.apply(this, arguments);
render: function () {
var o = this.options;
this.element.css({
textAlign: "center"
@ -33888,8 +33929,8 @@ BI.Toast = BI.inherit(BI.Tip, {
level: "success" // success或warning
});
},
_init: function () {
BI.Toast.superclass._init.apply(this, arguments);
render: function () {
var self = this, o = this.options;
this.element.css({
minWidth: this._const.minWidth / BI.pixRatio + BI.pixUnit
@ -34003,8 +34044,8 @@ BI.Tooltip = BI.inherit(BI.Tip, {
stopPropagation: false
});
},
_init: function () {
BI.Tooltip.superclass._init.apply(this, arguments);
render: function () {
var self = this, o = this.options;
this.element.addClass("tooltip-" + o.level);
var fn = function (e) {
@ -34066,6 +34107,7 @@ BI.Tooltip = BI.inherit(BI.Tip, {
BI.shortcut("bi.tooltip", BI.Tooltip);
/***/ }),
/* 426 */
/***/ (function(module, exports) {
@ -34085,10 +34127,6 @@ BI.Trigger = BI.inherit(BI.Single, {
});
},
_init: function () {
BI.Trigger.superclass._init.apply(this, arguments);
},
setKey: function () {
},
@ -34098,6 +34136,7 @@ BI.Trigger = BI.inherit(BI.Single, {
},
});
/***/ }),
/* 427 */
/***/ (function(module, exports) {
@ -39614,9 +39653,6 @@ BI.BubblePopupView = BI.inherit(BI.PopupView, {
maxWidth: 300,
minHeight: 90
});
},
_init: function () {
BI.BubblePopupView.superclass._init.apply(this, arguments);
}
});
@ -94003,9 +94039,8 @@ _.extend(BI, {
});
},
_init: function () {
render: function () {
var self = this, o = this.options;
BI.File.superclass._init.apply(this, arguments);
if (o.multiple === true) {
this.element.attr("multiple", "multiple");
}

2
dist/core.js.map vendored

File diff suppressed because one or more lines are too long

2
dist/demo.css vendored

File diff suppressed because one or more lines are too long

237
dist/demo.js vendored

@ -1,4 +1,4 @@
/*! time: 2021-9-18 9:50:56 */
/*! time: 2021-9-20 9:00:58 */
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
@ -9204,7 +9204,7 @@ module.exports = !__webpack_require__(909)(function () {
baseCls: "",
extraCls: "",
cls: "",
css: null,
css: null
// vdom: false
});
@ -9323,9 +9323,19 @@ module.exports = !__webpack_require__(909)(function () {
},
_initCurrent: function () {
var o = this.options;
if (o._baseCls || o.baseCls || o.extraCls || o.cls) {
this.element.addClass((o._baseCls || "") + " " + (o.baseCls || "") + " " + (o.extraCls || "") + " " + (o.cls || ""));
var self = this, o = this.options;
if (o._baseCls || o.baseCls || o.extraCls) {
this.element.addClass((o._baseCls || "") + " " + (o.baseCls || "") + " " + (o.extraCls || ""));
}
if (o.cls) {
if (BI.isFunction(o.cls)) {
var cls = this.__watch(o.cls, function (newValue) {
self.element.removeClass(cls).addClass(cls = newValue);
});
this.element.addClass(cls);
} else {
this.element.addClass(o.cls);
}
}
if (o.key != null) {
this.element.attr("key", o.key);
@ -9337,7 +9347,32 @@ module.exports = !__webpack_require__(909)(function () {
this.element.data(o.data);
}
if (o.css) {
this.element.css(o.css);
if (BI.isFunction(o.css)) {
var css = this.__watch(o.css, function (newValue) {
for (var k in css) {
if (!newValue[k]) {
newValue[k] = "";
}
}
self.element.css(css = newValue);
}, {
deep: true
});
this.element.css(css);
} else {
this.element.css(o.css);
}
}
},
__watch: function (getter, handler, options) {
if (Fix.Model.target) {
this._watchers = this._watchers || [];
var watcher = new Fix.Watcher(Fix.Model.target, BI.bind(getter, this), (handler && BI.bind(handler, this)) || BI.emptyFn, options);
this._watchers.push(watcher);
return watcher.value;
} else {
return getter();
}
},
@ -9390,7 +9425,7 @@ module.exports = !__webpack_require__(909)(function () {
},
_initEffects: function () {
var o = this.options;
var self = this, o = this.options;
if (o.disabled || o.invalid) {
if (this.options.disabled) {
this.setEnable(false);
@ -9399,6 +9434,23 @@ module.exports = !__webpack_require__(909)(function () {
this.setValid(false);
}
}
if (o.effect) {
if (BI.isArray(o.effect)) {
if (BI.isArray(o.effect[0])) {
BI.each(o.effect, function (i, effect) {
self.__watch(effect[0], effect[1], {
deep: true
});
});
} else {
self.__watch(o.effect[0], o.effect[1], {
deep: true
});
}
} else {
this.__watch(o.effect);
}
}
},
_initState: function () {
@ -23920,8 +23972,7 @@ BI.CollectionView = BI.inherit(BI.Widget, {
});
},
_init: function () {
BI.CollectionView.superclass._init.apply(this, arguments);
render: function () {
var self = this, o = this.options;
this.renderedCells = [];
this.renderedKeys = [];
@ -24325,8 +24376,7 @@ BI.shortcut("bi.collection_view", BI.CollectionView);
});
},
_init: function () {
BI.Combo.superclass._init.apply(this, arguments);
render: function () {
var self = this, o = this.options;
this._initCombo();
this._initPullDownAction();
@ -24885,8 +24935,7 @@ BI.Expander = BI.inherit(BI.Widget, {
});
},
_init: function () {
BI.Expander.superclass._init.apply(this, arguments);
render: function () {
var self = this, o = this.options;
this._expanded = !!o.el.open;
this._initExpander();
@ -25145,6 +25194,7 @@ BI.Expander.EVENT_AFTER_HIDEVIEW = "EVENT_AFTER_HIDEVIEW";
BI.shortcut("bi.expander", BI.Expander);
/***/ }),
/* 365 */
/***/ (function(module, exports) {
@ -25171,8 +25221,7 @@ BI.ButtonGroup = BI.inherit(BI.Widget, {
});
},
_init: function () {
BI.ButtonGroup.superclass._init.apply(this, arguments);
render: function () {
var o = this.options;
var behaviors = {};
BI.each(o.behaviors, function (key, rule) {
@ -25480,6 +25529,7 @@ BI.ButtonGroup.EVENT_CHANGE = "EVENT_CHANGE";
BI.shortcut("bi.button_group", BI.ButtonGroup);
/***/ }),
/* 366 */
/***/ (function(module, exports) {
@ -25516,8 +25566,7 @@ BI.ComboGroup = BI.inherit(BI.Widget, {
});
},
_init: function () {
BI.ComboGroup.superclass._init.apply(this, arguments);
render: function () {
this._populate(this.options.el);
},
@ -25582,6 +25631,7 @@ BI.ComboGroup.EVENT_CHANGE = "EVENT_CHANGE";
BI.shortcut("bi.combo_group", BI.ComboGroup);
/***/ }),
/* 367 */
/***/ (function(module, exports) {
@ -25762,8 +25812,7 @@ BI.Loader = BI.inherit(BI.Widget, {
}]);
},
_init: function () {
BI.Loader.superclass._init.apply(this, arguments);
render: function () {
var self = this, o = this.options;
if (o.itemsCreator === false) {
o.prev = false;
@ -26185,8 +26234,7 @@ BI.Searcher = BI.inherit(BI.Widget, {
});
},
_init: function () {
BI.Searcher.superclass._init.apply(this, arguments);
render: function () {
var self = this, o = this.options;
this.editor = BI.createWidget(o.el, {
@ -26462,6 +26510,7 @@ BI.Searcher.EVENT_AFTER_INIT = "EVENT_AFTER_INIT";
BI.shortcut("bi.searcher", BI.Searcher);
/***/ }),
/* 371 */
/***/ (function(module, exports) {
@ -26490,8 +26539,7 @@ BI.Switcher = BI.inherit(BI.Widget, {
});
},
_init: function () {
BI.Switcher.superclass._init.apply(this, arguments);
render: function () {
var self = this, o = this.options;
this._initSwitcher();
this._initPullDownAction();
@ -26759,6 +26807,7 @@ BI.Switcher.EVENT_AFTER_HIDEVIEW = "EVENT_AFTER_HIDEVIEW";
BI.shortcut("bi.switcher", BI.Switcher);
/***/ }),
/* 372 */
/***/ (function(module, exports) {
@ -26939,10 +26988,6 @@ BI.ButtonTree = BI.inherit(BI.ButtonGroup, {
});
},
_init: function () {
BI.ButtonTree.superclass._init.apply(this, arguments);
},
setNotSelectedValue: function (v) {
v = BI.isArray(v) ? v : [v];
BI.each(this.buttons, function (i, item) {
@ -27109,6 +27154,7 @@ BI.ButtonTree.EVENT_CHANGE = "EVENT_CHANGE";
BI.shortcut("bi.button_tree", BI.ButtonTree);
/***/ }),
/* 374 */
/***/ (function(module, exports) {
@ -27393,8 +27439,7 @@ BI.GridView = BI.inherit(BI.Widget, {
});
},
_init: function () {
BI.GridView.superclass._init.apply(this, arguments);
render: function () {
var self = this, o = this.options;
this.renderedCells = [];
this.renderedKeys = [];
@ -28084,8 +28129,7 @@ BI.PopupView = BI.inherit(BI.Widget, {
});
},
_init: function () {
BI.PopupView.superclass._init.apply(this, arguments);
render: function () {
var self = this, o = this.options;
var fn = function (e) {
e.stopPropagation();
@ -28270,8 +28314,7 @@ BI.SearcherView = BI.inherit(BI.Pane, {
});
},
_init: function () {
BI.SearcherView.superclass._init.apply(this, arguments);
render: function () {
var self = this, o = this.options;
this.matcher = BI.createWidget(o.matcher, {
@ -28369,6 +28412,7 @@ BI.SearcherView.EVENT_CHANGE = "EVENT_CHANGE";
BI.shortcut("bi.searcher_view", BI.SearcherView);
/***/ }),
/* 380 */
/***/ (function(module, exports) {
@ -28897,8 +28941,8 @@ BI.Pager = BI.inherit(BI.Widget, {
hasNext: BI.emptyFn // pages不可用时有效
});
},
_init: function () {
BI.Pager.superclass._init.apply(this, arguments);
render: function () {
var self = this;
this.currPage = BI.result(this.options, "curr");
// 翻页太灵敏
@ -29145,6 +29189,7 @@ BI.Pager.EVENT_CHANGE = "EVENT_CHANGE";
BI.Pager.EVENT_AFTER_POPULATE = "EVENT_AFTER_POPULATE";
BI.shortcut("bi.pager", BI.Pager);
/***/ }),
/* 384 */
/***/ (function(module, exports) {
@ -29558,9 +29603,9 @@ BI.A = BI.inherit(BI.Text, {
tagName: "a"
});
},
_init: function () {
render: function () {
var o = this.options;
BI.A.superclass._init.apply(this, arguments);
this.element.attr({href: o.href, target: o.target});
if (o.el) {
BI.createWidget(o.el, {
@ -29572,6 +29617,7 @@ BI.A = BI.inherit(BI.Text, {
BI.shortcut("bi.a", BI.A);
/***/ }),
/* 387 */
/***/ (function(module, exports) {
@ -29590,8 +29636,8 @@ BI.LoadingBar = BI.inherit(BI.Single, {
handler: BI.emptyFn
});
},
_init: function () {
BI.LoadingBar.superclass._init.apply(this, arguments);
render: function () {
var self = this;
this.loaded = BI.createWidget({
type: "bi.text_button",
@ -29657,6 +29703,7 @@ BI.LoadingBar = BI.inherit(BI.Single, {
BI.shortcut("bi.loading_bar", BI.LoadingBar);
/***/ }),
/* 388 */
/***/ (function(module, exports) {
@ -30157,8 +30204,7 @@ BI.IconButton = BI.inherit(BI.BasicButton, {
});
},
_init: function () {
BI.IconButton.superclass._init.apply(this, arguments);
render: function () {
var o = this.options;
this.element.css({
textAlign: "center"
@ -30218,8 +30264,7 @@ BI.ImageButton = BI.inherit(BI.BasicButton, {
});
},
_init: function () {
BI.ImageButton.superclass._init.apply(this, arguments);
render: function () {
var o = this.options;
this.image = BI.createWidget({
type: "bi.img",
@ -30288,6 +30333,7 @@ BI.ImageButton = BI.inherit(BI.BasicButton, {
BI.ImageButton.EVENT_CHANGE = "EVENT_CHANGE";
BI.shortcut("bi.image_button", BI.ImageButton);
/***/ }),
/* 392 */
/***/ (function(module, exports) {
@ -30333,8 +30379,7 @@ BI.Button = BI.inherit(BI.BasicButton, {
});
},
_init: function () {
BI.Button.superclass._init.apply(this, arguments);
render: function () {
var o = this.options, self = this;
if (BI.isKey(o.iconCls)) {
this.icon = BI.createWidget({
@ -30474,8 +30519,7 @@ BI.TextButton = BI.inherit(BI.BasicButton, {
});
},
_init: function () {
BI.TextButton.superclass._init.apply(this, arguments);
render: function () {
var o = this.options;
this.text = BI.createWidget({
type: "bi.label",
@ -30541,6 +30585,7 @@ BI.TextButton = BI.inherit(BI.BasicButton, {
BI.TextButton.EVENT_CHANGE = "EVENT_CHANGE";
BI.shortcut("bi.text_button", BI.TextButton);
/***/ }),
/* 394 */
/***/ (function(module, exports) {
@ -30572,8 +30617,8 @@ BI.BlankIconIconTextItem = BI.inherit(BI.BasicButton, {
textRgap: 0
});
},
_init: function () {
BI.BlankIconIconTextItem.superclass._init.apply(this, arguments);
render: function () {
var o = this.options, c = this._const;
var blank = BI.createWidget({
type: "bi.layout",
@ -30698,8 +30743,8 @@ BI.BlankIconTextIconItem = BI.inherit(BI.BasicButton, {
textRgap: 0
});
},
_init: function () {
BI.BlankIconTextIconItem.superclass._init.apply(this, arguments);
render: function () {
var o = this.options, c = this._const;
this.text = BI.createWidget({
type: "bi.label",
@ -30828,8 +30873,8 @@ BI.BlankIconTextItem = BI.inherit(BI.BasicButton, {
textRgap: 0
});
},
_init: function () {
BI.BlankIconTextItem.superclass._init.apply(this, arguments);
render: function () {
var o = this.options, c = this._const;
var blank = BI.createWidget({
type: "bi.layout",
@ -30940,8 +30985,8 @@ BI.IconTextIconItem = BI.inherit(BI.BasicButton, {
textRgap: 0
});
},
_init: function () {
BI.IconTextIconItem.superclass._init.apply(this, arguments);
render: function () {
var o = this.options, c = this._const;
this.text = BI.createWidget({
type: "bi.label",
@ -31069,8 +31114,8 @@ BI.IconTextItem = BI.inherit(BI.BasicButton, {
textRgap: 0
});
},
_init: function () {
BI.IconTextItem.superclass._init.apply(this, arguments);
render: function () {
var o = this.options, c = this._const;
this.text = BI.createWidget({
type: "bi.label",
@ -31176,8 +31221,8 @@ BI.TextIconItem = BI.inherit(BI.BasicButton, {
textRgap: 0
});
},
_init: function () {
BI.TextIconItem.superclass._init.apply(this, arguments);
render: function () {
var o = this.options, c = this._const;
this.text = BI.createWidget({
type: "bi.label",
@ -31279,8 +31324,8 @@ BI.TextItem = BI.inherit(BI.BasicButton, {
textRgap: 0
});
},
_init: function () {
BI.TextItem.superclass._init.apply(this, arguments);
render: function () {
var o = this.options;
this.text = BI.createWidget({
type: "bi.label",
@ -31344,6 +31389,7 @@ BI.TextItem = BI.inherit(BI.BasicButton, {
BI.TextItem.EVENT_CHANGE = "EVENT_CHANGE";
BI.shortcut("bi.text_item", BI.TextItem);
/***/ }),
/* 401 */
/***/ (function(module, exports) {
@ -31373,8 +31419,8 @@ BI.IconTextIconNode = BI.inherit(BI.NodeButton, {
textRgap: 0
});
},
_init: function () {
BI.IconTextIconNode.superclass._init.apply(this, arguments);
render: function () {
var o = this.options, c = this._const;
this.text = BI.createWidget({
type: "bi.label",
@ -31462,6 +31508,7 @@ BI.IconTextIconNode = BI.inherit(BI.NodeButton, {
BI.IconTextIconNode.EVENT_CHANGE = "EVENT_CHANGE";
BI.shortcut("bi.icon_text_icon_node", BI.IconTextIconNode);
/***/ }),
/* 402 */
/***/ (function(module, exports) {
@ -31490,8 +31537,8 @@ BI.IconTextNode = BI.inherit(BI.NodeButton, {
textRgap: 0
});
},
_init: function () {
BI.IconTextNode.superclass._init.apply(this, arguments);
render: function () {
var o = this.options, c = this._const;
this.text = BI.createWidget({
type: "bi.label",
@ -31557,6 +31604,7 @@ BI.IconTextNode = BI.inherit(BI.NodeButton, {
BI.IconTextNode.EVENT_CHANGE = "EVENT_CHANGE";
BI.shortcut("bi.icon_text_node", BI.IconTextNode);
/***/ }),
/* 403 */
/***/ (function(module, exports) {
@ -31584,8 +31632,8 @@ BI.TextIconNode = BI.inherit(BI.NodeButton, {
textRgap: 0
});
},
_init: function () {
BI.TextIconNode.superclass._init.apply(this, arguments);
render: function () {
var o = this.options, c = this._const;
this.text = BI.createWidget({
type: "bi.label",
@ -31651,6 +31699,7 @@ BI.TextIconNode = BI.inherit(BI.NodeButton, {
BI.TextIconNode.EVENT_CHANGE = "EVENT_CHANGE";
BI.shortcut("bi.text_icon_node", BI.TextIconNode);
/***/ }),
/* 404 */
/***/ (function(module, exports) {
@ -31676,8 +31725,8 @@ BI.TextNode = BI.inherit(BI.NodeButton, {
textRgap: 0
});
},
_init: function () {
BI.TextNode.superclass._init.apply(this, arguments);
render: function () {
var o = this.options;
this.text = BI.createWidget({
type: "bi.label",
@ -31733,6 +31782,7 @@ BI.TextNode = BI.inherit(BI.NodeButton, {
BI.TextNode.EVENT_CHANGE = "EVENT_CHANGE";
BI.shortcut("bi.text_node", BI.TextNode);
/***/ }),
/* 405 */
/***/ (function(module, exports) {
@ -31765,8 +31815,7 @@ BI.Editor = BI.inherit(BI.Single, {
});
},
_init: function () {
BI.Editor.superclass._init.apply(this, arguments);
render: function () {
var self = this, o = this.options;
// 密码输入框设置autocomplete="new-password"的情况下Firefox和chrome不会自动填充密码
var autocomplete = o.autocomplete ? " autocomplete=" + o.autocomplete : "";
@ -32134,8 +32183,7 @@ BI.MultifileEditor = BI.inherit(BI.Widget, {
});
},
_init: function () {
var self = this, o = this.options;
render: function () {
BI.MultifileEditor.superclass._init.apply(this, arguments);
this.file = BI.createWidget({
type: "bi.file",
@ -32611,8 +32659,8 @@ BI.Icon = BI.inherit(BI.Single, {
baseCls: (conf.baseCls || "") + " x-icon b-font horizon-center display-block"
});
},
_init: function () {
BI.Icon.superclass._init.apply(this, arguments);
render: function () {
if (BI.isIE9Below && BI.isIE9Below()) {
this.element.addClass("hack");
}
@ -32620,6 +32668,7 @@ BI.Icon = BI.inherit(BI.Single, {
});
BI.shortcut("bi.icon", BI.Icon);
/***/ }),
/* 410 */
/***/ (function(module, exports) {
@ -32644,9 +32693,8 @@ BI.Iframe = BI.inherit(BI.Single, {
});
},
_init: function () {
render: function () {
var self = this;
BI.Iframe.superclass._init.apply(this, arguments);
this.element.on("load", function () {
self.fireEvent("EVENT_LOADED");
});
@ -32845,8 +32893,7 @@ BI.Input = BI.inherit(BI.Single, {
});
},
_init: function () {
BI.Input.superclass._init.apply(this, arguments);
render: function () {
var self = this;
var ctrlKey = false;
var keyCode = null;
@ -33168,10 +33215,6 @@ BI.ImageRadio = BI.inherit(BI.IconButton, {
});
},
_init: function () {
BI.ImageRadio.superclass._init.apply(this, arguments);
},
doClick: function () {
BI.ImageRadio.superclass.doClick.apply(this, arguments);
if(this.isValid()) {
@ -33183,6 +33226,7 @@ BI.ImageRadio.EVENT_CHANGE = BI.IconButton.EVENT_CHANGE;
BI.shortcut("bi.image_radio", BI.ImageRadio);
/***/ }),
/* 416 */
/***/ (function(module, exports) {
@ -33294,9 +33338,7 @@ BI.shortcut("bi.radio", BI.Radio);
};
},
_init: function () {
BI.AbstractLabel.superclass._init.apply(this, arguments);
render: function () {
if (this.options.textAlign === "center") {
this._createCenterEl();
} else {
@ -33689,8 +33731,7 @@ BI.IconLabel = BI.inherit(BI.Single, {
iconHeight: null
},
_init: function () {
BI.IconLabel.superclass._init.apply(this, arguments);
render: function () {
var o = this.options;
this.element.css({
textAlign: "center"
@ -33888,8 +33929,8 @@ BI.Toast = BI.inherit(BI.Tip, {
level: "success" // success或warning
});
},
_init: function () {
BI.Toast.superclass._init.apply(this, arguments);
render: function () {
var self = this, o = this.options;
this.element.css({
minWidth: this._const.minWidth / BI.pixRatio + BI.pixUnit
@ -34003,8 +34044,8 @@ BI.Tooltip = BI.inherit(BI.Tip, {
stopPropagation: false
});
},
_init: function () {
BI.Tooltip.superclass._init.apply(this, arguments);
render: function () {
var self = this, o = this.options;
this.element.addClass("tooltip-" + o.level);
var fn = function (e) {
@ -34066,6 +34107,7 @@ BI.Tooltip = BI.inherit(BI.Tip, {
BI.shortcut("bi.tooltip", BI.Tooltip);
/***/ }),
/* 426 */
/***/ (function(module, exports) {
@ -34085,10 +34127,6 @@ BI.Trigger = BI.inherit(BI.Single, {
});
},
_init: function () {
BI.Trigger.superclass._init.apply(this, arguments);
},
setKey: function () {
},
@ -34098,6 +34136,7 @@ BI.Trigger = BI.inherit(BI.Single, {
},
});
/***/ }),
/* 427 */
/***/ (function(module, exports) {
@ -39614,9 +39653,6 @@ BI.BubblePopupView = BI.inherit(BI.PopupView, {
maxWidth: 300,
minHeight: 90
});
},
_init: function () {
BI.BubblePopupView.superclass._init.apply(this, arguments);
}
});
@ -94003,9 +94039,8 @@ _.extend(BI, {
});
},
_init: function () {
render: function () {
var self = this, o = this.options;
BI.File.superclass._init.apply(this, arguments);
if (o.multiple === true) {
this.element.attr("multiple", "multiple");
}

2
dist/demo.js.map vendored

File diff suppressed because one or more lines are too long

2
dist/fineui.css vendored

File diff suppressed because one or more lines are too long

4
dist/fineui.ie.min.js vendored

File diff suppressed because one or more lines are too long

2
dist/fineui.ie.min.js.map vendored

File diff suppressed because one or more lines are too long

237
dist/fineui.js vendored

@ -1,4 +1,4 @@
/*! time: 2021-9-18 9:50:56 */
/*! time: 2021-9-20 9:00:58 */
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
@ -9204,7 +9204,7 @@ module.exports = !__webpack_require__(909)(function () {
baseCls: "",
extraCls: "",
cls: "",
css: null,
css: null
// vdom: false
});
@ -9323,9 +9323,19 @@ module.exports = !__webpack_require__(909)(function () {
},
_initCurrent: function () {
var o = this.options;
if (o._baseCls || o.baseCls || o.extraCls || o.cls) {
this.element.addClass((o._baseCls || "") + " " + (o.baseCls || "") + " " + (o.extraCls || "") + " " + (o.cls || ""));
var self = this, o = this.options;
if (o._baseCls || o.baseCls || o.extraCls) {
this.element.addClass((o._baseCls || "") + " " + (o.baseCls || "") + " " + (o.extraCls || ""));
}
if (o.cls) {
if (BI.isFunction(o.cls)) {
var cls = this.__watch(o.cls, function (newValue) {
self.element.removeClass(cls).addClass(cls = newValue);
});
this.element.addClass(cls);
} else {
this.element.addClass(o.cls);
}
}
if (o.key != null) {
this.element.attr("key", o.key);
@ -9337,7 +9347,32 @@ module.exports = !__webpack_require__(909)(function () {
this.element.data(o.data);
}
if (o.css) {
this.element.css(o.css);
if (BI.isFunction(o.css)) {
var css = this.__watch(o.css, function (newValue) {
for (var k in css) {
if (!newValue[k]) {
newValue[k] = "";
}
}
self.element.css(css = newValue);
}, {
deep: true
});
this.element.css(css);
} else {
this.element.css(o.css);
}
}
},
__watch: function (getter, handler, options) {
if (Fix.Model.target) {
this._watchers = this._watchers || [];
var watcher = new Fix.Watcher(Fix.Model.target, BI.bind(getter, this), (handler && BI.bind(handler, this)) || BI.emptyFn, options);
this._watchers.push(watcher);
return watcher.value;
} else {
return getter();
}
},
@ -9390,7 +9425,7 @@ module.exports = !__webpack_require__(909)(function () {
},
_initEffects: function () {
var o = this.options;
var self = this, o = this.options;
if (o.disabled || o.invalid) {
if (this.options.disabled) {
this.setEnable(false);
@ -9399,6 +9434,23 @@ module.exports = !__webpack_require__(909)(function () {
this.setValid(false);
}
}
if (o.effect) {
if (BI.isArray(o.effect)) {
if (BI.isArray(o.effect[0])) {
BI.each(o.effect, function (i, effect) {
self.__watch(effect[0], effect[1], {
deep: true
});
});
} else {
self.__watch(o.effect[0], o.effect[1], {
deep: true
});
}
} else {
this.__watch(o.effect);
}
}
},
_initState: function () {
@ -23920,8 +23972,7 @@ BI.CollectionView = BI.inherit(BI.Widget, {
});
},
_init: function () {
BI.CollectionView.superclass._init.apply(this, arguments);
render: function () {
var self = this, o = this.options;
this.renderedCells = [];
this.renderedKeys = [];
@ -24325,8 +24376,7 @@ BI.shortcut("bi.collection_view", BI.CollectionView);
});
},
_init: function () {
BI.Combo.superclass._init.apply(this, arguments);
render: function () {
var self = this, o = this.options;
this._initCombo();
this._initPullDownAction();
@ -24885,8 +24935,7 @@ BI.Expander = BI.inherit(BI.Widget, {
});
},
_init: function () {
BI.Expander.superclass._init.apply(this, arguments);
render: function () {
var self = this, o = this.options;
this._expanded = !!o.el.open;
this._initExpander();
@ -25145,6 +25194,7 @@ BI.Expander.EVENT_AFTER_HIDEVIEW = "EVENT_AFTER_HIDEVIEW";
BI.shortcut("bi.expander", BI.Expander);
/***/ }),
/* 365 */
/***/ (function(module, exports) {
@ -25171,8 +25221,7 @@ BI.ButtonGroup = BI.inherit(BI.Widget, {
});
},
_init: function () {
BI.ButtonGroup.superclass._init.apply(this, arguments);
render: function () {
var o = this.options;
var behaviors = {};
BI.each(o.behaviors, function (key, rule) {
@ -25480,6 +25529,7 @@ BI.ButtonGroup.EVENT_CHANGE = "EVENT_CHANGE";
BI.shortcut("bi.button_group", BI.ButtonGroup);
/***/ }),
/* 366 */
/***/ (function(module, exports) {
@ -25516,8 +25566,7 @@ BI.ComboGroup = BI.inherit(BI.Widget, {
});
},
_init: function () {
BI.ComboGroup.superclass._init.apply(this, arguments);
render: function () {
this._populate(this.options.el);
},
@ -25582,6 +25631,7 @@ BI.ComboGroup.EVENT_CHANGE = "EVENT_CHANGE";
BI.shortcut("bi.combo_group", BI.ComboGroup);
/***/ }),
/* 367 */
/***/ (function(module, exports) {
@ -25762,8 +25812,7 @@ BI.Loader = BI.inherit(BI.Widget, {
}]);
},
_init: function () {
BI.Loader.superclass._init.apply(this, arguments);
render: function () {
var self = this, o = this.options;
if (o.itemsCreator === false) {
o.prev = false;
@ -26185,8 +26234,7 @@ BI.Searcher = BI.inherit(BI.Widget, {
});
},
_init: function () {
BI.Searcher.superclass._init.apply(this, arguments);
render: function () {
var self = this, o = this.options;
this.editor = BI.createWidget(o.el, {
@ -26462,6 +26510,7 @@ BI.Searcher.EVENT_AFTER_INIT = "EVENT_AFTER_INIT";
BI.shortcut("bi.searcher", BI.Searcher);
/***/ }),
/* 371 */
/***/ (function(module, exports) {
@ -26490,8 +26539,7 @@ BI.Switcher = BI.inherit(BI.Widget, {
});
},
_init: function () {
BI.Switcher.superclass._init.apply(this, arguments);
render: function () {
var self = this, o = this.options;
this._initSwitcher();
this._initPullDownAction();
@ -26759,6 +26807,7 @@ BI.Switcher.EVENT_AFTER_HIDEVIEW = "EVENT_AFTER_HIDEVIEW";
BI.shortcut("bi.switcher", BI.Switcher);
/***/ }),
/* 372 */
/***/ (function(module, exports) {
@ -26939,10 +26988,6 @@ BI.ButtonTree = BI.inherit(BI.ButtonGroup, {
});
},
_init: function () {
BI.ButtonTree.superclass._init.apply(this, arguments);
},
setNotSelectedValue: function (v) {
v = BI.isArray(v) ? v : [v];
BI.each(this.buttons, function (i, item) {
@ -27109,6 +27154,7 @@ BI.ButtonTree.EVENT_CHANGE = "EVENT_CHANGE";
BI.shortcut("bi.button_tree", BI.ButtonTree);
/***/ }),
/* 374 */
/***/ (function(module, exports) {
@ -27393,8 +27439,7 @@ BI.GridView = BI.inherit(BI.Widget, {
});
},
_init: function () {
BI.GridView.superclass._init.apply(this, arguments);
render: function () {
var self = this, o = this.options;
this.renderedCells = [];
this.renderedKeys = [];
@ -28084,8 +28129,7 @@ BI.PopupView = BI.inherit(BI.Widget, {
});
},
_init: function () {
BI.PopupView.superclass._init.apply(this, arguments);
render: function () {
var self = this, o = this.options;
var fn = function (e) {
e.stopPropagation();
@ -28270,8 +28314,7 @@ BI.SearcherView = BI.inherit(BI.Pane, {
});
},
_init: function () {
BI.SearcherView.superclass._init.apply(this, arguments);
render: function () {
var self = this, o = this.options;
this.matcher = BI.createWidget(o.matcher, {
@ -28369,6 +28412,7 @@ BI.SearcherView.EVENT_CHANGE = "EVENT_CHANGE";
BI.shortcut("bi.searcher_view", BI.SearcherView);
/***/ }),
/* 380 */
/***/ (function(module, exports) {
@ -28897,8 +28941,8 @@ BI.Pager = BI.inherit(BI.Widget, {
hasNext: BI.emptyFn // pages不可用时有效
});
},
_init: function () {
BI.Pager.superclass._init.apply(this, arguments);
render: function () {
var self = this;
this.currPage = BI.result(this.options, "curr");
// 翻页太灵敏
@ -29145,6 +29189,7 @@ BI.Pager.EVENT_CHANGE = "EVENT_CHANGE";
BI.Pager.EVENT_AFTER_POPULATE = "EVENT_AFTER_POPULATE";
BI.shortcut("bi.pager", BI.Pager);
/***/ }),
/* 384 */
/***/ (function(module, exports) {
@ -29558,9 +29603,9 @@ BI.A = BI.inherit(BI.Text, {
tagName: "a"
});
},
_init: function () {
render: function () {
var o = this.options;
BI.A.superclass._init.apply(this, arguments);
this.element.attr({href: o.href, target: o.target});
if (o.el) {
BI.createWidget(o.el, {
@ -29572,6 +29617,7 @@ BI.A = BI.inherit(BI.Text, {
BI.shortcut("bi.a", BI.A);
/***/ }),
/* 387 */
/***/ (function(module, exports) {
@ -29590,8 +29636,8 @@ BI.LoadingBar = BI.inherit(BI.Single, {
handler: BI.emptyFn
});
},
_init: function () {
BI.LoadingBar.superclass._init.apply(this, arguments);
render: function () {
var self = this;
this.loaded = BI.createWidget({
type: "bi.text_button",
@ -29657,6 +29703,7 @@ BI.LoadingBar = BI.inherit(BI.Single, {
BI.shortcut("bi.loading_bar", BI.LoadingBar);
/***/ }),
/* 388 */
/***/ (function(module, exports) {
@ -30157,8 +30204,7 @@ BI.IconButton = BI.inherit(BI.BasicButton, {
});
},
_init: function () {
BI.IconButton.superclass._init.apply(this, arguments);
render: function () {
var o = this.options;
this.element.css({
textAlign: "center"
@ -30218,8 +30264,7 @@ BI.ImageButton = BI.inherit(BI.BasicButton, {
});
},
_init: function () {
BI.ImageButton.superclass._init.apply(this, arguments);
render: function () {
var o = this.options;
this.image = BI.createWidget({
type: "bi.img",
@ -30288,6 +30333,7 @@ BI.ImageButton = BI.inherit(BI.BasicButton, {
BI.ImageButton.EVENT_CHANGE = "EVENT_CHANGE";
BI.shortcut("bi.image_button", BI.ImageButton);
/***/ }),
/* 392 */
/***/ (function(module, exports) {
@ -30333,8 +30379,7 @@ BI.Button = BI.inherit(BI.BasicButton, {
});
},
_init: function () {
BI.Button.superclass._init.apply(this, arguments);
render: function () {
var o = this.options, self = this;
if (BI.isKey(o.iconCls)) {
this.icon = BI.createWidget({
@ -30474,8 +30519,7 @@ BI.TextButton = BI.inherit(BI.BasicButton, {
});
},
_init: function () {
BI.TextButton.superclass._init.apply(this, arguments);
render: function () {
var o = this.options;
this.text = BI.createWidget({
type: "bi.label",
@ -30541,6 +30585,7 @@ BI.TextButton = BI.inherit(BI.BasicButton, {
BI.TextButton.EVENT_CHANGE = "EVENT_CHANGE";
BI.shortcut("bi.text_button", BI.TextButton);
/***/ }),
/* 394 */
/***/ (function(module, exports) {
@ -30572,8 +30617,8 @@ BI.BlankIconIconTextItem = BI.inherit(BI.BasicButton, {
textRgap: 0
});
},
_init: function () {
BI.BlankIconIconTextItem.superclass._init.apply(this, arguments);
render: function () {
var o = this.options, c = this._const;
var blank = BI.createWidget({
type: "bi.layout",
@ -30698,8 +30743,8 @@ BI.BlankIconTextIconItem = BI.inherit(BI.BasicButton, {
textRgap: 0
});
},
_init: function () {
BI.BlankIconTextIconItem.superclass._init.apply(this, arguments);
render: function () {
var o = this.options, c = this._const;
this.text = BI.createWidget({
type: "bi.label",
@ -30828,8 +30873,8 @@ BI.BlankIconTextItem = BI.inherit(BI.BasicButton, {
textRgap: 0
});
},
_init: function () {
BI.BlankIconTextItem.superclass._init.apply(this, arguments);
render: function () {
var o = this.options, c = this._const;
var blank = BI.createWidget({
type: "bi.layout",
@ -30940,8 +30985,8 @@ BI.IconTextIconItem = BI.inherit(BI.BasicButton, {
textRgap: 0
});
},
_init: function () {
BI.IconTextIconItem.superclass._init.apply(this, arguments);
render: function () {
var o = this.options, c = this._const;
this.text = BI.createWidget({
type: "bi.label",
@ -31069,8 +31114,8 @@ BI.IconTextItem = BI.inherit(BI.BasicButton, {
textRgap: 0
});
},
_init: function () {
BI.IconTextItem.superclass._init.apply(this, arguments);
render: function () {
var o = this.options, c = this._const;
this.text = BI.createWidget({
type: "bi.label",
@ -31176,8 +31221,8 @@ BI.TextIconItem = BI.inherit(BI.BasicButton, {
textRgap: 0
});
},
_init: function () {
BI.TextIconItem.superclass._init.apply(this, arguments);
render: function () {
var o = this.options, c = this._const;
this.text = BI.createWidget({
type: "bi.label",
@ -31279,8 +31324,8 @@ BI.TextItem = BI.inherit(BI.BasicButton, {
textRgap: 0
});
},
_init: function () {
BI.TextItem.superclass._init.apply(this, arguments);
render: function () {
var o = this.options;
this.text = BI.createWidget({
type: "bi.label",
@ -31344,6 +31389,7 @@ BI.TextItem = BI.inherit(BI.BasicButton, {
BI.TextItem.EVENT_CHANGE = "EVENT_CHANGE";
BI.shortcut("bi.text_item", BI.TextItem);
/***/ }),
/* 401 */
/***/ (function(module, exports) {
@ -31373,8 +31419,8 @@ BI.IconTextIconNode = BI.inherit(BI.NodeButton, {
textRgap: 0
});
},
_init: function () {
BI.IconTextIconNode.superclass._init.apply(this, arguments);
render: function () {
var o = this.options, c = this._const;
this.text = BI.createWidget({
type: "bi.label",
@ -31462,6 +31508,7 @@ BI.IconTextIconNode = BI.inherit(BI.NodeButton, {
BI.IconTextIconNode.EVENT_CHANGE = "EVENT_CHANGE";
BI.shortcut("bi.icon_text_icon_node", BI.IconTextIconNode);
/***/ }),
/* 402 */
/***/ (function(module, exports) {
@ -31490,8 +31537,8 @@ BI.IconTextNode = BI.inherit(BI.NodeButton, {
textRgap: 0
});
},
_init: function () {
BI.IconTextNode.superclass._init.apply(this, arguments);
render: function () {
var o = this.options, c = this._const;
this.text = BI.createWidget({
type: "bi.label",
@ -31557,6 +31604,7 @@ BI.IconTextNode = BI.inherit(BI.NodeButton, {
BI.IconTextNode.EVENT_CHANGE = "EVENT_CHANGE";
BI.shortcut("bi.icon_text_node", BI.IconTextNode);
/***/ }),
/* 403 */
/***/ (function(module, exports) {
@ -31584,8 +31632,8 @@ BI.TextIconNode = BI.inherit(BI.NodeButton, {
textRgap: 0
});
},
_init: function () {
BI.TextIconNode.superclass._init.apply(this, arguments);
render: function () {
var o = this.options, c = this._const;
this.text = BI.createWidget({
type: "bi.label",
@ -31651,6 +31699,7 @@ BI.TextIconNode = BI.inherit(BI.NodeButton, {
BI.TextIconNode.EVENT_CHANGE = "EVENT_CHANGE";
BI.shortcut("bi.text_icon_node", BI.TextIconNode);
/***/ }),
/* 404 */
/***/ (function(module, exports) {
@ -31676,8 +31725,8 @@ BI.TextNode = BI.inherit(BI.NodeButton, {
textRgap: 0
});
},
_init: function () {
BI.TextNode.superclass._init.apply(this, arguments);
render: function () {
var o = this.options;
this.text = BI.createWidget({
type: "bi.label",
@ -31733,6 +31782,7 @@ BI.TextNode = BI.inherit(BI.NodeButton, {
BI.TextNode.EVENT_CHANGE = "EVENT_CHANGE";
BI.shortcut("bi.text_node", BI.TextNode);
/***/ }),
/* 405 */
/***/ (function(module, exports) {
@ -31765,8 +31815,7 @@ BI.Editor = BI.inherit(BI.Single, {
});
},
_init: function () {
BI.Editor.superclass._init.apply(this, arguments);
render: function () {
var self = this, o = this.options;
// 密码输入框设置autocomplete="new-password"的情况下Firefox和chrome不会自动填充密码
var autocomplete = o.autocomplete ? " autocomplete=" + o.autocomplete : "";
@ -32134,8 +32183,7 @@ BI.MultifileEditor = BI.inherit(BI.Widget, {
});
},
_init: function () {
var self = this, o = this.options;
render: function () {
BI.MultifileEditor.superclass._init.apply(this, arguments);
this.file = BI.createWidget({
type: "bi.file",
@ -32611,8 +32659,8 @@ BI.Icon = BI.inherit(BI.Single, {
baseCls: (conf.baseCls || "") + " x-icon b-font horizon-center display-block"
});
},
_init: function () {
BI.Icon.superclass._init.apply(this, arguments);
render: function () {
if (BI.isIE9Below && BI.isIE9Below()) {
this.element.addClass("hack");
}
@ -32620,6 +32668,7 @@ BI.Icon = BI.inherit(BI.Single, {
});
BI.shortcut("bi.icon", BI.Icon);
/***/ }),
/* 410 */
/***/ (function(module, exports) {
@ -32644,9 +32693,8 @@ BI.Iframe = BI.inherit(BI.Single, {
});
},
_init: function () {
render: function () {
var self = this;
BI.Iframe.superclass._init.apply(this, arguments);
this.element.on("load", function () {
self.fireEvent("EVENT_LOADED");
});
@ -32845,8 +32893,7 @@ BI.Input = BI.inherit(BI.Single, {
});
},
_init: function () {
BI.Input.superclass._init.apply(this, arguments);
render: function () {
var self = this;
var ctrlKey = false;
var keyCode = null;
@ -33168,10 +33215,6 @@ BI.ImageRadio = BI.inherit(BI.IconButton, {
});
},
_init: function () {
BI.ImageRadio.superclass._init.apply(this, arguments);
},
doClick: function () {
BI.ImageRadio.superclass.doClick.apply(this, arguments);
if(this.isValid()) {
@ -33183,6 +33226,7 @@ BI.ImageRadio.EVENT_CHANGE = BI.IconButton.EVENT_CHANGE;
BI.shortcut("bi.image_radio", BI.ImageRadio);
/***/ }),
/* 416 */
/***/ (function(module, exports) {
@ -33294,9 +33338,7 @@ BI.shortcut("bi.radio", BI.Radio);
};
},
_init: function () {
BI.AbstractLabel.superclass._init.apply(this, arguments);
render: function () {
if (this.options.textAlign === "center") {
this._createCenterEl();
} else {
@ -33689,8 +33731,7 @@ BI.IconLabel = BI.inherit(BI.Single, {
iconHeight: null
},
_init: function () {
BI.IconLabel.superclass._init.apply(this, arguments);
render: function () {
var o = this.options;
this.element.css({
textAlign: "center"
@ -33888,8 +33929,8 @@ BI.Toast = BI.inherit(BI.Tip, {
level: "success" // success或warning
});
},
_init: function () {
BI.Toast.superclass._init.apply(this, arguments);
render: function () {
var self = this, o = this.options;
this.element.css({
minWidth: this._const.minWidth / BI.pixRatio + BI.pixUnit
@ -34003,8 +34044,8 @@ BI.Tooltip = BI.inherit(BI.Tip, {
stopPropagation: false
});
},
_init: function () {
BI.Tooltip.superclass._init.apply(this, arguments);
render: function () {
var self = this, o = this.options;
this.element.addClass("tooltip-" + o.level);
var fn = function (e) {
@ -34066,6 +34107,7 @@ BI.Tooltip = BI.inherit(BI.Tip, {
BI.shortcut("bi.tooltip", BI.Tooltip);
/***/ }),
/* 426 */
/***/ (function(module, exports) {
@ -34085,10 +34127,6 @@ BI.Trigger = BI.inherit(BI.Single, {
});
},
_init: function () {
BI.Trigger.superclass._init.apply(this, arguments);
},
setKey: function () {
},
@ -34098,6 +34136,7 @@ BI.Trigger = BI.inherit(BI.Single, {
},
});
/***/ }),
/* 427 */
/***/ (function(module, exports) {
@ -39614,9 +39653,6 @@ BI.BubblePopupView = BI.inherit(BI.PopupView, {
maxWidth: 300,
minHeight: 90
});
},
_init: function () {
BI.BubblePopupView.superclass._init.apply(this, arguments);
}
});
@ -94003,9 +94039,8 @@ _.extend(BI, {
});
},
_init: function () {
render: function () {
var self = this, o = this.options;
BI.File.superclass._init.apply(this, arguments);
if (o.multiple === true) {
this.element.attr("multiple", "multiple");
}

2
dist/fineui.js.map vendored

File diff suppressed because one or more lines are too long

2
dist/fineui.min.css vendored

File diff suppressed because one or more lines are too long

4
dist/fineui.min.js vendored

File diff suppressed because one or more lines are too long

2
dist/fineui.min.js.map vendored

File diff suppressed because one or more lines are too long

2
dist/fineui.modern.min.css vendored

File diff suppressed because one or more lines are too long

2
dist/fineui.modern.min.js vendored

@ -1,2 +1,2 @@
/*! time: 2021-9-18 9:50:56 */
/*! time: 2021-9-20 9:00:58 */
!function(e){var n={};function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var o in e)t.d(r,o,function(n){return e[n]}.bind(null,o));return r},t.n=function(e){var n=e&&e.__esModule?function(){return e["default"]}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="",t(t.s=1441)}({1192:function(e,n,t){},1441:function(e,n,t){t(1192),t(1442),t(1443),t(1444),t(1445),e.exports=t(1446)},1442:function(e,n,t){},1443:function(e,n,t){},1444:function(e,n,t){},1445:function(e,n,t){},1446:function(e,n,t){}});

2
dist/fineui.proxy.css vendored

File diff suppressed because one or more lines are too long

237
dist/fineui.proxy.js vendored

@ -1,4 +1,4 @@
/*! time: 2021-9-18 9:50:56 */
/*! time: 2021-9-20 9:00:58 */
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
@ -6665,7 +6665,7 @@ BI.Req = {
baseCls: "",
extraCls: "",
cls: "",
css: null,
css: null
// vdom: false
});
@ -6784,9 +6784,19 @@ BI.Req = {
},
_initCurrent: function () {
var o = this.options;
if (o._baseCls || o.baseCls || o.extraCls || o.cls) {
this.element.addClass((o._baseCls || "") + " " + (o.baseCls || "") + " " + (o.extraCls || "") + " " + (o.cls || ""));
var self = this, o = this.options;
if (o._baseCls || o.baseCls || o.extraCls) {
this.element.addClass((o._baseCls || "") + " " + (o.baseCls || "") + " " + (o.extraCls || ""));
}
if (o.cls) {
if (BI.isFunction(o.cls)) {
var cls = this.__watch(o.cls, function (newValue) {
self.element.removeClass(cls).addClass(cls = newValue);
});
this.element.addClass(cls);
} else {
this.element.addClass(o.cls);
}
}
if (o.key != null) {
this.element.attr("key", o.key);
@ -6798,7 +6808,32 @@ BI.Req = {
this.element.data(o.data);
}
if (o.css) {
this.element.css(o.css);
if (BI.isFunction(o.css)) {
var css = this.__watch(o.css, function (newValue) {
for (var k in css) {
if (!newValue[k]) {
newValue[k] = "";
}
}
self.element.css(css = newValue);
}, {
deep: true
});
this.element.css(css);
} else {
this.element.css(o.css);
}
}
},
__watch: function (getter, handler, options) {
if (Fix.Model.target) {
this._watchers = this._watchers || [];
var watcher = new Fix.Watcher(Fix.Model.target, BI.bind(getter, this), (handler && BI.bind(handler, this)) || BI.emptyFn, options);
this._watchers.push(watcher);
return watcher.value;
} else {
return getter();
}
},
@ -6851,7 +6886,7 @@ BI.Req = {
},
_initEffects: function () {
var o = this.options;
var self = this, o = this.options;
if (o.disabled || o.invalid) {
if (this.options.disabled) {
this.setEnable(false);
@ -6860,6 +6895,23 @@ BI.Req = {
this.setValid(false);
}
}
if (o.effect) {
if (BI.isArray(o.effect)) {
if (BI.isArray(o.effect[0])) {
BI.each(o.effect, function (i, effect) {
self.__watch(effect[0], effect[1], {
deep: true
});
});
} else {
self.__watch(o.effect[0], o.effect[1], {
deep: true
});
}
} else {
this.__watch(o.effect);
}
}
},
_initState: function () {
@ -21381,8 +21433,7 @@ BI.CollectionView = BI.inherit(BI.Widget, {
});
},
_init: function () {
BI.CollectionView.superclass._init.apply(this, arguments);
render: function () {
var self = this, o = this.options;
this.renderedCells = [];
this.renderedKeys = [];
@ -21786,8 +21837,7 @@ BI.shortcut("bi.collection_view", BI.CollectionView);
});
},
_init: function () {
BI.Combo.superclass._init.apply(this, arguments);
render: function () {
var self = this, o = this.options;
this._initCombo();
this._initPullDownAction();
@ -22346,8 +22396,7 @@ BI.Expander = BI.inherit(BI.Widget, {
});
},
_init: function () {
BI.Expander.superclass._init.apply(this, arguments);
render: function () {
var self = this, o = this.options;
this._expanded = !!o.el.open;
this._initExpander();
@ -22606,6 +22655,7 @@ BI.Expander.EVENT_AFTER_HIDEVIEW = "EVENT_AFTER_HIDEVIEW";
BI.shortcut("bi.expander", BI.Expander);
/***/ }),
/* 365 */
/***/ (function(module, exports) {
@ -22632,8 +22682,7 @@ BI.ButtonGroup = BI.inherit(BI.Widget, {
});
},
_init: function () {
BI.ButtonGroup.superclass._init.apply(this, arguments);
render: function () {
var o = this.options;
var behaviors = {};
BI.each(o.behaviors, function (key, rule) {
@ -22941,6 +22990,7 @@ BI.ButtonGroup.EVENT_CHANGE = "EVENT_CHANGE";
BI.shortcut("bi.button_group", BI.ButtonGroup);
/***/ }),
/* 366 */
/***/ (function(module, exports) {
@ -22977,8 +23027,7 @@ BI.ComboGroup = BI.inherit(BI.Widget, {
});
},
_init: function () {
BI.ComboGroup.superclass._init.apply(this, arguments);
render: function () {
this._populate(this.options.el);
},
@ -23043,6 +23092,7 @@ BI.ComboGroup.EVENT_CHANGE = "EVENT_CHANGE";
BI.shortcut("bi.combo_group", BI.ComboGroup);
/***/ }),
/* 367 */
/***/ (function(module, exports) {
@ -23223,8 +23273,7 @@ BI.Loader = BI.inherit(BI.Widget, {
}]);
},
_init: function () {
BI.Loader.superclass._init.apply(this, arguments);
render: function () {
var self = this, o = this.options;
if (o.itemsCreator === false) {
o.prev = false;
@ -23646,8 +23695,7 @@ BI.Searcher = BI.inherit(BI.Widget, {
});
},
_init: function () {
BI.Searcher.superclass._init.apply(this, arguments);
render: function () {
var self = this, o = this.options;
this.editor = BI.createWidget(o.el, {
@ -23923,6 +23971,7 @@ BI.Searcher.EVENT_AFTER_INIT = "EVENT_AFTER_INIT";
BI.shortcut("bi.searcher", BI.Searcher);
/***/ }),
/* 371 */
/***/ (function(module, exports) {
@ -23951,8 +24000,7 @@ BI.Switcher = BI.inherit(BI.Widget, {
});
},
_init: function () {
BI.Switcher.superclass._init.apply(this, arguments);
render: function () {
var self = this, o = this.options;
this._initSwitcher();
this._initPullDownAction();
@ -24220,6 +24268,7 @@ BI.Switcher.EVENT_AFTER_HIDEVIEW = "EVENT_AFTER_HIDEVIEW";
BI.shortcut("bi.switcher", BI.Switcher);
/***/ }),
/* 372 */
/***/ (function(module, exports) {
@ -24400,10 +24449,6 @@ BI.ButtonTree = BI.inherit(BI.ButtonGroup, {
});
},
_init: function () {
BI.ButtonTree.superclass._init.apply(this, arguments);
},
setNotSelectedValue: function (v) {
v = BI.isArray(v) ? v : [v];
BI.each(this.buttons, function (i, item) {
@ -24570,6 +24615,7 @@ BI.ButtonTree.EVENT_CHANGE = "EVENT_CHANGE";
BI.shortcut("bi.button_tree", BI.ButtonTree);
/***/ }),
/* 374 */
/***/ (function(module, exports) {
@ -24854,8 +24900,7 @@ BI.GridView = BI.inherit(BI.Widget, {
});
},
_init: function () {
BI.GridView.superclass._init.apply(this, arguments);
render: function () {
var self = this, o = this.options;
this.renderedCells = [];
this.renderedKeys = [];
@ -25545,8 +25590,7 @@ BI.PopupView = BI.inherit(BI.Widget, {
});
},
_init: function () {
BI.PopupView.superclass._init.apply(this, arguments);
render: function () {
var self = this, o = this.options;
var fn = function (e) {
e.stopPropagation();
@ -25731,8 +25775,7 @@ BI.SearcherView = BI.inherit(BI.Pane, {
});
},
_init: function () {
BI.SearcherView.superclass._init.apply(this, arguments);
render: function () {
var self = this, o = this.options;
this.matcher = BI.createWidget(o.matcher, {
@ -25830,6 +25873,7 @@ BI.SearcherView.EVENT_CHANGE = "EVENT_CHANGE";
BI.shortcut("bi.searcher_view", BI.SearcherView);
/***/ }),
/* 380 */
/***/ (function(module, exports) {
@ -26358,8 +26402,8 @@ BI.Pager = BI.inherit(BI.Widget, {
hasNext: BI.emptyFn // pages不可用时有效
});
},
_init: function () {
BI.Pager.superclass._init.apply(this, arguments);
render: function () {
var self = this;
this.currPage = BI.result(this.options, "curr");
// 翻页太灵敏
@ -26606,6 +26650,7 @@ BI.Pager.EVENT_CHANGE = "EVENT_CHANGE";
BI.Pager.EVENT_AFTER_POPULATE = "EVENT_AFTER_POPULATE";
BI.shortcut("bi.pager", BI.Pager);
/***/ }),
/* 384 */
/***/ (function(module, exports) {
@ -27019,9 +27064,9 @@ BI.A = BI.inherit(BI.Text, {
tagName: "a"
});
},
_init: function () {
render: function () {
var o = this.options;
BI.A.superclass._init.apply(this, arguments);
this.element.attr({href: o.href, target: o.target});
if (o.el) {
BI.createWidget(o.el, {
@ -27033,6 +27078,7 @@ BI.A = BI.inherit(BI.Text, {
BI.shortcut("bi.a", BI.A);
/***/ }),
/* 387 */
/***/ (function(module, exports) {
@ -27051,8 +27097,8 @@ BI.LoadingBar = BI.inherit(BI.Single, {
handler: BI.emptyFn
});
},
_init: function () {
BI.LoadingBar.superclass._init.apply(this, arguments);
render: function () {
var self = this;
this.loaded = BI.createWidget({
type: "bi.text_button",
@ -27118,6 +27164,7 @@ BI.LoadingBar = BI.inherit(BI.Single, {
BI.shortcut("bi.loading_bar", BI.LoadingBar);
/***/ }),
/* 388 */
/***/ (function(module, exports) {
@ -27618,8 +27665,7 @@ BI.IconButton = BI.inherit(BI.BasicButton, {
});
},
_init: function () {
BI.IconButton.superclass._init.apply(this, arguments);
render: function () {
var o = this.options;
this.element.css({
textAlign: "center"
@ -27679,8 +27725,7 @@ BI.ImageButton = BI.inherit(BI.BasicButton, {
});
},
_init: function () {
BI.ImageButton.superclass._init.apply(this, arguments);
render: function () {
var o = this.options;
this.image = BI.createWidget({
type: "bi.img",
@ -27749,6 +27794,7 @@ BI.ImageButton = BI.inherit(BI.BasicButton, {
BI.ImageButton.EVENT_CHANGE = "EVENT_CHANGE";
BI.shortcut("bi.image_button", BI.ImageButton);
/***/ }),
/* 392 */
/***/ (function(module, exports) {
@ -27794,8 +27840,7 @@ BI.Button = BI.inherit(BI.BasicButton, {
});
},
_init: function () {
BI.Button.superclass._init.apply(this, arguments);
render: function () {
var o = this.options, self = this;
if (BI.isKey(o.iconCls)) {
this.icon = BI.createWidget({
@ -27935,8 +27980,7 @@ BI.TextButton = BI.inherit(BI.BasicButton, {
});
},
_init: function () {
BI.TextButton.superclass._init.apply(this, arguments);
render: function () {
var o = this.options;
this.text = BI.createWidget({
type: "bi.label",
@ -28002,6 +28046,7 @@ BI.TextButton = BI.inherit(BI.BasicButton, {
BI.TextButton.EVENT_CHANGE = "EVENT_CHANGE";
BI.shortcut("bi.text_button", BI.TextButton);
/***/ }),
/* 394 */
/***/ (function(module, exports) {
@ -28033,8 +28078,8 @@ BI.BlankIconIconTextItem = BI.inherit(BI.BasicButton, {
textRgap: 0
});
},
_init: function () {
BI.BlankIconIconTextItem.superclass._init.apply(this, arguments);
render: function () {
var o = this.options, c = this._const;
var blank = BI.createWidget({
type: "bi.layout",
@ -28159,8 +28204,8 @@ BI.BlankIconTextIconItem = BI.inherit(BI.BasicButton, {
textRgap: 0
});
},
_init: function () {
BI.BlankIconTextIconItem.superclass._init.apply(this, arguments);
render: function () {
var o = this.options, c = this._const;
this.text = BI.createWidget({
type: "bi.label",
@ -28289,8 +28334,8 @@ BI.BlankIconTextItem = BI.inherit(BI.BasicButton, {
textRgap: 0
});
},
_init: function () {
BI.BlankIconTextItem.superclass._init.apply(this, arguments);
render: function () {
var o = this.options, c = this._const;
var blank = BI.createWidget({
type: "bi.layout",
@ -28401,8 +28446,8 @@ BI.IconTextIconItem = BI.inherit(BI.BasicButton, {
textRgap: 0
});
},
_init: function () {
BI.IconTextIconItem.superclass._init.apply(this, arguments);
render: function () {
var o = this.options, c = this._const;
this.text = BI.createWidget({
type: "bi.label",
@ -28530,8 +28575,8 @@ BI.IconTextItem = BI.inherit(BI.BasicButton, {
textRgap: 0
});
},
_init: function () {
BI.IconTextItem.superclass._init.apply(this, arguments);
render: function () {
var o = this.options, c = this._const;
this.text = BI.createWidget({
type: "bi.label",
@ -28637,8 +28682,8 @@ BI.TextIconItem = BI.inherit(BI.BasicButton, {
textRgap: 0
});
},
_init: function () {
BI.TextIconItem.superclass._init.apply(this, arguments);
render: function () {
var o = this.options, c = this._const;
this.text = BI.createWidget({
type: "bi.label",
@ -28740,8 +28785,8 @@ BI.TextItem = BI.inherit(BI.BasicButton, {
textRgap: 0
});
},
_init: function () {
BI.TextItem.superclass._init.apply(this, arguments);
render: function () {
var o = this.options;
this.text = BI.createWidget({
type: "bi.label",
@ -28805,6 +28850,7 @@ BI.TextItem = BI.inherit(BI.BasicButton, {
BI.TextItem.EVENT_CHANGE = "EVENT_CHANGE";
BI.shortcut("bi.text_item", BI.TextItem);
/***/ }),
/* 401 */
/***/ (function(module, exports) {
@ -28834,8 +28880,8 @@ BI.IconTextIconNode = BI.inherit(BI.NodeButton, {
textRgap: 0
});
},
_init: function () {
BI.IconTextIconNode.superclass._init.apply(this, arguments);
render: function () {
var o = this.options, c = this._const;
this.text = BI.createWidget({
type: "bi.label",
@ -28923,6 +28969,7 @@ BI.IconTextIconNode = BI.inherit(BI.NodeButton, {
BI.IconTextIconNode.EVENT_CHANGE = "EVENT_CHANGE";
BI.shortcut("bi.icon_text_icon_node", BI.IconTextIconNode);
/***/ }),
/* 402 */
/***/ (function(module, exports) {
@ -28951,8 +28998,8 @@ BI.IconTextNode = BI.inherit(BI.NodeButton, {
textRgap: 0
});
},
_init: function () {
BI.IconTextNode.superclass._init.apply(this, arguments);
render: function () {
var o = this.options, c = this._const;
this.text = BI.createWidget({
type: "bi.label",
@ -29018,6 +29065,7 @@ BI.IconTextNode = BI.inherit(BI.NodeButton, {
BI.IconTextNode.EVENT_CHANGE = "EVENT_CHANGE";
BI.shortcut("bi.icon_text_node", BI.IconTextNode);
/***/ }),
/* 403 */
/***/ (function(module, exports) {
@ -29045,8 +29093,8 @@ BI.TextIconNode = BI.inherit(BI.NodeButton, {
textRgap: 0
});
},
_init: function () {
BI.TextIconNode.superclass._init.apply(this, arguments);
render: function () {
var o = this.options, c = this._const;
this.text = BI.createWidget({
type: "bi.label",
@ -29112,6 +29160,7 @@ BI.TextIconNode = BI.inherit(BI.NodeButton, {
BI.TextIconNode.EVENT_CHANGE = "EVENT_CHANGE";
BI.shortcut("bi.text_icon_node", BI.TextIconNode);
/***/ }),
/* 404 */
/***/ (function(module, exports) {
@ -29137,8 +29186,8 @@ BI.TextNode = BI.inherit(BI.NodeButton, {
textRgap: 0
});
},
_init: function () {
BI.TextNode.superclass._init.apply(this, arguments);
render: function () {
var o = this.options;
this.text = BI.createWidget({
type: "bi.label",
@ -29194,6 +29243,7 @@ BI.TextNode = BI.inherit(BI.NodeButton, {
BI.TextNode.EVENT_CHANGE = "EVENT_CHANGE";
BI.shortcut("bi.text_node", BI.TextNode);
/***/ }),
/* 405 */
/***/ (function(module, exports) {
@ -29226,8 +29276,7 @@ BI.Editor = BI.inherit(BI.Single, {
});
},
_init: function () {
BI.Editor.superclass._init.apply(this, arguments);
render: function () {
var self = this, o = this.options;
// 密码输入框设置autocomplete="new-password"的情况下Firefox和chrome不会自动填充密码
var autocomplete = o.autocomplete ? " autocomplete=" + o.autocomplete : "";
@ -29595,8 +29644,7 @@ BI.MultifileEditor = BI.inherit(BI.Widget, {
});
},
_init: function () {
var self = this, o = this.options;
render: function () {
BI.MultifileEditor.superclass._init.apply(this, arguments);
this.file = BI.createWidget({
type: "bi.file",
@ -30072,8 +30120,8 @@ BI.Icon = BI.inherit(BI.Single, {
baseCls: (conf.baseCls || "") + " x-icon b-font horizon-center display-block"
});
},
_init: function () {
BI.Icon.superclass._init.apply(this, arguments);
render: function () {
if (BI.isIE9Below && BI.isIE9Below()) {
this.element.addClass("hack");
}
@ -30081,6 +30129,7 @@ BI.Icon = BI.inherit(BI.Single, {
});
BI.shortcut("bi.icon", BI.Icon);
/***/ }),
/* 410 */
/***/ (function(module, exports) {
@ -30105,9 +30154,8 @@ BI.Iframe = BI.inherit(BI.Single, {
});
},
_init: function () {
render: function () {
var self = this;
BI.Iframe.superclass._init.apply(this, arguments);
this.element.on("load", function () {
self.fireEvent("EVENT_LOADED");
});
@ -30306,8 +30354,7 @@ BI.Input = BI.inherit(BI.Single, {
});
},
_init: function () {
BI.Input.superclass._init.apply(this, arguments);
render: function () {
var self = this;
var ctrlKey = false;
var keyCode = null;
@ -30629,10 +30676,6 @@ BI.ImageRadio = BI.inherit(BI.IconButton, {
});
},
_init: function () {
BI.ImageRadio.superclass._init.apply(this, arguments);
},
doClick: function () {
BI.ImageRadio.superclass.doClick.apply(this, arguments);
if(this.isValid()) {
@ -30644,6 +30687,7 @@ BI.ImageRadio.EVENT_CHANGE = BI.IconButton.EVENT_CHANGE;
BI.shortcut("bi.image_radio", BI.ImageRadio);
/***/ }),
/* 416 */
/***/ (function(module, exports) {
@ -30755,9 +30799,7 @@ BI.shortcut("bi.radio", BI.Radio);
};
},
_init: function () {
BI.AbstractLabel.superclass._init.apply(this, arguments);
render: function () {
if (this.options.textAlign === "center") {
this._createCenterEl();
} else {
@ -31150,8 +31192,7 @@ BI.IconLabel = BI.inherit(BI.Single, {
iconHeight: null
},
_init: function () {
BI.IconLabel.superclass._init.apply(this, arguments);
render: function () {
var o = this.options;
this.element.css({
textAlign: "center"
@ -31349,8 +31390,8 @@ BI.Toast = BI.inherit(BI.Tip, {
level: "success" // success或warning
});
},
_init: function () {
BI.Toast.superclass._init.apply(this, arguments);
render: function () {
var self = this, o = this.options;
this.element.css({
minWidth: this._const.minWidth / BI.pixRatio + BI.pixUnit
@ -31464,8 +31505,8 @@ BI.Tooltip = BI.inherit(BI.Tip, {
stopPropagation: false
});
},
_init: function () {
BI.Tooltip.superclass._init.apply(this, arguments);
render: function () {
var self = this, o = this.options;
this.element.addClass("tooltip-" + o.level);
var fn = function (e) {
@ -31527,6 +31568,7 @@ BI.Tooltip = BI.inherit(BI.Tip, {
BI.shortcut("bi.tooltip", BI.Tooltip);
/***/ }),
/* 426 */
/***/ (function(module, exports) {
@ -31546,10 +31588,6 @@ BI.Trigger = BI.inherit(BI.Single, {
});
},
_init: function () {
BI.Trigger.superclass._init.apply(this, arguments);
},
setKey: function () {
},
@ -31559,6 +31597,7 @@ BI.Trigger = BI.inherit(BI.Single, {
},
});
/***/ }),
/* 427 */
/***/ (function(module, exports) {
@ -37075,9 +37114,6 @@ BI.BubblePopupView = BI.inherit(BI.PopupView, {
maxWidth: 300,
minHeight: 90
});
},
_init: function () {
BI.BubblePopupView.superclass._init.apply(this, arguments);
}
});
@ -91464,9 +91500,8 @@ _.extend(BI, {
});
},
_init: function () {
render: function () {
var self = this, o = this.options;
BI.File.superclass._init.apply(this, arguments);
if (o.multiple === true) {
this.element.attr("multiple", "multiple");
}

2
dist/fineui.proxy.js.map vendored

File diff suppressed because one or more lines are too long

2
dist/fineui.proxy.min.css vendored

File diff suppressed because one or more lines are too long

4
dist/fineui.proxy.min.js vendored

File diff suppressed because one or more lines are too long

2
dist/fineui.proxy.min.js.map vendored

File diff suppressed because one or more lines are too long

234
dist/fineui_without_jquery_polyfill.js vendored

@ -1,4 +1,4 @@
/*! time: 2021-9-18 9:50:56 */
/*! time: 2021-9-20 9:00:58 */
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
@ -6290,7 +6290,7 @@ BI.Req = {
baseCls: "",
extraCls: "",
cls: "",
css: null,
css: null
// vdom: false
});
@ -6409,9 +6409,19 @@ BI.Req = {
},
_initCurrent: function () {
var o = this.options;
if (o._baseCls || o.baseCls || o.extraCls || o.cls) {
this.element.addClass((o._baseCls || "") + " " + (o.baseCls || "") + " " + (o.extraCls || "") + " " + (o.cls || ""));
var self = this, o = this.options;
if (o._baseCls || o.baseCls || o.extraCls) {
this.element.addClass((o._baseCls || "") + " " + (o.baseCls || "") + " " + (o.extraCls || ""));
}
if (o.cls) {
if (BI.isFunction(o.cls)) {
var cls = this.__watch(o.cls, function (newValue) {
self.element.removeClass(cls).addClass(cls = newValue);
});
this.element.addClass(cls);
} else {
this.element.addClass(o.cls);
}
}
if (o.key != null) {
this.element.attr("key", o.key);
@ -6423,7 +6433,32 @@ BI.Req = {
this.element.data(o.data);
}
if (o.css) {
this.element.css(o.css);
if (BI.isFunction(o.css)) {
var css = this.__watch(o.css, function (newValue) {
for (var k in css) {
if (!newValue[k]) {
newValue[k] = "";
}
}
self.element.css(css = newValue);
}, {
deep: true
});
this.element.css(css);
} else {
this.element.css(o.css);
}
}
},
__watch: function (getter, handler, options) {
if (Fix.Model.target) {
this._watchers = this._watchers || [];
var watcher = new Fix.Watcher(Fix.Model.target, BI.bind(getter, this), (handler && BI.bind(handler, this)) || BI.emptyFn, options);
this._watchers.push(watcher);
return watcher.value;
} else {
return getter();
}
},
@ -6476,7 +6511,7 @@ BI.Req = {
},
_initEffects: function () {
var o = this.options;
var self = this, o = this.options;
if (o.disabled || o.invalid) {
if (this.options.disabled) {
this.setEnable(false);
@ -6485,6 +6520,23 @@ BI.Req = {
this.setValid(false);
}
}
if (o.effect) {
if (BI.isArray(o.effect)) {
if (BI.isArray(o.effect[0])) {
BI.each(o.effect, function (i, effect) {
self.__watch(effect[0], effect[1], {
deep: true
});
});
} else {
self.__watch(o.effect[0], o.effect[1], {
deep: true
});
}
} else {
this.__watch(o.effect);
}
}
},
_initState: function () {
@ -21006,8 +21058,7 @@ BI.CollectionView = BI.inherit(BI.Widget, {
});
},
_init: function () {
BI.CollectionView.superclass._init.apply(this, arguments);
render: function () {
var self = this, o = this.options;
this.renderedCells = [];
this.renderedKeys = [];
@ -21411,8 +21462,7 @@ BI.shortcut("bi.collection_view", BI.CollectionView);
});
},
_init: function () {
BI.Combo.superclass._init.apply(this, arguments);
render: function () {
var self = this, o = this.options;
this._initCombo();
this._initPullDownAction();
@ -21971,8 +22021,7 @@ BI.Expander = BI.inherit(BI.Widget, {
});
},
_init: function () {
BI.Expander.superclass._init.apply(this, arguments);
render: function () {
var self = this, o = this.options;
this._expanded = !!o.el.open;
this._initExpander();
@ -22231,6 +22280,7 @@ BI.Expander.EVENT_AFTER_HIDEVIEW = "EVENT_AFTER_HIDEVIEW";
BI.shortcut("bi.expander", BI.Expander);
/***/ }),
/* 365 */
/***/ (function(module, exports) {
@ -22257,8 +22307,7 @@ BI.ButtonGroup = BI.inherit(BI.Widget, {
});
},
_init: function () {
BI.ButtonGroup.superclass._init.apply(this, arguments);
render: function () {
var o = this.options;
var behaviors = {};
BI.each(o.behaviors, function (key, rule) {
@ -22566,6 +22615,7 @@ BI.ButtonGroup.EVENT_CHANGE = "EVENT_CHANGE";
BI.shortcut("bi.button_group", BI.ButtonGroup);
/***/ }),
/* 366 */
/***/ (function(module, exports) {
@ -22602,8 +22652,7 @@ BI.ComboGroup = BI.inherit(BI.Widget, {
});
},
_init: function () {
BI.ComboGroup.superclass._init.apply(this, arguments);
render: function () {
this._populate(this.options.el);
},
@ -22668,6 +22717,7 @@ BI.ComboGroup.EVENT_CHANGE = "EVENT_CHANGE";
BI.shortcut("bi.combo_group", BI.ComboGroup);
/***/ }),
/* 367 */
/***/ (function(module, exports) {
@ -22848,8 +22898,7 @@ BI.Loader = BI.inherit(BI.Widget, {
}]);
},
_init: function () {
BI.Loader.superclass._init.apply(this, arguments);
render: function () {
var self = this, o = this.options;
if (o.itemsCreator === false) {
o.prev = false;
@ -23271,8 +23320,7 @@ BI.Searcher = BI.inherit(BI.Widget, {
});
},
_init: function () {
BI.Searcher.superclass._init.apply(this, arguments);
render: function () {
var self = this, o = this.options;
this.editor = BI.createWidget(o.el, {
@ -23548,6 +23596,7 @@ BI.Searcher.EVENT_AFTER_INIT = "EVENT_AFTER_INIT";
BI.shortcut("bi.searcher", BI.Searcher);
/***/ }),
/* 371 */
/***/ (function(module, exports) {
@ -23576,8 +23625,7 @@ BI.Switcher = BI.inherit(BI.Widget, {
});
},
_init: function () {
BI.Switcher.superclass._init.apply(this, arguments);
render: function () {
var self = this, o = this.options;
this._initSwitcher();
this._initPullDownAction();
@ -23845,6 +23893,7 @@ BI.Switcher.EVENT_AFTER_HIDEVIEW = "EVENT_AFTER_HIDEVIEW";
BI.shortcut("bi.switcher", BI.Switcher);
/***/ }),
/* 372 */
/***/ (function(module, exports) {
@ -24025,10 +24074,6 @@ BI.ButtonTree = BI.inherit(BI.ButtonGroup, {
});
},
_init: function () {
BI.ButtonTree.superclass._init.apply(this, arguments);
},
setNotSelectedValue: function (v) {
v = BI.isArray(v) ? v : [v];
BI.each(this.buttons, function (i, item) {
@ -24195,6 +24240,7 @@ BI.ButtonTree.EVENT_CHANGE = "EVENT_CHANGE";
BI.shortcut("bi.button_tree", BI.ButtonTree);
/***/ }),
/* 374 */
/***/ (function(module, exports) {
@ -24479,8 +24525,7 @@ BI.GridView = BI.inherit(BI.Widget, {
});
},
_init: function () {
BI.GridView.superclass._init.apply(this, arguments);
render: function () {
var self = this, o = this.options;
this.renderedCells = [];
this.renderedKeys = [];
@ -25170,8 +25215,7 @@ BI.PopupView = BI.inherit(BI.Widget, {
});
},
_init: function () {
BI.PopupView.superclass._init.apply(this, arguments);
render: function () {
var self = this, o = this.options;
var fn = function (e) {
e.stopPropagation();
@ -25356,8 +25400,7 @@ BI.SearcherView = BI.inherit(BI.Pane, {
});
},
_init: function () {
BI.SearcherView.superclass._init.apply(this, arguments);
render: function () {
var self = this, o = this.options;
this.matcher = BI.createWidget(o.matcher, {
@ -25455,6 +25498,7 @@ BI.SearcherView.EVENT_CHANGE = "EVENT_CHANGE";
BI.shortcut("bi.searcher_view", BI.SearcherView);
/***/ }),
/* 380 */
/***/ (function(module, exports) {
@ -25983,8 +26027,8 @@ BI.Pager = BI.inherit(BI.Widget, {
hasNext: BI.emptyFn // pages不可用时有效
});
},
_init: function () {
BI.Pager.superclass._init.apply(this, arguments);
render: function () {
var self = this;
this.currPage = BI.result(this.options, "curr");
// 翻页太灵敏
@ -26231,6 +26275,7 @@ BI.Pager.EVENT_CHANGE = "EVENT_CHANGE";
BI.Pager.EVENT_AFTER_POPULATE = "EVENT_AFTER_POPULATE";
BI.shortcut("bi.pager", BI.Pager);
/***/ }),
/* 384 */
/***/ (function(module, exports) {
@ -26644,9 +26689,9 @@ BI.A = BI.inherit(BI.Text, {
tagName: "a"
});
},
_init: function () {
render: function () {
var o = this.options;
BI.A.superclass._init.apply(this, arguments);
this.element.attr({href: o.href, target: o.target});
if (o.el) {
BI.createWidget(o.el, {
@ -26658,6 +26703,7 @@ BI.A = BI.inherit(BI.Text, {
BI.shortcut("bi.a", BI.A);
/***/ }),
/* 387 */
/***/ (function(module, exports) {
@ -26676,8 +26722,8 @@ BI.LoadingBar = BI.inherit(BI.Single, {
handler: BI.emptyFn
});
},
_init: function () {
BI.LoadingBar.superclass._init.apply(this, arguments);
render: function () {
var self = this;
this.loaded = BI.createWidget({
type: "bi.text_button",
@ -26743,6 +26789,7 @@ BI.LoadingBar = BI.inherit(BI.Single, {
BI.shortcut("bi.loading_bar", BI.LoadingBar);
/***/ }),
/* 388 */
/***/ (function(module, exports) {
@ -27243,8 +27290,7 @@ BI.IconButton = BI.inherit(BI.BasicButton, {
});
},
_init: function () {
BI.IconButton.superclass._init.apply(this, arguments);
render: function () {
var o = this.options;
this.element.css({
textAlign: "center"
@ -27304,8 +27350,7 @@ BI.ImageButton = BI.inherit(BI.BasicButton, {
});
},
_init: function () {
BI.ImageButton.superclass._init.apply(this, arguments);
render: function () {
var o = this.options;
this.image = BI.createWidget({
type: "bi.img",
@ -27374,6 +27419,7 @@ BI.ImageButton = BI.inherit(BI.BasicButton, {
BI.ImageButton.EVENT_CHANGE = "EVENT_CHANGE";
BI.shortcut("bi.image_button", BI.ImageButton);
/***/ }),
/* 392 */
/***/ (function(module, exports) {
@ -27419,8 +27465,7 @@ BI.Button = BI.inherit(BI.BasicButton, {
});
},
_init: function () {
BI.Button.superclass._init.apply(this, arguments);
render: function () {
var o = this.options, self = this;
if (BI.isKey(o.iconCls)) {
this.icon = BI.createWidget({
@ -27560,8 +27605,7 @@ BI.TextButton = BI.inherit(BI.BasicButton, {
});
},
_init: function () {
BI.TextButton.superclass._init.apply(this, arguments);
render: function () {
var o = this.options;
this.text = BI.createWidget({
type: "bi.label",
@ -27627,6 +27671,7 @@ BI.TextButton = BI.inherit(BI.BasicButton, {
BI.TextButton.EVENT_CHANGE = "EVENT_CHANGE";
BI.shortcut("bi.text_button", BI.TextButton);
/***/ }),
/* 394 */
/***/ (function(module, exports) {
@ -27658,8 +27703,8 @@ BI.BlankIconIconTextItem = BI.inherit(BI.BasicButton, {
textRgap: 0
});
},
_init: function () {
BI.BlankIconIconTextItem.superclass._init.apply(this, arguments);
render: function () {
var o = this.options, c = this._const;
var blank = BI.createWidget({
type: "bi.layout",
@ -27784,8 +27829,8 @@ BI.BlankIconTextIconItem = BI.inherit(BI.BasicButton, {
textRgap: 0
});
},
_init: function () {
BI.BlankIconTextIconItem.superclass._init.apply(this, arguments);
render: function () {
var o = this.options, c = this._const;
this.text = BI.createWidget({
type: "bi.label",
@ -27914,8 +27959,8 @@ BI.BlankIconTextItem = BI.inherit(BI.BasicButton, {
textRgap: 0
});
},
_init: function () {
BI.BlankIconTextItem.superclass._init.apply(this, arguments);
render: function () {
var o = this.options, c = this._const;
var blank = BI.createWidget({
type: "bi.layout",
@ -28026,8 +28071,8 @@ BI.IconTextIconItem = BI.inherit(BI.BasicButton, {
textRgap: 0
});
},
_init: function () {
BI.IconTextIconItem.superclass._init.apply(this, arguments);
render: function () {
var o = this.options, c = this._const;
this.text = BI.createWidget({
type: "bi.label",
@ -28155,8 +28200,8 @@ BI.IconTextItem = BI.inherit(BI.BasicButton, {
textRgap: 0
});
},
_init: function () {
BI.IconTextItem.superclass._init.apply(this, arguments);
render: function () {
var o = this.options, c = this._const;
this.text = BI.createWidget({
type: "bi.label",
@ -28262,8 +28307,8 @@ BI.TextIconItem = BI.inherit(BI.BasicButton, {
textRgap: 0
});
},
_init: function () {
BI.TextIconItem.superclass._init.apply(this, arguments);
render: function () {
var o = this.options, c = this._const;
this.text = BI.createWidget({
type: "bi.label",
@ -28365,8 +28410,8 @@ BI.TextItem = BI.inherit(BI.BasicButton, {
textRgap: 0
});
},
_init: function () {
BI.TextItem.superclass._init.apply(this, arguments);
render: function () {
var o = this.options;
this.text = BI.createWidget({
type: "bi.label",
@ -28430,6 +28475,7 @@ BI.TextItem = BI.inherit(BI.BasicButton, {
BI.TextItem.EVENT_CHANGE = "EVENT_CHANGE";
BI.shortcut("bi.text_item", BI.TextItem);
/***/ }),
/* 401 */
/***/ (function(module, exports) {
@ -28459,8 +28505,8 @@ BI.IconTextIconNode = BI.inherit(BI.NodeButton, {
textRgap: 0
});
},
_init: function () {
BI.IconTextIconNode.superclass._init.apply(this, arguments);
render: function () {
var o = this.options, c = this._const;
this.text = BI.createWidget({
type: "bi.label",
@ -28548,6 +28594,7 @@ BI.IconTextIconNode = BI.inherit(BI.NodeButton, {
BI.IconTextIconNode.EVENT_CHANGE = "EVENT_CHANGE";
BI.shortcut("bi.icon_text_icon_node", BI.IconTextIconNode);
/***/ }),
/* 402 */
/***/ (function(module, exports) {
@ -28576,8 +28623,8 @@ BI.IconTextNode = BI.inherit(BI.NodeButton, {
textRgap: 0
});
},
_init: function () {
BI.IconTextNode.superclass._init.apply(this, arguments);
render: function () {
var o = this.options, c = this._const;
this.text = BI.createWidget({
type: "bi.label",
@ -28643,6 +28690,7 @@ BI.IconTextNode = BI.inherit(BI.NodeButton, {
BI.IconTextNode.EVENT_CHANGE = "EVENT_CHANGE";
BI.shortcut("bi.icon_text_node", BI.IconTextNode);
/***/ }),
/* 403 */
/***/ (function(module, exports) {
@ -28670,8 +28718,8 @@ BI.TextIconNode = BI.inherit(BI.NodeButton, {
textRgap: 0
});
},
_init: function () {
BI.TextIconNode.superclass._init.apply(this, arguments);
render: function () {
var o = this.options, c = this._const;
this.text = BI.createWidget({
type: "bi.label",
@ -28737,6 +28785,7 @@ BI.TextIconNode = BI.inherit(BI.NodeButton, {
BI.TextIconNode.EVENT_CHANGE = "EVENT_CHANGE";
BI.shortcut("bi.text_icon_node", BI.TextIconNode);
/***/ }),
/* 404 */
/***/ (function(module, exports) {
@ -28762,8 +28811,8 @@ BI.TextNode = BI.inherit(BI.NodeButton, {
textRgap: 0
});
},
_init: function () {
BI.TextNode.superclass._init.apply(this, arguments);
render: function () {
var o = this.options;
this.text = BI.createWidget({
type: "bi.label",
@ -28819,6 +28868,7 @@ BI.TextNode = BI.inherit(BI.NodeButton, {
BI.TextNode.EVENT_CHANGE = "EVENT_CHANGE";
BI.shortcut("bi.text_node", BI.TextNode);
/***/ }),
/* 405 */
/***/ (function(module, exports) {
@ -28851,8 +28901,7 @@ BI.Editor = BI.inherit(BI.Single, {
});
},
_init: function () {
BI.Editor.superclass._init.apply(this, arguments);
render: function () {
var self = this, o = this.options;
// 密码输入框设置autocomplete="new-password"的情况下Firefox和chrome不会自动填充密码
var autocomplete = o.autocomplete ? " autocomplete=" + o.autocomplete : "";
@ -29220,8 +29269,7 @@ BI.MultifileEditor = BI.inherit(BI.Widget, {
});
},
_init: function () {
var self = this, o = this.options;
render: function () {
BI.MultifileEditor.superclass._init.apply(this, arguments);
this.file = BI.createWidget({
type: "bi.file",
@ -29697,8 +29745,8 @@ BI.Icon = BI.inherit(BI.Single, {
baseCls: (conf.baseCls || "") + " x-icon b-font horizon-center display-block"
});
},
_init: function () {
BI.Icon.superclass._init.apply(this, arguments);
render: function () {
if (BI.isIE9Below && BI.isIE9Below()) {
this.element.addClass("hack");
}
@ -29706,6 +29754,7 @@ BI.Icon = BI.inherit(BI.Single, {
});
BI.shortcut("bi.icon", BI.Icon);
/***/ }),
/* 410 */
/***/ (function(module, exports) {
@ -29730,9 +29779,8 @@ BI.Iframe = BI.inherit(BI.Single, {
});
},
_init: function () {
render: function () {
var self = this;
BI.Iframe.superclass._init.apply(this, arguments);
this.element.on("load", function () {
self.fireEvent("EVENT_LOADED");
});
@ -29931,8 +29979,7 @@ BI.Input = BI.inherit(BI.Single, {
});
},
_init: function () {
BI.Input.superclass._init.apply(this, arguments);
render: function () {
var self = this;
var ctrlKey = false;
var keyCode = null;
@ -30254,10 +30301,6 @@ BI.ImageRadio = BI.inherit(BI.IconButton, {
});
},
_init: function () {
BI.ImageRadio.superclass._init.apply(this, arguments);
},
doClick: function () {
BI.ImageRadio.superclass.doClick.apply(this, arguments);
if(this.isValid()) {
@ -30269,6 +30312,7 @@ BI.ImageRadio.EVENT_CHANGE = BI.IconButton.EVENT_CHANGE;
BI.shortcut("bi.image_radio", BI.ImageRadio);
/***/ }),
/* 416 */
/***/ (function(module, exports) {
@ -30380,9 +30424,7 @@ BI.shortcut("bi.radio", BI.Radio);
};
},
_init: function () {
BI.AbstractLabel.superclass._init.apply(this, arguments);
render: function () {
if (this.options.textAlign === "center") {
this._createCenterEl();
} else {
@ -30775,8 +30817,7 @@ BI.IconLabel = BI.inherit(BI.Single, {
iconHeight: null
},
_init: function () {
BI.IconLabel.superclass._init.apply(this, arguments);
render: function () {
var o = this.options;
this.element.css({
textAlign: "center"
@ -30974,8 +31015,8 @@ BI.Toast = BI.inherit(BI.Tip, {
level: "success" // success或warning
});
},
_init: function () {
BI.Toast.superclass._init.apply(this, arguments);
render: function () {
var self = this, o = this.options;
this.element.css({
minWidth: this._const.minWidth / BI.pixRatio + BI.pixUnit
@ -31089,8 +31130,8 @@ BI.Tooltip = BI.inherit(BI.Tip, {
stopPropagation: false
});
},
_init: function () {
BI.Tooltip.superclass._init.apply(this, arguments);
render: function () {
var self = this, o = this.options;
this.element.addClass("tooltip-" + o.level);
var fn = function (e) {
@ -31152,6 +31193,7 @@ BI.Tooltip = BI.inherit(BI.Tip, {
BI.shortcut("bi.tooltip", BI.Tooltip);
/***/ }),
/* 426 */
/***/ (function(module, exports) {
@ -31171,10 +31213,6 @@ BI.Trigger = BI.inherit(BI.Single, {
});
},
_init: function () {
BI.Trigger.superclass._init.apply(this, arguments);
},
setKey: function () {
},
@ -31184,6 +31222,7 @@ BI.Trigger = BI.inherit(BI.Single, {
},
});
/***/ }),
/* 427 */
/***/ (function(module, exports) {
@ -36700,9 +36739,6 @@ BI.BubblePopupView = BI.inherit(BI.PopupView, {
maxWidth: 300,
minHeight: 90
});
},
_init: function () {
BI.BubblePopupView.superclass._init.apply(this, arguments);
}
});

2
dist/fineui_without_jquery_polyfill.js.map vendored

File diff suppressed because one or more lines are too long

2
dist/fineui_without_normalize.min.css vendored

File diff suppressed because one or more lines are too long

2
dist/font.css vendored

File diff suppressed because one or more lines are too long

2
dist/resource.css vendored

File diff suppressed because one or more lines are too long

2
dist/utils.js vendored

@ -1,4 +1,4 @@
/*! time: 2021-9-18 9:50:56 */
/*! time: 2021-9-20 9:00:58 */
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};

2
dist/utils.min.js vendored

File diff suppressed because one or more lines are too long

2
package.json

@ -1,6 +1,6 @@
{
"name": "fineui",
"version": "2.0.20210918095231",
"version": "2.0.20210920090231",
"description": "fineui",
"main": "dist/fineui.min.js",
"types": "dist/lib/index.d.ts",

Loading…
Cancel
Save