@revolist/revogrid 3.2.0 → 3.2.6

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 (179) hide show
  1. package/custom-element/index.js +5 -2
  2. package/custom-element/resize-observer.js +25 -11
  3. package/dist/cjs/css-shim-9f5bc84d.js +9 -0
  4. package/dist/cjs/{debounce-e9b040d9.js → debounce-6cea2774.js} +4 -1
  5. package/dist/cjs/{dom-c8b6d1a7.js → dom-fcb646f0.js} +4 -1
  6. package/dist/cjs/{index-d3f67f2e.js → index-cb904e00.js} +214 -91
  7. package/dist/cjs/index.cjs.js +3 -0
  8. package/dist/cjs/loader.cjs.js +6 -3
  9. package/dist/cjs/{resize-observer-8dc80084.js → resize-observer-bf327d6a.js} +25 -10
  10. package/dist/cjs/revo-grid.cjs.js +12 -6
  11. package/dist/cjs/revo-grid_11.cjs.entry.js +7 -4
  12. package/dist/cjs/revogr-clipboard.cjs.entry.js +4 -1
  13. package/dist/cjs/revogr-filter-panel.cjs.entry.js +5 -2
  14. package/dist/collection/collection-manifest.json +2 -2
  15. package/dist/collection/components/button/button.js +3 -0
  16. package/dist/collection/components/clipboard/revogr-clipboard.js +3 -0
  17. package/dist/collection/components/data/cellRenderer.js +3 -0
  18. package/dist/collection/components/data/columnService.js +3 -0
  19. package/dist/collection/components/data/revogr-data.js +3 -0
  20. package/dist/collection/components/data/rowRenderer.js +3 -0
  21. package/dist/collection/components/header/headerCellRenderer.js +3 -0
  22. package/dist/collection/components/header/headerRenderer.js +3 -0
  23. package/dist/collection/components/header/revogr-header.js +3 -0
  24. package/dist/collection/components/order/orderRenderer.js +3 -0
  25. package/dist/collection/components/order/revogr-order-editor.js +3 -0
  26. package/dist/collection/components/order/rowOrderService.js +3 -0
  27. package/dist/collection/components/overlay/autofill.service.js +3 -0
  28. package/dist/collection/components/overlay/clipboard.service.js +3 -0
  29. package/dist/collection/components/overlay/editors/edit.utils.js +3 -0
  30. package/dist/collection/components/overlay/editors/text.js +3 -0
  31. package/dist/collection/components/overlay/keyboard.service.js +3 -0
  32. package/dist/collection/components/overlay/revogr-edit.js +3 -0
  33. package/dist/collection/components/overlay/revogr-overlay-selection.js +3 -0
  34. package/dist/collection/components/overlay/selection.utils.js +3 -0
  35. package/dist/collection/components/revo-grid/revo-grid.js +17 -14
  36. package/dist/collection/components/revo-grid/viewport.helpers.js +3 -0
  37. package/dist/collection/components/revo-grid/viewport.interfaces.js +3 -0
  38. package/dist/collection/components/revo-grid/viewport.js +3 -0
  39. package/dist/collection/components/revo-grid/viewport.resize.service.js +3 -0
  40. package/dist/collection/components/revo-grid/viewport.scrolling.service.js +3 -0
  41. package/dist/collection/components/revo-grid/viewport.section.js +3 -0
  42. package/dist/collection/components/revo-grid/viewport.service.js +3 -0
  43. package/dist/collection/components/rowHeaders/revogr-row-headers.js +3 -0
  44. package/dist/collection/components/rowHeaders/row-header-render.js +3 -0
  45. package/dist/collection/components/scroll/revogr-viewport-scroll.js +5 -2
  46. package/dist/collection/components/scrollable/revogr-scroll-virtual.js +3 -0
  47. package/dist/collection/components/selection-focus/revogr-focus.js +3 -0
  48. package/dist/collection/components/selection-temp-range/revogr-temp-range.js +3 -0
  49. package/dist/collection/global/global.js +3 -0
  50. package/dist/collection/index.js +3 -0
  51. package/dist/collection/plugins/autoSizeColumn.js +4 -1
  52. package/dist/collection/plugins/basePlugin.js +3 -0
  53. package/dist/collection/plugins/dispatcher.js +3 -0
  54. package/dist/collection/plugins/export/csv.js +3 -0
  55. package/dist/collection/plugins/export/export.plugin.js +3 -0
  56. package/dist/collection/plugins/export/types.js +3 -0
  57. package/dist/collection/plugins/filter/conditions/equal.js +3 -0
  58. package/dist/collection/plugins/filter/conditions/number/greaterThan.js +3 -0
  59. package/dist/collection/plugins/filter/conditions/number/greaterThanOrEqual.js +3 -0
  60. package/dist/collection/plugins/filter/conditions/number/lessThan.js +3 -0
  61. package/dist/collection/plugins/filter/conditions/number/lessThanOrEqual.js +3 -0
  62. package/dist/collection/plugins/filter/conditions/set.js +3 -0
  63. package/dist/collection/plugins/filter/conditions/string/beginswith.js +3 -0
  64. package/dist/collection/plugins/filter/conditions/string/contains.js +3 -0
  65. package/dist/collection/plugins/filter/filter.button.js +3 -0
  66. package/dist/collection/plugins/filter/filter.plugin.js +3 -0
  67. package/dist/collection/plugins/filter/filter.pop.js +3 -0
  68. package/dist/collection/plugins/filter/filter.service.js +3 -0
  69. package/dist/collection/plugins/filter/filter.types.js +3 -0
  70. package/dist/collection/plugins/groupingColumn/columnGroupsRenderer.js +3 -0
  71. package/dist/collection/plugins/groupingColumn/grouping.col.plugin.js +3 -0
  72. package/dist/collection/plugins/groupingColumn/headerGroupRenderer.js +3 -0
  73. package/dist/collection/plugins/groupingRow/grouping.const.js +3 -0
  74. package/dist/collection/plugins/groupingRow/grouping.row.expand.service.js +3 -0
  75. package/dist/collection/plugins/groupingRow/grouping.row.plugin.js +3 -0
  76. package/dist/collection/plugins/groupingRow/grouping.row.renderer.js +3 -0
  77. package/dist/collection/plugins/groupingRow/grouping.row.types.js +3 -0
  78. package/dist/collection/plugins/groupingRow/grouping.service.js +3 -0
  79. package/dist/collection/plugins/groupingRow/grouping.trimmed.service.js +3 -0
  80. package/dist/collection/plugins/moveColumn/columnDragPlugin.js +3 -0
  81. package/dist/collection/plugins/moveColumn/columnOrderHandler.js +3 -0
  82. package/dist/collection/plugins/sorting/sorting.plugin.js +3 -0
  83. package/dist/collection/plugins/sorting/sorting.sign.js +3 -0
  84. package/dist/collection/plugins/stretchPlugin.js +3 -0
  85. package/dist/collection/plugins/trimmed/trimmed.plugin.js +3 -0
  86. package/dist/collection/services/cell.helpers.js +3 -0
  87. package/dist/collection/services/column.data.provider.js +3 -0
  88. package/dist/collection/services/data.provider.js +3 -0
  89. package/dist/collection/services/dimension.provider.js +3 -0
  90. package/dist/collection/services/localScrollService.js +3 -0
  91. package/dist/collection/services/resizable.directive.js +3 -0
  92. package/dist/collection/services/selection.store.connector.js +3 -0
  93. package/dist/collection/services/viewport.provider.js +3 -0
  94. package/dist/collection/store/dataSource/data.proxy.js +3 -0
  95. package/dist/collection/store/dataSource/data.store.js +3 -0
  96. package/dist/collection/store/dimension/dimension.helpers.js +3 -0
  97. package/dist/collection/store/dimension/dimension.store.js +3 -0
  98. package/dist/collection/store/selection/selection.helpers.js +3 -0
  99. package/dist/collection/store/selection/selection.store.js +3 -0
  100. package/dist/collection/store/selection/selection.store.service.js +3 -0
  101. package/dist/collection/store/storeTypes.js +3 -0
  102. package/dist/collection/store/viewPort/viewport.helpers.js +3 -0
  103. package/dist/collection/store/viewPort/viewport.store.js +3 -0
  104. package/dist/collection/themeManager/theme.compact.js +3 -0
  105. package/dist/collection/themeManager/theme.default.js +3 -0
  106. package/dist/collection/themeManager/theme.material.js +3 -0
  107. package/dist/collection/themeManager/themeService.js +3 -0
  108. package/dist/collection/utils/closestPolifill.js +3 -0
  109. package/dist/collection/utils/consts.js +3 -0
  110. package/dist/collection/utils/generateAlphabetHeader.js +3 -0
  111. package/dist/collection/utils/keyCodes.js +3 -0
  112. package/dist/collection/utils/keyCodes.utils.js +3 -0
  113. package/dist/collection/utils/platform.js +3 -0
  114. package/dist/collection/utils/resizeObserver.js +3 -0
  115. package/dist/collection/utils/store.utils.js +3 -0
  116. package/dist/collection/utils/utils.js +3 -0
  117. package/dist/esm/css-shim-e1e1ea5e.js +7 -0
  118. package/dist/esm/{debounce-45985ae0.js → debounce-e4e6dd45.js} +4 -1
  119. package/dist/esm/{dom-1b195079.js → dom-21bd1807.js} +4 -1
  120. package/dist/esm/{index-42c84e7c.js → index-6f753b3c.js} +214 -91
  121. package/dist/esm/index.js +3 -1
  122. package/dist/esm/loader.js +6 -3
  123. package/dist/esm/polyfills/css-shim.js +1 -1
  124. package/dist/esm/{resize-observer-56b7b34f.js → resize-observer-00c48d78.js} +25 -11
  125. package/dist/esm/revo-grid.js +12 -6
  126. package/dist/esm/revo-grid_11.entry.js +7 -4
  127. package/dist/esm/revogr-clipboard.entry.js +4 -1
  128. package/dist/esm/revogr-filter-panel.entry.js +5 -2
  129. package/dist/esm-es5/css-shim-e1e1ea5e.js +4 -0
  130. package/dist/esm-es5/{debounce-45985ae0.js → debounce-e4e6dd45.js} +4 -1
  131. package/dist/esm-es5/{dom-1b195079.js → dom-21bd1807.js} +3 -0
  132. package/dist/esm-es5/index-6f753b3c.js +4 -0
  133. package/dist/esm-es5/index.js +3 -0
  134. package/dist/esm-es5/loader.js +4 -1
  135. package/dist/esm-es5/resize-observer-00c48d78.js +4 -0
  136. package/dist/esm-es5/revo-grid.js +4 -1
  137. package/dist/esm-es5/revo-grid_11.entry.js +4 -1
  138. package/dist/esm-es5/revogr-clipboard.entry.js +4 -1
  139. package/dist/esm-es5/revogr-filter-panel.entry.js +4 -1
  140. package/dist/revo-grid/css-shim-bcf89cc0.system.js +4 -0
  141. package/dist/revo-grid/css-shim-e1e1ea5e.js +4 -0
  142. package/dist/revo-grid/{debounce-a345f98e.system.js → debounce-5a33c710.system.js} +4 -1
  143. package/dist/revo-grid/{debounce-6c911037.js → debounce-726bdadb.js} +4 -1
  144. package/dist/revo-grid/{dom-1b195079.js → dom-21bd1807.js} +3 -0
  145. package/dist/revo-grid/{dom-ee2dd1b3.system.js → dom-726246e2.system.js} +3 -0
  146. package/dist/revo-grid/index-f14b41a0.system.js +5 -0
  147. package/dist/revo-grid/index-f30d1de1.js +5 -0
  148. package/dist/revo-grid/index.esm.js +3 -0
  149. package/dist/revo-grid/index.system.js +3 -0
  150. package/dist/revo-grid/resize-observer-00c48d78.js +4 -0
  151. package/dist/revo-grid/resize-observer-8af0bc0e.system.js +4 -0
  152. package/dist/revo-grid/revo-grid.esm.js +4 -1
  153. package/dist/revo-grid/revo-grid.js +3 -2
  154. package/dist/revo-grid/revo-grid.system.js +4 -1
  155. package/dist/revo-grid/revo-grid_11.entry.js +4 -1
  156. package/dist/revo-grid/revo-grid_11.system.entry.js +4 -1
  157. package/dist/revo-grid/revogr-clipboard.entry.js +4 -1
  158. package/dist/revo-grid/revogr-clipboard.system.entry.js +4 -1
  159. package/dist/revo-grid/revogr-filter-panel.entry.js +4 -1
  160. package/dist/revo-grid/revogr-filter-panel.system.entry.js +4 -1
  161. package/dist/types/components.d.ts +100 -56
  162. package/dist/types/stencil-public-runtime.d.ts +189 -186
  163. package/loader/cdn.js +3 -1
  164. package/loader/index.cjs.js +3 -1
  165. package/loader/index.d.ts +0 -1
  166. package/loader/index.es2017.js +3 -1
  167. package/loader/index.js +3 -1
  168. package/package.json +22 -20
  169. package/dist/cjs/css-shim-e33df79c.js +0 -6
  170. package/dist/esm/css-shim-8d75038b.js +0 -4
  171. package/dist/esm-es5/css-shim-8d75038b.js +0 -1
  172. package/dist/esm-es5/index-42c84e7c.js +0 -1
  173. package/dist/esm-es5/resize-observer-56b7b34f.js +0 -1
  174. package/dist/revo-grid/css-shim-88bfb262.system.js +0 -1
  175. package/dist/revo-grid/css-shim-8d75038b.js +0 -1
  176. package/dist/revo-grid/index-a15e7527.system.js +0 -1
  177. package/dist/revo-grid/index-a7f99799.js +0 -1
  178. package/dist/revo-grid/resize-observer-56b7b34f.js +0 -1
  179. package/dist/revo-grid/resize-observer-7a7b9757.system.js +0 -1
@@ -1,3 +1,6 @@
1
+ /*!
2
+ * Built by Revolist
3
+ */
1
4
  'use strict';
2
5
 
3
6
  var resizeObservers = [];
@@ -33,6 +36,17 @@ var ResizeObserverBoxOptions;
33
36
  ResizeObserverBoxOptions["DEVICE_PIXEL_CONTENT_BOX"] = "device-pixel-content-box";
34
37
  })(ResizeObserverBoxOptions || (ResizeObserverBoxOptions = {}));
35
38
 
39
+ var freeze = function (obj) { return Object.freeze(obj); };
40
+
41
+ var ResizeObserverSize = (function () {
42
+ function ResizeObserverSize(inlineSize, blockSize) {
43
+ this.inlineSize = inlineSize;
44
+ this.blockSize = blockSize;
45
+ freeze(this);
46
+ }
47
+ return ResizeObserverSize;
48
+ }());
49
+
36
50
  var DOMRectReadOnly = (function () {
37
51
  function DOMRectReadOnly(x, y, width, height) {
38
52
  this.x = x;
@@ -43,7 +57,7 @@ var DOMRectReadOnly = (function () {
43
57
  this.left = this.x;
44
58
  this.bottom = this.top + this.height;
45
59
  this.right = this.left + this.width;
46
- return Object.freeze(this);
60
+ return freeze(this);
47
61
  }
48
62
  DOMRectReadOnly.prototype.toJSON = function () {
49
63
  var _a = this, x = _a.x, y = _a.y, top = _a.top, right = _a.right, bottom = _a.bottom, left = _a.left, width = _a.width, height = _a.height;
@@ -66,6 +80,9 @@ var isHidden = function (target) {
66
80
  };
67
81
  var isElement = function (obj) {
68
82
  var _a, _b;
83
+ if (obj instanceof Element) {
84
+ return true;
85
+ }
69
86
  var scope = (_b = (_a = obj) === null || _a === void 0 ? void 0 : _a.ownerDocument) === null || _b === void 0 ? void 0 : _b.defaultView;
70
87
  return !!(scope && obj instanceof scope.Element);
71
88
  };
@@ -98,12 +115,9 @@ var size = function (inlineSize, blockSize, switchSizes) {
98
115
  if (inlineSize === void 0) { inlineSize = 0; }
99
116
  if (blockSize === void 0) { blockSize = 0; }
100
117
  if (switchSizes === void 0) { switchSizes = false; }
101
- return Object.freeze({
102
- inlineSize: (switchSizes ? blockSize : inlineSize) || 0,
103
- blockSize: (switchSizes ? inlineSize : blockSize) || 0
104
- });
118
+ return new ResizeObserverSize((switchSizes ? blockSize : inlineSize) || 0, (switchSizes ? inlineSize : blockSize) || 0);
105
119
  };
106
- var zeroBoxes = Object.freeze({
120
+ var zeroBoxes = freeze({
107
121
  devicePixelContentBoxSize: size(),
108
122
  borderBoxSize: size(),
109
123
  contentBoxSize: size(),
@@ -144,7 +158,7 @@ var calculateBoxSizes = function (target, forceRecalculation) {
144
158
  var contentHeight = svg ? svg.height : parseDimension(cs.height) - heightReduction - horizontalScrollbarThickness;
145
159
  var borderBoxWidth = contentWidth + horizontalPadding + verticalScrollbarThickness + horizontalBorderArea;
146
160
  var borderBoxHeight = contentHeight + verticalPadding + horizontalScrollbarThickness + verticalBorderArea;
147
- var boxes = Object.freeze({
161
+ var boxes = freeze({
148
162
  devicePixelContentBoxSize: size(Math.round(contentWidth * devicePixelRatio), Math.round(contentHeight * devicePixelRatio), switchSizes),
149
163
  borderBoxSize: size(borderBoxWidth, borderBoxHeight, switchSizes),
150
164
  contentBoxSize: size(contentWidth, contentHeight, switchSizes),
@@ -170,9 +184,9 @@ var ResizeObserverEntry = (function () {
170
184
  var boxes = calculateBoxSizes(target);
171
185
  this.target = target;
172
186
  this.contentRect = boxes.contentRect;
173
- this.borderBoxSize = [boxes.borderBoxSize];
174
- this.contentBoxSize = [boxes.contentBoxSize];
175
- this.devicePixelContentBoxSize = [boxes.devicePixelContentBoxSize];
187
+ this.borderBoxSize = freeze([boxes.borderBoxSize]);
188
+ this.contentBoxSize = freeze([boxes.contentBoxSize]);
189
+ this.devicePixelContentBoxSize = freeze([boxes.devicePixelContentBoxSize]);
176
190
  }
177
191
  return ResizeObserverEntry;
178
192
  }());
@@ -490,3 +504,4 @@ var ResizeObserver = (function () {
490
504
 
491
505
  exports.ResizeObserver = ResizeObserver;
492
506
  exports.ResizeObserverEntry = ResizeObserverEntry;
507
+ exports.ResizeObserverSize = ResizeObserverSize;
@@ -1,9 +1,12 @@
1
+ /*!
2
+ * Built by Revolist
3
+ */
1
4
  'use strict';
2
5
 
3
- const index = require('./index-d3f67f2e.js');
6
+ const index = require('./index-cb904e00.js');
4
7
 
5
8
  /*
6
- Stencil Client Patch Browser v2.6.0 | MIT Licensed | https://stenciljs.com
9
+ Stencil Client Patch Browser v2.17.3 | MIT Licensed | https://stenciljs.com
7
10
  */
8
11
  const getDynamicImportFunction = (namespace) => `__sc_import_${namespace.replace(/\s|-/g, '_')}`;
9
12
  const patchBrowser = () => {
@@ -12,7 +15,8 @@ const patchBrowser = () => {
12
15
  index.plt.$cssShim$ = index.win.__cssshim;
13
16
  }
14
17
  // @ts-ignore
15
- const scriptElm = Array.from(index.doc.querySelectorAll('script')).find(s => new RegExp(`\/${index.NAMESPACE}(\\.esm)?\\.js($|\\?|#)`).test(s.src) || s.getAttribute('data-stencil-namespace') === index.NAMESPACE)
18
+ const scriptElm = Array.from(index.doc.querySelectorAll('script')).find((s) => new RegExp(`\/${index.NAMESPACE}(\\.esm)?\\.js($|\\?|#)`).test(s.src) ||
19
+ s.getAttribute('data-stencil-namespace') === index.NAMESPACE)
16
20
  ;
17
21
  const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('revo-grid.cjs.js', document.baseURI).href));
18
22
  const opts = {};
@@ -27,7 +31,7 @@ const patchBrowser = () => {
27
31
  if (!index.win.customElements) {
28
32
  // module support, but no custom elements support (Old Edge)
29
33
  // @ts-ignore
30
- return Promise.resolve().then(function () { return require(/* webpackChunkName: "polyfills-dom" */ './dom-c8b6d1a7.js'); }).then(() => opts);
34
+ return Promise.resolve().then(function () { return require(/* webpackChunkName: "polyfills-dom" */ './dom-fcb646f0.js'); }).then(() => opts);
31
35
  }
32
36
  }
33
37
  return index.promiseResolve(opts);
@@ -53,8 +57,10 @@ const patchDynamicImport = (base, orgScriptElm) => {
53
57
  const script = index.doc.createElement('script');
54
58
  script.type = 'module';
55
59
  script.crossOrigin = orgScriptElm.crossOrigin;
56
- script.src = URL.createObjectURL(new Blob([`import * as m from '${url}'; window.${importFunctionName}.m = m;`], { type: 'application/javascript' }));
57
- mod = new Promise(resolve => {
60
+ script.src = URL.createObjectURL(new Blob([`import * as m from '${url}'; window.${importFunctionName}.m = m;`], {
61
+ type: 'application/javascript',
62
+ }));
63
+ mod = new Promise((resolve) => {
58
64
  script.onload = () => {
59
65
  resolve(index.win[importFunctionName].m);
60
66
  script.remove();
@@ -1,9 +1,12 @@
1
+ /*!
2
+ * Built by Revolist
3
+ */
1
4
  'use strict';
2
5
 
3
6
  Object.defineProperty(exports, '__esModule', { value: true });
4
7
 
5
- const index = require('./index-d3f67f2e.js');
6
- const debounce$1 = require('./debounce-e9b040d9.js');
8
+ const index = require('./index-cb904e00.js');
9
+ const debounce$1 = require('./debounce-6cea2774.js');
7
10
 
8
11
  class ThemeCompact {
9
12
  constructor() {
@@ -4885,7 +4888,7 @@ class AutoSizeColumn extends BasePlugin {
4885
4888
  const sizes = {};
4886
4889
  each(autoSize[type], rgCol => {
4887
4890
  // calculate size
4888
- rgCol.size = sizes[rgCol.index] = source.reduce((prev, rgRow) => Math.max(prev, this.getLength(rgRow[rgCol.prop])), this.getLength(rgCol.name || ''));
4891
+ rgCol.size = sizes[rgCol.index] = source.reduce((prev, rgRow) => Math.max(prev, this.getLength(rgRow[rgCol.prop])), 0);
4889
4892
  });
4890
4893
  this.providers.dimensionProvider.setDimensionSize(type, sizes);
4891
4894
  });
@@ -28025,7 +28028,7 @@ var throttle_1 = throttle;
28025
28028
 
28026
28029
  async function resizeObserver() {
28027
28030
  if (!('ResizeObserver' in window)) {
28028
- const module = await Promise.resolve().then(function () { return require('./resize-observer-8dc80084.js'); });
28031
+ const module = await Promise.resolve().then(function () { return require('./resize-observer-bf327d6a.js'); });
28029
28032
  window.ResizeObserver = module.ResizeObserver;
28030
28033
  }
28031
28034
  }
@@ -1,8 +1,11 @@
1
+ /*!
2
+ * Built by Revolist
3
+ */
1
4
  'use strict';
2
5
 
3
6
  Object.defineProperty(exports, '__esModule', { value: true });
4
7
 
5
- const index = require('./index-d3f67f2e.js');
8
+ const index = require('./index-cb904e00.js');
6
9
 
7
10
  const Clipboard = class {
8
11
  constructor(hostRef) {
@@ -1,9 +1,12 @@
1
+ /*!
2
+ * Built by Revolist
3
+ */
1
4
  'use strict';
2
5
 
3
6
  Object.defineProperty(exports, '__esModule', { value: true });
4
7
 
5
- const index = require('./index-d3f67f2e.js');
6
- const debounce = require('./debounce-e9b040d9.js');
8
+ const index = require('./index-cb904e00.js');
9
+ const debounce = require('./debounce-6cea2774.js');
7
10
 
8
11
  const RevoButton = (props, children) => {
9
12
  return (index.h("button", Object.assign({}, props, { class: Object.assign(Object.assign({}, (typeof props.class === 'object' ? props.class : props.class ? { [props.class]: true } : '')), { ['revo-button']: true }) }), children));
@@ -16,8 +16,8 @@
16
16
  ],
17
17
  "compiler": {
18
18
  "name": "@stencil/core",
19
- "version": "2.6.0",
20
- "typescriptVersion": "4.2.3"
19
+ "version": "2.17.3",
20
+ "typescriptVersion": "4.5.4"
21
21
  },
22
22
  "collections": [],
23
23
  "bundles": [],
@@ -1,3 +1,6 @@
1
+ /*!
2
+ * Built by Revolist
3
+ */
1
4
  import { h } from '@stencil/core';
2
5
  export const RevoButton = (props, children) => {
3
6
  return (h("button", Object.assign({}, props, { class: Object.assign(Object.assign({}, (typeof props.class === 'object' ? props.class : props.class ? { [props.class]: true } : '')), { ['revo-button']: true }) }), children));
@@ -1,3 +1,6 @@
1
+ /*!
2
+ * Built by Revolist
3
+ */
1
4
  import { Component, Listen, Method, Event } from '@stencil/core';
2
5
  export class Clipboard {
3
6
  onPaste(e) {
@@ -1,3 +1,6 @@
1
+ /*!
2
+ * Built by Revolist
3
+ */
1
4
  import { h } from '@stencil/core';
2
5
  import ColumnService from './columnService';
3
6
  import { DRAG_ICON_CLASS, DRAGGABLE_CLASS } from '../../utils/consts';
@@ -1,3 +1,6 @@
1
+ /*!
2
+ * Built by Revolist
3
+ */
1
4
  import { h } from '@stencil/core';
2
5
  import { getSourceItem, getVisibleSourceItem, setSourceByVirtualIndex } from '../../store/dataSource/data.store';
3
6
  import { CELL_CLASS, DISABLED_CLASS } from '../../utils/consts';
@@ -1,3 +1,6 @@
1
+ /*!
2
+ * Built by Revolist
3
+ */
1
4
  import { Component, Element, Event, Prop, h } from '@stencil/core';
2
5
  import { Watch } from '@stencil/core/internal';
3
6
  import ColumnService from './columnService';
@@ -1,3 +1,6 @@
1
+ /*!
2
+ * Built by Revolist
3
+ */
1
4
  import { h } from '@stencil/core';
2
5
  export const PADDING_DEPTH = 10;
3
6
  const RowRenderer = ({ rowClass, size, start, style, depth }, cells) => {
@@ -1,3 +1,6 @@
1
+ /*!
2
+ * Built by Revolist
3
+ */
1
4
  import { h } from '@stencil/core';
2
5
  import { dispatch } from '../../plugins/dispatcher';
3
6
  import { ResizableElement } from '../../services/resizable.directive';
@@ -1,3 +1,6 @@
1
+ /*!
2
+ * Built by Revolist
3
+ */
1
4
  import { h } from '@stencil/core';
2
5
  import { FilterButton } from '../../plugins/filter/filter.button';
3
6
  import { SortingSign } from '../../plugins/sorting/sorting.sign';
@@ -1,3 +1,6 @@
1
+ /*!
2
+ * Built by Revolist
3
+ */
1
4
  import { Component, Element, Event, h, Prop } from '@stencil/core';
2
5
  import keyBy from 'lodash/keyBy';
3
6
  import { HEADER_ACTUAL_ROW_CLASS, HEADER_ROW_CLASS } from '../../utils/consts';
@@ -1,3 +1,6 @@
1
+ /*!
2
+ * Built by Revolist
3
+ */
1
4
  import { h } from '@stencil/core';
2
5
  /**
3
6
  * Draw drag
@@ -1,3 +1,6 @@
1
+ /*!
2
+ * Built by Revolist
3
+ */
1
4
  import { Component, Method, Event, Prop, Listen } from '@stencil/core';
2
5
  import debounce from 'lodash/debounce';
3
6
  import { setItems } from '../../store/dataSource/data.store';
@@ -1,3 +1,6 @@
1
+ /*!
2
+ * Built by Revolist
3
+ */
1
4
  import { getItemByPosition } from '../../store/dimension/dimension.helpers';
2
5
  export default class RowOrderService {
3
6
  constructor(config) {
@@ -1,3 +1,6 @@
1
+ /*!
2
+ * Built by Revolist
3
+ */
1
4
  import debounce from 'lodash/debounce';
2
5
  import each from 'lodash/each';
3
6
  import slice from 'lodash/slice';
@@ -1,3 +1,6 @@
1
+ /*!
2
+ * Built by Revolist
3
+ */
1
4
  import slice from 'lodash/slice';
2
5
  import { h } from '@stencil/core';
3
6
  import { getRange } from '../../store/selection/selection.helpers';
@@ -1,3 +1,6 @@
1
+ /*!
2
+ * Built by Revolist
3
+ */
1
4
  import { EDIT_INPUT_WR } from '../../../utils/consts';
2
5
  // is edit input
3
6
  export function isEditInput(el) {
@@ -1,3 +1,6 @@
1
+ /*!
2
+ * Built by Revolist
3
+ */
1
4
  import { h } from '@stencil/core';
2
5
  import { isEnterKey, isTab } from '../../../utils/keyCodes.utils';
3
6
  import { timeout } from '../../../utils/utils';
@@ -1,3 +1,6 @@
1
+ /*!
2
+ * Built by Revolist
3
+ */
1
4
  import { getRange } from '../../store/selection/selection.helpers';
2
5
  import { codesLetter } from '../../utils/keyCodes';
3
6
  import { isClear, isCtrlKey, isEnterKey, isLetterKey } from '../../utils/keyCodes.utils';
@@ -1,3 +1,6 @@
1
+ /*!
2
+ * Built by Revolist
3
+ */
1
4
  import { Component, Event, Prop, h, Element, Host } from '@stencil/core';
2
5
  import { EDIT_INPUT_WR } from '../../utils/consts';
3
6
  import { TextEditor } from './editors/text';
@@ -1,3 +1,6 @@
1
+ /*!
2
+ * Built by Revolist
3
+ */
1
4
  import { Component, Event, h, Host, Listen, Prop, Element, Watch } from '@stencil/core';
2
5
  import ColumnService from '../data/columnService';
3
6
  import SelectionStoreService from '../../store/selection/selection.store.service';
@@ -1,3 +1,6 @@
1
+ /*!
2
+ * Built by Revolist
3
+ */
1
4
  import { getItemByIndex, getItemByPosition } from '../../store/dimension/dimension.helpers';
2
5
  /** Calculate cell based on x, y position */
3
6
  export function getCurrentCell({ x, y }, { el, rows, cols }) {
@@ -1,3 +1,6 @@
1
+ /*!
2
+ * Built by Revolist
3
+ */
1
4
  import { Component, Prop, h, Watch, Element, Listen, Event, Method, State, Host } from '@stencil/core';
2
5
  import reduce from 'lodash/reduce';
3
6
  import each from 'lodash/each';
@@ -1044,8 +1047,8 @@ export class RevoGridComponent {
1044
1047
  "optional": false,
1045
1048
  "docs": {
1046
1049
  "tags": [{
1047
- "text": "are physical rgRow indexes to hide",
1048
- "name": "trimmedRows"
1050
+ "name": "trimmedRows",
1051
+ "text": "are physical rgRow indexes to hide"
1049
1052
  }],
1050
1053
  "text": "Trimmed rows\nFunctionality which allows to hide rows from main data set"
1051
1054
  },
@@ -1878,8 +1881,8 @@ export class RevoGridComponent {
1878
1881
  "signature": "(type?: RevoGrid.DimensionRows) => Promise<any[]>",
1879
1882
  "parameters": [{
1880
1883
  "tags": [{
1881
- "text": "type - type of source",
1882
- "name": "param"
1884
+ "name": "param",
1885
+ "text": "type - type of source"
1883
1886
  }],
1884
1887
  "text": "- type of source"
1885
1888
  }],
@@ -1907,8 +1910,8 @@ export class RevoGridComponent {
1907
1910
  "signature": "(type?: RevoGrid.DimensionRows) => Promise<RowSource>",
1908
1911
  "parameters": [{
1909
1912
  "tags": [{
1910
- "text": "type - type of source",
1911
- "name": "param"
1913
+ "name": "param",
1914
+ "text": "type - type of source"
1912
1915
  }],
1913
1916
  "text": "- type of source"
1914
1917
  }],
@@ -1940,8 +1943,8 @@ export class RevoGridComponent {
1940
1943
  "signature": "(type?: RevoGrid.DimensionCols) => Promise<ColumnSource>",
1941
1944
  "parameters": [{
1942
1945
  "tags": [{
1943
- "text": "type - type of column",
1944
- "name": "param"
1946
+ "name": "param",
1947
+ "text": "type - type of column"
1945
1948
  }],
1946
1949
  "text": "- type of column"
1947
1950
  }],
@@ -1973,20 +1976,20 @@ export class RevoGridComponent {
1973
1976
  "signature": "(column: RevoGrid.ColumnRegular, index: number, order: 'asc' | 'desc', additive: boolean) => Promise<RevoGrid.ColumnRegular>",
1974
1977
  "parameters": [{
1975
1978
  "tags": [{
1976
- "text": "column - full column details to update",
1977
- "name": "param"
1979
+ "name": "param",
1980
+ "text": "column - full column details to update"
1978
1981
  }],
1979
1982
  "text": "- full column details to update"
1980
1983
  }, {
1981
1984
  "tags": [{
1982
- "text": "index - virtual column index",
1983
- "name": "param"
1985
+ "name": "param",
1986
+ "text": "index - virtual column index"
1984
1987
  }],
1985
1988
  "text": "- virtual column index"
1986
1989
  }, {
1987
1990
  "tags": [{
1988
- "text": "order - order to apply",
1989
- "name": "param"
1991
+ "name": "param",
1992
+ "text": "order - order to apply"
1990
1993
  }],
1991
1994
  "text": "- order to apply"
1992
1995
  }, {
@@ -1,3 +1,6 @@
1
+ /*!
2
+ * Built by Revolist
3
+ */
1
4
  export const HEADER_SLOT = 'header';
2
5
  export const FOOTER_SLOT = 'footer';
3
6
  export const CONTENT_SLOT = 'content';
@@ -1 +1,4 @@
1
+ /*!
2
+ * Built by Revolist
3
+ */
1
4
  export {};
@@ -1,3 +1,6 @@
1
+ /*!
2
+ * Built by Revolist
3
+ */
1
4
  import { h } from '@stencil/core';
2
5
  import OrderRenderer from '../order/orderRenderer';
3
6
  export const RevoViewPort = ({ viewports, dimensions, orderRef, nakedClick, registerElement, onScroll }, children) => {
@@ -1,3 +1,6 @@
1
+ /*!
2
+ * Built by Revolist
3
+ */
1
4
  import throttle from 'lodash/throttle';
2
5
  import { resizeObserver } from '../../utils/resizeObserver';
3
6
  export default class GridResizeService {
@@ -1,3 +1,6 @@
1
+ /*!
2
+ * Built by Revolist
3
+ */
1
4
  export default class GridScrollingService {
2
5
  constructor(setViewport) {
3
6
  this.setViewport = setViewport;
@@ -1,3 +1,6 @@
1
+ /*!
2
+ * Built by Revolist
3
+ */
1
4
  import { h } from '@stencil/core';
2
5
  import { UUID } from '../../utils/consts';
3
6
  import { DATA_SLOT, HEADER_SLOT } from './viewport.helpers';
@@ -1,3 +1,6 @@
1
+ /*!
2
+ * Built by Revolist
3
+ */
1
4
  import { EMPTY_INDEX } from '../../services/selection.store.connector';
2
5
  import { getSourceItem, getVisibleSourceItem } from '../../store/dataSource/data.store';
3
6
  import { columnTypes, rowTypes } from '../../store/storeTypes';
@@ -1,3 +1,6 @@
1
+ /*!
2
+ * Built by Revolist
3
+ */
1
4
  import { h, Host } from '@stencil/core';
2
5
  import { Component, Prop, Event } from '@stencil/core';
3
6
  import DataStore from '../../store/dataSource/data.store';
@@ -1 +1,4 @@
1
+ /*!
2
+ * Built by Revolist
3
+ */
1
4
  export const RowHeaderRender = s => (__, { rowIndex: i }) => s + i;
@@ -1,3 +1,6 @@
1
+ /*!
2
+ * Built by Revolist
3
+ */
1
4
  import { Component, Event, h, Method, Element, Prop, Host } from '@stencil/core';
2
5
  import each from 'lodash/each';
3
6
  import GridResizeService from '../revo-grid/viewport.resize.service';
@@ -370,8 +373,8 @@ export class RevogrViewportScroll {
370
373
  "signature": "(e: RevoGrid.ViewPortScrollEvent) => Promise<RevoGrid.ViewPortScrollEvent>",
371
374
  "parameters": [{
372
375
  "tags": [{
373
- "text": "e",
374
- "name": "param"
376
+ "name": "param",
377
+ "text": "e"
375
378
  }],
376
379
  "text": ""
377
380
  }],
@@ -1,3 +1,6 @@
1
+ /*!
2
+ * Built by Revolist
3
+ */
1
4
  import { Component, Element, Event, h, Host, Method, Prop } from '@stencil/core';
2
5
  import { getScrollbarWidth } from '../../utils/utils';
3
6
  import LocalScrollService from '../../services/localScrollService';
@@ -1,3 +1,6 @@
1
+ /*!
2
+ * Built by Revolist
3
+ */
1
4
  import { Component, Prop, h, Host, Element } from '@stencil/core';
2
5
  import { FOCUS_CLASS } from '../../utils/consts';
3
6
  import { getElStyle } from '../overlay/selection.utils';
@@ -1,3 +1,6 @@
1
+ /*!
2
+ * Built by Revolist
3
+ */
1
4
  import { Component, Prop, h, Host } from '@stencil/core';
2
5
  import { throttle } from 'lodash';
3
6
  import { TMP_SELECTION_BG_CLASS } from '../../utils/consts';
@@ -1,3 +1,6 @@
1
+ /*!
2
+ * Built by Revolist
3
+ */
1
4
  import { setMode } from '@stencil/core';
2
5
  import ThemeService from '../themeManager/themeService';
3
6
  setMode(elm => {
@@ -1 +1,4 @@
1
+ /*!
2
+ * Built by Revolist
3
+ */
1
4
  export * from './components';
@@ -1,3 +1,6 @@
1
+ /*!
2
+ * Built by Revolist
3
+ */
1
4
  /**
2
5
  * Plugin module for revo-grid grid system
3
6
  * Add support for automatic column resize
@@ -93,7 +96,7 @@ export default class AutoSizeColumn extends BasePlugin {
93
96
  const sizes = {};
94
97
  each(autoSize[type], rgCol => {
95
98
  // calculate size
96
- rgCol.size = sizes[rgCol.index] = source.reduce((prev, rgRow) => Math.max(prev, this.getLength(rgRow[rgCol.prop])), this.getLength(rgCol.name || ''));
99
+ rgCol.size = sizes[rgCol.index] = source.reduce((prev, rgRow) => Math.max(prev, this.getLength(rgRow[rgCol.prop])), 0);
97
100
  });
98
101
  this.providers.dimensionProvider.setDimensionSize(type, sizes);
99
102
  });
@@ -1,3 +1,6 @@
1
+ /*!
2
+ * Built by Revolist
3
+ */
1
4
  export default class BasePlugin {
2
5
  constructor(revogrid) {
3
6
  this.revogrid = revogrid;
@@ -1,3 +1,6 @@
1
+ /*!
2
+ * Built by Revolist
3
+ */
1
4
  /**
2
5
  * Dispatch custom event to element
3
6
  */
@@ -1,3 +1,6 @@
1
+ /*!
2
+ * Built by Revolist
3
+ */
1
4
  import { getGroupingName, isGrouping } from '../groupingRow/grouping.service';
2
5
  const INITIAL = {
3
6
  mime: 'text/csv',
@@ -1,3 +1,6 @@
1
+ /*!
2
+ * Built by Revolist
3
+ */
1
4
  import fill from 'lodash/fill';
2
5
  import { columnTypes, rowTypes } from '../../store/storeTypes';
3
6
  import { timeout } from '../../utils/utils';
@@ -1 +1,4 @@
1
+ /*!
2
+ * Built by Revolist
3
+ */
1
4
  export {};
@@ -1,3 +1,6 @@
1
+ /*!
2
+ * Built by Revolist
3
+ */
1
4
  const eq = (value, extra) => {
2
5
  if (typeof value === 'undefined' || (value === null && !extra)) {
3
6
  return true;