@revolist/revogrid 4.9.28 → 4.9.30

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 (212) hide show
  1. package/dist/cjs/{column.drag.plugin-34501a1e.js → column.drag.plugin-350ccc11.js} +100 -34
  2. package/dist/cjs/column.drag.plugin-350ccc11.js.map +1 -0
  3. package/dist/cjs/{column.service-9d63ff18.js → column.service-affe0219.js} +191 -3
  4. package/dist/cjs/column.service-affe0219.js.map +1 -0
  5. package/dist/cjs/{edit.utils-093fe9cd.js → edit.utils-c726b9a0.js} +2 -2
  6. package/dist/cjs/{edit.utils-093fe9cd.js.map → edit.utils-c726b9a0.js.map} +1 -1
  7. package/dist/cjs/{header-cell-renderer-e4258dfd.js → header-cell-renderer-820a866d.js} +2 -2
  8. package/dist/cjs/{header-cell-renderer-e4258dfd.js.map → header-cell-renderer-820a866d.js.map} +1 -1
  9. package/dist/cjs/{index-a9ee8eef.js → index-01270cfd.js} +12 -263
  10. package/dist/cjs/index-01270cfd.js.map +1 -0
  11. package/dist/cjs/index-10d10c55.js +2 -2
  12. package/dist/cjs/index.cjs.js +9 -7
  13. package/dist/cjs/index.cjs.js.map +1 -1
  14. package/dist/cjs/{key.utils-1438f2ac.js → key.utils-9739c6e8.js} +2 -2
  15. package/dist/cjs/{key.utils-1438f2ac.js.map → key.utils-9739c6e8.js.map} +1 -1
  16. package/dist/cjs/loader.cjs.js +1 -1
  17. package/dist/cjs/revo-grid.cjs.entry.js +89 -50
  18. package/dist/cjs/revo-grid.cjs.entry.js.map +1 -1
  19. package/dist/cjs/revo-grid.cjs.js +1 -1
  20. package/dist/cjs/{revogr-attribution_6.cjs.entry.js → revogr-attribution_7.cjs.entry.js} +76 -35
  21. package/dist/cjs/revogr-attribution_7.cjs.entry.js.map +1 -0
  22. package/dist/cjs/revogr-clipboard_3.cjs.entry.js +5 -5
  23. package/dist/cjs/revogr-data_4.cjs.entry.js +14 -10
  24. package/dist/cjs/revogr-data_4.cjs.entry.js.map +1 -1
  25. package/dist/cjs/revogr-filter-panel.cjs.entry.js +21 -9
  26. package/dist/cjs/revogr-filter-panel.cjs.entry.js.map +1 -1
  27. package/dist/cjs/{row-header-utils-eb5949b3.js → row-header-utils-63591189.js} +2 -2
  28. package/dist/cjs/{row-header-utils-eb5949b3.js.map → row-header-utils-63591189.js.map} +1 -1
  29. package/dist/cjs/{text-editor-ea3badef.js → text-editor-fc7b1ea9.js} +3 -3
  30. package/dist/cjs/{text-editor-ea3badef.js.map → text-editor-fc7b1ea9.js.map} +1 -1
  31. package/dist/cjs/{throttle-6fecba1e.js → throttle-64eee101.js} +2 -2
  32. package/dist/cjs/{throttle-6fecba1e.js.map → throttle-64eee101.js.map} +1 -1
  33. package/dist/collection/collection-manifest.json +1 -0
  34. package/dist/collection/components/data/revogr-data-style.css +3 -3
  35. package/dist/collection/components/editors/revogr-edit-style.css +3 -3
  36. package/dist/collection/components/extra/revogr-extra.js +78 -0
  37. package/dist/collection/components/extra/revogr-extra.js.map +1 -0
  38. package/dist/collection/components/header/revogr-header-style.css +3 -3
  39. package/dist/collection/components/header/revogr-header.js +31 -2
  40. package/dist/collection/components/header/revogr-header.js.map +1 -1
  41. package/dist/collection/components/overlay/autofill.service.js.map +1 -1
  42. package/dist/collection/components/overlay/revogr-overlay-selection.js +66 -19
  43. package/dist/collection/components/overlay/revogr-overlay-selection.js.map +1 -1
  44. package/dist/collection/components/overlay/revogr-overlay-style.css +3 -3
  45. package/dist/collection/components/overlay/selection.utils.js +1 -5
  46. package/dist/collection/components/overlay/selection.utils.js.map +1 -1
  47. package/dist/collection/components/revoGrid/revo-grid-style.css +3 -3
  48. package/dist/collection/components/revoGrid/revo-grid.js +56 -16
  49. package/dist/collection/components/revoGrid/revo-grid.js.map +1 -1
  50. package/dist/collection/components/revoGrid/viewport.service.js +8 -7
  51. package/dist/collection/components/revoGrid/viewport.service.js.map +1 -1
  52. package/dist/collection/components/scroll/revogr-viewport-scroll-style.css +3 -3
  53. package/dist/collection/components/scrollable/revogr-scroll-style.css +3 -3
  54. package/dist/collection/components/selectionFocus/revogr-focus-style.css +3 -3
  55. package/dist/collection/components/selectionFocus/revogr-focus.js +10 -3
  56. package/dist/collection/components/selectionFocus/revogr-focus.js.map +1 -1
  57. package/dist/collection/components/selectionTempRange/revogr-temp-range-style.css +3 -3
  58. package/dist/collection/components/selectionTempRange/revogr-temp-range.js +10 -4
  59. package/dist/collection/components/selectionTempRange/revogr-temp-range.js.map +1 -1
  60. package/dist/collection/plugins/filter/filter.panel.js +22 -10
  61. package/dist/collection/plugins/filter/filter.panel.js.map +1 -1
  62. package/dist/collection/plugins/filter/filter.plugin.js +10 -13
  63. package/dist/collection/plugins/filter/filter.plugin.js.map +1 -1
  64. package/dist/collection/plugins/filter/filter.style.css +6 -3
  65. package/dist/collection/plugins/filter/filter.types.js.map +1 -1
  66. package/dist/collection/serve/controller.js +1 -1
  67. package/dist/collection/serve/data.js +5 -1
  68. package/dist/collection/services/column.data.provider.js +16 -13
  69. package/dist/collection/services/column.data.provider.js.map +1 -1
  70. package/dist/collection/services/dimension.provider.js +15 -7
  71. package/dist/collection/services/dimension.provider.js.map +1 -1
  72. package/dist/collection/store/dataSource/data.store.js +6 -3
  73. package/dist/collection/store/dataSource/data.store.js.map +1 -1
  74. package/dist/collection/store/dimension/dimension.helpers.js +2 -8
  75. package/dist/collection/store/dimension/dimension.helpers.js.map +1 -1
  76. package/dist/collection/types/interfaces.js.map +1 -1
  77. package/dist/collection/utils/column.utils.js +3 -0
  78. package/dist/collection/utils/column.utils.js.map +1 -1
  79. package/dist/esm/{column.drag.plugin-1474c3ae.js → column.drag.plugin-cab965af.js} +85 -21
  80. package/dist/esm/column.drag.plugin-cab965af.js.map +1 -0
  81. package/dist/esm/{column.service-9e1f693c.js → column.service-c66e75f2.js} +189 -3
  82. package/dist/esm/column.service-c66e75f2.js.map +1 -0
  83. package/dist/esm/{edit.utils-1eeabeab.js → edit.utils-19a4c775.js} +2 -2
  84. package/dist/esm/{edit.utils-1eeabeab.js.map → edit.utils-19a4c775.js.map} +1 -1
  85. package/dist/esm/{header-cell-renderer-2ef5f8a1.js → header-cell-renderer-39ed6d63.js} +2 -2
  86. package/dist/esm/{header-cell-renderer-2ef5f8a1.js.map → header-cell-renderer-39ed6d63.js.map} +1 -1
  87. package/dist/esm/index-a61f225b.js +2 -2
  88. package/dist/esm/{index-b6586f9b.js → index-ba44e9d4.js} +10 -261
  89. package/dist/esm/index-ba44e9d4.js.map +1 -0
  90. package/dist/esm/index.js +7 -7
  91. package/dist/esm/{key.utils-562c749e.js → key.utils-7d553ef4.js} +2 -2
  92. package/dist/esm/{key.utils-562c749e.js.map → key.utils-7d553ef4.js.map} +1 -1
  93. package/dist/esm/loader.js +1 -1
  94. package/dist/esm/revo-grid.entry.js +82 -43
  95. package/dist/esm/revo-grid.entry.js.map +1 -1
  96. package/dist/esm/revo-grid.js +1 -1
  97. package/dist/esm/{revogr-attribution_6.entry.js → revogr-attribution_7.entry.js} +76 -36
  98. package/dist/esm/revogr-attribution_7.entry.js.map +1 -0
  99. package/dist/esm/revogr-clipboard_3.entry.js +5 -5
  100. package/dist/esm/revogr-data_4.entry.js +13 -9
  101. package/dist/esm/revogr-data_4.entry.js.map +1 -1
  102. package/dist/esm/revogr-filter-panel.entry.js +21 -9
  103. package/dist/esm/revogr-filter-panel.entry.js.map +1 -1
  104. package/dist/esm/{row-header-utils-e043f744.js → row-header-utils-0e99306d.js} +2 -2
  105. package/dist/esm/{row-header-utils-e043f744.js.map → row-header-utils-0e99306d.js.map} +1 -1
  106. package/dist/esm/{text-editor-654f5d53.js → text-editor-b624b721.js} +3 -3
  107. package/dist/esm/{text-editor-654f5d53.js.map → text-editor-b624b721.js.map} +1 -1
  108. package/dist/esm/{throttle-bb3169c7.js → throttle-d31899f3.js} +2 -2
  109. package/dist/esm/{throttle-bb3169c7.js.map → throttle-d31899f3.js.map} +1 -1
  110. package/dist/revo-grid/column.drag.plugin-cab965af.js +5 -0
  111. package/dist/revo-grid/column.drag.plugin-cab965af.js.map +1 -0
  112. package/dist/revo-grid/column.service-c66e75f2.js +5 -0
  113. package/dist/revo-grid/column.service-c66e75f2.js.map +1 -0
  114. package/dist/revo-grid/{edit.utils-1eeabeab.js → edit.utils-19a4c775.js} +2 -2
  115. package/dist/revo-grid/{header-cell-renderer-2ef5f8a1.js → header-cell-renderer-39ed6d63.js} +2 -2
  116. package/dist/revo-grid/{index-b6586f9b.js → index-ba44e9d4.js} +2 -2
  117. package/dist/revo-grid/index-ba44e9d4.js.map +1 -0
  118. package/dist/revo-grid/index.esm.js +1 -1
  119. package/dist/revo-grid/key.utils-7d553ef4.js +5 -0
  120. package/dist/revo-grid/{key.utils-562c749e.js.map → key.utils-7d553ef4.js.map} +1 -1
  121. package/dist/revo-grid/revo-grid.entry.js +1 -1
  122. package/dist/revo-grid/revo-grid.entry.js.map +1 -1
  123. package/dist/revo-grid/revo-grid.esm.js +1 -1
  124. package/dist/revo-grid/revo-grid.esm.js.map +1 -1
  125. package/dist/revo-grid/revogr-attribution_7.entry.js +5 -0
  126. package/dist/revo-grid/revogr-attribution_7.entry.js.map +1 -0
  127. package/dist/revo-grid/revogr-clipboard_3.entry.js +1 -1
  128. package/dist/revo-grid/revogr-clipboard_3.entry.js.map +1 -1
  129. package/dist/revo-grid/revogr-data_4.entry.js +1 -1
  130. package/dist/revo-grid/revogr-data_4.entry.js.map +1 -1
  131. package/dist/revo-grid/revogr-filter-panel.entry.js +1 -1
  132. package/dist/revo-grid/revogr-filter-panel.entry.js.map +1 -1
  133. package/dist/revo-grid/row-header-utils-0e99306d.js +5 -0
  134. package/dist/revo-grid/text-editor-b624b721.js +5 -0
  135. package/dist/revo-grid/{throttle-bb3169c7.js → throttle-d31899f3.js} +2 -2
  136. package/dist/types/components/extra/revogr-extra.d.ts +24 -0
  137. package/dist/types/components/header/revogr-header.d.ts +7 -2
  138. package/dist/types/components/overlay/autofill.service.d.ts +1 -1
  139. package/dist/types/components/overlay/revogr-overlay-selection.d.ts +8 -2
  140. package/dist/types/components/overlay/selection.utils.d.ts +7 -4
  141. package/dist/types/components/revoGrid/revo-grid.d.ts +22 -13
  142. package/dist/types/components.d.ts +52 -6
  143. package/dist/types/plugins/filter/filter.panel.d.ts +3 -0
  144. package/dist/types/plugins/filter/filter.plugin.d.ts +2 -5
  145. package/dist/types/plugins/filter/filter.types.d.ts +3 -2
  146. package/dist/types/services/column.data.provider.d.ts +5 -1
  147. package/dist/types/services/dimension.provider.d.ts +5 -0
  148. package/dist/types/store/dataSource/data.store.d.ts +2 -1
  149. package/dist/types/store/dimension/dimension.helpers.d.ts +1 -1
  150. package/dist/types/types/interfaces.d.ts +3 -1
  151. package/dist/types/utils/column.utils.d.ts +3 -0
  152. package/hydrate/index.js +301 -172
  153. package/hydrate/index.mjs +301 -172
  154. package/package.json +1 -1
  155. package/standalone/column.service.js +188 -2
  156. package/standalone/column.service.js.map +1 -1
  157. package/standalone/{reduce.js → data.store.js} +8 -188
  158. package/standalone/data.store.js.map +1 -0
  159. package/standalone/dimension.helpers.js +4 -75
  160. package/standalone/dimension.helpers.js.map +1 -1
  161. package/standalone/index.d.ts +2 -0
  162. package/standalone/index.js +3 -2
  163. package/standalone/index.js.map +1 -1
  164. package/standalone/revo-grid.js +174 -65
  165. package/standalone/revo-grid.js.map +1 -1
  166. package/standalone/revogr-data2.js +3 -3
  167. package/standalone/revogr-edit2.js +1 -1
  168. package/standalone/revogr-extra.d.ts +11 -0
  169. package/standalone/revogr-extra.js +11 -0
  170. package/standalone/revogr-extra.js.map +1 -0
  171. package/standalone/revogr-extra2.js +45 -0
  172. package/standalone/revogr-extra2.js.map +1 -0
  173. package/standalone/revogr-filter-panel.js +21 -9
  174. package/standalone/revogr-filter-panel.js.map +1 -1
  175. package/standalone/revogr-focus2.js +12 -5
  176. package/standalone/revogr-focus2.js.map +1 -1
  177. package/standalone/revogr-header2.js +9 -5
  178. package/standalone/revogr-header2.js.map +1 -1
  179. package/standalone/revogr-order-editor2.js +1 -1
  180. package/standalone/revogr-overlay-selection2.js +30 -18
  181. package/standalone/revogr-overlay-selection2.js.map +1 -1
  182. package/standalone/revogr-row-headers2.js +1 -1
  183. package/standalone/revogr-scroll-virtual2.js +1 -1
  184. package/standalone/revogr-temp-range2.js +11 -5
  185. package/standalone/revogr-temp-range2.js.map +1 -1
  186. package/standalone/revogr-viewport-scroll2.js +1 -1
  187. package/standalone/selection.utils.js +2 -6
  188. package/standalone/selection.utils.js.map +1 -1
  189. package/dist/cjs/column.drag.plugin-34501a1e.js.map +0 -1
  190. package/dist/cjs/column.service-9d63ff18.js.map +0 -1
  191. package/dist/cjs/index-a9ee8eef.js.map +0 -1
  192. package/dist/cjs/revogr-attribution_6.cjs.entry.js.map +0 -1
  193. package/dist/esm/column.drag.plugin-1474c3ae.js.map +0 -1
  194. package/dist/esm/column.service-9e1f693c.js.map +0 -1
  195. package/dist/esm/index-b6586f9b.js.map +0 -1
  196. package/dist/esm/revogr-attribution_6.entry.js.map +0 -1
  197. package/dist/revo-grid/column.drag.plugin-1474c3ae.js +0 -5
  198. package/dist/revo-grid/column.drag.plugin-1474c3ae.js.map +0 -1
  199. package/dist/revo-grid/column.service-9e1f693c.js +0 -5
  200. package/dist/revo-grid/column.service-9e1f693c.js.map +0 -1
  201. package/dist/revo-grid/index-b6586f9b.js.map +0 -1
  202. package/dist/revo-grid/key.utils-562c749e.js +0 -5
  203. package/dist/revo-grid/revogr-attribution_6.entry.js +0 -5
  204. package/dist/revo-grid/revogr-attribution_6.entry.js.map +0 -1
  205. package/dist/revo-grid/row-header-utils-e043f744.js +0 -5
  206. package/dist/revo-grid/text-editor-654f5d53.js +0 -5
  207. package/standalone/reduce.js.map +0 -1
  208. /package/dist/revo-grid/{edit.utils-1eeabeab.js.map → edit.utils-19a4c775.js.map} +0 -0
  209. /package/dist/revo-grid/{header-cell-renderer-2ef5f8a1.js.map → header-cell-renderer-39ed6d63.js.map} +0 -0
  210. /package/dist/revo-grid/{row-header-utils-e043f744.js.map → row-header-utils-0e99306d.js.map} +0 -0
  211. /package/dist/revo-grid/{text-editor-654f5d53.js.map → text-editor-b624b721.js.map} +0 -0
  212. /package/dist/revo-grid/{throttle-bb3169c7.js.map → throttle-d31899f3.js.map} +0 -0
@@ -3100,12 +3100,15 @@ function getVisibleSourceItem(store) {
3100
3100
  * @param virtualIndex - virtual index to process
3101
3101
  */
3102
3102
  const getSourceItem = (store, virtualIndex) => {
3103
- const items = store.get('items');
3104
3103
  const source = store.get('source');
3105
- return source[items[virtualIndex]];
3104
+ return source[getSourcePhysicalIndex(store, virtualIndex)];
3105
+ };
3106
+ const getSourcePhysicalIndex = (store, virtualIndex) => {
3107
+ const items = store.get('items');
3108
+ return items[virtualIndex];
3106
3109
  };
3107
3110
  /**
3108
- * Apple item/model/row value to data source
3111
+ * Apply silently item/model/row value to data source
3109
3112
  * @param store - data source with changes
3110
3113
  * @param modelByIndex - collection of rows/values with virtual indexes to setup/replace in store/data source
3111
3114
  * @param mutate - if true, store will be mutated and whole viewport will be re-rendered
@@ -3147,256 +3150,6 @@ function getSourceItemVirtualIndexByProp(store, prop) {
3147
3150
  return items.indexOf(physicalIndex);
3148
3151
  }
3149
3152
 
3150
- /**
3151
- * A specialized version of `_.reduce` for arrays without support for
3152
- * iteratee shorthands.
3153
- *
3154
- * @private
3155
- * @param {Array} [array] The array to iterate over.
3156
- * @param {Function} iteratee The function invoked per iteration.
3157
- * @param {*} [accumulator] The initial value.
3158
- * @param {boolean} [initAccum] Specify using the first element of `array` as
3159
- * the initial value.
3160
- * @returns {*} Returns the accumulated value.
3161
- */
3162
- function arrayReduce(array, iteratee, accumulator, initAccum) {
3163
- var index = -1,
3164
- length = array == null ? 0 : array.length;
3165
-
3166
- if (initAccum && length) {
3167
- accumulator = array[++index];
3168
- }
3169
- while (++index < length) {
3170
- accumulator = iteratee(accumulator, array[index], index, array);
3171
- }
3172
- return accumulator;
3173
- }
3174
-
3175
- /**
3176
- * Creates a base function for methods like `_.forIn` and `_.forOwn`.
3177
- *
3178
- * @private
3179
- * @param {boolean} [fromRight] Specify iterating from right to left.
3180
- * @returns {Function} Returns the new base function.
3181
- */
3182
- function createBaseFor(fromRight) {
3183
- return function(object, iteratee, keysFunc) {
3184
- var index = -1,
3185
- iterable = Object(object),
3186
- props = keysFunc(object),
3187
- length = props.length;
3188
-
3189
- while (length--) {
3190
- var key = props[fromRight ? length : ++index];
3191
- if (iteratee(iterable[key], key, iterable) === false) {
3192
- break;
3193
- }
3194
- }
3195
- return object;
3196
- };
3197
- }
3198
-
3199
- /**
3200
- * The base implementation of `baseForOwn` which iterates over `object`
3201
- * properties returned by `keysFunc` and invokes `iteratee` for each property.
3202
- * Iteratee functions may exit iteration early by explicitly returning `false`.
3203
- *
3204
- * @private
3205
- * @param {Object} object The object to iterate over.
3206
- * @param {Function} iteratee The function invoked per iteration.
3207
- * @param {Function} keysFunc The function to get the keys of `object`.
3208
- * @returns {Object} Returns `object`.
3209
- */
3210
- var baseFor = createBaseFor();
3211
-
3212
- const baseFor$1 = baseFor;
3213
-
3214
- /**
3215
- * The base implementation of `_.forOwn` without support for iteratee shorthands.
3216
- *
3217
- * @private
3218
- * @param {Object} object The object to iterate over.
3219
- * @param {Function} iteratee The function invoked per iteration.
3220
- * @returns {Object} Returns `object`.
3221
- */
3222
- function baseForOwn(object, iteratee) {
3223
- return object && baseFor$1(object, iteratee, keys);
3224
- }
3225
-
3226
- /**
3227
- * Creates a `baseEach` or `baseEachRight` function.
3228
- *
3229
- * @private
3230
- * @param {Function} eachFunc The function to iterate over a collection.
3231
- * @param {boolean} [fromRight] Specify iterating from right to left.
3232
- * @returns {Function} Returns the new base function.
3233
- */
3234
- function createBaseEach(eachFunc, fromRight) {
3235
- return function(collection, iteratee) {
3236
- if (collection == null) {
3237
- return collection;
3238
- }
3239
- if (!isArrayLike(collection)) {
3240
- return eachFunc(collection, iteratee);
3241
- }
3242
- var length = collection.length,
3243
- index = fromRight ? length : -1,
3244
- iterable = Object(collection);
3245
-
3246
- while ((fromRight ? index-- : ++index < length)) {
3247
- if (iteratee(iterable[index], index, iterable) === false) {
3248
- break;
3249
- }
3250
- }
3251
- return collection;
3252
- };
3253
- }
3254
-
3255
- /**
3256
- * The base implementation of `_.forEach` without support for iteratee shorthands.
3257
- *
3258
- * @private
3259
- * @param {Array|Object} collection The collection to iterate over.
3260
- * @param {Function} iteratee The function invoked per iteration.
3261
- * @returns {Array|Object} Returns `collection`.
3262
- */
3263
- var baseEach = createBaseEach(baseForOwn);
3264
-
3265
- const baseEach$1 = baseEach;
3266
-
3267
- /**
3268
- * The base implementation of `_.reduce` and `_.reduceRight`, without support
3269
- * for iteratee shorthands, which iterates over `collection` using `eachFunc`.
3270
- *
3271
- * @private
3272
- * @param {Array|Object} collection The collection to iterate over.
3273
- * @param {Function} iteratee The function invoked per iteration.
3274
- * @param {*} accumulator The initial value.
3275
- * @param {boolean} initAccum Specify using the first or last element of
3276
- * `collection` as the initial value.
3277
- * @param {Function} eachFunc The function to iterate over `collection`.
3278
- * @returns {*} Returns the accumulated value.
3279
- */
3280
- function baseReduce(collection, iteratee, accumulator, initAccum, eachFunc) {
3281
- eachFunc(collection, function(value, index, collection) {
3282
- accumulator = initAccum
3283
- ? (initAccum = false, value)
3284
- : iteratee(accumulator, value, index, collection);
3285
- });
3286
- return accumulator;
3287
- }
3288
-
3289
- /**
3290
- * Reduces `collection` to a value which is the accumulated result of running
3291
- * each element in `collection` thru `iteratee`, where each successive
3292
- * invocation is supplied the return value of the previous. If `accumulator`
3293
- * is not given, the first element of `collection` is used as the initial
3294
- * value. The iteratee is invoked with four arguments:
3295
- * (accumulator, value, index|key, collection).
3296
- *
3297
- * Many lodash methods are guarded to work as iteratees for methods like
3298
- * `_.reduce`, `_.reduceRight`, and `_.transform`.
3299
- *
3300
- * The guarded methods are:
3301
- * `assign`, `defaults`, `defaultsDeep`, `includes`, `merge`, `orderBy`,
3302
- * and `sortBy`
3303
- *
3304
- * @static
3305
- * @memberOf _
3306
- * @since 0.1.0
3307
- * @category Collection
3308
- * @param {Array|Object} collection The collection to iterate over.
3309
- * @param {Function} [iteratee=_.identity] The function invoked per iteration.
3310
- * @param {*} [accumulator] The initial value.
3311
- * @returns {*} Returns the accumulated value.
3312
- * @see _.reduceRight
3313
- * @example
3314
- *
3315
- * _.reduce([1, 2], function(sum, n) {
3316
- * return sum + n;
3317
- * }, 0);
3318
- * // => 3
3319
- *
3320
- * _.reduce({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) {
3321
- * (result[value] || (result[value] = [])).push(key);
3322
- * return result;
3323
- * }, {});
3324
- * // => { '1': ['a', 'c'], '2': ['b'] } (iteration order is not guaranteed)
3325
- */
3326
- function reduce(collection, iteratee, accumulator) {
3327
- var func = isArray$1(collection) ? arrayReduce : baseReduce,
3328
- initAccum = arguments.length < 3;
3329
-
3330
- return func(collection, baseIteratee(iteratee), accumulator, initAccum, baseEach$1);
3331
- }
3332
-
3333
- /**
3334
- * A specialized version of `_.forEach` for arrays without support for
3335
- * iteratee shorthands.
3336
- *
3337
- * @private
3338
- * @param {Array} [array] The array to iterate over.
3339
- * @param {Function} iteratee The function invoked per iteration.
3340
- * @returns {Array} Returns `array`.
3341
- */
3342
- function arrayEach(array, iteratee) {
3343
- var index = -1,
3344
- length = array == null ? 0 : array.length;
3345
-
3346
- while (++index < length) {
3347
- if (iteratee(array[index], index, array) === false) {
3348
- break;
3349
- }
3350
- }
3351
- return array;
3352
- }
3353
-
3354
- /**
3355
- * Casts `value` to `identity` if it's not a function.
3356
- *
3357
- * @private
3358
- * @param {*} value The value to inspect.
3359
- * @returns {Function} Returns cast function.
3360
- */
3361
- function castFunction(value) {
3362
- return typeof value == 'function' ? value : identity;
3363
- }
3364
-
3365
- /**
3366
- * Iterates over elements of `collection` and invokes `iteratee` for each element.
3367
- * The iteratee is invoked with three arguments: (value, index|key, collection).
3368
- * Iteratee functions may exit iteration early by explicitly returning `false`.
3369
- *
3370
- * **Note:** As with other "Collections" methods, objects with a "length"
3371
- * property are iterated like arrays. To avoid this behavior use `_.forIn`
3372
- * or `_.forOwn` for object iteration.
3373
- *
3374
- * @static
3375
- * @memberOf _
3376
- * @since 0.1.0
3377
- * @alias each
3378
- * @category Collection
3379
- * @param {Array|Object} collection The collection to iterate over.
3380
- * @param {Function} [iteratee=_.identity] The function invoked per iteration.
3381
- * @returns {Array|Object} Returns `collection`.
3382
- * @see _.forEachRight
3383
- * @example
3384
- *
3385
- * _.forEach([1, 2], function(value) {
3386
- * console.log(value);
3387
- * });
3388
- * // => Logs `1` then `2`.
3389
- *
3390
- * _.forEach({ 'a': 1, 'b': 2 }, function(value, key) {
3391
- * console.log(key);
3392
- * });
3393
- * // => Logs 'a' then 'b' (iteration order is not guaranteed).
3394
- */
3395
- function forEach(collection, iteratee) {
3396
- var func = isArray$1(collection) ? arrayEach : baseEach$1;
3397
- return func(collection, castFunction(iteratee));
3398
- }
3399
-
3400
3153
  /** Used as references for the maximum length and index of an array. */
3401
3154
  var MAX_ARRAY_LENGTH$1 = 4294967295,
3402
3155
  MAX_ARRAY_INDEX = MAX_ARRAY_LENGTH$1 - 1;
@@ -3531,13 +3284,9 @@ function calculateDimensionData(originItemSize, newSizes = {}) {
3531
3284
  // combine all new sizes
3532
3285
  const sizes = Object.assign({}, newSizes);
3533
3286
  // prepare order sorted new sizes and calculate changed real size
3534
- let newIndexes = [];
3535
- forEach(newSizes, (_, i) => {
3536
- const index = parseInt(i, 10);
3537
- newIndexes[sortedIndex(newIndexes, index)] = index;
3538
- });
3287
+ const newIndexes = Object.keys(sizes).map(Number).sort((a, b) => a - b);
3539
3288
  // fill new coordinates based on what is changed
3540
- reduce(newIndexes, (previous, itemIndex, i) => {
3289
+ newIndexes.reduce((previous, itemIndex, i) => {
3541
3290
  const newItem = {
3542
3291
  itemIndex,
3543
3292
  start: 0,
@@ -3849,6 +3598,6 @@ function applyMixins(derivedCtor, constructors) {
3849
3598
  });
3850
3599
  }
3851
3600
 
3852
- export { OsPlatform as $, HEADER_SORTABLE_CLASS as A, HEADER_ROW_CLASS as B, CELL_CLASS as C, DataStore as D, HEADER_ACTUAL_ROW_CLASS as E, DRAG_ICON_CLASS as F, DRAGGABLE_CLASS as G, HEADER_CLASS as H, FOCUS_CLASS as I, MOBILE_CLASS as J, CELL_HANDLER_CLASS as K, EDIT_INPUT_WR as L, MIN_COL_SIZE as M, DRAGG_TEXT as N, GRID_INTERNALS as O, ROW_FOCUSED_CLASS as P, codesLetter as Q, RESIZE_INTERVAL as R, SELECTION_BORDER_CLASS as S, TMP_SELECTION_BG_CLASS as T, keyValues as U, createStore as V, reduce as W, forEach as X, toInteger as Y, isIterateeCall as Z, isArray$1 as _, getVisibleSourceItem as a, KeyCodesEnum as a0, baseProperty as a1, isArrayLike as a2, getTag$1 as a3, baseKeys as a4, range$2 as a5, findIndex as a6, getNative as a7, baseEach$1 as a8, baseIteratee as a9, getSourceItem as b, setSourceByPhysicalIndex as c, setItems as d, getSourceItemVirtualIndexByProp as e, gatherTrimmedItems as f, getPhysical as g, calculateDimensionData as h, getItemByPosition as i, getItemByIndex as j, findPositionInArray as k, pushSorted as l, mergeSortedArray as m, getScrollbarSize as n, scaleValue as o, proxyPlugin as p, timeout as q, range as r, setSourceByVirtualIndex as s, trimmedPlugin as t, applyMixins as u, setStore as v, DATA_COL as w, DATA_ROW as x, DISABLED_CLASS as y, ROW_HEADER_TYPE as z };
3601
+ export { keys as $, ROW_HEADER_TYPE as A, HEADER_SORTABLE_CLASS as B, CELL_CLASS as C, DataStore as D, HEADER_ROW_CLASS as E, HEADER_ACTUAL_ROW_CLASS as F, DRAG_ICON_CLASS as G, HEADER_CLASS as H, DRAGGABLE_CLASS as I, FOCUS_CLASS as J, MOBILE_CLASS as K, CELL_HANDLER_CLASS as L, MIN_COL_SIZE as M, EDIT_INPUT_WR as N, DRAGG_TEXT as O, GRID_INTERNALS as P, ROW_FOCUSED_CLASS as Q, RESIZE_INTERVAL as R, SELECTION_BORDER_CLASS as S, TMP_SELECTION_BG_CLASS as T, codesLetter as U, keyValues as V, createStore as W, identity as X, isArray$1 as Y, toInteger as Z, isIterateeCall as _, getVisibleSourceItem as a, isArrayLike as a0, baseIteratee as a1, OsPlatform as a2, KeyCodesEnum as a3, baseProperty as a4, getTag$1 as a5, baseKeys as a6, range$2 as a7, findIndex as a8, getNative as a9, getSourceItem as b, getSourcePhysicalIndex as c, setSourceByPhysicalIndex as d, setItems as e, getSourceItemVirtualIndexByProp as f, getPhysical as g, gatherTrimmedItems as h, calculateDimensionData as i, getItemByPosition as j, getItemByIndex as k, findPositionInArray as l, pushSorted as m, mergeSortedArray as n, getScrollbarSize as o, proxyPlugin as p, scaleValue as q, range as r, setSourceByVirtualIndex as s, trimmedPlugin as t, timeout as u, applyMixins as v, setStore as w, DATA_COL as x, DATA_ROW as y, DISABLED_CLASS as z };
3853
3602
 
3854
- //# sourceMappingURL=index-b6586f9b.js.map
3603
+ //# sourceMappingURL=index-ba44e9d4.js.map