ivue 1.4.0 → 1.5.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/demo/App.vue CHANGED
@@ -1,129 +1,11 @@
1
1
  <script setup lang="ts">
2
- import { reactive, ref } from 'vue'
3
- import { action, computed, inject, makeObservable, observable } from "*";
4
-
5
- const w = window
6
- const test = reactive({ 'test': 'test' })
7
- const test2 = { 'test': ref({ test: 'test' }), 'array': ['test', 'test2'] }
8
-
9
- abstract class GrandParent {
10
- grandParent = 'test'
11
-
12
- get grandParentGetter () {
13
- return 'fun'
14
- }
2
+ import { iref, ivue } from '../lib/ivue';
3
+ class Item {
4
+ width = iref(1);
15
5
  }
16
-
17
- abstract class MessagesPresenter extends GrandParent {
18
-
19
- showValidationWarning = null
20
-
21
- static _name = 'hi'
22
-
23
- constructor () {
24
- super()
25
-
26
- }
27
-
28
- init = () => {}
29
-
30
- abstract reset (): void
31
-
32
- get messages () {
33
- return 'yes'
34
- }
35
-
36
- unpackRepositoryPmToVm = (pm, userMessage) => {}
37
- }
38
- class Auth {
39
- test = 1
40
- }
41
- class LoginRegisterPresenter extends MessagesPresenter {
42
-
43
- static test = 2
44
- static test2 = 2
45
-
46
- auth = new Auth()
47
-
48
- static testF () {
49
- return 1
50
- }
51
-
52
- email = null
53
- password = null
54
- option = null
55
-
56
- constructor () {
57
- super()
58
- this.auth = new Auth()
59
- }
60
-
61
- //
62
- get viewTest () {
63
- this.auth.test = 2
64
- console.log('yo')
65
- return 'yes'
66
- }
67
-
68
- set viewTest (value) {
69
-
70
- }
71
-
72
- setAuthRepoTest () {
73
-
74
- }
75
-
76
- reset () {
77
-
78
- }
79
-
80
- async login () {
81
-
82
- }
83
-
84
- register () {
85
-
86
- }
87
-
88
- logOut () {
89
-
90
- }
91
- }
92
-
93
- const presenter = new LoginRegisterPresenter()
94
-
95
- const proto = Object.getPrototypeOf(presenter)
96
-
97
- let val = ref({ })
98
- setTimeout(() => {
99
- val.value = reactive({
100
- test: 1
101
- })
102
- }, 1000)
103
-
6
+ const runner = ivue(Item);
104
7
  </script>
105
8
  <template>
106
- <h1>vue-dd integration tests</h1>
107
- <vue-dd name="val" v-model="val" />
108
- <br />
109
- <vue-dd name="window" :save-focus="false" :get-all-properties="false" v-model="w" />
110
- <br />
111
- <vue-dd name="test" get-all-properties v-model="test" />
112
- <br />
113
- <vue-dd name="test2" get-all-properties v-model="test2" />
114
- <br />
115
- <vue-dd name="presenter" :get-all-properties="true" v-model="presenter" />
116
- <vue-dd name="LoginRegisterPresenter" :get-all-properties="true" v-model="LoginRegisterPresenter" />
117
-
118
-
119
-
9
+ <h1>Runner:</h1>
10
+ <vue-dd name="runner" v-model="runner" />
120
11
  </template>
121
-
122
-
123
- <style>
124
- .rendererParent {
125
- width: 100%;
126
- height: 580px;
127
- border: 1px solid black;
128
- }
129
- </style>
package/demo/main.ts CHANGED
@@ -1,9 +1,6 @@
1
1
  import { createApp } from "vue";
2
- import { install } from "../src/index";
3
2
  import App from "./App.vue";
4
3
 
5
4
  const app = createApp(App);
6
5
 
7
- install(app);
8
-
9
6
  app.mount("#app");
@@ -1,19 +1,11 @@
1
1
  import { defineConfig } from "vite";
2
2
  import vue from "@vitejs/plugin-vue";
3
3
 
4
- export const vueDocsPlugin = () => ({
5
- name: "vue-docs",
6
- transform(code: any, id: any) {
7
- if (!/vue&type=docs/.test(id)) return;
8
- return `export default ''`;
9
- },
10
- });
11
-
12
4
  export default defineConfig({
13
5
  root: "./",
14
6
  // keep the same name as your github repos
15
7
  mode: "production",
16
- plugins: [vue(), vueDocsPlugin()],
8
+ plugins: [vue()],
17
9
  build: {
18
10
  outDir: "./dist-demo",
19
11
  },
@@ -1,5 +1,5 @@
1
1
  <script setup lang="ts">
2
- import { ivue } from "../../../src/ivue";
2
+ import { ivue } from "../../../lib/ivue";
3
3
  import { VueDd } from "vue-dd";
4
4
  import { ref } from 'vue';
5
5
 
@@ -17,7 +17,7 @@ import Button from './components/Button.vue'
17
17
  ∞&nbsp; Flexible like Composition API<br />
18
18
  ∞&nbsp; Extensible like TypeScript Class API<br />
19
19
  ∞&nbsp; Robust, Minimal, Opaque & Unobtrusive<br />
20
- ∞&nbsp; 100% VSCode / Intellij IDE Autocomplete Intellisence<br />
20
+ ∞&nbsp; 100% VSCode / Intellij IDE Autocomplete Intellisense<br />
21
21
  ∞&nbsp; 100% Vue 3 Compatible<br />
22
22
  ∞&nbsp; 100% Test Covered<br />
23
23
  ∞&nbsp; 100% Type Safe<br />
@@ -433,7 +433,7 @@ describe('ivue', () => {
433
433
  });
434
434
  });
435
435
  describe('core functions', () => {
436
- let useComposable = () => {
436
+ const useComposable = () => {
437
437
  return {
438
438
  x: ref(0),
439
439
  y: ref(0)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ivue",
3
- "version": "1.4.0",
3
+ "version": "1.5.1",
4
4
  "description": "Infinite Vue – Class Based Architecture for Vue 3",
5
5
  "type": "module",
6
6
  "exports": {
package/tsconfig.json CHANGED
@@ -17,8 +17,9 @@
17
17
  "forceConsistentCasingInFileNames": true,
18
18
  "types": ["vitest/globals"],
19
19
  "paths": {
20
- "@/*": ["src/*"]
20
+ "@/*": ["lib/*"]
21
21
  }
22
22
  },
23
+ "include": ["lib"],
23
24
  "exclude": ["dist", "node_modules"]
24
25
  }
package/vite.config.ts CHANGED
@@ -7,14 +7,6 @@ import pkg from "./package.json";
7
7
  import libCss from 'vite-plugin-libcss';
8
8
  import { terser } from 'rollup-plugin-terser';
9
9
 
10
- export const vueDocsPlugin = () => ({
11
- name: "vue-docs",
12
- transform (code: any, id: any) {
13
- if (!/vue&type=docs/.test(id)) return;
14
- return `export default ''`;
15
- }
16
- });
17
-
18
10
  // https://vitejs.dev/config/
19
11
  export default defineConfig({
20
12
  resolve: {
@@ -32,13 +24,12 @@ export default defineConfig({
32
24
  dts({
33
25
  cleanVueFileName: true,
34
26
  }),
35
- vueDocsPlugin(),
36
27
  libCss()
37
28
  ],
38
29
  build: {
39
30
  cssCodeSplit: true,
40
31
  lib: {
41
- entry: "./src/index.ts",
32
+ entry: "./lib/index.ts",
42
33
  formats: ["es", "umd"],
43
34
  // the name expose in umd mode
44
35
  name: pkg.name,
@@ -1,7 +0,0 @@
1
- /// <reference types="vite/client" />
2
-
3
- declare module "*" {
4
- import type { DefineComponent } from 'vue'
5
- const component: DefineComponent<{}, {}, any>
6
- export default component
7
- }
@@ -1,7 +0,0 @@
1
- /// <reference types="vite/client" />
2
-
3
- declare module "*" {
4
- import type { DefineComponent } from 'vue'
5
- const component: DefineComponent<{}, {}, any>
6
- export default component
7
- }
File without changes
File without changes
File without changes
File without changes