iglooform 2.4.23 → 2.4.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/admin-upload/float.js +14 -14
- package/es/admin-upload/index.js +13 -13
- package/es/admin-upload/job-list.js +49 -49
- package/es/admin-upload/modal.js +10 -10
- package/es/alert-message/index.js +9 -9
- package/es/amount/index.js +4 -4
- package/es/back-top/index.js +6 -6
- package/es/button/index.js +11 -11
- package/es/card-detail/card-group.js +6 -6
- package/es/card-detail/card-item.js +6 -6
- package/es/card-detail/card-page.js +5 -5
- package/es/card-detail/card.js +9 -9
- package/es/card-detail/utils.js +3 -3
- package/es/checkbox/index.js +8 -8
- package/es/claim-list/index.js +21 -21
- package/es/confirmation/index.js +4 -4
- package/es/date-picker/buddhist.js +4 -4
- package/es/date-picker/index.js +11 -11
- package/es/declaration/index.js +7 -7
- package/es/detail-panel/index.js +28 -28
- package/es/documents/index.js +2 -2
- package/es/example/index.js +7 -7
- package/es/filter/checkBox.js +10 -10
- package/es/filter/customize.js +1 -1
- package/es/filter/index.js +46 -46
- package/es/filter/radioBox.js +7 -7
- package/es/filter/rangePicker.js +23 -23
- package/es/filter/style/index.less +10 -2
- package/es/form/addable-section/index.js +35 -20
- package/es/form/addable-section/style/index.less +6 -10
- package/es/form/divider/index.js +3 -3
- package/es/form/element/index.js +20 -20
- package/es/form/elements.js +5 -2
- package/es/form/index.js +9 -9
- package/es/form/login/index.js +6 -6
- package/es/form/page/index.js +8 -8
- package/es/form/pages/index.js +10 -10
- package/es/form/render/index.js +1 -1
- package/es/form/section/index.js +6 -6
- package/es/form/step/index.js +17 -16
- package/es/form/steps/index.js +2 -2
- package/es/free-form/addable-section/index.js +32 -17
- package/es/free-form/addable-section/style/index.less +0 -4
- package/es/free-form/element/index.js +13 -13
- package/es/free-form/index.js +5 -5
- package/es/free-form/page/index.js +17 -17
- package/es/free-form/pages/index.js +4 -4
- package/es/free-form/section/index.js +7 -7
- package/es/free-form/step/index.d.ts +1 -0
- package/es/free-form/step/index.js +20 -19
- package/es/free-form/steps/index.js +4 -4
- package/es/global-message/index.js +13 -13
- package/es/home-menu/index.js +18 -18
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/input/amount.js +4 -4
- package/es/input/credit-card.js +6 -6
- package/es/input/email.js +3 -3
- package/es/input/expiry-date.js +5 -5
- package/es/input/input-date.js +3 -3
- package/es/input/input-number.js +5 -5
- package/es/input/input.js +3 -3
- package/es/input/otp.js +8 -8
- package/es/input/password.js +6 -6
- package/es/input/phone-number.js +4 -4
- package/es/input/text-area.js +6 -6
- package/es/layout/defaultFooter.js +28 -28
- package/es/layout/defaultHeader.js +6 -6
- package/es/layout/footer.js +66 -66
- package/es/layout/header.js +28 -28
- package/es/layout/index.js +6 -6
- package/es/locale/en-US/messages.json +1 -0
- package/es/locale/id-ID/messages.json +1 -0
- package/es/locale/locale-provider.js +4 -4
- package/es/locale/th-TH/messages.json +1 -0
- package/es/locale/vi-VN/messages.json +1 -0
- package/es/locale/zh-CN/messages.json +1 -0
- package/es/login-page/index.js +16 -16
- package/es/media/index.js +15 -15
- package/es/media/media.js +8 -8
- package/es/media/preview.js +8 -8
- package/es/mobile-insurer-detail/index.js +20 -20
- package/es/mobile-insurer-list/index.js +13 -13
- package/es/modal/index.js +10 -10
- package/es/platform/platform-card/index.d.ts +4 -1
- package/es/platform/platform-card/index.js +9 -7
- package/es/platform/switch-platform/index.d.ts +4 -1
- package/es/platform/switch-platform/index.js +47 -16
- package/es/policy-list/index.js +6 -6
- package/es/policy-list/policy-card.js +34 -34
- package/es/radio/index.d.ts +2 -1
- package/es/radio/index.js +15 -14
- package/es/radio/radio-group-with-other.d.ts +6 -0
- package/es/radio/radio-group-with-other.js +85 -0
- package/es/select/attached-select.js +19 -22
- package/es/select/select.js +8 -11
- package/es/select/time-select.js +20 -20
- package/es/status-box/index.js +4 -4
- package/es/table/index.js +36 -36
- package/es/tabs/index.js +3 -3
- package/es/typography/index.js +10 -3
- package/es/upload/index.js +31 -31
- package/es/upload-photo/index.js +31 -31
- package/es/upload-photo/media.js +4 -4
- package/es/upload-preview/index.js +10 -10
- package/es/upload-preview/media.js +8 -8
- package/es/utils/form-utils.d.ts +1 -1
- package/es/utils/form-utils.js +13 -13
- package/lib/admin-upload/float.js +14 -14
- package/lib/admin-upload/index.js +13 -13
- package/lib/admin-upload/job-list.js +49 -49
- package/lib/admin-upload/modal.js +10 -10
- package/lib/alert-message/index.js +9 -9
- package/lib/amount/index.js +4 -4
- package/lib/back-top/index.js +6 -6
- package/lib/button/index.js +11 -11
- package/lib/card-detail/card-group.js +6 -6
- package/lib/card-detail/card-item.js +6 -6
- package/lib/card-detail/card-page.js +5 -5
- package/lib/card-detail/card.js +9 -9
- package/lib/card-detail/utils.js +3 -3
- package/lib/checkbox/index.js +8 -8
- package/lib/claim-list/index.js +21 -21
- package/lib/confirmation/index.js +4 -4
- package/lib/date-picker/buddhist.js +4 -4
- package/lib/date-picker/index.js +11 -11
- package/lib/declaration/index.js +7 -7
- package/lib/detail-panel/index.js +28 -28
- package/lib/documents/index.js +2 -2
- package/lib/example/index.js +8 -8
- package/lib/filter/checkBox.js +10 -10
- package/lib/filter/customize.js +1 -1
- package/lib/filter/index.js +46 -46
- package/lib/filter/radioBox.js +7 -7
- package/lib/filter/rangePicker.js +23 -23
- package/lib/filter/style/index.less +10 -2
- package/lib/form/addable-section/index.js +39 -19
- package/lib/form/addable-section/style/index.less +6 -10
- package/lib/form/divider/index.js +3 -3
- package/lib/form/element/index.js +20 -20
- package/lib/form/elements.js +6 -2
- package/lib/form/index.js +9 -9
- package/lib/form/login/index.js +6 -6
- package/lib/form/page/index.js +8 -8
- package/lib/form/pages/index.js +10 -10
- package/lib/form/render/index.js +1 -1
- package/lib/form/section/index.js +6 -6
- package/lib/form/step/index.js +17 -16
- package/lib/form/steps/index.js +2 -2
- package/lib/free-form/addable-section/index.js +36 -16
- package/lib/free-form/addable-section/style/index.less +0 -4
- package/lib/free-form/element/index.js +13 -13
- package/lib/free-form/index.js +5 -5
- package/lib/free-form/page/index.js +17 -17
- package/lib/free-form/pages/index.js +4 -4
- package/lib/free-form/section/index.js +7 -7
- package/lib/free-form/step/index.d.ts +1 -0
- package/lib/free-form/step/index.js +20 -19
- package/lib/free-form/steps/index.js +5 -5
- package/lib/global-message/index.js +13 -13
- package/lib/home-menu/index.js +18 -18
- package/lib/index.d.ts +1 -1
- package/lib/index.js +8 -1
- package/lib/input/amount.js +4 -4
- package/lib/input/credit-card.js +6 -6
- package/lib/input/email.js +3 -3
- package/lib/input/expiry-date.js +5 -5
- package/lib/input/input-date.js +3 -3
- package/lib/input/input-number.js +5 -5
- package/lib/input/input.js +3 -3
- package/lib/input/otp.js +8 -8
- package/lib/input/password.js +6 -6
- package/lib/input/phone-number.js +4 -4
- package/lib/input/text-area.js +6 -6
- package/lib/layout/defaultFooter.js +28 -28
- package/lib/layout/defaultHeader.js +6 -6
- package/lib/layout/footer.js +66 -66
- package/lib/layout/header.js +28 -28
- package/lib/layout/index.js +6 -6
- package/lib/locale/en-US/messages.json +1 -0
- package/lib/locale/id-ID/messages.json +1 -0
- package/lib/locale/locale-provider.js +4 -4
- package/lib/locale/th-TH/messages.json +1 -0
- package/lib/locale/vi-VN/messages.json +1 -0
- package/lib/locale/zh-CN/messages.json +1 -0
- package/lib/login-page/index.js +16 -16
- package/lib/media/index.js +15 -15
- package/lib/media/media.js +8 -8
- package/lib/media/preview.js +8 -8
- package/lib/mobile-insurer-detail/index.js +20 -20
- package/lib/mobile-insurer-list/index.js +13 -13
- package/lib/modal/index.js +10 -10
- package/lib/platform/platform-card/index.d.ts +4 -1
- package/lib/platform/platform-card/index.js +9 -7
- package/lib/platform/switch-platform/index.d.ts +4 -1
- package/lib/platform/switch-platform/index.js +46 -15
- package/lib/policy-list/index.js +6 -6
- package/lib/policy-list/policy-card.js +34 -34
- package/lib/radio/index.d.ts +2 -1
- package/lib/radio/index.js +23 -14
- package/lib/radio/radio-group-with-other.d.ts +6 -0
- package/lib/radio/radio-group-with-other.js +98 -0
- package/lib/select/attached-select.js +18 -21
- package/lib/select/select.js +7 -10
- package/lib/select/time-select.js +20 -20
- package/lib/status-box/index.js +4 -4
- package/lib/table/index.js +36 -36
- package/lib/tabs/index.js +3 -3
- package/lib/typography/index.js +10 -3
- package/lib/upload/index.js +31 -31
- package/lib/upload-photo/index.js +31 -31
- package/lib/upload-photo/media.js +4 -4
- package/lib/upload-preview/index.js +10 -10
- package/lib/upload-preview/media.js +8 -8
- package/lib/utils/form-utils.d.ts +1 -1
- package/lib/utils/form-utils.js +12 -12
- package/package.json +1 -1
|
@@ -5,9 +5,9 @@ import _Row from "antd/es/row";
|
|
|
5
5
|
import "antd/es/collapse/style";
|
|
6
6
|
import _Collapse from "antd/es/collapse";
|
|
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
|
|
|
@@ -112,23 +112,23 @@ var PolicyCard = function PolicyCard(props) {
|
|
|
112
112
|
className: classnames({
|
|
113
113
|
'hide-icon': !extend
|
|
114
114
|
})
|
|
115
|
-
}
|
|
115
|
+
}), _jsx(ArrowDownOutlined, {
|
|
116
116
|
className: classnames({
|
|
117
117
|
'hide-icon': extend
|
|
118
118
|
})
|
|
119
|
-
}
|
|
120
|
-
}
|
|
119
|
+
})]
|
|
120
|
+
}), _jsx("div", {
|
|
121
121
|
className: "left-logo-container",
|
|
122
122
|
children: insurerLogo
|
|
123
|
-
}
|
|
123
|
+
}), _jsxs(Typography, {
|
|
124
124
|
level: "h4",
|
|
125
125
|
className: "left-title-container",
|
|
126
126
|
children: [insurerName, " ", insurerType]
|
|
127
|
-
}
|
|
127
|
+
}), _jsx("div", {
|
|
128
128
|
className: "left-status",
|
|
129
|
-
children: _jsx(StatusBox, _objectSpread({}, statusProps)
|
|
130
|
-
}
|
|
131
|
-
}
|
|
129
|
+
children: _jsx(StatusBox, _objectSpread({}, statusProps))
|
|
130
|
+
})]
|
|
131
|
+
}), buttons && buttons.map(function (item, index) {
|
|
132
132
|
return item.render ? item.render() : _jsx(Button, {
|
|
133
133
|
icon: item.icon,
|
|
134
134
|
onClick: function onClick(e) {
|
|
@@ -142,13 +142,13 @@ var PolicyCard = function PolicyCard(props) {
|
|
|
142
142
|
children: _jsx(Typography, {
|
|
143
143
|
level: "h4",
|
|
144
144
|
children: item.label
|
|
145
|
-
}
|
|
145
|
+
})
|
|
146
146
|
}, String(item) + index);
|
|
147
147
|
})]
|
|
148
|
-
}
|
|
148
|
+
}), messageBar && _jsx("div", {
|
|
149
149
|
className: "message-container",
|
|
150
|
-
children: _jsx(AlertMessage, _objectSpread({}, messageBar)
|
|
151
|
-
}
|
|
150
|
+
children: _jsx(AlertMessage, _objectSpread({}, messageBar))
|
|
151
|
+
}), defaultItems && _jsx("div", {
|
|
152
152
|
className: "container-bottom",
|
|
153
153
|
children: _jsx(_Row, {
|
|
154
154
|
gutter: [24, 32],
|
|
@@ -172,8 +172,8 @@ var PolicyCard = function PolicyCard(props) {
|
|
|
172
172
|
children: _jsx(Typography, {
|
|
173
173
|
level: "body1",
|
|
174
174
|
children: title
|
|
175
|
-
}
|
|
176
|
-
}
|
|
175
|
+
})
|
|
176
|
+
}), textArr.map(function (textItem, index) {
|
|
177
177
|
var text = textItem.text,
|
|
178
178
|
link = textItem.link;
|
|
179
179
|
|
|
@@ -183,7 +183,7 @@ var PolicyCard = function PolicyCard(props) {
|
|
|
183
183
|
children: _jsx(Typography, {
|
|
184
184
|
level: "body1",
|
|
185
185
|
children: textItem
|
|
186
|
-
}
|
|
186
|
+
})
|
|
187
187
|
}, index);
|
|
188
188
|
} // 处理link (一个or多个,换行or不换行)
|
|
189
189
|
|
|
@@ -198,13 +198,13 @@ var PolicyCard = function PolicyCard(props) {
|
|
|
198
198
|
children: [_jsx(Typography, {
|
|
199
199
|
level: "body1",
|
|
200
200
|
children: text
|
|
201
|
-
}
|
|
201
|
+
}), _jsx(Button, {
|
|
202
202
|
onClick: onClick ? function () {
|
|
203
203
|
return onClick(props);
|
|
204
204
|
} : function () {},
|
|
205
205
|
type: "link",
|
|
206
206
|
children: link.linkText
|
|
207
|
-
}
|
|
207
|
+
})]
|
|
208
208
|
}, index);
|
|
209
209
|
}
|
|
210
210
|
|
|
@@ -213,7 +213,7 @@ var PolicyCard = function PolicyCard(props) {
|
|
|
213
213
|
children: [_jsx(Typography, {
|
|
214
214
|
level: "body1",
|
|
215
215
|
children: text
|
|
216
|
-
}
|
|
216
|
+
}), linkArr.map(function (linkObj, index) {
|
|
217
217
|
var onClick = linkObj.onClick;
|
|
218
218
|
return _jsx("div", {
|
|
219
219
|
style: {
|
|
@@ -225,15 +225,15 @@ var PolicyCard = function PolicyCard(props) {
|
|
|
225
225
|
} : function () {},
|
|
226
226
|
type: "link",
|
|
227
227
|
children: linkObj.linkText
|
|
228
|
-
}
|
|
228
|
+
})
|
|
229
229
|
}, index);
|
|
230
230
|
})]
|
|
231
231
|
}, index);
|
|
232
232
|
})]
|
|
233
233
|
}, index);
|
|
234
234
|
})
|
|
235
|
-
}
|
|
236
|
-
}
|
|
235
|
+
})
|
|
236
|
+
}), _jsx(_Collapse, {
|
|
237
237
|
className: "igloo-policy-collapse-container",
|
|
238
238
|
activeKey: extend ? allActiveKeys : [],
|
|
239
239
|
children: infoGroups.map(function (group, index) {
|
|
@@ -247,7 +247,7 @@ var PolicyCard = function PolicyCard(props) {
|
|
|
247
247
|
level: "h4",
|
|
248
248
|
className: "panel-group-section-name",
|
|
249
249
|
children: sectionName
|
|
250
|
-
}
|
|
250
|
+
}), _jsx(_Row, {
|
|
251
251
|
gutter: [24, 16],
|
|
252
252
|
children: infoItems.map(function (item, index) {
|
|
253
253
|
var _item$span = item.span,
|
|
@@ -268,8 +268,8 @@ var PolicyCard = function PolicyCard(props) {
|
|
|
268
268
|
children: _jsx(Typography, {
|
|
269
269
|
level: "body1",
|
|
270
270
|
children: title
|
|
271
|
-
}
|
|
272
|
-
}
|
|
271
|
+
})
|
|
272
|
+
}), textArr.map(function (textItem, index) {
|
|
273
273
|
var text = textItem.text,
|
|
274
274
|
link = textItem.link;
|
|
275
275
|
|
|
@@ -279,7 +279,7 @@ var PolicyCard = function PolicyCard(props) {
|
|
|
279
279
|
children: _jsx(Typography, {
|
|
280
280
|
level: "body1",
|
|
281
281
|
children: textItem
|
|
282
|
-
}
|
|
282
|
+
})
|
|
283
283
|
}, index);
|
|
284
284
|
} // 处理link (一个or多个,换行or不换行)
|
|
285
285
|
|
|
@@ -294,13 +294,13 @@ var PolicyCard = function PolicyCard(props) {
|
|
|
294
294
|
children: [_jsx(Typography, {
|
|
295
295
|
level: "body1",
|
|
296
296
|
children: text
|
|
297
|
-
}
|
|
297
|
+
}), _jsx(Button, {
|
|
298
298
|
onClick: onClick ? function () {
|
|
299
299
|
return onClick(props);
|
|
300
300
|
} : function () {},
|
|
301
301
|
type: "link",
|
|
302
302
|
children: link.linkText
|
|
303
|
-
}
|
|
303
|
+
})]
|
|
304
304
|
}, index);
|
|
305
305
|
}
|
|
306
306
|
|
|
@@ -309,7 +309,7 @@ var PolicyCard = function PolicyCard(props) {
|
|
|
309
309
|
children: [_jsx(Typography, {
|
|
310
310
|
level: "body1",
|
|
311
311
|
children: text
|
|
312
|
-
}
|
|
312
|
+
}), linkArr.map(function (linkObj, index) {
|
|
313
313
|
var onClick = linkObj.onClick;
|
|
314
314
|
return _jsx("div", {
|
|
315
315
|
style: {
|
|
@@ -321,18 +321,18 @@ var PolicyCard = function PolicyCard(props) {
|
|
|
321
321
|
} : function () {},
|
|
322
322
|
type: "link",
|
|
323
323
|
children: linkObj.linkText
|
|
324
|
-
}
|
|
324
|
+
})
|
|
325
325
|
}, index);
|
|
326
326
|
})]
|
|
327
327
|
}, index);
|
|
328
328
|
})]
|
|
329
329
|
}, index);
|
|
330
330
|
})
|
|
331
|
-
}
|
|
331
|
+
})]
|
|
332
332
|
}, index);
|
|
333
333
|
})
|
|
334
|
-
}
|
|
335
|
-
}
|
|
334
|
+
})]
|
|
335
|
+
});
|
|
336
336
|
};
|
|
337
337
|
|
|
338
338
|
export default PolicyCard;
|
package/es/radio/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import './style/index.less';
|
|
|
4
4
|
import { FormInstance } from 'antd/es/form';
|
|
5
5
|
declare type Props = RadioProps & IglooComponentProps;
|
|
6
6
|
declare const IglooRadio: FC<Props>;
|
|
7
|
-
interface Option extends RadioProps {
|
|
7
|
+
export interface Option extends RadioProps {
|
|
8
8
|
extraInfo?: {
|
|
9
9
|
content: any;
|
|
10
10
|
shownTrigger: 'unchecked' | 'checked' | 'all';
|
|
@@ -19,3 +19,4 @@ export interface IProps extends IglooComponentProps, Omit<RadioGroupProps, 'opti
|
|
|
19
19
|
}
|
|
20
20
|
export declare const RadioGroup: FC<IProps>;
|
|
21
21
|
export default IglooRadio;
|
|
22
|
+
export { default as RadioGroupWithOther } from './radio-group-with-other';
|
package/es/radio/index.js
CHANGED
|
@@ -11,9 +11,9 @@ 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);
|
|
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
15
|
|
|
16
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
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
17
|
|
|
18
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
19
|
|
|
@@ -26,7 +26,7 @@ import './style/index.less';
|
|
|
26
26
|
import Typography from '../typography';
|
|
27
27
|
|
|
28
28
|
var IglooRadio = function IglooRadio(props) {
|
|
29
|
-
return _jsx(_Radio, _objectSpread({}, omit(props, formMethods))
|
|
29
|
+
return _jsx(_Radio, _objectSpread({}, omit(props, formMethods)));
|
|
30
30
|
};
|
|
31
31
|
|
|
32
32
|
IglooRadio.formItemPropsHandler = function () {
|
|
@@ -81,11 +81,11 @@ export var RadioGroup = function RadioGroup(_ref) {
|
|
|
81
81
|
children: _jsx(Typography, {
|
|
82
82
|
level: "body1",
|
|
83
83
|
children: label
|
|
84
|
-
}
|
|
85
|
-
})
|
|
84
|
+
})
|
|
85
|
+
})), _jsx("div", {
|
|
86
86
|
className: "igloo-radio-extra",
|
|
87
87
|
children: extraInfo && (extraInfo.shownTrigger === 'all' || extraInfo.shownTrigger === 'checked' && value === key || extraInfo.shownTrigger === 'unchecked' && value !== key) && extraInfo.content
|
|
88
|
-
}
|
|
88
|
+
})]
|
|
89
89
|
}, key) : _jsx(_Col, {
|
|
90
90
|
span: 12,
|
|
91
91
|
className: 'igloo-radio-group-button',
|
|
@@ -99,21 +99,22 @@ export var RadioGroup = function RadioGroup(_ref) {
|
|
|
99
99
|
children: _jsx(Typography, {
|
|
100
100
|
level: "body1",
|
|
101
101
|
children: label
|
|
102
|
-
}
|
|
103
|
-
}
|
|
102
|
+
})
|
|
103
|
+
}), _jsx(_Radio, {
|
|
104
104
|
value: key,
|
|
105
105
|
className: 'igloo-radio-inner-radio'
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
})
|
|
106
|
+
})]
|
|
107
|
+
})
|
|
108
|
+
}))
|
|
109
109
|
}, key);
|
|
110
110
|
})
|
|
111
|
-
}
|
|
112
|
-
})
|
|
111
|
+
})
|
|
112
|
+
}));
|
|
113
113
|
};
|
|
114
114
|
|
|
115
115
|
RadioGroup.formItemPropsHandler = function () {
|
|
116
116
|
return {};
|
|
117
117
|
};
|
|
118
118
|
|
|
119
|
-
export default IglooRadio;
|
|
119
|
+
export default IglooRadio;
|
|
120
|
+
export { default as RadioGroupWithOther } from './radio-group-with-other';
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
var _excluded = ["value", "onChange", "options", "otherOptionLabel"];
|
|
2
|
+
|
|
3
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
4
|
+
|
|
5
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
6
|
+
|
|
7
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
8
|
+
|
|
9
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
10
|
+
|
|
11
|
+
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; }
|
|
12
|
+
|
|
13
|
+
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; }
|
|
14
|
+
|
|
15
|
+
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; }
|
|
16
|
+
|
|
17
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
18
|
+
|
|
19
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
20
|
+
|
|
21
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
22
|
+
|
|
23
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
24
|
+
|
|
25
|
+
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
26
|
+
|
|
27
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
28
|
+
|
|
29
|
+
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; }
|
|
30
|
+
|
|
31
|
+
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
|
+
|
|
33
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
34
|
+
import { useContext, useState } from 'react';
|
|
35
|
+
import { RadioGroup } from './index';
|
|
36
|
+
import { TextArea } from '../input';
|
|
37
|
+
import { LocaleContext } from '../locale';
|
|
38
|
+
var otherKey = 'iglooRadioGroupOther';
|
|
39
|
+
|
|
40
|
+
var RadioGroupWithOther = function RadioGroupWithOther(_ref) {
|
|
41
|
+
var value = _ref.value,
|
|
42
|
+
onChange = _ref.onChange,
|
|
43
|
+
options = _ref.options,
|
|
44
|
+
otherOptionLabel = _ref.otherOptionLabel,
|
|
45
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
46
|
+
|
|
47
|
+
var _useState = useState(false),
|
|
48
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
49
|
+
otherEnabled = _useState2[0],
|
|
50
|
+
enableOther = _useState2[1];
|
|
51
|
+
|
|
52
|
+
var handleChange = function handleChange(e) {
|
|
53
|
+
onChange && onChange(e);
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
var handleRadioChange = function handleRadioChange(e) {
|
|
57
|
+
enableOther(e.target.value === otherKey);
|
|
58
|
+
onChange && onChange(e);
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
var _useContext = useContext(LocaleContext),
|
|
62
|
+
formatMessage = _useContext.formatMessage;
|
|
63
|
+
|
|
64
|
+
return _jsx("div", {
|
|
65
|
+
className: "igloo-reason-selector",
|
|
66
|
+
children: _jsx(RadioGroup, _objectSpread({
|
|
67
|
+
value: otherEnabled ? otherKey : value,
|
|
68
|
+
onChange: handleRadioChange,
|
|
69
|
+
options: [].concat(_toConsumableArray(options), [{
|
|
70
|
+
label: otherOptionLabel || formatMessage({
|
|
71
|
+
id: 'Other Reason'
|
|
72
|
+
}),
|
|
73
|
+
value: otherKey,
|
|
74
|
+
extraInfo: {
|
|
75
|
+
content: _jsx(TextArea, {
|
|
76
|
+
onChange: handleChange
|
|
77
|
+
}),
|
|
78
|
+
shownTrigger: 'checked'
|
|
79
|
+
}
|
|
80
|
+
}])
|
|
81
|
+
}, rest))
|
|
82
|
+
});
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
export default RadioGroupWithOther;
|
|
@@ -2,9 +2,9 @@ import "antd/es/select/style";
|
|
|
2
2
|
import _Select from "antd/es/select";
|
|
3
3
|
var _excluded = ["options", "getOptions", "value", "className", "placeholder", "onDropdownVisibleChange", "children", "showSearch", "filterOption", "optionFilterProp", "multiple", "clearWhenOptionsUpdated"];
|
|
4
4
|
|
|
5
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
5
|
+
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; }
|
|
6
6
|
|
|
7
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
7
|
+
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; }
|
|
8
8
|
|
|
9
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
10
|
|
|
@@ -32,7 +32,7 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
|
32
32
|
|
|
33
33
|
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; }
|
|
34
34
|
|
|
35
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
35
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
36
36
|
import { useEffect, useState, useContext } from 'react';
|
|
37
37
|
import omit from 'omit.js';
|
|
38
38
|
import formMethods from '../utils/form-methods';
|
|
@@ -223,10 +223,7 @@ var IglooSelect = function IglooSelect(_ref) {
|
|
|
223
223
|
}
|
|
224
224
|
}, omit(rest, formMethods)), {}, {
|
|
225
225
|
value: selected,
|
|
226
|
-
suffixIcon: _jsxs(
|
|
227
|
-
style: {
|
|
228
|
-
position: 'relative'
|
|
229
|
-
},
|
|
226
|
+
suffixIcon: _jsxs(_Fragment, {
|
|
230
227
|
children: [_jsx(ArrowDownOutlined, {
|
|
231
228
|
className: classnames({
|
|
232
229
|
'igloo-select-arrow': true,
|
|
@@ -235,7 +232,7 @@ var IglooSelect = function IglooSelect(_ref) {
|
|
|
235
232
|
style: {
|
|
236
233
|
opacity: dropVisible ? 0 : 1
|
|
237
234
|
}
|
|
238
|
-
}
|
|
235
|
+
}), _jsx(ArrowUpOutlined, {
|
|
239
236
|
className: classnames({
|
|
240
237
|
'igloo-select-arrow': true,
|
|
241
238
|
'igloo-select-arrow-active': dropVisible
|
|
@@ -243,8 +240,8 @@ var IglooSelect = function IglooSelect(_ref) {
|
|
|
243
240
|
style: {
|
|
244
241
|
opacity: dropVisible ? 1 : 0
|
|
245
242
|
}
|
|
246
|
-
}
|
|
247
|
-
}
|
|
243
|
+
})]
|
|
244
|
+
}),
|
|
248
245
|
className: classnames('igloo-attached-select', {
|
|
249
246
|
'igloo-attached-select-open-status': dropVisible
|
|
250
247
|
}),
|
|
@@ -274,12 +271,12 @@ var IglooSelect = function IglooSelect(_ref) {
|
|
|
274
271
|
style: {
|
|
275
272
|
fontSize: 24
|
|
276
273
|
}
|
|
277
|
-
}
|
|
274
|
+
}),
|
|
278
275
|
onKeyDown: function onKeyDown(e) {
|
|
279
276
|
return e.stopPropagation();
|
|
280
277
|
}
|
|
281
|
-
}
|
|
282
|
-
}
|
|
278
|
+
})
|
|
279
|
+
}), _jsxs("div", {
|
|
283
280
|
className: "igloo-attached-select-multiple-dropdown-buttons",
|
|
284
281
|
children: [_jsx(Button, {
|
|
285
282
|
type: "link",
|
|
@@ -291,7 +288,7 @@ var IglooSelect = function IglooSelect(_ref) {
|
|
|
291
288
|
children: formatMessage({
|
|
292
289
|
id: 'Select All'
|
|
293
290
|
})
|
|
294
|
-
}
|
|
291
|
+
}), _jsx(Button, {
|
|
295
292
|
type: "link",
|
|
296
293
|
onClick: clearAll,
|
|
297
294
|
disabled: displayOptions.every(function (_ref7) {
|
|
@@ -301,9 +298,9 @@ var IglooSelect = function IglooSelect(_ref) {
|
|
|
301
298
|
children: formatMessage({
|
|
302
299
|
id: 'Clear All'
|
|
303
300
|
})
|
|
304
|
-
}
|
|
305
|
-
}
|
|
306
|
-
}
|
|
301
|
+
})]
|
|
302
|
+
}), originNode]
|
|
303
|
+
});
|
|
307
304
|
},
|
|
308
305
|
maxTagCount: 0,
|
|
309
306
|
maxTagPlaceholder: function maxTagPlaceholder(values) {
|
|
@@ -333,8 +330,8 @@ var IglooSelect = function IglooSelect(_ref) {
|
|
|
333
330
|
style: {
|
|
334
331
|
marginRight: 8
|
|
335
332
|
}
|
|
336
|
-
}
|
|
337
|
-
}
|
|
333
|
+
}), label]
|
|
334
|
+
}) : label, _jsx("div", {
|
|
338
335
|
style: {
|
|
339
336
|
position: 'absolute',
|
|
340
337
|
width: '100%',
|
|
@@ -343,11 +340,11 @@ var IglooSelect = function IglooSelect(_ref) {
|
|
|
343
340
|
top: 0,
|
|
344
341
|
left: 0
|
|
345
342
|
}
|
|
346
|
-
}
|
|
343
|
+
})]
|
|
347
344
|
}, value);
|
|
348
345
|
})
|
|
349
|
-
})
|
|
350
|
-
}
|
|
346
|
+
}))
|
|
347
|
+
});
|
|
351
348
|
};
|
|
352
349
|
|
|
353
350
|
IglooSelect.formItemPropsHandler = function (config) {
|
package/es/select/select.js
CHANGED
|
@@ -2,9 +2,9 @@ import "antd/es/select/style";
|
|
|
2
2
|
import _Select from "antd/es/select";
|
|
3
3
|
var _excluded = ["options", "value", "className", "placeholder", "children", "onDropdownVisibleChange", "showSearch", "filterOption", "optionFilterProp"];
|
|
4
4
|
|
|
5
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
5
|
+
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; }
|
|
6
6
|
|
|
7
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
7
|
+
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; }
|
|
8
8
|
|
|
9
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
10
|
|
|
@@ -24,7 +24,7 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
|
24
24
|
|
|
25
25
|
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
26
|
|
|
27
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
27
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
28
28
|
import { useContext, useState } from 'react';
|
|
29
29
|
import omit from 'omit.js';
|
|
30
30
|
import formMethods from '../utils/form-methods';
|
|
@@ -63,10 +63,7 @@ var IglooSelect = function IglooSelect(_ref) {
|
|
|
63
63
|
}, omit(rest, formMethods)), {}, {
|
|
64
64
|
options: children ? void 0 : options,
|
|
65
65
|
value: value,
|
|
66
|
-
suffixIcon: _jsxs(
|
|
67
|
-
style: {
|
|
68
|
-
position: 'relative'
|
|
69
|
-
},
|
|
66
|
+
suffixIcon: _jsxs(_Fragment, {
|
|
70
67
|
children: [_jsx(ArrowDownOutlined, {
|
|
71
68
|
className: classnames({
|
|
72
69
|
'igloo-select-arrow': true,
|
|
@@ -75,7 +72,7 @@ var IglooSelect = function IglooSelect(_ref) {
|
|
|
75
72
|
style: {
|
|
76
73
|
opacity: isOpen ? 0 : 1
|
|
77
74
|
}
|
|
78
|
-
}
|
|
75
|
+
}), _jsx(ArrowUpOutlined, {
|
|
79
76
|
className: classnames({
|
|
80
77
|
'igloo-select-arrow': true,
|
|
81
78
|
'igloo-select-arrow-active': isOpen
|
|
@@ -83,8 +80,8 @@ var IglooSelect = function IglooSelect(_ref) {
|
|
|
83
80
|
style: {
|
|
84
81
|
opacity: isOpen ? 1 : 0
|
|
85
82
|
}
|
|
86
|
-
}
|
|
87
|
-
}
|
|
83
|
+
})]
|
|
84
|
+
}),
|
|
88
85
|
getPopupContainer: function getPopupContainer(trigger) {
|
|
89
86
|
return trigger.parentNode;
|
|
90
87
|
},
|
|
@@ -101,7 +98,7 @@ var IglooSelect = function IglooSelect(_ref) {
|
|
|
101
98
|
} : void 0),
|
|
102
99
|
mode: undefined,
|
|
103
100
|
children: children
|
|
104
|
-
})
|
|
101
|
+
}));
|
|
105
102
|
};
|
|
106
103
|
|
|
107
104
|
IglooSelect.OptGroup = OptGroup;
|
package/es/select/time-select.js
CHANGED
|
@@ -201,57 +201,57 @@ var IglooTimeSelect = function IglooTimeSelect(props) {
|
|
|
201
201
|
onClick: function onClick() {
|
|
202
202
|
return handleTimeSwitchButton(hourRange, hourValue, setHourVale, 'down');
|
|
203
203
|
}
|
|
204
|
-
}
|
|
204
|
+
}), _jsx(Input, {
|
|
205
205
|
onChange: function onChange(e) {
|
|
206
206
|
return handleTimeInput(hourRange, e.target.value, setHourVale);
|
|
207
207
|
},
|
|
208
208
|
value: hourValue
|
|
209
|
-
}
|
|
209
|
+
}), _jsx(ArrowDownOutlined, {
|
|
210
210
|
onClick: function onClick() {
|
|
211
211
|
return handleTimeSwitchButton(hourRange, hourValue, setHourVale, 'up');
|
|
212
212
|
}
|
|
213
|
-
}
|
|
214
|
-
}
|
|
213
|
+
})]
|
|
214
|
+
}), _jsx("span", {
|
|
215
215
|
children: ":"
|
|
216
|
-
}
|
|
216
|
+
}), _jsxs("div", {
|
|
217
217
|
children: [_jsx(ArrowUpOutlined, {
|
|
218
218
|
onClick: function onClick() {
|
|
219
219
|
return handleTimeSwitchButton(minuteRange, minuteValue, setMinuteVale, 'down');
|
|
220
220
|
}
|
|
221
|
-
}
|
|
221
|
+
}), _jsx(Input, {
|
|
222
222
|
ref: secondInputRef,
|
|
223
223
|
onChange: function onChange(e) {
|
|
224
224
|
return handleTimeInput(minuteRange, e.target.value, setMinuteVale);
|
|
225
225
|
},
|
|
226
226
|
value: minuteValue
|
|
227
|
-
}
|
|
227
|
+
}), _jsx(ArrowDownOutlined, {
|
|
228
228
|
onClick: function onClick() {
|
|
229
229
|
return handleTimeSwitchButton(minuteRange, minuteValue, setMinuteVale, 'up');
|
|
230
230
|
}
|
|
231
|
-
}
|
|
232
|
-
}
|
|
231
|
+
})]
|
|
232
|
+
}), _jsxs("div", {
|
|
233
233
|
children: [_jsx(ArrowUpOutlined, {
|
|
234
234
|
className: classnames({// 'igloo-hour-select-meridiem-disable': meridiemDisable,
|
|
235
235
|
}),
|
|
236
236
|
onClick: function onClick() {
|
|
237
237
|
return meridiemSwitch(hourValue);
|
|
238
238
|
}
|
|
239
|
-
}
|
|
239
|
+
}), _jsx("span", {
|
|
240
240
|
children: _jsx(Typography, {
|
|
241
241
|
level: "body1",
|
|
242
242
|
children: meridiem ? 'AM' : 'PM'
|
|
243
|
-
}
|
|
244
|
-
}
|
|
243
|
+
})
|
|
244
|
+
}), _jsx(ArrowDownOutlined, {
|
|
245
245
|
className: classnames({// 'igloo-hour-select-meridiem-disable': meridiemDisable,
|
|
246
246
|
}),
|
|
247
247
|
onClick: function onClick() {
|
|
248
248
|
return meridiemSwitch(hourValue);
|
|
249
249
|
}
|
|
250
|
-
}
|
|
251
|
-
}
|
|
252
|
-
}
|
|
250
|
+
})]
|
|
251
|
+
})]
|
|
252
|
+
})
|
|
253
253
|
}, '0')
|
|
254
|
-
}
|
|
254
|
+
});
|
|
255
255
|
|
|
256
256
|
return _jsxs("div", {
|
|
257
257
|
className: "igloo-hour-select",
|
|
@@ -272,13 +272,13 @@ var IglooTimeSelect = function IglooTimeSelect(props) {
|
|
|
272
272
|
className: classnames('igloo-input', {
|
|
273
273
|
'igloo-hour-select-input-active': dropDownVisible
|
|
274
274
|
})
|
|
275
|
-
}
|
|
276
|
-
}
|
|
275
|
+
})
|
|
276
|
+
}), _jsx(TimeOutlined, {
|
|
277
277
|
className: classnames({
|
|
278
278
|
'igloo-hour-select-active': dropDownVisible
|
|
279
279
|
})
|
|
280
|
-
}
|
|
281
|
-
}
|
|
280
|
+
})]
|
|
281
|
+
});
|
|
282
282
|
};
|
|
283
283
|
|
|
284
284
|
function checkCard(value) {
|