Browse Source

Merge branch 'master' of ssh://code.fineres.com:7999/~dailer/fineui

es6
dailer 3 years ago
parent
commit
ee8fee7aa5
  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. 196
      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. 196
      dist/core.js
  13. 2
      dist/core.js.map
  14. 2
      dist/demo.css
  15. 196
      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. 196
      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. 196
      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. 196
      dist/fineui_without_jquery_polyfill.js
  32. 2
      dist/fineui_without_jquery_polyfill.js.map
  33. 2
      dist/font.css
  34. BIN
      dist/font/iconfont.eot
  35. 646
      dist/font/iconfont.svg
  36. BIN
      dist/font/iconfont.ttf
  37. BIN
      dist/font/iconfont.woff
  38. BIN
      dist/font/iconfont.woff2
  39. 2
      dist/resource.css
  40. 2
      dist/utils.js
  41. 2
      dist/utils.min.js
  42. 2
      package.json
  43. 8
      src/core/controller/controller.bubbles.js
  44. 12
      src/core/controller/controller.layer.js
  45. 108
      src/core/controller/controller.popover.js
  46. 61
      src/core/controller/controller.tooltips.js

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

196
dist/2.0/fineui.js vendored

@ -1,4 +1,4 @@
/*! time: 2021-8-3 16:10:14 */
/*! time: 2021-8-5 14:30:20 */
/******/ (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,12 +13794,68 @@ 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)) {
if (!this.has(name)) {
return this;
}
this.floatContainer[name].destroy();
@ -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,
@ -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,
@ -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) {

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

196
dist/core.js vendored

@ -1,4 +1,4 @@
/*! time: 2021-8-3 16:10:14 */
/*! time: 2021-8-5 14:30:20 */
/******/ (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,12 +13794,68 @@ 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)) {
if (!this.has(name)) {
return this;
}
this.floatContainer[name].destroy();
@ -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,
@ -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,
@ -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) {

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

196
dist/demo.js vendored

@ -1,4 +1,4 @@
/*! time: 2021-8-3 16:10:14 */
/*! time: 2021-8-5 14:30:20 */
/******/ (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,12 +13794,68 @@ 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)) {
if (!this.has(name)) {
return this;
}
this.floatContainer[name].destroy();
@ -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,
@ -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,
@ -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) {

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

196
dist/fineui.js vendored

@ -1,4 +1,4 @@
/*! time: 2021-8-3 16:10:14 */
/*! time: 2021-8-5 14:30:20 */
/******/ (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,12 +13794,68 @@ 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)) {
if (!this.has(name)) {
return this;
}
this.floatContainer[name].destroy();
@ -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,
@ -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,
@ -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) {

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

196
dist/fineui.proxy.js vendored

@ -1,4 +1,4 @@
/*! time: 2021-8-3 16:10:14 */
/*! time: 2021-8-5 14:30:20 */
/******/ (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,12 +11255,68 @@ 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)) {
if (!this.has(name)) {
return this;
}
this.floatContainer[name].destroy();
@ -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,
@ -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,
@ -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) {

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

196
dist/fineui_without_jquery_polyfill.js vendored

@ -1,4 +1,4 @@
/*! time: 2021-8-3 16:10:14 */
/*! time: 2021-8-5 14:30:20 */
/******/ (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,12 +10870,68 @@ 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)) {
if (!this.has(name)) {
return this;
}
this.floatContainer[name].destroy();
@ -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,
@ -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,
@ -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) {

2
dist/fineui_without_jquery_polyfill.js.map 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

BIN
dist/font/iconfont.eot vendored

Binary file not shown.

646
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.

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-3 16:10:14 */
/*! time: 2021-8-5 14:30:20 */
/******/ (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.20210803161102",
"version": "2.0.20210805143255",
"description": "fineui",
"main": "dist/fineui.min.js",
"types": "dist/lib/index.d.ts",

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;
},

108
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,12 +77,68 @@ 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)) {
if (!this.has(name)) {
return this;
}
this.floatContainer[name].destroy();

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;
}
});

Loading…
Cancel
Save