@mapomodule/uikit 1.0.0-alpha.21 → 1.0.0-alpha.24

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 (47) hide show
  1. package/CHANGELOG.md +80 -0
  2. package/components/ConfirmDialog.vue +10 -14
  3. package/components/Detail/Detail.vue +246 -365
  4. package/components/DropArea.vue +17 -33
  5. package/components/Form/Form.vue +228 -0
  6. package/components/{Detail/DetailField.vue → Form/FormField.vue} +35 -15
  7. package/components/Form/FormGroup.vue +108 -0
  8. package/components/Form/FormTabs.vue +151 -0
  9. package/components/{Detail → Form}/defaults.js +0 -0
  10. package/components/{fields → Form/fields}/DateField.vue +3 -3
  11. package/components/{fields → Form/fields}/FileField.vue +0 -0
  12. package/components/{fields → Form/fields}/FksField.vue +2 -2
  13. package/components/{fields → Form/fields}/MediaField.vue +4 -5
  14. package/components/{fields → Form/fields}/MediaM2mField.vue +3 -3
  15. package/components/Form/fields/Repeater.vue +575 -0
  16. package/components/{fields → Form/fields}/SeoPreview.vue +10 -10
  17. package/components/{fields → Form/fields}/wygEditor/defaults.js +0 -0
  18. package/components/{fields → Form/fields}/wygEditor/utils/events.js +0 -0
  19. package/components/{fields → Form/fields}/wygEditor/utils/mapomedia.plugin.js +0 -0
  20. package/components/{fields → Form/fields}/wygEditor/utils/script.injector.js +0 -0
  21. package/components/{fields → Form/fields}/wygEditor/wygEditor.vue +0 -0
  22. package/components/LangSwitcher.vue +44 -0
  23. package/components/List/List.vue +14 -15
  24. package/components/List/ListActions.vue +5 -5
  25. package/components/List/ListFilters.vue +9 -2
  26. package/components/List/ListHead.vue +1 -1
  27. package/components/List/ListQuickEdit.vue +21 -104
  28. package/components/List/ListTable.vue +15 -18
  29. package/components/Login.vue +5 -4
  30. package/components/LogoutButton.vue +43 -28
  31. package/components/MediaManager/MediaEditor.vue +20 -18
  32. package/components/MediaManager/MediaFolders.vue +14 -19
  33. package/components/MediaManager/MediaGallery.vue +1 -1
  34. package/components/MediaManager/MediaManager.vue +22 -15
  35. package/components/MediaManager/MediaManagerDialog.vue +2 -1
  36. package/components/MediaManager/MediaUploader.vue +6 -7
  37. package/components/SnackBar.vue +2 -3
  38. package/components/layout/Sidebar/SidebarFooter.vue +6 -25
  39. package/components/layout/Sidebar/SidebarListItem.vue +2 -2
  40. package/components/layout/Sidebar/SidebarProfile.vue +2 -2
  41. package/defaults.js +70 -24
  42. package/module.js +12 -4
  43. package/package.json +4 -3
  44. package/pages/index.vue +1 -1
  45. package/translations/en-US.js +129 -0
  46. package/translations/it-IT.js +131 -0
  47. package/components/fields/Repeater.vue +0 -338
package/CHANGELOG.md CHANGED
@@ -3,6 +3,86 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [1.0.0-alpha.24](https://github.com/lotrekagency/mapo/compare/v1.0.0-alpha.23...v1.0.0-alpha.24) (2022-07-22)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **i18n:** use iso code for vuetify language code ([0683c78](https://github.com/lotrekagency/mapo/commit/0683c78ecf3f3e196b0fb6e7c8d007e20f12bf62))
12
+ * fixed login screen ([f925672](https://github.com/lotrekagency/mapo/commit/f92567288c07ae6162bfc14f2ac220aff193ad5f))
13
+ * **list:** pass selectionQuery to list actions ([7385daa](https://github.com/lotrekagency/mapo/commit/7385daaf6ef727123c966dec3747c1c18c54f73a))
14
+ * **listfilters:** added watch on list filters ([753f40e](https://github.com/lotrekagency/mapo/commit/753f40e7776935bc0f3e499c573868d5e7e0502d))
15
+
16
+
17
+ ### Features
18
+
19
+ * **i18:** handle i18n on images' alt title tags ([3fb3f62](https://github.com/lotrekagency/mapo/commit/3fb3f62ae045b6610c881f90e31f0b5a242ce46b))
20
+ * **i18n:** handle translations on meta router ([2e20afe](https://github.com/lotrekagency/mapo/commit/2e20afedd34b42adb7d9cc53235a7e469ae67e9d))
21
+ * added language switcher ([6995542](https://github.com/lotrekagency/mapo/commit/6995542228acc8c603d28b29edf1abee02f23404))
22
+ * refactored translations, added vuetify translations ([bd37682](https://github.com/lotrekagency/mapo/commit/bd376820ad05a00f49088b9585b7bb26371e09f8))
23
+ * **form:** added vShow on tabs and groups ([631e43f](https://github.com/lotrekagency/mapo/commit/631e43f10c7614e87a393a688fa1339092ef0cb7))
24
+ * **i18n:** i18n for detail and form fields ([74760b1](https://github.com/lotrekagency/mapo/commit/74760b1c72314df34f3bb7e5dbaf95037d9c40fe))
25
+ * **i18n:** i18n on sidebar and list components ([64fb9a1](https://github.com/lotrekagency/mapo/commit/64fb9a152836b5620f52b1a448dc00ecafcd9ea3))
26
+ * **i18n:** setup on generic and media components ([f38588f](https://github.com/lotrekagency/mapo/commit/f38588f56aedbf9466af5c40296e35bf2765d036))
27
+
28
+
29
+
30
+
31
+
32
+ # [1.0.0-alpha.23](https://github.com/lotrekagency/mapo/compare/v1.0.0-alpha.22...v1.0.0-alpha.23) (2022-05-04)
33
+
34
+
35
+ ### Bug Fixes
36
+
37
+ * **detail:** prevent rendering of fields until the model is fully loaded ([0421d79](https://github.com/lotrekagency/mapo/commit/0421d79ea1a1e15b37a5addfd7eebd0c83b23a96))
38
+ * **repeater:** better borders and padding for repeater lines ([07faf36](https://github.com/lotrekagency/mapo/commit/07faf36ac8d46c290cf12be41948f21a693e3da7))
39
+ * **seoPreview:** fix permalink preview to integrate the domain ([8bdd6a3](https://github.com/lotrekagency/mapo/commit/8bdd6a35ce9643206121d531ca07d083fe20c5b5))
40
+ * fix detail component not redirecting on save and continue action ([3ba4bb6](https://github.com/lotrekagency/mapo/commit/3ba4bb6457242e583ca43f42db070bde731b6c26))
41
+ * fix readonly fields in forms ([564a853](https://github.com/lotrekagency/mapo/commit/564a853f2c4d572cdb340d52b9801ad6d7f053d0))
42
+
43
+
44
+ ### Features
45
+
46
+ * **forms:** update style of group and tabs ([a8d902b](https://github.com/lotrekagency/mapo/commit/a8d902b2b586563d765316cb5912d26df8144eae))
47
+ * added maxHeight prop to repeater ([5adc02e](https://github.com/lotrekagency/mapo/commit/5adc02efb07d2ca61f7265ec1c4d0377cdb76837))
48
+
49
+
50
+ ### Performance Improvements
51
+
52
+ * **forms:** Decrease rendering time of form component, and all Components based on form ([22a191a](https://github.com/lotrekagency/mapo/commit/22a191a2f791a8dfe93336e53aec7cfbe3baa1f5))
53
+
54
+
55
+
56
+
57
+
58
+ # [1.0.0-alpha.22](https://github.com/lotrekagency/mapo/compare/v1.0.0-alpha.21...v1.0.0-alpha.22) (2022-05-01)
59
+
60
+
61
+ ### Bug Fixes
62
+
63
+ * fix detail component slot bindings ([c4367a3](https://github.com/lotrekagency/mapo/commit/c4367a38336570e550024340725bca6da2fd2a06))
64
+ * fix form fields components discovery ([3f4fb0b](https://github.com/lotrekagency/mapo/commit/3f4fb0b3a5dc570c125f99f225bd4e2e557c453a))
65
+ * fix language switch in repeater ([76d4b80](https://github.com/lotrekagency/mapo/commit/76d4b80ac66fd5344a4b0deb7576dfb1a16b8f89))
66
+ * fix missing funtions in confs. this is a bit hacky. better to find a better solution ([e3117cf](https://github.com/lotrekagency/mapo/commit/e3117cf6b25bffcb87aac148d670e676869ddeda))
67
+ * fix repeater commands showing only on sidebar hover ([82de95d](https://github.com/lotrekagency/mapo/commit/82de95d66aa2edc85860c856a8288f468d8ee014))
68
+
69
+
70
+ ### Features
71
+
72
+ * added a collapsed Label prop to define it in the repeater ([ec26fcb](https://github.com/lotrekagency/mapo/commit/ec26fcbf69c43e04cc9791ca7e5c88779c70372e))
73
+ * added a vShow callback prop to conditionally display a field ([c94a280](https://github.com/lotrekagency/mapo/commit/c94a280d16114a8b7480f5e22a81db46e8cc34d7))
74
+ * added collapsed mode to repeaters ([e99e2cd](https://github.com/lotrekagency/mapo/commit/e99e2cdc15c3f24c5b850b3e6ea1fc53685baccb))
75
+ * added onChange callback to fields ([f19a994](https://github.com/lotrekagency/mapo/commit/f19a9944aa7f6f5abacb70cdc3936c9db8df4176))
76
+ * big code refactor and improovements to fields management ([a818d8b](https://github.com/lotrekagency/mapo/commit/a818d8b891dbb4892f50267d6355c41297e2c6c6))
77
+ * Form component has now many more slots ([5db0da8](https://github.com/lotrekagency/mapo/commit/5db0da85d5adc6b19370dc1fdc06542048cc36ac))
78
+ * move vShow check in form component and add vVisible check ([c219cec](https://github.com/lotrekagency/mapo/commit/c219cec33b00d1b605522772f7ed57eed7c37fee))
79
+ * **form:** added tabs configuration to forms ([387e521](https://github.com/lotrekagency/mapo/commit/387e521422d0e8ac35817abdf36d927011c17798))
80
+ * **repeater:** now repeater with templates has more precise slots ([67eb56f](https://github.com/lotrekagency/mapo/commit/67eb56f66bda6f7ba6c85c5017bc4c216263e56a))
81
+
82
+
83
+
84
+
85
+
6
86
  # [1.0.0-alpha.21](https://github.com/lotrekagency/mapo/compare/v1.0.0-alpha.20...v1.0.0-alpha.21) (2022-04-25)
7
87
 
8
88
  **Note:** Version bump only for package @mapomodule/uikit
@@ -15,15 +15,15 @@
15
15
  </v-dialog>
16
16
  </div>
17
17
  </template>
18
- <script>
19
18
 
19
+ <script>
20
20
  /**
21
- * This component is embedded in the default layout.
21
+ * This component is embedded in the default layout.
22
22
  * It's a dynamic dialog which is used to ask the user for confirmation before performing an operation.<br>
23
23
  * For example: `Do you really want to delete the content 'abcd'?` <br><br>
24
24
  * It can be globally accessed with [this.$mapo.$confirm](/core/#confirm)
25
- *
26
- */
25
+ *
26
+ */
27
27
  export default {
28
28
  name: "ConfirmDialog",
29
29
  data() {
@@ -32,10 +32,10 @@ export default {
32
32
  dialog: false,
33
33
  optionsBk: null,
34
34
  options: {
35
- title: this.title,
36
- question: this.question,
37
- dismissButton: this.dismissButton,
38
- approveButton: this.approveButton,
35
+ title: this.title || this.$t("mapo.confirm"),
36
+ question: this.question || this.$t("mapo.confirmDialog.areYouSure"),
37
+ dismissButton: this.dismissButton || { text: this.$t("mapo.cancel"), attrs: { text: true } },
38
+ approveButton: this.approveButton || { text: this.$t("mapo.ok"), attrs: { color: "primary", text: true } },
39
39
  attrs: { ...this.$attrs }
40
40
  },
41
41
  on: {
@@ -56,35 +56,31 @@ export default {
56
56
  // The text in the body of the dialog.
57
57
  question: {
58
58
  type: String,
59
- default: "Are you sure of what you are doing?"
60
59
  },
61
60
  // The title of the dialog.
62
61
  title: {
63
62
  type: String,
64
- default: "Confirm"
65
63
  },
66
64
  // The text plus props passed to the dismiss Button.
67
65
  dismissButton: {
68
66
  // `{ text: String, attrs: Object }`
69
67
  type: Object,
70
- default: () => ({ text: "Cancel", attrs: { text: true } })
71
68
  },
72
69
  // The text plus props passed to the approve Button.
73
70
  approveButton: {
74
71
  // `{ text: String, attrs: Object }`
75
72
  type: Object,
76
- default: () => ({ text: "Ok", attrs: { color: "primary", text: true } })
77
73
  }
78
74
  },
79
75
  computed: {
80
76
  approveTxt() {
81
- return this.options.approveButton?.text || "Ok";
77
+ return this.options.approveButton?.text || this.$t("mapo.ok");
82
78
  },
83
79
  approveAttrs() {
84
80
  return this.options.approveButton?.attrs || {};
85
81
  },
86
82
  dismissTxt() {
87
- return this.options.dismissButton?.text || "Cancel";
83
+ return this.options.dismissButton?.text || this.$t("mapo.cancel");
88
84
  },
89
85
  dismissAttrs() {
90
86
  return this.options.dismissButton?.attrs || {};