survey-creator-vue 2.5.27 → 2.5.28
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/package.json +4 -9
- package/types-presets/Presets.vue.d.ts +0 -14
- package/types-presets/PresetsIconItem.vue.d.ts +0 -15
- package/types-presets/PresetsPropertyGrid.vue.d.ts +0 -15
- package/types-presets/index.d.ts +0 -2
- package/ui-preset-editor.es.js +0 -110
- package/ui-preset-editor.umd.js +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "survey-creator-vue",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.28",
|
|
4
4
|
"description": "A white-label drag-and-drop form builder for Vue.js that lets you design complex, interactive forms and surveys without writing code. It generates JSON schemas used by the SurveyJS Form Library to render dynamic forms in your Vue.js app.",
|
|
5
5
|
"author": "DevSoft Baltic OU <info@devsoftbaltic.com>",
|
|
6
6
|
"homepage": "https://surveyjs.io/",
|
|
@@ -39,9 +39,9 @@
|
|
|
39
39
|
"url": "https://github.com/surveyjs/survey-creator.git"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
|
-
"survey-core": "2.5.
|
|
43
|
-
"survey-creator-core": "2.5.
|
|
44
|
-
"survey-vue3-ui": "2.5.
|
|
42
|
+
"survey-core": "2.5.28",
|
|
43
|
+
"survey-creator-core": "2.5.28",
|
|
44
|
+
"survey-vue3-ui": "2.5.28",
|
|
45
45
|
"vue": "^3.4.0"
|
|
46
46
|
},
|
|
47
47
|
"exports": {
|
|
@@ -49,11 +49,6 @@
|
|
|
49
49
|
"types": "./types/index.d.ts",
|
|
50
50
|
"import": "./survey-creator-vue.es.js",
|
|
51
51
|
"require": "./survey-creator-vue.umd.js"
|
|
52
|
-
},
|
|
53
|
-
"./ui-preset-editor": {
|
|
54
|
-
"types": "./types-presets/index.d.ts",
|
|
55
|
-
"import": "./ui-preset-editor.es.js",
|
|
56
|
-
"require": "./ui-preset-editor.umd.js"
|
|
57
52
|
}
|
|
58
53
|
}
|
|
59
54
|
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
type __VLS_Props = {
|
|
2
|
-
model: any;
|
|
3
|
-
};
|
|
4
|
-
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<__VLS_Props>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<__VLS_Props>>>, {}, {}>;
|
|
5
|
-
export default _default;
|
|
6
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
7
|
-
type __VLS_TypePropsToOption<T> = {
|
|
8
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
9
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
10
|
-
} : {
|
|
11
|
-
type: import('vue').PropType<T[K]>;
|
|
12
|
-
required: true;
|
|
13
|
-
};
|
|
14
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { ItemValue } from "survey-core";
|
|
2
|
-
type __VLS_Props = {
|
|
3
|
-
item: ItemValue;
|
|
4
|
-
};
|
|
5
|
-
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<__VLS_Props>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<__VLS_Props>>>, {}, {}>;
|
|
6
|
-
export default _default;
|
|
7
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
8
|
-
type __VLS_TypePropsToOption<T> = {
|
|
9
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
10
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
11
|
-
} : {
|
|
12
|
-
type: import('vue').PropType<T[K]>;
|
|
13
|
-
required: true;
|
|
14
|
-
};
|
|
15
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { type PropertyGridViewModel } from "survey-creator-core";
|
|
2
|
-
type __VLS_Props = {
|
|
3
|
-
model: PropertyGridViewModel;
|
|
4
|
-
};
|
|
5
|
-
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<__VLS_Props>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<__VLS_Props>>>, {}, {}>;
|
|
6
|
-
export default _default;
|
|
7
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
8
|
-
type __VLS_TypePropsToOption<T> = {
|
|
9
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
10
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
11
|
-
} : {
|
|
12
|
-
type: import('vue').PropType<T[K]>;
|
|
13
|
-
required: true;
|
|
14
|
-
};
|
|
15
|
-
};
|
package/types-presets/index.d.ts
DELETED
package/ui-preset-editor.es.js
DELETED
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
import { useBase as x, SvComponent as n, ComponentFactory as u } from "survey-vue3-ui";
|
|
2
|
-
import { defineComponent as v, computed as m, openBlock as _, createElementBlock as h, Fragment as b, createElementVNode as e, createBlock as y, unref as o, createCommentVNode as f, createVNode as c, withCtx as C, toDisplayString as d } from "vue";
|
|
3
|
-
import { getLocString as g } from "survey-creator-core";
|
|
4
|
-
const P = { class: "svc-flex-column" }, k = { class: "svc-tab-designer svc-tab-designer--presets" }, B = /* @__PURE__ */ v({
|
|
5
|
-
__name: "Presets",
|
|
6
|
-
props: {
|
|
7
|
-
model: {}
|
|
8
|
-
},
|
|
9
|
-
setup(r) {
|
|
10
|
-
const t = r, i = m(() => {
|
|
11
|
-
var s;
|
|
12
|
-
return (s = t.model) == null ? void 0 : s.model;
|
|
13
|
-
}), p = m(() => {
|
|
14
|
-
var s;
|
|
15
|
-
return (s = t.model) == null ? void 0 : s.navigationBar;
|
|
16
|
-
}), l = m(() => {
|
|
17
|
-
var s;
|
|
18
|
-
return (s = t.model) == null ? void 0 : s.creator;
|
|
19
|
-
});
|
|
20
|
-
return x(() => i.value), (s, a) => (_(), h(b, null, [
|
|
21
|
-
e("div", P, [
|
|
22
|
-
l.value.showToolbox ? (_(), y(o(n), {
|
|
23
|
-
key: 0,
|
|
24
|
-
is: "svc-toolbox",
|
|
25
|
-
model: l.value
|
|
26
|
-
}, null, 8, ["model"])) : f("", !0)
|
|
27
|
-
]),
|
|
28
|
-
e("div", k, [
|
|
29
|
-
c(o(n), { is: "sv-scroll" }, {
|
|
30
|
-
default: C(() => [
|
|
31
|
-
c(o(n), {
|
|
32
|
-
is: "sv-action-bar",
|
|
33
|
-
model: p.value
|
|
34
|
-
}, null, 8, ["model"]),
|
|
35
|
-
c(o(n), {
|
|
36
|
-
is: "survey",
|
|
37
|
-
model: i.value
|
|
38
|
-
}, null, 8, ["model"])
|
|
39
|
-
]),
|
|
40
|
-
_: 1
|
|
41
|
-
})
|
|
42
|
-
])
|
|
43
|
-
], 64));
|
|
44
|
-
}
|
|
45
|
-
}), N = {
|
|
46
|
-
key: 0,
|
|
47
|
-
class: "sps-icon-item",
|
|
48
|
-
style: { display: "flex" }
|
|
49
|
-
}, $ = { class: "sps-icon-item__text" }, w = /* @__PURE__ */ v({
|
|
50
|
-
__name: "PresetsIconItem",
|
|
51
|
-
props: {
|
|
52
|
-
item: {}
|
|
53
|
-
},
|
|
54
|
-
setup(r) {
|
|
55
|
-
return (t, i) => t.item ? (_(), h("div", N, [
|
|
56
|
-
c(o(n), {
|
|
57
|
-
is: "sv-svg-icon",
|
|
58
|
-
class: "sps-icon-item__icon",
|
|
59
|
-
size: "auto",
|
|
60
|
-
iconName: t.item.value
|
|
61
|
-
}, null, 8, ["iconName"]),
|
|
62
|
-
e("span", $, d(t.item.title), 1)
|
|
63
|
-
])) : f("", !0);
|
|
64
|
-
}
|
|
65
|
-
}), I = { class: "sps-launch" }, T = { class: "sps-launch__container" }, D = { class: "sps-launch__text" }, S = { class: "sps-launch__text2" }, V = { class: "sps-launch__icon" }, z = { class: "sps-launch__chevron-right-16-x-16" }, E = { class: "sps-launch__icon2" }, F = /* @__PURE__ */ v({
|
|
66
|
-
__name: "PresetsPropertyGrid",
|
|
67
|
-
props: {
|
|
68
|
-
model: {}
|
|
69
|
-
},
|
|
70
|
-
setup(r) {
|
|
71
|
-
const t = r, i = g("presets.plugin.buttonTitle"), p = g("presets.plugin.buttonDescription"), l = () => {
|
|
72
|
-
var s, a;
|
|
73
|
-
(a = (s = t.model).showPresets) == null || a.call(s);
|
|
74
|
-
};
|
|
75
|
-
return (s, a) => (_(), h(b, null, [
|
|
76
|
-
e("div", I, [
|
|
77
|
-
e("button", {
|
|
78
|
-
class: "sps-launch__card",
|
|
79
|
-
onClick: l
|
|
80
|
-
}, [
|
|
81
|
-
e("div", T, [
|
|
82
|
-
e("div", D, d(o(i)), 1),
|
|
83
|
-
e("div", S, d(o(p)), 1)
|
|
84
|
-
]),
|
|
85
|
-
e("div", V, [
|
|
86
|
-
e("div", z, [
|
|
87
|
-
e("div", E, [
|
|
88
|
-
c(o(n), {
|
|
89
|
-
is: "sv-svg-icon",
|
|
90
|
-
size: "auto",
|
|
91
|
-
iconName: "chevrondown-24x24"
|
|
92
|
-
})
|
|
93
|
-
])
|
|
94
|
-
])
|
|
95
|
-
])
|
|
96
|
-
])
|
|
97
|
-
]),
|
|
98
|
-
c(o(n), {
|
|
99
|
-
is: "svc-property-grid",
|
|
100
|
-
model: s.model
|
|
101
|
-
}, null, 8, ["model"])
|
|
102
|
-
], 64));
|
|
103
|
-
}
|
|
104
|
-
});
|
|
105
|
-
u.Instance.registerComponent("svc-tab-presets", B);
|
|
106
|
-
u.Instance.registerComponent("svc-presets-icon-item", w);
|
|
107
|
-
u.Instance.registerComponent("svc-presets-property-grid", F);
|
|
108
|
-
export {
|
|
109
|
-
B as TabPresets
|
|
110
|
-
};
|
package/ui-preset-editor.umd.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(function(n,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("survey-vue3-ui"),require("vue"),require("survey-creator-core")):typeof define=="function"&&define.amd?define(["exports","survey-vue3-ui","vue","survey-creator-core"],t):(n=typeof globalThis<"u"?globalThis:n||self,t(n.SurveyCreatorUIPresetEditorVue={},n.SurveyVue,n.Vue,n.SurveyCreatorCore))})(this,function(n,t,e,d){"use strict";const p={class:"svc-flex-column"},_={class:"svc-tab-designer svc-tab-designer--presets"},m=e.defineComponent({__name:"Presets",props:{model:{}},setup(r){const s=r,c=e.computed(()=>{var o;return(o=s.model)==null?void 0:o.model}),a=e.computed(()=>{var o;return(o=s.model)==null?void 0:o.navigationBar}),i=e.computed(()=>{var o;return(o=s.model)==null?void 0:o.creator});return t.useBase(()=>c.value),(o,l)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",p,[i.value.showToolbox?(e.openBlock(),e.createBlock(e.unref(t.SvComponent),{key:0,is:"svc-toolbox",model:i.value},null,8,["model"])):e.createCommentVNode("",!0)]),e.createElementVNode("div",_,[e.createVNode(e.unref(t.SvComponent),{is:"sv-scroll"},{default:e.withCtx(()=>[e.createVNode(e.unref(t.SvComponent),{is:"sv-action-bar",model:a.value},null,8,["model"]),e.createVNode(e.unref(t.SvComponent),{is:"survey",model:c.value},null,8,["model"])]),_:1})])],64))}}),h={key:0,class:"sps-icon-item",style:{display:"flex"}},f={class:"sps-icon-item__text"},g=e.defineComponent({__name:"PresetsIconItem",props:{item:{}},setup(r){return(s,c)=>s.item?(e.openBlock(),e.createElementBlock("div",h,[e.createVNode(e.unref(t.SvComponent),{is:"sv-svg-icon",class:"sps-icon-item__icon",size:"auto",iconName:s.item.value},null,8,["iconName"]),e.createElementVNode("span",f,e.toDisplayString(s.item.title),1)])):e.createCommentVNode("",!0)}}),N={class:"sps-launch"},C={class:"sps-launch__container"},u={class:"sps-launch__text"},S={class:"sps-launch__text2"},E={class:"sps-launch__icon"},y={class:"sps-launch__chevron-right-16-x-16"},b={class:"sps-launch__icon2"},V=e.defineComponent({__name:"PresetsPropertyGrid",props:{model:{}},setup(r){const s=r,c=d.getLocString("presets.plugin.buttonTitle"),a=d.getLocString("presets.plugin.buttonDescription"),i=()=>{var o,l;(l=(o=s.model).showPresets)==null||l.call(o)};return(o,l)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",N,[e.createElementVNode("button",{class:"sps-launch__card",onClick:i},[e.createElementVNode("div",C,[e.createElementVNode("div",u,e.toDisplayString(e.unref(c)),1),e.createElementVNode("div",S,e.toDisplayString(e.unref(a)),1)]),e.createElementVNode("div",E,[e.createElementVNode("div",y,[e.createElementVNode("div",b,[e.createVNode(e.unref(t.SvComponent),{is:"sv-svg-icon",size:"auto",iconName:"chevrondown-24x24"})])])])])]),e.createVNode(e.unref(t.SvComponent),{is:"svc-property-grid",model:o.model},null,8,["model"])],64))}});t.ComponentFactory.Instance.registerComponent("svc-tab-presets",m),t.ComponentFactory.Instance.registerComponent("svc-presets-icon-item",g),t.ComponentFactory.Instance.registerComponent("svc-presets-property-grid",V),n.TabPresets=m,Object.defineProperty(n,Symbol.toStringTag,{value:"Module"})});
|