@conduction/nextcloud-vue 2.56.0-beta.64 → 2.56.0-beta.65

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 (33) hide show
  1. package/dist/esm/components/CnAppRoot/CnAppRoot.vue2.js +2 -1
  2. package/dist/esm/components/CnAppRoot/CnAppRoot.vue2.js.map +1 -1
  3. package/dist/esm/components/CnAppRoot/CnAppRoot.vue3.js.map +1 -1
  4. package/dist/esm/components/CnDetailPage/CnDetailPage.vue2.js +20 -0
  5. package/dist/esm/components/CnDetailPage/CnDetailPage.vue2.js.map +1 -1
  6. package/dist/esm/components/CnDetailPage/CnDetailPage.vue3.js +68 -61
  7. package/dist/esm/components/CnDetailPage/CnDetailPage.vue3.js.map +1 -1
  8. package/dist/esm/components/CnIndexPage/CnIndexPage.vue2.js +37 -12
  9. package/dist/esm/components/CnIndexPage/CnIndexPage.vue2.js.map +1 -1
  10. package/dist/esm/components/CnIndexPage/CnIndexPage.vue3.js.map +1 -1
  11. package/dist/esm/components/CnIndexSidebar/CnIndexSidebar.vue2.js.map +1 -1
  12. package/dist/esm/components/CnIndexSidebar/CnIndexSidebar.vue3.js +1 -1
  13. package/dist/esm/components/CnIndexSidebar/CnIndexSidebar.vue3.js.map +1 -1
  14. package/dist/esm/library-style.js +1 -1
  15. package/dist/esm/nextcloud-vue.css +98 -31
  16. package/dist/esm/utils/savedViewHelpers.js +40 -3
  17. package/dist/esm/utils/savedViewHelpers.js.map +1 -1
  18. package/dist/nextcloud-vue.cjs.js +198 -109
  19. package/dist/nextcloud-vue.cjs.js.map +2 -2
  20. package/dist/nextcloud-vue.css +98 -31
  21. package/package.json +1 -1
  22. package/src/components/CnAppRoot/CnAppRoot.vue +2 -1
  23. package/src/components/CnDetailPage/CnDetailPage.vue +35 -11
  24. package/src/components/CnIndexPage/CnIndexPage.md +1 -1
  25. package/src/components/CnIndexPage/CnIndexPage.vue +37 -12
  26. package/src/components/CnIndexSidebar/CnIndexSidebar.md +1 -1
  27. package/src/components/CnIndexSidebar/CnIndexSidebar.vue +2 -2
  28. package/src/css/board.css +5 -2
  29. package/src/css/look-board-detail.css +19 -7
  30. package/src/css/look-board-index.css +14 -10
  31. package/src/css/look-board-reports.css +1 -1
  32. package/src/css/look-board.css +54 -9
  33. package/src/utils/savedViewHelpers.js +39 -2
@@ -1,4 +1,4 @@
1
- import { resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, toDisplayString, createCommentVNode, createBlock, renderSlot, createElementVNode, Fragment, renderList, resolveDynamicComponent, withCtx, createTextVNode, createVNode, createSlots, mergeProps } from 'vue';
1
+ import { resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, toDisplayString, createCommentVNode, createBlock, renderSlot, createElementVNode, Fragment, renderList, resolveDynamicComponent, withCtx, createTextVNode, createVNode, normalizeProps, guardReactiveProps, createSlots, mergeProps } from 'vue';
2
2
 
3
3
  const _hoisted_1 = ["href"];
4
4
  const _hoisted_2 = { class: "cn-detail-page__header-left" };
@@ -59,84 +59,93 @@ const _hoisted_15 = {
59
59
  };
60
60
  const _hoisted_16 = {
61
61
  key: 1,
62
+ class: "cn-detail-page__header-row3",
63
+ "data-testid": "cn-detail-page-header-row3"
64
+ };
65
+ const _hoisted_17 = {
66
+ class: "cn-detail-page__interactions",
67
+ "data-testid": "cn-detail-page-interactions"
68
+ };
69
+ const _hoisted_18 = {
70
+ key: 2,
62
71
  class: "cn-detail-page__header-widget",
63
72
  "data-testid": "cn-detail-page-header-widget"
64
73
  };
65
- const _hoisted_17 = {
74
+ const _hoisted_19 = {
66
75
  key: 4,
67
76
  class: "cn-detail-page__lock-refusal",
68
77
  role: "alert",
69
78
  "data-testid": "cn-detail-page-lock-refusal"
70
79
  };
71
- const _hoisted_18 = {
80
+ const _hoisted_20 = {
72
81
  key: 6,
73
82
  class: "cn-detail-page__not-found",
74
83
  "data-testid": "cn-detail-page-not-found"
75
84
  };
76
- const _hoisted_19 = {
85
+ const _hoisted_21 = {
77
86
  key: 7,
78
87
  class: "cn-detail-page__loading"
79
88
  };
80
- const _hoisted_20 = {
89
+ const _hoisted_22 = {
81
90
  key: 8,
82
91
  class: "cn-detail-page__error"
83
92
  };
84
- const _hoisted_21 = {
93
+ const _hoisted_23 = {
85
94
  key: 9,
86
95
  class: "cn-detail-page__empty"
87
96
  };
88
- const _hoisted_22 = {
97
+ const _hoisted_24 = {
89
98
  key: 10,
90
99
  class: "cn-detail-page__body"
91
100
  };
92
- const _hoisted_23 = {
101
+ const _hoisted_25 = {
93
102
  key: 0,
94
103
  class: "cn-detail-page__before-body"
95
104
  };
96
- const _hoisted_24 = ["aria-labelledby"];
97
- const _hoisted_25 = {
105
+ const _hoisted_26 = ["aria-labelledby"];
106
+ const _hoisted_27 = {
98
107
  key: 0,
99
108
  class: "cn-detail-page__widget-edit"
100
109
  };
101
- const _hoisted_26 = ["id"];
102
- const _hoisted_27 = ["id", "aria-label"];
103
- const _hoisted_28 = {
110
+ const _hoisted_28 = ["id"];
111
+ const _hoisted_29 = ["id", "aria-label"];
112
+ const _hoisted_30 = {
104
113
  key: 3,
105
114
  class: "cn-detail-page__stats"
106
115
  };
107
- const _hoisted_29 = {
116
+ const _hoisted_31 = {
108
117
  key: 0,
109
118
  class: "cn-detail-page__section-title"
110
119
  };
111
- const _hoisted_30 = { class: "cn-detail-page__stats-table" };
112
- const _hoisted_31 = { key: 0 };
113
- const _hoisted_32 = {
120
+ const _hoisted_32 = { class: "cn-detail-page__stats-table" };
121
+ const _hoisted_33 = { key: 0 };
122
+ const _hoisted_34 = {
114
123
  key: 4,
115
124
  class: "cn-detail-page__content"
116
125
  };
117
- const _hoisted_33 = {
126
+ const _hoisted_35 = {
118
127
  key: 0,
119
128
  class: "cn-detail-page__content"
120
129
  };
121
- const _hoisted_34 = {
130
+ const _hoisted_36 = {
122
131
  key: 1,
123
132
  class: "cn-detail-page__sections"
124
133
  };
125
- const _hoisted_35 = {
134
+ const _hoisted_37 = {
126
135
  key: 6,
127
136
  class: "cn-detail-page__related-collections"
128
137
  };
129
- const _hoisted_36 = {
138
+ const _hoisted_38 = {
130
139
  key: 0,
131
140
  class: "cn-detail-page__relation-links"
132
141
  };
133
- const _hoisted_37 = {
142
+ const _hoisted_39 = {
134
143
  key: 9,
135
144
  class: "cn-detail-page__footer"
136
145
  };
137
- const _hoisted_38 = ["aria-label"];
138
- const _hoisted_39 = ["data-testid"];
139
- const _hoisted_40 = {
146
+ const _hoisted_40 = ["aria-label"];
147
+ const _hoisted_41 = ["data-testid"];
148
+ const _hoisted_42 = {
140
149
  key: 0,
141
150
  class: "cn-detail-page__side-identifier",
142
151
  "data-testid": "cn-detail-page-side-identifier"
@@ -266,18 +275,9 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
266
275
  _: 1 /* STABLE */
267
276
  }, 8 /* PROPS */, ["title"]))
268
277
  : createCommentVNode("v-if", true),
269
- ($options.showFollowToggle)
278
+ ($options.showFollowToggle && !$options.isBoard)
270
279
  ? (openBlock(), createElementBlock("span", _hoisted_7, [
271
- createVNode(_component_CnFollowToggle, {
272
- register: $props.register,
273
- schema: $props.schema,
274
- objectId: String($props.objectId),
275
- watching: $options.resolvedSelf.watching === true,
276
- notify: typeof $options.resolvedSelf.watchNotify === 'boolean' ? $options.resolvedSelf.watchNotify : null,
277
- watcherCount: typeof $options.resolvedSelf.watcherCount === 'number' ? $options.resolvedSelf.watcherCount : null,
278
- canManage: !!($options.resolvedSelf.can && $options.resolvedSelf.can.manage === true),
279
- notifies: $props.followNotifies
280
- }, null, 8 /* PROPS */, ["register", "schema", "objectId", "watching", "notify", "watcherCount", "canManage", "notifies"])
280
+ createVNode(_component_CnFollowToggle, normalizeProps(guardReactiveProps($options.followToggleProps)), null, 16 /* FULL_PROPS */)
281
281
  ]))
282
282
  : createCommentVNode("v-if", true)
283
283
  ]))
@@ -689,8 +689,15 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
689
689
  : createCommentVNode("v-if", true)
690
690
  ]))
691
691
  : createCommentVNode("v-if", true),
692
- ($options.headerWidgetDef !== null)
692
+ ($options.isBoard && $options.showFollowToggle)
693
693
  ? (openBlock(), createElementBlock("div", _hoisted_16, [
694
+ createElementVNode("span", _hoisted_17, [
695
+ createVNode(_component_CnFollowToggle, normalizeProps(guardReactiveProps($options.followToggleProps)), null, 16 /* FULL_PROPS */)
696
+ ])
697
+ ]))
698
+ : createCommentVNode("v-if", true),
699
+ ($options.headerWidgetDef !== null)
700
+ ? (openBlock(), createElementBlock("div", _hoisted_18, [
694
701
  renderSlot(_ctx.$slots, `widget-${$options.headerWidgetDef.id}`, {
695
702
  item: { id: $options.headerWidgetDef.id, widgetId: $options.headerWidgetDef.id },
696
703
  widget: $options.headerWidgetDef,
@@ -736,7 +743,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
736
743
  }, null, 8 /* PROPS */, ["lockedBy", "lockedByMe", "expiresAt", "unlocking", "onUnlock"]))
737
744
  : createCommentVNode("v-if", true),
738
745
  ($data.editLockRefusal)
739
- ? (openBlock(), createElementBlock("p", _hoisted_17, toDisplayString($data.editLockRefusal), 1 /* TEXT */))
746
+ ? (openBlock(), createElementBlock("p", _hoisted_19, toDisplayString($data.editLockRefusal), 1 /* TEXT */))
740
747
  : createCommentVNode("v-if", true),
741
748
  ($options.showsNextStepCard)
742
749
  ? (openBlock(), createBlock(_component_CnNextStepCard, {
@@ -774,7 +781,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
774
781
  ]), 1032 /* PROPS, DYNAMIC_SLOTS */, ["title", "items", "after"]))
775
782
  : createCommentVNode("v-if", true),
776
783
  ($data.objectNotFound)
777
- ? (openBlock(), createElementBlock("div", _hoisted_18, [
784
+ ? (openBlock(), createElementBlock("div", _hoisted_20, [
778
785
  renderSlot(_ctx.$slots, "not-found", { target: $options.notFoundTarget }, () => [
779
786
  createVNode(_component_NcEmptyContent, {
780
787
  name: $options.notFoundLabels.name,
@@ -810,12 +817,12 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
810
817
  ])
811
818
  ]))
812
819
  : ($options.showLoadingState)
813
- ? (openBlock(), createElementBlock("div", _hoisted_19, [
820
+ ? (openBlock(), createElementBlock("div", _hoisted_21, [
814
821
  createVNode(_component_NcLoadingIcon, { size: 32 }),
815
822
  createElementVNode("span", null, toDisplayString($props.loadingLabel), 1 /* TEXT */)
816
823
  ]))
817
824
  : ($props.error)
818
- ? (openBlock(), createElementBlock("div", _hoisted_20, [
825
+ ? (openBlock(), createElementBlock("div", _hoisted_22, [
819
826
  renderSlot(_ctx.$slots, "error", {}, () => [
820
827
  createVNode(_component_NcEmptyContent, { name: $props.errorMessage }, {
821
828
  icon: withCtx(() => [
@@ -844,7 +851,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
844
851
  ])
845
852
  ]))
846
853
  : ($props.empty)
847
- ? (openBlock(), createElementBlock("div", _hoisted_21, [
854
+ ? (openBlock(), createElementBlock("div", _hoisted_23, [
848
855
  renderSlot(_ctx.$slots, "empty", {}, () => [
849
856
  createVNode(_component_NcEmptyContent, { name: $props.emptyLabel }, {
850
857
  icon: withCtx(() => [
@@ -857,9 +864,9 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
857
864
  }, 8 /* PROPS */, ["name"])
858
865
  ])
859
866
  ]))
860
- : (openBlock(), createElementBlock("div", _hoisted_22, [
867
+ : (openBlock(), createElementBlock("div", _hoisted_24, [
861
868
  (_ctx.$slots['before-body'] || _ctx.$slots['before-body'])
862
- ? (openBlock(), createElementBlock("div", _hoisted_23, [
869
+ ? (openBlock(), createElementBlock("div", _hoisted_25, [
863
870
  renderSlot(_ctx.$slots, "before-body", {
864
871
  object: $options.resolvedObject,
865
872
  schema: $options.currentSchema,
@@ -895,7 +902,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
895
902
  "aria-labelledby": $options.showGridTitle(item) ? `widget-title-${item.id}` : undefined
896
903
  }, [
897
904
  ($options.showsCog(item))
898
- ? (openBlock(), createElementBlock("div", _hoisted_25, [
905
+ ? (openBlock(), createElementBlock("div", _hoisted_27, [
899
906
  createVNode(_component_NcButton, {
900
907
  variant: "tertiary",
901
908
  "aria-label": _ctx.t('nextcloud-vue', 'Configure widget'),
@@ -913,7 +920,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
913
920
  key: 1,
914
921
  id: `widget-title-${item.id}`,
915
922
  class: "cn-detail-page__widget-title"
916
- }, toDisplayString($options.gridTitle(item)), 9 /* TEXT, PROPS */, _hoisted_26))
923
+ }, toDisplayString($options.gridTitle(item)), 9 /* TEXT, PROPS */, _hoisted_28))
917
924
  : createCommentVNode("v-if", true),
918
925
  renderSlot(_ctx.$slots, `widget-${item.widgetId}`, {
919
926
  item: item,
@@ -948,7 +955,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
948
955
  onSelectObject: $options.onRelatedObjectSelect
949
956
  }, null, 8 /* PROPS */, ["widget", "showCardTitle", "showActions", "objectId", "object", "objectType", "schemaObject", "register", "schema", "store", "surface", "integrationContext", "hideEmpty", "cnRegistry", "availableWidgets", "onGeoSaved", "onOpenIntegration", "onSelectObject"])
950
957
  ])
951
- ], 10 /* CLASS, PROPS */, _hoisted_24)
958
+ ], 10 /* CLASS, PROPS */, _hoisted_26)
952
959
  ]),
953
960
  _: 3 /* FORWARDED */
954
961
  }, 16 /* FULL_PROPS */, ["layout", "editable", "columnOpts", "onLayoutChange"]))
@@ -968,18 +975,18 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
968
975
  ]),
969
976
  _: 1 /* STABLE */
970
977
  }, 8 /* PROPS */, ["description"])
971
- ], 8 /* PROPS */, _hoisted_27))
978
+ ], 8 /* PROPS */, _hoisted_29))
972
979
  : createCommentVNode("v-if", true),
973
980
  ($options.hasStats)
974
- ? (openBlock(), createElementBlock("div", _hoisted_28, [
981
+ ? (openBlock(), createElementBlock("div", _hoisted_30, [
975
982
  renderSlot(_ctx.$slots, "stats-header", {}, () => [
976
983
  ($props.statsTitle)
977
- ? (openBlock(), createElementBlock("h3", _hoisted_29, toDisplayString($options.resolvedStatsTitle), 1 /* TEXT */))
984
+ ? (openBlock(), createElementBlock("h3", _hoisted_31, toDisplayString($options.resolvedStatsTitle), 1 /* TEXT */))
978
985
  : createCommentVNode("v-if", true)
979
986
  ]),
980
- createElementVNode("table", _hoisted_30, [
987
+ createElementVNode("table", _hoisted_32, [
981
988
  ($props.statsColumns.length > 0)
982
- ? (openBlock(), createElementBlock("thead", _hoisted_31, [
989
+ ? (openBlock(), createElementBlock("thead", _hoisted_33, [
983
990
  createElementVNode("tr", null, [
984
991
  (openBlock(true), createElementBlock(Fragment, null, renderList($props.statsColumns, (col) => {
985
992
  return (openBlock(), createElementBlock("th", {
@@ -1010,14 +1017,14 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
1010
1017
  ])
1011
1018
  ])
1012
1019
  ]))
1013
- : (openBlock(), createElementBlock("div", _hoisted_32, [
1020
+ : (openBlock(), createElementBlock("div", _hoisted_34, [
1014
1021
  (!$options.hasBodyGrid)
1015
- ? (openBlock(), createElementBlock("div", _hoisted_33, [
1022
+ ? (openBlock(), createElementBlock("div", _hoisted_35, [
1016
1023
  renderSlot(_ctx.$slots, "default")
1017
1024
  ]))
1018
1025
  : createCommentVNode("v-if", true),
1019
1026
  (_ctx.$slots.sections)
1020
- ? (openBlock(), createElementBlock("div", _hoisted_34, [
1027
+ ? (openBlock(), createElementBlock("div", _hoisted_36, [
1021
1028
  renderSlot(_ctx.$slots, "sections")
1022
1029
  ]))
1023
1030
  : createCommentVNode("v-if", true)
@@ -1032,9 +1039,9 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
1032
1039
  }, null, 8 /* PROPS */, ["sections", "context"]))
1033
1040
  : createCommentVNode("v-if", true),
1034
1041
  (($props.relatedCollections && $props.relatedCollections.length > 0) || ($props.relationLinks && $props.relationLinks.length > 0))
1035
- ? (openBlock(), createElementBlock("div", _hoisted_35, [
1042
+ ? (openBlock(), createElementBlock("div", _hoisted_37, [
1036
1043
  ($props.relationLinks && $props.relationLinks.length > 0)
1037
- ? (openBlock(), createElementBlock("div", _hoisted_36, [
1044
+ ? (openBlock(), createElementBlock("div", _hoisted_38, [
1038
1045
  (openBlock(true), createElementBlock(Fragment, null, renderList($props.relationLinks, (link, li) => {
1039
1046
  return (openBlock(), createBlock(_component_NcButton, {
1040
1047
  key: li,
@@ -1081,7 +1088,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
1081
1088
  }, null, 8 /* PROPS */, ["sections", "context"]))
1082
1089
  : createCommentVNode("v-if", true),
1083
1090
  (_ctx.$slots.footer)
1084
- ? (openBlock(), createElementBlock("div", _hoisted_37, [
1091
+ ? (openBlock(), createElementBlock("div", _hoisted_39, [
1085
1092
  renderSlot(_ctx.$slots, "footer")
1086
1093
  ]))
1087
1094
  : createCommentVNode("v-if", true)
@@ -1132,11 +1139,11 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
1132
1139
  }, null, 8 /* PROPS */, ["widget", "showActions", "objectId", "object", "objectType", "schemaObject", "register", "schema", "store", "surface", "integrationContext", "hideEmpty", "cnRegistry", "availableWidgets", "onGeoSaved", "onOpenIntegration", "onSelectObject"])
1133
1140
  ]),
1134
1141
  ($options.isBoard && widget.id === $options.sideHistoryId && $options.identifierLine !== '')
1135
- ? (openBlock(), createElementBlock("p", _hoisted_40, toDisplayString($options.identifierLine), 1 /* TEXT */))
1142
+ ? (openBlock(), createElementBlock("p", _hoisted_42, toDisplayString($options.identifierLine), 1 /* TEXT */))
1136
1143
  : createCommentVNode("v-if", true)
1137
- ], 10 /* CLASS, PROPS */, _hoisted_39))
1144
+ ], 10 /* CLASS, PROPS */, _hoisted_41))
1138
1145
  }), 128 /* KEYED_FRAGMENT */))
1139
- ], 8 /* PROPS */, _hoisted_38))
1146
+ ], 8 /* PROPS */, _hoisted_40))
1140
1147
  : createCommentVNode("v-if", true),
1141
1148
  ($data.showWidgetConfig)
1142
1149
  ? (openBlock(), createBlock(_component_CnWidgetStyleEditorModal, {