@conduction/nextcloud-vue 2.70.0 → 2.71.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 (50) hide show
  1. package/dist/esm/components/CnAppRoot/CnAppRoot.vue2.js +151 -13
  2. package/dist/esm/components/CnAppRoot/CnAppRoot.vue2.js.map +1 -1
  3. package/dist/esm/components/CnAppRoot/CnAppRoot.vue3.js +3 -1
  4. package/dist/esm/components/CnAppRoot/CnAppRoot.vue3.js.map +1 -1
  5. package/dist/esm/components/CnDashboardPage/CnDashboardPage.vue2.js.map +1 -1
  6. package/dist/esm/components/CnDashboardPage/CnDashboardPage.vue3.js +38 -42
  7. package/dist/esm/components/CnDashboardPage/CnDashboardPage.vue3.js.map +1 -1
  8. package/dist/esm/components/CnFormDialog/CnFormDialog.vue2.js +29 -2
  9. package/dist/esm/components/CnFormDialog/CnFormDialog.vue2.js.map +1 -1
  10. package/dist/esm/components/CnFormDialog/CnFormDialog.vue3.js +71 -34
  11. package/dist/esm/components/CnFormDialog/CnFormDialog.vue3.js.map +1 -1
  12. package/dist/esm/components/CnIndexPage/CnIndexPage.vue2.js +22 -0
  13. package/dist/esm/components/CnIndexPage/CnIndexPage.vue2.js.map +1 -1
  14. package/dist/esm/components/CnIndexPage/CnIndexPage.vue3.js +1 -1
  15. package/dist/esm/components/CnIndexPage/CnIndexPage.vue3.js.map +1 -1
  16. package/dist/esm/components/CnObjectSidebar/CnNotesTab.vue2.js +1 -1
  17. package/dist/esm/components/CnObjectSidebar/CnNotesTab.vue2.js.map +1 -1
  18. package/dist/esm/components/CnObjectSidebar/CnNotesTab.vue3.js.map +1 -1
  19. package/dist/esm/components/CnSetupWizard/CnSetupWizard.vue2.js.map +1 -1
  20. package/dist/esm/components/CnSetupWizard/CnSetupWizard.vue3.js +46 -32
  21. package/dist/esm/components/CnSetupWizard/CnSetupWizard.vue3.js.map +1 -1
  22. package/dist/esm/components/CnWalkthrough/CnWalkthrough.vue2.js +30 -9
  23. package/dist/esm/components/CnWalkthrough/CnWalkthrough.vue2.js.map +1 -1
  24. package/dist/esm/components/CnWalkthrough/CnWalkthrough.vue3.js.map +1 -1
  25. package/dist/esm/composables/useWalkthrough.js +11 -3
  26. package/dist/esm/composables/useWalkthrough.js.map +1 -1
  27. package/dist/esm/nextcloud-vue.css +53 -0
  28. package/dist/esm/utils/columnFilters.js +54 -4
  29. package/dist/esm/utils/columnFilters.js.map +1 -1
  30. package/dist/esm/utils/userAutocomplete.js +69 -3
  31. package/dist/esm/utils/userAutocomplete.js.map +1 -1
  32. package/dist/esm/utils/validateManifestV2.compiled.js +2 -2
  33. package/dist/esm/utils/validateManifestV2.compiled.js.map +1 -1
  34. package/dist/nextcloud-vue.cjs.js +615 -235
  35. package/dist/nextcloud-vue.cjs.js.map +2 -2
  36. package/dist/nextcloud-vue.css +53 -0
  37. package/package.json +1 -1
  38. package/src/components/CnAppRoot/CnAppRoot.vue +153 -13
  39. package/src/components/CnDashboardPage/CnDashboardPage.vue +20 -18
  40. package/src/components/CnFormDialog/CnFormDialog.vue +62 -2
  41. package/src/components/CnIndexPage/CnIndexPage.vue +23 -1
  42. package/src/components/CnObjectSidebar/CnNotesTab.vue +1 -1
  43. package/src/components/CnSetupWizard/CnSetupWizard.vue +7 -0
  44. package/src/components/CnWalkthrough/CnWalkthrough.vue +30 -9
  45. package/src/composables/useWalkthrough.js +11 -3
  46. package/src/css/dashboard.css +44 -0
  47. package/src/schemas/app-manifest-v2.schema.json +2 -1
  48. package/src/utils/columnFilters.js +54 -4
  49. package/src/utils/userAutocomplete.js +68 -2
  50. package/src/utils/validateManifestV2.compiled.js +2 -2
@@ -1936,6 +1936,26 @@ var script = {
1936
1936
  * @param {object} field The field definition
1937
1937
  * @return {boolean}
1938
1938
  */
1939
+ /**
1940
+ * The text a select option shows: its label, else a display name, a
1941
+ * name or the id. A plain string option (a tag) is its own text.
1942
+ *
1943
+ * @spec openspec/changes/audit-round-lib-fixes/specs/schema-utilities/spec.md
1944
+ * @param {object|string} option The option (slot props).
1945
+ * @return {string} The text.
1946
+ */
1947
+ optionText(option) {
1948
+ if (option === null || option === undefined) {
1949
+ return ''
1950
+ }
1951
+ if (typeof option !== 'object') {
1952
+ return String(option)
1953
+ }
1954
+ const text = [option.label, option.displayName, option.name, option.id]
1955
+ .find((v) => v !== undefined && v !== null && v !== '');
1956
+ return text === undefined ? '' : String(text)
1957
+ },
1958
+
1939
1959
  isUserField(field) {
1940
1960
  return !!(field && field.userPicker && !field.userPicker.multiple)
1941
1961
  },
@@ -3003,8 +3023,15 @@ var script = {
3003
3023
  if (this.isIdPickerField(field)) {
3004
3024
  // Reference / user fields store the chosen id (UUID / UID),
3005
3025
  // not the full option. Cache its label so the selection displays.
3026
+ // A user option can carry only `displayName` (NcSelectUsers' own
3027
+ // shape), and without that fallback the chip showed the uid.
3006
3028
  if (option && option.id) {
3007
- this.referenceLabels = { ...this.referenceLabels, [option.id]: option.label || String(option.id) };
3029
+ const name = option.label || option.displayName || this.referenceLabels[option.id];
3030
+ if (name) {
3031
+ this.referenceLabels = { ...this.referenceLabels, [option.id]: name };
3032
+ } else if (this.isUserField(field)) {
3033
+ this.resolveUserLabel(option.id);
3034
+ }
3008
3035
  }
3009
3036
  this.updateField(field.key, option ? option.id : null);
3010
3037
  // Reference options are label-only ({id,label}) — pass the id so
@@ -3071,7 +3098,7 @@ var script = {
3071
3098
  const labels = {};
3072
3099
  for (const o of list) {
3073
3100
  if (o && o.id) {
3074
- labels[o.id] = o.label || String(o.id);
3101
+ labels[o.id] = o.label || o.displayName || this.referenceLabels[o.id] || String(o.id);
3075
3102
  }
3076
3103
  }
3077
3104
  if (Object.keys(labels).length > 0) {