cec-nuxt-lib 0.10.7 → 0.10.9
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
|
@@ -310,8 +310,9 @@ const imageWithCSS = (props2) => {
|
|
|
310
310
|
let data = props2.block?.value;
|
|
311
311
|
let classes = data.alignment || "";
|
|
312
312
|
classes += data.otherCss ? ` ${data.otherCss}` : "";
|
|
313
|
-
return
|
|
313
|
+
return `<div class="${classes.includes("mobile-rotate") ? "mobile-wrapper" : ""}">
|
|
314
314
|
<img src="${data.pathOfImage || data.image.asset.sys.uri}" alt="${data.altText || data.image.altText}" class="${classes}" />
|
|
315
|
+
</div>
|
|
315
316
|
`;
|
|
316
317
|
};
|
|
317
318
|
const linkEntry = (data) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script setup>
|
|
2
2
|
import { onMounted } from "vue";
|
|
3
3
|
import { useState, navigateTo } from "#app";
|
|
4
|
-
const
|
|
4
|
+
const searchTermss = 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 (
|
|
90
|
+
if (searchTerms.value) {
|
|
91
91
|
await navigateTo(
|
|
92
|
-
`https://www.cheshireeast.gov.uk/search-results?search_keywords=${encodeURI(
|
|
92
|
+
`https://www.cheshireeast.gov.uk/search-results?search_keywords=${encodeURI(searchTerms.value)}`,
|
|
93
93
|
{ external: true }
|
|
94
94
|
);
|
|
95
95
|
}
|
|
@@ -398,16 +398,16 @@ onMounted(() => {
|
|
|
398
398
|
<div class="cec-search-site">
|
|
399
399
|
<div
|
|
400
400
|
class="sys_search-query-control"
|
|
401
|
-
:class="{ 'd-none': !
|
|
401
|
+
:class="{ 'd-none': !showSiteSearch }"
|
|
402
402
|
>
|
|
403
403
|
<label for="searchTextBox" class="hidden sys_search-label"
|
|
404
404
|
>Search</label
|
|
405
405
|
>
|
|
406
406
|
<input
|
|
407
|
-
v-model="
|
|
407
|
+
v-model="searchTerms"
|
|
408
408
|
@keypress.enter="doSearch"
|
|
409
409
|
placeholder="Enter keywords"
|
|
410
|
-
@focus="
|
|
410
|
+
@focus="searchTerms = ''"
|
|
411
411
|
type="text"
|
|
412
412
|
id="searchTextBox"
|
|
413
413
|
class="sys_searchbox"
|
package/package.json
CHANGED