Browse Source

Merge remote-tracking branch 'origin/master'

master
Kobi 4 years ago
parent
commit
42f606189e
  1. 2
      dist/2.0/fineui.css
  2. 4
      dist/2.0/fineui.ie.min.js
  3. 2
      dist/2.0/fineui.ie.min.js.map
  4. 1543
      dist/2.0/fineui.js
  5. 2
      dist/2.0/fineui.js.map
  6. 2
      dist/2.0/fineui.min.css
  7. 4
      dist/2.0/fineui.min.js
  8. 2
      dist/2.0/fineui.min.js.map
  9. 2
      dist/2.0/fineui_without_normalize.css
  10. 2
      dist/2.0/fineui_without_normalize.min.css
  11. 2
      dist/core.css
  12. 1509
      dist/core.js
  13. 2
      dist/core.js.map
  14. 2
      dist/demo.css
  15. 1883
      dist/demo.js
  16. 2
      dist/demo.js.map
  17. 2
      dist/fineui.css
  18. 4
      dist/fineui.ie.min.js
  19. 2
      dist/fineui.ie.min.js.map
  20. 1537
      dist/fineui.js
  21. 2
      dist/fineui.js.map
  22. 2
      dist/fineui.min.css
  23. 4
      dist/fineui.min.js
  24. 2
      dist/fineui.min.js.map
  25. 2
      dist/fineui.proxy.css
  26. 697
      dist/fineui.proxy.js
  27. 2
      dist/fineui.proxy.js.map
  28. 2
      dist/fineui.proxy.min.css
  29. 4
      dist/fineui.proxy.min.js
  30. 2
      dist/fineui.proxy.min.js.map
  31. 615
      dist/fineui_without_jquery_polyfill.js
  32. 2
      dist/fineui_without_jquery_polyfill.js.map
  33. 2
      dist/font.css
  34. 8
      dist/lib/base/single/button/buttons/button.d.ts
  35. 4
      dist/lib/base/single/button/buttons/button.icon.d.ts
  36. 1
      dist/lib/base/single/label/abstract.label.d.ts
  37. 7
      dist/lib/base/single/label/html.label.d.ts
  38. 1
      dist/lib/base/single/label/label.d.ts
  39. 8
      dist/lib/base/single/text.d.ts
  40. 4
      dist/lib/case/button/icon/icon.change.d.ts
  41. 4
      dist/lib/case/editor/editor.sign.d.ts
  42. 34
      dist/lib/case/editor/editor.state.d.ts
  43. 1
      dist/lib/case/pager/pager.all.count.d.ts
  44. 4
      dist/lib/core/wrapper/layout/layout.grid.d.ts
  45. 6
      dist/lib/index.d.ts
  46. 6
      dist/lib/shims-tsx.d.ts
  47. 2
      dist/resource.css
  48. 38
      dist/utils.js
  49. 2
      dist/utils.js.map
  50. 4
      dist/utils.min.js
  51. 2
      dist/utils.min.js.map
  52. 4
      package.json
  53. 6
      src/base/combination/switcher.js
  54. 2
      src/base/layer/layer.popover.js
  55. 2
      src/base/single/editor/editor.textarea.js
  56. 15
      src/case/pager/pager.all.count.js
  57. 2
      src/widget/editor/editor.search.js
  58. 2
      src/widget/multiselect/trigger/switcher.checkselected.js
  59. 5
      typescript/base/single/button/buttons/button.icon.ts
  60. 13
      typescript/base/single/label/abstract.label.ts
  61. 9
      typescript/base/single/label/html.label.ts
  62. 1
      typescript/base/single/label/label.ts
  63. 5
      typescript/case/button/icon/icon.change.ts
  64. 4
      typescript/case/editor/editor.sign.ts
  65. 48
      typescript/case/editor/editor.state.ts
  66. 2
      typescript/case/pager/pager.all.count.ts
  67. 5
      typescript/core/wrapper/layout/layout.grid.ts
  68. 6
      typescript/index.ts
  69. 8
      typescript/shims-tsx.ts

2
dist/2.0/fineui.css vendored

File diff suppressed because one or more lines are too long

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

File diff suppressed because one or more lines are too long

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

File diff suppressed because one or more lines are too long

1543
dist/2.0/fineui.js vendored

File diff suppressed because it is too large Load Diff

2
dist/2.0/fineui.js.map vendored

File diff suppressed because one or more lines are too long

2
dist/2.0/fineui.min.css vendored

File diff suppressed because one or more lines are too long

4
dist/2.0/fineui.min.js vendored

File diff suppressed because one or more lines are too long

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

File diff suppressed because one or more lines are too long

2
dist/2.0/fineui_without_normalize.css vendored

File diff suppressed because one or more lines are too long

2
dist/2.0/fineui_without_normalize.min.css vendored

File diff suppressed because one or more lines are too long

2
dist/core.css vendored

File diff suppressed because one or more lines are too long

1509
dist/core.js vendored

File diff suppressed because it is too large Load Diff

2
dist/core.js.map vendored

File diff suppressed because one or more lines are too long

2
dist/demo.css vendored

File diff suppressed because one or more lines are too long

1883
dist/demo.js vendored

File diff suppressed because it is too large Load Diff

2
dist/demo.js.map vendored

File diff suppressed because one or more lines are too long

2
dist/fineui.css vendored

File diff suppressed because one or more lines are too long

4
dist/fineui.ie.min.js vendored

File diff suppressed because one or more lines are too long

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

File diff suppressed because one or more lines are too long

1537
dist/fineui.js vendored

File diff suppressed because it is too large Load Diff

2
dist/fineui.js.map vendored

File diff suppressed because one or more lines are too long

2
dist/fineui.min.css vendored

File diff suppressed because one or more lines are too long

4
dist/fineui.min.js vendored

File diff suppressed because one or more lines are too long

2
dist/fineui.min.js.map vendored

File diff suppressed because one or more lines are too long

2
dist/fineui.proxy.css vendored

File diff suppressed because one or more lines are too long

697
dist/fineui.proxy.js vendored

File diff suppressed because it is too large Load Diff

2
dist/fineui.proxy.js.map vendored

File diff suppressed because one or more lines are too long

2
dist/fineui.proxy.min.css vendored

File diff suppressed because one or more lines are too long

4
dist/fineui.proxy.min.js vendored

File diff suppressed because one or more lines are too long

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

File diff suppressed because one or more lines are too long

615
dist/fineui_without_jquery_polyfill.js vendored

File diff suppressed because it is too large Load Diff

2
dist/fineui_without_jquery_polyfill.js.map vendored

File diff suppressed because one or more lines are too long

2
dist/font.css vendored

File diff suppressed because one or more lines are too long

8
dist/lib/base/single/button/buttons/button.d.ts vendored

@ -1,4 +1,4 @@
import { IconLabel, Label } from "../../../.."; import { AbstractLabel, IconLabel, Label } from "../../../..";
import { BasicButton } from "../button.basic"; import { BasicButton } from "../button.basic";
export declare class Button extends BasicButton { export declare class Button extends BasicButton {
static xtype: string; static xtype: string;
@ -11,11 +11,7 @@ export declare class Button extends BasicButton {
block?: boolean; block?: boolean;
clear?: boolean; clear?: boolean;
ghost?: boolean; ghost?: boolean;
textAlign?: 'center' | 'left' | 'right'; } & AbstractLabel['props'] & IconLabel['props'] & BasicButton['props'];
whiteSpace?: 'nowrap' | 'normal';
textWidth?: number | null;
textHeight?: number | null;
} & BasicButton['props'];
text: Label; text: Label;
icon?: IconLabel; icon?: IconLabel;
doRedMark(...args: any[]): void; doRedMark(...args: any[]): void;

4
dist/lib/base/single/button/buttons/button.icon.d.ts vendored

@ -2,4 +2,8 @@ import { BasicButton } from "../button.basic";
export declare class IconButton extends BasicButton { export declare class IconButton extends BasicButton {
static xtype: string; static xtype: string;
static EVENT_CHANGE: string; static EVENT_CHANGE: string;
props: {
iconWidth?: number;
iconHeight?: number;
} & BasicButton['props'];
} }

1
dist/lib/base/single/label/abstract.label.d.ts vendored

@ -8,6 +8,7 @@ export declare class AbstractLabel extends Single {
textHeight: number | null; textHeight: number | null;
highLight: boolean; highLight: boolean;
handler: Function | null; handler: Function | null;
text: string;
} & Single['props']; } & Single['props'];
doRedMark(...args: any[]): void; doRedMark(...args: any[]): void;
unRedMark(...args: any[]): void; unRedMark(...args: any[]): void;

7
dist/lib/base/single/label/html.label.d.ts vendored

@ -0,0 +1,7 @@
import { AbstractLabel } from "./abstract.label";
export declare class HtmlLabel extends AbstractLabel {
props: {
lineHeight: number;
} & AbstractLabel['props'];
static xtype: string;
}

1
dist/lib/base/single/label/label.d.ts vendored

@ -3,7 +3,6 @@ export declare class Label extends AbstractLabel {
props: { props: {
py: string; py: string;
keyword: string; keyword: string;
text: string;
} & AbstractLabel['props']; } & AbstractLabel['props'];
static xtype: string; static xtype: string;
} }

8
dist/lib/base/single/text.d.ts vendored

@ -1,6 +1,14 @@
import { Single } from "./single"; import { Single } from "./single";
export declare class Text extends Single { export declare class Text extends Single {
static xtype: string; static xtype: string;
props: {
text?: string;
textAlign?: "left" | "center" | "right";
whiteSpace?: "nowrap" | "normal";
lineHeight?: null | number;
py?: string;
highLight?: boolean;
} & Single['props'];
doRedMark(keyword: string): void; doRedMark(keyword: string): void;
unRedMark(): void; unRedMark(): void;
doHighLight(): void; doHighLight(): void;

4
dist/lib/case/button/icon/icon.change.d.ts vendored

@ -1,7 +1,11 @@
import { IconButton } from "../../../base/single/button/buttons/button.icon";
import { Single } from "../../../base/single/single"; import { Single } from "../../../base/single/single";
export declare class IconChangeButton extends Single { export declare class IconChangeButton extends Single {
static xtype: string; static xtype: string;
static EVENT_CHANGE: string; static EVENT_CHANGE: string;
props: {
iconCls: string;
} & IconButton['props'];
isSelected(): boolean; isSelected(): boolean;
setSelected(v: boolean): void; setSelected(v: boolean): void;
setIcon(cls: string): void; setIcon(cls: string): void;

4
dist/lib/case/editor/editor.sign.d.ts vendored

@ -31,6 +31,6 @@ export declare class SignEditor extends Widget {
getErrorText(): string; getErrorText(): string;
isEditing(): boolean; isEditing(): boolean;
getLastChangedValue(): string; getLastChangedValue(): string;
getState(): any; getState(): number | string | Array<string>;
setState(...args: any[]): void; setState(...args: (number | string | Array<string>)[]): void;
} }

34
dist/lib/case/editor/editor.state.d.ts vendored

@ -0,0 +1,34 @@
import { Widget } from "../../core/widget";
export declare class StateEditor extends Widget {
static xtype: string;
static EVENT_CHANGE: string;
static EVENT_FOCUS: string;
static EVENT_BLUR: string;
static EVENT_CLICK: string;
static EVENT_KEY_DOWN: string;
static EVENT_CLICK_LABEL: string;
static EVENT_START: string;
static EVENT_PAUSE: string;
static EVENT_STOP: string;
static EVENT_CONFIRM: string;
static EVENT_CHANGE_CONFIRM: string;
static EVENT_VALID: string;
static EVENT_ERROR: string;
static EVENT_ENTER: string;
static EVENT_RESTRICT: string;
static EVENT_SPACE: string;
static EVENT_EMPTY: string;
setWaterMark(v: string): void;
focus(): void;
blur(): void;
doRedMark(...args: any[]): void;
unRedMark(...args: any[]): void;
doHighLight(...args: any[]): void;
unHighLight(...args: any[]): void;
setErrorText(v: string): void;
getErrorText(): string;
isEditing(): boolean;
getLastChangedValue(): string;
getState(): number | string | Array<string>;
setState(...args: (number | string | Array<string>)[]): void;
}

1
dist/lib/case/pager/pager.all.count.d.ts vendored

@ -6,6 +6,7 @@ export declare class AllCountPager extends Widget {
setValue(v: number): void; setValue(v: number): void;
setVPage(v: number): void; setVPage(v: number): void;
setCount(v: number | string): void; setCount(v: number | string): void;
setCountPrevText(v: string): void;
getCurrentPage(): number; getCurrentPage(): number;
hasPrev(): boolean; hasPrev(): boolean;
hasNext(): boolean; hasNext(): boolean;

4
dist/lib/core/wrapper/layout/layout.grid.d.ts vendored

@ -1,4 +1,8 @@
import { Layout } from '../layout'; import { Layout } from '../layout';
export declare class GridLayout extends Layout { export declare class GridLayout extends Layout {
static xtype: string; static xtype: string;
props: {
columns: number;
rows: number;
};
} }

6
dist/lib/index.d.ts vendored

@ -23,6 +23,7 @@ import { TextValueCombo } from "./case/combo/combo.textvalue";
import { SmallTextValueCombo } from './case/combo/combo.textvaluesmall'; import { SmallTextValueCombo } from './case/combo/combo.textvaluesmall';
import { SearchTextValueCombo } from "./case/combo/searchtextvaluecombo/combo.searchtextvalue"; import { SearchTextValueCombo } from "./case/combo/searchtextvaluecombo/combo.searchtextvalue";
import { SignEditor } from "./case/editor/editor.sign"; import { SignEditor } from "./case/editor/editor.sign";
import { StateEditor } from './case/editor/editor.state';
import { LoadingPane } from "./case/loading/loading_pane"; import { LoadingPane } from "./case/loading/loading_pane";
import { AllValueMultiTextValueCombo } from "./component/allvaluemultitextvaluecombo/allvalue.multitextvalue.combo"; import { AllValueMultiTextValueCombo } from "./component/allvaluemultitextvaluecombo/allvalue.multitextvalue.combo";
import { AbstractTreeValueChooser } from "./component/treevaluechooser/abstract.treevaluechooser"; import { AbstractTreeValueChooser } from "./component/treevaluechooser/abstract.treevaluechooser";
@ -168,6 +169,7 @@ import { TimeInterval } from './widget/timeinterval/timeinterval';
import { DynamicDateTimePane } from './widget/datetimepane/datetimepane'; import { DynamicDateTimePane } from './widget/datetimepane/datetimepane';
import { SingleSelectInsertList } from './widget/singleselect/singleselectlist.insert'; import { SingleSelectInsertList } from './widget/singleselect/singleselectlist.insert';
import { MultiSelectTree } from './widget/multiselecttree/multiselecttree'; import { MultiSelectTree } from './widget/multiselecttree/multiselecttree';
import { HtmlLabel } from "./base/single/label/html.label";
export interface BI extends _func, _i18n, _base, _inject, _var, _web, _utils { export interface BI extends _func, _i18n, _base, _inject, _var, _web, _utils {
OB: typeof OB; OB: typeof OB;
Plugin: _Plugin; Plugin: _Plugin;
@ -208,6 +210,7 @@ export interface BI extends _func, _i18n, _base, _inject, _var, _web, _utils {
Text: typeof Text; Text: typeof Text;
Editor: typeof Editor; Editor: typeof Editor;
SignEditor: typeof SignEditor; SignEditor: typeof SignEditor;
StateEditor: typeof StateEditor;
Layout: typeof Layout; Layout: typeof Layout;
HTapeLayout: typeof HTapeLayout; HTapeLayout: typeof HTapeLayout;
VTapeLayout: typeof VTapeLayout; VTapeLayout: typeof VTapeLayout;
@ -341,9 +344,10 @@ export interface BI extends _func, _i18n, _base, _inject, _var, _web, _utils {
DynamicDateTimePane: typeof DynamicDateTimePane; DynamicDateTimePane: typeof DynamicDateTimePane;
SingleSelectInsertList: typeof SingleSelectInsertList; SingleSelectInsertList: typeof SingleSelectInsertList;
MultiSelectTree: typeof MultiSelectTree; MultiSelectTree: typeof MultiSelectTree;
HtmlLabel: typeof HtmlLabel;
} }
declare const _default: { declare const _default: {
Decorators: typeof decorator; Decorators: typeof decorator;
}; };
export default _default; 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, BroadcastController, Behavior, BehaviorFactory, RedMarkBehavior, HighlightBehavior, LoadingPane, Searcher, AbstractLabel, Label, TextButton, DownListCombo, IconChangeButton, Button, TextEditor, A, Html, Switcher, BubbleCombo, Loader, ListPane, MultiPopupView, MultiSelectBar, SelectList, TextValueCombo, SmallTextValueCombo, 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, TextTrigger, SelectTextTrigger, DateInterval, DynamicDatePane, AllCountPager, Pager, 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, AdaptiveLayout, HexColorChooserPopup, BlankIconTextItem, TimeInterval, DynamicDateTimePane, SingleSelectInsertList, MultiSelectTree, }; 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, BroadcastController, Behavior, BehaviorFactory, RedMarkBehavior, HighlightBehavior, LoadingPane, Searcher, AbstractLabel, Label, TextButton, DownListCombo, IconChangeButton, Button, TextEditor, A, Html, Switcher, BubbleCombo, Loader, ListPane, MultiPopupView, MultiSelectBar, SelectList, TextValueCombo, SmallTextValueCombo, 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, StateEditor, 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, TextTrigger, SelectTextTrigger, DateInterval, DynamicDatePane, AllCountPager, Pager, 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, AdaptiveLayout, HexColorChooserPopup, BlankIconTextItem, TimeInterval, DynamicDateTimePane, SingleSelectInsertList, MultiSelectTree, HtmlLabel, };

6
dist/lib/shims-tsx.d.ts vendored

@ -13,6 +13,10 @@ interface UIProps {
vgap: number; vgap: number;
hgap: number; hgap: number;
} }
interface AdditionalProps {
column: number;
row: number;
}
interface ElementClassProps<T> extends UIProps { interface ElementClassProps<T> extends UIProps {
cls: string; cls: string;
extraCls: string; extraCls: string;
@ -43,7 +47,7 @@ interface ElementClassProps<T> extends UIProps {
} }
declare namespace JSX { declare namespace JSX {
interface IntrinsicElements { interface IntrinsicElements {
[elemName: string]: Partial<UIProps>; [elemName: string]: Partial<UIProps & AdditionalProps>;
} }
interface ElementAttributesProperty { interface ElementAttributesProperty {
/** /**

2
dist/resource.css vendored

File diff suppressed because one or more lines are too long

38
dist/utils.js vendored

@ -1,4 +1,4 @@
/*! time: 2021-6-1 6:50:23 PM */ /*! time: 2021-6-4 2:10:15 PM */
/******/ (function(modules) { // webpackBootstrap /******/ (function(modules) { // webpackBootstrap
/******/ // The module cache /******/ // The module cache
/******/ var installedModules = {}; /******/ var installedModules = {};
@ -82,7 +82,7 @@
/******/ /******/
/******/ /******/
/******/ // Load entry module and return exports /******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = 1260); /******/ return __webpack_require__(__webpack_require__.s = 1262);
/******/ }) /******/ })
/************************************************************************/ /************************************************************************/
/******/ ({ /******/ ({
@ -2917,7 +2917,17 @@ _.extend(BI, {
/***/ }), /***/ }),
/***/ 1118: /***/ 112:
/***/ (function(module, exports) {
BI.Req = {
};
/***/ }),
/***/ 1120:
/***/ (function(module, exports) { /***/ (function(module, exports) {
BI.i18n = { BI.i18n = {
@ -3122,17 +3132,7 @@ BI.i18n = {
/***/ }), /***/ }),
/***/ 112: /***/ 1262:
/***/ (function(module, exports) {
BI.Req = {
};
/***/ }),
/***/ 1260:
/***/ (function(module, exports, __webpack_require__) { /***/ (function(module, exports, __webpack_require__) {
__webpack_require__(91); __webpack_require__(91);
@ -3151,8 +3151,8 @@ __webpack_require__(97);
__webpack_require__(98); __webpack_require__(98);
__webpack_require__(108); __webpack_require__(108);
__webpack_require__(109); __webpack_require__(109);
__webpack_require__(1118); __webpack_require__(1120);
__webpack_require__(1261); __webpack_require__(1263);
__webpack_require__(110); __webpack_require__(110);
__webpack_require__(111); __webpack_require__(111);
module.exports = __webpack_require__(112); module.exports = __webpack_require__(112);
@ -3160,7 +3160,7 @@ module.exports = __webpack_require__(112);
/***/ }), /***/ }),
/***/ 1261: /***/ 1263:
/***/ (function(module, exports) { /***/ (function(module, exports) {
/** /**
@ -3263,7 +3263,7 @@ module.exports = g;
/***/ }), /***/ }),
/***/ 60: /***/ 61:
/***/ (function(module, exports, __webpack_require__) { /***/ (function(module, exports, __webpack_require__) {
"use strict"; "use strict";
@ -4933,7 +4933,7 @@ if (!_global.BI) {
}); });
})(); })();
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(14), __webpack_require__(60).setImmediate)) /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(14), __webpack_require__(61).setImmediate))
/***/ }), /***/ }),

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

4
package.json

@ -1,6 +1,6 @@
{ {
"name": "fineui", "name": "fineui",
"version": "2.0.20210601185125", "version": "2.0.20210604141117",
"description": "fineui", "description": "fineui",
"main": "dist/fineui.min.js", "main": "dist/fineui.min.js",
"types": "dist/lib/index.d.ts", "types": "dist/lib/index.d.ts",
@ -77,4 +77,4 @@
}, },
"author": "fanruan", "author": "fanruan",
"license": "MIT" "license": "MIT"
} }

6
src/base/combination/switcher.js

@ -191,9 +191,13 @@ BI.Switcher = BI.inherit(BI.Widget, {
}, this.getName()); }, this.getName());
}, },
populate: function (items) { _populate: function () {
this._assertPopupView(); this._assertPopupView();
this.popupView.populate.apply(this.popupView, arguments); this.popupView.populate.apply(this.popupView, arguments);
},
populate: function (items) {
this._populate.apply(this, arguments);
this.switcher.populate && this.switcher.populate.apply(this.switcher, arguments); this.switcher.populate && this.switcher.populate.apply(this.switcher, arguments);
}, },

2
src/base/layer/layer.popover.js

@ -102,7 +102,7 @@ BI.Popover = BI.inherit(BI.Widget, {
}, },
css: { css: {
"max-height": this._getSuitableBodyHeight(c.MAX_HEIGHT - o.headerHeight - (o.footer ? o.footerHeight : 0) - o.bodyTgap), "max-height": this._getSuitableBodyHeight(c.MAX_HEIGHT - o.headerHeight - (o.footer ? o.footerHeight : 0) - o.bodyTgap),
"min-height": this._getSuitableBodyHeight(size.height), "min-height": this._getSuitableBodyHeight(size.height - o.headerHeight - (o.footer ? o.footerHeight : 0) - o.bodyTgap),
}, },
items: [{ items: [{
el: o.body, el: o.body,

2
src/base/single/editor/editor.textarea.js

@ -80,7 +80,7 @@ BI.TextAreaEditor = BI.inherit(BI.Single, {
}); });
this.content.element.keydown(function () { this.content.element.keydown(function () {
// 水印快速消失 // 水印快速消失
self.watermark && self.watermark.setVisible(false); self._checkWaterMark();
}); });
this.content.element.keyup(function (e) { this.content.element.keyup(function (e) {
self.fireEvent(BI.TextAreaEditor.EVENT_KEY_DOWN, e.keyCode); self.fireEvent(BI.TextAreaEditor.EVENT_KEY_DOWN, e.keyCode);

15
src/case/pager/pager.all.count.js

@ -12,6 +12,7 @@ BI.AllCountPager = BI.inherit(BI.Widget, {
pages: 1, // 必选项 pages: 1, // 必选项
curr: 1, // 初始化当前页, pages为数字时可用, curr: 1, // 初始化当前页, pages为数字时可用,
count: 1, // 总行数 count: 1, // 总行数
rowInfoObject: null,
showRowCount: true showRowCount: true
}); });
}, },
@ -137,7 +138,9 @@ BI.AllCountPager = BI.inherit(BI.Widget, {
type: "bi.label", type: "bi.label",
height: o.height, height: o.height,
text: BI.i18nText("BI-Basic_Total"), text: BI.i18nText("BI-Basic_Total"),
width: 15 ref: function (_ref) {
self.prevText = _ref;
}
}, { }, {
type: "bi.label", type: "bi.label",
ref: function (_ref) { ref: function (_ref) {
@ -152,9 +155,9 @@ BI.AllCountPager = BI.inherit(BI.Widget, {
type: "bi.label", type: "bi.label",
height: o.height, height: o.height,
text: BI.i18nText("BI-Tiao_Data"), text: BI.i18nText("BI-Tiao_Data"),
width: 50, width: 40,
textAlign: "left" textAlign: "left"
}] }, BI.isNotEmptyObject(o.rowInfoObject) ? o.rowInfoObject : null]
}; };
}, },
@ -182,6 +185,12 @@ BI.AllCountPager = BI.inherit(BI.Widget, {
} }
}, },
setCountPrevText: function (text) {
if (this.options.showRowCount) {
this.prevText.setText(text);
}
},
getCurrentPage: function () { getCurrentPage: function () {
return this.pager.getCurrentPage(); return this.pager.getCurrentPage();
}, },

2
src/widget/editor/editor.search.js

@ -35,7 +35,7 @@ BI.SearchEditor = BI.inherit(BI.Widget, {
}); });
this.clear.on(BI.IconButton.EVENT_CHANGE, function () { this.clear.on(BI.IconButton.EVENT_CHANGE, function () {
self.setValue(""); self.setValue("");
self.fireEvent(BI.Controller.EVENT_CHANGE, BI.Events.STOPEDIT); self.fireEvent(BI.Controller.EVENT_CHANGE, BI.Events.STOPEDIT, self.getValue());
// 从有内容到无内容的清空也是一次change // 从有内容到无内容的清空也是一次change
self.fireEvent(BI.SearchEditor.EVENT_CHANGE); self.fireEvent(BI.SearchEditor.EVENT_CHANGE);
self.fireEvent(BI.SearchEditor.EVENT_CLEAR); self.fireEvent(BI.SearchEditor.EVENT_CLEAR);

2
src/widget/multiselect/trigger/switcher.checkselected.js

@ -62,7 +62,7 @@ BI.MultiSelectCheckSelectedSwitcher = BI.inherit(BI.Widget, {
this.switcher.on(BI.Switcher.EVENT_AFTER_POPUPVIEW, function () { this.switcher.on(BI.Switcher.EVENT_AFTER_POPUPVIEW, function () {
var me = this; var me = this;
BI.nextTick(function () { BI.nextTick(function () {
me.populate(); me._populate();
}); });
}); });
}, },

5
typescript/base/single/button/buttons/button.icon.ts

@ -3,4 +3,9 @@ import { BasicButton } from "../button.basic";
export declare class IconButton extends BasicButton { export declare class IconButton extends BasicButton {
static xtype: string; static xtype: string;
static EVENT_CHANGE: string; static EVENT_CHANGE: string;
props: {
iconWidth?: number;
iconHeight?: number;
} & BasicButton['props']
} }

13
typescript/base/single/label/abstract.label.ts

@ -4,12 +4,13 @@ export declare class AbstractLabel extends Single {
static xtype: string; static xtype: string;
props: { props: {
textAlign: "left" | "center" | "right", textAlign: "left" | "center" | "right";
whiteSpace: "nowrap" | "normal", whiteSpace: "nowrap" | "normal";
textWidth: number | null, textWidth: number | null;
textHeight: number | null, textHeight: number | null;
highLight: boolean, highLight: boolean;
handler: Function | null, handler: Function | null;
text: string;
} & Single['props'] } & Single['props']
doRedMark(...args: any[]): void; doRedMark(...args: any[]): void;

9
typescript/base/single/label/html.label.ts

@ -0,0 +1,9 @@
import { AbstractLabel } from "./abstract.label";
export declare class HtmlLabel extends AbstractLabel {
props: {
lineHeight: number;
} & AbstractLabel['props'];
static xtype: string;
}

1
typescript/base/single/label/label.ts

@ -4,7 +4,6 @@ export declare class Label extends AbstractLabel {
props: { props: {
py: string; py: string;
keyword: string; keyword: string;
text: string;
} & AbstractLabel['props']; } & AbstractLabel['props'];
static xtype: string; static xtype: string;

5
typescript/case/button/icon/icon.change.ts

@ -1,9 +1,14 @@
import { IconButton } from "../../../base/single/button/buttons/button.icon";
import { Single } from "../../../base/single/single"; import { Single } from "../../../base/single/single";
export declare class IconChangeButton extends Single { export declare class IconChangeButton extends Single {
static xtype: string; static xtype: string;
static EVENT_CHANGE: string; static EVENT_CHANGE: string;
props: {
iconCls: string;
} & IconButton['props']
isSelected(): boolean; isSelected(): boolean;
setSelected(v: boolean): void; setSelected(v: boolean): void;

4
typescript/case/editor/editor.sign.ts

@ -46,7 +46,7 @@ export declare class SignEditor extends Widget {
getLastChangedValue(): string; getLastChangedValue(): string;
getState(): any; getState(): number | string | Array<string>;
setState(...args: any[]): void; setState(...args: (number | string | Array<string>)[]): void;
} }

48
typescript/case/editor/editor.state.ts

@ -0,0 +1,48 @@
import { Widget } from "../../core/widget";
export declare class StateEditor extends Widget {
static xtype: string;
static EVENT_CHANGE: string;
static EVENT_FOCUS: string;
static EVENT_BLUR: string;
static EVENT_CLICK: string;
static EVENT_KEY_DOWN: string;
static EVENT_CLICK_LABEL: string;
static EVENT_START: string;
static EVENT_PAUSE: string;
static EVENT_STOP: string;
static EVENT_CONFIRM: string;
static EVENT_CHANGE_CONFIRM: string;
static EVENT_VALID: string;
static EVENT_ERROR: string;
static EVENT_ENTER: string;
static EVENT_RESTRICT: string;
static EVENT_SPACE: string;
static EVENT_EMPTY: string;
setWaterMark(v: string): void;
focus(): void;
blur(): void;
doRedMark(...args: any[]): void;
unRedMark(...args: any[]): void;
doHighLight(...args: any[]): void;
unHighLight(...args: any[]): void;
setErrorText(v: string): void;
getErrorText(): string;
isEditing(): boolean;
getLastChangedValue(): string;
getState(): number | string | Array<string>;
setState(...args: (number | string | Array<string>)[]): void;
}

2
typescript/case/pager/pager.all.count.ts

@ -12,6 +12,8 @@ export declare class AllCountPager extends Widget {
setCount(v: number | string): void; setCount(v: number | string): void;
setCountPrevText(v: string): void;
getCurrentPage(): number; getCurrentPage(): number;
hasPrev(): boolean; hasPrev(): boolean;

5
typescript/core/wrapper/layout/layout.grid.ts

@ -2,4 +2,9 @@ import { Layout } from '../layout';
export declare class GridLayout extends Layout { export declare class GridLayout extends Layout {
static xtype: string; static xtype: string;
props: {
columns: number;
rows: number;
}
} }

6
typescript/index.ts

@ -23,6 +23,7 @@ import { TextValueCombo } from "./case/combo/combo.textvalue";
import { SmallTextValueCombo } from './case/combo/combo.textvaluesmall'; import { SmallTextValueCombo } from './case/combo/combo.textvaluesmall';
import { SearchTextValueCombo } from "./case/combo/searchtextvaluecombo/combo.searchtextvalue"; import { SearchTextValueCombo } from "./case/combo/searchtextvaluecombo/combo.searchtextvalue";
import { SignEditor } from "./case/editor/editor.sign"; import { SignEditor } from "./case/editor/editor.sign";
import { StateEditor } from './case/editor/editor.state';
import { LoadingPane } from "./case/loading/loading_pane"; import { LoadingPane } from "./case/loading/loading_pane";
import { AllValueMultiTextValueCombo } from "./component/allvaluemultitextvaluecombo/allvalue.multitextvalue.combo"; import { AllValueMultiTextValueCombo } from "./component/allvaluemultitextvaluecombo/allvalue.multitextvalue.combo";
import { AbstractTreeValueChooser } from "./component/treevaluechooser/abstract.treevaluechooser"; import { AbstractTreeValueChooser } from "./component/treevaluechooser/abstract.treevaluechooser";
@ -168,6 +169,7 @@ import { TimeInterval } from './widget/timeinterval/timeinterval';
import { DynamicDateTimePane } from './widget/datetimepane/datetimepane'; import { DynamicDateTimePane } from './widget/datetimepane/datetimepane';
import { SingleSelectInsertList } from './widget/singleselect/singleselectlist.insert'; import { SingleSelectInsertList } from './widget/singleselect/singleselectlist.insert';
import { MultiSelectTree } from './widget/multiselecttree/multiselecttree'; import { MultiSelectTree } from './widget/multiselecttree/multiselecttree';
import { HtmlLabel } from "./base/single/label/html.label";
export interface BI extends _func, _i18n, _base, _inject, _var, _web, _utils { export interface BI extends _func, _i18n, _base, _inject, _var, _web, _utils {
@ -210,6 +212,7 @@ export interface BI extends _func, _i18n, _base, _inject, _var, _web, _utils {
Text: typeof Text; Text: typeof Text;
Editor: typeof Editor; Editor: typeof Editor;
SignEditor: typeof SignEditor; SignEditor: typeof SignEditor;
StateEditor: typeof StateEditor;
Layout: typeof Layout; Layout: typeof Layout;
HTapeLayout: typeof HTapeLayout; HTapeLayout: typeof HTapeLayout;
VTapeLayout: typeof VTapeLayout; VTapeLayout: typeof VTapeLayout;
@ -343,6 +346,7 @@ export interface BI extends _func, _i18n, _base, _inject, _var, _web, _utils {
DynamicDateTimePane: typeof DynamicDateTimePane; DynamicDateTimePane: typeof DynamicDateTimePane;
SingleSelectInsertList: typeof SingleSelectInsertList; SingleSelectInsertList: typeof SingleSelectInsertList;
MultiSelectTree: typeof MultiSelectTree; MultiSelectTree: typeof MultiSelectTree;
HtmlLabel: typeof HtmlLabel;
} }
export default { export default {
@ -447,6 +451,7 @@ export {
SmallTextEditor, SmallTextEditor,
MultifileEditor, MultifileEditor,
SignEditor, SignEditor,
StateEditor,
MultiSelectInsertCombo, MultiSelectInsertCombo,
MultiSelectCombo, MultiSelectCombo,
SearchEditor, SearchEditor,
@ -518,4 +523,5 @@ export {
DynamicDateTimePane, DynamicDateTimePane,
SingleSelectInsertList, SingleSelectInsertList,
MultiSelectTree, MultiSelectTree,
HtmlLabel,
}; };

8
typescript/shims-tsx.ts

@ -15,6 +15,12 @@ interface UIProps {
hgap: number; hgap: number;
} }
// 一些布局的附加属性
interface AdditionalProps {
column: number;
row: number;
}
interface ElementClassProps<T> extends UIProps { interface ElementClassProps<T> extends UIProps {
cls: string; cls: string;
extraCls: string; extraCls: string;
@ -48,7 +54,7 @@ interface ElementClassProps<T> extends UIProps {
declare namespace JSX { declare namespace JSX {
// for undefined // for undefined
interface IntrinsicElements { interface IntrinsicElements {
[elemName: string]: Partial<UIProps>; [elemName: string]: Partial<UIProps & AdditionalProps>;
} }
interface ElementAttributesProperty { interface ElementAttributesProperty {

Loading…
Cancel
Save