amis 1.8.0-beta.3 → 1.8.0-beta.5

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 (93) hide show
  1. package/lib/components/AssociatedSelection.js +9 -2
  2. package/lib/components/AssociatedSelection.js.map +2 -2
  3. package/lib/components/Checkbox.d.ts +24 -23
  4. package/lib/components/Checkbox.js +6 -2
  5. package/lib/components/Checkbox.js.map +2 -2
  6. package/lib/components/DateRangePicker.d.ts +2 -0
  7. package/lib/components/DateRangePicker.js +61 -2
  8. package/lib/components/DateRangePicker.js.map +2 -2
  9. package/lib/components/Radios.d.ts +21 -21
  10. package/lib/components/calendar/Calendar.js +2 -14
  11. package/lib/components/calendar/Calendar.js.map +2 -2
  12. package/lib/factory.js +4 -1
  13. package/lib/factory.js.map +2 -2
  14. package/lib/index.js +1 -1
  15. package/lib/renderers/CRUD.d.ts +8 -0
  16. package/lib/renderers/CRUD.js +11 -4
  17. package/lib/renderers/CRUD.js.map +2 -2
  18. package/lib/renderers/Form/Checkbox.d.ts +5 -2
  19. package/lib/renderers/Form/Checkbox.js +2 -2
  20. package/lib/renderers/Form/Checkbox.js.map +2 -2
  21. package/lib/renderers/Form/Checkboxes.d.ts +5 -0
  22. package/lib/renderers/Form/Checkboxes.js +99 -6
  23. package/lib/renderers/Form/Checkboxes.js.map +2 -2
  24. package/lib/renderers/Form/Item.js +3 -1
  25. package/lib/renderers/Form/Item.js.map +2 -2
  26. package/lib/renderers/Form/index.d.ts +1 -0
  27. package/lib/renderers/Form/index.js.map +2 -2
  28. package/lib/renderers/Table/index.d.ts +1 -0
  29. package/lib/renderers/Table/index.js +3 -2
  30. package/lib/renderers/Table/index.js.map +2 -2
  31. package/lib/store/crud.d.ts +1 -0
  32. package/lib/store/crud.js +33 -7
  33. package/lib/store/crud.js.map +2 -2
  34. package/lib/store/formItem.js +1 -1
  35. package/lib/store/formItem.js.map +2 -2
  36. package/lib/themes/ang-ie11.css +120 -3
  37. package/lib/themes/ang.css +127 -2
  38. package/lib/themes/ang.css.map +1 -1
  39. package/lib/themes/antd-ie11.css +120 -3
  40. package/lib/themes/antd.css +127 -2
  41. package/lib/themes/antd.css.map +1 -1
  42. package/lib/themes/cxd-ie11.css +120 -3
  43. package/lib/themes/cxd.css +127 -2
  44. package/lib/themes/cxd.css.map +1 -1
  45. package/lib/themes/dark-ie11.css +120 -3
  46. package/lib/themes/dark.css +127 -2
  47. package/lib/themes/dark.css.map +1 -1
  48. package/lib/themes/default-ie11.css +120 -3
  49. package/lib/themes/default.css +127 -2
  50. package/lib/themes/default.css.map +1 -1
  51. package/package.json +1 -1
  52. package/schema.json +76 -7
  53. package/scss/_properties.scss +10 -1
  54. package/scss/components/form/_checks.scss +122 -1
  55. package/scss/components/form/_form.scss +16 -0
  56. package/sdk/ang-ie11.css +143 -3
  57. package/sdk/ang.css +150 -2
  58. package/sdk/antd-ie11.css +143 -3
  59. package/sdk/antd.css +150 -2
  60. package/sdk/barcode.js +51 -51
  61. package/sdk/charts.js +14 -14
  62. package/sdk/codemirror.js +7 -7
  63. package/sdk/color-picker.js +65 -65
  64. package/sdk/cropperjs.js +2 -2
  65. package/sdk/cxd-ie11.css +143 -3
  66. package/sdk/cxd.css +150 -2
  67. package/sdk/dark-ie11.css +143 -3
  68. package/sdk/dark.css +150 -2
  69. package/sdk/exceljs.js +1 -1
  70. package/sdk/markdown.js +69 -69
  71. package/sdk/papaparse.js +1 -1
  72. package/sdk/renderers/Form/CityDB.js +1 -1
  73. package/sdk/rest.js +17 -17
  74. package/sdk/rich-text.js +62 -62
  75. package/sdk/sdk-ie11.css +143 -3
  76. package/sdk/sdk.css +150 -2
  77. package/sdk/sdk.js +1247 -1247
  78. package/sdk/thirds/hls.js/hls.js +1 -1
  79. package/sdk/thirds/mpegts.js/mpegts.js +1 -1
  80. package/sdk/tinymce.js +57 -57
  81. package/src/components/AssociatedSelection.tsx +9 -3
  82. package/src/components/Checkbox.tsx +11 -5
  83. package/src/components/DateRangePicker.tsx +97 -2
  84. package/src/components/calendar/Calendar.tsx +2 -15
  85. package/src/factory.tsx +4 -1
  86. package/src/renderers/CRUD.tsx +22 -4
  87. package/src/renderers/Form/Checkbox.tsx +11 -2
  88. package/src/renderers/Form/Checkboxes.tsx +101 -5
  89. package/src/renderers/Form/Item.tsx +1 -0
  90. package/src/renderers/Form/index.tsx +1 -0
  91. package/src/renderers/Table/index.tsx +4 -2
  92. package/src/store/crud.ts +40 -5
  93. package/src/store/formItem.ts +1 -2
@@ -22694,9 +22694,103 @@ fieldset.antd-Collapse--lg:after {
22694
22694
  border-color: transparent;
22695
22695
  transition: width 0.2s, height 0.2s, transform 0.2s;
22696
22696
  border-width: 0 0 0.125rem 0.125rem;
22697
- transform: translate(-50%, -60%) rotate(-40deg);
22697
+ transform: translate(-50%, -90%) rotate(-40deg);
22698
22698
  border-style: solid;
22699
22699
  }
22700
+ .antd-Checkbox--partial.antd-Checkbox--checkbox input {
22701
+ margin-left: calc(0.875rem * -1);
22702
+ }
22703
+ .antd-Checkbox--partial.antd-Checkbox--checkbox input + i {
22704
+ border-color: #1890ff;
22705
+ }
22706
+ .antd-Checkbox--partial.antd-Checkbox--checkbox input + i:before {
22707
+ width: calc(0.875rem / 2);
22708
+ height: calc(0.875rem / 2);
22709
+ background: #1890ff;
22710
+ }
22711
+ .antd-Checkbox--partial.antd-Checkbox--checkbox input[disabled] + i {
22712
+ border-color: #d9d9d9;
22713
+ }
22714
+ .antd-Checkbox--partial.antd-Checkbox--checkbox input[disabled] + i:before {
22715
+ width: calc(0.875rem / 2);
22716
+ height: calc(0.875rem / 2);
22717
+ background: #D4D6D9;
22718
+ }
22719
+ .antd-Checkbox--partial.antd-Checkbox--checkbox input:checked[disabled] + i {
22720
+ width: calc(0.875rem / 2);
22721
+ height: calc(0.875rem / 2);
22722
+ background: #f5f5f5;
22723
+ }
22724
+ .antd-Checkbox--button.antd-Checkbox--checkbox {
22725
+ text-align: center;
22726
+ height: 2rem;
22727
+ line-height: 1.875rem;
22728
+ padding-left: 0.75rem;
22729
+ padding-right: 0.75rem;
22730
+ font-size: 0.75rem;
22731
+ border: 0.0625rem solid;
22732
+ cursor: pointer;
22733
+ position: relative;
22734
+ display: inline-block;
22735
+ background-color: #fff;
22736
+ border-color: #d9d9d9;
22737
+ margin-right: 0;
22738
+ }
22739
+ .antd-Checkbox--button.antd-Checkbox--checkbox:hover:not(:disabled) {
22740
+ color: #1890ff;
22741
+ }
22742
+ .antd-Checkbox--button.antd-Checkbox--checkbox input:checked + i {
22743
+ background: transparent;
22744
+ top: 0;
22745
+ left: 0;
22746
+ width: 0;
22747
+ height: 0;
22748
+ border-width: 0.5rem;
22749
+ border-color: #1890ff transparent transparent #1890ff;
22750
+ border-radius: 0;
22751
+ }
22752
+ .antd-Checkbox--button.antd-Checkbox--checkbox input:checked + i:before {
22753
+ position: absolute;
22754
+ top: 0;
22755
+ left: 0;
22756
+ width: 0.5rem;
22757
+ height: 0.375rem;
22758
+ transform: translate(-80%, -120%) rotate(-50deg);
22759
+ background: transparent;
22760
+ }
22761
+ .antd-Checkbox--button.antd-Checkbox--checkbox input[disabled] + i {
22762
+ border-color: #d9d9d9;
22763
+ background: transparent;
22764
+ }
22765
+ .antd-Checkbox--button.antd-Checkbox--checkbox input[disabled] + i:before {
22766
+ background: transparent;
22767
+ }
22768
+ .antd-Checkbox--button.antd-Checkbox--checkbox input:checked[disabled] + i {
22769
+ background: transparent;
22770
+ border-width: 0.5rem;
22771
+ border-color: #1890ff transparent transparent #1890ff;
22772
+ }
22773
+ .antd-Checkbox--button.antd-Checkbox--checkbox > i {
22774
+ position: absolute;
22775
+ top: 0;
22776
+ left: 0;
22777
+ margin-left: 0;
22778
+ border: 0;
22779
+ border-style: solid;
22780
+ }
22781
+ .antd-Checkbox--button.antd-Checkbox--checkbox > i + span {
22782
+ max-width: 6.25rem;
22783
+ text-overflow: ellipsis;
22784
+ white-space: nowrap;
22785
+ overflow: hidden;
22786
+ }
22787
+ .antd-Checkbox--button--checked.antd-Checkbox--checkbox {
22788
+ border-color: #1890ff;
22789
+ color: #1890ff;
22790
+ }
22791
+ .antd-Checkbox--button--disabled--unchecked.antd-Checkbox--checkbox {
22792
+ background: #F2F3F3;
22793
+ }
22700
22794
  .antd-Checkbox--radio {
22701
22795
  padding-left: 0.875rem;
22702
22796
  }
@@ -22782,11 +22876,21 @@ fieldset.antd-Collapse--lg:after {
22782
22876
  ) / 2
22783
22877
  );
22784
22878
  }
22879
+ .antd-RadiosControl .antd-Checkbox--button,
22880
+ .antd-CheckboxesControl .antd-Checkbox--button {
22881
+ margin-bottom: 0;
22882
+ }
22785
22883
  .antd-RadiosControl.is-inline .antd-Checkbox,
22786
22884
  .antd-CheckboxesControl.is-inline .antd-Checkbox {
22787
22885
  display: inline-block;
22788
22886
  margin-right: 1rem;
22789
22887
  }
22888
+ .antd-RadiosControl.is-inline .antd-Checkbox--button,
22889
+ .antd-CheckboxesControl.is-inline .antd-Checkbox--button {
22890
+ display: inline-block;
22891
+ margin-right: 0;
22892
+ margin-bottom: 0;
22893
+ }
22790
22894
 
22791
22895
  .antd-RadiosControl-group:not(:first-child),
22792
22896
  .antd-CheckboxesControl-group:not(:first-child) {
@@ -25630,7 +25734,7 @@ td.rdtQuarter.rdtDisabled > span {
25630
25734
  border-radius: 0.25rem;
25631
25735
  cursor: pointer;
25632
25736
  display: block;
25633
- height: 0.375rem;
25737
+ height: 0.25rem;
25634
25738
  position: relative;
25635
25739
  transition: left 0.2s ease-out,
25636
25740
  width 0.2s ease-out;
@@ -25648,7 +25752,7 @@ td.rdtQuarter.rdtDisabled > span {
25648
25752
  }
25649
25753
  .antd-InputRange-track--background {
25650
25754
  left: 0.5rem;
25651
- margin-top: calc(-0.5 * 0.375rem);
25755
+ margin-top: calc(-0.5 * 0.25rem);
25652
25756
  position: absolute;
25653
25757
  right: 0.5rem;
25654
25758
  top: 50%;
@@ -27636,6 +27740,19 @@ td.rdtQuarter.rdtDisabled > span {
27636
27740
  text-align: right;
27637
27741
  white-space: "normal";
27638
27742
  }
27743
+ .antd-Form-item--horizontal-justify {
27744
+ justify-content: space-between;
27745
+ }
27746
+ .antd-Form-item--horizontal-justify > .antd-Form-label {
27747
+ text-align: left;
27748
+ white-space: var(--Form--horizontal-justify-label-whiteSpace);
27749
+ }
27750
+ .antd-Form-item--horizontal-justify > .antd-Form-value {
27751
+ text-align: right;
27752
+ }
27753
+ .antd-Form-item--horizontal-justify > .antd-Form-value > * {
27754
+ text-align: initial;
27755
+ }
27639
27756
  .antd-Form-item--normal > .antd-Form-label {
27640
27757
  display: block;
27641
27758
  }
@@ -459,6 +459,12 @@
459
459
  --Checkbox-onHover-color: var(--info);
460
460
  --Checkbox-onDisabled-bg: #e5e7eb;
461
461
  --Checkbox-onDisabled-color: var(--text--muted-color);
462
+ --Checkbox-inner-onDisabled-bg: #D4D6D9;
463
+ --Checkbox-disabled-unchecked-bg: #F2F3F3;
464
+ --Checkbox-border-width: var(--Form-input-borderWidth);
465
+ --Checkbox-paddingX: 0.75rem;
466
+ --Checkbox-button-height: 2rem;
467
+ --Checkbox-button-line-height: 1.875rem;
462
468
  --ColorPicker-bg: var(--white);
463
469
  --ColorPicker-borderColor: var(--Form-input-borderColor);
464
470
  --ColorPicker-borderRadius: var(--Form-input-borderRadius);
@@ -615,6 +621,8 @@
615
621
  --Form--horizontal-label-widthMd: 10rem;
616
622
  --Form--horizontal-label-widthSm: 5.625rem;
617
623
  --Form--horizontal-label-widthXs: 3.75rem;
624
+ --Form--horizontal-justify-label-align: left;
625
+ --Form--horizontal-justify-value-align: right;
618
626
  --Form-control-widthBase: 12.5rem;
619
627
  --Form-control-widthLg: 20rem;
620
628
  --Form-control-widthMd: 15rem;
@@ -788,7 +796,7 @@
788
796
  --InputRange-padding: 1.25rem;
789
797
  --InputRange-onDisabled-color: var(--light);
790
798
  --InputRange-primaryColor: var(--primary);
791
- --InputRange-track-height: 0.375rem;
799
+ --InputRange-track-height: 0.25rem;
792
800
  --InputRange-track-bg: #f3f4f6;
793
801
  --InputRange-track-onDisabled-bg: var(--InputRange-onDisabled-color);
794
802
  --InputRange-track-onActive-bg: var(--InputRange-primaryColor);
@@ -24114,9 +24122,103 @@ fieldset.antd-Collapse--lg:after {
24114
24122
  border-color: transparent;
24115
24123
  transition: width var(--animation-duration), height var(--animation-duration), transform var(--animation-duration);
24116
24124
  border-width: 0 0 0.125rem 0.125rem;
24117
- transform: translate(-50%, -60%) rotate(-40deg);
24125
+ transform: translate(-50%, -90%) rotate(-40deg);
24118
24126
  border-style: solid;
24119
24127
  }
24128
+ .antd-Checkbox--partial.antd-Checkbox--checkbox input {
24129
+ margin-left: calc(var(--Checkbox-size) * -1);
24130
+ }
24131
+ .antd-Checkbox--partial.antd-Checkbox--checkbox input + i {
24132
+ border-color: var(--Checkbox-onHover-color);
24133
+ }
24134
+ .antd-Checkbox--partial.antd-Checkbox--checkbox input + i:before {
24135
+ width: var(--Checkbox-inner-size);
24136
+ height: var(--Checkbox-inner-size);
24137
+ background: var(--Checkbox-onHover-color);
24138
+ }
24139
+ .antd-Checkbox--partial.antd-Checkbox--checkbox input[disabled] + i {
24140
+ border-color: var(--Checkbox-onDisabled-color);
24141
+ }
24142
+ .antd-Checkbox--partial.antd-Checkbox--checkbox input[disabled] + i:before {
24143
+ width: var(--Checkbox-inner-size);
24144
+ height: var(--Checkbox-inner-size);
24145
+ background: var(--Checkbox-inner-onDisabled-bg);
24146
+ }
24147
+ .antd-Checkbox--partial.antd-Checkbox--checkbox input:checked[disabled] + i {
24148
+ width: var(--Checkbox-inner-size);
24149
+ height: var(--Checkbox-inner-size);
24150
+ background: var(--Checkbox-onDisabled-bg);
24151
+ }
24152
+ .antd-Checkbox--button.antd-Checkbox--checkbox {
24153
+ text-align: center;
24154
+ height: var(--Checkbox-button-height);
24155
+ line-height: var(--Checkbox-button-line-height);
24156
+ padding-left: var(--Checkbox-paddingX);
24157
+ padding-right: var(--Checkbox-paddingX);
24158
+ font-size: var(--fontSizeSm);
24159
+ border: var(--Checkbox-border-width) solid;
24160
+ cursor: pointer;
24161
+ position: relative;
24162
+ display: inline-block;
24163
+ background-color: var(--Checkbox-gb);
24164
+ border-color: var(--Checkbox-color);
24165
+ margin-right: 0;
24166
+ }
24167
+ .antd-Checkbox--button.antd-Checkbox--checkbox:hover:not(:disabled) {
24168
+ color: var(--Checkbox-onHover-color);
24169
+ }
24170
+ .antd-Checkbox--button.antd-Checkbox--checkbox input:checked + i {
24171
+ background: transparent;
24172
+ top: 0;
24173
+ left: 0;
24174
+ width: 0;
24175
+ height: 0;
24176
+ border-width: 0.5rem;
24177
+ border-color: var(--Checkbox-onHover-color) transparent transparent var(--Checkbox-onHover-color);
24178
+ border-radius: 0;
24179
+ }
24180
+ .antd-Checkbox--button.antd-Checkbox--checkbox input:checked + i:before {
24181
+ position: absolute;
24182
+ top: 0;
24183
+ left: 0;
24184
+ width: 0.5rem;
24185
+ height: 0.375rem;
24186
+ transform: translate(-80%, -120%) rotate(-50deg);
24187
+ background: transparent;
24188
+ }
24189
+ .antd-Checkbox--button.antd-Checkbox--checkbox input[disabled] + i {
24190
+ border-color: var(--Checkbox-onDisabled-color);
24191
+ background: transparent;
24192
+ }
24193
+ .antd-Checkbox--button.antd-Checkbox--checkbox input[disabled] + i:before {
24194
+ background: transparent;
24195
+ }
24196
+ .antd-Checkbox--button.antd-Checkbox--checkbox input:checked[disabled] + i {
24197
+ background: transparent;
24198
+ border-width: 0.5rem;
24199
+ border-color: var(--Checkbox-onHover-color) transparent transparent var(--Checkbox-onHover-color);
24200
+ }
24201
+ .antd-Checkbox--button.antd-Checkbox--checkbox > i {
24202
+ position: absolute;
24203
+ top: 0;
24204
+ left: 0;
24205
+ margin-left: 0;
24206
+ border: 0;
24207
+ border-style: solid;
24208
+ }
24209
+ .antd-Checkbox--button.antd-Checkbox--checkbox > i + span {
24210
+ max-width: 6.25rem;
24211
+ text-overflow: ellipsis;
24212
+ white-space: nowrap;
24213
+ overflow: hidden;
24214
+ }
24215
+ .antd-Checkbox--button--checked.antd-Checkbox--checkbox {
24216
+ border-color: var(--Checkbox-onHover-color);
24217
+ color: var(--Checkbox-onHover-color);
24218
+ }
24219
+ .antd-Checkbox--button--disabled--unchecked.antd-Checkbox--checkbox {
24220
+ background: var(--Checkbox-disabled-unchecked-bg);
24221
+ }
24120
24222
  .antd-Checkbox--radio {
24121
24223
  padding-left: var(--Radio-size);
24122
24224
  }
@@ -24197,11 +24299,21 @@ fieldset.antd-Collapse--lg:after {
24197
24299
  display: block;
24198
24300
  margin-bottom: var(--Form-label-paddingTop);
24199
24301
  }
24302
+ .antd-RadiosControl .antd-Checkbox--button,
24303
+ .antd-CheckboxesControl .antd-Checkbox--button {
24304
+ margin-bottom: 0;
24305
+ }
24200
24306
  .antd-RadiosControl.is-inline .antd-Checkbox,
24201
24307
  .antd-CheckboxesControl.is-inline .antd-Checkbox {
24202
24308
  display: inline-block;
24203
24309
  margin-right: var(--gap-md);
24204
24310
  }
24311
+ .antd-RadiosControl.is-inline .antd-Checkbox--button,
24312
+ .antd-CheckboxesControl.is-inline .antd-Checkbox--button {
24313
+ display: inline-block;
24314
+ margin-right: 0;
24315
+ margin-bottom: 0;
24316
+ }
24205
24317
 
24206
24318
  .antd-RadiosControl-group:not(:first-child),
24207
24319
  .antd-CheckboxesControl-group:not(:first-child) {
@@ -28916,6 +29028,19 @@ td.rdtQuarter.rdtDisabled > span {
28916
29028
  text-align: var(--Form--horizontal-label-align);
28917
29029
  white-space: var(--Form--horizontal-label-whiteSpace);
28918
29030
  }
29031
+ .antd-Form-item--horizontal-justify {
29032
+ justify-content: space-between;
29033
+ }
29034
+ .antd-Form-item--horizontal-justify > .antd-Form-label {
29035
+ text-align: var(--Form--horizontal-justify-label-align);
29036
+ white-space: var(--Form--horizontal-justify-label-whiteSpace);
29037
+ }
29038
+ .antd-Form-item--horizontal-justify > .antd-Form-value {
29039
+ text-align: var(--Form--horizontal-justify-value-align);
29040
+ }
29041
+ .antd-Form-item--horizontal-justify > .antd-Form-value > * {
29042
+ text-align: initial;
29043
+ }
28919
29044
  .antd-Form-item--normal > .antd-Form-label {
28920
29045
  display: block;
28921
29046
  }