iglooform 2.4.8 → 2.4.12
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 +25 -35
- package/es/admin-upload/index.d.ts +2 -0
- package/es/admin-upload/index.js +43 -36
- package/es/admin-upload/job-list.js +85 -115
- package/es/admin-upload/modal.js +19 -26
- package/es/alert-message/index.js +11 -9
- package/es/amount/index.js +10 -5
- package/es/back-top/index.js +14 -10
- package/es/button/index.js +23 -28
- package/es/button/style/index.less +23 -19
- package/es/card-detail/card-group.js +16 -22
- package/es/card-detail/card-item.js +16 -21
- package/es/card-detail/card-page.js +11 -15
- package/es/card-detail/card.js +24 -24
- package/es/card-detail/utils.js +6 -7
- package/es/checkbox/index.js +23 -22
- package/es/claim-list/index.js +53 -70
- package/es/confirmation/index.js +7 -9
- package/es/date-picker/buddhist.js +3 -3
- package/es/date-picker/index.js +10 -4
- package/es/declaration/index.js +16 -13
- package/es/detail-panel/index.js +67 -83
- package/es/documents/index.js +6 -8
- package/es/example/index.js +9 -11
- package/es/filter/checkBox.js +33 -45
- package/es/filter/customize.js +3 -4
- package/es/filter/index.d.ts +1 -0
- package/es/filter/index.js +88 -112
- package/es/filter/radioBox.js +23 -31
- package/es/filter/rangePicker.js +43 -59
- package/es/form/addable-section/index.d.ts +19 -0
- package/es/form/addable-section/index.js +211 -0
- package/es/form/addable-section/style/index.d.ts +1 -0
- package/es/form/addable-section/style/index.js +1 -0
- package/es/form/addable-section/style/index.less +22 -0
- package/es/form/divider/index.js +7 -1
- package/es/form/element/index.js +58 -47
- package/es/form/element/style/index.less +9 -0
- package/es/form/index.js +16 -17
- package/es/form/login/index.js +15 -20
- package/es/form/page/index.js +18 -24
- package/es/form/page/style/index.less +1 -1
- package/es/form/pages/index.js +23 -32
- package/es/form/pages/style/index.less +3 -1
- package/es/form/render/index.js +1 -1
- package/es/form/section/index.js +14 -17
- package/es/form/step/index.js +31 -42
- package/es/form/steps/index.js +8 -11
- package/es/{form/context.d.ts → form-context.d.ts} +1 -0
- package/es/{form/context.js → form-context.js} +0 -0
- package/es/free-form/addable-section/index.d.ts +18 -0
- package/es/free-form/addable-section/index.js +286 -0
- package/es/free-form/addable-section/style/index.d.ts +1 -0
- package/es/free-form/addable-section/style/index.js +1 -0
- package/es/free-form/addable-section/style/index.less +22 -0
- package/es/free-form/element/index.js +43 -41
- package/es/free-form/element/style/index.less +12 -2
- package/es/free-form/index.d.ts +5 -1
- package/es/free-form/index.js +17 -17
- package/es/free-form/page/index.js +36 -46
- package/es/free-form/page/style/index.less +3 -1
- package/es/free-form/pages/index.js +8 -10
- package/es/free-form/section/index.js +20 -22
- package/es/free-form/section/style/index.less +4 -0
- package/es/free-form/step/index.js +37 -47
- package/es/free-form/steps/index.js +8 -10
- package/es/global-message/index.js +1 -1
- package/es/home-menu/index.js +52 -71
- package/es/index.d.ts +1 -0
- package/es/index.js +2 -1
- package/es/input/amount.js +10 -5
- package/es/input/credit-card.js +7 -1
- package/es/input/email.js +8 -1
- package/es/input/expiry-date.js +14 -18
- package/es/input/input-date.js +12 -16
- package/es/input/input-number.js +9 -2
- package/es/input/input.js +9 -2
- package/es/input/otp.js +17 -15
- package/es/input/password.js +12 -6
- package/es/input/phone-number.js +6 -8
- package/es/input/style/index.less +9 -1
- package/es/input/text-area.js +14 -10
- package/es/layout/defaultFooter.js +60 -82
- package/es/layout/defaultHeader.js +11 -15
- package/es/layout/footer.js +108 -148
- package/es/layout/header.js +51 -60
- package/es/layout/index.js +16 -12
- package/es/locale/en-US/messages.json +2 -0
- package/es/locale/id-ID/messages.json +2 -0
- package/es/locale/locale-provider.js +8 -10
- package/es/locale/th-TH/messages.json +2 -0
- package/es/locale/vi-VN/messages.json +2 -0
- package/es/locale/zh-CN/messages.json +2 -0
- package/es/login-page/index.js +30 -42
- package/es/media/index.js +20 -27
- package/es/media/media.js +9 -12
- package/es/media/preview.js +8 -10
- package/es/mobile-insurer-detail/index.js +74 -91
- package/es/mobile-insurer-list/index.js +34 -38
- package/es/modal/index.d.ts +4 -3
- package/es/modal/index.js +25 -27
- package/es/modal/style/index.less +24 -5
- package/es/platform/platform-card/index.js +9 -12
- package/es/platform/switch-platform/index.js +24 -32
- package/es/policy-list/index.js +11 -14
- package/es/policy-list/policy-card.js +119 -153
- package/es/radio/index.js +33 -35
- package/es/select/attached-select.js +31 -34
- package/es/select/select.js +12 -8
- package/es/select/style/index.less +1 -1
- package/es/select/time-select.js +12 -16
- package/es/status-box/index.js +8 -10
- package/es/table/index.js +72 -96
- package/es/tabs/index.js +7 -1
- package/es/types.d.ts +4 -2
- package/es/typography/index.js +6 -8
- package/es/upload/index.d.ts +2 -1
- package/es/upload/index.js +169 -143
- package/es/upload-photo/index.d.ts +2 -1
- package/es/upload-photo/index.js +170 -142
- package/es/upload-photo/media.js +3 -4
- package/es/upload-preview/index.js +9 -12
- package/es/upload-preview/media.js +12 -16
- package/es/utils/form-utils.js +49 -36
- package/lib/admin-upload/float.js +25 -35
- package/lib/admin-upload/index.d.ts +2 -0
- package/lib/admin-upload/index.js +43 -36
- package/lib/admin-upload/job-list.js +85 -115
- package/lib/admin-upload/modal.js +19 -26
- package/lib/alert-message/index.js +11 -9
- package/lib/amount/index.js +10 -5
- package/lib/back-top/index.js +14 -10
- package/lib/button/index.js +24 -29
- package/lib/button/style/index.less +23 -19
- package/lib/card-detail/card-group.js +16 -22
- package/lib/card-detail/card-item.js +16 -21
- package/lib/card-detail/card-page.js +11 -15
- package/lib/card-detail/card.js +24 -24
- package/lib/card-detail/index.js +6 -6
- package/lib/card-detail/utils.js +7 -8
- package/lib/checkbox/index.js +24 -23
- package/lib/claim-list/index.js +53 -70
- package/lib/confirmation/index.js +7 -9
- package/lib/date-picker/buddhist.js +3 -3
- package/lib/date-picker/index.js +11 -5
- package/lib/declaration/index.js +16 -13
- package/lib/detail-panel/index.js +67 -83
- package/lib/documents/index.js +6 -8
- package/lib/example/index.js +10 -12
- package/lib/filter/checkBox.js +33 -45
- package/lib/filter/customize.js +3 -4
- package/lib/filter/index.d.ts +1 -0
- package/lib/filter/index.js +88 -112
- package/lib/filter/radioBox.js +23 -31
- package/lib/filter/rangePicker.js +43 -59
- package/lib/form/addable-section/index.d.ts +19 -0
- package/lib/form/addable-section/index.js +232 -0
- package/lib/form/addable-section/style/index.d.ts +1 -0
- package/lib/form/addable-section/style/index.js +3 -0
- package/lib/form/addable-section/style/index.less +22 -0
- package/lib/form/divider/index.js +7 -1
- package/lib/form/element/index.js +60 -48
- package/lib/form/element/style/index.less +9 -0
- package/lib/form/elements.js +1 -1
- package/lib/form/index.js +16 -17
- package/lib/form/login/index.js +16 -21
- package/lib/form/page/index.js +19 -25
- package/lib/form/page/style/index.less +1 -1
- package/lib/form/pages/index.js +24 -33
- package/lib/form/pages/style/index.less +3 -1
- package/lib/form/render/index.js +2 -2
- package/lib/form/section/index.js +15 -18
- package/lib/form/step/index.js +32 -43
- package/lib/form/steps/index.js +9 -12
- package/lib/{form/context.d.ts → form-context.d.ts} +1 -0
- package/lib/{form/context.js → form-context.js} +0 -0
- package/lib/free-form/addable-section/index.d.ts +18 -0
- package/lib/free-form/addable-section/index.js +306 -0
- package/lib/free-form/addable-section/style/index.d.ts +1 -0
- package/lib/free-form/addable-section/style/index.js +3 -0
- package/lib/free-form/addable-section/style/index.less +22 -0
- package/lib/free-form/element/index.js +44 -42
- package/lib/free-form/element/style/index.less +12 -2
- package/lib/free-form/index.d.ts +5 -1
- package/lib/free-form/index.js +17 -17
- package/lib/free-form/page/index.js +37 -47
- package/lib/free-form/page/style/index.less +3 -1
- package/lib/free-form/pages/index.js +8 -10
- package/lib/free-form/section/index.js +21 -23
- package/lib/free-form/section/style/index.less +4 -0
- package/lib/free-form/step/index.js +38 -48
- package/lib/free-form/steps/index.js +9 -11
- package/lib/global-message/index.js +1 -1
- package/lib/home-menu/index.js +52 -71
- package/lib/index.d.ts +1 -0
- package/lib/index.js +141 -132
- package/lib/input/amount.js +10 -5
- package/lib/input/credit-card.js +7 -1
- package/lib/input/email.js +7 -1
- package/lib/input/expiry-date.js +14 -18
- package/lib/input/index.js +18 -18
- package/lib/input/input-date.js +12 -16
- package/lib/input/input-number.js +8 -2
- package/lib/input/input.js +8 -2
- package/lib/input/otp.js +17 -15
- package/lib/input/password.js +11 -6
- package/lib/input/phone-number.js +6 -8
- package/lib/input/style/index.less +9 -1
- package/lib/input/text-area.js +14 -10
- package/lib/layout/defaultFooter.js +60 -82
- package/lib/layout/defaultHeader.js +11 -15
- package/lib/layout/footer.js +108 -148
- package/lib/layout/header.js +51 -60
- package/lib/layout/index.js +15 -12
- package/lib/locale/en-US/messages.json +2 -0
- package/lib/locale/format-message.js +1 -1
- package/lib/locale/id-ID/messages.json +2 -0
- package/lib/locale/index.js +4 -4
- package/lib/locale/locale-provider.js +9 -11
- package/lib/locale/th-TH/messages.json +2 -0
- package/lib/locale/vi-VN/messages.json +2 -0
- package/lib/locale/zh-CN/messages.json +2 -0
- package/lib/login-page/index.js +30 -42
- package/lib/media/index.js +20 -27
- package/lib/media/media.js +9 -12
- package/lib/media/preview.js +8 -10
- package/lib/mobile-insurer-detail/index.js +74 -91
- package/lib/mobile-insurer-list/index.js +34 -38
- package/lib/modal/index.d.ts +4 -3
- package/lib/modal/index.js +25 -27
- package/lib/modal/style/index.less +24 -5
- package/lib/platform/platform-card/index.js +9 -12
- package/lib/platform/switch-platform/index.js +24 -32
- package/lib/policy-list/index.js +11 -14
- package/lib/policy-list/policy-card.js +119 -153
- package/lib/radio/index.js +33 -35
- package/lib/select/attached-select.js +32 -35
- package/lib/select/select.js +13 -9
- package/lib/select/style/index.less +1 -1
- package/lib/select/time-select.js +12 -16
- package/lib/status-box/index.js +8 -10
- package/lib/table/index.js +72 -96
- package/lib/tabs/index.js +8 -2
- package/lib/types.d.ts +4 -2
- package/lib/typography/index.js +6 -8
- package/lib/upload/index.d.ts +2 -1
- package/lib/upload/index.js +170 -143
- package/lib/upload-photo/index.d.ts +2 -1
- package/lib/upload-photo/index.js +171 -142
- package/lib/upload-photo/media.js +3 -4
- package/lib/upload-preview/index.js +9 -12
- package/lib/upload-preview/media.js +12 -16
- package/lib/utils/form-utils.js +49 -37
- package/package.json +1 -1
- package/es/free-form/context.d.ts +0 -19
- package/es/free-form/context.js +0 -7
- package/lib/free-form/context.d.ts +0 -19
- package/lib/free-form/context.js +0 -19
package/es/button/index.js
CHANGED
|
@@ -5,9 +5,9 @@ var _excluded = ["className", "children", "onClick", "icon", "disabled"],
|
|
|
5
5
|
_excluded3 = ["className", "children"],
|
|
6
6
|
_excluded4 = ["className", "children"];
|
|
7
7
|
|
|
8
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
8
|
+
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; }
|
|
9
9
|
|
|
10
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
10
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
11
11
|
|
|
12
12
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
13
13
|
|
|
@@ -102,20 +102,18 @@ var IglooButton = function IglooButton(props) {
|
|
|
102
102
|
};
|
|
103
103
|
}();
|
|
104
104
|
|
|
105
|
-
return _jsx(_Button,
|
|
105
|
+
return _jsx(_Button, _objectSpread(_objectSpread({
|
|
106
106
|
className: "".concat(className, " igloo-button"),
|
|
107
107
|
onClick: handleClick
|
|
108
|
-
}, omit(rest, formMethods), {
|
|
108
|
+
}, omit(rest, formMethods)), {}, {
|
|
109
109
|
icon: loading ? _jsx(LoadingOutlined, {
|
|
110
110
|
spinning: true
|
|
111
111
|
}, void 0) : icon,
|
|
112
|
-
disabled: loading || disabled
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
level: "h4"
|
|
116
|
-
}, {
|
|
112
|
+
disabled: loading || disabled,
|
|
113
|
+
children: children && _jsx(Typography, {
|
|
114
|
+
level: "h4",
|
|
117
115
|
children: children
|
|
118
|
-
}
|
|
116
|
+
}, void 0)
|
|
119
117
|
}), void 0);
|
|
120
118
|
};
|
|
121
119
|
|
|
@@ -134,15 +132,14 @@ export var GreenButton = function GreenButton(_ref2) {
|
|
|
134
132
|
children = _ref2.children,
|
|
135
133
|
rest = _objectWithoutProperties(_ref2, _excluded2);
|
|
136
134
|
|
|
137
|
-
return _jsx(_Button,
|
|
135
|
+
return _jsx(_Button, _objectSpread(_objectSpread({
|
|
138
136
|
className: "".concat(className, " green "),
|
|
139
137
|
type: "primary"
|
|
140
|
-
}, rest, {
|
|
141
|
-
children: _jsx(Typography,
|
|
142
|
-
level: "h4"
|
|
143
|
-
}, {
|
|
138
|
+
}, rest), {}, {
|
|
139
|
+
children: _jsx(Typography, {
|
|
140
|
+
level: "h4",
|
|
144
141
|
children: children
|
|
145
|
-
}
|
|
142
|
+
}, void 0)
|
|
146
143
|
}), void 0);
|
|
147
144
|
};
|
|
148
145
|
export var YellowButton = function YellowButton(_ref3) {
|
|
@@ -151,15 +148,14 @@ export var YellowButton = function YellowButton(_ref3) {
|
|
|
151
148
|
children = _ref3.children,
|
|
152
149
|
rest = _objectWithoutProperties(_ref3, _excluded3);
|
|
153
150
|
|
|
154
|
-
return _jsx(_Button,
|
|
151
|
+
return _jsx(_Button, _objectSpread(_objectSpread({
|
|
155
152
|
className: "".concat(className, " yellow "),
|
|
156
153
|
type: "primary"
|
|
157
|
-
}, rest, {
|
|
158
|
-
children: _jsx(Typography,
|
|
159
|
-
level: "h4"
|
|
160
|
-
}, {
|
|
154
|
+
}, rest), {}, {
|
|
155
|
+
children: _jsx(Typography, {
|
|
156
|
+
level: "h4",
|
|
161
157
|
children: children
|
|
162
|
-
}
|
|
158
|
+
}, void 0)
|
|
163
159
|
}), void 0);
|
|
164
160
|
};
|
|
165
161
|
export var RedButton = function RedButton(_ref4) {
|
|
@@ -168,14 +164,13 @@ export var RedButton = function RedButton(_ref4) {
|
|
|
168
164
|
children = _ref4.children,
|
|
169
165
|
rest = _objectWithoutProperties(_ref4, _excluded4);
|
|
170
166
|
|
|
171
|
-
return _jsx(_Button,
|
|
167
|
+
return _jsx(_Button, _objectSpread(_objectSpread({
|
|
172
168
|
className: "".concat(className, " red "),
|
|
173
169
|
type: "primary"
|
|
174
|
-
}, rest, {
|
|
175
|
-
children: _jsx(Typography,
|
|
176
|
-
level: "h4"
|
|
177
|
-
}, {
|
|
170
|
+
}, rest), {}, {
|
|
171
|
+
children: _jsx(Typography, {
|
|
172
|
+
level: "h4",
|
|
178
173
|
children: children
|
|
179
|
-
}
|
|
174
|
+
}, void 0)
|
|
180
175
|
}), void 0);
|
|
181
176
|
};
|
|
@@ -7,16 +7,27 @@
|
|
|
7
7
|
padding: 0 16px;
|
|
8
8
|
text-shadow: none;
|
|
9
9
|
box-shadow: none;
|
|
10
|
+
background-color: transparent;
|
|
11
|
+
|
|
10
12
|
&[disabled] {
|
|
11
13
|
opacity: 0.3;
|
|
12
|
-
|
|
14
|
+
color: @primary-color;
|
|
15
|
+
border: 1px solid @primary-color;
|
|
16
|
+
background-color: transparent;
|
|
17
|
+
|
|
18
|
+
&:hover {
|
|
19
|
+
color: @primary-color;
|
|
20
|
+
border-color: @primary-color;
|
|
21
|
+
background-color: transparent;
|
|
22
|
+
}
|
|
23
|
+
&:active,
|
|
24
|
+
&:focus {
|
|
25
|
+
color: @primary-color;
|
|
26
|
+
border-color: @primary-color;
|
|
27
|
+
background-color: transparent;
|
|
28
|
+
}
|
|
13
29
|
}
|
|
14
|
-
}
|
|
15
30
|
|
|
16
|
-
.ant-btn-default {
|
|
17
|
-
background-color: transparent;
|
|
18
|
-
color: @primary-color;
|
|
19
|
-
border: 1px solid @primary-color;
|
|
20
31
|
&:hover {
|
|
21
32
|
color: @btn-hover-color;
|
|
22
33
|
border-color: @btn-hover-color;
|
|
@@ -28,18 +39,6 @@
|
|
|
28
39
|
border-color: @btn-focus-color;
|
|
29
40
|
background-color: transparent;
|
|
30
41
|
}
|
|
31
|
-
&[disabled] {
|
|
32
|
-
color: @primary-color;
|
|
33
|
-
background-color: transparent;
|
|
34
|
-
border: 1px solid @primary-color;
|
|
35
|
-
|
|
36
|
-
&:focus,
|
|
37
|
-
&:hover {
|
|
38
|
-
color: @primary-color;
|
|
39
|
-
background-color: transparent;
|
|
40
|
-
border: 1px solid @primary-color;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
42
|
}
|
|
44
43
|
|
|
45
44
|
.ant-btn-primary {
|
|
@@ -49,11 +48,13 @@
|
|
|
49
48
|
&:hover {
|
|
50
49
|
border-color: @btn-hover-color;
|
|
51
50
|
background-color: @btn-hover-bg;
|
|
51
|
+
color: white;
|
|
52
52
|
}
|
|
53
53
|
&:active,
|
|
54
54
|
&:focus {
|
|
55
55
|
border-color: @btn-focus-color;
|
|
56
56
|
background-color: @btn-focus-bg;
|
|
57
|
+
color: white;
|
|
57
58
|
}
|
|
58
59
|
&[disabled] {
|
|
59
60
|
color: white;
|
|
@@ -71,6 +72,7 @@
|
|
|
71
72
|
padding: 0;
|
|
72
73
|
height: unset;
|
|
73
74
|
color: @primary-color;
|
|
75
|
+
border: none;
|
|
74
76
|
|
|
75
77
|
&:hover {
|
|
76
78
|
color: @hover-color;
|
|
@@ -81,6 +83,7 @@
|
|
|
81
83
|
}
|
|
82
84
|
|
|
83
85
|
&[disabled] {
|
|
86
|
+
border: none;
|
|
84
87
|
color: @primary-color;
|
|
85
88
|
&:hover {
|
|
86
89
|
color: @primary-color;
|
|
@@ -92,6 +95,7 @@
|
|
|
92
95
|
padding: 0;
|
|
93
96
|
height: unset;
|
|
94
97
|
color: @black;
|
|
98
|
+
border: none;
|
|
95
99
|
|
|
96
100
|
&:hover {
|
|
97
101
|
color: @primary-color;
|
|
@@ -103,8 +107,8 @@
|
|
|
103
107
|
}
|
|
104
108
|
|
|
105
109
|
&[disabled] {
|
|
110
|
+
border: none;
|
|
106
111
|
color: @black;
|
|
107
|
-
|
|
108
112
|
&:hover {
|
|
109
113
|
color: @black;
|
|
110
114
|
background-color: transparent;
|
|
@@ -16,42 +16,36 @@ var IglooCardGroup = function IglooCardGroup(props) {
|
|
|
16
16
|
var className = props.className,
|
|
17
17
|
style = props.style;
|
|
18
18
|
|
|
19
|
-
var subTitle = _jsxs(_Space,
|
|
19
|
+
var subTitle = _jsxs(_Space, {
|
|
20
20
|
size: 8,
|
|
21
21
|
style: {
|
|
22
22
|
marginBottom: 16
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
level: "h4"
|
|
27
|
-
}, {
|
|
23
|
+
},
|
|
24
|
+
children: [_jsx(Typography, {
|
|
25
|
+
level: "h4",
|
|
28
26
|
children: subHeading
|
|
29
|
-
}
|
|
30
|
-
}
|
|
27
|
+
}, void 0), subStatus]
|
|
28
|
+
}, void 0);
|
|
31
29
|
|
|
32
|
-
return subHeading || subStatus ? _jsxs(_Row,
|
|
30
|
+
return subHeading || subStatus ? _jsxs(_Row, {
|
|
33
31
|
style: style,
|
|
34
|
-
className: classnames('igloo-form-card-container-group-with-header', className)
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
span: 24
|
|
38
|
-
}, {
|
|
32
|
+
className: classnames('igloo-form-card-container-group-with-header', className),
|
|
33
|
+
children: [_jsx(_Col, {
|
|
34
|
+
span: 24,
|
|
39
35
|
children: (subHeading || subStatus) && subTitle
|
|
40
|
-
}
|
|
36
|
+
}, void 0), _jsx(_Row, {
|
|
41
37
|
gutter: [32, 16],
|
|
42
38
|
style: {
|
|
43
39
|
width: '100%'
|
|
44
|
-
}
|
|
45
|
-
}, {
|
|
40
|
+
},
|
|
46
41
|
children: children
|
|
47
|
-
}
|
|
48
|
-
}
|
|
42
|
+
}, void 0)]
|
|
43
|
+
}, void 0) : _jsx(_Row, {
|
|
49
44
|
gutter: [32, 16],
|
|
50
45
|
style: style,
|
|
51
|
-
className: classnames('igloo-form-card-container-group', className)
|
|
52
|
-
}, {
|
|
46
|
+
className: classnames('igloo-form-card-container-group', className),
|
|
53
47
|
children: children
|
|
54
|
-
}
|
|
48
|
+
}, void 0);
|
|
55
49
|
};
|
|
56
50
|
|
|
57
51
|
IglooCardGroup.displayName = 'IglooCardGroup';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "antd/es/col/style";
|
|
2
2
|
import _Col from "antd/es/col";
|
|
3
3
|
|
|
4
|
-
function _typeof(obj) { "@babel/helpers - typeof";
|
|
4
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
5
5
|
|
|
6
6
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
7
7
|
import classnames from 'classnames';
|
|
@@ -22,18 +22,16 @@ var IglooCardItem = function IglooCardItem(props) {
|
|
|
22
22
|
return null;
|
|
23
23
|
|
|
24
24
|
case 'string':
|
|
25
|
-
return _jsx(Typography,
|
|
26
|
-
level: "body1"
|
|
27
|
-
}, {
|
|
25
|
+
return _jsx(Typography, {
|
|
26
|
+
level: "body1",
|
|
28
27
|
children: children
|
|
29
|
-
}
|
|
28
|
+
}, void 0);
|
|
30
29
|
|
|
31
30
|
case 'number':
|
|
32
|
-
return _jsx(Typography,
|
|
33
|
-
level: "body1"
|
|
34
|
-
}, {
|
|
31
|
+
return _jsx(Typography, {
|
|
32
|
+
level: "body1",
|
|
35
33
|
children: children
|
|
36
|
-
}
|
|
34
|
+
}, void 0);
|
|
37
35
|
|
|
38
36
|
case 'object':
|
|
39
37
|
return children;
|
|
@@ -43,20 +41,17 @@ var IglooCardItem = function IglooCardItem(props) {
|
|
|
43
41
|
}
|
|
44
42
|
}
|
|
45
43
|
|
|
46
|
-
return _jsxs(_Col,
|
|
44
|
+
return _jsxs(_Col, {
|
|
47
45
|
span: span || 4,
|
|
48
|
-
className: classnames('igloofrom-card-detail-item', className)
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
children: _jsx(Typography, Object.assign({
|
|
54
|
-
level: "body1"
|
|
55
|
-
}, {
|
|
46
|
+
className: classnames('igloofrom-card-detail-item', className),
|
|
47
|
+
children: [_jsx("div", {
|
|
48
|
+
className: "card-item-title",
|
|
49
|
+
children: _jsx(Typography, {
|
|
50
|
+
level: "body1",
|
|
56
51
|
children: title
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
}
|
|
52
|
+
}, void 0)
|
|
53
|
+
}, void 0), renderContent(children)]
|
|
54
|
+
}, void 0);
|
|
60
55
|
};
|
|
61
56
|
|
|
62
57
|
IglooCardItem.displayName = 'IglooCardItem';
|
|
@@ -23,30 +23,26 @@ var IglooCardPage = function IglooCardPage(props) {
|
|
|
23
23
|
}, index);
|
|
24
24
|
});
|
|
25
25
|
|
|
26
|
-
var titleContent = _jsxs(_Space,
|
|
27
|
-
size: 8
|
|
28
|
-
}, {
|
|
26
|
+
var titleContent = _jsxs(_Space, {
|
|
27
|
+
size: 8,
|
|
29
28
|
children: [_jsx("span", {
|
|
30
29
|
children: pageTitleIcon
|
|
31
|
-
}, void 0), _jsx(Typography,
|
|
32
|
-
level: "h3a"
|
|
33
|
-
}, {
|
|
30
|
+
}, void 0), _jsx(Typography, {
|
|
31
|
+
level: "h3a",
|
|
34
32
|
children: title
|
|
35
|
-
}
|
|
36
|
-
}
|
|
33
|
+
}, void 0), pageStatusIcon]
|
|
34
|
+
}, void 0);
|
|
37
35
|
|
|
38
|
-
return _jsx(_Card,
|
|
36
|
+
return _jsx(_Card, {
|
|
39
37
|
style: style,
|
|
40
38
|
className: classnames('igloo-card-page', className),
|
|
41
39
|
title: titleContent,
|
|
42
|
-
extra: _jsx(_Space,
|
|
43
|
-
size: 18
|
|
44
|
-
}, {
|
|
40
|
+
extra: _jsx(_Space, {
|
|
41
|
+
size: 18,
|
|
45
42
|
children: extraButtonsWithKey
|
|
46
|
-
}
|
|
47
|
-
}, {
|
|
43
|
+
}, void 0),
|
|
48
44
|
children: DealWithCardItem(children, true)
|
|
49
|
-
}
|
|
45
|
+
}, void 0);
|
|
50
46
|
};
|
|
51
47
|
|
|
52
48
|
export default IglooCardPage;
|
package/es/card-detail/card.js
CHANGED
|
@@ -4,6 +4,12 @@ import "antd/es/space/style";
|
|
|
4
4
|
import _Space from "antd/es/space";
|
|
5
5
|
var _excluded = ["title", "contentTitle", "contentStatus", "className"];
|
|
6
6
|
|
|
7
|
+
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; }
|
|
8
|
+
|
|
9
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
10
|
+
|
|
11
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
12
|
+
|
|
7
13
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
8
14
|
|
|
9
15
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
@@ -23,38 +29,32 @@ var IglooCard = function IglooCard(props) {
|
|
|
23
29
|
className = props.className,
|
|
24
30
|
rest = _objectWithoutProperties(props, _excluded);
|
|
25
31
|
|
|
26
|
-
var cardTitle = _jsx(_Space,
|
|
27
|
-
size: 8
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
level: "h3b"
|
|
31
|
-
}, {
|
|
32
|
+
var cardTitle = _jsx(_Space, {
|
|
33
|
+
size: 8,
|
|
34
|
+
children: _jsx(Typography, {
|
|
35
|
+
level: "h3b",
|
|
32
36
|
children: title
|
|
33
|
-
}
|
|
34
|
-
}
|
|
37
|
+
}, void 0)
|
|
38
|
+
}, void 0);
|
|
35
39
|
|
|
36
|
-
var contentTitleDom = _jsxs(_Space,
|
|
37
|
-
size: 8
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
level: "h4"
|
|
41
|
-
}, {
|
|
40
|
+
var contentTitleDom = _jsxs(_Space, {
|
|
41
|
+
size: 8,
|
|
42
|
+
children: [_jsx(Typography, {
|
|
43
|
+
level: "h4",
|
|
42
44
|
children: contentTitle
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
+
}, void 0), contentStatus]
|
|
46
|
+
}, void 0);
|
|
45
47
|
|
|
46
|
-
return _jsx(_Card,
|
|
48
|
+
return _jsx(_Card, _objectSpread(_objectSpread({
|
|
47
49
|
type: "inner",
|
|
48
50
|
title: cardTitle
|
|
49
|
-
}, rest, {
|
|
50
|
-
className: classnames('igloo-form-card-container', className)
|
|
51
|
-
}, {
|
|
51
|
+
}, rest), {}, {
|
|
52
|
+
className: classnames('igloo-form-card-container', className),
|
|
52
53
|
children: _jsxs("div", {
|
|
53
|
-
children: [contentTitle && _jsx("div",
|
|
54
|
-
className: "igloo-form-card-container-title"
|
|
55
|
-
}, {
|
|
54
|
+
children: [contentTitle && _jsx("div", {
|
|
55
|
+
className: "igloo-form-card-container-title",
|
|
56
56
|
children: contentTitleDom
|
|
57
|
-
}
|
|
57
|
+
}, void 0), DealWithCardItem(children, false)]
|
|
58
58
|
}, void 0)
|
|
59
59
|
}), void 0);
|
|
60
60
|
};
|
package/es/card-detail/utils.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
1
|
+
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; }
|
|
2
2
|
|
|
3
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
3
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
4
4
|
|
|
5
5
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
6
6
|
|
|
7
|
-
function _typeof(obj) { "@babel/helpers - typeof";
|
|
7
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
8
8
|
|
|
9
9
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
10
|
import React from 'react';
|
|
@@ -55,13 +55,12 @@ export function wrapCardItem() {
|
|
|
55
55
|
if (Array.isArray(item)) {
|
|
56
56
|
if (!item.length) return null;
|
|
57
57
|
var padding = hasCustomizeWrap ? "24px 24px 32px 24px" : "".concat(index ? 24 : 0, "px 0px 24px 0px");
|
|
58
|
-
return item[0].type.displayName === 'IglooCardItem' ? _jsx(CardGroup,
|
|
58
|
+
return item[0].type.displayName === 'IglooCardItem' ? _jsx(CardGroup, {
|
|
59
59
|
style: {
|
|
60
60
|
padding: padding
|
|
61
|
-
}
|
|
62
|
-
}, {
|
|
61
|
+
},
|
|
63
62
|
children: item
|
|
64
|
-
}
|
|
63
|
+
}, index) : item;
|
|
65
64
|
} // 对齐样式
|
|
66
65
|
|
|
67
66
|
|
package/es/checkbox/index.js
CHANGED
|
@@ -11,6 +11,12 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
|
11
11
|
|
|
12
12
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
13
13
|
|
|
14
|
+
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; }
|
|
15
|
+
|
|
16
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
17
|
+
|
|
18
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
19
|
+
|
|
14
20
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
15
21
|
import Typography from '../typography';
|
|
16
22
|
import formMethods from '../utils/form-methods';
|
|
@@ -19,7 +25,7 @@ import classnames from 'classnames';
|
|
|
19
25
|
import './style/index.less';
|
|
20
26
|
|
|
21
27
|
var IglooCheckbox = function IglooCheckbox(props) {
|
|
22
|
-
return _jsx(_Checkbox,
|
|
28
|
+
return _jsx(_Checkbox, _objectSpread({}, omit(props, formMethods)), void 0);
|
|
23
29
|
};
|
|
24
30
|
|
|
25
31
|
IglooCheckbox.formItemPropsHandler = function (config) {
|
|
@@ -39,39 +45,34 @@ export var CheckboxGroup = function CheckboxGroup(_ref) {
|
|
|
39
45
|
value = _ref.value,
|
|
40
46
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
41
47
|
|
|
42
|
-
return _jsx(_Checkbox.Group,
|
|
48
|
+
return _jsx(_Checkbox.Group, _objectSpread(_objectSpread({}, omit(rest, formMethods)), {}, {
|
|
43
49
|
className: classnames('igloo-checkbox-group', className),
|
|
44
|
-
value: value
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
gutter: [8, 8]
|
|
48
|
-
}, {
|
|
50
|
+
value: value,
|
|
51
|
+
children: _jsx(_Row, {
|
|
52
|
+
gutter: [8, 8],
|
|
49
53
|
children: options.map(function (_ref2) {
|
|
50
54
|
var label = _ref2.label,
|
|
51
55
|
key = _ref2.value,
|
|
52
56
|
extraInfo = _ref2.extraInfo,
|
|
53
57
|
rest = _objectWithoutProperties(_ref2, _excluded2);
|
|
54
58
|
|
|
55
|
-
return _jsxs(_Col,
|
|
59
|
+
return _jsxs(_Col, {
|
|
56
60
|
span: 24,
|
|
57
|
-
className: 'igloo-checkbox-group-normal'
|
|
58
|
-
|
|
59
|
-
children: [_jsx(_Checkbox, Object.assign({
|
|
61
|
+
className: 'igloo-checkbox-group-normal',
|
|
62
|
+
children: [_jsx(_Checkbox, _objectSpread(_objectSpread({
|
|
60
63
|
value: key
|
|
61
|
-
}, rest, {
|
|
62
|
-
children: _jsx(Typography,
|
|
63
|
-
level: "body1"
|
|
64
|
-
}, {
|
|
64
|
+
}, rest), {}, {
|
|
65
|
+
children: _jsx(Typography, {
|
|
66
|
+
level: "body1",
|
|
65
67
|
children: label
|
|
66
|
-
}
|
|
67
|
-
}), void 0), _jsx("div",
|
|
68
|
-
className: "igloo-checkbox-extra"
|
|
69
|
-
}, {
|
|
68
|
+
}, void 0)
|
|
69
|
+
}), void 0), _jsx("div", {
|
|
70
|
+
className: "igloo-checkbox-extra",
|
|
70
71
|
children: extraInfo && (extraInfo.shownTrigger === 'all' || extraInfo.shownTrigger === 'checked' && value === key || extraInfo.shownTrigger === 'unchecked' && value !== key) && extraInfo.content
|
|
71
|
-
}
|
|
72
|
-
}
|
|
72
|
+
}, void 0)]
|
|
73
|
+
}, key);
|
|
73
74
|
})
|
|
74
|
-
}
|
|
75
|
+
}, void 0)
|
|
75
76
|
}), void 0);
|
|
76
77
|
};
|
|
77
78
|
|