amis 1.8.0-beta.16 → 1.8.0-beta.17

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 (75) hide show
  1. package/lib/components/TabsTransfer.d.ts +22 -3
  2. package/lib/components/TabsTransfer.js +149 -42
  3. package/lib/components/TabsTransfer.js.map +2 -2
  4. package/lib/components/formula/Editor.js +4 -4
  5. package/lib/components/formula/Editor.js.map +2 -2
  6. package/lib/components/formula/VariableList.d.ts +63 -4
  7. package/lib/components/formula/VariableList.js +23 -8
  8. package/lib/components/formula/VariableList.js.map +2 -2
  9. package/lib/index.js +1 -1
  10. package/lib/renderers/Form/NestedSelect.d.ts +1 -1
  11. package/lib/renderers/Form/NestedSelect.js +7 -2
  12. package/lib/renderers/Form/NestedSelect.js.map +2 -2
  13. package/lib/renderers/Form/TabsTransfer.d.ts +6 -1
  14. package/lib/renderers/Form/TabsTransfer.js +155 -6
  15. package/lib/renderers/Form/TabsTransfer.js.map +2 -2
  16. package/lib/renderers/Form/TabsTransferPicker.d.ts +2 -2
  17. package/lib/renderers/Form/TabsTransferPicker.js +4 -4
  18. package/lib/renderers/Form/TabsTransferPicker.js.map +2 -2
  19. package/lib/renderers/Form/index.js +6 -2
  20. package/lib/renderers/Form/index.js.map +2 -2
  21. package/lib/renderers/Markdown.js +4 -3
  22. package/lib/renderers/Markdown.js.map +2 -2
  23. package/lib/themes/ang-ie11.css +92 -14
  24. package/lib/themes/ang.css +94 -14
  25. package/lib/themes/ang.css.map +1 -1
  26. package/lib/themes/antd-ie11.css +92 -14
  27. package/lib/themes/antd.css +94 -14
  28. package/lib/themes/antd.css.map +1 -1
  29. package/lib/themes/cxd-ie11.css +92 -14
  30. package/lib/themes/cxd.css +94 -14
  31. package/lib/themes/cxd.css.map +1 -1
  32. package/lib/themes/dark-ie11.css +92 -14
  33. package/lib/themes/dark.css +94 -14
  34. package/lib/themes/dark.css.map +1 -1
  35. package/lib/themes/default-ie11.css +92 -14
  36. package/lib/themes/default.css +94 -14
  37. package/lib/themes/default.css.map +1 -1
  38. package/package.json +1 -1
  39. package/schema.json +1 -1
  40. package/scss/_properties.scss +3 -0
  41. package/scss/components/_formula.scss +77 -12
  42. package/scss/components/form/_transfer.scss +21 -0
  43. package/sdk/ang-ie11.css +109 -14
  44. package/sdk/ang.css +111 -14
  45. package/sdk/antd-ie11.css +109 -14
  46. package/sdk/antd.css +111 -14
  47. package/sdk/barcode.js +51 -51
  48. package/sdk/charts.js +14 -14
  49. package/sdk/codemirror.js +7 -7
  50. package/sdk/color-picker.js +65 -65
  51. package/sdk/cropperjs.js +2 -2
  52. package/sdk/cxd-ie11.css +109 -14
  53. package/sdk/cxd.css +111 -14
  54. package/sdk/dark-ie11.css +109 -14
  55. package/sdk/dark.css +111 -14
  56. package/sdk/exceljs.js +1 -1
  57. package/sdk/markdown.js +69 -69
  58. package/sdk/papaparse.js +1 -1
  59. package/sdk/renderers/Form/CityDB.js +1 -1
  60. package/sdk/rest.js +17 -17
  61. package/sdk/rich-text.js +62 -62
  62. package/sdk/sdk-ie11.css +109 -14
  63. package/sdk/sdk.css +111 -14
  64. package/sdk/sdk.js +1268 -1268
  65. package/sdk/thirds/hls.js/hls.js +1 -1
  66. package/sdk/thirds/mpegts.js/mpegts.js +1 -1
  67. package/sdk/tinymce.js +57 -57
  68. package/src/components/TabsTransfer.tsx +253 -143
  69. package/src/components/formula/Editor.tsx +12 -5
  70. package/src/components/formula/VariableList.tsx +55 -21
  71. package/src/renderers/Form/NestedSelect.tsx +11 -2
  72. package/src/renderers/Form/TabsTransfer.tsx +174 -11
  73. package/src/renderers/Form/TabsTransferPicker.tsx +5 -10
  74. package/src/renderers/Form/index.tsx +37 -16
  75. package/src/renderers/Markdown.tsx +4 -5
package/sdk/dark-ie11.css CHANGED
@@ -43005,6 +43005,25 @@ readers do not read off random characters that represent icons */
43005
43005
  height: 40px;
43006
43006
  }
43007
43007
 
43008
+ .amis-scope .dark-TabsTransfer-tabs .dark-Tabs-linksContainer {
43009
+ padding-left: 1.25rem;
43010
+ padding-top: 0.5rem;
43011
+ background-color: #f7f7f9;
43012
+ }
43013
+
43014
+ .amis-scope .dark-TabsTransfer-search {
43015
+ margin: 0.5rem 0.5rem;
43016
+ }
43017
+
43018
+ .amis-scope .dark-TabsTransfer-search .dark-InputBox {
43019
+ border: 1px solid #e8e9eb;
43020
+ }
43021
+
43022
+ .amis-scope .dark-TabsTransfer .dark-Transfer-result .dark-Transfer-title {
43023
+ height: 2.5rem;
43024
+ line-height: 2.5rem;
43025
+ }
43026
+
43008
43027
  .amis-scope .dark-TabsTransfer-placeholder {
43009
43028
  height: 1.875rem;
43010
43029
  line-height: 1.4285714286;
@@ -44701,7 +44720,7 @@ readers do not read off random characters that represent icons */
44701
44720
  box-sizing: border-box;
44702
44721
  background: #fafafa;
44703
44722
  border-radius: 0.142rem 0.142rem 0 0;
44704
- border-bottom: 0.0625rem solid #656565;
44723
+ border-bottom: none;
44705
44724
  font-weight: 500;
44706
44725
  }
44707
44726
 
@@ -44745,11 +44764,11 @@ readers do not read off random characters that represent icons */
44745
44764
 
44746
44765
  .amis-scope .dark-FormulaEditor-panel {
44747
44766
  display: flex;
44767
+ flex: 1;
44748
44768
  flex-flow: column nowrap;
44749
44769
  justify-content: space-between;
44750
44770
  align-items: stretch;
44751
44771
  height: 15.625rem;
44752
- width: 13.75rem;
44753
44772
  border-radius: 0.142rem;
44754
44773
  border: 0.0625rem solid #656565;
44755
44774
  }
@@ -44770,7 +44789,7 @@ readers do not read off random characters that represent icons */
44770
44789
  box-sizing: border-box;
44771
44790
  background: #fafafa;
44772
44791
  border-radius: 0.142rem 0.142rem 0 0;
44773
- border-bottom: 0.0625rem solid #656565;
44792
+ border-bottom: none;
44774
44793
  font-weight: 500;
44775
44794
  }
44776
44795
 
@@ -44781,42 +44800,114 @@ readers do not read off random characters that represent icons */
44781
44800
  max-height: 13.75rem;
44782
44801
  }
44783
44802
 
44803
+ .amis-scope .dark-FormulaEditor-panel-body--tabs {
44804
+ max-height: 15.625rem;
44805
+ }
44806
+
44784
44807
  .amis-scope .dark-FormulaEditor-VariableList-root {
44785
- max-height: 13.75rem;
44808
+ max-height: 100%;
44809
+ }
44810
+
44811
+ .amis-scope .dark-FormulaEditor-VariableList-body {
44812
+ display: flex;
44813
+ flex-flow: column nowrap;
44814
+ max-height: 100%;
44786
44815
  }
44787
44816
 
44788
- .amis-scope .dark-FormulaEditor-VariableList-root.is-scrollable {
44817
+ .amis-scope .dark-FormulaEditor-VariableList-base {
44818
+ --Form-input-fontSize: var(--fontSizeSm);
44819
+ --gap-sm: 0.625rem;
44820
+ flex: 1;
44821
+ max-height: 100%;
44822
+ }
44823
+
44824
+ .amis-scope .dark-FormulaEditor-VariableList-base.is-scrollable {
44789
44825
  overflow-x: hidden;
44790
44826
  overflow-y: auto;
44791
44827
  }
44792
44828
 
44793
- .amis-scope .dark-FormulaEditor-VariableList-root.is-scrollable::-webkit-scrollbar {
44829
+ .amis-scope .dark-FormulaEditor-VariableList-base.is-scrollable::-webkit-scrollbar {
44794
44830
  width: 6px;
44795
44831
  height: 6px;
44796
44832
  }
44797
44833
 
44798
- .amis-scope .dark-FormulaEditor-VariableList-root.is-scrollable::-webkit-scrollbar-thumb {
44834
+ .amis-scope .dark-FormulaEditor-VariableList-base.is-scrollable::-webkit-scrollbar-thumb {
44799
44835
  border-radius: 3px;
44800
44836
  background: rgba(0, 0, 0, 0.3);
44801
44837
  }
44802
44838
 
44803
- .amis-scope .dark-FormulaEditor-VariableList-base {
44804
- --Form-input-fontSize: var(--fontSizeSm);
44805
- max-width: inherit;
44806
- overflow: hidden;
44839
+ .amis-scope .dark-FormulaEditor-VariableList-searchBox {
44840
+ display: flex;
44841
+ width: auto;
44842
+ flex-shrink: 0;
44843
+ padding: 0.5rem;
44844
+ }
44845
+
44846
+ .amis-scope .dark-FormulaEditor-VariableList-searchBox > div {
44847
+ flex: 1;
44848
+ font-size: 0.75rem;
44849
+ height: 1.5rem;
44807
44850
  }
44808
44851
 
44809
44852
  .amis-scope .dark-FormulaEditor-VariableList-tabs {
44810
44853
  --Tabs-linkFontSize: var(--fontSizeSm);
44811
44854
  --Tabs--card-linkPadding: 0.3125rem;
44812
- max-height: 13.75rem;
44855
+ max-height: 100%;
44813
44856
  display: flex;
44814
44857
  flex-flow: column nowrap;
44815
44858
  justify-content: space-between;
44816
44859
  }
44817
44860
 
44818
- .amis-scope .dark-FormulaEditor-VariableList-tabs > ul {
44819
- border-top: none;
44861
+ .amis-scope .dark-FormulaEditor-VariableList-tabs .dark-Tabs-content {
44862
+ padding: 0;
44863
+ }
44864
+
44865
+ .amis-scope .dark-FormulaEditor-VariableList-tabs .dark-Tabs-content .dark-FormulaEditor-VariableList-sub .dark-FormulaEditor-VariableList-body {
44866
+ max-height: 13.75rem;
44867
+ overflow-y: hidden;
44868
+ }
44869
+
44870
+ .amis-scope .dark-FormulaEditor-VariableList-tabs .dark-Tabs-content .dark-FormulaEditor-VariableList-sub-FormulaEditor-VariableList-base {
44871
+ overflow-x: hidden;
44872
+ overflow-y: auto;
44873
+ }
44874
+
44875
+ .amis-scope .dark-FormulaEditor-VariableList-tabs .dark-Tabs-content .dark-FormulaEditor-VariableList-sub-FormulaEditor-VariableList-base::-webkit-scrollbar {
44876
+ width: 6px;
44877
+ height: 6px;
44878
+ }
44879
+
44880
+ .amis-scope .dark-FormulaEditor-VariableList-tabs .dark-Tabs-content .dark-FormulaEditor-VariableList-sub-FormulaEditor-VariableList-base::-webkit-scrollbar-thumb {
44881
+ border-radius: 3px;
44882
+ background: rgba(0, 0, 0, 0.3);
44883
+ }
44884
+
44885
+ .amis-scope .dark-FormulaEditor-VariableList-tabs .dark-Tabs-linksContainer-wrapper {
44886
+ width: 100%;
44887
+ height: 1.875rem;
44888
+ line-height: 1.875rem;
44889
+ padding: 0 0.625rem;
44890
+ box-sizing: border-box;
44891
+ background: #fafafa;
44892
+ border-radius: 0.142rem 0.142rem 0 0;
44893
+ border-bottom: none;
44894
+ font-weight: 500;
44895
+ max-height: 1.875rem;
44896
+ min-height: 1.875rem;
44897
+ }
44898
+
44899
+ .amis-scope .dark-FormulaEditor-VariableList-tabs .dark-Tabs-linksContainer-wrapper ul.dark-Tabs-links > li {
44900
+ height: 30px;
44901
+ line-height: 30px;
44902
+ }
44903
+
44904
+ .amis-scope .dark-FormulaEditor-VariableList-tabs .dark-Tabs-linksContainer-wrapper ul.dark-Tabs-links > li > a {
44905
+ margin: 0;
44906
+ padding: 0;
44907
+ }
44908
+
44909
+ .amis-scope .dark-FormulaEditor-VariableList-tabs .dark-Tabs-linksContainer--overflow > div {
44910
+ margin: 0;
44820
44911
  }
44821
44912
 
44822
44913
  .amis-scope .dark-FormulaEditor-VariableList-tabs > div {
@@ -44869,6 +44960,10 @@ readers do not read off random characters that represent icons */
44869
44960
  flex: 1;
44870
44961
  }
44871
44962
 
44963
+ .amis-scope .dark-FormulaEditor-FuncList .dark-FormulaEditor-panel {
44964
+ width: 11.75rem;
44965
+ }
44966
+
44872
44967
  .amis-scope .dark-FormulaEditor-FuncList:not(:last-child) {
44873
44968
  margin-right: 0.625rem;
44874
44969
  }
package/sdk/dark.css CHANGED
@@ -13442,6 +13442,8 @@ readers do not read off random characters that represent icons */
13442
13442
  --Tooltip-title-paddingY: var(--gap-sm);
13443
13443
  --Transfer-title-bg: #f6f8f8;
13444
13444
  --Transfer-selection-maxHeight: 21.875rem;
13445
+ --TabsTransfer-title-bg: #f7f7f9;
13446
+ --TabsTransfer-border-color: #e8e9eb;
13445
13447
  --Tree-indent: var(--gap-md);
13446
13448
  --Tree-inputHeight: calc(var(--Form-input-height) * 0.85);
13447
13449
  --Tree-item-onHover-bg: rgba(0, 126, 255, 0.08);
@@ -44308,6 +44310,25 @@ readers do not read off random characters that represent icons */
44308
44310
  height: 40px;
44309
44311
  }
44310
44312
 
44313
+ .amis-scope .dark-TabsTransfer-tabs .dark-Tabs-linksContainer {
44314
+ padding-left: 1.25rem;
44315
+ padding-top: 0.5rem;
44316
+ background-color: var(--TabsTransfer-title-bg);
44317
+ }
44318
+
44319
+ .amis-scope .dark-TabsTransfer-search {
44320
+ margin: var(--gap-sm) var(--gap-sm);
44321
+ }
44322
+
44323
+ .amis-scope .dark-TabsTransfer-search .dark-InputBox {
44324
+ border: 1px solid var(--TabsTransfer-border-color);
44325
+ }
44326
+
44327
+ .amis-scope .dark-TabsTransfer .dark-Transfer-result .dark-Transfer-title {
44328
+ height: 2.5rem;
44329
+ line-height: 2.5rem;
44330
+ }
44331
+
44311
44332
  .amis-scope .dark-TabsTransfer-placeholder {
44312
44333
  height: var(--Form-input-height);
44313
44334
  line-height: var(--Form-input-lineHeight);
@@ -45939,7 +45960,7 @@ readers do not read off random characters that represent icons */
45939
45960
  box-sizing: border-box;
45940
45961
  background: var(--InputFormula-header-bgColor);
45941
45962
  border-radius: var(--borderRadius) var(--borderRadius) 0 0;
45942
- border-bottom: var(--Form-input-borderWidth) solid var(--Form-input-borderColor);
45963
+ border-bottom: none;
45943
45964
  font-weight: 500;
45944
45965
  }
45945
45966
 
@@ -45983,11 +46004,11 @@ readers do not read off random characters that represent icons */
45983
46004
 
45984
46005
  .amis-scope .dark-FormulaEditor-panel {
45985
46006
  display: flex;
46007
+ flex: 1;
45986
46008
  flex-flow: column nowrap;
45987
46009
  justify-content: space-between;
45988
46010
  align-items: stretch;
45989
46011
  height: 15.625rem;
45990
- width: 13.75rem;
45991
46012
  border-radius: var(--borderRadius);
45992
46013
  border: var(--Form-input-borderWidth) solid var(--Form-input-borderColor);
45993
46014
  }
@@ -46008,7 +46029,7 @@ readers do not read off random characters that represent icons */
46008
46029
  box-sizing: border-box;
46009
46030
  background: var(--InputFormula-header-bgColor);
46010
46031
  border-radius: var(--borderRadius) var(--borderRadius) 0 0;
46011
- border-bottom: var(--Form-input-borderWidth) solid var(--Form-input-borderColor);
46032
+ border-bottom: none;
46012
46033
  font-weight: 500;
46013
46034
  }
46014
46035
 
@@ -46019,42 +46040,114 @@ readers do not read off random characters that represent icons */
46019
46040
  max-height: 13.75rem;
46020
46041
  }
46021
46042
 
46043
+ .amis-scope .dark-FormulaEditor-panel-body--tabs {
46044
+ max-height: 15.625rem;
46045
+ }
46046
+
46022
46047
  .amis-scope .dark-FormulaEditor-VariableList-root {
46023
- max-height: 13.75rem;
46048
+ max-height: 100%;
46024
46049
  }
46025
46050
 
46026
- .amis-scope .dark-FormulaEditor-VariableList-root.is-scrollable {
46051
+ .amis-scope .dark-FormulaEditor-VariableList-body {
46052
+ display: flex;
46053
+ flex-flow: column nowrap;
46054
+ max-height: 100%;
46055
+ }
46056
+
46057
+ .amis-scope .dark-FormulaEditor-VariableList-base {
46058
+ --Form-input-fontSize: var(--fontSizeSm);
46059
+ --gap-sm: 0.625rem;
46060
+ flex: 1;
46061
+ max-height: 100%;
46062
+ }
46063
+
46064
+ .amis-scope .dark-FormulaEditor-VariableList-base.is-scrollable {
46027
46065
  overflow-x: hidden;
46028
46066
  overflow-y: auto;
46029
46067
  }
46030
46068
 
46031
- .amis-scope .dark-FormulaEditor-VariableList-root.is-scrollable::-webkit-scrollbar {
46069
+ .amis-scope .dark-FormulaEditor-VariableList-base.is-scrollable::-webkit-scrollbar {
46032
46070
  width: 6px;
46033
46071
  height: 6px;
46034
46072
  }
46035
46073
 
46036
- .amis-scope .dark-FormulaEditor-VariableList-root.is-scrollable::-webkit-scrollbar-thumb {
46074
+ .amis-scope .dark-FormulaEditor-VariableList-base.is-scrollable::-webkit-scrollbar-thumb {
46037
46075
  border-radius: 3px;
46038
46076
  background: rgba(0, 0, 0, 0.3);
46039
46077
  }
46040
46078
 
46041
- .amis-scope .dark-FormulaEditor-VariableList-base {
46042
- --Form-input-fontSize: var(--fontSizeSm);
46043
- max-width: inherit;
46044
- overflow: hidden;
46079
+ .amis-scope .dark-FormulaEditor-VariableList-searchBox {
46080
+ display: flex;
46081
+ width: auto;
46082
+ flex-shrink: 0;
46083
+ padding: 0.5rem;
46084
+ }
46085
+
46086
+ .amis-scope .dark-FormulaEditor-VariableList-searchBox > div {
46087
+ flex: 1;
46088
+ font-size: var(--fontSizeSm);
46089
+ height: var(--gap-xl);
46045
46090
  }
46046
46091
 
46047
46092
  .amis-scope .dark-FormulaEditor-VariableList-tabs {
46048
46093
  --Tabs-linkFontSize: var(--fontSizeSm);
46049
46094
  --Tabs--card-linkPadding: 0.3125rem;
46050
- max-height: 13.75rem;
46095
+ max-height: 100%;
46051
46096
  display: flex;
46052
46097
  flex-flow: column nowrap;
46053
46098
  justify-content: space-between;
46054
46099
  }
46055
46100
 
46056
- .amis-scope .dark-FormulaEditor-VariableList-tabs > ul {
46057
- border-top: none;
46101
+ .amis-scope .dark-FormulaEditor-VariableList-tabs .dark-Tabs-content {
46102
+ padding: 0;
46103
+ }
46104
+
46105
+ .amis-scope .dark-FormulaEditor-VariableList-tabs .dark-Tabs-content .dark-FormulaEditor-VariableList-sub .dark-FormulaEditor-VariableList-body {
46106
+ max-height: 13.75rem;
46107
+ overflow-y: hidden;
46108
+ }
46109
+
46110
+ .amis-scope .dark-FormulaEditor-VariableList-tabs .dark-Tabs-content .dark-FormulaEditor-VariableList-sub-FormulaEditor-VariableList-base {
46111
+ overflow-x: hidden;
46112
+ overflow-y: auto;
46113
+ }
46114
+
46115
+ .amis-scope .dark-FormulaEditor-VariableList-tabs .dark-Tabs-content .dark-FormulaEditor-VariableList-sub-FormulaEditor-VariableList-base::-webkit-scrollbar {
46116
+ width: 6px;
46117
+ height: 6px;
46118
+ }
46119
+
46120
+ .amis-scope .dark-FormulaEditor-VariableList-tabs .dark-Tabs-content .dark-FormulaEditor-VariableList-sub-FormulaEditor-VariableList-base::-webkit-scrollbar-thumb {
46121
+ border-radius: 3px;
46122
+ background: rgba(0, 0, 0, 0.3);
46123
+ }
46124
+
46125
+ .amis-scope .dark-FormulaEditor-VariableList-tabs .dark-Tabs-linksContainer-wrapper {
46126
+ width: 100%;
46127
+ height: 1.875rem;
46128
+ line-height: 1.875rem;
46129
+ padding: 0 0.625rem;
46130
+ box-sizing: border-box;
46131
+ background: var(--InputFormula-header-bgColor);
46132
+ border-radius: var(--borderRadius) var(--borderRadius) 0 0;
46133
+ border-bottom: none;
46134
+ font-weight: 500;
46135
+ max-height: 1.875rem;
46136
+ min-height: 1.875rem;
46137
+ }
46138
+
46139
+ .amis-scope .dark-FormulaEditor-VariableList-tabs .dark-Tabs-linksContainer-wrapper ul.dark-Tabs-links > li {
46140
+ height: 30px;
46141
+ line-height: 30px;
46142
+ }
46143
+
46144
+ .amis-scope .dark-FormulaEditor-VariableList-tabs .dark-Tabs-linksContainer-wrapper ul.dark-Tabs-links > li > a {
46145
+ margin: 0;
46146
+ padding: 0;
46147
+ }
46148
+
46149
+ .amis-scope .dark-FormulaEditor-VariableList-tabs .dark-Tabs-linksContainer--overflow > div {
46150
+ margin: 0;
46058
46151
  }
46059
46152
 
46060
46153
  .amis-scope .dark-FormulaEditor-VariableList-tabs > div {
@@ -46107,6 +46200,10 @@ readers do not read off random characters that represent icons */
46107
46200
  flex: 1;
46108
46201
  }
46109
46202
 
46203
+ .amis-scope .dark-FormulaEditor-FuncList .dark-FormulaEditor-panel {
46204
+ width: 11.75rem;
46205
+ }
46206
+
46110
46207
  .amis-scope .dark-FormulaEditor-FuncList:not(:last-child) {
46111
46208
  margin-right: 0.625rem;
46112
46209
  }
package/sdk/exceljs.js CHANGED
@@ -1,5 +1,5 @@
1
1
  ;/*!node_modules/exceljs/dist/exceljs.min.js*/
2
- amis.define('a7c33b2', function(require, exports, module, define) {
2
+ amis.define('2bbf385', function(require, exports, module, define) {
3
3
 
4
4
  /*! ExcelJS 21-08-2021 */
5
5