@revolist/revogrid 3.2.12 → 3.2.13

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 (55) hide show
  1. package/custom-element/index.d.ts +98 -15
  2. package/custom-element/index.js +29221 -15
  3. package/package.json +1 -1
  4. package/custom-element/_baseIteratee.js +0 -2070
  5. package/custom-element/columnService.js +0 -743
  6. package/custom-element/consts.js +0 -46
  7. package/custom-element/data.store.js +0 -545
  8. package/custom-element/debounce.js +0 -217
  9. package/custom-element/dimension.helpers.js +0 -340
  10. package/custom-element/each.js +0 -180
  11. package/custom-element/filter.button.js +0 -36
  12. package/custom-element/identity.js +0 -26
  13. package/custom-element/isSymbol.js +0 -220
  14. package/custom-element/keys.js +0 -561
  15. package/custom-element/localScrollService.js +0 -86
  16. package/custom-element/revo-grid.d.ts +0 -11
  17. package/custom-element/revo-grid.js +0 -3661
  18. package/custom-element/revogr-clipboard.d.ts +0 -11
  19. package/custom-element/revogr-clipboard.js +0 -71
  20. package/custom-element/revogr-data.d.ts +0 -11
  21. package/custom-element/revogr-data.js +0 -9
  22. package/custom-element/revogr-data2.js +0 -170
  23. package/custom-element/revogr-edit.d.ts +0 -11
  24. package/custom-element/revogr-edit.js +0 -9
  25. package/custom-element/revogr-edit2.js +0 -401
  26. package/custom-element/revogr-filter-panel.d.ts +0 -11
  27. package/custom-element/revogr-filter-panel.js +0 -307
  28. package/custom-element/revogr-focus.d.ts +0 -11
  29. package/custom-element/revogr-focus.js +0 -9
  30. package/custom-element/revogr-focus2.js +0 -63
  31. package/custom-element/revogr-header.d.ts +0 -11
  32. package/custom-element/revogr-header.js +0 -9
  33. package/custom-element/revogr-header2.js +0 -590
  34. package/custom-element/revogr-order-editor.d.ts +0 -11
  35. package/custom-element/revogr-order-editor.js +0 -9
  36. package/custom-element/revogr-order-editor2.js +0 -189
  37. package/custom-element/revogr-overlay-selection.d.ts +0 -11
  38. package/custom-element/revogr-overlay-selection.js +0 -9
  39. package/custom-element/revogr-overlay-selection2.js +0 -740
  40. package/custom-element/revogr-row-headers.d.ts +0 -11
  41. package/custom-element/revogr-row-headers.js +0 -9
  42. package/custom-element/revogr-row-headers2.js +0 -402
  43. package/custom-element/revogr-scroll-virtual.d.ts +0 -11
  44. package/custom-element/revogr-scroll-virtual.js +0 -9
  45. package/custom-element/revogr-scroll-virtual2.js +0 -134
  46. package/custom-element/revogr-temp-range.d.ts +0 -11
  47. package/custom-element/revogr-temp-range.js +0 -9
  48. package/custom-element/revogr-temp-range2.js +0 -17274
  49. package/custom-element/revogr-viewport-scroll.d.ts +0 -11
  50. package/custom-element/revogr-viewport-scroll.js +0 -9
  51. package/custom-element/revogr-viewport-scroll2.js +0 -366
  52. package/custom-element/selection.utils.js +0 -106
  53. package/custom-element/toInteger.js +0 -107
  54. package/custom-element/toNumber.js +0 -105
  55. package/custom-element/utils.js +0 -69
@@ -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.js';
5
- import { i as identity_1 } from './identity.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,36 +0,0 @@
1
- /*!
2
- * Built by Revolist
3
- */
4
- import { h } from '@stencil/core/internal/client';
5
-
6
- const FILTER_BUTTON_CLASS = 'rv-filter';
7
- const FILTER_BUTTON_ACTIVE = 'active';
8
- const FILTER_PROP = 'hasFilter';
9
- const AND_OR_BUTTON = 'and-or-button';
10
- const TRASH_BUTTON = 'trash-button';
11
- const FilterButton = ({ column }) => {
12
- return (h("span", null,
13
- h("button", { class: {
14
- [FILTER_BUTTON_CLASS]: true,
15
- [FILTER_BUTTON_ACTIVE]: column && !!column[FILTER_PROP],
16
- } },
17
- h("svg", { class: "filter-img", viewBox: "0 0 64 64" },
18
- h("g", { stroke: "none", "stroke-width": "1", fill: "none", "fill-rule": "evenodd" },
19
- h("path", { d: "M43,48 L43,56 L21,56 L21,48 L43,48 Z M53,28 L53,36 L12,36 L12,28 L53,28 Z M64,8 L64,16 L0,16 L0,8 L64,8 Z", fill: "currentColor" }))))));
20
- };
21
- const TrashButton = () => {
22
- return (h("div", { class: { [TRASH_BUTTON]: true } },
23
- h("svg", { class: "trash-img", viewBox: "0 0 24 24" },
24
- h("path", { fill: "currentColor", d: "M9,3V4H4V6H5V19A2,2 0 0,0 7,21H17A2,2 0 0,0 19,19V6H20V4H15V3H9M7,6H17V19H7V6M9,8V17H11V8H9M13,8V17H15V8H13Z" }))));
25
- };
26
- const AndOrButton = ({ isAnd }) => {
27
- return h("button", { class: { [AND_OR_BUTTON]: true, 'light revo-button': true } }, isAnd ? 'and' : 'or');
28
- };
29
- function isFilterBtn(e) {
30
- if (e.classList.contains(FILTER_BUTTON_CLASS)) {
31
- return true;
32
- }
33
- return e === null || e === void 0 ? void 0 : e.closest(`.${FILTER_BUTTON_CLASS}`);
34
- }
35
-
36
- export { AndOrButton as A, FILTER_PROP as F, TrashButton as T, FilterButton as a, isFilterBtn as i };
@@ -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,220 +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 createCommonjsModule(fn, basedir, module) {
7
- return module = {
8
- path: basedir,
9
- exports: {},
10
- require: function (path, base) {
11
- return commonjsRequire();
12
- }
13
- }, fn(module, module.exports), module.exports;
14
- }
15
-
16
- function commonjsRequire () {
17
- throw new Error('Dynamic requires are not currently supported by @rollup/plugin-commonjs');
18
- }
19
-
20
- /** Detect free variable `global` from Node.js. */
21
- var freeGlobal = typeof commonjsGlobal == 'object' && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
22
-
23
- var _freeGlobal = freeGlobal;
24
-
25
- /** Detect free variable `self`. */
26
- var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
27
-
28
- /** Used as a reference to the global object. */
29
- var root = _freeGlobal || freeSelf || Function('return this')();
30
-
31
- var _root = root;
32
-
33
- /** Built-in value references. */
34
- var Symbol = _root.Symbol;
35
-
36
- var _Symbol = Symbol;
37
-
38
- /** Used for built-in method references. */
39
- var objectProto$1 = Object.prototype;
40
-
41
- /** Used to check objects for own properties. */
42
- var hasOwnProperty = objectProto$1.hasOwnProperty;
43
-
44
- /**
45
- * Used to resolve the
46
- * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
47
- * of values.
48
- */
49
- var nativeObjectToString$1 = objectProto$1.toString;
50
-
51
- /** Built-in value references. */
52
- var symToStringTag$1 = _Symbol ? _Symbol.toStringTag : undefined;
53
-
54
- /**
55
- * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
56
- *
57
- * @private
58
- * @param {*} value The value to query.
59
- * @returns {string} Returns the raw `toStringTag`.
60
- */
61
- function getRawTag(value) {
62
- var isOwn = hasOwnProperty.call(value, symToStringTag$1),
63
- tag = value[symToStringTag$1];
64
-
65
- try {
66
- value[symToStringTag$1] = undefined;
67
- var unmasked = true;
68
- } catch (e) {}
69
-
70
- var result = nativeObjectToString$1.call(value);
71
- if (unmasked) {
72
- if (isOwn) {
73
- value[symToStringTag$1] = tag;
74
- } else {
75
- delete value[symToStringTag$1];
76
- }
77
- }
78
- return result;
79
- }
80
-
81
- var _getRawTag = getRawTag;
82
-
83
- /** Used for built-in method references. */
84
- var objectProto = Object.prototype;
85
-
86
- /**
87
- * Used to resolve the
88
- * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
89
- * of values.
90
- */
91
- var nativeObjectToString = objectProto.toString;
92
-
93
- /**
94
- * Converts `value` to a string using `Object.prototype.toString`.
95
- *
96
- * @private
97
- * @param {*} value The value to convert.
98
- * @returns {string} Returns the converted string.
99
- */
100
- function objectToString(value) {
101
- return nativeObjectToString.call(value);
102
- }
103
-
104
- var _objectToString = objectToString;
105
-
106
- /** `Object#toString` result references. */
107
- var nullTag = '[object Null]',
108
- undefinedTag = '[object Undefined]';
109
-
110
- /** Built-in value references. */
111
- var symToStringTag = _Symbol ? _Symbol.toStringTag : undefined;
112
-
113
- /**
114
- * The base implementation of `getTag` without fallbacks for buggy environments.
115
- *
116
- * @private
117
- * @param {*} value The value to query.
118
- * @returns {string} Returns the `toStringTag`.
119
- */
120
- function baseGetTag(value) {
121
- if (value == null) {
122
- return value === undefined ? undefinedTag : nullTag;
123
- }
124
- return (symToStringTag && symToStringTag in Object(value))
125
- ? _getRawTag(value)
126
- : _objectToString(value);
127
- }
128
-
129
- var _baseGetTag = baseGetTag;
130
-
131
- /**
132
- * Checks if `value` is object-like. A value is object-like if it's not `null`
133
- * and has a `typeof` result of "object".
134
- *
135
- * @static
136
- * @memberOf _
137
- * @since 4.0.0
138
- * @category Lang
139
- * @param {*} value The value to check.
140
- * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
141
- * @example
142
- *
143
- * _.isObjectLike({});
144
- * // => true
145
- *
146
- * _.isObjectLike([1, 2, 3]);
147
- * // => true
148
- *
149
- * _.isObjectLike(_.noop);
150
- * // => false
151
- *
152
- * _.isObjectLike(null);
153
- * // => false
154
- */
155
- function isObjectLike(value) {
156
- return value != null && typeof value == 'object';
157
- }
158
-
159
- var isObjectLike_1 = isObjectLike;
160
-
161
- /**
162
- * Checks if `value` is the
163
- * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
164
- * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
165
- *
166
- * @static
167
- * @memberOf _
168
- * @since 0.1.0
169
- * @category Lang
170
- * @param {*} value The value to check.
171
- * @returns {boolean} Returns `true` if `value` is an object, else `false`.
172
- * @example
173
- *
174
- * _.isObject({});
175
- * // => true
176
- *
177
- * _.isObject([1, 2, 3]);
178
- * // => true
179
- *
180
- * _.isObject(_.noop);
181
- * // => true
182
- *
183
- * _.isObject(null);
184
- * // => false
185
- */
186
- function isObject(value) {
187
- var type = typeof value;
188
- return value != null && (type == 'object' || type == 'function');
189
- }
190
-
191
- var isObject_1 = isObject;
192
-
193
- /** `Object#toString` result references. */
194
- var symbolTag = '[object Symbol]';
195
-
196
- /**
197
- * Checks if `value` is classified as a `Symbol` primitive or object.
198
- *
199
- * @static
200
- * @memberOf _
201
- * @since 4.0.0
202
- * @category Lang
203
- * @param {*} value The value to check.
204
- * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
205
- * @example
206
- *
207
- * _.isSymbol(Symbol.iterator);
208
- * // => true
209
- *
210
- * _.isSymbol('abc');
211
- * // => false
212
- */
213
- function isSymbol(value) {
214
- return typeof value == 'symbol' ||
215
- (isObjectLike_1(value) && _baseGetTag(value) == symbolTag);
216
- }
217
-
218
- var isSymbol_1 = isSymbol;
219
-
220
- export { _baseGetTag as _, commonjsGlobal as a, isObject_1 as b, createCommonjsModule as c, isSymbol_1 as d, _root as e, _Symbol as f, _freeGlobal as g, isObjectLike_1 as i };