iglooform 2.4.8 → 2.4.9
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.js +18 -25
- package/es/admin-upload/job-list.js +83 -113
- 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 +21 -26
- package/es/card-detail/card-group.js +16 -22
- package/es/card-detail/card-item.js +15 -20
- package/es/card-detail/card-page.js +11 -15
- package/es/card-detail/card.js +24 -24
- package/es/card-detail/utils.js +3 -4
- package/es/checkbox/index.js +23 -22
- package/es/claim-list/index.js +51 -68
- package/es/confirmation/index.js +5 -7
- package/es/date-picker/buddhist.js +1 -1
- 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 +3 -4
- package/es/filter/checkBox.js +33 -45
- package/es/filter/customize.js +3 -4
- package/es/filter/index.js +79 -107
- package/es/filter/radioBox.js +23 -31
- package/es/filter/rangePicker.js +43 -59
- package/es/form/divider/index.js +7 -1
- package/es/form/element/index.js +28 -36
- package/es/form/element/style/index.less +4 -0
- package/es/form/index.js +9 -12
- package/es/form/login/index.js +14 -19
- package/es/form/page/index.js +17 -23
- package/es/form/pages/index.js +22 -30
- package/es/form/section/index.js +11 -14
- package/es/form/step/index.js +30 -41
- package/es/form/steps/index.js +6 -8
- package/es/free-form/element/index.js +21 -27
- package/es/free-form/element/style/index.less +4 -0
- package/es/free-form/index.js +9 -12
- package/es/free-form/page/index.js +28 -39
- package/es/free-form/pages/index.js +6 -8
- package/es/free-form/section/index.js +11 -14
- package/es/free-form/step/index.js +30 -41
- package/es/free-form/steps/index.js +6 -8
- package/es/home-menu/index.js +52 -71
- 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 +12 -16
- 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/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 +50 -59
- package/es/layout/index.js +16 -12
- package/es/locale/locale-provider.js +6 -8
- 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 +6 -8
- package/es/mobile-insurer-detail/index.js +74 -91
- package/es/mobile-insurer-list/index.js +34 -38
- package/es/modal/index.js +20 -25
- package/es/platform/platform-card/index.js +9 -12
- package/es/platform/switch-platform/index.js +24 -32
- package/es/policy-list/index.js +9 -12
- 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/time-select.js +12 -16
- package/es/status-box/index.js +6 -8
- package/es/table/index.js +69 -93
- package/es/tabs/index.js +7 -1
- package/es/typography/index.js +6 -8
- package/es/upload/index.js +48 -66
- package/es/upload-photo/index.js +47 -63
- 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 +18 -25
- package/lib/admin-upload/float.js +25 -35
- package/lib/admin-upload/index.js +18 -25
- package/lib/admin-upload/job-list.js +83 -113
- 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 +22 -27
- package/lib/card-detail/card-group.js +16 -22
- package/lib/card-detail/card-item.js +15 -20
- 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 +4 -5
- package/lib/checkbox/index.js +24 -23
- package/lib/claim-list/index.js +51 -68
- package/lib/confirmation/index.js +5 -7
- package/lib/date-picker/buddhist.js +1 -1
- 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 +3 -4
- package/lib/filter/checkBox.js +33 -45
- package/lib/filter/customize.js +3 -4
- package/lib/filter/index.js +79 -107
- package/lib/filter/radioBox.js +23 -31
- package/lib/filter/rangePicker.js +43 -59
- package/lib/form/divider/index.js +7 -1
- package/lib/form/element/index.js +28 -36
- package/lib/form/element/style/index.less +4 -0
- package/lib/form/index.js +9 -12
- package/lib/form/login/index.js +14 -19
- package/lib/form/page/index.js +17 -23
- package/lib/form/pages/index.js +22 -30
- package/lib/form/section/index.js +11 -14
- package/lib/form/step/index.js +30 -41
- package/lib/form/steps/index.js +6 -8
- package/lib/free-form/element/index.js +21 -27
- package/lib/free-form/element/style/index.less +4 -0
- package/lib/free-form/index.js +9 -12
- package/lib/free-form/page/index.js +28 -39
- package/lib/free-form/pages/index.js +6 -8
- package/lib/free-form/section/index.js +11 -14
- package/lib/free-form/step/index.js +30 -41
- package/lib/free-form/steps/index.js +6 -8
- package/lib/home-menu/index.js +52 -71
- package/lib/index.js +132 -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 +12 -16
- 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/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 +50 -59
- package/lib/layout/index.js +15 -12
- package/lib/locale/format-message.js +1 -1
- package/lib/locale/index.js +4 -4
- package/lib/locale/locale-provider.js +7 -9
- 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 +6 -8
- package/lib/mobile-insurer-detail/index.js +74 -91
- package/lib/mobile-insurer-list/index.js +34 -38
- package/lib/modal/index.js +20 -25
- package/lib/platform/platform-card/index.js +9 -12
- package/lib/platform/switch-platform/index.js +24 -32
- package/lib/policy-list/index.js +9 -12
- 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/time-select.js +12 -16
- package/lib/status-box/index.js +6 -8
- package/lib/table/index.js +69 -93
- package/lib/tabs/index.js +8 -2
- package/lib/typography/index.js +6 -8
- package/lib/upload/index.js +48 -66
- package/lib/upload-photo/index.js +47 -63
- 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 +19 -26
- package/package.json +1 -1
package/es/amount/index.js
CHANGED
|
@@ -2,6 +2,12 @@ import "antd/es/statistic/style";
|
|
|
2
2
|
import _Statistic from "antd/es/statistic";
|
|
3
3
|
var _excluded = ["amount", "level", "precision"];
|
|
4
4
|
|
|
5
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
6
|
+
|
|
7
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
8
|
+
|
|
9
|
+
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; }
|
|
10
|
+
|
|
5
11
|
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; }
|
|
6
12
|
|
|
7
13
|
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; }
|
|
@@ -26,16 +32,15 @@ var Amount = function Amount(_ref) {
|
|
|
26
32
|
|
|
27
33
|
var value = exchange(amount);
|
|
28
34
|
var sepecialCurrency = currencyList.includes(currentCurrency);
|
|
29
|
-
return _jsx(Typography,
|
|
30
|
-
level: level
|
|
31
|
-
|
|
32
|
-
children: _jsx(_Statistic, Object.assign({
|
|
35
|
+
return _jsx(Typography, {
|
|
36
|
+
level: level,
|
|
37
|
+
children: _jsx(_Statistic, _objectSpread({
|
|
33
38
|
value: value,
|
|
34
39
|
precision: precision,
|
|
35
40
|
groupSeparator: sepecialCurrency ? '.' : ',',
|
|
36
41
|
decimalSeparator: sepecialCurrency ? ',' : '.'
|
|
37
42
|
}, rest), void 0)
|
|
38
|
-
}
|
|
43
|
+
}, void 0);
|
|
39
44
|
};
|
|
40
45
|
|
|
41
46
|
export default Amount;
|
package/es/back-top/index.js
CHANGED
|
@@ -2,6 +2,12 @@ import "antd/es/back-top/style";
|
|
|
2
2
|
import _BackTop from "antd/es/back-top";
|
|
3
3
|
var _excluded = ["className", "style", "visibilityHeight"];
|
|
4
4
|
|
|
5
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
6
|
+
|
|
7
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
8
|
+
|
|
9
|
+
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; }
|
|
10
|
+
|
|
5
11
|
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; }
|
|
6
12
|
|
|
7
13
|
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; }
|
|
@@ -18,22 +24,20 @@ var BackToTop = function BackToTop(props) {
|
|
|
18
24
|
visibilityHeight = _props$visibilityHeig === void 0 ? -1 : _props$visibilityHeig,
|
|
19
25
|
restProps = _objectWithoutProperties(props, _excluded);
|
|
20
26
|
|
|
21
|
-
return _jsx(_BackTop,
|
|
27
|
+
return _jsx(_BackTop, _objectSpread(_objectSpread({
|
|
22
28
|
visibilityHeight: visibilityHeight,
|
|
23
29
|
className: 'igloo-back-top-container'
|
|
24
|
-
}, restProps, {
|
|
25
|
-
children: _jsxs("div",
|
|
30
|
+
}, restProps), {}, {
|
|
31
|
+
children: _jsxs("div", {
|
|
26
32
|
className: classNames(className, 'igloo-back-top', 'ant-btn-primary'),
|
|
27
|
-
style: style
|
|
28
|
-
}, {
|
|
33
|
+
style: style,
|
|
29
34
|
children: [_jsx(ArrowUpOutlined, {
|
|
30
35
|
className: 'igloo-back-top-icon'
|
|
31
|
-
}, void 0), _jsx("span",
|
|
32
|
-
className: 'igloo-back-top-text'
|
|
33
|
-
}, {
|
|
36
|
+
}, void 0), _jsx("span", {
|
|
37
|
+
className: 'igloo-back-top-text',
|
|
34
38
|
children: "Top"
|
|
35
|
-
}
|
|
36
|
-
}
|
|
39
|
+
}, void 0)]
|
|
40
|
+
}, void 0)
|
|
37
41
|
}), void 0);
|
|
38
42
|
};
|
|
39
43
|
|
package/es/button/index.js
CHANGED
|
@@ -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
|
};
|
|
@@ -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';
|
|
@@ -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); if (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 = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { 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
|
@@ -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); if (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 = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { 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
|
|