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.
- package/es/admin-upload/float.js +14 -14
- package/es/admin-upload/index.js +11 -11
- package/es/admin-upload/job-list.js +47 -47
- package/es/admin-upload/modal.js +10 -10
- package/es/alert-message/index.js +7 -7
- package/es/amount/index.js +2 -2
- package/es/back-top/index.js +4 -4
- package/es/button/index.js +9 -9
- package/es/card-detail/card-group.js +6 -6
- package/es/card-detail/card-item.js +5 -5
- package/es/card-detail/card-page.js +5 -5
- package/es/card-detail/card.js +7 -7
- package/es/checkbox/index.js +6 -6
- package/es/claim-list/index.js +19 -19
- package/es/confirmation/index.js +4 -4
- package/es/date-picker/buddhist.js +2 -2
- package/es/date-picker/index.js +9 -9
- package/es/declaration/index.js +5 -5
- package/es/detail-panel/index.js +26 -26
- package/es/documents/index.js +2 -2
- package/es/example/index.js +5 -5
- package/es/filter/checkBox.js +10 -10
- package/es/filter/customize.js +1 -1
- package/es/filter/index.js +43 -43
- package/es/filter/radioBox.js +7 -7
- package/es/filter/rangePicker.js +23 -23
- package/es/filter/style/index.less +10 -2
- package/es/form/addable-section/index.js +33 -18
- package/es/form/addable-section/style/index.less +6 -10
- package/es/form/divider/index.js +1 -1
- package/es/form/element/index.js +17 -17
- package/es/form/elements.js +6 -3
- package/es/form/index.js +7 -7
- package/es/form/login/index.js +6 -6
- package/es/form/page/index.js +8 -8
- package/es/form/pages/index.js +10 -10
- package/es/form/render/index.js +1 -1
- package/es/form/section/index.js +4 -4
- package/es/form/step/index.js +14 -14
- package/es/form/steps/index.js +2 -2
- package/es/free-form/addable-section/index.js +29 -14
- package/es/free-form/addable-section/style/index.less +0 -4
- package/es/free-form/element/index.js +10 -10
- package/es/free-form/index.js +3 -3
- package/es/free-form/page/index.js +15 -15
- package/es/free-form/pages/index.js +2 -2
- package/es/free-form/section/index.js +4 -4
- package/es/free-form/step/index.js +14 -14
- package/es/free-form/steps/index.js +2 -2
- package/es/global-message/index.js +12 -12
- package/es/home-menu/index.js +18 -18
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/input/amount.js +2 -2
- package/es/input/credit-card.js +4 -4
- package/es/input/email.js +1 -1
- package/es/input/expiry-date.js +3 -3
- package/es/input/input-date.js +3 -3
- package/es/input/input-number.js +1 -1
- package/es/input/input.js +1 -1
- package/es/input/otp.js +6 -6
- package/es/input/password.js +4 -4
- package/es/input/phone-number.js +4 -4
- package/es/input/text-area.js +4 -4
- package/es/layout/defaultFooter.js +28 -28
- package/es/layout/defaultHeader.js +6 -6
- package/es/layout/footer.js +66 -66
- package/es/layout/header.js +25 -25
- package/es/layout/index.js +4 -4
- package/es/locale/en-US/messages.json +1 -0
- package/es/locale/id-ID/messages.json +3 -2
- package/es/locale/locale-provider.js +2 -2
- package/es/locale/th-TH/messages.json +3 -2
- package/es/locale/vi-VN/messages.json +3 -2
- package/es/locale/zh-CN/messages.json +3 -2
- package/es/login-page/index.js +16 -16
- package/es/media/index.js +15 -15
- package/es/media/media.js +8 -8
- package/es/media/preview.js +6 -6
- package/es/mobile-insurer-detail/index.js +18 -18
- package/es/mobile-insurer-list/index.js +11 -11
- package/es/modal/index.js +8 -8
- package/es/platform/platform-card/index.js +5 -5
- package/es/platform/switch-platform/index.js +12 -12
- package/es/policy-list/index.js +4 -4
- package/es/policy-list/policy-card.js +32 -32
- package/es/radio/index.d.ts +2 -1
- package/es/radio/index.js +13 -12
- package/es/radio/radio-group-with-other.d.ts +6 -0
- package/es/radio/radio-group-with-other.js +85 -0
- package/es/select/attached-select.js +17 -20
- package/es/select/select.js +6 -9
- package/es/select/time-select.js +20 -20
- package/es/status-box/index.js +2 -2
- package/es/table/index.js +33 -33
- package/es/tabs/index.js +1 -1
- package/es/typography/index.js +10 -3
- package/es/upload/index.js +28 -28
- package/es/upload-photo/index.js +30 -34
- package/es/upload-photo/media.js +4 -4
- package/es/upload-preview/index.js +10 -10
- package/es/upload-preview/media.js +8 -8
- package/es/utils/form-utils.d.ts +1 -1
- package/es/utils/form-utils.js +11 -11
- package/lib/admin-upload/float.js +14 -14
- package/lib/admin-upload/index.js +11 -11
- package/lib/admin-upload/job-list.js +47 -47
- package/lib/admin-upload/modal.js +10 -10
- package/lib/alert-message/index.js +7 -7
- package/lib/amount/index.js +2 -2
- package/lib/back-top/index.js +4 -4
- package/lib/button/index.js +9 -9
- package/lib/card-detail/card-group.js +6 -6
- package/lib/card-detail/card-item.js +5 -5
- package/lib/card-detail/card-page.js +5 -5
- package/lib/card-detail/card.js +7 -7
- package/lib/checkbox/index.js +6 -6
- package/lib/claim-list/index.js +19 -19
- package/lib/confirmation/index.js +4 -4
- package/lib/date-picker/buddhist.js +2 -2
- package/lib/date-picker/index.js +9 -9
- package/lib/declaration/index.js +5 -5
- package/lib/detail-panel/index.js +26 -26
- package/lib/documents/index.js +2 -2
- package/lib/example/index.js +5 -5
- package/lib/filter/checkBox.js +10 -10
- package/lib/filter/customize.js +1 -1
- package/lib/filter/index.js +43 -43
- package/lib/filter/radioBox.js +7 -7
- package/lib/filter/rangePicker.js +23 -23
- package/lib/filter/style/index.less +10 -2
- package/lib/form/addable-section/index.js +37 -17
- package/lib/form/addable-section/style/index.less +6 -10
- package/lib/form/divider/index.js +1 -1
- package/lib/form/element/index.js +17 -17
- package/lib/form/elements.js +6 -2
- package/lib/form/index.js +7 -7
- package/lib/form/login/index.js +6 -6
- package/lib/form/page/index.js +8 -8
- package/lib/form/pages/index.js +10 -10
- package/lib/form/render/index.js +1 -1
- package/lib/form/section/index.js +4 -4
- package/lib/form/step/index.js +14 -14
- package/lib/form/steps/index.js +2 -2
- package/lib/free-form/addable-section/index.js +33 -13
- package/lib/free-form/addable-section/style/index.less +0 -4
- package/lib/free-form/element/index.js +10 -10
- package/lib/free-form/index.js +3 -3
- package/lib/free-form/page/index.js +15 -15
- package/lib/free-form/pages/index.js +2 -2
- package/lib/free-form/section/index.js +4 -4
- package/lib/free-form/step/index.js +14 -14
- package/lib/free-form/steps/index.js +2 -2
- package/lib/global-message/index.js +12 -12
- package/lib/home-menu/index.js +18 -18
- package/lib/index.d.ts +1 -1
- package/lib/index.js +7 -0
- package/lib/input/amount.js +2 -2
- package/lib/input/credit-card.js +4 -4
- package/lib/input/email.js +1 -1
- package/lib/input/expiry-date.js +3 -3
- package/lib/input/input-date.js +3 -3
- package/lib/input/input-number.js +1 -1
- package/lib/input/input.js +1 -1
- package/lib/input/otp.js +6 -6
- package/lib/input/password.js +4 -4
- package/lib/input/phone-number.js +4 -4
- package/lib/input/text-area.js +4 -4
- package/lib/layout/defaultFooter.js +28 -28
- package/lib/layout/defaultHeader.js +6 -6
- package/lib/layout/footer.js +66 -66
- package/lib/layout/header.js +25 -25
- package/lib/layout/index.js +4 -4
- package/lib/locale/en-US/messages.json +1 -0
- package/lib/locale/id-ID/messages.json +3 -2
- package/lib/locale/locale-provider.js +2 -2
- package/lib/locale/th-TH/messages.json +3 -2
- package/lib/locale/vi-VN/messages.json +3 -2
- package/lib/locale/zh-CN/messages.json +3 -2
- package/lib/login-page/index.js +16 -16
- package/lib/media/index.js +15 -15
- package/lib/media/media.js +8 -8
- package/lib/media/preview.js +6 -6
- package/lib/mobile-insurer-detail/index.js +18 -18
- package/lib/mobile-insurer-list/index.js +11 -11
- package/lib/modal/index.js +8 -8
- package/lib/platform/platform-card/index.js +5 -5
- package/lib/platform/switch-platform/index.js +12 -12
- package/lib/policy-list/index.js +4 -4
- package/lib/policy-list/policy-card.js +32 -32
- package/lib/radio/index.d.ts +2 -1
- package/lib/radio/index.js +21 -12
- package/lib/radio/radio-group-with-other.d.ts +6 -0
- package/lib/radio/radio-group-with-other.js +98 -0
- package/lib/select/attached-select.js +16 -19
- package/lib/select/select.js +5 -8
- package/lib/select/time-select.js +20 -20
- package/lib/status-box/index.js +2 -2
- package/lib/table/index.js +33 -33
- package/lib/tabs/index.js +1 -1
- package/lib/typography/index.js +10 -3
- package/lib/upload/index.js +28 -28
- package/lib/upload-photo/index.js +30 -34
- package/lib/upload-photo/media.js +4 -4
- package/lib/upload-preview/index.js +10 -10
- package/lib/upload-preview/media.js +8 -8
- package/lib/utils/form-utils.d.ts +1 -1
- package/lib/utils/form-utils.js +10 -10
- package/package.json +1 -1
package/es/filter/index.js
CHANGED
|
@@ -616,15 +616,15 @@ var FilterComponent = function FilterComponent(props) {
|
|
|
616
616
|
fontSize: '24px',
|
|
617
617
|
color: '#666666'
|
|
618
618
|
}
|
|
619
|
-
}
|
|
619
|
+
}), _jsx(Typography, {
|
|
620
620
|
level: "h4",
|
|
621
621
|
children: filterTitle
|
|
622
|
-
}
|
|
623
|
-
}
|
|
622
|
+
})]
|
|
623
|
+
}), _jsx(_Divider, {
|
|
624
624
|
style: {
|
|
625
625
|
margin: '16px 0px'
|
|
626
626
|
}
|
|
627
|
-
}
|
|
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
|
-
}
|
|
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
|
-
}
|
|
722
|
-
}
|
|
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
|
-
}
|
|
739
|
-
}
|
|
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
|
-
}
|
|
767
|
-
}
|
|
768
|
-
}
|
|
769
|
-
}
|
|
766
|
+
})
|
|
767
|
+
})]
|
|
768
|
+
})]
|
|
769
|
+
})]
|
|
770
770
|
}, 1)
|
|
771
|
-
}
|
|
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
|
-
}
|
|
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
|
-
}
|
|
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
|
-
}
|
|
800
|
+
})
|
|
801
801
|
}, item.value);
|
|
802
802
|
})
|
|
803
|
-
}
|
|
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
|
-
}
|
|
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
|
-
}
|
|
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
|
-
}
|
|
866
|
+
})]
|
|
867
867
|
}, index);
|
|
868
868
|
}), !oneLineCanShow && !inputExtend && _jsx("span", {
|
|
869
869
|
children: "..."
|
|
870
|
-
}
|
|
871
|
-
}
|
|
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
|
-
}
|
|
899
|
-
}
|
|
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
|
-
}
|
|
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
|
-
}
|
|
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
|
-
}
|
|
962
|
+
})]
|
|
963
963
|
}, index);
|
|
964
964
|
})
|
|
965
|
-
}
|
|
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
|
-
}
|
|
992
|
-
}
|
|
993
|
-
}
|
|
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
|
-
}
|
|
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
|
-
}
|
|
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
|
-
}
|
|
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
|
-
}
|
|
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
|
-
}
|
|
1082
|
-
}
|
|
1083
|
-
}
|
|
1084
|
-
}
|
|
1085
|
-
}
|
|
1081
|
+
})
|
|
1082
|
+
})
|
|
1083
|
+
})
|
|
1084
|
+
})
|
|
1085
|
+
}), _jsx("div", {
|
|
1086
1086
|
className: "igloo-form-filter-drop-down",
|
|
1087
1087
|
ref: dropDownContainerRef
|
|
1088
|
-
}
|
|
1089
|
-
}
|
|
1088
|
+
})]
|
|
1089
|
+
});
|
|
1090
1090
|
};
|
|
1091
1091
|
|
|
1092
1092
|
export default FilterComponent;
|
package/es/filter/radioBox.js
CHANGED
|
@@ -23,8 +23,8 @@ var CreateRadioBoxFilter = function CreateRadioBoxFilter(props) {
|
|
|
23
23
|
children: _jsx(Typography, {
|
|
24
24
|
level: "h4",
|
|
25
25
|
children: title
|
|
26
|
-
}
|
|
27
|
-
}
|
|
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
|
-
}
|
|
47
|
-
}
|
|
46
|
+
})
|
|
47
|
+
})
|
|
48
48
|
}, item.value);
|
|
49
49
|
})
|
|
50
|
-
}
|
|
51
|
-
}
|
|
50
|
+
})
|
|
51
|
+
}), _jsx(_Divider, {
|
|
52
52
|
style: {
|
|
53
53
|
margin: '16px 0px'
|
|
54
54
|
}
|
|
55
|
-
}
|
|
55
|
+
})]
|
|
56
56
|
}, optionKey);
|
|
57
57
|
};
|
|
58
58
|
|
package/es/filter/rangePicker.js
CHANGED
|
@@ -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
|
-
}
|
|
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
|
-
}
|
|
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
|
-
}
|
|
150
|
+
}) : _jsx(CalendarOutlined, {
|
|
151
151
|
style: {
|
|
152
152
|
fontSize: '20px',
|
|
153
153
|
color: '#666666'
|
|
154
154
|
}
|
|
155
|
-
}
|
|
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
|
-
}
|
|
187
|
-
}
|
|
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
|
-
}
|
|
204
|
-
}
|
|
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
|
-
}
|
|
221
|
-
}
|
|
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
|
-
}
|
|
238
|
-
}
|
|
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
|
-
}
|
|
255
|
-
}
|
|
256
|
-
}
|
|
257
|
-
}
|
|
254
|
+
})
|
|
255
|
+
})]
|
|
256
|
+
}), pa]
|
|
257
|
+
});
|
|
258
258
|
}
|
|
259
|
-
}
|
|
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
|
-
}
|
|
276
|
-
}
|
|
275
|
+
})
|
|
276
|
+
}), _jsx("div", {
|
|
277
277
|
ref: dateRangerContainerRef,
|
|
278
278
|
className: "igloo-form-fliter-drop-down-container-content-group-title-ranger-container"
|
|
279
|
-
}
|
|
280
|
-
}
|
|
281
|
-
}
|
|
279
|
+
})]
|
|
280
|
+
})]
|
|
281
|
+
}), _jsx(_Divider, {
|
|
282
282
|
style: {
|
|
283
283
|
margin: '16px 0px'
|
|
284
284
|
}
|
|
285
|
-
}
|
|
285
|
+
})]
|
|
286
286
|
}, optionKey);
|
|
287
287
|
};
|
|
288
288
|
|
|
@@ -13,7 +13,10 @@
|
|
|
13
13
|
height: 48px;
|
|
14
14
|
|
|
15
15
|
.ant-select-selector {
|
|
16
|
-
|
|
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
|
|
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 {
|
|
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-
|
|
146
|
-
children: [
|
|
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 ?
|
|
150
|
-
level:
|
|
161
|
+
children: [label ? _jsx(Typography, _objectSpread(_objectSpread({}, labelProps), {}, {
|
|
162
|
+
level: !md ? 'body1' : 'h3b',
|
|
151
163
|
wrapElement: "div",
|
|
152
|
-
children:
|
|
153
|
-
})
|
|
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
|
-
}
|
|
166
|
-
}
|
|
167
|
-
className: 'igloo-
|
|
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
|
-
}
|
|
181
|
-
})
|
|
195
|
+
})
|
|
196
|
+
}))]
|
|
182
197
|
}, key);
|
|
183
198
|
});
|
|
184
199
|
return _jsxs("div", {
|
|
185
|
-
className: "igloo-
|
|
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:
|
|
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
|
-
}
|
|
207
|
-
}
|
|
208
|
-
}
|
|
221
|
+
})
|
|
222
|
+
})]
|
|
223
|
+
});
|
|
209
224
|
};
|
|
210
225
|
|
|
211
226
|
export default AddableSection;
|
|
@@ -1,22 +1,18 @@
|
|
|
1
|
-
.igloo-
|
|
2
|
-
.igloo-
|
|
3
|
-
.igloo-
|
|
4
|
-
.igloo-
|
|
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-
|
|
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-
|
|
15
|
+
.igloo-form-addable-section-button {
|
|
20
16
|
min-width: 221px;
|
|
21
17
|
}
|
|
22
18
|
}
|
package/es/form/divider/index.js
CHANGED
|
@@ -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))
|
|
27
|
+
}, omit(props, formMethods)));
|
|
28
28
|
};
|
|
29
29
|
|
|
30
30
|
DividerElement.formItemPropsHandler = function () {
|
package/es/form/element/index.js
CHANGED
|
@@ -157,7 +157,7 @@ var Element = function Element(_ref) {
|
|
|
157
157
|
preview: preview,
|
|
158
158
|
disabled: disabled,
|
|
159
159
|
setShowStepButton: setShowStepButton
|
|
160
|
-
}
|
|
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
|
-
}
|
|
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
|
-
})
|
|
262
|
-
}
|
|
263
|
-
})
|
|
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
|
-
}
|
|
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
|
-
}
|
|
310
|
+
}), _jsx("div", {
|
|
311
311
|
children: previewFormater ? previewFormater(value, form) : _typeof(value) === 'object' ? JSON.stringify(value) : value
|
|
312
|
-
}
|
|
313
|
-
}
|
|
314
|
-
}
|
|
315
|
-
})
|
|
316
|
-
}
|
|
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
|
-
})
|
|
345
|
-
})
|
|
346
|
-
}
|
|
347
|
-
})
|
|
344
|
+
}))
|
|
345
|
+
}))
|
|
346
|
+
})
|
|
347
|
+
}));
|
|
348
348
|
};
|
|
349
349
|
|
|
350
350
|
export default Element;
|