amis 1.5.5 → 1.5.6

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 (220) hide show
  1. package/lib/Root.js +1 -1
  2. package/lib/Root.js.map +2 -2
  3. package/lib/Schema.d.ts +1 -1
  4. package/lib/Schema.js.map +1 -1
  5. package/lib/SchemaRenderer.js +4 -4
  6. package/lib/SchemaRenderer.js.map +2 -2
  7. package/lib/components/AsideNav.d.ts +1 -1
  8. package/lib/components/AsideNav.js.map +1 -1
  9. package/lib/components/Card.d.ts +20 -20
  10. package/lib/components/Card.js +1 -1
  11. package/lib/components/Card.js.map +2 -2
  12. package/lib/components/CodeMirror.d.ts +26 -0
  13. package/lib/components/CodeMirror.js +104 -0
  14. package/lib/components/CodeMirror.js.map +13 -0
  15. package/lib/components/Collapse.d.ts +22 -21
  16. package/lib/components/Collapse.js +5 -7
  17. package/lib/components/Collapse.js.map +2 -2
  18. package/lib/components/CollapseGroup.d.ts +20 -20
  19. package/lib/components/CollapseGroup.js +5 -3
  20. package/lib/components/CollapseGroup.js.map +2 -2
  21. package/lib/components/ColorPicker.d.ts +85 -84
  22. package/lib/components/ColorPicker.js +15 -3
  23. package/lib/components/ColorPicker.js.map +2 -2
  24. package/lib/components/DatePicker.d.ts +84 -84
  25. package/lib/components/DatePicker.js +7 -3
  26. package/lib/components/DatePicker.js.map +2 -2
  27. package/lib/components/DateRangePicker.d.ts +85 -84
  28. package/lib/components/DateRangePicker.js +5 -3
  29. package/lib/components/DateRangePicker.js.map +2 -2
  30. package/lib/components/LocationPicker.d.ts +84 -84
  31. package/lib/components/MonthRangePicker.d.ts +85 -84
  32. package/lib/components/MonthRangePicker.js +5 -3
  33. package/lib/components/MonthRangePicker.js.map +2 -2
  34. package/lib/components/PickerContainer.d.ts +2 -1
  35. package/lib/components/PickerContainer.js +3 -3
  36. package/lib/components/PickerContainer.js.map +2 -2
  37. package/lib/components/PopUp.d.ts +93 -0
  38. package/lib/components/PopUp.js +58 -0
  39. package/lib/components/PopUp.js.map +13 -0
  40. package/lib/components/Rating.d.ts +203 -73
  41. package/lib/components/Rating.js +147 -31
  42. package/lib/components/Rating.js.map +2 -2
  43. package/lib/components/Select.d.ts +237 -237
  44. package/lib/components/Steps.d.ts +1 -0
  45. package/lib/components/Steps.js +5 -3
  46. package/lib/components/Steps.js.map +2 -2
  47. package/lib/components/Tabs.d.ts +20 -20
  48. package/lib/components/TabsTransferPicker.js +1 -1
  49. package/lib/components/TabsTransferPicker.js.map +2 -2
  50. package/lib/components/TransferPicker.d.ts +0 -1
  51. package/lib/components/TransferPicker.js +2 -15
  52. package/lib/components/TransferPicker.js.map +2 -2
  53. package/lib/components/formula/Editor.d.ts +560 -0
  54. package/lib/components/formula/Editor.js +186 -0
  55. package/lib/components/formula/Editor.js.map +13 -0
  56. package/lib/components/formula/FuncList.d.ts +67 -0
  57. package/lib/components/formula/FuncList.js +35 -0
  58. package/lib/components/formula/FuncList.js.map +13 -0
  59. package/lib/components/formula/Picker.d.ts +493 -0
  60. package/lib/components/formula/Picker.js +48 -0
  61. package/lib/components/formula/Picker.js.map +13 -0
  62. package/lib/components/formula/VariableList.d.ts +9 -0
  63. package/lib/components/formula/VariableList.js +15 -0
  64. package/lib/components/formula/VariableList.js.map +13 -0
  65. package/lib/components/formula/plugin.d.ts +18 -0
  66. package/lib/components/formula/plugin.js +136 -0
  67. package/lib/components/formula/plugin.js.map +13 -0
  68. package/lib/components/icons.js +2 -0
  69. package/lib/components/icons.js.map +2 -2
  70. package/lib/components/index.d.ts +2 -1
  71. package/lib/components/index.js +4 -2
  72. package/lib/components/index.js.map +2 -2
  73. package/lib/helper.css +57 -57
  74. package/lib/helper.css.map +1 -1
  75. package/lib/icons/star.js +12 -0
  76. package/lib/index.d.ts +1 -0
  77. package/lib/index.js +2 -1
  78. package/lib/index.js.map +2 -2
  79. package/lib/renderers/Collapse.js +8 -2
  80. package/lib/renderers/Collapse.js.map +2 -2
  81. package/lib/renderers/CollapseGroup.js.map +2 -2
  82. package/lib/renderers/Form/InputCity.d.ts +84 -84
  83. package/lib/renderers/Form/InputColor.d.ts +84 -84
  84. package/lib/renderers/Form/InputColor.js +2 -2
  85. package/lib/renderers/Form/InputColor.js.map +2 -2
  86. package/lib/renderers/Form/InputDate.js +2 -2
  87. package/lib/renderers/Form/InputDate.js.map +2 -2
  88. package/lib/renderers/Form/InputDateRange.js +2 -2
  89. package/lib/renderers/Form/InputDateRange.js.map +2 -2
  90. package/lib/renderers/Form/InputFile.js +1 -1
  91. package/lib/renderers/Form/InputFile.js.map +2 -2
  92. package/lib/renderers/Form/InputFormula.d.ts +35 -0
  93. package/lib/renderers/Form/InputFormula.js +25 -0
  94. package/lib/renderers/Form/InputFormula.js.map +13 -0
  95. package/lib/renderers/Form/InputImage.js +1 -1
  96. package/lib/renderers/Form/InputImage.js.map +2 -2
  97. package/lib/renderers/Form/InputMonthRange.js +2 -2
  98. package/lib/renderers/Form/InputMonthRange.js.map +2 -2
  99. package/lib/renderers/Form/InputQuarterRange.js +2 -2
  100. package/lib/renderers/Form/InputQuarterRange.js.map +2 -2
  101. package/lib/renderers/Form/InputRating.d.ts +37 -0
  102. package/lib/renderers/Form/InputRating.js +6 -2
  103. package/lib/renderers/Form/InputRating.js.map +2 -2
  104. package/lib/renderers/Form/InputYearRange.js +2 -2
  105. package/lib/renderers/Form/InputYearRange.js.map +2 -2
  106. package/lib/renderers/Form/TreeSelect.d.ts +1 -0
  107. package/lib/renderers/Form/TreeSelect.js +11 -8
  108. package/lib/renderers/Form/TreeSelect.js.map +2 -2
  109. package/lib/renderers/Json.js +7 -0
  110. package/lib/renderers/Json.js.map +2 -2
  111. package/lib/renderers/Steps.js +2 -2
  112. package/lib/renderers/Steps.js.map +2 -2
  113. package/lib/store/formItem.js +11 -1
  114. package/lib/store/formItem.js.map +2 -2
  115. package/lib/themes/ang-ie11.css +305 -10
  116. package/lib/themes/ang.css +305 -10
  117. package/lib/themes/ang.css.map +1 -1
  118. package/lib/themes/antd-ie11.css +305 -10
  119. package/lib/themes/antd.css +305 -10
  120. package/lib/themes/antd.css.map +1 -1
  121. package/lib/themes/cxd-ie11.css +306 -10
  122. package/lib/themes/cxd.css +306 -10
  123. package/lib/themes/cxd.css.map +1 -1
  124. package/lib/themes/dark-ie11.css +305 -10
  125. package/lib/themes/dark.css +305 -10
  126. package/lib/themes/dark.css.map +1 -1
  127. package/lib/themes/default.css +306 -10
  128. package/lib/themes/default.css.map +1 -1
  129. package/lib/utils/api.js +2 -2
  130. package/lib/utils/api.js.map +2 -2
  131. package/lib/utils/helper.js +2 -7
  132. package/lib/utils/helper.js.map +2 -2
  133. package/package.json +5 -3
  134. package/schema.json +59 -7
  135. package/scss/_properties.scss +3 -1
  136. package/scss/_variables.scss +1 -1
  137. package/scss/components/_formula.scss +122 -0
  138. package/scss/components/_popup.scss +123 -0
  139. package/scss/components/_steps.scss +60 -0
  140. package/scss/components/form/_color.scss +4 -0
  141. package/scss/components/form/_date-range.scss +4 -0
  142. package/scss/components/form/_date.scss +3 -0
  143. package/scss/components/form/_rating.scss +60 -21
  144. package/scss/components/form/_tree-select.scss +4 -0
  145. package/scss/helper/background/_background-color.scss +1 -1
  146. package/scss/helper/border/_border-color.scss +1 -1
  147. package/scss/helper/typography/_text-color.scss +1 -1
  148. package/scss/themes/_common.scss +2 -0
  149. package/scss/themes/_cxd-variables.scss +2 -0
  150. package/sdk/ang-ie11.css +922 -8
  151. package/sdk/ang.css +926 -10
  152. package/sdk/antd-ie11.css +922 -8
  153. package/sdk/antd.css +926 -10
  154. package/sdk/charts.js +17 -17
  155. package/sdk/codemirror.js +14 -0
  156. package/sdk/color-picker.js +65 -69
  157. package/sdk/cropperjs.js +3 -3
  158. package/sdk/cxd-ie11.css +922 -8
  159. package/sdk/cxd.css +927 -10
  160. package/sdk/dark-ie11.css +922 -8
  161. package/sdk/dark.css +926 -10
  162. package/sdk/exceljs.js +1 -1
  163. package/sdk/helper.css +57 -57
  164. package/sdk/helper.css.map +1 -1
  165. package/sdk/markdown.js +69 -69
  166. package/sdk/papaparse.js +1 -1
  167. package/sdk/renderers/Form/CityDB.js +1 -1
  168. package/sdk/rest.js +20 -16
  169. package/sdk/rich-text.js +62 -62
  170. package/sdk/sdk-ie11.css +922 -8
  171. package/sdk/sdk.css +927 -10
  172. package/sdk/sdk.js +1345 -1235
  173. package/sdk/thirds/hls.js/hls.js +18 -18
  174. package/sdk/thirds/mpegts.js/mpegts.js +2 -2
  175. package/sdk/tinymce.js +57 -57
  176. package/src/Root.tsx +1 -0
  177. package/src/Schema.ts +1 -0
  178. package/src/SchemaRenderer.tsx +4 -0
  179. package/src/components/AsideNav.tsx +1 -1
  180. package/src/components/Card.tsx +2 -2
  181. package/src/components/CodeMirror.tsx +99 -0
  182. package/src/components/Collapse.tsx +22 -14
  183. package/src/components/CollapseGroup.tsx +9 -11
  184. package/src/components/ColorPicker.tsx +45 -3
  185. package/src/components/DatePicker.tsx +33 -3
  186. package/src/components/DateRangePicker.tsx +17 -3
  187. package/src/components/MonthRangePicker.tsx +18 -4
  188. package/src/components/PickerContainer.tsx +10 -6
  189. package/src/components/PopUp.tsx +133 -0
  190. package/src/components/Rating.tsx +235 -47
  191. package/src/components/Steps.tsx +8 -3
  192. package/src/components/TabsTransferPicker.tsx +1 -1
  193. package/src/components/TransferPicker.tsx +1 -11
  194. package/src/components/formula/Editor.tsx +261 -0
  195. package/src/components/formula/FuncList.tsx +82 -0
  196. package/src/components/formula/Picker.tsx +86 -0
  197. package/src/components/formula/VariableList.tsx +49 -0
  198. package/src/components/formula/plugin.ts +177 -0
  199. package/src/components/icons.tsx +2 -0
  200. package/src/components/index.tsx +2 -0
  201. package/src/icons/star.svg +12 -0
  202. package/src/index.tsx +1 -0
  203. package/src/renderers/Collapse.tsx +27 -27
  204. package/src/renderers/CollapseGroup.tsx +13 -12
  205. package/src/renderers/Form/InputColor.tsx +2 -3
  206. package/src/renderers/Form/InputDate.tsx +2 -0
  207. package/src/renderers/Form/InputDateRange.tsx +2 -0
  208. package/src/renderers/Form/InputFile.tsx +1 -1
  209. package/src/renderers/Form/InputFormula.tsx +75 -0
  210. package/src/renderers/Form/InputImage.tsx +1 -1
  211. package/src/renderers/Form/InputMonthRange.tsx +2 -0
  212. package/src/renderers/Form/InputQuarterRange.tsx +2 -0
  213. package/src/renderers/Form/InputRating.tsx +66 -3
  214. package/src/renderers/Form/InputYearRange.tsx +2 -0
  215. package/src/renderers/Form/TreeSelect.tsx +82 -63
  216. package/src/renderers/Json.tsx +5 -0
  217. package/src/renderers/Steps.tsx +4 -2
  218. package/src/store/formItem.ts +15 -0
  219. package/src/utils/api.ts +5 -2
  220. package/src/utils/helper.ts +5 -14
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "amis",
3
- "version": "1.5.5",
3
+ "version": "1.5.6",
4
4
  "description": "一种MIS页面生成工具",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {
@@ -38,7 +38,7 @@
38
38
  }
39
39
  ],
40
40
  "dependencies": {
41
- "amis-formula": "^1.2.7",
41
+ "amis-formula": "^1.3.3",
42
42
  "ansi-to-react": "^6.1.6",
43
43
  "async": "2.6.0",
44
44
  "attr-accept": "2.2.2",
@@ -88,9 +88,11 @@
88
88
  "tinymce": "^5.10.2",
89
89
  "tslib": "^2.3.1",
90
90
  "uncontrollable": "7.2.1",
91
- "video-react": "0.14.1"
91
+ "video-react": "0.14.1",
92
+ "codemirror": "^5.63.0"
92
93
  },
93
94
  "devDependencies": {
95
+ "@types/codemirror": "^5.60.3",
94
96
  "@fortawesome/fontawesome-free": "^5.15.4",
95
97
  "@testing-library/react": "^12.0.0",
96
98
  "@types/async": "^2.0.45",
package/schema.json CHANGED
@@ -30615,6 +30615,51 @@
30615
30615
  "allowClear": {
30616
30616
  "type": "boolean",
30617
30617
  "description": "是否允许再次点击后清除"
30618
+ },
30619
+ "readonly": {
30620
+ "type": "boolean",
30621
+ "description": "是否只读"
30622
+ },
30623
+ "colors": {
30624
+ "anyOf": [
30625
+ {
30626
+ "type": "string"
30627
+ },
30628
+ {
30629
+ "type": "object",
30630
+ "additionalProperties": {
30631
+ "type": "string"
30632
+ }
30633
+ }
30634
+ ],
30635
+ "description": "星星被选中的颜色"
30636
+ },
30637
+ "inactiveColor": {
30638
+ "type": "string",
30639
+ "description": "未被选中的星星的颜色"
30640
+ },
30641
+ "texts": {
30642
+ "type": "object",
30643
+ "additionalProperties": {
30644
+ "type": "string"
30645
+ },
30646
+ "description": "星星被选中时的提示文字"
30647
+ },
30648
+ "textPosition": {
30649
+ "$ref": "#/definitions/textPositionType",
30650
+ "description": "文字的位置"
30651
+ },
30652
+ "char": {
30653
+ "type": "string",
30654
+ "description": "自定义字符"
30655
+ },
30656
+ "charClassName": {
30657
+ "type": "string",
30658
+ "description": "自定义字符类名"
30659
+ },
30660
+ "textClassName": {
30661
+ "type": "string",
30662
+ "description": "自定义文字类名"
30618
30663
  }
30619
30664
  },
30620
30665
  "required": [
@@ -30623,6 +30668,13 @@
30623
30668
  "additionalProperties": false,
30624
30669
  "description": "Rating 文档:https://baidu.gitee.io/amis/docs/components/form/rating"
30625
30670
  },
30671
+ "textPositionType": {
30672
+ "type": "string",
30673
+ "enum": [
30674
+ "left",
30675
+ "right"
30676
+ ]
30677
+ },
30626
30678
  "RichTextControlSchema": {
30627
30679
  "type": "object",
30628
30680
  "properties": {
@@ -40564,7 +40616,7 @@
40564
40616
  "$ref": "#/definitions/RatingControlSchema",
40565
40617
  "additionalProperties": false,
40566
40618
  "patternProperties": {
40567
- "^(className|$ref|disabled|disabledOn|hidden|hiddenOn|visible|visibleOn|type|size|label|labelClassName|name|remark|labelRemark|hint|submitOnChange|readOnly|validateOnChange|description|desc|descriptionClassName|mode|horizontal|inline|inputClassName|placeholder|required|validationErrors|validations|value|clearValueOnHidden|validateApi|count|half|allowClear|popOver|quickEdit|copyable)$": {}
40619
+ "^(className|$ref|disabled|disabledOn|hidden|hiddenOn|visible|visibleOn|type|size|label|labelClassName|name|remark|labelRemark|hint|submitOnChange|readOnly|validateOnChange|description|desc|descriptionClassName|mode|horizontal|inline|inputClassName|placeholder|required|validationErrors|validations|value|clearValueOnHidden|validateApi|count|half|allowClear|readonly|colors|inactiveColor|texts|textPosition|char|charClassName|textClassName|popOver|quickEdit|copyable)$": {}
40568
40620
  }
40569
40621
  },
40570
40622
  {
@@ -41351,7 +41403,7 @@
41351
41403
  "$ref": "#/definitions/RatingControlSchema",
41352
41404
  "additionalProperties": false,
41353
41405
  "patternProperties": {
41354
- "^(className|$ref|disabled|disabledOn|hidden|hiddenOn|visible|visibleOn|type|size|label|labelClassName|name|remark|labelRemark|hint|submitOnChange|readOnly|validateOnChange|description|desc|descriptionClassName|mode|horizontal|inline|inputClassName|placeholder|required|validationErrors|validations|value|clearValueOnHidden|validateApi|count|half|allowClear|popOver|quickEdit|copyable)$": {}
41406
+ "^(className|$ref|disabled|disabledOn|hidden|hiddenOn|visible|visibleOn|type|size|label|labelClassName|name|remark|labelRemark|hint|submitOnChange|readOnly|validateOnChange|description|desc|descriptionClassName|mode|horizontal|inline|inputClassName|placeholder|required|validationErrors|validations|value|clearValueOnHidden|validateApi|count|half|allowClear|readonly|colors|inactiveColor|texts|textPosition|char|charClassName|textClassName|popOver|quickEdit|copyable)$": {}
41355
41407
  }
41356
41408
  },
41357
41409
  {
@@ -42138,7 +42190,7 @@
42138
42190
  "$ref": "#/definitions/RatingControlSchema",
42139
42191
  "additionalProperties": false,
42140
42192
  "patternProperties": {
42141
- "^(className|$ref|disabled|disabledOn|hidden|hiddenOn|visible|visibleOn|type|size|label|labelClassName|name|remark|labelRemark|hint|submitOnChange|readOnly|validateOnChange|description|desc|descriptionClassName|mode|horizontal|inline|inputClassName|placeholder|required|validationErrors|validations|value|clearValueOnHidden|validateApi|count|half|allowClear|fixed|popOver|quickEdit|quickEditOnUpdate|copyable|sortable|searchable|toggled|width|align|classNameExpr|filterable|breakpoint|unique)$": {}
42193
+ "^(className|$ref|disabled|disabledOn|hidden|hiddenOn|visible|visibleOn|type|size|label|labelClassName|name|remark|labelRemark|hint|submitOnChange|readOnly|validateOnChange|description|desc|descriptionClassName|mode|horizontal|inline|inputClassName|placeholder|required|validationErrors|validations|value|clearValueOnHidden|validateApi|count|half|allowClear|readonly|colors|inactiveColor|texts|textPosition|char|charClassName|textClassName|fixed|popOver|quickEdit|quickEditOnUpdate|copyable|sortable|searchable|toggled|width|align|classNameExpr|filterable|breakpoint|unique)$": {}
42142
42194
  }
42143
42195
  },
42144
42196
  {
@@ -42925,7 +42977,7 @@
42925
42977
  "$ref": "#/definitions/RatingControlSchema",
42926
42978
  "additionalProperties": false,
42927
42979
  "patternProperties": {
42928
- "^(className|$ref|disabled|disabledOn|hidden|hiddenOn|visible|visibleOn|type|size|label|labelClassName|name|remark|labelRemark|hint|submitOnChange|readOnly|validateOnChange|description|desc|descriptionClassName|mode|horizontal|inline|inputClassName|placeholder|required|validationErrors|validations|value|clearValueOnHidden|validateApi|count|half|allowClear|x|y|w|h|width|height|align|valign|gridClassName)$": {}
42980
+ "^(className|$ref|disabled|disabledOn|hidden|hiddenOn|visible|visibleOn|type|size|label|labelClassName|name|remark|labelRemark|hint|submitOnChange|readOnly|validateOnChange|description|desc|descriptionClassName|mode|horizontal|inline|inputClassName|placeholder|required|validationErrors|validations|value|clearValueOnHidden|validateApi|count|half|allowClear|readonly|colors|inactiveColor|texts|textPosition|char|charClassName|textClassName|x|y|w|h|width|height|align|valign|gridClassName)$": {}
42929
42981
  }
42930
42982
  },
42931
42983
  {
@@ -43712,7 +43764,7 @@
43712
43764
  "$ref": "#/definitions/RatingControlSchema",
43713
43765
  "additionalProperties": false,
43714
43766
  "patternProperties": {
43715
- "^(className|$ref|disabled|disabledOn|hidden|hiddenOn|visible|visibleOn|type|size|label|labelClassName|name|remark|labelRemark|hint|submitOnChange|readOnly|validateOnChange|description|desc|descriptionClassName|mode|horizontal|inline|inputClassName|placeholder|required|validationErrors|validations|value|clearValueOnHidden|validateApi|count|half|allowClear|rowClassName|cellClassName)$": {}
43767
+ "^(className|$ref|disabled|disabledOn|hidden|hiddenOn|visible|visibleOn|type|size|label|labelClassName|name|remark|labelRemark|hint|submitOnChange|readOnly|validateOnChange|description|desc|descriptionClassName|mode|horizontal|inline|inputClassName|placeholder|required|validationErrors|validations|value|clearValueOnHidden|validateApi|count|half|allowClear|readonly|colors|inactiveColor|texts|textPosition|char|charClassName|textClassName|rowClassName|cellClassName)$": {}
43716
43768
  }
43717
43769
  },
43718
43770
  {
@@ -44499,7 +44551,7 @@
44499
44551
  "$ref": "#/definitions/RatingControlSchema",
44500
44552
  "additionalProperties": false,
44501
44553
  "patternProperties": {
44502
- "^(className|$ref|disabled|disabledOn|hidden|hiddenOn|visible|visibleOn|type|size|label|labelClassName|name|remark|labelRemark|hint|submitOnChange|readOnly|validateOnChange|description|desc|descriptionClassName|mode|horizontal|inline|inputClassName|placeholder|required|validationErrors|validations|value|clearValueOnHidden|validateApi|count|half|allowClear|unique|columnClassName)$": {}
44554
+ "^(className|$ref|disabled|disabledOn|hidden|hiddenOn|visible|visibleOn|type|size|label|labelClassName|name|remark|labelRemark|hint|submitOnChange|readOnly|validateOnChange|description|desc|descriptionClassName|mode|horizontal|inline|inputClassName|placeholder|required|validationErrors|validations|value|clearValueOnHidden|validateApi|count|half|allowClear|readonly|colors|inactiveColor|texts|textPosition|char|charClassName|textClassName|unique|columnClassName)$": {}
44503
44555
  }
44504
44556
  },
44505
44557
  {
@@ -45286,7 +45338,7 @@
45286
45338
  "$ref": "#/definitions/RatingControlSchema",
45287
45339
  "additionalProperties": false,
45288
45340
  "patternProperties": {
45289
- "^(className|$ref|disabled|disabledOn|hidden|hiddenOn|visible|visibleOn|type|size|label|labelClassName|name|remark|labelRemark|hint|submitOnChange|readOnly|validateOnChange|description|desc|descriptionClassName|mode|horizontal|inline|inputClassName|placeholder|required|validationErrors|validations|value|clearValueOnHidden|validateApi|count|half|allowClear|columnClassName|columnRatio)$": {}
45341
+ "^(className|$ref|disabled|disabledOn|hidden|hiddenOn|visible|visibleOn|type|size|label|labelClassName|name|remark|labelRemark|hint|submitOnChange|readOnly|validateOnChange|description|desc|descriptionClassName|mode|horizontal|inline|inputClassName|placeholder|required|validationErrors|validations|value|clearValueOnHidden|validateApi|count|half|allowClear|readonly|colors|inactiveColor|texts|textPosition|char|charClassName|textClassName|columnClassName|columnRatio)$": {}
45290
45342
  }
45291
45343
  },
45292
45344
  {
@@ -1144,7 +1144,9 @@
1144
1144
  --ResultBox-value-bg: #f5f5f5;
1145
1145
  --ResultBox-value-color: #000;
1146
1146
 
1147
- --Rating-onActive-color: var(--info);
1147
+ --Rating-inactive-color: #e6e6e8;
1148
+ --Rating-star-margin: #{px2rem(8px)};
1149
+ --Rating-star-size: #{px2rem(24px)};
1148
1150
 
1149
1151
  --Satus-icon-width: var(--gap-lg);
1150
1152
  --Satus-icon-height: var(--Satus-icon-width);
@@ -32,7 +32,7 @@ $colors: (
32
32
  primary: #007bff,
33
33
  secondary: #6c757d,
34
34
  success: #28a745,
35
- info: #17a2b8,
35
+ info: #007bff,
36
36
  warning: #fad733,
37
37
  danger: #dc3545,
38
38
  light: #f8f9fa,
@@ -0,0 +1,122 @@
1
+ .#{$ns}FormulaEditor {
2
+ overflow: visible;
3
+ max-width: 100%;
4
+ box-sizing: content-box;
5
+
6
+ &-header {
7
+ width: 100%;
8
+ height: px2rem(40px);
9
+ line-height: px2rem(40px);
10
+ padding-left: px2rem(10px);
11
+ box-sizing: border-box;
12
+ background: #f3f8fb;
13
+ }
14
+
15
+ &-editor {
16
+ min-height: px2rem(238px);
17
+ max-height: px2rem(320px);
18
+ height: auto;
19
+ border: var(--Form-input-borderWidth) solid var(--Form-input-borderColor);
20
+ }
21
+
22
+ &.is-error &-editor {
23
+ border-color: var(--Form-input-onError-borderColor);
24
+ }
25
+
26
+ &.is-focused &-editor {
27
+ border-color: var(--Form-input-onFocused-borderColor);
28
+ }
29
+
30
+ &-settings {
31
+ display: flex;
32
+ flex-direction: row;
33
+ align-items: stretch;
34
+ justify-content: space-between;
35
+ max-height: px2rem(350px);
36
+ margin: 0 -5px;
37
+
38
+ > div {
39
+ flex: 1;
40
+ padding: 0 5px;
41
+ display: flex;
42
+ flex-direction: column;
43
+
44
+ > h3 {
45
+ padding: 10px 0;
46
+ margin: 0;
47
+ flex-shrink: 0;
48
+ }
49
+
50
+ > div {
51
+ flex: 1;
52
+ min-height: 0;
53
+ }
54
+ }
55
+ }
56
+
57
+ .cm-field,
58
+ .cm-func {
59
+ border-radius: 2px;
60
+ color: #fff;
61
+ margin: 0 1px;
62
+ padding: 0 2px;
63
+ }
64
+ .cm-field {
65
+ background: #007bff;
66
+ }
67
+ .cm-func {
68
+ background: #17a2b8;
69
+ }
70
+ }
71
+
72
+ .#{$ns}FormulaFuncList {
73
+ display: flex;
74
+ flex-direction: column;
75
+
76
+ & > &-searchBox {
77
+ display: flex;
78
+ width: auto;
79
+ flex-shrink: 0;
80
+ margin-bottom: px2rem(8px);
81
+ }
82
+
83
+ &-columns {
84
+ flex: 1;
85
+ min-height: 0;
86
+ overflow: auto;
87
+ display: flex;
88
+ flex-direction: row;
89
+ justify-content: flex-start;
90
+
91
+ > div:first-child {
92
+ min-width: 200px;
93
+ flex-shrink: 0;
94
+ }
95
+ }
96
+ &-funcItem {
97
+ padding: 0 10px;
98
+ cursor: pointer;
99
+
100
+ &.is-active {
101
+ color: var(--primary);
102
+ }
103
+ }
104
+ &-groupTitle {
105
+ padding: 5px 0;
106
+ background: transparent;
107
+ }
108
+ &-groupBody {
109
+ > div {
110
+ padding: 5px 0;
111
+ }
112
+ }
113
+ &-funcDetail {
114
+ padding: 10px 20px;
115
+ }
116
+ }
117
+
118
+ .#{$ns}FormulaPicker {
119
+ &-icon {
120
+ margin-left: auto;
121
+ }
122
+ }
@@ -0,0 +1,123 @@
1
+ @keyframes PopUpIn {
2
+ from {
3
+ height: 0;
4
+ }
5
+ }
6
+
7
+ @keyframes PopUpOut {
8
+ to {
9
+ height: 0;
10
+ }
11
+ }
12
+
13
+ @keyframes PopUpOpacityIn {
14
+ from {
15
+ opacity: 0;
16
+ }
17
+ }
18
+
19
+ @keyframes PopUpOpacityOut {
20
+ to {
21
+ opacity: 0;
22
+ }
23
+ }
24
+ .#{$ns}PopUp {
25
+ width: 100%;
26
+ position: fixed;
27
+ background: var(--PopOver-bg);
28
+ left: 0;
29
+ bottom: 0;
30
+ z-index: $zindex-popover;
31
+ padding: 0;
32
+ margin: 0;
33
+ font-weight: var(--fontWeightNormal);
34
+ letter-spacing: normal;
35
+ line-height: var(--lineHeightBase);
36
+ text-align: left;
37
+ text-align: start;
38
+ text-decoration: none;
39
+ text-shadow: none;
40
+ text-transform: none;
41
+ white-space: normal;
42
+ word-break: normal;
43
+ word-spacing: normal;
44
+ word-wrap: normal;
45
+ font-size: var(--fontSizeBase);
46
+ box-shadow: var(--boxShadow);
47
+ border: var(--borderWidth) solid var(--borderColor);
48
+ border-radius: var(--borderRadius);
49
+ overflow: hidden;
50
+ &.in,
51
+ &.out {
52
+ animation-duration: var(--animation-duration);
53
+ animation-fill-mode: both;
54
+ }
55
+
56
+ &.in {
57
+ animation-name: PopUpIn;
58
+ .#{$ns}PopUp-overlay{
59
+ animation-name: PopUpOpacityIn;
60
+ }
61
+ }
62
+
63
+ &.out {
64
+ animation-name: PopUpOut;
65
+ .#{$ns}PopUp-overlay{
66
+ animation-name: PopUpOpacityOut;
67
+ }
68
+ }
69
+
70
+ &-inner{
71
+ position: relative;
72
+ overflow: hidden;
73
+ height: 100%;
74
+ box-sizing: border-box;
75
+ background: $white;
76
+ padding-top: px2rem(36px);
77
+ }
78
+
79
+ &-closeWrap{
80
+ width: 100%;
81
+ position: absolute !important;
82
+ left: 0;
83
+ top: 0;
84
+ }
85
+
86
+ &-close{
87
+ width: px2rem(34px) !important;
88
+ height: px2rem(34px) !important;
89
+ padding: px2rem(12px);
90
+ cursor: pointer;
91
+ }
92
+
93
+ &-content{
94
+ overflow-y: auto;
95
+ height: 100%;
96
+ display: flex;
97
+ }
98
+
99
+ & > * {
100
+ position: relative;
101
+ z-index: 2;
102
+ }
103
+
104
+ &-overlay {
105
+ position: fixed !important;
106
+ top: 0;
107
+ left: 0;
108
+ right: 0;
109
+ z-index: 1;
110
+ bottom: 0;
111
+ background: rgba(0, 0, 0, 0.3);;
112
+ opacity: 1;
113
+ animation-duration: var(--animation-duration);
114
+ animation-fill-mode: both;
115
+ }
116
+
117
+ &--leftBottomLeftTop {
118
+ margin-top: px2rem(4px);
119
+ }
120
+ &--leftTopLeftBottom {
121
+ margin-top: px2rem(-4px);
122
+ }
123
+ }
@@ -140,3 +140,63 @@
140
140
  }
141
141
  }
142
142
  }
143
+
144
+
145
+ .#{$ns}Steps-mobile.#{$ns}Steps--horizontal {
146
+ .#{$ns}StepsItem {
147
+
148
+ &-container {
149
+ &Wrapper {
150
+ .#{$ns}StepsItem-body {
151
+ .#{$ns}StepsItem-title {
152
+ &::after {
153
+ display: none !important;
154
+ }
155
+ }
156
+ }
157
+
158
+ .#{$ns}StepsItem-body{
159
+ .#{$ns}StepsItem-title {
160
+ .#{$ns}StepsItem-subTitle {
161
+ padding-left: px2rem(5px);
162
+ }
163
+ }
164
+ }
165
+ }
166
+
167
+ &Icon {
168
+ position: relative;
169
+ display: block;
170
+
171
+ &:after {
172
+ content: '';
173
+ position: absolute;
174
+ right: 0;
175
+ top: px2rem(15px);
176
+ height: 1px;
177
+ left: px2rem(40px);
178
+ width: 99999px;
179
+ background-color: var(--Steps-line-bg);
180
+ }
181
+ }
182
+
183
+ &Icon.is-success {
184
+ &:after {
185
+ background-color: var(--Steps-line-success-bg);
186
+ }
187
+ }
188
+ }
189
+
190
+ &:last-child {
191
+ flex: 1;
192
+
193
+ .#{$ns}StepsItem-container {
194
+ &Icon {
195
+ &:after {
196
+ display: none !important;
197
+ }
198
+ }
199
+ }
200
+ }
201
+ }
202
+ }
@@ -10,6 +10,10 @@
10
10
  color: var(--ColorPicker-color);
11
11
  border-radius: var(--borderRadius);
12
12
 
13
+ &-popup{
14
+ height: 80vh;
15
+ }
16
+
13
17
  &:not(.is-disabled) {
14
18
  cursor: pointer;
15
19
 
@@ -127,6 +127,10 @@
127
127
  }
128
128
  }
129
129
 
130
+ .#{$ns}DateRangePicker-popup {
131
+ height: 90vh;
132
+ }
133
+
130
134
  @include media-breakpoint-up(sm) {
131
135
  .#{$ns}DateRangePicker-wrap {
132
136
  white-space: nowrap;
@@ -122,6 +122,9 @@
122
122
  }
123
123
  }
124
124
 
125
+ .#{$ns}DatePicker-popup {
126
+ height: 80vh;
127
+ }
125
128
  // override third-party styles
126
129
  .rdt {
127
130
  user-select: none;
@@ -1,31 +1,70 @@
1
1
  .#{$ns}Rating {
2
+ display: flex;
2
3
  position: relative;
3
- overflow: hidden;
4
- display: block;
5
- float: left;
6
- font-size: px2rem(24px);
7
- color: var(--dark);
8
- cursor: pointer;
9
-
10
- &.is-active {
11
- color: var(--Rating-onActive-color);
12
- }
4
+ align-items: center;
5
+ justify-content: flex-start;
6
+ flex-flow: row wrap;
13
7
 
14
- &.is-disabled {
15
- cursor: not-allowed;
16
- pointer-events: none;
8
+ & > ul {
9
+ display: flex;
10
+ padding: unset;
11
+ margin: unset;
12
+ align-items: center;
13
+ justify-content: flex-start;
14
+ flex-flow: row wrap;
17
15
  }
18
16
 
19
- &-half:before {
20
- position: absolute;
17
+ &-star {
18
+ position: relative;
19
+ margin-right: var(--Rating-star-margin);
21
20
  overflow: hidden;
22
21
  display: block;
23
- z-index: 1;
24
- top: 0;
25
- left: 0;
26
- width: 50%;
27
- content: attr(data-forhalf);
28
- color: var(--Rating-onActive-color);
22
+ font-size: var(--Rating-star-size);
23
+ line-height: 1;
24
+ cursor: pointer;
25
+ user-select: none;
26
+ color: var(--Rating-inactive-color);
27
+
28
+ &-half > svg.icon,
29
+ & > svg.icon {
30
+ display: block;
31
+ width: px2rem(24px);
32
+ height: px2rem(24px);
33
+ top: 0;
34
+ }
35
+
36
+ &:last-of-type {
37
+ margin-right: 0;
38
+ }
39
+
40
+ &.is-disabled {
41
+ cursor: not-allowed;
42
+ pointer-events: none;
43
+ }
44
+
45
+ &-half {
46
+ position: absolute;
47
+ overflow: hidden;
48
+ display: block;
49
+ z-index: 1;
50
+ top: 0;
51
+ left: 0;
52
+ width: 50%;
53
+ }
54
+ }
55
+
56
+ &-text {
57
+ font-size: var(--fontSizeSm);
58
+ color: var(--text-color);
59
+ font-weight: var(--fontWeightNormal);
60
+
61
+ &--left {
62
+ margin-right: var(--Rating-star-margin);
63
+ }
64
+
65
+ &--right {
66
+ margin-left: var(--Rating-star-margin);
67
+ }
29
68
  }
30
69
  }
31
70
 
@@ -15,6 +15,10 @@
15
15
  box-shadow: var(--Form-input-boxShadow);
16
16
  background: var(--Form-input-onFocused-bg);
17
17
  }
18
+
19
+ &-popup {
20
+ height: 80vh;
21
+ }
18
22
  }
19
23
 
20
24
  .#{$ns}TreeSelect-popover {
@@ -15,7 +15,7 @@ title: 背景色
15
15
  | bg-primary | background: #007bff |
16
16
  | bg-secondary | background: #6c757d |
17
17
  | bg-success | background: #28a745 |
18
- | bg-info | background: #17a2b8 |
18
+ | bg-info | background: #007bff |
19
19
  | bg-warning | background: #28a745 |
20
20
  | bg-danger | background: #dc3545 |
21
21
  | bg-light | background: #f8f9fa |
@@ -11,7 +11,7 @@ title: 边框颜色
11
11
  | border-primary | border-color: #007bff |
12
12
  | border-secondary | border-color: #6c757d |
13
13
  | border-success | border-color: #28a745 |
14
- | border-info | border-color: #17a2b8 |
14
+ | border-info | border-color: #007bff |
15
15
  | border-warning | border-color: #28a745 |
16
16
  | border-danger | border-color: #dc3545 |
17
17
  | border-light | border-color: #f8f9fa |
@@ -13,7 +13,7 @@ title: Text Color
13
13
  | text-primary | color: #007bff |
14
14
  | text-secondary | color: #6c757d |
15
15
  | text-success | color: #28a745 |
16
- | text-info | color: #17a2b8 |
16
+ | text-info | color: #007bff |
17
17
  | text-warning | color: #fad733 |
18
18
  | text-danger | color: #dc3545 |
19
19
  | text-light | color: #f8f9fa |
@@ -18,6 +18,7 @@
18
18
  @import '../components/tooltip';
19
19
  @import '../components/tpl';
20
20
  @import '../components/popover';
21
+ @import '../components/popup';
21
22
  @import '../components/picker-columns';
22
23
  @import '../components/toast';
23
24
  @import '../components/alert';
@@ -117,5 +118,6 @@
117
118
  @import '../components/markdown';
118
119
  @import '../components/link';
119
120
  @import '../components/mapping';
121
+ @import '../components/formula';
120
122
 
121
123
  @import '../utilities';
@@ -610,4 +610,6 @@ $L1: 0px 4px 6px 0px rgba(8, 14, 26, 0.06),
610
610
  --Tree-itemHeight: #{px2rem(32px)};
611
611
 
612
612
  --Progress-borderRadius: #{$R7};
613
+
614
+ --Rating-inactive-color: #{$G9};
613
615
  }