@modelforms/fontawesome-vuetify 1.0.0 → 1.0.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.
@@ -1,7 +1,7 @@
1
1
  /*! @licence MIT */
2
2
 
3
- export { default as FormPlate } from "./src/form/Form.vue";
4
- export { GridModel } from './src/form/models/model';
3
+ export { default as FormPlate } from "./form/Form.vue";
4
+ export { GridModel } from './form/models/model';
5
5
 
6
6
  /*!
7
7
  * Vuetify Labs v3.4.0 by vuetify - https://vuetifyjs.com
@@ -0,0 +1,28 @@
1
+ <template>
2
+ <FormComponent
3
+ :form="form"
4
+ @submit="submit($event)"/>
5
+
6
+ </template>
7
+
8
+ <script lang="ts">
9
+ import { testForm } from './form.test';
10
+ import { FormPlate } from './../index';
11
+
12
+ export default {
13
+
14
+ components: {
15
+ FormComponent: FormPlate
16
+ },
17
+ data() {
18
+ return {
19
+ form: testForm
20
+ }
21
+ },
22
+ methods:{
23
+ submit(event){
24
+ console.log(event);
25
+ }
26
+ }
27
+ }
28
+ </script>
@@ -0,0 +1,53 @@
1
+ import { GridModel } from './../form/models/model';
2
+
3
+ export const testForm: GridModel = {
4
+ name: "",
5
+ model: {},
6
+ rows: [
7
+ {
8
+ colSize: 12,
9
+ cols: [
10
+ {
11
+ name: "Name",
12
+ type: "text",
13
+ label: "Name",
14
+ rules: ["minLen:5"],
15
+ size: 12,
16
+ complete: {
17
+ items : [],
18
+ itemValue: [],
19
+ title: "title"
20
+ }
21
+ }
22
+ ]
23
+ },
24
+ {
25
+ colSize: 12,
26
+ cols: [
27
+ {
28
+ name: "Description",
29
+ type: "area",
30
+ label: "Description",
31
+ rules: ["maxLen:15"],
32
+ size: 6,
33
+ complete: {
34
+ items : [],
35
+ itemValue: [],
36
+ title: "title"
37
+ }
38
+ },
39
+ {
40
+ name: "Description",
41
+ type: "complete",
42
+ label: "Description",
43
+ rules: [],
44
+ size: 6,
45
+ complete: {
46
+ items : [],
47
+ itemValue: [],
48
+ title: "title"
49
+ }
50
+ }
51
+ ]
52
+ }]
53
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@modelforms/fontawesome-vuetify",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "main": "index.js",
5
5
  "type": "module",
6
6
  "exports": {
@@ -9,10 +9,10 @@
9
9
  "require": "./dist/main.cjs"
10
10
  }
11
11
  },
12
- "presets": ["@babel/preset-env"],
13
- "module": "./dist/styles/main.js",
14
- "types": "./dist/main.d.ts",
15
- "license": "MIT", "private": false,
12
+ "module": "components/index.d.ts",
13
+ "types": "components/index.d.ts",
14
+ "license": "MIT",
15
+ "private": false,
16
16
  "dependencies": {
17
17
  "@fortawesome/fontawesome-svg-core": "^7.1.0",
18
18
  "@fortawesome/free-brands-svg-icons": "^7.1.0",
@@ -23,6 +23,7 @@
23
23
  "@vue/cli-plugin-typescript": "^5.0.9",
24
24
  "@vue/cli-service": "^5.0.9",
25
25
  "init": "^0.1.2",
26
+ "jest": "^30.2.0",
26
27
  "my-project": "^0.0.1",
27
28
  "tsconfig": "^7.0.0",
28
29
  "typescript": "^5.9.3",
@@ -31,7 +32,7 @@
31
32
  "vue": "^3.5.25",
32
33
  "vuetify": "^3.11.0",
33
34
  "webpack": "^5.103.0"
34
- },
35
+ },
35
36
  "keywords": [
36
37
  "vue",
37
38
  "vuetify3",
@@ -48,8 +49,6 @@
48
49
  "registry": "https://registry.npmjs.org/"
49
50
  },
50
51
  "devDependencies": {
51
- "@babel/core": "^7.28.5",
52
- "@babel/preset-env": "^7.28.5",
53
52
  "@types/node": "^24.10.1"
54
53
  }
55
54
  }
package/tsconfig.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "include": [
3
- "src",
3
+ "components",
4
4
  "types"
5
5
  ],
6
6
  // Visit https://aka.ms/tsconfig to read more about this file
package/vite.config.js CHANGED
@@ -15,7 +15,7 @@ export default defineConfig({
15
15
  build: {
16
16
  transpile: ['vuetify'],
17
17
  lib: {
18
- entry: path.resolve(__dirname, 'index.d.ts'),
18
+ entry: path.resolve(__dirname, 'components/index.d.ts'),
19
19
  name: '@test',
20
20
  formats: ['amd', 'cjs'],
21
21
  fileName: (format) => `index.${format}.ts`
package/vue.config.js ADDED
@@ -0,0 +1,51 @@
1
+ import { defineConfig } from "@vue/cli-service";
2
+ import vuetify from 'vite-plugin-vuetify';
3
+
4
+ export default defineConfig({
5
+ pages: {
6
+ index: {
7
+ // entry for the page
8
+ entry: 'components/index.d.ts',
9
+ // the source template
10
+ template: 'components/index.html',
11
+ // output as dist/index.html
12
+ filename: './styles/index.html',
13
+ // when using title option,
14
+ // template title tag needs to be <title><%= htmlWebpackPlugin.options.title %></title>
15
+ title: 'Index Page',
16
+ // chunks to include on this page, by default includes
17
+ // extracted common chunks and vendor chunks.
18
+ chunks: ['index', 'chunk-common', 'index.d']
19
+ },
20
+ // when using the entry-only string format,
21
+ // template is inferred to be `public/subpage.html`
22
+ // and falls back to `public/index.html` if not found.
23
+ // Output filename is inferred to be `subpage.html`.
24
+ //subpage: 'src/subpage/main.js'
25
+ },
26
+ transpileDependencies: true,
27
+ chainWebpack : (config) => {
28
+ console.warn(config);
29
+ config.output.filename('./js/[name].js');
30
+ },
31
+ configureWebpack: {
32
+ output: {
33
+ filename: './js/[name].d.js',
34
+ chunkFilename: './js/[name].d.js',
35
+ library: 'MyLib',
36
+ umdNamedDefine: true,
37
+ },
38
+ externals: {
39
+ vue: 'Vue'
40
+ },
41
+ },
42
+ css: {
43
+ extract: {
44
+ filename: './styles/[name].css',
45
+ chunkFilename: './styles/[name].css',
46
+ }
47
+ },
48
+ // testMatch: [
49
+ // 'src/test/form.test.ts'
50
+ // ],
51
+ });
package/src/index.html DELETED
@@ -1,11 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="UTF-8">
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
- <title>Document</title>
7
- </head>
8
- <body>
9
-
10
- </body>
11
- </html>
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes