@formio/vue 5.0.0-rc.2 → 5.0.0-rc.3

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.
@@ -22,5 +22,5 @@ declare const _default: import("vue").DefineComponent<{
22
22
  };
23
23
  }>>, {
24
24
  options: Record<string, any>;
25
- }>;
25
+ }, {}>;
26
26
  export default _default;
@@ -21,5 +21,5 @@ declare const _default: import("vue").DefineComponent<{
21
21
  }>>, {
22
22
  form: Record<string, any>;
23
23
  options: Record<string, any>;
24
- }>;
24
+ }, {}>;
25
25
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@formio/vue",
3
- "version": "5.0.0-rc.2",
3
+ "version": "5.0.0-rc.3",
4
4
  "description": "A vue.js renderer for form.io forms.",
5
5
  "main": "lib/index",
6
6
  "typeings": "lib/index",
@@ -25,15 +25,15 @@
25
25
  },
26
26
  "homepage": "https://github.com/formio/vue-formio#readme",
27
27
  "peerDependencies": {
28
- "formiojs": "^4.14.9",
28
+ "formiojs": "^4.16.0",
29
29
  "vue": "^3.0.9"
30
30
  },
31
31
  "devDependencies": {
32
- "formiojs": "^4.14.9",
32
+ "@types/node": "^18.17.5",
33
33
  "@types/vue": "^2.0.0",
34
- "@vue/compiler-sfc": "^3.0.7",
35
- "@types/node": "^18.8.5",
36
- "typescript": "^4.2.3",
34
+ "@vue/compiler-sfc": "^3.3.4",
35
+ "formiojs": "^4.16.0",
36
+ "typescript": "^4.9.5",
37
37
  "typescript-eslint-parser": "^22.0.0"
38
38
  },
39
39
  "files": [
package/lib/Plugin.d.ts DELETED
@@ -1,9 +0,0 @@
1
- import { Provider } from './Provider';
2
- import Vue from 'vue';
3
- export declare class Plugin {
4
- static install(Vue: Vue, {providers, store, router}: {
5
- providers: Provider[];
6
- store: any;
7
- router: any;
8
- }): void;
9
- }
package/lib/Plugin.js DELETED
@@ -1,22 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- // Provide a plugin by default that will register all components.
4
- var Plugin = /** @class */ (function () {
5
- function Plugin() {
6
- }
7
- // Vue Plugin
8
- Plugin.install = function (Vue, _a) {
9
- // Vue.$formio = formiojs;
10
- var providers = _a.providers, store = _a.store, router = _a.router;
11
- // Vue.component('Form', Form);
12
- providers.forEach(function (provider) {
13
- provider.init(Vue);
14
- provider.registerRoutes(router);
15
- provider.registerStore(store);
16
- });
17
- };
18
- return Plugin;
19
- }());
20
- exports.Plugin = Plugin;
21
- ;
22
- //# sourceMappingURL=Plugin.js.map
package/lib/Plugin.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"Plugin.js","sourceRoot":"","sources":["../src/Plugin.ts"],"names":[],"mappings":";;AAKA,iEAAiE;AACjE;IAAA;IAaA,CAAC;IAZC,aAAa;IACN,cAAO,GAAd,UAAgB,GAAQ,EAAE,EAAgF;QACxG,0BAA0B;YADA,wBAAS,EAAE,gBAAK,EAAE,kBAAM;QAGlD,+BAA+B;QAE/B,SAAS,CAAC,OAAO,CAAC,UAAA,QAAQ;YACxB,QAAQ,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;YACnB,QAAQ,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC;YAChC,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;QAChC,CAAC,CAAC,CAAC;IACL,CAAC;IACH,aAAC;AAAD,CAAC,AAbD,IAaC;AAbY,wBAAM;AAalB,CAAC"}
package/lib/Provider.d.ts DELETED
@@ -1,29 +0,0 @@
1
- export declare type ProviderTypes = 'auth' | 'builder' | 'forms' | 'offline' | 'resource' | 'other';
2
- export interface ProviderInterface {
3
- name: string;
4
- title?: string;
5
- form?: string;
6
- type?: ProviderTypes;
7
- titlePlural?: string;
8
- routes?: any[];
9
- store?: any;
10
- children?: Provider[];
11
- views?: any;
12
- }
13
- export declare class Provider implements ProviderInterface {
14
- settings: ProviderInterface;
15
- parent?: Provider;
16
- constructor(settings: ProviderInterface, parent?: Provider);
17
- protected capitalize(value: string): string;
18
- protected pluralize(value: string): string;
19
- name: string;
20
- title: string;
21
- titlePlural: string;
22
- form: string;
23
- readonly children: Provider[];
24
- readonly rootPath: string;
25
- readonly path: string;
26
- init(Vue: any): void;
27
- registerRoutes(router: any): void;
28
- registerStore(store: any): void;
29
- }
package/lib/Provider.js DELETED
@@ -1,118 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- var vue_expose_inject_1 = require("vue-expose-inject");
4
- var Provider = /** @class */ (function () {
5
- function Provider(settings, parent) {
6
- this.settings = settings;
7
- this.parent = parent;
8
- }
9
- Provider.prototype.capitalize = function (value) {
10
- return value[0].toUpperCase() + value.substring(1);
11
- };
12
- Provider.prototype.pluralize = function (value) {
13
- return value + 's';
14
- };
15
- Object.defineProperty(Provider.prototype, "name", {
16
- get: function () {
17
- return this.settings.name;
18
- },
19
- set: function (value) {
20
- this.settings.name = value;
21
- },
22
- enumerable: true,
23
- configurable: true
24
- });
25
- Object.defineProperty(Provider.prototype, "title", {
26
- get: function () {
27
- return this.settings.title || this.capitalize(this.name);
28
- },
29
- set: function (value) {
30
- this.settings.title = value;
31
- },
32
- enumerable: true,
33
- configurable: true
34
- });
35
- Object.defineProperty(Provider.prototype, "titlePlural", {
36
- get: function () {
37
- return this.settings.titlePlural || this.pluralize(this.title);
38
- },
39
- set: function (value) {
40
- this.settings.titlePlural = value;
41
- },
42
- enumerable: true,
43
- configurable: true
44
- });
45
- Object.defineProperty(Provider.prototype, "form", {
46
- get: function () {
47
- return this.settings.form || this.name.toLowerCase();
48
- },
49
- set: function (value) {
50
- this.settings.form = value;
51
- },
52
- enumerable: true,
53
- configurable: true
54
- });
55
- Object.defineProperty(Provider.prototype, "children", {
56
- // public get type(): ProviderTypes {
57
- // return this.type || 'resource';
58
- // }
59
- //
60
- // public set type(value: ProviderTypes) {
61
- // this.settings.type = value;
62
- // }
63
- //
64
- get: function () {
65
- return this.settings.children || [];
66
- },
67
- enumerable: true,
68
- configurable: true
69
- });
70
- Object.defineProperty(Provider.prototype, "rootPath", {
71
- get: function () {
72
- return (this.parent ? this.parent.path : '') + '/' + this.name;
73
- },
74
- enumerable: true,
75
- configurable: true
76
- });
77
- Object.defineProperty(Provider.prototype, "path", {
78
- get: function () {
79
- return this.rootPath + '/:id';
80
- },
81
- enumerable: true,
82
- configurable: true
83
- });
84
- Provider.prototype.init = function (Vue) {
85
- this.children.forEach(function (child) {
86
- child.init(Vue);
87
- });
88
- };
89
- Provider.prototype.registerRoutes = function (router) {
90
- var _this = this;
91
- router.addRoutes([
92
- {
93
- path: this.rootPath,
94
- component: {
95
- mixins: [vue_expose_inject_1.expose],
96
- expose: function () { return ({
97
- $provider: _this
98
- }); },
99
- render: function (createElement) {
100
- return createElement('router-view');
101
- }
102
- },
103
- children: this.settings.routes
104
- }
105
- ]);
106
- this.children.forEach(function (child) {
107
- child.registerRoutes(router);
108
- });
109
- };
110
- Provider.prototype.registerStore = function (store) {
111
- this.children.forEach(function (child) {
112
- child.registerStore(store);
113
- });
114
- };
115
- return Provider;
116
- }());
117
- exports.Provider = Provider;
118
- //# sourceMappingURL=Provider.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Provider.js","sourceRoot":"","sources":["../src/Provider.ts"],"names":[],"mappings":";;AACA,uDAA2C;AAgB3C;IAIE,kBAAmB,QAA2B,EAAE,MAAiB;QAC/D,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAES,6BAAU,GAApB,UAAqB,KAAa;QAChC,OAAO,KAAK,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;IACrD,CAAC;IAES,4BAAS,GAAnB,UAAoB,KAAa;QAC/B,OAAO,KAAK,GAAG,GAAG,CAAC;IACrB,CAAC;IAED,sBAAW,0BAAI;aAAf;YACE,OAAO,I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