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
package/sdk/sdk-ie11.css CHANGED
@@ -37470,10 +37470,121 @@ readers do not read off random characters that represent icons */
37470
37470
  border-color: transparent;
37471
37471
  transition: width 0s, height 0s, transform 0s;
37472
37472
  border-width: 0 0 0.125rem 0.125rem;
37473
- transform: translate(-50%, -60%) rotate(-40deg);
37473
+ transform: translate(-50%, -90%) rotate(-40deg);
37474
37474
  border-style: solid;
37475
37475
  }
37476
37476
 
37477
+ .amis-scope .cxd-Checkbox--partial.cxd-Checkbox--checkbox input {
37478
+ margin-left: calc(0.875rem * -1);
37479
+ }
37480
+
37481
+ .amis-scope .cxd-Checkbox--partial.cxd-Checkbox--checkbox input + i {
37482
+ border-color: #2468f2;
37483
+ }
37484
+
37485
+ .amis-scope .cxd-Checkbox--partial.cxd-Checkbox--checkbox input + i:before {
37486
+ width: 0.5rem;
37487
+ height: 0.5rem;
37488
+ background: #2468f2;
37489
+ }
37490
+
37491
+ .amis-scope .cxd-Checkbox--partial.cxd-Checkbox--checkbox input[disabled] + i {
37492
+ border-color: #ebebeb;
37493
+ }
37494
+
37495
+ .amis-scope .cxd-Checkbox--partial.cxd-Checkbox--checkbox input[disabled] + i:before {
37496
+ width: 0.5rem;
37497
+ height: 0.5rem;
37498
+ background: #D4D6D9;
37499
+ }
37500
+
37501
+ .amis-scope .cxd-Checkbox--partial.cxd-Checkbox--checkbox input:checked[disabled] + i {
37502
+ width: 0.5rem;
37503
+ height: 0.5rem;
37504
+ background: #cccccc;
37505
+ }
37506
+
37507
+ .amis-scope .cxd-Checkbox--button.cxd-Checkbox--checkbox {
37508
+ text-align: center;
37509
+ height: 2rem;
37510
+ line-height: 1.875rem;
37511
+ padding-left: 0.75rem;
37512
+ padding-right: 0.75rem;
37513
+ font-size: 0.75rem;
37514
+ border: 0.0625rem solid;
37515
+ cursor: pointer;
37516
+ position: relative;
37517
+ display: inline-block;
37518
+ background-color: #fff;
37519
+ border-color: #e8e9eb;
37520
+ margin-right: 0;
37521
+ }
37522
+
37523
+ .amis-scope .cxd-Checkbox--button.cxd-Checkbox--checkbox:hover:not(:disabled) {
37524
+ color: #2468f2;
37525
+ }
37526
+
37527
+ .amis-scope .cxd-Checkbox--button.cxd-Checkbox--checkbox input:checked + i {
37528
+ background: transparent;
37529
+ top: 0;
37530
+ left: 0;
37531
+ width: 0;
37532
+ height: 0;
37533
+ border-width: 0.5rem;
37534
+ border-color: #2468f2 transparent transparent #2468f2;
37535
+ border-radius: 0;
37536
+ }
37537
+
37538
+ .amis-scope .cxd-Checkbox--button.cxd-Checkbox--checkbox input:checked + i:before {
37539
+ position: absolute;
37540
+ top: 0;
37541
+ left: 0;
37542
+ width: 0.5rem;
37543
+ height: 0.375rem;
37544
+ transform: translate(-80%, -120%) rotate(-50deg);
37545
+ background: transparent;
37546
+ }
37547
+
37548
+ .amis-scope .cxd-Checkbox--button.cxd-Checkbox--checkbox input[disabled] + i {
37549
+ border-color: #ebebeb;
37550
+ background: transparent;
37551
+ }
37552
+
37553
+ .amis-scope .cxd-Checkbox--button.cxd-Checkbox--checkbox input[disabled] + i:before {
37554
+ background: transparent;
37555
+ }
37556
+
37557
+ .amis-scope .cxd-Checkbox--button.cxd-Checkbox--checkbox input:checked[disabled] + i {
37558
+ background: transparent;
37559
+ border-width: 0.5rem;
37560
+ border-color: #2468f2 transparent transparent #2468f2;
37561
+ }
37562
+
37563
+ .amis-scope .cxd-Checkbox--button.cxd-Checkbox--checkbox > i {
37564
+ position: absolute;
37565
+ top: 0;
37566
+ left: 0;
37567
+ margin-left: 0;
37568
+ border: 0;
37569
+ border-style: solid;
37570
+ }
37571
+
37572
+ .amis-scope .cxd-Checkbox--button.cxd-Checkbox--checkbox > i + span {
37573
+ max-width: 6.25rem;
37574
+ text-overflow: ellipsis;
37575
+ white-space: nowrap;
37576
+ overflow: hidden;
37577
+ }
37578
+
37579
+ .amis-scope .cxd-Checkbox--button--checked.cxd-Checkbox--checkbox {
37580
+ border-color: #2468f2;
37581
+ color: #2468f2;
37582
+ }
37583
+
37584
+ .amis-scope .cxd-Checkbox--button--disabled--unchecked.cxd-Checkbox--checkbox {
37585
+ background: #F2F3F3;
37586
+ }
37587
+
37477
37588
  .amis-scope .cxd-Checkbox--radio {
37478
37589
  padding-left: 1rem;
37479
37590
  }
@@ -37575,12 +37686,24 @@ readers do not read off random characters that represent icons */
37575
37686
  );
37576
37687
  }
37577
37688
 
37689
+ .amis-scope .cxd-RadiosControl .cxd-Checkbox--button,
37690
+ .amis-scope .cxd-CheckboxesControl .cxd-Checkbox--button {
37691
+ margin-bottom: 0;
37692
+ }
37693
+
37578
37694
  .amis-scope .cxd-RadiosControl.is-inline .cxd-Checkbox,
37579
37695
  .amis-scope .cxd-CheckboxesControl.is-inline .cxd-Checkbox {
37580
37696
  display: inline-block;
37581
37697
  margin-right: 1rem;
37582
37698
  }
37583
37699
 
37700
+ .amis-scope .cxd-RadiosControl.is-inline .cxd-Checkbox--button,
37701
+ .amis-scope .cxd-CheckboxesControl.is-inline .cxd-Checkbox--button {
37702
+ display: inline-block;
37703
+ margin-right: 0;
37704
+ margin-bottom: 0;
37705
+ }
37706
+
37584
37707
  .amis-scope .cxd-RadiosControl-group:not(:first-child),
37585
37708
  .amis-scope .cxd-CheckboxesControl-group:not(:first-child) {
37586
37709
  margin-top: 0.625rem;
@@ -40917,7 +41040,7 @@ readers do not read off random characters that represent icons */
40917
41040
  border-radius: 0.25rem;
40918
41041
  cursor: pointer;
40919
41042
  display: block;
40920
- height: 0.375rem;
41043
+ height: 0.25rem;
40921
41044
  position: relative;
40922
41045
  transition: left 0s ease-out,
40923
41046
  width 0s ease-out;
@@ -40938,7 +41061,7 @@ readers do not read off random characters that represent icons */
40938
41061
 
40939
41062
  .amis-scope .cxd-InputRange-track--background {
40940
41063
  left: 0.5rem;
40941
- margin-top: calc(-0.5 * 0.375rem);
41064
+ margin-top: calc(-0.5 * 0.25rem);
40942
41065
  position: absolute;
40943
41066
  right: 0.5rem;
40944
41067
  top: 50%;
@@ -43283,6 +43406,23 @@ readers do not read off random characters that represent icons */
43283
43406
  white-space: normal;
43284
43407
  }
43285
43408
 
43409
+ .amis-scope .cxd-Form-item--horizontal-justify {
43410
+ justify-content: space-between;
43411
+ }
43412
+
43413
+ .amis-scope .cxd-Form-item--horizontal-justify > .cxd-Form-label {
43414
+ text-align: left;
43415
+ white-space: var(--Form--horizontal-justify-label-whiteSpace);
43416
+ }
43417
+
43418
+ .amis-scope .cxd-Form-item--horizontal-justify > .cxd-Form-value {
43419
+ text-align: right;
43420
+ }
43421
+
43422
+ .amis-scope .cxd-Form-item--horizontal-justify > .cxd-Form-value > * {
43423
+ text-align: initial;
43424
+ }
43425
+
43286
43426
  .amis-scope .cxd-Form-item--normal > .cxd-Form-label {
43287
43427
  display: block;
43288
43428
  }
package/sdk/sdk.css CHANGED
@@ -12528,6 +12528,12 @@ readers do not read off random characters that represent icons */
12528
12528
  --Checkbox-onHover-color: var(--info);
12529
12529
  --Checkbox-onDisabled-bg: #e5e7eb;
12530
12530
  --Checkbox-onDisabled-color: var(--text--muted-color);
12531
+ --Checkbox-inner-onDisabled-bg: #D4D6D9;
12532
+ --Checkbox-disabled-unchecked-bg: #F2F3F3;
12533
+ --Checkbox-border-width: var(--Form-input-borderWidth);
12534
+ --Checkbox-paddingX: 0.75rem;
12535
+ --Checkbox-button-height: 2rem;
12536
+ --Checkbox-button-line-height: 1.875rem;
12531
12537
  --ColorPicker-bg: var(--white);
12532
12538
  --ColorPicker-borderColor: var(--Form-input-borderColor);
12533
12539
  --ColorPicker-borderRadius: var(--Form-input-borderRadius);
@@ -12684,6 +12690,8 @@ readers do not read off random characters that represent icons */
12684
12690
  --Form--horizontal-label-widthMd: 10rem;
12685
12691
  --Form--horizontal-label-widthSm: 5.625rem;
12686
12692
  --Form--horizontal-label-widthXs: 3.75rem;
12693
+ --Form--horizontal-justify-label-align: left;
12694
+ --Form--horizontal-justify-value-align: right;
12687
12695
  --Form-control-widthBase: 12.5rem;
12688
12696
  --Form-control-widthLg: 20rem;
12689
12697
  --Form-control-widthMd: 15rem;
@@ -12857,7 +12865,7 @@ readers do not read off random characters that represent icons */
12857
12865
  --InputRange-padding: 1.25rem;
12858
12866
  --InputRange-onDisabled-color: var(--light);
12859
12867
  --InputRange-primaryColor: var(--primary);
12860
- --InputRange-track-height: 0.375rem;
12868
+ --InputRange-track-height: 0.25rem;
12861
12869
  --InputRange-track-bg: #f3f4f6;
12862
12870
  --InputRange-track-onDisabled-bg: var(--InputRange-onDisabled-color);
12863
12871
  --InputRange-track-onActive-bg: var(--InputRange-primaryColor);
@@ -39267,10 +39275,121 @@ readers do not read off random characters that represent icons */
39267
39275
  border-color: transparent;
39268
39276
  transition: width var(--animation-duration), height var(--animation-duration), transform var(--animation-duration);
39269
39277
  border-width: 0 0 0.125rem 0.125rem;
39270
- transform: translate(-50%, -60%) rotate(-40deg);
39278
+ transform: translate(-50%, -90%) rotate(-40deg);
39271
39279
  border-style: solid;
39272
39280
  }
39273
39281
 
39282
+ .amis-scope .cxd-Checkbox--partial.cxd-Checkbox--checkbox input {
39283
+ margin-left: calc(var(--Checkbox-size) * -1);
39284
+ }
39285
+
39286
+ .amis-scope .cxd-Checkbox--partial.cxd-Checkbox--checkbox input + i {
39287
+ border-color: var(--Checkbox-onHover-color);
39288
+ }
39289
+
39290
+ .amis-scope .cxd-Checkbox--partial.cxd-Checkbox--checkbox input + i:before {
39291
+ width: var(--Checkbox-inner-size);
39292
+ height: var(--Checkbox-inner-size);
39293
+ background: var(--Checkbox-onHover-color);
39294
+ }
39295
+
39296
+ .amis-scope .cxd-Checkbox--partial.cxd-Checkbox--checkbox input[disabled] + i {
39297
+ border-color: var(--Checkbox-onDisabled-color);
39298
+ }
39299
+
39300
+ .amis-scope .cxd-Checkbox--partial.cxd-Checkbox--checkbox input[disabled] + i:before {
39301
+ width: var(--Checkbox-inner-size);
39302
+ height: var(--Checkbox-inner-size);
39303
+ background: var(--Checkbox-inner-onDisabled-bg);
39304
+ }
39305
+
39306
+ .amis-scope .cxd-Checkbox--partial.cxd-Checkbox--checkbox input:checked[disabled] + i {
39307
+ width: var(--Checkbox-inner-size);
39308
+ height: var(--Checkbox-inner-size);
39309
+ background: var(--Checkbox-onDisabled-bg);
39310
+ }
39311
+
39312
+ .amis-scope .cxd-Checkbox--button.cxd-Checkbox--checkbox {
39313
+ text-align: center;
39314
+ height: var(--Checkbox-button-height);
39315
+ line-height: var(--Checkbox-button-line-height);
39316
+ padding-left: var(--Checkbox-paddingX);
39317
+ padding-right: var(--Checkbox-paddingX);
39318
+ font-size: var(--fontSizeSm);
39319
+ border: var(--Checkbox-border-width) solid;
39320
+ cursor: pointer;
39321
+ position: relative;
39322
+ display: inline-block;
39323
+ background-color: var(--Checkbox-gb);
39324
+ border-color: var(--Checkbox-color);
39325
+ margin-right: 0;
39326
+ }
39327
+
39328
+ .amis-scope .cxd-Checkbox--button.cxd-Checkbox--checkbox:hover:not(:disabled) {
39329
+ color: var(--Checkbox-onHover-color);
39330
+ }
39331
+
39332
+ .amis-scope .cxd-Checkbox--button.cxd-Checkbox--checkbox input:checked + i {
39333
+ background: transparent;
39334
+ top: 0;
39335
+ left: 0;
39336
+ width: 0;
39337
+ height: 0;
39338
+ border-width: 0.5rem;
39339
+ border-color: var(--Checkbox-onHover-color) transparent transparent var(--Checkbox-onHover-color);
39340
+ border-radius: 0;
39341
+ }
39342
+
39343
+ .amis-scope .cxd-Checkbox--button.cxd-Checkbox--checkbox input:checked + i:before {
39344
+ position: absolute;
39345
+ top: 0;
39346
+ left: 0;
39347
+ width: 0.5rem;
39348
+ height: 0.375rem;
39349
+ transform: translate(-80%, -120%) rotate(-50deg);
39350
+ background: transparent;
39351
+ }
39352
+
39353
+ .amis-scope .cxd-Checkbox--button.cxd-Checkbox--checkbox input[disabled] + i {
39354
+ border-color: var(--Checkbox-onDisabled-color);
39355
+ background: transparent;
39356
+ }
39357
+
39358
+ .amis-scope .cxd-Checkbox--button.cxd-Checkbox--checkbox input[disabled] + i:before {
39359
+ background: transparent;
39360
+ }
39361
+
39362
+ .amis-scope .cxd-Checkbox--button.cxd-Checkbox--checkbox input:checked[disabled] + i {
39363
+ background: transparent;
39364
+ border-width: 0.5rem;
39365
+ border-color: var(--Checkbox-onHover-color) transparent transparent var(--Checkbox-onHover-color);
39366
+ }
39367
+
39368
+ .amis-scope .cxd-Checkbox--button.cxd-Checkbox--checkbox > i {
39369
+ position: absolute;
39370
+ top: 0;
39371
+ left: 0;
39372
+ margin-left: 0;
39373
+ border: 0;
39374
+ border-style: solid;
39375
+ }
39376
+
39377
+ .amis-scope .cxd-Checkbox--button.cxd-Checkbox--checkbox > i + span {
39378
+ max-width: 6.25rem;
39379
+ text-overflow: ellipsis;
39380
+ white-space: nowrap;
39381
+ overflow: hidden;
39382
+ }
39383
+
39384
+ .amis-scope .cxd-Checkbox--button--checked.cxd-Checkbox--checkbox {
39385
+ border-color: var(--Checkbox-onHover-color);
39386
+ color: var(--Checkbox-onHover-color);
39387
+ }
39388
+
39389
+ .amis-scope .cxd-Checkbox--button--disabled--unchecked.cxd-Checkbox--checkbox {
39390
+ background: var(--Checkbox-disabled-unchecked-bg);
39391
+ }
39392
+
39274
39393
  .amis-scope .cxd-Checkbox--radio {
39275
39394
  padding-left: var(--Radio-size);
39276
39395
  }
@@ -39367,12 +39486,24 @@ readers do not read off random characters that represent icons */
39367
39486
  margin-bottom: var(--Form-label-paddingTop);
39368
39487
  }
39369
39488
 
39489
+ .amis-scope .cxd-RadiosControl .cxd-Checkbox--button,
39490
+ .amis-scope .cxd-CheckboxesControl .cxd-Checkbox--button {
39491
+ margin-bottom: 0;
39492
+ }
39493
+
39370
39494
  .amis-scope .cxd-RadiosControl.is-inline .cxd-Checkbox,
39371
39495
  .amis-scope .cxd-CheckboxesControl.is-inline .cxd-Checkbox {
39372
39496
  display: inline-block;
39373
39497
  margin-right: var(--gap-md);
39374
39498
  }
39375
39499
 
39500
+ .amis-scope .cxd-RadiosControl.is-inline .cxd-Checkbox--button,
39501
+ .amis-scope .cxd-CheckboxesControl.is-inline .cxd-Checkbox--button {
39502
+ display: inline-block;
39503
+ margin-right: 0;
39504
+ margin-bottom: 0;
39505
+ }
39506
+
39376
39507
  .amis-scope .cxd-RadiosControl-group:not(:first-child),
39377
39508
  .amis-scope .cxd-CheckboxesControl-group:not(:first-child) {
39378
39509
  margin-top: 0.625rem;
@@ -44952,6 +45083,23 @@ readers do not read off random characters that represent icons */
44952
45083
  white-space: var(--Form--horizontal-label-whiteSpace);
44953
45084
  }
44954
45085
 
45086
+ .amis-scope .cxd-Form-item--horizontal-justify {
45087
+ justify-content: space-between;
45088
+ }
45089
+
45090
+ .amis-scope .cxd-Form-item--horizontal-justify > .cxd-Form-label {
45091
+ text-align: var(--Form--horizontal-justify-label-align);
45092
+ white-space: var(--Form--horizontal-justify-label-whiteSpace);
45093
+ }
45094
+
45095
+ .amis-scope .cxd-Form-item--horizontal-justify > .cxd-Form-value {
45096
+ text-align: var(--Form--horizontal-justify-value-align);
45097
+ }
45098
+
45099
+ .amis-scope .cxd-Form-item--horizontal-justify > .cxd-Form-value > * {
45100
+ text-align: initial;
45101
+ }
45102
+
44955
45103
  .amis-scope .cxd-Form-item--normal > .cxd-Form-label {
44956
45104
  display: block;
44957
45105
  }