evui 3.3.36 → 3.3.39

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 (141) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +40 -40
  3. package/dist/evui.common.js +1907 -1832
  4. package/dist/evui.common.js.map +1 -1
  5. package/dist/evui.umd.js +1907 -1832
  6. package/dist/evui.umd.js.map +1 -1
  7. package/dist/evui.umd.min.js +1 -1
  8. package/dist/evui.umd.min.js.map +1 -1
  9. package/dist/img/{EVUI.7f3588fb.svg → EVUI.b82ee81a.svg} +292 -292
  10. package/dist/img/{icon_mysql.7ea26d5d.svg → icon_mysql.1085fdc9.svg} +78 -78
  11. package/dist/img/{icon_oracle.9009b108.svg → icon_oracle.0572d3ee.svg} +13 -13
  12. package/dist/img/{icon_postgresql.f8fffba9.svg → icon_postgresql.ee12bde8.svg} +58 -58
  13. package/package.json +61 -61
  14. package/src/common/emitter.js +20 -20
  15. package/src/common/utils.debounce.js +223 -223
  16. package/src/common/utils.js +134 -134
  17. package/src/common/utils.table.js +78 -78
  18. package/src/common/utils.throttle.js +83 -83
  19. package/src/common/utils.tree.js +18 -18
  20. package/src/components/button/Button.vue +198 -198
  21. package/src/components/button/index.js +7 -7
  22. package/src/components/buttonGroup/ButtonGroup.vue +11 -11
  23. package/src/components/buttonGroup/index.js +7 -7
  24. package/src/components/calendar/Calendar.vue +661 -661
  25. package/src/components/calendar/index.js +7 -7
  26. package/src/components/calendar/uses.js +1272 -1272
  27. package/src/components/chart/Chart.vue +189 -192
  28. package/src/components/chart/chart.core.js +870 -870
  29. package/src/components/chart/element/element.bar.js +524 -524
  30. package/src/components/chart/element/element.bar.time.js +156 -156
  31. package/src/components/chart/element/element.heatmap.js +533 -533
  32. package/src/components/chart/element/element.line.js +339 -339
  33. package/src/components/chart/element/element.pie.js +197 -197
  34. package/src/components/chart/element/element.scatter.js +184 -184
  35. package/src/components/chart/element/element.tip.js +550 -542
  36. package/src/components/chart/helpers/helpers.canvas.js +265 -265
  37. package/src/components/chart/helpers/helpers.constant.js +206 -206
  38. package/src/components/chart/helpers/helpers.util.js +346 -338
  39. package/src/components/chart/index.js +9 -9
  40. package/src/components/chart/model/index.js +4 -4
  41. package/src/components/chart/model/model.series.js +93 -93
  42. package/src/components/chart/model/model.store.js +977 -967
  43. package/src/components/chart/plugins/plugins.interaction.js +769 -769
  44. package/src/components/chart/plugins/plugins.legend.gradient.js +602 -602
  45. package/src/components/chart/plugins/plugins.legend.js +1155 -1151
  46. package/src/components/chart/plugins/plugins.pie.js +254 -254
  47. package/src/components/chart/plugins/plugins.title.js +56 -56
  48. package/src/components/chart/plugins/plugins.tooltip.js +692 -692
  49. package/src/components/chart/scale/scale.js +848 -848
  50. package/src/components/chart/scale/scale.linear.js +38 -38
  51. package/src/components/chart/scale/scale.logarithmic.js +128 -128
  52. package/src/components/chart/scale/scale.step.js +336 -336
  53. package/src/components/chart/scale/scale.time.category.js +277 -277
  54. package/src/components/chart/scale/scale.time.js +48 -48
  55. package/src/components/chart/style/chart.scss +312 -312
  56. package/src/components/chart/uses.js +264 -252
  57. package/src/components/checkbox/Checkbox.vue +200 -200
  58. package/src/components/checkbox/index.js +7 -7
  59. package/src/components/checkboxGroup/CheckboxGroup.vue +44 -44
  60. package/src/components/checkboxGroup/index.js +7 -7
  61. package/src/components/contextMenu/ContextMenu.vue +80 -80
  62. package/src/components/contextMenu/MenuList.vue +149 -149
  63. package/src/components/contextMenu/index.js +7 -7
  64. package/src/components/contextMenu/uses.js +203 -203
  65. package/src/components/datePicker/DatePicker.vue +437 -437
  66. package/src/components/datePicker/index.js +7 -7
  67. package/src/components/datePicker/uses.js +419 -419
  68. package/src/components/grid/Grid.vue +827 -827
  69. package/src/components/grid/grid.filter.window.vue +493 -493
  70. package/src/components/grid/grid.pagination.vue +75 -75
  71. package/src/components/grid/grid.summary.vue +265 -265
  72. package/src/components/grid/grid.toolbar.vue +26 -26
  73. package/src/components/grid/index.js +11 -11
  74. package/src/components/grid/style/grid.scss +263 -263
  75. package/src/components/grid/uses.js +1002 -1007
  76. package/src/components/icon/Icon.vue +49 -49
  77. package/src/components/icon/index.js +8 -8
  78. package/src/components/inputNumber/InputNumber.vue +212 -212
  79. package/src/components/inputNumber/index.js +7 -7
  80. package/src/components/inputNumber/uses.js +217 -217
  81. package/src/components/loading/Loading.vue +125 -125
  82. package/src/components/loading/index.js +7 -7
  83. package/src/components/menu/Menu.vue +68 -68
  84. package/src/components/menu/MenuItem.vue +187 -187
  85. package/src/components/menu/index.js +7 -7
  86. package/src/components/message/Message.vue +223 -223
  87. package/src/components/message/index.js +31 -31
  88. package/src/components/messageBox/MessageBox.vue +358 -358
  89. package/src/components/messageBox/index.js +22 -22
  90. package/src/components/notification/Notification.vue +316 -316
  91. package/src/components/notification/index.js +49 -49
  92. package/src/components/pagination/Pagination.vue +271 -271
  93. package/src/components/pagination/index.js +7 -7
  94. package/src/components/pagination/pageButton.vue +30 -30
  95. package/src/components/progress/Progress.vue +139 -139
  96. package/src/components/progress/index.js +7 -7
  97. package/src/components/radio/Radio.vue +159 -159
  98. package/src/components/radio/index.js +7 -7
  99. package/src/components/radioGroup/RadioGroup.vue +41 -41
  100. package/src/components/radioGroup/index.js +7 -7
  101. package/src/components/scheduler/Scheduler.vue +149 -149
  102. package/src/components/scheduler/index.js +7 -7
  103. package/src/components/scheduler/uses.js +183 -183
  104. package/src/components/select/Select.vue +440 -440
  105. package/src/components/select/index.js +7 -7
  106. package/src/components/select/uses.js +270 -270
  107. package/src/components/slider/Slider.vue +505 -505
  108. package/src/components/slider/index.js +7 -7
  109. package/src/components/slider/uses.js +390 -390
  110. package/src/components/tabPanel/TabPanel.vue +74 -74
  111. package/src/components/tabPanel/index.js +7 -7
  112. package/src/components/tabs/Tabs.vue +517 -517
  113. package/src/components/tabs/index.js +7 -7
  114. package/src/components/textField/TextField.vue +375 -375
  115. package/src/components/textField/index.js +7 -7
  116. package/src/components/timePicker/TimePicker.vue +352 -352
  117. package/src/components/timePicker/index.js +7 -7
  118. package/src/components/toggle/Toggle.vue +115 -115
  119. package/src/components/toggle/index.js +7 -7
  120. package/src/components/tree/Tree.vue +313 -313
  121. package/src/components/tree/TreeNode.vue +293 -293
  122. package/src/components/tree/index.js +7 -7
  123. package/src/components/treeGrid/TreeGrid.vue +758 -758
  124. package/src/components/treeGrid/TreeGridNode.vue +275 -275
  125. package/src/components/treeGrid/index.js +9 -9
  126. package/src/components/treeGrid/style/treeGrid.scss +261 -261
  127. package/src/components/treeGrid/treeGrid.toolbar.vue +26 -26
  128. package/src/components/treeGrid/uses.js +867 -867
  129. package/src/components/window/Window.vue +329 -329
  130. package/src/components/window/index.js +7 -7
  131. package/src/components/window/uses.js +899 -899
  132. package/src/directives/clickoutside.js +90 -90
  133. package/src/main.js +116 -116
  134. package/src/style/components/input.scss +108 -108
  135. package/src/style/functions.scss +3 -3
  136. package/src/style/index.scss +6 -6
  137. package/src/style/lib/fonts/EVUI.svg +292 -292
  138. package/src/style/lib/icon.css +888 -888
  139. package/src/style/mixins.scss +94 -94
  140. package/src/style/themes.scss +67 -67
  141. package/src/style/variables.scss +22 -22
@@ -1,223 +1,223 @@
1
- /**
2
- * Original Code
3
- * https://github.com/lodash/lodash/blob/es/debounce.js
4
- * lodash/debounce.js
5
- */
6
-
7
- function isObject(value) {
8
- const type = typeof value;
9
- return value != null && (type === 'object' || type === 'function');
10
- }
11
-
12
- /**
13
- * Creates a debounced function that delays invoking `func` until after `wait`
14
- * milliseconds have elapsed since the last time the debounced function was
15
- * invoked, or until the next browser frame is drawn. The debounced function
16
- * comes with a `cancel` method to cancel delayed `func` invocations and a
17
- * `flush` method to immediately invoke them. Provide `options` to indicate
18
- * whether `func` should be invoked on the leading and/or trailing edge of the
19
- * `wait` timeout. The `func` is invoked with the last arguments provided to the
20
- * debounced function. Subsequent calls to the debounced function return the
21
- * result of the last `func` invocation.
22
- *
23
- * **Note:** If `leading` and `trailing` options are `true`, `func` is
24
- * invoked on the trailing edge of the timeout only if the debounced function
25
- * is invoked more than once during the `wait` timeout.
26
- *
27
- * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
28
- * until the next tick, similar to `setTimeout` with a timeout of `0`.
29
- *
30
- * If `wait` is omitted in an environment with `requestAnimationFrame`, `func`
31
- * invocation will be deferred until the next frame is drawn (typically about
32
- * 16ms).
33
- *
34
- * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
35
- * for details over the differences between `debounce` and `throttle`.
36
- *
37
- * @since 0.1.0
38
- * @category Function
39
- * @param {Function} func The function to debounce.
40
- * @param {number} [wait=0]
41
- * The number of milliseconds to delay; if omitted, `requestAnimationFrame` is
42
- * used (if available).
43
- * @param {Object} [options={}] The options object.
44
- * @param {boolean} [options.leading=false]
45
- * Specify invoking on the leading edge of the timeout.
46
- * @param {number} [options.maxWait]
47
- * The maximum time `func` is allowed to be delayed before it's invoked.
48
- * @param {boolean} [options.trailing=true]
49
- * Specify invoking on the trailing edge of the timeout.
50
- * @returns {Function} Returns the new debounced function.
51
- * @example
52
- *
53
- * // Avoid costly calculations while the window size is in flux.
54
- * jQuery(window).on('resize', debounce(calculateLayout, 150))
55
- *
56
- * // Invoke `sendMail` when clicked, debouncing subsequent calls.
57
- * jQuery(element).on('click', debounce(sendMail, 300, {
58
- * 'leading': true,
59
- * 'trailing': false
60
- * }))
61
- *
62
- * // Ensure `batchLog` is invoked once after 1 second of debounced calls.
63
- * const debounced = debounce(batchLog, 250, { 'maxWait': 1000 })
64
- * const source = new EventSource('/stream')
65
- * jQuery(source).on('message', debounced)
66
- *
67
- * // Cancel the trailing debounced invocation.
68
- * jQuery(window).on('popstate', debounced.cancel)
69
- *
70
- * // Check for pending invocations.
71
- * const status = debounced.pending() ? "Pending..." : "Ready"
72
- */
73
- /* eslint-disable */
74
- function debounce(func, wait, options) {
75
- let lastArgs,
76
- lastThis,
77
- maxWait,
78
- result,
79
- timerId,
80
- lastCallTime
81
-
82
- let lastInvokeTime = 0
83
- let leading = false
84
- let maxing = false
85
- let trailing = true
86
-
87
- // Bypass `requestAnimationFrame` by explicitly setting `wait=0`.
88
- const useRAF = (!wait && wait !== 0 && typeof root.requestAnimationFrame === 'function')
89
-
90
- if (typeof func !== 'function') {
91
- throw new TypeError('Expected a function')
92
- }
93
- wait = +wait || 0
94
- if (isObject(options)) {
95
- leading = !!options.leading
96
- maxing = 'maxWait' in options
97
- maxWait = maxing ? Math.max(+options.maxWait || 0, wait) : maxWait
98
- trailing = 'trailing' in options ? !!options.trailing : trailing
99
- }
100
-
101
- function invokeFunc(time) {
102
- const args = lastArgs
103
- const thisArg = lastThis
104
-
105
- lastArgs = lastThis = undefined
106
- lastInvokeTime = time
107
- result = func.apply(thisArg, args)
108
- return result
109
- }
110
-
111
- function startTimer(pendingFunc, wait) {
112
- if (useRAF) {
113
- window.cancelAnimationFrame(timerId)
114
- return window.requestAnimationFrame(pendingFunc)
115
- }
116
- return setTimeout(pendingFunc, wait)
117
- }
118
-
119
- function cancelTimer(id) {
120
- if (useRAF) {
121
- return window.cancelAnimationFrame(id)
122
- }
123
- clearTimeout(id)
124
- }
125
-
126
- function leadingEdge(time) {
127
- // Reset any `maxWait` timer.
128
- lastInvokeTime = time
129
- // Start the timer for the trailing edge.
130
- timerId = startTimer(timerExpired, wait)
131
- // Invoke the leading edge.
132
- return leading ? invokeFunc(time) : result
133
- }
134
-
135
- function remainingWait(time) {
136
- const timeSinceLastCall = time - lastCallTime
137
- const timeSinceLastInvoke = time - lastInvokeTime
138
- const timeWaiting = wait - timeSinceLastCall
139
-
140
- return maxing
141
- ? Math.min(timeWaiting, maxWait - timeSinceLastInvoke)
142
- : timeWaiting
143
- }
144
-
145
- function shouldInvoke(time) {
146
- const timeSinceLastCall = time - lastCallTime
147
- const timeSinceLastInvoke = time - lastInvokeTime
148
-
149
- // Either this is the first call, activity has stopped and we're at the
150
- // trailing edge, the system time has gone backwards and we're treating
151
- // it as the trailing edge, or we've hit the `maxWait` limit.
152
- return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||
153
- (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait))
154
- }
155
-
156
- function timerExpired() {
157
- const time = Date.now()
158
- if (shouldInvoke(time)) {
159
- return trailingEdge(time)
160
- }
161
- // Restart the timer.
162
- timerId = startTimer(timerExpired, remainingWait(time))
163
- }
164
-
165
- function trailingEdge(time) {
166
- timerId = undefined
167
-
168
- // Only invoke if we have `lastArgs` which means `func` has been
169
- // debounced at least once.
170
- if (trailing && lastArgs) {
171
- return invokeFunc(time)
172
- }
173
- lastArgs = lastThis = undefined
174
- return result
175
- }
176
-
177
- function cancel() {
178
- if (timerId !== undefined) {
179
- cancelTimer(timerId)
180
- }
181
- lastInvokeTime = 0
182
- lastArgs = lastCallTime = lastThis = timerId = undefined
183
- }
184
-
185
- function flush() {
186
- return timerId === undefined ? result : trailingEdge(Date.now())
187
- }
188
-
189
- function pending() {
190
- return timerId !== undefined
191
- }
192
-
193
- function debounced(...args) {
194
- const time = Date.now()
195
- const isInvoking = shouldInvoke(time)
196
-
197
- lastArgs = args
198
- lastThis = this
199
- lastCallTime = time
200
-
201
- if (isInvoking) {
202
- if (timerId === undefined) {
203
- return leadingEdge(lastCallTime)
204
- }
205
- if (maxing) {
206
- // Handle invocations in a tight loop.
207
- timerId = startTimer(timerExpired, wait)
208
- return invokeFunc(lastCallTime)
209
- }
210
- }
211
- if (timerId === undefined) {
212
- timerId = startTimer(timerExpired, wait)
213
- }
214
- return result
215
- }
216
- debounced.cancel = cancel
217
- debounced.flush = flush
218
- debounced.pending = pending
219
- return debounced
220
- }
221
-
222
- export default debounce
223
- /* eslint-enable */
1
+ /**
2
+ * Original Code
3
+ * https://github.com/lodash/lodash/blob/es/debounce.js
4
+ * lodash/debounce.js
5
+ */
6
+
7
+ function isObject(value) {
8
+ const type = typeof value;
9
+ return value != null && (type === 'object' || type === 'function');
10
+ }
11
+
12
+ /**
13
+ * Creates a debounced function that delays invoking `func` until after `wait`
14
+ * milliseconds have elapsed since the last time the debounced function was
15
+ * invoked, or until the next browser frame is drawn. The debounced function
16
+ * comes with a `cancel` method to cancel delayed `func` invocations and a
17
+ * `flush` method to immediately invoke them. Provide `options` to indicate
18
+ * whether `func` should be invoked on the leading and/or trailing edge of the
19
+ * `wait` timeout. The `func` is invoked with the last arguments provided to the
20
+ * debounced function. Subsequent calls to the debounced function return the
21
+ * result of the last `func` invocation.
22
+ *
23
+ * **Note:** If `leading` and `trailing` options are `true`, `func` is
24
+ * invoked on the trailing edge of the timeout only if the debounced function
25
+ * is invoked more than once during the `wait` timeout.
26
+ *
27
+ * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
28
+ * until the next tick, similar to `setTimeout` with a timeout of `0`.
29
+ *
30
+ * If `wait` is omitted in an environment with `requestAnimationFrame`, `func`
31
+ * invocation will be deferred until the next frame is drawn (typically about
32
+ * 16ms).
33
+ *
34
+ * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
35
+ * for details over the differences between `debounce` and `throttle`.
36
+ *
37
+ * @since 0.1.0
38
+ * @category Function
39
+ * @param {Function} func The function to debounce.
40
+ * @param {number} [wait=0]
41
+ * The number of milliseconds to delay; if omitted, `requestAnimationFrame` is
42
+ * used (if available).
43
+ * @param {Object} [options={}] The options object.
44
+ * @param {boolean} [options.leading=false]
45
+ * Specify invoking on the leading edge of the timeout.
46
+ * @param {number} [options.maxWait]
47
+ * The maximum time `func` is allowed to be delayed before it's invoked.
48
+ * @param {boolean} [options.trailing=true]
49
+ * Specify invoking on the trailing edge of the timeout.
50
+ * @returns {Function} Returns the new debounced function.
51
+ * @example
52
+ *
53
+ * // Avoid costly calculations while the window size is in flux.
54
+ * jQuery(window).on('resize', debounce(calculateLayout, 150))
55
+ *
56
+ * // Invoke `sendMail` when clicked, debouncing subsequent calls.
57
+ * jQuery(element).on('click', debounce(sendMail, 300, {
58
+ * 'leading': true,
59
+ * 'trailing': false
60
+ * }))
61
+ *
62
+ * // Ensure `batchLog` is invoked once after 1 second of debounced calls.
63
+ * const debounced = debounce(batchLog, 250, { 'maxWait': 1000 })
64
+ * const source = new EventSource('/stream')
65
+ * jQuery(source).on('message', debounced)
66
+ *
67
+ * // Cancel the trailing debounced invocation.
68
+ * jQuery(window).on('popstate', debounced.cancel)
69
+ *
70
+ * // Check for pending invocations.
71
+ * const status = debounced.pending() ? "Pending..." : "Ready"
72
+ */
73
+ /* eslint-disable */
74
+ function debounce(func, wait, options) {
75
+ let lastArgs,
76
+ lastThis,
77
+ maxWait,
78
+ result,
79
+ timerId,
80
+ lastCallTime
81
+
82
+ let lastInvokeTime = 0
83
+ let leading = false
84
+ let maxing = false
85
+ let trailing = true
86
+
87
+ // Bypass `requestAnimationFrame` by explicitly setting `wait=0`.
88
+ const useRAF = (!wait && wait !== 0 && typeof root.requestAnimationFrame === 'function')
89
+
90
+ if (typeof func !== 'function') {
91
+ throw new TypeError('Expected a function')
92
+ }
93
+ wait = +wait || 0
94
+ if (isObject(options)) {
95
+ leading = !!options.leading
96
+ maxing = 'maxWait' in options
97
+ maxWait = maxing ? Math.max(+options.maxWait || 0, wait) : maxWait
98
+ trailing = 'trailing' in options ? !!options.trailing : trailing
99
+ }
100
+
101
+ function invokeFunc(time) {
102
+ const args = lastArgs
103
+ const thisArg = lastThis
104
+
105
+ lastArgs = lastThis = undefined
106
+ lastInvokeTime = time
107
+ result = func.apply(thisArg, args)
108
+ return result
109
+ }
110
+
111
+ function startTimer(pendingFunc, wait) {
112
+ if (useRAF) {
113
+ window.cancelAnimationFrame(timerId)
114
+ return window.requestAnimationFrame(pendingFunc)
115
+ }
116
+ return setTimeout(pendingFunc, wait)
117
+ }
118
+
119
+ function cancelTimer(id) {
120
+ if (useRAF) {
121
+ return window.cancelAnimationFrame(id)
122
+ }
123
+ clearTimeout(id)
124
+ }
125
+
126
+ function leadingEdge(time) {
127
+ // Reset any `maxWait` timer.
128
+ lastInvokeTime = time
129
+ // Start the timer for the trailing edge.
130
+ timerId = startTimer(timerExpired, wait)
131
+ // Invoke the leading edge.
132
+ return leading ? invokeFunc(time) : result
133
+ }
134
+
135
+ function remainingWait(time) {
136
+ const timeSinceLastCall = time - lastCallTime
137
+ const timeSinceLastInvoke = time - lastInvokeTime
138
+ const timeWaiting = wait - timeSinceLastCall
139
+
140
+ return maxing
141
+ ? Math.min(timeWaiting, maxWait - timeSinceLastInvoke)
142
+ : timeWaiting
143
+ }
144
+
145
+ function shouldInvoke(time) {
146
+ const timeSinceLastCall = time - lastCallTime
147
+ const timeSinceLastInvoke = time - lastInvokeTime
148
+
149
+ // Either this is the first call, activity has stopped and we're at the
150
+ // trailing edge, the system time has gone backwards and we're treating
151
+ // it as the trailing edge, or we've hit the `maxWait` limit.
152
+ return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||
153
+ (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait))
154
+ }
155
+
156
+ function timerExpired() {
157
+ const time = Date.now()
158
+ if (shouldInvoke(time)) {
159
+ return trailingEdge(time)
160
+ }
161
+ // Restart the timer.
162
+ timerId = startTimer(timerExpired, remainingWait(time))
163
+ }
164
+
165
+ function trailingEdge(time) {
166
+ timerId = undefined
167
+
168
+ // Only invoke if we have `lastArgs` which means `func` has been
169
+ // debounced at least once.
170
+ if (trailing && lastArgs) {
171
+ return invokeFunc(time)
172
+ }
173
+ lastArgs = lastThis = undefined
174
+ return result
175
+ }
176
+
177
+ function cancel() {
178
+ if (timerId !== undefined) {
179
+ cancelTimer(timerId)
180
+ }
181
+ lastInvokeTime = 0
182
+ lastArgs = lastCallTime = lastThis = timerId = undefined
183
+ }
184
+
185
+ function flush() {
186
+ return timerId === undefined ? result : trailingEdge(Date.now())
187
+ }
188
+
189
+ function pending() {
190
+ return timerId !== undefined
191
+ }
192
+
193
+ function debounced(...args) {
194
+ const time = Date.now()
195
+ const isInvoking = shouldInvoke(time)
196
+
197
+ lastArgs = args
198
+ lastThis = this
199
+ lastCallTime = time
200
+
201
+ if (isInvoking) {
202
+ if (timerId === undefined) {
203
+ return leadingEdge(lastCallTime)
204
+ }
205
+ if (maxing) {
206
+ // Handle invocations in a tight loop.
207
+ timerId = startTimer(timerExpired, wait)
208
+ return invokeFunc(lastCallTime)
209
+ }
210
+ }
211
+ if (timerId === undefined) {
212
+ timerId = startTimer(timerExpired, wait)
213
+ }
214
+ return result
215
+ }
216
+ debounced.cancel = cancel
217
+ debounced.flush = flush
218
+ debounced.pending = pending
219
+ return debounced
220
+ }
221
+
222
+ export default debounce
223
+ /* eslint-enable */