amis 1.5.2 → 1.5.3

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 (68) hide show
  1. package/lib/components/Collapse.js +1 -1
  2. package/lib/components/Collapse.js.map +2 -2
  3. package/lib/components/DatePicker.d.ts +178 -84
  4. package/lib/components/DatePicker.js +25 -4
  5. package/lib/components/DatePicker.js.map +2 -2
  6. package/lib/components/calendar/Calendar.d.ts +8 -0
  7. package/lib/components/calendar/Calendar.js +4 -1
  8. package/lib/components/calendar/Calendar.js.map +2 -2
  9. package/lib/components/calendar/DaysView.d.ts +8 -0
  10. package/lib/components/calendar/DaysView.js +71 -0
  11. package/lib/components/calendar/DaysView.js.map +2 -2
  12. package/lib/index.js +1 -1
  13. package/lib/renderers/Form/InputDate.d.ts +25 -0
  14. package/lib/renderers/Form/InputDate.js +48 -3
  15. package/lib/renderers/Form/InputDate.js.map +2 -2
  16. package/lib/renderers/Status.js +1 -1
  17. package/lib/renderers/Status.js.map +2 -2
  18. package/lib/themes/ang-ie11.css +78 -1
  19. package/lib/themes/ang.css +78 -1
  20. package/lib/themes/ang.css.map +1 -1
  21. package/lib/themes/antd-ie11.css +78 -2
  22. package/lib/themes/antd.css +78 -2
  23. package/lib/themes/antd.css.map +1 -1
  24. package/lib/themes/cxd-ie11.css +86 -1
  25. package/lib/themes/cxd.css +86 -1
  26. package/lib/themes/cxd.css.map +1 -1
  27. package/lib/themes/dark-ie11.css +78 -1
  28. package/lib/themes/dark.css +78 -1
  29. package/lib/themes/dark.css.map +1 -1
  30. package/lib/themes/default.css +86 -1
  31. package/lib/themes/default.css.map +1 -1
  32. package/package.json +2 -2
  33. package/schema.json +52 -7
  34. package/scss/_properties.scss +1 -1
  35. package/scss/components/_calendar.scss +81 -0
  36. package/scss/components/_toast.scss +3 -0
  37. package/scss/themes/_antd-variables.scss +0 -2
  38. package/scss/themes/_common.scss +1 -0
  39. package/scss/themes/_cxd-variables.scss +9 -0
  40. package/sdk/ang-ie11.css +90 -1
  41. package/sdk/ang.css +90 -1
  42. package/sdk/antd-ie11.css +89 -0
  43. package/sdk/antd.css +90 -2
  44. package/sdk/charts.js +15 -15
  45. package/sdk/color-picker.js +65 -65
  46. package/sdk/cropperjs.js +2 -2
  47. package/sdk/cxd-ie11.css +90 -1
  48. package/sdk/cxd.css +98 -1
  49. package/sdk/dark-ie11.css +90 -1
  50. package/sdk/dark.css +90 -1
  51. package/sdk/exceljs.js +1 -1
  52. package/sdk/markdown.js +69 -69
  53. package/sdk/papaparse.js +1 -1
  54. package/sdk/renderers/Form/CityDB.js +1 -1
  55. package/sdk/rest.js +18 -18
  56. package/sdk/rich-text.js +62 -62
  57. package/sdk/sdk-ie11.css +90 -1
  58. package/sdk/sdk.css +98 -1
  59. package/sdk/sdk.js +1182 -1182
  60. package/sdk/thirds/hls.js/hls.js +1 -1
  61. package/sdk/thirds/mpegts.js/mpegts.js +1 -1
  62. package/sdk/tinymce.js +57 -57
  63. package/src/components/Collapse.tsx +1 -1
  64. package/src/components/DatePicker.tsx +41 -3
  65. package/src/components/calendar/Calendar.tsx +12 -1
  66. package/src/components/calendar/DaysView.tsx +89 -0
  67. package/src/renderers/Form/InputDate.tsx +83 -2
  68. package/src/renderers/Status.tsx +3 -1
package/sdk/sdk-ie11.css CHANGED
@@ -23032,6 +23032,10 @@ readers do not read off random characters that represent icons */
23032
23032
  line-height: 1.5rem;
23033
23033
  }
23034
23034
 
23035
+ .amis-scope .cxd-Toast-content .cxd-Toast-body .cxd-Html {
23036
+ word-break: break-word;
23037
+ }
23038
+
23035
23039
  .amis-scope .cxd-Toast-icon {
23036
23040
  display: inline-flex;
23037
23041
  text-rendering: auto;
@@ -25135,6 +25139,91 @@ readers do not read off random characters that represent icons */
25135
25139
  padding: 0.5rem;
25136
25140
  }
25137
25141
 
25142
+ .amis-scope .cxd-ScheduleCalendar-icon {
25143
+ position: absolute;
25144
+ bottom: -0.25rem;
25145
+ left: 50%;
25146
+ transform: translateX(-50%);
25147
+ display: block;
25148
+ width: 0.625rem;
25149
+ height: 0.625rem;
25150
+ border-radius: 50%;
25151
+ z-index: 10;
25152
+ }
25153
+
25154
+ .amis-scope .cxd-ScheduleCalendar-action {
25155
+ display: block;
25156
+ padding: 0;
25157
+ width: 100%;
25158
+ height: 100%;
25159
+ border: none;
25160
+ background: transparent;
25161
+ color: inherit;
25162
+ }
25163
+
25164
+ .amis-scope .cxd-ScheduleCalendar-action:not(:disabled):not(.is-disabled):hover {
25165
+ color: inherit;
25166
+ background: transparent;
25167
+ border-color: transparent;
25168
+ }
25169
+
25170
+ .amis-scope .cxd-ScheduleCalendar .rdtDay {
25171
+ position: relative;
25172
+ }
25173
+
25174
+ .amis-scope .cxd-ScheduleCalendar-text-overflow {
25175
+ white-space: nowrap;
25176
+ overflow: hidden;
25177
+ text-overflow: ellipsis;
25178
+ position: absolute;
25179
+ width: 100%;
25180
+ }
25181
+
25182
+ .amis-scope .cxd-ScheduleCalendar-large {
25183
+ width: 100%;
25184
+ }
25185
+
25186
+ .amis-scope .cxd-ScheduleCalendar-large .rdtPicker {
25187
+ width: 100%;
25188
+ }
25189
+
25190
+ .amis-scope .cxd-ScheduleCalendar-large .rdtPicker table {
25191
+ border-collapse: collapse;
25192
+ border-spacing: 0;
25193
+ }
25194
+
25195
+ .amis-scope .cxd-ScheduleCalendar-large .rdtPicker table td {
25196
+ border: 0.0625rem solid #eceff8;
25197
+ }
25198
+
25199
+ .amis-scope .cxd-ScheduleCalendar-large .rdtDay {
25200
+ height: 6.25rem;
25201
+ vertical-align: top;
25202
+ }
25203
+
25204
+ .amis-scope .cxd-ScheduleCalendar-large .cxd-ScheduleCalendar-large-day-wrap {
25205
+ position: absolute;
25206
+ top: 0;
25207
+ left: 0;
25208
+ min-width: 100%;
25209
+ height: 100%;
25210
+ }
25211
+
25212
+ .amis-scope .cxd-ScheduleCalendar-large .cxd-ScheduleCalendar-large-day-wrap .cxd-ScheduleCalendar-large-schedule-content {
25213
+ position: relative;
25214
+ z-index: 10;
25215
+ border-radius: 0.25rem;
25216
+ text-align: left;
25217
+ padding: 0 0.25rem;
25218
+ height: 1.25rem;
25219
+ color: #fff;
25220
+ }
25221
+
25222
+ .amis-scope .cxd-ScheduleCalendar-large .cxd-ScheduleCalendar-action {
25223
+ z-index: 20;
25224
+ position: relative;
25225
+ }
25226
+
25138
25227
  .amis-scope .cxd-Collapse {
25139
25228
  border: 0.0625rem solid #dadbdd;
25140
25229
  padding: 0;
@@ -29108,7 +29197,7 @@ readers do not read off random characters that represent icons */
29108
29197
 
29109
29198
  .amis-scope .cxd-Divider {
29110
29199
  margin: 0.75rem calc(0.75rem * -1);
29111
- border-bottom: 0.0625rem dashed #eceff8;
29200
+ border-bottom: 0.0625rem solid #eceff8;
29112
29201
  height: 0.125rem;
29113
29202
  font-size: 0;
29114
29203
  }
package/sdk/sdk.css CHANGED
@@ -19661,7 +19661,7 @@ readers do not read off random characters that represent icons */
19661
19661
  );
19662
19662
  --DatePicker-placeholderColor: var(--Form-input-placeholderColor);
19663
19663
  --LocationPicker-borderRadius: var(--Form-input-borderWidth);
19664
- --Divider-borderStyle: dashed;
19664
+ --Divider-borderStyle: solid;
19665
19665
  --Drawer-bg: var(--background);
19666
19666
  --Drawer-body-padding: var(--gap-base);
19667
19667
  --Drawer-close-color: rgba(255, 255, 255, 0.8);
@@ -20560,6 +20560,14 @@ readers do not read off random characters that represent icons */
20560
20560
  --Switch-checked-onActive-bgColor: #1c53c1;
20561
20561
  --Switch-onDisabled-bgColor: #d3e0fc;
20562
20562
  --Switch-onDisabled-color: #ffffff;
20563
+ --Calendar-icon-bottom: -0.25rem;
20564
+ --Calendar-icon-width: 0.625rem;
20565
+ --Calendar-icon-height: 0.625rem;
20566
+ --Calendar-borderWidth: 0.0625rem;
20567
+ --Calendar-rdt-day: 6.25rem;
20568
+ --Calendar-schedule-content-padding: 0 0.25rem;
20569
+ --Calendar-schedule-content-height: 1.25rem;
20570
+ --Calendar-schedule-content-color: #fff;
20563
20571
  --ColorPicker-borderWidth: 0.0625rem;
20564
20572
  --ColorPicker-borderRadius: 0.25rem;
20565
20573
  --ColorPicker-bg: var(--white);
@@ -24724,6 +24732,10 @@ readers do not read off random characters that represent icons */
24724
24732
  line-height: var(--gap-xl);
24725
24733
  }
24726
24734
 
24735
+ .amis-scope .cxd-Toast-content .cxd-Toast-body .cxd-Html {
24736
+ word-break: break-word;
24737
+ }
24738
+
24727
24739
  .amis-scope .cxd-Toast-icon {
24728
24740
  display: inline-flex;
24729
24741
  text-rendering: auto;
@@ -26809,6 +26821,91 @@ readers do not read off random characters that represent icons */
26809
26821
  padding: var(--gap-sm);
26810
26822
  }
26811
26823
 
26824
+ .amis-scope .cxd-ScheduleCalendar-icon {
26825
+ position: absolute;
26826
+ bottom: var(--Calendar-icon-bottom);
26827
+ left: 50%;
26828
+ transform: translateX(-50%);
26829
+ display: block;
26830
+ width: var(--Calendar-icon-width);
26831
+ height: var(--Calendar-icon-height);
26832
+ border-radius: 50%;
26833
+ z-index: 10;
26834
+ }
26835
+
26836
+ .amis-scope .cxd-ScheduleCalendar-action {
26837
+ display: block;
26838
+ padding: 0;
26839
+ width: 100%;
26840
+ height: 100%;
26841
+ border: none;
26842
+ background: transparent;
26843
+ color: inherit;
26844
+ }
26845
+
26846
+ .amis-scope .cxd-ScheduleCalendar-action:not(:disabled):not(.is-disabled):hover {
26847
+ color: inherit;
26848
+ background: transparent;
26849
+ border-color: transparent;
26850
+ }
26851
+
26852
+ .amis-scope .cxd-ScheduleCalendar .rdtDay {
26853
+ position: relative;
26854
+ }
26855
+
26856
+ .amis-scope .cxd-ScheduleCalendar-text-overflow {
26857
+ white-space: nowrap;
26858
+ overflow: hidden;
26859
+ text-overflow: ellipsis;
26860
+ position: absolute;
26861
+ width: 100%;
26862
+ }
26863
+
26864
+ .amis-scope .cxd-ScheduleCalendar-large {
26865
+ width: 100%;
26866
+ }
26867
+
26868
+ .amis-scope .cxd-ScheduleCalendar-large .rdtPicker {
26869
+ width: 100%;
26870
+ }
26871
+
26872
+ .amis-scope .cxd-ScheduleCalendar-large .rdtPicker table {
26873
+ border-collapse: collapse;
26874
+ border-spacing: 0;
26875
+ }
26876
+
26877
+ .amis-scope .cxd-ScheduleCalendar-large .rdtPicker table td {
26878
+ border: var(--Calendar-borderWidth) solid var(--borderColor);
26879
+ }
26880
+
26881
+ .amis-scope .cxd-ScheduleCalendar-large .rdtDay {
26882
+ height: var(--Calendar-rdt-day);
26883
+ vertical-align: top;
26884
+ }
26885
+
26886
+ .amis-scope .cxd-ScheduleCalendar-large .cxd-ScheduleCalendar-large-day-wrap {
26887
+ position: absolute;
26888
+ top: 0;
26889
+ left: 0;
26890
+ min-width: 100%;
26891
+ height: 100%;
26892
+ }
26893
+
26894
+ .amis-scope .cxd-ScheduleCalendar-large .cxd-ScheduleCalendar-large-day-wrap .cxd-ScheduleCalendar-large-schedule-content {
26895
+ position: relative;
26896
+ z-index: 10;
26897
+ border-radius: var(--borderRadius);
26898
+ text-align: left;
26899
+ padding: var(--Calendar-schedule-content-padding);
26900
+ height: var(--Calendar-schedule-content-height);
26901
+ color: var(--Calendar-schedule-content-color);
26902
+ }
26903
+
26904
+ .amis-scope .cxd-ScheduleCalendar-large .cxd-ScheduleCalendar-action {
26905
+ z-index: 20;
26906
+ position: relative;
26907
+ }
26908
+
26812
26909
  .amis-scope .cxd-Collapse {
26813
26910
  border: var(--Collapse-border);
26814
26911
  padding: 0;