cec-nuxt-lib 0.10.19 → 0.10.21

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.19",
4
+ "version": "0.10.21",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.1",
7
7
  "unbuild": "3.5.0"
@@ -45,7 +45,7 @@ const links = hrefs.map(
45
45
  <template>
46
46
  <div class="cec-breadcrumb-bg">
47
47
  <div class="container">
48
- <div class="row">
48
+ <div class="row g-0">
49
49
  <div class="col">
50
50
  <nav class="no-print-url" aria-label="breadcrumb">
51
51
  <ol class="breadcrumb cec-breadcrumb my-0 py-2">
@@ -134,13 +134,13 @@ const centralColumn = (props2) => {
134
134
  let item = props2.block?.value;
135
135
  if (item.column.length === 1) {
136
136
  return `
137
- <div class="row">
137
+ <div class="row g-0">
138
138
  <div class="col-lg-8 col-md-10 mx-auto mt-3 mb-4">${item.column[0]}</div>
139
139
  </div>
140
140
  `;
141
141
  } else if (item.column.length === 2) {
142
142
  return `
143
- <div class="row">
143
+ <div class="row g-0">
144
144
  <div class="col-12 col-lg-6 mb-lg-4">
145
145
  ${item.column[0]}
146
146
  </div>
@@ -168,7 +168,7 @@ const centralColumn = (props2) => {
168
168
  const centralPromotionalSection = (props2) => {
169
169
  let item = props2.block?.value;
170
170
  return `
171
- <div class="row">
171
+ <div class="row g-0">
172
172
  <div class="py-5 bg-cec-central-promo-section">
173
173
  <div class="cec-meta-outer px-4">
174
174
  <div class="cec-meta-content col-lg-8 col-md-12 px-3 py-4 px-md-5">
@@ -289,7 +289,7 @@ const horizontalTable = (props2) => {
289
289
  let cols = r.columns.reduce((acc1, c) => {
290
290
  return acc1 + `<td>${c}</td>`;
291
291
  }, "");
292
- return `${acc}<tr><th scope="row">${r.headerCell}</th>${cols}</tr>`;
292
+ return `${acc}<tr><th scope="row g-0">${r.headerCell}</th>${cols}</tr>`;
293
293
  }, "");
294
294
  return `
295
295
  <div class="table-responsive">
@@ -362,7 +362,7 @@ const makeQuestions = (data, id) => {
362
362
  let inner = data.question[0].select ? `
363
363
  <div id="${id}_buttons">${data.question[0].select}</div>
364
364
  ` : `
365
- <div class="row row-cols-auto btns-div" id="${id}_buttons">
365
+ <div class="row g-0 row-cols-auto btns-div" id="${id}_buttons">
366
366
  ${data.question[0].buttons}
367
367
  </div>`;
368
368
  return `
@@ -17,16 +17,21 @@ const props = defineProps({
17
17
  }
18
18
  });
19
19
  const { path, title, reviewed } = props;
20
+ const dateOptions = {
21
+ year: "numeric",
22
+ month: "long",
23
+ day: "numeric"
24
+ };
20
25
  </script>
21
26
 
22
27
  <template>
23
28
  <div class="mt-4 container">
24
- <div class="row">
29
+ <div class="row g-0">
25
30
  <div class="col-lg-8">
26
31
  <p v-if="reviewed && !page.hideReviewDate">
27
32
  <small
28
33
  >Page last reviewed:
29
- {{ new Date(reviewed).toLocaleDateString("en-GB") }}
34
+ {{ new Date(reviewed).toLocaleDateString("en-GB", dateOptions) }}
30
35
  </small>
31
36
  </p>
32
37
  <div class="accordion pb-4">
@@ -2,7 +2,7 @@
2
2
  <footer class="mt-5">
3
3
  <div class="py-4 footer-header">
4
4
  <div class="container position-relative">
5
- <div class="row">
5
+ <div class="row g-0">
6
6
  <div class="col-md-4">
7
7
  <nav>
8
8
  <h2 class="fs-4 mb-3 pb-2">Using this site</h2>
@@ -169,7 +169,7 @@
169
169
  <!-- / footer header -->
170
170
  <div class="py-2">
171
171
  <div class="container py-2">
172
- <div class="row">
172
+ <div class="row g-0">
173
173
  <div class="col-12">
174
174
  <p class="mb-0 text-md-end text-white">
175
175
  <a
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.10.19",
2
+ "version": "0.10.21",
3
3
  "name": "cec-nuxt-lib",
4
4
  "description": "Nuxt components and assets",
5
5
  "license": "MIT",