cec-nuxt-lib 0.10.8 → 0.10.10

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.8",
4
+ "version": "0.10.10",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.1",
7
7
  "unbuild": "3.5.0"
@@ -1,7 +1,7 @@
1
1
  <script setup>
2
2
  import { onMounted } from "vue";
3
3
  import { useState, navigateTo } from "#app";
4
- const searchTerm = useState("searchTerm", () => void 0);
4
+ const searchTerms = useState("searchTerms");
5
5
  const questions = useState("questions");
6
6
  const baseUrl = useState("baseUrl");
7
7
  const page = useState("page");
@@ -87,9 +87,9 @@ let updateToggleText = () => {
87
87
  console.log("toggle");
88
88
  };
89
89
  const doSearch = async () => {
90
- if (searchTerm.value) {
90
+ if (searchTerms.value) {
91
91
  await navigateTo(
92
- `https://www.cheshireeast.gov.uk/search-results?search_keywords=${encodeURI(searchTerm.value)}`,
92
+ `https://www.cheshireeast.gov.uk/search-results?search_keywords=${encodeURI(searchTerms.value)}`,
93
93
  { external: true }
94
94
  );
95
95
  }
@@ -404,10 +404,10 @@ onMounted(() => {
404
404
  >Search</label
405
405
  >
406
406
  <input
407
- v-model="searchTerm"
407
+ v-model="searchTerms"
408
408
  @keypress.enter="doSearch"
409
409
  placeholder="Enter keywords"
410
- @focus="searchTerm = ''"
410
+ @focus="searchTerms = ''"
411
411
  type="text"
412
412
  id="searchTextBox"
413
413
  class="sys_searchbox"
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.10.8",
2
+ "version": "0.10.10",
3
3
  "name": "cec-nuxt-lib",
4
4
  "description": "Nuxt components and assets",
5
5
  "license": "MIT",