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
@@ -22688,9 +22688,103 @@ fieldset.cxd-Collapse--lg:after {
22688
22688
  border-color: transparent;
22689
22689
  transition: width 0.2s, height 0.2s, transform 0.2s;
22690
22690
  border-width: 0 0 0.125rem 0.125rem;
22691
- transform: translate(-50%, -60%) rotate(-40deg);
22691
+ transform: translate(-50%, -90%) rotate(-40deg);
22692
22692
  border-style: solid;
22693
22693
  }
22694
+ .cxd-Checkbox--partial.cxd-Checkbox--checkbox input {
22695
+ margin-left: calc(0.875rem * -1);
22696
+ }
22697
+ .cxd-Checkbox--partial.cxd-Checkbox--checkbox input + i {
22698
+ border-color: #2468f2;
22699
+ }
22700
+ .cxd-Checkbox--partial.cxd-Checkbox--checkbox input + i:before {
22701
+ width: 0.5rem;
22702
+ height: 0.5rem;
22703
+ background: #2468f2;
22704
+ }
22705
+ .cxd-Checkbox--partial.cxd-Checkbox--checkbox input[disabled] + i {
22706
+ border-color: #ebebeb;
22707
+ }
22708
+ .cxd-Checkbox--partial.cxd-Checkbox--checkbox input[disabled] + i:before {
22709
+ width: 0.5rem;
22710
+ height: 0.5rem;
22711
+ background: #D4D6D9;
22712
+ }
22713
+ .cxd-Checkbox--partial.cxd-Checkbox--checkbox input:checked[disabled] + i {
22714
+ width: 0.5rem;
22715
+ height: 0.5rem;
22716
+ background: #cccccc;
22717
+ }
22718
+ .cxd-Checkbox--button.cxd-Checkbox--checkbox {
22719
+ text-align: center;
22720
+ height: 2rem;
22721
+ line-height: 1.875rem;
22722
+ padding-left: 0.75rem;
22723
+ padding-right: 0.75rem;
22724
+ font-size: 0.75rem;
22725
+ border: 0.0625rem solid;
22726
+ cursor: pointer;
22727
+ position: relative;
22728
+ display: inline-block;
22729
+ background-color: #fff;
22730
+ border-color: #e8e9eb;
22731
+ margin-right: 0;
22732
+ }
22733
+ .cxd-Checkbox--button.cxd-Checkbox--checkbox:hover:not(:disabled) {
22734
+ color: #2468f2;
22735
+ }
22736
+ .cxd-Checkbox--button.cxd-Checkbox--checkbox input:checked + i {
22737
+ background: transparent;
22738
+ top: 0;
22739
+ left: 0;
22740
+ width: 0;
22741
+ height: 0;
22742
+ border-width: 0.5rem;
22743
+ border-color: #2468f2 transparent transparent #2468f2;
22744
+ border-radius: 0;
22745
+ }
22746
+ .cxd-Checkbox--button.cxd-Checkbox--checkbox input:checked + i:before {
22747
+ position: absolute;
22748
+ top: 0;
22749
+ left: 0;
22750
+ width: 0.5rem;
22751
+ height: 0.375rem;
22752
+ transform: translate(-80%, -120%) rotate(-50deg);
22753
+ background: transparent;
22754
+ }
22755
+ .cxd-Checkbox--button.cxd-Checkbox--checkbox input[disabled] + i {
22756
+ border-color: #ebebeb;
22757
+ background: transparent;
22758
+ }
22759
+ .cxd-Checkbox--button.cxd-Checkbox--checkbox input[disabled] + i:before {
22760
+ background: transparent;
22761
+ }
22762
+ .cxd-Checkbox--button.cxd-Checkbox--checkbox input:checked[disabled] + i {
22763
+ background: transparent;
22764
+ border-width: 0.5rem;
22765
+ border-color: #2468f2 transparent transparent #2468f2;
22766
+ }
22767
+ .cxd-Checkbox--button.cxd-Checkbox--checkbox > i {
22768
+ position: absolute;
22769
+ top: 0;
22770
+ left: 0;
22771
+ margin-left: 0;
22772
+ border: 0;
22773
+ border-style: solid;
22774
+ }
22775
+ .cxd-Checkbox--button.cxd-Checkbox--checkbox > i + span {
22776
+ max-width: 6.25rem;
22777
+ text-overflow: ellipsis;
22778
+ white-space: nowrap;
22779
+ overflow: hidden;
22780
+ }
22781
+ .cxd-Checkbox--button--checked.cxd-Checkbox--checkbox {
22782
+ border-color: #2468f2;
22783
+ color: #2468f2;
22784
+ }
22785
+ .cxd-Checkbox--button--disabled--unchecked.cxd-Checkbox--checkbox {
22786
+ background: #F2F3F3;
22787
+ }
22694
22788
  .cxd-Checkbox--radio {
22695
22789
  padding-left: 1rem;
22696
22790
  }
@@ -22776,11 +22870,21 @@ fieldset.cxd-Collapse--lg:after {
22776
22870
  ) / 2
22777
22871
  );
22778
22872
  }
22873
+ .cxd-RadiosControl .cxd-Checkbox--button,
22874
+ .cxd-CheckboxesControl .cxd-Checkbox--button {
22875
+ margin-bottom: 0;
22876
+ }
22779
22877
  .cxd-RadiosControl.is-inline .cxd-Checkbox,
22780
22878
  .cxd-CheckboxesControl.is-inline .cxd-Checkbox {
22781
22879
  display: inline-block;
22782
22880
  margin-right: 1rem;
22783
22881
  }
22882
+ .cxd-RadiosControl.is-inline .cxd-Checkbox--button,
22883
+ .cxd-CheckboxesControl.is-inline .cxd-Checkbox--button {
22884
+ display: inline-block;
22885
+ margin-right: 0;
22886
+ margin-bottom: 0;
22887
+ }
22784
22888
 
22785
22889
  .cxd-RadiosControl-group:not(:first-child),
22786
22890
  .cxd-CheckboxesControl-group:not(:first-child) {
@@ -25623,7 +25727,7 @@ td.rdtQuarter.rdtDisabled > span {
25623
25727
  border-radius: 0.25rem;
25624
25728
  cursor: pointer;
25625
25729
  display: block;
25626
- height: 0.375rem;
25730
+ height: 0.25rem;
25627
25731
  position: relative;
25628
25732
  transition: left 0.2s ease-out,
25629
25733
  width 0.2s ease-out;
@@ -25641,7 +25745,7 @@ td.rdtQuarter.rdtDisabled > span {
25641
25745
  }
25642
25746
  .cxd-InputRange-track--background {
25643
25747
  left: 0.5rem;
25644
- margin-top: calc(-0.5 * 0.375rem);
25748
+ margin-top: calc(-0.5 * 0.25rem);
25645
25749
  position: absolute;
25646
25750
  right: 0.5rem;
25647
25751
  top: 50%;
@@ -27618,6 +27722,19 @@ td.rdtQuarter.rdtDisabled > span {
27618
27722
  text-align: right;
27619
27723
  white-space: normal;
27620
27724
  }
27725
+ .cxd-Form-item--horizontal-justify {
27726
+ justify-content: space-between;
27727
+ }
27728
+ .cxd-Form-item--horizontal-justify > .cxd-Form-label {
27729
+ text-align: left;
27730
+ white-space: var(--Form--horizontal-justify-label-whiteSpace);
27731
+ }
27732
+ .cxd-Form-item--horizontal-justify > .cxd-Form-value {
27733
+ text-align: right;
27734
+ }
27735
+ .cxd-Form-item--horizontal-justify > .cxd-Form-value > * {
27736
+ text-align: initial;
27737
+ }
27621
27738
  .cxd-Form-item--normal > .cxd-Form-label {
27622
27739
  display: block;
27623
27740
  }
@@ -456,6 +456,12 @@
456
456
  --Checkbox-onHover-color: var(--info);
457
457
  --Checkbox-onDisabled-bg: #e5e7eb;
458
458
  --Checkbox-onDisabled-color: var(--text--muted-color);
459
+ --Checkbox-inner-onDisabled-bg: #D4D6D9;
460
+ --Checkbox-disabled-unchecked-bg: #F2F3F3;
461
+ --Checkbox-border-width: var(--Form-input-borderWidth);
462
+ --Checkbox-paddingX: 0.75rem;
463
+ --Checkbox-button-height: 2rem;
464
+ --Checkbox-button-line-height: 1.875rem;
459
465
  --ColorPicker-bg: var(--white);
460
466
  --ColorPicker-borderColor: var(--Form-input-borderColor);
461
467
  --ColorPicker-borderRadius: var(--Form-input-borderRadius);
@@ -612,6 +618,8 @@
612
618
  --Form--horizontal-label-widthMd: 10rem;
613
619
  --Form--horizontal-label-widthSm: 5.625rem;
614
620
  --Form--horizontal-label-widthXs: 3.75rem;
621
+ --Form--horizontal-justify-label-align: left;
622
+ --Form--horizontal-justify-value-align: right;
615
623
  --Form-control-widthBase: 12.5rem;
616
624
  --Form-control-widthLg: 20rem;
617
625
  --Form-control-widthMd: 15rem;
@@ -785,7 +793,7 @@
785
793
  --InputRange-padding: 1.25rem;
786
794
  --InputRange-onDisabled-color: var(--light);
787
795
  --InputRange-primaryColor: var(--primary);
788
- --InputRange-track-height: 0.375rem;
796
+ --InputRange-track-height: 0.25rem;
789
797
  --InputRange-track-bg: #f3f4f6;
790
798
  --InputRange-track-onDisabled-bg: var(--InputRange-onDisabled-color);
791
799
  --InputRange-track-onActive-bg: var(--InputRange-primaryColor);
@@ -24469,9 +24477,103 @@ fieldset.cxd-Collapse--lg:after {
24469
24477
  border-color: transparent;
24470
24478
  transition: width var(--animation-duration), height var(--animation-duration), transform var(--animation-duration);
24471
24479
  border-width: 0 0 0.125rem 0.125rem;
24472
- transform: translate(-50%, -60%) rotate(-40deg);
24480
+ transform: translate(-50%, -90%) rotate(-40deg);
24473
24481
  border-style: solid;
24474
24482
  }
24483
+ .cxd-Checkbox--partial.cxd-Checkbox--checkbox input {
24484
+ margin-left: calc(var(--Checkbox-size) * -1);
24485
+ }
24486
+ .cxd-Checkbox--partial.cxd-Checkbox--checkbox input + i {
24487
+ border-color: var(--Checkbox-onHover-color);
24488
+ }
24489
+ .cxd-Checkbox--partial.cxd-Checkbox--checkbox input + i:before {
24490
+ width: var(--Checkbox-inner-size);
24491
+ height: var(--Checkbox-inner-size);
24492
+ background: var(--Checkbox-onHover-color);
24493
+ }
24494
+ .cxd-Checkbox--partial.cxd-Checkbox--checkbox input[disabled] + i {
24495
+ border-color: var(--Checkbox-onDisabled-color);
24496
+ }
24497
+ .cxd-Checkbox--partial.cxd-Checkbox--checkbox input[disabled] + i:before {
24498
+ width: var(--Checkbox-inner-size);
24499
+ height: var(--Checkbox-inner-size);
24500
+ background: var(--Checkbox-inner-onDisabled-bg);
24501
+ }
24502
+ .cxd-Checkbox--partial.cxd-Checkbox--checkbox input:checked[disabled] + i {
24503
+ width: var(--Checkbox-inner-size);
24504
+ height: var(--Checkbox-inner-size);
24505
+ background: var(--Checkbox-onDisabled-bg);
24506
+ }
24507
+ .cxd-Checkbox--button.cxd-Checkbox--checkbox {
24508
+ text-align: center;
24509
+ height: var(--Checkbox-button-height);
24510
+ line-height: var(--Checkbox-button-line-height);
24511
+ padding-left: var(--Checkbox-paddingX);
24512
+ padding-right: var(--Checkbox-paddingX);
24513
+ font-size: var(--fontSizeSm);
24514
+ border: var(--Checkbox-border-width) solid;
24515
+ cursor: pointer;
24516
+ position: relative;
24517
+ display: inline-block;
24518
+ background-color: var(--Checkbox-gb);
24519
+ border-color: var(--Checkbox-color);
24520
+ margin-right: 0;
24521
+ }
24522
+ .cxd-Checkbox--button.cxd-Checkbox--checkbox:hover:not(:disabled) {
24523
+ color: var(--Checkbox-onHover-color);
24524
+ }
24525
+ .cxd-Checkbox--button.cxd-Checkbox--checkbox input:checked + i {
24526
+ background: transparent;
24527
+ top: 0;
24528
+ left: 0;
24529
+ width: 0;
24530
+ height: 0;
24531
+ border-width: 0.5rem;
24532
+ border-color: var(--Checkbox-onHover-color) transparent transparent var(--Checkbox-onHover-color);
24533
+ border-radius: 0;
24534
+ }
24535
+ .cxd-Checkbox--button.cxd-Checkbox--checkbox input:checked + i:before {
24536
+ position: absolute;
24537
+ top: 0;
24538
+ left: 0;
24539
+ width: 0.5rem;
24540
+ height: 0.375rem;
24541
+ transform: translate(-80%, -120%) rotate(-50deg);
24542
+ background: transparent;
24543
+ }
24544
+ .cxd-Checkbox--button.cxd-Checkbox--checkbox input[disabled] + i {
24545
+ border-color: var(--Checkbox-onDisabled-color);
24546
+ background: transparent;
24547
+ }
24548
+ .cxd-Checkbox--button.cxd-Checkbox--checkbox input[disabled] + i:before {
24549
+ background: transparent;
24550
+ }
24551
+ .cxd-Checkbox--button.cxd-Checkbox--checkbox input:checked[disabled] + i {
24552
+ background: transparent;
24553
+ border-width: 0.5rem;
24554
+ border-color: var(--Checkbox-onHover-color) transparent transparent var(--Checkbox-onHover-color);
24555
+ }
24556
+ .cxd-Checkbox--button.cxd-Checkbox--checkbox > i {
24557
+ position: absolute;
24558
+ top: 0;
24559
+ left: 0;
24560
+ margin-left: 0;
24561
+ border: 0;
24562
+ border-style: solid;
24563
+ }
24564
+ .cxd-Checkbox--button.cxd-Checkbox--checkbox > i + span {
24565
+ max-width: 6.25rem;
24566
+ text-overflow: ellipsis;
24567
+ white-space: nowrap;
24568
+ overflow: hidden;
24569
+ }
24570
+ .cxd-Checkbox--button--checked.cxd-Checkbox--checkbox {
24571
+ border-color: var(--Checkbox-onHover-color);
24572
+ color: var(--Checkbox-onHover-color);
24573
+ }
24574
+ .cxd-Checkbox--button--disabled--unchecked.cxd-Checkbox--checkbox {
24575
+ background: var(--Checkbox-disabled-unchecked-bg);
24576
+ }
24475
24577
  .cxd-Checkbox--radio {
24476
24578
  padding-left: var(--Radio-size);
24477
24579
  }
@@ -24552,11 +24654,21 @@ fieldset.cxd-Collapse--lg:after {
24552
24654
  display: block;
24553
24655
  margin-bottom: var(--Form-label-paddingTop);
24554
24656
  }
24657
+ .cxd-RadiosControl .cxd-Checkbox--button,
24658
+ .cxd-CheckboxesControl .cxd-Checkbox--button {
24659
+ margin-bottom: 0;
24660
+ }
24555
24661
  .cxd-RadiosControl.is-inline .cxd-Checkbox,
24556
24662
  .cxd-CheckboxesControl.is-inline .cxd-Checkbox {
24557
24663
  display: inline-block;
24558
24664
  margin-right: var(--gap-md);
24559
24665
  }
24666
+ .cxd-RadiosControl.is-inline .cxd-Checkbox--button,
24667
+ .cxd-CheckboxesControl.is-inline .cxd-Checkbox--button {
24668
+ display: inline-block;
24669
+ margin-right: 0;
24670
+ margin-bottom: 0;
24671
+ }
24560
24672
 
24561
24673
  .cxd-RadiosControl-group:not(:first-child),
24562
24674
  .cxd-CheckboxesControl-group:not(:first-child) {
@@ -29271,6 +29383,19 @@ td.rdtQuarter.rdtDisabled > span {
29271
29383
  text-align: var(--Form--horizontal-label-align);
29272
29384
  white-space: var(--Form--horizontal-label-whiteSpace);
29273
29385
  }
29386
+ .cxd-Form-item--horizontal-justify {
29387
+ justify-content: space-between;
29388
+ }
29389
+ .cxd-Form-item--horizontal-justify > .cxd-Form-label {
29390
+ text-align: var(--Form--horizontal-justify-label-align);
29391
+ white-space: var(--Form--horizontal-justify-label-whiteSpace);
29392
+ }
29393
+ .cxd-Form-item--horizontal-justify > .cxd-Form-value {
29394
+ text-align: var(--Form--horizontal-justify-value-align);
29395
+ }
29396
+ .cxd-Form-item--horizontal-justify > .cxd-Form-value > * {
29397
+ text-align: initial;
29398
+ }
29274
29399
  .cxd-Form-item--normal > .cxd-Form-label {
29275
29400
  display: block;
29276
29401
  }