@neovici/cosmoz-omnitable 12.29.0 → 13.0.0
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/cosmoz-omnitable-group-row.js +1 -1
- package/cosmoz-omnitable-header-row.js +1 -1
- package/cosmoz-omnitable-item-expand-line.js +1 -1
- package/cosmoz-omnitable-item-expand.js +1 -1
- package/cosmoz-omnitable-item-row.js +1 -1
- package/cosmoz-omnitable.js +1 -1
- package/lib/compute-layout.js +1 -1
- package/lib/cosmoz-omnitable-resize-nub.js +1 -1
- package/lib/settings/cosmoz-omnitable-settings.js +1 -1
- package/lib/settings/cosmoz-omnitable-sort-group.js +1 -1
- package/lib/settings/drivers/context.js +1 -1
- package/lib/settings/use-saved-settings.js +1 -1
- package/lib/settings/use-settings-ui.js +1 -1
- package/lib/settings/use-settings.js +1 -1
- package/lib/use-canvas-width.js +1 -1
- package/lib/use-dom-columns.js +1 -1
- package/lib/use-fast-layout.js +1 -1
- package/lib/use-hash-state.js +1 -1
- package/lib/use-header.js +1 -1
- package/lib/use-layout.js +1 -1
- package/lib/use-list.js +1 -1
- package/lib/use-omnitable.js +1 -1
- package/lib/use-processed-items.js +1 -1
- package/lib/use-public-interface.js +1 -1
- package/lib/use-resizable-columns.js +1 -1
- package/lib/use-sort-and-group-options.js +10 -10
- package/lib/use-track-size.js +1 -1
- package/lib/use-tween-array.js +1 -1
- package/package.json +13 -13
- package/ui-helpers/cosmoz-clear-button.js +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* eslint-disable object-curly-newline */
|
|
2
|
-
import { component, useEffect } from '
|
|
2
|
+
import { component, useEffect } from '@pionjs/pion';
|
|
3
3
|
import { html, nothing } from 'lit-html';
|
|
4
4
|
import './cosmoz-omnitable-item-expand-line';
|
|
5
5
|
import { notifyResize } from './lib/utils';
|
package/cosmoz-omnitable.js
CHANGED
|
@@ -21,7 +21,7 @@ import { html } from 'lit-html';
|
|
|
21
21
|
import { guard } from 'lit-html/directives/guard.js';
|
|
22
22
|
|
|
23
23
|
import { useOmnitable } from './lib/use-omnitable';
|
|
24
|
-
import { component } from '
|
|
24
|
+
import { component } from '@pionjs/pion';
|
|
25
25
|
import { renderHeader } from './lib/render-header';
|
|
26
26
|
import { renderFooter } from './lib/render-footer';
|
|
27
27
|
import { renderList } from './lib/render-list';
|
package/lib/compute-layout.js
CHANGED
package/lib/use-canvas-width.js
CHANGED
package/lib/use-dom-columns.js
CHANGED
package/lib/use-fast-layout.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useLayoutEffect, useMemo } from '
|
|
1
|
+
import { useLayoutEffect, useMemo } from '@pionjs/pion';
|
|
2
2
|
import { toCss } from './compute-layout';
|
|
3
3
|
import { useResizableColumns } from './use-resizable-columns';
|
|
4
4
|
import { useCanvasWidth } from './use-canvas-width';
|
package/lib/use-hash-state.js
CHANGED
package/lib/use-header.js
CHANGED
package/lib/use-layout.js
CHANGED
package/lib/use-list.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* eslint-disable max-lines-per-function */
|
|
2
|
-
import { html, useCallback, useEffect, useMemo, useRef } from '
|
|
2
|
+
import { html, useCallback, useEffect, useMemo, useRef } from '@pionjs/pion';
|
|
3
3
|
import { indexSymbol } from './utils';
|
|
4
4
|
import { isEmpty } from '@neovici/cosmoz-utils/template';
|
|
5
5
|
import { onItemChange as _onItemChange } from './utils-data';
|
package/lib/use-omnitable.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useCallback, useEffect, useMemo } from '
|
|
1
|
+
import { useCallback, useEffect, useMemo } from '@pionjs/pion';
|
|
2
2
|
import { invoke } from '@neovici/cosmoz-utils/function';
|
|
3
3
|
import { genericSorter } from './generic-sorter';
|
|
4
4
|
import { columnSymbol } from './use-dom-columns';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* eslint-disable max-lines-per-function */
|
|
2
2
|
import { useImperativeApi } from '@neovici/cosmoz-utils/hooks/use-imperative-api';
|
|
3
|
-
import { useEffect, useMemo } from '
|
|
3
|
+
import { useEffect, useMemo } from '@pionjs/pion';
|
|
4
4
|
import { useNotifyProperty } from '@neovici/cosmoz-utils/hooks/use-notify-property';
|
|
5
5
|
|
|
6
6
|
const mkNapi = (host) => {
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
useContext,
|
|
6
6
|
useCallback,
|
|
7
7
|
useEffect,
|
|
8
|
-
} from '
|
|
8
|
+
} from '@pionjs/pion';
|
|
9
9
|
import { useHashState } from './use-hash-state';
|
|
10
10
|
|
|
11
11
|
const parseBool = (bool) => [true, 'true', 1, 'yes', 'on'].includes(bool),
|
|
@@ -16,7 +16,7 @@ const parseBool = (bool) => [true, 'true', 1, 'yes', 'on'].includes(bool),
|
|
|
16
16
|
setter(value);
|
|
17
17
|
setSettings((s) => ({ ...s, [name]: value }));
|
|
18
18
|
},
|
|
19
|
-
[setter, name, setSettings]
|
|
19
|
+
[setter, name, setSettings],
|
|
20
20
|
);
|
|
21
21
|
|
|
22
22
|
// eslint-disable-next-line max-lines-per-function
|
|
@@ -25,7 +25,7 @@ export const useSortAndGroupOptions = (
|
|
|
25
25
|
hashParam,
|
|
26
26
|
settings,
|
|
27
27
|
setSettings,
|
|
28
|
-
resetRef
|
|
28
|
+
resetRef,
|
|
29
29
|
) => {
|
|
30
30
|
const [sortOn, setSortOn] = useHashState(settings.sortOn, hashParam, {
|
|
31
31
|
suffix: '-sortOn',
|
|
@@ -36,7 +36,7 @@ export const useSortAndGroupOptions = (
|
|
|
36
36
|
{
|
|
37
37
|
suffix: '-descending',
|
|
38
38
|
read: boolParam,
|
|
39
|
-
}
|
|
39
|
+
},
|
|
40
40
|
),
|
|
41
41
|
[groupOn, setGroupOn] = useHashState(settings.groupOn, hashParam, {
|
|
42
42
|
suffix: '-groupOn',
|
|
@@ -44,15 +44,15 @@ export const useSortAndGroupOptions = (
|
|
|
44
44
|
[groupOnDescending, setGroupOnDescending] = useHashState(
|
|
45
45
|
settings.groupOnDescending,
|
|
46
46
|
hashParam,
|
|
47
|
-
{ suffix: '-groupOnDescending', read: boolParam }
|
|
47
|
+
{ suffix: '-groupOnDescending', read: boolParam },
|
|
48
48
|
),
|
|
49
49
|
sortOnColumn = useMemo(
|
|
50
50
|
() => columns.find((column) => column.name === sortOn),
|
|
51
|
-
[columns, sortOn]
|
|
51
|
+
[columns, sortOn],
|
|
52
52
|
),
|
|
53
53
|
groupOnColumn = useMemo(
|
|
54
54
|
() => columns.find((column) => column.name === groupOn),
|
|
55
|
-
[columns, groupOn]
|
|
55
|
+
[columns, groupOn],
|
|
56
56
|
),
|
|
57
57
|
sortAndGroup_ = {
|
|
58
58
|
groupOn,
|
|
@@ -61,7 +61,7 @@ export const useSortAndGroupOptions = (
|
|
|
61
61
|
setGroupOnDescending: useSettingsState(
|
|
62
62
|
setGroupOnDescending,
|
|
63
63
|
'groupOnDescending',
|
|
64
|
-
setSettings
|
|
64
|
+
setSettings,
|
|
65
65
|
),
|
|
66
66
|
|
|
67
67
|
sortOn,
|
|
@@ -70,7 +70,7 @@ export const useSortAndGroupOptions = (
|
|
|
70
70
|
setDescending: useSettingsState(
|
|
71
71
|
setDescending,
|
|
72
72
|
'descending',
|
|
73
|
-
setSettings
|
|
73
|
+
setSettings,
|
|
74
74
|
),
|
|
75
75
|
|
|
76
76
|
columns,
|
|
@@ -100,5 +100,5 @@ customElements.define(
|
|
|
100
100
|
'sort-and-group-consumer',
|
|
101
101
|
component(({ render }) => render(useContext(SortAndGroupContext)), {
|
|
102
102
|
useShadowDOM: false,
|
|
103
|
-
})
|
|
103
|
+
}),
|
|
104
104
|
);
|
package/lib/use-track-size.js
CHANGED
package/lib/use-tween-array.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@neovici/cosmoz-omnitable",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "13.0.0",
|
|
4
4
|
"description": "[](https://travis-ci.org/Neovici/cosmoz-omnitable)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"web-components"
|
|
@@ -59,17 +59,18 @@
|
|
|
59
59
|
}
|
|
60
60
|
},
|
|
61
61
|
"dependencies": {
|
|
62
|
-
"@neovici/cosmoz-autocomplete": "^
|
|
63
|
-
"@neovici/cosmoz-bottom-bar": "^
|
|
62
|
+
"@neovici/cosmoz-autocomplete": "^8.0.0",
|
|
63
|
+
"@neovici/cosmoz-bottom-bar": "^7.0.0",
|
|
64
64
|
"@neovici/cosmoz-collapse": "^1.1.0",
|
|
65
|
-
"@neovici/cosmoz-datetime-input": "^
|
|
66
|
-
"@neovici/cosmoz-dropdown": "^
|
|
67
|
-
"@neovici/cosmoz-grouped-list": "^
|
|
65
|
+
"@neovici/cosmoz-datetime-input": "^4.0.0",
|
|
66
|
+
"@neovici/cosmoz-dropdown": "^4.0.0",
|
|
67
|
+
"@neovici/cosmoz-grouped-list": "^7.0.0",
|
|
68
68
|
"@neovici/cosmoz-i18next": "^3.1.1",
|
|
69
|
-
"@neovici/cosmoz-input": "^
|
|
70
|
-
"@neovici/cosmoz-router": "^
|
|
71
|
-
"@neovici/cosmoz-utils": "^
|
|
69
|
+
"@neovici/cosmoz-input": "^4.0.0",
|
|
70
|
+
"@neovici/cosmoz-router": "^11.0.0",
|
|
71
|
+
"@neovici/cosmoz-utils": "^6.0.0",
|
|
72
72
|
"@neovici/nullxlsx": "^3.0.0",
|
|
73
|
+
"@pionjs/pion": "^2.0.0",
|
|
73
74
|
"@polymer/iron-icon": "^3.0.0",
|
|
74
75
|
"@polymer/iron-icons": "^3.0.0",
|
|
75
76
|
"@polymer/paper-dropdown-menu": "^3.2.0",
|
|
@@ -77,15 +78,14 @@
|
|
|
77
78
|
"@polymer/paper-spinner": "^3.0.0",
|
|
78
79
|
"@polymer/polymer": "^3.3.0",
|
|
79
80
|
"file-saver-es": "^2.0.0",
|
|
80
|
-
"
|
|
81
|
-
"lit-html": "^2.0.0"
|
|
81
|
+
"lit-html": "^2.0.0 || ^3.0.0"
|
|
82
82
|
},
|
|
83
83
|
"devDependencies": {
|
|
84
84
|
"@commitlint/cli": "^18.0.0",
|
|
85
85
|
"@commitlint/config-conventional": "^18.0.0",
|
|
86
86
|
"@neovici/cfg": "^1.18.0",
|
|
87
|
-
"@neovici/cosmoz-viewinfo": "^
|
|
88
|
-
"@open-wc/testing": "^
|
|
87
|
+
"@neovici/cosmoz-viewinfo": "^4.0.0",
|
|
88
|
+
"@open-wc/testing": "^4.0.0",
|
|
89
89
|
"@polymer/iron-test-helpers": "^3.0.0",
|
|
90
90
|
"@polymer/paper-button": "^3.0.0",
|
|
91
91
|
"@polymer/paper-item": "^3.0.0",
|