@neovici/cosmoz-omnitable 10.0.0 → 11.0.1
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.js +2 -2
- package/lib/cosmoz-omnitable-date-input-mixin.js +1 -1
- package/lib/settings/cosmoz-omnitable-settings.js +1 -1
- package/lib/settings/normalize.js +1 -1
- package/lib/settings/use-settings-ui.js +2 -1
- package/lib/use-hash-state.js +2 -2
- package/lib/use-omnitable.js +1 -1
- package/lib/utils-date.js +1 -1
- package/lib/utils-datetime.js +1 -1
- package/lib/utils-time.js +1 -1
- package/package.json +6 -6
package/cosmoz-omnitable.js
CHANGED
|
@@ -21,12 +21,12 @@ import { html as litHtml } from 'lit-html';
|
|
|
21
21
|
|
|
22
22
|
import { translatable } from '@neovici/cosmoz-i18next';
|
|
23
23
|
import { mixin, hauntedPolymer } from '@neovici/cosmoz-utils';
|
|
24
|
-
import { isEmpty } from '@neovici/cosmoz-utils/
|
|
24
|
+
import { isEmpty } from '@neovici/cosmoz-utils/template';
|
|
25
25
|
import { useOmnitable } from './lib/use-omnitable';
|
|
26
26
|
import { saveAsCsvAction } from './lib/save-as-csv-action';
|
|
27
27
|
import { saveAsXlsxAction } from './lib/save-as-xlsx-action';
|
|
28
28
|
import { defaultPlacement } from '@neovici/cosmoz-dropdown';
|
|
29
|
-
import { without } from '@neovici/cosmoz-utils/
|
|
29
|
+
import { without } from '@neovici/cosmoz-utils/array';
|
|
30
30
|
import { indexSymbol } from './lib/utils';
|
|
31
31
|
|
|
32
32
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { html, component } from 'haunted';
|
|
2
2
|
import { nothing } from 'lit-html';
|
|
3
3
|
import { _ } from '@neovici/cosmoz-i18next';
|
|
4
|
-
import { isEmpty } from '@neovici/cosmoz-utils/
|
|
4
|
+
import { isEmpty } from '@neovici/cosmoz-utils/template';
|
|
5
5
|
import { defaultPlacement } from '@neovici/cosmoz-dropdown';
|
|
6
6
|
import '@neovici/cosmoz-collapse';
|
|
7
7
|
import sort from './cosmoz-omnitable-sort';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useCallback } from 'haunted';
|
|
2
|
-
import { useMeta } from '@neovici/cosmoz-utils/
|
|
2
|
+
import { useMeta } from '@neovici/cosmoz-utils/hooks/use-meta';
|
|
3
3
|
|
|
4
4
|
const parseIndex = (str) => {
|
|
5
5
|
const idx = parseInt(str, 10);
|
|
@@ -47,6 +47,7 @@ export default (host) => {
|
|
|
47
47
|
meta.handle = null;
|
|
48
48
|
e.dataTransfer.effectAllowed = 'move';
|
|
49
49
|
e.dataTransfer.setData('omnitable/sort-index', index);
|
|
50
|
+
e.dataTransfer.setData('text/plain', index);
|
|
50
51
|
setTimeout(() => target.classList.add('drag'), 0);
|
|
51
52
|
target.addEventListener(
|
|
52
53
|
'dragend',
|
package/lib/use-hash-state.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useCallback, useState } from 'haunted';
|
|
2
|
-
import { navigate } from '@neovici/cosmoz-
|
|
3
|
-
import { identity } from '@neovici/cosmoz-utils/
|
|
2
|
+
import { navigate } from '@neovici/cosmoz-router';
|
|
3
|
+
import { identity } from '@neovici/cosmoz-utils/function';
|
|
4
4
|
import { invoke } from './invoke';
|
|
5
5
|
|
|
6
6
|
const
|
package/lib/use-omnitable.js
CHANGED
|
@@ -5,7 +5,7 @@ import { useSettings } from './settings';
|
|
|
5
5
|
import { useDOMColumns } from './use-dom-columns';
|
|
6
6
|
import { useSortAndGroupOptions } from './use-sort-and-group-options';
|
|
7
7
|
import { onItemChange } from './utils-data';
|
|
8
|
-
import { useNotifyProperty } from '@neovici/cosmoz-utils/
|
|
8
|
+
import { useNotifyProperty } from '@neovici/cosmoz-utils/hooks/use-notify-property';
|
|
9
9
|
|
|
10
10
|
// eslint-disable-next-line max-lines-per-function
|
|
11
11
|
export const useOmnitable = (host) => {
|
package/lib/utils-date.js
CHANGED
package/lib/utils-datetime.js
CHANGED
package/lib/utils-time.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { toLocalISOString } from '@neovici/cosmoz-utils/
|
|
1
|
+
import { toLocalISOString } from '@neovici/cosmoz-utils/date';
|
|
2
2
|
import { get } from '@polymer/polymer/lib/utils/path';
|
|
3
3
|
import { getAbsoluteISOString, renderValue, toDate as superToDate } from './utils-date';
|
|
4
4
|
import { toNumber } from './utils-number';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@neovici/cosmoz-omnitable",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "11.0.1",
|
|
4
4
|
"description": "[](https://travis-ci.org/Neovici/cosmoz-omnitable)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"web-components"
|
|
@@ -59,15 +59,15 @@
|
|
|
59
59
|
}
|
|
60
60
|
},
|
|
61
61
|
"dependencies": {
|
|
62
|
-
"@neovici/cosmoz-autocomplete": "^
|
|
62
|
+
"@neovici/cosmoz-autocomplete": "^5.0.0",
|
|
63
63
|
"@neovici/cosmoz-bottom-bar": "^6.0.0",
|
|
64
64
|
"@neovici/cosmoz-collapse": "^1.1.0",
|
|
65
65
|
"@neovici/cosmoz-datetime-input": "^3.0.3",
|
|
66
|
-
"@neovici/cosmoz-dropdown": "^
|
|
67
|
-
"@neovici/cosmoz-grouped-list": "^
|
|
66
|
+
"@neovici/cosmoz-dropdown": "^3.0.0",
|
|
67
|
+
"@neovici/cosmoz-grouped-list": "^6.0.0",
|
|
68
68
|
"@neovici/cosmoz-i18next": "^3.1.1",
|
|
69
|
-
"@neovici/cosmoz-
|
|
70
|
-
"@neovici/cosmoz-utils": "^
|
|
69
|
+
"@neovici/cosmoz-router": "^10.0.0",
|
|
70
|
+
"@neovici/cosmoz-utils": "^5.0.0",
|
|
71
71
|
"@neovici/nullxlsx": "^3.0.0",
|
|
72
72
|
"@polymer/iron-icon": "^3.0.0",
|
|
73
73
|
"@polymer/iron-icons": "^3.0.0",
|