@revolist/revogrid 3.2.0 → 3.2.4

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 (210) hide show
  1. package/dist/revo-grid/_baseIteratee-af30b221.js +2070 -0
  2. package/dist/{collection/global/global.js → revo-grid/app-globals-7e6866ba.js} +11 -2
  3. package/dist/{collection/components/data/columnService.js → revo-grid/columnService-91e552ba.js} +11 -6
  4. package/dist/revo-grid/consts-ef824e6f.js +46 -0
  5. package/dist/revo-grid/css-shim-5387c708.js +7 -0
  6. package/dist/revo-grid/data.store-3263fff9.js +557 -0
  7. package/dist/revo-grid/debounce-aaa4b4da.js +217 -0
  8. package/dist/revo-grid/dimension.helpers-a7944fc4.js +340 -0
  9. package/dist/{collection/plugins/dispatcher.js → revo-grid/dispatcher-891af82e.js} +7 -2
  10. package/dist/{cjs/dom-c8b6d1a7.js → revo-grid/dom-21bd1807.js} +4 -3
  11. package/dist/revo-grid/each-0378e5a3.js +180 -0
  12. package/dist/{collection/plugins/filter/filter.button.js → revo-grid/filter.button-74c1cd9c.js} +16 -10
  13. package/dist/revo-grid/identity-c8c7d3d8.js +26 -0
  14. package/dist/revo-grid/index-8a604c17.js +3067 -0
  15. package/dist/revo-grid/index.esm.js +3 -0
  16. package/dist/revo-grid/isString-a51066b5.js +34 -0
  17. package/dist/revo-grid/isSymbol-e4b5dafe.js +247 -0
  18. package/dist/revo-grid/keyCodes.utils-bd06e3ba.js +299 -0
  19. package/dist/revo-grid/keys-70b7c240.js +561 -0
  20. package/dist/{collection/services/localScrollService.js → revo-grid/localScrollService-e9b73323.js} +8 -2
  21. package/dist/{esm/revo-grid_11.entry.js → revo-grid/lodash-a0ab4cdd.js} +13773 -24835
  22. package/dist/{cjs/resize-observer-8dc80084.js → revo-grid/resize-observer-00c48d78.js} +25 -14
  23. package/dist/revo-grid/revo-grid.entry.js +3484 -0
  24. package/dist/revo-grid/revo-grid.esm.js +133 -1
  25. package/dist/revo-grid/revogr-clipboard.entry.js +52 -1
  26. package/dist/revo-grid/revogr-data.entry.js +152 -0
  27. package/dist/revo-grid/revogr-edit.entry.js +105 -0
  28. package/dist/revo-grid/revogr-filter-panel.entry.js +277 -1
  29. package/dist/revo-grid/revogr-focus.entry.js +41 -0
  30. package/dist/revo-grid/revogr-header.entry.js +560 -0
  31. package/dist/revo-grid/revogr-order-editor.entry.js +175 -0
  32. package/dist/revo-grid/revogr-overlay-selection.entry.js +711 -0
  33. package/dist/revo-grid/revogr-row-headers.entry.js +73 -0
  34. package/dist/revo-grid/revogr-scroll-virtual.entry.js +114 -0
  35. package/dist/revo-grid/revogr-temp-range.entry.js +73 -0
  36. package/dist/revo-grid/revogr-viewport-scroll.entry.js +340 -0
  37. package/dist/revo-grid/selection.store.connector-2b613fd0.js +503 -0
  38. package/dist/{collection/components/overlay/selection.utils.js → revo-grid/selection.utils-a9932db6.js} +15 -9
  39. package/dist/revo-grid/shadow-css-602a09db.js +390 -0
  40. package/dist/{collection/themeManager/themeService.js → revo-grid/themeService-ddaaa364.js} +26 -6
  41. package/dist/revo-grid/toInteger-9e6cbfd2.js +107 -0
  42. package/dist/revo-grid/toNumber-913b0b72.js +105 -0
  43. package/dist/{collection/utils/utils.js → revo-grid/utils-2c3b3857.js} +13 -8
  44. package/dist/revo-grid/viewport.helpers-49d3f031.js +16 -0
  45. package/dist/{collection/store/viewPort/viewport.helpers.js → revo-grid/viewport.store-ffaaab6d.js} +135 -9
  46. package/dist/types/components.d.ts +100 -56
  47. package/dist/types/stencil-public-runtime.d.ts +189 -186
  48. package/package.json +22 -20
  49. package/custom-element/index.js +0 -29210
  50. package/custom-element/resize-observer.js +0 -489
  51. package/dist/cjs/css-shim-e33df79c.js +0 -6
  52. package/dist/cjs/debounce-e9b040d9.js +0 -575
  53. package/dist/cjs/index-d3f67f2e.js +0 -1729
  54. package/dist/cjs/index.cjs.js +0 -2
  55. package/dist/cjs/loader.cjs.js +0 -35
  56. package/dist/cjs/revo-grid.cjs.js +0 -73
  57. package/dist/cjs/revo-grid_11.cjs.entry.js +0 -28294
  58. package/dist/cjs/revogr-clipboard.cjs.entry.js +0 -53
  59. package/dist/cjs/revogr-filter-panel.cjs.entry.js +0 -275
  60. package/dist/collection/collection-manifest.json +0 -25
  61. package/dist/collection/components/button/button.js +0 -4
  62. package/dist/collection/components/clipboard/revogr-clipboard.js +0 -121
  63. package/dist/collection/components/data/cellRenderer.js +0 -24
  64. package/dist/collection/components/data/revogr-data-style.css +0 -135
  65. package/dist/collection/components/data/revogr-data.js +0 -322
  66. package/dist/collection/components/data/rowRenderer.js +0 -6
  67. package/dist/collection/components/header/headerCellRenderer.js +0 -26
  68. package/dist/collection/components/header/headerRenderer.js +0 -45
  69. package/dist/collection/components/header/revogr-header-style.css +0 -198
  70. package/dist/collection/components/header/revogr-header.js +0 -297
  71. package/dist/collection/components/order/orderRenderer.js +0 -50
  72. package/dist/collection/components/order/revogr-order-editor.js +0 -358
  73. package/dist/collection/components/order/rowOrderService.js +0 -68
  74. package/dist/collection/components/overlay/autofill.service.js +0 -182
  75. package/dist/collection/components/overlay/clipboard.service.js +0 -39
  76. package/dist/collection/components/overlay/editors/edit.utils.js +0 -5
  77. package/dist/collection/components/overlay/editors/text.js +0 -35
  78. package/dist/collection/components/overlay/keyboard.service.js +0 -128
  79. package/dist/collection/components/overlay/revogr-edit-style.css +0 -86
  80. package/dist/collection/components/overlay/revogr-edit.js +0 -159
  81. package/dist/collection/components/overlay/revogr-overlay-selection.js +0 -726
  82. package/dist/collection/components/overlay/revogr-overlay-style.css +0 -98
  83. package/dist/collection/components/revo-grid/revo-grid-style.css +0 -544
  84. package/dist/collection/components/revo-grid/revo-grid.js +0 -2224
  85. package/dist/collection/components/revo-grid/viewport.helpers.js +0 -11
  86. package/dist/collection/components/revo-grid/viewport.interfaces.js +0 -1
  87. package/dist/collection/components/revo-grid/viewport.js +0 -18
  88. package/dist/collection/components/revo-grid/viewport.resize.service.js +0 -21
  89. package/dist/collection/components/revo-grid/viewport.scrolling.service.js +0 -60
  90. package/dist/collection/components/revo-grid/viewport.section.js +0 -28
  91. package/dist/collection/components/revo-grid/viewport.service.js +0 -209
  92. package/dist/collection/components/rowHeaders/revogr-row-headers.js +0 -210
  93. package/dist/collection/components/rowHeaders/row-header-render.js +0 -1
  94. package/dist/collection/components/scroll/revogr-viewport-scroll-style.css +0 -137
  95. package/dist/collection/components/scroll/revogr-viewport-scroll.js +0 -399
  96. package/dist/collection/components/scrollable/revogr-scroll-style.css +0 -104
  97. package/dist/collection/components/scrollable/revogr-scroll-virtual.js +0 -253
  98. package/dist/collection/components/selection-focus/revogr-focus-style.css +0 -77
  99. package/dist/collection/components/selection-focus/revogr-focus.js +0 -103
  100. package/dist/collection/components/selection-temp-range/revogr-temp-range-style.css +0 -98
  101. package/dist/collection/components/selection-temp-range/revogr-temp-range.js +0 -138
  102. package/dist/collection/index.js +0 -1
  103. package/dist/collection/plugins/autoSizeColumn.js +0 -230
  104. package/dist/collection/plugins/basePlugin.js +0 -27
  105. package/dist/collection/plugins/export/csv.js +0 -68
  106. package/dist/collection/plugins/export/export.plugin.js +0 -165
  107. package/dist/collection/plugins/export/types.js +0 -1
  108. package/dist/collection/plugins/filter/conditions/equal.js +0 -17
  109. package/dist/collection/plugins/filter/conditions/number/greaterThan.js +0 -10
  110. package/dist/collection/plugins/filter/conditions/number/greaterThanOrEqual.js +0 -7
  111. package/dist/collection/plugins/filter/conditions/number/lessThan.js +0 -12
  112. package/dist/collection/plugins/filter/conditions/number/lessThanOrEqual.js +0 -7
  113. package/dist/collection/plugins/filter/conditions/set.js +0 -3
  114. package/dist/collection/plugins/filter/conditions/string/beginswith.js +0 -17
  115. package/dist/collection/plugins/filter/conditions/string/contains.js +0 -18
  116. package/dist/collection/plugins/filter/filter.plugin.js +0 -256
  117. package/dist/collection/plugins/filter/filter.pop.js +0 -485
  118. package/dist/collection/plugins/filter/filter.service.js +0 -44
  119. package/dist/collection/plugins/filter/filter.style.css +0 -239
  120. package/dist/collection/plugins/filter/filter.types.js +0 -1
  121. package/dist/collection/plugins/groupingColumn/columnGroupsRenderer.js +0 -30
  122. package/dist/collection/plugins/groupingColumn/grouping.col.plugin.js +0 -36
  123. package/dist/collection/plugins/groupingColumn/headerGroupRenderer.js +0 -21
  124. package/dist/collection/plugins/groupingRow/grouping.const.js +0 -10
  125. package/dist/collection/plugins/groupingRow/grouping.row.expand.service.js +0 -76
  126. package/dist/collection/plugins/groupingRow/grouping.row.plugin.js +0 -258
  127. package/dist/collection/plugins/groupingRow/grouping.row.renderer.js +0 -29
  128. package/dist/collection/plugins/groupingRow/grouping.row.types.js +0 -1
  129. package/dist/collection/plugins/groupingRow/grouping.service.js +0 -155
  130. package/dist/collection/plugins/groupingRow/grouping.trimmed.service.js +0 -57
  131. package/dist/collection/plugins/moveColumn/columnDragPlugin.js +0 -145
  132. package/dist/collection/plugins/moveColumn/columnOrderHandler.js +0 -60
  133. package/dist/collection/plugins/sorting/sorting.plugin.js +0 -181
  134. package/dist/collection/plugins/sorting/sorting.sign.js +0 -6
  135. package/dist/collection/plugins/stretchPlugin.js +0 -68
  136. package/dist/collection/plugins/trimmed/trimmed.plugin.js +0 -32
  137. package/dist/collection/services/cell.helpers.js +0 -7
  138. package/dist/collection/services/column.data.provider.js +0 -188
  139. package/dist/collection/services/data.provider.js +0 -47
  140. package/dist/collection/services/dimension.provider.js +0 -78
  141. package/dist/collection/services/resizable.directive.js +0 -250
  142. package/dist/collection/services/selection.store.connector.js +0 -213
  143. package/dist/collection/services/viewport.provider.js +0 -14
  144. package/dist/collection/store/dataSource/data.proxy.js +0 -34
  145. package/dist/collection/store/dataSource/data.store.js +0 -127
  146. package/dist/collection/store/dimension/dimension.helpers.js +0 -107
  147. package/dist/collection/store/dimension/dimension.store.js +0 -59
  148. package/dist/collection/store/selection/selection.helpers.js +0 -53
  149. package/dist/collection/store/selection/selection.store.js +0 -68
  150. package/dist/collection/store/selection/selection.store.service.js +0 -35
  151. package/dist/collection/store/storeTypes.js +0 -5
  152. package/dist/collection/store/viewPort/viewport.store.js +0 -121
  153. package/dist/collection/themeManager/theme.compact.js +0 -5
  154. package/dist/collection/themeManager/theme.default.js +0 -5
  155. package/dist/collection/themeManager/theme.material.js +0 -5
  156. package/dist/collection/utils/closestPolifill.js +0 -18
  157. package/dist/collection/utils/consts.js +0 -19
  158. package/dist/collection/utils/generateAlphabetHeader.js +0 -20
  159. package/dist/collection/utils/keyCodes.js +0 -70
  160. package/dist/collection/utils/keyCodes.utils.js +0 -64
  161. package/dist/collection/utils/platform.js +0 -5
  162. package/dist/collection/utils/resizeObserver.js +0 -6
  163. package/dist/collection/utils/store.utils.js +0 -7
  164. package/dist/collection/utilsExternal/generate-data.js +0 -132
  165. package/dist/esm/css-shim-8d75038b.js +0 -4
  166. package/dist/esm/debounce-45985ae0.js +0 -558
  167. package/dist/esm/dom-1b195079.js +0 -73
  168. package/dist/esm/index-42c84e7c.js +0 -1694
  169. package/dist/esm/index.js +0 -1
  170. package/dist/esm/loader.js +0 -31
  171. package/dist/esm/polyfills/core-js.js +0 -11
  172. package/dist/esm/polyfills/css-shim.js +0 -1
  173. package/dist/esm/polyfills/dom.js +0 -79
  174. package/dist/esm/polyfills/es5-html-element.js +0 -1
  175. package/dist/esm/polyfills/index.js +0 -34
  176. package/dist/esm/polyfills/system.js +0 -6
  177. package/dist/esm/resize-observer-56b7b34f.js +0 -489
  178. package/dist/esm/revo-grid.js +0 -71
  179. package/dist/esm/revogr-clipboard.entry.js +0 -49
  180. package/dist/esm/revogr-filter-panel.entry.js +0 -271
  181. package/dist/esm-es5/css-shim-8d75038b.js +0 -1
  182. package/dist/esm-es5/debounce-45985ae0.js +0 -1
  183. package/dist/esm-es5/dom-1b195079.js +0 -21
  184. package/dist/esm-es5/index-42c84e7c.js +0 -1
  185. package/dist/esm-es5/index.js +0 -0
  186. package/dist/esm-es5/loader.js +0 -1
  187. package/dist/esm-es5/resize-observer-56b7b34f.js +0 -1
  188. package/dist/esm-es5/revo-grid.js +0 -1
  189. package/dist/esm-es5/revo-grid_11.entry.js +0 -1
  190. package/dist/esm-es5/revogr-clipboard.entry.js +0 -1
  191. package/dist/esm-es5/revogr-filter-panel.entry.js +0 -1
  192. package/dist/index.cjs.js +0 -1
  193. package/dist/index.js +0 -1
  194. package/dist/revo-grid/css-shim-88bfb262.system.js +0 -1
  195. package/dist/revo-grid/css-shim-8d75038b.js +0 -1
  196. package/dist/revo-grid/debounce-6c911037.js +0 -1
  197. package/dist/revo-grid/debounce-a345f98e.system.js +0 -1
  198. package/dist/revo-grid/dom-1b195079.js +0 -19
  199. package/dist/revo-grid/dom-ee2dd1b3.system.js +0 -21
  200. package/dist/revo-grid/index-a15e7527.system.js +0 -1
  201. package/dist/revo-grid/index-a7f99799.js +0 -1
  202. package/dist/revo-grid/index.system.js +0 -1
  203. package/dist/revo-grid/resize-observer-56b7b34f.js +0 -1
  204. package/dist/revo-grid/resize-observer-7a7b9757.system.js +0 -1
  205. package/dist/revo-grid/revo-grid.js +0 -132
  206. package/dist/revo-grid/revo-grid.system.js +0 -1
  207. package/dist/revo-grid/revo-grid_11.entry.js +0 -1
  208. package/dist/revo-grid/revo-grid_11.system.entry.js +0 -1
  209. package/dist/revo-grid/revogr-clipboard.system.entry.js +0 -1
  210. package/dist/revo-grid/revogr-filter-panel.system.entry.js +0 -1
@@ -1,575 +0,0 @@
1
- 'use strict';
2
-
3
- const index = require('./index-d3f67f2e.js');
4
-
5
- var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
6
-
7
- function createCommonjsModule(fn, basedir, module) {
8
- return module = {
9
- path: basedir,
10
- exports: {},
11
- require: function (path, base) {
12
- return commonjsRequire();
13
- }
14
- }, fn(module, module.exports), module.exports;
15
- }
16
-
17
- function commonjsRequire () {
18
- throw new Error('Dynamic requires are not currently supported by @rollup/plugin-commonjs');
19
- }
20
-
21
- /** Detect free variable `global` from Node.js. */
22
- var freeGlobal = typeof commonjsGlobal == 'object' && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
23
-
24
- var _freeGlobal = freeGlobal;
25
-
26
- /** Detect free variable `self`. */
27
- var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
28
-
29
- /** Used as a reference to the global object. */
30
- var root = _freeGlobal || freeSelf || Function('return this')();
31
-
32
- var _root = root;
33
-
34
- /** Built-in value references. */
35
- var Symbol = _root.Symbol;
36
-
37
- var _Symbol = Symbol;
38
-
39
- /** Used for built-in method references. */
40
- var objectProto$1 = Object.prototype;
41
-
42
- /** Used to check objects for own properties. */
43
- var hasOwnProperty = objectProto$1.hasOwnProperty;
44
-
45
- /**
46
- * Used to resolve the
47
- * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
48
- * of values.
49
- */
50
- var nativeObjectToString$1 = objectProto$1.toString;
51
-
52
- /** Built-in value references. */
53
- var symToStringTag$1 = _Symbol ? _Symbol.toStringTag : undefined;
54
-
55
- /**
56
- * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
57
- *
58
- * @private
59
- * @param {*} value The value to query.
60
- * @returns {string} Returns the raw `toStringTag`.
61
- */
62
- function getRawTag(value) {
63
- var isOwn = hasOwnProperty.call(value, symToStringTag$1),
64
- tag = value[symToStringTag$1];
65
-
66
- try {
67
- value[symToStringTag$1] = undefined;
68
- var unmasked = true;
69
- } catch (e) {}
70
-
71
- var result = nativeObjectToString$1.call(value);
72
- if (unmasked) {
73
- if (isOwn) {
74
- value[symToStringTag$1] = tag;
75
- } else {
76
- delete value[symToStringTag$1];
77
- }
78
- }
79
- return result;
80
- }
81
-
82
- var _getRawTag = getRawTag;
83
-
84
- /** Used for built-in method references. */
85
- var objectProto = Object.prototype;
86
-
87
- /**
88
- * Used to resolve the
89
- * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
90
- * of values.
91
- */
92
- var nativeObjectToString = objectProto.toString;
93
-
94
- /**
95
- * Converts `value` to a string using `Object.prototype.toString`.
96
- *
97
- * @private
98
- * @param {*} value The value to convert.
99
- * @returns {string} Returns the converted string.
100
- */
101
- function objectToString(value) {
102
- return nativeObjectToString.call(value);
103
- }
104
-
105
- var _objectToString = objectToString;
106
-
107
- /** `Object#toString` result references. */
108
- var nullTag = '[object Null]',
109
- undefinedTag = '[object Undefined]';
110
-
111
- /** Built-in value references. */
112
- var symToStringTag = _Symbol ? _Symbol.toStringTag : undefined;
113
-
114
- /**
115
- * The base implementation of `getTag` without fallbacks for buggy environments.
116
- *
117
- * @private
118
- * @param {*} value The value to query.
119
- * @returns {string} Returns the `toStringTag`.
120
- */
121
- function baseGetTag(value) {
122
- if (value == null) {
123
- return value === undefined ? undefinedTag : nullTag;
124
- }
125
- return (symToStringTag && symToStringTag in Object(value))
126
- ? _getRawTag(value)
127
- : _objectToString(value);
128
- }
129
-
130
- var _baseGetTag = baseGetTag;
131
-
132
- /**
133
- * Checks if `value` is object-like. A value is object-like if it's not `null`
134
- * and has a `typeof` result of "object".
135
- *
136
- * @static
137
- * @memberOf _
138
- * @since 4.0.0
139
- * @category Lang
140
- * @param {*} value The value to check.
141
- * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
142
- * @example
143
- *
144
- * _.isObjectLike({});
145
- * // => true
146
- *
147
- * _.isObjectLike([1, 2, 3]);
148
- * // => true
149
- *
150
- * _.isObjectLike(_.noop);
151
- * // => false
152
- *
153
- * _.isObjectLike(null);
154
- * // => false
155
- */
156
- function isObjectLike(value) {
157
- return value != null && typeof value == 'object';
158
- }
159
-
160
- var isObjectLike_1 = isObjectLike;
161
-
162
- /**
163
- * Checks if `value` is the
164
- * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
165
- * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
166
- *
167
- * @static
168
- * @memberOf _
169
- * @since 0.1.0
170
- * @category Lang
171
- * @param {*} value The value to check.
172
- * @returns {boolean} Returns `true` if `value` is an object, else `false`.
173
- * @example
174
- *
175
- * _.isObject({});
176
- * // => true
177
- *
178
- * _.isObject([1, 2, 3]);
179
- * // => true
180
- *
181
- * _.isObject(_.noop);
182
- * // => true
183
- *
184
- * _.isObject(null);
185
- * // => false
186
- */
187
- function isObject(value) {
188
- var type = typeof value;
189
- return value != null && (type == 'object' || type == 'function');
190
- }
191
-
192
- var isObject_1 = isObject;
193
-
194
- /** `Object#toString` result references. */
195
- var symbolTag = '[object Symbol]';
196
-
197
- /**
198
- * Checks if `value` is classified as a `Symbol` primitive or object.
199
- *
200
- * @static
201
- * @memberOf _
202
- * @since 4.0.0
203
- * @category Lang
204
- * @param {*} value The value to check.
205
- * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
206
- * @example
207
- *
208
- * _.isSymbol(Symbol.iterator);
209
- * // => true
210
- *
211
- * _.isSymbol('abc');
212
- * // => false
213
- */
214
- function isSymbol(value) {
215
- return typeof value == 'symbol' ||
216
- (isObjectLike_1(value) && _baseGetTag(value) == symbolTag);
217
- }
218
-
219
- var isSymbol_1 = isSymbol;
220
-
221
- /** Used to match a single whitespace character. */
222
- var reWhitespace = /\s/;
223
-
224
- /**
225
- * Used by `_.trim` and `_.trimEnd` to get the index of the last non-whitespace
226
- * character of `string`.
227
- *
228
- * @private
229
- * @param {string} string The string to inspect.
230
- * @returns {number} Returns the index of the last non-whitespace character.
231
- */
232
- function trimmedEndIndex(string) {
233
- var index = string.length;
234
-
235
- while (index-- && reWhitespace.test(string.charAt(index))) {}
236
- return index;
237
- }
238
-
239
- var _trimmedEndIndex = trimmedEndIndex;
240
-
241
- /** Used to match leading whitespace. */
242
- var reTrimStart = /^\s+/;
243
-
244
- /**
245
- * The base implementation of `_.trim`.
246
- *
247
- * @private
248
- * @param {string} string The string to trim.
249
- * @returns {string} Returns the trimmed string.
250
- */
251
- function baseTrim(string) {
252
- return string
253
- ? string.slice(0, _trimmedEndIndex(string) + 1).replace(reTrimStart, '')
254
- : string;
255
- }
256
-
257
- var _baseTrim = baseTrim;
258
-
259
- /** Used as references for various `Number` constants. */
260
- var NAN = 0 / 0;
261
-
262
- /** Used to detect bad signed hexadecimal string values. */
263
- var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
264
-
265
- /** Used to detect binary string values. */
266
- var reIsBinary = /^0b[01]+$/i;
267
-
268
- /** Used to detect octal string values. */
269
- var reIsOctal = /^0o[0-7]+$/i;
270
-
271
- /** Built-in method references without a dependency on `root`. */
272
- var freeParseInt = parseInt;
273
-
274
- /**
275
- * Converts `value` to a number.
276
- *
277
- * @static
278
- * @memberOf _
279
- * @since 4.0.0
280
- * @category Lang
281
- * @param {*} value The value to process.
282
- * @returns {number} Returns the number.
283
- * @example
284
- *
285
- * _.toNumber(3.2);
286
- * // => 3.2
287
- *
288
- * _.toNumber(Number.MIN_VALUE);
289
- * // => 5e-324
290
- *
291
- * _.toNumber(Infinity);
292
- * // => Infinity
293
- *
294
- * _.toNumber('3.2');
295
- * // => 3.2
296
- */
297
- function toNumber(value) {
298
- if (typeof value == 'number') {
299
- return value;
300
- }
301
- if (isSymbol_1(value)) {
302
- return NAN;
303
- }
304
- if (isObject_1(value)) {
305
- var other = typeof value.valueOf == 'function' ? value.valueOf() : value;
306
- value = isObject_1(other) ? (other + '') : other;
307
- }
308
- if (typeof value != 'string') {
309
- return value === 0 ? value : +value;
310
- }
311
- value = _baseTrim(value);
312
- var isBinary = reIsBinary.test(value);
313
- return (isBinary || reIsOctal.test(value))
314
- ? freeParseInt(value.slice(2), isBinary ? 2 : 8)
315
- : (reIsBadHex.test(value) ? NAN : +value);
316
- }
317
-
318
- var toNumber_1 = toNumber;
319
-
320
- const FILTER_BUTTON_CLASS = 'rv-filter';
321
- const FILTER_BUTTON_ACTIVE = 'active';
322
- const FILTER_PROP = 'hasFilter';
323
- const AND_OR_BUTTON = 'and-or-button';
324
- const TRASH_BUTTON = 'trash-button';
325
- const FilterButton = ({ column }) => {
326
- return (index.h("span", null,
327
- index.h("button", { class: {
328
- [FILTER_BUTTON_CLASS]: true,
329
- [FILTER_BUTTON_ACTIVE]: column && !!column[FILTER_PROP],
330
- } },
331
- index.h("svg", { class: "filter-img", viewBox: "0 0 64 64" },
332
- index.h("g", { stroke: "none", "stroke-width": "1", fill: "none", "fill-rule": "evenodd" },
333
- index.h("path", { d: "M43,48 L43,56 L21,56 L21,48 L43,48 Z M53,28 L53,36 L12,36 L12,28 L53,28 Z M64,8 L64,16 L0,16 L0,8 L64,8 Z", fill: "currentColor" }))))));
334
- };
335
- const TrashButton = () => {
336
- return (index.h("div", { class: { [TRASH_BUTTON]: true } },
337
- index.h("svg", { class: "trash-img", viewBox: "0 0 24 24" },
338
- index.h("path", { fill: "currentColor", d: "M9,3V4H4V6H5V19A2,2 0 0,0 7,21H17A2,2 0 0,0 19,19V6H20V4H15V3H9M7,6H17V19H7V6M9,8V17H11V8H9M13,8V17H15V8H13Z" }))));
339
- };
340
- const AndOrButton = ({ isAnd }) => {
341
- return index.h("button", { class: { [AND_OR_BUTTON]: true, 'light revo-button': true } }, isAnd ? 'and' : 'or');
342
- };
343
- function isFilterBtn(e) {
344
- if (e.classList.contains(FILTER_BUTTON_CLASS)) {
345
- return true;
346
- }
347
- return e === null || e === void 0 ? void 0 : e.closest(`.${FILTER_BUTTON_CLASS}`);
348
- }
349
-
350
- /**
351
- * Gets the timestamp of the number of milliseconds that have elapsed since
352
- * the Unix epoch (1 January 1970 00:00:00 UTC).
353
- *
354
- * @static
355
- * @memberOf _
356
- * @since 2.4.0
357
- * @category Date
358
- * @returns {number} Returns the timestamp.
359
- * @example
360
- *
361
- * _.defer(function(stamp) {
362
- * console.log(_.now() - stamp);
363
- * }, _.now());
364
- * // => Logs the number of milliseconds it took for the deferred invocation.
365
- */
366
- var now = function() {
367
- return _root.Date.now();
368
- };
369
-
370
- var now_1 = now;
371
-
372
- /** Error message constants. */
373
- var FUNC_ERROR_TEXT = 'Expected a function';
374
-
375
- /* Built-in method references for those with the same name as other `lodash` methods. */
376
- var nativeMax = Math.max,
377
- nativeMin = Math.min;
378
-
379
- /**
380
- * Creates a debounced function that delays invoking `func` until after `wait`
381
- * milliseconds have elapsed since the last time the debounced function was
382
- * invoked. The debounced function comes with a `cancel` method to cancel
383
- * delayed `func` invocations and a `flush` method to immediately invoke them.
384
- * Provide `options` to indicate whether `func` should be invoked on the
385
- * leading and/or trailing edge of the `wait` timeout. The `func` is invoked
386
- * with the last arguments provided to the debounced function. Subsequent
387
- * calls to the debounced function return the result of the last `func`
388
- * invocation.
389
- *
390
- * **Note:** If `leading` and `trailing` options are `true`, `func` is
391
- * invoked on the trailing edge of the timeout only if the debounced function
392
- * is invoked more than once during the `wait` timeout.
393
- *
394
- * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
395
- * until to the next tick, similar to `setTimeout` with a timeout of `0`.
396
- *
397
- * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
398
- * for details over the differences between `_.debounce` and `_.throttle`.
399
- *
400
- * @static
401
- * @memberOf _
402
- * @since 0.1.0
403
- * @category Function
404
- * @param {Function} func The function to debounce.
405
- * @param {number} [wait=0] The number of milliseconds to delay.
406
- * @param {Object} [options={}] The options object.
407
- * @param {boolean} [options.leading=false]
408
- * Specify invoking on the leading edge of the timeout.
409
- * @param {number} [options.maxWait]
410
- * The maximum time `func` is allowed to be delayed before it's invoked.
411
- * @param {boolean} [options.trailing=true]
412
- * Specify invoking on the trailing edge of the timeout.
413
- * @returns {Function} Returns the new debounced function.
414
- * @example
415
- *
416
- * // Avoid costly calculations while the window size is in flux.
417
- * jQuery(window).on('resize', _.debounce(calculateLayout, 150));
418
- *
419
- * // Invoke `sendMail` when clicked, debouncing subsequent calls.
420
- * jQuery(element).on('click', _.debounce(sendMail, 300, {
421
- * 'leading': true,
422
- * 'trailing': false
423
- * }));
424
- *
425
- * // Ensure `batchLog` is invoked once after 1 second of debounced calls.
426
- * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });
427
- * var source = new EventSource('/stream');
428
- * jQuery(source).on('message', debounced);
429
- *
430
- * // Cancel the trailing debounced invocation.
431
- * jQuery(window).on('popstate', debounced.cancel);
432
- */
433
- function debounce(func, wait, options) {
434
- var lastArgs,
435
- lastThis,
436
- maxWait,
437
- result,
438
- timerId,
439
- lastCallTime,
440
- lastInvokeTime = 0,
441
- leading = false,
442
- maxing = false,
443
- trailing = true;
444
-
445
- if (typeof func != 'function') {
446
- throw new TypeError(FUNC_ERROR_TEXT);
447
- }
448
- wait = toNumber_1(wait) || 0;
449
- if (isObject_1(options)) {
450
- leading = !!options.leading;
451
- maxing = 'maxWait' in options;
452
- maxWait = maxing ? nativeMax(toNumber_1(options.maxWait) || 0, wait) : maxWait;
453
- trailing = 'trailing' in options ? !!options.trailing : trailing;
454
- }
455
-
456
- function invokeFunc(time) {
457
- var args = lastArgs,
458
- thisArg = lastThis;
459
-
460
- lastArgs = lastThis = undefined;
461
- lastInvokeTime = time;
462
- result = func.apply(thisArg, args);
463
- return result;
464
- }
465
-
466
- function leadingEdge(time) {
467
- // Reset any `maxWait` timer.
468
- lastInvokeTime = time;
469
- // Start the timer for the trailing edge.
470
- timerId = setTimeout(timerExpired, wait);
471
- // Invoke the leading edge.
472
- return leading ? invokeFunc(time) : result;
473
- }
474
-
475
- function remainingWait(time) {
476
- var timeSinceLastCall = time - lastCallTime,
477
- timeSinceLastInvoke = time - lastInvokeTime,
478
- timeWaiting = wait - timeSinceLastCall;
479
-
480
- return maxing
481
- ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke)
482
- : timeWaiting;
483
- }
484
-
485
- function shouldInvoke(time) {
486
- var timeSinceLastCall = time - lastCallTime,
487
- timeSinceLastInvoke = time - lastInvokeTime;
488
-
489
- // Either this is the first call, activity has stopped and we're at the
490
- // trailing edge, the system time has gone backwards and we're treating
491
- // it as the trailing edge, or we've hit the `maxWait` limit.
492
- return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||
493
- (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));
494
- }
495
-
496
- function timerExpired() {
497
- var time = now_1();
498
- if (shouldInvoke(time)) {
499
- return trailingEdge(time);
500
- }
501
- // Restart the timer.
502
- timerId = setTimeout(timerExpired, remainingWait(time));
503
- }
504
-
505
- function trailingEdge(time) {
506
- timerId = undefined;
507
-
508
- // Only invoke if we have `lastArgs` which means `func` has been
509
- // debounced at least once.
510
- if (trailing && lastArgs) {
511
- return invokeFunc(time);
512
- }
513
- lastArgs = lastThis = undefined;
514
- return result;
515
- }
516
-
517
- function cancel() {
518
- if (timerId !== undefined) {
519
- clearTimeout(timerId);
520
- }
521
- lastInvokeTime = 0;
522
- lastArgs = lastCallTime = lastThis = timerId = undefined;
523
- }
524
-
525
- function flush() {
526
- return timerId === undefined ? result : trailingEdge(now_1());
527
- }
528
-
529
- function debounced() {
530
- var time = now_1(),
531
- isInvoking = shouldInvoke(time);
532
-
533
- lastArgs = arguments;
534
- lastThis = this;
535
- lastCallTime = time;
536
-
537
- if (isInvoking) {
538
- if (timerId === undefined) {
539
- return leadingEdge(lastCallTime);
540
- }
541
- if (maxing) {
542
- // Handle invocations in a tight loop.
543
- clearTimeout(timerId);
544
- timerId = setTimeout(timerExpired, wait);
545
- return invokeFunc(lastCallTime);
546
- }
547
- }
548
- if (timerId === undefined) {
549
- timerId = setTimeout(timerExpired, wait);
550
- }
551
- return result;
552
- }
553
- debounced.cancel = cancel;
554
- debounced.flush = flush;
555
- return debounced;
556
- }
557
-
558
- var debounce_1 = debounce;
559
-
560
- exports.AndOrButton = AndOrButton;
561
- exports.FILTER_PROP = FILTER_PROP;
562
- exports.FilterButton = FilterButton;
563
- exports.TrashButton = TrashButton;
564
- exports._Symbol = _Symbol;
565
- exports._baseGetTag = _baseGetTag;
566
- exports._freeGlobal = _freeGlobal;
567
- exports._root = _root;
568
- exports.commonjsGlobal = commonjsGlobal;
569
- exports.createCommonjsModule = createCommonjsModule;
570
- exports.debounce_1 = debounce_1;
571
- exports.isFilterBtn = isFilterBtn;
572
- exports.isObjectLike_1 = isObjectLike_1;
573
- exports.isObject_1 = isObject_1;
574
- exports.isSymbol_1 = isSymbol_1;
575
- exports.toNumber_1 = toNumber_1;