@opengis/form 0.1.38 → 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 (36) 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-C9Yk_H6i.js → index-DFpbBRKj.js} +4200 -4188
  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/date/datepicker/Datepicker.vue.d.ts.map +1 -1
  20. package/dist/src/components/inputs/index.d.ts +8 -8
  21. package/dist/src/components/inputs/options/radio/vs-input-radio-buttons.vue.d.ts.map +1 -1
  22. package/dist/src/components/inputs/options/radio/vs-input-radio-default.vue.d.ts.map +1 -1
  23. package/dist/src/components/inputs/options/radio/vs-input-radio.vue.d.ts +4 -3
  24. package/dist/src/components/inputs/options/radio/vs-input-radio.vue.d.ts.map +1 -1
  25. package/dist/src/composables/useInputOptions.d.ts +2 -2
  26. package/dist/src/composables/useInputOptions.d.ts.map +1 -1
  27. package/dist/{vs-richtext-C8cui4bv.js → vs-richtext-Baw0o5M4.js} +22 -22
  28. package/locales/en.json +39 -39
  29. package/locales/uk.json +39 -39
  30. package/package.json +96 -96
  31. package/dist/index-B9CEJ-PZ.js +0 -187
  32. package/dist/index-CHHagWDa.js +0 -2794
  33. package/dist/index-C_6bjz0U.js +0 -138
  34. package/dist/index-D3gVZYzr.js +0 -78
  35. package/dist/index-DJVijc0x.js +0 -47
  36. package/dist/index-z-RdtcIQ.js +0 -11862
@@ -1,138 +0,0 @@
1
- import { N as M, n as R, m as $, R as x, c as z } from "./index-z-RdtcIQ.js";
2
- const _ = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, E = M.create({
3
- name: "image",
4
- addOptions() {
5
- return {
6
- inline: !1,
7
- allowBase64: !1,
8
- HTMLAttributes: {},
9
- resize: !1
10
- };
11
- },
12
- inline() {
13
- return this.options.inline;
14
- },
15
- group() {
16
- return this.options.inline ? "inline" : "block";
17
- },
18
- draggable: !0,
19
- addAttributes() {
20
- return {
21
- src: { default: null },
22
- alt: { default: null },
23
- title: { default: null },
24
- width: { default: null },
25
- height: { default: null }
26
- };
27
- },
28
- parseHTML() {
29
- return [{ tag: this.options.allowBase64 ? "img[src]" : 'img[src]:not([src^="data:"])' }];
30
- },
31
- renderHTML({ HTMLAttributes: e }) {
32
- return ["img", $(this.options.HTMLAttributes, e)];
33
- },
34
- parseMarkdown: (e, s) => s.createNode("image", {
35
- src: e.href,
36
- title: e.title,
37
- alt: e.text
38
- }),
39
- renderMarkdown: (e) => {
40
- var s, o, a, u, d, c;
41
- const h = (s = (o = e.attrs) === null || o === void 0 ? void 0 : o.src) !== null && s !== void 0 ? s : "", p = (a = (u = e.attrs) === null || u === void 0 ? void 0 : u.alt) !== null && a !== void 0 ? a : "", t = (d = (c = e.attrs) === null || c === void 0 ? void 0 : c.title) !== null && d !== void 0 ? d : "";
42
- return t ? `![${p}](${h} "${t}")` : `![${p}](${h})`;
43
- },
44
- addNodeView() {
45
- if (!this.options.resize || !this.options.resize.enabled || typeof document > "u") return null;
46
- const { directions: e, minWidth: s, minHeight: o, alwaysPreserveAspectRatio: a } = this.options.resize, u = /* @__PURE__ */ new Set([
47
- "src",
48
- "width",
49
- "height"
50
- ]);
51
- return ({ node: d, getPos: c, HTMLAttributes: h, editor: p }) => {
52
- const t = document.createElement("img");
53
- t.draggable = !1;
54
- const m = $(this.options.HTMLAttributes, h);
55
- Object.entries(m).forEach(([r, n]) => {
56
- if (n != null) switch (r) {
57
- case "src":
58
- case "width":
59
- case "height":
60
- break;
61
- default:
62
- t.setAttribute(r, n);
63
- }
64
- }), m.src !== null && (t.src = m.src);
65
- let g = { ...h };
66
- const v = (r) => {
67
- if (typeof r == "string" && r !== "") {
68
- t.getAttribute("src") !== r && (t.src = r);
69
- return;
70
- }
71
- t.hasAttribute("src") && t.removeAttribute("src"), t.src !== "" && (t.src = "");
72
- };
73
- v(h.src);
74
- const y = (r) => {
75
- if (r.type !== d.type) return !1;
76
- const n = p.extensionManager.attributes.filter((i) => i.type === r.type.name), l = z(r, n);
77
- return Object.keys(g).forEach((i) => {
78
- !u.has(i) && !(i in l) && t.removeAttribute(i);
79
- }), Object.entries(l).forEach(([i, w]) => {
80
- u.has(i) || (w != null ? t.setAttribute(i, w) : t.removeAttribute(i));
81
- }), v(l.src), g = l, !0;
82
- }, A = new x({
83
- element: t,
84
- editor: p,
85
- node: d,
86
- getPos: c,
87
- onResize: (r, n) => {
88
- t.style.width = `${r}px`, t.style.height = `${n}px`;
89
- },
90
- onCommit: (r, n) => {
91
- const l = c();
92
- l !== void 0 && this.editor.chain().setNodeSelection(l).updateAttributes(this.name, {
93
- width: r,
94
- height: n
95
- }).run();
96
- },
97
- onUpdate: y,
98
- options: {
99
- directions: e,
100
- min: {
101
- width: s,
102
- height: o
103
- },
104
- preserveAspectRatio: a === !0
105
- }
106
- }), f = A.dom, b = () => {
107
- f.style.visibility = "", f.style.pointerEvents = "";
108
- };
109
- return f.style.visibility = "hidden", f.style.pointerEvents = "none", t.complete && t.naturalWidth > 0 ? b() : (t.onload = b, t.onerror = b), A;
110
- };
111
- },
112
- addCommands() {
113
- return { setImage: (e) => ({ commands: s }) => s.insertContent({
114
- type: this.name,
115
- attrs: e
116
- }) };
117
- },
118
- addInputRules() {
119
- return [R({
120
- find: _,
121
- type: this.type,
122
- getAttributes: (e) => {
123
- const [, , s, o, a] = e;
124
- return {
125
- src: o,
126
- alt: s,
127
- title: a
128
- };
129
- }
130
- })];
131
- }
132
- });
133
- var I = E;
134
- export {
135
- E as Image,
136
- I as default,
137
- _ as inputRegex
138
- };
@@ -1,78 +0,0 @@
1
- import { M as a, a as s, b as l, m as u, g as d } from "./index-z-RdtcIQ.js";
2
- const h = /(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))$/, g = /(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))/g, c = a.create({
3
- name: "highlight",
4
- addOptions() {
5
- return {
6
- multicolor: !1,
7
- HTMLAttributes: {}
8
- };
9
- },
10
- addAttributes() {
11
- return this.options.multicolor ? { color: {
12
- default: null,
13
- parseHTML: (t) => t.getAttribute("data-color") || d(t, "background-color") || t.style.backgroundColor,
14
- renderHTML: (t) => t.color ? {
15
- "data-color": t.color,
16
- style: `background-color: ${t.color}; color: inherit`
17
- } : {}
18
- } } : {};
19
- },
20
- parseHTML() {
21
- return [{ tag: "mark" }];
22
- },
23
- renderHTML({ HTMLAttributes: t }) {
24
- return [
25
- "mark",
26
- u(this.options.HTMLAttributes, t),
27
- 0
28
- ];
29
- },
30
- renderMarkdown: (t, r) => `==${r.renderChildren(t)}==`,
31
- parseMarkdown: (t, r) => r.applyMark("highlight", r.parseInline(t.tokens || [])),
32
- markdownTokenizer: {
33
- name: "highlight",
34
- level: "inline",
35
- start: (t) => t.indexOf("=="),
36
- tokenize(t, r, o) {
37
- const e = /^(==)([^=]+)(==)/.exec(t);
38
- if (e) {
39
- const n = e[2].trim(), i = o.inlineTokens(n);
40
- return {
41
- type: "highlight",
42
- raw: e[0],
43
- text: n,
44
- tokens: i
45
- };
46
- }
47
- }
48
- },
49
- addCommands() {
50
- return {
51
- setHighlight: (t) => ({ commands: r }) => r.setMark(this.name, t),
52
- toggleHighlight: (t) => ({ commands: r }) => r.toggleMark(this.name, t),
53
- unsetHighlight: () => ({ commands: t }) => t.unsetMark(this.name)
54
- };
55
- },
56
- addKeyboardShortcuts() {
57
- return { "Mod-Shift-h": () => this.editor.commands.toggleHighlight() };
58
- },
59
- addInputRules() {
60
- return [l({
61
- find: h,
62
- type: this.type
63
- })];
64
- },
65
- addPasteRules() {
66
- return [s({
67
- find: g,
68
- type: this.type
69
- })];
70
- }
71
- });
72
- var k = c;
73
- export {
74
- c as Highlight,
75
- k as default,
76
- h as inputRegex,
77
- g as pasteRegex
78
- };
@@ -1,47 +0,0 @@
1
- import { N as p, m as u } from "./index-z-RdtcIQ.js";
2
- const a = " ", s = " ", l = p.create({
3
- name: "paragraph",
4
- priority: 1e3,
5
- addOptions() {
6
- return { HTMLAttributes: {} };
7
- },
8
- group: "block",
9
- content: "inline*",
10
- parseHTML() {
11
- return [{ tag: "p" }];
12
- },
13
- renderHTML({ HTMLAttributes: t }) {
14
- return [
15
- "p",
16
- u(this.options.HTMLAttributes, t),
17
- 0
18
- ];
19
- },
20
- parseMarkdown: (t, n) => {
21
- const r = t.tokens || [];
22
- if (r.length === 1 && r[0].type === "image") return n.parseChildren([r[0]]);
23
- const e = n.parseInline(r);
24
- return r.length === 1 && r[0].type === "text" && (r[0].raw === a || r[0].text === a || r[0].raw === s || r[0].text === s) && e.length === 1 && e[0].type === "text" && (e[0].text === a || e[0].text === s) ? n.createNode("paragraph", void 0, []) : n.createNode("paragraph", void 0, e);
25
- },
26
- renderMarkdown: (t, n, r) => {
27
- if (!t) return "";
28
- const e = Array.isArray(t.content) ? t.content : [];
29
- if (e.length === 0) {
30
- var o, i;
31
- const d = Array.isArray(r == null || (o = r.previousNode) === null || o === void 0 ? void 0 : o.content) ? r.previousNode.content : [];
32
- return (r == null || (i = r.previousNode) === null || i === void 0 ? void 0 : i.type) === "paragraph" && d.length === 0 ? a : "";
33
- }
34
- return n.renderChildren(e);
35
- },
36
- addCommands() {
37
- return { setParagraph: () => ({ commands: t }) => t.setNode(this.name) };
38
- },
39
- addKeyboardShortcuts() {
40
- return { "Mod-Alt-0": () => this.editor.commands.setParagraph() };
41
- }
42
- });
43
- var h = l;
44
- export {
45
- l as Paragraph,
46
- h as default
47
- };