amis 1.5.3 → 1.5.4

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 (119) hide show
  1. package/README.md +5 -0
  2. package/lib/components/Card.d.ts +96 -0
  3. package/lib/components/Card.js +85 -0
  4. package/lib/components/Card.js.map +13 -0
  5. package/lib/components/DatePicker.d.ts +85 -84
  6. package/lib/components/DatePicker.js.map +2 -2
  7. package/lib/components/DateRangePicker.d.ts +84 -84
  8. package/lib/components/MonthRangePicker.d.ts +84 -84
  9. package/lib/components/Picker.d.ts +503 -0
  10. package/lib/components/Picker.js +65 -0
  11. package/lib/components/Picker.js.map +13 -0
  12. package/lib/components/PickerColumn.d.ts +29 -459
  13. package/lib/components/PickerColumn.js +35 -44
  14. package/lib/components/PickerColumn.js.map +2 -2
  15. package/lib/components/Select.d.ts +238 -238
  16. package/lib/components/Select.js +9 -2
  17. package/lib/components/Select.js.map +2 -2
  18. package/lib/components/Selection.js +1 -4
  19. package/lib/components/Selection.js.map +2 -2
  20. package/lib/components/Switch.d.ts +6 -6
  21. package/lib/components/Switch.js.map +2 -2
  22. package/lib/components/calendar/Calendar.js +15 -0
  23. package/lib/components/calendar/Calendar.js.map +2 -2
  24. package/lib/components/calendar/DaysView.js +4 -4
  25. package/lib/components/calendar/DaysView.js.map +2 -2
  26. package/lib/components/calendar/TimeView.d.ts +10 -0
  27. package/lib/components/calendar/TimeView.js +55 -2
  28. package/lib/components/calendar/TimeView.js.map +2 -2
  29. package/lib/components/calendar/YearsView.d.ts +9 -0
  30. package/lib/components/calendar/YearsView.js +19 -0
  31. package/lib/components/calendar/YearsView.js.map +2 -2
  32. package/lib/index.js +1 -1
  33. package/lib/renderers/Card.d.ts +81 -13
  34. package/lib/renderers/Card.js +178 -81
  35. package/lib/renderers/Card.js.map +2 -2
  36. package/lib/renderers/Form/DiffEditor.d.ts +145 -37
  37. package/lib/renderers/Form/Editor.d.ts +144 -36
  38. package/lib/renderers/Form/Formula.js +5 -5
  39. package/lib/renderers/Form/Formula.js.map +2 -2
  40. package/lib/renderers/Form/InputCity.d.ts +84 -84
  41. package/lib/renderers/Form/InputFile.js +2 -2
  42. package/lib/renderers/Form/InputFile.js.map +2 -2
  43. package/lib/renderers/Form/index.js +10 -0
  44. package/lib/renderers/Form/index.js.map +2 -2
  45. package/lib/renderers/Form/wrapControl.js +3 -2
  46. package/lib/renderers/Form/wrapControl.js.map +2 -2
  47. package/lib/store/combo.d.ts +160 -40
  48. package/lib/store/form.d.ts +64 -16
  49. package/lib/store/formItem.d.ts +4 -2
  50. package/lib/store/formItem.js +11 -6
  51. package/lib/store/formItem.js.map +2 -2
  52. package/lib/store/table.d.ts +128 -32
  53. package/lib/themes/ang-ie11.css +177 -30
  54. package/lib/themes/ang.css +177 -30
  55. package/lib/themes/ang.css.map +1 -1
  56. package/lib/themes/antd-ie11.css +177 -30
  57. package/lib/themes/antd.css +177 -30
  58. package/lib/themes/antd.css.map +1 -1
  59. package/lib/themes/cxd-ie11.css +177 -30
  60. package/lib/themes/cxd.css +177 -30
  61. package/lib/themes/cxd.css.map +1 -1
  62. package/lib/themes/dark-ie11.css +177 -30
  63. package/lib/themes/dark.css +177 -30
  64. package/lib/themes/dark.css.map +1 -1
  65. package/lib/themes/default.css +177 -30
  66. package/lib/themes/default.css.map +1 -1
  67. package/lib/utils/helper.d.ts +7 -0
  68. package/lib/utils/helper.js +33 -1
  69. package/lib/utils/helper.js.map +2 -2
  70. package/package.json +2 -2
  71. package/schema.json +157 -13
  72. package/scss/_properties.scss +13 -2
  73. package/scss/components/_card.scss +155 -15
  74. package/scss/components/_nav.scss +1 -1
  75. package/scss/components/_picker-columns.scss +20 -14
  76. package/scss/components/form/_file.scss +2 -2
  77. package/scss/components/form/_selection.scss +4 -0
  78. package/scss/components/form/_switch.scss +6 -0
  79. package/sdk/ang-ie11.css +214 -40
  80. package/sdk/ang.css +216 -32
  81. package/sdk/antd-ie11.css +214 -40
  82. package/sdk/antd.css +216 -32
  83. package/sdk/charts.js +14 -14
  84. package/sdk/color-picker.js +65 -65
  85. package/sdk/cropperjs.js +2 -2
  86. package/sdk/cxd-ie11.css +206 -32
  87. package/sdk/cxd.css +216 -32
  88. package/sdk/dark-ie11.css +214 -40
  89. package/sdk/dark.css +216 -32
  90. package/sdk/exceljs.js +1 -1
  91. package/sdk/markdown.js +69 -69
  92. package/sdk/papaparse.js +1 -1
  93. package/sdk/renderers/Form/CityDB.js +1 -1
  94. package/sdk/rest.js +18 -18
  95. package/sdk/rich-text.js +62 -62
  96. package/sdk/sdk-ie11.css +206 -32
  97. package/sdk/sdk.css +216 -32
  98. package/sdk/sdk.js +1190 -1186
  99. package/sdk/thirds/hls.js/hls.js +1 -1
  100. package/sdk/thirds/mpegts.js/mpegts.js +1 -1
  101. package/sdk/tinymce.js +57 -57
  102. package/src/components/Card.tsx +203 -0
  103. package/src/components/DatePicker.tsx +3 -0
  104. package/src/components/Picker.tsx +145 -0
  105. package/src/components/PickerColumn.tsx +58 -95
  106. package/src/components/Select.tsx +17 -12
  107. package/src/components/Selection.tsx +1 -4
  108. package/src/components/Switch.tsx +7 -7
  109. package/src/components/calendar/Calendar.tsx +18 -0
  110. package/src/components/calendar/DaysView.tsx +6 -4
  111. package/src/components/calendar/TimeView.tsx +80 -5
  112. package/src/components/calendar/YearsView.tsx +44 -1
  113. package/src/renderers/Card.tsx +299 -191
  114. package/src/renderers/Form/Formula.tsx +7 -5
  115. package/src/renderers/Form/InputFile.tsx +6 -2
  116. package/src/renderers/Form/index.tsx +12 -0
  117. package/src/renderers/Form/wrapControl.tsx +5 -2
  118. package/src/store/formItem.ts +12 -6
  119. package/src/utils/helper.ts +34 -0
package/sdk/antd-ie11.css CHANGED
@@ -22785,14 +22785,9 @@ readers do not read off random characters that represent icons */
22785
22785
  position: relative;
22786
22786
  background-color: white;
22787
22787
  user-select: none;
22788
- }
22789
-
22790
- .amis-scope .antd-PickerColumns-popOver {
22791
- position: fixed;
22792
- bottom: 0;
22793
- left: 0;
22794
- width: 100%;
22795
- padding: 0 0.5rem;
22788
+ flex: 1;
22789
+ overflow: hidden;
22790
+ font-size: 1rem;
22796
22791
  }
22797
22792
 
22798
22793
  .amis-scope .antd-PickerColumns-toolbar {
@@ -22817,12 +22812,17 @@ readers do not read off random characters that represent icons */
22817
22812
  opacity: 0.7;
22818
22813
  }
22819
22814
 
22815
+ .amis-scope .antd-PickerColumns-cancel:hover,
22816
+ .amis-scope .antd-PickerColumns-confirm:hover {
22817
+ background-color: none !important;
22818
+ }
22819
+
22820
22820
  .amis-scope .antd-PickerColumns-confirm {
22821
- color: #1890ff;
22821
+ color: rgba(64, 64, 64, 0.85);
22822
22822
  }
22823
22823
 
22824
22824
  .amis-scope .antd-PickerColumns-cancel {
22825
- color: #d9d9d9;
22825
+ color: rgba(128, 128, 128, 0.85);
22826
22826
  }
22827
22827
 
22828
22828
  .amis-scope .antd-PickerColumns-title {
@@ -22864,6 +22864,18 @@ readers do not read off random characters that represent icons */
22864
22864
  pointer-events: none;
22865
22865
  }
22866
22866
 
22867
+ .amis-scope .antd-PickerColumns-frame::after {
22868
+ position: absolute;
22869
+ content: "";
22870
+ border-bottom: 1px solid #eceff8;
22871
+ border-top: 1px solid #eceff8;
22872
+ top: -50%;
22873
+ right: -50%;
22874
+ left: -50%;
22875
+ bottom: -50%;
22876
+ transform: scale(0.5);
22877
+ }
22878
+
22867
22879
  .amis-scope .antd-PickerColumns-mask {
22868
22880
  position: absolute;
22869
22881
  top: 0;
@@ -22878,12 +22890,6 @@ readers do not read off random characters that represent icons */
22878
22890
  pointer-events: none;
22879
22891
  }
22880
22892
 
22881
- .amis-scope .antd-PickerColumns-column {
22882
- flex: 1;
22883
- overflow: hidden;
22884
- font-size: 1rem;
22885
- }
22886
-
22887
22893
  .amis-scope .antd-PickerColumns-columnWrapper {
22888
22894
  margin: 0;
22889
22895
  padding: 0;
@@ -24105,7 +24111,7 @@ readers do not read off random characters that represent icons */
24105
24111
  .amis-scope .antd-Nav .antd-Nav-list--stacked .antd-Badge.is-active > .antd-Badge > a {
24106
24112
  color: #fff;
24107
24113
  position: relative;
24108
- background: #1890ff;
24114
+ background: #1890ff !important;
24109
24115
  }
24110
24116
 
24111
24117
  .amis-scope .antd-Nav .antd-Nav-list--stacked .antd-Nav-item.active > a::after,
@@ -25147,12 +25153,12 @@ readers do not read off random characters that represent icons */
25147
25153
 
25148
25154
  .amis-scope .antd-ScheduleCalendar-icon {
25149
25155
  position: absolute;
25150
- bottom: var(--Calendar-icon-bottom);
25156
+ bottom: -0.25rem;
25151
25157
  left: 50%;
25152
25158
  transform: translateX(-50%);
25153
25159
  display: block;
25154
- width: var(--Calendar-icon-width);
25155
- height: var(--Calendar-icon-height);
25160
+ width: 0.625rem;
25161
+ height: 0.625rem;
25156
25162
  border-radius: 50%;
25157
25163
  z-index: 10;
25158
25164
  }
@@ -25199,11 +25205,11 @@ readers do not read off random characters that represent icons */
25199
25205
  }
25200
25206
 
25201
25207
  .amis-scope .antd-ScheduleCalendar-large .rdtPicker table td {
25202
- border: var(--Calendar-borderWidth) solid #eceff8;
25208
+ border: 0.0625rem solid #eceff8;
25203
25209
  }
25204
25210
 
25205
25211
  .amis-scope .antd-ScheduleCalendar-large .rdtDay {
25206
- height: var(--Calendar-rdt-day);
25212
+ height: 6.25rem;
25207
25213
  vertical-align: top;
25208
25214
  }
25209
25215
 
@@ -25220,9 +25226,9 @@ readers do not read off random characters that represent icons */
25220
25226
  z-index: 10;
25221
25227
  border-radius: 2px;
25222
25228
  text-align: left;
25223
- padding: var(--Calendar-schedule-content-padding);
25224
- height: var(--Calendar-schedule-content-height);
25225
- color: var(--Calendar-schedule-content-color);
25229
+ padding: 0 0.25rem;
25230
+ height: 1.25rem;
25231
+ color: #fff;
25226
25232
  }
25227
25233
 
25228
25234
  .amis-scope .antd-ScheduleCalendar-large .antd-ScheduleCalendar-action {
@@ -28685,8 +28691,9 @@ readers do not read off random characters that represent icons */
28685
28691
  }
28686
28692
 
28687
28693
  .amis-scope .antd-Card-title {
28688
- color: #333;
28694
+ color: rgba(0, 0, 0, 0.85);
28689
28695
  font-size: 0.875rem;
28696
+ font-weight: 500;
28690
28697
  white-space: nowrap;
28691
28698
  overflow: hidden;
28692
28699
  text-overflow: ellipsis;
@@ -28707,15 +28714,14 @@ readers do not read off random characters that represent icons */
28707
28714
  }
28708
28715
 
28709
28716
  .amis-scope .antd-Card-dragBtn {
28717
+ display: inline-block;
28710
28718
  cursor: pointer;
28711
- float: right;
28712
- margin: 0.5rem;
28719
+ padding: 0 0.5rem;
28713
28720
  }
28714
28721
 
28715
28722
  .amis-scope .antd-Card-heading {
28716
28723
  display: flex;
28717
- flex-direction: row;
28718
- padding: 0.5rem 0.75rem;
28724
+ padding: 1rem;
28719
28725
  flex: 1 0 auto;
28720
28726
  }
28721
28727
 
@@ -28742,7 +28748,7 @@ readers do not read off random characters that represent icons */
28742
28748
  float: left;
28743
28749
  margin-right: 0.75rem;
28744
28750
  font-size: 1.25rem;
28745
- text-transform: uppercase;
28751
+ text-transform: uppercase();
28746
28752
  }
28747
28753
 
28748
28754
  .amis-scope .antd-Card-meta {
@@ -28750,11 +28756,14 @@ readers do not read off random characters that represent icons */
28750
28756
  flex-grow: 1;
28751
28757
  height: 100%;
28752
28758
  position: relative;
28753
- margin-right: 1rem;
28759
+ }
28760
+
28761
+ .amis-scope .antd-Card-meta + .antd-Card-toolbar {
28762
+ margin-left: 1rem;
28754
28763
  }
28755
28764
 
28756
28765
  .amis-scope .antd-Card-toolbar {
28757
- margin-right: calc(-1 * 0.75rem);
28766
+ line-height: normal;
28758
28767
  text-align: right;
28759
28768
  }
28760
28769
 
@@ -28764,18 +28773,16 @@ readers do not read off random characters that represent icons */
28764
28773
  height: 0.5rem;
28765
28774
  border-radius: 100%;
28766
28775
  display: inline-block;
28767
- position: absolute;
28768
- top: 0.25rem;
28769
- right: 0.125rem;
28776
+ margin: 0 0.5rem;
28770
28777
  }
28771
28778
 
28772
28779
  .amis-scope .antd-Card-body {
28773
- padding: 0.75rem;
28780
+ padding: 1rem;
28774
28781
  flex: 1 0 auto;
28775
28782
  }
28776
28783
 
28777
28784
  .amis-scope .antd-Card-heading + .antd-Card-body {
28778
- padding-top: 0.25rem;
28785
+ padding-top: 0;
28779
28786
  }
28780
28787
 
28781
28788
  .amis-scope .antd-Card-field {
@@ -28804,6 +28811,7 @@ readers do not read off random characters that represent icons */
28804
28811
  flex-direction: row;
28805
28812
  width: 100%;
28806
28813
  table-layout: fixed;
28814
+ white-space: nowrap;
28807
28815
  }
28808
28816
 
28809
28817
  .amis-scope .antd-Card-actions > a {
@@ -28891,6 +28899,160 @@ readers do not read off random characters that represent icons */
28891
28899
  opacity: 0.1;
28892
28900
  }
28893
28901
 
28902
+ .amis-scope .antd-Card-footer-wrapper {
28903
+ display: flex;
28904
+ align-items: center;
28905
+ justify-content: space-between;
28906
+ }
28907
+
28908
+ .amis-scope .antd-Card-actions-wrapper {
28909
+ flex: 1;
28910
+ display: flex;
28911
+ align-items: center;
28912
+ justify-content: flex-end;
28913
+ flex-wrap: wrap;
28914
+ }
28915
+
28916
+ .amis-scope .antd-Card-checkbox {
28917
+ margin: 0 0.5rem !important;
28918
+ }
28919
+
28920
+ .amis-scope .antd-Card-secondary {
28921
+ max-width: 12.5rem;
28922
+ color: #83868c;
28923
+ padding: 0 1rem;
28924
+ font-size: 0.875rem;
28925
+ font-weight: 400;
28926
+ white-space: nowrap;
28927
+ overflow: hidden;
28928
+ text-overflow: ellipsis;
28929
+ }
28930
+
28931
+ .amis-scope .antd-Card-secondary + .antd-Card-actions-wrapper .antd-Card-actions {
28932
+ margin-left: unset;
28933
+ border: none;
28934
+ width: unset;
28935
+ }
28936
+
28937
+ .amis-scope .antd-Card-secondary + .antd-Card-actions-wrapper .antd-Card-actions > a {
28938
+ border: none;
28939
+ }
28940
+
28941
+ .amis-scope .antd-Card-multiMedia--top .antd-Card-actions-wrapper .antd-Card-actions,
28942
+ .amis-scope .antd-Card-multiMedia--bottom .antd-Card-actions-wrapper .antd-Card-actions,
28943
+ .amis-scope .antd-Card-multiMedia--left .antd-Card-actions-wrapper .antd-Card-actions,
28944
+ .amis-scope .antd-Card-multiMedia--right .antd-Card-actions-wrapper .antd-Card-actions {
28945
+ margin-left: unset;
28946
+ border: none;
28947
+ width: unset;
28948
+ }
28949
+
28950
+ .amis-scope .antd-Card-multiMedia--top .antd-Card-actions-wrapper .antd-Card-actions > a,
28951
+ .amis-scope .antd-Card-multiMedia--bottom .antd-Card-actions-wrapper .antd-Card-actions > a,
28952
+ .amis-scope .antd-Card-multiMedia--left .antd-Card-actions-wrapper .antd-Card-actions > a,
28953
+ .amis-scope .antd-Card-multiMedia--right .antd-Card-actions-wrapper .antd-Card-actions > a {
28954
+ border: none;
28955
+ }
28956
+
28957
+ .amis-scope .antd-Card-multiMedia--top {
28958
+ display: block;
28959
+ }
28960
+
28961
+ .amis-scope .antd-Card-multiMedia--top .antd-Card-multiMedia-img {
28962
+ border-bottom-left-radius: unset;
28963
+ border-bottom-right-radius: unset;
28964
+ }
28965
+
28966
+ .amis-scope .antd-Card-multiMedia--bottom {
28967
+ display: flex;
28968
+ flex-direction: column-reverse;
28969
+ }
28970
+
28971
+ .amis-scope .antd-Card-multiMedia--bottom .antd-Card-actions {
28972
+ border-bottom: 0.0625rem solid #dfe2e6;
28973
+ }
28974
+
28975
+ .amis-scope .antd-Card-multiMedia--bottom .antd-Card-multiMedia-img {
28976
+ border-top-left-radius: unset;
28977
+ border-top-right-radius: unset;
28978
+ }
28979
+
28980
+ .amis-scope .antd-Card-multiMedia--top .antd-Card-body,
28981
+ .amis-scope .antd-Card-multiMedia--bottom .antd-Card-body {
28982
+ padding-bottom: 1rem;
28983
+ }
28984
+
28985
+ .amis-scope .antd-Card-multiMedia--left {
28986
+ display: flex;
28987
+ align-items: center;
28988
+ }
28989
+
28990
+ .amis-scope .antd-Card-multiMedia--left .antd-Card-actions {
28991
+ margin-left: 1rem;
28992
+ border-left: 0.0625rem solid #dfe2e6;
28993
+ }
28994
+
28995
+ .amis-scope .antd-Card-multiMedia--left .antd-Card-multiMedia-img,
28996
+ .amis-scope .antd-Card-multiMedia--left .antd-Card-multiMedia-video {
28997
+ margin: 1rem 0 1rem 1rem;
28998
+ }
28999
+
29000
+ .amis-scope .antd-Card-multiMedia--right {
29001
+ display: flex;
29002
+ align-items: center;
29003
+ justify-content: space-between;
29004
+ flex-direction: row-reverse;
29005
+ }
29006
+
29007
+ .amis-scope .antd-Card-multiMedia--right .antd-Card-actions {
29008
+ margin-right: 1rem;
29009
+ border-right: 0.0625rem solid #dfe2e6;
29010
+ }
29011
+
29012
+ .amis-scope .antd-Card-multiMedia--right .antd-Card-multiMedia-img,
29013
+ .amis-scope .antd-Card-multiMedia--right .antd-Card-multiMedia-video {
29014
+ margin: 1rem 1rem 1rem 0;
29015
+ }
29016
+
29017
+ .amis-scope .antd-Card-multiMedia-flex {
29018
+ flex: 1;
29019
+ display: flex;
29020
+ flex-direction: column;
29021
+ justify-content: center;
29022
+ }
29023
+
29024
+ .amis-scope .antd-Card-multiMedia-img {
29025
+ display: block;
29026
+ width: 100%;
29027
+ height: auto;
29028
+ object-fit: cover;
29029
+ border-radius: 2px;
29030
+ }
29031
+
29032
+ .amis-scope .antd-Card-multiMedia-video {
29033
+ width: 11.25rem;
29034
+ height: 7.5rem;
29035
+ }
29036
+
29037
+ .amis-scope .antd-Card-multiMedia-video .antd-Video {
29038
+ width: 100%;
29039
+ height: 100%;
29040
+ min-width: unset;
29041
+ border-radius: 2px;
29042
+ overflow: hidden;
29043
+ }
29044
+
29045
+ .amis-scope .antd-Card-multiMedia-video .antd-Video .antd-Video-player {
29046
+ width: 100%;
29047
+ height: 100%;
29048
+ }
29049
+
29050
+ .amis-scope .antd-Card-multiMedia-video .antd-Video .antd-Video-player .video-react {
29051
+ width: 100%;
29052
+ height: 100%;
29053
+ padding-top: unset !important;
29054
+ }
29055
+
28894
29056
  .amis-scope .antd-Field-quickEditBtn {
28895
29057
  color: inherit;
28896
29058
  margin-left: 0.25rem;
@@ -32134,6 +32296,12 @@ readers do not read off random characters that represent icons */
32134
32296
  margin-right: 0.25rem;
32135
32297
  }
32136
32298
 
32299
+ .amis-scope .antd-GroupedSelection {
32300
+ max-height: 18.75rem;
32301
+ overflow: auto;
32302
+ user-select: none;
32303
+ }
32304
+
32137
32305
  .amis-scope .antd-GroupedSelection-group:not(:first-child) > .antd-GroupedSelection-itemLabel {
32138
32306
  border-top: 0.0625rem solid #dfe2e6;
32139
32307
  }
@@ -32502,6 +32670,12 @@ readers do not read off random characters that represent icons */
32502
32670
  transition: all 0s;
32503
32671
  }
32504
32672
 
32673
+ .amis-scope .antd-Switch .text > svg {
32674
+ width: 0.75rem;
32675
+ height: 0.75rem;
32676
+ margin-top: calc((1.375rem - 0.75rem) / 2);
32677
+ }
32678
+
32505
32679
  .amis-scope .antd-Switch .slider:before {
32506
32680
  content: "";
32507
32681
  position: absolute;
@@ -34546,8 +34720,9 @@ readers do not read off random characters that represent icons */
34546
34720
  }
34547
34721
 
34548
34722
  .amis-scope .antd-FileControl-selectBtn {
34549
- display: flex;
34723
+ display: inline-flex;
34550
34724
  align-items: center;
34725
+ margin-right: 10px;
34551
34726
  }
34552
34727
 
34553
34728
  .amis-scope .antd-FileControl-selectBtn > svg {
@@ -34556,7 +34731,6 @@ readers do not read off random characters that represent icons */
34556
34731
  }
34557
34732
 
34558
34733
  .amis-scope .antd-FileControl-description {
34559
- margin-left: 10px;
34560
34734
  color: #999;
34561
34735
  font-size: 12px;
34562
34736
  }