iglooform 2.4.25 → 2.4.28

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 (209) hide show
  1. package/es/admin-upload/float.js +14 -14
  2. package/es/admin-upload/index.js +11 -11
  3. package/es/admin-upload/job-list.js +47 -47
  4. package/es/admin-upload/modal.js +10 -10
  5. package/es/alert-message/index.js +7 -7
  6. package/es/amount/index.js +2 -2
  7. package/es/back-top/index.js +4 -4
  8. package/es/button/index.js +9 -9
  9. package/es/card-detail/card-group.js +6 -6
  10. package/es/card-detail/card-item.js +5 -5
  11. package/es/card-detail/card-page.js +5 -5
  12. package/es/card-detail/card.js +7 -7
  13. package/es/checkbox/index.js +6 -6
  14. package/es/claim-list/index.js +19 -19
  15. package/es/confirmation/index.js +4 -4
  16. package/es/date-picker/buddhist.js +2 -2
  17. package/es/date-picker/index.js +9 -9
  18. package/es/declaration/index.js +5 -5
  19. package/es/detail-panel/index.js +26 -26
  20. package/es/documents/index.js +2 -2
  21. package/es/example/index.js +5 -5
  22. package/es/filter/checkBox.js +10 -10
  23. package/es/filter/customize.js +1 -1
  24. package/es/filter/index.js +43 -43
  25. package/es/filter/radioBox.js +7 -7
  26. package/es/filter/rangePicker.js +23 -23
  27. package/es/filter/style/index.less +10 -2
  28. package/es/form/addable-section/index.js +33 -18
  29. package/es/form/addable-section/style/index.less +6 -10
  30. package/es/form/divider/index.js +1 -1
  31. package/es/form/element/index.js +17 -17
  32. package/es/form/elements.js +6 -3
  33. package/es/form/index.js +7 -7
  34. package/es/form/login/index.js +6 -6
  35. package/es/form/page/index.js +8 -8
  36. package/es/form/pages/index.js +10 -10
  37. package/es/form/render/index.js +1 -1
  38. package/es/form/section/index.js +4 -4
  39. package/es/form/step/index.js +14 -14
  40. package/es/form/steps/index.js +2 -2
  41. package/es/free-form/addable-section/index.js +29 -14
  42. package/es/free-form/addable-section/style/index.less +0 -4
  43. package/es/free-form/element/index.js +10 -10
  44. package/es/free-form/index.js +3 -3
  45. package/es/free-form/page/index.js +15 -15
  46. package/es/free-form/pages/index.js +2 -2
  47. package/es/free-form/section/index.js +4 -4
  48. package/es/free-form/step/index.js +14 -14
  49. package/es/free-form/steps/index.js +2 -2
  50. package/es/global-message/index.js +12 -12
  51. package/es/home-menu/index.js +18 -18
  52. package/es/index.d.ts +1 -1
  53. package/es/index.js +1 -1
  54. package/es/input/amount.js +2 -2
  55. package/es/input/credit-card.js +4 -4
  56. package/es/input/email.js +1 -1
  57. package/es/input/expiry-date.js +3 -3
  58. package/es/input/input-date.js +3 -3
  59. package/es/input/input-number.js +1 -1
  60. package/es/input/input.js +1 -1
  61. package/es/input/otp.js +6 -6
  62. package/es/input/password.js +4 -4
  63. package/es/input/phone-number.js +4 -4
  64. package/es/input/text-area.js +4 -4
  65. package/es/layout/defaultFooter.js +28 -28
  66. package/es/layout/defaultHeader.js +6 -6
  67. package/es/layout/footer.js +66 -66
  68. package/es/layout/header.js +25 -25
  69. package/es/layout/index.js +4 -4
  70. package/es/locale/en-US/messages.json +1 -0
  71. package/es/locale/id-ID/messages.json +3 -2
  72. package/es/locale/locale-provider.js +2 -2
  73. package/es/locale/th-TH/messages.json +3 -2
  74. package/es/locale/vi-VN/messages.json +3 -2
  75. package/es/locale/zh-CN/messages.json +3 -2
  76. package/es/login-page/index.js +16 -16
  77. package/es/media/index.js +15 -15
  78. package/es/media/media.js +8 -8
  79. package/es/media/preview.js +6 -6
  80. package/es/mobile-insurer-detail/index.js +18 -18
  81. package/es/mobile-insurer-list/index.js +11 -11
  82. package/es/modal/index.js +8 -8
  83. package/es/platform/platform-card/index.js +5 -5
  84. package/es/platform/switch-platform/index.js +12 -12
  85. package/es/policy-list/index.js +4 -4
  86. package/es/policy-list/policy-card.js +32 -32
  87. package/es/radio/index.d.ts +2 -1
  88. package/es/radio/index.js +13 -12
  89. package/es/radio/radio-group-with-other.d.ts +6 -0
  90. package/es/radio/radio-group-with-other.js +85 -0
  91. package/es/select/attached-select.js +17 -20
  92. package/es/select/select.js +6 -9
  93. package/es/select/time-select.js +20 -20
  94. package/es/status-box/index.js +2 -2
  95. package/es/table/index.js +33 -33
  96. package/es/tabs/index.js +1 -1
  97. package/es/typography/index.js +10 -3
  98. package/es/upload/index.js +28 -28
  99. package/es/upload-photo/index.js +30 -34
  100. package/es/upload-photo/media.js +4 -4
  101. package/es/upload-preview/index.js +10 -10
  102. package/es/upload-preview/media.js +8 -8
  103. package/es/utils/form-utils.d.ts +1 -1
  104. package/es/utils/form-utils.js +11 -11
  105. package/lib/admin-upload/float.js +14 -14
  106. package/lib/admin-upload/index.js +11 -11
  107. package/lib/admin-upload/job-list.js +47 -47
  108. package/lib/admin-upload/modal.js +10 -10
  109. package/lib/alert-message/index.js +7 -7
  110. package/lib/amount/index.js +2 -2
  111. package/lib/back-top/index.js +4 -4
  112. package/lib/button/index.js +9 -9
  113. package/lib/card-detail/card-group.js +6 -6
  114. package/lib/card-detail/card-item.js +5 -5
  115. package/lib/card-detail/card-page.js +5 -5
  116. package/lib/card-detail/card.js +7 -7
  117. package/lib/checkbox/index.js +6 -6
  118. package/lib/claim-list/index.js +19 -19
  119. package/lib/confirmation/index.js +4 -4
  120. package/lib/date-picker/buddhist.js +2 -2
  121. package/lib/date-picker/index.js +9 -9
  122. package/lib/declaration/index.js +5 -5
  123. package/lib/detail-panel/index.js +26 -26
  124. package/lib/documents/index.js +2 -2
  125. package/lib/example/index.js +5 -5
  126. package/lib/filter/checkBox.js +10 -10
  127. package/lib/filter/customize.js +1 -1
  128. package/lib/filter/index.js +43 -43
  129. package/lib/filter/radioBox.js +7 -7
  130. package/lib/filter/rangePicker.js +23 -23
  131. package/lib/filter/style/index.less +10 -2
  132. package/lib/form/addable-section/index.js +37 -17
  133. package/lib/form/addable-section/style/index.less +6 -10
  134. package/lib/form/divider/index.js +1 -1
  135. package/lib/form/element/index.js +17 -17
  136. package/lib/form/elements.js +6 -2
  137. package/lib/form/index.js +7 -7
  138. package/lib/form/login/index.js +6 -6
  139. package/lib/form/page/index.js +8 -8
  140. package/lib/form/pages/index.js +10 -10
  141. package/lib/form/render/index.js +1 -1
  142. package/lib/form/section/index.js +4 -4
  143. package/lib/form/step/index.js +14 -14
  144. package/lib/form/steps/index.js +2 -2
  145. package/lib/free-form/addable-section/index.js +33 -13
  146. package/lib/free-form/addable-section/style/index.less +0 -4
  147. package/lib/free-form/element/index.js +10 -10
  148. package/lib/free-form/index.js +3 -3
  149. package/lib/free-form/page/index.js +15 -15
  150. package/lib/free-form/pages/index.js +2 -2
  151. package/lib/free-form/section/index.js +4 -4
  152. package/lib/free-form/step/index.js +14 -14
  153. package/lib/free-form/steps/index.js +2 -2
  154. package/lib/global-message/index.js +12 -12
  155. package/lib/home-menu/index.js +18 -18
  156. package/lib/index.d.ts +1 -1
  157. package/lib/index.js +7 -0
  158. package/lib/input/amount.js +2 -2
  159. package/lib/input/credit-card.js +4 -4
  160. package/lib/input/email.js +1 -1
  161. package/lib/input/expiry-date.js +3 -3
  162. package/lib/input/input-date.js +3 -3
  163. package/lib/input/input-number.js +1 -1
  164. package/lib/input/input.js +1 -1
  165. package/lib/input/otp.js +6 -6
  166. package/lib/input/password.js +4 -4
  167. package/lib/input/phone-number.js +4 -4
  168. package/lib/input/text-area.js +4 -4
  169. package/lib/layout/defaultFooter.js +28 -28
  170. package/lib/layout/defaultHeader.js +6 -6
  171. package/lib/layout/footer.js +66 -66
  172. package/lib/layout/header.js +25 -25
  173. package/lib/layout/index.js +4 -4
  174. package/lib/locale/en-US/messages.json +1 -0
  175. package/lib/locale/id-ID/messages.json +3 -2
  176. package/lib/locale/locale-provider.js +2 -2
  177. package/lib/locale/th-TH/messages.json +3 -2
  178. package/lib/locale/vi-VN/messages.json +3 -2
  179. package/lib/locale/zh-CN/messages.json +3 -2
  180. package/lib/login-page/index.js +16 -16
  181. package/lib/media/index.js +15 -15
  182. package/lib/media/media.js +8 -8
  183. package/lib/media/preview.js +6 -6
  184. package/lib/mobile-insurer-detail/index.js +18 -18
  185. package/lib/mobile-insurer-list/index.js +11 -11
  186. package/lib/modal/index.js +8 -8
  187. package/lib/platform/platform-card/index.js +5 -5
  188. package/lib/platform/switch-platform/index.js +12 -12
  189. package/lib/policy-list/index.js +4 -4
  190. package/lib/policy-list/policy-card.js +32 -32
  191. package/lib/radio/index.d.ts +2 -1
  192. package/lib/radio/index.js +21 -12
  193. package/lib/radio/radio-group-with-other.d.ts +6 -0
  194. package/lib/radio/radio-group-with-other.js +98 -0
  195. package/lib/select/attached-select.js +16 -19
  196. package/lib/select/select.js +5 -8
  197. package/lib/select/time-select.js +20 -20
  198. package/lib/status-box/index.js +2 -2
  199. package/lib/table/index.js +33 -33
  200. package/lib/tabs/index.js +1 -1
  201. package/lib/typography/index.js +10 -3
  202. package/lib/upload/index.js +28 -28
  203. package/lib/upload-photo/index.js +30 -34
  204. package/lib/upload-photo/media.js +4 -4
  205. package/lib/upload-preview/index.js +10 -10
  206. package/lib/upload-preview/media.js +8 -8
  207. package/lib/utils/form-utils.d.ts +1 -1
  208. package/lib/utils/form-utils.js +10 -10
  209. package/package.json +1 -1
@@ -616,15 +616,15 @@ var FilterComponent = function FilterComponent(props) {
616
616
  fontSize: '24px',
617
617
  color: '#666666'
618
618
  }
619
- }, void 0), _jsx(Typography, {
619
+ }), _jsx(Typography, {
620
620
  level: "h4",
621
621
  children: filterTitle
622
- }, void 0)]
623
- }, void 0), _jsx(_Divider, {
622
+ })]
623
+ }), _jsx(_Divider, {
624
624
  style: {
625
625
  margin: '16px 0px'
626
626
  }
627
- }, void 0), filterItems.map(function (item) {
627
+ }), filterItems.map(function (item) {
628
628
  var type = item.type,
629
629
  options = item.options,
630
630
  filterItemTitle = item.filterItemTitle,
@@ -698,7 +698,7 @@ var FilterComponent = function FilterComponent(props) {
698
698
  }, key);
699
699
  }
700
700
  })]
701
- }, void 0), _jsxs("div", {
701
+ }), _jsxs("div", {
702
702
  className: "igloo-form-filter-drop-down-footer",
703
703
  onClick: function onClick(e) {
704
704
  return e.stopPropagation();
@@ -718,8 +718,8 @@ var FilterComponent = function FilterComponent(props) {
718
718
  children: formatMessage({
719
719
  id: 'Reset All Filters'
720
720
  })
721
- }, void 0)
722
- }, void 0), _jsxs(_Space, {
721
+ })
722
+ }), _jsxs(_Space, {
723
723
  size: 16,
724
724
  children: [_jsx("span", {
725
725
  onClick: function onClick() {
@@ -735,8 +735,8 @@ var FilterComponent = function FilterComponent(props) {
735
735
  children: formatMessage({
736
736
  id: 'Cancel'
737
737
  })
738
- }, void 0)
739
- }, void 0), _jsx(_Button, {
738
+ })
739
+ }), _jsx(_Button, {
740
740
  onClick: function onClick() {
741
741
  setDropVisible(false);
742
742
  setShowSearchInputDefault(false);
@@ -763,12 +763,12 @@ var FilterComponent = function FilterComponent(props) {
763
763
  children: formatMessage({
764
764
  id: 'Apply'
765
765
  })
766
- }, void 0)
767
- }, void 0)]
768
- }, void 0)]
769
- }, void 0)]
766
+ })
767
+ })]
768
+ })]
769
+ })]
770
770
  }, 1)
771
- }, void 0);
771
+ });
772
772
 
773
773
  return _jsxs("div", {
774
774
  className: "".concat(showIdSelect ? 'igloo-form-filter-with-select' : 'igloo-form-filter'),
@@ -780,7 +780,7 @@ var FilterComponent = function FilterComponent(props) {
780
780
  padding: '0px',
781
781
  border: '0px'
782
782
  }
783
- }, void 0), showIdSelect && idKeyTypes.length !== 0 && _jsx(Select, {
783
+ }), showIdSelect && idKeyTypes.length !== 0 && _jsx(Select, {
784
784
  className: "igloo-form-filter-id-select",
785
785
  onChange: function onChange(e) {
786
786
  return setIdName(String(e));
@@ -790,17 +790,17 @@ var FilterComponent = function FilterComponent(props) {
790
790
  style: {
791
791
  fontSize: 24
792
792
  }
793
- }, void 0),
793
+ }),
794
794
  children: idKeyTypes.map(function (item) {
795
795
  return _jsx(Option, {
796
796
  value: item.value,
797
797
  children: _jsx(Typography, {
798
798
  level: "body1",
799
799
  children: item.label
800
- }, void 0)
800
+ })
801
801
  }, item.value);
802
802
  })
803
- }, void 0), (hightLightFilterButton || showDefaultOptions || stillHaveTagsToDelete) && !noFilters && !showSearchInputDefault && !showSearchInputWhenHasTag ? _jsxs("div", {
803
+ }), (hightLightFilterButton || showDefaultOptions || stillHaveTagsToDelete) && !noFilters && !showSearchInputDefault && !showSearchInputWhenHasTag ? _jsxs("div", {
804
804
  className: "igloo-filter-tag-position-reference",
805
805
  children: [_jsxs("div", {
806
806
  ref: heightRef,
@@ -819,7 +819,7 @@ var FilterComponent = function FilterComponent(props) {
819
819
  },
820
820
  children: [_jsx(SearchOutlined, {
821
821
  className: 'search-icon'
822
- }, void 0), _jsxs(_Space, {
822
+ }), _jsxs(_Space, {
823
823
  size: [12, 8],
824
824
  className: "tag-container",
825
825
  style: {
@@ -831,7 +831,7 @@ var FilterComponent = function FilterComponent(props) {
831
831
  children: [_jsx(Typography, {
832
832
  level: "body3",
833
833
  children: item.label
834
- }, void 0), !item.canNotDelete && _jsx(CrossOutlined, {
834
+ }), !item.canNotDelete && _jsx(CrossOutlined, {
835
835
  className: "delete-icon",
836
836
  onClick: function onClick(e) {
837
837
  e.stopPropagation();
@@ -863,12 +863,12 @@ var FilterComponent = function FilterComponent(props) {
863
863
 
864
864
  deleteSomeOne(confirmed, item, [statusCallBack, handleFilter]);
865
865
  }
866
- }, void 0)]
866
+ })]
867
867
  }, index);
868
868
  }), !oneLineCanShow && !inputExtend && _jsx("span", {
869
869
  children: "..."
870
- }, void 0)]
871
- }, void 0), !onlyHaveCanNotDeleteTags && _jsx(CrossOutlined, {
870
+ })]
871
+ }), !onlyHaveCanNotDeleteTags && _jsx(CrossOutlined, {
872
872
  className: "delete-all-icon",
873
873
  onClick: function onClick(e) {
874
874
  e.stopPropagation();
@@ -895,8 +895,8 @@ var FilterComponent = function FilterComponent(props) {
895
895
  typeof parentFilterCallBack === 'function' && parentFilterCallBack(_objectSpread({}, afterDeleteValue));
896
896
  }
897
897
  }
898
- }, void 0)]
899
- }, void 0), _jsxs("div", {
898
+ })]
899
+ }), _jsxs("div", {
900
900
  ref: openStatusTagRef,
901
901
  className: classname('tag-extend-container-hide-status', {
902
902
  'igloo-form-filter-has-select-tag-container': showIdSelect,
@@ -915,7 +915,7 @@ var FilterComponent = function FilterComponent(props) {
915
915
  },
916
916
  children: [_jsx(SearchOutlined, {
917
917
  className: 'search-icon'
918
- }, void 0), _jsx(_Space, {
918
+ }), _jsx(_Space, {
919
919
  size: [12, 8],
920
920
  className: "tag-container",
921
921
  style: {
@@ -927,7 +927,7 @@ var FilterComponent = function FilterComponent(props) {
927
927
  children: [_jsx(Typography, {
928
928
  level: "body3",
929
929
  children: item.label
930
- }, void 0), !item.canNotDelete && _jsx(CrossOutlined, {
930
+ }), !item.canNotDelete && _jsx(CrossOutlined, {
931
931
  className: "delete-icon",
932
932
  onClick: function onClick(e) {
933
933
  e.stopPropagation();
@@ -959,10 +959,10 @@ var FilterComponent = function FilterComponent(props) {
959
959
 
960
960
  deleteSomeOne(confirmed, item, [statusCallBack, handleFilter]);
961
961
  }
962
- }, void 0)]
962
+ })]
963
963
  }, index);
964
964
  })
965
- }, void 0), !onlyHaveCanNotDeleteTags && _jsx(CrossOutlined, {
965
+ }), !onlyHaveCanNotDeleteTags && _jsx(CrossOutlined, {
966
966
  className: "delete-all-icon",
967
967
  onClick: function onClick() {
968
968
  setTimeRangeType(-1);
@@ -988,9 +988,9 @@ var FilterComponent = function FilterComponent(props) {
988
988
  typeof parentFilterCallBack === 'function' && parentFilterCallBack(_objectSpread({}, afterDeleteValue));
989
989
  }
990
990
  }
991
- }, void 0)]
992
- }, void 0)]
993
- }, void 0) : _jsx(_Input, {
991
+ })]
992
+ })]
993
+ }) : _jsx(_Input, {
994
994
  ref: searchInput,
995
995
  value: searchInputValue,
996
996
  onChange: function onChange(e) {
@@ -1009,7 +1009,7 @@ var FilterComponent = function FilterComponent(props) {
1009
1009
  color: '#999999',
1010
1010
  marginRight: '12px'
1011
1011
  }
1012
- }, void 0),
1012
+ }),
1013
1013
  className: "".concat(showIdSelect ? 'igloo-form-filter-has-select-input' : 'igloo-form-filter-default-input'),
1014
1014
  onPressEnter: function onPressEnter(e) {
1015
1015
  var value = undefined;
@@ -1031,7 +1031,7 @@ var FilterComponent = function FilterComponent(props) {
1031
1031
  onFilter(value);
1032
1032
  typeof parentFilterCallBack === 'function' && parentFilterCallBack(value);
1033
1033
  }
1034
- }, void 0), !inputOnly && _jsx(_Dropdown, {
1034
+ }), !inputOnly && _jsx(_Dropdown, {
1035
1035
  getPopupContainer: function getPopupContainer() {
1036
1036
  return dropDownContainerRef.current;
1037
1037
  },
@@ -1039,7 +1039,7 @@ var FilterComponent = function FilterComponent(props) {
1039
1039
  style: {
1040
1040
  display: 'none'
1041
1041
  }
1042
- }, void 0),
1042
+ }),
1043
1043
  placement: 'bottomLeft',
1044
1044
  overlayClassName: "igloo-form-filter-drop-down-container",
1045
1045
  visible: dropVisible,
@@ -1067,7 +1067,7 @@ var FilterComponent = function FilterComponent(props) {
1067
1067
  style: {
1068
1068
  fontSize: '24px'
1069
1069
  }
1070
- }, void 0),
1070
+ }),
1071
1071
  onClick: function onClick() {
1072
1072
  setDropVisible(true);
1073
1073
  },
@@ -1078,15 +1078,15 @@ var FilterComponent = function FilterComponent(props) {
1078
1078
  children: formatMessage({
1079
1079
  id: 'Filter'
1080
1080
  })
1081
- }, void 0)
1082
- }, void 0)
1083
- }, void 0)
1084
- }, void 0)
1085
- }, void 0), _jsx("div", {
1081
+ })
1082
+ })
1083
+ })
1084
+ })
1085
+ }), _jsx("div", {
1086
1086
  className: "igloo-form-filter-drop-down",
1087
1087
  ref: dropDownContainerRef
1088
- }, void 0)]
1089
- }, void 0);
1088
+ })]
1089
+ });
1090
1090
  };
1091
1091
 
1092
1092
  export default FilterComponent;
@@ -23,8 +23,8 @@ var CreateRadioBoxFilter = function CreateRadioBoxFilter(props) {
23
23
  children: _jsx(Typography, {
24
24
  level: "h4",
25
25
  children: title
26
- }, void 0)
27
- }, void 0), _jsx(_Radio.Group, {
26
+ })
27
+ }), _jsx(_Radio.Group, {
28
28
  value: chooseed,
29
29
  onChange: function onChange(e) {
30
30
  return valueConfirm({
@@ -43,16 +43,16 @@ var CreateRadioBoxFilter = function CreateRadioBoxFilter(props) {
43
43
  children: _jsx(Typography, {
44
44
  level: "body1",
45
45
  children: item.label
46
- }, void 0)
47
- }, void 0)
46
+ })
47
+ })
48
48
  }, item.value);
49
49
  })
50
- }, void 0)
51
- }, void 0), _jsx(_Divider, {
50
+ })
51
+ }), _jsx(_Divider, {
52
52
  style: {
53
53
  margin: '16px 0px'
54
54
  }
55
- }, void 0)]
55
+ })]
56
56
  }, optionKey);
57
57
  };
58
58
 
@@ -103,7 +103,7 @@ var CreateRangePickerFilter = function CreateRangePickerFilter(props) {
103
103
 
104
104
  var rangeSeparate = _jsx("div", {
105
105
  className: "igloo-filter-date-picker-range-separate"
106
- }, void 0);
106
+ });
107
107
 
108
108
  return _jsxs("div", {
109
109
  className: "igloo-form-filter-drop-down-container-content-group",
@@ -113,7 +113,7 @@ var CreateRangePickerFilter = function CreateRangePickerFilter(props) {
113
113
  level: "h4",
114
114
  className: "igloo-form-filter-range-picker-label",
115
115
  children: title
116
- }, void 0), _jsxs("div", {
116
+ }), _jsxs("div", {
117
117
  className: "igloo-form-filter-range-picker-container",
118
118
  children: [_jsx(RangePicker, {
119
119
  inputReadOnly: true,
@@ -147,12 +147,12 @@ var CreateRangePickerFilter = function CreateRangePickerFilter(props) {
147
147
  color: '#666666',
148
148
  opacity: 0
149
149
  }
150
- }, void 0) : _jsx(CalendarOutlined, {
150
+ }) : _jsx(CalendarOutlined, {
151
151
  style: {
152
152
  fontSize: '20px',
153
153
  color: '#666666'
154
154
  }
155
- }, void 0),
155
+ }),
156
156
  panelRender: function panelRender(pa) {
157
157
  var customFinallyUse = dateRangeConfig.custom || [moment(), moment()];
158
158
  var customDisable = disabledDate(customFinallyUse[0]) || disabledDate(customFinallyUse[1]);
@@ -183,8 +183,8 @@ var CreateRangePickerFilter = function CreateRangePickerFilter(props) {
183
183
  children: formatMessage({
184
184
  id: 'Custom'
185
185
  })
186
- }, void 0)
187
- }, void 0), _jsx("div", {
186
+ })
187
+ }), _jsx("div", {
188
188
  className: lastDayDisable ? 'igloo-form-filter-date-picker-top-diable' : '',
189
189
  onClick: function onClick() {
190
190
  if (lastDayDisable) return;
@@ -200,8 +200,8 @@ var CreateRangePickerFilter = function CreateRangePickerFilter(props) {
200
200
  children: formatMessage({
201
201
  id: 'Last Day'
202
202
  })
203
- }, void 0)
204
- }, void 0), _jsx("div", {
203
+ })
204
+ }), _jsx("div", {
205
205
  className: lastSevenDaysDisable ? 'igloo-form-filter-date-picker-top-diable' : '',
206
206
  onClick: function onClick() {
207
207
  if (lastSevenDaysDisable) return;
@@ -217,8 +217,8 @@ var CreateRangePickerFilter = function CreateRangePickerFilter(props) {
217
217
  children: formatMessage({
218
218
  id: 'Last 7 Days'
219
219
  })
220
- }, void 0)
221
- }, void 0), _jsx("div", {
220
+ })
221
+ }), _jsx("div", {
222
222
  className: lastMonthDisable ? 'igloo-form-filter-date-picker-top-diable' : '',
223
223
  onClick: function onClick() {
224
224
  if (lastMonthDisable) return;
@@ -234,8 +234,8 @@ var CreateRangePickerFilter = function CreateRangePickerFilter(props) {
234
234
  children: formatMessage({
235
235
  id: 'Last Month'
236
236
  })
237
- }, void 0)
238
- }, void 0), _jsx("div", {
237
+ })
238
+ }), _jsx("div", {
239
239
  className: thisMonthDisable ? 'igloo-form-filter-date-picker-top-diable' : '',
240
240
  onClick: function onClick() {
241
241
  if (thisMonthDisable) return;
@@ -251,12 +251,12 @@ var CreateRangePickerFilter = function CreateRangePickerFilter(props) {
251
251
  children: formatMessage({
252
252
  id: 'This Month'
253
253
  })
254
- }, void 0)
255
- }, void 0)]
256
- }, void 0), pa]
257
- }, void 0);
254
+ })
255
+ })]
256
+ }), pa]
257
+ });
258
258
  }
259
- }, void 0), pickerOpenStatus && _jsx("div", {
259
+ }), pickerOpenStatus && _jsx("div", {
260
260
  className: "igloo-form-filter-range-icon",
261
261
  children: _jsx(CalendarOutlined, {
262
262
  style: {
@@ -272,17 +272,17 @@ var CreateRangePickerFilter = function CreateRangePickerFilter(props) {
272
272
 
273
273
  onFocus.focus();
274
274
  }
275
- }, void 0)
276
- }, void 0), _jsx("div", {
275
+ })
276
+ }), _jsx("div", {
277
277
  ref: dateRangerContainerRef,
278
278
  className: "igloo-form-fliter-drop-down-container-content-group-title-ranger-container"
279
- }, void 0)]
280
- }, void 0)]
281
- }, void 0), _jsx(_Divider, {
279
+ })]
280
+ })]
281
+ }), _jsx(_Divider, {
282
282
  style: {
283
283
  margin: '16px 0px'
284
284
  }
285
- }, void 0)]
285
+ })]
286
286
  }, optionKey);
287
287
  };
288
288
 
@@ -13,7 +13,10 @@
13
13
  height: 48px;
14
14
 
15
15
  .ant-select-selector {
16
- border-color: #eeeeee;
16
+ &:hover {
17
+ border-color: #7373ff !important;
18
+ }
19
+ border-color: #eeeeee !important;
17
20
  }
18
21
  }
19
22
  }
@@ -71,7 +74,7 @@
71
74
  // input 框样式
72
75
  .igloo-form-filter-default-input {
73
76
  width: 600px;
74
- border-radius: 3px 0px 0px 3px;
77
+ border-radius: 3px;
75
78
  padding: 12px 16px;
76
79
  }
77
80
 
@@ -126,6 +129,10 @@
126
129
 
127
130
  .igloo-form-filter-default-tag-container,
128
131
  .igloo-form-filter-has-select-tag-container {
132
+ &:hover {
133
+ border-color: #7373ff;
134
+ }
135
+
129
136
  border: 1px solid #eeeeee;
130
137
  display: flex;
131
138
 
@@ -171,6 +178,7 @@
171
178
  position: absolute;
172
179
  top: 0;
173
180
  right: 0;
181
+ background-color: white;
174
182
 
175
183
  .igloo-form-filter-filter-button {
176
184
  border-radius: 0px 3px 3px 0px;
@@ -1,7 +1,11 @@
1
1
  import "antd/es/row/style";
2
2
  import _Row from "antd/es/row";
3
+ import "antd/es/divider/style";
4
+ import _Divider from "antd/es/divider";
3
5
  import "antd/es/col/style";
4
6
  import _Col from "antd/es/col";
7
+ import "antd/es/grid/style";
8
+ import _Grid from "antd/es/grid";
5
9
 
6
10
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
7
11
 
@@ -29,7 +33,7 @@ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToAr
29
33
 
30
34
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
31
35
 
32
- import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
36
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
33
37
  import { useReducer, useContext, useCallback } from 'react';
34
38
  import Element from '../element';
35
39
  import FormContext from '../../form-context';
@@ -38,6 +42,7 @@ import Typography from '../../typography';
38
42
  import Button from '../../button';
39
43
  import { LocaleContext } from '../../locale';
40
44
  import './style/index.less';
45
+ var useBreakpoint = _Grid.useBreakpoint;
41
46
 
42
47
  var AddableSection = function AddableSection(_ref) {
43
48
  var parentName = _ref.parentName,
@@ -64,6 +69,9 @@ var AddableSection = function AddableSection(_ref) {
64
69
  addButtonText = config.addButtonText,
65
70
  addButtonIcon = config.addButtonIcon;
66
71
 
72
+ var _useBreakpoint = useBreakpoint(),
73
+ md = _useBreakpoint.md;
74
+
67
75
  var _useContext = useContext(LocaleContext),
68
76
  formatMessage = _useContext.formatMessage;
69
77
 
@@ -142,15 +150,19 @@ var AddableSection = function AddableSection(_ref) {
142
150
  var parentName = calcNamePath(namePath, index);
143
151
  return _jsxs(_Col, {
144
152
  span: 24,
145
- className: 'igloo-freeform-addable-section',
146
- children: [(groupKeys.length > min && !preview || label) && _jsxs(_Row, {
153
+ className: 'igloo-form-addable-section',
154
+ children: [index > 0 && _jsx(_Divider, {
155
+ style: {
156
+ margin: !md ? preview ? '16px 0 24px 0' : '24px 0' : preview ? '16px 0 24px' : '32px 0 24px 0'
157
+ }
158
+ }), (groupKeys.length > min && !preview || label) && _jsxs(_Row, {
147
159
  justify: "space-between",
148
160
  className: 'igloo-addable-section-label',
149
- children: [label ? _jsxs(Typography, _objectSpread(_objectSpread({}, labelProps), {}, {
150
- level: "h4",
161
+ children: [label ? _jsx(Typography, _objectSpread(_objectSpread({}, labelProps), {}, {
162
+ level: !md ? 'body1' : 'h3b',
151
163
  wrapElement: "div",
152
- children: [label, " ", index + 1]
153
- }), void 0) : _jsx("div", {}, void 0), groupKeys.length > min && !preview && _jsx(Button, {
164
+ children: label
165
+ })) : _jsx("div", {}), groupKeys.length > min && !preview && _jsx(Button, {
154
166
  type: "link",
155
167
  className: "igloo-addable-section-label-remove",
156
168
  onClick: function onClick() {
@@ -162,10 +174,13 @@ var AddableSection = function AddableSection(_ref) {
162
174
  children: formatMessage({
163
175
  id: 'Remove'
164
176
  })
165
- }, void 0)]
166
- }, void 0), _jsx("div", _objectSpread(_objectSpread({
167
- className: 'igloo-freeform-addable-section-content'
177
+ })]
178
+ }), _jsx("div", _objectSpread(_objectSpread({
179
+ className: 'igloo-form-addable-section-content'
168
180
  }, contentProps), {}, {
181
+ style: {
182
+ marginTop: !md ? 16 : preview ? 16 : 24
183
+ },
169
184
  children: _jsx(_Row, {
170
185
  gutter: [32, preview ? 16 : 24],
171
186
  children: elements.map(function (child, index) {
@@ -177,19 +192,19 @@ var AddableSection = function AddableSection(_ref) {
177
192
  setShowStepButton: setShowStepButton
178
193
  }, index);
179
194
  })
180
- }, void 0)
181
- }), void 0)]
195
+ })
196
+ }))]
182
197
  }, key);
183
198
  });
184
199
  return _jsxs("div", {
185
- className: "igloo-freeform-addable-section-container",
200
+ className: "igloo-form-addable-section-container",
186
201
  style: {
187
202
  width: '100%'
188
203
  },
189
204
  children: [groups, groupKeys.length < max && !preview && _jsx(_Col, {
190
205
  span: 24,
191
206
  style: {
192
- marginTop: 16
207
+ marginTop: !md ? 24 : 32
193
208
  },
194
209
  children: _jsx(Button, {
195
210
  onClick: function onClick() {
@@ -198,14 +213,14 @@ var AddableSection = function AddableSection(_ref) {
198
213
  key: Date.now()
199
214
  });
200
215
  },
201
- className: "igloo-addable-section-button",
216
+ className: "igloo-form-addable-section-button",
202
217
  icon: addButtonIcon,
203
218
  children: addButtonText || "".concat(formatMessage({
204
219
  id: 'Add'
205
220
  }), " ").concat(label)
206
- }, void 0)
207
- }, void 0)]
208
- }, void 0);
221
+ })
222
+ })]
223
+ });
209
224
  };
210
225
 
211
226
  export default AddableSection;
@@ -1,22 +1,18 @@
1
- .igloo-freeform-addable-section-container {
2
- .igloo-freeform-addable-section {
3
- .igloo-freeform-addable-section-label {
4
- .igloo-freeform-addable-section-label-remove {
1
+ .igloo-form-addable-section-container {
2
+ .igloo-form-addable-section {
3
+ .igloo-form-addable-section-label {
4
+ .igloo-form-addable-section-label-remove {
5
5
  height: auto;
6
6
  border: none;
7
7
  }
8
8
  }
9
9
 
10
- .igloo-freeform-addable-section-content {
10
+ .igloo-form-addable-section-content {
11
11
  margin-top: 16px;
12
12
  }
13
-
14
- & + .igloo-freeform-addable-section {
15
- margin-top: 24px;
16
- }
17
13
  }
18
14
 
19
- .igloo-freeform-addable-section-button {
15
+ .igloo-form-addable-section-button {
20
16
  min-width: 221px;
21
17
  }
22
18
  }
@@ -24,7 +24,7 @@ var DividerElement = function DividerElement(_ref) {
24
24
 
25
25
  return _jsx(_Divider, _objectSpread({
26
26
  className: classNames(className, 'igloo-form-divider')
27
- }, omit(props, formMethods)), void 0);
27
+ }, omit(props, formMethods)));
28
28
  };
29
29
 
30
30
  DividerElement.formItemPropsHandler = function () {
@@ -157,7 +157,7 @@ var Element = function Element(_ref) {
157
157
  preview: preview,
158
158
  disabled: disabled,
159
159
  setShowStepButton: setShowStepButton
160
- }, void 0);
160
+ });
161
161
  }
162
162
 
163
163
  if (type === 'AddableSection') {
@@ -167,7 +167,7 @@ var Element = function Element(_ref) {
167
167
  preview: preview,
168
168
  disabled: disabled,
169
169
  setShowStepButton: setShowStepButton
170
- }, void 0);
170
+ });
171
171
  }
172
172
 
173
173
  var _calcFormItemProps = calcFormItemProps(config, _objectSpread(_objectSpread({}, extraConfig), {}, {
@@ -242,7 +242,7 @@ var Element = function Element(_ref) {
242
242
  return null;
243
243
  }
244
244
 
245
- return hideWhenEdit ? null : _jsx(_Col, _objectSpread(_objectSpread({}, restColProps), {}, {
245
+ return hideWhenEdit || !display ? null : _jsx(_Col, _objectSpread(_objectSpread({}, restColProps), {}, {
246
246
  className: "igloo-form-item",
247
247
  children: _jsx("div", {
248
248
  style: {
@@ -258,9 +258,9 @@ var Element = function Element(_ref) {
258
258
  setShowStepButton: setShowStepButton,
259
259
  getFormInstance: getFormInstance,
260
260
  validateField: validateField
261
- }), void 0)
262
- }, void 0)
263
- }), void 0);
261
+ }))
262
+ })
263
+ }));
264
264
  }
265
265
 
266
266
  if (!display) return null;
@@ -299,7 +299,7 @@ var Element = function Element(_ref) {
299
299
  xs: 24,
300
300
  className: "igloo-element-preview-label",
301
301
  children: previewLabel || label
302
- }, void 0), _jsxs(_Col, {
302
+ }), _jsxs(_Col, {
303
303
  span: label ? 12 : 24,
304
304
  md: label ? 12 : 24,
305
305
  sm: 24,
@@ -307,13 +307,13 @@ var Element = function Element(_ref) {
307
307
  className: "igloo-element-preview-value",
308
308
  children: [error && !!error.length && _jsx(AlertFilled, {
309
309
  className: "igloo-element-preview-value-icon"
310
- }, void 0), _jsx("div", {
310
+ }), _jsx("div", {
311
311
  children: previewFormater ? previewFormater(value, form) : _typeof(value) === 'object' ? JSON.stringify(value) : value
312
- }, void 0)]
313
- }, void 0)]
314
- }, void 0)
315
- }), void 0)
316
- }, void 0);
312
+ })]
313
+ })]
314
+ })
315
+ }))
316
+ });
317
317
  }
318
318
 
319
319
  return config.hideWhenEdit ? null : _jsx(_Col, _objectSpread(_objectSpread({}, restColProps), {}, {
@@ -341,10 +341,10 @@ var Element = function Element(_ref) {
341
341
  setShowStepButton: setShowStepButton,
342
342
  getFormInstance: getFormInstance,
343
343
  validateField: validateField
344
- }), void 0)
345
- }), void 0)
346
- }, void 0)
347
- }), void 0);
344
+ }))
345
+ }))
346
+ })
347
+ }));
348
348
  };
349
349
 
350
350
  export default Element;