datatables.net-vue3 2.1.1 → 2.1.2
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/package.json +2 -2
- package/src/dtEvents.ts +47 -0
- package/src/index.ts +25 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "datatables.net-vue3",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.2",
|
|
4
4
|
"description": "Vue3 component for DataTables",
|
|
5
5
|
"main": "dist/datatables.net-vue3.umd.js",
|
|
6
6
|
"module": "dist/datatables.net-vue3.mjs",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"types": "dist/datatables.net-vue3.d.ts",
|
|
10
10
|
"files": [
|
|
11
11
|
"dist/*",
|
|
12
|
-
"src
|
|
12
|
+
"src/**/*"
|
|
13
13
|
],
|
|
14
14
|
"sideEffects": false,
|
|
15
15
|
"scripts": {
|
package/src/dtEvents.ts
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
|
|
2
|
+
export default [
|
|
3
|
+
'childRow',
|
|
4
|
+
'column-sizing',
|
|
5
|
+
'column-visibility',
|
|
6
|
+
'destroy',
|
|
7
|
+
'draw',
|
|
8
|
+
'error',
|
|
9
|
+
'init',
|
|
10
|
+
'length',
|
|
11
|
+
'order',
|
|
12
|
+
'page',
|
|
13
|
+
'preDraw',
|
|
14
|
+
'preInit',
|
|
15
|
+
'preXhr',
|
|
16
|
+
'processing',
|
|
17
|
+
'requestChild',
|
|
18
|
+
'search',
|
|
19
|
+
'stateLoadParams',
|
|
20
|
+
'stateLoaded',
|
|
21
|
+
'stateSaveParams',
|
|
22
|
+
'xhr',
|
|
23
|
+
'autoFill',
|
|
24
|
+
'preAutoFill',
|
|
25
|
+
'buttons-action',
|
|
26
|
+
'buttons-processing',
|
|
27
|
+
'column-reorder',
|
|
28
|
+
'key',
|
|
29
|
+
'key-blur',
|
|
30
|
+
'key-focus',
|
|
31
|
+
'key-refocus',
|
|
32
|
+
'key-return-submit',
|
|
33
|
+
'responsive-display',
|
|
34
|
+
'responsive-resize',
|
|
35
|
+
'rowgroup-datasrc',
|
|
36
|
+
'pre-row-reorder',
|
|
37
|
+
'row-reorder',
|
|
38
|
+
'row-reordered',
|
|
39
|
+
'dtsb-inserted',
|
|
40
|
+
'deselect',
|
|
41
|
+
'select',
|
|
42
|
+
'select-blur',
|
|
43
|
+
'selectItems',
|
|
44
|
+
'selectStyle',
|
|
45
|
+
'user-select',
|
|
46
|
+
'stateRestore-change',
|
|
47
|
+
];
|
package/src/index.ts
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { App, Plugin } from 'vue';
|
|
2
|
+
|
|
3
|
+
// Import vue component
|
|
4
|
+
import { default as component } from './datatables.net-vue.vue';
|
|
5
|
+
|
|
6
|
+
// Define typescript interfaces for installable component
|
|
7
|
+
export type InstallableComponent = typeof component & { install: Exclude<Plugin['install'], undefined> };
|
|
8
|
+
|
|
9
|
+
// Default export is installable instance of component.
|
|
10
|
+
// IIFE injects install function into component, allowing component
|
|
11
|
+
// to be registered via Vue.use() as well as Vue.component(),
|
|
12
|
+
export default /*#__PURE__*/((): InstallableComponent => {
|
|
13
|
+
// Assign InstallableComponent type
|
|
14
|
+
const installable = component as unknown as InstallableComponent;
|
|
15
|
+
|
|
16
|
+
// Attach install function executed by Vue.use()
|
|
17
|
+
installable.install = (app: App) => {
|
|
18
|
+
app.component('Datatables.netVue', installable);
|
|
19
|
+
};
|
|
20
|
+
return installable;
|
|
21
|
+
})();
|
|
22
|
+
|
|
23
|
+
// It's possible to expose named exports when writing components that can
|
|
24
|
+
// also be used as directives, etc. - eg. import { RollupDemoDirective } from 'rollup-demo';
|
|
25
|
+
// export const RollupDemoDirective = directive;
|