@douyinfe/semi-foundation 2.29.0 → 2.30.0-alpha.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.
Files changed (188) hide show
  1. package/lib/cjs/anchor/constants.js +1 -1
  2. package/lib/cjs/anchor/foundation.js +3 -3
  3. package/lib/cjs/autoComplete/constants.js +3 -3
  4. package/lib/cjs/avatar/constants.js +1 -1
  5. package/lib/cjs/backtop/constants.js +1 -1
  6. package/lib/cjs/badge/constants.js +1 -1
  7. package/lib/cjs/banner/constants.js +1 -1
  8. package/lib/cjs/breadcrumb/constants.js +1 -1
  9. package/lib/cjs/button/constants.js +1 -1
  10. package/lib/cjs/calendar/constants.js +1 -1
  11. package/lib/cjs/card/constants.js +1 -1
  12. package/lib/cjs/carousel/constants.js +9 -9
  13. package/lib/cjs/cascader/constants.js +2 -2
  14. package/lib/cjs/cascader/foundation.js +1 -1
  15. package/lib/cjs/cascader/util.js +2 -2
  16. package/lib/cjs/checkbox/constants.js +13 -13
  17. package/lib/cjs/collapse/constants.js +1 -1
  18. package/lib/cjs/collapsible/constants.js +1 -1
  19. package/lib/cjs/datePicker/_utils/getInsetInputFormatToken.js +1 -1
  20. package/lib/cjs/datePicker/_utils/getMonthTable.js +4 -4
  21. package/lib/cjs/datePicker/_utils/getMonthsInYear.js +1 -1
  22. package/lib/cjs/datePicker/constants.js +27 -27
  23. package/lib/cjs/datePicker/foundation.js +3 -3
  24. package/lib/cjs/datePicker/inputFoundation.js +2 -2
  25. package/lib/cjs/datePicker/monthsGridFoundation.js +1 -1
  26. package/lib/cjs/descriptions/constants.js +1 -1
  27. package/lib/cjs/divider/constants.js +1 -1
  28. package/lib/cjs/dropdown/constants.js +3 -3
  29. package/lib/cjs/dropdown/menuFoundation.js +1 -1
  30. package/lib/cjs/empty/constants.js +1 -1
  31. package/lib/cjs/form/constants.js +1 -1
  32. package/lib/cjs/form/foundation.js +1 -1
  33. package/lib/cjs/form/utils.js +1 -1
  34. package/lib/cjs/grid/constants.js +1 -1
  35. package/lib/cjs/highlight/constants.js +1 -1
  36. package/lib/cjs/icons/constants.js +1 -1
  37. package/lib/cjs/image/constants.js +1 -1
  38. package/lib/cjs/input/constants.js +1 -1
  39. package/lib/cjs/input/textareaFoundation.js +1 -1
  40. package/lib/cjs/layout/constants.js +1 -1
  41. package/lib/cjs/list/constants.js +1 -1
  42. package/lib/cjs/modal/constants.js +1 -1
  43. package/lib/cjs/navigation/constants.js +1 -1
  44. package/lib/cjs/notification/constants.js +3 -3
  45. package/lib/cjs/pagination/constants.js +1 -1
  46. package/lib/cjs/popconfirm/constants.js +2 -2
  47. package/lib/cjs/popover/constants.js +2 -2
  48. package/lib/cjs/progress/constants.js +1 -1
  49. package/lib/cjs/progress/generates.js +14 -14
  50. package/lib/cjs/radio/constants.js +13 -13
  51. package/lib/cjs/rating/constants.js +1 -1
  52. package/lib/cjs/scrollList/constants.js +2 -2
  53. package/lib/cjs/select/constants.js +3 -3
  54. package/lib/cjs/select/foundation.js +1 -2
  55. package/lib/cjs/sideSheet/constants.js +2 -2
  56. package/lib/cjs/skeleton/constants.js +1 -1
  57. package/lib/cjs/slider/constants.js +7 -7
  58. package/lib/cjs/space/constants.js +1 -1
  59. package/lib/cjs/spin/constants.js +1 -1
  60. package/lib/cjs/steps/bacisSteps.scss +286 -238
  61. package/lib/cjs/steps/constants.js +2 -2
  62. package/lib/cjs/steps/fillSteps.scss +148 -142
  63. package/lib/cjs/steps/navSteps.scss +60 -40
  64. package/lib/cjs/steps/steps.css +377 -14
  65. package/lib/cjs/switch/constants.js +13 -13
  66. package/lib/cjs/table/constants.js +7 -7
  67. package/lib/cjs/table/utils.js +2 -2
  68. package/lib/cjs/tabs/constants.js +21 -21
  69. package/lib/cjs/tag/constants.js +1 -1
  70. package/lib/cjs/tagInput/constants.js +1 -1
  71. package/lib/cjs/timePicker/ComboxFoundation.js +2 -2
  72. package/lib/cjs/timePicker/constants.js +3 -3
  73. package/lib/cjs/timePicker/utils/index.js +3 -3
  74. package/lib/cjs/timeline/constants.js +2 -2
  75. package/lib/cjs/toast/constants.js +3 -3
  76. package/lib/cjs/tooltip/constants.js +1 -1
  77. package/lib/cjs/tooltip/foundation.js +7 -7
  78. package/lib/cjs/transfer/constants.js +1 -1
  79. package/lib/cjs/tree/constants.js +2 -2
  80. package/lib/cjs/tree/treeUtil.d.ts +1 -1
  81. package/lib/cjs/tree/treeUtil.js +1 -1
  82. package/lib/cjs/treeSelect/constants.js +3 -3
  83. package/lib/cjs/typography/constants.js +1 -1
  84. package/lib/cjs/typography/formatNumeral.js +6 -6
  85. package/lib/cjs/upload/constants.d.ts +1 -1
  86. package/lib/cjs/upload/constants.js +2 -2
  87. package/lib/cjs/upload/foundation.js +1 -1
  88. package/lib/cjs/upload/utils.js +4 -4
  89. package/lib/cjs/utils/getMotionObjFromProps.js +2 -2
  90. package/lib/cjs/utils/touchPolyfill.js +1 -1
  91. package/lib/cjs/utils/uuid.js +2 -2
  92. package/lib/cjs/utils/warning.js +1 -1
  93. package/lib/es/anchor/constants.js +1 -1
  94. package/lib/es/anchor/foundation.js +3 -3
  95. package/lib/es/autoComplete/constants.js +3 -3
  96. package/lib/es/avatar/constants.js +1 -1
  97. package/lib/es/backtop/constants.js +1 -1
  98. package/lib/es/badge/constants.js +1 -1
  99. package/lib/es/banner/constants.js +1 -1
  100. package/lib/es/breadcrumb/constants.js +1 -1
  101. package/lib/es/button/constants.js +1 -1
  102. package/lib/es/calendar/constants.js +1 -1
  103. package/lib/es/card/constants.js +1 -1
  104. package/lib/es/carousel/constants.js +9 -9
  105. package/lib/es/cascader/constants.js +2 -2
  106. package/lib/es/cascader/foundation.js +1 -1
  107. package/lib/es/cascader/util.js +2 -2
  108. package/lib/es/checkbox/constants.js +13 -13
  109. package/lib/es/collapse/constants.js +1 -1
  110. package/lib/es/collapsible/constants.js +1 -1
  111. package/lib/es/datePicker/_utils/getInsetInputFormatToken.js +1 -1
  112. package/lib/es/datePicker/_utils/getMonthTable.js +4 -4
  113. package/lib/es/datePicker/_utils/getMonthsInYear.js +1 -1
  114. package/lib/es/datePicker/constants.js +27 -27
  115. package/lib/es/datePicker/foundation.js +3 -3
  116. package/lib/es/datePicker/inputFoundation.js +2 -2
  117. package/lib/es/datePicker/monthsGridFoundation.js +1 -1
  118. package/lib/es/descriptions/constants.js +1 -1
  119. package/lib/es/divider/constants.js +1 -1
  120. package/lib/es/dropdown/constants.js +3 -3
  121. package/lib/es/dropdown/menuFoundation.js +1 -1
  122. package/lib/es/empty/constants.js +1 -1
  123. package/lib/es/form/constants.js +1 -1
  124. package/lib/es/form/foundation.js +1 -1
  125. package/lib/es/form/utils.js +1 -1
  126. package/lib/es/grid/constants.js +1 -1
  127. package/lib/es/highlight/constants.js +1 -1
  128. package/lib/es/icons/constants.js +1 -1
  129. package/lib/es/image/constants.js +1 -1
  130. package/lib/es/input/constants.js +1 -1
  131. package/lib/es/input/textareaFoundation.js +1 -1
  132. package/lib/es/layout/constants.js +1 -1
  133. package/lib/es/list/constants.js +1 -1
  134. package/lib/es/modal/constants.js +1 -1
  135. package/lib/es/navigation/constants.js +1 -1
  136. package/lib/es/notification/constants.js +3 -3
  137. package/lib/es/pagination/constants.js +1 -1
  138. package/lib/es/popconfirm/constants.js +2 -2
  139. package/lib/es/popover/constants.js +2 -2
  140. package/lib/es/progress/constants.js +1 -1
  141. package/lib/es/progress/generates.js +14 -14
  142. package/lib/es/radio/constants.js +13 -13
  143. package/lib/es/rating/constants.js +1 -1
  144. package/lib/es/scrollList/constants.js +2 -2
  145. package/lib/es/select/constants.js +3 -3
  146. package/lib/es/select/foundation.js +1 -2
  147. package/lib/es/sideSheet/constants.js +2 -2
  148. package/lib/es/skeleton/constants.js +1 -1
  149. package/lib/es/slider/constants.js +7 -7
  150. package/lib/es/space/constants.js +1 -1
  151. package/lib/es/spin/constants.js +1 -1
  152. package/lib/es/steps/bacisSteps.scss +286 -238
  153. package/lib/es/steps/constants.js +2 -2
  154. package/lib/es/steps/fillSteps.scss +148 -142
  155. package/lib/es/steps/navSteps.scss +60 -40
  156. package/lib/es/steps/steps.css +377 -14
  157. package/lib/es/switch/constants.js +13 -13
  158. package/lib/es/table/constants.js +7 -7
  159. package/lib/es/table/utils.js +2 -2
  160. package/lib/es/tabs/constants.js +21 -21
  161. package/lib/es/tag/constants.js +1 -1
  162. package/lib/es/tagInput/constants.js +1 -1
  163. package/lib/es/timePicker/ComboxFoundation.js +2 -2
  164. package/lib/es/timePicker/constants.js +3 -3
  165. package/lib/es/timePicker/utils/index.js +3 -3
  166. package/lib/es/timeline/constants.js +2 -2
  167. package/lib/es/toast/constants.js +3 -3
  168. package/lib/es/tooltip/constants.js +1 -1
  169. package/lib/es/tooltip/foundation.js +7 -7
  170. package/lib/es/transfer/constants.js +1 -1
  171. package/lib/es/tree/constants.js +2 -2
  172. package/lib/es/tree/treeUtil.d.ts +1 -1
  173. package/lib/es/tree/treeUtil.js +1 -1
  174. package/lib/es/treeSelect/constants.js +3 -3
  175. package/lib/es/typography/constants.js +1 -1
  176. package/lib/es/typography/formatNumeral.js +6 -6
  177. package/lib/es/upload/constants.d.ts +1 -1
  178. package/lib/es/upload/constants.js +2 -2
  179. package/lib/es/upload/foundation.js +1 -1
  180. package/lib/es/upload/utils.js +4 -4
  181. package/lib/es/utils/getMotionObjFromProps.js +2 -2
  182. package/lib/es/utils/touchPolyfill.js +1 -1
  183. package/lib/es/utils/uuid.js +2 -2
  184. package/lib/es/utils/warning.js +1 -1
  185. package/package.json +2 -2
  186. package/steps/bacisSteps.scss +286 -238
  187. package/steps/fillSteps.scss +148 -142
  188. package/steps/navSteps.scss +60 -40
@@ -494,23 +494,23 @@ class Tooltip extends _foundation.default {
494
494
  if (position && triggerRect && translateX != null && translateY != null) {
495
495
  if (this.getProp('transformFromCenter')) {
496
496
  if (['topLeft', 'bottomLeft'].includes(position)) {
497
- return `${this._roundPixel(triggerRect.width / 2)}px ${-translateY * 100}%`;
497
+ return "".concat(this._roundPixel(triggerRect.width / 2), "px ").concat(-translateY * 100, "%");
498
498
  }
499
499
 
500
500
  if (['topRight', 'bottomRight'].includes(position)) {
501
- return `calc(100% - ${this._roundPixel(triggerRect.width / 2)}px) ${-translateY * 100}%`;
501
+ return "calc(100% - ".concat(this._roundPixel(triggerRect.width / 2), "px) ").concat(-translateY * 100, "%");
502
502
  }
503
503
 
504
504
  if (['leftTop', 'rightTop'].includes(position)) {
505
- return `${-translateX * 100}% ${this._roundPixel(triggerRect.height / 2)}px`;
505
+ return "".concat(-translateX * 100, "% ").concat(this._roundPixel(triggerRect.height / 2), "px");
506
506
  }
507
507
 
508
508
  if (['leftBottom', 'rightBottom'].includes(position)) {
509
- return `${-translateX * 100}% calc(100% - ${this._roundPixel(triggerRect.height / 2)}px)`;
509
+ return "".concat(-translateX * 100, "% calc(100% - ").concat(this._roundPixel(triggerRect.height / 2), "px)");
510
510
  }
511
511
  }
512
512
 
513
- return `${-translateX * 100}% ${-translateY * 100}%`;
513
+ return "".concat(-translateX * 100, "% ").concat(-translateY * 100, "%");
514
514
  }
515
515
 
516
516
  return null;
@@ -733,7 +733,7 @@ class Tooltip extends _foundation.default {
733
733
  let transform = ''; // eslint-disable-next-line
734
734
 
735
735
  if (translateX != null) {
736
- transform += `translateX(${translateX * 100}%) `;
736
+ transform += "translateX(".concat(translateX * 100, "%) ");
737
737
  Object.defineProperty(style, 'translateX', {
738
738
  enumerable: false,
739
739
  value: translateX
@@ -742,7 +742,7 @@ class Tooltip extends _foundation.default {
742
742
 
743
743
 
744
744
  if (translateY != null) {
745
- transform += `translateY(${translateY * 100}%) `;
745
+ transform += "translateY(".concat(translateY * 100, "%) ");
746
746
  Object.defineProperty(style, 'translateY', {
747
747
  enumerable: false,
748
748
  value: translateY
@@ -8,7 +8,7 @@ exports.strings = exports.numbers = exports.cssClasses = void 0;
8
8
  var _constants = require("../base/constants");
9
9
 
10
10
  const cssClasses = {
11
- PREFIX: `${_constants.BASE_CLASS_PREFIX}-transfer`
11
+ PREFIX: "".concat(_constants.BASE_CLASS_PREFIX, "-transfer")
12
12
  };
13
13
  exports.cssClasses = cssClasses;
14
14
  const strings = {
@@ -8,8 +8,8 @@ exports.strings = exports.numbers = exports.cssClasses = void 0;
8
8
  var _constants = require("../base/constants");
9
9
 
10
10
  const cssClasses = {
11
- PREFIX: `${_constants.BASE_CLASS_PREFIX}-tree`,
12
- PREFIX_OPTION: `${_constants.BASE_CLASS_PREFIX}-tree-option`
11
+ PREFIX: "".concat(_constants.BASE_CLASS_PREFIX, "-tree"),
12
+ PREFIX_OPTION: "".concat(_constants.BASE_CLASS_PREFIX, "-tree-option")
13
13
  };
14
14
  exports.cssClasses = cssClasses;
15
15
  const strings = {
@@ -75,6 +75,6 @@ export declare function getValueOrKey(data: any): any;
75
75
  export declare function normalizeValue(value: any, withObject: boolean): any;
76
76
  export declare function updateKeys(keySet: Set<string> | string[], keyEntities: KeyEntities): string[];
77
77
  export declare function calcDisabledKeys(keyEntities: KeyEntities): Set<string>;
78
- export declare function calcDropRelativePosition(event: any, treeNode: any): 1 | -1 | 0;
78
+ export declare function calcDropRelativePosition(event: any, treeNode: any): 0 | 1 | -1;
79
79
  export declare function getDragNodesKeys(key: string, keyEntities: KeyEntities): string[];
80
80
  export declare function calcDropActualPosition(pos: string, relativeDropPos: any): any;
@@ -55,7 +55,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
55
55
  const DRAG_OFFSET = 0.45;
56
56
 
57
57
  function getPosition(level, index) {
58
- return `${level}-${index}`;
58
+ return "".concat(level, "-").concat(index);
59
59
  }
60
60
 
61
61
  function isValid(val) {
@@ -8,9 +8,9 @@ exports.strings = exports.numbers = exports.cssClasses = void 0;
8
8
  var _constants = require("../base/constants");
9
9
 
10
10
  const cssClasses = {
11
- PREFIX: `${_constants.BASE_CLASS_PREFIX}-tree-select`,
12
- PREFIX_TREE: `${_constants.BASE_CLASS_PREFIX}-tree`,
13
- PREFIX_OPTION: `${_constants.BASE_CLASS_PREFIX}-tree-select-option`
11
+ PREFIX: "".concat(_constants.BASE_CLASS_PREFIX, "-tree-select"),
12
+ PREFIX_TREE: "".concat(_constants.BASE_CLASS_PREFIX, "-tree"),
13
+ PREFIX_OPTION: "".concat(_constants.BASE_CLASS_PREFIX, "-tree-select-option")
14
14
  };
15
15
  exports.cssClasses = cssClasses;
16
16
  const strings = {
@@ -8,7 +8,7 @@ exports.strings = exports.cssClasses = void 0;
8
8
  var _constants = require("../base/constants");
9
9
 
10
10
  const cssClasses = {
11
- PREFIX: `${_constants.BASE_CLASS_PREFIX}-typography`
11
+ PREFIX: "".concat(_constants.BASE_CLASS_PREFIX, "-typography")
12
12
  };
13
13
  exports.cssClasses = cssClasses;
14
14
  const strings = {
@@ -18,7 +18,7 @@ class FormatNumeral {
18
18
  i++;
19
19
  }
20
20
 
21
- return `${this.truncatePrecision(value)} ${units[i]}`;
21
+ return "".concat(this.truncatePrecision(value), " ").concat(units[i]);
22
22
  },
23
23
  'bytes-binary': value => {
24
24
  const units = ['B', 'KiB', 'MiB', 'GiB', 'TiB', 'PiB', 'EiB', 'ZiB', 'YiB'];
@@ -29,21 +29,21 @@ class FormatNumeral {
29
29
  i++;
30
30
  }
31
31
 
32
- return `${this.truncatePrecision(value)} ${units[i]}`;
32
+ return "".concat(this.truncatePrecision(value), " ").concat(units[i]);
33
33
  },
34
34
  percentages: value => {
35
35
  const cArr = value.toString().split('.');
36
36
 
37
37
  if (Number(cArr[0]) === 0) {
38
- return `${this.truncatePrecision(value * 100)}%`;
38
+ return "".concat(this.truncatePrecision(value * 100), "%");
39
39
  }
40
40
 
41
- return `${this.truncatePrecision(value)}%`;
41
+ return "".concat(this.truncatePrecision(value), "%");
42
42
  },
43
43
  exponential: value => {
44
44
  const vExponential = value.toExponential(this.precision + 2);
45
45
  const vArr = vExponential.split('e');
46
- return `${this.truncatePrecision(Number(vArr[0]))}e${vArr[1]}`;
46
+ return "".concat(this.truncatePrecision(Number(vArr[0])), "e").concat(vArr[1]);
47
47
  }
48
48
  }; // A collection of methods for truncating numbers; Methods key: Truncate (strings.Truncate);
49
49
 
@@ -93,7 +93,7 @@ class FormatNumeral {
93
93
  const cTLength = cArr[1].length; // Fill in any missing `0` at the end.
94
94
 
95
95
  if (cTLength < this.precision) {
96
- return `${cArr[0]}.${cArr[1]}${'0'.repeat(this.precision - cTLength)}`;
96
+ return "".concat(cArr[0], ".").concat(cArr[1]).concat('0'.repeat(this.precision - cTLength));
97
97
  }
98
98
 
99
99
  return cTruncated.toString();
@@ -18,7 +18,7 @@ declare const strings: {
18
18
  DRAG_AREA_ILLEGAL: string;
19
19
  TRIGGER_AUTO: "auto";
20
20
  TRIGGER_CUSTOM: "custom";
21
- UPLOAD_TRIGGER: ("auto" | "custom")[];
21
+ UPLOAD_TRIGGER: ("custom" | "auto")[];
22
22
  VALIDATE_STATUS: readonly ["default", "error", "warning", "success"];
23
23
  PROMPT_POSITION: readonly ["left", "right", "bottom"];
24
24
  };
@@ -7,14 +7,14 @@ exports.strings = exports.numbers = exports.cssClasses = void 0;
7
7
 
8
8
  var _constants = require("../base/constants");
9
9
 
10
- const PREFIX = `${_constants.BASE_CLASS_PREFIX}-upload`;
10
+ const PREFIX = "".concat(_constants.BASE_CLASS_PREFIX, "-upload");
11
11
  const FILE_LIST_PIC = 'picture';
12
12
  const FILE_LIST_DEFAULT = 'list';
13
13
  const PROGRESS_COEFFICIENT = 0.95;
14
14
  const cssClasses = {
15
15
  PREFIX,
16
16
  // WRAPPER: `${PREFIX}-wrapper`,
17
- LIST: `${PREFIX}-list`
17
+ LIST: "".concat(PREFIX, "-list")
18
18
  };
19
19
  exports.cssClasses = cssClasses;
20
20
  const TRIGGER_AUTO = 'auto';
@@ -77,7 +77,7 @@ class UploadFoundation extends _foundation.default {
77
77
  fileName
78
78
  } = _ref;
79
79
  const status = xhr ? xhr.status : 0;
80
- const msg = message || `cannot post ${fileName} to ${action}, xhr status: ${status}'`;
80
+ const msg = message || "cannot post ".concat(fileName, " to ").concat(action, ", xhr status: ").concat(status, "'");
81
81
  const err = new Error(msg);
82
82
  err.status = status;
83
83
  err.method = 'post';
@@ -48,11 +48,11 @@ exports.byteMB = byteMB;
48
48
 
49
49
  function getFileSize(number) {
50
50
  if (number < byteKB) {
51
- return `${(number / byteKB).toFixed(2)}KB`;
51
+ return "".concat((number / byteKB).toFixed(2), "KB");
52
52
  } else if (number >= byteKB && number < byteMB) {
53
- return `${(number / byteKB).toFixed(1)}KB`;
53
+ return "".concat((number / byteKB).toFixed(1), "KB");
54
54
  } else if (number >= byteMB) {
55
- return `${(number / byteMB).toFixed(1)}MB`;
55
+ return "".concat((number / byteMB).toFixed(1), "MB");
56
56
  }
57
57
 
58
58
  return undefined;
@@ -125,7 +125,7 @@ function mapFileTree(items) {
125
125
 
126
126
  for (let index = 0; index < entries.length; index++) {
127
127
  const entry = entries[index];
128
- yield _traverseFileTree(entry, `${path}${item.name}/`);
128
+ yield _traverseFileTree(entry, "".concat(path).concat(item.name, "/"));
129
129
  }
130
130
  }
131
131
  });
@@ -28,7 +28,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
28
28
  */
29
29
  function getMotionObjFromProps(props) {
30
30
  if (typeof props !== 'object' || props === null) {
31
- throw new TypeError(`props should be object type, got ${typeof props}`);
31
+ throw new TypeError("props should be object type, got ".concat(typeof props));
32
32
  }
33
33
 
34
34
  const MOTION_PROPS = ['willEnter', 'didEnter', 'willLeave', 'didLeave', 'onStart', 'onRest', 'state'];
@@ -52,7 +52,7 @@ function getMotionObjFromProps(props) {
52
52
  };
53
53
  }
54
54
  } else {
55
- (0, _warning.default)(true, `[Semi] duplicate motion key '${key}' from motion prop and props`);
55
+ (0, _warning.default)(true, "[Semi] duplicate motion key '".concat(key, "' from motion prop and props"));
56
56
  }
57
57
  }
58
58
  } else if (typeof motionProp === 'function') {
@@ -30,7 +30,7 @@ const touchEventPolyfill = (touch, touchEvent) => {
30
30
  }
31
31
 
32
32
  if (touch[key]) {
33
- (0, _warning.default)(true, `"The key ${key}" exist in Touch.`);
33
+ (0, _warning.default)(true, "\"The key ".concat(key, "\" exist in Touch."));
34
34
  } else {
35
35
  touch[key] = value;
36
36
  }
@@ -8,7 +8,7 @@ exports.getUuidShort = getUuidShort;
8
8
  exports.getUuidv4 = getUuidv4;
9
9
 
10
10
  function getUuid(prefix) {
11
- return `${prefix}-${new Date().getTime()}-${Math.random()}`;
11
+ return "".concat(prefix, "-").concat(new Date().getTime(), "-").concat(Math.random());
12
12
  } // https://stackoverflow.com/questions/105034/create-guid-uuid-in-javascript
13
13
 
14
14
 
@@ -49,5 +49,5 @@ function getUuidShort() {
49
49
  randomId += characters.charAt(random);
50
50
  }
51
51
 
52
- return prefix ? `${prefix}-${randomId}` : randomId;
52
+ return prefix ? "".concat(prefix, "-").concat(randomId) : randomId;
53
53
  }
@@ -7,6 +7,6 @@ exports.default = warning;
7
7
 
8
8
  function warning(flag, info) {
9
9
  if (flag) {
10
- console.warn(`Warning: ${info}`);
10
+ console.warn("Warning: ".concat(info));
11
11
  }
12
12
  }
@@ -1,6 +1,6 @@
1
1
  import { BASE_CLASS_PREFIX } from '../base/constants';
2
2
  const cssClasses = {
3
- PREFIX: `${BASE_CLASS_PREFIX}-anchor`
3
+ PREFIX: "".concat(BASE_CLASS_PREFIX, "-anchor")
4
4
  };
5
5
  const strings = {
6
6
  SIZE: ['small', 'default'],
@@ -43,12 +43,12 @@ export default class AnchorFoundation extends BaseFoundation {
43
43
 
44
44
 
45
45
  this.setScrollHeight = () => {
46
- const anchorWrapper = `.${prefixCls}-link-wrapper`;
46
+ const anchorWrapper = ".".concat(prefixCls, "-link-wrapper");
47
47
 
48
48
  const anchorNode = this._adapter.getAnchorNode(anchorWrapper);
49
49
 
50
50
  if (anchorNode) {
51
- const scrollHeight = `${anchorNode.scrollHeight}px`;
51
+ const scrollHeight = "".concat(anchorNode.scrollHeight, "px");
52
52
 
53
53
  this._adapter.setScrollHeight(scrollHeight);
54
54
  }
@@ -233,7 +233,7 @@ export default class AnchorFoundation extends BaseFoundation {
233
233
  };
234
234
 
235
235
  this._setActiveSlide = () => {
236
- const activeClass = `.${cssClasses.PREFIX}-link-title-active`;
236
+ const activeClass = ".".concat(cssClasses.PREFIX, "-link-title-active");
237
237
 
238
238
  const linkNode = this._adapter.getAnchorNode(activeClass);
239
239
 
@@ -1,9 +1,9 @@
1
1
  import { strings as tooltipStrings } from '../tooltip/constants';
2
2
  import { BASE_CLASS_PREFIX, VALIDATE_STATUS } from '../base/constants';
3
3
  const cssClasses = {
4
- PREFIX: `${BASE_CLASS_PREFIX}-autocomplete`,
5
- PREFIX_OPTION: `${BASE_CLASS_PREFIX}-autoComplete-option`,
6
- PREFIX_GROUP: `${BASE_CLASS_PREFIX}-autoComplete-group`
4
+ PREFIX: "".concat(BASE_CLASS_PREFIX, "-autocomplete"),
5
+ PREFIX_OPTION: "".concat(BASE_CLASS_PREFIX, "-autoComplete-option"),
6
+ PREFIX_GROUP: "".concat(BASE_CLASS_PREFIX, "-autoComplete-group")
7
7
  };
8
8
  const strings = {
9
9
  SIZE: ['small', 'large', 'default'],
@@ -1,6 +1,6 @@
1
1
  import { BASE_CLASS_PREFIX } from '../base/constants';
2
2
  const cssClasses = {
3
- PREFIX: `${BASE_CLASS_PREFIX}-avatar`
3
+ PREFIX: "".concat(BASE_CLASS_PREFIX, "-avatar")
4
4
  };
5
5
  const strings = {
6
6
  SHAPE: ['circle', 'square'],
@@ -1,6 +1,6 @@
1
1
  import { BASE_CLASS_PREFIX } from '../base/constants';
2
2
  const cssClasses = {
3
- PREFIX: `${BASE_CLASS_PREFIX}-backtop`
3
+ PREFIX: "".concat(BASE_CLASS_PREFIX, "-backtop")
4
4
  };
5
5
  const strings = {};
6
6
  export { cssClasses, strings };
@@ -1,6 +1,6 @@
1
1
  import { BASE_CLASS_PREFIX } from '../base/constants';
2
2
  const cssClasses = {
3
- PREFIX: `${BASE_CLASS_PREFIX}-badge`
3
+ PREFIX: "".concat(BASE_CLASS_PREFIX, "-badge")
4
4
  };
5
5
  const strings = {
6
6
  TYPE_SET: ['primary', 'secondary', 'tertiary', 'warning', 'danger'],
@@ -1,6 +1,6 @@
1
1
  import { BASE_CLASS_PREFIX } from '../base/constants';
2
2
  const cssClasses = {
3
- PREFIX: `${BASE_CLASS_PREFIX}-banner`
3
+ PREFIX: "".concat(BASE_CLASS_PREFIX, "-banner")
4
4
  };
5
5
  const strings = {
6
6
  TYPE: ['info', 'success', 'danger', 'warning']
@@ -1,6 +1,6 @@
1
1
  import { BASE_CLASS_PREFIX } from '../base/constants';
2
2
  const cssClasses = {
3
- PREFIX: `${BASE_CLASS_PREFIX}-breadcrumb`
3
+ PREFIX: "".concat(BASE_CLASS_PREFIX, "-breadcrumb")
4
4
  };
5
5
  const strings = {
6
6
  MORE_TYPE: ['default', 'popover']
@@ -1,6 +1,6 @@
1
1
  import { BASE_CLASS_PREFIX } from '../base/constants';
2
2
  const cssClasses = {
3
- PREFIX: `${BASE_CLASS_PREFIX}-button`
3
+ PREFIX: "".concat(BASE_CLASS_PREFIX, "-button")
4
4
  };
5
5
  const strings = {
6
6
  sizes: ['default', 'small', 'large'],
@@ -1,6 +1,6 @@
1
1
  import { BASE_CLASS_PREFIX } from '../base/constants';
2
2
  const cssClasses = {
3
- PREFIX: `${BASE_CLASS_PREFIX}-calendar`
3
+ PREFIX: "".concat(BASE_CLASS_PREFIX, "-calendar")
4
4
  };
5
5
  const strings = {
6
6
  MODE: ['day', 'week', 'month', 'range']
@@ -1,6 +1,6 @@
1
1
  import { BASE_CLASS_PREFIX } from '../base/constants';
2
2
  const cssClasses = {
3
- PREFIX: `${BASE_CLASS_PREFIX}-card`
3
+ PREFIX: "".concat(BASE_CLASS_PREFIX, "-card")
4
4
  };
5
5
  const strings = {
6
6
  SHADOWS: ['hover', 'always'],
@@ -1,14 +1,14 @@
1
1
  import { BASE_CLASS_PREFIX } from '../base/constants';
2
2
  const cssClasses = {
3
- CAROUSEL: `${BASE_CLASS_PREFIX}-carousel`,
4
- CAROUSEL_INDICATOR: `${BASE_CLASS_PREFIX}-carousel-indicator`,
5
- CAROUSEL_INDICATOR_LINE: `${BASE_CLASS_PREFIX}-carousel-indicator-line`,
6
- CAROUSEL_INDICATOR_DOT: `${BASE_CLASS_PREFIX}-carousel-indicator-dot`,
7
- CAROUSEL_INDICATOR_COLUMNAR: `${BASE_CLASS_PREFIX}-carousel-indicator-columnar`,
8
- CAROUSEL_INDICATOR_INACTIVE: `${BASE_CLASS_PREFIX}-carousel-indicator-inactive`,
9
- CAROUSEL_INDICATOR_ACTIVE: `${BASE_CLASS_PREFIX}-carousel-indicator-active`,
10
- CAROUSEL_CONTENT: `${BASE_CLASS_PREFIX}-carousel-content`,
11
- CAROUSEL_ARROW: `${BASE_CLASS_PREFIX}-carousel-arrow`
3
+ CAROUSEL: "".concat(BASE_CLASS_PREFIX, "-carousel"),
4
+ CAROUSEL_INDICATOR: "".concat(BASE_CLASS_PREFIX, "-carousel-indicator"),
5
+ CAROUSEL_INDICATOR_LINE: "".concat(BASE_CLASS_PREFIX, "-carousel-indicator-line"),
6
+ CAROUSEL_INDICATOR_DOT: "".concat(BASE_CLASS_PREFIX, "-carousel-indicator-dot"),
7
+ CAROUSEL_INDICATOR_COLUMNAR: "".concat(BASE_CLASS_PREFIX, "-carousel-indicator-columnar"),
8
+ CAROUSEL_INDICATOR_INACTIVE: "".concat(BASE_CLASS_PREFIX, "-carousel-indicator-inactive"),
9
+ CAROUSEL_INDICATOR_ACTIVE: "".concat(BASE_CLASS_PREFIX, "-carousel-indicator-active"),
10
+ CAROUSEL_CONTENT: "".concat(BASE_CLASS_PREFIX, "-carousel-content"),
11
+ CAROUSEL_ARROW: "".concat(BASE_CLASS_PREFIX, "-carousel-arrow")
12
12
  };
13
13
  const numbers = {
14
14
  DEFAULT_ACTIVE_INDEX: 0,
@@ -1,7 +1,7 @@
1
1
  import { BASE_CLASS_PREFIX } from '../base/constants';
2
2
  const cssClasses = {
3
- PREFIX: `${BASE_CLASS_PREFIX}-cascader`,
4
- PREFIX_OPTION: `${BASE_CLASS_PREFIX}-cascader-option`
3
+ PREFIX: "".concat(BASE_CLASS_PREFIX, "-cascader"),
4
+ PREFIX_OPTION: "".concat(BASE_CLASS_PREFIX, "-cascader-option")
5
5
  };
6
6
  const strings = {
7
7
  SIZE_SET: ['small', 'large', 'default'],
@@ -299,7 +299,7 @@ export default class CascaderFoundation extends BaseFoundation {
299
299
  }
300
300
  } else if (value && value.length) {
301
301
  const val = valuePath[valuePath.length - 1];
302
- const key = `not-exist-${val}`;
302
+ const key = "not-exist-".concat(val);
303
303
  const optionNotExist = {
304
304
  data: {
305
305
  label: val,
@@ -4,7 +4,7 @@ import _isNull from "lodash/isNull";
4
4
  import { strings } from './constants';
5
5
 
6
6
  function getPosition(level, index) {
7
- return `${level}-${index}`;
7
+ return "".concat(level, "-").concat(index);
8
8
  }
9
9
 
10
10
  export function isValid(val) {
@@ -27,7 +27,7 @@ function traverseDataNodes(treeNodes, callback) {
27
27
  let item = null; // Process node if is not root
28
28
 
29
29
  if (node) {
30
- const key = parent ? getPosition(parent.key, ind) : `${ind}`;
30
+ const key = parent ? getPosition(parent.key, ind) : "".concat(ind);
31
31
  item = {
32
32
  data: Object.assign({}, node),
33
33
  ind,
@@ -1,21 +1,21 @@
1
1
  import { BASE_CLASS_PREFIX } from '../base/constants';
2
2
  const checkboxClasses = {
3
- PREFIX: `${BASE_CLASS_PREFIX}-checkbox`,
4
- INNER: `${BASE_CLASS_PREFIX}-checkbox-inner`,
5
- TEXT: `${BASE_CLASS_PREFIX}-checkbox-text`,
6
- INPUT: `${BASE_CLASS_PREFIX}-checkbox-input`,
7
- CHECKED: `${BASE_CLASS_PREFIX}-checkbox-checked`,
8
- DISABLED: `${BASE_CLASS_PREFIX}-checkbox-disabled`,
9
- BUTTON: `${BASE_CLASS_PREFIX}-checkbox-button`,
3
+ PREFIX: "".concat(BASE_CLASS_PREFIX, "-checkbox"),
4
+ INNER: "".concat(BASE_CLASS_PREFIX, "-checkbox-inner"),
5
+ TEXT: "".concat(BASE_CLASS_PREFIX, "-checkbox-text"),
6
+ INPUT: "".concat(BASE_CLASS_PREFIX, "-checkbox-input"),
7
+ CHECKED: "".concat(BASE_CLASS_PREFIX, "-checkbox-checked"),
8
+ DISABLED: "".concat(BASE_CLASS_PREFIX, "-checkbox-disabled"),
9
+ BUTTON: "".concat(BASE_CLASS_PREFIX, "-checkbox-button"),
10
10
  WRAPPER: ''
11
11
  };
12
12
  const checkboxGroupClasses = {
13
- PREFIX: `${BASE_CLASS_PREFIX}-checkboxGroup`,
14
- INNER: `${BASE_CLASS_PREFIX}-checkboxGroup-inner`,
15
- TEXT: `${BASE_CLASS_PREFIX}-checkboxGroup-text`,
16
- INPUT: `${BASE_CLASS_PREFIX}-checkboxGroup-input`,
17
- CHECKED: `${BASE_CLASS_PREFIX}-checkboxGroup-checked`,
18
- DISABLED: `${BASE_CLASS_PREFIX}-checkboxGroup-disabled`
13
+ PREFIX: "".concat(BASE_CLASS_PREFIX, "-checkboxGroup"),
14
+ INNER: "".concat(BASE_CLASS_PREFIX, "-checkboxGroup-inner"),
15
+ TEXT: "".concat(BASE_CLASS_PREFIX, "-checkboxGroup-text"),
16
+ INPUT: "".concat(BASE_CLASS_PREFIX, "-checkboxGroup-input"),
17
+ CHECKED: "".concat(BASE_CLASS_PREFIX, "-checkboxGroup-checked"),
18
+ DISABLED: "".concat(BASE_CLASS_PREFIX, "-checkboxGroup-disabled")
19
19
  };
20
20
  const strings = {
21
21
  DIRECTION_SET: ['horizontal', 'vertical'],
@@ -1,6 +1,6 @@
1
1
  import { BASE_CLASS_PREFIX } from '../base/constants';
2
2
  const cssClasses = {
3
- PREFIX: `${BASE_CLASS_PREFIX}-collapse`
3
+ PREFIX: "".concat(BASE_CLASS_PREFIX, "-collapse")
4
4
  };
5
5
  const strings = {
6
6
  iconPosition: ['left', 'right']
@@ -1,5 +1,5 @@
1
1
  import { BASE_CLASS_PREFIX } from '../base/constants';
2
2
  const cssClasses = {
3
- PREFIX: `${BASE_CLASS_PREFIX}-collapsible`
3
+ PREFIX: "".concat(BASE_CLASS_PREFIX, "-collapsible")
4
4
  };
5
5
  export { cssClasses };
@@ -29,7 +29,7 @@ export default function getInsetInputFormatToken(options) {
29
29
  case 'dateTime':
30
30
  case 'dateTimeRange':
31
31
  const dateTimeResult = dateTimeReg.exec(format);
32
- insetInputFormat = dateTimeResult && dateTimeResult[1] && dateTimeResult[2] ? `${dateTimeResult[1]} ${dateTimeResult[2]}` : defaultToken;
32
+ insetInputFormat = dateTimeResult && dateTimeResult[1] && dateTimeResult[2] ? "".concat(dateTimeResult[1], " ").concat(dateTimeResult[2]) : defaultToken;
33
33
  break;
34
34
 
35
35
  case 'date':
@@ -11,9 +11,9 @@ function formatFullDate() {
11
11
  let month = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
12
12
  let day = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';
13
13
  let dateStr = '';
14
- const monthFull = typeof month === 'number' && month < 10 ? `0${month}` : month.toString();
15
- const dayNumberFull = typeof day === 'number' && day < 10 ? `0${day}` : day.toString();
16
- dateStr = `${String(year)}-${monthFull}-${dayNumberFull}`;
14
+ const monthFull = typeof month === 'number' && month < 10 ? "0".concat(month) : month.toString();
15
+ const dayNumberFull = typeof day === 'number' && day < 10 ? "0".concat(day) : day.toString();
16
+ dateStr = "".concat(String(year), "-").concat(monthFull, "-").concat(dayNumberFull);
17
17
  return dateStr;
18
18
  }
19
19
 
@@ -47,7 +47,7 @@ function getWeeks(date) {
47
47
 
48
48
  for (let d = 0; d < daysInMonth; d++) {
49
49
  const dayNumber = d + 1;
50
- const dayNumberFull = dayNumber < 10 ? `0${dayNumber}` : dayNumber.toString();
50
+ const dayNumberFull = dayNumber < 10 ? "0".concat(dayNumber) : dayNumber.toString();
51
51
  const fullDate = formatFullDate(year, month, dayNumber);
52
52
  week.push({
53
53
  dayNumber,
@@ -1,5 +1,5 @@
1
1
  const getMonthsInYear = year => Array.from({
2
2
  length: 12
3
- }, (v, i) => `${year}-${i + 1}`);
3
+ }, (v, i) => "".concat(year, "-").concat(i + 1));
4
4
 
5
5
  export default getMonthsInYear;