amis 1.4.0 → 1.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (87) hide show
  1. package/lib/components/Badge.d.ts +2 -1
  2. package/lib/components/Badge.js +33 -4
  3. package/lib/components/Badge.js.map +2 -2
  4. package/lib/components/Button.d.ts +24 -22
  5. package/lib/components/Button.js +13 -7
  6. package/lib/components/Button.js.map +2 -2
  7. package/lib/components/RichText.d.ts +6 -1
  8. package/lib/components/RichText.js +243 -8
  9. package/lib/components/RichText.js.map +2 -2
  10. package/lib/components/calendar/DaysView.js +2 -2
  11. package/lib/components/calendar/DaysView.js.map +2 -2
  12. package/lib/components/icons.js +2 -0
  13. package/lib/components/icons.js.map +2 -2
  14. package/lib/helper.css.map +1 -1
  15. package/lib/icons/loading-outline.js +7 -0
  16. package/lib/index.js +1 -1
  17. package/lib/renderers/Action.d.ts +9 -1
  18. package/lib/renderers/Action.js +5 -5
  19. package/lib/renderers/Action.js.map +2 -2
  20. package/lib/renderers/DropDownButton.d.ts +4 -0
  21. package/lib/renderers/DropDownButton.js +5 -3
  22. package/lib/renderers/DropDownButton.js.map +2 -2
  23. package/lib/renderers/Nav.d.ts +52 -22
  24. package/lib/renderers/Nav.js +100 -15
  25. package/lib/renderers/Nav.js.map +2 -2
  26. package/lib/renderers/Page.js +1 -1
  27. package/lib/renderers/Page.js.map +2 -2
  28. package/lib/themes/ang-ie11.css +350 -54
  29. package/lib/themes/ang.css +350 -54
  30. package/lib/themes/ang.css.map +1 -1
  31. package/lib/themes/antd-ie11.css +350 -54
  32. package/lib/themes/antd.css +350 -54
  33. package/lib/themes/antd.css.map +1 -1
  34. package/lib/themes/cxd-ie11.css +458 -174
  35. package/lib/themes/cxd.css +458 -174
  36. package/lib/themes/cxd.css.map +1 -1
  37. package/lib/themes/dark-ie11.css +350 -54
  38. package/lib/themes/dark.css +350 -54
  39. package/lib/themes/dark.css.map +1 -1
  40. package/lib/themes/default.css +458 -174
  41. package/lib/themes/default.css.map +1 -1
  42. package/lib/utils/helper.js.map +2 -2
  43. package/package.json +1 -2
  44. package/schema.json +200 -15
  45. package/scss/_mixins.scss +29 -0
  46. package/scss/_properties.scss +23 -11
  47. package/scss/components/_badge.scss +52 -1
  48. package/scss/components/_button.scss +35 -3
  49. package/scss/components/_image-gallery.scss +1 -1
  50. package/scss/components/_nav.scss +109 -35
  51. package/scss/themes/_cxd-variables.scss +20 -20
  52. package/sdk/ang-ie11.css +449 -56
  53. package/sdk/ang.css +459 -56
  54. package/sdk/antd-ie11.css +439 -48
  55. package/sdk/antd.css +459 -56
  56. package/sdk/charts.js +13 -13
  57. package/sdk/color-picker.js +69 -65
  58. package/sdk/cropperjs.js +2 -2
  59. package/sdk/cxd-ie11.css +908 -517
  60. package/sdk/cxd.css +567 -176
  61. package/sdk/dark-ie11.css +449 -56
  62. package/sdk/dark.css +459 -56
  63. package/sdk/exceljs.js +1 -1
  64. package/sdk/helper.css.map +1 -1
  65. package/sdk/markdown.js +69 -69
  66. package/sdk/papaparse.js +1 -1
  67. package/sdk/renderers/Form/CityDB.js +1 -1
  68. package/sdk/rest.js +22 -28
  69. package/sdk/rich-text.js +62 -64
  70. package/sdk/sdk-ie11.css +908 -517
  71. package/sdk/sdk.css +567 -176
  72. package/sdk/sdk.js +1145 -1141
  73. package/sdk/thirds/hls.js/hls.js +1 -1
  74. package/sdk/thirds/mpegts.js/mpegts.js +1 -1
  75. package/sdk/tinymce.js +57 -57
  76. package/sdk.zip +0 -0
  77. package/src/components/Badge.tsx +78 -22
  78. package/src/components/Button.tsx +23 -7
  79. package/src/components/RichText.tsx +284 -3
  80. package/src/components/calendar/DaysView.tsx +2 -2
  81. package/src/components/icons.tsx +2 -0
  82. package/src/icons/loading-outline.svg +4 -0
  83. package/src/renderers/Action.tsx +66 -13
  84. package/src/renderers/DropDownButton.tsx +13 -4
  85. package/src/renderers/Nav.tsx +165 -36
  86. package/src/renderers/Page.tsx +1 -1
  87. package/src/utils/helper.ts +1 -0
@@ -10,18 +10,19 @@ var react_1 = (0, tslib_1.__importDefault)(require("react"));
10
10
  var TooltipWrapper_1 = (0, tslib_1.__importDefault)(require("./TooltipWrapper"));
11
11
  var helper_1 = require("../utils/helper");
12
12
  var theme_1 = require("../theme");
13
+ var icons_1 = require("./icons");
13
14
  var Button = /** @class */ (function (_super) {
14
15
  (0, tslib_1.__extends)(Button, _super);
15
16
  function Button() {
16
17
  return _super !== null && _super.apply(this, arguments) || this;
17
18
  }
18
19
  Button.prototype.renderButton = function () {
19
- var _a;
20
- var _b = this.props, level = _b.level, size = _b.size, disabled = _b.disabled, className = _b.className, Comp = _b.componentClass, cx = _b.classnames, children = _b.children, disabledTip = _b.disabledTip, block = _b.block, type = _b.type, active = _b.active, iconOnly = _b.iconOnly, href = _b.href, overrideClassName = _b.overrideClassName, rest = (0, tslib_1.__rest)(_b, ["level", "size", "disabled", "className", "componentClass", "classnames", "children", "disabledTip", "block", "type", "active", "iconOnly", "href", "overrideClassName"]);
20
+ var _a, _b;
21
+ var _c = this.props, level = _c.level, size = _c.size, disabled = _c.disabled, className = _c.className, Comp = _c.componentClass, cx = _c.classnames, children = _c.children, disabledTip = _c.disabledTip, block = _c.block, type = _c.type, active = _c.active, iconOnly = _c.iconOnly, href = _c.href, loading = _c.loading, loadingClassName = _c.loadingClassName, overrideClassName = _c.overrideClassName, rest = (0, tslib_1.__rest)(_c, ["level", "size", "disabled", "className", "componentClass", "classnames", "children", "disabledTip", "block", "type", "active", "iconOnly", "href", "loading", "loadingClassName", "overrideClassName"]);
21
22
  if (href) {
22
23
  Comp = 'a';
23
24
  }
24
- else if (Comp === 'button' && disabled) {
25
+ else if ((Comp === 'button' && disabled) || loading) {
25
26
  Comp = 'div';
26
27
  }
27
28
  return (react_1.default.createElement(Comp, (0, tslib_1.__assign)({ type: Comp === 'input' || Comp === 'button' ? type : undefined }, (0, helper_1.pickEventsProps)(rest), { href: href, className: cx(overrideClassName
@@ -35,17 +36,22 @@ var Button = /** @class */ (function (_super) {
35
36
  _a["Button--iconOnly"] = iconOnly,
36
37
  _a['is-disabled'] = disabled,
37
38
  _a['is-active'] = active,
38
- _a), className), disabled: disabled }), children));
39
+ _a), className), disabled: disabled }),
40
+ loading && !disabled ? (react_1.default.createElement("span", { className: cx(overrideClassName
41
+ ? ''
42
+ : (_b = {}, _b["Button--loading Button--loading--" + level] = level, _b), loadingClassName) },
43
+ react_1.default.createElement(icons_1.Icon, { icon: "loading-outline", className: "icon" }))) : null,
44
+ children));
39
45
  };
40
46
  Button.prototype.render = function () {
41
- var _a = this.props, tooltip = _a.tooltip, placement = _a.placement, tooltipContainer = _a.tooltipContainer, tooltipTrigger = _a.tooltipTrigger, tooltipRootClose = _a.tooltipRootClose, disabled = _a.disabled, disabledTip = _a.disabledTip, cx = _a.classnames;
42
- return (react_1.default.createElement(TooltipWrapper_1.default, { placement: placement, tooltip: disabled ? disabledTip : tooltip, container: tooltipContainer, trigger: tooltipTrigger, rootClose: tooltipRootClose }, this.renderButton()));
47
+ var _a = this.props, tooltip = _a.tooltip, tooltipPlacement = _a.tooltipPlacement, tooltipContainer = _a.tooltipContainer, tooltipTrigger = _a.tooltipTrigger, tooltipRootClose = _a.tooltipRootClose, disabled = _a.disabled, disabledTip = _a.disabledTip, cx = _a.classnames;
48
+ return (react_1.default.createElement(TooltipWrapper_1.default, { placement: tooltipPlacement, tooltip: disabled ? disabledTip : tooltip, container: tooltipContainer, trigger: tooltipTrigger, rootClose: tooltipRootClose }, this.renderButton()));
43
49
  };
44
50
  Button.defaultProps = {
45
51
  componentClass: 'button',
46
52
  level: 'default',
47
53
  type: 'button',
48
- placement: 'top',
54
+ tooltipPlacement: 'top',
49
55
  tooltipTrigger: ['hover', 'focus'],
50
56
  tooltipRootClose: false
51
57
  };
@@ -6,8 +6,8 @@
6
6
  "/src/components/Button.tsx"
7
7
  ],
8
8
  "names": [],
9
- "mappings": ";AAAA;;;GAGG;;;;AAEH,6DAA0B;AAC1B,iFAAwE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AAA,EACd,gBAAgB,sBAAA,EAChB,QAAQ,cAAA,EACR,WAAW,iBAAA,EACC,EAAE,gBACF,CAAC;QAEf,OAAO,CACL,8BAAC,wBAAc,IACb,SAAS,EAAE,gBAAgB,EAC3B,OAAO,EAAE,QAAQ,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,OAAO,EACzC,SAAS,EAAE,gBAAgB,EAC3B,OAAO,EAAE,cAAc,EACvB,SAAS,EAAE,gBAAgB,IAE1B,IAAI,CAAC,YAAY,EAAE,CACL,CAClB,CAAC;IACJ,CAAC;IAzGM,mBAAY,GAQf;QACF,cAAc,EAAE,QAAQ;QACxB,KAAK,EAAE,SAAS;QAChB,IAAI,EAAE,QAAQ;QACd,gBAAgB,EAAE,KAAK;QACvB,cAAc,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC;QAClC,gBAAgB,EAAE,KAAK;KACxB,CAAC;IA2FJ,aAAC;CAAA,AA3GD,CAA4B,eAAK,CAAC,SAAS,GA2G1C;AA3GY,wBAAM;AA6GnB,kBAAe,IAAA,iBAAS,EAAC,MAAM,CAAC,CAAC",
10
10
  "sourcesContent": [
11
- "/**\n * @file Button\n * @author fex\n */\n\nimport React from 'react';\nimport TooltipWrapper, {TooltipObject, Trigger} from './TooltipWrapper';\nimport {pickEventsProps} from '../utils/helper';\nimport {ClassNamesFn, themeable} from '../theme';\n\ninterface ButtonProps extends React.DOMAttributes<HTMLButtonElement> {\n id?: string;\n className?: string;\n href?: string;\n size?: 'xs' | 'sm' | 'md' | 'lg';\n type: 'button' | 'reset' | 'submit';\n level: string; // 'link' | 'primary' | 'secondary' | 'info' | 'success' | 'warning' | 'danger' | 'light' | 'dark' | 'default';\n tooltip?: string | TooltipObject;\n placement: 'top' | 'right' | 'bottom' | 'left';\n tooltipContainer?: any;\n tooltipTrigger: Trigger | Array<Trigger>;\n tooltipRootClose: boolean;\n disabled?: boolean;\n active?: boolean;\n block?: boolean;\n iconOnly?: boolean;\n disabledTip?: string | TooltipObject;\n classPrefix: string;\n classnames: ClassNamesFn;\n componentClass: React.ReactType;\n overrideClassName?: boolean;\n}\n\nexport class Button extends React.Component<ButtonProps> {\n static defaultProps: Pick<\n ButtonProps,\n | 'componentClass'\n | 'level'\n | 'type'\n | 'placement'\n | 'tooltipTrigger'\n | 'tooltipRootClose'\n > = {\n componentClass: 'button',\n level: 'default',\n type: 'button',\n placement: 'top',\n tooltipTrigger: ['hover', 'focus'],\n tooltipRootClose: false\n };\n\n renderButton() {\n let {\n level,\n size,\n disabled,\n className,\n componentClass: Comp,\n classnames: cx,\n children,\n disabledTip,\n block,\n type,\n active,\n iconOnly,\n href,\n overrideClassName,\n ...rest\n } = this.props;\n\n if (href) {\n Comp = 'a';\n } else if (Comp === 'button' && disabled) {\n Comp = 'div';\n }\n\n return (\n <Comp\n type={Comp === 'input' || Comp === 'button' ? type : undefined}\n {...pickEventsProps(rest)}\n href={href}\n className={cx(\n overrideClassName\n ? ''\n : {\n 'Button': true,\n [`Button--${level}`]: level,\n [`Button--${size}`]: size,\n [`Button--block`]: block,\n [`Button--iconOnly`]: iconOnly,\n 'is-disabled': disabled,\n 'is-active': active\n },\n className\n )}\n disabled={disabled}\n >\n {children}\n </Comp>\n );\n }\n\n render() {\n const {\n tooltip,\n placement,\n tooltipContainer,\n tooltipTrigger,\n tooltipRootClose,\n disabled,\n disabledTip,\n classnames: cx\n } = this.props;\n\n return (\n <TooltipWrapper\n placement={placement}\n tooltip={disabled ? disabledTip : tooltip}\n container={tooltipContainer}\n trigger={tooltipTrigger}\n rootClose={tooltipRootClose}\n >\n {this.renderButton()}\n </TooltipWrapper>\n );\n }\n}\n\nexport default themeable(Button);\n"
11
+ "/**\n * @file Button\n * @author fex\n */\n\nimport React from 'react';\nimport TooltipWrapper, {TooltipObject, Trigger} from './TooltipWrapper';\nimport {pickEventsProps} from '../utils/helper';\nimport {ClassNamesFn, themeable} from '../theme';\nimport {Icon} from './icons';\ninterface ButtonProps extends React.DOMAttributes<HTMLButtonElement> {\n id?: string;\n className?: string;\n href?: string;\n size?: 'xs' | 'sm' | 'md' | 'lg';\n type: 'button' | 'reset' | 'submit';\n level: string; // 'link' | 'primary' | 'secondary' | 'info' | 'success' | 'warning' | 'danger' | 'light' | 'dark' | 'default';\n tooltip?: string | TooltipObject;\n tooltipPlacement: 'top' | 'right' | 'bottom' | 'left';\n tooltipContainer?: any;\n tooltipTrigger: Trigger | Array<Trigger>;\n tooltipRootClose: boolean;\n disabled?: boolean;\n active?: boolean;\n block?: boolean;\n iconOnly?: boolean;\n disabledTip?: string | TooltipObject;\n classPrefix: string;\n classnames: ClassNamesFn;\n componentClass: React.ReactType;\n overrideClassName?: boolean;\n loading?: boolean;\n loadingClassName?: string;\n}\n\nexport class Button extends React.Component<ButtonProps> {\n static defaultProps: Pick<\n ButtonProps,\n | 'componentClass'\n | 'level'\n | 'type'\n | 'tooltipPlacement'\n | 'tooltipTrigger'\n | 'tooltipRootClose'\n > = {\n componentClass: 'button',\n level: 'default',\n type: 'button',\n tooltipPlacement: 'top',\n tooltipTrigger: ['hover', 'focus'],\n tooltipRootClose: false\n };\n\n renderButton() {\n let {\n level,\n size,\n disabled,\n className,\n componentClass: Comp,\n classnames: cx,\n children,\n disabledTip,\n block,\n type,\n active,\n iconOnly,\n href,\n loading,\n loadingClassName,\n overrideClassName,\n ...rest\n } = this.props;\n\n if (href) {\n Comp = 'a';\n } else if ((Comp === 'button' && disabled) || loading) {\n Comp = 'div';\n }\n\n return (\n <Comp\n type={Comp === 'input' || Comp === 'button' ? type : undefined}\n {...pickEventsProps(rest)}\n href={href}\n className={cx(\n overrideClassName\n ? ''\n : {\n 'Button': true,\n [`Button--${level}`]: level,\n [`Button--${size}`]: size,\n [`Button--block`]: block,\n [`Button--iconOnly`]: iconOnly,\n 'is-disabled': disabled,\n 'is-active': active\n },\n className\n )}\n disabled={disabled}\n >\n {loading && !disabled ? (\n <span\n className={cx(\n overrideClassName\n ? ''\n : {[`Button--loading Button--loading--${level}`]: level},\n loadingClassName\n )}\n >\n <Icon icon=\"loading-outline\" className=\"icon\" />\n </span>\n ) : null}\n {children}\n </Comp>\n );\n }\n\n render() {\n const {\n tooltip,\n tooltipPlacement,\n tooltipContainer,\n tooltipTrigger,\n tooltipRootClose,\n disabled,\n disabledTip,\n classnames: cx\n } = this.props;\n\n return (\n <TooltipWrapper\n placement={tooltipPlacement}\n tooltip={disabled ? disabledTip : tooltip}\n container={tooltipContainer}\n trigger={tooltipTrigger}\n rootClose={tooltipRootClose}\n >\n {this.renderButton()}\n </TooltipWrapper>\n );\n }\n}\n\nexport default themeable(Button);\n"
12
12
  ]
13
13
  }
@@ -36,7 +36,12 @@ import 'froala-editor/js/plugins/word_paste.min';
36
36
  import 'froala-editor/js/languages/zh_cn.js';
37
37
  import 'froala-editor/css/froala_style.min.css';
38
38
  import 'froala-editor/css/froala_editor.pkgd.min.css';
39
- export default class FroalaEditor extends React.Component<any, any> {
39
+ export interface FroalaEditorComponentProps {
40
+ config: any;
41
+ model: string;
42
+ onModelChange: (value: string) => void;
43
+ }
44
+ export default class extends React.Component<any, any> {
40
45
  constructor(props: any);
41
46
  render(): JSX.Element;
42
47
  }
@@ -8,7 +8,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
8
8
  var tslib_1 = require("tslib");
9
9
  var react_1 = (0, tslib_1.__importDefault)(require("react"));
10
10
  // @ts-ignore
11
- var react_froala_wysiwyg_1 = (0, tslib_1.__importDefault)(require("react-froala-wysiwyg"));
11
+ var froala_editor_1 = (0, tslib_1.__importDefault)(require("froala-editor"));
12
12
  // @ts-ignore
13
13
  var froala_editor_min_js_1 = (0, tslib_1.__importDefault)(require("froala-editor/js/froala_editor.min.js"));
14
14
  require("froala-editor/js/plugins/align.min");
@@ -44,9 +44,244 @@ require("froala-editor/js/languages/zh_cn.js");
44
44
  // Require Editor CSS files.
45
45
  require("froala-editor/css/froala_style.min.css");
46
46
  require("froala-editor/css/froala_editor.pkgd.min.css");
47
- var FroalaEditor = /** @class */ (function (_super) {
48
- (0, tslib_1.__extends)(FroalaEditor, _super);
49
- function FroalaEditor(props) {
47
+ // 代码来源于:https://github.com/froala/react-froala-wysiwyg/blob/master/lib/FroalaEditorFunctionality.jsx
48
+ // 改动原因是model 同步有些问题,有时候不更新,所以基于官方代码改造一下。
49
+ // 目前发现的问题是,如果 model 数据修改,如果此时 editor 还没有初始化完成则不会同步成功
50
+ var FroalaEditorComponent = /** @class */ (function (_super) {
51
+ (0, tslib_1.__extends)(FroalaEditorComponent, _super);
52
+ function FroalaEditorComponent(props) {
53
+ var _this = _super.call(this, props) || this;
54
+ _this.listeningEvents = [];
55
+ _this.element = null;
56
+ _this.editor = null;
57
+ _this.config = {
58
+ immediateReactModelUpdate: false,
59
+ reactIgnoreAttrs: null
60
+ };
61
+ _this.editorInitialized = false;
62
+ _this.INNER_HTML_ATTR = 'innerHTML';
63
+ _this.oldModel = null;
64
+ return _this;
65
+ }
66
+ // After first time render.
67
+ FroalaEditorComponent.prototype.componentDidMount = function () {
68
+ this.createEditor();
69
+ };
70
+ FroalaEditorComponent.prototype.componentWillUnmount = function () {
71
+ this.destroyEditor();
72
+ };
73
+ FroalaEditorComponent.prototype.componentDidUpdate = function () {
74
+ if (JSON.stringify(this.oldModel) == JSON.stringify(this.props.model)) {
75
+ return;
76
+ }
77
+ this.setContent();
78
+ };
79
+ // Return cloned object
80
+ FroalaEditorComponent.prototype.clone = function (item) {
81
+ var me = this;
82
+ if (!item) {
83
+ return item;
84
+ } // null, undefined values check
85
+ var types = [Number, String, Boolean], result;
86
+ // normalizing primitives if someone did new String('aaa'), or new Number('444');
87
+ types.forEach(function (type) {
88
+ if (item instanceof type) {
89
+ result = type(item);
90
+ }
91
+ });
92
+ if (typeof result == 'undefined') {
93
+ if (Object.prototype.toString.call(item) === '[object Array]') {
94
+ result = [];
95
+ item.forEach(function (child, index, array) {
96
+ result[index] = me.clone(child);
97
+ });
98
+ }
99
+ else if (typeof item == 'object') {
100
+ // testing that this is DOM
101
+ if (item.nodeType && typeof item.cloneNode == 'function') {
102
+ result = item.cloneNode(true);
103
+ }
104
+ else if (!item.prototype) {
105
+ // check that this is a literal
106
+ if (item instanceof Date) {
107
+ result = new Date(item);
108
+ }
109
+ else {
110
+ // it is an object literal
111
+ result = {};
112
+ for (var i in item) {
113
+ result[i] = me.clone(item[i]);
114
+ }
115
+ }
116
+ }
117
+ else {
118
+ if (false && item.constructor) {
119
+ result = new item.constructor();
120
+ }
121
+ else {
122
+ result = item;
123
+ }
124
+ }
125
+ }
126
+ else {
127
+ result = item;
128
+ }
129
+ }
130
+ return result;
131
+ };
132
+ FroalaEditorComponent.prototype.createEditor = function () {
133
+ var _this = this;
134
+ if (this.editorInitialized) {
135
+ return;
136
+ }
137
+ this.config = this.clone(this.props.config || this.config);
138
+ this.config = (0, tslib_1.__assign)({}, this.config);
139
+ this.element = this.el;
140
+ if (this.props.model) {
141
+ this.element.innerHTML = this.props.model;
142
+ }
143
+ this.setContent(true);
144
+ // Default initialized.
145
+ this.registerEvent('initialized', this.config.events && this.config.events.initialized);
146
+ // Check if events are set.
147
+ if (!this.config.events)
148
+ this.config.events = {};
149
+ this.config.events.initialized = function () { return _this.initListeners(); };
150
+ this.editor = new froala_editor_1.default(this.element, this.config);
151
+ };
152
+ FroalaEditorComponent.prototype.setContent = function (firstTime) {
153
+ var _this = this;
154
+ if (this.props.model || this.props.model == '') {
155
+ this.oldModel = this.props.model;
156
+ if (this.editorInitialized) {
157
+ this.setNormalTagContent(firstTime);
158
+ }
159
+ else {
160
+ if (!this._initEvents)
161
+ this._initEvents = [];
162
+ this._initEvents.push(function () { return _this.setNormalTagContent(); });
163
+ }
164
+ }
165
+ };
166
+ FroalaEditorComponent.prototype.setNormalTagContent = function (firstTime) {
167
+ var _this = this;
168
+ var self = this;
169
+ function htmlSet() {
170
+ self.editor.html && self.editor.html.set(self.props.model || '');
171
+ if (self.editorInitialized && self.editor.undo) {
172
+ //This will reset the undo stack everytime the model changes externally. Can we fix this?
173
+ self.editor.undo.reset();
174
+ self.editor.undo.saveStep();
175
+ }
176
+ }
177
+ if (firstTime) {
178
+ if (this.config.initOnClick) {
179
+ this.registerEvent('initializationDelayed', function () {
180
+ htmlSet();
181
+ });
182
+ this.registerEvent('initialized', function () {
183
+ _this.editorInitialized = true;
184
+ });
185
+ }
186
+ else {
187
+ this.registerEvent('initialized', function () {
188
+ _this.editorInitialized = true;
189
+ htmlSet();
190
+ });
191
+ }
192
+ }
193
+ else {
194
+ htmlSet();
195
+ }
196
+ };
197
+ FroalaEditorComponent.prototype.destroyEditor = function () {
198
+ if (this.element) {
199
+ this.editor.destroy && this.editor.destroy();
200
+ this.listeningEvents.length = 0;
201
+ this.element = null;
202
+ this.editorInitialized = false;
203
+ }
204
+ };
205
+ FroalaEditorComponent.prototype.getEditor = function () {
206
+ if (this.element) {
207
+ return this.editor;
208
+ }
209
+ return null;
210
+ };
211
+ FroalaEditorComponent.prototype.updateModel = function () {
212
+ if (!this.props.onModelChange) {
213
+ return;
214
+ }
215
+ var modelContent = '';
216
+ if (this.hasSpecialTag) {
217
+ var attributeNodes = this.element.attributes;
218
+ var attrs = {};
219
+ for (var i = 0; i < attributeNodes.length; i++) {
220
+ var attrName = attributeNodes[i].name;
221
+ if (this.config.reactIgnoreAttrs &&
222
+ this.config.reactIgnoreAttrs.indexOf(attrName) != -1) {
223
+ continue;
224
+ }
225
+ attrs[attrName] = attributeNodes[i].value;
226
+ }
227
+ if (this.element.innerHTML) {
228
+ attrs[this.INNER_HTML_ATTR] = this.element.innerHTML;
229
+ }
230
+ modelContent = attrs;
231
+ }
232
+ else {
233
+ var returnedHtml = this.editor.html.get();
234
+ if (typeof returnedHtml === 'string') {
235
+ modelContent = returnedHtml;
236
+ }
237
+ }
238
+ this.oldModel = modelContent;
239
+ this.props.onModelChange(modelContent);
240
+ };
241
+ FroalaEditorComponent.prototype.initListeners = function () {
242
+ var self = this;
243
+ // bind contentChange and keyup event to froalaModel
244
+ this.editor.events.on('contentChanged', function () {
245
+ self.updateModel();
246
+ });
247
+ if (this.config.immediateReactModelUpdate) {
248
+ this.editor.events.on('keyup', function () {
249
+ self.updateModel();
250
+ });
251
+ }
252
+ // Call init events.
253
+ if (this._initEvents) {
254
+ for (var i = 0; i < this._initEvents.length; i++) {
255
+ this._initEvents[i].call(this.editor);
256
+ }
257
+ }
258
+ };
259
+ // register event on jquery editor element
260
+ FroalaEditorComponent.prototype.registerEvent = function (eventName, callback) {
261
+ if (!eventName || !callback) {
262
+ return;
263
+ }
264
+ if (eventName == 'initialized') {
265
+ if (!this._initEvents)
266
+ this._initEvents = [];
267
+ this._initEvents.push(callback);
268
+ }
269
+ else {
270
+ if (!this.config.events) {
271
+ this.config.events = {};
272
+ }
273
+ this.config.events[eventName] = callback;
274
+ }
275
+ };
276
+ FroalaEditorComponent.prototype.render = function () {
277
+ var _this = this;
278
+ return (react_1.default.createElement("textarea", { ref: function (el) { return (_this.el = el); } }, this.props.children));
279
+ };
280
+ return FroalaEditorComponent;
281
+ }(react_1.default.Component));
282
+ var default_1 = /** @class */ (function (_super) {
283
+ (0, tslib_1.__extends)(default_1, _super);
284
+ function default_1(props) {
50
285
  var _this = _super.call(this, props) || this;
51
286
  froala_editor_min_js_1.default.VIDEO_PROVIDERS = [
52
287
  {
@@ -58,10 +293,10 @@ var FroalaEditor = /** @class */ (function (_super) {
58
293
  ];
59
294
  return _this;
60
295
  }
61
- FroalaEditor.prototype.render = function () {
62
- return (react_1.default.createElement(react_froala_wysiwyg_1.default, { tag: "textarea", config: this.props.config, model: this.props.model, onModelChange: this.props.onModelChange }));
296
+ default_1.prototype.render = function () {
297
+ return (react_1.default.createElement(FroalaEditorComponent, { config: this.props.config, model: this.props.model, onModelChange: this.props.onModelChange }));
63
298
  };
64
- return FroalaEditor;
299
+ return default_1;
65
300
  }(react_1.default.Component));
66
- exports.default = FroalaEditor;
301
+ exports.default = default_1;
67
302
  //# sourceMappingURL=./components/RichText.js.map
@@ -6,8 +6,8 @@
6
6
  "/src/components/RichText.ts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;gBACE,UAAU,EAAE,IAAI;gBAChB,SAAS,EAAE,EAAE;gBACb,QAAQ,EAAE,EAAE;gBACZ,IAAI,EAAE,6MAA6M;aACpN;SACF,CAAC;;IACJ,CAAC;IAED,0BAAM,GAAN;QACE,OAAO,CACL,8BAAC,qBAAqB,IACpB,MAAM,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,EACzB,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,EACvB,aAAa,EAAE,IAAI,CAAC,KAAK,CAAC,aAAa,GACvC,CACH,CAAC;IACJ,CAAC;IACH,gBAAC;AAAD,CAAC,AAtBD,CAA6B,eAAK,CAAC,SAAS,GAsB3C",
10
10
  "sourcesContent": [
11
- "/**\n * @file RichText\n * @description\n * @author fex\n */\n\nimport React from 'react';\n\n// @ts-ignore\nimport FroalaEditorComponent from 'react-froala-wysiwyg';\n// @ts-ignore\nimport Froala from 'froala-editor/js/froala_editor.min.js';\nimport 'froala-editor/js/plugins/align.min';\nimport 'froala-editor/js/plugins/colors.min';\nimport 'froala-editor/js/plugins/char_counter.min';\nimport 'froala-editor/js/plugins/code_view.min';\nimport 'froala-editor/js/plugins/draggable.min';\nimport 'froala-editor/js/plugins/entities.min';\nimport 'froala-editor/js/plugins/font_family.min';\nimport 'froala-editor/js/plugins/font_size.min';\nimport 'froala-editor/js/plugins/forms.min';\nimport 'froala-editor/js/plugins/fullscreen.min';\nimport 'froala-editor/js/plugins/help.min';\nimport 'froala-editor/js/plugins/image.min';\nimport 'froala-editor/js/plugins/inline_class.min';\nimport 'froala-editor/js/plugins/inline_style.min';\nimport 'froala-editor/js/plugins/line_breaker.min';\nimport 'froala-editor/js/plugins/line_height.min';\nimport 'froala-editor/js/plugins/link.min';\nimport 'froala-editor/js/plugins/lists.min';\nimport 'froala-editor/js/plugins/paragraph_format.min';\nimport 'froala-editor/js/plugins/paragraph_style.min';\nimport 'froala-editor/js/plugins/print.min';\nimport 'froala-editor/js/plugins/quick_insert.min';\nimport 'froala-editor/js/plugins/quote.min';\nimport 'froala-editor/js/plugins/save.min';\nimport 'froala-editor/js/plugins/special_characters.min';\nimport 'froala-editor/js/plugins/table.min';\nimport 'froala-editor/js/plugins/url.min';\nimport 'froala-editor/js/plugins/video.min';\nimport 'froala-editor/js/plugins/word_paste.min';\nimport 'froala-editor/js/languages/zh_cn.js';\n\n// Require Editor CSS files.\nimport 'froala-editor/css/froala_style.min.css';\nimport 'froala-editor/css/froala_editor.pkgd.min.css';\n\nexport default class FroalaEditor extends React.Component<any, any> {\n constructor(props: any) {\n super(props);\n Froala.VIDEO_PROVIDERS = [\n {\n test_regex: /.*/,\n url_regex: '',\n url_text: '',\n html: '<span class=\"fr-video fr-dvb fr-draggable\" contenteditable=\"false\" draggable=\"true\"><video class=\"fr-draggable\" controls=\"\" data-msg=\"ok\" data-status=\"0\" src=\"{url}\" style=\"width: 600px;\"></video></span>'\n }\n ];\n }\n\n render() {\n return (\n <FroalaEditorComponent\n tag=\"textarea\"\n config={this.props.config}\n model={this.props.model}\n onModelChange={this.props.onModelChange}\n />\n );\n }\n}\n"
11
+ "/**\n * @file RichText\n * @description\n * @author fex\n */\n\nimport React from 'react';\n\n// @ts-ignore\nimport FroalaEditor from 'froala-editor';\n// @ts-ignore\nimport Froala from 'froala-editor/js/froala_editor.min.js';\nimport 'froala-editor/js/plugins/align.min';\nimport 'froala-editor/js/plugins/colors.min';\nimport 'froala-editor/js/plugins/char_counter.min';\nimport 'froala-editor/js/plugins/code_view.min';\nimport 'froala-editor/js/plugins/draggable.min';\nimport 'froala-editor/js/plugins/entities.min';\nimport 'froala-editor/js/plugins/font_family.min';\nimport 'froala-editor/js/plugins/font_size.min';\nimport 'froala-editor/js/plugins/forms.min';\nimport 'froala-editor/js/plugins/fullscreen.min';\nimport 'froala-editor/js/plugins/help.min';\nimport 'froala-editor/js/plugins/image.min';\nimport 'froala-editor/js/plugins/inline_class.min';\nimport 'froala-editor/js/plugins/inline_style.min';\nimport 'froala-editor/js/plugins/line_breaker.min';\nimport 'froala-editor/js/plugins/line_height.min';\nimport 'froala-editor/js/plugins/link.min';\nimport 'froala-editor/js/plugins/lists.min';\nimport 'froala-editor/js/plugins/paragraph_format.min';\nimport 'froala-editor/js/plugins/paragraph_style.min';\nimport 'froala-editor/js/plugins/print.min';\nimport 'froala-editor/js/plugins/quick_insert.min';\nimport 'froala-editor/js/plugins/quote.min';\nimport 'froala-editor/js/plugins/save.min';\nimport 'froala-editor/js/plugins/special_characters.min';\nimport 'froala-editor/js/plugins/table.min';\nimport 'froala-editor/js/plugins/url.min';\nimport 'froala-editor/js/plugins/video.min';\nimport 'froala-editor/js/plugins/word_paste.min';\nimport 'froala-editor/js/languages/zh_cn.js';\n\n// Require Editor CSS files.\nimport 'froala-editor/css/froala_style.min.css';\nimport 'froala-editor/css/froala_editor.pkgd.min.css';\n\nexport interface FroalaEditorComponentProps {\n config: any;\n model: string;\n onModelChange: (value: string) => void;\n}\n\n// 代码来源于:https://github.com/froala/react-froala-wysiwyg/blob/master/lib/FroalaEditorFunctionality.jsx\n// 改动原因是model 同步有些问题,有时候不更新,所以基于官方代码改造一下。\n// 目前发现的问题是,如果 model 数据修改,如果此时 editor 还没有初始化完成则不会同步成功\nclass FroalaEditorComponent extends React.Component<FroalaEditorComponentProps> {\n listeningEvents: any;\n element: any;\n editor: any;\n config: any;\n editorInitialized: any;\n INNER_HTML_ATTR: any;\n hasSpecialTag: any;\n oldModel: any;\n el: any;\n _initEvents: any;\n\n constructor(props: FroalaEditorComponentProps) {\n super(props);\n\n this.listeningEvents = [];\n this.element = null;\n this.editor = null;\n this.config = {\n immediateReactModelUpdate: false,\n reactIgnoreAttrs: null\n };\n\n this.editorInitialized = false;\n this.INNER_HTML_ATTR = 'innerHTML';\n\n this.oldModel = null;\n }\n\n // After first time render.\n componentDidMount() {\n this.createEditor();\n }\n\n componentWillUnmount() {\n this.destroyEditor();\n }\n\n componentDidUpdate() {\n if (JSON.stringify(this.oldModel) == JSON.stringify(this.props.model)) {\n return;\n }\n\n this.setContent();\n }\n\n // Return cloned object\n clone(item: any) {\n const me = this;\n if (!item) {\n return item;\n } // null, undefined values check\n\n let types = [Number, String, Boolean],\n result: any;\n\n // normalizing primitives if someone did new String('aaa'), or new Number('444');\n types.forEach(function (type) {\n if (item instanceof type) {\n result = type(item);\n }\n });\n\n if (typeof result == 'undefined') {\n if (Object.prototype.toString.call(item) === '[object Array]') {\n result = [];\n item.forEach(function (child: any, index: number, array: Array<any>) {\n result[index] = me.clone(child);\n });\n } else if (typeof item == 'object') {\n // testing that this is DOM\n if (item.nodeType && typeof item.cloneNode == 'function') {\n result = item.cloneNode(true);\n } else if (!item.prototype) {\n // check that this is a literal\n if (item instanceof Date) {\n result = new Date(item);\n } else {\n // it is an object literal\n result = {};\n for (var i in item) {\n result[i] = me.clone(item[i]);\n }\n }\n } else {\n if (false && item.constructor) {\n result = new item.constructor();\n } else {\n result = item;\n }\n }\n } else {\n result = item;\n }\n }\n return result;\n }\n\n createEditor() {\n if (this.editorInitialized) {\n return;\n }\n\n this.config = this.clone(this.props.config || this.config);\n this.config = {...this.config};\n\n this.element = this.el;\n\n if (this.props.model) {\n this.element.innerHTML = this.props.model;\n }\n\n this.setContent(true);\n\n // Default initialized.\n this.registerEvent(\n 'initialized',\n this.config.events && this.config.events.initialized\n );\n\n // Check if events are set.\n if (!this.config.events) this.config.events = {};\n this.config.events.initialized = () => this.initListeners();\n\n this.editor = new FroalaEditor(this.element, this.config);\n }\n\n setContent(firstTime?: boolean) {\n if (this.props.model || this.props.model == '') {\n this.oldModel = this.props.model;\n\n if (this.editorInitialized) {\n this.setNormalTagContent(firstTime);\n } else {\n if (!this._initEvents) this._initEvents = [];\n this._initEvents.push(() => this.setNormalTagContent());\n }\n }\n }\n\n setNormalTagContent(firstTime?: boolean) {\n let self = this;\n\n function htmlSet() {\n self.editor.html && self.editor.html.set(self.props.model || '');\n if (self.editorInitialized && self.editor.undo) {\n //This will reset the undo stack everytime the model changes externally. Can we fix this?\n self.editor.undo.reset();\n self.editor.undo.saveStep();\n }\n }\n\n if (firstTime) {\n if (this.config.initOnClick) {\n this.registerEvent('initializationDelayed', () => {\n htmlSet();\n });\n\n this.registerEvent('initialized', () => {\n this.editorInitialized = true;\n });\n } else {\n this.registerEvent('initialized', () => {\n this.editorInitialized = true;\n htmlSet();\n });\n }\n } else {\n htmlSet();\n }\n }\n\n destroyEditor() {\n if (this.element) {\n this.editor.destroy && this.editor.destroy();\n this.listeningEvents.length = 0;\n this.element = null;\n this.editorInitialized = false;\n }\n }\n\n getEditor() {\n if (this.element) {\n return this.editor;\n }\n\n return null;\n }\n\n updateModel() {\n if (!this.props.onModelChange) {\n return;\n }\n\n let modelContent = '';\n\n if (this.hasSpecialTag) {\n let attributeNodes = this.element.attributes;\n let attrs: any = {};\n\n for (let i = 0; i < attributeNodes.length; i++) {\n let attrName = attributeNodes[i].name;\n if (\n this.config.reactIgnoreAttrs &&\n this.config.reactIgnoreAttrs.indexOf(attrName) != -1\n ) {\n continue;\n }\n attrs[attrName] = attributeNodes[i].value;\n }\n\n if (this.element.innerHTML) {\n attrs[this.INNER_HTML_ATTR] = this.element.innerHTML;\n }\n\n modelContent = attrs;\n } else {\n let returnedHtml = this.editor.html.get();\n if (typeof returnedHtml === 'string') {\n modelContent = returnedHtml;\n }\n }\n\n this.oldModel = modelContent;\n this.props.onModelChange(modelContent);\n }\n\n initListeners() {\n let self = this;\n\n // bind contentChange and keyup event to froalaModel\n this.editor.events.on('contentChanged', function () {\n self.updateModel();\n });\n if (this.config.immediateReactModelUpdate) {\n this.editor.events.on('keyup', function () {\n self.updateModel();\n });\n }\n\n // Call init events.\n if (this._initEvents) {\n for (let i = 0; i < this._initEvents.length; i++) {\n this._initEvents[i].call(this.editor);\n }\n }\n }\n\n // register event on jquery editor element\n registerEvent(eventName: string, callback: Function) {\n if (!eventName || !callback) {\n return;\n }\n\n if (eventName == 'initialized') {\n if (!this._initEvents) this._initEvents = [];\n this._initEvents.push(callback);\n } else {\n if (!this.config.events) {\n this.config.events = {};\n }\n\n this.config.events[eventName] = callback;\n }\n }\n\n render() {\n return (\n <textarea ref={el => (this.el = el)}>{this.props.children}</textarea>\n );\n }\n}\n\nexport default class extends React.Component<any, any> {\n constructor(props: any) {\n super(props);\n Froala.VIDEO_PROVIDERS = [\n {\n test_regex: /.*/,\n url_regex: '',\n url_text: '',\n html: '<span class=\"fr-video fr-dvb fr-draggable\" contenteditable=\"false\" draggable=\"true\"><video class=\"fr-draggable\" controls=\"\" data-msg=\"ok\" data-status=\"0\" src=\"{url}\" style=\"width: 600px;\"></video></span>'\n }\n ];\n }\n\n render() {\n return (\n <FroalaEditorComponent\n config={this.props.config}\n model={this.props.model}\n onModelChange={this.props.onModelChange}\n />\n );\n }\n}\n"
12
12
  ]
13
13
  }
@@ -53,8 +53,8 @@ var CustomDaysView = /** @class */ (function (_super) {
53
53
  _this.confirm = function () {
54
54
  var _a, _b;
55
55
  var date = (_this.props.selectedDate || _this.props.viewDate).clone();
56
- // 如果 minDate 是可用的,且比当前日期早,则用 minDate
57
- if (((_a = _this.props.minDate) === null || _a === void 0 ? void 0 : _a.isValid()) && ((_b = _this.props.minDate) === null || _b === void 0 ? void 0 : _b.isBefore(date))) {
56
+ // 如果 minDate 是可用的,且比当前日期晚,则用 minDate
57
+ if (((_a = _this.props.minDate) === null || _a === void 0 ? void 0 : _a.isValid()) && ((_b = _this.props.minDate) === null || _b === void 0 ? void 0 : _b.isAfter(date))) {
58
58
  date = _this.props.minDate.clone();
59
59
  }
60
60
  _this.props.setDateTimeState({
@@ -6,8 +6,8 @@
6
6
  "/src/components/calendar/DaysView.tsx"
7
7
  ],
8
8
  "names": [],
9
- "mappings": ";;;;AACA,aAAa;AACb,sFAAmD;AACnD,6DAA0B;AAC1B,qEAAkC;AAClC,uCAAqD;AAsCrD;IAAoC,+CAAQ;IAA5C;QAAA,qEAkSC;QA7RC,wBAAkB,GAAG,UAAC,KAA4B;YAChD,eAAe;YACf,IAAI,KAAI,CAAC,KAA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I,aAAa,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAErC,OAAO,CACL,uCAAK,SAAS,EAAC,SAAS;YACtB,6CAAQ,aAAa,CAAS,CAC1B,CACP,CAAC;IACJ,CAAC;IACH,qBAAC;AAAD,CAAC,AAlSD,CAAoC,kBAAQ,GAkS3C;AAlSY,wCAAc;AAoS3B,kBAAe,IAAA,mBAAU,EACvB,cAAkE,CACnE,CAAC",
10
10
  "sourcesContent": [
11
- "import moment from 'moment';\n// @ts-ignore\nimport DaysView from 'react-datetime/src/DaysView';\nimport React from 'react';\nimport Downshift from 'downshift';\nimport {LocaleProps, localeable} from '../../locale';\nimport {ClassNamesFn} from '../../theme';\n\ninterface CustomDaysViewProps extends LocaleProps {\n classPrefix?: string;\n prevIcon?: string;\n nextIcon?: string;\n viewDate: moment.Moment;\n selectedDate: moment.Moment;\n minDate: moment.Moment;\n timeFormat: string;\n requiredConfirm?: boolean;\n isEndDate?: boolean;\n renderDay?: Function;\n onClose?: () => void;\n onChange: (value: moment.Moment) => void;\n setDateTimeState: (state: any) => void;\n setTime: (type: string, amount: number) => void;\n subtractTime: (\n amount: number,\n type: string,\n toSelected?: moment.Moment\n ) => () => void;\n addTime: (\n amount: number,\n type: string,\n toSelected?: moment.Moment\n ) => () => void;\n isValidDate?: (\n currentDate: moment.Moment,\n selected?: moment.Moment\n ) => boolean;\n showView: (view: string) => () => void;\n updateSelectedDate: (event: React.MouseEvent<any>, close?: boolean) => void;\n handleClickOutside: () => void;\n classnames: ClassNamesFn;\n}\n\nexport class CustomDaysView extends DaysView {\n props: CustomDaysViewProps;\n getDaysOfWeek: (locale: any) => any;\n renderDays: () => JSX.Element;\n\n updateSelectedDate = (event: React.MouseEvent<any>) => {\n // need confirm\n if (this.props.requiredConfirm) {\n const viewDate = this.props.viewDate.clone();\n const currentDate = this.props.selectedDate || viewDate;\n\n const target = event.target as HTMLElement;\n let modifier = 0;\n\n if (~target.className.indexOf('rdtNew')) {\n modifier = 1;\n }\n if (~target.className.indexOf('rdtOld')) {\n modifier = -1;\n }\n\n viewDate\n .month(viewDate.month() + modifier)\n .date(parseInt(target.getAttribute('data-value') as string, 10))\n .hours(currentDate.hours())\n .minutes(currentDate.minutes())\n .seconds(currentDate.seconds())\n .milliseconds(currentDate.milliseconds());\n\n this.props.setDateTimeState({\n viewDate,\n selectedDate: viewDate.clone()\n });\n return;\n }\n\n this.props.updateSelectedDate(event, true);\n };\n\n setTime = (\n type: 'hours' | 'minutes' | 'seconds' | 'milliseconds',\n value: number\n ) => {\n const date = (this.props.selectedDate || this.props.viewDate).clone();\n date[type](value);\n\n this.props.setDateTimeState({\n viewDate: date.clone(),\n selectedDate: date.clone()\n });\n\n if (!this.props.requiredConfirm) {\n this.props.onChange(date);\n }\n };\n\n confirm = () => {\n let date = (this.props.selectedDate || this.props.viewDate).clone();\n\n // 如果 minDate 是可用的,且比当前日期早,则用 minDate\n if (this.props.minDate?.isValid() && this.props.minDate?.isBefore(date)) {\n date = this.props.minDate.clone();\n }\n\n this.props.setDateTimeState({\n selectedDate: date\n });\n this.props.onChange(date);\n this.props.onClose && this.props.onClose();\n };\n\n cancel = () => {\n this.props.onClose && this.props.onClose();\n };\n\n renderDay = (props: any, currentDate: moment.Moment) => {\n return <td {...props}>{currentDate.date()}</td>;\n };\n\n computedTimeOptions(total: number) {\n const times: {label: string; value: string}[] = [];\n\n for (let t = 0; t < total; t++) {\n const label = t < 10 ? `0${t}` : `${t}`;\n times.push({label, value: label});\n }\n\n return times;\n }\n\n renderTimes = () => {\n const {\n timeFormat,\n selectedDate,\n viewDate,\n isEndDate,\n classnames: cx\n } = this.props;\n\n const date = selectedDate || (isEndDate ? viewDate.endOf('day') : viewDate);\n const inputs: Array<React.ReactNode> = [];\n\n timeFormat.split(':').forEach((format, i) => {\n const type = /h/i.test(format)\n ? 'hours'\n : /m/.test(format)\n ? 'minutes'\n : /s/.test(format)\n ? 'seconds'\n : '';\n if (type) {\n const min = 0;\n const max = type === 'hours' ? 23 : 59;\n const hours = this.computedTimeOptions(24);\n const times = this.computedTimeOptions(60);\n const options = type === 'hours' ? hours : times;\n const formatMap = {\n hours: 'HH',\n minutes: 'mm',\n seconds: 'ss'\n };\n\n inputs.push(\n <Downshift\n key={i + 'input'}\n inputValue={date.format(formatMap[type])}\n >\n {({isOpen, getInputProps, openMenu, closeMenu}) => {\n const inputProps = getInputProps({\n onFocus: () => openMenu(),\n onChange: (e: any) =>\n this.setTime(\n type,\n Math.max(\n min,\n Math.min(\n parseInt(\n e.currentTarget.value.replace(/\\D/g, ''),\n 10\n ) || 0,\n max\n )\n )\n )\n });\n return (\n <div className={cx('CalendarInputWrapper')}>\n <input\n type=\"text\"\n value={date.format(formatMap[type])}\n className={cx('CalendarInput')}\n min={min}\n max={max}\n {...inputProps}\n />\n {isOpen ? (\n <div className={cx('CalendarInput-sugs')}>\n {options.map(option => {\n return (\n <div\n key={option.value}\n className={cx('CalendarInput-sugsItem', {\n 'is-highlight':\n option.value === date.format(formatMap[type])\n })}\n onClick={() => {\n this.setTime(type, parseInt(option.value, 10));\n closeMenu();\n }}\n >\n {option.value}\n </div>\n );\n })}\n </div>\n ) : null}\n </div>\n );\n }}\n </Downshift>\n );\n\n inputs.push(<span key={i + 'divider'}>:</span>);\n }\n });\n\n inputs.length && inputs.pop();\n\n return <div>{inputs}</div>;\n };\n\n renderFooter = () => {\n if (!this.props.timeFormat && !this.props.requiredConfirm) {\n return null;\n }\n\n const {translate: __, classnames: cx} = this.props;\n\n return (\n <tfoot key=\"tf\">\n <tr>\n <td colSpan={7}>\n {this.props.timeFormat ? this.renderTimes() : null}\n {this.props.requiredConfirm ? (\n <div key=\"button\" className=\"rdtActions\">\n <a\n className={cx('Button', 'Button--default')}\n onClick={this.cancel}\n >\n {__('cancel')}\n </a>\n <a\n className={cx('Button', 'Button--primary', 'm-l-sm')}\n onClick={this.confirm}\n >\n {__('confirm')}\n </a>\n </div>\n ) : null}\n </td>\n </tr>\n </tfoot>\n );\n };\n\n render() {\n const footer = this.renderFooter();\n const date = this.props.viewDate;\n const locale = date.localeData();\n const __ = this.props.translate;\n\n const tableChildren = [\n <thead key=\"th\">\n <tr>\n <th colSpan={7}>\n <div className=\"rdtHeader\">\n <a\n className=\"rdtPrev\"\n onClick={this.props.subtractTime(1, 'years')}\n >\n &laquo;\n </a>\n <a\n className=\"rdtPrev\"\n onClick={this.props.subtractTime(1, 'months')}\n >\n &lsaquo;\n </a>\n\n <div className=\"rdtCenter\">\n <a className=\"rdtSwitch\" onClick={this.props.showView('years')}>\n {date.format(__('dateformat.year'))}\n </a>\n <a\n className=\"rdtSwitch\"\n onClick={this.props.showView('months')}\n >\n {date.format(__('MMM'))}\n </a>\n </div>\n\n <a className=\"rdtNext\" onClick={this.props.addTime(1, 'months')}>\n &rsaquo;\n </a>\n <a className=\"rdtNext\" onClick={this.props.addTime(1, 'years')}>\n &raquo;\n </a>\n </div>\n </th>\n </tr>\n <tr>\n {this.getDaysOfWeek(locale).map((day: number, index: number) => (\n <th key={day + index} className=\"dow\">\n {day}\n </th>\n ))}\n </tr>\n </thead>,\n\n <tbody key=\"tb\">{this.renderDays()}</tbody>\n ];\n\n footer && tableChildren.push(footer);\n\n return (\n <div className=\"rdtDays\">\n <table>{tableChildren}</table>\n </div>\n );\n }\n}\n\nexport default localeable(\n CustomDaysView as any as React.ComponentClass<CustomDaysViewProps>\n);\n"
11
+ "import moment from 'moment';\n// @ts-ignore\nimport DaysView from 'react-datetime/src/DaysView';\nimport React from 'react';\nimport Downshift from 'downshift';\nimport {LocaleProps, localeable} from '../../locale';\nimport {ClassNamesFn} from '../../theme';\n\ninterface CustomDaysViewProps extends LocaleProps {\n classPrefix?: string;\n prevIcon?: string;\n nextIcon?: string;\n viewDate: moment.Moment;\n selectedDate: moment.Moment;\n minDate: moment.Moment;\n timeFormat: string;\n requiredConfirm?: boolean;\n isEndDate?: boolean;\n renderDay?: Function;\n onClose?: () => void;\n onChange: (value: moment.Moment) => void;\n setDateTimeState: (state: any) => void;\n setTime: (type: string, amount: number) => void;\n subtractTime: (\n amount: number,\n type: string,\n toSelected?: moment.Moment\n ) => () => void;\n addTime: (\n amount: number,\n type: string,\n toSelected?: moment.Moment\n ) => () => void;\n isValidDate?: (\n currentDate: moment.Moment,\n selected?: moment.Moment\n ) => boolean;\n showView: (view: string) => () => void;\n updateSelectedDate: (event: React.MouseEvent<any>, close?: boolean) => void;\n handleClickOutside: () => void;\n classnames: ClassNamesFn;\n}\n\nexport class CustomDaysView extends DaysView {\n props: CustomDaysViewProps;\n getDaysOfWeek: (locale: any) => any;\n renderDays: () => JSX.Element;\n\n updateSelectedDate = (event: React.MouseEvent<any>) => {\n // need confirm\n if (this.props.requiredConfirm) {\n const viewDate = this.props.viewDate.clone();\n const currentDate = this.props.selectedDate || viewDate;\n\n const target = event.target as HTMLElement;\n let modifier = 0;\n\n if (~target.className.indexOf('rdtNew')) {\n modifier = 1;\n }\n if (~target.className.indexOf('rdtOld')) {\n modifier = -1;\n }\n\n viewDate\n .month(viewDate.month() + modifier)\n .date(parseInt(target.getAttribute('data-value') as string, 10))\n .hours(currentDate.hours())\n .minutes(currentDate.minutes())\n .seconds(currentDate.seconds())\n .milliseconds(currentDate.milliseconds());\n\n this.props.setDateTimeState({\n viewDate,\n selectedDate: viewDate.clone()\n });\n return;\n }\n\n this.props.updateSelectedDate(event, true);\n };\n\n setTime = (\n type: 'hours' | 'minutes' | 'seconds' | 'milliseconds',\n value: number\n ) => {\n const date = (this.props.selectedDate || this.props.viewDate).clone();\n date[type](value);\n\n this.props.setDateTimeState({\n viewDate: date.clone(),\n selectedDate: date.clone()\n });\n\n if (!this.props.requiredConfirm) {\n this.props.onChange(date);\n }\n };\n\n confirm = () => {\n let date = (this.props.selectedDate || this.props.viewDate).clone();\n\n // 如果 minDate 是可用的,且比当前日期晚,则用 minDate\n if (this.props.minDate?.isValid() && this.props.minDate?.isAfter(date)) {\n date = this.props.minDate.clone();\n }\n\n this.props.setDateTimeState({\n selectedDate: date\n });\n this.props.onChange(date);\n this.props.onClose && this.props.onClose();\n };\n\n cancel = () => {\n this.props.onClose && this.props.onClose();\n };\n\n renderDay = (props: any, currentDate: moment.Moment) => {\n return <td {...props}>{currentDate.date()}</td>;\n };\n\n computedTimeOptions(total: number) {\n const times: {label: string; value: string}[] = [];\n\n for (let t = 0; t < total; t++) {\n const label = t < 10 ? `0${t}` : `${t}`;\n times.push({label, value: label});\n }\n\n return times;\n }\n\n renderTimes = () => {\n const {\n timeFormat,\n selectedDate,\n viewDate,\n isEndDate,\n classnames: cx\n } = this.props;\n\n const date = selectedDate || (isEndDate ? viewDate.endOf('day') : viewDate);\n const inputs: Array<React.ReactNode> = [];\n\n timeFormat.split(':').forEach((format, i) => {\n const type = /h/i.test(format)\n ? 'hours'\n : /m/.test(format)\n ? 'minutes'\n : /s/.test(format)\n ? 'seconds'\n : '';\n if (type) {\n const min = 0;\n const max = type === 'hours' ? 23 : 59;\n const hours = this.computedTimeOptions(24);\n const times = this.computedTimeOptions(60);\n const options = type === 'hours' ? hours : times;\n const formatMap = {\n hours: 'HH',\n minutes: 'mm',\n seconds: 'ss'\n };\n\n inputs.push(\n <Downshift\n key={i + 'input'}\n inputValue={date.format(formatMap[type])}\n >\n {({isOpen, getInputProps, openMenu, closeMenu}) => {\n const inputProps = getInputProps({\n onFocus: () => openMenu(),\n onChange: (e: any) =>\n this.setTime(\n type,\n Math.max(\n min,\n Math.min(\n parseInt(\n e.currentTarget.value.replace(/\\D/g, ''),\n 10\n ) || 0,\n max\n )\n )\n )\n });\n return (\n <div className={cx('CalendarInputWrapper')}>\n <input\n type=\"text\"\n value={date.format(formatMap[type])}\n className={cx('CalendarInput')}\n min={min}\n max={max}\n {...inputProps}\n />\n {isOpen ? (\n <div className={cx('CalendarInput-sugs')}>\n {options.map(option => {\n return (\n <div\n key={option.value}\n className={cx('CalendarInput-sugsItem', {\n 'is-highlight':\n option.value === date.format(formatMap[type])\n })}\n onClick={() => {\n this.setTime(type, parseInt(option.value, 10));\n closeMenu();\n }}\n >\n {option.value}\n </div>\n );\n })}\n </div>\n ) : null}\n </div>\n );\n }}\n </Downshift>\n );\n\n inputs.push(<span key={i + 'divider'}>:</span>);\n }\n });\n\n inputs.length && inputs.pop();\n\n return <div>{inputs}</div>;\n };\n\n renderFooter = () => {\n if (!this.props.timeFormat && !this.props.requiredConfirm) {\n return null;\n }\n\n const {translate: __, classnames: cx} = this.props;\n\n return (\n <tfoot key=\"tf\">\n <tr>\n <td colSpan={7}>\n {this.props.timeFormat ? this.renderTimes() : null}\n {this.props.requiredConfirm ? (\n <div key=\"button\" className=\"rdtActions\">\n <a\n className={cx('Button', 'Button--default')}\n onClick={this.cancel}\n >\n {__('cancel')}\n </a>\n <a\n className={cx('Button', 'Button--primary', 'm-l-sm')}\n onClick={this.confirm}\n >\n {__('confirm')}\n </a>\n </div>\n ) : null}\n </td>\n </tr>\n </tfoot>\n );\n };\n\n render() {\n const footer = this.renderFooter();\n const date = this.props.viewDate;\n const locale = date.localeData();\n const __ = this.props.translate;\n\n const tableChildren = [\n <thead key=\"th\">\n <tr>\n <th colSpan={7}>\n <div className=\"rdtHeader\">\n <a\n className=\"rdtPrev\"\n onClick={this.props.subtractTime(1, 'years')}\n >\n &laquo;\n </a>\n <a\n className=\"rdtPrev\"\n onClick={this.props.subtractTime(1, 'months')}\n >\n &lsaquo;\n </a>\n\n <div className=\"rdtCenter\">\n <a className=\"rdtSwitch\" onClick={this.props.showView('years')}>\n {date.format(__('dateformat.year'))}\n </a>\n <a\n className=\"rdtSwitch\"\n onClick={this.props.showView('months')}\n >\n {date.format(__('MMM'))}\n </a>\n </div>\n\n <a className=\"rdtNext\" onClick={this.props.addTime(1, 'months')}>\n &rsaquo;\n </a>\n <a className=\"rdtNext\" onClick={this.props.addTime(1, 'years')}>\n &raquo;\n </a>\n </div>\n </th>\n </tr>\n <tr>\n {this.getDaysOfWeek(locale).map((day: number, index: number) => (\n <th key={day + index} className=\"dow\">\n {day}\n </th>\n ))}\n </tr>\n </thead>,\n\n <tbody key=\"tb\">{this.renderDays()}</tbody>\n ];\n\n footer && tableChildren.push(footer);\n\n return (\n <div className=\"rdtDays\">\n <table>{tableChildren}</table>\n </div>\n );\n }\n}\n\nexport default localeable(\n CustomDaysView as any as React.ComponentClass<CustomDaysViewProps>\n);\n"
12
12
  ]
13
13
  }
@@ -78,6 +78,7 @@ var ellipsis_v_svg_1 = (0, tslib_1.__importDefault)(require("../icons/ellipsis-v
78
78
  var expand_alt_svg_1 = (0, tslib_1.__importDefault)(require("../icons/expand-alt.js"));
79
79
  var compress_alt_svg_1 = (0, tslib_1.__importDefault)(require("../icons/compress-alt.js"));
80
80
  var transparent_svg_1 = (0, tslib_1.__importDefault)(require("../icons/transparent.js"));
81
+ var loading_outline_svg_1 = (0, tslib_1.__importDefault)(require("../icons/loading-outline.js"));
81
82
  // 兼容原来的用法,后续不直接试用。
82
83
  exports.closeIcon = react_1.default.createElement(close_svg_1.default, null);
83
84
  exports.unDoIcon = react_1.default.createElement(undo_svg_1.default, null);
@@ -161,6 +162,7 @@ registerIcon('ellipsis-v', ellipsis_v_svg_1.default);
161
162
  registerIcon('expand-alt', expand_alt_svg_1.default);
162
163
  registerIcon('compress-alt', compress_alt_svg_1.default);
163
164
  registerIcon('transparent', transparent_svg_1.default);
165
+ registerIcon('loading-outline', loading_outline_svg_1.default);
164
166
  function Icon(_a) {
165
167
  var icon = _a.icon, className = _a.className, rest = (0, tslib_1.__rest)(_a, ["icon", "className"]);
166
168
  // jest 运行环境下,把指定的 icon 也输出到 snapshot 中。