@mapomodule/uikit 1.0.0-alpha.6 → 1.0.0-alpha.60

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 (231) hide show
  1. package/CHANGELOG.md +953 -0
  2. package/components/ConfirmDialog.vue +58 -37
  3. package/components/Detail/Detail.vue +421 -271
  4. package/components/Detail/DetailLangSwitch.vue +9 -2
  5. package/components/DropArea.vue +63 -56
  6. package/components/Form/Form.vue +218 -0
  7. package/components/Form/FormField.vue +216 -0
  8. package/components/Form/FormGroup.vue +146 -0
  9. package/components/Form/FormTabs.vue +188 -0
  10. package/components/Form/defaults.js +98 -0
  11. package/components/Form/fields/ColorField.vue +79 -0
  12. package/components/{fields → Form/fields}/DateField.vue +20 -11
  13. package/components/Form/fields/DateTimeField.vue +271 -0
  14. package/components/Form/fields/EnhancedMediaField.vue +224 -0
  15. package/components/Form/fields/FileField.vue +125 -0
  16. package/components/Form/fields/FksField.vue +115 -0
  17. package/components/Form/fields/MediaField.vue +159 -0
  18. package/components/Form/fields/MediaM2mField.vue +149 -0
  19. package/components/Form/fields/Repeater.vue +618 -0
  20. package/components/{fields → Form/fields}/SeoPreview.vue +10 -10
  21. package/components/Form/fields/TimeField.vue +154 -0
  22. package/components/Form/fields/mapField/leaflet.injector.js +39 -0
  23. package/components/Form/fields/mapField/mapField.vue +350 -0
  24. package/components/Form/fields/wygEditor/defaults.js +25 -0
  25. package/components/{fields/TinyMce → Form/fields/wygEditor}/utils/mapomedia.plugin.js +7 -6
  26. package/components/Form/fields/wygEditor/wygEditor.vue +285 -0
  27. package/components/Form/fields/wygEditorCKE/defaults.js +103 -0
  28. package/components/Form/fields/wygEditorCKE/utils/ckeditor.injector.js +29 -0
  29. package/components/Form/fields/wygEditorCKE/wygEditorCKE.vue +270 -0
  30. package/components/LangSwitcher.vue +44 -0
  31. package/components/List/List.vue +34 -17
  32. package/components/List/ListActions.vue +22 -4
  33. package/components/List/ListFilters.vue +48 -10
  34. package/components/List/ListHead.vue +11 -3
  35. package/components/List/ListQuickEdit.vue +124 -64
  36. package/components/List/ListTable.vue +118 -18
  37. package/components/Login.vue +17 -7
  38. package/components/LogoutButton.vue +43 -28
  39. package/components/MediaManager/MediaBreadcrumbs.vue +45 -0
  40. package/components/MediaManager/MediaEditor.vue +297 -120
  41. package/components/MediaManager/MediaFileChanger.vue +78 -0
  42. package/components/MediaManager/MediaFolders.vue +224 -116
  43. package/components/MediaManager/MediaGallery.vue +224 -145
  44. package/components/MediaManager/MediaManager.vue +125 -159
  45. package/components/MediaManager/MediaManagerDialog.vue +36 -31
  46. package/components/MediaManager/MediaPreview.vue +258 -0
  47. package/components/MediaManager/MediaUploader.vue +91 -90
  48. package/components/MenuManager/MenuManager.vue +332 -0
  49. package/components/MenuManager/MenuNodeEditor.vue +270 -0
  50. package/components/MenuManager/MenuTreeview.vue +237 -0
  51. package/components/MenuManager/MenuTreeviewNode.vue +208 -0
  52. package/components/PagePreview.vue +58 -0
  53. package/components/SnackBar.vue +5 -7
  54. package/components/ThemeToggle.vue +13 -0
  55. package/components/layout/Sidebar/Sidebar.vue +48 -39
  56. package/components/layout/Sidebar/SidebarList.vue +11 -4
  57. package/components/layout/Sidebar/SidebarListItem.vue +113 -13
  58. package/components/layout/Sidebar/SidebarProfile.vue +42 -0
  59. package/components/layout/Sidebar/SidebarTitle.vue +45 -0
  60. package/components/layout/Topbar/Topbar.vue +11 -9
  61. package/components/layout/routebuilder.js +2 -2
  62. package/defaults/i18n.js +37 -0
  63. package/defaults/vuetify.js +34 -0
  64. package/layouts/default.vue +35 -11
  65. package/layouts/empty.vue +10 -0
  66. package/module.js +7 -5
  67. package/package.json +6 -4
  68. package/pages/index.vue +19 -17
  69. package/static/mapo/ckeditor/plugins/image2/dev/assets/image1.jpg +0 -0
  70. package/static/mapo/ckeditor/plugins/image2/dev/assets/image2.jpg +0 -0
  71. package/static/mapo/ckeditor/plugins/image2/dev/contents.css +35 -0
  72. package/static/mapo/ckeditor/plugins/image2/dev/image2.html +338 -0
  73. package/static/mapo/ckeditor/plugins/image2/dialogs/image2.js +557 -0
  74. package/static/mapo/ckeditor/plugins/image2/icons/hidpi/image.png +0 -0
  75. package/static/mapo/ckeditor/plugins/image2/icons/image.png +0 -0
  76. package/static/mapo/ckeditor/plugins/image2/lang/af.js +21 -0
  77. package/static/mapo/ckeditor/plugins/image2/lang/ar.js +21 -0
  78. package/static/mapo/ckeditor/plugins/image2/lang/az.js +21 -0
  79. package/static/mapo/ckeditor/plugins/image2/lang/bg.js +21 -0
  80. package/static/mapo/ckeditor/plugins/image2/lang/bn.js +21 -0
  81. package/static/mapo/ckeditor/plugins/image2/lang/bs.js +21 -0
  82. package/static/mapo/ckeditor/plugins/image2/lang/ca.js +21 -0
  83. package/static/mapo/ckeditor/plugins/image2/lang/cs.js +21 -0
  84. package/static/mapo/ckeditor/plugins/image2/lang/cy.js +21 -0
  85. package/static/mapo/ckeditor/plugins/image2/lang/da.js +21 -0
  86. package/static/mapo/ckeditor/plugins/image2/lang/de-ch.js +21 -0
  87. package/static/mapo/ckeditor/plugins/image2/lang/de.js +21 -0
  88. package/static/mapo/ckeditor/plugins/image2/lang/el.js +21 -0
  89. package/static/mapo/ckeditor/plugins/image2/lang/en-au.js +21 -0
  90. package/static/mapo/ckeditor/plugins/image2/lang/en-ca.js +21 -0
  91. package/static/mapo/ckeditor/plugins/image2/lang/en-gb.js +21 -0
  92. package/static/mapo/ckeditor/plugins/image2/lang/en.js +21 -0
  93. package/static/mapo/ckeditor/plugins/image2/lang/eo.js +21 -0
  94. package/static/mapo/ckeditor/plugins/image2/lang/es-mx.js +21 -0
  95. package/static/mapo/ckeditor/plugins/image2/lang/es.js +21 -0
  96. package/static/mapo/ckeditor/plugins/image2/lang/et.js +21 -0
  97. package/static/mapo/ckeditor/plugins/image2/lang/eu.js +21 -0
  98. package/static/mapo/ckeditor/plugins/image2/lang/fa.js +21 -0
  99. package/static/mapo/ckeditor/plugins/image2/lang/fi.js +21 -0
  100. package/static/mapo/ckeditor/plugins/image2/lang/fo.js +21 -0
  101. package/static/mapo/ckeditor/plugins/image2/lang/fr-ca.js +21 -0
  102. package/static/mapo/ckeditor/plugins/image2/lang/fr.js +21 -0
  103. package/static/mapo/ckeditor/plugins/image2/lang/gl.js +21 -0
  104. package/static/mapo/ckeditor/plugins/image2/lang/gu.js +21 -0
  105. package/static/mapo/ckeditor/plugins/image2/lang/he.js +21 -0
  106. package/static/mapo/ckeditor/plugins/image2/lang/hi.js +21 -0
  107. package/static/mapo/ckeditor/plugins/image2/lang/hr.js +21 -0
  108. package/static/mapo/ckeditor/plugins/image2/lang/hu.js +21 -0
  109. package/static/mapo/ckeditor/plugins/image2/lang/id.js +21 -0
  110. package/static/mapo/ckeditor/plugins/image2/lang/is.js +21 -0
  111. package/static/mapo/ckeditor/plugins/image2/lang/it.js +21 -0
  112. package/static/mapo/ckeditor/plugins/image2/lang/ja.js +21 -0
  113. package/static/mapo/ckeditor/plugins/image2/lang/ka.js +21 -0
  114. package/static/mapo/ckeditor/plugins/image2/lang/km.js +21 -0
  115. package/static/mapo/ckeditor/plugins/image2/lang/ko.js +21 -0
  116. package/static/mapo/ckeditor/plugins/image2/lang/ku.js +21 -0
  117. package/static/mapo/ckeditor/plugins/image2/lang/lt.js +21 -0
  118. package/static/mapo/ckeditor/plugins/image2/lang/lv.js +21 -0
  119. package/static/mapo/ckeditor/plugins/image2/lang/mk.js +21 -0
  120. package/static/mapo/ckeditor/plugins/image2/lang/mn.js +21 -0
  121. package/static/mapo/ckeditor/plugins/image2/lang/ms.js +21 -0
  122. package/static/mapo/ckeditor/plugins/image2/lang/nb.js +21 -0
  123. package/static/mapo/ckeditor/plugins/image2/lang/nl.js +21 -0
  124. package/static/mapo/ckeditor/plugins/image2/lang/no.js +21 -0
  125. package/static/mapo/ckeditor/plugins/image2/lang/oc.js +21 -0
  126. package/static/mapo/ckeditor/plugins/image2/lang/pl.js +21 -0
  127. package/static/mapo/ckeditor/plugins/image2/lang/pt-br.js +21 -0
  128. package/static/mapo/ckeditor/plugins/image2/lang/pt.js +21 -0
  129. package/static/mapo/ckeditor/plugins/image2/lang/ro.js +21 -0
  130. package/static/mapo/ckeditor/plugins/image2/lang/ru.js +21 -0
  131. package/static/mapo/ckeditor/plugins/image2/lang/si.js +21 -0
  132. package/static/mapo/ckeditor/plugins/image2/lang/sk.js +21 -0
  133. package/static/mapo/ckeditor/plugins/image2/lang/sl.js +21 -0
  134. package/static/mapo/ckeditor/plugins/image2/lang/sq.js +21 -0
  135. package/static/mapo/ckeditor/plugins/image2/lang/sr-latn.js +21 -0
  136. package/static/mapo/ckeditor/plugins/image2/lang/sr.js +21 -0
  137. package/static/mapo/ckeditor/plugins/image2/lang/sv.js +21 -0
  138. package/static/mapo/ckeditor/plugins/image2/lang/th.js +21 -0
  139. package/static/mapo/ckeditor/plugins/image2/lang/tr.js +21 -0
  140. package/static/mapo/ckeditor/plugins/image2/lang/tt.js +21 -0
  141. package/static/mapo/ckeditor/plugins/image2/lang/ug.js +21 -0
  142. package/static/mapo/ckeditor/plugins/image2/lang/uk.js +21 -0
  143. package/static/mapo/ckeditor/plugins/image2/lang/vi.js +21 -0
  144. package/static/mapo/ckeditor/plugins/image2/lang/zh-cn.js +21 -0
  145. package/static/mapo/ckeditor/plugins/image2/lang/zh.js +21 -0
  146. package/static/mapo/ckeditor/plugins/image2/plugin.js +1798 -0
  147. package/static/mapo/ckeditor/plugins/image2/samples/assets/image1.jpg +0 -0
  148. package/static/mapo/ckeditor/plugins/image2/samples/assets/image2.jpg +0 -0
  149. package/static/mapo/ckeditor/plugins/image2/samples/image2.html +68 -0
  150. package/static/mapo/ckeditor/skins/moono/dev/icons16.png +0 -0
  151. package/static/mapo/ckeditor/skins/moono/dev/icons16.svg +2374 -0
  152. package/static/mapo/ckeditor/skins/moono/dev/icons32.png +0 -0
  153. package/static/mapo/ckeditor/skins/moono/dev/icons32.svg +2722 -0
  154. package/static/mapo/ckeditor/skins/moono/dev/locations.json +144 -0
  155. package/static/mapo/ckeditor/skins/moono/dialog.css +5 -0
  156. package/static/mapo/ckeditor/skins/moono/dialog_ie.css +5 -0
  157. package/static/mapo/ckeditor/skins/moono/dialog_ie7.css +5 -0
  158. package/static/mapo/ckeditor/skins/moono/dialog_ie8.css +5 -0
  159. package/static/mapo/ckeditor/skins/moono/dialog_iequirks.css +5 -0
  160. package/static/mapo/ckeditor/skins/moono/editor.css +5 -0
  161. package/static/mapo/ckeditor/skins/moono/editor_gecko.css +5 -0
  162. package/static/mapo/ckeditor/skins/moono/editor_ie.css +5 -0
  163. package/static/mapo/ckeditor/skins/moono/editor_ie7.css +5 -0
  164. package/static/mapo/ckeditor/skins/moono/editor_ie8.css +5 -0
  165. package/static/mapo/ckeditor/skins/moono/editor_iequirks.css +5 -0
  166. package/static/mapo/ckeditor/skins/moono/icons.png +0 -0
  167. package/static/mapo/ckeditor/skins/moono/icons_hidpi.png +0 -0
  168. package/static/mapo/ckeditor/skins/moono/images/anchor.png +0 -0
  169. package/static/mapo/ckeditor/skins/moono/images/arrow.png +0 -0
  170. package/static/mapo/ckeditor/skins/moono/images/close.png +0 -0
  171. package/static/mapo/ckeditor/skins/moono/images/hidpi/anchor.png +0 -0
  172. package/static/mapo/ckeditor/skins/moono/images/hidpi/close.png +0 -0
  173. package/static/mapo/ckeditor/skins/moono/images/hidpi/lock-open.png +0 -0
  174. package/static/mapo/ckeditor/skins/moono/images/hidpi/lock.png +0 -0
  175. package/static/mapo/ckeditor/skins/moono/images/hidpi/refresh.png +0 -0
  176. package/static/mapo/ckeditor/skins/moono/images/lock-open.png +0 -0
  177. package/static/mapo/ckeditor/skins/moono/images/lock.png +0 -0
  178. package/static/mapo/ckeditor/skins/moono/images/refresh.png +0 -0
  179. package/static/mapo/ckeditor/skins/moono/images/spinner.gif +0 -0
  180. package/static/mapo/ckeditor/skins/moono/readme.md +49 -0
  181. package/static/mapo/ckeditor/skins/moono/skin.js +10 -0
  182. package/static/mapo/ckeditor/skins/moono-dark/dialog.css +5 -0
  183. package/static/mapo/ckeditor/skins/moono-dark/dialog_ie.css +5 -0
  184. package/static/mapo/ckeditor/skins/moono-dark/dialog_ie7.css +5 -0
  185. package/static/mapo/ckeditor/skins/moono-dark/dialog_ie8.css +5 -0
  186. package/static/mapo/ckeditor/skins/moono-dark/dialog_iequirks.css +5 -0
  187. package/static/mapo/ckeditor/skins/moono-dark/editor.css +5 -0
  188. package/static/mapo/ckeditor/skins/moono-dark/editor_gecko.css +5 -0
  189. package/static/mapo/ckeditor/skins/moono-dark/editor_ie.css +5 -0
  190. package/static/mapo/ckeditor/skins/moono-dark/editor_ie7.css +5 -0
  191. package/static/mapo/ckeditor/skins/moono-dark/editor_ie8.css +5 -0
  192. package/static/mapo/ckeditor/skins/moono-dark/editor_iequirks.css +5 -0
  193. package/static/mapo/ckeditor/skins/moono-dark/icons.png +0 -0
  194. package/static/mapo/ckeditor/skins/moono-dark/icons_hidpi.png +0 -0
  195. package/static/mapo/ckeditor/skins/moono-dark/images/arrow.png +0 -0
  196. package/static/mapo/ckeditor/skins/moono-dark/images/close.png +0 -0
  197. package/static/mapo/ckeditor/skins/moono-dark/images/hidpi/close.png +0 -0
  198. package/static/mapo/ckeditor/skins/moono-dark/images/hidpi/lock-open.png +0 -0
  199. package/static/mapo/ckeditor/skins/moono-dark/images/hidpi/lock.png +0 -0
  200. package/static/mapo/ckeditor/skins/moono-dark/images/hidpi/refresh.png +0 -0
  201. package/static/mapo/ckeditor/skins/moono-dark/images/lock-open.png +0 -0
  202. package/static/mapo/ckeditor/skins/moono-dark/images/lock.png +0 -0
  203. package/static/mapo/ckeditor/skins/moono-dark/images/refresh.png +0 -0
  204. package/static/mapo/ckeditor/skins/moono-dark/readme.md +51 -0
  205. package/static/mapo/ckeditor/skins/moono-dark/skin.js +5 -0
  206. package/static/mapo/tinymce-skins/mapo-dark/content.inline.min.css +7 -0
  207. package/static/mapo/tinymce-skins/mapo-dark/content.min.css +7 -0
  208. package/static/mapo/tinymce-skins/mapo-dark/content.mobile.min.css +7 -0
  209. package/static/mapo/tinymce-skins/mapo-dark/skin.min.css +7 -0
  210. package/static/mapo/tinymce-skins/mapo-dark/skin.mobile.min.css +7 -0
  211. package/static/mapo/tinymce-skins/mapo-light/content.inline.min.css +7 -0
  212. package/static/mapo/tinymce-skins/mapo-light/content.min.css +7 -0
  213. package/static/mapo/tinymce-skins/mapo-light/content.mobile.min.css +7 -0
  214. package/static/mapo/tinymce-skins/mapo-light/skin.min.css +7 -0
  215. package/static/mapo/tinymce-skins/mapo-light/skin.mobile.min.css +7 -0
  216. package/translations/en-US.js +177 -0
  217. package/translations/it-IT.js +180 -0
  218. package/LICENSE.md +0 -20
  219. package/components/Detail/DetailField.vue +0 -132
  220. package/components/Detail/defaults.js +0 -55
  221. package/components/fields/M2mField.vue +0 -95
  222. package/components/fields/MediaField.vue +0 -195
  223. package/components/fields/MediaM2mField.vue +0 -238
  224. package/components/fields/TinyMce/TinyMce.vue +0 -180
  225. package/components/fields/TinyMce/defaults.js +0 -55
  226. package/components/layout/Sidebar/SidebarFooter.vue +0 -70
  227. package/defaults.js +0 -29
  228. package/layouts/error.vue +0 -45
  229. /package/components/{fields/TinyMce → Form/fields/wygEditor}/utils/events.js +0 -0
  230. /package/components/{fields/TinyMce/utils/script.injector.js → Form/fields/wygEditor/utils/tinymce.injector.js} +0 -0
  231. /package/static/{favicon.ico → mapo/favicon.ico} +0 -0
@@ -0,0 +1,177 @@
1
+ export default {
2
+ mapo: {
3
+ // Generics
4
+ cancel: "Cancel",
5
+ save: "Save",
6
+ apply: "Apply",
7
+ confirm: "Confirm",
8
+ ok: "OK",
9
+ close: "Close",
10
+ edit: "Edit",
11
+ delete: "Delete",
12
+ add: "Add",
13
+ remove: "Remove",
14
+ clear: "Clear",
15
+ expand: "Expand",
16
+ collapse: "Collapse",
17
+ search: "Search...",
18
+ create: "Create",
19
+ createContinue: "Create and continue",
20
+ saveContinue: "Save and continue",
21
+ back: "Back",
22
+ genericError: "Something whent bad, please try again later...",
23
+ saveSuccess: "Item saved succesfully!",
24
+ createSuccess: "Item succesfully created!",
25
+ confirmDelete: "Are you sure you want to delete this item?",
26
+ unsavedData: "Exit page?",
27
+ confirmLeaveChanges: "Changes you made may not be saved.",
28
+ fetchingData: "Fetching data...",
29
+ login: "Login",
30
+ loginError: "Cannot login right now. Try again later.",
31
+ logout: "Logout",
32
+ // Elements
33
+ name: "Name",
34
+ description: "Description",
35
+ mime: "MIME Type",
36
+ fileName: "File name",
37
+ folder: "Folder",
38
+ created: "Created at",
39
+ size: "Size",
40
+ altTag: "Alt Tag",
41
+ titleTag: "Title Tag",
42
+ linkedModels: "Linked Models",
43
+ searchLocation: "Search a location",
44
+ showPreview: "Show preview",
45
+ latitude: "Latitude",
46
+ longitude: "Longitude",
47
+ pointName: "Point name",
48
+
49
+ // pages/index.vue
50
+ index: {
51
+ welcomeMessage:
52
+ "Congratulations!! 🥳 You successfully installed Mapo!",
53
+ },
54
+
55
+ //errors
56
+ error: {
57
+ searchError: "Error during search",
58
+ },
59
+
60
+ // ConfirmDialog.vue
61
+ confirmDialog: {
62
+ areYouSure: "Are you sure of what you are doing?",
63
+ },
64
+ // DropArea.vue
65
+ dropArea: {
66
+ dropOrClick: "Drop your file(s) here, or click to select them.",
67
+ onlyOneFile: "Only one file can be uploaded at a time...",
68
+ },
69
+
70
+ // Form/fields/MediaField.vue
71
+ mediaField: {
72
+ confirmRemove: "Are you sure to want to remove this media?",
73
+ },
74
+ // Form/fields/MediaM2mField.vue
75
+ mediaM2MField: {
76
+ mediaCarousel: "Media Carousel",
77
+ editSelection: "Edit selection",
78
+ },
79
+ // Form/fields/Repeater.vue
80
+ repeater: {
81
+ addHere: "Add here",
82
+ selectTemplate: "Select template",
83
+ item: "Item {numberItem}",
84
+ },
85
+ // Form/fields/SeoPreview.vue
86
+ seoPreview: {
87
+ title: "It was the best of times, it was the blurst of times, it was the ...",
88
+ description:
89
+ "This is an example description that will get replaced when you start typing. Make sure to keep descriptions mobile-friendly and keyword-rich!",
90
+ },
91
+
92
+ // List/List.vue
93
+ list: {
94
+ allSelected: "All items selected",
95
+ NSelected: "{numberItems} items selected",
96
+ selectAll: "Select all",
97
+ },
98
+ // List/ListActions.vue
99
+ listActions: {
100
+ groupActions: "Group actions",
101
+ permanentDelete: "Permanent delete",
102
+ selectionRequired: "You need to select at least one item.",
103
+ },
104
+ // List/ListFilters.vue
105
+ listFilters: { filter: "Filter" },
106
+ // List/ListHead.vue
107
+ listHead: { addNew: "Add new" },
108
+ // List/ListQuickEdit.vue
109
+ listQuickEdit: { badInput: "Bad input, correct wrong fields." },
110
+ // List/ListTable.vue
111
+ listTable: {
112
+ quickAdd: "Quick Add",
113
+ toggleOrder: "Toggle reordering",
114
+ errorOrder: "Reorder failed",
115
+ },
116
+ // MenuManager/MenuNodeEditor.vue
117
+ menuNodeEditor: {
118
+ editNode: "Editing",
119
+ title: "Title",
120
+ linkTypeLabel: "Link type",
121
+ styleLabel: "Style",
122
+ openInNewTabLabel: "Open in a new tab",
123
+ relContentTypeLabel: "Type of page",
124
+ relPageIdLabel: "Page",
125
+ staticLabel: "Static Url",
126
+ relational: "Relational",
127
+ static: "Static",
128
+ },
129
+ // MenuManager/MenuManager.vue
130
+ menuManager: {
131
+ noSelectedNode: "Select a node to edit or create a new one."
132
+ },
133
+ // MenuManager/MenuTreeview.vue
134
+ menuTreeview:{
135
+ newNode: "Create node",
136
+ noRootNodes: "No nodes here. Create a new one!",
137
+ areYouSureDelete: "Are you sure to delete current node and all it's childs ?"
138
+ },
139
+ mediaEditor: {
140
+ changeFile: "Change File",
141
+ maintainOldUrl: "Maintain old URL",
142
+ confirmDelete: "Are you sure you want to delete this media?",
143
+ details: "Details",
144
+ },
145
+ // MediaManager/MediaFolders.vue
146
+ mediaFolders: {
147
+ goBack: "Go back",
148
+ noFolders: "No folders here... Create a new one!",
149
+ newFolder: "Add new folder",
150
+ imageFolder: "All images",
151
+ videoFolder: "All videos",
152
+ docFolder: "All documents",
153
+ audioFolder: "All audio",
154
+ editFolder: "Edit folder",
155
+ folderName: "Folder name",
156
+ confirmDelete:
157
+ "Are you sure to delele this folder and all its content?",
158
+ },
159
+ // MediaManager/MediaGallery.vue
160
+ mediaGallery: {
161
+ noMediaFound: "No media found...",
162
+ selectAll: "Select page",
163
+ deselectAll: "Deselect page",
164
+ selectedAssets: "selected assets",
165
+ deleteSelected: "You are going to delete {number} assets. Do you want to continue?",
166
+ deleteSuccess: "{number} assets deleted!"
167
+ },
168
+ // MediaManager/MediaManager.vue
169
+ mediaManager: {
170
+ gallery: "Gallery",
171
+ uploader: "Uploader",
172
+ fileInfo: "File info succesfully updated",
173
+ },
174
+ // MediaManager/MediaUploader.vue
175
+ mediaUploader: { optimizingFiles: "Optimizing files..", uploadingFiles: "Uploading files..", success: "{numberFiles} files succesfully uploaded", tooLarge: "Warning! Optimize before upload!" },
176
+ },
177
+ };
@@ -0,0 +1,180 @@
1
+ export default {
2
+ mapo: {
3
+ // Generics
4
+ cancel: "Annulla",
5
+ save: "Salva",
6
+ apply: "Applica",
7
+ confirm: "Conferma",
8
+ ok: "OK",
9
+ close: "Chiudi",
10
+ edit: "Modifica",
11
+ delete: "Elimina",
12
+ add: "Aggiungi",
13
+ remove: "Rimuovi",
14
+ clear: "Rimuovi",
15
+ expand: "Espandi",
16
+ collapse: "Comprimi",
17
+ search: "Cerca...",
18
+ create: "Crea",
19
+ createContinue: "Crea e continua",
20
+ saveContinue: "Salva e continua",
21
+ back: "Indietro",
22
+ genericError: "Qualcosa è andato storto, riprova più tardi...",
23
+ saveSuccess: "Elemento salvato con successo!",
24
+ createSuccess: "Elemento creato con successo!",
25
+ confirmDelete: "Vuoi veramente eliminare questo elemento?",
26
+ unsavedData: "Uscire dalla pagina?",
27
+ confirmLeaveChanges: "I dati non sono ancora stati salvati.",
28
+ fetchingData: "Caricamento in corso...",
29
+ login: "Login",
30
+ loginError:
31
+ "Impossibile effettuare il login in questo momento. Riprova più tardi.",
32
+ logout: "Esci",
33
+ // Elements
34
+ name: "Nome",
35
+ description: "Descrizione",
36
+ mime: "Tipo MIME",
37
+ fileName: "Nome File",
38
+ folder: "Cartella",
39
+ created: "Creato il",
40
+ size: "Dimensioni",
41
+ altTag: "Alt Tag",
42
+ titleTag: "Title Tag",
43
+ linkedModels: "Modelli collegati",
44
+ searchLocation: "Cerca un luogo",
45
+ showPreview: "Mostra anteprima",
46
+ latitude: "Latitudine",
47
+ longitude: "Longitudine",
48
+ pointName: "Nome punto",
49
+
50
+ // pages/index.vue
51
+ index: {
52
+ welcomeMessage:
53
+ "Congratulazioni!! 🥳 Mapo è stato installato correttamente!",
54
+ },
55
+
56
+ //errors
57
+ error: {
58
+ searchError: "Errore durante la ricerca",
59
+ },
60
+
61
+ // ConfirmDialog.vue
62
+ confirmDialog: {
63
+ areYouSure: "Sei sicuro di ciò che vuoi fare?",
64
+ },
65
+ // DropArea.vue
66
+ dropArea: {
67
+ dropOrClick:
68
+ "Trascina qui i tuoi file, o clicca per selezionarne uno",
69
+ onlyOneFile: "È possibile caricare un solo file alla volta...",
70
+ },
71
+
72
+ // Form/fields/MediaField.vue
73
+ mediaField: { confirmRemove: "Vuoi veramente rimuovere questo media?" },
74
+ // Form/fields/MediaM2mField.vue
75
+ mediaM2MField: {
76
+ mediaCarousel: "Galleria Media",
77
+ editSelection: "Modifica selezione",
78
+ },
79
+ // Form/fields/Repeater.vue
80
+ repeater: {
81
+ addHere: "Aggiungi qui",
82
+ selectTemplate: "Seleziona template",
83
+ item: "Elemento n.{numberItem}",
84
+ },
85
+ // Form/fields/SeoPreview.vue
86
+ seoPreview: {
87
+ title: "Lorem ipsum dolor sit amet, consectetur adipiscing elit.",
88
+ description:
89
+ "Questa è una descrizione di esempio che verrà sostituita non appena inizierai a compilare i campi. Assicurati che le descrizioni siano mobile-friendly e keyword-rich!",
90
+ },
91
+
92
+ // List/List.vue
93
+ list: {
94
+ allSelected: "Tutti gli elementi selezionati",
95
+ NSelected: "{numberItems} elementi selezionati",
96
+ selectAll: "Seleziona tutti",
97
+ },
98
+ // List/ListActions.vue
99
+ listActions: {
100
+ groupActions: "Azioni di gruppo",
101
+ permanentDelete: "Eliminazione permanente",
102
+ selectionRequired: "Devi selezionare almeno un elemento",
103
+ },
104
+ // List/ListFilters.vue
105
+ listFilters: { filter: "Filtra" },
106
+ // List/ListHead.vue
107
+ listHead: { addNew: "Aggiungi nuovo" },
108
+ // List/ListQuickEdit.vue
109
+ listQuickEdit: {
110
+ badInput: "Alcuni campi sono compilati in modo errato.",
111
+ },
112
+ // List/ListTable.vue
113
+ listTable: {
114
+ quickAdd: "Aggiunta veloce",
115
+ toggleOrder: "Attiva/Disattiva riordinamento elementi",
116
+ errorOrder: "Riordinamento fallito",
117
+ },
118
+ // MenuManager/MenuNodeEditor.vue
119
+ menuNodeEditor: {
120
+ editNode: "Nodo",
121
+ title: "Titolo",
122
+ linkTypeLabel: "Tipo di link",
123
+ styleLabel: "Stile",
124
+ openInNewTabLabel: "Apri in una nuova finestra",
125
+ relContentTypeLabel: "Tipo di pagina",
126
+ relPageIdLabel: "Pagina",
127
+ staticLabel: "Url Statica",
128
+ relational: "Relazionale",
129
+ static: "Statico",
130
+ },
131
+ // MenuManager/MenuManager.vue
132
+ menuManager: {
133
+ noSelectedNode: "Seleziona un nodo o creane uno nuovo."
134
+ },
135
+ // MenuManager/MenuTreeview.vue
136
+ menuTreeview:{
137
+ newNode: "Crea nodo",
138
+ noRootNodes: "Non c'è nessun nodo qui, creane uno nuovo!",
139
+ areYouSureDelete: "Sei sicuro di voler eliminare questo nodo e tutti i suoi discendenti?"
140
+ },
141
+ // MediaManager/MediaEditor.vue
142
+ mediaEditor: {
143
+ changeFile: "Cambia File",
144
+ maintainOldUrl: "Mantieni URL precedente",
145
+ confirmDelete: "Vuoi veramente eliminare questo media?",
146
+ details: "Dettagli",
147
+ },
148
+ // MediaManager/MediaFolders.vue
149
+ mediaFolders: {
150
+ goBack: "Torna indietro",
151
+ noFolders: "Non sono presenti cartelle... Creane una!",
152
+ newFolder: "Crea nuova cartella",
153
+ imageFolder: "Tutte le immagini",
154
+ videoFolder: "Tutti i video",
155
+ audioFolder: "Tutti gli audio",
156
+ docFolder: "Tutti i documenti",
157
+ editFolder: "Modifica cartella",
158
+ folderName: "Nome cartella",
159
+ confirmDelete:
160
+ "Vuoi veramente eliminare questa cartella e tutti i suoi contenuti?",
161
+ },
162
+ // MediaManager/MediaGallery.vue
163
+ mediaGallery: {
164
+ noMediaFound: "Nessun media individuato...",
165
+ selectAll: "Seleziona pagina",
166
+ deselectAll: "Deseleziona pagina",
167
+ selectedAssets: "elementi selezionati",
168
+ deleteSelected: "Stai per eliminare {number} elementi. Vuoi proseguire?",
169
+ deleteSuccess: "{number} elementi eliminati!"
170
+ },
171
+ // MediaManager/MediaManager.vue
172
+ mediaManager: {
173
+ gallery: "Galleria",
174
+ uploader: "Caricamento Media",
175
+ fileInfo: "File info succesfully updated",
176
+ },
177
+ // MediaManager/MediaUploader.vue
178
+ mediaUploader: { optimizingFiles: "Ottimizzazione dei file..", uploadingFiles: "Upload dei file..", success: "{numberFiles} file caricati", tooLarge: "Attenzione! Ottimizza prima di caricare!" },
179
+ },
180
+ };
package/LICENSE.md DELETED
@@ -1,20 +0,0 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) Lotrek 2021
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in
13
- all copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
@@ -1,132 +0,0 @@
1
- <template>
2
- <component :is="is" v-model="model" v-bind="fieldAttrs"></component>
3
- </template>
4
-
5
- <script>
6
- import TinyMce from "@mapomodule/uikit/components/fields/TinyMce/TinyMce.vue";
7
- import DateField from "@mapomodule/uikit/components/fields/DateField.vue";
8
- import M2mField from "@mapomodule/uikit/components/fields/M2mField.vue";
9
- import MediaM2mField from "@mapomodule/uikit/components/fields/MediaM2mField.vue";
10
- import MediaField from "@mapomodule/uikit/components/fields/MediaField.vue";
11
- import SeoPreview from "@mapomodule/uikit/components/fields/SeoPreview.vue";
12
-
13
-
14
- import { getPointed, setPointed } from "@mapomodule/utils/helpers/objHelpers";
15
- import defaults from "./defaults";
16
-
17
- /**
18
- * This is mainly an internal component. It is used by the [`DetailComponent`](/components/detail/Detail/) in order to render dinamic fields inside the main form.
19
- */
20
- export default {
21
- name: "DetailField",
22
- components: {
23
- TinyMce,
24
- DateField,
25
- M2mField,
26
- MediaM2mField,
27
- MediaField,
28
- SeoPreview
29
- },
30
-
31
- data() {
32
- return {
33
- model: null,
34
- defaultMap: defaults.mapping,
35
- defaultAttrs: defaults.props,
36
- defaultAccess: defaults.accessor
37
- };
38
- },
39
- props: {
40
- // V-model of the payload needed to edit the field value in realtime.
41
- value: {
42
- type: Object,
43
- required: true
44
- },
45
- // An object representing all the errors of all fields. This means that this component will find the error of its field following the dottedPath of the value in the error dict.
46
- errors: Object,
47
- // The main configuration that determines the rendering of the field. See [FieldConfiguration](/components/detail/Detail/#fieldconfiguration).
48
- conf: {
49
- // [`FieldConfiguration`](/components/detail/Detail/#fieldconfiguration)
50
- type: Object,
51
- required: true
52
- }
53
- },
54
- watch: {
55
- value: {
56
- deep: true,
57
- handler(val) {
58
- this.setModel(val);
59
- }
60
- },
61
- "conf.value"(newValue, oldValue) {
62
- if (newValue !== oldValue) {
63
- this.setModel();
64
- }
65
- },
66
- model(val) {
67
- const dump = { ...this.value };
68
- setPointed(
69
- dump,
70
- this.conf.value,
71
- this.accessor.set({ model: { ...this.value }, val })
72
- );
73
- // Fired when the v-model changes.
74
- // @arg Emits the entire payload modified.
75
- this.$emit("input", dump);
76
- }
77
- },
78
- methods: {
79
- setModel(val = this.value) {
80
- var model = this.accessor.get({
81
- model: { ...val },
82
- val: getPointed({ ...val }, this.conf.value)
83
- });
84
- if (val && JSON.stringify(this.model) !== JSON.stringify(model))
85
- this.model = model;
86
- }
87
- },
88
- computed: {
89
- accessor() {
90
- let func = function({ val }) {
91
- return val;
92
- };
93
- return {
94
- get: func,
95
- set: func,
96
- ...(this.defaultAccess[this.is] || {}),
97
- ...this.conf.accessor
98
- };
99
- },
100
- fieldAttrs() {
101
- return {
102
- label: this.label,
103
- errorMessages: getPointed(this.errors || {}, this.conf.value, []),
104
- ...(this.defaultAttrs[this.is] || {}),
105
- ...this.conf.attrs
106
- };
107
- },
108
- label() {
109
- if (this.conf.label !== undefined) {
110
- return this.conf.label;
111
- }
112
- const titleCase = string =>
113
- (string && string[0].toUpperCase() + string.slice(1).toLowerCase()) ||
114
- "";
115
- return titleCase(
116
- (this.conf.value || "")
117
- .replace(/^translations\.\w\w\./, "")
118
- .split(".")
119
- .join(" ")
120
- .replace(/_/, " ")
121
- );
122
- },
123
- is() {
124
- return (
125
- this.conf.is ||
126
- (this.conf.type && this.defaultMap[this.conf.type]) ||
127
- "v-text-field"
128
- );
129
- }
130
- }
131
- };
132
- </script>
@@ -1,55 +0,0 @@
1
- const mapping = {
2
- text: "v-text-field",
3
- select: "v-select",
4
- date: "date-field",
5
- textarea: "v-textarea",
6
- switch: "v-switch",
7
- slider: "v-slider",
8
- file: "v-file-input",
9
- editor: "tiny-mce",
10
- media: "media-field",
11
- m2m: "m2m-field",
12
- mediaList: "media-m2m-field",
13
- seoPreview: "seo-preview"
14
- }
15
-
16
- const props = {
17
- "v-text-field": {
18
- outlined: true
19
- },
20
- "v-textarea": {
21
- outlined: true
22
- },
23
- "date-field": {
24
- outlined: true
25
- },
26
- "v-select": {
27
- outlined: true,
28
- itemText: "text",
29
- itemValue: "value"
30
- },
31
- "v-switch": {
32
- inset: true,
33
- ripple: false
34
- }
35
- }
36
-
37
- const dateFunc = function ({ val }) {
38
- return val && new Date(val).toISOString().split("T")[0];
39
- };
40
-
41
- const accessor = {
42
- "v-date-picker": {
43
- get: dateFunc, set: dateFunc
44
- },
45
- "date-field": {
46
- get: dateFunc, set: dateFunc
47
- },
48
- "seo-preview": {
49
- get: ({ val }) => ({ title: "", permalink: "", description: "", ...val }),
50
- set: ({ val }) => ({ title: "", permalink: "", description: "", ...val })
51
- }
52
- }
53
- export default {
54
- mapping, props, accessor
55
- }
@@ -1,95 +0,0 @@
1
- <template>
2
- <div>
3
- <v-checkbox
4
- v-for="(option, index) in options"
5
- :key="index"
6
- :label="option[itemText]"
7
- :input-value="isSelected(option)"
8
- @change="changed($event, option)"
9
- >
10
- </v-checkbox>
11
- </div>
12
- </template>
13
-
14
- <script>
15
- /**
16
- * This component is made to simplify Many To Many associations. With this component you can modify an array selecting items from a list of checkboxes.
17
- */
18
-
19
- export default {
20
- name: "M2mField",
21
- data() {
22
- return {
23
- proxyItems: []
24
- };
25
- },
26
- props: {
27
- // V-model property. It is the array to be modified.
28
- value: {
29
- type: Array,
30
- required: true
31
- },
32
- // This is the array of options from which you can choose.
33
- items: {
34
- type: Array,
35
- default: () => []
36
- },
37
- itemText: {
38
- type: String,
39
- default: "text"
40
- },
41
- itemValue: {
42
- type: String,
43
- default: "*"
44
- },
45
- lookup: {
46
- type: String,
47
- default: "id"
48
- },
49
- endPoint: String,
50
- mapping: {
51
- type: Function,
52
- default: items => items
53
- }
54
- },
55
- computed: {
56
- hasKey() {
57
- return this.itemValue !== "*";
58
- },
59
- options() {
60
- return this.mapping(this.proxyItems);
61
- }
62
- },
63
- methods: {
64
- isSelected(option) {
65
- return !!(this.value || []).find(
66
- e => e[this.lookup] == option[this.lookup]
67
- );
68
- },
69
- changed(value, option) {
70
- let val = this.hasKey ? option[this.itemValue] : option;
71
- let newArr = [...(this.value || [])];
72
- if (value) {
73
- newArr.push(val);
74
- } else {
75
- let i = newArr.findIndex(e => e[this.lookup] == option[this.lookup]);
76
- i !== -1 && newArr.splice(i, 1);
77
- }
78
- this.$emit("input", newArr);
79
- }
80
- },
81
- watch: {
82
- items(val) {
83
- this.proxyItems = val;
84
- }
85
- },
86
- mounted() {
87
- if (this.endPoint && (!this.items || !this.items.length)) {
88
- this.$mapo.$api
89
- .crud(this.endPoint)
90
- .list()
91
- .then(res => (this.proxyItems = res));
92
- }
93
- }
94
- };
95
- </script>