@ivandt/importer-vue 0.1.3 → 1.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/dist/index.cjs.js +4 -37
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +0 -2
- package/dist/index.es.js +5 -16
- package/dist/index.es.js.map +1 -1
- package/package.json +3 -3
package/dist/index.cjs.js
CHANGED
|
@@ -1,49 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __copyProps = (to, from, except, desc) => {
|
|
9
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
10
|
-
for (let key of __getOwnPropNames(from))
|
|
11
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
12
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
13
|
-
}
|
|
14
|
-
return to;
|
|
15
|
-
};
|
|
16
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
17
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
18
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
19
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
20
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
21
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
22
|
-
mod
|
|
23
|
-
));
|
|
24
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
25
3
|
const vue = require("vue");
|
|
4
|
+
require("@ivandt/importer/importer");
|
|
5
|
+
const _hoisted_1 = ["schema"];
|
|
26
6
|
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
27
7
|
__name: "IvtImporter",
|
|
28
8
|
props: {
|
|
29
|
-
schema: {}
|
|
30
|
-
className: {},
|
|
31
|
-
style: {}
|
|
9
|
+
schema: {}
|
|
32
10
|
},
|
|
33
11
|
setup(__props) {
|
|
34
|
-
const ready = vue.ref(false);
|
|
35
|
-
vue.onMounted(async () => {
|
|
36
|
-
await import("@ivandt/importer/importer");
|
|
37
|
-
ready.value = true;
|
|
38
|
-
});
|
|
39
12
|
return (_ctx, _cache) => {
|
|
40
|
-
|
|
41
|
-
return ready.value ? (vue.openBlock(), vue.createBlock(_component_ivt_importer, {
|
|
42
|
-
key: 0,
|
|
43
|
-
schema: __props.schema,
|
|
44
|
-
class: vue.normalizeClass(__props.className),
|
|
45
|
-
style: vue.normalizeStyle(__props.style)
|
|
46
|
-
}, null, 8, ["schema", "class", "style"])) : vue.createCommentVNode("", true);
|
|
13
|
+
return vue.openBlock(), vue.createElementBlock("ivt-importer", { schema: __props.schema }, null, 8, _hoisted_1);
|
|
47
14
|
};
|
|
48
15
|
}
|
|
49
16
|
});
|
package/dist/index.cjs.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs.js","sources":["../src/IvtImporter.vue"],"sourcesContent":["<template>\n <ivt-importer
|
|
1
|
+
{"version":3,"file":"index.cjs.js","sources":["../src/IvtImporter.vue"],"sourcesContent":["<template>\n <ivt-importer :schema=\"schema\" />\n</template>\n\n<script setup lang=\"ts\">\nimport \"@ivandt/importer/importer\";\nimport type { DefaultTableRowType, IvtSchema } from \"@ivandt/importer\";\n\ninterface Props<TableRow = DefaultTableRowType> {\n schema: IvtSchema<TableRow>;\n}\n\ndefineProps<Props>();\n</script>\n"],"names":["_createElementBlock"],"mappings":";;;;;;;;;;;;8BACEA,uBAAiC,gBAAA,EAAlB,QAAQ,QAAA,OAAA,GAAM,MAAA,GAAA,UAAA;AAAA;;;;"}
|
package/dist/index.d.ts
CHANGED
package/dist/index.es.js
CHANGED
|
@@ -1,25 +1,14 @@
|
|
|
1
|
-
import { defineComponent,
|
|
1
|
+
import { defineComponent, createElementBlock, openBlock } from "vue";
|
|
2
|
+
import "@ivandt/importer/importer";
|
|
3
|
+
const _hoisted_1 = ["schema"];
|
|
2
4
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
3
5
|
__name: "IvtImporter",
|
|
4
6
|
props: {
|
|
5
|
-
schema: {}
|
|
6
|
-
className: {},
|
|
7
|
-
style: {}
|
|
7
|
+
schema: {}
|
|
8
8
|
},
|
|
9
9
|
setup(__props) {
|
|
10
|
-
const ready = ref(false);
|
|
11
|
-
onMounted(async () => {
|
|
12
|
-
await import("@ivandt/importer/importer");
|
|
13
|
-
ready.value = true;
|
|
14
|
-
});
|
|
15
10
|
return (_ctx, _cache) => {
|
|
16
|
-
|
|
17
|
-
return ready.value ? (openBlock(), createBlock(_component_ivt_importer, {
|
|
18
|
-
key: 0,
|
|
19
|
-
schema: __props.schema,
|
|
20
|
-
class: normalizeClass(__props.className),
|
|
21
|
-
style: normalizeStyle(__props.style)
|
|
22
|
-
}, null, 8, ["schema", "class", "style"])) : createCommentVNode("", true);
|
|
11
|
+
return openBlock(), createElementBlock("ivt-importer", { schema: __props.schema }, null, 8, _hoisted_1);
|
|
23
12
|
};
|
|
24
13
|
}
|
|
25
14
|
});
|
package/dist/index.es.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es.js","sources":["../src/IvtImporter.vue"],"sourcesContent":["<template>\n <ivt-importer
|
|
1
|
+
{"version":3,"file":"index.es.js","sources":["../src/IvtImporter.vue"],"sourcesContent":["<template>\n <ivt-importer :schema=\"schema\" />\n</template>\n\n<script setup lang=\"ts\">\nimport \"@ivandt/importer/importer\";\nimport type { DefaultTableRowType, IvtSchema } from \"@ivandt/importer\";\n\ninterface Props<TableRow = DefaultTableRowType> {\n schema: IvtSchema<TableRow>;\n}\n\ndefineProps<Props>();\n</script>\n"],"names":["_createElementBlock"],"mappings":";;;;;;;;;;0BACEA,mBAAiC,gBAAA,EAAlB,QAAQ,QAAA,OAAA,GAAM,MAAA,GAAA,UAAA;AAAA;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ivandt/importer-vue",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"description": "Vue wrapper for @ivandt/importer web component",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs.js",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"access": "public"
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|
|
25
|
-
"@ivandt/importer": "^1.
|
|
25
|
+
"@ivandt/importer": "^1.10.0",
|
|
26
26
|
"vue": ">=3.0.0"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"vite-plugin-dts": "^4.5.4",
|
|
33
33
|
"vue": "^3.5.22",
|
|
34
34
|
"vue-tsc": "^2.2.0",
|
|
35
|
-
"@ivandt/importer": "1.
|
|
35
|
+
"@ivandt/importer": "1.10.0",
|
|
36
36
|
"@repo/typescript-config": "0.0.0"
|
|
37
37
|
},
|
|
38
38
|
"keywords": [
|