@conduction/nextcloud-vue 2.169.0 → 2.170.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 (46) hide show
  1. package/dist/esm/components/CnCellRenderer/CnCellRenderer.vue.js +1 -1
  2. package/dist/esm/components/CnCellRenderer/CnCellRenderer.vue2.js +7 -2
  3. package/dist/esm/components/CnCellRenderer/CnCellRenderer.vue2.js.map +1 -1
  4. package/dist/esm/components/CnCellRenderer/CnCellRenderer.vue3.js.map +1 -1
  5. package/dist/esm/components/CnDashboardGrid/CnDashboardGrid.vue.js +1 -1
  6. package/dist/esm/components/CnDashboardGrid/CnDashboardGrid.vue2.js +88 -0
  7. package/dist/esm/components/CnDashboardGrid/CnDashboardGrid.vue2.js.map +1 -1
  8. package/dist/esm/components/CnDashboardGrid/CnDashboardGrid.vue3.js +4 -3
  9. package/dist/esm/components/CnDashboardGrid/CnDashboardGrid.vue3.js.map +1 -1
  10. package/dist/esm/components/CnDashboardPage/CnDashboardPage.vue.js +1 -1
  11. package/dist/esm/components/CnDashboardPage/CnDashboardPage.vue2.js +46 -3
  12. package/dist/esm/components/CnDashboardPage/CnDashboardPage.vue2.js.map +1 -1
  13. package/dist/esm/components/CnDashboardPage/CnDashboardPage.vue3.js +2 -1
  14. package/dist/esm/components/CnDashboardPage/CnDashboardPage.vue3.js.map +1 -1
  15. package/dist/esm/components/CnDetailWidgetHost/CnDetailWidgetHost.vue.js +1 -1
  16. package/dist/esm/components/CnDetailWidgetHost/CnDetailWidgetHost.vue2.js +9 -3
  17. package/dist/esm/components/CnDetailWidgetHost/CnDetailWidgetHost.vue2.js.map +1 -1
  18. package/dist/esm/components/CnDetailWidgetHost/CnDetailWidgetHost.vue3.js.map +1 -1
  19. package/dist/esm/components/CnObjectPartiesWidget/CnObjectPartiesWidget.vue.js +1 -1
  20. package/dist/esm/components/CnObjectPartiesWidget/CnObjectPartiesWidget.vue2.js +13 -6
  21. package/dist/esm/components/CnObjectPartiesWidget/CnObjectPartiesWidget.vue2.js.map +1 -1
  22. package/dist/esm/components/CnObjectPartiesWidget/CnObjectPartiesWidget.vue3.js.map +1 -1
  23. package/dist/esm/integrations/builtin/contacts/CnContactsTab.vue.js +1 -1
  24. package/dist/esm/integrations/builtin/contacts/CnContactsTab.vue2.js +14 -3
  25. package/dist/esm/integrations/builtin/contacts/CnContactsTab.vue2.js.map +1 -1
  26. package/dist/esm/integrations/builtin/contacts/CnContactsTab.vue3.js.map +1 -1
  27. package/dist/esm/library-style.js +1 -1
  28. package/dist/esm/nextcloud-vue.css +243 -201
  29. package/dist/esm/utils/objectParties.js +50 -5
  30. package/dist/esm/utils/objectParties.js.map +1 -1
  31. package/dist/nextcloud-vue.cjs.js +237 -30
  32. package/dist/nextcloud-vue.cjs.js.map +2 -2
  33. package/dist/nextcloud-vue.css +243 -201
  34. package/package.json +1 -1
  35. package/src/components/CnCellRenderer/CnCellRenderer.vue +7 -2
  36. package/src/components/CnDashboardGrid/CnDashboardGrid.md +1 -0
  37. package/src/components/CnDashboardGrid/CnDashboardGrid.vue +100 -2
  38. package/src/components/CnDashboardPage/CnDashboardPage.vue +47 -3
  39. package/src/components/CnDetailWidgetHost/CnDetailWidgetHost.vue +9 -3
  40. package/src/components/CnObjectPartiesWidget/CnObjectPartiesWidget.vue +14 -5
  41. package/src/css/dialog.css +7 -5
  42. package/src/css/look-board-index.css +21 -2
  43. package/src/css/look-board.css +12 -0
  44. package/src/integrations/builtin/contacts/CnContactsTab.vue +14 -3
  45. package/src/integrations/builtin/contacts/__tests__/CnContactsTabBoardRows.spec.js +17 -2
  46. package/src/utils/objectParties.js +49 -4
@@ -2,7 +2,7 @@ import script from './CnDetailWidgetHost.vue2.js';
2
2
  import { render } from './CnDetailWidgetHost.vue3.js';
3
3
 
4
4
  script.render = render;
5
- script.__scopeId = "data-v-4cffb6fb";
5
+ script.__scopeId = "data-v-66a088f2";
6
6
  const __sfc_main = script;
7
7
 
8
8
  export { __sfc_main as default };
@@ -964,11 +964,13 @@ var script = {
964
964
  },
965
965
 
966
966
  /**
967
- * An integration widget's `labels` (prop name to text), translated in
968
- * the host's language: a leaf cannot translate the host app's words.
967
+ * An integration widget's `labels` (prop name to text, or to a map of
968
+ * texts), translated in the host's language: a leaf cannot translate
969
+ * the host app's words.
969
970
  *
970
- * @return {object} Prop name to translated text.
971
+ * @return {object} Prop name to translated text or map.
971
972
  * @spec openspec/changes/leaf-labels-in-the-host-language/specs/leaf-labels-in-the-host-language/spec.md#requirement-an-integration-widget-gives-its-leaf-labels-in-the-hosts-language
973
+ * @spec openspec/changes/parties-role-line-from-the-role-record/specs/record-widgets/spec.md#requirement-a-board-contact-row-can-lead-with-the-word-for-its-kind
972
974
  */
973
975
  leafLabels() {
974
976
  const labels = this.widget?.labels;
@@ -979,6 +981,10 @@ var script = {
979
981
  for (const [prop, text] of Object.entries(labels)) {
980
982
  if (typeof text === 'string') {
981
983
  out[prop] = this.translateLabel(text);
984
+ } else if (text && typeof text === 'object' && !Array.isArray(text)) {
985
+ out[prop] = Object.fromEntries(Object.entries(text)
986
+ .filter(([, word]) => typeof word === 'string')
987
+ .map(([key, word]) => [key, this.translateLabel(word)]));
982
988
  }
983
989
  }
984
990
  return out