@ministryofjustice/hmpps-digital-prison-reporting-frontend 3.22.2 → 3.22.3

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.
@@ -52,8 +52,8 @@ class BookmarkService extends userStoreService_1.default {
52
52
  const checked = this.isBookmarked(variantId) ? 'checked' : null;
53
53
  const tooltip = !checked ? 'Add Bookmark' : 'Remove Bookmark';
54
54
  return `<div class='dpr-bookmark dpr-bookmark-tooltip dpr-bookmark-table' tooltip="${tooltip}">
55
- <input class="bookmark-input" aria-label="bookmark toggle" type='checkbox' id='${variantId}-${id}' data-report-id='${reportId}' data-variant-id='${variantId}' data-csrf-token='${csrfToken}' ${checked} />
56
- <label id="${variantId}-${reportId}-bookmark-label" for='${variantId}-${id}'><span class="dpr-visually-hidden">Bookmark toggle</span></label>
55
+ <input class="bookmark-input" aria-label="bookmark toggle" type='checkbox' id='${reportId}-${variantId}-${id}' data-report-id='${reportId}' data-variant-id='${variantId}' data-csrf-token='${csrfToken}' ${checked} />
56
+ <label id="${variantId}-${reportId}-bookmark-label" for='${reportId}-${variantId}-${id}'><span class="dpr-visually-hidden">Bookmark toggle</span></label>
57
57
  </div>`;
58
58
  }
59
59
  }
@@ -60,8 +60,8 @@ export default class BookmarkService extends UserStoreService {
60
60
  const checked = this.isBookmarked(variantId) ? 'checked' : null
61
61
  const tooltip = !checked ? 'Add Bookmark' : 'Remove Bookmark'
62
62
  return `<div class='dpr-bookmark dpr-bookmark-tooltip dpr-bookmark-table' tooltip="${tooltip}">
63
- <input class="bookmark-input" aria-label="bookmark toggle" type='checkbox' id='${variantId}-${id}' data-report-id='${reportId}' data-variant-id='${variantId}' data-csrf-token='${csrfToken}' ${checked} />
64
- <label id="${variantId}-${reportId}-bookmark-label" for='${variantId}-${id}'><span class="dpr-visually-hidden">Bookmark toggle</span></label>
63
+ <input class="bookmark-input" aria-label="bookmark toggle" type='checkbox' id='${reportId}-${variantId}-${id}' data-report-id='${reportId}' data-variant-id='${variantId}' data-csrf-token='${csrfToken}' ${checked} />
64
+ <label id="${variantId}-${reportId}-bookmark-label" for='${reportId}-${variantId}-${id}'><span class="dpr-visually-hidden">Bookmark toggle</span></label>
65
65
  </div>`
66
66
  }
67
67
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ministryofjustice/hmpps-digital-prison-reporting-frontend",
3
3
  "description": "The Digital Prison Reporting Frontend contains templates and code to help display data effectively in UI applications.",
4
- "version": "3.22.2",
4
+ "version": "3.22.3",
5
5
  "main": "dpr/assets/js/all.mjs",
6
6
  "sass": "dpr/all.scss",
7
7
  "engines": {
package/package.zip CHANGED
Binary file