@parqui/vue 1.1.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.
@@ -0,0 +1,56 @@
1
+ import { ComponentOptionsMixin } from 'vue';
2
+ import { ComponentProvideOptions } from 'vue';
3
+ import { DefineComponent } from 'vue';
4
+ import { ParquetColumn } from '@parqui/react';
5
+ import { ParquetData } from '@parqui/react';
6
+ import { ParquetExplorerProps } from '@parqui/react';
7
+ import { ParquetInputSource } from '@parqui/react';
8
+ import { ParquetMetadata } from '@parqui/react';
9
+ import { ParquetRow } from '@parqui/react';
10
+ import { ParquetSource } from '@parqui/react';
11
+ import { ParquetViewerProps } from '@parqui/react';
12
+ import { PublicProps } from 'vue';
13
+ import { ReadOptions } from '@parqui/react';
14
+
15
+ declare type __VLS_Props = {
16
+ source?: ParquetInputSource;
17
+ columns?: string[];
18
+ onMetadataLoad?: (metadata: ParquetMetadata) => void;
19
+ };
20
+
21
+ declare type __VLS_Props_2 = {
22
+ source?: ParquetInputSource;
23
+ columns?: string[];
24
+ onRequestOpen?: () => Promise<{
25
+ source: ParquetSource;
26
+ name: string;
27
+ } | null>;
28
+ };
29
+
30
+ export { ParquetColumn }
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, {
35
+ host: HTMLDivElement;
36
+ }, HTMLDivElement>;
37
+
38
+ export { ParquetExplorerProps }
39
+
40
+ export { ParquetInputSource }
41
+
42
+ export { ParquetMetadata }
43
+
44
+ export { ParquetRow }
45
+
46
+ export { ParquetSource }
47
+
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
+ export { ReadOptions }
55
+
56
+ export { }
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),c=require("react"),l=require("react-dom/client"),s=require("@parqui/react"),p=t.defineComponent({__name:"ParquetViewer",props:{source:{},columns:{},onMetadataLoad:{type:Function}},setup(u){const n=u,o=t.ref(null);let e=null;function r(){o.value&&(e||(e=l.createRoot(o.value)),e.render(c.createElement(s.ParquetViewer,{source:n.source,columns:n.columns,onMetadataLoad:n.onMetadataLoad,style:{height:"100%",width:"100%"}})))}return t.onMounted(r),t.watch(()=>[n.source,n.columns,n.onMetadataLoad],r,{deep:!0}),t.onBeforeUnmount(()=>{e==null||e.unmount(),e=null}),(a,i)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"host",ref:o,style:{height:"100%",width:"100%","min-height":"200px"}},null,512))}}),d=t.defineComponent({__name:"ParquetExplorer",props:{source:{},columns:{},onRequestOpen:{type:Function}},setup(u){const n=u,o=t.ref(null);let e=null;function r(){o.value&&(e||(e=l.createRoot(o.value)),e.render(c.createElement(s.ParquetExplorer,{source:n.source,columns:n.columns,onRequestOpen:n.onRequestOpen,style:{height:"100%",width:"100%"}})))}return t.onMounted(r),t.watch(()=>[n.source,n.columns,n.onRequestOpen],r,{deep:!0}),t.onBeforeUnmount(()=>{e==null||e.unmount(),e=null}),(a,i)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"host",ref:o,style:{height:"100%",width:"100%","min-height":"200px"}},null,512))}});exports.ParquetExplorer=d;exports.ParquetViewer=p;
@@ -0,0 +1,65 @@
1
+ import { defineComponent as u, ref as s, onMounted as c, watch as l, onBeforeUnmount as a, openBlock as i, createElementBlock as p } from "vue";
2
+ import { createElement as m } from "react";
3
+ import { createRoot as h } from "react-dom/client";
4
+ import { ParquetViewer as _, ParquetExplorer as q } from "@parqui/react";
5
+ const g = /* @__PURE__ */ u({
6
+ __name: "ParquetViewer",
7
+ props: {
8
+ source: {},
9
+ columns: {},
10
+ onMetadataLoad: { type: Function }
11
+ },
12
+ setup(r) {
13
+ const t = r, n = s(null);
14
+ let e = null;
15
+ function o() {
16
+ n.value && (e || (e = h(n.value)), e.render(
17
+ m(_, {
18
+ source: t.source,
19
+ columns: t.columns,
20
+ onMetadataLoad: t.onMetadataLoad,
21
+ style: { height: "100%", width: "100%" }
22
+ })
23
+ ));
24
+ }
25
+ return c(o), l(() => [t.source, t.columns, t.onMetadataLoad], o, { deep: !0 }), a(() => {
26
+ e == null || e.unmount(), e = null;
27
+ }), (d, f) => (i(), p("div", {
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", {
56
+ ref_key: "host",
57
+ ref: n,
58
+ style: { height: "100%", width: "100%", "min-height": "200px" }
59
+ }, null, 512));
60
+ }
61
+ });
62
+ export {
63
+ v as ParquetExplorer,
64
+ g as ParquetViewer
65
+ };
package/package.json ADDED
@@ -0,0 +1,45 @@
1
+ {
2
+ "name": "@parqui/vue",
3
+ "version": "1.1.1",
4
+ "description": "Vue wrappers around @parqui/react components",
5
+ "type": "module",
6
+ "main": "./dist/parqui-vue.cjs",
7
+ "module": "./dist/parqui-vue.js",
8
+ "types": "./dist/index.d.ts",
9
+ "exports": {
10
+ ".": {
11
+ "types": "./dist/index.d.ts",
12
+ "import": "./dist/parqui-vue.js",
13
+ "require": "./dist/parqui-vue.cjs"
14
+ }
15
+ },
16
+ "files": [
17
+ "dist"
18
+ ],
19
+ "dependencies": {
20
+ "react": "^19.0.0",
21
+ "react-dom": "^19.0.0",
22
+ "@parqui/core": "1.1.1",
23
+ "@parqui/react": "1.1.1"
24
+ },
25
+ "devDependencies": {
26
+ "@types/react": "^19.0.0",
27
+ "@types/react-dom": "^19.0.0",
28
+ "@vitejs/plugin-vue": "^5.2.0",
29
+ "typescript": "^5.8.2",
30
+ "vite": "^6.3.0",
31
+ "vite-plugin-dts": "^4.5.0",
32
+ "vue": "^3.5.0",
33
+ "vue-tsc": "^2.2.0"
34
+ },
35
+ "peerDependencies": {
36
+ "vue": "^3.4.0"
37
+ },
38
+ "license": "MIT",
39
+ "scripts": {
40
+ "build": "vite build",
41
+ "dev": "vite build --watch",
42
+ "clean": "rm -rf dist",
43
+ "lint": "vue-tsc --noEmit"
44
+ }
45
+ }