@conduction/nextcloud-vue 2.167.0 → 2.168.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/CnRecordListWidget/CnRecordListWidget.vue.js +1 -1
- package/dist/esm/components/CnRecordListWidget/CnRecordListWidget.vue2.js +26 -2
- package/dist/esm/components/CnRecordListWidget/CnRecordListWidget.vue2.js.map +1 -1
- package/dist/esm/components/CnRecordListWidget/CnRecordListWidget.vue3.js +1 -1
- package/dist/esm/components/CnRecordListWidget/CnRecordListWidget.vue3.js.map +1 -1
- package/dist/esm/components/CnRecordListWidget/CnRecordNoteRows.vue.js +1 -1
- package/dist/esm/components/CnRecordListWidget/CnRecordNoteRows.vue2.js +22 -1
- package/dist/esm/components/CnRecordListWidget/CnRecordNoteRows.vue2.js.map +1 -1
- package/dist/esm/components/CnRecordListWidget/CnRecordNoteRows.vue3.js +16 -8
- package/dist/esm/components/CnRecordListWidget/CnRecordNoteRows.vue3.js.map +1 -1
- package/dist/esm/composables/useListView.js +17 -1
- package/dist/esm/composables/useListView.js.map +1 -1
- package/dist/esm/library-style.js +1 -1
- package/dist/esm/nextcloud-vue.css +213 -169
- package/dist/nextcloud-vue.cjs.js +210 -141
- package/dist/nextcloud-vue.cjs.js.map +2 -2
- package/dist/nextcloud-vue.css +213 -169
- package/package.json +1 -1
- package/src/components/CnRecordListWidget/CnRecordListWidget.vue +27 -3
- package/src/components/CnRecordListWidget/CnRecordNoteRows.vue +36 -3
- package/src/composables/useListView.js +17 -1
- package/src/css/look-board-detail.css +6 -1
- package/src/css/look-board.css +34 -0
|
@@ -2,7 +2,7 @@ import script from './CnRecordListWidget.vue2.js';
|
|
|
2
2
|
import { render } from './CnRecordListWidget.vue3.js';
|
|
3
3
|
|
|
4
4
|
script.render = render;
|
|
5
|
-
script.__scopeId = "data-v-
|
|
5
|
+
script.__scopeId = "data-v-e9c2cef8";
|
|
6
6
|
const __sfc_main = script;
|
|
7
7
|
|
|
8
8
|
export { __sfc_main as default };
|
|
@@ -1069,10 +1069,10 @@ var script = {
|
|
|
1069
1069
|
return {
|
|
1070
1070
|
label: this.translate(all.label),
|
|
1071
1071
|
title: all.title ? this.translate(all.title) : '',
|
|
1072
|
-
text:
|
|
1072
|
+
text: this.recordAllText(all.text),
|
|
1073
1073
|
icon: all.icon || '',
|
|
1074
1074
|
cancel,
|
|
1075
|
-
placement: all.placement && typeof all.placement.widget === 'string' ? { widget: all.placement.widget } : null,
|
|
1075
|
+
placement: all.placement && typeof all.placement.widget === 'string' ? { widget: all.placement.widget, sentence: all.placement.sentence === true } : null,
|
|
1076
1076
|
}
|
|
1077
1077
|
},
|
|
1078
1078
|
|
|
@@ -1798,6 +1798,30 @@ var script = {
|
|
|
1798
1798
|
}
|
|
1799
1799
|
},
|
|
1800
1800
|
|
|
1801
|
+
/**
|
|
1802
|
+
* The record-all sentence, translated: a string, or its count forms
|
|
1803
|
+
* (`{ zero?, one?, other }`, `{count}` the notes filled in) each translated.
|
|
1804
|
+
*
|
|
1805
|
+
* @param {unknown} text The declared sentence.
|
|
1806
|
+
* @return {string|object} The sentence, or its translated forms.
|
|
1807
|
+
* @spec openspec/changes/record-all-counted-sentence/specs/record-list-notes/spec.md
|
|
1808
|
+
*/
|
|
1809
|
+
recordAllText(text) {
|
|
1810
|
+
if (typeof text === 'string') {
|
|
1811
|
+
return text ? this.translate(text) : ''
|
|
1812
|
+
}
|
|
1813
|
+
if (!text || typeof text !== 'object') {
|
|
1814
|
+
return ''
|
|
1815
|
+
}
|
|
1816
|
+
const forms = {};
|
|
1817
|
+
for (const key of ['zero', 'one', 'other']) {
|
|
1818
|
+
if (typeof text[key] === 'string' && text[key] !== '') {
|
|
1819
|
+
forms[key] = this.translate(text[key]);
|
|
1820
|
+
}
|
|
1821
|
+
}
|
|
1822
|
+
return forms
|
|
1823
|
+
},
|
|
1824
|
+
|
|
1801
1825
|
/**
|
|
1802
1826
|
* A count read through the aggregate's `text` forms (`{ zero?, one?,
|
|
1803
1827
|
* other }`, `{count}` filled in, translated), else the figure itself.
|