cec-nuxt-lib 0.8.0 → 0.8.1

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,5 +1,5 @@
1
1
  {
2
2
  "name": "cec-nuxt-lib",
3
3
  "configKey": "cec-nuxt-lib",
4
- "version": "0.8.0"
4
+ "version": "0.8.1"
5
5
  }
@@ -2,7 +2,7 @@
2
2
  import { onMounted } from 'vue';
3
3
  import { useState } from '#app';
4
4
 
5
- const searchTerm = useState('searchTerm', () => 'Enter keywords:');
5
+ const searchTerm = useState('searchTerm', () => undefined);
6
6
  const showSiteSearch = useState('showSiteSearch');
7
7
  const questions = useState('questions');
8
8
  const baseUrl = useState('baseUrl');
@@ -452,21 +452,20 @@ onMounted(() => {
452
452
  <input
453
453
  v-model="searchTerm"
454
454
  @keypress.enter="doSearch"
455
+ placeholder="Enter keywords:"
455
456
  @focus="searchTerm = ''"
456
457
  type="text"
457
458
  id="searchTextBox"
458
459
  class="sys_searchbox"
459
460
  />
460
- <a
461
+ <button
462
+ type="button"
463
+ @click="doSearch"
461
464
  id="SearchQueryControl_SearchButton"
462
465
  class="sys_button sys_searchbutton sys_search-button"
463
- :href="
464
- searchTerm === 'Enter keywords:'
465
- ? 'javascript:'
466
- : `https://www.cheshireeast.gov.uk/search-results?search_keywords=${encodeURI(searchTerm)}`
467
- "
468
- >Search</a
469
466
  >
467
+ Search
468
+ </button>
470
469
  </div>
471
470
  </div>
472
471
  </div>
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.8.0",
2
+ "version": "0.8.1",
3
3
  "name": "cec-nuxt-lib",
4
4
  "description": "Nuxt components and assets",
5
5
  "license": "MIT",