cec-nuxt-lib 0.10.13 → 0.10.15

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/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "cec-nuxt-lib",
3
3
  "configKey": "cec-nuxt-lib",
4
- "version": "0.10.13",
4
+ "version": "0.10.15",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.1",
7
7
  "unbuild": "3.5.0"
@@ -8,6 +8,9 @@ const goToPage = (n) => {
8
8
  pageIndex.value = n;
9
9
  scrollTo.value.scrollIntoView();
10
10
  };
11
+ const results = pages.value.reduce((acc, p) => {
12
+ return acc + p.length;
13
+ }, 0);
11
14
  </script>
12
15
 
13
16
  <template>
@@ -70,13 +73,8 @@ const goToPage = (n) => {
70
73
  </ol>
71
74
  </nav>
72
75
  <p>
73
- <span v-if="page.showResultsNum"
74
- >Total results:
75
- {{
76
- pages.reduce((acc, p) => {
77
- return acc + p.length;
78
- }, 0)
79
- }}.&nbsp;</span
76
+ <span v-if="page.showResultsNum && results"
77
+ >Total results: {{ results }}.&nbsp;</span
80
78
  >
81
79
  <span v-if="pages.length > 1"
82
80
  >Viewing page {{ pageIndex + 1 }} of {{ pages.length }}.</span
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.10.13",
2
+ "version": "0.10.15",
3
3
  "name": "cec-nuxt-lib",
4
4
  "description": "Nuxt components and assets",
5
5
  "license": "MIT",