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/lib/amount/index.js
CHANGED
|
@@ -21,6 +21,12 @@ var _excluded = ["amount", "level", "precision"];
|
|
|
21
21
|
|
|
22
22
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
23
23
|
|
|
24
|
+
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; }
|
|
25
|
+
|
|
26
|
+
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; }
|
|
27
|
+
|
|
28
|
+
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; }
|
|
29
|
+
|
|
24
30
|
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; }
|
|
25
31
|
|
|
26
32
|
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; }
|
|
@@ -41,16 +47,15 @@ var Amount = function Amount(_ref) {
|
|
|
41
47
|
|
|
42
48
|
var value = exchange(amount);
|
|
43
49
|
var sepecialCurrency = currencyList.includes(currentCurrency);
|
|
44
|
-
return (0, _jsxRuntime.jsx)(_typography.default,
|
|
45
|
-
level: level
|
|
46
|
-
|
|
47
|
-
children: (0, _jsxRuntime.jsx)(_statistic.default, Object.assign({
|
|
50
|
+
return (0, _jsxRuntime.jsx)(_typography.default, {
|
|
51
|
+
level: level,
|
|
52
|
+
children: (0, _jsxRuntime.jsx)(_statistic.default, _objectSpread({
|
|
48
53
|
value: value,
|
|
49
54
|
precision: precision,
|
|
50
55
|
groupSeparator: sepecialCurrency ? '.' : ',',
|
|
51
56
|
decimalSeparator: sepecialCurrency ? ',' : '.'
|
|
52
57
|
}, rest), void 0)
|
|
53
|
-
}
|
|
58
|
+
}, void 0);
|
|
54
59
|
};
|
|
55
60
|
|
|
56
61
|
var _default = Amount;
|
package/lib/back-top/index.js
CHANGED
|
@@ -21,6 +21,12 @@ var _excluded = ["className", "style", "visibilityHeight"];
|
|
|
21
21
|
|
|
22
22
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
23
23
|
|
|
24
|
+
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; }
|
|
25
|
+
|
|
26
|
+
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; }
|
|
27
|
+
|
|
28
|
+
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; }
|
|
29
|
+
|
|
24
30
|
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; }
|
|
25
31
|
|
|
26
32
|
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; }
|
|
@@ -32,22 +38,20 @@ var BackToTop = function BackToTop(props) {
|
|
|
32
38
|
visibilityHeight = _props$visibilityHeig === void 0 ? -1 : _props$visibilityHeig,
|
|
33
39
|
restProps = _objectWithoutProperties(props, _excluded);
|
|
34
40
|
|
|
35
|
-
return (0, _jsxRuntime.jsx)(_backTop.default,
|
|
41
|
+
return (0, _jsxRuntime.jsx)(_backTop.default, _objectSpread(_objectSpread({
|
|
36
42
|
visibilityHeight: visibilityHeight,
|
|
37
43
|
className: 'igloo-back-top-container'
|
|
38
|
-
}, restProps, {
|
|
39
|
-
children: (0, _jsxRuntime.jsxs)("div",
|
|
44
|
+
}, restProps), {}, {
|
|
45
|
+
children: (0, _jsxRuntime.jsxs)("div", {
|
|
40
46
|
className: (0, _classnames.default)(className, 'igloo-back-top', 'ant-btn-primary'),
|
|
41
|
-
style: style
|
|
42
|
-
}, {
|
|
47
|
+
style: style,
|
|
43
48
|
children: [(0, _jsxRuntime.jsx)(_iglooicon.ArrowUpOutlined, {
|
|
44
49
|
className: 'igloo-back-top-icon'
|
|
45
|
-
}, void 0), (0, _jsxRuntime.jsx)("span",
|
|
46
|
-
className: 'igloo-back-top-text'
|
|
47
|
-
}, {
|
|
50
|
+
}, void 0), (0, _jsxRuntime.jsx)("span", {
|
|
51
|
+
className: 'igloo-back-top-text',
|
|
48
52
|
children: "Top"
|
|
49
|
-
}
|
|
50
|
-
}
|
|
53
|
+
}, void 0)]
|
|
54
|
+
}, void 0)
|
|
51
55
|
}), void 0);
|
|
52
56
|
};
|
|
53
57
|
|
package/lib/button/index.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.default = exports.YellowButton = exports.RedButton = exports.GreenButton = void 0;
|
|
7
7
|
|
|
8
8
|
require("antd/es/button/style");
|
|
9
9
|
|
|
@@ -119,20 +119,18 @@ var IglooButton = function IglooButton(props) {
|
|
|
119
119
|
};
|
|
120
120
|
}();
|
|
121
121
|
|
|
122
|
-
return (0, _jsxRuntime.jsx)(_button.default,
|
|
122
|
+
return (0, _jsxRuntime.jsx)(_button.default, _objectSpread(_objectSpread({
|
|
123
123
|
className: "".concat(className, " igloo-button"),
|
|
124
124
|
onClick: handleClick
|
|
125
|
-
}, (0, _omit.default)(rest, _formMethods.default), {
|
|
125
|
+
}, (0, _omit.default)(rest, _formMethods.default)), {}, {
|
|
126
126
|
icon: loading ? (0, _jsxRuntime.jsx)(_iglooicon.LoadingOutlined, {
|
|
127
127
|
spinning: true
|
|
128
128
|
}, void 0) : icon,
|
|
129
|
-
disabled: loading || disabled
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
level: "h4"
|
|
133
|
-
}, {
|
|
129
|
+
disabled: loading || disabled,
|
|
130
|
+
children: children && (0, _jsxRuntime.jsx)(_typography.default, {
|
|
131
|
+
level: "h4",
|
|
134
132
|
children: children
|
|
135
|
-
}
|
|
133
|
+
}, void 0)
|
|
136
134
|
}), void 0);
|
|
137
135
|
};
|
|
138
136
|
|
|
@@ -153,15 +151,14 @@ var GreenButton = function GreenButton(_ref2) {
|
|
|
153
151
|
children = _ref2.children,
|
|
154
152
|
rest = _objectWithoutProperties(_ref2, _excluded2);
|
|
155
153
|
|
|
156
|
-
return (0, _jsxRuntime.jsx)(_button.default,
|
|
154
|
+
return (0, _jsxRuntime.jsx)(_button.default, _objectSpread(_objectSpread({
|
|
157
155
|
className: "".concat(className, " green "),
|
|
158
156
|
type: "primary"
|
|
159
|
-
}, rest, {
|
|
160
|
-
children: (0, _jsxRuntime.jsx)(_typography.default,
|
|
161
|
-
level: "h4"
|
|
162
|
-
}, {
|
|
157
|
+
}, rest), {}, {
|
|
158
|
+
children: (0, _jsxRuntime.jsx)(_typography.default, {
|
|
159
|
+
level: "h4",
|
|
163
160
|
children: children
|
|
164
|
-
}
|
|
161
|
+
}, void 0)
|
|
165
162
|
}), void 0);
|
|
166
163
|
};
|
|
167
164
|
|
|
@@ -173,15 +170,14 @@ var YellowButton = function YellowButton(_ref3) {
|
|
|
173
170
|
children = _ref3.children,
|
|
174
171
|
rest = _objectWithoutProperties(_ref3, _excluded3);
|
|
175
172
|
|
|
176
|
-
return (0, _jsxRuntime.jsx)(_button.default,
|
|
173
|
+
return (0, _jsxRuntime.jsx)(_button.default, _objectSpread(_objectSpread({
|
|
177
174
|
className: "".concat(className, " yellow "),
|
|
178
175
|
type: "primary"
|
|
179
|
-
}, rest, {
|
|
180
|
-
children: (0, _jsxRuntime.jsx)(_typography.default,
|
|
181
|
-
level: "h4"
|
|
182
|
-
}, {
|
|
176
|
+
}, rest), {}, {
|
|
177
|
+
children: (0, _jsxRuntime.jsx)(_typography.default, {
|
|
178
|
+
level: "h4",
|
|
183
179
|
children: children
|
|
184
|
-
}
|
|
180
|
+
}, void 0)
|
|
185
181
|
}), void 0);
|
|
186
182
|
};
|
|
187
183
|
|
|
@@ -193,15 +189,14 @@ var RedButton = function RedButton(_ref4) {
|
|
|
193
189
|
children = _ref4.children,
|
|
194
190
|
rest = _objectWithoutProperties(_ref4, _excluded4);
|
|
195
191
|
|
|
196
|
-
return (0, _jsxRuntime.jsx)(_button.default,
|
|
192
|
+
return (0, _jsxRuntime.jsx)(_button.default, _objectSpread(_objectSpread({
|
|
197
193
|
className: "".concat(className, " red "),
|
|
198
194
|
type: "primary"
|
|
199
|
-
}, rest, {
|
|
200
|
-
children: (0, _jsxRuntime.jsx)(_typography.default,
|
|
201
|
-
level: "h4"
|
|
202
|
-
}, {
|
|
195
|
+
}, rest), {}, {
|
|
196
|
+
children: (0, _jsxRuntime.jsx)(_typography.default, {
|
|
197
|
+
level: "h4",
|
|
203
198
|
children: children
|
|
204
|
-
}
|
|
199
|
+
}, void 0)
|
|
205
200
|
}), void 0);
|
|
206
201
|
};
|
|
207
202
|
|
|
@@ -33,41 +33,35 @@ var IglooCardGroup = function IglooCardGroup(props) {
|
|
|
33
33
|
subStatus = props.subStatus;
|
|
34
34
|
var className = props.className,
|
|
35
35
|
style = props.style;
|
|
36
|
-
var subTitle = (0, _jsxRuntime.jsxs)(_space.default,
|
|
36
|
+
var subTitle = (0, _jsxRuntime.jsxs)(_space.default, {
|
|
37
37
|
size: 8,
|
|
38
38
|
style: {
|
|
39
39
|
marginBottom: 16
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
level: "h4"
|
|
44
|
-
}, {
|
|
40
|
+
},
|
|
41
|
+
children: [(0, _jsxRuntime.jsx)(_typography.default, {
|
|
42
|
+
level: "h4",
|
|
45
43
|
children: subHeading
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
return subHeading || subStatus ? (0, _jsxRuntime.jsxs)(_row.default,
|
|
44
|
+
}, void 0), subStatus]
|
|
45
|
+
}, void 0);
|
|
46
|
+
return subHeading || subStatus ? (0, _jsxRuntime.jsxs)(_row.default, {
|
|
49
47
|
style: style,
|
|
50
|
-
className: (0, _classnames.default)('igloo-form-card-container-group-with-header', className)
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
span: 24
|
|
54
|
-
}, {
|
|
48
|
+
className: (0, _classnames.default)('igloo-form-card-container-group-with-header', className),
|
|
49
|
+
children: [(0, _jsxRuntime.jsx)(_col.default, {
|
|
50
|
+
span: 24,
|
|
55
51
|
children: (subHeading || subStatus) && subTitle
|
|
56
|
-
}
|
|
52
|
+
}, void 0), (0, _jsxRuntime.jsx)(_row.default, {
|
|
57
53
|
gutter: [32, 16],
|
|
58
54
|
style: {
|
|
59
55
|
width: '100%'
|
|
60
|
-
}
|
|
61
|
-
}, {
|
|
56
|
+
},
|
|
62
57
|
children: children
|
|
63
|
-
}
|
|
64
|
-
}
|
|
58
|
+
}, void 0)]
|
|
59
|
+
}, void 0) : (0, _jsxRuntime.jsx)(_row.default, {
|
|
65
60
|
gutter: [32, 16],
|
|
66
61
|
style: style,
|
|
67
|
-
className: (0, _classnames.default)('igloo-form-card-container-group', className)
|
|
68
|
-
}, {
|
|
62
|
+
className: (0, _classnames.default)('igloo-form-card-container-group', className),
|
|
69
63
|
children: children
|
|
70
|
-
}
|
|
64
|
+
}, void 0);
|
|
71
65
|
};
|
|
72
66
|
|
|
73
67
|
IglooCardGroup.displayName = 'IglooCardGroup';
|
|
@@ -35,18 +35,16 @@ var IglooCardItem = function IglooCardItem(props) {
|
|
|
35
35
|
return null;
|
|
36
36
|
|
|
37
37
|
case 'string':
|
|
38
|
-
return (0, _jsxRuntime.jsx)(_index2.default,
|
|
39
|
-
level: "body1"
|
|
40
|
-
}, {
|
|
38
|
+
return (0, _jsxRuntime.jsx)(_index2.default, {
|
|
39
|
+
level: "body1",
|
|
41
40
|
children: children
|
|
42
|
-
}
|
|
41
|
+
}, void 0);
|
|
43
42
|
|
|
44
43
|
case 'number':
|
|
45
|
-
return (0, _jsxRuntime.jsx)(_index2.default,
|
|
46
|
-
level: "body1"
|
|
47
|
-
}, {
|
|
44
|
+
return (0, _jsxRuntime.jsx)(_index2.default, {
|
|
45
|
+
level: "body1",
|
|
48
46
|
children: children
|
|
49
|
-
}
|
|
47
|
+
}, void 0);
|
|
50
48
|
|
|
51
49
|
case 'object':
|
|
52
50
|
return children;
|
|
@@ -56,20 +54,17 @@ var IglooCardItem = function IglooCardItem(props) {
|
|
|
56
54
|
}
|
|
57
55
|
}
|
|
58
56
|
|
|
59
|
-
return (0, _jsxRuntime.jsxs)(_col.default,
|
|
57
|
+
return (0, _jsxRuntime.jsxs)(_col.default, {
|
|
60
58
|
span: span || 4,
|
|
61
|
-
className: (0, _classnames.default)('igloofrom-card-detail-item', className)
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
children: (0, _jsxRuntime.jsx)(_index2.default, Object.assign({
|
|
67
|
-
level: "body1"
|
|
68
|
-
}, {
|
|
59
|
+
className: (0, _classnames.default)('igloofrom-card-detail-item', className),
|
|
60
|
+
children: [(0, _jsxRuntime.jsx)("div", {
|
|
61
|
+
className: "card-item-title",
|
|
62
|
+
children: (0, _jsxRuntime.jsx)(_index2.default, {
|
|
63
|
+
level: "body1",
|
|
69
64
|
children: title
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
}
|
|
65
|
+
}, void 0)
|
|
66
|
+
}, void 0), renderContent(children)]
|
|
67
|
+
}, void 0);
|
|
73
68
|
};
|
|
74
69
|
|
|
75
70
|
IglooCardItem.displayName = 'IglooCardItem';
|
|
@@ -39,29 +39,25 @@ var IglooCardPage = function IglooCardPage(props) {
|
|
|
39
39
|
children: button
|
|
40
40
|
}, index);
|
|
41
41
|
});
|
|
42
|
-
var titleContent = (0, _jsxRuntime.jsxs)(_space.default,
|
|
43
|
-
size: 8
|
|
44
|
-
}, {
|
|
42
|
+
var titleContent = (0, _jsxRuntime.jsxs)(_space.default, {
|
|
43
|
+
size: 8,
|
|
45
44
|
children: [(0, _jsxRuntime.jsx)("span", {
|
|
46
45
|
children: pageTitleIcon
|
|
47
|
-
}, void 0), (0, _jsxRuntime.jsx)(_typography.default,
|
|
48
|
-
level: "h3a"
|
|
49
|
-
}, {
|
|
46
|
+
}, void 0), (0, _jsxRuntime.jsx)(_typography.default, {
|
|
47
|
+
level: "h3a",
|
|
50
48
|
children: title
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
return (0, _jsxRuntime.jsx)(_card.default,
|
|
49
|
+
}, void 0), pageStatusIcon]
|
|
50
|
+
}, void 0);
|
|
51
|
+
return (0, _jsxRuntime.jsx)(_card.default, {
|
|
54
52
|
style: style,
|
|
55
53
|
className: (0, _classnames.default)('igloo-card-page', className),
|
|
56
54
|
title: titleContent,
|
|
57
|
-
extra: (0, _jsxRuntime.jsx)(_space.default,
|
|
58
|
-
size: 18
|
|
59
|
-
}, {
|
|
55
|
+
extra: (0, _jsxRuntime.jsx)(_space.default, {
|
|
56
|
+
size: 18,
|
|
60
57
|
children: extraButtonsWithKey
|
|
61
|
-
}
|
|
62
|
-
}, {
|
|
58
|
+
}, void 0),
|
|
63
59
|
children: (0, _utils.DealWithCardItem)(children, true)
|
|
64
|
-
}
|
|
60
|
+
}, void 0);
|
|
65
61
|
};
|
|
66
62
|
|
|
67
63
|
var _default = IglooCardPage;
|
package/lib/card-detail/card.js
CHANGED
|
@@ -27,6 +27,12 @@ var _excluded = ["title", "contentTitle", "contentStatus", "className"];
|
|
|
27
27
|
|
|
28
28
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
29
29
|
|
|
30
|
+
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; }
|
|
31
|
+
|
|
32
|
+
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; }
|
|
33
|
+
|
|
34
|
+
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; }
|
|
35
|
+
|
|
30
36
|
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; }
|
|
31
37
|
|
|
32
38
|
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; }
|
|
@@ -40,36 +46,30 @@ var IglooCard = function IglooCard(props) {
|
|
|
40
46
|
className = props.className,
|
|
41
47
|
rest = _objectWithoutProperties(props, _excluded);
|
|
42
48
|
|
|
43
|
-
var cardTitle = (0, _jsxRuntime.jsx)(_space.default,
|
|
44
|
-
size: 8
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
level: "h3b"
|
|
48
|
-
}, {
|
|
49
|
+
var cardTitle = (0, _jsxRuntime.jsx)(_space.default, {
|
|
50
|
+
size: 8,
|
|
51
|
+
children: (0, _jsxRuntime.jsx)(_typography.default, {
|
|
52
|
+
level: "h3b",
|
|
49
53
|
children: title
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
var contentTitleDom = (0, _jsxRuntime.jsxs)(_space.default,
|
|
53
|
-
size: 8
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
level: "h4"
|
|
57
|
-
}, {
|
|
54
|
+
}, void 0)
|
|
55
|
+
}, void 0);
|
|
56
|
+
var contentTitleDom = (0, _jsxRuntime.jsxs)(_space.default, {
|
|
57
|
+
size: 8,
|
|
58
|
+
children: [(0, _jsxRuntime.jsx)(_typography.default, {
|
|
59
|
+
level: "h4",
|
|
58
60
|
children: contentTitle
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
return (0, _jsxRuntime.jsx)(_card.default,
|
|
61
|
+
}, void 0), contentStatus]
|
|
62
|
+
}, void 0);
|
|
63
|
+
return (0, _jsxRuntime.jsx)(_card.default, _objectSpread(_objectSpread({
|
|
62
64
|
type: "inner",
|
|
63
65
|
title: cardTitle
|
|
64
|
-
}, rest, {
|
|
65
|
-
className: (0, _classnames.default)('igloo-form-card-container', className)
|
|
66
|
-
}, {
|
|
66
|
+
}, rest), {}, {
|
|
67
|
+
className: (0, _classnames.default)('igloo-form-card-container', className),
|
|
67
68
|
children: (0, _jsxRuntime.jsxs)("div", {
|
|
68
|
-
children: [contentTitle && (0, _jsxRuntime.jsx)("div",
|
|
69
|
-
className: "igloo-form-card-container-title"
|
|
70
|
-
}, {
|
|
69
|
+
children: [contentTitle && (0, _jsxRuntime.jsx)("div", {
|
|
70
|
+
className: "igloo-form-card-container-title",
|
|
71
71
|
children: contentTitleDom
|
|
72
|
-
}
|
|
72
|
+
}, void 0), (0, _utils.DealWithCardItem)(children, false)]
|
|
73
73
|
}, void 0)
|
|
74
74
|
}), void 0);
|
|
75
75
|
};
|
package/lib/card-detail/index.js
CHANGED
|
@@ -3,12 +3,6 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
Object.defineProperty(exports, "CardPage", {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: function get() {
|
|
9
|
-
return _cardPage.default;
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
6
|
Object.defineProperty(exports, "Card", {
|
|
13
7
|
enumerable: true,
|
|
14
8
|
get: function get() {
|
|
@@ -27,6 +21,12 @@ Object.defineProperty(exports, "CardItem", {
|
|
|
27
21
|
return _cardItem.default;
|
|
28
22
|
}
|
|
29
23
|
});
|
|
24
|
+
Object.defineProperty(exports, "CardPage", {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
get: function get() {
|
|
27
|
+
return _cardPage.default;
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
30
|
|
|
31
31
|
var _cardPage = _interopRequireDefault(require("./card-page"));
|
|
32
32
|
|
package/lib/card-detail/utils.js
CHANGED
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
+
exports.DealWithCardItem = DealWithCardItem;
|
|
6
7
|
exports.findCardItem = findCardItem;
|
|
7
8
|
exports.wrapCardItem = wrapCardItem;
|
|
8
|
-
exports.DealWithCardItem = DealWithCardItem;
|
|
9
9
|
|
|
10
10
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
11
|
|
|
@@ -72,13 +72,12 @@ function wrapCardItem() {
|
|
|
72
72
|
if (Array.isArray(item)) {
|
|
73
73
|
if (!item.length) return null;
|
|
74
74
|
var padding = hasCustomizeWrap ? "24px 24px 32px 24px" : "".concat(index ? 24 : 0, "px 0px 24px 0px");
|
|
75
|
-
return item[0].type.displayName === 'IglooCardItem' ? (0, _jsxRuntime.jsx)(_cardGroup.default,
|
|
75
|
+
return item[0].type.displayName === 'IglooCardItem' ? (0, _jsxRuntime.jsx)(_cardGroup.default, {
|
|
76
76
|
style: {
|
|
77
77
|
padding: padding
|
|
78
|
-
}
|
|
79
|
-
}, {
|
|
78
|
+
},
|
|
80
79
|
children: item
|
|
81
|
-
}
|
|
80
|
+
}, index) : item;
|
|
82
81
|
} // 对齐样式
|
|
83
82
|
|
|
84
83
|
|
package/lib/checkbox/index.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.default = exports.CheckboxGroup = void 0;
|
|
7
7
|
|
|
8
8
|
require("antd/es/col/style");
|
|
9
9
|
|
|
@@ -38,8 +38,14 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
|
38
38
|
|
|
39
39
|
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; }
|
|
40
40
|
|
|
41
|
+
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; }
|
|
42
|
+
|
|
43
|
+
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; }
|
|
44
|
+
|
|
45
|
+
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; }
|
|
46
|
+
|
|
41
47
|
var IglooCheckbox = function IglooCheckbox(props) {
|
|
42
|
-
return (0, _jsxRuntime.jsx)(_checkbox.default,
|
|
48
|
+
return (0, _jsxRuntime.jsx)(_checkbox.default, _objectSpread({}, (0, _omit.default)(props, _formMethods.default)), void 0);
|
|
43
49
|
};
|
|
44
50
|
|
|
45
51
|
IglooCheckbox.formItemPropsHandler = function (config) {
|
|
@@ -61,39 +67,34 @@ var CheckboxGroup = function CheckboxGroup(_ref) {
|
|
|
61
67
|
value = _ref.value,
|
|
62
68
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
63
69
|
|
|
64
|
-
return (0, _jsxRuntime.jsx)(_checkbox.default.Group,
|
|
70
|
+
return (0, _jsxRuntime.jsx)(_checkbox.default.Group, _objectSpread(_objectSpread({}, (0, _omit.default)(rest, _formMethods.default)), {}, {
|
|
65
71
|
className: (0, _classnames.default)('igloo-checkbox-group', className),
|
|
66
|
-
value: value
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
gutter: [8, 8]
|
|
70
|
-
}, {
|
|
72
|
+
value: value,
|
|
73
|
+
children: (0, _jsxRuntime.jsx)(_row.default, {
|
|
74
|
+
gutter: [8, 8],
|
|
71
75
|
children: options.map(function (_ref2) {
|
|
72
76
|
var label = _ref2.label,
|
|
73
77
|
key = _ref2.value,
|
|
74
78
|
extraInfo = _ref2.extraInfo,
|
|
75
79
|
rest = _objectWithoutProperties(_ref2, _excluded2);
|
|
76
80
|
|
|
77
|
-
return (0, _jsxRuntime.jsxs)(_col.default,
|
|
81
|
+
return (0, _jsxRuntime.jsxs)(_col.default, {
|
|
78
82
|
span: 24,
|
|
79
|
-
className: 'igloo-checkbox-group-normal'
|
|
80
|
-
|
|
81
|
-
children: [(0, _jsxRuntime.jsx)(_checkbox.default, Object.assign({
|
|
83
|
+
className: 'igloo-checkbox-group-normal',
|
|
84
|
+
children: [(0, _jsxRuntime.jsx)(_checkbox.default, _objectSpread(_objectSpread({
|
|
82
85
|
value: key
|
|
83
|
-
}, rest, {
|
|
84
|
-
children: (0, _jsxRuntime.jsx)(_typography.default,
|
|
85
|
-
level: "body1"
|
|
86
|
-
}, {
|
|
86
|
+
}, rest), {}, {
|
|
87
|
+
children: (0, _jsxRuntime.jsx)(_typography.default, {
|
|
88
|
+
level: "body1",
|
|
87
89
|
children: label
|
|
88
|
-
}
|
|
89
|
-
}), void 0), (0, _jsxRuntime.jsx)("div",
|
|
90
|
-
className: "igloo-checkbox-extra"
|
|
91
|
-
}, {
|
|
90
|
+
}, void 0)
|
|
91
|
+
}), void 0), (0, _jsxRuntime.jsx)("div", {
|
|
92
|
+
className: "igloo-checkbox-extra",
|
|
92
93
|
children: extraInfo && (extraInfo.shownTrigger === 'all' || extraInfo.shownTrigger === 'checked' && value === key || extraInfo.shownTrigger === 'unchecked' && value !== key) && extraInfo.content
|
|
93
|
-
}
|
|
94
|
-
}
|
|
94
|
+
}, void 0)]
|
|
95
|
+
}, key);
|
|
95
96
|
})
|
|
96
|
-
}
|
|
97
|
+
}, void 0)
|
|
97
98
|
}), void 0);
|
|
98
99
|
};
|
|
99
100
|
|