amis 1.9.1-beta.28 → 1.9.1-beta.29

Sign up to get free protection for your applications and to get access to all the features.
Files changed (97) hide show
  1. package/lib/components/AnchorNav.d.ts +8 -2
  2. package/lib/components/AnchorNav.js +24 -5
  3. package/lib/components/AnchorNav.js.map +2 -2
  4. package/lib/components/DatePicker.d.ts +41 -40
  5. package/lib/components/DatePicker.js +2 -2
  6. package/lib/components/DatePicker.js.map +2 -2
  7. package/lib/components/DateRangePicker.d.ts +44 -41
  8. package/lib/components/DateRangePicker.js +25 -8
  9. package/lib/components/DateRangePicker.js.map +2 -2
  10. package/lib/components/MonthRangePicker.d.ts +41 -40
  11. package/lib/components/MonthRangePicker.js +2 -2
  12. package/lib/components/MonthRangePicker.js.map +2 -2
  13. package/lib/components/SearchBox.d.ts +124 -42
  14. package/lib/components/SearchBox.js +181 -19
  15. package/lib/components/SearchBox.js.map +2 -2
  16. package/lib/components/Tag.d.ts +12 -10
  17. package/lib/components/Tag.js +18 -7
  18. package/lib/components/Tag.js.map +2 -2
  19. package/lib/locale/de-DE.js +1 -0
  20. package/lib/locale/de-DE.js.map +2 -2
  21. package/lib/locale/en-US.js +1 -0
  22. package/lib/locale/en-US.js.map +2 -2
  23. package/lib/locale/zh-CN.js +1 -0
  24. package/lib/locale/zh-CN.js.map +2 -2
  25. package/lib/renderers/Card.d.ts +7 -2
  26. package/lib/renderers/Card.js +11 -7
  27. package/lib/renderers/Card.js.map +2 -2
  28. package/lib/renderers/Form/InputExcel.d.ts +1 -0
  29. package/lib/renderers/Form/InputExcel.js +5 -0
  30. package/lib/renderers/Form/InputExcel.js.map +2 -2
  31. package/lib/renderers/Form/InputFile.d.ts +2 -2
  32. package/lib/renderers/Form/InputFile.js +6 -5
  33. package/lib/renderers/Form/InputFile.js.map +2 -2
  34. package/lib/renderers/Form/InputText.d.ts +8 -0
  35. package/lib/renderers/Form/InputText.js +8 -8
  36. package/lib/renderers/Form/InputText.js.map +2 -2
  37. package/lib/renderers/Table/index.js +1 -1
  38. package/lib/renderers/Table/index.js.map +2 -2
  39. package/lib/renderers/Tag.js +2 -2
  40. package/lib/renderers/Tag.js.map +2 -2
  41. package/lib/renderers/Wizard.d.ts +1 -1
  42. package/lib/renderers/Wizard.js +72 -75
  43. package/lib/renderers/Wizard.js.map +2 -2
  44. package/lib/store/formItem.js +2 -1
  45. package/lib/store/formItem.js.map +2 -2
  46. package/lib/themes/ang-ie11.css +120 -15
  47. package/lib/themes/ang.css +124 -15
  48. package/lib/themes/ang.css.map +1 -1
  49. package/lib/themes/antd-ie11.css +120 -15
  50. package/lib/themes/antd.css +124 -15
  51. package/lib/themes/antd.css.map +1 -1
  52. package/lib/themes/cxd-ie11.css +120 -15
  53. package/lib/themes/cxd.css +124 -15
  54. package/lib/themes/cxd.css.map +1 -1
  55. package/lib/themes/dark-ie11.css +120 -15
  56. package/lib/themes/dark.css +124 -15
  57. package/lib/themes/dark.css.map +1 -1
  58. package/lib/themes/default-ie11.css +120 -15
  59. package/lib/themes/default.css +124 -15
  60. package/lib/themes/default.css.map +1 -1
  61. package/package.json +3 -3
  62. package/schema.json +35 -14
  63. package/scss/_properties.scss +5 -0
  64. package/scss/components/_anchor-nav.scss +1 -0
  65. package/scss/components/_calendar.scss +32 -14
  66. package/scss/components/_search-box.scss +116 -10
  67. package/scss/components/_tag.scss +12 -3
  68. package/scss/components/form/_date-range.scss +1 -1
  69. package/sdk/ang-ie11.css +131 -14
  70. package/sdk/ang.css +135 -14
  71. package/sdk/antd-ie11.css +131 -14
  72. package/sdk/antd.css +135 -14
  73. package/sdk/cxd-ie11.css +131 -14
  74. package/sdk/cxd.css +135 -14
  75. package/sdk/dark-ie11.css +131 -14
  76. package/sdk/dark.css +135 -14
  77. package/sdk/locale/de-DE.js +1 -0
  78. package/sdk/sdk-ie11.css +131 -14
  79. package/sdk/sdk.css +135 -14
  80. package/sdk/sdk.js +17 -17
  81. package/src/components/AnchorNav.tsx +40 -7
  82. package/src/components/DatePicker.tsx +8 -4
  83. package/src/components/DateRangePicker.tsx +34 -8
  84. package/src/components/MonthRangePicker.tsx +4 -2
  85. package/src/components/SearchBox.tsx +262 -29
  86. package/src/components/Tag.tsx +14 -3
  87. package/src/locale/de-DE.ts +1 -0
  88. package/src/locale/en-US.ts +1 -0
  89. package/src/locale/zh-CN.ts +1 -0
  90. package/src/renderers/Card.tsx +24 -12
  91. package/src/renderers/Form/InputExcel.tsx +6 -0
  92. package/src/renderers/Form/InputFile.tsx +19 -18
  93. package/src/renderers/Form/InputText.tsx +20 -5
  94. package/src/renderers/Table/index.tsx +1 -1
  95. package/src/renderers/Tag.tsx +2 -0
  96. package/src/renderers/Wizard.tsx +2 -1
  97. package/src/store/formItem.ts +4 -1
package/sdk/sdk.css CHANGED
@@ -14735,6 +14735,10 @@ readers do not read off random characters that represent icons */
14735
14735
  --default-padding: 4px 12px;
14736
14736
  --menu-min-width: 150px;
14737
14737
  --menu-sub-min-width: 100px;
14738
+ --SearchBox-height: 1.875rem;
14739
+ --SearchBox-width: 9.375rem;
14740
+ --SearchBox-history-dropdown-maxWidth: calc(var(--SearchBox-width) * 2);
14741
+ --SearchBox-history-dropdown-maxHeight: 12.5rem;
14738
14742
  }
14739
14743
 
14740
14744
  :root {
@@ -33162,6 +33166,11 @@ readers do not read off random characters that represent icons */
33162
33166
  border-width: 0;
33163
33167
  }
33164
33168
 
33169
+ .amis-scope .cxd-CalendarMobile-pop--time {
33170
+ height: fit-content;
33171
+ max-height: 90vh;
33172
+ }
33173
+
33165
33174
  .amis-scope .cxd-CalendarMobile-wrap {
33166
33175
  display: flex;
33167
33176
  flex-direction: column;
@@ -33383,7 +33392,7 @@ readers do not read off random characters that represent icons */
33383
33392
  }
33384
33393
 
33385
33394
  .amis-scope .cxd-CalendarMobile .cxd-CalendarMobile-calendar-wrap .cxd-CalendarMobile-calendar .rdtPicker .rdtToday .calendar-wrap {
33386
- border: 1px solid #2468F2;
33395
+ border: 1px solid #2468f2;
33387
33396
  }
33388
33397
 
33389
33398
  .amis-scope .cxd-CalendarMobile-calendar-header {
@@ -40907,7 +40916,7 @@ readers do not read off random characters that represent icons */
40907
40916
  .amis-scope .cxd-SearchBox.is-active {
40908
40917
  background: var(--Form-input-bg);
40909
40918
  border: var(--Form-input-borderWidth) solid var(--Form-input-borderColor);
40910
- width: 150px;
40919
+ width: var(--SearchBox-width);
40911
40920
  }
40912
40921
 
40913
40922
  .amis-scope .cxd-SearchBox.is-active > input {
@@ -40923,14 +40932,8 @@ readers do not read off random characters that represent icons */
40923
40932
  }
40924
40933
 
40925
40934
  .amis-scope .cxd-SearchBox-searchBtn {
40926
- display: flex;
40927
- width: var(--SearchBox-height);
40928
- align-items: center;
40929
- justify-content: center;
40930
- }
40931
-
40932
- .amis-scope .cxd-SearchBox-searchBtn .icon {
40933
- top: 0;
40935
+ display: inline-block;
40936
+ padding: 0.3125rem 0.625rem;
40934
40937
  }
40935
40938
 
40936
40939
  .amis-scope .cxd-SearchBox-activeBtn,
@@ -41018,6 +41021,116 @@ readers do not read off random characters that represent icons */
41018
41021
  color: var(--SearchBox-enhonce-disabled-search-color);
41019
41022
  }
41020
41023
 
41024
+ .amis-scope .cxd-SearchBox-history > .is-history {
41025
+ width: 100%;
41026
+ }
41027
+
41028
+ .amis-scope .cxd-SearchBox-history .cxd-SearchBox-history-dropdown {
41029
+ position: absolute;
41030
+ left: 0;
41031
+ z-index: 998;
41032
+ padding: var(--gap-sm) 0;
41033
+ width: 100%;
41034
+ max-width: var(--SearchBox-history-dropdown-maxWidth);
41035
+ min-height: 4.5rem;
41036
+ max-height: var(--SearchBox-history-dropdown-maxHeight);
41037
+ background: var(--white);
41038
+ border: var(--borderWidth) solid var(--borderColor);
41039
+ border-top: none;
41040
+ border-radius: var(--borderRadius);
41041
+ box-shadow: var(--boxShadow);
41042
+ display: none;
41043
+ }
41044
+
41045
+ .amis-scope .cxd-SearchBox-history .cxd-SearchBox-history-dropdown.is-active {
41046
+ display: block;
41047
+ }
41048
+
41049
+ .amis-scope .cxd-SearchBox-history .cxd-SearchBox-history-dropdown header {
41050
+ display: flex;
41051
+ flex-flow: row nowrap;
41052
+ align-items: center;
41053
+ justify-content: space-between;
41054
+ padding: 0 var(--gap-md);
41055
+ margin-bottom: 0.625rem;
41056
+ }
41057
+
41058
+ .amis-scope .cxd-SearchBox-history .cxd-SearchBox-history-dropdown header h4 {
41059
+ font-size: var(--fontSizeBase);
41060
+ height: 1.5rem;
41061
+ line-height: 1.5rem;
41062
+ font-weight: bold;
41063
+ margin: 0;
41064
+ }
41065
+
41066
+ .amis-scope .cxd-SearchBox-history .cxd-SearchBox-history-dropdown header a {
41067
+ display: inline-block;
41068
+ font-size: var(--fontSizeSm);
41069
+ cursor: pointer;
41070
+ padding: 0;
41071
+ }
41072
+
41073
+ .amis-scope .cxd-SearchBox-history .cxd-SearchBox-history-content {
41074
+ display: flex;
41075
+ flex-flow: row wrap;
41076
+ justify-content: flex-start;
41077
+ align-items: center;
41078
+ padding: 0 var(--gap-md);
41079
+ overflow-x: hidden;
41080
+ overflow-y: auto;
41081
+ max-height: calc( var(--SearchBox-history-dropdown-maxHeight) - 38px - var(--gap-sm) * 2 );
41082
+ }
41083
+
41084
+ .amis-scope .cxd-SearchBox-history .cxd-SearchBox-history-tag {
41085
+ display: inlin-flex;
41086
+ height: var(--Tag-height);
41087
+ padding: 0 var(--gap-sm);
41088
+ flex-flow: row nowrap;
41089
+ justify-content: center;
41090
+ align-items: center;
41091
+ font-size: var(--Tag-content-fontSize);
41092
+ max-width: 160px;
41093
+ border-radius: var(--Tag-borderRadius);
41094
+ background-color: var(--Tag-default-color);
41095
+ color: var(--Tag-fontColor);
41096
+ margin-bottom: var(--gap-sm);
41097
+ margin-right: var(--gap-sm);
41098
+ max-width: 96px;
41099
+ cursor: pointer;
41100
+ }
41101
+
41102
+ .amis-scope .cxd-SearchBox-history .cxd-SearchBox-history-tag-text {
41103
+ display: inline-block;
41104
+ text-overflow: ellipsis;
41105
+ overflow: hidden;
41106
+ white-space: nowrap;
41107
+ line-height: 24px;
41108
+ }
41109
+
41110
+ .amis-scope .cxd-SearchBox-history .cxd-SearchBox-history-tag-close {
41111
+ margin-left: var(--gap-sm);
41112
+ margin-right: var(--gap-xs);
41113
+ cursor: pointer;
41114
+ }
41115
+
41116
+ .amis-scope .cxd-SearchBox-history .cxd-SearchBox-history-tag-close i {
41117
+ font-size: 0.5rem;
41118
+ }
41119
+
41120
+ .amis-scope .cxd-SearchBox-history .cxd-SearchBox-history-tag-close .icon {
41121
+ width: 0.5rem;
41122
+ height: 0.5rem;
41123
+ position: inherit;
41124
+ }
41125
+
41126
+ .amis-scope .cxd-SearchBox-history .cxd-SearchBox-history-tag-close:hover {
41127
+ opacity: 0.7;
41128
+ }
41129
+
41130
+ .amis-scope .cxd-SearchBox-history .cxd-SearchBox-history-tag-close:active {
41131
+ opacity: 0.3;
41132
+ }
41133
+
41021
41134
  .amis-scope .cxd-ListMenu {
41022
41135
  background: var(--ListMenu-item-bg);
41023
41136
  min-width: 12.5rem;
@@ -45940,7 +46053,7 @@ readers do not read off random characters that represent icons */
45940
46053
  margin: 0;
45941
46054
  padding-left: 0.625rem;
45942
46055
  list-style: none;
45943
- background: #F7F7F9;
46056
+ background: #f7f7f9;
45944
46057
  line-height: 2rem;
45945
46058
  }
45946
46059
 
@@ -50404,6 +50517,7 @@ readers do not read off random characters that represent icons */
50404
50517
  overflow: auto;
50405
50518
  scroll-behavior: smooth;
50406
50519
  background: var(--Tabs-content-bg);
50520
+ position: relative;
50407
50521
  }
50408
50522
 
50409
50523
  .amis-scope .cxd-AnchorNav-section-wrap > .cxd-AnchorNav-section {
@@ -51379,19 +51493,25 @@ readers do not read off random characters that represent icons */
51379
51493
  display: inline-flex;
51380
51494
  height: var(--Tag-height);
51381
51495
  padding: 0 var(--gap-sm);
51496
+ flex-flow: row nowrap;
51382
51497
  justify-content: center;
51383
51498
  align-items: center;
51384
51499
  font-size: var(--Tag-content-fontSize);
51385
51500
  max-width: 160px;
51386
- text-overflow: ellipsis;
51387
- overflow: hidden;
51388
- white-space: nowrap;
51389
51501
  transition: all 0.3;
51390
51502
  border-radius: var(--Tag-borderRadius);
51391
51503
  background-color: var(--Tag-default-color);
51392
51504
  color: var(--Tag-fontColor);
51393
51505
  }
51394
51506
 
51507
+ .amis-scope .cxd-Tag-text {
51508
+ display: inline-block;
51509
+ text-overflow: ellipsis;
51510
+ overflow: hidden;
51511
+ white-space: nowrap;
51512
+ line-height: var(--Tag-height);
51513
+ }
51514
+
51395
51515
  .amis-scope .cxd-Tag:not(:last-child) {
51396
51516
  margin-right: var(--gap-sm);
51397
51517
  }
@@ -51433,6 +51553,7 @@ readers do not read off random characters that represent icons */
51433
51553
  border-radius: calc((var(--Tag-height) + 2px) / 2);
51434
51554
  border: 1px solid var(--Tag-default-color);
51435
51555
  color: var(--Tag-default-color);
51556
+ line-height: 22px;
51436
51557
  }
51437
51558
 
51438
51559
  .amis-scope .cxd-Tag--rounded--inactive {