amis 1.5.6-beta.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 (66) hide show
  1. package/lib/components/Card.js +1 -1
  2. package/lib/components/Card.js.map +2 -2
  3. package/lib/components/Collapse.js +1 -1
  4. package/lib/components/Collapse.js.map +2 -2
  5. package/lib/components/Rating.d.ts +203 -73
  6. package/lib/components/Rating.js +147 -31
  7. package/lib/components/Rating.js.map +2 -2
  8. package/lib/components/icons.js +2 -0
  9. package/lib/components/icons.js.map +2 -2
  10. package/lib/icons/star.js +12 -0
  11. package/lib/index.js +1 -1
  12. package/lib/renderers/Form/InputRating.d.ts +37 -0
  13. package/lib/renderers/Form/InputRating.js +6 -2
  14. package/lib/renderers/Form/InputRating.js.map +2 -2
  15. package/lib/renderers/Json.js +7 -0
  16. package/lib/renderers/Json.js.map +2 -2
  17. package/lib/themes/ang-ie11.css +44 -10
  18. package/lib/themes/ang.css +44 -10
  19. package/lib/themes/ang.css.map +1 -1
  20. package/lib/themes/antd-ie11.css +44 -10
  21. package/lib/themes/antd.css +44 -10
  22. package/lib/themes/antd.css.map +1 -1
  23. package/lib/themes/cxd-ie11.css +45 -10
  24. package/lib/themes/cxd.css +45 -10
  25. package/lib/themes/cxd.css.map +1 -1
  26. package/lib/themes/dark-ie11.css +44 -10
  27. package/lib/themes/dark.css +44 -10
  28. package/lib/themes/dark.css.map +1 -1
  29. package/lib/themes/default.css +45 -10
  30. package/lib/themes/default.css.map +1 -1
  31. package/package.json +2 -2
  32. package/schema.json +59 -7
  33. package/scss/_properties.scss +3 -1
  34. package/scss/components/form/_rating.scss +60 -21
  35. package/scss/themes/_cxd-variables.scss +2 -0
  36. package/sdk/ang-ie11.css +47 -8
  37. package/sdk/ang.css +51 -10
  38. package/sdk/antd-ie11.css +47 -8
  39. package/sdk/antd.css +51 -10
  40. package/sdk/charts.js +13 -13
  41. package/sdk/codemirror.js +7 -7
  42. package/sdk/color-picker.js +65 -65
  43. package/sdk/cropperjs.js +2 -2
  44. package/sdk/cxd-ie11.css +47 -8
  45. package/sdk/cxd.css +52 -10
  46. package/sdk/dark-ie11.css +47 -8
  47. package/sdk/dark.css +51 -10
  48. package/sdk/exceljs.js +1 -1
  49. package/sdk/markdown.js +69 -69
  50. package/sdk/papaparse.js +1 -1
  51. package/sdk/renderers/Form/CityDB.js +1 -1
  52. package/sdk/rest.js +18 -18
  53. package/sdk/rich-text.js +62 -62
  54. package/sdk/sdk-ie11.css +47 -8
  55. package/sdk/sdk.css +52 -10
  56. package/sdk/sdk.js +1213 -1211
  57. package/sdk/thirds/hls.js/hls.js +1 -1
  58. package/sdk/thirds/mpegts.js/mpegts.js +1 -1
  59. package/sdk/tinymce.js +57 -57
  60. package/src/components/Card.tsx +2 -2
  61. package/src/components/Collapse.tsx +1 -1
  62. package/src/components/Rating.tsx +235 -47
  63. package/src/components/icons.tsx +2 -0
  64. package/src/icons/star.svg +12 -0
  65. package/src/renderers/Form/InputRating.tsx +66 -3
  66. package/src/renderers/Json.tsx +5 -0
@@ -1051,7 +1051,9 @@
1051
1051
  --ResultBox-value--onHover-bg: rgba(0, 145, 255, 0.1);
1052
1052
  --ResultBox-value-bg: #f5f5f5;
1053
1053
  --ResultBox-value-color: #000;
1054
- --Rating-onActive-color: var(--info);
1054
+ --Rating-inactive-color: #e6e6e8;
1055
+ --Rating-star-margin: 0.5rem;
1056
+ --Rating-star-size: 1.5rem;
1055
1057
  --Satus-icon-width: var(--gap-lg);
1056
1058
  --Satus-icon-height: var(--Satus-icon-width);
1057
1059
  --Sparkline-line-color: var(--info);
@@ -16063,22 +16065,45 @@ td.rdtQuarter.rdtDisabled > span {
16063
16065
  }
16064
16066
 
16065
16067
  .antd-Rating {
16068
+ display: flex;
16066
16069
  position: relative;
16070
+ align-items: center;
16071
+ justify-content: flex-start;
16072
+ flex-flow: row wrap;
16073
+ }
16074
+ .antd-Rating > ul {
16075
+ display: flex;
16076
+ padding: unset;
16077
+ margin: unset;
16078
+ align-items: center;
16079
+ justify-content: flex-start;
16080
+ flex-flow: row wrap;
16081
+ }
16082
+ .antd-Rating-star {
16083
+ position: relative;
16084
+ margin-right: var(--Rating-star-margin);
16067
16085
  overflow: hidden;
16068
16086
  display: block;
16069
- float: left;
16070
- font-size: 1.5rem;
16071
- color: var(--dark);
16087
+ font-size: var(--Rating-star-size);
16088
+ line-height: 1;
16072
16089
  cursor: pointer;
16090
+ user-select: none;
16091
+ color: var(--Rating-inactive-color);
16073
16092
  }
16074
- .antd-Rating.is-active {
16075
- color: var(--Rating-onActive-color);
16093
+ .antd-Rating-star-half > svg.icon, .antd-Rating-star > svg.icon {
16094
+ display: block;
16095
+ width: 1.5rem;
16096
+ height: 1.5rem;
16097
+ top: 0;
16098
+ }
16099
+ .antd-Rating-star:last-of-type {
16100
+ margin-right: 0;
16076
16101
  }
16077
- .antd-Rating.is-disabled {
16102
+ .antd-Rating-star.is-disabled {
16078
16103
  cursor: not-allowed;
16079
16104
  pointer-events: none;
16080
16105
  }
16081
- .antd-Rating-half:before {
16106
+ .antd-Rating-star-half {
16082
16107
  position: absolute;
16083
16108
  overflow: hidden;
16084
16109
  display: block;
@@ -16086,8 +16111,17 @@ td.rdtQuarter.rdtDisabled > span {
16086
16111
  top: 0;
16087
16112
  left: 0;
16088
16113
  width: 50%;
16089
- content: attr(data-forhalf);
16090
- color: var(--Rating-onActive-color);
16114
+ }
16115
+ .antd-Rating-text {
16116
+ font-size: var(--fontSizeSm);
16117
+ color: var(--text-color);
16118
+ font-weight: var(--fontWeightNormal);
16119
+ }
16120
+ .antd-Rating-text--left {
16121
+ margin-right: var(--Rating-star-margin);
16122
+ }
16123
+ .antd-Rating-text--right {
16124
+ margin-left: var(--Rating-star-margin);
16091
16125
  }
16092
16126
 
16093
16127
  .antd-RatingControl {
@@ -1051,7 +1051,9 @@
1051
1051
  --ResultBox-value--onHover-bg: rgba(0, 145, 255, 0.1);
1052
1052
  --ResultBox-value-bg: #f5f5f5;
1053
1053
  --ResultBox-value-color: #000;
1054
- --Rating-onActive-color: var(--info);
1054
+ --Rating-inactive-color: #e6e6e8;
1055
+ --Rating-star-margin: 0.5rem;
1056
+ --Rating-star-size: 1.5rem;
1055
1057
  --Satus-icon-width: var(--gap-lg);
1056
1058
  --Satus-icon-height: var(--Satus-icon-width);
1057
1059
  --Sparkline-line-color: var(--info);
@@ -16063,22 +16065,45 @@ td.rdtQuarter.rdtDisabled > span {
16063
16065
  }
16064
16066
 
16065
16067
  .antd-Rating {
16068
+ display: flex;
16066
16069
  position: relative;
16070
+ align-items: center;
16071
+ justify-content: flex-start;
16072
+ flex-flow: row wrap;
16073
+ }
16074
+ .antd-Rating > ul {
16075
+ display: flex;
16076
+ padding: unset;
16077
+ margin: unset;
16078
+ align-items: center;
16079
+ justify-content: flex-start;
16080
+ flex-flow: row wrap;
16081
+ }
16082
+ .antd-Rating-star {
16083
+ position: relative;
16084
+ margin-right: var(--Rating-star-margin);
16067
16085
  overflow: hidden;
16068
16086
  display: block;
16069
- float: left;
16070
- font-size: 1.5rem;
16071
- color: var(--dark);
16087
+ font-size: var(--Rating-star-size);
16088
+ line-height: 1;
16072
16089
  cursor: pointer;
16090
+ user-select: none;
16091
+ color: var(--Rating-inactive-color);
16073
16092
  }
16074
- .antd-Rating.is-active {
16075
- color: var(--Rating-onActive-color);
16093
+ .antd-Rating-star-half > svg.icon, .antd-Rating-star > svg.icon {
16094
+ display: block;
16095
+ width: 1.5rem;
16096
+ height: 1.5rem;
16097
+ top: 0;
16098
+ }
16099
+ .antd-Rating-star:last-of-type {
16100
+ margin-right: 0;
16076
16101
  }
16077
- .antd-Rating.is-disabled {
16102
+ .antd-Rating-star.is-disabled {
16078
16103
  cursor: not-allowed;
16079
16104
  pointer-events: none;
16080
16105
  }
16081
- .antd-Rating-half:before {
16106
+ .antd-Rating-star-half {
16082
16107
  position: absolute;
16083
16108
  overflow: hidden;
16084
16109
  display: block;
@@ -16086,8 +16111,17 @@ td.rdtQuarter.rdtDisabled > span {
16086
16111
  top: 0;
16087
16112
  left: 0;
16088
16113
  width: 50%;
16089
- content: attr(data-forhalf);
16090
- color: var(--Rating-onActive-color);
16114
+ }
16115
+ .antd-Rating-text {
16116
+ font-size: var(--fontSizeSm);
16117
+ color: var(--text-color);
16118
+ font-weight: var(--fontWeightNormal);
16119
+ }
16120
+ .antd-Rating-text--left {
16121
+ margin-right: var(--Rating-star-margin);
16122
+ }
16123
+ .antd-Rating-text--right {
16124
+ margin-left: var(--Rating-star-margin);
16091
16125
  }
16092
16126
 
16093
16127
  .antd-RatingControl {