@conduction/nextcloud-vue 2.171.0 → 2.173.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 (76) hide show
  1. package/dist/esm/components/CnActionDialog/CnActionDialog.vue.js +1 -1
  2. package/dist/esm/components/CnActionDialog/CnActionDialog.vue2.js.map +1 -1
  3. package/dist/esm/components/CnActionDialog/CnActionDialog.vue3.js.map +1 -1
  4. package/dist/esm/components/CnAiCompanion/CnAiChatWidget.vue2.js +3 -2
  5. package/dist/esm/components/CnAiCompanion/CnAiChatWidget.vue2.js.map +1 -1
  6. package/dist/esm/components/CnAiCompanion/CnAiChatWidget.vue3.js +2 -1
  7. package/dist/esm/components/CnAiCompanion/CnAiChatWidget.vue3.js.map +1 -1
  8. package/dist/esm/components/CnAiCompanion/CnAiCompanion.vue2.js +39 -0
  9. package/dist/esm/components/CnAiCompanion/CnAiCompanion.vue2.js.map +1 -1
  10. package/dist/esm/components/CnAiCompanion/CnAiCompanion.vue3.js.map +1 -1
  11. package/dist/esm/components/CnChecklistRunWidget/CnChecklistRunWidget.vue.js +1 -1
  12. package/dist/esm/components/CnChecklistRunWidget/CnChecklistRunWidget.vue2.js +22 -3
  13. package/dist/esm/components/CnChecklistRunWidget/CnChecklistRunWidget.vue2.js.map +1 -1
  14. package/dist/esm/components/CnChecklistRunWidget/CnChecklistRunWidget.vue3.js.map +1 -1
  15. package/dist/esm/components/CnDashboardGrid/CnDashboardGrid.vue.js +1 -1
  16. package/dist/esm/components/CnDashboardGrid/CnDashboardGrid.vue2.js.map +1 -1
  17. package/dist/esm/components/CnDashboardGrid/CnDashboardGrid.vue3.js.map +1 -1
  18. package/dist/esm/components/CnDeviceFramesWidget/CnDeviceFramesWidget.vue.js +1 -1
  19. package/dist/esm/components/CnDeviceFramesWidget/CnDeviceFramesWidget.vue2.js +75 -4
  20. package/dist/esm/components/CnDeviceFramesWidget/CnDeviceFramesWidget.vue2.js.map +1 -1
  21. package/dist/esm/components/CnDeviceFramesWidget/CnDeviceFramesWidget.vue3.js.map +1 -1
  22. package/dist/esm/components/CnFactsWidget/CnFactsWidget.vue.js +1 -1
  23. package/dist/esm/components/CnFactsWidget/CnFactsWidget.vue2.js +7 -3
  24. package/dist/esm/components/CnFactsWidget/CnFactsWidget.vue2.js.map +1 -1
  25. package/dist/esm/components/CnFactsWidget/CnFactsWidget.vue3.js.map +1 -1
  26. package/dist/esm/components/CnFilesBrowser/CnFilesBrowser.vue.js +1 -1
  27. package/dist/esm/components/CnFilesBrowser/CnFilesBrowser.vue2.js +34 -4
  28. package/dist/esm/components/CnFilesBrowser/CnFilesBrowser.vue2.js.map +1 -1
  29. package/dist/esm/components/CnFilesBrowser/CnFilesBrowser.vue3.js +42 -34
  30. package/dist/esm/components/CnFilesBrowser/CnFilesBrowser.vue3.js.map +1 -1
  31. package/dist/esm/components/CnFlowsPage/CnFlowBoard.vue.js +1 -1
  32. package/dist/esm/components/CnFlowsPage/CnFlowBoard.vue2.js +21 -6
  33. package/dist/esm/components/CnFlowsPage/CnFlowBoard.vue2.js.map +1 -1
  34. package/dist/esm/components/CnFlowsPage/CnFlowBoard.vue3.js.map +1 -1
  35. package/dist/esm/components/CnTreeView/CnTreeNode.vue.js +1 -1
  36. package/dist/esm/components/CnTreeView/CnTreeNode.vue2.js +54 -4
  37. package/dist/esm/components/CnTreeView/CnTreeNode.vue2.js.map +1 -1
  38. package/dist/esm/components/CnTreeView/CnTreeNode.vue3.js +32 -26
  39. package/dist/esm/components/CnTreeView/CnTreeNode.vue3.js.map +1 -1
  40. package/dist/esm/components/CnTreeView/CnTreeView.vue.js +1 -1
  41. package/dist/esm/components/CnTreeView/CnTreeView.vue2.js +28 -4
  42. package/dist/esm/components/CnTreeView/CnTreeView.vue2.js.map +1 -1
  43. package/dist/esm/components/CnTreeView/CnTreeView.vue3.js +4 -1
  44. package/dist/esm/components/CnTreeView/CnTreeView.vue3.js.map +1 -1
  45. package/dist/esm/composables/aiChatConfig.js +13 -1
  46. package/dist/esm/composables/aiChatConfig.js.map +1 -1
  47. package/dist/esm/composables/useAiChatStream.js +53 -1
  48. package/dist/esm/composables/useAiChatStream.js.map +1 -1
  49. package/dist/esm/library-style.js +1 -1
  50. package/dist/esm/nextcloud-vue.css +745 -403
  51. package/dist/esm/utils/builtInFormatters.js +19 -1
  52. package/dist/esm/utils/builtInFormatters.js.map +1 -1
  53. package/dist/nextcloud-vue.cjs.js +919 -569
  54. package/dist/nextcloud-vue.cjs.js.map +2 -2
  55. package/dist/nextcloud-vue.css +745 -403
  56. package/package.json +1 -1
  57. package/src/components/CnActionDialog/CnActionDialog.vue +4 -1
  58. package/src/components/CnAiCompanion/CnAiChatWidget.md +1 -0
  59. package/src/components/CnAiCompanion/CnAiChatWidget.vue +4 -2
  60. package/src/components/CnAiCompanion/CnAiCompanion.md +1 -0
  61. package/src/components/CnAiCompanion/CnAiCompanion.vue +39 -0
  62. package/src/components/CnChecklistRunWidget/CnChecklistRunWidget.vue +24 -3
  63. package/src/components/CnDashboardGrid/CnDashboardGrid.vue +5 -2
  64. package/src/components/CnDeviceFramesWidget/CnDeviceFramesWidget.vue +75 -4
  65. package/src/components/CnFactsWidget/CnFactsWidget.vue +7 -3
  66. package/src/components/CnFilesBrowser/CnFilesBrowser.vue +45 -4
  67. package/src/components/CnFlowsPage/CnFlowBoard.vue +27 -6
  68. package/src/components/CnTreeView/CnTreeNode.vue +69 -6
  69. package/src/components/CnTreeView/CnTreeView.vue +31 -4
  70. package/src/composables/aiChatConfig.js +12 -0
  71. package/src/composables/useAiChatStream.js +53 -0
  72. package/src/css/look-board-detail.css +200 -6
  73. package/src/css/look-board-index.css +7 -6
  74. package/src/css/look-board.css +118 -0
  75. package/src/css/patches.css +4 -1
  76. package/src/utils/builtInFormatters.js +18 -0
@@ -2,7 +2,7 @@ import script from './CnFilesBrowser.vue2.js';
2
2
  import { render } from './CnFilesBrowser.vue3.js';
3
3
 
4
4
  script.render = render;
5
- script.__scopeId = "data-v-a7f2fc46";
5
+ script.__scopeId = "data-v-e76d7678";
6
6
  const __sfc_main = script;
7
7
 
8
8
  export { __sfc_main as default };
@@ -425,9 +425,12 @@ var script = {
425
425
  * The columns this browser shows, in order. An entry is a built-in name
426
426
  * (`name`, `size`, `modified`, `owner`, `type`, `tags`) or an object
427
427
  * declaring its own: `{ key, label, source, attribute, formatter,
428
- * sortable }`, where `source` is `node` (a property of the node),
428
+ * sortable, subline }`, where `source` is `node` (a property of the node),
429
429
  * `attribute` (a DAV property, added to the PROPFIND before listing) or
430
- * `row` (a value from `rowData`).
430
+ * `row` (a value from `rowData`). `subline` is a template drawn as a
431
+ * muted second line under the value, filled from the file's `rowData`
432
+ * entry ("ground {reviewGrounds|values}"); it is left out when it
433
+ * names no value.
431
434
  *
432
435
  * Declaring none keeps today's table: name, size and modified.
433
436
  *
@@ -1459,8 +1462,7 @@ var script = {
1459
1462
  if ((!this.nameSecondary && fields === null) || this.isFolder(node)) {
1460
1463
  return ''
1461
1464
  }
1462
- const byId = this.resolvedRowData && typeof this.resolvedRowData === 'object' ? this.resolvedRowData : {};
1463
- const entry = byId[node.fileid] ?? byId[String(node.fileid)] ?? {};
1465
+ const entry = this.rowEntryOf(node);
1464
1466
  const owner = node.attributes ? node.attributes['owner-display-name'] : undefined;
1465
1467
  const object = {
1466
1468
  ...entry,
@@ -2011,6 +2013,34 @@ var script = {
2011
2013
  return fileColumnValue(column, node, this.resolvedRowData)
2012
2014
  },
2013
2015
 
2016
+ /**
2017
+ * The host's row data for one file (`rowData`, by file id), `{}` without it.
2018
+ *
2019
+ * @param {object} node The node.
2020
+ * @return {object} The row entry.
2021
+ */
2022
+ rowEntryOf(node) {
2023
+ const byId = this.resolvedRowData && typeof this.resolvedRowData === 'object' ? this.resolvedRowData : {};
2024
+ return byId[node.fileid] ?? byId[String(node.fileid)] ?? {}
2025
+ },
2026
+
2027
+ /**
2028
+ * A declared column's second line under its value: the column's
2029
+ * `subline` template, translated and filled from the file's row data
2030
+ * ("ground {reviewGrounds|values}"), '' when it names no value.
2031
+ *
2032
+ * @param {object} column A resolved column.
2033
+ * @param {object} node The node.
2034
+ * @return {string} The line, or ''.
2035
+ * @spec openspec/changes/files-column-subline/specs/files-column-subline/spec.md#requirement-a-declared-column-can-draw-a-second-line-under-its-value
2036
+ */
2037
+ cellSubline(column, node) {
2038
+ if (!column || typeof column.subline !== 'string' || column.subline === '') {
2039
+ return ''
2040
+ }
2041
+ return fillTemplate(this.cnTranslate(column.subline), this.rowEntryOf(node))
2042
+ },
2043
+
2014
2044
  /**
2015
2045
  * The tone a column or card field draws a value in: its `colorMap`
2016
2046
  * entry for the value (case-insensitive), read from the `colorKey` field