Browse Source

Merge remote-tracking branch 'origin/master'

es6
imp 5 years ago
parent
commit
10d619b460
  1. 60
      dist/2.0/fineui.css
  2. 34
      dist/2.0/fineui.ie.js
  3. 68
      dist/2.0/fineui.ie.min.js
  4. 34
      dist/2.0/fineui.js
  5. 2
      dist/2.0/fineui.min.css
  6. 68
      dist/2.0/fineui.min.js
  7. 60
      dist/bundle.css
  8. 34
      dist/bundle.ie.js
  9. 68
      dist/bundle.ie.min.js
  10. 34
      dist/bundle.js
  11. 2
      dist/bundle.min.css
  12. 68
      dist/bundle.min.js
  13. 26
      dist/core.js
  14. 60
      dist/fineui.css
  15. 31
      dist/fineui.ie.js
  16. 78
      dist/fineui.ie.min.js
  17. 31
      dist/fineui.js
  18. 2
      dist/fineui.min.css
  19. 78
      dist/fineui.min.js
  20. 29
      dist/fineui_without_jquery_polyfill.js
  21. 4
      dist/fix/fix.compact.ie.js
  22. 4
      dist/fix/fix.compact.js
  23. 60
      dist/resource.css
  24. 4
      dist/utils.min.js
  25. 1
      dist/widget.js
  26. 60
      public/css/app.css
  27. 15
      src/case/combo/searchtextvaluecombo/trigger.searchtextvalue.js
  28. 24
      src/core/wrapper/layout/layout.adaptive.js
  29. 60
      src/css/resource/app.css
  30. 4
      src/less/lib/constant.less
  31. 34
      src/less/resource/app.less
  32. 1
      src/widget/singleslider/singleslider.js
  33. 26
      typescript/core/base.ts
  34. 60
      ui/css/app.css

60
dist/2.0/fineui.css vendored

@ -4664,44 +4664,64 @@ body {
div::-webkit-scrollbar,
textarea::-webkit-scrollbar {
-webkit-appearance: none;
background-color: rgba(32, 38, 59, 0.05);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#0d20263b,endColorstr=#0d20263b);
width: 6px;
height: 6px;
width: 10px;
height: 10px;
}
div::-webkit-scrollbar-track,
textarea::-webkit-scrollbar-track {
width: 10px;
height: 10px;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
background-color: rgba(35, 46, 64, 0.05);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#0d232e40,endColorstr=#0d232e40);
}
div::-webkit-scrollbar-track:hover,
textarea::-webkit-scrollbar-track:hover {
background-color: rgba(35, 46, 64, 0.05);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#0d232e40,endColorstr=#0d232e40);
}
div::-webkit-scrollbar-thumb,
textarea::-webkit-scrollbar-thumb {
-webkit-border-radius: 0;
-moz-border-radius: 0;
border-radius: 0;
background-color: rgba(32, 38, 59, 0.3);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#4d20263b,endColorstr=#4d20263b);
width: 6px;
height: 6px;
border: 2px solid transparent;
background-clip: padding-box;
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
border-radius: 10px;
background-color: rgba(35, 46, 64, 0.1);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#1a232e40,endColorstr=#1a232e40);
}
div::-webkit-scrollbar-thumb:hover,
textarea::-webkit-scrollbar-thumb:hover {
background-color: rgba(32, 38, 59, 0.7);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#b320263b,endColorstr=#b320263b);
background-color: rgba(35, 46, 64, 0.3);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#4d232e40,endColorstr=#4d232e40);
}
.bi-theme-dark div::-webkit-scrollbar,
.bi-theme-dark textarea::-webkit-scrollbar {
-webkit-appearance: none;
}
.bi-theme-dark div::-webkit-scrollbar-track,
.bi-theme-dark textarea::-webkit-scrollbar-track {
background-color: rgba(255, 255, 255, 0.05);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#0dffffff,endColorstr=#0dffffff);
}
.bi-theme-dark div::-webkit-scrollbar-track:hover,
.bi-theme-dark textarea::-webkit-scrollbar-track:hover {
background-color: rgba(255, 255, 255, 0.05);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#0dffffff,endColorstr=#0dffffff);
width: 6px;
height: 6px;
}
.bi-theme-dark div::-webkit-scrollbar-thumb,
.bi-theme-dark textarea::-webkit-scrollbar-thumb {
-webkit-border-radius: 0;
-moz-border-radius: 0;
border-radius: 0;
background-color: rgba(255, 255, 255, 0.3);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#4dffffff,endColorstr=#4dffffff);
background-color: rgba(255, 255, 255, 0.1);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#1affffff,endColorstr=#1affffff);
}
.bi-theme-dark div::-webkit-scrollbar-thumb:hover,
.bi-theme-dark textarea::-webkit-scrollbar-thumb:hover {
background-color: rgba(255, 255, 255, 0.7);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#b3ffffff,endColorstr=#b3ffffff);
background-color: rgba(255, 255, 255, 0.3);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#4dffffff,endColorstr=#4dffffff);
}
.bi-farbtastic .wheel {
background: url('http://fine-design-storage.oss-cn-shanghai.aliyuncs.com/fineui/2.0/images/1x/background/wheel.png') no-repeat center center;

34
dist/2.0/fineui.ie.js vendored

@ -21696,7 +21696,7 @@ BI.prepares.push(function () {
var addResizeListener = function (element, fn) {
if (attachEvent) {
element.attachEvent("onresize", fn);
BI.defer(fn);
fn();
} else {
if (!element.__resizeTriggers__) {
if (getComputedStyle(element).position === "static") element.style.position = "relative";
@ -34510,53 +34510,53 @@ BI.shortcut("bi.absolute", BI.AbsoluteLayout);BI.AdaptiveLayout = BI.inherit(BI.
var left = 0, right = 0, top = 0, bottom = 0;
if (BI.isNotNull(item.left)) {
w.element.css({
"margin-left": item.left
left: item.left
});
}
if (BI.isNotNull(item.right)) {
w.element.css({
"margin-right": item.right
right: item.right
});
}
if (BI.isNotNull(item.top)) {
w.element.css({
"margin-top": item.top
top: item.top
});
}
if (BI.isNotNull(item.bottom)) {
w.element.css({
"margin-bottom": item.bottom
bottom: item.bottom
});
}
if (BI.isNotNull(o.hgap)) {
left += o.hgap;
w.element.css({left: left});
w.element.css({"margin-left": left});
right += o.hgap;
w.element.css({right: right});
w.element.css({"margin-right": right});
}
if (BI.isNotNull(o.vgap)) {
top += o.vgap;
w.element.css({top: top});
w.element.css({"margin-top": top});
bottom += o.vgap;
w.element.css({bottom: bottom});
w.element.css({"margin-bottom": bottom});
}
if (BI.isNotNull(o.lgap)) {
left += o.lgap;
w.element.css({left: left});
w.element.css({"margin-left": left});
}
if (BI.isNotNull(o.rgap)) {
right += o.rgap;
w.element.css({right: right});
w.element.css({"margin-right": right});
}
if (BI.isNotNull(o.tgap)) {
top += o.tgap;
w.element.css({top: top});
w.element.css({"margin-top": top});
}
if (BI.isNotNull(o.bgap)) {
bottom += o.bgap;
w.element.css({bottom: bottom});
w.element.css({"margin-bottom": bottom});
}
if (BI.isNotNull(item.width)) {
@ -82225,7 +82225,6 @@ BI.SingleSlider = BI.inherit(BI.Widget, {
v = o.digit === false ? v : v.toFixed(o.digit);
self.label.setValue(v);
self.value = v;
self.fireEvent(BI.SingleSlider.EVENT_CHANGE);
}
}, function () {
if (startDrag === true) {
@ -88614,7 +88613,11 @@ BI.shortcut("bi.value_chooser_pane", BI.ValueChooserPane);;(function () {
var old = BI.Widget.prototype[name];
old && (BI.Widget.prototype[name] = function () {
this.store && pushTarget(this.store);
try {
var res = old.apply(this, arguments);
} catch (e) {
console.error(e);
}
this.store && popTarget();
return res;
});
@ -88741,7 +88744,8 @@ BI.shortcut("bi.value_chooser_pane", BI.ValueChooserPane);;(function () {
}
}
BI.watch = Fix.watch;
}());(function () {
}());
(function () {
var Events = {
// Bind an event to a `callback` function. Passing `"all"` will bind

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

File diff suppressed because one or more lines are too long

34
dist/2.0/fineui.js vendored

@ -21696,7 +21696,7 @@ BI.prepares.push(function () {
var addResizeListener = function (element, fn) {
if (attachEvent) {
element.attachEvent("onresize", fn);
BI.defer(fn);
fn();
} else {
if (!element.__resizeTriggers__) {
if (getComputedStyle(element).position === "static") element.style.position = "relative";
@ -34510,53 +34510,53 @@ BI.shortcut("bi.absolute", BI.AbsoluteLayout);BI.AdaptiveLayout = BI.inherit(BI.
var left = 0, right = 0, top = 0, bottom = 0;
if (BI.isNotNull(item.left)) {
w.element.css({
"margin-left": item.left
left: item.left
});
}
if (BI.isNotNull(item.right)) {
w.element.css({
"margin-right": item.right
right: item.right
});
}
if (BI.isNotNull(item.top)) {
w.element.css({
"margin-top": item.top
top: item.top
});
}
if (BI.isNotNull(item.bottom)) {
w.element.css({
"margin-bottom": item.bottom
bottom: item.bottom
});
}
if (BI.isNotNull(o.hgap)) {
left += o.hgap;
w.element.css({left: left});
w.element.css({"margin-left": left});
right += o.hgap;
w.element.css({right: right});
w.element.css({"margin-right": right});
}
if (BI.isNotNull(o.vgap)) {
top += o.vgap;
w.element.css({top: top});
w.element.css({"margin-top": top});
bottom += o.vgap;
w.element.css({bottom: bottom});
w.element.css({"margin-bottom": bottom});
}
if (BI.isNotNull(o.lgap)) {
left += o.lgap;
w.element.css({left: left});
w.element.css({"margin-left": left});
}
if (BI.isNotNull(o.rgap)) {
right += o.rgap;
w.element.css({right: right});
w.element.css({"margin-right": right});
}
if (BI.isNotNull(o.tgap)) {
top += o.tgap;
w.element.css({top: top});
w.element.css({"margin-top": top});
}
if (BI.isNotNull(o.bgap)) {
bottom += o.bgap;
w.element.css({bottom: bottom});
w.element.css({"margin-bottom": bottom});
}
if (BI.isNotNull(item.width)) {
@ -82629,7 +82629,6 @@ BI.SingleSlider = BI.inherit(BI.Widget, {
v = o.digit === false ? v : v.toFixed(o.digit);
self.label.setValue(v);
self.value = v;
self.fireEvent(BI.SingleSlider.EVENT_CHANGE);
}
}, function () {
if (startDrag === true) {
@ -89001,7 +89000,11 @@ BI.shortcut("bi.value_chooser_pane", BI.ValueChooserPane);;(function () {
var old = BI.Widget.prototype[name];
old && (BI.Widget.prototype[name] = function () {
this.store && pushTarget(this.store);
try {
var res = old.apply(this, arguments);
} catch (e) {
console.error(e);
}
this.store && popTarget();
return res;
});
@ -89075,7 +89078,8 @@ BI.shortcut("bi.value_chooser_pane", BI.ValueChooserPane);;(function () {
};
}
BI.watch = Fix.watch;
}());(function () {
}());
(function () {
var Events = {
// Bind an event to a `callback` function. Passing `"all"` will bind

2
dist/2.0/fineui.min.css vendored

File diff suppressed because one or more lines are too long

68
dist/2.0/fineui.min.js vendored

File diff suppressed because one or more lines are too long

60
dist/bundle.css vendored

@ -4664,44 +4664,64 @@ body {
div::-webkit-scrollbar,
textarea::-webkit-scrollbar {
-webkit-appearance: none;
background-color: rgba(32, 38, 59, 0.05);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#0d20263b,endColorstr=#0d20263b);
width: 6px;
height: 6px;
width: 10px;
height: 10px;
}
div::-webkit-scrollbar-track,
textarea::-webkit-scrollbar-track {
width: 10px;
height: 10px;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
background-color: rgba(35, 46, 64, 0.05);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#0d232e40,endColorstr=#0d232e40);
}
div::-webkit-scrollbar-track:hover,
textarea::-webkit-scrollbar-track:hover {
background-color: rgba(35, 46, 64, 0.05);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#0d232e40,endColorstr=#0d232e40);
}
div::-webkit-scrollbar-thumb,
textarea::-webkit-scrollbar-thumb {
-webkit-border-radius: 0;
-moz-border-radius: 0;
border-radius: 0;
background-color: rgba(32, 38, 59, 0.3);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#4d20263b,endColorstr=#4d20263b);
width: 6px;
height: 6px;
border: 2px solid transparent;
background-clip: padding-box;
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
border-radius: 10px;
background-color: rgba(35, 46, 64, 0.1);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#1a232e40,endColorstr=#1a232e40);
}
div::-webkit-scrollbar-thumb:hover,
textarea::-webkit-scrollbar-thumb:hover {
background-color: rgba(32, 38, 59, 0.7);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#b320263b,endColorstr=#b320263b);
background-color: rgba(35, 46, 64, 0.3);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#4d232e40,endColorstr=#4d232e40);
}
.bi-theme-dark div::-webkit-scrollbar,
.bi-theme-dark textarea::-webkit-scrollbar {
-webkit-appearance: none;
}
.bi-theme-dark div::-webkit-scrollbar-track,
.bi-theme-dark textarea::-webkit-scrollbar-track {
background-color: rgba(255, 255, 255, 0.05);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#0dffffff,endColorstr=#0dffffff);
}
.bi-theme-dark div::-webkit-scrollbar-track:hover,
.bi-theme-dark textarea::-webkit-scrollbar-track:hover {
background-color: rgba(255, 255, 255, 0.05);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#0dffffff,endColorstr=#0dffffff);
width: 6px;
height: 6px;
}
.bi-theme-dark div::-webkit-scrollbar-thumb,
.bi-theme-dark textarea::-webkit-scrollbar-thumb {
-webkit-border-radius: 0;
-moz-border-radius: 0;
border-radius: 0;
background-color: rgba(255, 255, 255, 0.3);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#4dffffff,endColorstr=#4dffffff);
background-color: rgba(255, 255, 255, 0.1);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#1affffff,endColorstr=#1affffff);
}
.bi-theme-dark div::-webkit-scrollbar-thumb:hover,
.bi-theme-dark textarea::-webkit-scrollbar-thumb:hover {
background-color: rgba(255, 255, 255, 0.7);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#b3ffffff,endColorstr=#b3ffffff);
background-color: rgba(255, 255, 255, 0.3);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#4dffffff,endColorstr=#4dffffff);
}
.bi-farbtastic .wheel {
background: url('http://fine-design-storage.oss-cn-shanghai.aliyuncs.com/fineui/2.0/images/1x/background/wheel.png') no-repeat center center;

34
dist/bundle.ie.js vendored

@ -21696,7 +21696,7 @@ BI.prepares.push(function () {
var addResizeListener = function (element, fn) {
if (attachEvent) {
element.attachEvent("onresize", fn);
BI.defer(fn);
fn();
} else {
if (!element.__resizeTriggers__) {
if (getComputedStyle(element).position === "static") element.style.position = "relative";
@ -34510,53 +34510,53 @@ BI.shortcut("bi.absolute", BI.AbsoluteLayout);BI.AdaptiveLayout = BI.inherit(BI.
var left = 0, right = 0, top = 0, bottom = 0;
if (BI.isNotNull(item.left)) {
w.element.css({
"margin-left": item.left
left: item.left
});
}
if (BI.isNotNull(item.right)) {
w.element.css({
"margin-right": item.right
right: item.right
});
}
if (BI.isNotNull(item.top)) {
w.element.css({
"margin-top": item.top
top: item.top
});
}
if (BI.isNotNull(item.bottom)) {
w.element.css({
"margin-bottom": item.bottom
bottom: item.bottom
});
}
if (BI.isNotNull(o.hgap)) {
left += o.hgap;
w.element.css({left: left});
w.element.css({"margin-left": left});
right += o.hgap;
w.element.css({right: right});
w.element.css({"margin-right": right});
}
if (BI.isNotNull(o.vgap)) {
top += o.vgap;
w.element.css({top: top});
w.element.css({"margin-top": top});
bottom += o.vgap;
w.element.css({bottom: bottom});
w.element.css({"margin-bottom": bottom});
}
if (BI.isNotNull(o.lgap)) {
left += o.lgap;
w.element.css({left: left});
w.element.css({"margin-left": left});
}
if (BI.isNotNull(o.rgap)) {
right += o.rgap;
w.element.css({right: right});
w.element.css({"margin-right": right});
}
if (BI.isNotNull(o.tgap)) {
top += o.tgap;
w.element.css({top: top});
w.element.css({"margin-top": top});
}
if (BI.isNotNull(o.bgap)) {
bottom += o.bgap;
w.element.css({bottom: bottom});
w.element.css({"margin-bottom": bottom});
}
if (BI.isNotNull(item.width)) {
@ -82225,7 +82225,6 @@ BI.SingleSlider = BI.inherit(BI.Widget, {
v = o.digit === false ? v : v.toFixed(o.digit);
self.label.setValue(v);
self.value = v;
self.fireEvent(BI.SingleSlider.EVENT_CHANGE);
}
}, function () {
if (startDrag === true) {
@ -88614,7 +88613,11 @@ BI.shortcut("bi.value_chooser_pane", BI.ValueChooserPane);;(function () {
var old = BI.Widget.prototype[name];
old && (BI.Widget.prototype[name] = function () {
this.store && pushTarget(this.store);
try {
var res = old.apply(this, arguments);
} catch (e) {
console.error(e);
}
this.store && popTarget();
return res;
});
@ -88741,7 +88744,8 @@ BI.shortcut("bi.value_chooser_pane", BI.ValueChooserPane);;(function () {
}
}
BI.watch = Fix.watch;
}());(function () {
}());
(function () {
var Events = {
// Bind an event to a `callback` function. Passing `"all"` will bind

68
dist/bundle.ie.min.js vendored

File diff suppressed because one or more lines are too long

34
dist/bundle.js vendored

@ -21696,7 +21696,7 @@ BI.prepares.push(function () {
var addResizeListener = function (element, fn) {
if (attachEvent) {
element.attachEvent("onresize", fn);
BI.defer(fn);
fn();
} else {
if (!element.__resizeTriggers__) {
if (getComputedStyle(element).position === "static") element.style.position = "relative";
@ -34510,53 +34510,53 @@ BI.shortcut("bi.absolute", BI.AbsoluteLayout);BI.AdaptiveLayout = BI.inherit(BI.
var left = 0, right = 0, top = 0, bottom = 0;
if (BI.isNotNull(item.left)) {
w.element.css({
"margin-left": item.left
left: item.left
});
}
if (BI.isNotNull(item.right)) {
w.element.css({
"margin-right": item.right
right: item.right
});
}
if (BI.isNotNull(item.top)) {
w.element.css({
"margin-top": item.top
top: item.top
});
}
if (BI.isNotNull(item.bottom)) {
w.element.css({
"margin-bottom": item.bottom
bottom: item.bottom
});
}
if (BI.isNotNull(o.hgap)) {
left += o.hgap;
w.element.css({left: left});
w.element.css({"margin-left": left});
right += o.hgap;
w.element.css({right: right});
w.element.css({"margin-right": right});
}
if (BI.isNotNull(o.vgap)) {
top += o.vgap;
w.element.css({top: top});
w.element.css({"margin-top": top});
bottom += o.vgap;
w.element.css({bottom: bottom});
w.element.css({"margin-bottom": bottom});
}
if (BI.isNotNull(o.lgap)) {
left += o.lgap;
w.element.css({left: left});
w.element.css({"margin-left": left});
}
if (BI.isNotNull(o.rgap)) {
right += o.rgap;
w.element.css({right: right});
w.element.css({"margin-right": right});
}
if (BI.isNotNull(o.tgap)) {
top += o.tgap;
w.element.css({top: top});
w.element.css({"margin-top": top});
}
if (BI.isNotNull(o.bgap)) {
bottom += o.bgap;
w.element.css({bottom: bottom});
w.element.css({"margin-bottom": bottom});
}
if (BI.isNotNull(item.width)) {
@ -82629,7 +82629,6 @@ BI.SingleSlider = BI.inherit(BI.Widget, {
v = o.digit === false ? v : v.toFixed(o.digit);
self.label.setValue(v);
self.value = v;
self.fireEvent(BI.SingleSlider.EVENT_CHANGE);
}
}, function () {
if (startDrag === true) {
@ -89001,7 +89000,11 @@ BI.shortcut("bi.value_chooser_pane", BI.ValueChooserPane);;(function () {
var old = BI.Widget.prototype[name];
old && (BI.Widget.prototype[name] = function () {
this.store && pushTarget(this.store);
try {
var res = old.apply(this, arguments);
} catch (e) {
console.error(e);
}
this.store && popTarget();
return res;
});
@ -89075,7 +89078,8 @@ BI.shortcut("bi.value_chooser_pane", BI.ValueChooserPane);;(function () {
};
}
BI.watch = Fix.watch;
}());(function () {
}());
(function () {
var Events = {
// Bind an event to a `callback` function. Passing `"all"` will bind

2
dist/bundle.min.css vendored

File diff suppressed because one or more lines are too long

68
dist/bundle.min.js vendored

File diff suppressed because one or more lines are too long

26
dist/core.js vendored

@ -21696,7 +21696,7 @@ BI.prepares.push(function () {
var addResizeListener = function (element, fn) {
if (attachEvent) {
element.attachEvent("onresize", fn);
BI.defer(fn);
fn();
} else {
if (!element.__resizeTriggers__) {
if (getComputedStyle(element).position === "static") element.style.position = "relative";
@ -34510,53 +34510,53 @@ BI.shortcut("bi.absolute", BI.AbsoluteLayout);BI.AdaptiveLayout = BI.inherit(BI.
var left = 0, right = 0, top = 0, bottom = 0;
if (BI.isNotNull(item.left)) {
w.element.css({
"margin-left": item.left
left: item.left
});
}
if (BI.isNotNull(item.right)) {
w.element.css({
"margin-right": item.right
right: item.right
});
}
if (BI.isNotNull(item.top)) {
w.element.css({
"margin-top": item.top
top: item.top
});
}
if (BI.isNotNull(item.bottom)) {
w.element.css({
"margin-bottom": item.bottom
bottom: item.bottom
});
}
if (BI.isNotNull(o.hgap)) {
left += o.hgap;
w.element.css({left: left});
w.element.css({"margin-left": left});
right += o.hgap;
w.element.css({right: right});
w.element.css({"margin-right": right});
}
if (BI.isNotNull(o.vgap)) {
top += o.vgap;
w.element.css({top: top});
w.element.css({"margin-top": top});
bottom += o.vgap;
w.element.css({bottom: bottom});
w.element.css({"margin-bottom": bottom});
}
if (BI.isNotNull(o.lgap)) {
left += o.lgap;
w.element.css({left: left});
w.element.css({"margin-left": left});
}
if (BI.isNotNull(o.rgap)) {
right += o.rgap;
w.element.css({right: right});
w.element.css({"margin-right": right});
}
if (BI.isNotNull(o.tgap)) {
top += o.tgap;
w.element.css({top: top});
w.element.css({"margin-top": top});
}
if (BI.isNotNull(o.bgap)) {
bottom += o.bgap;
w.element.css({bottom: bottom});
w.element.css({"margin-bottom": bottom});
}
if (BI.isNotNull(item.width)) {

60
dist/fineui.css vendored

@ -4664,44 +4664,64 @@ body {
div::-webkit-scrollbar,
textarea::-webkit-scrollbar {
-webkit-appearance: none;
background-color: rgba(32, 38, 59, 0.05);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#0d20263b,endColorstr=#0d20263b);
width: 6px;
height: 6px;
width: 10px;
height: 10px;
}
div::-webkit-scrollbar-track,
textarea::-webkit-scrollbar-track {
width: 10px;
height: 10px;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
background-color: rgba(35, 46, 64, 0.05);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#0d232e40,endColorstr=#0d232e40);
}
div::-webkit-scrollbar-track:hover,
textarea::-webkit-scrollbar-track:hover {
background-color: rgba(35, 46, 64, 0.05);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#0d232e40,endColorstr=#0d232e40);
}
div::-webkit-scrollbar-thumb,
textarea::-webkit-scrollbar-thumb {
-webkit-border-radius: 0;
-moz-border-radius: 0;
border-radius: 0;
background-color: rgba(32, 38, 59, 0.3);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#4d20263b,endColorstr=#4d20263b);
width: 6px;
height: 6px;
border: 2px solid transparent;
background-clip: padding-box;
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
border-radius: 10px;
background-color: rgba(35, 46, 64, 0.1);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#1a232e40,endColorstr=#1a232e40);
}
div::-webkit-scrollbar-thumb:hover,
textarea::-webkit-scrollbar-thumb:hover {
background-color: rgba(32, 38, 59, 0.7);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#b320263b,endColorstr=#b320263b);
background-color: rgba(35, 46, 64, 0.3);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#4d232e40,endColorstr=#4d232e40);
}
.bi-theme-dark div::-webkit-scrollbar,
.bi-theme-dark textarea::-webkit-scrollbar {
-webkit-appearance: none;
}
.bi-theme-dark div::-webkit-scrollbar-track,
.bi-theme-dark textarea::-webkit-scrollbar-track {
background-color: rgba(255, 255, 255, 0.05);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#0dffffff,endColorstr=#0dffffff);
}
.bi-theme-dark div::-webkit-scrollbar-track:hover,
.bi-theme-dark textarea::-webkit-scrollbar-track:hover {
background-color: rgba(255, 255, 255, 0.05);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#0dffffff,endColorstr=#0dffffff);
width: 6px;
height: 6px;
}
.bi-theme-dark div::-webkit-scrollbar-thumb,
.bi-theme-dark textarea::-webkit-scrollbar-thumb {
-webkit-border-radius: 0;
-moz-border-radius: 0;
border-radius: 0;
background-color: rgba(255, 255, 255, 0.3);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#4dffffff,endColorstr=#4dffffff);
background-color: rgba(255, 255, 255, 0.1);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#1affffff,endColorstr=#1affffff);
}
.bi-theme-dark div::-webkit-scrollbar-thumb:hover,
.bi-theme-dark textarea::-webkit-scrollbar-thumb:hover {
background-color: rgba(255, 255, 255, 0.7);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#b3ffffff,endColorstr=#b3ffffff);
background-color: rgba(255, 255, 255, 0.3);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#4dffffff,endColorstr=#4dffffff);
}
.bi-farbtastic .wheel {
background: url('resources?path=/com/fr/web/ui/images/1x/background/wheel.png') no-repeat center center;

31
dist/fineui.ie.js vendored

@ -21941,7 +21941,7 @@ BI.prepares.push(function () {
var addResizeListener = function (element, fn) {
if (attachEvent) {
element.attachEvent("onresize", fn);
BI.defer(fn);
fn();
} else {
if (!element.__resizeTriggers__) {
if (getComputedStyle(element).position === "static") element.style.position = "relative";
@ -34755,53 +34755,53 @@ BI.shortcut("bi.absolute", BI.AbsoluteLayout);BI.AdaptiveLayout = BI.inherit(BI.
var left = 0, right = 0, top = 0, bottom = 0;
if (BI.isNotNull(item.left)) {
w.element.css({
"margin-left": item.left
left: item.left
});
}
if (BI.isNotNull(item.right)) {
w.element.css({
"margin-right": item.right
right: item.right
});
}
if (BI.isNotNull(item.top)) {
w.element.css({
"margin-top": item.top
top: item.top
});
}
if (BI.isNotNull(item.bottom)) {
w.element.css({
"margin-bottom": item.bottom
bottom: item.bottom
});
}
if (BI.isNotNull(o.hgap)) {
left += o.hgap;
w.element.css({left: left});
w.element.css({"margin-left": left});
right += o.hgap;
w.element.css({right: right});
w.element.css({"margin-right": right});
}
if (BI.isNotNull(o.vgap)) {
top += o.vgap;
w.element.css({top: top});
w.element.css({"margin-top": top});
bottom += o.vgap;
w.element.css({bottom: bottom});
w.element.css({"margin-bottom": bottom});
}
if (BI.isNotNull(o.lgap)) {
left += o.lgap;
w.element.css({left: left});
w.element.css({"margin-left": left});
}
if (BI.isNotNull(o.rgap)) {
right += o.rgap;
w.element.css({right: right});
w.element.css({"margin-right": right});
}
if (BI.isNotNull(o.tgap)) {
top += o.tgap;
w.element.css({top: top});
w.element.css({"margin-top": top});
}
if (BI.isNotNull(o.bgap)) {
bottom += o.bgap;
w.element.css({bottom: bottom});
w.element.css({"margin-bottom": bottom});
}
if (BI.isNotNull(item.width)) {
@ -82470,7 +82470,6 @@ BI.SingleSlider = BI.inherit(BI.Widget, {
v = o.digit === false ? v : v.toFixed(o.digit);
self.label.setValue(v);
self.value = v;
self.fireEvent(BI.SingleSlider.EVENT_CHANGE);
}
}, function () {
if (startDrag === true) {
@ -89443,7 +89442,11 @@ BI.shortcut("bi.value_chooser_pane", BI.ValueChooserPane);(function () {
var old = BI.Widget.prototype[name];
old && (BI.Widget.prototype[name] = function () {
this.store && pushTarget(this.store);
try {
var res = old.apply(this, arguments);
} catch (e) {
console.error(e);
}
this.store && popTarget();
return res;
});

78
dist/fineui.ie.min.js vendored

File diff suppressed because one or more lines are too long

31
dist/fineui.js vendored

@ -21941,7 +21941,7 @@ BI.prepares.push(function () {
var addResizeListener = function (element, fn) {
if (attachEvent) {
element.attachEvent("onresize", fn);
BI.defer(fn);
fn();
} else {
if (!element.__resizeTriggers__) {
if (getComputedStyle(element).position === "static") element.style.position = "relative";
@ -34755,53 +34755,53 @@ BI.shortcut("bi.absolute", BI.AbsoluteLayout);BI.AdaptiveLayout = BI.inherit(BI.
var left = 0, right = 0, top = 0, bottom = 0;
if (BI.isNotNull(item.left)) {
w.element.css({
"margin-left": item.left
left: item.left
});
}
if (BI.isNotNull(item.right)) {
w.element.css({
"margin-right": item.right
right: item.right
});
}
if (BI.isNotNull(item.top)) {
w.element.css({
"margin-top": item.top
top: item.top
});
}
if (BI.isNotNull(item.bottom)) {
w.element.css({
"margin-bottom": item.bottom
bottom: item.bottom
});
}
if (BI.isNotNull(o.hgap)) {
left += o.hgap;
w.element.css({left: left});
w.element.css({"margin-left": left});
right += o.hgap;
w.element.css({right: right});
w.element.css({"margin-right": right});
}
if (BI.isNotNull(o.vgap)) {
top += o.vgap;
w.element.css({top: top});
w.element.css({"margin-top": top});
bottom += o.vgap;
w.element.css({bottom: bottom});
w.element.css({"margin-bottom": bottom});
}
if (BI.isNotNull(o.lgap)) {
left += o.lgap;
w.element.css({left: left});
w.element.css({"margin-left": left});
}
if (BI.isNotNull(o.rgap)) {
right += o.rgap;
w.element.css({right: right});
w.element.css({"margin-right": right});
}
if (BI.isNotNull(o.tgap)) {
top += o.tgap;
w.element.css({top: top});
w.element.css({"margin-top": top});
}
if (BI.isNotNull(o.bgap)) {
bottom += o.bgap;
w.element.css({bottom: bottom});
w.element.css({"margin-bottom": bottom});
}
if (BI.isNotNull(item.width)) {
@ -82874,7 +82874,6 @@ BI.SingleSlider = BI.inherit(BI.Widget, {
v = o.digit === false ? v : v.toFixed(o.digit);
self.label.setValue(v);
self.value = v;
self.fireEvent(BI.SingleSlider.EVENT_CHANGE);
}
}, function () {
if (startDrag === true) {
@ -89830,7 +89829,11 @@ BI.shortcut("bi.value_chooser_pane", BI.ValueChooserPane);(function () {
var old = BI.Widget.prototype[name];
old && (BI.Widget.prototype[name] = function () {
this.store && pushTarget(this.store);
try {
var res = old.apply(this, arguments);
} catch (e) {
console.error(e);
}
this.store && popTarget();
return res;
});

2
dist/fineui.min.css vendored

File diff suppressed because one or more lines are too long

78
dist/fineui.min.js vendored

File diff suppressed because one or more lines are too long

29
dist/fineui_without_jquery_polyfill.js vendored

@ -23330,53 +23330,53 @@ BI.shortcut("bi.absolute", BI.AbsoluteLayout);BI.AdaptiveLayout = BI.inherit(BI.
var left = 0, right = 0, top = 0, bottom = 0;
if (BI.isNotNull(item.left)) {
w.element.css({
"margin-left": item.left
left: item.left
});
}
if (BI.isNotNull(item.right)) {
w.element.css({
"margin-right": item.right
right: item.right
});
}
if (BI.isNotNull(item.top)) {
w.element.css({
"margin-top": item.top
top: item.top
});
}
if (BI.isNotNull(item.bottom)) {
w.element.css({
"margin-bottom": item.bottom
bottom: item.bottom
});
}
if (BI.isNotNull(o.hgap)) {
left += o.hgap;
w.element.css({left: left});
w.element.css({"margin-left": left});
right += o.hgap;
w.element.css({right: right});
w.element.css({"margin-right": right});
}
if (BI.isNotNull(o.vgap)) {
top += o.vgap;
w.element.css({top: top});
w.element.css({"margin-top": top});
bottom += o.vgap;
w.element.css({bottom: bottom});
w.element.css({"margin-bottom": bottom});
}
if (BI.isNotNull(o.lgap)) {
left += o.lgap;
w.element.css({left: left});
w.element.css({"margin-left": left});
}
if (BI.isNotNull(o.rgap)) {
right += o.rgap;
w.element.css({right: right});
w.element.css({"margin-right": right});
}
if (BI.isNotNull(o.tgap)) {
top += o.tgap;
w.element.css({top: top});
w.element.css({"margin-top": top});
}
if (BI.isNotNull(o.bgap)) {
bottom += o.bgap;
w.element.css({bottom: bottom});
w.element.css({"margin-bottom": bottom});
}
if (BI.isNotNull(item.width)) {
@ -65480,7 +65480,6 @@ BI.SingleSlider = BI.inherit(BI.Widget, {
v = o.digit === false ? v : v.toFixed(o.digit);
self.label.setValue(v);
self.value = v;
self.fireEvent(BI.SingleSlider.EVENT_CHANGE);
}
}, function () {
if (startDrag === true) {
@ -71852,7 +71851,11 @@ BI.shortcut("bi.value_chooser_pane", BI.ValueChooserPane);;(function () {
var old = BI.Widget.prototype[name];
old && (BI.Widget.prototype[name] = function () {
this.store && pushTarget(this.store);
try {
var res = old.apply(this, arguments);
} catch (e) {
console.error(e);
}
this.store && popTarget();
return res;
});

4
dist/fix/fix.compact.ie.js vendored

@ -189,7 +189,11 @@
var old = BI.Widget.prototype[name];
old && (BI.Widget.prototype[name] = function () {
this.store && pushTarget(this.store);
try {
var res = old.apply(this, arguments);
} catch (e) {
console.error(e);
}
this.store && popTarget();
return res;
});

4
dist/fix/fix.compact.js vendored

@ -172,7 +172,11 @@
var old = BI.Widget.prototype[name];
old && (BI.Widget.prototype[name] = function () {
this.store && pushTarget(this.store);
try {
var res = old.apply(this, arguments);
} catch (e) {
console.error(e);
}
this.store && popTarget();
return res;
});

60
dist/resource.css vendored

@ -30,44 +30,64 @@ body {
div::-webkit-scrollbar,
textarea::-webkit-scrollbar {
-webkit-appearance: none;
background-color: rgba(32, 38, 59, 0.05);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#0d20263b,endColorstr=#0d20263b);
width: 6px;
height: 6px;
width: 10px;
height: 10px;
}
div::-webkit-scrollbar-track,
textarea::-webkit-scrollbar-track {
width: 10px;
height: 10px;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
background-color: rgba(35, 46, 64, 0.05);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#0d232e40,endColorstr=#0d232e40);
}
div::-webkit-scrollbar-track:hover,
textarea::-webkit-scrollbar-track:hover {
background-color: rgba(35, 46, 64, 0.05);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#0d232e40,endColorstr=#0d232e40);
}
div::-webkit-scrollbar-thumb,
textarea::-webkit-scrollbar-thumb {
-webkit-border-radius: 0;
-moz-border-radius: 0;
border-radius: 0;
background-color: rgba(32, 38, 59, 0.3);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#4d20263b,endColorstr=#4d20263b);
width: 6px;
height: 6px;
border: 2px solid transparent;
background-clip: padding-box;
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
border-radius: 10px;
background-color: rgba(35, 46, 64, 0.1);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#1a232e40,endColorstr=#1a232e40);
}
div::-webkit-scrollbar-thumb:hover,
textarea::-webkit-scrollbar-thumb:hover {
background-color: rgba(32, 38, 59, 0.7);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#b320263b,endColorstr=#b320263b);
background-color: rgba(35, 46, 64, 0.3);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#4d232e40,endColorstr=#4d232e40);
}
.bi-theme-dark div::-webkit-scrollbar,
.bi-theme-dark textarea::-webkit-scrollbar {
-webkit-appearance: none;
}
.bi-theme-dark div::-webkit-scrollbar-track,
.bi-theme-dark textarea::-webkit-scrollbar-track {
background-color: rgba(255, 255, 255, 0.05);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#0dffffff,endColorstr=#0dffffff);
}
.bi-theme-dark div::-webkit-scrollbar-track:hover,
.bi-theme-dark textarea::-webkit-scrollbar-track:hover {
background-color: rgba(255, 255, 255, 0.05);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#0dffffff,endColorstr=#0dffffff);
width: 6px;
height: 6px;
}
.bi-theme-dark div::-webkit-scrollbar-thumb,
.bi-theme-dark textarea::-webkit-scrollbar-thumb {
-webkit-border-radius: 0;
-moz-border-radius: 0;
border-radius: 0;
background-color: rgba(255, 255, 255, 0.3);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#4dffffff,endColorstr=#4dffffff);
background-color: rgba(255, 255, 255, 0.1);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#1affffff,endColorstr=#1affffff);
}
.bi-theme-dark div::-webkit-scrollbar-thumb:hover,
.bi-theme-dark textarea::-webkit-scrollbar-thumb:hover {
background-color: rgba(255, 255, 255, 0.7);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#b3ffffff,endColorstr=#b3ffffff);
background-color: rgba(255, 255, 255, 0.3);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#4dffffff,endColorstr=#4dffffff);
}
.bi-farbtastic .wheel {
background: url('images/1x/background/wheel.png') no-repeat center center;

4
dist/utils.min.js vendored

File diff suppressed because one or more lines are too long

1
dist/widget.js vendored

@ -20295,7 +20295,6 @@ BI.SingleSlider = BI.inherit(BI.Widget, {
v = o.digit === false ? v : v.toFixed(o.digit);
self.label.setValue(v);
self.value = v;
self.fireEvent(BI.SingleSlider.EVENT_CHANGE);
}
}, function () {
if (startDrag === true) {

60
public/css/app.css

@ -30,42 +30,62 @@ body {
div::-webkit-scrollbar,
textarea::-webkit-scrollbar {
-webkit-appearance: none;
background-color: rgba(32, 38, 59, 0.05);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#0d20263b,endColorstr=#0d20263b);
width: 6px;
height: 6px;
width: 10px;
height: 10px;
}
div::-webkit-scrollbar-track,
textarea::-webkit-scrollbar-track {
width: 10px;
height: 10px;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
background-color: rgba(35, 46, 64, 0.05);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#0d232e40,endColorstr=#0d232e40);
}
div::-webkit-scrollbar-track:hover,
textarea::-webkit-scrollbar-track:hover {
background-color: rgba(35, 46, 64, 0.05);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#0d232e40,endColorstr=#0d232e40);
}
div::-webkit-scrollbar-thumb,
textarea::-webkit-scrollbar-thumb {
-webkit-border-radius: 0;
-moz-border-radius: 0;
border-radius: 0;
background-color: rgba(32, 38, 59, 0.3);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#4d20263b,endColorstr=#4d20263b);
width: 6px;
height: 6px;
border: 2px solid transparent;
background-clip: padding-box;
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
border-radius: 10px;
background-color: rgba(35, 46, 64, 0.1);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#1a232e40,endColorstr=#1a232e40);
}
div::-webkit-scrollbar-thumb:hover,
textarea::-webkit-scrollbar-thumb:hover {
background-color: rgba(32, 38, 59, 0.7);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#b320263b,endColorstr=#b320263b);
background-color: rgba(35, 46, 64, 0.3);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#4d232e40,endColorstr=#4d232e40);
}
.bi-theme-dark div::-webkit-scrollbar,
.bi-theme-dark textarea::-webkit-scrollbar {
-webkit-appearance: none;
}
.bi-theme-dark div::-webkit-scrollbar-track,
.bi-theme-dark textarea::-webkit-scrollbar-track {
background-color: rgba(255, 255, 255, 0.05);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#0dffffff,endColorstr=#0dffffff);
}
.bi-theme-dark div::-webkit-scrollbar-track:hover,
.bi-theme-dark textarea::-webkit-scrollbar-track:hover {
background-color: rgba(255, 255, 255, 0.05);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#0dffffff,endColorstr=#0dffffff);
width: 6px;
height: 6px;
}
.bi-theme-dark div::-webkit-scrollbar-thumb,
.bi-theme-dark textarea::-webkit-scrollbar-thumb {
-webkit-border-radius: 0;
-moz-border-radius: 0;
border-radius: 0;
background-color: rgba(255, 255, 255, 0.3);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#4dffffff,endColorstr=#4dffffff);
background-color: rgba(255, 255, 255, 0.1);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#1affffff,endColorstr=#1affffff);
}
.bi-theme-dark div::-webkit-scrollbar-thumb:hover,
.bi-theme-dark textarea::-webkit-scrollbar-thumb:hover {
background-color: rgba(255, 255, 255, 0.7);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#b3ffffff,endColorstr=#b3ffffff);
background-color: rgba(255, 255, 255, 0.3);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#4dffffff,endColorstr=#4dffffff);
}

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

@ -25,10 +25,16 @@ BI.SearchTextValueTrigger = BI.inherit(BI.Trigger, {
ref: function () {
self.editor = this;
},
text: this._digest(o.value, o.items),
text: this._getText(),
value: o.value,
height: o.height,
tipText: ""
tipText: "",
listeners: [{
eventName: BI.Events.MOUNT,
action: function () {
self.editor.setState(self._digest(o.value, o.items));
}
}]
},
popup: {
type: "bi.search_text_value_combo_popup",
@ -63,6 +69,11 @@ BI.SearchTextValueTrigger = BI.inherit(BI.Trigger, {
this.editor.setState(v);
},
_getText: function () {
var o = this.options;
return (BI.isKey(o.value) && o.text === this._digest(o.value, o.items)) ? "" : o.text;
},
_digest: function(vals, items){
var o = this.options;
vals = BI.isArray(vals) ? vals : [vals];

24
src/core/wrapper/layout/layout.adaptive.js

@ -22,53 +22,53 @@ BI.AdaptiveLayout = BI.inherit(BI.Layout, {
var left = 0, right = 0, top = 0, bottom = 0;
if (BI.isNotNull(item.left)) {
w.element.css({
"margin-left": item.left
left: item.left
});
}
if (BI.isNotNull(item.right)) {
w.element.css({
"margin-right": item.right
right: item.right
});
}
if (BI.isNotNull(item.top)) {
w.element.css({
"margin-top": item.top
top: item.top
});
}
if (BI.isNotNull(item.bottom)) {
w.element.css({
"margin-bottom": item.bottom
bottom: item.bottom
});
}
if (BI.isNotNull(o.hgap)) {
left += o.hgap;
w.element.css({left: left});
w.element.css({"margin-left": left});
right += o.hgap;
w.element.css({right: right});
w.element.css({"margin-right": right});
}
if (BI.isNotNull(o.vgap)) {
top += o.vgap;
w.element.css({top: top});
w.element.css({"margin-top": top});
bottom += o.vgap;
w.element.css({bottom: bottom});
w.element.css({"margin-bottom": bottom});
}
if (BI.isNotNull(o.lgap)) {
left += o.lgap;
w.element.css({left: left});
w.element.css({"margin-left": left});
}
if (BI.isNotNull(o.rgap)) {
right += o.rgap;
w.element.css({right: right});
w.element.css({"margin-right": right});
}
if (BI.isNotNull(o.tgap)) {
top += o.tgap;
w.element.css({top: top});
w.element.css({"margin-top": top});
}
if (BI.isNotNull(o.bgap)) {
bottom += o.bgap;
w.element.css({bottom: bottom});
w.element.css({"margin-bottom": bottom});
}
if (BI.isNotNull(item.width)) {

60
src/css/resource/app.css

@ -30,42 +30,62 @@ body {
div::-webkit-scrollbar,
textarea::-webkit-scrollbar {
-webkit-appearance: none;
background-color: rgba(32, 38, 59, 0.05);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#0d20263b,endColorstr=#0d20263b);
width: 6px;
height: 6px;
width: 10px;
height: 10px;
}
div::-webkit-scrollbar-track,
textarea::-webkit-scrollbar-track {
width: 10px;
height: 10px;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
background-color: rgba(35, 46, 64, 0.05);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#0d232e40,endColorstr=#0d232e40);
}
div::-webkit-scrollbar-track:hover,
textarea::-webkit-scrollbar-track:hover {
background-color: rgba(35, 46, 64, 0.05);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#0d232e40,endColorstr=#0d232e40);
}
div::-webkit-scrollbar-thumb,
textarea::-webkit-scrollbar-thumb {
-webkit-border-radius: 0;
-moz-border-radius: 0;
border-radius: 0;
background-color: rgba(32, 38, 59, 0.3);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#4d20263b,endColorstr=#4d20263b);
width: 6px;
height: 6px;
border: 2px solid transparent;
background-clip: padding-box;
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
border-radius: 10px;
background-color: rgba(35, 46, 64, 0.1);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#1a232e40,endColorstr=#1a232e40);
}
div::-webkit-scrollbar-thumb:hover,
textarea::-webkit-scrollbar-thumb:hover {
background-color: rgba(32, 38, 59, 0.7);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#b320263b,endColorstr=#b320263b);
background-color: rgba(35, 46, 64, 0.3);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#4d232e40,endColorstr=#4d232e40);
}
.bi-theme-dark div::-webkit-scrollbar,
.bi-theme-dark textarea::-webkit-scrollbar {
-webkit-appearance: none;
}
.bi-theme-dark div::-webkit-scrollbar-track,
.bi-theme-dark textarea::-webkit-scrollbar-track {
background-color: rgba(255, 255, 255, 0.05);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#0dffffff,endColorstr=#0dffffff);
}
.bi-theme-dark div::-webkit-scrollbar-track:hover,
.bi-theme-dark textarea::-webkit-scrollbar-track:hover {
background-color: rgba(255, 255, 255, 0.05);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#0dffffff,endColorstr=#0dffffff);
width: 6px;
height: 6px;
}
.bi-theme-dark div::-webkit-scrollbar-thumb,
.bi-theme-dark textarea::-webkit-scrollbar-thumb {
-webkit-border-radius: 0;
-moz-border-radius: 0;
border-radius: 0;
background-color: rgba(255, 255, 255, 0.3);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#4dffffff,endColorstr=#4dffffff);
background-color: rgba(255, 255, 255, 0.1);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#1affffff,endColorstr=#1affffff);
}
.bi-theme-dark div::-webkit-scrollbar-thumb:hover,
.bi-theme-dark textarea::-webkit-scrollbar-thumb:hover {
background-color: rgba(255, 255, 255, 0.7);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#b3ffffff,endColorstr=#b3ffffff);
background-color: rgba(255, 255, 255, 0.3);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#4dffffff,endColorstr=#4dffffff);
}

4
src/less/lib/constant.less

@ -102,7 +102,9 @@
@border-color-disabled-theme-dark: #606479;
//scroll color
@scroll-color: #20263b;
@scroll-color: #232e40;
@scroll-color-theme-dark: #ffffff;
@scroll-thumb-color: #232e40;
@scroll-thumb-color-theme-dark: #232e40;
@water-mark-color-theme-dark: #878d9f;

34
src/less/resource/app.less

@ -29,15 +29,27 @@ body {
div, textarea {
&::-webkit-scrollbar {
-webkit-appearance: none;
width: 10px;
height: 10px;
}
&::-webkit-scrollbar-track {
width: 10px;
height: 10px;
.border-radius(5px);
.background-color(@scroll-color, 5%);
&:hover {
.background-color(@scroll-color, 5%);
width: 6px;
height: 6px;
}
}
&::-webkit-scrollbar-thumb {
.border-radius(0);
.background-color(@scroll-color, 30%);
width: 6px;
height: 6px;
border: 2px solid transparent;
background-clip: padding-box;
.border-radius(10px);
.background-color(@scroll-color, 10%);
&:hover {
.background-color(@scroll-color, 70%);
.background-color(@scroll-color, 30%);
}
}
}
@ -46,15 +58,17 @@ div, textarea {
div, textarea {
&::-webkit-scrollbar {
-webkit-appearance: none;
}
&::-webkit-scrollbar-track {
.background-color(@scroll-color-theme-dark, 5%);
width: 6px;
height: 6px;
&:hover {
.background-color(@scroll-color-theme-dark, 5%);
}
}
&::-webkit-scrollbar-thumb {
.border-radius(0);
.background-color(@scroll-color-theme-dark, 30%);
.background-color(@scroll-color-theme-dark, 10%);
&:hover {
.background-color(@scroll-color-theme-dark, 70%);
.background-color(@scroll-color-theme-dark, 30%);
}
}
}

1
src/widget/singleslider/singleslider.js

@ -157,7 +157,6 @@ BI.SingleSlider = BI.inherit(BI.Widget, {
v = o.digit === false ? v : v.toFixed(o.digit);
self.label.setValue(v);
self.value = v;
self.fireEvent(BI.SingleSlider.EVENT_CHANGE);
}
}, function () {
if (startDrag === true) {

26
typescript/core/base.ts

@ -9,13 +9,13 @@ export interface _base {
createWidgets: (items: any, options: any, context: any) => any;
createItems: (data: any[], innerAttr: any[], outerAttr: any[]) => any;
createItems: <T, U, K>(data: T[], innerAttr?: U[], outerAttr?: K[]) => (U & T & K)[];
packageItems: (items: any[], layouts: any[]) => any[];
formatEL: (obj: any) => {el: any}
formatEL: <T>(obj: T) => {el: T} | T
stripEL: (obj: any) => any;
stripEL: <T>(obj: {el: T} | T) => T;
trans2Element: (widgets: any[]) => any[];
@ -56,7 +56,7 @@ export interface _base {
some: (collection: any[]|object|string, callback?: Function|object|string, thisArg?: any) => boolean;
_any: (collection: any[]|object|string, callback?: Function|object|string, thisArg?: any) => boolean;
any: (collection: any[]|object|string, callback?: Function|object|string, thisArg?: any) => boolean;
max: (collection: any[]|object|string, callback?: Function|object|string, thisArg?: any) => any;
@ -110,11 +110,11 @@ export interface _base {
// 数组相关的方法
first: <T>(array: T[], callback?: Function|object|number|string, thisArg?: any) => T;
initial: (array: any[], callback?: Function|object|number|string, thisArg?: any) => any[];
initial: <T>(array: T[], callback?: Function|object|number|string, thisArg?: any) => T[];
last: <T>(array: T[], callback?: Function|object|number|string, thisArg?: any) => T;
rest: (array: any[], callback?: Function|object|number|string, thisArg?: any) => any[];
rest: <T>(array: T[], callback?: Function|object|number|string, thisArg?: any) => T[];
compact: (array: any[]) => any[];
@ -132,7 +132,7 @@ export interface _base {
unzip: (...array: any[]) => any[];
_object: (keys: string[], values?: any[]) => any[];
object: (keys: string[], values?: any[]) => any[];
indexOf: (array: any[], value: any, fromIndex?: number) => number;
@ -142,19 +142,19 @@ export interface _base {
range: (start: number, end: number, step: number) => number[];
take: (array: any[], n: number) => any[];
take: <T>(array: T[], n: number) => T[];
takeRight: (array: any[], n: number) => any[];
takeRight: <T>(array: T[], n: number) => T[];
findIndex: (array: any[], value: any, callback?: Function|object|string, thisArg?: any) => number;
findLastIndex: (array: any[], value: any, callback?: Function|object|string, thisArg?: any) => number;
makeArray: (length: number, value: any) => any[];
makeArray: <T>(length: number, value?: T) => number[] | T[];
makeObject: (array: any[], value: any) => any;
makeArrayByArray: (array: any[], value: any) => any[];
makeArrayByArray: <T>(array: any[], value: T) => T[];
uniq: <T>(array: T[], isSorted?: boolean, iteratee?: any, context?: any) => T[];
@ -177,7 +177,7 @@ export interface _base {
defaults: (object: object, ...sources: any[]) => object;
clone: (object: object) => object;
clone: <T>(object: T) => T;
property: (path: any[]|string) => Function;
@ -237,7 +237,7 @@ export interface _base {
has: (obj: object, keys: string[]) => boolean;
freeze: (value: object) => object;
freeze: <T>(value: T) => T;
isKey: (key: any) => boolean;

60
ui/css/app.css

@ -30,42 +30,62 @@ body {
div::-webkit-scrollbar,
textarea::-webkit-scrollbar {
-webkit-appearance: none;
background-color: rgba(32, 38, 59, 0.05);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#0d20263b,endColorstr=#0d20263b);
width: 6px;
height: 6px;
width: 10px;
height: 10px;
}
div::-webkit-scrollbar-track,
textarea::-webkit-scrollbar-track {
width: 10px;
height: 10px;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
background-color: rgba(35, 46, 64, 0.05);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#0d232e40,endColorstr=#0d232e40);
}
div::-webkit-scrollbar-track:hover,
textarea::-webkit-scrollbar-track:hover {
background-color: rgba(35, 46, 64, 0.05);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#0d232e40,endColorstr=#0d232e40);
}
div::-webkit-scrollbar-thumb,
textarea::-webkit-scrollbar-thumb {
-webkit-border-radius: 0;
-moz-border-radius: 0;
border-radius: 0;
background-color: rgba(32, 38, 59, 0.3);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#4d20263b,endColorstr=#4d20263b);
width: 6px;
height: 6px;
border: 2px solid transparent;
background-clip: padding-box;
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
border-radius: 10px;
background-color: rgba(35, 46, 64, 0.1);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#1a232e40,endColorstr=#1a232e40);
}
div::-webkit-scrollbar-thumb:hover,
textarea::-webkit-scrollbar-thumb:hover {
background-color: rgba(32, 38, 59, 0.7);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#b320263b,endColorstr=#b320263b);
background-color: rgba(35, 46, 64, 0.3);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#4d232e40,endColorstr=#4d232e40);
}
.bi-theme-dark div::-webkit-scrollbar,
.bi-theme-dark textarea::-webkit-scrollbar {
-webkit-appearance: none;
}
.bi-theme-dark div::-webkit-scrollbar-track,
.bi-theme-dark textarea::-webkit-scrollbar-track {
background-color: rgba(255, 255, 255, 0.05);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#0dffffff,endColorstr=#0dffffff);
}
.bi-theme-dark div::-webkit-scrollbar-track:hover,
.bi-theme-dark textarea::-webkit-scrollbar-track:hover {
background-color: rgba(255, 255, 255, 0.05);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#0dffffff,endColorstr=#0dffffff);
width: 6px;
height: 6px;
}
.bi-theme-dark div::-webkit-scrollbar-thumb,
.bi-theme-dark textarea::-webkit-scrollbar-thumb {
-webkit-border-radius: 0;
-moz-border-radius: 0;
border-radius: 0;
background-color: rgba(255, 255, 255, 0.3);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#4dffffff,endColorstr=#4dffffff);
background-color: rgba(255, 255, 255, 0.1);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#1affffff,endColorstr=#1affffff);
}
.bi-theme-dark div::-webkit-scrollbar-thumb:hover,
.bi-theme-dark textarea::-webkit-scrollbar-thumb:hover {
background-color: rgba(255, 255, 255, 0.7);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#b3ffffff,endColorstr=#b3ffffff);
background-color: rgba(255, 255, 255, 0.3);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#4dffffff,endColorstr=#4dffffff);
}

Loading…
Cancel
Save