@conduction/nextcloud-vue 2.120.0 → 2.121.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 (72) hide show
  1. package/dist/esm/components/CnIndexPage/CnIndexPage.vue2.js +53 -1
  2. package/dist/esm/components/CnIndexPage/CnIndexPage.vue2.js.map +1 -1
  3. package/dist/esm/components/CnIndexPage/CnIndexPage.vue3.js +546 -523
  4. package/dist/esm/components/CnIndexPage/CnIndexPage.vue3.js.map +1 -1
  5. package/dist/esm/components/CnIndexPage/useNamedSource.js +9 -0
  6. package/dist/esm/components/CnIndexPage/useNamedSource.js.map +1 -1
  7. package/dist/esm/components/CnReadinessChecklist/CnReadinessChecklist.vue.js +9 -0
  8. package/dist/esm/components/CnReadinessChecklist/CnReadinessChecklist.vue.js.map +1 -0
  9. package/dist/esm/components/CnReadinessChecklist/CnReadinessChecklist.vue2.js +214 -0
  10. package/dist/esm/components/CnReadinessChecklist/CnReadinessChecklist.vue2.js.map +1 -0
  11. package/dist/esm/components/CnReadinessChecklist/CnReadinessChecklist.vue3.js +125 -0
  12. package/dist/esm/components/CnReadinessChecklist/CnReadinessChecklist.vue3.js.map +1 -0
  13. package/dist/esm/components/CnSchemaRulesWidget/CnSchemaRulesWidget.vue.js +9 -0
  14. package/dist/esm/components/CnSchemaRulesWidget/CnSchemaRulesWidget.vue.js.map +1 -0
  15. package/dist/esm/components/CnSchemaRulesWidget/CnSchemaRulesWidget.vue2.js +163 -0
  16. package/dist/esm/components/CnSchemaRulesWidget/CnSchemaRulesWidget.vue2.js.map +1 -0
  17. package/dist/esm/components/CnSchemaRulesWidget/CnSchemaRulesWidget.vue3.js +131 -0
  18. package/dist/esm/components/CnSchemaRulesWidget/CnSchemaRulesWidget.vue3.js.map +1 -0
  19. package/dist/esm/components/CnSchemaRulesWidget/schemaRules.js +127 -0
  20. package/dist/esm/components/CnSchemaRulesWidget/schemaRules.js.map +1 -0
  21. package/dist/esm/components/CnSearchIndexStatus/CnSearchIndexStatus.vue.js +9 -0
  22. package/dist/esm/components/CnSearchIndexStatus/CnSearchIndexStatus.vue.js.map +1 -0
  23. package/dist/esm/components/CnSearchIndexStatus/CnSearchIndexStatus.vue2.js +82 -0
  24. package/dist/esm/components/CnSearchIndexStatus/CnSearchIndexStatus.vue2.js.map +1 -0
  25. package/dist/esm/components/CnSearchIndexStatus/CnSearchIndexStatus.vue3.js +61 -0
  26. package/dist/esm/components/CnSearchIndexStatus/CnSearchIndexStatus.vue3.js.map +1 -0
  27. package/dist/esm/components/CnSearchIndexStatus/searchIndexStatus.js +60 -0
  28. package/dist/esm/components/CnSearchIndexStatus/searchIndexStatus.js.map +1 -0
  29. package/dist/esm/components/CnShippedConfigurationSection/CnShippedConfigurationSection.vue.js +10 -0
  30. package/dist/esm/components/CnShippedConfigurationSection/CnShippedConfigurationSection.vue.js.map +1 -0
  31. package/dist/esm/components/CnShippedConfigurationSection/CnShippedConfigurationSection.vue2.js +226 -0
  32. package/dist/esm/components/CnShippedConfigurationSection/CnShippedConfigurationSection.vue2.js.map +1 -0
  33. package/dist/esm/components/CnShippedConfigurationSection/CnShippedConfigurationSection.vue3.js +126 -0
  34. package/dist/esm/components/CnShippedConfigurationSection/CnShippedConfigurationSection.vue3.js.map +1 -0
  35. package/dist/esm/components/CnWidgetGrid/registerDashboardWidgets.js +42 -32
  36. package/dist/esm/components/CnWidgetGrid/registerDashboardWidgets.js.map +1 -1
  37. package/dist/esm/composables/indexSources.js +116 -16
  38. package/dist/esm/composables/indexSources.js.map +1 -1
  39. package/dist/esm/index.js +4 -0
  40. package/dist/esm/index.js.map +1 -1
  41. package/dist/esm/l10n/en.json.js +42 -1
  42. package/dist/esm/l10n/en.json.js.map +1 -1
  43. package/dist/esm/l10n/nl.json.js +42 -1
  44. package/dist/esm/l10n/nl.json.js.map +1 -1
  45. package/dist/esm/library-style.js +1 -1
  46. package/dist/esm/nextcloud-vue.css +147 -0
  47. package/dist/esm/utils/libraryWidgetKeys.js +1 -0
  48. package/dist/esm/utils/libraryWidgetKeys.js.map +1 -1
  49. package/dist/nextcloud-vue.cjs.js +14135 -12578
  50. package/dist/nextcloud-vue.cjs.js.map +2 -2
  51. package/dist/nextcloud-vue.css +147 -0
  52. package/l10n/en.json +42 -1
  53. package/l10n/nl.json +42 -1
  54. package/package.json +1 -1
  55. package/src/components/CnIndexPage/CnIndexPage.vue +74 -3
  56. package/src/components/CnIndexPage/useNamedSource.js +9 -0
  57. package/src/components/CnReadinessChecklist/CnReadinessChecklist.vue +335 -0
  58. package/src/components/CnReadinessChecklist/index.js +9 -0
  59. package/src/components/CnSchemaRulesWidget/CnSchemaRulesWidget.vue +300 -0
  60. package/src/components/CnSchemaRulesWidget/index.js +10 -0
  61. package/src/components/CnSchemaRulesWidget/schemaRules.js +123 -0
  62. package/src/components/CnSearchIndexStatus/CnSearchIndexStatus.vue +160 -0
  63. package/src/components/CnSearchIndexStatus/index.js +10 -0
  64. package/src/components/CnSearchIndexStatus/searchIndexStatus.js +56 -0
  65. package/src/components/CnShippedConfigurationSection/CnShippedConfigurationSection.vue +328 -0
  66. package/src/components/CnShippedConfigurationSection/index.js +9 -0
  67. package/src/components/CnWidgetGrid/registerDashboardWidgets.js +10 -0
  68. package/src/components/index.js +4 -0
  69. package/src/composables/indexSources.js +116 -16
  70. package/src/css/index-page.css +7 -0
  71. package/src/index.js +4 -0
  72. package/src/utils/libraryWidgetKeys.js +1 -0
@@ -2774,6 +2774,8 @@ var script = {
2774
2774
  const namedPageSize = Number(props.sourceConfig && props.sourceConfig.limit) > 0 ? Number(props.sourceConfig.limit) : 20;
2775
2775
  const namedPaging = ref({ page: 1, limit: namedPageSize });
2776
2776
  const namedActiveFilters = ref(namedFiltersFromRoute(getCurrentInstance(), props));
2777
+ // The search term on a named source that searches (`searchParam`).
2778
+ const namedSearchTerm = ref('');
2777
2779
 
2778
2780
  const {
2779
2781
  isNamedSource,
@@ -2781,7 +2783,7 @@ var script = {
2781
2783
  namedRows,
2782
2784
  namedLoading,
2783
2785
  namedQuickFilters,
2784
- } = useNamedSource(props, { activeQuickFilterIndex, activeFilters: namedActiveFilters, paging: namedPaging });
2786
+ } = useNamedSource(props, { activeQuickFilterIndex, activeFilters: namedActiveFilters, paging: namedPaging, searchTerm: namedSearchTerm });
2785
2787
 
2786
2788
  return {
2787
2789
  isBoard: isBoardLook,
@@ -2794,6 +2796,7 @@ var script = {
2794
2796
  namedQuickFilters,
2795
2797
  namedActiveFilters,
2796
2798
  namedPaging,
2799
+ namedSearchTerm,
2797
2800
  contextMenuOpen,
2798
2801
  contextMenuRow,
2799
2802
  openContextMenu,
@@ -3203,6 +3206,46 @@ var script = {
3203
3206
  return this.selfFetchFailed ? readSearchRefusal(this.list.error.value, this.effectiveSearchValue) : null
3204
3207
  },
3205
3208
 
3209
+ /**
3210
+ * Whether the named source sends the search term to its server.
3211
+ *
3212
+ * @return {boolean}
3213
+ */
3214
+ namedSourceSearches() {
3215
+ return this.isNamedSource && !!this.namedSource && typeof this.namedSource.searchParam === 'string' && this.namedSource.searchParam !== ''
3216
+ },
3217
+
3218
+ /**
3219
+ * The sentence the named source's server refused this reader with, or ''.
3220
+ * While it holds the page shows it instead of the rows, the search and
3221
+ * the tabs: a list nobody may read is not an empty list.
3222
+ *
3223
+ * @return {string}
3224
+ * @spec openspec/changes/index-endpoint-source-states/specs/index-page/spec.md
3225
+ */
3226
+ sourceRefusal() {
3227
+ return this.isNamedSource && this.namedSource && typeof this.namedSource.refusal === 'function' ? (this.namedSource.refusal() || '') : ''
3228
+ },
3229
+
3230
+ /**
3231
+ * Whether the named source's last load failed (not refused).
3232
+ *
3233
+ * @return {boolean}
3234
+ */
3235
+ sourceFailed() {
3236
+ return this.isNamedSource && !!this.namedSource && typeof this.namedSource.failed === 'function' && this.namedSource.failed() === true
3237
+ },
3238
+
3239
+ /**
3240
+ * The note the named source read off its last answer, or ''.
3241
+ *
3242
+ * @return {string}
3243
+ * @spec openspec/changes/index-endpoint-source-states/specs/index-page/spec.md
3244
+ */
3245
+ sourceNote() {
3246
+ return this.isNamedSource && this.namedSource && typeof this.namedSource.note === 'function' ? (this.namedSource.note() || '') : ''
3247
+ },
3248
+
3206
3249
  /** @return {string} What to do after a refused search. */
3207
3250
  searchRefusalHintText() {
3208
3251
  if (this.searchRefusalHint) {
@@ -4488,6 +4531,9 @@ var script = {
4488
4531
  },
4489
4532
 
4490
4533
  tabStripEntries() {
4534
+ if (this.sourceRefusal) {
4535
+ return []
4536
+ }
4491
4537
  if (this.lensTabs.length > 0) {
4492
4538
  return this.lensTabs
4493
4539
  }
@@ -5588,6 +5634,9 @@ var script = {
5588
5634
 
5589
5635
  /** Search term / visible columns / active facet filters for the embedded sidebar. */
5590
5636
  effectiveSearchValue() {
5637
+ if (this.namedSourceSearches) {
5638
+ return this.namedSearchTerm || ''
5639
+ }
5591
5640
  return this.isSelfFetchMode ? (this.list.searchTerm.value || '') : (this.searchValue || '')
5592
5641
  },
5593
5642
 
@@ -8358,6 +8407,9 @@ var script = {
8358
8407
  * @return {void}
8359
8408
  */
8360
8409
  onSearchEvent(value) {
8410
+ if (this.namedSourceSearches) {
8411
+ this.namedSearchTerm = value || '';
8412
+ }
8361
8413
  if (this.isSelfFetchMode && typeof this.list.onSearch === 'function') {
8362
8414
  this.list.onSearch(value);
8363
8415
  this.persistViewStateToRoute(this.currentViewState());