Browse Source

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

* commit '17afd326793d48ff65175a9990dee4b76ea16110': (52 commits)
  auto upgrade version to 2.0.20210406122155
  无JIRA任务 fix:this指向问题
  auto upgrade version to 2.0.20210404210234
  布局大一统
  布局大一统
  布局大一统
  布局大一统
  布局大一统
  布局大一统
  布局大一统
  布局大一统
  布局大一统
  布局大一统
  布局大一统
  布局大一统
  布局大一统
  auto upgrade version to 2.0.20210402170231
  auto upgrade version to 2.0.20210402162812
  生命周期严格按照beforemount render mounted的顺序执行
  auto upgrade version to 2.0.20210402155224
  ...
es6
Kira 3 years ago
parent
commit
c2c184687a
  1. 4
      dist/2.0/fineui.css
  2. 4
      dist/2.0/fineui.ie.min.js
  3. 2
      dist/2.0/fineui.ie.min.js.map
  4. 62282
      dist/2.0/fineui.js
  5. 2
      dist/2.0/fineui.js.map
  6. 4
      dist/2.0/fineui.min.css
  7. 4
      dist/2.0/fineui.min.js
  8. 2
      dist/2.0/fineui.min.js.map
  9. 4
      dist/2.0/fineui_without_normalize.css
  10. 4
      dist/2.0/fineui_without_normalize.min.css
  11. 4
      dist/core.css
  12. 62046
      dist/core.js
  13. 2
      dist/core.js.map
  14. 4
      dist/demo.css
  15. 61692
      dist/demo.js
  16. 2
      dist/demo.js.map
  17. 4
      dist/fineui.css
  18. 4
      dist/fineui.ie.min.js
  19. 2
      dist/fineui.ie.min.js.map
  20. 62337
      dist/fineui.js
  21. 2
      dist/fineui.js.map
  22. 4
      dist/fineui.min.css
  23. 4
      dist/fineui.min.js
  24. 2
      dist/fineui.min.js.map
  25. 2
      dist/fineui.proxy.css
  26. 96008
      dist/fineui.proxy.js
  27. 1
      dist/fineui.proxy.js.map
  28. 2
      dist/fineui.proxy.min.css
  29. 2
      dist/fineui.proxy.min.js
  30. 1
      dist/fineui.proxy.min.js.map
  31. 42425
      dist/fineui_without_jquery_polyfill.js
  32. 2
      dist/fineui_without_jquery_polyfill.js.map
  33. 140
      dist/fix/fix.compact.ie.js
  34. 140
      dist/fix/fix.compact.js
  35. 2035
      dist/fix/fix.proxy.js
  36. 4
      dist/font.css
  37. 7
      dist/lib/base/single/button/buttons/button.image.d.ts
  38. 4
      dist/lib/core/widget.d.ts
  39. 4
      dist/lib/core/wrapper/layout/adapt/float.horizontal.d.ts
  40. 4
      dist/lib/index.d.ts
  41. 4
      dist/resource.css
  42. 12626
      dist/utils.js
  43. 2
      dist/utils.js.map
  44. 4
      dist/utils.min.js
  45. 2
      dist/utils.min.js.map
  46. 37
      karma.conf.js
  47. 2
      package.json
  48. 2
      private/less/size.less
  49. 2
      public/less/size.less
  50. 0
      src/base/0.base.js
  51. 0
      src/base/1.pane.js
  52. 0
      src/base/single/0.single.js
  53. 0
      src/base/single/1.text.js
  54. 4
      src/base/single/label/abstract.label.js
  55. 0
      src/base/single/tip/0.tip.js
  56. 0
      src/case/ztree/0.treeview.js
  57. 0
      src/case/ztree/1.asynctree.js
  58. 0
      src/case/ztree/jquery.ztree.core-3.5.js
  59. 0
      src/case/ztree/jquery.ztree.excheck-3.5.js
  60. 0
      src/case/ztree/list/0.listtreeview.js
  61. 0
      src/case/ztree/list/1.listasynctree.js
  62. 0
      src/case/ztree/list/listparttree.js
  63. 0
      src/case/ztree/parttree.js
  64. 0
      src/case/ztree/tree.display.js
  65. 0
      src/case/ztree/tree.list.display.js
  66. 0
      src/case/ztree/tree.simple.js
  67. 0
      src/case/ztree/treerender.scroll.service.js
  68. 0
      src/case/ztree/treetrender.page.service.js
  69. 0
      src/core/0.foundation.js
  70. 0
      src/core/1.lodash.js
  71. 0
      src/core/2.base.js
  72. 0
      src/core/3.ob.js
  73. 30
      src/core/4.widget.js
  74. 0
      src/core/5.shortcut.js
  75. 0
      src/core/6.inject.js
  76. 0
      src/core/7.plugin.js
  77. 0
      src/core/behavior/0.behavior.js
  78. 0
      src/core/constant/date.i18n.js
  79. 0
      src/core/constant/events.js
  80. 0
      src/core/constant/var.js
  81. 0
      src/core/controller/0.controller.js
  82. 0
      src/core/func/alias.js
  83. 79
      src/core/platform/web/config.js
  84. 0
      src/core/platform/web/jquery/jquery.mousewheel.js
  85. 0
      src/core/structure/aes.js
  86. 0
      src/core/structure/aspect.js
  87. 0
      src/core/structure/base64.js
  88. 0
      src/core/structure/cache.js
  89. 0
      src/core/structure/cellSizeAndPositionManager.js
  90. 0
      src/core/structure/heap.js
  91. 0
      src/core/structure/linkedHashMap.js
  92. 0
      src/core/structure/lru.js
  93. 0
      src/core/structure/prefixIntervalTree.js
  94. 0
      src/core/structure/queue.js
  95. 0
      src/core/structure/sectionManager.js
  96. 0
      src/core/structure/tree.js
  97. 0
      src/core/structure/vector.js
  98. 0
      src/core/utils/events/eventlistener.js
  99. 0
      src/core/utils/i18n.js
  100. 3
      src/core/wrapper/layout/adapt/adapt.horizontal.js
  101. Some files were not shown because too many files have changed in this diff Show More

4
dist/2.0/fineui.css vendored

File diff suppressed because one or more lines are too long

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

File diff suppressed because one or more lines are too long

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

File diff suppressed because one or more lines are too long

62282
dist/2.0/fineui.js vendored

File diff suppressed because one or more lines are too long

2
dist/2.0/fineui.js.map vendored

File diff suppressed because one or more lines are too long

4
dist/2.0/fineui.min.css vendored

File diff suppressed because one or more lines are too long

4
dist/2.0/fineui.min.js vendored

File diff suppressed because one or more lines are too long

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

File diff suppressed because one or more lines are too long

4
dist/2.0/fineui_without_normalize.css vendored

File diff suppressed because one or more lines are too long

4
dist/2.0/fineui_without_normalize.min.css vendored

File diff suppressed because one or more lines are too long

4
dist/core.css vendored

File diff suppressed because one or more lines are too long

62046
dist/core.js vendored

File diff suppressed because one or more lines are too long

2
dist/core.js.map vendored

File diff suppressed because one or more lines are too long

4
dist/demo.css vendored

File diff suppressed because one or more lines are too long

61692
dist/demo.js vendored

File diff suppressed because one or more lines are too long

2
dist/demo.js.map vendored

File diff suppressed because one or more lines are too long

4
dist/fineui.css vendored

File diff suppressed because one or more lines are too long

4
dist/fineui.ie.min.js vendored

File diff suppressed because one or more lines are too long

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

File diff suppressed because one or more lines are too long

62337
dist/fineui.js vendored

File diff suppressed because one or more lines are too long

2
dist/fineui.js.map vendored

File diff suppressed because one or more lines are too long

4
dist/fineui.min.css vendored

File diff suppressed because one or more lines are too long

4
dist/fineui.min.js vendored

File diff suppressed because one or more lines are too long

2
dist/fineui.min.js.map vendored

File diff suppressed because one or more lines are too long

2
dist/fineui.proxy.css vendored

File diff suppressed because one or more lines are too long

96008
dist/fineui.proxy.js vendored

File diff suppressed because one or more lines are too long

1
dist/fineui.proxy.js.map vendored

File diff suppressed because one or more lines are too long

2
dist/fineui.proxy.min.css vendored

File diff suppressed because one or more lines are too long

2
dist/fineui.proxy.min.js vendored

File diff suppressed because one or more lines are too long

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

File diff suppressed because one or more lines are too long

42425
dist/fineui_without_jquery_polyfill.js vendored

File diff suppressed because one or more lines are too long

2
dist/fineui_without_jquery_polyfill.js.map vendored

File diff suppressed because one or more lines are too long

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

@ -163,76 +163,76 @@
needPop && popTarget();
};
BI.Widget.prototype._initElement = function () {
var self = this;
var render = BI.isFunction(this.options.render) ? this.options.render : this.render;
var els;
if (this.options.updateMode === "auto" && this._store) {
// 自动更新模式
var childComponents = {};
var rendered = false;
this._watchers.push(Fix.watch(this.model, function () {
if (rendered) {
var newEls = render && render.call(this);
BI.each(childComponents, function (i, childComponent) {
if (childComponent.component instanceof BI.Layout) {
return; // 布局的过滤掉
}
var nextProps = BI.get([newEls], childComponent.path);
if (nextProps) {
var shouldUpdate = childComponent.component.shouldUpdate && childComponent.component.shouldUpdate(nextProps);
childComponent.component._update(nextProps, shouldUpdate);
childComponent.props = BI.extend(childComponent.props, nextProps);
}
});
} else {
els = render && render.call(this);
function traverse (parent, path) {
BI.each(parent, function (i, child) {
var childPath = path.concat(i);
if (BI.isArray(child)) {
traverse(child, childPath);
} else if (BI.isPlainObject(child)) {
if (child.type) {
child.__ref = function (_ref) {
if (_ref) {
var comp = childComponents[this.getName()] = {};
comp.component = _ref;
comp.props = child;
comp.path = childPath;
} else {
delete childComponents[this.getName()];
}
};
}
traverse(child, childPath);
}
});
}
traverse([els], []);
rendered = true;
}
}));
} else {
els = render && render.call(this);
}
if (BI.isPlainObject(els)) {
els = [els];
}
if (BI.isArray(els)) {
BI.each(els, function (i, el) {
if (el) {
BI._lazyCreateWidget(el, {
element: self
});
}
});
}
// if (this._isRoot === true || !(this instanceof BI.Layout)) {
this._mount();
};
// BI.Widget.prototype._initElement = function () {
// var self = this;
// var render = BI.isFunction(this.options.render) ? this.options.render : this.render;
// var els;
// if (this.options.updateMode === "auto" && this._store) {
// // 自动更新模式
// var childComponents = {};
// var rendered = false;
// this._watchers.push(Fix.watch(this.model, function () {
// if (rendered) {
// var newEls = render && render.call(this);
// BI.each(childComponents, function (i, childComponent) {
// if (childComponent.component instanceof BI.Layout) {
// return; // 布局的过滤掉
// }
// var nextProps = BI.get([newEls], childComponent.path);
// if (nextProps) {
// var shouldUpdate = childComponent.component.shouldUpdate && childComponent.component.shouldUpdate(nextProps);
// childComponent.component._update(nextProps, shouldUpdate);
// childComponent.props = BI.extend(childComponent.props, nextProps);
// }
// });
// } else {
// els = render && render.call(this);
//
// function traverse (parent, path) {
// BI.each(parent, function (i, child) {
// var childPath = path.concat(i);
// if (BI.isArray(child)) {
// traverse(child, childPath);
// } else if (BI.isPlainObject(child)) {
// if (child.type) {
// child.__ref = function (_ref) {
// if (_ref) {
// var comp = childComponents[this.getName()] = {};
// comp.component = _ref;
// comp.props = child;
// comp.path = childPath;
// } else {
// delete childComponents[this.getName()];
// }
// };
// }
// traverse(child, childPath);
// }
// });
// }
//
// traverse([els], []);
// rendered = true;
// }
// }));
// } else {
// els = render && render.call(this);
// }
// if (BI.isPlainObject(els)) {
// els = [els];
// }
// if (BI.isArray(els)) {
// BI.each(els, function (i, el) {
// if (el) {
// BI._lazyCreateWidget(el, {
// element: self
// });
// }
// });
// }
// // if (this._isRoot === true || !(this instanceof BI.Layout)) {
// this._mount();
// };
var unMount = BI.Widget.prototype.__d;
BI.Widget.prototype.__d = function () {

140
dist/fix/fix.compact.js vendored

@ -163,76 +163,76 @@
needPop && popTarget();
};
BI.Widget.prototype._initElement = function () {
var self = this;
var render = BI.isFunction(this.options.render) ? this.options.render : this.render;
var els;
if (this.options.updateMode === "auto" && this._store) {
// 自动更新模式
var childComponents = {};
var rendered = false;
this._watchers.push(Fix.watch(this.model, function () {
if (rendered) {
var newEls = render && render.call(this);
BI.each(childComponents, function (i, childComponent) {
if (childComponent.component instanceof BI.Layout) {
return; // 布局的过滤掉
}
var nextProps = BI.get([newEls], childComponent.path);
if (nextProps) {
var shouldUpdate = childComponent.component.shouldUpdate && childComponent.component.shouldUpdate(nextProps);
childComponent.component._update(nextProps, shouldUpdate);
childComponent.props = BI.extend(childComponent.props, nextProps);
}
});
} else {
els = render && render.call(this);
function traverse (parent, path) {
BI.each(parent, function (i, child) {
var childPath = path.concat(i);
if (BI.isArray(child)) {
traverse(child, childPath);
} else if (BI.isPlainObject(child)) {
if (child.type) {
child.__ref = function (_ref) {
if (_ref) {
var comp = childComponents[this.getName()] = {};
comp.component = _ref;
comp.props = child;
comp.path = childPath;
} else {
delete childComponents[this.getName()];
}
};
}
traverse(child, childPath);
}
});
}
traverse([els], []);
rendered = true;
}
}));
} else {
els = render && render.call(this);
}
if (BI.isPlainObject(els)) {
els = [els];
}
if (BI.isArray(els)) {
BI.each(els, function (i, el) {
if (el) {
BI._lazyCreateWidget(el, {
element: self
});
}
});
}
// if (this._isRoot === true || !(this instanceof BI.Layout)) {
this._mount();
};
// BI.Widget.prototype._initElement = function () {
// var self = this;
// var render = BI.isFunction(this.options.render) ? this.options.render : this.render;
// var els;
// if (this.options.updateMode === "auto" && this._store) {
// // 自动更新模式
// var childComponents = {};
// var rendered = false;
// this._watchers.push(Fix.watch(this.model, function () {
// if (rendered) {
// var newEls = render && render.call(this);
// BI.each(childComponents, function (i, childComponent) {
// if (childComponent.component instanceof BI.Layout) {
// return; // 布局的过滤掉
// }
// var nextProps = BI.get([newEls], childComponent.path);
// if (nextProps) {
// var shouldUpdate = childComponent.component.shouldUpdate && childComponent.component.shouldUpdate(nextProps);
// childComponent.component._update(nextProps, shouldUpdate);
// childComponent.props = BI.extend(childComponent.props, nextProps);
// }
// });
// } else {
// els = render && render.call(this);
//
// function traverse (parent, path) {
// BI.each(parent, function (i, child) {
// var childPath = path.concat(i);
// if (BI.isArray(child)) {
// traverse(child, childPath);
// } else if (BI.isPlainObject(child)) {
// if (child.type) {
// child.__ref = function (_ref) {
// if (_ref) {
// var comp = childComponents[this.getName()] = {};
// comp.component = _ref;
// comp.props = child;
// comp.path = childPath;
// } else {
// delete childComponents[this.getName()];
// }
// };
// }
// traverse(child, childPath);
// }
// });
// }
//
// traverse([els], []);
// rendered = true;
// }
// }));
// } else {
// els = render && render.call(this);
// }
// if (BI.isPlainObject(els)) {
// els = [els];
// }
// if (BI.isArray(els)) {
// BI.each(els, function (i, el) {
// if (el) {
// BI._lazyCreateWidget(el, {
// element: self
// });
// }
// });
// }
// // if (this._isRoot === true || !(this instanceof BI.Layout)) {
// this._mount();
// };
var unMount = BI.Widget.prototype.__d;
BI.Widget.prototype.__d = function () {

2035
dist/fix/fix.proxy.js vendored

File diff suppressed because it is too large Load Diff

4
dist/font.css vendored

File diff suppressed because one or more lines are too long

7
dist/lib/base/single/button/buttons/button.image.d.ts vendored

@ -2,13 +2,10 @@ import { BasicButton } from "../button.basic";
export declare class ImageButton extends BasicButton {
static xtype: string;
static EVENT_CHANGE: string;
setWidth(w: number): void;
setHeight(h: number): void;
setImageWidth(w: number): void;
setImageHeight(h: number): void;
setImageWidth(w: number | string): void;
setImageHeight(h: number | string): void;
getImageWidth(): number;
getImageHeight(): number;
setSrc(src: string): void;
getSrc(): string;
doClick(): void;
}

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

@ -483,11 +483,11 @@ export declare class Widget extends OB {
/**
*
*/
setWidth(w: number): void;
setWidth(w: number | string): void;
/**
*
*/
setHeight(h: number): void;
setHeight(h: number | string): void;
/**
*
*/

4
dist/lib/core/wrapper/layout/adapt/float.horizontal.d.ts vendored

@ -0,0 +1,4 @@
import { Layout } from "../../layout";
export declare class FloatHorizontalLayout extends Layout {
static xtype: string;
}

4
dist/lib/index.d.ts vendored

@ -154,6 +154,7 @@ import { TextValueCheckComboPopup } from "./case/combo/textvaluecheckcombo/popup
import { ImageButton } from './base/single/button/buttons/button.image';
import { History, Router } from "./router/router";
import { DateTimeCombo } from './widget/datetime/datetime.combo';
import { FloatHorizontalLayout } from "./core/wrapper/layout/adapt/float.horizontal";
export interface BI extends _func, _i18n, _base, _inject, _var, _web, _utils {
OB: typeof OB;
Plugin: _Plugin;
@ -312,9 +313,10 @@ export interface BI extends _func, _i18n, _base, _inject, _var, _web, _utils {
Router: typeof Router;
history: History;
DateTimeCombo: typeof DateTimeCombo;
FloatHorizontalLayout: typeof FloatHorizontalLayout;
}
declare const _default: {
Decorators: typeof decorator;
};
export default _default;
export { OB, Widget, Single, BasicButton, Checkbox, Icon, LeftVerticalAdaptLayout, LeftRightVerticalAdaptLayout, SearchTextValueCombo, Input, IconTextItem, AllValueMultiTextValueCombo, IconTextIconItem, Layout, HorizontalAutoLayout, InlineVerticalAdaptLayout, RightVerticalAdaptLayout, TableAdaptLayout, AbsoluteCenterLayout, HorizontalAdaptLayout, FloatLeftLayout, FloatRightLayout, VerticalLayout, AbsoluteLayout, DefaultLayout, HTapeLayout, CenterAdaptLayout, VTapeLayout, VerticalAdaptLayout, IconButton, Trigger, TriggerIconButton, Action, ActionFactory, ShowAction, Controller, LayerController, Behavior, BehaviorFactory, RedMarkBehavior, HighlightBehavior, LoadingPane, Searcher, AbstractLabel, Label, TextButton, DownListCombo, IconChangeButton, Button, TextEditor, A, Html, Switcher, BubbleCombo, Loader, ListPane, MultiSelectBar, SelectList, TextValueCombo, Editor, IconLabel, Popover, BarPopover, Tab, AbstractTreeValueChooser, AbstractListTreeValueChooser, ListTreeValueChooserInsertCombo, TreeValueChooserCombo, TreeValueChooserInsertCombo, MultiLayerSelectTreePopup, MultiLayerSingleTreePopup, TreeView, ListTreeView, ListAsyncTree, AsyncTree, MultiLayerSingleTreeCombo, MultiLayerSelectTreeCombo, MultiTreeListCombo, MultiTreeInsertCombo, Combo, IconCombo, DynamicDateCombo, Radio, MultiSelectItem, CustomTree, ButtonGroup, ButtonTree, NodeButton, IconArrowNode, MidTreeLeafItem, FirstTreeLeafItem, LastTreeLeafItem, SmallTextEditor, MultifileEditor, SignEditor, MultiSelectInsertCombo, MultiSelectCombo, SearchEditor, Text, Pane, MultiLayerSingleLevelTree, SimpleColorChooser, AbstractAllValueChooser, AllValueChooserCombo, TextAreaEditor, SingleSelectItem, DynamicDateTimeCombo, MultiTreeCombo, CenterLayout, VirtualGroup, GridLayout, MultiTreePopup, SingleSelectRadioItem, SingleSelectInsertCombo, SingleSelectCombo, CardLayout, DynamicYearMonthCombo, TimeCombo, Iframe, TextValueDownListCombo, Switch, HorizontalLayout, ShelterEditor, SelectTextTrigger, DateInterval, DynamicDatePane, AllCountPager, PopupView, BubblePopupView, BubblePopupBarView, TextBubblePopupBarView, ArrowTreeGroupNodeCheckbox, NumberInterval, DynamicYearQuarterCombo, DynamicYearCombo, IntervalSlider, MultiSelectInsertList, YearMonthInterval, TextValueCheckCombo, NumberEditor, LinearSegment, Img, EditorIconCheckCombo, IconTextValueCombo, ListView, FloatCenterLayout, DynamicYearMonthPopup, DateCalendarPopup, Tree, Node, TextNode, TextValueCheckComboPopup, ImageButton, Router, History, DateTimeCombo, };
export { OB, Widget, Single, BasicButton, Checkbox, Icon, LeftVerticalAdaptLayout, LeftRightVerticalAdaptLayout, SearchTextValueCombo, Input, IconTextItem, AllValueMultiTextValueCombo, IconTextIconItem, Layout, HorizontalAutoLayout, InlineVerticalAdaptLayout, RightVerticalAdaptLayout, TableAdaptLayout, AbsoluteCenterLayout, HorizontalAdaptLayout, FloatLeftLayout, FloatRightLayout, VerticalLayout, AbsoluteLayout, DefaultLayout, HTapeLayout, CenterAdaptLayout, VTapeLayout, VerticalAdaptLayout, IconButton, Trigger, TriggerIconButton, Action, ActionFactory, ShowAction, Controller, LayerController, Behavior, BehaviorFactory, RedMarkBehavior, HighlightBehavior, LoadingPane, Searcher, AbstractLabel, Label, TextButton, DownListCombo, IconChangeButton, Button, TextEditor, A, Html, Switcher, BubbleCombo, Loader, ListPane, MultiSelectBar, SelectList, TextValueCombo, Editor, IconLabel, Popover, BarPopover, Tab, AbstractTreeValueChooser, AbstractListTreeValueChooser, ListTreeValueChooserInsertCombo, TreeValueChooserCombo, TreeValueChooserInsertCombo, MultiLayerSelectTreePopup, MultiLayerSingleTreePopup, TreeView, ListTreeView, ListAsyncTree, AsyncTree, MultiLayerSingleTreeCombo, MultiLayerSelectTreeCombo, MultiTreeListCombo, MultiTreeInsertCombo, Combo, IconCombo, DynamicDateCombo, Radio, MultiSelectItem, CustomTree, ButtonGroup, ButtonTree, NodeButton, IconArrowNode, MidTreeLeafItem, FirstTreeLeafItem, LastTreeLeafItem, SmallTextEditor, MultifileEditor, SignEditor, MultiSelectInsertCombo, MultiSelectCombo, SearchEditor, Text, Pane, MultiLayerSingleLevelTree, SimpleColorChooser, AbstractAllValueChooser, AllValueChooserCombo, TextAreaEditor, SingleSelectItem, DynamicDateTimeCombo, MultiTreeCombo, CenterLayout, VirtualGroup, GridLayout, MultiTreePopup, SingleSelectRadioItem, SingleSelectInsertCombo, SingleSelectCombo, CardLayout, DynamicYearMonthCombo, TimeCombo, Iframe, TextValueDownListCombo, Switch, HorizontalLayout, ShelterEditor, SelectTextTrigger, DateInterval, DynamicDatePane, AllCountPager, PopupView, BubblePopupView, BubblePopupBarView, TextBubblePopupBarView, ArrowTreeGroupNodeCheckbox, NumberInterval, DynamicYearQuarterCombo, DynamicYearCombo, IntervalSlider, MultiSelectInsertList, YearMonthInterval, TextValueCheckCombo, NumberEditor, LinearSegment, Img, EditorIconCheckCombo, IconTextValueCombo, ListView, FloatCenterLayout, DynamicYearMonthPopup, DateCalendarPopup, Tree, Node, TextNode, TextValueCheckComboPopup, ImageButton, Router, History, DateTimeCombo, FloatHorizontalLayout, };

4
dist/resource.css vendored

File diff suppressed because one or more lines are too long

12626
dist/utils.js vendored

File diff suppressed because one or more lines are too long

2
dist/utils.js.map vendored

File diff suppressed because one or more lines are too long

4
dist/utils.min.js vendored

File diff suppressed because one or more lines are too long

2
dist/utils.min.js.map vendored

File diff suppressed because one or more lines are too long

37
karma.conf.js

@ -20,36 +20,9 @@ module.exports = function (config) {
// list of files / patterns to load in the browser
files: [
"dist/fineui.min.css",
"src/core/foundation.js",
"src/core/lodash.js",
"src/core/base.js",
"i18n/i18n.cn.js",
"src/core/ob.js",
"src/core/widget.js",
"src/core/shortcut.js",
"src/core/utils/**/*.js",
"src/core/behavior/behavior.js",
"src/core/wrapper/layout.js",
"src/core/plugin.js",
"src/core/**/*.js",
"src/data/**/*.js",
"src/data/**/*.js",
"src/data/**/*.js",
"src/third/**/*.js",
"src/base/pane.js",
"src/base/single/single.js",
"src/base/single/text.js",
"src/base/single/button/button.basic.js",
"src/base/single/button/button.node.js",
"src/base/single/tip/tip.js",
"src/base/combination/group.button.js",
"src/base/combination/tree.button.js",
"src/base/tree/ztree/treeview.js",
"src/base/tree/ztree/asynctree.js",
"src/base/tree/ztree/parttree.js",
"src/base/tree/ztree/list/listtreeview.js",
"src/base/tree/ztree/list/listasynctree.js",
"src/base/tree/ztree/list/listparttree.js",
"src/base/**/*.js",
"src/case/**/*.js",
"src/widget/**/*.js",
@ -61,12 +34,9 @@ module.exports = function (config) {
],
exclude: [
"src/base/tree/ztree/jquery.ztree.core-3.5.js",
"src/base/tree/ztree/jquery.ztree.excheck-3.5.js",
"src/base/single/input/file.js",
"src/case/loading/loading_pane.js",
"src/base/tree/ztree/**/*.js",
"src/case/tree/ztree/*.js",
"src/case/ztree/**/*.js",
"src/widget/multitree/**/*.js",
"src/widget/multiselecttree/**/*.js",
"src/component/treevaluechooser/*.js"
@ -76,9 +46,8 @@ module.exports = function (config) {
// preprocess matching files before serving them to the browser
// available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
preprocessors: {
"src/core/alias.js": "coverage",
"src/core/base.js": "coverage",
"src/core/func/date.js": "coverage",
"src/core/1.base.js": "coverage",
"src/core/func/**/*.js": "coverage",
"src/base/**/!(*.test).js": "coverage",
"src/case/**/!(*.test).js": "coverage",
"src/widget/**/!(*.test).js": "coverage",

2
package.json

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

2
private/less/size.less

@ -1,2 +0,0 @@
@import "../../src/less/resource/size";
@import "var";

2
public/less/size.less

@ -1,2 +0,0 @@
@import "../../src/less/resource/size";
@import "var";

0
src/base/base.js → src/base/0.base.js

0
src/base/pane.js → src/base/1.pane.js

0
src/base/single/single.js → src/base/single/0.single.js

0
src/base/single/text.js → src/base/single/1.text.js

4
src/base/single/label/abstract.label.js

@ -83,7 +83,7 @@
});
return;
}
if (o.whiteSpace == "normal") { // 1.3
if (o.whiteSpace === "normal") { // 1.3
BI.extend(json, {
hgap: o.hgap,
vgap: o.vgap,
@ -152,7 +152,7 @@
});
return;
}
if (o.whiteSpace == "normal") { // 1.7
if (o.whiteSpace === "normal") { // 1.7
BI.extend(json, {
hgap: o.hgap,
vgap: o.vgap,

0
src/base/single/tip/tip.js → src/base/single/tip/0.tip.js

0
src/base/tree/ztree/treeview.js → src/case/ztree/0.treeview.js

0
src/base/tree/ztree/asynctree.js → src/case/ztree/1.asynctree.js

0
src/base/tree/ztree/jquery.ztree.core-3.5.js → src/case/ztree/jquery.ztree.core-3.5.js

0
src/base/tree/ztree/jquery.ztree.excheck-3.5.js → src/case/ztree/jquery.ztree.excheck-3.5.js

0
src/base/tree/ztree/list/listtreeview.js → src/case/ztree/list/0.listtreeview.js

0
src/base/tree/ztree/list/listasynctree.js → src/case/ztree/list/1.listasynctree.js

0
src/base/tree/ztree/list/listparttree.js → src/case/ztree/list/listparttree.js

0
src/base/tree/ztree/parttree.js → src/case/ztree/parttree.js

0
src/case/tree/ztree/tree.display.js → src/case/ztree/tree.display.js

0
src/case/tree/ztree/tree.list.display.js → src/case/ztree/tree.list.display.js

0
src/case/tree/ztree/tree.simple.js → src/case/ztree/tree.simple.js

0
src/base/tree/ztree/treerender.scroll.service.js → src/case/ztree/treerender.scroll.service.js

0
src/base/tree/ztree/treetrender.page.service.js → src/case/ztree/treetrender.page.service.js

0
src/core/foundation.js → src/core/0.foundation.js vendored

0
src/core/lodash.js → src/core/1.lodash.js

0
src/core/base.js → src/core/2.base.js

0
src/core/ob.js → src/core/3.ob.js

30
src/core/widget.js → src/core/4.widget.js

@ -7,7 +7,7 @@
*/
!(function () {
function callLifeHook(self, life) {
function callLifeHook (self, life) {
var hook = self.options[life] || self[life];
if (hook) {
var hooks = BI.isArray(hook) ? hook : [hook];
@ -98,8 +98,9 @@
_initRender: function () {
var self = this;
function render() {
function render () {
if (self.options.beforeRender || self.beforeRender) {
self.__async = true;
(self.options.beforeRender || self.beforeRender).call(self, BI.bind(self._render, self));
} else {
self._render();
@ -109,9 +110,6 @@
if (this.options.beforeInit || this.beforeInit) {
this.__asking = true;
(this.options.beforeInit || this.beforeInit).call(this, render);
if (this.__asking === true) {
this.__async = true;
}
} else {
render();
}
@ -123,6 +121,7 @@
this._initElement();
this._initEffects();
callLifeHook(this, "created");
this.__async = false;
},
_initCurrent: function () {
@ -204,6 +203,8 @@
_initElement: function () {
var self = this;
var isMounted = this._isMounted;
this.__async === true && isMounted && callLifeHook(this, "beforeMount");
var render = BI.isFunction(this.options.render) ? this.options.render : this.render;
var els = render && render.call(this);
if (BI.isPlainObject(els)) {
@ -218,9 +219,12 @@
}
});
}
// if (this._isRoot === true || !(this instanceof BI.Layout)) {
this._mount();
// }
if (this.__async === true && isMounted) {
callLifeHook(this, "mounted");
this.fireEvent(BI.Events.MOUNT);
}
},
_setParent: function (parent) {
@ -242,7 +246,7 @@
return false;
}
layer = layer || 0;
lifeHook !== false && callLifeHook(this, "beforeMount");
lifeHook !== false && !this.__async && callLifeHook(this, "beforeMount");
this._isMounted = true;
for (var key in this._children) {
var child = this._children[key];
@ -266,8 +270,10 @@
var child = this._children[key];
child.__afterMount && child.__afterMount(lifeHook, predicate);
}
lifeHook !== false && callLifeHook(this, "mounted");
this.fireEvent(BI.Events.MOUNT);
if (lifeHook !== false && !this.__async) {
callLifeHook(this, "mounted");
this.fireEvent(BI.Events.MOUNT);
}
predicate && predicate(this);
}
},
@ -593,12 +599,12 @@
BI.Widget.context = context = contextStack.pop();
};
function pushTarget(_current) {
function pushTarget (_current) {
if (current) currentStack.push(current);
BI.Widget.current = current = _current;
}
function popTarget() {
function popTarget () {
BI.Widget.current = current = currentStack.pop();
}

0
src/core/shortcut.js → src/core/5.shortcut.js

0
src/core/inject.js → src/core/6.inject.js

0
src/core/plugin.js → src/core/7.plugin.js

0
src/core/behavior/behavior.js → src/core/behavior/0.behavior.js

0
src/core/func/date.i18n.js → src/core/constant/date.i18n.js

0
src/core/events.js → src/core/constant/events.js

0
src/core/var.js → src/core/constant/var.js

0
src/core/controller.js → src/core/controller/0.controller.js

0
src/core/alias.js → src/core/func/alias.js

79
src/core/platform/web/config.js

@ -14,13 +14,9 @@ BI.prepares.push(function () {
return _isSupportFlex;
};
BI.Plugin.configWidget("bi.horizontal", function (ob) {
var isIE = BI.isIE(), supportFlex = isSupportFlex(), isLessIE8 = isIE && BI.getIEVersion() < 8;
if (isLessIE8) {
return ob;
}
// 在横向自适应场景下我们需要使用table的自适应撑出滚动条的特性(flex处理不了这种情况)
// 主要出现在center_adapt或者horizontal_adapt的场景,或者主动设置horizontalAlign的场景
if (ob.horizontalAlign === BI.HorizontalAlign.Center || ob.horizontalAlign === BI.HorizontalAlign.Stretch) {
// if (ob.horizontalAlign === BI.HorizontalAlign.Center || ob.horizontalAlign === BI.HorizontalAlign.Stretch) {
// 虽然有两个元素以上的时候,有场景是控制一个显示一个隐藏的效果,还无法通过flex来实现
// var justOneItem = (ob.items && ob.items.length <= 1);
// // 在这种情况下,也可以通过flex支持该布局
@ -42,9 +38,9 @@ BI.prepares.push(function () {
// ? BI.HorizontalAlign.Left : ob.horizontalAlign
// });
// }
return BI.extend({}, ob, {type: "bi.table_adapt"});
}
if (supportFlex) {
// return BI.extend({}, ob, {type: "bi.table_adapt"});
// }
if (isSupportFlex()) {
// IE下其实也是可以使用flex布局的,只要排除掉出现滚动条的情况
// if (!isIE || (ob.scrollable !== true && ob.scrolly !== true)) {
return BI.extend({}, ob, {type: "bi.flex_horizontal"});
@ -56,41 +52,42 @@ BI.prepares.push(function () {
// type: "bi.inline"
// });
// }
return BI.extend({}, ob, {type: "bi.inline"});
// 否则采用table,不过horizontalAlign的right就不支持了。
return BI.extend({}, ob, {type: "bi.table_adapt"});
});
BI.Plugin.configWidget("bi.center_adapt", function (ob) {
var supportFlex = isSupportFlex(), justOneItem = (ob.items && ob.items.length <= 1);
var isAdapt = !ob.horizontalAlign || ob.horizontalAlign === BI.HorizontalAlign.Center || ob.horizontalAlign === BI.HorizontalAlign.Stretch;
if (!isAdapt || justOneItem) {
if (supportFlex) {
// IE下其实也是可以使用flex布局的,只要排除掉出现滚动条的情况
// if (!isIE || (ob.scrollable !== true && ob.scrollx !== true && ob.scrolly !== true)) {
return BI.extend({}, ob, {type: "bi.flex_center_adapt"});
// }
}
if (!BI.isIE() || BI.getIEVersion() > 8) {
return BI.extend({}, ob, {type: "bi.inline_center_adapt"});
}
}
return ob;
});
BI.Plugin.configWidget("bi.vertical_adapt", function (ob) {
var supportFlex = isSupportFlex(), justOneItem = (ob.items && ob.items.length <= 1);
var isAdapt = ob.horizontalAlign === BI.HorizontalAlign.Center || ob.horizontalAlign === BI.HorizontalAlign.Stretch;
if (!isAdapt || justOneItem) {
if (supportFlex) {
// IE下其实也是可以使用flex布局的,只要排除掉出现滚动条的情况
// if (!isIE || (ob.scrollable !== true && ob.scrolly !== true)) {
return BI.extend({}, ob, {type: "bi.flex_vertical_adapt"});
// }
}
if (!BI.isIE() || BI.getIEVersion() > 8) {
return BI.extend({}, ob, {type: "bi.inline_vertical_adapt"});
}
}
return ob;
// return BI.extend({}, ob, {type: "bi.table_adapt"});
});
// BI.Plugin.configWidget("bi.center_adapt", function (ob) {
// var supportFlex = isSupportFlex(), justOneItem = (ob.items && ob.items.length <= 1);
// var isAdapt = !ob.horizontalAlign || ob.horizontalAlign === BI.HorizontalAlign.Center || ob.horizontalAlign === BI.HorizontalAlign.Stretch;
// if (!isAdapt || justOneItem) {
// if (supportFlex) {
// // IE下其实也是可以使用flex布局的,只要排除掉出现滚动条的情况
// // if (!isIE || (ob.scrollable !== true && ob.scrollx !== true && ob.scrolly !== true)) {
// return BI.extend({}, ob, {type: "bi.flex_center_adapt"});
// // }
// }
// if (!BI.isIE() || BI.getIEVersion() >= 8) {
// return BI.extend({}, ob, {type: "bi.inline_center_adapt"});
// }
// }
// return ob;
// });
// BI.Plugin.configWidget("bi.vertical_adapt", function (ob) {
// var supportFlex = isSupportFlex(), justOneItem = (ob.items && ob.items.length <= 1);
// var isAdapt = ob.horizontalAlign === BI.HorizontalAlign.Center || ob.horizontalAlign === BI.HorizontalAlign.Stretch;
// if (!isAdapt || justOneItem) {
// if (supportFlex) {
// // IE下其实也是可以使用flex布局的,只要排除掉出现滚动条的情况
// // if (!isIE || (ob.scrollable !== true && ob.scrolly !== true)) {
// return BI.extend({}, ob, {type: "bi.flex_vertical_adapt"});
// // }
// }
// if (!BI.isIE() || BI.getIEVersion() > 8) {
// return BI.extend({}, ob, {type: "bi.inline_vertical_adapt"});
// }
// }
// return ob;
// });
BI.Plugin.configWidget("bi.horizontal_adapt", function (ob) {
var justOneItem = (ob.items && ob.items.length <= 1);
if (!ob.verticalAlign || ob.verticalAlign === BI.VerticalAlign.TOP) {

0
src/third/jquery.mousewheel.js → src/core/platform/web/jquery/jquery.mousewheel.js

0
src/core/utils/aes.js → src/core/structure/aes.js

0
src/core/utils/aspect.js → src/core/structure/aspect.js

0
src/core/utils/base64.js → src/core/structure/base64.js

0
src/core/utils/cache.js → src/core/structure/cache.js

0
src/core/utils/cellSizeAndPositionManager.js → src/core/structure/cellSizeAndPositionManager.js

0
src/core/utils/heap.js → src/core/structure/heap.js

0
src/core/utils/linkedHashMap.js → src/core/structure/linkedHashMap.js

0
src/core/utils/lru.js → src/core/structure/lru.js

0
src/core/utils/prefixIntervalTree.js → src/core/structure/prefixIntervalTree.js

0
src/core/utils/queue.js → src/core/structure/queue.js

0
src/core/utils/sectionManager.js → src/core/structure/sectionManager.js

0
src/core/utils/tree.js → src/core/structure/tree.js

0
src/core/utils/vector.js → src/core/structure/vector.js

0
src/core/platform/web/eventlistener.js → src/core/utils/events/eventlistener.js

0
src/core/i18n.js → src/core/utils/i18n.js

3
src/core/wrapper/layout/adapt/adapt.horizontal.js

@ -8,6 +8,7 @@ BI.HorizontalAdaptLayout = BI.inherit(BI.Layout, {
return BI.extend(BI.HorizontalAdaptLayout.superclass.props.apply(this, arguments), {
baseCls: "bi-h-a",
verticalAlign: BI.VerticalAlign.Top,
horizontalAlign: BI.HorizontalAlign.Center,
columnSize: [],
scrollx: false,
hgap: 0,
@ -24,7 +25,7 @@ BI.HorizontalAdaptLayout = BI.inherit(BI.Layout, {
return {
type: "bi.horizontal",
verticalAlign: o.verticalAlign,
horizontalAlign: BI.HorizontalAlign.Center,
horizontalAlign: o.horizontalAlign,
columnSize: o.columnSize,
items: o.items,
scrollx: o.scrollx,

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save