Browse Source

Merge pull request #1175 in VISUAL/fineui from ~TELLER/fineui:webpack-4.0 to master

* commit '6ed4648a51937255898dac88ae30bbfa09a2dd2b':
  chore: get-prototype采用core-js的polyfill
  KERNEL-1683 chore: polyfill分开打包,放到文件头
es6
Teller 5 years ago
parent
commit
ecb47d00c5
  1. 4
      Gruntfile.js
  2. 62
      dist/2.0/fineui.ie.js
  3. 72
      dist/2.0/fineui.ie.min.js
  4. 2
      dist/2.0/fineui.ie.min.js.map
  5. 55
      dist/2.0/fineui.js
  6. 24
      dist/2.0/fineui.min.js
  7. 2
      dist/2.0/fineui.min.js.map
  8. 62
      dist/bundle.ie.js
  9. 72
      dist/bundle.ie.min.js
  10. 2
      dist/bundle.ie.min.js.map
  11. 55
      dist/bundle.js
  12. 24
      dist/bundle.min.js
  13. 2
      dist/bundle.min.js.map
  14. 3
      dist/case.js
  15. 2
      dist/es5.fineui.js
  16. 2
      dist/es5.fineui.js.map
  17. 1
      dist/es5.polyfill.js
  18. 1
      dist/es5.polyfill.js.map
  19. 64
      dist/fineui.ie.js
  20. 102
      dist/fineui.ie.min.js
  21. 2
      dist/fineui.ie.min.js.map
  22. 57
      dist/fineui.js
  23. 37
      dist/fineui.min.js
  24. 2
      dist/fineui.min.js.map
  25. 55
      dist/fineui_without_jquery_polyfill.js
  26. 2
      dist/ie.fineui.js
  27. 2
      dist/ie.fineui.js.map
  28. 1
      dist/ie.polyfill.js
  29. 1
      dist/ie.polyfill.js.map
  30. 2
      dist/utils.min.js
  31. 52
      dist/widget.js
  32. 8
      src/polyfill/lodash.js
  33. 36
      webpack/webpack.common.js
  34. 2
      webpack/webpack.dev.js
  35. 2
      webpack/webpack.prod.js

4
Gruntfile.js

@ -136,13 +136,13 @@ module.exports = function (grunt) {
}, },
fineuiJs: { fineuiJs: {
src: ["dist/polyfill.js", "dist/core.js", "dist/fix/fix.js", "dist/base.js", src: ["dist/es5.polyfill.js","dist/polyfill.js", "dist/core.js", "dist/fix/fix.js", "dist/base.js",
"dist/case.js", "dist/widget.js", "dist/router.js", "dist/fix/fix.compact.js", "ui/js/**/*.js"], "dist/case.js", "dist/widget.js", "dist/router.js", "dist/fix/fix.compact.js", "ui/js/**/*.js"],
dest: "dist/fineui.js" dest: "dist/fineui.js"
}, },
fineuiIEJs: { fineuiIEJs: {
src: ["dist/polyfill.js", "dist/core.js", "dist/fix/fix.ie.js", "dist/base.js", src: ["dist/ie.polyfill.js", "dist/polyfill.js", "dist/core.js", "dist/fix/fix.ie.js", "dist/base.js",
"dist/case.js", "dist/widget.js", "dist/router.js", "dist/fix/fix.compact.ie.js", "ui/js/**/*.js"], "dist/case.js", "dist/widget.js", "dist/router.js", "dist/fix/fix.compact.ie.js", "ui/js/**/*.js"],
dest: "dist/fineui.ie.js" dest: "dist/fineui.ie.js"
}, },

62
dist/2.0/fineui.ie.js vendored

@ -37635,8 +37635,9 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
return vm.model[key]; return vm.model[key];
}, },
last: vm.model[key], last: vm.model[key],
listener: _$1.bind(function () { listener: _$1.bind(function (c) {
context.p.model[key] = vm.model[key]; context.p.model[key] = c;
// context.p.model[key] = vm.model[key];
context.p.$digest(); context.p.$digest();
}, context.p) }, context.p)
}); });
@ -37774,7 +37775,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
}); });
if (contextListeners.length !== 0 || asyncListeners.length !== 0) { if (contextListeners.length !== 0 || asyncListeners.length !== 0) {
nextTick(function () { nextTick(function () {
_$1.each(contextListeners, function (listener) { _$1.each(BI.uniqBy(contextListeners.reverse(), "id").reverse(), function (listener) {
listener.cb(); listener.cb();
}); });
_$1.each(asyncListeners, function (listener) { _$1.each(asyncListeners, function (listener) {
@ -56128,6 +56129,9 @@ BI.TextBubblePopupBarView = BI.inherit(BI.Widget, {
}); });
return { return {
type: "bi.bubble_bar_popup_view", type: "bi.bubble_bar_popup_view",
minWidth: o.minWidth,
maxWidth: o.maxWidth,
minHeight: o.minHeight,
ref: function () { ref: function () {
self.popup = this; self.popup = this;
}, },
@ -80699,13 +80703,15 @@ BI.SingleSelectInsertCombo = BI.inherit(BI.Single, {
self.fireEvent(BI.SingleSelectInsertCombo.EVENT_STOP); self.fireEvent(BI.SingleSelectInsertCombo.EVENT_STOP);
}); });
this.trigger.on(BI.SingleSelectTrigger.EVENT_PAUSE, function () { this.trigger.on(BI.SingleSelectTrigger.EVENT_PAUSE, function () {
var keyword = this.getSearcher().getKeyword(); if (this.getSearcher().hasMatched()) {
self.storeValue = keyword; var keyword = this.getSearcher().getKeyword();
self.combo.setValue(self.storeValue); self.storeValue = keyword;
self._setStartValue(keyword); self.combo.setValue(self.storeValue);
assertShowValue(); self._setStartValue(keyword);
self.populate(); assertShowValue();
self._setStartValue(); self.populate();
self._setStartValue();
}
}); });
this.trigger.on(BI.SingleSelectTrigger.EVENT_SEARCHING, function (keywords) { this.trigger.on(BI.SingleSelectTrigger.EVENT_SEARCHING, function (keywords) {
var last = BI.last(keywords); var last = BI.last(keywords);
@ -82226,7 +82232,9 @@ BI.SingleSlider = BI.inherit(BI.Single, {
SLIDER_WIDTH_HALF: 15, SLIDER_WIDTH_HALF: 15,
SLIDER_WIDTH: 30, SLIDER_WIDTH: 30,
SLIDER_HEIGHT: 30, SLIDER_HEIGHT: 30,
TRACK_HEIGHT: 24 TRACK_HEIGHT: 24,
TRACK_GAP_HALF: 7,
TRACK_GAP: 14
}, },
props: { props: {
@ -82270,15 +82278,15 @@ BI.SingleSlider = BI.inherit(BI.Single, {
sliderVertical.element.click(function (e) { sliderVertical.element.click(function (e) {
if (self.enable && self.isEnabled()) { if (self.enable && self.isEnabled()) {
var offset = e.clientX - self.element.offset().left - c.SLIDER_WIDTH_HALF; var offset = e.clientX - self.element.offset().left - c.SLIDER_WIDTH_HALF;
var trackLength = self.track.element[0].scrollWidth; var trackLength = self.track.element[0].scrollWidth - c.TRACK_GAP;
var percent = 0; var percent = 0;
if (offset < 0) { if (offset < 0) {
percent = 0; percent = 0;
} }
if (offset > 0 && offset < (trackLength - c.SLIDER_WIDTH)) { if (offset > 0 && offset < trackLength) {
percent = offset * 100 / self._getGrayTrackLength(); percent = offset * 100 / self._getGrayTrackLength();
} }
if (offset > (trackLength - c.SLIDER_WIDTH)) { if (offset >= trackLength) {
percent = 100; percent = 100;
} }
var significantPercent = BI.parseFloat(percent.toFixed(1)); var significantPercent = BI.parseFloat(percent.toFixed(1));
@ -82329,7 +82337,7 @@ BI.SingleSlider = BI.inherit(BI.Single, {
height: c.TRACK_HEIGHT height: c.TRACK_HEIGHT
}] }]
}], }],
hgap: 7, hgap: c.TRACK_GAP_HALF,
height: c.TRACK_HEIGHT height: c.TRACK_HEIGHT
}, },
top: 23, top: 23,
@ -82561,7 +82569,9 @@ BI.SingleSliderLabel = BI.inherit(BI.Single, {
SLIDER_WIDTH_HALF: 15, SLIDER_WIDTH_HALF: 15,
SLIDER_WIDTH: 30, SLIDER_WIDTH: 30,
SLIDER_HEIGHT: 30, SLIDER_HEIGHT: 30,
TRACK_HEIGHT: 24 TRACK_HEIGHT: 24,
TRACK_GAP_HALF: 7,
TRACK_GAP: 14
}, },
_defaultConfig: function () { _defaultConfig: function () {
return BI.extend(BI.SingleSliderLabel.superclass._defaultConfig.apply(this, arguments), { return BI.extend(BI.SingleSliderLabel.superclass._defaultConfig.apply(this, arguments), {
@ -82606,15 +82616,15 @@ BI.SingleSliderLabel = BI.inherit(BI.Single, {
sliderVertical.element.click(function (e) { sliderVertical.element.click(function (e) {
if (self.enable && self.isEnabled()) { if (self.enable && self.isEnabled()) {
var offset = e.clientX - self.element.offset().left - c.SLIDER_WIDTH_HALF; var offset = e.clientX - self.element.offset().left - c.SLIDER_WIDTH_HALF;
var trackLength = self.track.element[0].scrollWidth; var trackLength = self.track.element[0].scrollWidth - c.TRACK_GAP;
var percent = 0; var percent = 0;
if (offset < 0) { if (offset < 0) {
percent = 0; percent = 0;
} }
if (offset > 0 && offset < (trackLength - c.SLIDER_WIDTH)) { if (offset > 0 && offset < trackLength) {
percent = offset * 100 / self._getGrayTrackLength(); percent = offset * 100 / self._getGrayTrackLength();
} }
if (offset > (trackLength - c.SLIDER_WIDTH)) { if (offset >= trackLength) {
percent = 100; percent = 100;
} }
var significantPercent = BI.parseFloat(percent.toFixed(1)); var significantPercent = BI.parseFloat(percent.toFixed(1));
@ -82647,7 +82657,7 @@ BI.SingleSliderLabel = BI.inherit(BI.Single, {
height: c.TRACK_HEIGHT height: c.TRACK_HEIGHT
}] }]
}], }],
hgap: 7, hgap: c.TRACK_GAP_HALF,
height: c.TRACK_HEIGHT height: c.TRACK_HEIGHT
}, },
top: 13, top: 13,
@ -82869,7 +82879,9 @@ BI.SingleSliderNormal = BI.inherit(BI.Single, {
SLIDER_WIDTH_HALF: 15, SLIDER_WIDTH_HALF: 15,
SLIDER_WIDTH: 30, SLIDER_WIDTH: 30,
SLIDER_HEIGHT: 30, SLIDER_HEIGHT: 30,
TRACK_HEIGHT: 24 TRACK_HEIGHT: 24,
TRACK_GAP_HALF: 7,
TRACK_GAP: 14
}, },
props: { props: {
@ -82902,15 +82914,15 @@ BI.SingleSliderNormal = BI.inherit(BI.Single, {
sliderVertical.element.click(function (e) { sliderVertical.element.click(function (e) {
if (self.enable && self.isEnabled()) { if (self.enable && self.isEnabled()) {
var offset = e.clientX - self.element.offset().left - c.SLIDER_WIDTH_HALF; var offset = e.clientX - self.element.offset().left - c.SLIDER_WIDTH_HALF;
var trackLength = self.track.element[0].scrollWidth; var trackLength = self.track.element[0].scrollWidth - c.TRACK_GAP;
var percent = 0; var percent = 0;
if (offset < 0) { if (offset < 0) {
percent = 0; percent = 0;
} }
if (offset > 0 && offset < (trackLength - c.SLIDER_WIDTH)) { if (offset > 0 && offset < trackLength) {
percent = offset * 100 / self._getGrayTrackLength(); percent = offset * 100 / self._getGrayTrackLength();
} }
if (offset > (trackLength - c.SLIDER_WIDTH)) { if (offset >= trackLength) {
percent = 100; percent = 100;
} }
var significantPercent = BI.parseFloat(percent.toFixed(1)); var significantPercent = BI.parseFloat(percent.toFixed(1));
@ -82935,7 +82947,7 @@ BI.SingleSliderNormal = BI.inherit(BI.Single, {
height: c.TRACK_HEIGHT height: c.TRACK_HEIGHT
}] }]
}], }],
hgap: 7, hgap: c.TRACK_GAP_HALF,
height: c.TRACK_HEIGHT height: c.TRACK_HEIGHT
}, },
top: 3, top: 3,

72
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

55
dist/2.0/fineui.js vendored

@ -56532,6 +56532,9 @@ BI.TextBubblePopupBarView = BI.inherit(BI.Widget, {
}); });
return { return {
type: "bi.bubble_bar_popup_view", type: "bi.bubble_bar_popup_view",
minWidth: o.minWidth,
maxWidth: o.maxWidth,
minHeight: o.minHeight,
ref: function () { ref: function () {
self.popup = this; self.popup = this;
}, },
@ -81103,13 +81106,15 @@ BI.SingleSelectInsertCombo = BI.inherit(BI.Single, {
self.fireEvent(BI.SingleSelectInsertCombo.EVENT_STOP); self.fireEvent(BI.SingleSelectInsertCombo.EVENT_STOP);
}); });
this.trigger.on(BI.SingleSelectTrigger.EVENT_PAUSE, function () { this.trigger.on(BI.SingleSelectTrigger.EVENT_PAUSE, function () {
var keyword = this.getSearcher().getKeyword(); if (this.getSearcher().hasMatched()) {
self.storeValue = keyword; var keyword = this.getSearcher().getKeyword();
self.combo.setValue(self.storeValue); self.storeValue = keyword;
self._setStartValue(keyword); self.combo.setValue(self.storeValue);
assertShowValue(); self._setStartValue(keyword);
self.populate(); assertShowValue();
self._setStartValue(); self.populate();
self._setStartValue();
}
}); });
this.trigger.on(BI.SingleSelectTrigger.EVENT_SEARCHING, function (keywords) { this.trigger.on(BI.SingleSelectTrigger.EVENT_SEARCHING, function (keywords) {
var last = BI.last(keywords); var last = BI.last(keywords);
@ -82630,7 +82635,9 @@ BI.SingleSlider = BI.inherit(BI.Single, {
SLIDER_WIDTH_HALF: 15, SLIDER_WIDTH_HALF: 15,
SLIDER_WIDTH: 30, SLIDER_WIDTH: 30,
SLIDER_HEIGHT: 30, SLIDER_HEIGHT: 30,
TRACK_HEIGHT: 24 TRACK_HEIGHT: 24,
TRACK_GAP_HALF: 7,
TRACK_GAP: 14
}, },
props: { props: {
@ -82674,15 +82681,15 @@ BI.SingleSlider = BI.inherit(BI.Single, {
sliderVertical.element.click(function (e) { sliderVertical.element.click(function (e) {
if (self.enable && self.isEnabled()) { if (self.enable && self.isEnabled()) {
var offset = e.clientX - self.element.offset().left - c.SLIDER_WIDTH_HALF; var offset = e.clientX - self.element.offset().left - c.SLIDER_WIDTH_HALF;
var trackLength = self.track.element[0].scrollWidth; var trackLength = self.track.element[0].scrollWidth - c.TRACK_GAP;
var percent = 0; var percent = 0;
if (offset < 0) { if (offset < 0) {
percent = 0; percent = 0;
} }
if (offset > 0 && offset < (trackLength - c.SLIDER_WIDTH)) { if (offset > 0 && offset < trackLength) {
percent = offset * 100 / self._getGrayTrackLength(); percent = offset * 100 / self._getGrayTrackLength();
} }
if (offset > (trackLength - c.SLIDER_WIDTH)) { if (offset >= trackLength) {
percent = 100; percent = 100;
} }
var significantPercent = BI.parseFloat(percent.toFixed(1)); var significantPercent = BI.parseFloat(percent.toFixed(1));
@ -82733,7 +82740,7 @@ BI.SingleSlider = BI.inherit(BI.Single, {
height: c.TRACK_HEIGHT height: c.TRACK_HEIGHT
}] }]
}], }],
hgap: 7, hgap: c.TRACK_GAP_HALF,
height: c.TRACK_HEIGHT height: c.TRACK_HEIGHT
}, },
top: 23, top: 23,
@ -82965,7 +82972,9 @@ BI.SingleSliderLabel = BI.inherit(BI.Single, {
SLIDER_WIDTH_HALF: 15, SLIDER_WIDTH_HALF: 15,
SLIDER_WIDTH: 30, SLIDER_WIDTH: 30,
SLIDER_HEIGHT: 30, SLIDER_HEIGHT: 30,
TRACK_HEIGHT: 24 TRACK_HEIGHT: 24,
TRACK_GAP_HALF: 7,
TRACK_GAP: 14
}, },
_defaultConfig: function () { _defaultConfig: function () {
return BI.extend(BI.SingleSliderLabel.superclass._defaultConfig.apply(this, arguments), { return BI.extend(BI.SingleSliderLabel.superclass._defaultConfig.apply(this, arguments), {
@ -83010,15 +83019,15 @@ BI.SingleSliderLabel = BI.inherit(BI.Single, {
sliderVertical.element.click(function (e) { sliderVertical.element.click(function (e) {
if (self.enable && self.isEnabled()) { if (self.enable && self.isEnabled()) {
var offset = e.clientX - self.element.offset().left - c.SLIDER_WIDTH_HALF; var offset = e.clientX - self.element.offset().left - c.SLIDER_WIDTH_HALF;
var trackLength = self.track.element[0].scrollWidth; var trackLength = self.track.element[0].scrollWidth - c.TRACK_GAP;
var percent = 0; var percent = 0;
if (offset < 0) { if (offset < 0) {
percent = 0; percent = 0;
} }
if (offset > 0 && offset < (trackLength - c.SLIDER_WIDTH)) { if (offset > 0 && offset < trackLength) {
percent = offset * 100 / self._getGrayTrackLength(); percent = offset * 100 / self._getGrayTrackLength();
} }
if (offset > (trackLength - c.SLIDER_WIDTH)) { if (offset >= trackLength) {
percent = 100; percent = 100;
} }
var significantPercent = BI.parseFloat(percent.toFixed(1)); var significantPercent = BI.parseFloat(percent.toFixed(1));
@ -83051,7 +83060,7 @@ BI.SingleSliderLabel = BI.inherit(BI.Single, {
height: c.TRACK_HEIGHT height: c.TRACK_HEIGHT
}] }]
}], }],
hgap: 7, hgap: c.TRACK_GAP_HALF,
height: c.TRACK_HEIGHT height: c.TRACK_HEIGHT
}, },
top: 13, top: 13,
@ -83273,7 +83282,9 @@ BI.SingleSliderNormal = BI.inherit(BI.Single, {
SLIDER_WIDTH_HALF: 15, SLIDER_WIDTH_HALF: 15,
SLIDER_WIDTH: 30, SLIDER_WIDTH: 30,
SLIDER_HEIGHT: 30, SLIDER_HEIGHT: 30,
TRACK_HEIGHT: 24 TRACK_HEIGHT: 24,
TRACK_GAP_HALF: 7,
TRACK_GAP: 14
}, },
props: { props: {
@ -83306,15 +83317,15 @@ BI.SingleSliderNormal = BI.inherit(BI.Single, {
sliderVertical.element.click(function (e) { sliderVertical.element.click(function (e) {
if (self.enable && self.isEnabled()) { if (self.enable && self.isEnabled()) {
var offset = e.clientX - self.element.offset().left - c.SLIDER_WIDTH_HALF; var offset = e.clientX - self.element.offset().left - c.SLIDER_WIDTH_HALF;
var trackLength = self.track.element[0].scrollWidth; var trackLength = self.track.element[0].scrollWidth - c.TRACK_GAP;
var percent = 0; var percent = 0;
if (offset < 0) { if (offset < 0) {
percent = 0; percent = 0;
} }
if (offset > 0 && offset < (trackLength - c.SLIDER_WIDTH)) { if (offset > 0 && offset < trackLength) {
percent = offset * 100 / self._getGrayTrackLength(); percent = offset * 100 / self._getGrayTrackLength();
} }
if (offset > (trackLength - c.SLIDER_WIDTH)) { if (offset >= trackLength) {
percent = 100; percent = 100;
} }
var significantPercent = BI.parseFloat(percent.toFixed(1)); var significantPercent = BI.parseFloat(percent.toFixed(1));
@ -83339,7 +83350,7 @@ BI.SingleSliderNormal = BI.inherit(BI.Single, {
height: c.TRACK_HEIGHT height: c.TRACK_HEIGHT
}] }]
}], }],
hgap: 7, hgap: c.TRACK_GAP_HALF,
height: c.TRACK_HEIGHT height: c.TRACK_HEIGHT
}, },
top: 3, top: 3,

24
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

62
dist/bundle.ie.js vendored

@ -37635,8 +37635,9 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
return vm.model[key]; return vm.model[key];
}, },
last: vm.model[key], last: vm.model[key],
listener: _$1.bind(function () { listener: _$1.bind(function (c) {
context.p.model[key] = vm.model[key]; context.p.model[key] = c;
// context.p.model[key] = vm.model[key];
context.p.$digest(); context.p.$digest();
}, context.p) }, context.p)
}); });
@ -37774,7 +37775,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
}); });
if (contextListeners.length !== 0 || asyncListeners.length !== 0) { if (contextListeners.length !== 0 || asyncListeners.length !== 0) {
nextTick(function () { nextTick(function () {
_$1.each(contextListeners, function (listener) { _$1.each(BI.uniqBy(contextListeners.reverse(), "id").reverse(), function (listener) {
listener.cb(); listener.cb();
}); });
_$1.each(asyncListeners, function (listener) { _$1.each(asyncListeners, function (listener) {
@ -56128,6 +56129,9 @@ BI.TextBubblePopupBarView = BI.inherit(BI.Widget, {
}); });
return { return {
type: "bi.bubble_bar_popup_view", type: "bi.bubble_bar_popup_view",
minWidth: o.minWidth,
maxWidth: o.maxWidth,
minHeight: o.minHeight,
ref: function () { ref: function () {
self.popup = this; self.popup = this;
}, },
@ -80699,13 +80703,15 @@ BI.SingleSelectInsertCombo = BI.inherit(BI.Single, {
self.fireEvent(BI.SingleSelectInsertCombo.EVENT_STOP); self.fireEvent(BI.SingleSelectInsertCombo.EVENT_STOP);
}); });
this.trigger.on(BI.SingleSelectTrigger.EVENT_PAUSE, function () { this.trigger.on(BI.SingleSelectTrigger.EVENT_PAUSE, function () {
var keyword = this.getSearcher().getKeyword(); if (this.getSearcher().hasMatched()) {
self.storeValue = keyword; var keyword = this.getSearcher().getKeyword();
self.combo.setValue(self.storeValue); self.storeValue = keyword;
self._setStartValue(keyword); self.combo.setValue(self.storeValue);
assertShowValue(); self._setStartValue(keyword);
self.populate(); assertShowValue();
self._setStartValue(); self.populate();
self._setStartValue();
}
}); });
this.trigger.on(BI.SingleSelectTrigger.EVENT_SEARCHING, function (keywords) { this.trigger.on(BI.SingleSelectTrigger.EVENT_SEARCHING, function (keywords) {
var last = BI.last(keywords); var last = BI.last(keywords);
@ -82226,7 +82232,9 @@ BI.SingleSlider = BI.inherit(BI.Single, {
SLIDER_WIDTH_HALF: 15, SLIDER_WIDTH_HALF: 15,
SLIDER_WIDTH: 30, SLIDER_WIDTH: 30,
SLIDER_HEIGHT: 30, SLIDER_HEIGHT: 30,
TRACK_HEIGHT: 24 TRACK_HEIGHT: 24,
TRACK_GAP_HALF: 7,
TRACK_GAP: 14
}, },
props: { props: {
@ -82270,15 +82278,15 @@ BI.SingleSlider = BI.inherit(BI.Single, {
sliderVertical.element.click(function (e) { sliderVertical.element.click(function (e) {
if (self.enable && self.isEnabled()) { if (self.enable && self.isEnabled()) {
var offset = e.clientX - self.element.offset().left - c.SLIDER_WIDTH_HALF; var offset = e.clientX - self.element.offset().left - c.SLIDER_WIDTH_HALF;
var trackLength = self.track.element[0].scrollWidth; var trackLength = self.track.element[0].scrollWidth - c.TRACK_GAP;
var percent = 0; var percent = 0;
if (offset < 0) { if (offset < 0) {
percent = 0; percent = 0;
} }
if (offset > 0 && offset < (trackLength - c.SLIDER_WIDTH)) { if (offset > 0 && offset < trackLength) {
percent = offset * 100 / self._getGrayTrackLength(); percent = offset * 100 / self._getGrayTrackLength();
} }
if (offset > (trackLength - c.SLIDER_WIDTH)) { if (offset >= trackLength) {
percent = 100; percent = 100;
} }
var significantPercent = BI.parseFloat(percent.toFixed(1)); var significantPercent = BI.parseFloat(percent.toFixed(1));
@ -82329,7 +82337,7 @@ BI.SingleSlider = BI.inherit(BI.Single, {
height: c.TRACK_HEIGHT height: c.TRACK_HEIGHT
}] }]
}], }],
hgap: 7, hgap: c.TRACK_GAP_HALF,
height: c.TRACK_HEIGHT height: c.TRACK_HEIGHT
}, },
top: 23, top: 23,
@ -82561,7 +82569,9 @@ BI.SingleSliderLabel = BI.inherit(BI.Single, {
SLIDER_WIDTH_HALF: 15, SLIDER_WIDTH_HALF: 15,
SLIDER_WIDTH: 30, SLIDER_WIDTH: 30,
SLIDER_HEIGHT: 30, SLIDER_HEIGHT: 30,
TRACK_HEIGHT: 24 TRACK_HEIGHT: 24,
TRACK_GAP_HALF: 7,
TRACK_GAP: 14
}, },
_defaultConfig: function () { _defaultConfig: function () {
return BI.extend(BI.SingleSliderLabel.superclass._defaultConfig.apply(this, arguments), { return BI.extend(BI.SingleSliderLabel.superclass._defaultConfig.apply(this, arguments), {
@ -82606,15 +82616,15 @@ BI.SingleSliderLabel = BI.inherit(BI.Single, {
sliderVertical.element.click(function (e) { sliderVertical.element.click(function (e) {
if (self.enable && self.isEnabled()) { if (self.enable && self.isEnabled()) {
var offset = e.clientX - self.element.offset().left - c.SLIDER_WIDTH_HALF; var offset = e.clientX - self.element.offset().left - c.SLIDER_WIDTH_HALF;
var trackLength = self.track.element[0].scrollWidth; var trackLength = self.track.element[0].scrollWidth - c.TRACK_GAP;
var percent = 0; var percent = 0;
if (offset < 0) { if (offset < 0) {
percent = 0; percent = 0;
} }
if (offset > 0 && offset < (trackLength - c.SLIDER_WIDTH)) { if (offset > 0 && offset < trackLength) {
percent = offset * 100 / self._getGrayTrackLength(); percent = offset * 100 / self._getGrayTrackLength();
} }
if (offset > (trackLength - c.SLIDER_WIDTH)) { if (offset >= trackLength) {
percent = 100; percent = 100;
} }
var significantPercent = BI.parseFloat(percent.toFixed(1)); var significantPercent = BI.parseFloat(percent.toFixed(1));
@ -82647,7 +82657,7 @@ BI.SingleSliderLabel = BI.inherit(BI.Single, {
height: c.TRACK_HEIGHT height: c.TRACK_HEIGHT
}] }]
}], }],
hgap: 7, hgap: c.TRACK_GAP_HALF,
height: c.TRACK_HEIGHT height: c.TRACK_HEIGHT
}, },
top: 13, top: 13,
@ -82869,7 +82879,9 @@ BI.SingleSliderNormal = BI.inherit(BI.Single, {
SLIDER_WIDTH_HALF: 15, SLIDER_WIDTH_HALF: 15,
SLIDER_WIDTH: 30, SLIDER_WIDTH: 30,
SLIDER_HEIGHT: 30, SLIDER_HEIGHT: 30,
TRACK_HEIGHT: 24 TRACK_HEIGHT: 24,
TRACK_GAP_HALF: 7,
TRACK_GAP: 14
}, },
props: { props: {
@ -82902,15 +82914,15 @@ BI.SingleSliderNormal = BI.inherit(BI.Single, {
sliderVertical.element.click(function (e) { sliderVertical.element.click(function (e) {
if (self.enable && self.isEnabled()) { if (self.enable && self.isEnabled()) {
var offset = e.clientX - self.element.offset().left - c.SLIDER_WIDTH_HALF; var offset = e.clientX - self.element.offset().left - c.SLIDER_WIDTH_HALF;
var trackLength = self.track.element[0].scrollWidth; var trackLength = self.track.element[0].scrollWidth - c.TRACK_GAP;
var percent = 0; var percent = 0;
if (offset < 0) { if (offset < 0) {
percent = 0; percent = 0;
} }
if (offset > 0 && offset < (trackLength - c.SLIDER_WIDTH)) { if (offset > 0 && offset < trackLength) {
percent = offset * 100 / self._getGrayTrackLength(); percent = offset * 100 / self._getGrayTrackLength();
} }
if (offset > (trackLength - c.SLIDER_WIDTH)) { if (offset >= trackLength) {
percent = 100; percent = 100;
} }
var significantPercent = BI.parseFloat(percent.toFixed(1)); var significantPercent = BI.parseFloat(percent.toFixed(1));
@ -82935,7 +82947,7 @@ BI.SingleSliderNormal = BI.inherit(BI.Single, {
height: c.TRACK_HEIGHT height: c.TRACK_HEIGHT
}] }]
}], }],
hgap: 7, hgap: c.TRACK_GAP_HALF,
height: c.TRACK_HEIGHT height: c.TRACK_HEIGHT
}, },
top: 3, top: 3,

72
dist/bundle.ie.min.js vendored

File diff suppressed because one or more lines are too long

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

File diff suppressed because one or more lines are too long

55
dist/bundle.js vendored

@ -56532,6 +56532,9 @@ BI.TextBubblePopupBarView = BI.inherit(BI.Widget, {
}); });
return { return {
type: "bi.bubble_bar_popup_view", type: "bi.bubble_bar_popup_view",
minWidth: o.minWidth,
maxWidth: o.maxWidth,
minHeight: o.minHeight,
ref: function () { ref: function () {
self.popup = this; self.popup = this;
}, },
@ -81103,13 +81106,15 @@ BI.SingleSelectInsertCombo = BI.inherit(BI.Single, {
self.fireEvent(BI.SingleSelectInsertCombo.EVENT_STOP); self.fireEvent(BI.SingleSelectInsertCombo.EVENT_STOP);
}); });
this.trigger.on(BI.SingleSelectTrigger.EVENT_PAUSE, function () { this.trigger.on(BI.SingleSelectTrigger.EVENT_PAUSE, function () {
var keyword = this.getSearcher().getKeyword(); if (this.getSearcher().hasMatched()) {
self.storeValue = keyword; var keyword = this.getSearcher().getKeyword();
self.combo.setValue(self.storeValue); self.storeValue = keyword;
self._setStartValue(keyword); self.combo.setValue(self.storeValue);
assertShowValue(); self._setStartValue(keyword);
self.populate(); assertShowValue();
self._setStartValue(); self.populate();
self._setStartValue();
}
}); });
this.trigger.on(BI.SingleSelectTrigger.EVENT_SEARCHING, function (keywords) { this.trigger.on(BI.SingleSelectTrigger.EVENT_SEARCHING, function (keywords) {
var last = BI.last(keywords); var last = BI.last(keywords);
@ -82630,7 +82635,9 @@ BI.SingleSlider = BI.inherit(BI.Single, {
SLIDER_WIDTH_HALF: 15, SLIDER_WIDTH_HALF: 15,
SLIDER_WIDTH: 30, SLIDER_WIDTH: 30,
SLIDER_HEIGHT: 30, SLIDER_HEIGHT: 30,
TRACK_HEIGHT: 24 TRACK_HEIGHT: 24,
TRACK_GAP_HALF: 7,
TRACK_GAP: 14
}, },
props: { props: {
@ -82674,15 +82681,15 @@ BI.SingleSlider = BI.inherit(BI.Single, {
sliderVertical.element.click(function (e) { sliderVertical.element.click(function (e) {
if (self.enable && self.isEnabled()) { if (self.enable && self.isEnabled()) {
var offset = e.clientX - self.element.offset().left - c.SLIDER_WIDTH_HALF; var offset = e.clientX - self.element.offset().left - c.SLIDER_WIDTH_HALF;
var trackLength = self.track.element[0].scrollWidth; var trackLength = self.track.element[0].scrollWidth - c.TRACK_GAP;
var percent = 0; var percent = 0;
if (offset < 0) { if (offset < 0) {
percent = 0; percent = 0;
} }
if (offset > 0 && offset < (trackLength - c.SLIDER_WIDTH)) { if (offset > 0 && offset < trackLength) {
percent = offset * 100 / self._getGrayTrackLength(); percent = offset * 100 / self._getGrayTrackLength();
} }
if (offset > (trackLength - c.SLIDER_WIDTH)) { if (offset >= trackLength) {
percent = 100; percent = 100;
} }
var significantPercent = BI.parseFloat(percent.toFixed(1)); var significantPercent = BI.parseFloat(percent.toFixed(1));
@ -82733,7 +82740,7 @@ BI.SingleSlider = BI.inherit(BI.Single, {
height: c.TRACK_HEIGHT height: c.TRACK_HEIGHT
}] }]
}], }],
hgap: 7, hgap: c.TRACK_GAP_HALF,
height: c.TRACK_HEIGHT height: c.TRACK_HEIGHT
}, },
top: 23, top: 23,
@ -82965,7 +82972,9 @@ BI.SingleSliderLabel = BI.inherit(BI.Single, {
SLIDER_WIDTH_HALF: 15, SLIDER_WIDTH_HALF: 15,
SLIDER_WIDTH: 30, SLIDER_WIDTH: 30,
SLIDER_HEIGHT: 30, SLIDER_HEIGHT: 30,
TRACK_HEIGHT: 24 TRACK_HEIGHT: 24,
TRACK_GAP_HALF: 7,
TRACK_GAP: 14
}, },
_defaultConfig: function () { _defaultConfig: function () {
return BI.extend(BI.SingleSliderLabel.superclass._defaultConfig.apply(this, arguments), { return BI.extend(BI.SingleSliderLabel.superclass._defaultConfig.apply(this, arguments), {
@ -83010,15 +83019,15 @@ BI.SingleSliderLabel = BI.inherit(BI.Single, {
sliderVertical.element.click(function (e) { sliderVertical.element.click(function (e) {
if (self.enable && self.isEnabled()) { if (self.enable && self.isEnabled()) {
var offset = e.clientX - self.element.offset().left - c.SLIDER_WIDTH_HALF; var offset = e.clientX - self.element.offset().left - c.SLIDER_WIDTH_HALF;
var trackLength = self.track.element[0].scrollWidth; var trackLength = self.track.element[0].scrollWidth - c.TRACK_GAP;
var percent = 0; var percent = 0;
if (offset < 0) { if (offset < 0) {
percent = 0; percent = 0;
} }
if (offset > 0 && offset < (trackLength - c.SLIDER_WIDTH)) { if (offset > 0 && offset < trackLength) {
percent = offset * 100 / self._getGrayTrackLength(); percent = offset * 100 / self._getGrayTrackLength();
} }
if (offset > (trackLength - c.SLIDER_WIDTH)) { if (offset >= trackLength) {
percent = 100; percent = 100;
} }
var significantPercent = BI.parseFloat(percent.toFixed(1)); var significantPercent = BI.parseFloat(percent.toFixed(1));
@ -83051,7 +83060,7 @@ BI.SingleSliderLabel = BI.inherit(BI.Single, {
height: c.TRACK_HEIGHT height: c.TRACK_HEIGHT
}] }]
}], }],
hgap: 7, hgap: c.TRACK_GAP_HALF,
height: c.TRACK_HEIGHT height: c.TRACK_HEIGHT
}, },
top: 13, top: 13,
@ -83273,7 +83282,9 @@ BI.SingleSliderNormal = BI.inherit(BI.Single, {
SLIDER_WIDTH_HALF: 15, SLIDER_WIDTH_HALF: 15,
SLIDER_WIDTH: 30, SLIDER_WIDTH: 30,
SLIDER_HEIGHT: 30, SLIDER_HEIGHT: 30,
TRACK_HEIGHT: 24 TRACK_HEIGHT: 24,
TRACK_GAP_HALF: 7,
TRACK_GAP: 14
}, },
props: { props: {
@ -83306,15 +83317,15 @@ BI.SingleSliderNormal = BI.inherit(BI.Single, {
sliderVertical.element.click(function (e) { sliderVertical.element.click(function (e) {
if (self.enable && self.isEnabled()) { if (self.enable && self.isEnabled()) {
var offset = e.clientX - self.element.offset().left - c.SLIDER_WIDTH_HALF; var offset = e.clientX - self.element.offset().left - c.SLIDER_WIDTH_HALF;
var trackLength = self.track.element[0].scrollWidth; var trackLength = self.track.element[0].scrollWidth - c.TRACK_GAP;
var percent = 0; var percent = 0;
if (offset < 0) { if (offset < 0) {
percent = 0; percent = 0;
} }
if (offset > 0 && offset < (trackLength - c.SLIDER_WIDTH)) { if (offset > 0 && offset < trackLength) {
percent = offset * 100 / self._getGrayTrackLength(); percent = offset * 100 / self._getGrayTrackLength();
} }
if (offset > (trackLength - c.SLIDER_WIDTH)) { if (offset >= trackLength) {
percent = 100; percent = 100;
} }
var significantPercent = BI.parseFloat(percent.toFixed(1)); var significantPercent = BI.parseFloat(percent.toFixed(1));
@ -83339,7 +83350,7 @@ BI.SingleSliderNormal = BI.inherit(BI.Single, {
height: c.TRACK_HEIGHT height: c.TRACK_HEIGHT
}] }]
}], }],
hgap: 7, hgap: c.TRACK_GAP_HALF,
height: c.TRACK_HEIGHT height: c.TRACK_HEIGHT
}, },
top: 3, top: 3,

24
dist/bundle.min.js vendored

File diff suppressed because one or more lines are too long

2
dist/bundle.min.js.map vendored

File diff suppressed because one or more lines are too long

3
dist/case.js vendored

@ -4049,6 +4049,9 @@ BI.TextBubblePopupBarView = BI.inherit(BI.Widget, {
}); });
return { return {
type: "bi.bubble_bar_popup_view", type: "bi.bubble_bar_popup_view",
minWidth: o.minWidth,
maxWidth: o.maxWidth,
minHeight: o.minHeight,
ref: function () { ref: function () {
self.popup = this; self.popup = this;
}, },

2
dist/es5.fineui.js vendored

File diff suppressed because one or more lines are too long

2
dist/es5.fineui.js.map vendored

File diff suppressed because one or more lines are too long

1
dist/es5.polyfill.js vendored

File diff suppressed because one or more lines are too long

1
dist/es5.polyfill.js.map vendored

File diff suppressed because one or more lines are too long

64
dist/fineui.ie.js vendored

File diff suppressed because one or more lines are too long

102
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

57
dist/fineui.js vendored

File diff suppressed because one or more lines are too long

37
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

55
dist/fineui_without_jquery_polyfill.js vendored

@ -39345,6 +39345,9 @@ BI.TextBubblePopupBarView = BI.inherit(BI.Widget, {
}); });
return { return {
type: "bi.bubble_bar_popup_view", type: "bi.bubble_bar_popup_view",
minWidth: o.minWidth,
maxWidth: o.maxWidth,
minHeight: o.minHeight,
ref: function () { ref: function () {
self.popup = this; self.popup = this;
}, },
@ -63640,13 +63643,15 @@ BI.SingleSelectInsertCombo = BI.inherit(BI.Single, {
self.fireEvent(BI.SingleSelectInsertCombo.EVENT_STOP); self.fireEvent(BI.SingleSelectInsertCombo.EVENT_STOP);
}); });
this.trigger.on(BI.SingleSelectTrigger.EVENT_PAUSE, function () { this.trigger.on(BI.SingleSelectTrigger.EVENT_PAUSE, function () {
var keyword = this.getSearcher().getKeyword(); if (this.getSearcher().hasMatched()) {
self.storeValue = keyword; var keyword = this.getSearcher().getKeyword();
self.combo.setValue(self.storeValue); self.storeValue = keyword;
self._setStartValue(keyword); self.combo.setValue(self.storeValue);
assertShowValue(); self._setStartValue(keyword);
self.populate(); assertShowValue();
self._setStartValue(); self.populate();
self._setStartValue();
}
}); });
this.trigger.on(BI.SingleSelectTrigger.EVENT_SEARCHING, function (keywords) { this.trigger.on(BI.SingleSelectTrigger.EVENT_SEARCHING, function (keywords) {
var last = BI.last(keywords); var last = BI.last(keywords);
@ -65167,7 +65172,9 @@ BI.SingleSlider = BI.inherit(BI.Single, {
SLIDER_WIDTH_HALF: 15, SLIDER_WIDTH_HALF: 15,
SLIDER_WIDTH: 30, SLIDER_WIDTH: 30,
SLIDER_HEIGHT: 30, SLIDER_HEIGHT: 30,
TRACK_HEIGHT: 24 TRACK_HEIGHT: 24,
TRACK_GAP_HALF: 7,
TRACK_GAP: 14
}, },
props: { props: {
@ -65211,15 +65218,15 @@ BI.SingleSlider = BI.inherit(BI.Single, {
sliderVertical.element.click(function (e) { sliderVertical.element.click(function (e) {
if (self.enable && self.isEnabled()) { if (self.enable && self.isEnabled()) {
var offset = e.clientX - self.element.offset().left - c.SLIDER_WIDTH_HALF; var offset = e.clientX - self.element.offset().left - c.SLIDER_WIDTH_HALF;
var trackLength = self.track.element[0].scrollWidth; var trackLength = self.track.element[0].scrollWidth - c.TRACK_GAP;
var percent = 0; var percent = 0;
if (offset < 0) { if (offset < 0) {
percent = 0; percent = 0;
} }
if (offset > 0 && offset < (trackLength - c.SLIDER_WIDTH)) { if (offset > 0 && offset < trackLength) {
percent = offset * 100 / self._getGrayTrackLength(); percent = offset * 100 / self._getGrayTrackLength();
} }
if (offset > (trackLength - c.SLIDER_WIDTH)) { if (offset >= trackLength) {
percent = 100; percent = 100;
} }
var significantPercent = BI.parseFloat(percent.toFixed(1)); var significantPercent = BI.parseFloat(percent.toFixed(1));
@ -65270,7 +65277,7 @@ BI.SingleSlider = BI.inherit(BI.Single, {
height: c.TRACK_HEIGHT height: c.TRACK_HEIGHT
}] }]
}], }],
hgap: 7, hgap: c.TRACK_GAP_HALF,
height: c.TRACK_HEIGHT height: c.TRACK_HEIGHT
}, },
top: 23, top: 23,
@ -65502,7 +65509,9 @@ BI.SingleSliderLabel = BI.inherit(BI.Single, {
SLIDER_WIDTH_HALF: 15, SLIDER_WIDTH_HALF: 15,
SLIDER_WIDTH: 30, SLIDER_WIDTH: 30,
SLIDER_HEIGHT: 30, SLIDER_HEIGHT: 30,
TRACK_HEIGHT: 24 TRACK_HEIGHT: 24,
TRACK_GAP_HALF: 7,
TRACK_GAP: 14
}, },
_defaultConfig: function () { _defaultConfig: function () {
return BI.extend(BI.SingleSliderLabel.superclass._defaultConfig.apply(this, arguments), { return BI.extend(BI.SingleSliderLabel.superclass._defaultConfig.apply(this, arguments), {
@ -65547,15 +65556,15 @@ BI.SingleSliderLabel = BI.inherit(BI.Single, {
sliderVertical.element.click(function (e) { sliderVertical.element.click(function (e) {
if (self.enable && self.isEnabled()) { if (self.enable && self.isEnabled()) {
var offset = e.clientX - self.element.offset().left - c.SLIDER_WIDTH_HALF; var offset = e.clientX - self.element.offset().left - c.SLIDER_WIDTH_HALF;
var trackLength = self.track.element[0].scrollWidth; var trackLength = self.track.element[0].scrollWidth - c.TRACK_GAP;
var percent = 0; var percent = 0;
if (offset < 0) { if (offset < 0) {
percent = 0; percent = 0;
} }
if (offset > 0 && offset < (trackLength - c.SLIDER_WIDTH)) { if (offset > 0 && offset < trackLength) {
percent = offset * 100 / self._getGrayTrackLength(); percent = offset * 100 / self._getGrayTrackLength();
} }
if (offset > (trackLength - c.SLIDER_WIDTH)) { if (offset >= trackLength) {
percent = 100; percent = 100;
} }
var significantPercent = BI.parseFloat(percent.toFixed(1)); var significantPercent = BI.parseFloat(percent.toFixed(1));
@ -65588,7 +65597,7 @@ BI.SingleSliderLabel = BI.inherit(BI.Single, {
height: c.TRACK_HEIGHT height: c.TRACK_HEIGHT
}] }]
}], }],
hgap: 7, hgap: c.TRACK_GAP_HALF,
height: c.TRACK_HEIGHT height: c.TRACK_HEIGHT
}, },
top: 13, top: 13,
@ -65810,7 +65819,9 @@ BI.SingleSliderNormal = BI.inherit(BI.Single, {
SLIDER_WIDTH_HALF: 15, SLIDER_WIDTH_HALF: 15,
SLIDER_WIDTH: 30, SLIDER_WIDTH: 30,
SLIDER_HEIGHT: 30, SLIDER_HEIGHT: 30,
TRACK_HEIGHT: 24 TRACK_HEIGHT: 24,
TRACK_GAP_HALF: 7,
TRACK_GAP: 14
}, },
props: { props: {
@ -65843,15 +65854,15 @@ BI.SingleSliderNormal = BI.inherit(BI.Single, {
sliderVertical.element.click(function (e) { sliderVertical.element.click(function (e) {
if (self.enable && self.isEnabled()) { if (self.enable && self.isEnabled()) {
var offset = e.clientX - self.element.offset().left - c.SLIDER_WIDTH_HALF; var offset = e.clientX - self.element.offset().left - c.SLIDER_WIDTH_HALF;
var trackLength = self.track.element[0].scrollWidth; var trackLength = self.track.element[0].scrollWidth - c.TRACK_GAP;
var percent = 0; var percent = 0;
if (offset < 0) { if (offset < 0) {
percent = 0; percent = 0;
} }
if (offset > 0 && offset < (trackLength - c.SLIDER_WIDTH)) { if (offset > 0 && offset < trackLength) {
percent = offset * 100 / self._getGrayTrackLength(); percent = offset * 100 / self._getGrayTrackLength();
} }
if (offset > (trackLength - c.SLIDER_WIDTH)) { if (offset >= trackLength) {
percent = 100; percent = 100;
} }
var significantPercent = BI.parseFloat(percent.toFixed(1)); var significantPercent = BI.parseFloat(percent.toFixed(1));
@ -65876,7 +65887,7 @@ BI.SingleSliderNormal = BI.inherit(BI.Single, {
height: c.TRACK_HEIGHT height: c.TRACK_HEIGHT
}] }]
}], }],
hgap: 7, hgap: c.TRACK_GAP_HALF,
height: c.TRACK_HEIGHT height: c.TRACK_HEIGHT
}, },
top: 3, top: 3,

2
dist/ie.fineui.js vendored

File diff suppressed because one or more lines are too long

2
dist/ie.fineui.js.map vendored

File diff suppressed because one or more lines are too long

1
dist/ie.polyfill.js vendored

File diff suppressed because one or more lines are too long

1
dist/ie.polyfill.js.map vendored

File diff suppressed because one or more lines are too long

2
dist/utils.min.js vendored

File diff suppressed because one or more lines are too long

52
dist/widget.js vendored

@ -18848,13 +18848,15 @@ BI.SingleSelectInsertCombo = BI.inherit(BI.Single, {
self.fireEvent(BI.SingleSelectInsertCombo.EVENT_STOP); self.fireEvent(BI.SingleSelectInsertCombo.EVENT_STOP);
}); });
this.trigger.on(BI.SingleSelectTrigger.EVENT_PAUSE, function () { this.trigger.on(BI.SingleSelectTrigger.EVENT_PAUSE, function () {
var keyword = this.getSearcher().getKeyword(); if (this.getSearcher().hasMatched()) {
self.storeValue = keyword; var keyword = this.getSearcher().getKeyword();
self.combo.setValue(self.storeValue); self.storeValue = keyword;
self._setStartValue(keyword); self.combo.setValue(self.storeValue);
assertShowValue(); self._setStartValue(keyword);
self.populate(); assertShowValue();
self._setStartValue(); self.populate();
self._setStartValue();
}
}); });
this.trigger.on(BI.SingleSelectTrigger.EVENT_SEARCHING, function (keywords) { this.trigger.on(BI.SingleSelectTrigger.EVENT_SEARCHING, function (keywords) {
var last = BI.last(keywords); var last = BI.last(keywords);
@ -20375,7 +20377,9 @@ BI.SingleSlider = BI.inherit(BI.Single, {
SLIDER_WIDTH_HALF: 15, SLIDER_WIDTH_HALF: 15,
SLIDER_WIDTH: 30, SLIDER_WIDTH: 30,
SLIDER_HEIGHT: 30, SLIDER_HEIGHT: 30,
TRACK_HEIGHT: 24 TRACK_HEIGHT: 24,
TRACK_GAP_HALF: 7,
TRACK_GAP: 14
}, },
props: { props: {
@ -20419,15 +20423,15 @@ BI.SingleSlider = BI.inherit(BI.Single, {
sliderVertical.element.click(function (e) { sliderVertical.element.click(function (e) {
if (self.enable && self.isEnabled()) { if (self.enable && self.isEnabled()) {
var offset = e.clientX - self.element.offset().left - c.SLIDER_WIDTH_HALF; var offset = e.clientX - self.element.offset().left - c.SLIDER_WIDTH_HALF;
var trackLength = self.track.element[0].scrollWidth; var trackLength = self.track.element[0].scrollWidth - c.TRACK_GAP;
var percent = 0; var percent = 0;
if (offset < 0) { if (offset < 0) {
percent = 0; percent = 0;
} }
if (offset > 0 && offset < (trackLength - c.SLIDER_WIDTH)) { if (offset > 0 && offset < trackLength) {
percent = offset * 100 / self._getGrayTrackLength(); percent = offset * 100 / self._getGrayTrackLength();
} }
if (offset > (trackLength - c.SLIDER_WIDTH)) { if (offset >= trackLength) {
percent = 100; percent = 100;
} }
var significantPercent = BI.parseFloat(percent.toFixed(1)); var significantPercent = BI.parseFloat(percent.toFixed(1));
@ -20478,7 +20482,7 @@ BI.SingleSlider = BI.inherit(BI.Single, {
height: c.TRACK_HEIGHT height: c.TRACK_HEIGHT
}] }]
}], }],
hgap: 7, hgap: c.TRACK_GAP_HALF,
height: c.TRACK_HEIGHT height: c.TRACK_HEIGHT
}, },
top: 23, top: 23,
@ -20710,7 +20714,9 @@ BI.SingleSliderLabel = BI.inherit(BI.Single, {
SLIDER_WIDTH_HALF: 15, SLIDER_WIDTH_HALF: 15,
SLIDER_WIDTH: 30, SLIDER_WIDTH: 30,
SLIDER_HEIGHT: 30, SLIDER_HEIGHT: 30,
TRACK_HEIGHT: 24 TRACK_HEIGHT: 24,
TRACK_GAP_HALF: 7,
TRACK_GAP: 14
}, },
_defaultConfig: function () { _defaultConfig: function () {
return BI.extend(BI.SingleSliderLabel.superclass._defaultConfig.apply(this, arguments), { return BI.extend(BI.SingleSliderLabel.superclass._defaultConfig.apply(this, arguments), {
@ -20755,15 +20761,15 @@ BI.SingleSliderLabel = BI.inherit(BI.Single, {
sliderVertical.element.click(function (e) { sliderVertical.element.click(function (e) {
if (self.enable && self.isEnabled()) { if (self.enable && self.isEnabled()) {
var offset = e.clientX - self.element.offset().left - c.SLIDER_WIDTH_HALF; var offset = e.clientX - self.element.offset().left - c.SLIDER_WIDTH_HALF;
var trackLength = self.track.element[0].scrollWidth; var trackLength = self.track.element[0].scrollWidth - c.TRACK_GAP;
var percent = 0; var percent = 0;
if (offset < 0) { if (offset < 0) {
percent = 0; percent = 0;
} }
if (offset > 0 && offset < (trackLength - c.SLIDER_WIDTH)) { if (offset > 0 && offset < trackLength) {
percent = offset * 100 / self._getGrayTrackLength(); percent = offset * 100 / self._getGrayTrackLength();
} }
if (offset > (trackLength - c.SLIDER_WIDTH)) { if (offset >= trackLength) {
percent = 100; percent = 100;
} }
var significantPercent = BI.parseFloat(percent.toFixed(1)); var significantPercent = BI.parseFloat(percent.toFixed(1));
@ -20796,7 +20802,7 @@ BI.SingleSliderLabel = BI.inherit(BI.Single, {
height: c.TRACK_HEIGHT height: c.TRACK_HEIGHT
}] }]
}], }],
hgap: 7, hgap: c.TRACK_GAP_HALF,
height: c.TRACK_HEIGHT height: c.TRACK_HEIGHT
}, },
top: 13, top: 13,
@ -21018,7 +21024,9 @@ BI.SingleSliderNormal = BI.inherit(BI.Single, {
SLIDER_WIDTH_HALF: 15, SLIDER_WIDTH_HALF: 15,
SLIDER_WIDTH: 30, SLIDER_WIDTH: 30,
SLIDER_HEIGHT: 30, SLIDER_HEIGHT: 30,
TRACK_HEIGHT: 24 TRACK_HEIGHT: 24,
TRACK_GAP_HALF: 7,
TRACK_GAP: 14
}, },
props: { props: {
@ -21051,15 +21059,15 @@ BI.SingleSliderNormal = BI.inherit(BI.Single, {
sliderVertical.element.click(function (e) { sliderVertical.element.click(function (e) {
if (self.enable && self.isEnabled()) { if (self.enable && self.isEnabled()) {
var offset = e.clientX - self.element.offset().left - c.SLIDER_WIDTH_HALF; var offset = e.clientX - self.element.offset().left - c.SLIDER_WIDTH_HALF;
var trackLength = self.track.element[0].scrollWidth; var trackLength = self.track.element[0].scrollWidth - c.TRACK_GAP;
var percent = 0; var percent = 0;
if (offset < 0) { if (offset < 0) {
percent = 0; percent = 0;
} }
if (offset > 0 && offset < (trackLength - c.SLIDER_WIDTH)) { if (offset > 0 && offset < trackLength) {
percent = offset * 100 / self._getGrayTrackLength(); percent = offset * 100 / self._getGrayTrackLength();
} }
if (offset > (trackLength - c.SLIDER_WIDTH)) { if (offset >= trackLength) {
percent = 100; percent = 100;
} }
var significantPercent = BI.parseFloat(percent.toFixed(1)); var significantPercent = BI.parseFloat(percent.toFixed(1));
@ -21084,7 +21092,7 @@ BI.SingleSliderNormal = BI.inherit(BI.Single, {
height: c.TRACK_HEIGHT height: c.TRACK_HEIGHT
}] }]
}], }],
hgap: 7, hgap: c.TRACK_GAP_HALF,
height: c.TRACK_HEIGHT height: c.TRACK_HEIGHT
}, },
top: 3, top: 3,

8
src/polyfill/lodash.js

@ -30,6 +30,7 @@ if (!Array.isArray) {
}; };
} }
/* core-jspolyfill
// https://stackoverflow.com/questions/10919915/ie8-getprototypeof-method // https://stackoverflow.com/questions/10919915/ie8-getprototypeof-method
if (typeof Object.getPrototypeOf !== "function") { if (typeof Object.getPrototypeOf !== "function") {
Object.getPrototypeOf = "".__proto__ === String.prototype Object.getPrototypeOf = "".__proto__ === String.prototype
@ -38,13 +39,10 @@ if (typeof Object.getPrototypeOf !== "function") {
} }
: function (object) { : function (object) {
// May break if the constructor has been tampered with // May break if the constructor has been tampered with
try { return object.constructor.prototype;
return object.constructor.prototype;
} catch (e) {
return {};
}
}; };
} }
*/
if(!Date.now) { if(!Date.now) {
Date.now = function () { Date.now = function () {

36
webpack/webpack.common.js

@ -7,24 +7,25 @@ const isBuilt4IE8 = process.env.BROWSER_VERSION === "ie8";
module.exports = { module.exports = {
entry: { entry: {
polyfill: isBuilt4IE8
? [
"core-js/features/object/define-property",
"core-js/features/object/create",
"core-js/features/object/assign",
"core-js/features/object/get-own-property-symbols",
"core-js/features/object/get-prototype-of",
"core-js/features/array/for-each",
"core-js/features/array/index-of",
"core-js/features/function/bind",
"core-js/features/promise",
"core-js/features/string/replace",
// "core-js",
]
: [
"@babel/polyfill",
"es6-promise/auto",
],
fineui: [ fineui: [
...isBuilt4IE8
? [
"core-js/features/object/define-property",
"core-js/features/object/create",
"core-js/features/object/assign",
"core-js/features/array/for-each",
"core-js/features/array/index-of",
"core-js/features/function/bind",
"core-js/features/promise",
"core-js/features/object/get-own-property-symbols",
"core-js/features/string/replace",
// "core-js",
]
: [
"@babel/polyfill",
"es6-promise/auto",
],
"./typescript/index.ts", "./typescript/index.ts",
], ],
}, },
@ -37,6 +38,7 @@ module.exports = {
{ {
test: /\.(js|ts)$/, test: /\.(js|ts)$/,
include: [dirs.NODE_MODULES, dirs.PRIVATE, dirs.TYPESCRIPT], include: [dirs.NODE_MODULES, dirs.PRIVATE, dirs.TYPESCRIPT],
exclude: /node_modules\/core-js/,
use: [{ use: [{
loader: "babel-loader", loader: "babel-loader",
options: { options: {

2
webpack/webpack.dev.js

@ -27,7 +27,7 @@ module.exports = merge(common, {
}), }),
new HtmlWebpackPlugin({ new HtmlWebpackPlugin({
template: path.resolve(__dirname, "../index.html"), template: path.resolve(__dirname, "../index.html"),
chunks: ["fineui"], chunks: ["polyfill", "fineui"],
chunksSortMode: "manual", chunksSortMode: "manual",
}), }),
new ForkTsCheckerWebpackPlugin({ new ForkTsCheckerWebpackPlugin({

2
webpack/webpack.prod.js

@ -32,7 +32,7 @@ module.exports = merge.smart(common, {
output: { output: {
path: dirs.DEST, path: dirs.DEST,
filename: isBuilt4IE8 ? "ie.fineui.js" : "es5.fineui.js", filename: isBuilt4IE8 ? "ie.[name].js" : "es5.[name].js",
}, },
plugins: [ plugins: [

Loading…
Cancel
Save