@revolist/revogrid 3.2.0 → 3.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/revo-grid/_baseIteratee-af30b221.js +2070 -0
- package/dist/{collection/global/global.js → revo-grid/app-globals-7e6866ba.js} +11 -2
- package/dist/{collection/components/data/columnService.js → revo-grid/columnService-91e552ba.js} +11 -6
- package/dist/revo-grid/consts-ef824e6f.js +46 -0
- package/dist/revo-grid/css-shim-5387c708.js +7 -0
- package/dist/revo-grid/data.store-3263fff9.js +557 -0
- package/dist/revo-grid/debounce-aaa4b4da.js +217 -0
- package/dist/revo-grid/dimension.helpers-a7944fc4.js +340 -0
- package/dist/{collection/plugins/dispatcher.js → revo-grid/dispatcher-891af82e.js} +7 -2
- package/dist/{cjs/dom-c8b6d1a7.js → revo-grid/dom-21bd1807.js} +4 -3
- package/dist/revo-grid/each-0378e5a3.js +180 -0
- package/dist/{collection/plugins/filter/filter.button.js → revo-grid/filter.button-74c1cd9c.js} +16 -10
- package/dist/revo-grid/identity-c8c7d3d8.js +26 -0
- package/dist/revo-grid/index-8a604c17.js +3067 -0
- package/dist/revo-grid/index.esm.js +3 -0
- package/dist/revo-grid/isString-a51066b5.js +34 -0
- package/dist/revo-grid/isSymbol-e4b5dafe.js +247 -0
- package/dist/revo-grid/keyCodes.utils-bd06e3ba.js +299 -0
- package/dist/revo-grid/keys-70b7c240.js +561 -0
- package/dist/{collection/services/localScrollService.js → revo-grid/localScrollService-e9b73323.js} +8 -2
- package/dist/{esm/revo-grid_11.entry.js → revo-grid/lodash-a0ab4cdd.js} +13773 -24835
- package/dist/{cjs/resize-observer-8dc80084.js → revo-grid/resize-observer-00c48d78.js} +25 -14
- package/dist/revo-grid/revo-grid.entry.js +3484 -0
- package/dist/revo-grid/revo-grid.esm.js +133 -1
- package/dist/revo-grid/revogr-clipboard.entry.js +52 -1
- package/dist/revo-grid/revogr-data.entry.js +152 -0
- package/dist/revo-grid/revogr-edit.entry.js +105 -0
- package/dist/revo-grid/revogr-filter-panel.entry.js +277 -1
- package/dist/revo-grid/revogr-focus.entry.js +41 -0
- package/dist/revo-grid/revogr-header.entry.js +560 -0
- package/dist/revo-grid/revogr-order-editor.entry.js +175 -0
- package/dist/revo-grid/revogr-overlay-selection.entry.js +711 -0
- package/dist/revo-grid/revogr-row-headers.entry.js +73 -0
- package/dist/revo-grid/revogr-scroll-virtual.entry.js +114 -0
- package/dist/revo-grid/revogr-temp-range.entry.js +73 -0
- package/dist/revo-grid/revogr-viewport-scroll.entry.js +340 -0
- package/dist/revo-grid/selection.store.connector-2b613fd0.js +503 -0
- package/dist/{collection/components/overlay/selection.utils.js → revo-grid/selection.utils-a9932db6.js} +15 -9
- package/dist/revo-grid/shadow-css-602a09db.js +390 -0
- package/dist/{collection/themeManager/themeService.js → revo-grid/themeService-ddaaa364.js} +26 -6
- package/dist/revo-grid/toInteger-9e6cbfd2.js +107 -0
- package/dist/revo-grid/toNumber-913b0b72.js +105 -0
- package/dist/{collection/utils/utils.js → revo-grid/utils-2c3b3857.js} +13 -8
- package/dist/revo-grid/viewport.helpers-49d3f031.js +16 -0
- package/dist/{collection/store/viewPort/viewport.helpers.js → revo-grid/viewport.store-ffaaab6d.js} +135 -9
- package/dist/types/components.d.ts +100 -56
- package/dist/types/stencil-public-runtime.d.ts +189 -186
- package/package.json +22 -20
- package/custom-element/index.js +0 -29210
- package/custom-element/resize-observer.js +0 -489
- package/dist/cjs/css-shim-e33df79c.js +0 -6
- package/dist/cjs/debounce-e9b040d9.js +0 -575
- package/dist/cjs/index-d3f67f2e.js +0 -1729
- package/dist/cjs/index.cjs.js +0 -2
- package/dist/cjs/loader.cjs.js +0 -35
- package/dist/cjs/revo-grid.cjs.js +0 -73
- package/dist/cjs/revo-grid_11.cjs.entry.js +0 -28294
- package/dist/cjs/revogr-clipboard.cjs.entry.js +0 -53
- package/dist/cjs/revogr-filter-panel.cjs.entry.js +0 -275
- package/dist/collection/collection-manifest.json +0 -25
- package/dist/collection/components/button/button.js +0 -4
- package/dist/collection/components/clipboard/revogr-clipboard.js +0 -121
- package/dist/collection/components/data/cellRenderer.js +0 -24
- package/dist/collection/components/data/revogr-data-style.css +0 -135
- package/dist/collection/components/data/revogr-data.js +0 -322
- package/dist/collection/components/data/rowRenderer.js +0 -6
- package/dist/collection/components/header/headerCellRenderer.js +0 -26
- package/dist/collection/components/header/headerRenderer.js +0 -45
- package/dist/collection/components/header/revogr-header-style.css +0 -198
- package/dist/collection/components/header/revogr-header.js +0 -297
- package/dist/collection/components/order/orderRenderer.js +0 -50
- package/dist/collection/components/order/revogr-order-editor.js +0 -358
- package/dist/collection/components/order/rowOrderService.js +0 -68
- package/dist/collection/components/overlay/autofill.service.js +0 -182
- package/dist/collection/components/overlay/clipboard.service.js +0 -39
- package/dist/collection/components/overlay/editors/edit.utils.js +0 -5
- package/dist/collection/components/overlay/editors/text.js +0 -35
- package/dist/collection/components/overlay/keyboard.service.js +0 -128
- package/dist/collection/components/overlay/revogr-edit-style.css +0 -86
- package/dist/collection/components/overlay/revogr-edit.js +0 -159
- package/dist/collection/components/overlay/revogr-overlay-selection.js +0 -726
- package/dist/collection/components/overlay/revogr-overlay-style.css +0 -98
- package/dist/collection/components/revo-grid/revo-grid-style.css +0 -544
- package/dist/collection/components/revo-grid/revo-grid.js +0 -2224
- package/dist/collection/components/revo-grid/viewport.helpers.js +0 -11
- package/dist/collection/components/revo-grid/viewport.interfaces.js +0 -1
- package/dist/collection/components/revo-grid/viewport.js +0 -18
- package/dist/collection/components/revo-grid/viewport.resize.service.js +0 -21
- package/dist/collection/components/revo-grid/viewport.scrolling.service.js +0 -60
- package/dist/collection/components/revo-grid/viewport.section.js +0 -28
- package/dist/collection/components/revo-grid/viewport.service.js +0 -209
- package/dist/collection/components/rowHeaders/revogr-row-headers.js +0 -210
- package/dist/collection/components/rowHeaders/row-header-render.js +0 -1
- package/dist/collection/components/scroll/revogr-viewport-scroll-style.css +0 -137
- package/dist/collection/components/scroll/revogr-viewport-scroll.js +0 -399
- package/dist/collection/components/scrollable/revogr-scroll-style.css +0 -104
- package/dist/collection/components/scrollable/revogr-scroll-virtual.js +0 -253
- package/dist/collection/components/selection-focus/revogr-focus-style.css +0 -77
- package/dist/collection/components/selection-focus/revogr-focus.js +0 -103
- package/dist/collection/components/selection-temp-range/revogr-temp-range-style.css +0 -98
- package/dist/collection/components/selection-temp-range/revogr-temp-range.js +0 -138
- package/dist/collection/index.js +0 -1
- package/dist/collection/plugins/autoSizeColumn.js +0 -230
- package/dist/collection/plugins/basePlugin.js +0 -27
- package/dist/collection/plugins/export/csv.js +0 -68
- package/dist/collection/plugins/export/export.plugin.js +0 -165
- package/dist/collection/plugins/export/types.js +0 -1
- package/dist/collection/plugins/filter/conditions/equal.js +0 -17
- package/dist/collection/plugins/filter/conditions/number/greaterThan.js +0 -10
- package/dist/collection/plugins/filter/conditions/number/greaterThanOrEqual.js +0 -7
- package/dist/collection/plugins/filter/conditions/number/lessThan.js +0 -12
- package/dist/collection/plugins/filter/conditions/number/lessThanOrEqual.js +0 -7
- package/dist/collection/plugins/filter/conditions/set.js +0 -3
- package/dist/collection/plugins/filter/conditions/string/beginswith.js +0 -17
- package/dist/collection/plugins/filter/conditions/string/contains.js +0 -18
- package/dist/collection/plugins/filter/filter.plugin.js +0 -256
- package/dist/collection/plugins/filter/filter.pop.js +0 -485
- package/dist/collection/plugins/filter/filter.service.js +0 -44
- package/dist/collection/plugins/filter/filter.style.css +0 -239
- package/dist/collection/plugins/filter/filter.types.js +0 -1
- package/dist/collection/plugins/groupingColumn/columnGroupsRenderer.js +0 -30
- package/dist/collection/plugins/groupingColumn/grouping.col.plugin.js +0 -36
- package/dist/collection/plugins/groupingColumn/headerGroupRenderer.js +0 -21
- package/dist/collection/plugins/groupingRow/grouping.const.js +0 -10
- package/dist/collection/plugins/groupingRow/grouping.row.expand.service.js +0 -76
- package/dist/collection/plugins/groupingRow/grouping.row.plugin.js +0 -258
- package/dist/collection/plugins/groupingRow/grouping.row.renderer.js +0 -29
- package/dist/collection/plugins/groupingRow/grouping.row.types.js +0 -1
- package/dist/collection/plugins/groupingRow/grouping.service.js +0 -155
- package/dist/collection/plugins/groupingRow/grouping.trimmed.service.js +0 -57
- package/dist/collection/plugins/moveColumn/columnDragPlugin.js +0 -145
- package/dist/collection/plugins/moveColumn/columnOrderHandler.js +0 -60
- package/dist/collection/plugins/sorting/sorting.plugin.js +0 -181
- package/dist/collection/plugins/sorting/sorting.sign.js +0 -6
- package/dist/collection/plugins/stretchPlugin.js +0 -68
- package/dist/collection/plugins/trimmed/trimmed.plugin.js +0 -32
- package/dist/collection/services/cell.helpers.js +0 -7
- package/dist/collection/services/column.data.provider.js +0 -188
- package/dist/collection/services/data.provider.js +0 -47
- package/dist/collection/services/dimension.provider.js +0 -78
- package/dist/collection/services/resizable.directive.js +0 -250
- package/dist/collection/services/selection.store.connector.js +0 -213
- package/dist/collection/services/viewport.provider.js +0 -14
- package/dist/collection/store/dataSource/data.proxy.js +0 -34
- package/dist/collection/store/dataSource/data.store.js +0 -127
- package/dist/collection/store/dimension/dimension.helpers.js +0 -107
- package/dist/collection/store/dimension/dimension.store.js +0 -59
- package/dist/collection/store/selection/selection.helpers.js +0 -53
- package/dist/collection/store/selection/selection.store.js +0 -68
- package/dist/collection/store/selection/selection.store.service.js +0 -35
- package/dist/collection/store/storeTypes.js +0 -5
- package/dist/collection/store/viewPort/viewport.store.js +0 -121
- package/dist/collection/themeManager/theme.compact.js +0 -5
- package/dist/collection/themeManager/theme.default.js +0 -5
- package/dist/collection/themeManager/theme.material.js +0 -5
- package/dist/collection/utils/closestPolifill.js +0 -18
- package/dist/collection/utils/consts.js +0 -19
- package/dist/collection/utils/generateAlphabetHeader.js +0 -20
- package/dist/collection/utils/keyCodes.js +0 -70
- package/dist/collection/utils/keyCodes.utils.js +0 -64
- package/dist/collection/utils/platform.js +0 -5
- package/dist/collection/utils/resizeObserver.js +0 -6
- package/dist/collection/utils/store.utils.js +0 -7
- package/dist/collection/utilsExternal/generate-data.js +0 -132
- package/dist/esm/css-shim-8d75038b.js +0 -4
- package/dist/esm/debounce-45985ae0.js +0 -558
- package/dist/esm/dom-1b195079.js +0 -73
- package/dist/esm/index-42c84e7c.js +0 -1694
- package/dist/esm/index.js +0 -1
- package/dist/esm/loader.js +0 -31
- package/dist/esm/polyfills/core-js.js +0 -11
- package/dist/esm/polyfills/css-shim.js +0 -1
- package/dist/esm/polyfills/dom.js +0 -79
- package/dist/esm/polyfills/es5-html-element.js +0 -1
- package/dist/esm/polyfills/index.js +0 -34
- package/dist/esm/polyfills/system.js +0 -6
- package/dist/esm/resize-observer-56b7b34f.js +0 -489
- package/dist/esm/revo-grid.js +0 -71
- package/dist/esm/revogr-clipboard.entry.js +0 -49
- package/dist/esm/revogr-filter-panel.entry.js +0 -271
- package/dist/esm-es5/css-shim-8d75038b.js +0 -1
- package/dist/esm-es5/debounce-45985ae0.js +0 -1
- package/dist/esm-es5/dom-1b195079.js +0 -21
- package/dist/esm-es5/index-42c84e7c.js +0 -1
- package/dist/esm-es5/index.js +0 -0
- package/dist/esm-es5/loader.js +0 -1
- package/dist/esm-es5/resize-observer-56b7b34f.js +0 -1
- package/dist/esm-es5/revo-grid.js +0 -1
- package/dist/esm-es5/revo-grid_11.entry.js +0 -1
- package/dist/esm-es5/revogr-clipboard.entry.js +0 -1
- package/dist/esm-es5/revogr-filter-panel.entry.js +0 -1
- package/dist/index.cjs.js +0 -1
- package/dist/index.js +0 -1
- package/dist/revo-grid/css-shim-88bfb262.system.js +0 -1
- package/dist/revo-grid/css-shim-8d75038b.js +0 -1
- package/dist/revo-grid/debounce-6c911037.js +0 -1
- package/dist/revo-grid/debounce-a345f98e.system.js +0 -1
- package/dist/revo-grid/dom-1b195079.js +0 -19
- package/dist/revo-grid/dom-ee2dd1b3.system.js +0 -21
- package/dist/revo-grid/index-a15e7527.system.js +0 -1
- package/dist/revo-grid/index-a7f99799.js +0 -1
- package/dist/revo-grid/index.system.js +0 -1
- package/dist/revo-grid/resize-observer-56b7b34f.js +0 -1
- package/dist/revo-grid/resize-observer-7a7b9757.system.js +0 -1
- package/dist/revo-grid/revo-grid.js +0 -132
- package/dist/revo-grid/revo-grid.system.js +0 -1
- package/dist/revo-grid/revo-grid_11.entry.js +0 -1
- package/dist/revo-grid/revo-grid_11.system.entry.js +0 -1
- package/dist/revo-grid/revogr-clipboard.system.entry.js +0 -1
- package/dist/revo-grid/revogr-filter-panel.system.entry.js +0 -1
|
@@ -0,0 +1,34 @@
|
|
|
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 };
|
|
@@ -0,0 +1,247 @@
|
|
|
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 };
|
|
@@ -0,0 +1,299 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built by Revolist
|
|
3
|
+
*/
|
|
4
|
+
import { _ as _baseFindIndex, t as toInteger_1 } from './toInteger-9e6cbfd2.js';
|
|
5
|
+
import { k as keys_1, i as isArrayLike_1 } from './keys-70b7c240.js';
|
|
6
|
+
import { i as isString_1 } from './isString-a51066b5.js';
|
|
7
|
+
import { _ as _arrayMap } from './consts-ef824e6f.js';
|
|
8
|
+
|
|
9
|
+
var codes;
|
|
10
|
+
(function (codes) {
|
|
11
|
+
codes[codes["MOUSE_LEFT"] = 1] = "MOUSE_LEFT";
|
|
12
|
+
codes[codes["MOUSE_RIGHT"] = 3] = "MOUSE_RIGHT";
|
|
13
|
+
codes[codes["MOUSE_MIDDLE"] = 2] = "MOUSE_MIDDLE";
|
|
14
|
+
codes[codes["BACKSPACE"] = 8] = "BACKSPACE";
|
|
15
|
+
codes[codes["COMMA"] = 188] = "COMMA";
|
|
16
|
+
codes[codes["INSERT"] = 45] = "INSERT";
|
|
17
|
+
codes[codes["DELETE"] = 46] = "DELETE";
|
|
18
|
+
codes[codes["END"] = 35] = "END";
|
|
19
|
+
codes[codes["ENTER"] = 13] = "ENTER";
|
|
20
|
+
codes[codes["ESCAPE"] = 27] = "ESCAPE";
|
|
21
|
+
codes[codes["CONTROL"] = 17] = "CONTROL";
|
|
22
|
+
codes[codes["COMMAND_LEFT"] = 91] = "COMMAND_LEFT";
|
|
23
|
+
codes[codes["COMMAND_RIGHT"] = 93] = "COMMAND_RIGHT";
|
|
24
|
+
codes[codes["COMMAND_FIREFOX"] = 224] = "COMMAND_FIREFOX";
|
|
25
|
+
codes[codes["ALT"] = 18] = "ALT";
|
|
26
|
+
codes[codes["HOME"] = 36] = "HOME";
|
|
27
|
+
codes[codes["PAGE_DOWN"] = 34] = "PAGE_DOWN";
|
|
28
|
+
codes[codes["PAGE_UP"] = 33] = "PAGE_UP";
|
|
29
|
+
codes[codes["PERIOD"] = 190] = "PERIOD";
|
|
30
|
+
codes[codes["SPACE"] = 32] = "SPACE";
|
|
31
|
+
codes[codes["SHIFT"] = 16] = "SHIFT";
|
|
32
|
+
codes[codes["CAPS_LOCK"] = 20] = "CAPS_LOCK";
|
|
33
|
+
codes[codes["TAB"] = 9] = "TAB";
|
|
34
|
+
codes[codes["ARROW_RIGHT"] = 39] = "ARROW_RIGHT";
|
|
35
|
+
codes[codes["ARROW_LEFT"] = 37] = "ARROW_LEFT";
|
|
36
|
+
codes[codes["ARROW_UP"] = 38] = "ARROW_UP";
|
|
37
|
+
codes[codes["ARROW_DOWN"] = 40] = "ARROW_DOWN";
|
|
38
|
+
codes[codes["F1"] = 112] = "F1";
|
|
39
|
+
codes[codes["F2"] = 113] = "F2";
|
|
40
|
+
codes[codes["F3"] = 114] = "F3";
|
|
41
|
+
codes[codes["F4"] = 115] = "F4";
|
|
42
|
+
codes[codes["F5"] = 116] = "F5";
|
|
43
|
+
codes[codes["F6"] = 117] = "F6";
|
|
44
|
+
codes[codes["F7"] = 118] = "F7";
|
|
45
|
+
codes[codes["F8"] = 119] = "F8";
|
|
46
|
+
codes[codes["F9"] = 120] = "F9";
|
|
47
|
+
codes[codes["F10"] = 121] = "F10";
|
|
48
|
+
codes[codes["F11"] = 122] = "F11";
|
|
49
|
+
codes[codes["F12"] = 123] = "F12";
|
|
50
|
+
codes[codes["A"] = 65] = "A";
|
|
51
|
+
codes[codes["C"] = 67] = "C";
|
|
52
|
+
codes[codes["D"] = 68] = "D";
|
|
53
|
+
codes[codes["F"] = 70] = "F";
|
|
54
|
+
codes[codes["L"] = 76] = "L";
|
|
55
|
+
codes[codes["O"] = 79] = "O";
|
|
56
|
+
codes[codes["P"] = 80] = "P";
|
|
57
|
+
codes[codes["S"] = 83] = "S";
|
|
58
|
+
codes[codes["V"] = 86] = "V";
|
|
59
|
+
codes[codes["X"] = 88] = "X";
|
|
60
|
+
})(codes || (codes = {}));
|
|
61
|
+
var codesLetter;
|
|
62
|
+
(function (codesLetter) {
|
|
63
|
+
codesLetter["ENTER"] = "Enter";
|
|
64
|
+
codesLetter["ENTER_NUM"] = "NumpadEnter";
|
|
65
|
+
codesLetter["V"] = "KeyV";
|
|
66
|
+
codesLetter["C"] = "KeyC";
|
|
67
|
+
codesLetter["ESCAPE"] = "Escape";
|
|
68
|
+
codesLetter["TAB"] = "Tab";
|
|
69
|
+
codesLetter["BACKSPACE"] = "Backspace";
|
|
70
|
+
codesLetter["DELETE"] = "Delete";
|
|
71
|
+
codesLetter["ARROW_RIGHT"] = "ArrowRight";
|
|
72
|
+
codesLetter["ARROW_LEFT"] = "ArrowLeft";
|
|
73
|
+
codesLetter["ARROW_UP"] = "ArrowUp";
|
|
74
|
+
codesLetter["ARROW_DOWN"] = "ArrowDown";
|
|
75
|
+
codesLetter["SHIFT"] = "Shift";
|
|
76
|
+
})(codesLetter || (codesLetter = {}));
|
|
77
|
+
const KeyCodesEnum = codes;
|
|
78
|
+
|
|
79
|
+
var osPlatform;
|
|
80
|
+
(function (osPlatform) {
|
|
81
|
+
osPlatform["mac"] = "Mac";
|
|
82
|
+
})(osPlatform || (osPlatform = {}));
|
|
83
|
+
const OsPlatform = osPlatform;
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* The base implementation of `_.isNaN` without support for number objects.
|
|
87
|
+
*
|
|
88
|
+
* @private
|
|
89
|
+
* @param {*} value The value to check.
|
|
90
|
+
* @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.
|
|
91
|
+
*/
|
|
92
|
+
function baseIsNaN(value) {
|
|
93
|
+
return value !== value;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
var _baseIsNaN = baseIsNaN;
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* A specialized version of `_.indexOf` which performs strict equality
|
|
100
|
+
* comparisons of values, i.e. `===`.
|
|
101
|
+
*
|
|
102
|
+
* @private
|
|
103
|
+
* @param {Array} array The array to inspect.
|
|
104
|
+
* @param {*} value The value to search for.
|
|
105
|
+
* @param {number} fromIndex The index to search from.
|
|
106
|
+
* @returns {number} Returns the index of the matched value, else `-1`.
|
|
107
|
+
*/
|
|
108
|
+
function strictIndexOf(array, value, fromIndex) {
|
|
109
|
+
var index = fromIndex - 1,
|
|
110
|
+
length = array.length;
|
|
111
|
+
|
|
112
|
+
while (++index < length) {
|
|
113
|
+
if (array[index] === value) {
|
|
114
|
+
return index;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
return -1;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
var _strictIndexOf = strictIndexOf;
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* The base implementation of `_.indexOf` without `fromIndex` bounds checks.
|
|
124
|
+
*
|
|
125
|
+
* @private
|
|
126
|
+
* @param {Array} array The array to inspect.
|
|
127
|
+
* @param {*} value The value to search for.
|
|
128
|
+
* @param {number} fromIndex The index to search from.
|
|
129
|
+
* @returns {number} Returns the index of the matched value, else `-1`.
|
|
130
|
+
*/
|
|
131
|
+
function baseIndexOf(array, value, fromIndex) {
|
|
132
|
+
return value === value
|
|
133
|
+
? _strictIndexOf(array, value, fromIndex)
|
|
134
|
+
: _baseFindIndex(array, _baseIsNaN, fromIndex);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
var _baseIndexOf = baseIndexOf;
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* The base implementation of `_.values` and `_.valuesIn` which creates an
|
|
141
|
+
* array of `object` property values corresponding to the property names
|
|
142
|
+
* of `props`.
|
|
143
|
+
*
|
|
144
|
+
* @private
|
|
145
|
+
* @param {Object} object The object to query.
|
|
146
|
+
* @param {Array} props The property names to get values for.
|
|
147
|
+
* @returns {Object} Returns the array of property values.
|
|
148
|
+
*/
|
|
149
|
+
function baseValues(object, props) {
|
|
150
|
+
return _arrayMap(props, function(key) {
|
|
151
|
+
return object[key];
|
|
152
|
+
});
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
var _baseValues = baseValues;
|
|
156
|
+
|
|
157
|
+
/**
|
|
158
|
+
* Creates an array of the own enumerable string keyed property values of `object`.
|
|
159
|
+
*
|
|
160
|
+
* **Note:** Non-object values are coerced to objects.
|
|
161
|
+
*
|
|
162
|
+
* @static
|
|
163
|
+
* @since 0.1.0
|
|
164
|
+
* @memberOf _
|
|
165
|
+
* @category Object
|
|
166
|
+
* @param {Object} object The object to query.
|
|
167
|
+
* @returns {Array} Returns the array of property values.
|
|
168
|
+
* @example
|
|
169
|
+
*
|
|
170
|
+
* function Foo() {
|
|
171
|
+
* this.a = 1;
|
|
172
|
+
* this.b = 2;
|
|
173
|
+
* }
|
|
174
|
+
*
|
|
175
|
+
* Foo.prototype.c = 3;
|
|
176
|
+
*
|
|
177
|
+
* _.values(new Foo);
|
|
178
|
+
* // => [1, 2] (iteration order is not guaranteed)
|
|
179
|
+
*
|
|
180
|
+
* _.values('hi');
|
|
181
|
+
* // => ['h', 'i']
|
|
182
|
+
*/
|
|
183
|
+
function values(object) {
|
|
184
|
+
return object == null ? [] : _baseValues(object, keys_1(object));
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
var values_1 = values;
|
|
188
|
+
|
|
189
|
+
/* Built-in method references for those with the same name as other `lodash` methods. */
|
|
190
|
+
var nativeMax = Math.max;
|
|
191
|
+
|
|
192
|
+
/**
|
|
193
|
+
* Checks if `value` is in `collection`. If `collection` is a string, it's
|
|
194
|
+
* checked for a substring of `value`, otherwise
|
|
195
|
+
* [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
|
|
196
|
+
* is used for equality comparisons. If `fromIndex` is negative, it's used as
|
|
197
|
+
* the offset from the end of `collection`.
|
|
198
|
+
*
|
|
199
|
+
* @static
|
|
200
|
+
* @memberOf _
|
|
201
|
+
* @since 0.1.0
|
|
202
|
+
* @category Collection
|
|
203
|
+
* @param {Array|Object|string} collection The collection to inspect.
|
|
204
|
+
* @param {*} value The value to search for.
|
|
205
|
+
* @param {number} [fromIndex=0] The index to search from.
|
|
206
|
+
* @param- {Object} [guard] Enables use as an iteratee for methods like `_.reduce`.
|
|
207
|
+
* @returns {boolean} Returns `true` if `value` is found, else `false`.
|
|
208
|
+
* @example
|
|
209
|
+
*
|
|
210
|
+
* _.includes([1, 2, 3], 1);
|
|
211
|
+
* // => true
|
|
212
|
+
*
|
|
213
|
+
* _.includes([1, 2, 3], 1, 2);
|
|
214
|
+
* // => false
|
|
215
|
+
*
|
|
216
|
+
* _.includes({ 'a': 1, 'b': 2 }, 1);
|
|
217
|
+
* // => true
|
|
218
|
+
*
|
|
219
|
+
* _.includes('abcd', 'bc');
|
|
220
|
+
* // => true
|
|
221
|
+
*/
|
|
222
|
+
function includes(collection, value, fromIndex, guard) {
|
|
223
|
+
collection = isArrayLike_1(collection) ? collection : values_1(collection);
|
|
224
|
+
fromIndex = (fromIndex && !guard) ? toInteger_1(fromIndex) : 0;
|
|
225
|
+
|
|
226
|
+
var length = collection.length;
|
|
227
|
+
if (fromIndex < 0) {
|
|
228
|
+
fromIndex = nativeMax(length + fromIndex, 0);
|
|
229
|
+
}
|
|
230
|
+
return isString_1(collection)
|
|
231
|
+
? (fromIndex <= length && collection.indexOf(value, fromIndex) > -1)
|
|
232
|
+
: (!!length && _baseIndexOf(collection, value, fromIndex) > -1);
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
var includes_1 = includes;
|
|
236
|
+
|
|
237
|
+
function isLetterKey(code) {
|
|
238
|
+
return (code === 32 || // space
|
|
239
|
+
(code >= 48 && code <= 57) ||
|
|
240
|
+
(code >= 96 && code <= 111) ||
|
|
241
|
+
(code >= 186 && code <= 192) ||
|
|
242
|
+
(code >= 219 && code <= 222) ||
|
|
243
|
+
code >= 226 ||
|
|
244
|
+
(code >= 65 && code <= 90)); // a-z
|
|
245
|
+
}
|
|
246
|
+
function isMetaKey(code) {
|
|
247
|
+
const keys = [
|
|
248
|
+
KeyCodesEnum.ARROW_DOWN,
|
|
249
|
+
KeyCodesEnum.ARROW_UP,
|
|
250
|
+
KeyCodesEnum.ARROW_LEFT,
|
|
251
|
+
KeyCodesEnum.ARROW_RIGHT,
|
|
252
|
+
KeyCodesEnum.HOME,
|
|
253
|
+
KeyCodesEnum.END,
|
|
254
|
+
KeyCodesEnum.DELETE,
|
|
255
|
+
KeyCodesEnum.BACKSPACE,
|
|
256
|
+
KeyCodesEnum.F1,
|
|
257
|
+
KeyCodesEnum.F2,
|
|
258
|
+
KeyCodesEnum.F3,
|
|
259
|
+
KeyCodesEnum.F4,
|
|
260
|
+
KeyCodesEnum.F5,
|
|
261
|
+
KeyCodesEnum.F6,
|
|
262
|
+
KeyCodesEnum.F7,
|
|
263
|
+
KeyCodesEnum.F8,
|
|
264
|
+
KeyCodesEnum.F9,
|
|
265
|
+
KeyCodesEnum.F10,
|
|
266
|
+
KeyCodesEnum.F11,
|
|
267
|
+
KeyCodesEnum.F12,
|
|
268
|
+
KeyCodesEnum.TAB,
|
|
269
|
+
KeyCodesEnum.PAGE_DOWN,
|
|
270
|
+
KeyCodesEnum.PAGE_UP,
|
|
271
|
+
KeyCodesEnum.ENTER,
|
|
272
|
+
KeyCodesEnum.ESCAPE,
|
|
273
|
+
KeyCodesEnum.SHIFT,
|
|
274
|
+
KeyCodesEnum.CAPS_LOCK,
|
|
275
|
+
KeyCodesEnum.ALT,
|
|
276
|
+
];
|
|
277
|
+
return keys.indexOf(code) !== -1;
|
|
278
|
+
}
|
|
279
|
+
// navigator.platform
|
|
280
|
+
function isCtrlKey(code, platform) {
|
|
281
|
+
if (platform.includes(OsPlatform.mac)) {
|
|
282
|
+
return includes_1([KeyCodesEnum.COMMAND_LEFT, KeyCodesEnum.COMMAND_RIGHT, KeyCodesEnum.COMMAND_FIREFOX], code);
|
|
283
|
+
}
|
|
284
|
+
return KeyCodesEnum.CONTROL === code;
|
|
285
|
+
}
|
|
286
|
+
function isCtrlMetaKey(code) {
|
|
287
|
+
return includes_1([KeyCodesEnum.CONTROL, KeyCodesEnum.COMMAND_LEFT, KeyCodesEnum.COMMAND_RIGHT, KeyCodesEnum.COMMAND_FIREFOX], code);
|
|
288
|
+
}
|
|
289
|
+
function isClear(code) {
|
|
290
|
+
return codesLetter.BACKSPACE === code || codesLetter.DELETE === code;
|
|
291
|
+
}
|
|
292
|
+
function isTab(code) {
|
|
293
|
+
return codesLetter.TAB === code;
|
|
294
|
+
}
|
|
295
|
+
function isEnterKey(code) {
|
|
296
|
+
return code === codesLetter.ENTER || code === codesLetter.ENTER_NUM;
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
export { isClear as a, isEnterKey as b, codesLetter as c, isLetterKey as d, isTab as e, isCtrlKey as i };
|