cec-nuxt-lib 0.2.2 → 0.2.4
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.d.mts +1 -1
- package/dist/module.d.ts +1 -1
- package/dist/module.json +3 -3
- package/dist/module.mjs +2 -2
- package/dist/runtime/components/cecHeader.vue +6 -2
- package/dist/types.d.mts +4 -4
- package/dist/types.d.ts +4 -4
- package/package.json +1 -1
package/dist/module.d.mts
CHANGED
|
@@ -2,6 +2,6 @@ import * as _nuxt_schema from '@nuxt/schema';
|
|
|
2
2
|
|
|
3
3
|
interface ModuleOptions {
|
|
4
4
|
}
|
|
5
|
-
declare const _default: _nuxt_schema.NuxtModule<ModuleOptions>;
|
|
5
|
+
declare const _default: _nuxt_schema.NuxtModule<ModuleOptions, ModuleOptions, false>;
|
|
6
6
|
|
|
7
7
|
export { type ModuleOptions, _default as default };
|
package/dist/module.d.ts
CHANGED
|
@@ -2,6 +2,6 @@ import * as _nuxt_schema from '@nuxt/schema';
|
|
|
2
2
|
|
|
3
3
|
interface ModuleOptions {
|
|
4
4
|
}
|
|
5
|
-
declare const _default: _nuxt_schema.NuxtModule<ModuleOptions>;
|
|
5
|
+
declare const _default: _nuxt_schema.NuxtModule<ModuleOptions, ModuleOptions, false>;
|
|
6
6
|
|
|
7
7
|
export { type ModuleOptions, _default as default };
|
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -2,8 +2,8 @@ import { defineNuxtModule, createResolver, addComponentsDir, addImportsDir } fro
|
|
|
2
2
|
|
|
3
3
|
const module = defineNuxtModule({
|
|
4
4
|
meta: {
|
|
5
|
-
name: "cec-
|
|
6
|
-
configKey: "cec-
|
|
5
|
+
name: "cec-nuxt-lib",
|
|
6
|
+
configKey: "cec-nuxt-lib"
|
|
7
7
|
},
|
|
8
8
|
// Default configuration options of the Nuxt module
|
|
9
9
|
defaults: {},
|
|
@@ -3,6 +3,7 @@ import { onMounted } from 'vue';
|
|
|
3
3
|
import { useState } from '#app';
|
|
4
4
|
|
|
5
5
|
const searchTerm = useState('searchTerm', () => 'Enter keywords:');
|
|
6
|
+
const showSiteSearch = useState('showSiteSearch');
|
|
6
7
|
|
|
7
8
|
// Cookie control config.
|
|
8
9
|
const config = {
|
|
@@ -89,6 +90,7 @@ const config = {
|
|
|
89
90
|
},
|
|
90
91
|
};
|
|
91
92
|
|
|
93
|
+
// Placeholder because we need to wait for browsealoud
|
|
92
94
|
let updateToggleText = () => {
|
|
93
95
|
console.log('toggle');
|
|
94
96
|
};
|
|
@@ -104,7 +106,6 @@ onMounted(() => {
|
|
|
104
106
|
}
|
|
105
107
|
BrowseAloud.panel.toggleBar();
|
|
106
108
|
};
|
|
107
|
-
|
|
108
109
|
try {
|
|
109
110
|
CookieControl.load(config);
|
|
110
111
|
} catch (ignore) {
|
|
@@ -222,7 +223,10 @@ onMounted(() => {
|
|
|
222
223
|
</ul>
|
|
223
224
|
</div>
|
|
224
225
|
<div class="cec-search-site">
|
|
225
|
-
<div
|
|
226
|
+
<div
|
|
227
|
+
class="sys_search-query-control"
|
|
228
|
+
:class="{ 'd-none': !showSiteSearch }"
|
|
229
|
+
>
|
|
226
230
|
<label for="searchTextBox" class="hidden sys_search-label"
|
|
227
231
|
>Search</label
|
|
228
232
|
>
|
package/dist/types.d.mts
CHANGED
|
@@ -3,13 +3,13 @@ import type { ModuleOptions } from './module.js'
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
declare module '@nuxt/schema' {
|
|
6
|
-
interface NuxtConfig { ['cec-
|
|
7
|
-
interface NuxtOptions { ['cec-
|
|
6
|
+
interface NuxtConfig { ['cec-nuxt-lib']?: Partial<ModuleOptions> }
|
|
7
|
+
interface NuxtOptions { ['cec-nuxt-lib']?: ModuleOptions }
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
declare module 'nuxt/schema' {
|
|
11
|
-
interface NuxtConfig { ['cec-
|
|
12
|
-
interface NuxtOptions { ['cec-
|
|
11
|
+
interface NuxtConfig { ['cec-nuxt-lib']?: Partial<ModuleOptions> }
|
|
12
|
+
interface NuxtOptions { ['cec-nuxt-lib']?: ModuleOptions }
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
|
package/dist/types.d.ts
CHANGED
|
@@ -3,13 +3,13 @@ import type { ModuleOptions } from './module'
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
declare module '@nuxt/schema' {
|
|
6
|
-
interface NuxtConfig { ['cec-
|
|
7
|
-
interface NuxtOptions { ['cec-
|
|
6
|
+
interface NuxtConfig { ['cec-nuxt-lib']?: Partial<ModuleOptions> }
|
|
7
|
+
interface NuxtOptions { ['cec-nuxt-lib']?: ModuleOptions }
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
declare module 'nuxt/schema' {
|
|
11
|
-
interface NuxtConfig { ['cec-
|
|
12
|
-
interface NuxtOptions { ['cec-
|
|
11
|
+
interface NuxtConfig { ['cec-nuxt-lib']?: Partial<ModuleOptions> }
|
|
12
|
+
interface NuxtOptions { ['cec-nuxt-lib']?: ModuleOptions }
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
|
package/package.json
CHANGED