@parqui/vue 1.1.2 → 1.2.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/dist/index.d.ts +9 -19
- package/dist/parqui-vue.cjs +1 -1
- package/dist/parqui-vue.js +25 -48
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import { ComponentOptionsMixin } from 'vue';
|
|
2
2
|
import { ComponentProvideOptions } from 'vue';
|
|
3
3
|
import { DefineComponent } from 'vue';
|
|
4
|
+
import { ParkuiProps } from '@parqui/react';
|
|
4
5
|
import { ParquetColumn } from '@parqui/react';
|
|
5
6
|
import { ParquetData } from '@parqui/react';
|
|
6
|
-
import { ParquetExplorerProps } from '@parqui/react';
|
|
7
7
|
import { ParquetInputSource } from '@parqui/react';
|
|
8
8
|
import { ParquetMetadata } from '@parqui/react';
|
|
9
9
|
import { ParquetRow } from '@parqui/react';
|
|
10
10
|
import { ParquetSource } from '@parqui/react';
|
|
11
|
-
import { ParquetViewerProps } from '@parqui/react';
|
|
12
11
|
import { PublicProps } from 'vue';
|
|
13
12
|
import { ReadOptions } from '@parqui/react';
|
|
14
13
|
|
|
@@ -16,26 +15,23 @@ declare type __VLS_Props = {
|
|
|
16
15
|
source?: ParquetInputSource;
|
|
17
16
|
columns?: string[];
|
|
18
17
|
onMetadataLoad?: (metadata: ParquetMetadata) => void;
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
declare type __VLS_Props_2 = {
|
|
22
|
-
source?: ParquetInputSource;
|
|
23
|
-
columns?: string[];
|
|
18
|
+
allowOpen?: boolean;
|
|
24
19
|
onRequestOpen?: () => Promise<{
|
|
25
20
|
source: ParquetSource;
|
|
26
21
|
name: string;
|
|
27
22
|
} | null>;
|
|
23
|
+
showToolbar?: boolean;
|
|
28
24
|
};
|
|
29
25
|
|
|
30
|
-
export {
|
|
31
|
-
|
|
32
|
-
export { ParquetData }
|
|
33
|
-
|
|
34
|
-
export declare const ParquetExplorer: DefineComponent<__VLS_Props_2, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_2> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
26
|
+
export declare const Parkui: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
35
27
|
host: HTMLDivElement;
|
|
36
28
|
}, HTMLDivElement>;
|
|
37
29
|
|
|
38
|
-
export {
|
|
30
|
+
export { ParkuiProps }
|
|
31
|
+
|
|
32
|
+
export { ParquetColumn }
|
|
33
|
+
|
|
34
|
+
export { ParquetData }
|
|
39
35
|
|
|
40
36
|
export { ParquetInputSource }
|
|
41
37
|
|
|
@@ -45,12 +41,6 @@ export { ParquetRow }
|
|
|
45
41
|
|
|
46
42
|
export { ParquetSource }
|
|
47
43
|
|
|
48
|
-
export declare const ParquetViewer: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
49
|
-
host: HTMLDivElement;
|
|
50
|
-
}, HTMLDivElement>;
|
|
51
|
-
|
|
52
|
-
export { ParquetViewerProps }
|
|
53
|
-
|
|
54
44
|
export { ReadOptions }
|
|
55
45
|
|
|
56
46
|
export { }
|
package/dist/parqui-vue.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue"),u=require("react"),l=require("react-dom/client"),c=require("@parqui/react"),s=n.defineComponent({__name:"Parkui",props:{source:{},columns:{},onMetadataLoad:{type:Function},allowOpen:{type:Boolean},onRequestOpen:{type:Function},showToolbar:{type:Boolean}},setup(a){const e=a,t=n.ref(null);let o=null;function r(){t.value&&(o||(o=l.createRoot(t.value)),o.render(u.createElement(c.Parkui,{source:e.source,columns:e.columns,onMetadataLoad:e.onMetadataLoad,allowOpen:e.allowOpen,onRequestOpen:e.onRequestOpen,showToolbar:e.showToolbar,style:{height:"100%",width:"100%"}})))}return n.onMounted(r),n.watch(()=>[e.source,e.columns,e.onMetadataLoad,e.allowOpen,e.onRequestOpen,e.showToolbar],r,{deep:!0}),n.onBeforeUnmount(()=>{o==null||o.unmount(),o=null}),(i,p)=>(n.openBlock(),n.createElementBlock("div",{ref_key:"host",ref:t,style:{height:"100%",width:"100%","min-height":"200px"}},null,512))}});exports.Parkui=s;
|
package/dist/parqui-vue.js
CHANGED
|
@@ -1,58 +1,36 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as r, ref as l, onMounted as u, watch as s, onBeforeUnmount as p, openBlock as c, createElementBlock as i } from "vue";
|
|
2
2
|
import { createElement as m } from "react";
|
|
3
|
-
import { createRoot as
|
|
4
|
-
import {
|
|
5
|
-
const
|
|
6
|
-
__name: "
|
|
3
|
+
import { createRoot as d } from "react-dom/client";
|
|
4
|
+
import { Parkui as h } from "@parqui/react";
|
|
5
|
+
const R = /* @__PURE__ */ r({
|
|
6
|
+
__name: "Parkui",
|
|
7
7
|
props: {
|
|
8
8
|
source: {},
|
|
9
9
|
columns: {},
|
|
10
|
-
onMetadataLoad: { type: Function }
|
|
10
|
+
onMetadataLoad: { type: Function },
|
|
11
|
+
allowOpen: { type: Boolean },
|
|
12
|
+
onRequestOpen: { type: Function },
|
|
13
|
+
showToolbar: { type: Boolean }
|
|
11
14
|
},
|
|
12
|
-
setup(
|
|
13
|
-
const
|
|
14
|
-
let
|
|
15
|
-
function
|
|
16
|
-
n.value && (
|
|
17
|
-
m(
|
|
18
|
-
source:
|
|
19
|
-
columns:
|
|
20
|
-
onMetadataLoad:
|
|
15
|
+
setup(a) {
|
|
16
|
+
const e = a, n = l(null);
|
|
17
|
+
let o = null;
|
|
18
|
+
function t() {
|
|
19
|
+
n.value && (o || (o = d(n.value)), o.render(
|
|
20
|
+
m(h, {
|
|
21
|
+
source: e.source,
|
|
22
|
+
columns: e.columns,
|
|
23
|
+
onMetadataLoad: e.onMetadataLoad,
|
|
24
|
+
allowOpen: e.allowOpen,
|
|
25
|
+
onRequestOpen: e.onRequestOpen,
|
|
26
|
+
showToolbar: e.showToolbar,
|
|
21
27
|
style: { height: "100%", width: "100%" }
|
|
22
28
|
})
|
|
23
29
|
));
|
|
24
30
|
}
|
|
25
|
-
return
|
|
26
|
-
|
|
27
|
-
}), (
|
|
28
|
-
ref_key: "host",
|
|
29
|
-
ref: n,
|
|
30
|
-
style: { height: "100%", width: "100%", "min-height": "200px" }
|
|
31
|
-
}, null, 512));
|
|
32
|
-
}
|
|
33
|
-
}), v = /* @__PURE__ */ u({
|
|
34
|
-
__name: "ParquetExplorer",
|
|
35
|
-
props: {
|
|
36
|
-
source: {},
|
|
37
|
-
columns: {},
|
|
38
|
-
onRequestOpen: { type: Function }
|
|
39
|
-
},
|
|
40
|
-
setup(r) {
|
|
41
|
-
const t = r, n = s(null);
|
|
42
|
-
let e = null;
|
|
43
|
-
function o() {
|
|
44
|
-
n.value && (e || (e = h(n.value)), e.render(
|
|
45
|
-
m(q, {
|
|
46
|
-
source: t.source,
|
|
47
|
-
columns: t.columns,
|
|
48
|
-
onRequestOpen: t.onRequestOpen,
|
|
49
|
-
style: { height: "100%", width: "100%" }
|
|
50
|
-
})
|
|
51
|
-
));
|
|
52
|
-
}
|
|
53
|
-
return c(o), l(() => [t.source, t.columns, t.onRequestOpen], o, { deep: !0 }), a(() => {
|
|
54
|
-
e == null || e.unmount(), e = null;
|
|
55
|
-
}), (d, f) => (i(), p("div", {
|
|
31
|
+
return u(t), s(() => [e.source, e.columns, e.onMetadataLoad, e.allowOpen, e.onRequestOpen, e.showToolbar], t, { deep: !0 }), p(() => {
|
|
32
|
+
o == null || o.unmount(), o = null;
|
|
33
|
+
}), (f, w) => (c(), i("div", {
|
|
56
34
|
ref_key: "host",
|
|
57
35
|
ref: n,
|
|
58
36
|
style: { height: "100%", width: "100%", "min-height": "200px" }
|
|
@@ -60,6 +38,5 @@ const g = /* @__PURE__ */ u({
|
|
|
60
38
|
}
|
|
61
39
|
});
|
|
62
40
|
export {
|
|
63
|
-
|
|
64
|
-
g as ParquetViewer
|
|
41
|
+
R as Parkui
|
|
65
42
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@parqui/vue",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "Vue wrappers around @parqui/react components",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/parqui-vue.cjs",
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"react": "^19.0.0",
|
|
21
21
|
"react-dom": "^19.0.0",
|
|
22
|
-
"@parqui/core": "1.
|
|
23
|
-
"@parqui/react": "1.
|
|
22
|
+
"@parqui/core": "1.2.0",
|
|
23
|
+
"@parqui/react": "1.2.0"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@types/react": "^19.0.0",
|