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.
- package/lib/Root.js +1 -1
- package/lib/Root.js.map +2 -2
- package/lib/Schema.d.ts +1 -1
- package/lib/Schema.js.map +1 -1
- package/lib/SchemaRenderer.js +4 -4
- package/lib/SchemaRenderer.js.map +2 -2
- package/lib/components/AsideNav.d.ts +1 -1
- package/lib/components/AsideNav.js.map +1 -1
- package/lib/components/Card.d.ts +20 -20
- package/lib/components/Card.js +1 -1
- package/lib/components/Card.js.map +2 -2
- package/lib/components/CodeMirror.d.ts +26 -0
- package/lib/components/CodeMirror.js +104 -0
- package/lib/components/CodeMirror.js.map +13 -0
- package/lib/components/Collapse.d.ts +22 -21
- package/lib/components/Collapse.js +5 -7
- package/lib/components/Collapse.js.map +2 -2
- package/lib/components/CollapseGroup.d.ts +20 -20
- package/lib/components/CollapseGroup.js +5 -3
- package/lib/components/CollapseGroup.js.map +2 -2
- package/lib/components/ColorPicker.d.ts +85 -84
- package/lib/components/ColorPicker.js +15 -3
- package/lib/components/ColorPicker.js.map +2 -2
- package/lib/components/DatePicker.d.ts +84 -84
- package/lib/components/DatePicker.js +7 -3
- package/lib/components/DatePicker.js.map +2 -2
- package/lib/components/DateRangePicker.d.ts +85 -84
- package/lib/components/DateRangePicker.js +5 -3
- package/lib/components/DateRangePicker.js.map +2 -2
- package/lib/components/LocationPicker.d.ts +84 -84
- package/lib/components/MonthRangePicker.d.ts +85 -84
- package/lib/components/MonthRangePicker.js +5 -3
- package/lib/components/MonthRangePicker.js.map +2 -2
- package/lib/components/PickerContainer.d.ts +2 -1
- package/lib/components/PickerContainer.js +3 -3
- package/lib/components/PickerContainer.js.map +2 -2
- package/lib/components/PopUp.d.ts +93 -0
- package/lib/components/PopUp.js +58 -0
- package/lib/components/PopUp.js.map +13 -0
- package/lib/components/Rating.d.ts +203 -73
- package/lib/components/Rating.js +147 -31
- package/lib/components/Rating.js.map +2 -2
- package/lib/components/Select.d.ts +237 -237
- package/lib/components/Steps.d.ts +1 -0
- package/lib/components/Steps.js +5 -3
- package/lib/components/Steps.js.map +2 -2
- package/lib/components/Tabs.d.ts +20 -20
- package/lib/components/TabsTransferPicker.js +1 -1
- package/lib/components/TabsTransferPicker.js.map +2 -2
- package/lib/components/TransferPicker.d.ts +0 -1
- package/lib/components/TransferPicker.js +2 -15
- package/lib/components/TransferPicker.js.map +2 -2
- package/lib/components/formula/Editor.d.ts +560 -0
- package/lib/components/formula/Editor.js +186 -0
- package/lib/components/formula/Editor.js.map +13 -0
- package/lib/components/formula/FuncList.d.ts +67 -0
- package/lib/components/formula/FuncList.js +35 -0
- package/lib/components/formula/FuncList.js.map +13 -0
- package/lib/components/formula/Picker.d.ts +493 -0
- package/lib/components/formula/Picker.js +48 -0
- package/lib/components/formula/Picker.js.map +13 -0
- package/lib/components/formula/VariableList.d.ts +9 -0
- package/lib/components/formula/VariableList.js +15 -0
- package/lib/components/formula/VariableList.js.map +13 -0
- package/lib/components/formula/plugin.d.ts +18 -0
- package/lib/components/formula/plugin.js +136 -0
- package/lib/components/formula/plugin.js.map +13 -0
- package/lib/components/icons.js +2 -0
- package/lib/components/icons.js.map +2 -2
- package/lib/components/index.d.ts +2 -1
- package/lib/components/index.js +4 -2
- package/lib/components/index.js.map +2 -2
- package/lib/helper.css +57 -57
- package/lib/helper.css.map +1 -1
- package/lib/icons/star.js +12 -0
- package/lib/index.d.ts +1 -0
- package/lib/index.js +2 -1
- package/lib/index.js.map +2 -2
- package/lib/renderers/Collapse.js +8 -2
- package/lib/renderers/Collapse.js.map +2 -2
- package/lib/renderers/CollapseGroup.js.map +2 -2
- package/lib/renderers/Form/InputCity.d.ts +84 -84
- package/lib/renderers/Form/InputColor.d.ts +84 -84
- package/lib/renderers/Form/InputColor.js +2 -2
- package/lib/renderers/Form/InputColor.js.map +2 -2
- package/lib/renderers/Form/InputDate.js +2 -2
- package/lib/renderers/Form/InputDate.js.map +2 -2
- package/lib/renderers/Form/InputDateRange.js +2 -2
- package/lib/renderers/Form/InputDateRange.js.map +2 -2
- package/lib/renderers/Form/InputFile.js +1 -1
- package/lib/renderers/Form/InputFile.js.map +2 -2
- package/lib/renderers/Form/InputFormula.d.ts +35 -0
- package/lib/renderers/Form/InputFormula.js +25 -0
- package/lib/renderers/Form/InputFormula.js.map +13 -0
- package/lib/renderers/Form/InputImage.js +1 -1
- package/lib/renderers/Form/InputImage.js.map +2 -2
- package/lib/renderers/Form/InputMonthRange.js +2 -2
- package/lib/renderers/Form/InputMonthRange.js.map +2 -2
- package/lib/renderers/Form/InputQuarterRange.js +2 -2
- package/lib/renderers/Form/InputQuarterRange.js.map +2 -2
- package/lib/renderers/Form/InputRating.d.ts +37 -0
- package/lib/renderers/Form/InputRating.js +6 -2
- package/lib/renderers/Form/InputRating.js.map +2 -2
- package/lib/renderers/Form/InputYearRange.js +2 -2
- package/lib/renderers/Form/InputYearRange.js.map +2 -2
- package/lib/renderers/Form/TreeSelect.d.ts +1 -0
- package/lib/renderers/Form/TreeSelect.js +11 -8
- package/lib/renderers/Form/TreeSelect.js.map +2 -2
- package/lib/renderers/Json.js +7 -0
- package/lib/renderers/Json.js.map +2 -2
- package/lib/renderers/Steps.js +2 -2
- package/lib/renderers/Steps.js.map +2 -2
- package/lib/store/formItem.js +11 -1
- package/lib/store/formItem.js.map +2 -2
- package/lib/themes/ang-ie11.css +305 -10
- package/lib/themes/ang.css +305 -10
- package/lib/themes/ang.css.map +1 -1
- package/lib/themes/antd-ie11.css +305 -10
- package/lib/themes/antd.css +305 -10
- package/lib/themes/antd.css.map +1 -1
- package/lib/themes/cxd-ie11.css +306 -10
- package/lib/themes/cxd.css +306 -10
- package/lib/themes/cxd.css.map +1 -1
- package/lib/themes/dark-ie11.css +305 -10
- package/lib/themes/dark.css +305 -10
- package/lib/themes/dark.css.map +1 -1
- package/lib/themes/default.css +306 -10
- package/lib/themes/default.css.map +1 -1
- package/lib/utils/api.js +2 -2
- package/lib/utils/api.js.map +2 -2
- package/lib/utils/helper.js +2 -7
- package/lib/utils/helper.js.map +2 -2
- package/package.json +5 -3
- package/schema.json +59 -7
- package/scss/_properties.scss +3 -1
- package/scss/_variables.scss +1 -1
- package/scss/components/_formula.scss +122 -0
- package/scss/components/_popup.scss +123 -0
- package/scss/components/_steps.scss +60 -0
- package/scss/components/form/_color.scss +4 -0
- package/scss/components/form/_date-range.scss +4 -0
- package/scss/components/form/_date.scss +3 -0
- package/scss/components/form/_rating.scss +60 -21
- package/scss/components/form/_tree-select.scss +4 -0
- package/scss/helper/background/_background-color.scss +1 -1
- package/scss/helper/border/_border-color.scss +1 -1
- package/scss/helper/typography/_text-color.scss +1 -1
- package/scss/themes/_common.scss +2 -0
- package/scss/themes/_cxd-variables.scss +2 -0
- package/sdk/ang-ie11.css +922 -8
- package/sdk/ang.css +926 -10
- package/sdk/antd-ie11.css +922 -8
- package/sdk/antd.css +926 -10
- package/sdk/charts.js +17 -17
- package/sdk/codemirror.js +14 -0
- package/sdk/color-picker.js +65 -69
- package/sdk/cropperjs.js +3 -3
- package/sdk/cxd-ie11.css +922 -8
- package/sdk/cxd.css +927 -10
- package/sdk/dark-ie11.css +922 -8
- package/sdk/dark.css +926 -10
- package/sdk/exceljs.js +1 -1
- package/sdk/helper.css +57 -57
- package/sdk/helper.css.map +1 -1
- package/sdk/markdown.js +69 -69
- package/sdk/papaparse.js +1 -1
- package/sdk/renderers/Form/CityDB.js +1 -1
- package/sdk/rest.js +20 -16
- package/sdk/rich-text.js +62 -62
- package/sdk/sdk-ie11.css +922 -8
- package/sdk/sdk.css +927 -10
- package/sdk/sdk.js +1345 -1235
- package/sdk/thirds/hls.js/hls.js +18 -18
- package/sdk/thirds/mpegts.js/mpegts.js +2 -2
- package/sdk/tinymce.js +57 -57
- package/src/Root.tsx +1 -0
- package/src/Schema.ts +1 -0
- package/src/SchemaRenderer.tsx +4 -0
- package/src/components/AsideNav.tsx +1 -1
- package/src/components/Card.tsx +2 -2
- package/src/components/CodeMirror.tsx +99 -0
- package/src/components/Collapse.tsx +22 -14
- package/src/components/CollapseGroup.tsx +9 -11
- package/src/components/ColorPicker.tsx +45 -3
- package/src/components/DatePicker.tsx +33 -3
- package/src/components/DateRangePicker.tsx +17 -3
- package/src/components/MonthRangePicker.tsx +18 -4
- package/src/components/PickerContainer.tsx +10 -6
- package/src/components/PopUp.tsx +133 -0
- package/src/components/Rating.tsx +235 -47
- package/src/components/Steps.tsx +8 -3
- package/src/components/TabsTransferPicker.tsx +1 -1
- package/src/components/TransferPicker.tsx +1 -11
- package/src/components/formula/Editor.tsx +261 -0
- package/src/components/formula/FuncList.tsx +82 -0
- package/src/components/formula/Picker.tsx +86 -0
- package/src/components/formula/VariableList.tsx +49 -0
- package/src/components/formula/plugin.ts +177 -0
- package/src/components/icons.tsx +2 -0
- package/src/components/index.tsx +2 -0
- package/src/icons/star.svg +12 -0
- package/src/index.tsx +1 -0
- package/src/renderers/Collapse.tsx +27 -27
- package/src/renderers/CollapseGroup.tsx +13 -12
- package/src/renderers/Form/InputColor.tsx +2 -3
- package/src/renderers/Form/InputDate.tsx +2 -0
- package/src/renderers/Form/InputDateRange.tsx +2 -0
- package/src/renderers/Form/InputFile.tsx +1 -1
- package/src/renderers/Form/InputFormula.tsx +75 -0
- package/src/renderers/Form/InputImage.tsx +1 -1
- package/src/renderers/Form/InputMonthRange.tsx +2 -0
- package/src/renderers/Form/InputQuarterRange.tsx +2 -0
- package/src/renderers/Form/InputRating.tsx +66 -3
- package/src/renderers/Form/InputYearRange.tsx +2 -0
- package/src/renderers/Form/TreeSelect.tsx +82 -63
- package/src/renderers/Json.tsx +5 -0
- package/src/renderers/Steps.tsx +4 -2
- package/src/store/formItem.ts +15 -0
- package/src/utils/api.ts +5 -2
- 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.
|
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.
|
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
|
{
|
package/scss/_properties.scss
CHANGED
@@ -1144,7 +1144,9 @@
|
|
1144
1144
|
--ResultBox-value-bg: #f5f5f5;
|
1145
1145
|
--ResultBox-value-color: #000;
|
1146
1146
|
|
1147
|
-
--Rating-
|
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);
|
package/scss/_variables.scss
CHANGED
@@ -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
|
+
}
|
@@ -1,31 +1,70 @@
|
|
1
1
|
.#{$ns}Rating {
|
2
|
+
display: flex;
|
2
3
|
position: relative;
|
3
|
-
|
4
|
-
|
5
|
-
|
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
|
-
|
15
|
-
|
16
|
-
|
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
|
-
&-
|
20
|
-
position:
|
17
|
+
&-star {
|
18
|
+
position: relative;
|
19
|
+
margin-right: var(--Rating-star-margin);
|
21
20
|
overflow: hidden;
|
22
21
|
display: block;
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
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,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: #
|
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: #
|
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: #
|
16
|
+
| text-info | color: #007bff |
|
17
17
|
| text-warning | color: #fad733 |
|
18
18
|
| text-danger | color: #dc3545 |
|
19
19
|
| text-light | color: #f8f9fa |
|
package/scss/themes/_common.scss
CHANGED
@@ -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';
|