ronds-metadata 1.3.55 → 1.3.57

Sign up to get free protection for your applications and to get access to all the features.
Files changed (121) hide show
  1. package/README.md +25 -25
  2. package/es/api/index.js +6 -4
  3. package/es/comps/CodeEdit/index.d.ts +2 -1
  4. package/es/comps/DataMine/Line.d.ts +2 -1
  5. package/es/comps/DataMine/Line.js +0 -1
  6. package/es/comps/DataMine/index.d.ts +2 -1
  7. package/es/comps/DynamicPorts/comps/ContextMenu.less +8 -8
  8. package/es/comps/DynamicPorts/comps/DragNode.d.ts +1 -1
  9. package/es/comps/DynamicPorts/comps/GraphHandler/index.less +39 -39
  10. package/es/comps/DynamicPorts/comps/NodeElementForm.d.ts +2 -1
  11. package/es/comps/DynamicPorts/comps/NodeElementNormal.d.ts +2 -1
  12. package/es/comps/DynamicPorts/comps/contextMenu/EdgeContextMenu/index.less +5 -5
  13. package/es/comps/DynamicPorts/comps/contextMenu/GraphContextMenu/index.less +40 -40
  14. package/es/comps/DynamicPorts/comps/contextMenu/NodeContextMenu/index.d.ts +2 -1
  15. package/es/comps/DynamicPorts/comps/contextMenu/NodeContextMenu/index.less +42 -42
  16. package/es/comps/DynamicPorts/comps/shape/edge.js +7 -7
  17. package/es/comps/DynamicPorts/comps/shape/edge.less +8 -8
  18. package/es/comps/DynamicPorts/comps/shape/node.js +8 -9
  19. package/es/comps/DynamicPorts/graph.js +5 -4
  20. package/es/comps/DynamicPorts/index.d.ts +2 -1
  21. package/es/comps/DynamicPorts/index.less +307 -307
  22. package/es/comps/Editable/DataCell/ButtonCell.d.ts +1 -1
  23. package/es/comps/Editable/DataCell/ColorPicker.d.ts +1 -1
  24. package/es/comps/Editable/DataCell/Input.d.ts +1 -1
  25. package/es/comps/Editable/DataCell/Number.d.ts +1 -1
  26. package/es/comps/Editable/DataCell/Select.d.ts +1 -1
  27. package/es/comps/Editable/DataCell/Switch.d.ts +1 -1
  28. package/es/comps/Editable/DataCell/TreeSelect.d.ts +1 -1
  29. package/es/comps/Editable/comps/EditableAction.d.ts +2 -1
  30. package/es/comps/Editable/comps/Texty.d.ts +1 -1
  31. package/es/comps/Editable/comps/Texty.js +5 -4
  32. package/es/comps/Editable/comps/Texty.less +43 -43
  33. package/es/comps/Editable/comps/index.less +38 -38
  34. package/es/comps/Editable/index.d.ts +2 -1
  35. package/es/comps/Editable/index.less +97 -97
  36. package/es/comps/Editable/utils.d.ts +2 -1
  37. package/es/comps/FileView/index.d.ts +2 -1
  38. package/es/comps/FileView/index.js +2 -3
  39. package/es/comps/FormGenerator/comps/Canvas/Preview.d.ts +2 -1
  40. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Checkbox.d.ts +2 -1
  41. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Color.d.ts +1 -1
  42. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Date.d.ts +1 -1
  43. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Input.d.ts +1 -1
  44. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/List.d.ts +2 -1
  45. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/MutiSelect.d.ts +2 -1
  46. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Number.d.ts +1 -1
  47. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/NumberRange.d.ts +1 -1
  48. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Obj.d.ts +2 -1
  49. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Password.d.ts +1 -1
  50. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Radio.d.ts +2 -1
  51. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Select.d.ts +2 -1
  52. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Switch.d.ts +1 -1
  53. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Table.d.ts +2 -1
  54. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/TextArea.d.ts +1 -1
  55. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Upload.d.ts +1 -1
  56. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/HOC/index.d.ts +2 -1
  57. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/index.d.ts +2 -1
  58. package/es/comps/FormGenerator/comps/Canvas/core/index.d.ts +1 -1
  59. package/es/comps/FormGenerator/comps/Canvas/core/index.less +23 -23
  60. package/es/comps/FormGenerator/comps/Canvas/index.d.ts +2 -1
  61. package/es/comps/FormGenerator/comps/Settings/index.d.ts +2 -1
  62. package/es/comps/FormGenerator/comps/Settings/index.js +1 -2
  63. package/es/comps/FormGenerator/comps/Sidebar/Elements.d.ts +1 -1
  64. package/es/comps/FormGenerator/comps/Sidebar/JsonSchema.d.ts +1 -1
  65. package/es/comps/FormGenerator/comps/Sidebar/index.d.ts +2 -1
  66. package/es/comps/FormGenerator/comps/Sidebar/index.less +21 -21
  67. package/es/comps/FormGenerator/index.d.ts +2 -1
  68. package/es/comps/FormGenerator/index.less +20 -20
  69. package/es/comps/JsonEdit/index.d.ts +2 -1
  70. package/es/comps/JsonEdit/index.js +0 -1
  71. package/es/comps/JsonEdit/index.less +64 -64
  72. package/es/comps/JsonView/index.d.ts +2 -1
  73. package/es/comps/MdEdit/index.d.ts +2 -1
  74. package/es/comps/MdEditPro/index.d.ts +2 -1
  75. package/es/comps/MdEditPro/index.less +166 -166
  76. package/es/comps/MdEditPro/index2.d.ts +1 -1
  77. package/es/comps/MdNavbar/index.d.ts +2 -1
  78. package/es/comps/MdNavbar/index.less +77 -77
  79. package/es/comps/MdView/index.d.ts +1 -1
  80. package/es/comps/MdView/index.less +376 -376
  81. package/es/comps/MetadataEdit/components/MetaFieldsEdit.d.ts +2 -1
  82. package/es/comps/MetadataEdit/components/MetaPropsEdit.d.ts +2 -1
  83. package/es/comps/MetadataEdit/constant/index.js +0 -2
  84. package/es/comps/MetadataEdit/index.d.ts +2 -1
  85. package/es/comps/MetadataForm/DataCell/Array.d.ts +1 -1
  86. package/es/comps/MetadataForm/DataCell/Input.d.ts +1 -1
  87. package/es/comps/MetadataForm/DataCell/Input.js +15 -4
  88. package/es/comps/MetadataForm/DataCell/Number.d.ts +1 -1
  89. package/es/comps/MetadataForm/DataCell/Ref.d.ts +1 -1
  90. package/es/comps/MetadataForm/DataCell/Select.d.ts +1 -1
  91. package/es/comps/MetadataForm/DataCell/Select.js +6 -4
  92. package/es/comps/MetadataForm/DataCell/Switch.d.ts +1 -1
  93. package/es/comps/MetadataForm/DataCell/layout/TableArray.d.ts +2 -1
  94. package/es/comps/MetadataForm/DataCell/plugin/IconButton.d.ts +8 -0
  95. package/es/comps/MetadataForm/DataCell/plugin/IconButton.js +16 -0
  96. package/es/comps/MetadataForm/DataCell/plugin/MapTable.d.ts +12 -0
  97. package/es/comps/MetadataForm/DataCell/plugin/MapTable.js +116 -0
  98. package/es/comps/MetadataForm/DataCell/plugin/NumberRange.d.ts +2 -1
  99. package/es/comps/MetadataForm/DataCell/plugin/NumberRange.js +1 -2
  100. package/es/comps/MetadataForm/DataCell/plugin/RefreshSelect.d.ts +2 -1
  101. package/es/comps/MetadataForm/DataCell/plugin/RefreshSelect.js +3 -2
  102. package/es/comps/MetadataForm/DataCell/plugin/SparkSqlTable.d.ts +11 -0
  103. package/es/comps/MetadataForm/DataCell/plugin/SparkSqlTable.js +249 -0
  104. package/es/comps/MetadataForm/HOC/index.d.ts +2 -1
  105. package/es/comps/MetadataForm/index.d.ts +2 -1
  106. package/es/comps/MetadataForm/index.less +26 -26
  107. package/es/comps/MetadataForm/utils.d.ts +3 -2
  108. package/es/comps/Split/index.d.ts +1 -1
  109. package/es/comps/Split/index.less +29 -29
  110. package/es/framework/RxStore/demo/index.d.ts +2 -1
  111. package/es/framework/graph/index.less +15 -15
  112. package/es/framework/http/msgpack5/lib/helpers.js +0 -1
  113. package/es/framework/libs/iconfont/iconfont.css +323 -323
  114. package/es/framework/libs/iconfont/iconfont.json +548 -548
  115. package/es/framework/libs/jquery.min.js +4 -4
  116. package/es/framework/locale/dil8/di18n.js +5 -3
  117. package/es/framework/metadata/MetadataService.js +14 -14
  118. package/es/framework/metadata/index.js +14 -15
  119. package/es/framework/metadata/types.d.ts +103 -103
  120. package/es/theme.less +81 -81
  121. package/package.json +1 -1
@@ -2,5 +2,5 @@ import { FG } from '../../interface';
2
2
  interface IElementsProps {
3
3
  data: FG.Node;
4
4
  }
5
- declare const Elements: (props: IElementsProps) => JSX.Element;
5
+ declare const Elements: (props: IElementsProps) => import("react").JSX.Element;
6
6
  export default Elements;
@@ -1,5 +1,5 @@
1
1
  interface IJsonSchemaProps {
2
2
  json: string;
3
3
  }
4
- declare const JsonSchema: (props: IJsonSchemaProps) => JSX.Element;
4
+ declare const JsonSchema: (props: IJsonSchemaProps) => import("react").JSX.Element;
5
5
  export default JsonSchema;
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import './index.less';
2
- declare const Sidebar: () => JSX.Element;
3
+ declare const Sidebar: () => React.JSX.Element;
3
4
  export default Sidebar;
@@ -1,21 +1,21 @@
1
- .fg-sidebar {
2
- height: 100%;
3
- position: relative;
4
-
5
- &-bottom-tool {
6
- position: absolute;
7
- display: flex;
8
- left: 0;
9
- right: 0;
10
- align-items: center;
11
- bottom: 0;
12
- cursor: pointer;
13
- .ant-radio-group {
14
- width: 100%;
15
- .ant-radio-button-wrapper {
16
- width: 50%;
17
- text-align: center;
18
- }
19
- }
20
- }
21
- }
1
+ .fg-sidebar {
2
+ height: 100%;
3
+ position: relative;
4
+
5
+ &-bottom-tool {
6
+ position: absolute;
7
+ display: flex;
8
+ left: 0;
9
+ right: 0;
10
+ align-items: center;
11
+ bottom: 0;
12
+ cursor: pointer;
13
+ .ant-radio-group {
14
+ width: 100%;
15
+ .ant-radio-button-wrapper {
16
+ width: 50%;
17
+ text-align: center;
18
+ }
19
+ }
20
+ }
21
+ }
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import './index.less';
2
3
  interface IFormGeneratorProps {
3
4
  /**
@@ -6,5 +7,5 @@ interface IFormGeneratorProps {
6
7
  defaultSchema?: any;
7
8
  onImportSchema?: () => void;
8
9
  }
9
- declare const FormGenerator: (props: IFormGeneratorProps) => JSX.Element;
10
+ declare const FormGenerator: (props: IFormGeneratorProps) => React.JSX.Element;
10
11
  export default FormGenerator;
@@ -1,20 +1,20 @@
1
- .form-generator-container {
2
- width: 100%;
3
- height: 100%;
4
-
5
- .ant-tabs {
6
- height: 100%;
7
- .ant-tabs-nav {
8
- margin: 0px 0 8px 0;
9
- }
10
- .ant-tabs-content-holder {
11
- height: calc(100% - 50px);
12
- .ant-tabs-content {
13
- height: 100%;
14
- padding: 8px;
15
- overflow-y: auto;
16
- overflow-x: hidden;
17
- }
18
- }
19
- }
20
- }
1
+ .form-generator-container {
2
+ width: 100%;
3
+ height: 100%;
4
+
5
+ .ant-tabs {
6
+ height: 100%;
7
+ .ant-tabs-nav {
8
+ margin: 0px 0 8px 0;
9
+ }
10
+ .ant-tabs-content-holder {
11
+ height: calc(100% - 50px);
12
+ .ant-tabs-content {
13
+ height: 100%;
14
+ padding: 8px;
15
+ overflow-y: auto;
16
+ overflow-x: hidden;
17
+ }
18
+ }
19
+ }
20
+ }
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import 'codemirror/lib/codemirror.css';
2
3
  import 'codemirror/theme/neo.css';
3
4
  import 'codemirror/theme/panda-syntax.css';
@@ -65,5 +66,5 @@ interface ISqlEditProps {
65
66
  */
66
67
  onReWriteEnter?: () => void;
67
68
  }
68
- declare const SqlEdit: (props: ISqlEditProps) => JSX.Element;
69
+ declare const SqlEdit: (props: ISqlEditProps) => React.JSX.Element;
69
70
  export default SqlEdit;
@@ -59,7 +59,6 @@ var SqlEdit = function SqlEdit(props) {
59
59
  __editor.setValue(result);
60
60
  } // 代码格式化
61
61
  };
62
-
63
62
  if (onReWriteEnter) {
64
63
  _extraKeys.Enter = function (__editor) {
65
64
  onReWriteEnter();
@@ -1,64 +1,64 @@
1
- .my-txt {
2
- width: 100%;
3
- height: 100%;
4
- border: 0;
5
- outline: none;
6
- }
7
- .sql {
8
- color: blue;
9
- }
10
-
11
- .sql:after {
12
- content: 'sql';
13
- padding-left: 20px;
14
- font-style: italic;
15
- float: right;
16
- color: gray;
17
- }
18
-
19
- .table {
20
- color: blueviolet;
21
- }
22
- .table:after {
23
- content: 'table';
24
- padding-left: 20px;
25
- font-style: italic;
26
- float: right;
27
- color: gray;
28
- }
29
-
30
- .column {
31
- color: brown;
32
- }
33
- .column:after {
34
- content: 'column';
35
- padding-left: 20px;
36
- font-style: italic;
37
- float: right;
38
- color: gray;
39
- }
40
-
41
- .pf {
42
- color: cadetblue;
43
- }
44
- .pf:after {
45
- content: 'procfunc';
46
- padding-left: 20px;
47
- font-style: italic;
48
- float: right;
49
- color: gray;
50
- }
51
-
52
- .CodeMirror {
53
- height: 100%;
54
- // height: auto;
55
- min-height: 28px;
56
- font-size: 14px;
57
- direction: ltr;
58
- }
59
- .CodeMirror-scroll {
60
- overflow-x: hidden !important;
61
- }
62
- .CodeMirror-sizer {
63
- margin-bottom: 0px !important;
64
- }
1
+ .my-txt {
2
+ width: 100%;
3
+ height: 100%;
4
+ border: 0;
5
+ outline: none;
6
+ }
7
+ .sql {
8
+ color: blue;
9
+ }
10
+
11
+ .sql:after {
12
+ content: 'sql';
13
+ padding-left: 20px;
14
+ font-style: italic;
15
+ float: right;
16
+ color: gray;
17
+ }
18
+
19
+ .table {
20
+ color: blueviolet;
21
+ }
22
+ .table:after {
23
+ content: 'table';
24
+ padding-left: 20px;
25
+ font-style: italic;
26
+ float: right;
27
+ color: gray;
28
+ }
29
+
30
+ .column {
31
+ color: brown;
32
+ }
33
+ .column:after {
34
+ content: 'column';
35
+ padding-left: 20px;
36
+ font-style: italic;
37
+ float: right;
38
+ color: gray;
39
+ }
40
+
41
+ .pf {
42
+ color: cadetblue;
43
+ }
44
+ .pf:after {
45
+ content: 'procfunc';
46
+ padding-left: 20px;
47
+ font-style: italic;
48
+ float: right;
49
+ color: gray;
50
+ }
51
+
52
+ .CodeMirror {
53
+ height: 100%;
54
+ // height: auto;
55
+ min-height: 28px;
56
+ font-size: 14px;
57
+ direction: ltr;
58
+ }
59
+ .CodeMirror-scroll {
60
+ overflow-x: hidden !important;
61
+ }
62
+ .CodeMirror-sizer {
63
+ margin-bottom: 0px !important;
64
+ }
@@ -1,6 +1,7 @@
1
+ import React from 'react';
1
2
  import './index.less';
2
3
  interface IJsonViewProps {
3
4
  json: string;
4
5
  }
5
- declare const JsonView: (props: IJsonViewProps) => JSX.Element;
6
+ declare const JsonView: (props: IJsonViewProps) => React.JSX.Element;
6
7
  export default JsonView;
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import 'react-markdown-editor-lite/lib/index.css';
2
3
  import { UploadFunc } from 'react-markdown-editor-lite/cjs/share/var';
3
4
  import './index.less';
@@ -12,5 +13,5 @@ interface IMdEditProps {
12
13
  text?: string;
13
14
  }>;
14
15
  }
15
- declare const MdEdit: (props: IMdEditProps) => JSX.Element;
16
+ declare const MdEdit: (props: IMdEditProps) => React.JSX.Element;
16
17
  export default MdEdit;
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import './index.less';
2
3
  interface IMdEditProProps {
3
4
  value: string;
@@ -6,5 +7,5 @@ interface IMdEditProProps {
6
7
  default: string;
7
8
  }>;
8
9
  }
9
- declare const MdEditPro: (props: IMdEditProProps) => JSX.Element;
10
+ declare const MdEditPro: (props: IMdEditProProps) => React.JSX.Element;
10
11
  export default MdEditPro;
@@ -1,166 +1,166 @@
1
- /* ---- Cross-editor content styles. --------------------------------------------------------------- */
2
- // .ck .ck-editor__top {
3
- // position: fixed;
4
- // z-index: 1000;
5
- // }
6
- .ck-editor {
7
- height: 100% !important;
8
- }
9
- .ck .ck-editor__main {
10
- height: calc(100% - 40px);
11
- }
12
-
13
- .ck.ck-content:not(.ck-style-grid__button__preview) {
14
- /* Make sure all content containers have some min height to make them easier to locate. */
15
- min-height: 300px;
16
- height: 100%;
17
- padding: 10px 20px;
18
- overflow-y: auto;
19
- color: var(--ronds-metadata-color-text-2) !important;
20
- background-color: var(--ronds-metadata-color-bg-5) !important;
21
- border: 1px solid var(--ronds-metadata-color-border-1) !important;
22
- }
23
- .ck .ck-editor {
24
- background-color: var(--ronds-metadata-color-bg-5) !important;
25
- }
26
-
27
- .ck-content pre {
28
- background-color: var(--ronds-metadata-color-bg-2) !important;
29
- border: 1px solid var(--ronds-metadata-color-border-1) !important;
30
- }
31
-
32
- .ck.ck-toolbar,
33
- .ck .ck-editor__top {
34
- color: var(--ronds-metadata-color-text-2) !important;
35
- background-color: var(--ronds-metadata-color-bg-5) !important;
36
- }
37
-
38
- .ck .ck-toolbar {
39
- border: 1px solid var(--ronds-metadata-color-border-1) !important;
40
- }
41
-
42
- .ck .ck-list {
43
- color: var(--ronds-metadata-color-text-2) !important;
44
- background-color: var(--ronds-metadata-color-bg-5) !important;
45
- }
46
-
47
- .ck.ck-button,
48
- .ck .ck-button__label,
49
- .ck .ck-toolbar__items {
50
- color: var(--ronds-metadata-color-text-2) !important;
51
- }
52
-
53
- .ck .ck-toolbar__separator {
54
- background-color: var(--ronds-metadata-color-border-1) !important;
55
- }
56
-
57
- /* Make sure all content containers are distinguishable on a web page even of not focused. */
58
- .ck.ck-content:not(:focus) {
59
- border: 1px solid var(--ck-color-base-border);
60
- }
61
-
62
- /* Font sizes and vertical rhythm for common elements (headings, lists, paragraphs, etc.) */
63
- .ck-content h1 {
64
- font-size: 28px;
65
- }
66
- .ck-content h2 {
67
- font-size: 18px;
68
- }
69
- .ck-content h3 {
70
- font-size: 16px;
71
- }
72
- .ck-content h4 {
73
- font-size: 15px;
74
- }
75
- .ck-content h5 {
76
- font-size: 15px;
77
- }
78
- .ck-content h6 {
79
- font-size: 15px;
80
- }
81
- .ck-content h1,
82
- .ck-content h2,
83
- .ck-content h3,
84
- .ck-content h4,
85
- .ck-content h5,
86
- .ck-content h6 {
87
- color: var(--ronds-metadata-color-text-2) !important;
88
- margin: 42px 0 18px;
89
- font-weight: 600;
90
- line-height: 1.40625;
91
- }
92
- .ck-content blockquote,
93
- .ck-content ol,
94
- .ck-content p,
95
- .ck-content ul {
96
- font-size: 15px;
97
- line-height: 1.40625;
98
- padding-top: 10px;
99
- margin-bottom: var(--ck-spacing-large);
100
- }
101
-
102
- // .ck-content ol,
103
- // .ck-content ul {
104
- // margin-left: 10px !important;
105
- // }
106
-
107
- .ck-content ul li {
108
- list-style: disc !important;
109
- }
110
-
111
- .ck-content ol li {
112
- list-style: decimal !important;
113
- }
114
-
115
- .ck.ck-content.ck-editor__editable_inline > :first-child {
116
- margin-top: 0;
117
- }
118
-
119
- .ck-content .table {
120
- width: 100%;
121
- margin: 0px !important;
122
- }
123
- .ck-content .image {
124
- margin: 0px !important;
125
- }
126
-
127
- .ronds-metadata-dark {
128
- .ck {
129
- .table {
130
- width: 100%;
131
- }
132
- th {
133
- background-color: #0d1f40 !important;
134
- }
135
- table,
136
- .ck-content .table table td,
137
- .ck-content .table table th {
138
- color: #9b9fa8 !important;
139
- border: 1px solid var(--ronds-metadata-color-border-1) !important;
140
- }
141
- code {
142
- color: #9b9fa8 !important;
143
- }
144
- code[class*='language-'],
145
- pre[class*='language-'] {
146
- text-shadow: none;
147
- }
148
- .ck.ck-button:hover,
149
- a.ck.ck-button:hover {
150
- background-color: #1d4085 !important;
151
- }
152
- .ck .ck-on {
153
- color: var(--ck-color-button-on-color) !important;
154
- background-color: #1d4085 !important;
155
- }
156
- .ck-dropdown__panel {
157
- border: 1px solid var(--ronds-metadata-color-border-1) !important;
158
- background-color: var(--ronds-metadata-color-bg-5) !important;
159
- }
160
- .ck .ck-form__header__label,
161
- .ck-character-info__name,
162
- .ck-special-characters-navigation {
163
- color: var(--ck-color-button-on-color) !important;
164
- }
165
- }
166
- }
1
+ /* ---- Cross-editor content styles. --------------------------------------------------------------- */
2
+ // .ck .ck-editor__top {
3
+ // position: fixed;
4
+ // z-index: 1000;
5
+ // }
6
+ .ck-editor {
7
+ height: 100% !important;
8
+ }
9
+ .ck .ck-editor__main {
10
+ height: calc(100% - 40px);
11
+ }
12
+
13
+ .ck.ck-content:not(.ck-style-grid__button__preview) {
14
+ /* Make sure all content containers have some min height to make them easier to locate. */
15
+ min-height: 300px;
16
+ height: 100%;
17
+ padding: 10px 20px;
18
+ overflow-y: auto;
19
+ color: var(--ronds-metadata-color-text-2) !important;
20
+ background-color: var(--ronds-metadata-color-bg-5) !important;
21
+ border: 1px solid var(--ronds-metadata-color-border-1) !important;
22
+ }
23
+ .ck .ck-editor {
24
+ background-color: var(--ronds-metadata-color-bg-5) !important;
25
+ }
26
+
27
+ .ck-content pre {
28
+ background-color: var(--ronds-metadata-color-bg-2) !important;
29
+ border: 1px solid var(--ronds-metadata-color-border-1) !important;
30
+ }
31
+
32
+ .ck.ck-toolbar,
33
+ .ck .ck-editor__top {
34
+ color: var(--ronds-metadata-color-text-2) !important;
35
+ background-color: var(--ronds-metadata-color-bg-5) !important;
36
+ }
37
+
38
+ .ck .ck-toolbar {
39
+ border: 1px solid var(--ronds-metadata-color-border-1) !important;
40
+ }
41
+
42
+ .ck .ck-list {
43
+ color: var(--ronds-metadata-color-text-2) !important;
44
+ background-color: var(--ronds-metadata-color-bg-5) !important;
45
+ }
46
+
47
+ .ck.ck-button,
48
+ .ck .ck-button__label,
49
+ .ck .ck-toolbar__items {
50
+ color: var(--ronds-metadata-color-text-2) !important;
51
+ }
52
+
53
+ .ck .ck-toolbar__separator {
54
+ background-color: var(--ronds-metadata-color-border-1) !important;
55
+ }
56
+
57
+ /* Make sure all content containers are distinguishable on a web page even of not focused. */
58
+ .ck.ck-content:not(:focus) {
59
+ border: 1px solid var(--ck-color-base-border);
60
+ }
61
+
62
+ /* Font sizes and vertical rhythm for common elements (headings, lists, paragraphs, etc.) */
63
+ .ck-content h1 {
64
+ font-size: 28px;
65
+ }
66
+ .ck-content h2 {
67
+ font-size: 18px;
68
+ }
69
+ .ck-content h3 {
70
+ font-size: 16px;
71
+ }
72
+ .ck-content h4 {
73
+ font-size: 15px;
74
+ }
75
+ .ck-content h5 {
76
+ font-size: 15px;
77
+ }
78
+ .ck-content h6 {
79
+ font-size: 15px;
80
+ }
81
+ .ck-content h1,
82
+ .ck-content h2,
83
+ .ck-content h3,
84
+ .ck-content h4,
85
+ .ck-content h5,
86
+ .ck-content h6 {
87
+ color: var(--ronds-metadata-color-text-2) !important;
88
+ margin: 42px 0 18px;
89
+ font-weight: 600;
90
+ line-height: 1.40625;
91
+ }
92
+ .ck-content blockquote,
93
+ .ck-content ol,
94
+ .ck-content p,
95
+ .ck-content ul {
96
+ font-size: 15px;
97
+ line-height: 1.40625;
98
+ padding-top: 10px;
99
+ margin-bottom: var(--ck-spacing-large);
100
+ }
101
+
102
+ // .ck-content ol,
103
+ // .ck-content ul {
104
+ // margin-left: 10px !important;
105
+ // }
106
+
107
+ .ck-content ul li {
108
+ list-style: disc !important;
109
+ }
110
+
111
+ .ck-content ol li {
112
+ list-style: decimal !important;
113
+ }
114
+
115
+ .ck.ck-content.ck-editor__editable_inline > :first-child {
116
+ margin-top: 0;
117
+ }
118
+
119
+ .ck-content .table {
120
+ width: 100%;
121
+ margin: 0px !important;
122
+ }
123
+ .ck-content .image {
124
+ margin: 0px !important;
125
+ }
126
+
127
+ .ronds-metadata-dark {
128
+ .ck {
129
+ .table {
130
+ width: 100%;
131
+ }
132
+ th {
133
+ background-color: #0d1f40 !important;
134
+ }
135
+ table,
136
+ .ck-content .table table td,
137
+ .ck-content .table table th {
138
+ color: #9b9fa8 !important;
139
+ border: 1px solid var(--ronds-metadata-color-border-1) !important;
140
+ }
141
+ code {
142
+ color: #9b9fa8 !important;
143
+ }
144
+ code[class*='language-'],
145
+ pre[class*='language-'] {
146
+ text-shadow: none;
147
+ }
148
+ .ck.ck-button:hover,
149
+ a.ck.ck-button:hover {
150
+ background-color: #1d4085 !important;
151
+ }
152
+ .ck .ck-on {
153
+ color: var(--ck-color-button-on-color) !important;
154
+ background-color: #1d4085 !important;
155
+ }
156
+ .ck-dropdown__panel {
157
+ border: 1px solid var(--ronds-metadata-color-border-1) !important;
158
+ background-color: var(--ronds-metadata-color-bg-5) !important;
159
+ }
160
+ .ck .ck-form__header__label,
161
+ .ck-character-info__name,
162
+ .ck-special-characters-navigation {
163
+ color: var(--ck-color-button-on-color) !important;
164
+ }
165
+ }
166
+ }
@@ -2,4 +2,4 @@ import type { FC } from 'react';
2
2
  import '@milkdown/theme-nord/style.css';
3
3
  import './index.less';
4
4
  export declare const MilkdownEditor: FC;
5
- export declare const MdEditor2: () => JSX.Element;
5
+ export declare const MdEditor2: () => import("react").JSX.Element;
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import './index.less';
2
3
  interface IMdNavbarProps {
3
4
  source: string;
@@ -9,5 +10,5 @@ interface IMdNavbarProps {
9
10
  onNavItemClick?: (event: any, element: HTMLDivElement, hashValue: string) => void;
10
11
  onHashChange?: (newHash: string, oldHash: string) => void;
11
12
  }
12
- declare const MdNavbar: (props: IMdNavbarProps) => JSX.Element;
13
+ declare const MdNavbar: (props: IMdNavbarProps) => React.JSX.Element;
13
14
  export default MdNavbar;