Browse Source

Merging in latest from upstream (VISUAL/fineui:refs/heads/master)

* commit 'fc6a84226a4e9b81385c1eca77eeaef595b84912':
  auto upgrade version to 2.0.20210805131211
  整理代码
  auto upgrade version to 2.0.20210804094121
  auto upgrade version to 2.0.20210804091234
  无JIRA任务 style: 更新字体文件
  无JIRA任务 feat: BI.SearchTextValueCombo 的defaultText和text区分开
  auto upgrade version to 2.0.20210803161102
  auto upgrade version to 2.0.20210803144211
  五JIRA任务 fix : Array.prototype.reverse() 会改变原始引用
  无jira任务 fix: 修正model类型,使ctrl点击可以导航到对应属性
es6
Guyi 3 years ago
parent
commit
1dd2eac33e
  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. 202
      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_without_normalize.css
  10. 2
      dist/2.0/fineui_without_normalize.min.css
  11. 2
      dist/core.css
  12. 202
      dist/core.js
  13. 2
      dist/core.js.map
  14. 2
      dist/demo.css
  15. 202
      dist/demo.js
  16. 2
      dist/demo.js.map
  17. 2
      dist/fineui.css
  18. 4
      dist/fineui.ie.min.js
  19. 2
      dist/fineui.ie.min.js.map
  20. 202
      dist/fineui.js
  21. 2
      dist/fineui.js.map
  22. 2
      dist/fineui.min.css
  23. 4
      dist/fineui.min.js
  24. 2
      dist/fineui.min.js.map
  25. 2
      dist/fineui.proxy.css
  26. 202
      dist/fineui.proxy.js
  27. 2
      dist/fineui.proxy.js.map
  28. 2
      dist/fineui.proxy.min.css
  29. 4
      dist/fineui.proxy.min.js
  30. 2
      dist/fineui.proxy.min.js.map
  31. 202
      dist/fineui_without_jquery_polyfill.js
  32. 2
      dist/fineui_without_jquery_polyfill.js.map
  33. 2
      dist/fix/fix.js
  34. 2
      dist/fix/fix.proxy.js
  35. 2
      dist/font.css
  36. BIN
      dist/font/iconfont.eot
  37. 3096
      dist/font/iconfont.svg
  38. BIN
      dist/font/iconfont.ttf
  39. BIN
      dist/font/iconfont.woff
  40. BIN
      dist/font/iconfont.woff2
  41. 4
      dist/lib/core/decorator/decorator.d.ts
  42. 2
      dist/resource.css
  43. 2
      dist/utils.js
  44. 2
      dist/utils.min.js
  45. 2
      package.json
  46. 6
      src/case/combo/searchtextvaluecombo/combo.searchtextvalue.js
  47. 6
      src/case/combo/searchtextvaluecombo/trigger.searchtextvalue.js
  48. 8
      src/core/controller/controller.bubbles.js
  49. 12
      src/core/controller/controller.layer.js
  50. 106
      src/core/controller/controller.popover.js
  51. 61
      src/core/controller/controller.tooltips.js
  52. 2
      typescript/core/decorator/decorator.ts

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

202
dist/2.0/fineui.js vendored

@ -1,4 +1,4 @@
/*! time: 2021-8-2 13:20:15 */
/*! time: 2021-8-5 13:10:45 */
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
@ -13506,6 +13506,14 @@ BI.BubblesController = BI.inherit(BI.Controller, {
this.storeBubbles[name].destroy();
delete this.storeBubbles[name];
return this;
},
removeAll: function () {
BI.each(this.storeBubbles, function (name, bubble) {
bubble.destroy();
});
this.storeBubbles = {};
return this;
}
});
@ -13616,21 +13624,21 @@ BI.LayerController = BI.inherit(BI.Controller, {
return widget;
},
hide: function (name, callback) {
show: function (name, callback) {
if (!this.has(name)) {
return this;
}
this._getLayout(name).invisible();
this._getLayout(name).element.hide(0, callback);
this._getLayout(name).visible();
this._getLayout(name).element.css("z-index", this.zindex++).show(0, callback).trigger("__resize__");
return this;
},
show: function (name, callback) {
hide: function (name, callback) {
if (!this.has(name)) {
return this;
}
this._getLayout(name).visible();
this._getLayout(name).element.css("z-index", this.zindex++).show(0, callback).trigger("__resize__");
this._getLayout(name).invisible();
this._getLayout(name).element.hide(0, callback);
return this;
},
@ -13731,12 +13739,8 @@ BI.PopoverController = BI.inherit(BI.Controller, {
this.zindexMap = {};
},
_check: function (name) {
return BI.isNotNull(this.floatManager[name]);
},
create: function (name, options, context) {
if (this._check(name)) {
if (this.has(name)) {
return this;
}
var popover = BI.createWidget(options || {}, {
@ -13746,48 +13750,8 @@ BI.PopoverController = BI.inherit(BI.Controller, {
return this;
},
add: function (name, popover, options, context) {
var self = this;
options || (options = {});
if (this._check(name)) {
return this;
}
this.floatContainer[name] = BI.createWidget({
type: "bi.absolute",
cls: "bi-popup-view",
items: [{
el: (this.floatLayer[name] = BI.createWidget({
type: "bi.absolute",
items: [popover]
}, context)),
left: 0,
right: 0,
top: 0,
bottom: 0
}]
});
this.floatManager[name] = popover;
(function (key) {
popover.on(BI.Popover.EVENT_CLOSE, function () {
self.close(key);
});
})(name);
BI.createWidget({
type: "bi.absolute",
element: options.container || this.options.render,
items: [{
el: this.floatContainer[name],
left: 0,
right: 0,
top: 0,
bottom: 0
}]
});
return this;
},
open: function (name) {
if (!this._check(name)) {
if (!this.has(name)) {
return this;
}
if (!this.floatOpened[name]) {
@ -13819,7 +13783,7 @@ BI.PopoverController = BI.inherit(BI.Controller, {
},
close: function (name) {
if (!this._check(name)) {
if (!this.has(name)) {
return this;
}
if (this.floatOpened[name]) {
@ -13830,10 +13794,66 @@ BI.PopoverController = BI.inherit(BI.Controller, {
return this;
},
show: function (name) {
return this.open(name);
},
hide: function (name) {
return this.close(name);
},
isVisible: function (name) {
return this.has(name) && this.floatOpened[name] === true;
},
add: function (name, popover, options, context) {
var self = this;
options || (options = {});
if (this.has(name)) {
return this;
}
this.floatContainer[name] = BI.createWidget({
type: "bi.absolute",
cls: "bi-popup-view",
items: [{
el: (this.floatLayer[name] = BI.createWidget({
type: "bi.absolute",
items: [popover]
}, context)),
left: 0,
right: 0,
top: 0,
bottom: 0
}]
});
this.floatManager[name] = popover;
(function (key) {
popover.on(BI.Popover.EVENT_CLOSE, function () {
self.close(key);
});
})(name);
BI.createWidget({
type: "bi.absolute",
element: options.container || this.options.render,
items: [{
el: this.floatContainer[name],
left: 0,
right: 0,
top: 0,
bottom: 0
}]
});
return this;
},
get: function (name) {
return this.floatManager[name];
},
has: function (name) {
return BI.isNotNull(this.floatManager[name]);
},
remove: function (name) {
if (!this._check(name)) {
return this;
@ -13965,32 +13985,6 @@ BI.TooltipsController = BI.inherit(BI.Controller, {
});
},
hide: function (name, callback) {
if (!this.has(name)) {
return this;
}
delete this.showingTips[name];
this.get(name).element.hide(0, callback);
this.get(name).invisible();
return this;
},
create: function (name, text, level, context) {
if (!this.has(name)) {
var tooltip = this._createTooltip(text, level);
this.add(name, tooltip);
BI.createWidget({
type: "bi.absolute",
element: context || "body",
items: [{
el: tooltip
}]
});
tooltip.invisible();
}
return this.get(name);
},
// opt: {container: '', belowMouse: false}
show: function (e, name, text, level, context, opt) {
opt || (opt = {});
@ -14044,6 +14038,32 @@ BI.TooltipsController = BI.inherit(BI.Controller, {
return this;
},
hide: function (name, callback) {
if (!this.has(name)) {
return this;
}
delete this.showingTips[name];
this.get(name).element.hide(0, callback);
this.get(name).invisible();
return this;
},
create: function (name, text, level, context) {
if (!this.has(name)) {
var tooltip = this._createTooltip(text, level);
this.add(name, tooltip);
BI.createWidget({
type: "bi.absolute",
element: context || "body",
items: [{
el: tooltip
}]
});
tooltip.invisible();
}
return this.get(name);
},
add: function (name, bubble) {
if (this.has(name)) {
return this;
@ -14071,6 +14091,15 @@ BI.TooltipsController = BI.inherit(BI.Controller, {
this.tooltipsManager[name].destroy();
delete this.tooltipsManager[name];
return this;
},
removeAll: function () {
BI.each(this.tooltipsManager, function (name, tooltip) {
tooltip.destroy();
});
this.tooltipsManager = {};
this.showingTips = {};
return this;
}
});
@ -41327,6 +41356,7 @@ BI.SearchTextValueCombo = BI.inherit(BI.Widget, {
baseCls: "bi-search-text-value-combo",
height: 24,
text: "",
defaultText: "",
items: [],
tipType: "",
warningTitle: "",
@ -41356,6 +41386,7 @@ BI.SearchTextValueCombo = BI.inherit(BI.Widget, {
items: o.items,
height: o.height - 2,
text: o.text,
defaultText: o.defaultText,
value: o.value,
tipType: o.tipType,
warningTitle: o.warningTitle,
@ -41437,13 +41468,13 @@ BI.SearchTextValueCombo = BI.inherit(BI.Widget, {
created: function () {
var o = this.options;
if(BI.isKey(o.value)) {
if (BI.isKey(o.value)) {
this._checkError(o.value);
}
},
_checkError: function (v) {
if(BI.isNull(v) || BI.isEmptyArray(v) || BI.isEmptyString(v)) {
if (BI.isNull(v) || BI.isEmptyArray(v) || BI.isEmptyString(v)) {
this.trigger.options.tipType = "success";
this.element.removeClass("combo-error");
} else {
@ -41595,7 +41626,7 @@ BI.SearchTextValueTrigger = BI.inherit(BI.Trigger, {
self.editor = this;
},
watermark: o.watermark,
defaultText: o.text,
defaultText: o.defaultText,
text: this._digest(o.value, o.items),
value: o.value,
height: o.height,
@ -41635,7 +41666,7 @@ BI.SearchTextValueTrigger = BI.inherit(BI.Trigger, {
this.editor.setState(v);
},
_digest: function(vals, items){
_digest: function (vals, items) {
var o = this.options;
vals = BI.isArray(vals) ? vals : [vals];
var result = [];
@ -41679,6 +41710,7 @@ BI.SearchTextValueTrigger.EVENT_START = "EVENT_START";
BI.SearchTextValueTrigger.EVENT_CHANGE = "EVENT_CHANGE";
BI.shortcut("bi.search_text_value_trigger", BI.SearchTextValueTrigger);
/***/ }),
/* 507 */
/***/ (function(module, exports) {
@ -102423,7 +102455,7 @@ if (typeof Set !== "undefined" && Set.toString().match(/native code/)) {
}
function initMixins(vm, mixins) {
mixins = mixins || [];
mixins = (mixins || []).slice(0);
_.each(mixins.reverse(), function (mixinType) {
var mixin$$1 = getMixins(mixinType);

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_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

202
dist/core.js vendored

@ -1,4 +1,4 @@
/*! time: 2021-8-2 13:20:15 */
/*! time: 2021-8-5 13:10:45 */
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
@ -13506,6 +13506,14 @@ BI.BubblesController = BI.inherit(BI.Controller, {
this.storeBubbles[name].destroy();
delete this.storeBubbles[name];
return this;
},
removeAll: function () {
BI.each(this.storeBubbles, function (name, bubble) {
bubble.destroy();
});
this.storeBubbles = {};
return this;
}
});
@ -13616,21 +13624,21 @@ BI.LayerController = BI.inherit(BI.Controller, {
return widget;
},
hide: function (name, callback) {
show: function (name, callback) {
if (!this.has(name)) {
return this;
}
this._getLayout(name).invisible();
this._getLayout(name).element.hide(0, callback);
this._getLayout(name).visible();
this._getLayout(name).element.css("z-index", this.zindex++).show(0, callback).trigger("__resize__");
return this;
},
show: function (name, callback) {
hide: function (name, callback) {
if (!this.has(name)) {
return this;
}
this._getLayout(name).visible();
this._getLayout(name).element.css("z-index", this.zindex++).show(0, callback).trigger("__resize__");
this._getLayout(name).invisible();
this._getLayout(name).element.hide(0, callback);
return this;
},
@ -13731,12 +13739,8 @@ BI.PopoverController = BI.inherit(BI.Controller, {
this.zindexMap = {};
},
_check: function (name) {
return BI.isNotNull(this.floatManager[name]);
},
create: function (name, options, context) {
if (this._check(name)) {
if (this.has(name)) {
return this;
}
var popover = BI.createWidget(options || {}, {
@ -13746,48 +13750,8 @@ BI.PopoverController = BI.inherit(BI.Controller, {
return this;
},
add: function (name, popover, options, context) {
var self = this;
options || (options = {});
if (this._check(name)) {
return this;
}
this.floatContainer[name] = BI.createWidget({
type: "bi.absolute",
cls: "bi-popup-view",
items: [{
el: (this.floatLayer[name] = BI.createWidget({
type: "bi.absolute",
items: [popover]
}, context)),
left: 0,
right: 0,
top: 0,
bottom: 0
}]
});
this.floatManager[name] = popover;
(function (key) {
popover.on(BI.Popover.EVENT_CLOSE, function () {
self.close(key);
});
})(name);
BI.createWidget({
type: "bi.absolute",
element: options.container || this.options.render,
items: [{
el: this.floatContainer[name],
left: 0,
right: 0,
top: 0,
bottom: 0
}]
});
return this;
},
open: function (name) {
if (!this._check(name)) {
if (!this.has(name)) {
return this;
}
if (!this.floatOpened[name]) {
@ -13819,7 +13783,7 @@ BI.PopoverController = BI.inherit(BI.Controller, {
},
close: function (name) {
if (!this._check(name)) {
if (!this.has(name)) {
return this;
}
if (this.floatOpened[name]) {
@ -13830,10 +13794,66 @@ BI.PopoverController = BI.inherit(BI.Controller, {
return this;
},
show: function (name) {
return this.open(name);
},
hide: function (name) {
return this.close(name);
},
isVisible: function (name) {
return this.has(name) && this.floatOpened[name] === true;
},
add: function (name, popover, options, context) {
var self = this;
options || (options = {});
if (this.has(name)) {
return this;
}
this.floatContainer[name] = BI.createWidget({
type: "bi.absolute",
cls: "bi-popup-view",
items: [{
el: (this.floatLayer[name] = BI.createWidget({
type: "bi.absolute",
items: [popover]
}, context)),
left: 0,
right: 0,
top: 0,
bottom: 0
}]
});
this.floatManager[name] = popover;
(function (key) {
popover.on(BI.Popover.EVENT_CLOSE, function () {
self.close(key);
});
})(name);
BI.createWidget({
type: "bi.absolute",
element: options.container || this.options.render,
items: [{
el: this.floatContainer[name],
left: 0,
right: 0,
top: 0,
bottom: 0
}]
});
return this;
},
get: function (name) {
return this.floatManager[name];
},
has: function (name) {
return BI.isNotNull(this.floatManager[name]);
},
remove: function (name) {
if (!this._check(name)) {
return this;
@ -13965,32 +13985,6 @@ BI.TooltipsController = BI.inherit(BI.Controller, {
});
},
hide: function (name, callback) {
if (!this.has(name)) {
return this;
}
delete this.showingTips[name];
this.get(name).element.hide(0, callback);
this.get(name).invisible();
return this;
},
create: function (name, text, level, context) {
if (!this.has(name)) {
var tooltip = this._createTooltip(text, level);
this.add(name, tooltip);
BI.createWidget({
type: "bi.absolute",
element: context || "body",
items: [{
el: tooltip
}]
});
tooltip.invisible();
}
return this.get(name);
},
// opt: {container: '', belowMouse: false}
show: function (e, name, text, level, context, opt) {
opt || (opt = {});
@ -14044,6 +14038,32 @@ BI.TooltipsController = BI.inherit(BI.Controller, {
return this;
},
hide: function (name, callback) {
if (!this.has(name)) {
return this;
}
delete this.showingTips[name];
this.get(name).element.hide(0, callback);
this.get(name).invisible();
return this;
},
create: function (name, text, level, context) {
if (!this.has(name)) {
var tooltip = this._createTooltip(text, level);
this.add(name, tooltip);
BI.createWidget({
type: "bi.absolute",
element: context || "body",
items: [{
el: tooltip
}]
});
tooltip.invisible();
}
return this.get(name);
},
add: function (name, bubble) {
if (this.has(name)) {
return this;
@ -14071,6 +14091,15 @@ BI.TooltipsController = BI.inherit(BI.Controller, {
this.tooltipsManager[name].destroy();
delete this.tooltipsManager[name];
return this;
},
removeAll: function () {
BI.each(this.tooltipsManager, function (name, tooltip) {
tooltip.destroy();
});
this.tooltipsManager = {};
this.showingTips = {};
return this;
}
});
@ -41327,6 +41356,7 @@ BI.SearchTextValueCombo = BI.inherit(BI.Widget, {
baseCls: "bi-search-text-value-combo",
height: 24,
text: "",
defaultText: "",
items: [],
tipType: "",
warningTitle: "",
@ -41356,6 +41386,7 @@ BI.SearchTextValueCombo = BI.inherit(BI.Widget, {
items: o.items,
height: o.height - 2,
text: o.text,
defaultText: o.defaultText,
value: o.value,
tipType: o.tipType,
warningTitle: o.warningTitle,
@ -41437,13 +41468,13 @@ BI.SearchTextValueCombo = BI.inherit(BI.Widget, {
created: function () {
var o = this.options;
if(BI.isKey(o.value)) {
if (BI.isKey(o.value)) {
this._checkError(o.value);
}
},
_checkError: function (v) {
if(BI.isNull(v) || BI.isEmptyArray(v) || BI.isEmptyString(v)) {
if (BI.isNull(v) || BI.isEmptyArray(v) || BI.isEmptyString(v)) {
this.trigger.options.tipType = "success";
this.element.removeClass("combo-error");
} else {
@ -41595,7 +41626,7 @@ BI.SearchTextValueTrigger = BI.inherit(BI.Trigger, {
self.editor = this;
},
watermark: o.watermark,
defaultText: o.text,
defaultText: o.defaultText,
text: this._digest(o.value, o.items),
value: o.value,
height: o.height,
@ -41635,7 +41666,7 @@ BI.SearchTextValueTrigger = BI.inherit(BI.Trigger, {
this.editor.setState(v);
},
_digest: function(vals, items){
_digest: function (vals, items) {
var o = this.options;
vals = BI.isArray(vals) ? vals : [vals];
var result = [];
@ -41679,6 +41710,7 @@ BI.SearchTextValueTrigger.EVENT_START = "EVENT_START";
BI.SearchTextValueTrigger.EVENT_CHANGE = "EVENT_CHANGE";
BI.shortcut("bi.search_text_value_trigger", BI.SearchTextValueTrigger);
/***/ }),
/* 507 */
/***/ (function(module, exports) {
@ -102261,7 +102293,7 @@ if (typeof Set !== "undefined" && Set.toString().match(/native code/)) {
}
function initMixins(vm, mixins) {
mixins = mixins || [];
mixins = (mixins || []).slice(0);
_.each(mixins.reverse(), function (mixinType) {
var mixin$$1 = getMixins(mixinType);

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

202
dist/demo.js vendored

@ -1,4 +1,4 @@
/*! time: 2021-8-2 13:20:15 */
/*! time: 2021-8-5 13:10:45 */
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
@ -13506,6 +13506,14 @@ BI.BubblesController = BI.inherit(BI.Controller, {
this.storeBubbles[name].destroy();
delete this.storeBubbles[name];
return this;
},
removeAll: function () {
BI.each(this.storeBubbles, function (name, bubble) {
bubble.destroy();
});
this.storeBubbles = {};
return this;
}
});
@ -13616,21 +13624,21 @@ BI.LayerController = BI.inherit(BI.Controller, {
return widget;
},
hide: function (name, callback) {
show: function (name, callback) {
if (!this.has(name)) {
return this;
}
this._getLayout(name).invisible();
this._getLayout(name).element.hide(0, callback);
this._getLayout(name).visible();
this._getLayout(name).element.css("z-index", this.zindex++).show(0, callback).trigger("__resize__");
return this;
},
show: function (name, callback) {
hide: function (name, callback) {
if (!this.has(name)) {
return this;
}
this._getLayout(name).visible();
this._getLayout(name).element.css("z-index", this.zindex++).show(0, callback).trigger("__resize__");
this._getLayout(name).invisible();
this._getLayout(name).element.hide(0, callback);
return this;
},
@ -13731,12 +13739,8 @@ BI.PopoverController = BI.inherit(BI.Controller, {
this.zindexMap = {};
},
_check: function (name) {
return BI.isNotNull(this.floatManager[name]);
},
create: function (name, options, context) {
if (this._check(name)) {
if (this.has(name)) {
return this;
}
var popover = BI.createWidget(options || {}, {
@ -13746,48 +13750,8 @@ BI.PopoverController = BI.inherit(BI.Controller, {
return this;
},
add: function (name, popover, options, context) {
var self = this;
options || (options = {});
if (this._check(name)) {
return this;
}
this.floatContainer[name] = BI.createWidget({
type: "bi.absolute",
cls: "bi-popup-view",
items: [{
el: (this.floatLayer[name] = BI.createWidget({
type: "bi.absolute",
items: [popover]
}, context)),
left: 0,
right: 0,
top: 0,
bottom: 0
}]
});
this.floatManager[name] = popover;
(function (key) {
popover.on(BI.Popover.EVENT_CLOSE, function () {
self.close(key);
});
})(name);
BI.createWidget({
type: "bi.absolute",
element: options.container || this.options.render,
items: [{
el: this.floatContainer[name],
left: 0,
right: 0,
top: 0,
bottom: 0
}]
});
return this;
},
open: function (name) {
if (!this._check(name)) {
if (!this.has(name)) {
return this;
}
if (!this.floatOpened[name]) {
@ -13819,7 +13783,7 @@ BI.PopoverController = BI.inherit(BI.Controller, {
},
close: function (name) {
if (!this._check(name)) {
if (!this.has(name)) {
return this;
}
if (this.floatOpened[name]) {
@ -13830,10 +13794,66 @@ BI.PopoverController = BI.inherit(BI.Controller, {
return this;
},
show: function (name) {
return this.open(name);
},
hide: function (name) {
return this.close(name);
},
isVisible: function (name) {
return this.has(name) && this.floatOpened[name] === true;
},
add: function (name, popover, options, context) {
var self = this;
options || (options = {});
if (this.has(name)) {
return this;
}
this.floatContainer[name] = BI.createWidget({
type: "bi.absolute",
cls: "bi-popup-view",
items: [{
el: (this.floatLayer[name] = BI.createWidget({
type: "bi.absolute",
items: [popover]
}, context)),
left: 0,
right: 0,
top: 0,
bottom: 0
}]
});
this.floatManager[name] = popover;
(function (key) {
popover.on(BI.Popover.EVENT_CLOSE, function () {
self.close(key);
});
})(name);
BI.createWidget({
type: "bi.absolute",
element: options.container || this.options.render,
items: [{
el: this.floatContainer[name],
left: 0,
right: 0,
top: 0,
bottom: 0
}]
});
return this;
},
get: function (name) {
return this.floatManager[name];
},
has: function (name) {
return BI.isNotNull(this.floatManager[name]);
},
remove: function (name) {
if (!this._check(name)) {
return this;
@ -13965,32 +13985,6 @@ BI.TooltipsController = BI.inherit(BI.Controller, {
});
},
hide: function (name, callback) {
if (!this.has(name)) {
return this;
}
delete this.showingTips[name];
this.get(name).element.hide(0, callback);
this.get(name).invisible();
return this;
},
create: function (name, text, level, context) {
if (!this.has(name)) {
var tooltip = this._createTooltip(text, level);
this.add(name, tooltip);
BI.createWidget({
type: "bi.absolute",
element: context || "body",
items: [{
el: tooltip
}]
});
tooltip.invisible();
}
return this.get(name);
},
// opt: {container: '', belowMouse: false}
show: function (e, name, text, level, context, opt) {
opt || (opt = {});
@ -14044,6 +14038,32 @@ BI.TooltipsController = BI.inherit(BI.Controller, {
return this;
},
hide: function (name, callback) {
if (!this.has(name)) {
return this;
}
delete this.showingTips[name];
this.get(name).element.hide(0, callback);
this.get(name).invisible();
return this;
},
create: function (name, text, level, context) {
if (!this.has(name)) {
var tooltip = this._createTooltip(text, level);
this.add(name, tooltip);
BI.createWidget({
type: "bi.absolute",
element: context || "body",
items: [{
el: tooltip
}]
});
tooltip.invisible();
}
return this.get(name);
},
add: function (name, bubble) {
if (this.has(name)) {
return this;
@ -14071,6 +14091,15 @@ BI.TooltipsController = BI.inherit(BI.Controller, {
this.tooltipsManager[name].destroy();
delete this.tooltipsManager[name];
return this;
},
removeAll: function () {
BI.each(this.tooltipsManager, function (name, tooltip) {
tooltip.destroy();
});
this.tooltipsManager = {};
this.showingTips = {};
return this;
}
});
@ -41327,6 +41356,7 @@ BI.SearchTextValueCombo = BI.inherit(BI.Widget, {
baseCls: "bi-search-text-value-combo",
height: 24,
text: "",
defaultText: "",
items: [],
tipType: "",
warningTitle: "",
@ -41356,6 +41386,7 @@ BI.SearchTextValueCombo = BI.inherit(BI.Widget, {
items: o.items,
height: o.height - 2,
text: o.text,
defaultText: o.defaultText,
value: o.value,
tipType: o.tipType,
warningTitle: o.warningTitle,
@ -41437,13 +41468,13 @@ BI.SearchTextValueCombo = BI.inherit(BI.Widget, {
created: function () {
var o = this.options;
if(BI.isKey(o.value)) {
if (BI.isKey(o.value)) {
this._checkError(o.value);
}
},
_checkError: function (v) {
if(BI.isNull(v) || BI.isEmptyArray(v) || BI.isEmptyString(v)) {
if (BI.isNull(v) || BI.isEmptyArray(v) || BI.isEmptyString(v)) {
this.trigger.options.tipType = "success";
this.element.removeClass("combo-error");
} else {
@ -41595,7 +41626,7 @@ BI.SearchTextValueTrigger = BI.inherit(BI.Trigger, {
self.editor = this;
},
watermark: o.watermark,
defaultText: o.text,
defaultText: o.defaultText,
text: this._digest(o.value, o.items),
value: o.value,
height: o.height,
@ -41635,7 +41666,7 @@ BI.SearchTextValueTrigger = BI.inherit(BI.Trigger, {
this.editor.setState(v);
},
_digest: function(vals, items){
_digest: function (vals, items) {
var o = this.options;
vals = BI.isArray(vals) ? vals : [vals];
var result = [];
@ -41679,6 +41710,7 @@ BI.SearchTextValueTrigger.EVENT_START = "EVENT_START";
BI.SearchTextValueTrigger.EVENT_CHANGE = "EVENT_CHANGE";
BI.shortcut("bi.search_text_value_trigger", BI.SearchTextValueTrigger);
/***/ }),
/* 507 */
/***/ (function(module, exports) {
@ -102423,7 +102455,7 @@ if (typeof Set !== "undefined" && Set.toString().match(/native code/)) {
}
function initMixins(vm, mixins) {
mixins = mixins || [];
mixins = (mixins || []).slice(0);
_.each(mixins.reverse(), function (mixinType) {
var mixin$$1 = getMixins(mixinType);

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

202
dist/fineui.js vendored

@ -1,4 +1,4 @@
/*! time: 2021-8-2 13:20:15 */
/*! time: 2021-8-5 13:10:45 */
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
@ -13506,6 +13506,14 @@ BI.BubblesController = BI.inherit(BI.Controller, {
this.storeBubbles[name].destroy();
delete this.storeBubbles[name];
return this;
},
removeAll: function () {
BI.each(this.storeBubbles, function (name, bubble) {
bubble.destroy();
});
this.storeBubbles = {};
return this;
}
});
@ -13616,21 +13624,21 @@ BI.LayerController = BI.inherit(BI.Controller, {
return widget;
},
hide: function (name, callback) {
show: function (name, callback) {
if (!this.has(name)) {
return this;
}
this._getLayout(name).invisible();
this._getLayout(name).element.hide(0, callback);
this._getLayout(name).visible();
this._getLayout(name).element.css("z-index", this.zindex++).show(0, callback).trigger("__resize__");
return this;
},
show: function (name, callback) {
hide: function (name, callback) {
if (!this.has(name)) {
return this;
}
this._getLayout(name).visible();
this._getLayout(name).element.css("z-index", this.zindex++).show(0, callback).trigger("__resize__");
this._getLayout(name).invisible();
this._getLayout(name).element.hide(0, callback);
return this;
},
@ -13731,12 +13739,8 @@ BI.PopoverController = BI.inherit(BI.Controller, {
this.zindexMap = {};
},
_check: function (name) {
return BI.isNotNull(this.floatManager[name]);
},
create: function (name, options, context) {
if (this._check(name)) {
if (this.has(name)) {
return this;
}
var popover = BI.createWidget(options || {}, {
@ -13746,48 +13750,8 @@ BI.PopoverController = BI.inherit(BI.Controller, {
return this;
},
add: function (name, popover, options, context) {
var self = this;
options || (options = {});
if (this._check(name)) {
return this;
}
this.floatContainer[name] = BI.createWidget({
type: "bi.absolute",
cls: "bi-popup-view",
items: [{
el: (this.floatLayer[name] = BI.createWidget({
type: "bi.absolute",
items: [popover]
}, context)),
left: 0,
right: 0,
top: 0,
bottom: 0
}]
});
this.floatManager[name] = popover;
(function (key) {
popover.on(BI.Popover.EVENT_CLOSE, function () {
self.close(key);
});
})(name);
BI.createWidget({
type: "bi.absolute",
element: options.container || this.options.render,
items: [{
el: this.floatContainer[name],
left: 0,
right: 0,
top: 0,
bottom: 0
}]
});
return this;
},
open: function (name) {
if (!this._check(name)) {
if (!this.has(name)) {
return this;
}
if (!this.floatOpened[name]) {
@ -13819,7 +13783,7 @@ BI.PopoverController = BI.inherit(BI.Controller, {
},
close: function (name) {
if (!this._check(name)) {
if (!this.has(name)) {
return this;
}
if (this.floatOpened[name]) {
@ -13830,10 +13794,66 @@ BI.PopoverController = BI.inherit(BI.Controller, {
return this;
},
show: function (name) {
return this.open(name);
},
hide: function (name) {
return this.close(name);
},
isVisible: function (name) {
return this.has(name) && this.floatOpened[name] === true;
},
add: function (name, popover, options, context) {
var self = this;
options || (options = {});
if (this.has(name)) {
return this;
}
this.floatContainer[name] = BI.createWidget({
type: "bi.absolute",
cls: "bi-popup-view",
items: [{
el: (this.floatLayer[name] = BI.createWidget({
type: "bi.absolute",
items: [popover]
}, context)),
left: 0,
right: 0,
top: 0,
bottom: 0
}]
});
this.floatManager[name] = popover;
(function (key) {
popover.on(BI.Popover.EVENT_CLOSE, function () {
self.close(key);
});
})(name);
BI.createWidget({
type: "bi.absolute",
element: options.container || this.options.render,
items: [{
el: this.floatContainer[name],
left: 0,
right: 0,
top: 0,
bottom: 0
}]
});
return this;
},
get: function (name) {
return this.floatManager[name];
},
has: function (name) {
return BI.isNotNull(this.floatManager[name]);
},
remove: function (name) {
if (!this._check(name)) {
return this;
@ -13965,32 +13985,6 @@ BI.TooltipsController = BI.inherit(BI.Controller, {
});
},
hide: function (name, callback) {
if (!this.has(name)) {
return this;
}
delete this.showingTips[name];
this.get(name).element.hide(0, callback);
this.get(name).invisible();
return this;
},
create: function (name, text, level, context) {
if (!this.has(name)) {
var tooltip = this._createTooltip(text, level);
this.add(name, tooltip);
BI.createWidget({
type: "bi.absolute",
element: context || "body",
items: [{
el: tooltip
}]
});
tooltip.invisible();
}
return this.get(name);
},
// opt: {container: '', belowMouse: false}
show: function (e, name, text, level, context, opt) {
opt || (opt = {});
@ -14044,6 +14038,32 @@ BI.TooltipsController = BI.inherit(BI.Controller, {
return this;
},
hide: function (name, callback) {
if (!this.has(name)) {
return this;
}
delete this.showingTips[name];
this.get(name).element.hide(0, callback);
this.get(name).invisible();
return this;
},
create: function (name, text, level, context) {
if (!this.has(name)) {
var tooltip = this._createTooltip(text, level);
this.add(name, tooltip);
BI.createWidget({
type: "bi.absolute",
element: context || "body",
items: [{
el: tooltip
}]
});
tooltip.invisible();
}
return this.get(name);
},
add: function (name, bubble) {
if (this.has(name)) {
return this;
@ -14071,6 +14091,15 @@ BI.TooltipsController = BI.inherit(BI.Controller, {
this.tooltipsManager[name].destroy();
delete this.tooltipsManager[name];
return this;
},
removeAll: function () {
BI.each(this.tooltipsManager, function (name, tooltip) {
tooltip.destroy();
});
this.tooltipsManager = {};
this.showingTips = {};
return this;
}
});
@ -41327,6 +41356,7 @@ BI.SearchTextValueCombo = BI.inherit(BI.Widget, {
baseCls: "bi-search-text-value-combo",
height: 24,
text: "",
defaultText: "",
items: [],
tipType: "",
warningTitle: "",
@ -41356,6 +41386,7 @@ BI.SearchTextValueCombo = BI.inherit(BI.Widget, {
items: o.items,
height: o.height - 2,
text: o.text,
defaultText: o.defaultText,
value: o.value,
tipType: o.tipType,
warningTitle: o.warningTitle,
@ -41437,13 +41468,13 @@ BI.SearchTextValueCombo = BI.inherit(BI.Widget, {
created: function () {
var o = this.options;
if(BI.isKey(o.value)) {
if (BI.isKey(o.value)) {
this._checkError(o.value);
}
},
_checkError: function (v) {
if(BI.isNull(v) || BI.isEmptyArray(v) || BI.isEmptyString(v)) {
if (BI.isNull(v) || BI.isEmptyArray(v) || BI.isEmptyString(v)) {
this.trigger.options.tipType = "success";
this.element.removeClass("combo-error");
} else {
@ -41595,7 +41626,7 @@ BI.SearchTextValueTrigger = BI.inherit(BI.Trigger, {
self.editor = this;
},
watermark: o.watermark,
defaultText: o.text,
defaultText: o.defaultText,
text: this._digest(o.value, o.items),
value: o.value,
height: o.height,
@ -41635,7 +41666,7 @@ BI.SearchTextValueTrigger = BI.inherit(BI.Trigger, {
this.editor.setState(v);
},
_digest: function(vals, items){
_digest: function (vals, items) {
var o = this.options;
vals = BI.isArray(vals) ? vals : [vals];
var result = [];
@ -41679,6 +41710,7 @@ BI.SearchTextValueTrigger.EVENT_START = "EVENT_START";
BI.SearchTextValueTrigger.EVENT_CHANGE = "EVENT_CHANGE";
BI.shortcut("bi.search_text_value_trigger", BI.SearchTextValueTrigger);
/***/ }),
/* 507 */
/***/ (function(module, exports) {
@ -102423,7 +102455,7 @@ if (typeof Set !== "undefined" && Set.toString().match(/native code/)) {
}
function initMixins(vm, mixins) {
mixins = mixins || [];
mixins = (mixins || []).slice(0);
_.each(mixins.reverse(), function (mixinType) {
var mixin$$1 = getMixins(mixinType);

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.proxy.css vendored

File diff suppressed because one or more lines are too long

202
dist/fineui.proxy.js vendored

@ -1,4 +1,4 @@
/*! time: 2021-8-2 13:20:15 */
/*! time: 2021-8-5 13:10:45 */
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
@ -10967,6 +10967,14 @@ BI.BubblesController = BI.inherit(BI.Controller, {
this.storeBubbles[name].destroy();
delete this.storeBubbles[name];
return this;
},
removeAll: function () {
BI.each(this.storeBubbles, function (name, bubble) {
bubble.destroy();
});
this.storeBubbles = {};
return this;
}
});
@ -11077,21 +11085,21 @@ BI.LayerController = BI.inherit(BI.Controller, {
return widget;
},
hide: function (name, callback) {
show: function (name, callback) {
if (!this.has(name)) {
return this;
}
this._getLayout(name).invisible();
this._getLayout(name).element.hide(0, callback);
this._getLayout(name).visible();
this._getLayout(name).element.css("z-index", this.zindex++).show(0, callback).trigger("__resize__");
return this;
},
show: function (name, callback) {
hide: function (name, callback) {
if (!this.has(name)) {
return this;
}
this._getLayout(name).visible();
this._getLayout(name).element.css("z-index", this.zindex++).show(0, callback).trigger("__resize__");
this._getLayout(name).invisible();
this._getLayout(name).element.hide(0, callback);
return this;
},
@ -11192,12 +11200,8 @@ BI.PopoverController = BI.inherit(BI.Controller, {
this.zindexMap = {};
},
_check: function (name) {
return BI.isNotNull(this.floatManager[name]);
},
create: function (name, options, context) {
if (this._check(name)) {
if (this.has(name)) {
return this;
}
var popover = BI.createWidget(options || {}, {
@ -11207,48 +11211,8 @@ BI.PopoverController = BI.inherit(BI.Controller, {
return this;
},
add: function (name, popover, options, context) {
var self = this;
options || (options = {});
if (this._check(name)) {
return this;
}
this.floatContainer[name] = BI.createWidget({
type: "bi.absolute",
cls: "bi-popup-view",
items: [{
el: (this.floatLayer[name] = BI.createWidget({
type: "bi.absolute",
items: [popover]
}, context)),
left: 0,
right: 0,
top: 0,
bottom: 0
}]
});
this.floatManager[name] = popover;
(function (key) {
popover.on(BI.Popover.EVENT_CLOSE, function () {
self.close(key);
});
})(name);
BI.createWidget({
type: "bi.absolute",
element: options.container || this.options.render,
items: [{
el: this.floatContainer[name],
left: 0,
right: 0,
top: 0,
bottom: 0
}]
});
return this;
},
open: function (name) {
if (!this._check(name)) {
if (!this.has(name)) {
return this;
}
if (!this.floatOpened[name]) {
@ -11280,7 +11244,7 @@ BI.PopoverController = BI.inherit(BI.Controller, {
},
close: function (name) {
if (!this._check(name)) {
if (!this.has(name)) {
return this;
}
if (this.floatOpened[name]) {
@ -11291,10 +11255,66 @@ BI.PopoverController = BI.inherit(BI.Controller, {
return this;
},
show: function (name) {
return this.open(name);
},
hide: function (name) {
return this.close(name);
},
isVisible: function (name) {
return this.has(name) && this.floatOpened[name] === true;
},
add: function (name, popover, options, context) {
var self = this;
options || (options = {});
if (this.has(name)) {
return this;
}
this.floatContainer[name] = BI.createWidget({
type: "bi.absolute",
cls: "bi-popup-view",
items: [{
el: (this.floatLayer[name] = BI.createWidget({
type: "bi.absolute",
items: [popover]
}, context)),
left: 0,
right: 0,
top: 0,
bottom: 0
}]
});
this.floatManager[name] = popover;
(function (key) {
popover.on(BI.Popover.EVENT_CLOSE, function () {
self.close(key);
});
})(name);
BI.createWidget({
type: "bi.absolute",
element: options.container || this.options.render,
items: [{
el: this.floatContainer[name],
left: 0,
right: 0,
top: 0,
bottom: 0
}]
});
return this;
},
get: function (name) {
return this.floatManager[name];
},
has: function (name) {
return BI.isNotNull(this.floatManager[name]);
},
remove: function (name) {
if (!this._check(name)) {
return this;
@ -11426,32 +11446,6 @@ BI.TooltipsController = BI.inherit(BI.Controller, {
});
},
hide: function (name, callback) {
if (!this.has(name)) {
return this;
}
delete this.showingTips[name];
this.get(name).element.hide(0, callback);
this.get(name).invisible();
return this;
},
create: function (name, text, level, context) {
if (!this.has(name)) {
var tooltip = this._createTooltip(text, level);
this.add(name, tooltip);
BI.createWidget({
type: "bi.absolute",
element: context || "body",
items: [{
el: tooltip
}]
});
tooltip.invisible();
}
return this.get(name);
},
// opt: {container: '', belowMouse: false}
show: function (e, name, text, level, context, opt) {
opt || (opt = {});
@ -11505,6 +11499,32 @@ BI.TooltipsController = BI.inherit(BI.Controller, {
return this;
},
hide: function (name, callback) {
if (!this.has(name)) {
return this;
}
delete this.showingTips[name];
this.get(name).element.hide(0, callback);
this.get(name).invisible();
return this;
},
create: function (name, text, level, context) {
if (!this.has(name)) {
var tooltip = this._createTooltip(text, level);
this.add(name, tooltip);
BI.createWidget({
type: "bi.absolute",
element: context || "body",
items: [{
el: tooltip
}]
});
tooltip.invisible();
}
return this.get(name);
},
add: function (name, bubble) {
if (this.has(name)) {
return this;
@ -11532,6 +11552,15 @@ BI.TooltipsController = BI.inherit(BI.Controller, {
this.tooltipsManager[name].destroy();
delete this.tooltipsManager[name];
return this;
},
removeAll: function () {
BI.each(this.tooltipsManager, function (name, tooltip) {
tooltip.destroy();
});
this.tooltipsManager = {};
this.showingTips = {};
return this;
}
});
@ -38788,6 +38817,7 @@ BI.SearchTextValueCombo = BI.inherit(BI.Widget, {
baseCls: "bi-search-text-value-combo",
height: 24,
text: "",
defaultText: "",
items: [],
tipType: "",
warningTitle: "",
@ -38817,6 +38847,7 @@ BI.SearchTextValueCombo = BI.inherit(BI.Widget, {
items: o.items,
height: o.height - 2,
text: o.text,
defaultText: o.defaultText,
value: o.value,
tipType: o.tipType,
warningTitle: o.warningTitle,
@ -38898,13 +38929,13 @@ BI.SearchTextValueCombo = BI.inherit(BI.Widget, {
created: function () {
var o = this.options;
if(BI.isKey(o.value)) {
if (BI.isKey(o.value)) {
this._checkError(o.value);
}
},
_checkError: function (v) {
if(BI.isNull(v) || BI.isEmptyArray(v) || BI.isEmptyString(v)) {
if (BI.isNull(v) || BI.isEmptyArray(v) || BI.isEmptyString(v)) {
this.trigger.options.tipType = "success";
this.element.removeClass("combo-error");
} else {
@ -39056,7 +39087,7 @@ BI.SearchTextValueTrigger = BI.inherit(BI.Trigger, {
self.editor = this;
},
watermark: o.watermark,
defaultText: o.text,
defaultText: o.defaultText,
text: this._digest(o.value, o.items),
value: o.value,
height: o.height,
@ -39096,7 +39127,7 @@ BI.SearchTextValueTrigger = BI.inherit(BI.Trigger, {
this.editor.setState(v);
},
_digest: function(vals, items){
_digest: function (vals, items) {
var o = this.options;
vals = BI.isArray(vals) ? vals : [vals];
var result = [];
@ -39140,6 +39171,7 @@ BI.SearchTextValueTrigger.EVENT_START = "EVENT_START";
BI.SearchTextValueTrigger.EVENT_CHANGE = "EVENT_CHANGE";
BI.shortcut("bi.search_text_value_trigger", BI.SearchTextValueTrigger);
/***/ }),
/* 507 */
/***/ (function(module, exports) {
@ -100031,7 +100063,7 @@ module.exports = __webpack_require__(716);
}
function initMixins(vm, mixins) {
mixins = mixins || [];
mixins = (mixins || []).slice(0);
_.each(mixins.reverse(), function (mixinType) {
var mixin = getMixins(mixinType);

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

202
dist/fineui_without_jquery_polyfill.js vendored

@ -1,4 +1,4 @@
/*! time: 2021-8-2 13:20:15 */
/*! time: 2021-8-5 13:10:45 */
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
@ -10582,6 +10582,14 @@ BI.BubblesController = BI.inherit(BI.Controller, {
this.storeBubbles[name].destroy();
delete this.storeBubbles[name];
return this;
},
removeAll: function () {
BI.each(this.storeBubbles, function (name, bubble) {
bubble.destroy();
});
this.storeBubbles = {};
return this;
}
});
@ -10692,21 +10700,21 @@ BI.LayerController = BI.inherit(BI.Controller, {
return widget;
},
hide: function (name, callback) {
show: function (name, callback) {
if (!this.has(name)) {
return this;
}
this._getLayout(name).invisible();
this._getLayout(name).element.hide(0, callback);
this._getLayout(name).visible();
this._getLayout(name).element.css("z-index", this.zindex++).show(0, callback).trigger("__resize__");
return this;
},
show: function (name, callback) {
hide: function (name, callback) {
if (!this.has(name)) {
return this;
}
this._getLayout(name).visible();
this._getLayout(name).element.css("z-index", this.zindex++).show(0, callback).trigger("__resize__");
this._getLayout(name).invisible();
this._getLayout(name).element.hide(0, callback);
return this;
},
@ -10807,12 +10815,8 @@ BI.PopoverController = BI.inherit(BI.Controller, {
this.zindexMap = {};
},
_check: function (name) {
return BI.isNotNull(this.floatManager[name]);
},
create: function (name, options, context) {
if (this._check(name)) {
if (this.has(name)) {
return this;
}
var popover = BI.createWidget(options || {}, {
@ -10822,48 +10826,8 @@ BI.PopoverController = BI.inherit(BI.Controller, {
return this;
},
add: function (name, popover, options, context) {
var self = this;
options || (options = {});
if (this._check(name)) {
return this;
}
this.floatContainer[name] = BI.createWidget({
type: "bi.absolute",
cls: "bi-popup-view",
items: [{
el: (this.floatLayer[name] = BI.createWidget({
type: "bi.absolute",
items: [popover]
}, context)),
left: 0,
right: 0,
top: 0,
bottom: 0
}]
});
this.floatManager[name] = popover;
(function (key) {
popover.on(BI.Popover.EVENT_CLOSE, function () {
self.close(key);
});
})(name);
BI.createWidget({
type: "bi.absolute",
element: options.container || this.options.render,
items: [{
el: this.floatContainer[name],
left: 0,
right: 0,
top: 0,
bottom: 0
}]
});
return this;
},
open: function (name) {
if (!this._check(name)) {
if (!this.has(name)) {
return this;
}
if (!this.floatOpened[name]) {
@ -10895,7 +10859,7 @@ BI.PopoverController = BI.inherit(BI.Controller, {
},
close: function (name) {
if (!this._check(name)) {
if (!this.has(name)) {
return this;
}
if (this.floatOpened[name]) {
@ -10906,10 +10870,66 @@ BI.PopoverController = BI.inherit(BI.Controller, {
return this;
},
show: function (name) {
return this.open(name);
},
hide: function (name) {
return this.close(name);
},
isVisible: function (name) {
return this.has(name) && this.floatOpened[name] === true;
},
add: function (name, popover, options, context) {
var self = this;
options || (options = {});
if (this.has(name)) {
return this;
}
this.floatContainer[name] = BI.createWidget({
type: "bi.absolute",
cls: "bi-popup-view",
items: [{
el: (this.floatLayer[name] = BI.createWidget({
type: "bi.absolute",
items: [popover]
}, context)),
left: 0,
right: 0,
top: 0,
bottom: 0
}]
});
this.floatManager[name] = popover;
(function (key) {
popover.on(BI.Popover.EVENT_CLOSE, function () {
self.close(key);
});
})(name);
BI.createWidget({
type: "bi.absolute",
element: options.container || this.options.render,
items: [{
el: this.floatContainer[name],
left: 0,
right: 0,
top: 0,
bottom: 0
}]
});
return this;
},
get: function (name) {
return this.floatManager[name];
},
has: function (name) {
return BI.isNotNull(this.floatManager[name]);
},
remove: function (name) {
if (!this._check(name)) {
return this;
@ -11041,32 +11061,6 @@ BI.TooltipsController = BI.inherit(BI.Controller, {
});
},
hide: function (name, callback) {
if (!this.has(name)) {
return this;
}
delete this.showingTips[name];
this.get(name).element.hide(0, callback);
this.get(name).invisible();
return this;
},
create: function (name, text, level, context) {
if (!this.has(name)) {
var tooltip = this._createTooltip(text, level);
this.add(name, tooltip);
BI.createWidget({
type: "bi.absolute",
element: context || "body",
items: [{
el: tooltip
}]
});
tooltip.invisible();
}
return this.get(name);
},
// opt: {container: '', belowMouse: false}
show: function (e, name, text, level, context, opt) {
opt || (opt = {});
@ -11120,6 +11114,32 @@ BI.TooltipsController = BI.inherit(BI.Controller, {
return this;
},
hide: function (name, callback) {
if (!this.has(name)) {
return this;
}
delete this.showingTips[name];
this.get(name).element.hide(0, callback);
this.get(name).invisible();
return this;
},
create: function (name, text, level, context) {
if (!this.has(name)) {
var tooltip = this._createTooltip(text, level);
this.add(name, tooltip);
BI.createWidget({
type: "bi.absolute",
element: context || "body",
items: [{
el: tooltip
}]
});
tooltip.invisible();
}
return this.get(name);
},
add: function (name, bubble) {
if (this.has(name)) {
return this;
@ -11147,6 +11167,15 @@ BI.TooltipsController = BI.inherit(BI.Controller, {
this.tooltipsManager[name].destroy();
delete this.tooltipsManager[name];
return this;
},
removeAll: function () {
BI.each(this.tooltipsManager, function (name, tooltip) {
tooltip.destroy();
});
this.tooltipsManager = {};
this.showingTips = {};
return this;
}
});
@ -38403,6 +38432,7 @@ BI.SearchTextValueCombo = BI.inherit(BI.Widget, {
baseCls: "bi-search-text-value-combo",
height: 24,
text: "",
defaultText: "",
items: [],
tipType: "",
warningTitle: "",
@ -38432,6 +38462,7 @@ BI.SearchTextValueCombo = BI.inherit(BI.Widget, {
items: o.items,
height: o.height - 2,
text: o.text,
defaultText: o.defaultText,
value: o.value,
tipType: o.tipType,
warningTitle: o.warningTitle,
@ -38513,13 +38544,13 @@ BI.SearchTextValueCombo = BI.inherit(BI.Widget, {
created: function () {
var o = this.options;
if(BI.isKey(o.value)) {
if (BI.isKey(o.value)) {
this._checkError(o.value);
}
},
_checkError: function (v) {
if(BI.isNull(v) || BI.isEmptyArray(v) || BI.isEmptyString(v)) {
if (BI.isNull(v) || BI.isEmptyArray(v) || BI.isEmptyString(v)) {
this.trigger.options.tipType = "success";
this.element.removeClass("combo-error");
} else {
@ -38671,7 +38702,7 @@ BI.SearchTextValueTrigger = BI.inherit(BI.Trigger, {
self.editor = this;
},
watermark: o.watermark,
defaultText: o.text,
defaultText: o.defaultText,
text: this._digest(o.value, o.items),
value: o.value,
height: o.height,
@ -38711,7 +38742,7 @@ BI.SearchTextValueTrigger = BI.inherit(BI.Trigger, {
this.editor.setState(v);
},
_digest: function(vals, items){
_digest: function (vals, items) {
var o = this.options;
vals = BI.isArray(vals) ? vals : [vals];
var result = [];
@ -38755,6 +38786,7 @@ BI.SearchTextValueTrigger.EVENT_START = "EVENT_START";
BI.SearchTextValueTrigger.EVENT_CHANGE = "EVENT_CHANGE";
BI.shortcut("bi.search_text_value_trigger", BI.SearchTextValueTrigger);
/***/ }),
/* 507 */
/***/ (function(module, exports) {
@ -79715,7 +79747,7 @@ var _layout = __webpack_require__(3);
}
function initMixins(vm, mixins) {
mixins = mixins || [];
mixins = (mixins || []).slice(0);
_.each(mixins.reverse(), function (mixinType) {
var mixin$$1 = getMixins(mixinType);

2
dist/fineui_without_jquery_polyfill.js.map vendored

File diff suppressed because one or more lines are too long

2
dist/fix/fix.js vendored

@ -1259,7 +1259,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
}
function initMixins(vm, mixins) {
mixins = mixins || [];
mixins = (mixins || []).slice(0);
_.each(mixins.reverse(), function (mixinType) {
var mixin$$1 = getMixins(mixinType);

2
dist/fix/fix.proxy.js vendored

@ -1795,7 +1795,7 @@
}
function initMixins(vm, mixins) {
mixins = mixins || [];
mixins = (mixins || []).slice(0);
_.each(mixins.reverse(), function (mixinType) {
var mixin = getMixins(mixinType);

2
dist/font.css vendored

File diff suppressed because one or more lines are too long

BIN
dist/font/iconfont.eot vendored

Binary file not shown.

3096
dist/font/iconfont.svg vendored

File diff suppressed because it is too large Load Diff

Before

Width:  |  Height:  |  Size: 400 KiB

After

Width:  |  Height:  |  Size: 414 KiB

BIN
dist/font/iconfont.ttf vendored

Binary file not shown.

BIN
dist/font/iconfont.woff vendored

Binary file not shown.

BIN
dist/font/iconfont.woff2 vendored

Binary file not shown.

4
dist/lib/core/decorator/decorator.d.ts vendored

@ -66,9 +66,7 @@ export declare class Model<U extends {
} = {}> extends Fix.Model {
model: Pick<{
[key in keyof U["types"]]: U["types"][key];
}, U["context"][number]> & {
[key in keyof ReturnType<this["state"]>]: ReturnType<this["state"]>[key];
} & {
}, U["context"][number]> & ReturnType<this["state"]> & {
[key in keyof this["computed"]]: ReturnType<this["computed"][key]>;
};
store: this["actions"];

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-8-2 13:20:15 */
/*! time: 2021-8-5 13:10:45 */
/******/ (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.20210802132115",
"version": "2.0.20210805131211",
"description": "fineui",
"main": "dist/fineui.min.js",
"types": "dist/lib/index.d.ts",

6
src/case/combo/searchtextvaluecombo/combo.searchtextvalue.js

@ -7,6 +7,7 @@ BI.SearchTextValueCombo = BI.inherit(BI.Widget, {
baseCls: "bi-search-text-value-combo",
height: 24,
text: "",
defaultText: "",
items: [],
tipType: "",
warningTitle: "",
@ -36,6 +37,7 @@ BI.SearchTextValueCombo = BI.inherit(BI.Widget, {
items: o.items,
height: o.height - 2,
text: o.text,
defaultText: o.defaultText,
value: o.value,
tipType: o.tipType,
warningTitle: o.warningTitle,
@ -117,13 +119,13 @@ BI.SearchTextValueCombo = BI.inherit(BI.Widget, {
created: function () {
var o = this.options;
if(BI.isKey(o.value)) {
if (BI.isKey(o.value)) {
this._checkError(o.value);
}
},
_checkError: function (v) {
if(BI.isNull(v) || BI.isEmptyArray(v) || BI.isEmptyString(v)) {
if (BI.isNull(v) || BI.isEmptyArray(v) || BI.isEmptyString(v)) {
this.trigger.options.tipType = "success";
this.element.removeClass("combo-error");
} else {

6
src/case/combo/searchtextvaluecombo/trigger.searchtextvalue.js

@ -29,7 +29,7 @@ BI.SearchTextValueTrigger = BI.inherit(BI.Trigger, {
self.editor = this;
},
watermark: o.watermark,
defaultText: o.text,
defaultText: o.defaultText,
text: this._digest(o.value, o.items),
value: o.value,
height: o.height,
@ -69,7 +69,7 @@ BI.SearchTextValueTrigger = BI.inherit(BI.Trigger, {
this.editor.setState(v);
},
_digest: function(vals, items){
_digest: function (vals, items) {
var o = this.options;
vals = BI.isArray(vals) ? vals : [vals];
var result = [];
@ -111,4 +111,4 @@ BI.SearchTextValueTrigger.EVENT_SEARCHING = "EVENT_SEARCHING";
BI.SearchTextValueTrigger.EVENT_STOP = "EVENT_STOP";
BI.SearchTextValueTrigger.EVENT_START = "EVENT_START";
BI.SearchTextValueTrigger.EVENT_CHANGE = "EVENT_CHANGE";
BI.shortcut("bi.search_text_value_trigger", BI.SearchTextValueTrigger);
BI.shortcut("bi.search_text_value_trigger", BI.SearchTextValueTrigger);

8
src/core/controller/controller.bubbles.js

@ -83,5 +83,13 @@ BI.BubblesController = BI.inherit(BI.Controller, {
this.storeBubbles[name].destroy();
delete this.storeBubbles[name];
return this;
},
removeAll: function () {
BI.each(this.storeBubbles, function (name, bubble) {
bubble.destroy();
});
this.storeBubbles = {};
return this;
}
});

12
src/core/controller/controller.layer.js

@ -100,21 +100,21 @@ BI.LayerController = BI.inherit(BI.Controller, {
return widget;
},
hide: function (name, callback) {
show: function (name, callback) {
if (!this.has(name)) {
return this;
}
this._getLayout(name).invisible();
this._getLayout(name).element.hide(0, callback);
this._getLayout(name).visible();
this._getLayout(name).element.css("z-index", this.zindex++).show(0, callback).trigger("__resize__");
return this;
},
show: function (name, callback) {
hide: function (name, callback) {
if (!this.has(name)) {
return this;
}
this._getLayout(name).visible();
this._getLayout(name).element.css("z-index", this.zindex++).show(0, callback).trigger("__resize__");
this._getLayout(name).invisible();
this._getLayout(name).element.hide(0, callback);
return this;
},

106
src/core/controller/controller.popover.js

@ -22,12 +22,8 @@ BI.PopoverController = BI.inherit(BI.Controller, {
this.zindexMap = {};
},
_check: function (name) {
return BI.isNotNull(this.floatManager[name]);
},
create: function (name, options, context) {
if (this._check(name)) {
if (this.has(name)) {
return this;
}
var popover = BI.createWidget(options || {}, {
@ -37,48 +33,8 @@ BI.PopoverController = BI.inherit(BI.Controller, {
return this;
},
add: function (name, popover, options, context) {
var self = this;
options || (options = {});
if (this._check(name)) {
return this;
}
this.floatContainer[name] = BI.createWidget({
type: "bi.absolute",
cls: "bi-popup-view",
items: [{
el: (this.floatLayer[name] = BI.createWidget({
type: "bi.absolute",
items: [popover]
}, context)),
left: 0,
right: 0,
top: 0,
bottom: 0
}]
});
this.floatManager[name] = popover;
(function (key) {
popover.on(BI.Popover.EVENT_CLOSE, function () {
self.close(key);
});
})(name);
BI.createWidget({
type: "bi.absolute",
element: options.container || this.options.render,
items: [{
el: this.floatContainer[name],
left: 0,
right: 0,
top: 0,
bottom: 0
}]
});
return this;
},
open: function (name) {
if (!this._check(name)) {
if (!this.has(name)) {
return this;
}
if (!this.floatOpened[name]) {
@ -110,7 +66,7 @@ BI.PopoverController = BI.inherit(BI.Controller, {
},
close: function (name) {
if (!this._check(name)) {
if (!this.has(name)) {
return this;
}
if (this.floatOpened[name]) {
@ -121,10 +77,66 @@ BI.PopoverController = BI.inherit(BI.Controller, {
return this;
},
show: function (name) {
return this.open(name);
},
hide: function (name) {
return this.close(name);
},
isVisible: function (name) {
return this.has(name) && this.floatOpened[name] === true;
},
add: function (name, popover, options, context) {
var self = this;
options || (options = {});
if (this.has(name)) {
return this;
}
this.floatContainer[name] = BI.createWidget({
type: "bi.absolute",
cls: "bi-popup-view",
items: [{
el: (this.floatLayer[name] = BI.createWidget({
type: "bi.absolute",
items: [popover]
}, context)),
left: 0,
right: 0,
top: 0,
bottom: 0
}]
});
this.floatManager[name] = popover;
(function (key) {
popover.on(BI.Popover.EVENT_CLOSE, function () {
self.close(key);
});
})(name);
BI.createWidget({
type: "bi.absolute",
element: options.container || this.options.render,
items: [{
el: this.floatContainer[name],
left: 0,
right: 0,
top: 0,
bottom: 0
}]
});
return this;
},
get: function (name) {
return this.floatManager[name];
},
has: function (name) {
return BI.isNotNull(this.floatManager[name]);
},
remove: function (name) {
if (!this._check(name)) {
return this;

61
src/core/controller/controller.tooltips.js

@ -21,32 +21,6 @@ BI.TooltipsController = BI.inherit(BI.Controller, {
});
},
hide: function (name, callback) {
if (!this.has(name)) {
return this;
}
delete this.showingTips[name];
this.get(name).element.hide(0, callback);
this.get(name).invisible();
return this;
},
create: function (name, text, level, context) {
if (!this.has(name)) {
var tooltip = this._createTooltip(text, level);
this.add(name, tooltip);
BI.createWidget({
type: "bi.absolute",
element: context || "body",
items: [{
el: tooltip
}]
});
tooltip.invisible();
}
return this.get(name);
},
// opt: {container: '', belowMouse: false}
show: function (e, name, text, level, context, opt) {
opt || (opt = {});
@ -100,6 +74,32 @@ BI.TooltipsController = BI.inherit(BI.Controller, {
return this;
},
hide: function (name, callback) {
if (!this.has(name)) {
return this;
}
delete this.showingTips[name];
this.get(name).element.hide(0, callback);
this.get(name).invisible();
return this;
},
create: function (name, text, level, context) {
if (!this.has(name)) {
var tooltip = this._createTooltip(text, level);
this.add(name, tooltip);
BI.createWidget({
type: "bi.absolute",
element: context || "body",
items: [{
el: tooltip
}]
});
tooltip.invisible();
}
return this.get(name);
},
add: function (name, bubble) {
if (this.has(name)) {
return this;
@ -127,5 +127,14 @@ BI.TooltipsController = BI.inherit(BI.Controller, {
this.tooltipsManager[name].destroy();
delete this.tooltipsManager[name];
return this;
},
removeAll: function () {
BI.each(this.tooltipsManager, function (name, tooltip) {
tooltip.destroy();
});
this.tooltipsManager = {};
this.showingTips = {};
return this;
}
});

2
typescript/core/decorator/decorator.ts

@ -90,7 +90,7 @@ export function mixins(...Mixins: ({ new (...args: any[]): {} } & { xtype: strin
*/
export class Model<U extends {types?: {[key: string]: unknown} | {}, context?: ReadonlyArray<string>} = {}> extends Fix.Model {
// @ts-ignore this["computed"][key]为空
model: Pick<{[key in keyof U["types"]]: U["types"][key]}, U["context"][number]> & {[key in keyof ReturnType<this["state"]>]: ReturnType<this["state"]>[key]} & {[key in keyof this["computed"]]: ReturnType<this["computed"][key]>};
model: Pick<{[key in keyof U["types"]]: U["types"][key]}, U["context"][number]> & ReturnType<this["state"]> & {[key in keyof this["computed"]]: ReturnType<this["computed"][key]>};
store: this["actions"];

Loading…
Cancel
Save