@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.
- package/dist/esm/components/CnIndexPage/CnIndexPage.vue2.js +53 -1
- package/dist/esm/components/CnIndexPage/CnIndexPage.vue2.js.map +1 -1
- package/dist/esm/components/CnIndexPage/CnIndexPage.vue3.js +546 -523
- package/dist/esm/components/CnIndexPage/CnIndexPage.vue3.js.map +1 -1
- package/dist/esm/components/CnIndexPage/useNamedSource.js +9 -0
- package/dist/esm/components/CnIndexPage/useNamedSource.js.map +1 -1
- package/dist/esm/components/CnReadinessChecklist/CnReadinessChecklist.vue.js +9 -0
- package/dist/esm/components/CnReadinessChecklist/CnReadinessChecklist.vue.js.map +1 -0
- package/dist/esm/components/CnReadinessChecklist/CnReadinessChecklist.vue2.js +214 -0
- package/dist/esm/components/CnReadinessChecklist/CnReadinessChecklist.vue2.js.map +1 -0
- package/dist/esm/components/CnReadinessChecklist/CnReadinessChecklist.vue3.js +125 -0
- package/dist/esm/components/CnReadinessChecklist/CnReadinessChecklist.vue3.js.map +1 -0
- package/dist/esm/components/CnSchemaRulesWidget/CnSchemaRulesWidget.vue.js +9 -0
- package/dist/esm/components/CnSchemaRulesWidget/CnSchemaRulesWidget.vue.js.map +1 -0
- package/dist/esm/components/CnSchemaRulesWidget/CnSchemaRulesWidget.vue2.js +163 -0
- package/dist/esm/components/CnSchemaRulesWidget/CnSchemaRulesWidget.vue2.js.map +1 -0
- package/dist/esm/components/CnSchemaRulesWidget/CnSchemaRulesWidget.vue3.js +131 -0
- package/dist/esm/components/CnSchemaRulesWidget/CnSchemaRulesWidget.vue3.js.map +1 -0
- package/dist/esm/components/CnSchemaRulesWidget/schemaRules.js +127 -0
- package/dist/esm/components/CnSchemaRulesWidget/schemaRules.js.map +1 -0
- package/dist/esm/components/CnSearchIndexStatus/CnSearchIndexStatus.vue.js +9 -0
- package/dist/esm/components/CnSearchIndexStatus/CnSearchIndexStatus.vue.js.map +1 -0
- package/dist/esm/components/CnSearchIndexStatus/CnSearchIndexStatus.vue2.js +82 -0
- package/dist/esm/components/CnSearchIndexStatus/CnSearchIndexStatus.vue2.js.map +1 -0
- package/dist/esm/components/CnSearchIndexStatus/CnSearchIndexStatus.vue3.js +61 -0
- package/dist/esm/components/CnSearchIndexStatus/CnSearchIndexStatus.vue3.js.map +1 -0
- package/dist/esm/components/CnSearchIndexStatus/searchIndexStatus.js +60 -0
- package/dist/esm/components/CnSearchIndexStatus/searchIndexStatus.js.map +1 -0
- package/dist/esm/components/CnShippedConfigurationSection/CnShippedConfigurationSection.vue.js +10 -0
- package/dist/esm/components/CnShippedConfigurationSection/CnShippedConfigurationSection.vue.js.map +1 -0
- package/dist/esm/components/CnShippedConfigurationSection/CnShippedConfigurationSection.vue2.js +226 -0
- package/dist/esm/components/CnShippedConfigurationSection/CnShippedConfigurationSection.vue2.js.map +1 -0
- package/dist/esm/components/CnShippedConfigurationSection/CnShippedConfigurationSection.vue3.js +126 -0
- package/dist/esm/components/CnShippedConfigurationSection/CnShippedConfigurationSection.vue3.js.map +1 -0
- package/dist/esm/components/CnWidgetGrid/registerDashboardWidgets.js +42 -32
- package/dist/esm/components/CnWidgetGrid/registerDashboardWidgets.js.map +1 -1
- package/dist/esm/composables/indexSources.js +116 -16
- package/dist/esm/composables/indexSources.js.map +1 -1
- package/dist/esm/index.js +4 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/l10n/en.json.js +42 -1
- package/dist/esm/l10n/en.json.js.map +1 -1
- package/dist/esm/l10n/nl.json.js +42 -1
- package/dist/esm/l10n/nl.json.js.map +1 -1
- package/dist/esm/library-style.js +1 -1
- package/dist/esm/nextcloud-vue.css +147 -0
- package/dist/esm/utils/libraryWidgetKeys.js +1 -0
- package/dist/esm/utils/libraryWidgetKeys.js.map +1 -1
- package/dist/nextcloud-vue.cjs.js +14135 -12578
- package/dist/nextcloud-vue.cjs.js.map +2 -2
- package/dist/nextcloud-vue.css +147 -0
- package/l10n/en.json +42 -1
- package/l10n/nl.json +42 -1
- package/package.json +1 -1
- package/src/components/CnIndexPage/CnIndexPage.vue +74 -3
- package/src/components/CnIndexPage/useNamedSource.js +9 -0
- package/src/components/CnReadinessChecklist/CnReadinessChecklist.vue +335 -0
- package/src/components/CnReadinessChecklist/index.js +9 -0
- package/src/components/CnSchemaRulesWidget/CnSchemaRulesWidget.vue +300 -0
- package/src/components/CnSchemaRulesWidget/index.js +10 -0
- package/src/components/CnSchemaRulesWidget/schemaRules.js +123 -0
- package/src/components/CnSearchIndexStatus/CnSearchIndexStatus.vue +160 -0
- package/src/components/CnSearchIndexStatus/index.js +10 -0
- package/src/components/CnSearchIndexStatus/searchIndexStatus.js +56 -0
- package/src/components/CnShippedConfigurationSection/CnShippedConfigurationSection.vue +328 -0
- package/src/components/CnShippedConfigurationSection/index.js +9 -0
- package/src/components/CnWidgetGrid/registerDashboardWidgets.js +10 -0
- package/src/components/index.js +4 -0
- package/src/composables/indexSources.js +116 -16
- package/src/css/index-page.css +7 -0
- package/src/index.js +4 -0
- 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());
|