@frigear-nu/forms 0.0.8 → 0.1.0

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 (28) hide show
  1. package/dist/module.json +1 -1
  2. package/dist/module.mjs +7 -5
  3. package/dist/runtime/app/components/FormBuilderAccess.vue +6 -13
  4. package/dist/runtime/app/components/FormBuilderFieldRow.d.vue.ts +2 -2
  5. package/dist/runtime/app/components/FormBuilderFieldRow.vue.d.ts +2 -2
  6. package/dist/runtime/app/components/FormBuilderStepHeader.d.vue.ts +2 -2
  7. package/dist/runtime/app/components/FormBuilderStepHeader.vue.d.ts +2 -2
  8. package/dist/runtime/app/components/FormCreateSlideover.d.vue.ts +8 -0
  9. package/dist/runtime/app/components/FormCreateSlideover.vue +73 -0
  10. package/dist/runtime/app/components/FormCreateSlideover.vue.d.ts +8 -0
  11. package/dist/runtime/app/components/FormPreview.vue +2 -8
  12. package/dist/runtime/app/composables/index.d.ts +1 -0
  13. package/dist/runtime/app/composables/index.js +1 -0
  14. package/dist/runtime/app/composables/useFormActions.d.ts +26 -0
  15. package/dist/runtime/app/composables/useFormActions.js +103 -0
  16. package/dist/runtime/app/composables/useForms.d.ts +1 -1
  17. package/dist/runtime/app/composables/useForms.js +2 -9
  18. package/dist/runtime/app/pages/admin-form.vue +84 -82
  19. package/dist/runtime/app/pages/admin-submission.vue +60 -29
  20. package/dist/runtime/app/pages/admin-submissions.vue +81 -47
  21. package/dist/runtime/app/pages/admin.vue +152 -233
  22. package/dist/runtime/app/pages/form.vue +47 -45
  23. package/dist/runtime/i18n/lang/da.json +31 -10
  24. package/dist/runtime/i18n/lang/en.json +31 -10
  25. package/dist/runtime/menus.js +0 -11
  26. package/dist/runtime/server/db/schema.postgresql.d.ts +741 -0
  27. package/dist/runtime/server/db/schema.postgresql.js +78 -0
  28. package/package.json +17 -17
@@ -48,12 +48,6 @@
48
48
  "published": "Published",
49
49
  "archived": "Archived"
50
50
  },
51
- "delivery": {
52
- "none": "Not delivered",
53
- "pending": "Pending",
54
- "delivered": "Delivered",
55
- "failed": "Delivery failed"
56
- },
57
51
  "validation": {
58
52
  "required": "This field is required.",
59
53
  "email": "Enter a valid email address.",
@@ -74,19 +68,19 @@
74
68
  "admin": {
75
69
  "title": "Forms",
76
70
  "new": "New form",
77
- "import": "Import",
71
+ "import": "Import JSON",
78
72
  "edit": "Edit",
79
73
  "create": "Create",
80
74
  "copyLink": "Copy link",
81
75
  "linkCopied": "Link copied.",
82
76
  "settings": "Delivery & storage",
83
- "save": "Save",
77
+ "save": "Save form",
84
78
  "saved": "Saved.",
85
79
  "name": "Name",
86
80
  "slug": "Slug",
87
81
  "slugHint": "Used in the public address.",
88
82
  "status": "Status",
89
- "empty": "No forms yet.",
83
+ "empty": "No forms yet",
90
84
  "stepped": "Stepped",
91
85
  "single": "Single page",
92
86
  "notStored": "Not stored",
@@ -109,7 +103,30 @@
109
103
  "builder": "Builder",
110
104
  "json": "JSON",
111
105
  "access": "Access",
112
- "clone": "Duplicate"
106
+ "clone": "Duplicate form",
107
+ "createForm": "Create form",
108
+ "importSubmit": "Import forms",
109
+ "search": "Search forms",
110
+ "statusFilter": "Filter by status",
111
+ "allStatuses": "All statuses",
112
+ "clearFilters": "Clear filters",
113
+ "noMatches": "No forms match.",
114
+ "emptyDescription": "Create a form to start collecting answers.",
115
+ "showing": "{shown} of {total} forms",
116
+ "open": "Open",
117
+ "updated": "Updated",
118
+ "cloned": "Form duplicated",
119
+ "created": "Form created",
120
+ "archive": "Archive form",
121
+ "archiveTitle": "Archive {name}?",
122
+ "archiveBody": "It stops accepting submissions and disappears from the public site. Its submissions are kept.",
123
+ "archived": "Form archived",
124
+ "allForms": "All forms",
125
+ "notFound": "This form does not exist.",
126
+ "details": "Details",
127
+ "submissionNotFound": "This submission does not exist.",
128
+ "noSubmissionsHint": "Answers appear here once someone submits the form.",
129
+ "redelivered": "Delivered again"
113
130
  },
114
131
  "schedule": {
115
132
  "closed": "This form is closed.",
@@ -175,6 +192,10 @@
175
192
  }
176
193
  },
177
194
  "delivery": {
195
+ "none": "Not delivered",
196
+ "pending": "Pending",
197
+ "delivered": "Delivered",
198
+ "failed": "Delivery failed",
178
199
  "title": "Delivery & storage",
179
200
  "storeTitle": "Store submissions",
180
201
  "storeHint": "Keep submissions in the database so they can be reviewed under Submissions.",
@@ -2,17 +2,6 @@ import { defineMenuItem, defineMenuSource, extendMenuItem } from "@frigear-nu/me
2
2
  export default defineMenuSource(() => {
3
3
  const config = useRuntimeConfig().public.forms;
4
4
  if (config?.pages?.admin) {
5
- extendMenuItem("dashboard.account", defineMenuItem({
6
- id: "forms-admin",
7
- label: "Forms",
8
- labelKey: "forms.menu.admin.label",
9
- description: "Manage forms and their submissions.",
10
- descriptionKey: "forms.menu.admin.description",
11
- icon: "i-lucide-clipboard-list",
12
- to: config.pages.admin,
13
- tags: ["admin"],
14
- order: 90
15
- }));
16
5
  extendMenuItem("admin.nav", defineMenuItem({
17
6
  id: "forms-admin",
18
7
  label: "Forms",