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
@@ -1048,7 +1048,9 @@
1048
1048
  --ResultBox-value--onHover-bg: rgba(0, 145, 255, 0.1);
1049
1049
  --ResultBox-value-bg: #f5f5f5;
1050
1050
  --ResultBox-value-color: #000;
1051
- --Rating-onActive-color: var(--info);
1051
+ --Rating-inactive-color: #e6e6e8;
1052
+ --Rating-star-margin: 0.5rem;
1053
+ --Rating-star-size: 1.5rem;
1052
1054
  --Satus-icon-width: var(--gap-lg);
1053
1055
  --Satus-icon-height: var(--Satus-icon-width);
1054
1056
  --Sparkline-line-color: var(--info);
@@ -1739,6 +1741,7 @@
1739
1741
  --Satus-icon-width: 0.875rem;
1740
1742
  --Tree-itemHeight: 2rem;
1741
1743
  --Progress-borderRadius: 1rem;
1744
+ --Rating-inactive-color: #e6e6e8;
1742
1745
  }
1743
1746
 
1744
1747
  /* Reset
@@ -16388,22 +16391,45 @@ td.rdtQuarter.rdtDisabled > span {
16388
16391
  }
16389
16392
 
16390
16393
  .cxd-Rating {
16394
+ display: flex;
16391
16395
  position: relative;
16396
+ align-items: center;
16397
+ justify-content: flex-start;
16398
+ flex-flow: row wrap;
16399
+ }
16400
+ .cxd-Rating > ul {
16401
+ display: flex;
16402
+ padding: unset;
16403
+ margin: unset;
16404
+ align-items: center;
16405
+ justify-content: flex-start;
16406
+ flex-flow: row wrap;
16407
+ }
16408
+ .cxd-Rating-star {
16409
+ position: relative;
16410
+ margin-right: var(--Rating-star-margin);
16392
16411
  overflow: hidden;
16393
16412
  display: block;
16394
- float: left;
16395
- font-size: 1.5rem;
16396
- color: var(--dark);
16413
+ font-size: var(--Rating-star-size);
16414
+ line-height: 1;
16397
16415
  cursor: pointer;
16416
+ user-select: none;
16417
+ color: var(--Rating-inactive-color);
16398
16418
  }
16399
- .cxd-Rating.is-active {
16400
- color: var(--Rating-onActive-color);
16419
+ .cxd-Rating-star-half > svg.icon, .cxd-Rating-star > svg.icon {
16420
+ display: block;
16421
+ width: 1.5rem;
16422
+ height: 1.5rem;
16423
+ top: 0;
16424
+ }
16425
+ .cxd-Rating-star:last-of-type {
16426
+ margin-right: 0;
16401
16427
  }
16402
- .cxd-Rating.is-disabled {
16428
+ .cxd-Rating-star.is-disabled {
16403
16429
  cursor: not-allowed;
16404
16430
  pointer-events: none;
16405
16431
  }
16406
- .cxd-Rating-half:before {
16432
+ .cxd-Rating-star-half {
16407
16433
  position: absolute;
16408
16434
  overflow: hidden;
16409
16435
  display: block;
@@ -16411,8 +16437,17 @@ td.rdtQuarter.rdtDisabled > span {
16411
16437
  top: 0;
16412
16438
  left: 0;
16413
16439
  width: 50%;
16414
- content: attr(data-forhalf);
16415
- color: var(--Rating-onActive-color);
16440
+ }
16441
+ .cxd-Rating-text {
16442
+ font-size: var(--fontSizeSm);
16443
+ color: var(--text-color);
16444
+ font-weight: var(--fontWeightNormal);
16445
+ }
16446
+ .cxd-Rating-text--left {
16447
+ margin-right: var(--Rating-star-margin);
16448
+ }
16449
+ .cxd-Rating-text--right {
16450
+ margin-left: var(--Rating-star-margin);
16416
16451
  }
16417
16452
 
16418
16453
  .cxd-RatingControl {
@@ -1048,7 +1048,9 @@
1048
1048
  --ResultBox-value--onHover-bg: rgba(0, 145, 255, 0.1);
1049
1049
  --ResultBox-value-bg: #f5f5f5;
1050
1050
  --ResultBox-value-color: #000;
1051
- --Rating-onActive-color: var(--info);
1051
+ --Rating-inactive-color: #e6e6e8;
1052
+ --Rating-star-margin: 0.5rem;
1053
+ --Rating-star-size: 1.5rem;
1052
1054
  --Satus-icon-width: var(--gap-lg);
1053
1055
  --Satus-icon-height: var(--Satus-icon-width);
1054
1056
  --Sparkline-line-color: var(--info);
@@ -1739,6 +1741,7 @@
1739
1741
  --Satus-icon-width: 0.875rem;
1740
1742
  --Tree-itemHeight: 2rem;
1741
1743
  --Progress-borderRadius: 1rem;
1744
+ --Rating-inactive-color: #e6e6e8;
1742
1745
  }
1743
1746
 
1744
1747
  /* Reset
@@ -16388,22 +16391,45 @@ td.rdtQuarter.rdtDisabled > span {
16388
16391
  }
16389
16392
 
16390
16393
  .cxd-Rating {
16394
+ display: flex;
16391
16395
  position: relative;
16396
+ align-items: center;
16397
+ justify-content: flex-start;
16398
+ flex-flow: row wrap;
16399
+ }
16400
+ .cxd-Rating > ul {
16401
+ display: flex;
16402
+ padding: unset;
16403
+ margin: unset;
16404
+ align-items: center;
16405
+ justify-content: flex-start;
16406
+ flex-flow: row wrap;
16407
+ }
16408
+ .cxd-Rating-star {
16409
+ position: relative;
16410
+ margin-right: var(--Rating-star-margin);
16392
16411
  overflow: hidden;
16393
16412
  display: block;
16394
- float: left;
16395
- font-size: 1.5rem;
16396
- color: var(--dark);
16413
+ font-size: var(--Rating-star-size);
16414
+ line-height: 1;
16397
16415
  cursor: pointer;
16416
+ user-select: none;
16417
+ color: var(--Rating-inactive-color);
16398
16418
  }
16399
- .cxd-Rating.is-active {
16400
- color: var(--Rating-onActive-color);
16419
+ .cxd-Rating-star-half > svg.icon, .cxd-Rating-star > svg.icon {
16420
+ display: block;
16421
+ width: 1.5rem;
16422
+ height: 1.5rem;
16423
+ top: 0;
16424
+ }
16425
+ .cxd-Rating-star:last-of-type {
16426
+ margin-right: 0;
16401
16427
  }
16402
- .cxd-Rating.is-disabled {
16428
+ .cxd-Rating-star.is-disabled {
16403
16429
  cursor: not-allowed;
16404
16430
  pointer-events: none;
16405
16431
  }
16406
- .cxd-Rating-half:before {
16432
+ .cxd-Rating-star-half {
16407
16433
  position: absolute;
16408
16434
  overflow: hidden;
16409
16435
  display: block;
@@ -16411,8 +16437,17 @@ td.rdtQuarter.rdtDisabled > span {
16411
16437
  top: 0;
16412
16438
  left: 0;
16413
16439
  width: 50%;
16414
- content: attr(data-forhalf);
16415
- color: var(--Rating-onActive-color);
16440
+ }
16441
+ .cxd-Rating-text {
16442
+ font-size: var(--fontSizeSm);
16443
+ color: var(--text-color);
16444
+ font-weight: var(--fontWeightNormal);
16445
+ }
16446
+ .cxd-Rating-text--left {
16447
+ margin-right: var(--Rating-star-margin);
16448
+ }
16449
+ .cxd-Rating-text--right {
16450
+ margin-left: var(--Rating-star-margin);
16416
16451
  }
16417
16452
 
16418
16453
  .cxd-RatingControl {