@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
@@ -468,6 +468,17 @@
468
468
  padding-inline: 0;
469
469
  }
470
470
 
471
+ /* Its label sits at the font's normal line height, 6px over the field, as
472
+ DqTermijnen draws "Kwartaal (JJJJ-Qn)" and "Jaar" (63px, not 65).
473
+ @spec openspec/changes/board-report-card-rhythm/specs/board-report-card-rhythm/spec.md#requirement-a-board-workspace-filter-label-sits-6px-over-its-field */
474
+ .cn-look-board .cn-workspace-filter-widget__form:not(.cn-look-nextcloud *) .cn-workspace-filter-widget__field {
475
+ gap: 6px;
476
+ }
477
+
478
+ .cn-look-board .cn-workspace-filter-widget__form:not(.cn-look-nextcloud *) .cn-workspace-filter-widget__field-label {
479
+ line-height: normal;
480
+ }
481
+
471
482
  /* ---- A native radio or checkbox ---------------------------------------- */
472
483
  /* The boards draw a native radio or checkbox 18px square in the primary
473
484
  colour (DqVolgendeStap, DqBesluit option cards). The browser draws 13px and
@@ -829,6 +840,7 @@
829
840
  }
830
841
 
831
842
  .cn-look-board .cn-flow-board:not(.cn-flow-board--canvas):not(.cn-look-nextcloud *) > .cn-flow-board__header {
843
+ align-items: flex-start;
832
844
  padding-top: 4px;
833
845
  }
834
846
 
@@ -841,6 +853,86 @@
841
853
  margin: 0;
842
854
  }
843
855
 
856
+ /* The flow's name is set as every board page title (DqFlow, PqFlow: 28/700).
857
+ In the cards layout it sits at the top of the row, level with the buttons,
858
+ and the Active switch's row is as tall as they are.
859
+ @spec openspec/changes/flow-board-cards-header/specs/flow-board/spec.md#requirement-the-board-look-flow-title-is-the-page-title */
860
+ .cn-look-board .cn-flow-board__title:not(.cn-look-nextcloud *) {
861
+ font-size: 28px;
862
+ font-weight: 700;
863
+ line-height: 1.2;
864
+ }
865
+
866
+ .cn-look-board .cn-flow-board:not(.cn-flow-board--canvas):not(.cn-look-nextcloud *) .cn-flow-board__toggle-row {
867
+ height: var(--cn-board-control-height);
868
+ }
869
+
870
+ /* The cards start at the top of their row, each as tall as its content, and
871
+ the canvas card is 542px tall (DqFlow). The palette's app labels are muted
872
+ at a 1.2 line (the nldesign theme inks every heading through its surface
873
+ token); its steps and "Meer stappen" drop the core button margin and
874
+ height, the link at 400. A step card's name sits at a 1.2 line and its pill
875
+ at 12px, so the card is 63px. The inspector's outcomes are a plain 14px list.
876
+ @spec openspec/changes/flow-board-cards-header/specs/flow-board/spec.md#requirement-the-cards-layout-sets-its-cards-as-the-board */
877
+ .cn-look-board .cn-flow-board:not(.cn-flow-board--canvas):not(.cn-look-nextcloud *) > .cn-flow-board__body {
878
+ align-items: start;
879
+ }
880
+
881
+ .cn-look-board .cn-flow-board:not(.cn-flow-board--canvas):not(.cn-look-nextcloud *) .cn-flow-board__canvas {
882
+ box-sizing: border-box;
883
+ height: 542px;
884
+ }
885
+
886
+ .cn-look-board .cn-flow-board:not(.cn-flow-board--canvas):not(.cn-look-nextcloud *) .cn-flow-board__palette-app {
887
+ --nldesign-color-on-surface: var(--color-text-maxcontrast);
888
+ color: var(--color-text-maxcontrast);
889
+ line-height: 1.2;
890
+ }
891
+
892
+ .cn-look-board .cn-flow-board:not(.cn-flow-board--canvas):not(.cn-look-nextcloud *) .cn-flow-board__palette-step {
893
+ margin: 0;
894
+ }
895
+
896
+ .cn-look-board .cn-flow-board:not(.cn-flow-board--canvas):not(.cn-look-nextcloud *) .cn-flow-board__palette-more {
897
+ --nldesign-component-button-font-weight: 400;
898
+ min-height: 0;
899
+ height: auto;
900
+ margin: 0;
901
+ font-weight: 400;
902
+ line-height: normal;
903
+ }
904
+
905
+ .cn-look-board .cn-flow-board:not(.cn-flow-board--canvas):not(.cn-look-nextcloud *) .cn-flow-board__palette-note,
906
+ .cn-look-board .cn-flow-board:not(.cn-flow-board--canvas):not(.cn-look-nextcloud *) .cn-flow-board__step-log summary {
907
+ line-height: normal;
908
+ }
909
+
910
+ .cn-look-board .cn-flow-board:not(.cn-flow-board--canvas):not(.cn-look-nextcloud *) .cn-flow-detail--card-nodes .cn-flow-detail__node-label {
911
+ line-height: 1.2;
912
+ }
913
+
914
+ .cn-look-board .cn-flow-board:not(.cn-flow-board--canvas):not(.cn-look-nextcloud *) .cn-flow-detail--card-nodes .cn-flow-detail__node .cn-status-badge {
915
+ padding: 2px 8px;
916
+ border-radius: 10px;
917
+ font-size: 12px;
918
+ line-height: 1.2;
919
+ }
920
+
921
+ .cn-look-board .cn-flow-board:not(.cn-flow-board--canvas):not(.cn-look-nextcloud *) .cn-flow-board__outcomes {
922
+ gap: 8px 16px;
923
+ padding: 0;
924
+ font-size: 14px;
925
+ }
926
+
927
+ .cn-look-board .cn-flow-board:not(.cn-flow-board--canvas):not(.cn-look-nextcloud *) .cn-flow-board__outcome dt,
928
+ .cn-look-board .cn-flow-board:not(.cn-flow-board--canvas):not(.cn-look-nextcloud *) .cn-flow-board__outcome dd {
929
+ padding: 0;
930
+ }
931
+
932
+ .cn-look-board .cn-flow-board:not(.cn-flow-board--canvas):not(.cn-look-nextcloud *) .cn-flow-board__outcome dd {
933
+ font-weight: 500;
934
+ }
935
+
844
936
  /* ---- An ordered list field ----------------------------------------------- */
845
937
  /* DqPersoonlijkeInstellingen "Weergaven in mijn menu": a row's labelled remove
846
938
  button ("Uit menu halen") is an outlined secondary button, and the select
@@ -3297,6 +3389,32 @@ body:has(.cn-look-board):not(:has(.cn-look-nextcloud)) .vs__dropdown-menu:has(.c
3297
3389
  padding-block: 0;
3298
3390
  }
3299
3391
 
3392
+ /* In plain sections (`dividers: false`) the sections' gap is the space under
3393
+ a stacked list, as DqTermijnen draws its report summary lines; the card's
3394
+ 10px list padding came on top of it.
3395
+ @spec openspec/changes/board-report-card-rhythm/specs/board-report-card-rhythm/spec.md#requirement-a-stacked-list-in-plain-sections-is-spaced-by-the-sections-gap */
3396
+ .cn-look-board .cn-dashboard-page:not(.cn-look-nextcloud *) .cn-sections-widget--plain .cn-record-list--stacked {
3397
+ padding-bottom: 0;
3398
+ }
3399
+
3400
+ /* A stat in plain sections is a figure of its card: its label 4px over the
3401
+ number, no tile padding or frame (DqTermijnen "Gegevenswaarschuwingen").
3402
+ A theme sets the number at line height 1 through an id selector
3403
+ (`#app-content-vue .cn-stat-widget__value`), hence `!important`.
3404
+ @spec openspec/changes/board-report-card-rhythm/specs/board-report-card-rhythm/spec.md#requirement-a-stat-in-plain-sections-is-a-figure-of-its-card */
3405
+ .cn-look-board .cn-dashboard-page:not(.cn-look-nextcloud *) .cn-sections-widget--plain .cn-kpi-card--board.cn-kpi-card--stacked {
3406
+ --cn-kpi-stacked-padding: 0;
3407
+ --cn-kpi-stacked-gap: 4px;
3408
+ border: 0;
3409
+ border-radius: 0;
3410
+ background: none;
3411
+ box-shadow: none;
3412
+ }
3413
+
3414
+ .cn-look-board .cn-dashboard-page:not(.cn-look-nextcloud *) .cn-sections-widget--plain .cn-kpi-card--board.cn-kpi-card--stacked .cn-kpi-card__value {
3415
+ line-height: normal !important;
3416
+ }
3417
+
3300
3418
  .cn-look-board .cn-dashboard-page:not(.cn-look-nextcloud *) .cn-record-list--stacked.cn-record-list--rows .cn-record-list__item + .cn-record-list__item {
3301
3419
  border-top: 0;
3302
3420
  }
@@ -39,7 +39,10 @@
39
39
  puts the white icon at 4.67:1 and the square's edge at 4.32:1 on the
40
40
  page ground; the brand orange #f36c21 gives 3.01:1 and 2.78:1.
41
41
  @spec openspec/changes/board-buildiq-orange/specs/board-buildiq-orange/spec.md#requirement-the-board-buildiq-square-is-the-boards-orange */
42
- .cn-look-board .cn-buildiq-edit .cn-buildiq-edit__actions .button-vue {
42
+ /* The doubled class outranks the same rule in an older copy of this library
43
+ that another app's bundle injects later on the page (decidiq's integration
44
+ on the case Besluiten tab drew the square in the old #e2611a). */
45
+ .cn-look-board .cn-buildiq-edit .cn-buildiq-edit__actions .button-vue.button-vue {
43
46
  --cn-buildiq-color: #c64e0b;
44
47
  }
45
48
 
@@ -592,6 +592,23 @@ export function formatUserName(value) {
592
592
  return userDisplayName(value) || String(value)
593
593
  }
594
594
 
595
+ /**
596
+ * A Dutch postcode as people read it: "2999AA" (as the registers store it)
597
+ * becomes "2999 AA". Anything that is not a Dutch postcode comes back as it is.
598
+ *
599
+ * @param {*} value The postcode.
600
+ * @return {string} The postcode with its space, the value as it is, or ''.
601
+ * @spec openspec/changes/facts-postcode-format/specs/facts-postcode-format/spec.md#requirement-a-facts-part-can-write-a-dutch-postcode-with-its-space
602
+ */
603
+ export function formatPostcode(value) {
604
+ if (value === null || value === undefined || typeof value === 'object') {
605
+ return ''
606
+ }
607
+ const text = String(value).trim()
608
+ const match = /^([1-9]\d{3})\s*([a-zA-Z]{2})$/.exec(text)
609
+ return match ? `${match[1]} ${match[2].toUpperCase()}` : text
610
+ }
611
+
595
612
  export const BUILT_IN_FORMATTERS = {
596
613
  date: formatDate,
597
614
  datetime: formatDateTime,
@@ -609,4 +626,5 @@ export const BUILT_IN_FORMATTERS = {
609
626
  termDuration: formatTermDuration,
610
627
  valueMap: formatValueMap,
611
628
  userName: formatUserName,
629
+ postcode: formatPostcode,
612
630
  }