@douyinfe/semi-foundation 2.19.0-beta.0 → 2.19.0
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/anchor/anchor.scss +1 -8
- package/anchor/rtl.scss +0 -1
- package/anchor/variables.scss +1 -0
- package/calendar/eventUtil.ts +8 -7
- package/calendar/foundation.ts +14 -14
- package/datePicker/monthsGridFoundation.ts +10 -3
- package/dropdown/foundation.ts +2 -1
- package/dropdown/menuFoundation.ts +2 -1
- package/getBabelConfig.js +0 -12
- package/lib/cjs/anchor/anchor.css +1 -10
- package/lib/cjs/anchor/anchor.scss +1 -8
- package/lib/cjs/anchor/constants.js +1 -4
- package/lib/cjs/anchor/foundation.js +5 -12
- package/lib/cjs/anchor/linkFoundation.js +4 -9
- package/lib/cjs/anchor/rtl.scss +0 -1
- package/lib/cjs/anchor/variables.scss +1 -0
- package/lib/cjs/autoComplete/constants.js +1 -4
- package/lib/cjs/autoComplete/foundation.js +14 -33
- package/lib/cjs/autoComplete/optionFoundation.js +4 -9
- package/lib/cjs/avatar/constants.js +1 -4
- package/lib/cjs/avatar/foundation.js +4 -9
- package/lib/cjs/backtop/constants.js +1 -4
- package/lib/cjs/backtop/foundation.js +4 -9
- package/lib/cjs/badge/constants.js +1 -4
- package/lib/cjs/banner/constants.js +1 -4
- package/lib/cjs/banner/foundation.js +4 -9
- package/lib/cjs/base/constants.js +2 -6
- package/lib/cjs/base/env.js +1 -4
- package/lib/cjs/base/foundation.js +5 -10
- package/lib/cjs/base/index.js +3 -6
- package/lib/cjs/breadcrumb/constants.js +1 -4
- package/lib/cjs/breadcrumb/foundation.js +6 -13
- package/lib/cjs/breadcrumb/itemFoundation.js +4 -9
- package/lib/cjs/button/constants.js +1 -4
- package/lib/cjs/calendar/constants.js +1 -4
- package/lib/cjs/calendar/eventUtil.d.ts +3 -3
- package/lib/cjs/calendar/eventUtil.js +28 -53
- package/lib/cjs/calendar/foundation.js +63 -85
- package/lib/cjs/card/constants.js +1 -4
- package/lib/cjs/carousel/constants.js +1 -4
- package/lib/cjs/carousel/foundation.js +5 -12
- package/lib/cjs/cascader/constants.js +1 -4
- package/lib/cjs/cascader/foundation.js +55 -100
- package/lib/cjs/cascader/util.js +9 -30
- package/lib/cjs/checkbox/checkboxFoundation.js +6 -13
- package/lib/cjs/checkbox/checkboxGroupFoundation.js +9 -18
- package/lib/cjs/checkbox/constants.js +1 -4
- package/lib/cjs/collapse/constants.js +1 -4
- package/lib/cjs/collapse/foundation.js +9 -20
- package/lib/cjs/collapsible/constants.js +1 -4
- package/lib/cjs/datePicker/_utils/formatter.js +3 -12
- package/lib/cjs/datePicker/_utils/getDayOfWeek.js +1 -4
- package/lib/cjs/datePicker/_utils/getDefaultFormatToken.js +1 -4
- package/lib/cjs/datePicker/_utils/getDefaultPickerDate.js +5 -10
- package/lib/cjs/datePicker/_utils/getFullDateOffset.js +3 -6
- package/lib/cjs/datePicker/_utils/getInsetInputFormatToken.js +2 -11
- package/lib/cjs/datePicker/_utils/getInsetInputValueFromInsetInputStr.js +1 -4
- package/lib/cjs/datePicker/_utils/getMonthTable.js +2 -11
- package/lib/cjs/datePicker/_utils/getMonthsInYear.js +3 -16
- package/lib/cjs/datePicker/_utils/getYears.js +2 -9
- package/lib/cjs/datePicker/_utils/index.js +16 -30
- package/lib/cjs/datePicker/_utils/isAfter.js +3 -6
- package/lib/cjs/datePicker/_utils/isBefore.js +3 -6
- package/lib/cjs/datePicker/_utils/isBetween.js +3 -6
- package/lib/cjs/datePicker/_utils/isDate.js +1 -4
- package/lib/cjs/datePicker/_utils/isSameDay.js +3 -6
- package/lib/cjs/datePicker/_utils/isTimestamp.js +3 -6
- package/lib/cjs/datePicker/_utils/isUnixTimestamp.js +3 -6
- package/lib/cjs/datePicker/_utils/isValidDate.js +1 -4
- package/lib/cjs/datePicker/_utils/isWithinInterval.js +3 -6
- package/lib/cjs/datePicker/_utils/parser.js +1 -4
- package/lib/cjs/datePicker/constants.js +3 -10
- package/lib/cjs/datePicker/foundation.js +42 -85
- package/lib/cjs/datePicker/inputFoundation.js +7 -20
- package/lib/cjs/datePicker/monthFoundation.js +5 -12
- package/lib/cjs/datePicker/monthsGridFoundation.js +47 -68
- package/lib/cjs/datePicker/yearAndMonthFoundation.js +4 -9
- package/lib/cjs/descriptions/constants.js +1 -4
- package/lib/cjs/divider/constants.js +1 -4
- package/lib/cjs/dropdown/constants.js +1 -4
- package/lib/cjs/dropdown/foundation.js +7 -15
- package/lib/cjs/dropdown/menuFoundation.js +11 -31
- package/lib/cjs/empty/constants.js +1 -4
- package/lib/cjs/form/constants.js +1 -4
- package/lib/cjs/form/foundation.js +64 -104
- package/lib/cjs/form/interface.js +1 -3
- package/lib/cjs/form/utils.js +14 -29
- package/lib/cjs/grid/constants.js +1 -4
- package/lib/cjs/icons/constants.js +1 -4
- package/lib/cjs/input/constants.js +1 -4
- package/lib/cjs/input/foundation.js +7 -18
- package/lib/cjs/input/textareaFoundation.js +6 -13
- package/lib/cjs/input/util/calculateNodeHeight.js +3 -17
- package/lib/cjs/input/util/getSizingData.js +5 -10
- package/lib/cjs/inputNumber/constants.js +4 -11
- package/lib/cjs/inputNumber/foundation.js +11 -30
- package/lib/cjs/layout/constants.js +1 -4
- package/lib/cjs/list/constants.js +1 -4
- package/lib/cjs/modal/constants.js +1 -4
- package/lib/cjs/modal/modalContentFoundation.js +4 -9
- package/lib/cjs/modal/modalFoundation.js +4 -9
- package/lib/cjs/navigation/NavItem.js +6 -21
- package/lib/cjs/navigation/constants.js +1 -4
- package/lib/cjs/navigation/foundation.js +22 -37
- package/lib/cjs/navigation/itemFoundation.js +4 -9
- package/lib/cjs/navigation/subNavFoundation.js +10 -21
- package/lib/cjs/notification/constants.js +1 -4
- package/lib/cjs/notification/notificationFoundation.js +5 -12
- package/lib/cjs/notification/notificationListFoundation.js +4 -9
- package/lib/cjs/overflowList/constants.js +3 -10
- package/lib/cjs/overflowList/foundation.js +12 -29
- package/lib/cjs/pagination/constants.js +1 -4
- package/lib/cjs/pagination/foundation.js +18 -37
- package/lib/cjs/popconfirm/constants.js +1 -4
- package/lib/cjs/popconfirm/popconfirmFoundation.js +3 -6
- package/lib/cjs/popover/constants.js +2 -9
- package/lib/cjs/progress/constants.js +1 -4
- package/lib/cjs/radio/constants.js +1 -4
- package/lib/cjs/radio/radioFoundation.js +3 -6
- package/lib/cjs/radio/radioGroupFoundation.js +6 -11
- package/lib/cjs/radio/radioInnerFoundation.js +5 -10
- package/lib/cjs/rating/constants.js +1 -4
- package/lib/cjs/rating/foundation.js +7 -20
- package/lib/cjs/scrollList/constants.js +1 -4
- package/lib/cjs/scrollList/foundation.js +3 -6
- package/lib/cjs/scrollList/itemFoundation.js +8 -21
- package/lib/cjs/scrollList/scrollTo.js +1 -4
- package/lib/cjs/select/constants.js +1 -4
- package/lib/cjs/select/foundation.js +56 -98
- package/lib/cjs/select/optionFoundation.js +4 -9
- package/lib/cjs/sideSheet/constants.js +1 -4
- package/lib/cjs/sideSheet/sideSheetFoundation.js +6 -15
- package/lib/cjs/skeleton/constants.js +1 -4
- package/lib/cjs/slider/constants.js +1 -4
- package/lib/cjs/slider/foundation.js +13 -24
- package/lib/cjs/space/constants.js +1 -4
- package/lib/cjs/spin/constants.js +1 -4
- package/lib/cjs/spin/foundation.js +5 -12
- package/lib/cjs/steps/constants.js +1 -4
- package/lib/cjs/switch/constants.js +1 -4
- package/lib/cjs/switch/foundation.js +4 -9
- package/lib/cjs/table/bodyFoundation.js +9 -22
- package/lib/cjs/table/cellFoundation.js +3 -6
- package/lib/cjs/table/constants.js +1 -4
- package/lib/cjs/table/foundation.js +76 -117
- package/lib/cjs/table/tableRowFoundation.js +3 -6
- package/lib/cjs/table/tableSelectionCellFoundation.js +3 -6
- package/lib/cjs/table/utils.js +42 -71
- package/lib/cjs/tabs/constants.js +1 -4
- package/lib/cjs/tabs/foundation.js +8 -23
- package/lib/cjs/tag/constants.js +1 -4
- package/lib/cjs/tagInput/constants.js +1 -4
- package/lib/cjs/tagInput/foundation.js +12 -31
- package/lib/cjs/tagInput/utils/getSplitedArray.js +3 -6
- package/lib/cjs/timePicker/ComboxFoundation.js +10 -29
- package/lib/cjs/timePicker/constants.js +1 -4
- package/lib/cjs/timePicker/foundation.js +26 -45
- package/lib/cjs/timePicker/inputFoundation.js +4 -9
- package/lib/cjs/timePicker/utils/index.js +7 -14
- package/lib/cjs/timePicker/utils/localeDate.js +2 -9
- package/lib/cjs/timeline/constants.js +1 -4
- package/lib/cjs/toast/constants.js +1 -4
- package/lib/cjs/toast/toastFoundation.js +5 -12
- package/lib/cjs/toast/toastListFoundation.js +5 -12
- package/lib/cjs/tooltip/constants.js +1 -4
- package/lib/cjs/tooltip/foundation.js +29 -56
- package/lib/cjs/transfer/constants.js +1 -4
- package/lib/cjs/transfer/foundation.js +24 -47
- package/lib/cjs/transfer/transferUtils.js +16 -45
- package/lib/cjs/tree/constants.js +1 -4
- package/lib/cjs/tree/foundation.js +41 -76
- package/lib/cjs/tree/treeUtil.js +60 -107
- package/lib/cjs/treeSelect/constants.js +1 -4
- package/lib/cjs/treeSelect/foundation.js +49 -82
- package/lib/cjs/typography/constants.js +1 -4
- package/lib/cjs/upload/constants.js +1 -4
- package/lib/cjs/upload/foundation.js +56 -112
- package/lib/cjs/upload/utils.js +13 -32
- package/lib/cjs/utils/Event.js +9 -23
- package/lib/cjs/utils/FocusHandle.js +6 -15
- package/lib/cjs/utils/Logger.js +1 -4
- package/lib/cjs/utils/Store.js +5 -20
- package/lib/cjs/utils/a11y.js +8 -13
- package/lib/cjs/utils/array.js +6 -15
- package/lib/cjs/utils/arrayMove.js +3 -12
- package/lib/cjs/utils/classnames.js +6 -15
- package/lib/cjs/utils/date-fns-extra.js +7 -18
- package/lib/cjs/utils/dom.js +5 -12
- package/lib/cjs/utils/function.js +1 -4
- package/lib/cjs/utils/getDataAttr.js +2 -13
- package/lib/cjs/utils/getHighlight.js +7 -22
- package/lib/cjs/utils/getMotionObjFromProps.js +4 -9
- package/lib/cjs/utils/index.js +5 -15
- package/lib/cjs/utils/isBothNaN.js +1 -4
- package/lib/cjs/utils/isElement.js +1 -4
- package/lib/cjs/utils/isEnterPress.js +3 -6
- package/lib/cjs/utils/isEscPress.js +3 -6
- package/lib/cjs/utils/isNullOrUndefined.js +1 -4
- package/lib/cjs/utils/isNumber.js +1 -4
- package/lib/cjs/utils/isObject.js +1 -4
- package/lib/cjs/utils/isPromise.js +3 -6
- package/lib/cjs/utils/isString.js +1 -4
- package/lib/cjs/utils/keyCode.js +1 -4
- package/lib/cjs/utils/log.js +3 -6
- package/lib/cjs/utils/number.js +1 -4
- package/lib/cjs/utils/object.js +10 -27
- package/lib/cjs/utils/set.js +4 -9
- package/lib/cjs/utils/shallowEqualObjects.js +3 -10
- package/lib/cjs/utils/touchPolyfill.js +5 -12
- package/lib/cjs/utils/type.js +1 -3
- package/lib/cjs/utils/uuid.js +3 -14
- package/lib/cjs/utils/warning.js +1 -4
- package/lib/es/anchor/anchor.css +1 -10
- package/lib/es/anchor/anchor.scss +1 -8
- package/lib/es/anchor/foundation.js +2 -4
- package/lib/es/anchor/linkFoundation.js +1 -2
- package/lib/es/anchor/rtl.scss +0 -1
- package/lib/es/anchor/variables.scss +1 -0
- package/lib/es/autoComplete/foundation.js +11 -26
- package/lib/es/autoComplete/optionFoundation.js +1 -2
- package/lib/es/avatar/foundation.js +1 -2
- package/lib/es/backtop/foundation.js +1 -2
- package/lib/es/banner/foundation.js +1 -2
- package/lib/es/base/foundation.js +2 -3
- package/lib/es/breadcrumb/foundation.js +3 -6
- package/lib/es/breadcrumb/itemFoundation.js +1 -2
- package/lib/es/calendar/eventUtil.d.ts +3 -3
- package/lib/es/calendar/eventUtil.js +27 -56
- package/lib/es/calendar/foundation.js +60 -90
- package/lib/es/carousel/foundation.js +2 -4
- package/lib/es/cascader/foundation.js +49 -94
- package/lib/es/cascader/util.js +6 -21
- package/lib/es/checkbox/checkboxFoundation.js +3 -6
- package/lib/es/checkbox/checkboxGroupFoundation.js +6 -9
- package/lib/es/collapse/foundation.js +6 -10
- package/lib/es/datePicker/_utils/formatter.js +2 -5
- package/lib/es/datePicker/_utils/getDefaultPickerDate.js +2 -3
- package/lib/es/datePicker/_utils/getInsetInputFormatToken.js +1 -4
- package/lib/es/datePicker/_utils/getMonthTable.js +1 -5
- package/lib/es/datePicker/_utils/getMonthsInYear.js +2 -9
- package/lib/es/datePicker/_utils/getYears.js +1 -3
- package/lib/es/datePicker/constants.js +2 -7
- package/lib/es/datePicker/foundation.js +39 -70
- package/lib/es/datePicker/inputFoundation.js +4 -11
- package/lib/es/datePicker/monthFoundation.js +2 -4
- package/lib/es/datePicker/monthsGridFoundation.js +40 -55
- package/lib/es/datePicker/yearAndMonthFoundation.js +1 -2
- package/lib/es/dropdown/foundation.js +4 -7
- package/lib/es/dropdown/menuFoundation.js +8 -21
- package/lib/es/form/foundation.js +59 -91
- package/lib/es/form/utils.js +11 -19
- package/lib/es/input/foundation.js +4 -9
- package/lib/es/input/textareaFoundation.js +3 -5
- package/lib/es/input/util/calculateNodeHeight.js +2 -10
- package/lib/es/input/util/getSizingData.js +2 -5
- package/lib/es/inputNumber/constants.js +3 -8
- package/lib/es/inputNumber/foundation.js +8 -18
- package/lib/es/modal/modalContentFoundation.js +1 -2
- package/lib/es/modal/modalFoundation.js +1 -2
- package/lib/es/navigation/NavItem.js +5 -11
- package/lib/es/navigation/foundation.js +19 -25
- package/lib/es/navigation/itemFoundation.js +1 -3
- package/lib/es/navigation/subNavFoundation.js +7 -13
- package/lib/es/notification/notificationFoundation.js +2 -4
- package/lib/es/notification/notificationListFoundation.js +1 -3
- package/lib/es/overflowList/constants.js +2 -3
- package/lib/es/overflowList/foundation.js +9 -23
- package/lib/es/pagination/foundation.js +15 -28
- package/lib/es/popover/constants.js +1 -2
- package/lib/es/radio/radioGroupFoundation.js +3 -4
- package/lib/es/radio/radioInnerFoundation.js +2 -3
- package/lib/es/rating/foundation.js +4 -13
- package/lib/es/scrollList/itemFoundation.js +5 -13
- package/lib/es/select/foundation.js +50 -88
- package/lib/es/select/optionFoundation.js +1 -2
- package/lib/es/sideSheet/sideSheetFoundation.js +3 -7
- package/lib/es/slider/foundation.js +10 -16
- package/lib/es/spin/foundation.js +2 -4
- package/lib/es/switch/foundation.js +1 -2
- package/lib/es/table/bodyFoundation.js +6 -11
- package/lib/es/table/foundation.js +67 -93
- package/lib/es/table/utils.js +33 -51
- package/lib/es/tabs/foundation.js +5 -18
- package/lib/es/tagInput/foundation.js +9 -21
- package/lib/es/timePicker/ComboxFoundation.js +7 -16
- package/lib/es/timePicker/foundation.js +23 -37
- package/lib/es/timePicker/inputFoundation.js +1 -2
- package/lib/es/timePicker/utils/index.js +4 -6
- package/lib/es/timePicker/utils/localeDate.js +1 -2
- package/lib/es/toast/toastFoundation.js +2 -4
- package/lib/es/toast/toastListFoundation.js +2 -4
- package/lib/es/tooltip/foundation.js +26 -46
- package/lib/es/transfer/foundation.js +21 -43
- package/lib/es/transfer/transferUtils.js +13 -33
- package/lib/es/tree/foundation.js +38 -70
- package/lib/es/tree/treeUtil.js +57 -109
- package/lib/es/treeSelect/foundation.js +45 -73
- package/lib/es/upload/foundation.js +52 -118
- package/lib/es/upload/utils.js +12 -25
- package/lib/es/utils/Event.js +5 -12
- package/lib/es/utils/FocusHandle.js +3 -7
- package/lib/es/utils/Store.js +4 -12
- package/lib/es/utils/a11y.js +5 -6
- package/lib/es/utils/array.js +3 -5
- package/lib/es/utils/arrayMove.js +2 -6
- package/lib/es/utils/classnames.js +3 -6
- package/lib/es/utils/date-fns-extra.js +6 -14
- package/lib/es/utils/dom.js +1 -2
- package/lib/es/utils/getDataAttr.js +1 -5
- package/lib/es/utils/getHighlight.js +4 -14
- package/lib/es/utils/getMotionObjFromProps.js +1 -2
- package/lib/es/utils/object.js +7 -15
- package/lib/es/utils/set.js +1 -2
- package/lib/es/utils/shallowEqualObjects.js +2 -5
- package/lib/es/utils/touchPolyfill.js +2 -6
- package/lib/es/utils/uuid.js +2 -7
- package/package.json +2 -4
- package/select/foundation.ts +2 -2
|
@@ -1,54 +1,43 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
6
|
-
|
|
7
|
-
_Object$defineProperty(exports, "__esModule", {
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
8
4
|
value: true
|
|
9
5
|
});
|
|
10
|
-
|
|
11
6
|
exports.default = void 0;
|
|
12
7
|
|
|
13
|
-
var _set = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/set"));
|
|
14
|
-
|
|
15
|
-
var _forEach = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/for-each"));
|
|
16
|
-
|
|
17
|
-
var _from = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/array/from"));
|
|
18
|
-
|
|
19
|
-
var _assign = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/object/assign"));
|
|
20
|
-
|
|
21
8
|
var _foundation = _interopRequireDefault(require("../base/foundation"));
|
|
22
9
|
|
|
23
10
|
var _isEnterPress = _interopRequireDefault(require("../utils/isEnterPress"));
|
|
24
11
|
|
|
12
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
+
|
|
25
14
|
const addKeys = function addKeys() {
|
|
26
15
|
let originKeys = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
27
|
-
const keySet = new
|
|
16
|
+
const keySet = new Set(originKeys);
|
|
28
17
|
|
|
29
18
|
for (var _len = arguments.length, willAddKeys = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
30
19
|
willAddKeys[_key - 1] = arguments[_key];
|
|
31
20
|
}
|
|
32
21
|
|
|
33
|
-
|
|
34
|
-
return
|
|
22
|
+
willAddKeys.forEach(key => key && keySet.add(key));
|
|
23
|
+
return Array.from(keySet);
|
|
35
24
|
};
|
|
36
25
|
|
|
37
26
|
const removeKeys = function removeKeys() {
|
|
38
27
|
let originKeys = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
39
|
-
const keySet = new
|
|
28
|
+
const keySet = new Set(originKeys);
|
|
40
29
|
|
|
41
30
|
for (var _len2 = arguments.length, willRemoveKeys = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
|
42
31
|
willRemoveKeys[_key2 - 1] = arguments[_key2];
|
|
43
32
|
}
|
|
44
33
|
|
|
45
|
-
|
|
46
|
-
return
|
|
34
|
+
willRemoveKeys.forEach(key => key && keySet.delete(key));
|
|
35
|
+
return Array.from(keySet);
|
|
47
36
|
};
|
|
48
37
|
|
|
49
38
|
class SubNavFoundation extends _foundation.default {
|
|
50
39
|
constructor(adapter) {
|
|
51
|
-
super(
|
|
40
|
+
super(Object.assign({}, adapter));
|
|
52
41
|
}
|
|
53
42
|
|
|
54
43
|
init() {
|
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
_Object$defineProperty(exports, "__esModule", {
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
4
|
value: true
|
|
7
5
|
});
|
|
8
|
-
|
|
9
6
|
exports.strings = exports.numbers = exports.cssClasses = void 0;
|
|
10
7
|
|
|
11
8
|
var _constants = require("../base/constants");
|
|
@@ -1,26 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
6
|
-
|
|
7
|
-
_Object$defineProperty(exports, "__esModule", {
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
8
4
|
value: true
|
|
9
5
|
});
|
|
10
|
-
|
|
11
6
|
exports.default = void 0;
|
|
12
7
|
|
|
13
|
-
var _assign = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/object/assign"));
|
|
14
|
-
|
|
15
|
-
var _setTimeout2 = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/set-timeout"));
|
|
16
|
-
|
|
17
8
|
var _isNumber2 = _interopRequireDefault(require("lodash/isNumber"));
|
|
18
9
|
|
|
19
10
|
var _foundation = _interopRequireDefault(require("../base/foundation"));
|
|
20
11
|
|
|
12
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
+
|
|
21
14
|
class NotificationFoundation extends _foundation.default {
|
|
22
15
|
constructor(adapter) {
|
|
23
|
-
super(
|
|
16
|
+
super(Object.assign(Object.assign({}, NotificationFoundation.defaultAdapter), adapter));
|
|
24
17
|
this._timer = null;
|
|
25
18
|
this._id = null; // cache id
|
|
26
19
|
}
|
|
@@ -40,7 +33,7 @@ class NotificationFoundation extends _foundation.default {
|
|
|
40
33
|
const duration = this.getProp('duration');
|
|
41
34
|
|
|
42
35
|
if (duration && (0, _isNumber2.default)(duration)) {
|
|
43
|
-
this._timer = (
|
|
36
|
+
this._timer = setTimeout(() => {
|
|
44
37
|
this.close(); // call parent to remove itself
|
|
45
38
|
}, duration * 1000);
|
|
46
39
|
}
|
|
@@ -1,19 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
6
|
-
|
|
7
|
-
_Object$defineProperty(exports, "__esModule", {
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
8
4
|
value: true
|
|
9
5
|
});
|
|
10
|
-
|
|
11
6
|
exports.default = void 0;
|
|
12
7
|
|
|
13
|
-
var _filter = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/filter"));
|
|
14
|
-
|
|
15
8
|
var _foundation = _interopRequireDefault(require("../base/foundation"));
|
|
16
9
|
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
+
|
|
17
12
|
/* eslint-disable no-useless-constructor */
|
|
18
13
|
class NotificationListFoundation extends _foundation.default {
|
|
19
14
|
addNotice(opts) {
|
|
@@ -35,7 +30,7 @@ class NotificationListFoundation extends _foundation.default {
|
|
|
35
30
|
|
|
36
31
|
|
|
37
32
|
const removedItems = [];
|
|
38
|
-
notices =
|
|
33
|
+
notices = notices.filter(notice => {
|
|
39
34
|
if (notice.id === id) {
|
|
40
35
|
removedItems.push(notice);
|
|
41
36
|
return false;
|
|
@@ -1,17 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
6
|
-
|
|
7
|
-
_Object$defineProperty(exports, "__esModule", {
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
8
4
|
value: true
|
|
9
5
|
});
|
|
10
|
-
|
|
11
6
|
exports.strings = exports.numbers = exports.cssClasses = void 0;
|
|
12
7
|
|
|
13
|
-
var _values = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/object/values"));
|
|
14
|
-
|
|
15
8
|
var _constants = require("../base/constants");
|
|
16
9
|
|
|
17
10
|
const cssClasses = {
|
|
@@ -32,9 +25,9 @@ const OVERFLOW_DIR = {
|
|
|
32
25
|
SHRINK: 2
|
|
33
26
|
};
|
|
34
27
|
const strings = {
|
|
35
|
-
BOUNDARY_SET:
|
|
28
|
+
BOUNDARY_SET: Object.values(BOUNDARY_MAP),
|
|
36
29
|
POSITION_SET: ['vertical', 'horizontal'],
|
|
37
|
-
MODE_SET:
|
|
30
|
+
MODE_SET: Object.values(MODE_MAP),
|
|
38
31
|
MODE_MAP,
|
|
39
32
|
BOUNDARY_MAP,
|
|
40
33
|
OVERFLOW_DIR
|
|
@@ -1,29 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
6
|
-
|
|
7
|
-
_Object$defineProperty(exports, "__esModule", {
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
8
4
|
value: true
|
|
9
5
|
});
|
|
10
|
-
|
|
11
6
|
exports.default = void 0;
|
|
12
7
|
|
|
13
|
-
var _assign = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/object/assign"));
|
|
14
|
-
|
|
15
|
-
var _map = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/map"));
|
|
16
|
-
|
|
17
|
-
var _indexOf = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/index-of"));
|
|
18
|
-
|
|
19
|
-
var _lastIndexOf = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/last-index-of"));
|
|
20
|
-
|
|
21
|
-
var _slice = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/slice"));
|
|
22
|
-
|
|
23
|
-
var _forEach = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/for-each"));
|
|
24
|
-
|
|
25
|
-
var _values = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/values"));
|
|
26
|
-
|
|
27
8
|
var _cloneDeep2 = _interopRequireDefault(require("lodash/cloneDeep"));
|
|
28
9
|
|
|
29
10
|
var _get2 = _interopRequireDefault(require("lodash/get"));
|
|
@@ -32,12 +13,14 @@ var _foundation = _interopRequireDefault(require("../base/foundation"));
|
|
|
32
13
|
|
|
33
14
|
var _constants = require("./constants");
|
|
34
15
|
|
|
16
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
|
+
|
|
35
18
|
const Boundary = _constants.strings.BOUNDARY_MAP;
|
|
36
19
|
const OverflowDirection = _constants.strings.OVERFLOW_DIR;
|
|
37
20
|
|
|
38
21
|
class OverflowListFoundation extends _foundation.default {
|
|
39
22
|
constructor(adapter) {
|
|
40
|
-
super(
|
|
23
|
+
super(Object.assign({}, adapter));
|
|
41
24
|
this.previousY = undefined;
|
|
42
25
|
|
|
43
26
|
this.isScrollMode = () => {
|
|
@@ -61,24 +44,24 @@ class OverflowListFoundation extends _foundation.default {
|
|
|
61
44
|
return overflow;
|
|
62
45
|
}
|
|
63
46
|
|
|
64
|
-
const visibleStateArr =
|
|
47
|
+
const visibleStateArr = items.map(_ref => {
|
|
65
48
|
let {
|
|
66
49
|
key
|
|
67
50
|
} = _ref;
|
|
68
51
|
return Boolean(visibleState.get(key));
|
|
69
52
|
});
|
|
70
|
-
const visibleStart =
|
|
71
|
-
const visibleEnd =
|
|
53
|
+
const visibleStart = visibleStateArr.indexOf(true);
|
|
54
|
+
const visibleEnd = visibleStateArr.lastIndexOf(true);
|
|
72
55
|
const overflowList = [];
|
|
73
|
-
overflowList[0] = visibleStart >= 0 ?
|
|
74
|
-
overflowList[1] = visibleEnd >= 0 ?
|
|
56
|
+
overflowList[0] = visibleStart >= 0 ? items.slice(0, visibleStart) : [];
|
|
57
|
+
overflowList[1] = visibleEnd >= 0 ? items.slice(visibleEnd + 1, items.length) : items;
|
|
75
58
|
return overflowList;
|
|
76
59
|
}
|
|
77
60
|
|
|
78
61
|
handleIntersect(entries) {
|
|
79
62
|
const visibleState = (0, _cloneDeep2.default)(this.getState('visibleState'));
|
|
80
63
|
const res = {};
|
|
81
|
-
|
|
64
|
+
entries.forEach(entry => {
|
|
82
65
|
const itemKey = (0, _get2.default)(entry, 'target.dataset.scrollkey');
|
|
83
66
|
const visible = entry.isIntersecting;
|
|
84
67
|
res[itemKey] = entry;
|
|
@@ -86,7 +69,7 @@ class OverflowListFoundation extends _foundation.default {
|
|
|
86
69
|
});
|
|
87
70
|
let someItemVisible = false;
|
|
88
71
|
|
|
89
|
-
for (const value of
|
|
72
|
+
for (const value of visibleState.values()) {
|
|
90
73
|
if (value) {
|
|
91
74
|
someItemVisible = true;
|
|
92
75
|
break;
|
|
@@ -144,7 +127,7 @@ class OverflowListFoundation extends _foundation.default {
|
|
|
144
127
|
|
|
145
128
|
if (growing === OverflowDirection.SHRINK && visible.length > minVisibleItems) {
|
|
146
129
|
const collapseFromStart = collapseFrom === Boundary.START;
|
|
147
|
-
const newVisible =
|
|
130
|
+
const newVisible = visible.slice();
|
|
148
131
|
const next = collapseFromStart ? newVisible.shift() : newVisible.pop();
|
|
149
132
|
|
|
150
133
|
if (next !== undefined) {
|
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
_Object$defineProperty(exports, "__esModule", {
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
4
|
value: true
|
|
7
5
|
});
|
|
8
|
-
|
|
9
6
|
exports.strings = exports.numbers = exports.cssClasses = void 0;
|
|
10
7
|
|
|
11
8
|
var _constants = require("../base/constants");
|
|
@@ -1,39 +1,22 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
6
|
-
|
|
7
|
-
_Object$defineProperty(exports, "__esModule", {
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
8
4
|
value: true
|
|
9
5
|
});
|
|
10
|
-
|
|
11
6
|
exports.default = void 0;
|
|
12
7
|
|
|
13
|
-
var _assign = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/object/assign"));
|
|
14
|
-
|
|
15
|
-
var _from = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/array/from"));
|
|
16
|
-
|
|
17
|
-
var _concat = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/concat"));
|
|
18
|
-
|
|
19
|
-
var _indexOf = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/index-of"));
|
|
20
|
-
|
|
21
|
-
var _findIndex = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/find-index"));
|
|
22
|
-
|
|
23
|
-
var _splice = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/splice"));
|
|
24
|
-
|
|
25
|
-
var _isNan = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/number/is-nan"));
|
|
26
|
-
|
|
27
8
|
var _foundation = _interopRequireDefault(require("../base/foundation"));
|
|
28
9
|
|
|
29
10
|
var _constants = require("./constants");
|
|
30
11
|
|
|
12
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
+
|
|
31
14
|
/* eslint-disable max-len */
|
|
32
15
|
|
|
33
16
|
/* eslint-disable no-param-reassign */
|
|
34
17
|
class PaginationFoundation extends _foundation.default {
|
|
35
18
|
constructor(adapter) {
|
|
36
|
-
super(
|
|
19
|
+
super(Object.assign({}, adapter));
|
|
37
20
|
}
|
|
38
21
|
|
|
39
22
|
init() {
|
|
@@ -180,8 +163,6 @@ class PaginationFoundation extends _foundation.default {
|
|
|
180
163
|
}
|
|
181
164
|
|
|
182
165
|
_updatePageList(pageListInfo) {
|
|
183
|
-
var _context, _context2;
|
|
184
|
-
|
|
185
166
|
const {
|
|
186
167
|
currentPage,
|
|
187
168
|
total,
|
|
@@ -218,7 +199,7 @@ class PaginationFoundation extends _foundation.default {
|
|
|
218
199
|
} = _constants.numbers;
|
|
219
200
|
|
|
220
201
|
if (totalPageNum <= PAGE_SHOW_MAX) {
|
|
221
|
-
pageList =
|
|
202
|
+
pageList = Array.from({
|
|
222
203
|
length: totalPageNum
|
|
223
204
|
}, (v, i) => i + 1);
|
|
224
205
|
restLeftPageList = [];
|
|
@@ -228,7 +209,7 @@ class PaginationFoundation extends _foundation.default {
|
|
|
228
209
|
case currentPage < 4:
|
|
229
210
|
pageList = [1, 2, 3, 4, '...', totalPageNum - 1, totalPageNum]; // length: (totalPageNum - 1) - 4
|
|
230
211
|
|
|
231
|
-
restRightPageList =
|
|
212
|
+
restRightPageList = Array.from({
|
|
232
213
|
length: Math.min(totalPageNum - 6, REST_PAGE_MAX_SIZE)
|
|
233
214
|
}, (v, i) => i + 5);
|
|
234
215
|
restLeftPageList = [];
|
|
@@ -236,33 +217,33 @@ class PaginationFoundation extends _foundation.default {
|
|
|
236
217
|
|
|
237
218
|
case currentPage === 4:
|
|
238
219
|
pageList = [1, 2, 3, 4, 5, '...', totalPageNum];
|
|
239
|
-
restRightPageList =
|
|
220
|
+
restRightPageList = Array.from({
|
|
240
221
|
length: Math.min(totalPageNum - 6, REST_PAGE_MAX_SIZE)
|
|
241
222
|
}, (v, i) => i + 6);
|
|
242
223
|
restLeftPageList = [];
|
|
243
224
|
break;
|
|
244
225
|
|
|
245
226
|
case 4 < currentPage && currentPage < totalPageNum - 3:
|
|
246
|
-
const middle =
|
|
227
|
+
const middle = Array.from({
|
|
247
228
|
length: 3
|
|
248
229
|
}, (v, i) => currentPage + (i - 1));
|
|
249
|
-
pageList =
|
|
230
|
+
pageList = [1].concat('...', middle, '...', totalPageNum); // length: total-(currentPage+1)-1
|
|
250
231
|
|
|
251
|
-
restRightPageList =
|
|
232
|
+
restRightPageList = Array.from({
|
|
252
233
|
length: Math.min(totalPageNum - currentPage - 2, REST_PAGE_MAX_SIZE)
|
|
253
234
|
}, (v, i) => currentPage + i + 2);
|
|
254
|
-
restLeftPageList =
|
|
235
|
+
restLeftPageList = Array.from({
|
|
255
236
|
length: Math.min(currentPage - 3, REST_PAGE_MAX_SIZE)
|
|
256
237
|
}, (v, i) => i + 2);
|
|
257
238
|
break;
|
|
258
239
|
|
|
259
240
|
case currentPage - 3 <= currentPage && currentPage <= totalPageNum:
|
|
260
|
-
const right =
|
|
241
|
+
const right = Array.from({
|
|
261
242
|
length: 5
|
|
262
243
|
}, (v, i) => totalPageNum - (4 - i));
|
|
263
|
-
pageList =
|
|
244
|
+
pageList = [1, '...'].concat(right);
|
|
264
245
|
restRightPageList = [];
|
|
265
|
-
restLeftPageList =
|
|
246
|
+
restLeftPageList = Array.from({
|
|
266
247
|
length: Math.min(right[0] - 2, REST_PAGE_MAX_SIZE)
|
|
267
248
|
}, (v, i) => i + 2);
|
|
268
249
|
break;
|
|
@@ -320,9 +301,9 @@ class PaginationFoundation extends _foundation.default {
|
|
|
320
301
|
} = this.getStates();
|
|
321
302
|
const newPageSizeOpts = [...pageSizeOpts];
|
|
322
303
|
|
|
323
|
-
if (
|
|
324
|
-
const firstLargerIndex =
|
|
325
|
-
|
|
304
|
+
if (newPageSizeOpts.indexOf(pageSize) === -1) {
|
|
305
|
+
const firstLargerIndex = newPageSizeOpts.findIndex(el => el > pageSize);
|
|
306
|
+
newPageSizeOpts.splice(firstLargerIndex, 0, pageSize);
|
|
326
307
|
}
|
|
327
308
|
|
|
328
309
|
return newPageSizeOpts;
|
|
@@ -341,7 +322,7 @@ class PaginationFoundation extends _foundation.default {
|
|
|
341
322
|
|
|
342
323
|
const totalPageNum = this._getTotalPageNumber(total, pageSize);
|
|
343
324
|
|
|
344
|
-
if (
|
|
325
|
+
if (Number.isNaN(page)) {
|
|
345
326
|
return;
|
|
346
327
|
} // If the user input is greater than totalPage
|
|
347
328
|
|
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
_Object$defineProperty(exports, "__esModule", {
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
4
|
value: true
|
|
7
5
|
});
|
|
8
|
-
|
|
9
6
|
exports.strings = exports.numbers = exports.cssClasses = void 0;
|
|
10
7
|
|
|
11
8
|
var _constants = require("../base/constants");
|
|
@@ -1,19 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
6
|
-
|
|
7
|
-
_Object$defineProperty(exports, "__esModule", {
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
8
4
|
value: true
|
|
9
5
|
});
|
|
10
|
-
|
|
11
6
|
exports.default = void 0;
|
|
12
7
|
|
|
13
8
|
var _foundation = _interopRequireDefault(require("../base/foundation"));
|
|
14
9
|
|
|
15
10
|
var _isPromise = _interopRequireDefault(require("../utils/isPromise"));
|
|
16
11
|
|
|
12
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
+
|
|
17
14
|
/* eslint-disable @typescript-eslint/no-empty-function */
|
|
18
15
|
class PopConfirmFoundation extends _foundation.default {
|
|
19
16
|
init() {}
|
|
@@ -1,17 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
6
|
-
|
|
7
|
-
_Object$defineProperty(exports, "__esModule", {
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
8
4
|
value: true
|
|
9
5
|
});
|
|
10
|
-
|
|
11
6
|
exports.strings = exports.numbers = exports.cssClasses = void 0;
|
|
12
7
|
|
|
13
|
-
var _assign = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/object/assign"));
|
|
14
|
-
|
|
15
8
|
var _constants = require("../tooltip/constants");
|
|
16
9
|
|
|
17
10
|
var _constants2 = require("../base/constants");
|
|
@@ -33,7 +26,7 @@ const strings = {
|
|
|
33
26
|
};
|
|
34
27
|
exports.strings = strings;
|
|
35
28
|
const numbers = {
|
|
36
|
-
ARROW_BOUNDING:
|
|
29
|
+
ARROW_BOUNDING: Object.assign(Object.assign({}, _constants.numbers.ARROW_BOUNDING), {
|
|
37
30
|
offsetY: 6,
|
|
38
31
|
offsetX: 0,
|
|
39
32
|
height: 8
|
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
_Object$defineProperty(exports, "__esModule", {
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
4
|
value: true
|
|
7
5
|
});
|
|
8
|
-
|
|
9
6
|
exports.strings = exports.cssClasses = void 0;
|
|
10
7
|
|
|
11
8
|
var _constants = require("../base/constants");
|
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
_Object$defineProperty(exports, "__esModule", {
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
4
|
value: true
|
|
7
5
|
});
|
|
8
|
-
|
|
9
6
|
exports.strings = exports.radioGroupClasses = exports.radioClasses = exports.numbers = void 0;
|
|
10
7
|
|
|
11
8
|
var _constants = require("../base/constants");
|
|
@@ -1,19 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
6
|
-
|
|
7
|
-
_Object$defineProperty(exports, "__esModule", {
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
8
4
|
value: true
|
|
9
5
|
});
|
|
10
|
-
|
|
11
6
|
exports.default = void 0;
|
|
12
7
|
|
|
13
8
|
var _foundation = _interopRequireDefault(require("../base/foundation"));
|
|
14
9
|
|
|
15
10
|
var _warning = _interopRequireDefault(require("../utils/warning"));
|
|
16
11
|
|
|
12
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
+
|
|
17
14
|
class RadioFoundation extends _foundation.default {
|
|
18
15
|
constructor() {
|
|
19
16
|
super(...arguments);
|
|
@@ -1,22 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
6
|
-
|
|
7
|
-
_Object$defineProperty(exports, "__esModule", {
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
8
4
|
value: true
|
|
9
5
|
});
|
|
10
|
-
|
|
11
6
|
exports.default = void 0;
|
|
12
7
|
|
|
13
|
-
var _assign = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/object/assign"));
|
|
14
|
-
|
|
15
8
|
var _foundation = _interopRequireDefault(require("../base/foundation"));
|
|
16
9
|
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
+
|
|
17
12
|
class RadioGroupFoundation extends _foundation.default {
|
|
18
13
|
constructor(adapter) {
|
|
19
|
-
super(
|
|
14
|
+
super(Object.assign({}, adapter));
|
|
20
15
|
}
|
|
21
16
|
|
|
22
17
|
init() {
|
|
@@ -51,8 +46,8 @@ class RadioGroupFoundation extends _foundation.default {
|
|
|
51
46
|
|
|
52
47
|
const isControlledComponent = this._adapter.isInProps('value');
|
|
53
48
|
|
|
54
|
-
const cbValue =
|
|
55
|
-
target:
|
|
49
|
+
const cbValue = Object.assign(Object.assign({}, evt), {
|
|
50
|
+
target: Object.assign(Object.assign({}, evt.target), {
|
|
56
51
|
value
|
|
57
52
|
})
|
|
58
53
|
});
|
|
@@ -1,22 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
6
|
-
|
|
7
|
-
_Object$defineProperty(exports, "__esModule", {
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
8
4
|
value: true
|
|
9
5
|
});
|
|
10
|
-
|
|
11
6
|
exports.default = void 0;
|
|
12
7
|
|
|
13
|
-
var _assign = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/object/assign"));
|
|
14
|
-
|
|
15
8
|
var _foundation = _interopRequireDefault(require("../base/foundation"));
|
|
16
9
|
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
+
|
|
17
12
|
class RadioInnerFoundation extends _foundation.default {
|
|
18
13
|
constructor(adapter) {
|
|
19
|
-
super(
|
|
14
|
+
super(Object.assign({}, adapter));
|
|
20
15
|
}
|
|
21
16
|
|
|
22
17
|
init() {
|
|
@@ -50,7 +45,7 @@ class RadioInnerFoundation extends _foundation.default {
|
|
|
50
45
|
};
|
|
51
46
|
|
|
52
47
|
const cbValue = {
|
|
53
|
-
target:
|
|
48
|
+
target: Object.assign(Object.assign({}, this.getProps()), {
|
|
54
49
|
checked
|
|
55
50
|
}),
|
|
56
51
|
stopPropagation,
|
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
_Object$defineProperty(exports, "__esModule", {
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
4
|
value: true
|
|
7
5
|
});
|
|
8
|
-
|
|
9
6
|
exports.strings = exports.cssClasses = void 0;
|
|
10
7
|
|
|
11
8
|
var _constants = require("../base/constants");
|