@revolist/revogrid 4.3.0-next.2 → 4.3.0-next.3
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/_stringToPath.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/index.d.ts +0 -16
- package/custom-element/index.js +1 -14
- package/custom-element/index.js.map +1 -1
- package/custom-element/isObject.js +1 -1
- package/custom-element/isSymbol.js +1 -1
- package/custom-element/lodash.js +1 -1
- package/custom-element/revo-grid.js +3 -60
- package/custom-element/revo-grid.js.map +1 -1
- package/custom-element/revogr-clipboard.js +1 -0
- package/custom-element/revogr-clipboard.js.map +1 -1
- package/custom-element/revogr-data2.js +2 -1
- package/custom-element/revogr-data2.js.map +1 -1
- package/custom-element/revogr-edit2.js +2 -1
- package/custom-element/revogr-edit2.js.map +1 -1
- package/custom-element/revogr-filter-panel.js +1 -0
- package/custom-element/revogr-filter-panel.js.map +1 -1
- package/custom-element/revogr-focus2.js +1 -0
- package/custom-element/revogr-focus2.js.map +1 -1
- package/custom-element/revogr-header2.js +2 -1
- package/custom-element/revogr-header2.js.map +1 -1
- package/custom-element/revogr-order-editor2.js +2 -1
- package/custom-element/revogr-order-editor2.js.map +1 -1
- package/custom-element/revogr-overlay-selection2.js +2 -1
- package/custom-element/revogr-overlay-selection2.js.map +1 -1
- package/custom-element/revogr-row-headers2.js +2 -1
- package/custom-element/revogr-row-headers2.js.map +1 -1
- package/custom-element/revogr-scroll-virtual2.js +1 -0
- package/custom-element/revogr-scroll-virtual2.js.map +1 -1
- package/custom-element/revogr-temp-range2.js +1 -0
- package/custom-element/revogr-temp-range2.js.map +1 -1
- package/custom-element/revogr-viewport-scroll2.js +2 -1
- package/custom-element/revogr-viewport-scroll2.js.map +1 -1
- package/custom-element/themeService.js +65 -0
- package/custom-element/themeService.js.map +1 -0
- package/custom-element/toNumber.js +1 -1
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Built by Revolist
|
|
3
3
|
*/
|
|
4
4
|
import { h as _SetCache, e as eq_1, _ as _getTag, d as isBuffer_1, j as _Stack, k as _stringToPath, f as isLength_1, i as isArguments_1 } from './_stringToPath.js';
|
|
5
|
-
import {
|
|
5
|
+
import { d as _root, f as _Symbol, a as isObjectLike_1, i as isObject_1 } from './isObject.js';
|
|
6
6
|
import { a as isArray_1, k as keys_1, c as isTypedArray_1, b as _isIndex } from './keys.js';
|
|
7
7
|
import { i as isSymbol_1 } from './isSymbol.js';
|
|
8
8
|
import { _ as _arrayMap } from './consts.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built by Revolist
|
|
3
3
|
*/
|
|
4
|
-
import {
|
|
4
|
+
import { a as isObjectLike_1, _ as _baseGetTag, c as createCommonjsModule, d as _root, e as _freeGlobal, i as isObject_1 } from './isObject.js';
|
|
5
5
|
|
|
6
6
|
/** `Object#toString` result references. */
|
|
7
7
|
var argsTag$1 = '[object Arguments]';
|
|
@@ -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, C as CELL_CLASS, D as DISABLED_CLASS } from './consts.js';
|
|
7
7
|
import { l as lodash } from './lodash.js';
|
|
8
8
|
|
|
9
9
|
const GROUP_DEPTH = `${GRID_INTERNALS}-depth`;
|
package/custom-element/consts.js
CHANGED
|
@@ -45,6 +45,6 @@ const EDIT_INPUT_WR = 'edit-input-wrapper';
|
|
|
45
45
|
const DRAGG_TEXT = 'Draggable item';
|
|
46
46
|
const GRID_INTERNALS = '__rvgr';
|
|
47
47
|
|
|
48
|
-
export {
|
|
48
|
+
export { CELL_CLASS as C, DISABLED_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, RESIZE_INTERVAL as R, SELECTION_BORDER_CLASS as S, TMP_SELECTION_BG_CLASS as T, UUID as U, _arrayMap as _, DRAGGABLE_CLASS as a, DRAG_ICON_CLASS as b, DATA_COL as c, DATA_ROW as d, HEADER_SORTABLE_CLASS as e, HEADER_ROW_CLASS as f, HEADER_ACTUAL_ROW_CLASS as g, DRAGG_TEXT as h, CELL_HANDLER_CLASS as i, ROW_HEADER_TYPE as j };
|
|
49
49
|
|
|
50
50
|
//# sourceMappingURL=consts.js.map
|
|
@@ -6,7 +6,7 @@ import { t as toInteger_1, _ as _baseFindIndex, a as toFinite_1 } from './toInte
|
|
|
6
6
|
import { _ as _baseIteratee } from './_baseIteratee.js';
|
|
7
7
|
import { e as eq_1 } from './_stringToPath.js';
|
|
8
8
|
import { i as isArrayLike_1, b as _isIndex } from './keys.js';
|
|
9
|
-
import {
|
|
9
|
+
import { i as isObject_1 } from './isObject.js';
|
|
10
10
|
|
|
11
11
|
/* Built-in method references for those with the same name as other `lodash` methods. */
|
|
12
12
|
var nativeMax$1 = Math.max;
|
|
@@ -1,18 +1,3 @@
|
|
|
1
|
-
/* RevoGrid custom elements */
|
|
2
|
-
export { RevoGridComponent as RevoGrid } from '../dist/types/components/revoGrid/revo-grid';
|
|
3
|
-
export { Clipboard as RevogrClipboard } from '../dist/types/components/clipboard/revogr-clipboard';
|
|
4
|
-
export { RevogrData as RevogrData } from '../dist/types/components/data/revogr-data';
|
|
5
|
-
export { RevoEdit as RevogrEdit } from '../dist/types/components/overlay/revogr-edit';
|
|
6
|
-
export { FilterPanel as RevogrFilterPanel } from '../dist/types/plugins/filter/filter.pop';
|
|
7
|
-
export { RevogrFocus as RevogrFocus } from '../dist/types/components/selectionFocus/revogr-focus';
|
|
8
|
-
export { RevogrHeaderComponent as RevogrHeader } from '../dist/types/components/header/revogr-header';
|
|
9
|
-
export { OrderEditor as RevogrOrderEditor } from '../dist/types/components/order/revogr-order-editor';
|
|
10
|
-
export { OverlaySelection as RevogrOverlaySelection } from '../dist/types/components/overlay/revogr-overlay-selection';
|
|
11
|
-
export { RevogrRowHeaders as RevogrRowHeaders } from '../dist/types/components/rowHeaders/revogr-row-headers';
|
|
12
|
-
export { RevogrScrollVirtual as RevogrScrollVirtual } from '../dist/types/components/scrollable/revogr-scroll-virtual';
|
|
13
|
-
export { RevogrFocus as RevogrTempRange } from '../dist/types/components/selectionTempRange/revogr-temp-range';
|
|
14
|
-
export { RevogrViewportScroll as RevogrViewportScroll } from '../dist/types/components/scroll/revogr-viewport-scroll';
|
|
15
|
-
|
|
16
1
|
/**
|
|
17
2
|
* Used to manually set the base path where assets can be found.
|
|
18
3
|
* If the script is used as "module", it's recommended to use "import.meta.url",
|
|
@@ -40,4 +25,3 @@ export interface SetPlatformOptions {
|
|
|
40
25
|
rel?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
|
|
41
26
|
}
|
|
42
27
|
export declare const setPlatformOptions: (opts: SetPlatformOptions) => void;
|
|
43
|
-
export * from '../dist/types';
|
package/custom-element/index.js
CHANGED
|
@@ -3,20 +3,7 @@
|
|
|
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 './
|
|
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';
|
|
6
|
+
import { T as ThemeService } from './themeService.js';
|
|
20
7
|
|
|
21
8
|
setMode(elm => {
|
|
22
9
|
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;EACjC,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;IAC7B,KAAK,GAAG,KAAK,CAAC,IAAI,EAAE,CAAC;GACtB;EAED;EACA,IAAI,WAAW,KAAK,KAAK,EAAE;IACzB,GAAG,CAAC,YAAY,CAAC,OAAO,EAAE;GAC3B;EACD;AACF,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}
|
|
@@ -190,6 +190,6 @@ function isObject(value) {
|
|
|
190
190
|
|
|
191
191
|
var isObject_1 = isObject;
|
|
192
192
|
|
|
193
|
-
export { _baseGetTag as _,
|
|
193
|
+
export { _baseGetTag as _, isObjectLike_1 as a, commonjsGlobal as b, createCommonjsModule as c, _root as d, _freeGlobal as e, _Symbol as f, isObject_1 as i };
|
|
194
194
|
|
|
195
195
|
//# sourceMappingURL=isObject.js.map
|
package/custom-element/lodash.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built by Revolist
|
|
3
3
|
*/
|
|
4
|
-
import { c as createCommonjsModule,
|
|
4
|
+
import { c as createCommonjsModule, b as commonjsGlobal } from './isObject.js';
|
|
5
5
|
|
|
6
6
|
var lodash = createCommonjsModule(function (module, exports) {
|
|
7
7
|
(function() {
|
|
@@ -10,6 +10,7 @@ import { f as findIndex_1, g as getSourceItem, a as getSourceItemVirtualIndexByP
|
|
|
10
10
|
import { _ as _arrayMap, R as RESIZE_INTERVAL, U as UUID } from './consts.js';
|
|
11
11
|
import { l as lodash } from './lodash.js';
|
|
12
12
|
import { V as ViewportStore, c as calculateRowHeaderSize, d as defineCustomElement$5 } from './revogr-row-headers2.js';
|
|
13
|
+
import { T as ThemeService } from './themeService.js';
|
|
13
14
|
import { t as timeout, g as getScrollbarWidth } from './index2.js';
|
|
14
15
|
import { F as FILTER_PROP, i as isFilterBtn } from './filter.button.js';
|
|
15
16
|
import { _ as _getTag } from './_stringToPath.js';
|
|
@@ -26,65 +27,6 @@ import { d as defineCustomElement$6 } from './revogr-overlay-selection2.js';
|
|
|
26
27
|
import { d as defineCustomElement$4 } from './revogr-scroll-virtual2.js';
|
|
27
28
|
import { d as defineCustomElement$3 } from './revogr-temp-range2.js';
|
|
28
29
|
|
|
29
|
-
class ThemeCompact {
|
|
30
|
-
constructor() {
|
|
31
|
-
this.defaultRowSize = 32;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
class ThemeDefault {
|
|
36
|
-
constructor() {
|
|
37
|
-
this.defaultRowSize = 27;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
class ThemeMaterial {
|
|
42
|
-
constructor() {
|
|
43
|
-
this.defaultRowSize = 42;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
const DEFAULT_THEME = 'default';
|
|
48
|
-
const allowedThemes = [DEFAULT_THEME, 'material', 'compact', 'darkMaterial', 'darkCompact'];
|
|
49
|
-
class ThemeService {
|
|
50
|
-
get theme() {
|
|
51
|
-
return this.currentTheme;
|
|
52
|
-
}
|
|
53
|
-
get rowSize() {
|
|
54
|
-
return this.customRowSize || this.currentTheme.defaultRowSize;
|
|
55
|
-
}
|
|
56
|
-
set rowSize(size) {
|
|
57
|
-
this.customRowSize = size;
|
|
58
|
-
}
|
|
59
|
-
constructor(cfg) {
|
|
60
|
-
this.customRowSize = 0;
|
|
61
|
-
this.customRowSize = cfg.rowSize;
|
|
62
|
-
this.register('default');
|
|
63
|
-
}
|
|
64
|
-
register(theme) {
|
|
65
|
-
const parsedTheme = ThemeService.getTheme(theme);
|
|
66
|
-
switch (parsedTheme) {
|
|
67
|
-
case 'material':
|
|
68
|
-
case 'darkMaterial':
|
|
69
|
-
this.currentTheme = new ThemeMaterial();
|
|
70
|
-
break;
|
|
71
|
-
case 'compact':
|
|
72
|
-
case 'darkCompact':
|
|
73
|
-
this.currentTheme = new ThemeCompact();
|
|
74
|
-
break;
|
|
75
|
-
default:
|
|
76
|
-
this.currentTheme = new ThemeDefault();
|
|
77
|
-
break;
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
static getTheme(theme) {
|
|
81
|
-
if (allowedThemes.indexOf(theme) > -1) {
|
|
82
|
-
return theme;
|
|
83
|
-
}
|
|
84
|
-
return DEFAULT_THEME;
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
|
|
88
30
|
/**
|
|
89
31
|
* Creates a `_.find` or `_.findLast` function.
|
|
90
32
|
*
|
|
@@ -3902,10 +3844,11 @@ function defineCustomElement$1() {
|
|
|
3902
3844
|
break;
|
|
3903
3845
|
} });
|
|
3904
3846
|
}
|
|
3847
|
+
defineCustomElement$1();
|
|
3905
3848
|
|
|
3906
3849
|
const RevoGrid = RevoGridComponent;
|
|
3907
3850
|
const defineCustomElement = defineCustomElement$1;
|
|
3908
3851
|
|
|
3909
|
-
export { RevoGrid,
|
|
3852
|
+
export { RevoGrid, defineCustomElement };
|
|
3910
3853
|
|
|
3911
3854
|
//# sourceMappingURL=revo-grid.js.map
|