@opengis/form 0.1.39 → 0.1.40

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.
Files changed (40) hide show
  1. package/README.md +61 -61
  2. package/dist/api/suggest/suggestions_list.json +7 -7
  3. package/dist/{index-Bh8_Wx51.js → index-B1zV9Aax.js} +477 -434
  4. package/dist/{index-DQur75TQ.js → index-B3op5uFx.js} +28 -29
  5. package/dist/index-BABsOLAW.js +3085 -0
  6. package/dist/index-CkUvn8lm.js +153 -0
  7. package/dist/index-D49VHc9h.js +237 -0
  8. package/dist/{index-DbbMAhst.js → index-DFpbBRKj.js} +4534 -4527
  9. package/dist/index-DZ7xh8lh.js +50 -0
  10. package/dist/index-MfTTOwHR.js +89 -0
  11. package/dist/{index-CQZi4RyF.js → index-RwV1hx3A.js} +19 -21
  12. package/dist/{index-CMmJu2Ql.js → index-W4UOw8lU.js} +505 -428
  13. package/dist/index-pYkcVgEL.js +12134 -0
  14. package/dist/{index-DspmCbXc.js → index-qhd_7MCX.js} +20 -16
  15. package/dist/{index-DsT4tZvp.js → index-sFkGqyu8.js} +20 -16
  16. package/dist/index.css +1 -1
  17. package/dist/index.js +1 -1
  18. package/dist/index.umd.cjs +85 -85
  19. package/dist/src/components/inputs/array-select/vs-input-array-select.vue.d.ts.map +1 -1
  20. package/dist/src/components/inputs/date/datepicker/Datepicker.vue.d.ts.map +1 -1
  21. package/dist/src/components/inputs/index.d.ts +8 -8
  22. package/dist/src/components/inputs/options/radio/vs-input-radio-buttons.vue.d.ts.map +1 -1
  23. package/dist/src/components/inputs/options/radio/vs-input-radio-default.vue.d.ts.map +1 -1
  24. package/dist/src/components/inputs/options/radio/vs-input-radio.vue.d.ts +4 -3
  25. package/dist/src/components/inputs/options/radio/vs-input-radio.vue.d.ts.map +1 -1
  26. package/dist/src/components/inputs/table/vs-input-datatable.vue.d.ts.map +1 -1
  27. package/dist/src/composables/useInputOptions.d.ts +2 -2
  28. package/dist/src/composables/useInputOptions.d.ts.map +1 -1
  29. package/dist/{vs-richtext-BPE0jDe4.js → vs-richtext-Baw0o5M4.js} +22 -22
  30. package/locales/en.json +39 -39
  31. package/locales/uk.json +39 -39
  32. package/package.json +96 -96
  33. package/dist/index-B9CEJ-PZ.js +0 -187
  34. package/dist/index-CHHagWDa.js +0 -2794
  35. package/dist/index-C_6bjz0U.js +0 -138
  36. package/dist/index-D3gVZYzr.js +0 -78
  37. package/dist/index-DJVijc0x.js +0 -47
  38. package/dist/index-z-RdtcIQ.js +0 -11862
  39. package/dist/src/utils/appendQueryParams.d.ts +0 -2
  40. package/dist/src/utils/appendQueryParams.d.ts.map +0 -1
package/package.json CHANGED
@@ -1,96 +1,96 @@
1
- {
2
- "name": "@opengis/form",
3
- "private": false,
4
- "version": "0.1.39",
5
- "type": "module",
6
- "main": "./dist/index.js",
7
- "types": "./dist/index.d.ts",
8
- "exports": {
9
- ".": {
10
- "types": "./dist/index.d.ts",
11
- "import": "./dist/index.js"
12
- },
13
- "./dist/index.css": "./dist/index.css",
14
- "./locales/en.json": "./locales/en.json",
15
- "./locales/uk.json": "./locales/uk.json"
16
- },
17
- "description": "A flexible and extensible Vue form library",
18
- "homepage": "https://form.opengis.info/",
19
- "author": {
20
- "name": "OpenGIS",
21
- "url": "https://opengis.info/"
22
- },
23
- "files": [
24
- "dist",
25
- "locales"
26
- ],
27
- "keywords": [
28
- "vuejs",
29
- "vue",
30
- "forms",
31
- "form",
32
- "form-builder",
33
- "form-generator",
34
- "vue-form",
35
- "vue-form-generator",
36
- "vue3",
37
- "forms-builder",
38
- "vueforms",
39
- "vueform",
40
- "form-generator-vue3"
41
- ],
42
- "scripts": {
43
- "dev": "vite",
44
- "build": "vue-tsc -b && vite build && npm run build:types",
45
- "type-check": "vue-tsc --noEmit -p tsconfig.app.json",
46
- "build:types": "vue-tsc --declaration --emitDeclarationOnly -p tsconfig.app.json",
47
- "build:only": "vite build",
48
- "build:app": "app=true vite build",
49
- "prepublishOnly": "bun run build",
50
- "preview": "vite preview",
51
- "lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore",
52
- "test:e2e": "playwright test",
53
- "test:e2e:ui": "playwright test --ui"
54
- },
55
- "devDependencies": {
56
- "@opengis/core": "^0.0.30",
57
- "@opengis/gis": "0.2.157",
58
- "@playwright/test": "^1.63.0",
59
- "@tiptap/core": "^3.30.0",
60
- "@tiptap/extension-heading": "^3.30.0",
61
- "@tiptap/extension-highlight": "^3.30.0",
62
- "@tiptap/extension-image": "^3.30.0",
63
- "@tiptap/extension-link": "^3.30.0",
64
- "@tiptap/extension-paragraph": "^3.30.0",
65
- "@tiptap/extension-subscript": "^3.30.0",
66
- "@tiptap/extension-superscript": "^3.30.0",
67
- "@tiptap/extension-table": "^3.30.0",
68
- "@tiptap/extension-text-align": "^3.30.0",
69
- "@tiptap/extension-text-style": "^3.30.0",
70
- "@tiptap/pm": "^3.30.0",
71
- "@tiptap/starter-kit": "^3.30.0",
72
- "@tsconfig/node22": "^22.0.2",
73
- "@types/node": "^24.2.1",
74
- "@typescript-eslint/parser": "^6.21.0",
75
- "@vitejs/plugin-vue": "^6.0.0",
76
- "@vue/eslint-config-typescript": "^12.0.0",
77
- "@vue/tsconfig": "^0.7.0",
78
- "eslint": "^8.2.0",
79
- "eslint-config-airbnb": "^19.0.4",
80
- "eslint-plugin-import": "^2.25.3",
81
- "eslint-plugin-vue": "^9.33.0",
82
- "globals": "^16.0.0",
83
- "imask": "^7.6.1",
84
- "lucide-vue-next": "^0.564.0",
85
- "mitt": "^3.0.1",
86
- "prettier": "^3.2.5",
87
- "sass": "^1.72.0",
88
- "typescript": "~5.8.3",
89
- "vite": "^7.0.0",
90
- "vue-tsc": "^2.2.10"
91
- },
92
- "peerDependencies": {
93
- "lucide-vue-next": "^0.577.0",
94
- "vue": "^3.5.17"
95
- }
96
- }
1
+ {
2
+ "name": "@opengis/form",
3
+ "private": false,
4
+ "version": "0.1.40",
5
+ "type": "module",
6
+ "main": "./dist/index.js",
7
+ "types": "./dist/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "types": "./dist/index.d.ts",
11
+ "import": "./dist/index.js"
12
+ },
13
+ "./dist/index.css": "./dist/index.css",
14
+ "./locales/en.json": "./locales/en.json",
15
+ "./locales/uk.json": "./locales/uk.json"
16
+ },
17
+ "description": "A flexible and extensible Vue form library",
18
+ "homepage": "https://form.opengis.info/",
19
+ "author": {
20
+ "name": "OpenGIS",
21
+ "url": "https://opengis.info/"
22
+ },
23
+ "files": [
24
+ "dist",
25
+ "locales"
26
+ ],
27
+ "keywords": [
28
+ "vuejs",
29
+ "vue",
30
+ "forms",
31
+ "form",
32
+ "form-builder",
33
+ "form-generator",
34
+ "vue-form",
35
+ "vue-form-generator",
36
+ "vue3",
37
+ "forms-builder",
38
+ "vueforms",
39
+ "vueform",
40
+ "form-generator-vue3"
41
+ ],
42
+ "scripts": {
43
+ "dev": "vite",
44
+ "build": "vue-tsc -b && vite build && npm run build:types",
45
+ "type-check": "vue-tsc --noEmit -p tsconfig.app.json",
46
+ "build:types": "vue-tsc --declaration --emitDeclarationOnly -p tsconfig.app.json",
47
+ "build:only": "vite build",
48
+ "build:app": "app=true vite build",
49
+ "prepublishOnly": "bun run build",
50
+ "preview": "vite preview",
51
+ "lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore",
52
+ "test:e2e": "playwright test",
53
+ "test:e2e:ui": "playwright test --ui"
54
+ },
55
+ "devDependencies": {
56
+ "@opengis/core": "^0.0.30",
57
+ "@opengis/gis": "0.2.157",
58
+ "@playwright/test": "^1.63.0",
59
+ "@tiptap/core": "^3.30.0",
60
+ "@tiptap/extension-heading": "^3.30.0",
61
+ "@tiptap/extension-highlight": "^3.30.0",
62
+ "@tiptap/extension-image": "^3.30.0",
63
+ "@tiptap/extension-link": "^3.30.0",
64
+ "@tiptap/extension-paragraph": "^3.30.0",
65
+ "@tiptap/extension-subscript": "^3.30.0",
66
+ "@tiptap/extension-superscript": "^3.30.0",
67
+ "@tiptap/extension-table": "^3.30.0",
68
+ "@tiptap/extension-text-align": "^3.30.0",
69
+ "@tiptap/extension-text-style": "^3.30.0",
70
+ "@tiptap/pm": "^3.30.0",
71
+ "@tiptap/starter-kit": "^3.30.0",
72
+ "@tsconfig/node22": "^22.0.2",
73
+ "@types/node": "^24.2.1",
74
+ "@typescript-eslint/parser": "^6.21.0",
75
+ "@vitejs/plugin-vue": "^6.0.0",
76
+ "@vue/eslint-config-typescript": "^12.0.0",
77
+ "@vue/tsconfig": "^0.7.0",
78
+ "eslint": "^8.2.0",
79
+ "eslint-config-airbnb": "^19.0.4",
80
+ "eslint-plugin-import": "^2.25.3",
81
+ "eslint-plugin-vue": "^9.33.0",
82
+ "globals": "^16.0.0",
83
+ "imask": "^7.6.1",
84
+ "lucide-vue-next": "^0.564.0",
85
+ "mitt": "^3.0.1",
86
+ "prettier": "^3.2.5",
87
+ "sass": "^1.72.0",
88
+ "typescript": "~5.8.3",
89
+ "vite": "^7.0.0",
90
+ "vue-tsc": "^2.2.10"
91
+ },
92
+ "peerDependencies": {
93
+ "lucide-vue-next": "^0.577.0",
94
+ "vue": "^3.5.17"
95
+ }
96
+ }
@@ -1,187 +0,0 @@
1
- import { E as o, g as l, M as a, m as y } from "./index-z-RdtcIQ.js";
2
- const d = 20, u = (t, e = 0) => {
3
- const r = [];
4
- return !t.children.length || e > d || Array.from(t.children).forEach((n) => {
5
- n.tagName === "SPAN" ? r.push(n) : n.children.length && r.push(...u(n, e + 1));
6
- }), r;
7
- }, p = (t) => {
8
- if (!t.children.length) return;
9
- const e = u(t);
10
- e && e.forEach((r) => {
11
- var n;
12
- const s = r.getAttribute("style"), i = (n = r.parentElement) === null || n === void 0 || (n = n.closest("span")) === null || n === void 0 ? void 0 : n.getAttribute("style");
13
- r.setAttribute("style", `${i};${s}`);
14
- });
15
- }, c = a.create({
16
- name: "textStyle",
17
- priority: 101,
18
- addOptions() {
19
- return {
20
- HTMLAttributes: {},
21
- mergeNestedSpanStyles: !0
22
- };
23
- },
24
- parseHTML() {
25
- return [{
26
- tag: "span",
27
- consuming: !1,
28
- getAttrs: (t) => t.hasAttribute("style") ? (this.options.mergeNestedSpanStyles && p(t), {}) : !1
29
- }];
30
- },
31
- renderHTML({ HTMLAttributes: t }) {
32
- return [
33
- "span",
34
- y(this.options.HTMLAttributes, t),
35
- 0
36
- ];
37
- },
38
- addCommands() {
39
- return {
40
- toggleTextStyle: (t) => ({ commands: e }) => e.toggleMark(this.name, t),
41
- removeEmptyTextStyle: () => ({ tr: t }) => {
42
- const { selection: e } = t;
43
- return t.doc.nodesBetween(e.from, e.to, (r, n) => {
44
- if (!r.isInline) return !0;
45
- r.marks.filter((s) => s.type === this.type).some((s) => Object.values(s.attrs).some((i) => !!i)) || t.removeMark(n, n + r.nodeSize, this.type);
46
- }), !0;
47
- }
48
- };
49
- }
50
- }), f = o.create({
51
- name: "backgroundColor",
52
- addOptions() {
53
- return { types: ["textStyle"] };
54
- },
55
- addGlobalAttributes() {
56
- return [{
57
- types: this.options.types,
58
- attributes: { backgroundColor: {
59
- default: null,
60
- parseHTML: (t) => {
61
- var e;
62
- const r = (e = l(t, "background-color")) !== null && e !== void 0 ? e : t.style.backgroundColor;
63
- return r?.replace(/['"]+/g, "");
64
- },
65
- renderHTML: (t) => t.backgroundColor ? { style: `background-color: ${t.backgroundColor}` } : {}
66
- } }
67
- }];
68
- },
69
- addCommands() {
70
- return {
71
- setBackgroundColor: (t) => ({ chain: e }) => e().setMark("textStyle", { backgroundColor: t }).run(),
72
- unsetBackgroundColor: () => ({ chain: t }) => t().setMark("textStyle", { backgroundColor: null }).removeEmptyTextStyle().run()
73
- };
74
- }
75
- }), S = o.create({
76
- name: "color",
77
- addOptions() {
78
- return { types: ["textStyle"] };
79
- },
80
- addGlobalAttributes() {
81
- return [{
82
- types: this.options.types,
83
- attributes: { color: {
84
- default: null,
85
- parseHTML: (t) => {
86
- var e;
87
- const r = (e = l(t, "color")) !== null && e !== void 0 ? e : t.style.color;
88
- return r?.replace(/['"]+/g, "");
89
- },
90
- renderHTML: (t) => t.color ? { style: `color: ${t.color}` } : {}
91
- } }
92
- }];
93
- },
94
- addCommands() {
95
- return {
96
- setColor: (t) => ({ chain: e }) => e().setMark("textStyle", { color: t }).run(),
97
- unsetColor: () => ({ chain: t }) => t().setMark("textStyle", { color: null }).removeEmptyTextStyle().run()
98
- };
99
- }
100
- }), g = o.create({
101
- name: "fontFamily",
102
- addOptions() {
103
- return { types: ["textStyle"] };
104
- },
105
- addGlobalAttributes() {
106
- return [{
107
- types: this.options.types,
108
- attributes: { fontFamily: {
109
- default: null,
110
- parseHTML: (t) => {
111
- var e;
112
- return (e = l(t, "font-family")) !== null && e !== void 0 ? e : t.style.fontFamily;
113
- },
114
- renderHTML: (t) => t.fontFamily ? { style: `font-family: ${t.fontFamily}` } : {}
115
- } }
116
- }];
117
- },
118
- addCommands() {
119
- return {
120
- setFontFamily: (t) => ({ chain: e }) => e().setMark("textStyle", { fontFamily: t }).run(),
121
- unsetFontFamily: () => ({ chain: t }) => t().setMark("textStyle", { fontFamily: null }).removeEmptyTextStyle().run()
122
- };
123
- }
124
- }), h = o.create({
125
- name: "fontSize",
126
- addOptions() {
127
- return { types: ["textStyle"] };
128
- },
129
- addGlobalAttributes() {
130
- return [{
131
- types: this.options.types,
132
- attributes: { fontSize: {
133
- default: null,
134
- parseHTML: (t) => {
135
- var e;
136
- return (e = l(t, "font-size")) !== null && e !== void 0 ? e : t.style.fontSize;
137
- },
138
- renderHTML: (t) => t.fontSize ? { style: `font-size: ${t.fontSize}` } : {}
139
- } }
140
- }];
141
- },
142
- addCommands() {
143
- return {
144
- setFontSize: (t) => ({ chain: e }) => e().setMark("textStyle", { fontSize: t }).run(),
145
- unsetFontSize: () => ({ chain: t }) => t().setMark("textStyle", { fontSize: null }).removeEmptyTextStyle().run()
146
- };
147
- }
148
- }), m = o.create({
149
- name: "lineHeight",
150
- addOptions() {
151
- return { types: ["textStyle"] };
152
- },
153
- addGlobalAttributes() {
154
- return [{
155
- types: this.options.types,
156
- attributes: { lineHeight: {
157
- default: null,
158
- parseHTML: (t) => {
159
- var e;
160
- return (e = l(t, "line-height")) !== null && e !== void 0 ? e : t.style.lineHeight;
161
- },
162
- renderHTML: (t) => t.lineHeight ? { style: `line-height: ${t.lineHeight}` } : {}
163
- } }
164
- }];
165
- },
166
- addCommands() {
167
- return {
168
- setLineHeight: (t) => ({ chain: e }) => e().setMark("textStyle", { lineHeight: t }).run(),
169
- unsetLineHeight: () => ({ chain: t }) => t().setMark("textStyle", { lineHeight: null }).removeEmptyTextStyle().run()
170
- };
171
- }
172
- }), M = o.create({
173
- name: "textStyleKit",
174
- addExtensions() {
175
- const t = [];
176
- return this.options.backgroundColor !== !1 && t.push(f.configure(this.options.backgroundColor)), this.options.color !== !1 && t.push(S.configure(this.options.color)), this.options.fontFamily !== !1 && t.push(g.configure(this.options.fontFamily)), this.options.fontSize !== !1 && t.push(h.configure(this.options.fontSize)), this.options.lineHeight !== !1 && t.push(m.configure(this.options.lineHeight)), this.options.textStyle !== !1 && t.push(c.configure(this.options.textStyle)), t;
177
- }
178
- });
179
- export {
180
- f as BackgroundColor,
181
- S as Color,
182
- g as FontFamily,
183
- h as FontSize,
184
- m as LineHeight,
185
- c as TextStyle,
186
- M as TextStyleKit
187
- };