@revolist/revogrid 3.2.4 → 3.2.7

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 (213) hide show
  1. package/custom-element/index.js +29217 -0
  2. package/custom-element/resize-observer.js +503 -0
  3. package/dist/cjs/css-shim-9f5bc84d.js +9 -0
  4. package/dist/cjs/debounce-6cea2774.js +578 -0
  5. package/dist/cjs/dom-fcb646f0.js +78 -0
  6. package/dist/{revo-grid/index-8a604c17.js → cjs/index-cb904e00.js} +230 -1445
  7. package/dist/cjs/index.cjs.js +5 -0
  8. package/dist/cjs/loader.cjs.js +38 -0
  9. package/dist/cjs/resize-observer-bf327d6a.js +507 -0
  10. package/dist/cjs/revo-grid.cjs.js +79 -0
  11. package/dist/cjs/revo-grid_11.cjs.entry.js +28301 -0
  12. package/dist/cjs/revogr-clipboard.cjs.entry.js +56 -0
  13. package/dist/cjs/revogr-filter-panel.cjs.entry.js +278 -0
  14. package/dist/collection/collection-manifest.json +25 -0
  15. package/dist/collection/components/button/button.js +7 -0
  16. package/dist/collection/components/clipboard/revogr-clipboard.js +124 -0
  17. package/dist/collection/components/data/cellRenderer.js +27 -0
  18. package/dist/{revo-grid/columnService-91e552ba.js → collection/components/data/columnService.js} +6 -8
  19. package/dist/collection/components/data/revogr-data-style.css +135 -0
  20. package/dist/collection/components/data/revogr-data.js +325 -0
  21. package/dist/collection/components/data/rowRenderer.js +9 -0
  22. package/dist/collection/components/header/headerCellRenderer.js +29 -0
  23. package/dist/collection/components/header/headerRenderer.js +48 -0
  24. package/dist/collection/components/header/revogr-header-style.css +198 -0
  25. package/dist/collection/components/header/revogr-header.js +300 -0
  26. package/dist/collection/components/order/orderRenderer.js +53 -0
  27. package/dist/collection/components/order/revogr-order-editor.js +361 -0
  28. package/dist/collection/components/order/rowOrderService.js +71 -0
  29. package/dist/collection/components/overlay/autofill.service.js +185 -0
  30. package/dist/collection/components/overlay/clipboard.service.js +42 -0
  31. package/dist/collection/components/overlay/editors/edit.utils.js +8 -0
  32. package/dist/collection/components/overlay/editors/text.js +38 -0
  33. package/dist/collection/components/overlay/keyboard.service.js +131 -0
  34. package/dist/collection/components/overlay/revogr-edit-style.css +86 -0
  35. package/dist/collection/components/overlay/revogr-edit.js +162 -0
  36. package/dist/collection/components/overlay/revogr-overlay-selection.js +729 -0
  37. package/dist/collection/components/overlay/revogr-overlay-style.css +98 -0
  38. package/dist/{revo-grid/selection.utils-a9932db6.js → collection/components/overlay/selection.utils.js} +9 -12
  39. package/dist/collection/components/revo-grid/revo-grid-style.css +544 -0
  40. package/dist/collection/components/revo-grid/revo-grid.js +2226 -0
  41. package/dist/collection/components/revo-grid/viewport.helpers.js +14 -0
  42. package/dist/collection/components/revo-grid/viewport.interfaces.js +4 -0
  43. package/dist/collection/components/revo-grid/viewport.js +21 -0
  44. package/dist/collection/components/revo-grid/viewport.resize.service.js +24 -0
  45. package/dist/collection/components/revo-grid/viewport.scrolling.service.js +63 -0
  46. package/dist/collection/components/revo-grid/viewport.section.js +31 -0
  47. package/dist/collection/components/revo-grid/viewport.service.js +212 -0
  48. package/dist/collection/components/rowHeaders/revogr-row-headers.js +213 -0
  49. package/dist/collection/components/rowHeaders/row-header-render.js +4 -0
  50. package/dist/collection/components/scroll/revogr-viewport-scroll-style.css +137 -0
  51. package/dist/collection/components/scroll/revogr-viewport-scroll.js +402 -0
  52. package/dist/collection/components/scrollable/revogr-scroll-style.css +104 -0
  53. package/dist/collection/components/scrollable/revogr-scroll-virtual.js +256 -0
  54. package/dist/collection/components/selection-focus/revogr-focus-style.css +77 -0
  55. package/dist/collection/components/selection-focus/revogr-focus.js +106 -0
  56. package/dist/collection/components/selection-temp-range/revogr-temp-range-style.css +98 -0
  57. package/dist/collection/components/selection-temp-range/revogr-temp-range.js +141 -0
  58. package/dist/{revo-grid/app-globals-7e6866ba.js → collection/global/global.js} +2 -8
  59. package/dist/collection/index.js +4 -0
  60. package/dist/collection/plugins/autoSizeColumn.js +233 -0
  61. package/dist/collection/plugins/basePlugin.js +30 -0
  62. package/dist/{revo-grid/dispatcher-891af82e.js → collection/plugins/dispatcher.js} +2 -4
  63. package/dist/collection/plugins/export/csv.js +71 -0
  64. package/dist/collection/plugins/export/export.plugin.js +168 -0
  65. package/dist/collection/plugins/export/types.js +4 -0
  66. package/dist/collection/plugins/filter/conditions/equal.js +20 -0
  67. package/dist/collection/plugins/filter/conditions/number/greaterThan.js +13 -0
  68. package/dist/collection/plugins/filter/conditions/number/greaterThanOrEqual.js +10 -0
  69. package/dist/collection/plugins/filter/conditions/number/lessThan.js +15 -0
  70. package/dist/collection/plugins/filter/conditions/number/lessThanOrEqual.js +10 -0
  71. package/dist/collection/plugins/filter/conditions/set.js +6 -0
  72. package/dist/collection/plugins/filter/conditions/string/beginswith.js +20 -0
  73. package/dist/collection/plugins/filter/conditions/string/contains.js +21 -0
  74. package/dist/{revo-grid/filter.button-74c1cd9c.js → collection/plugins/filter/filter.button.js} +10 -13
  75. package/dist/collection/plugins/filter/filter.plugin.js +259 -0
  76. package/dist/collection/plugins/filter/filter.pop.js +488 -0
  77. package/dist/collection/plugins/filter/filter.service.js +47 -0
  78. package/dist/collection/plugins/filter/filter.style.css +239 -0
  79. package/dist/collection/plugins/filter/filter.types.js +4 -0
  80. package/dist/collection/plugins/groupingColumn/columnGroupsRenderer.js +33 -0
  81. package/dist/collection/plugins/groupingColumn/grouping.col.plugin.js +39 -0
  82. package/dist/collection/plugins/groupingColumn/headerGroupRenderer.js +24 -0
  83. package/dist/collection/plugins/groupingRow/grouping.const.js +13 -0
  84. package/dist/collection/plugins/groupingRow/grouping.row.expand.service.js +79 -0
  85. package/dist/collection/plugins/groupingRow/grouping.row.plugin.js +261 -0
  86. package/dist/collection/plugins/groupingRow/grouping.row.renderer.js +32 -0
  87. package/dist/collection/plugins/groupingRow/grouping.row.types.js +4 -0
  88. package/dist/collection/plugins/groupingRow/grouping.service.js +158 -0
  89. package/dist/collection/plugins/groupingRow/grouping.trimmed.service.js +60 -0
  90. package/dist/collection/plugins/moveColumn/columnDragPlugin.js +151 -0
  91. package/dist/collection/plugins/moveColumn/columnOrderHandler.js +63 -0
  92. package/dist/collection/plugins/sorting/sorting.plugin.js +184 -0
  93. package/dist/collection/plugins/sorting/sorting.sign.js +9 -0
  94. package/dist/collection/plugins/stretchPlugin.js +71 -0
  95. package/dist/collection/plugins/trimmed/trimmed.plugin.js +35 -0
  96. package/dist/collection/services/cell.helpers.js +10 -0
  97. package/dist/collection/services/column.data.provider.js +191 -0
  98. package/dist/collection/services/data.provider.js +50 -0
  99. package/dist/collection/services/dimension.provider.js +81 -0
  100. package/dist/{revo-grid/localScrollService-e9b73323.js → collection/services/localScrollService.js} +2 -5
  101. package/dist/collection/services/resizable.directive.js +255 -0
  102. package/dist/collection/services/selection.store.connector.js +216 -0
  103. package/dist/collection/services/viewport.provider.js +17 -0
  104. package/dist/collection/store/dataSource/data.proxy.js +37 -0
  105. package/dist/collection/store/dataSource/data.store.js +130 -0
  106. package/dist/collection/store/dimension/dimension.helpers.js +110 -0
  107. package/dist/collection/store/dimension/dimension.store.js +62 -0
  108. package/dist/collection/store/selection/selection.helpers.js +56 -0
  109. package/dist/collection/store/selection/selection.store.js +71 -0
  110. package/dist/collection/store/selection/selection.store.service.js +38 -0
  111. package/dist/collection/store/storeTypes.js +8 -0
  112. package/dist/{revo-grid/viewport.store-ffaaab6d.js → collection/store/viewPort/viewport.helpers.js} +9 -132
  113. package/dist/collection/store/viewPort/viewport.store.js +124 -0
  114. package/dist/collection/themeManager/theme.compact.js +8 -0
  115. package/dist/collection/themeManager/theme.default.js +8 -0
  116. package/dist/collection/themeManager/theme.material.js +8 -0
  117. package/dist/{revo-grid/themeService-ddaaa364.js → collection/themeManager/themeService.js} +6 -23
  118. package/dist/collection/utils/closestPolifill.js +21 -0
  119. package/dist/collection/utils/consts.js +22 -0
  120. package/dist/collection/utils/generateAlphabetHeader.js +23 -0
  121. package/dist/collection/utils/keyCodes.js +73 -0
  122. package/dist/collection/utils/keyCodes.utils.js +67 -0
  123. package/dist/collection/utils/platform.js +8 -0
  124. package/dist/collection/utils/resizeObserver.js +9 -0
  125. package/dist/collection/utils/store.utils.js +10 -0
  126. package/dist/{revo-grid/utils-2c3b3857.js → collection/utils/utils.js} +8 -10
  127. package/dist/collection/utilsExternal/generate-data.js +132 -0
  128. package/dist/esm/css-shim-e1e1ea5e.js +7 -0
  129. package/dist/esm/debounce-e4e6dd45.js +561 -0
  130. package/dist/esm/dom-21bd1807.js +76 -0
  131. package/dist/esm/index-6f753b3c.js +1817 -0
  132. package/dist/esm/index.js +3 -0
  133. package/dist/esm/loader.js +34 -0
  134. package/dist/esm/polyfills/core-js.js +11 -0
  135. package/dist/esm/polyfills/css-shim.js +1 -0
  136. package/dist/esm/polyfills/dom.js +79 -0
  137. package/dist/esm/polyfills/es5-html-element.js +1 -0
  138. package/dist/esm/polyfills/index.js +34 -0
  139. package/dist/esm/polyfills/system.js +6 -0
  140. package/dist/esm/resize-observer-00c48d78.js +503 -0
  141. package/dist/esm/revo-grid.js +77 -0
  142. package/dist/{revo-grid/lodash-a0ab4cdd.js → esm/revo-grid_11.entry.js} +25351 -14282
  143. package/dist/esm/revogr-clipboard.entry.js +52 -0
  144. package/dist/esm/revogr-filter-panel.entry.js +274 -0
  145. package/dist/esm-es5/css-shim-e1e1ea5e.js +4 -0
  146. package/dist/esm-es5/debounce-e4e6dd45.js +4 -0
  147. package/dist/esm-es5/dom-21bd1807.js +24 -0
  148. package/dist/esm-es5/index-6f753b3c.js +4 -0
  149. package/dist/esm-es5/index.js +3 -0
  150. package/dist/esm-es5/loader.js +4 -0
  151. package/dist/esm-es5/resize-observer-00c48d78.js +4 -0
  152. package/dist/esm-es5/revo-grid.js +4 -0
  153. package/dist/esm-es5/revo-grid_11.entry.js +4 -0
  154. package/dist/esm-es5/revogr-clipboard.entry.js +4 -0
  155. package/dist/esm-es5/revogr-filter-panel.entry.js +4 -0
  156. package/dist/index.cjs.js +1 -0
  157. package/dist/index.js +1 -0
  158. package/dist/revo-grid/css-shim-bcf89cc0.system.js +4 -0
  159. package/dist/revo-grid/css-shim-e1e1ea5e.js +4 -0
  160. package/dist/revo-grid/debounce-5a33c710.system.js +4 -0
  161. package/dist/revo-grid/debounce-726bdadb.js +4 -0
  162. package/dist/revo-grid/dom-21bd1807.js +5 -59
  163. package/dist/revo-grid/dom-726246e2.system.js +24 -0
  164. package/dist/revo-grid/index-f14b41a0.system.js +5 -0
  165. package/dist/revo-grid/index-f30d1de1.js +5 -0
  166. package/dist/revo-grid/index.system.js +4 -0
  167. package/dist/revo-grid/resize-observer-00c48d78.js +1 -500
  168. package/dist/revo-grid/resize-observer-8af0bc0e.system.js +4 -0
  169. package/dist/revo-grid/revo-grid.esm.js +1 -130
  170. package/dist/revo-grid/revo-grid.js +133 -0
  171. package/dist/revo-grid/revo-grid.system.js +4 -0
  172. package/dist/revo-grid/revo-grid_11.entry.js +4 -0
  173. package/dist/revo-grid/revo-grid_11.system.entry.js +4 -0
  174. package/dist/revo-grid/revogr-clipboard.entry.js +1 -49
  175. package/dist/revo-grid/revogr-clipboard.system.entry.js +4 -0
  176. package/dist/revo-grid/revogr-filter-panel.entry.js +1 -274
  177. package/dist/revo-grid/revogr-filter-panel.system.entry.js +4 -0
  178. package/dist/types/components/revo-grid/revo-grid.d.ts +0 -1
  179. package/dist/types/components.d.ts +2 -2
  180. package/loader/cdn.js +3 -1
  181. package/loader/index.cjs.js +3 -1
  182. package/loader/index.d.ts +0 -1
  183. package/loader/index.es2017.js +3 -1
  184. package/loader/index.js +3 -1
  185. package/package.json +1 -1
  186. package/dist/revo-grid/_baseIteratee-af30b221.js +0 -2070
  187. package/dist/revo-grid/consts-ef824e6f.js +0 -46
  188. package/dist/revo-grid/css-shim-5387c708.js +0 -7
  189. package/dist/revo-grid/data.store-3263fff9.js +0 -557
  190. package/dist/revo-grid/debounce-aaa4b4da.js +0 -217
  191. package/dist/revo-grid/dimension.helpers-a7944fc4.js +0 -340
  192. package/dist/revo-grid/each-0378e5a3.js +0 -180
  193. package/dist/revo-grid/identity-c8c7d3d8.js +0 -26
  194. package/dist/revo-grid/isString-a51066b5.js +0 -34
  195. package/dist/revo-grid/isSymbol-e4b5dafe.js +0 -247
  196. package/dist/revo-grid/keyCodes.utils-bd06e3ba.js +0 -299
  197. package/dist/revo-grid/keys-70b7c240.js +0 -561
  198. package/dist/revo-grid/revo-grid.entry.js +0 -3484
  199. package/dist/revo-grid/revogr-data.entry.js +0 -152
  200. package/dist/revo-grid/revogr-edit.entry.js +0 -105
  201. package/dist/revo-grid/revogr-focus.entry.js +0 -41
  202. package/dist/revo-grid/revogr-header.entry.js +0 -560
  203. package/dist/revo-grid/revogr-order-editor.entry.js +0 -175
  204. package/dist/revo-grid/revogr-overlay-selection.entry.js +0 -711
  205. package/dist/revo-grid/revogr-row-headers.entry.js +0 -73
  206. package/dist/revo-grid/revogr-scroll-virtual.entry.js +0 -114
  207. package/dist/revo-grid/revogr-temp-range.entry.js +0 -73
  208. package/dist/revo-grid/revogr-viewport-scroll.entry.js +0 -340
  209. package/dist/revo-grid/selection.store.connector-2b613fd0.js +0 -503
  210. package/dist/revo-grid/shadow-css-602a09db.js +0 -390
  211. package/dist/revo-grid/toInteger-9e6cbfd2.js +0 -107
  212. package/dist/revo-grid/toNumber-913b0b72.js +0 -105
  213. package/dist/revo-grid/viewport.helpers-49d3f031.js +0 -16
@@ -1,180 +0,0 @@
1
- /*!
2
- * Built by Revolist
3
- */
4
- import { k as keys_1, i as isArrayLike_1, a as isArray_1 } from './keys-70b7c240.js';
5
- import { i as identity_1 } from './identity-c8c7d3d8.js';
6
-
7
- /**
8
- * Creates a base function for methods like `_.forIn` and `_.forOwn`.
9
- *
10
- * @private
11
- * @param {boolean} [fromRight] Specify iterating from right to left.
12
- * @returns {Function} Returns the new base function.
13
- */
14
- function createBaseFor(fromRight) {
15
- return function(object, iteratee, keysFunc) {
16
- var index = -1,
17
- iterable = Object(object),
18
- props = keysFunc(object),
19
- length = props.length;
20
-
21
- while (length--) {
22
- var key = props[fromRight ? length : ++index];
23
- if (iteratee(iterable[key], key, iterable) === false) {
24
- break;
25
- }
26
- }
27
- return object;
28
- };
29
- }
30
-
31
- var _createBaseFor = createBaseFor;
32
-
33
- /**
34
- * The base implementation of `baseForOwn` which iterates over `object`
35
- * properties returned by `keysFunc` and invokes `iteratee` for each property.
36
- * Iteratee functions may exit iteration early by explicitly returning `false`.
37
- *
38
- * @private
39
- * @param {Object} object The object to iterate over.
40
- * @param {Function} iteratee The function invoked per iteration.
41
- * @param {Function} keysFunc The function to get the keys of `object`.
42
- * @returns {Object} Returns `object`.
43
- */
44
- var baseFor = _createBaseFor();
45
-
46
- var _baseFor = baseFor;
47
-
48
- /**
49
- * The base implementation of `_.forOwn` without support for iteratee shorthands.
50
- *
51
- * @private
52
- * @param {Object} object The object to iterate over.
53
- * @param {Function} iteratee The function invoked per iteration.
54
- * @returns {Object} Returns `object`.
55
- */
56
- function baseForOwn(object, iteratee) {
57
- return object && _baseFor(object, iteratee, keys_1);
58
- }
59
-
60
- var _baseForOwn = baseForOwn;
61
-
62
- /**
63
- * Creates a `baseEach` or `baseEachRight` function.
64
- *
65
- * @private
66
- * @param {Function} eachFunc The function to iterate over a collection.
67
- * @param {boolean} [fromRight] Specify iterating from right to left.
68
- * @returns {Function} Returns the new base function.
69
- */
70
- function createBaseEach(eachFunc, fromRight) {
71
- return function(collection, iteratee) {
72
- if (collection == null) {
73
- return collection;
74
- }
75
- if (!isArrayLike_1(collection)) {
76
- return eachFunc(collection, iteratee);
77
- }
78
- var length = collection.length,
79
- index = fromRight ? length : -1,
80
- iterable = Object(collection);
81
-
82
- while ((fromRight ? index-- : ++index < length)) {
83
- if (iteratee(iterable[index], index, iterable) === false) {
84
- break;
85
- }
86
- }
87
- return collection;
88
- };
89
- }
90
-
91
- var _createBaseEach = createBaseEach;
92
-
93
- /**
94
- * The base implementation of `_.forEach` without support for iteratee shorthands.
95
- *
96
- * @private
97
- * @param {Array|Object} collection The collection to iterate over.
98
- * @param {Function} iteratee The function invoked per iteration.
99
- * @returns {Array|Object} Returns `collection`.
100
- */
101
- var baseEach = _createBaseEach(_baseForOwn);
102
-
103
- var _baseEach = baseEach;
104
-
105
- /**
106
- * A specialized version of `_.forEach` for arrays without support for
107
- * iteratee shorthands.
108
- *
109
- * @private
110
- * @param {Array} [array] The array to iterate over.
111
- * @param {Function} iteratee The function invoked per iteration.
112
- * @returns {Array} Returns `array`.
113
- */
114
- function arrayEach(array, iteratee) {
115
- var index = -1,
116
- length = array == null ? 0 : array.length;
117
-
118
- while (++index < length) {
119
- if (iteratee(array[index], index, array) === false) {
120
- break;
121
- }
122
- }
123
- return array;
124
- }
125
-
126
- var _arrayEach = arrayEach;
127
-
128
- /**
129
- * Casts `value` to `identity` if it's not a function.
130
- *
131
- * @private
132
- * @param {*} value The value to inspect.
133
- * @returns {Function} Returns cast function.
134
- */
135
- function castFunction(value) {
136
- return typeof value == 'function' ? value : identity_1;
137
- }
138
-
139
- var _castFunction = castFunction;
140
-
141
- /**
142
- * Iterates over elements of `collection` and invokes `iteratee` for each element.
143
- * The iteratee is invoked with three arguments: (value, index|key, collection).
144
- * Iteratee functions may exit iteration early by explicitly returning `false`.
145
- *
146
- * **Note:** As with other "Collections" methods, objects with a "length"
147
- * property are iterated like arrays. To avoid this behavior use `_.forIn`
148
- * or `_.forOwn` for object iteration.
149
- *
150
- * @static
151
- * @memberOf _
152
- * @since 0.1.0
153
- * @alias each
154
- * @category Collection
155
- * @param {Array|Object} collection The collection to iterate over.
156
- * @param {Function} [iteratee=_.identity] The function invoked per iteration.
157
- * @returns {Array|Object} Returns `collection`.
158
- * @see _.forEachRight
159
- * @example
160
- *
161
- * _.forEach([1, 2], function(value) {
162
- * console.log(value);
163
- * });
164
- * // => Logs `1` then `2`.
165
- *
166
- * _.forEach({ 'a': 1, 'b': 2 }, function(value, key) {
167
- * console.log(key);
168
- * });
169
- * // => Logs 'a' then 'b' (iteration order is not guaranteed).
170
- */
171
- function forEach(collection, iteratee) {
172
- var func = isArray_1(collection) ? _arrayEach : _baseEach;
173
- return func(collection, _castFunction(iteratee));
174
- }
175
-
176
- var forEach_1 = forEach;
177
-
178
- var each = forEach_1;
179
-
180
- export { _baseEach as _, each as e };
@@ -1,26 +0,0 @@
1
- /*!
2
- * Built by Revolist
3
- */
4
- /**
5
- * This method returns the first argument it receives.
6
- *
7
- * @static
8
- * @since 0.1.0
9
- * @memberOf _
10
- * @category Util
11
- * @param {*} value Any value.
12
- * @returns {*} Returns `value`.
13
- * @example
14
- *
15
- * var object = { 'a': 1 };
16
- *
17
- * console.log(_.identity(object) === object);
18
- * // => true
19
- */
20
- function identity(value) {
21
- return value;
22
- }
23
-
24
- var identity_1 = identity;
25
-
26
- export { identity_1 as i };
@@ -1,34 +0,0 @@
1
- /*!
2
- * Built by Revolist
3
- */
4
- import { d as isObjectLike_1, c as _baseGetTag } from './isSymbol-e4b5dafe.js';
5
- import { a as isArray_1 } from './keys-70b7c240.js';
6
-
7
- /** `Object#toString` result references. */
8
- var stringTag = '[object String]';
9
-
10
- /**
11
- * Checks if `value` is classified as a `String` primitive or object.
12
- *
13
- * @static
14
- * @since 0.1.0
15
- * @memberOf _
16
- * @category Lang
17
- * @param {*} value The value to check.
18
- * @returns {boolean} Returns `true` if `value` is a string, else `false`.
19
- * @example
20
- *
21
- * _.isString('abc');
22
- * // => true
23
- *
24
- * _.isString(1);
25
- * // => false
26
- */
27
- function isString(value) {
28
- return typeof value == 'string' ||
29
- (!isArray_1(value) && isObjectLike_1(value) && _baseGetTag(value) == stringTag);
30
- }
31
-
32
- var isString_1 = isString;
33
-
34
- export { isString_1 as i };
@@ -1,247 +0,0 @@
1
- /*!
2
- * Built by Revolist
3
- */
4
- var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
5
-
6
- function getDefaultExportFromCjs (x) {
7
- return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
8
- }
9
-
10
- function createCommonjsModule(fn, basedir, module) {
11
- return module = {
12
- path: basedir,
13
- exports: {},
14
- require: function (path, base) {
15
- return commonjsRequire(path, (base === undefined || base === null) ? module.path : base);
16
- }
17
- }, fn(module, module.exports), module.exports;
18
- }
19
-
20
- function getDefaultExportFromNamespaceIfPresent (n) {
21
- return n && Object.prototype.hasOwnProperty.call(n, 'default') ? n['default'] : n;
22
- }
23
-
24
- function getDefaultExportFromNamespaceIfNotNamed (n) {
25
- return n && Object.prototype.hasOwnProperty.call(n, 'default') && Object.keys(n).length === 1 ? n['default'] : n;
26
- }
27
-
28
- function getAugmentedNamespace(n) {
29
- if (n.__esModule) return n;
30
- var a = Object.defineProperty({}, '__esModule', {value: true});
31
- Object.keys(n).forEach(function (k) {
32
- var d = Object.getOwnPropertyDescriptor(n, k);
33
- Object.defineProperty(a, k, d.get ? d : {
34
- enumerable: true,
35
- get: function () {
36
- return n[k];
37
- }
38
- });
39
- });
40
- return a;
41
- }
42
-
43
- function commonjsRequire () {
44
- throw new Error('Dynamic requires are not currently supported by @rollup/plugin-commonjs');
45
- }
46
-
47
- /** Detect free variable `global` from Node.js. */
48
- var freeGlobal = typeof commonjsGlobal == 'object' && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
49
-
50
- var _freeGlobal = freeGlobal;
51
-
52
- /** Detect free variable `self`. */
53
- var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
54
-
55
- /** Used as a reference to the global object. */
56
- var root = _freeGlobal || freeSelf || Function('return this')();
57
-
58
- var _root = root;
59
-
60
- /** Built-in value references. */
61
- var Symbol = _root.Symbol;
62
-
63
- var _Symbol = Symbol;
64
-
65
- /** Used for built-in method references. */
66
- var objectProto$1 = Object.prototype;
67
-
68
- /** Used to check objects for own properties. */
69
- var hasOwnProperty = objectProto$1.hasOwnProperty;
70
-
71
- /**
72
- * Used to resolve the
73
- * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
74
- * of values.
75
- */
76
- var nativeObjectToString$1 = objectProto$1.toString;
77
-
78
- /** Built-in value references. */
79
- var symToStringTag$1 = _Symbol ? _Symbol.toStringTag : undefined;
80
-
81
- /**
82
- * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
83
- *
84
- * @private
85
- * @param {*} value The value to query.
86
- * @returns {string} Returns the raw `toStringTag`.
87
- */
88
- function getRawTag(value) {
89
- var isOwn = hasOwnProperty.call(value, symToStringTag$1),
90
- tag = value[symToStringTag$1];
91
-
92
- try {
93
- value[symToStringTag$1] = undefined;
94
- var unmasked = true;
95
- } catch (e) {}
96
-
97
- var result = nativeObjectToString$1.call(value);
98
- if (unmasked) {
99
- if (isOwn) {
100
- value[symToStringTag$1] = tag;
101
- } else {
102
- delete value[symToStringTag$1];
103
- }
104
- }
105
- return result;
106
- }
107
-
108
- var _getRawTag = getRawTag;
109
-
110
- /** Used for built-in method references. */
111
- var objectProto = Object.prototype;
112
-
113
- /**
114
- * Used to resolve the
115
- * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
116
- * of values.
117
- */
118
- var nativeObjectToString = objectProto.toString;
119
-
120
- /**
121
- * Converts `value` to a string using `Object.prototype.toString`.
122
- *
123
- * @private
124
- * @param {*} value The value to convert.
125
- * @returns {string} Returns the converted string.
126
- */
127
- function objectToString(value) {
128
- return nativeObjectToString.call(value);
129
- }
130
-
131
- var _objectToString = objectToString;
132
-
133
- /** `Object#toString` result references. */
134
- var nullTag = '[object Null]',
135
- undefinedTag = '[object Undefined]';
136
-
137
- /** Built-in value references. */
138
- var symToStringTag = _Symbol ? _Symbol.toStringTag : undefined;
139
-
140
- /**
141
- * The base implementation of `getTag` without fallbacks for buggy environments.
142
- *
143
- * @private
144
- * @param {*} value The value to query.
145
- * @returns {string} Returns the `toStringTag`.
146
- */
147
- function baseGetTag(value) {
148
- if (value == null) {
149
- return value === undefined ? undefinedTag : nullTag;
150
- }
151
- return (symToStringTag && symToStringTag in Object(value))
152
- ? _getRawTag(value)
153
- : _objectToString(value);
154
- }
155
-
156
- var _baseGetTag = baseGetTag;
157
-
158
- /**
159
- * Checks if `value` is object-like. A value is object-like if it's not `null`
160
- * and has a `typeof` result of "object".
161
- *
162
- * @static
163
- * @memberOf _
164
- * @since 4.0.0
165
- * @category Lang
166
- * @param {*} value The value to check.
167
- * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
168
- * @example
169
- *
170
- * _.isObjectLike({});
171
- * // => true
172
- *
173
- * _.isObjectLike([1, 2, 3]);
174
- * // => true
175
- *
176
- * _.isObjectLike(_.noop);
177
- * // => false
178
- *
179
- * _.isObjectLike(null);
180
- * // => false
181
- */
182
- function isObjectLike(value) {
183
- return value != null && typeof value == 'object';
184
- }
185
-
186
- var isObjectLike_1 = isObjectLike;
187
-
188
- /**
189
- * Checks if `value` is the
190
- * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
191
- * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
192
- *
193
- * @static
194
- * @memberOf _
195
- * @since 0.1.0
196
- * @category Lang
197
- * @param {*} value The value to check.
198
- * @returns {boolean} Returns `true` if `value` is an object, else `false`.
199
- * @example
200
- *
201
- * _.isObject({});
202
- * // => true
203
- *
204
- * _.isObject([1, 2, 3]);
205
- * // => true
206
- *
207
- * _.isObject(_.noop);
208
- * // => true
209
- *
210
- * _.isObject(null);
211
- * // => false
212
- */
213
- function isObject(value) {
214
- var type = typeof value;
215
- return value != null && (type == 'object' || type == 'function');
216
- }
217
-
218
- var isObject_1 = isObject;
219
-
220
- /** `Object#toString` result references. */
221
- var symbolTag = '[object Symbol]';
222
-
223
- /**
224
- * Checks if `value` is classified as a `Symbol` primitive or object.
225
- *
226
- * @static
227
- * @memberOf _
228
- * @since 4.0.0
229
- * @category Lang
230
- * @param {*} value The value to check.
231
- * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
232
- * @example
233
- *
234
- * _.isSymbol(Symbol.iterator);
235
- * // => true
236
- *
237
- * _.isSymbol('abc');
238
- * // => false
239
- */
240
- function isSymbol(value) {
241
- return typeof value == 'symbol' ||
242
- (isObjectLike_1(value) && _baseGetTag(value) == symbolTag);
243
- }
244
-
245
- var isSymbol_1 = isSymbol;
246
-
247
- export { _root as _, isObject_1 as a, _Symbol as b, _baseGetTag as c, isObjectLike_1 as d, createCommonjsModule as e, _freeGlobal as f, commonjsGlobal as g, isSymbol_1 as i };