@revolist/revogrid 3.6.8 → 3.6.9
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/custom-element/_baseIteratee.js +1 -1
- package/custom-element/columnService.js +1 -1
- package/custom-element/consts.js +1 -1
- package/custom-element/data.store.js +1 -1
- package/custom-element/debounce.js +1 -1
- package/custom-element/dimension.helpers.js +1 -1
- package/custom-element/index.d.ts +29 -0
- package/custom-element/index.js +14 -1
- package/custom-element/index.js.map +1 -1
- package/custom-element/isSymbol.js +1 -1
- package/custom-element/keys.js +1 -1
- package/custom-element/revo-grid.js +60 -2
- package/custom-element/revo-grid.js.map +1 -1
- package/custom-element/revogr-data2.js +1 -1
- package/custom-element/revogr-edit2.js +1 -1
- package/custom-element/revogr-header2.js +1 -1
- package/custom-element/revogr-order-editor2.js +1 -1
- package/custom-element/revogr-overlay-selection2.js +1 -1
- package/custom-element/revogr-temp-range2.js +1 -1
- package/custom-element/revogr-viewport-scroll2.js +1 -1
- package/custom-element/toNumber.js +1 -1
- package/package.json +1 -1
- package/custom-element/themeService.js +0 -65
- package/custom-element/themeService.js.map +0 -1
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Built by Revolist
|
|
3
3
|
*/
|
|
4
4
|
import { c as isFunction_1, a as isArray_1, k as keys_1, d as isBuffer_1, e as isTypedArray_1, f as isLength_1, b as _isIndex, g as isArguments_1 } from './keys.js';
|
|
5
|
-
import { e as _root,
|
|
5
|
+
import { e as _root, b as isObject_1, f as _Symbol, _ as _baseGetTag, i as isObjectLike_1, d as isSymbol_1 } from './isSymbol.js';
|
|
6
6
|
import { _ as _arrayMap } from './consts.js';
|
|
7
7
|
import { i as identity_1 } from './identity.js';
|
|
8
8
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import { h } from '@stencil/core/internal/client';
|
|
5
5
|
import { c as createStore, d as setStore, b as getVisibleSourceItem, g as getSourceItem, s as setSourceByVirtualIndex } from './data.store.js';
|
|
6
|
-
import { G as GRID_INTERNALS,
|
|
6
|
+
import { G as GRID_INTERNALS, h as CELL_CLASS, i as DISABLED_CLASS } from './consts.js';
|
|
7
7
|
|
|
8
8
|
const GROUP_DEPTH = `${GRID_INTERNALS}-depth`;
|
|
9
9
|
const PSEUDO_GROUP_ITEM = `${GRID_INTERNALS}-name`;
|
package/custom-element/consts.js
CHANGED
|
@@ -43,6 +43,6 @@ const EDIT_INPUT_WR = 'edit-input-wrapper';
|
|
|
43
43
|
const DRAGG_TEXT = 'Draggable item';
|
|
44
44
|
const GRID_INTERNALS = '__rvgr';
|
|
45
45
|
|
|
46
|
-
export {
|
|
46
|
+
export { CELL_HANDLER_CLASS as C, DRAGGABLE_CLASS as D, EDIT_INPUT_WR as E, FOCUS_CLASS as F, GRID_INTERNALS as G, HEADER_CLASS as H, MIN_COL_SIZE as M, SELECTION_BORDER_CLASS as S, TMP_SELECTION_BG_CLASS as T, UUID as U, _arrayMap as _, DRAG_ICON_CLASS as a, DATA_COL as b, DATA_ROW as c, HEADER_SORTABLE_CLASS as d, HEADER_ROW_CLASS as e, HEADER_ACTUAL_ROW_CLASS as f, DRAGG_TEXT as g, CELL_CLASS as h, DISABLED_CLASS as i };
|
|
47
47
|
|
|
48
48
|
//# sourceMappingURL=consts.js.map
|
|
@@ -5,7 +5,7 @@ import { getRenderingRef, forceUpdate } from '@stencil/core/internal/client';
|
|
|
5
5
|
import { t as toInteger_1, _ as _baseFindIndex, a as toFinite_1 } from './toInteger.js';
|
|
6
6
|
import { _ as _baseIteratee, e as eq_1 } from './_baseIteratee.js';
|
|
7
7
|
import { i as isArrayLike_1, b as _isIndex } from './keys.js';
|
|
8
|
-
import {
|
|
8
|
+
import { b as isObject_1 } from './isSymbol.js';
|
|
9
9
|
|
|
10
10
|
/* Built-in method references for those with the same name as other `lodash` methods. */
|
|
11
11
|
var nativeMax$1 = Math.max;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Built by Revolist
|
|
3
3
|
*/
|
|
4
4
|
import { _ as _baseEach, e as each } from './each.js';
|
|
5
|
-
import {
|
|
5
|
+
import { d as isSymbol_1 } from './isSymbol.js';
|
|
6
6
|
import { i as identity_1 } from './identity.js';
|
|
7
7
|
import { _ as _baseIteratee } from './_baseIteratee.js';
|
|
8
8
|
import { a as isArray_1 } from './keys.js';
|
|
@@ -1,3 +1,31 @@
|
|
|
1
|
+
/* RevoGrid custom elements */
|
|
2
|
+
export { RevoGridComponent as RevoGrid } from '../dist/types/components/revo-grid/revo-grid';
|
|
3
|
+
export { defineCustomElement as defineCustomElementRevoGrid } from './revo-grid';
|
|
4
|
+
export { Clipboard as RevogrClipboard } from '../dist/types/components/clipboard/revogr-clipboard';
|
|
5
|
+
export { defineCustomElement as defineCustomElementRevogrClipboard } from './revogr-clipboard';
|
|
6
|
+
export { RevogrData as RevogrData } from '../dist/types/components/data/revogr-data';
|
|
7
|
+
export { defineCustomElement as defineCustomElementRevogrData } from './revogr-data';
|
|
8
|
+
export { Edit as RevogrEdit } from '../dist/types/components/overlay/revogr-edit';
|
|
9
|
+
export { defineCustomElement as defineCustomElementRevogrEdit } from './revogr-edit';
|
|
10
|
+
export { FilterPanel as RevogrFilterPanel } from '../dist/types/plugins/filter/filter.pop';
|
|
11
|
+
export { defineCustomElement as defineCustomElementRevogrFilterPanel } from './revogr-filter-panel';
|
|
12
|
+
export { RevogrFocus as RevogrFocus } from '../dist/types/components/selection-focus/revogr-focus';
|
|
13
|
+
export { defineCustomElement as defineCustomElementRevogrFocus } from './revogr-focus';
|
|
14
|
+
export { RevogrHeaderComponent as RevogrHeader } from '../dist/types/components/header/revogr-header';
|
|
15
|
+
export { defineCustomElement as defineCustomElementRevogrHeader } from './revogr-header';
|
|
16
|
+
export { OrderEditor as RevogrOrderEditor } from '../dist/types/components/order/revogr-order-editor';
|
|
17
|
+
export { defineCustomElement as defineCustomElementRevogrOrderEditor } from './revogr-order-editor';
|
|
18
|
+
export { OverlaySelection as RevogrOverlaySelection } from '../dist/types/components/overlay/revogr-overlay-selection';
|
|
19
|
+
export { defineCustomElement as defineCustomElementRevogrOverlaySelection } from './revogr-overlay-selection';
|
|
20
|
+
export { RevogrRowHeaders as RevogrRowHeaders } from '../dist/types/components/rowHeaders/revogr-row-headers';
|
|
21
|
+
export { defineCustomElement as defineCustomElementRevogrRowHeaders } from './revogr-row-headers';
|
|
22
|
+
export { RevogrScrollVirtual as RevogrScrollVirtual } from '../dist/types/components/scrollable/revogr-scroll-virtual';
|
|
23
|
+
export { defineCustomElement as defineCustomElementRevogrScrollVirtual } from './revogr-scroll-virtual';
|
|
24
|
+
export { RevogrFocus as RevogrTempRange } from '../dist/types/components/selection-temp-range/revogr-temp-range';
|
|
25
|
+
export { defineCustomElement as defineCustomElementRevogrTempRange } from './revogr-temp-range';
|
|
26
|
+
export { RevogrViewportScroll as RevogrViewportScroll } from '../dist/types/components/scroll/revogr-viewport-scroll';
|
|
27
|
+
export { defineCustomElement as defineCustomElementRevogrViewportScroll } from './revogr-viewport-scroll';
|
|
28
|
+
|
|
1
29
|
/**
|
|
2
30
|
* Used to manually set the base path where assets can be found.
|
|
3
31
|
* If the script is used as "module", it's recommended to use "import.meta.url",
|
|
@@ -25,3 +53,4 @@ export interface SetPlatformOptions {
|
|
|
25
53
|
rel?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
|
|
26
54
|
}
|
|
27
55
|
export declare const setPlatformOptions: (opts: SetPlatformOptions) => void;
|
|
56
|
+
export * from '../dist/types';
|
package/custom-element/index.js
CHANGED
|
@@ -3,7 +3,20 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import { setMode } from '@stencil/core/internal/client';
|
|
5
5
|
export { setAssetPath, setNonce, setPlatformOptions } from '@stencil/core/internal/client';
|
|
6
|
-
import { T as ThemeService } from './
|
|
6
|
+
import { T as ThemeService } from './revo-grid.js';
|
|
7
|
+
export { RevoGrid, defineCustomElement as defineCustomElementRevoGrid } from './revo-grid.js';
|
|
8
|
+
export { RevogrClipboard, defineCustomElement as defineCustomElementRevogrClipboard } from './revogr-clipboard.js';
|
|
9
|
+
export { RevogrData, defineCustomElement as defineCustomElementRevogrData } from './revogr-data.js';
|
|
10
|
+
export { RevogrEdit, defineCustomElement as defineCustomElementRevogrEdit } from './revogr-edit.js';
|
|
11
|
+
export { RevogrFilterPanel, defineCustomElement as defineCustomElementRevogrFilterPanel } from './revogr-filter-panel.js';
|
|
12
|
+
export { RevogrFocus, defineCustomElement as defineCustomElementRevogrFocus } from './revogr-focus.js';
|
|
13
|
+
export { RevogrHeader, defineCustomElement as defineCustomElementRevogrHeader } from './revogr-header.js';
|
|
14
|
+
export { RevogrOrderEditor, defineCustomElement as defineCustomElementRevogrOrderEditor } from './revogr-order-editor.js';
|
|
15
|
+
export { RevogrOverlaySelection, defineCustomElement as defineCustomElementRevogrOverlaySelection } from './revogr-overlay-selection.js';
|
|
16
|
+
export { RevogrRowHeaders, defineCustomElement as defineCustomElementRevogrRowHeaders } from './revogr-row-headers.js';
|
|
17
|
+
export { RevogrScrollVirtual, defineCustomElement as defineCustomElementRevogrScrollVirtual } from './revogr-scroll-virtual.js';
|
|
18
|
+
export { RevogrTempRange, defineCustomElement as defineCustomElementRevogrTempRange } from './revogr-temp-range.js';
|
|
19
|
+
export { RevogrViewportScroll, defineCustomElement as defineCustomElementRevogrViewportScroll } from './revogr-viewport-scroll.js';
|
|
7
20
|
|
|
8
21
|
setMode(elm => {
|
|
9
22
|
let theme = elm.theme || elm.getAttribute('theme');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"index.js","mappings":"
|
|
1
|
+
{"file":"index.js","mappings":";;;;;;;;;;;;;;;;;;;;AAGA,OAAO,CAAC,GAAG;EACT,IAAI,KAAK,GAAwB,GAAW,CAAC,KAAK,IAAI,GAAG,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;EAChF,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;IAC7B,KAAK,GAAG,KAAK,CAAC,IAAI,EAAE,CAAC;GACtB;EAED,MAAM,WAAW,GAAG,YAAY,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;EACjD,IAAI,WAAW,KAAK,KAAK,EAAE;IACzB,GAAG,CAAC,YAAY,CAAC,OAAO,EAAE,WAAW,CAAC,CAAC;GACxC;EACD,OAAO,WAAW,CAAC;AACrB,CAAC,CAAC","names":[],"sources":["src/global/global.ts"],"sourcesContent":["import { setMode } from '@stencil/core';\nimport ThemeService from '../themeManager/themeService';\n\nsetMode(elm => {\n let theme: string | undefined = (elm as any).theme || elm.getAttribute('theme');\n if (typeof theme === 'string') {\n theme = theme.trim();\n }\n\n const parsedTheme = ThemeService.getTheme(theme);\n if (parsedTheme !== theme) {\n elm.setAttribute('theme', parsedTheme);\n }\n return parsedTheme;\n});\n"],"version":3}
|
|
@@ -217,6 +217,6 @@ function isSymbol(value) {
|
|
|
217
217
|
|
|
218
218
|
var isSymbol_1 = isSymbol;
|
|
219
219
|
|
|
220
|
-
export { _baseGetTag as _,
|
|
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 };
|
|
221
221
|
|
|
222
222
|
//# sourceMappingURL=isSymbol.js.map
|
package/custom-element/keys.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built by Revolist
|
|
3
3
|
*/
|
|
4
|
-
import {
|
|
4
|
+
import { i as isObjectLike_1, _ as _baseGetTag, c as createCommonjsModule, e as _root, g as _freeGlobal, b as isObject_1 } from './isSymbol.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* The base implementation of `_.times` without support for iteratee shorthands
|
|
@@ -9,7 +9,6 @@ import { i as isArrayLike_1, k as keys_1, a as isArray_1, _ as _baseKeys } from
|
|
|
9
9
|
import { f as findIndex_1, g as getSourceItem, a as getSourceItemVirtualIndexByProp, s as setSourceByVirtualIndex, D as DataStore, b as getVisibleSourceItem, c as createStore, d as setStore, _ as _isIterateeCall, e as getPhysical, h as setItems } from './data.store.js';
|
|
10
10
|
import { _ as _arrayMap, U as UUID } from './consts.js';
|
|
11
11
|
import { V as ViewportStore, d as defineCustomElement$5 } from './revogr-row-headers2.js';
|
|
12
|
-
import { T as ThemeService } from './themeService.js';
|
|
13
12
|
import { t as timeout, g as getScrollbarWidth } from './utils.js';
|
|
14
13
|
import { i as isFilterBtn, F as FILTER_PROP } from './filter.button.js';
|
|
15
14
|
import { i as isString_1, d as defineCustomElement$a } from './revogr-edit2.js';
|
|
@@ -25,6 +24,65 @@ import { d as defineCustomElement$7 } from './revogr-order-editor2.js';
|
|
|
25
24
|
import { d as defineCustomElement$6 } from './revogr-overlay-selection2.js';
|
|
26
25
|
import { d as defineCustomElement$4 } from './revogr-scroll-virtual2.js';
|
|
27
26
|
|
|
27
|
+
class ThemeCompact {
|
|
28
|
+
constructor() {
|
|
29
|
+
this.defaultRowSize = 32;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
class ThemeDefault {
|
|
34
|
+
constructor() {
|
|
35
|
+
this.defaultRowSize = 27;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
class ThemeMaterial {
|
|
40
|
+
constructor() {
|
|
41
|
+
this.defaultRowSize = 42;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
const DEFAULT_THEME = 'default';
|
|
46
|
+
const allowedThemes = [DEFAULT_THEME, 'material', 'compact', 'darkMaterial', 'darkCompact'];
|
|
47
|
+
class ThemeService {
|
|
48
|
+
get theme() {
|
|
49
|
+
return this.currentTheme;
|
|
50
|
+
}
|
|
51
|
+
get rowSize() {
|
|
52
|
+
return this.customRowSize || this.currentTheme.defaultRowSize;
|
|
53
|
+
}
|
|
54
|
+
set rowSize(size) {
|
|
55
|
+
this.customRowSize = size;
|
|
56
|
+
}
|
|
57
|
+
constructor(cfg) {
|
|
58
|
+
this.customRowSize = 0;
|
|
59
|
+
this.customRowSize = cfg.rowSize;
|
|
60
|
+
this.register('default');
|
|
61
|
+
}
|
|
62
|
+
register(theme) {
|
|
63
|
+
const parsedTheme = ThemeService.getTheme(theme);
|
|
64
|
+
switch (parsedTheme) {
|
|
65
|
+
case 'material':
|
|
66
|
+
case 'darkMaterial':
|
|
67
|
+
this.currentTheme = new ThemeMaterial();
|
|
68
|
+
break;
|
|
69
|
+
case 'compact':
|
|
70
|
+
case 'darkCompact':
|
|
71
|
+
this.currentTheme = new ThemeCompact();
|
|
72
|
+
break;
|
|
73
|
+
default:
|
|
74
|
+
this.currentTheme = new ThemeDefault();
|
|
75
|
+
break;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
static getTheme(theme) {
|
|
79
|
+
if (allowedThemes.indexOf(theme) > -1) {
|
|
80
|
+
return theme;
|
|
81
|
+
}
|
|
82
|
+
return DEFAULT_THEME;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
28
86
|
/**
|
|
29
87
|
* Creates a `_.find` or `_.findLast` function.
|
|
30
88
|
*
|
|
@@ -3557,6 +3615,6 @@ function defineCustomElement$1() {
|
|
|
3557
3615
|
const RevoGrid = RevoGridComponent;
|
|
3558
3616
|
const defineCustomElement = defineCustomElement$1;
|
|
3559
3617
|
|
|
3560
|
-
export { RevoGrid, defineCustomElement };
|
|
3618
|
+
export { RevoGrid, ThemeService as T, defineCustomElement };
|
|
3561
3619
|
|
|
3562
3620
|
//# sourceMappingURL=revo-grid.js.map
|