@qhealth-design-system/core 1.16.3 → 1.16.5

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.
Files changed (84) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/package.json +1 -10
  3. package/src/components/_global/css/admin/component.scss +19 -23
  4. package/src/components/_global/css/tags/component.scss +0 -4
  5. package/src/components/_global/html/scripts.html +9 -16
  6. package/src/components/_global/js/select_boxes/global.js +36 -0
  7. package/src/components/_template/html/component-page.html +25 -31
  8. package/src/components/a-z_listing/js/global.js +60 -48
  9. package/src/components/card_no_action/css/component.scss +128 -158
  10. package/src/components/prefooter/css/component.scss +62 -0
  11. package/src/components/prefooter/js/manifest.json +9 -0
  12. package/src/components/promo_panel/js/global.js +19 -18
  13. package/src/data/current.json +3 -15
  14. package/src/html/component-a-z_listing.html +13 -41
  15. package/src/html/component-abstract.html +536 -40
  16. package/src/html/component-accordion.html +537 -41
  17. package/src/html/component-banner.html +537 -40
  18. package/src/html/component-banner_advanced.html +14 -41
  19. package/src/html/component-banner_basic.html +13 -40
  20. package/src/html/component-banner_intermediate.html +14 -41
  21. package/src/html/component-basic_search.html +10 -26
  22. package/src/html/component-body.html +541 -52
  23. package/src/html/component-breadcrumbs.html +538 -43
  24. package/src/html/component-btn.html +471 -69
  25. package/src/html/component-callout.html +536 -40
  26. package/src/html/component-card_feature.html +691 -308
  27. package/src/html/component-card_multi_action.html +651 -217
  28. package/src/html/component-card_no_action.html +163 -289
  29. package/src/html/component-card_single_action.html +1251 -324
  30. package/src/html/component-code.html +13 -40
  31. package/src/html/component-file_upload.html +13 -41
  32. package/src/html/component-footer.html +537 -41
  33. package/src/html/component-forms.html +4 -5
  34. package/src/html/component-global-elements.html +720 -152
  35. package/src/html/component-global_alert.html +536 -41
  36. package/src/html/component-header.html +537 -42
  37. package/src/html/component-horizontal_rule.html +459 -65
  38. package/src/html/component-in_page_navigation.html +544 -48
  39. package/src/html/component-internal_navigation.html +537 -41
  40. package/src/html/component-left_hand_navigation.html +13 -41
  41. package/src/html/component-loading_spinner.html +13 -42
  42. package/src/html/component-main_navigation.html +537 -41
  43. package/src/html/component-mega_main_navigation.html +537 -42
  44. package/src/html/component-multi_column.html +536 -40
  45. package/src/html/component-overflow_menu.html +12 -35
  46. package/src/html/component-page_alert.html +536 -40
  47. package/src/html/component-page_footer_info.html +583 -0
  48. package/src/html/component-pagination.html +459 -65
  49. package/src/html/component-promo_panel.html +13 -43
  50. package/src/html/component-tab.html +13 -41
  51. package/src/html/component-tag_list.html +495 -77
  52. package/src/html/component-toggle_tip.html +2 -3
  53. package/src/html/component-tool_tip.html +2 -3
  54. package/src/html/component-video_player.html +13 -41
  55. package/src/html/components.html +306 -88
  56. package/src/html/home.html +1807 -628
  57. package/src/html/index.html +9 -22
  58. package/src/html/inner-with-nav.html +551 -137
  59. package/src/html/inner.html +570 -59
  60. package/src/index.js +1 -13
  61. package/src/styles/global.scss +4 -10
  62. package/src/components/_global/css/slick/component.scss +0 -25
  63. package/src/components/_global/js/forms/global.js +0 -335
  64. package/src/components/_global/js/slick/global.js +0 -153
  65. package/src/components/_global/js/user_location/global.js +0 -116
  66. package/src/components/data_table/css/component.scss +0 -832
  67. package/src/components/data_table/html/component.hbs +0 -20
  68. package/src/components/data_table/js/global.js +0 -387
  69. package/src/components/data_table/js/manifest.json +0 -112
  70. package/src/components/updated_date/css/component.scss +0 -24
  71. package/src/components/updated_date/js/manifest.json +0 -9
  72. package/src/components/widgets/css/component.scss +0 -130
  73. package/src/components/widgets/html/component.hbs +0 -8
  74. package/src/components/widgets/html/default.html +0 -3
  75. package/src/components/widgets/js/current.json +0 -471
  76. package/src/components/widgets/js/manifest.json +0 -9
  77. package/src/components/widgets/js/site.json +0 -350
  78. package/src/externals/dsComponentLoader.js +0 -410
  79. package/src/externals/fb-typeahead.bundle.min.js +0 -6
  80. package/src/externals/funnelback.autocompletion-2.6.0.js +0 -678
  81. package/src/html/component-data_table.html +0 -85
  82. package/src/html/component-updated_date.html +0 -88
  83. package/src/html/component-widgets.html +0 -90
  84. /package/src/components/{updated_date → prefooter}/html/component.hbs +0 -0
package/CHANGELOG.md CHANGED
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## Unreleased
9
9
 
10
+ ## 1.16.5 - 2025-08-19
11
+
12
+ ## 1.16.4 - 2025-08-12
13
+
10
14
  ## 1.16.3 - 2025-07-29
11
15
 
12
16
  ## 1.16.2 - 2025-07-11
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qhealth-design-system/core",
3
- "version": "1.16.3",
3
+ "version": "1.16.5",
4
4
  "description": "",
5
5
  "licence": "MIT",
6
6
  "main": "index.js",
@@ -70,20 +70,11 @@
70
70
  "webpack-dev-server": "^4.15.1"
71
71
  },
72
72
  "dependencies": {
73
- "bloodhound-js": "^1.2.3",
74
- "corejs-typeahead": "^1.3.1",
75
- "datatables.net": "^1.13.4",
76
- "datatables.net-dt": "^1.13.4",
77
73
  "extract-loader": "^5.1.0",
78
74
  "handlebars-loader": "^1.7.1",
79
75
  "highlight.js": "^11.1.0",
80
- "jquery": "^3.5.1",
81
- "jquery-ui": "^1.13.0",
82
- "jquery-validation": "^1.19.3",
83
76
  "node-jq": "^2.0.0",
84
77
  "prismjs": "^1.29.0",
85
- "select2": "^4.1.0-rc.0",
86
- "slick-carousel": "^1.8.1",
87
78
  "tinymce": "^5.8.2",
88
79
  "to-string-loader": "^1.1.6",
89
80
  "webpack-merge": "^4.2.2"
@@ -5,7 +5,6 @@
5
5
  // Content:
6
6
  //--------------------------------------------------------------------------------------------------------------------------------------------------------------
7
7
 
8
-
9
8
  //--------------------------------------------------------------------------------------------------------------------------------------------------------------
10
9
  // CONTAINER STYLES
11
10
  //--------------------------------------------------------------------------------------------------------------------------------------------------------------
@@ -15,33 +14,28 @@
15
14
  @include QLD-space(padding-top, 2unit);
16
15
  background: var(--QLD-color-dark__background--alt-shade);
17
16
  a {
18
- color:var(--QLD-color-dark__text);
17
+ color: var(--QLD-color-dark__text);
19
18
  }
20
19
  }
21
20
 
22
21
  .qld__admin_action_header {
23
22
  @include QLD-media(md) {
24
- display:flex;
25
- justify-content:space-between;
23
+ display: flex;
24
+ justify-content: space-between;
26
25
  align-items: center;
27
26
 
28
27
  .qld__btn {
29
- display:block;
28
+ display: block;
30
29
  }
31
30
  }
32
31
  }
33
32
 
34
- .dataTables_wrapper .dataTables_length select {
35
- padding-right: 30px;
36
- background-size: 10px;
37
- background-position: right 10px center;
38
- }
39
-
40
- .qld__table .qld__table__cell.qld__admin_row-actions, table .qld__table__cell.qld__admin_row-actions {
33
+ .qld__table .qld__table__cell.qld__admin_row-actions,
34
+ table .qld__table__cell.qld__admin_row-actions {
41
35
  text-align: right;
42
36
  .qld__btn {
43
37
  margin: 3px 0;
44
- font-size:0.8em;
38
+ font-size: 0.8em;
45
39
  height: 26px;
46
40
  width: 26px;
47
41
  padding: 0;
@@ -60,21 +54,21 @@
60
54
  }
61
55
  }
62
56
  .qld__btn--error {
63
- background-color:$QLD-color-status__error;
64
- border-color:$QLD-color-status__error;
65
- color:var(--QLD-color-dark__text);
57
+ background-color: $QLD-color-status__error;
58
+ border-color: $QLD-color-status__error;
59
+ color: var(--QLD-color-dark__text);
66
60
  }
67
61
  }
68
62
  }
69
63
 
70
64
  .qld__grid .row.qld__admin_row {
71
- margin-left:0;
72
- margin-right:0;
65
+ margin-left: 0;
66
+ margin-right: 0;
73
67
  }
74
68
 
75
69
  .qld__service_finder_admin_form {
76
70
  textarea {
77
- min-width:50%;
71
+ min-width: 50%;
78
72
  display: block !important;
79
73
  position: absolute;
80
74
  opacity: 0;
@@ -104,10 +98,11 @@
104
98
  margin-left: pxToRem(16);
105
99
  cursor: pointer;
106
100
 
107
- &:hover, &:focus {
101
+ &:hover,
102
+ &:focus {
108
103
  opacity: 0.5;
109
104
  }
110
-
105
+
111
106
  svg {
112
107
  height: pxToRem(13);
113
108
  width: pxToRem(13);
@@ -116,7 +111,7 @@
116
111
  }
117
112
 
118
113
  &.multiple {
119
- input[type=text] {
114
+ input[type="text"] {
120
115
  position: absolute;
121
116
  opacity: 0;
122
117
  height: 0;
@@ -133,7 +128,8 @@
133
128
  max-height: pxToRem(48);
134
129
  margin-left: pxToRem(7);
135
130
 
136
- &:hover,&:focus {
131
+ &:hover,
132
+ &:focus {
137
133
  background: #dee0e2;
138
134
  }
139
135
 
@@ -363,10 +363,6 @@ a.qld__tag,
363
363
  @include QLD-space(margin, 0.5unit 0.5unit 0 0);
364
364
  display: inline-block;
365
365
 
366
- .slick-slider .slick-slide & {
367
- height: auto;
368
- }
369
-
370
366
  > .qld__tag:focus {
371
367
  outline-offset: -1px;
372
368
  }
@@ -1,29 +1,26 @@
1
1
  <script src="https://sdk.datastore.squiz.cloud/js/sdk-simulator.js"></script>
2
- <!-- <script src="https://sdk.datastore.squiz.cloud/js/sdk.js"></script> -->
3
2
 
4
3
  <script src="https://kit.fontawesome.com/fb2f2d4cd6.js" crossorigin="anonymous"></script>
5
- <!-- <script src="https://cdn.jsdelivr.net/npm/select2@4.1.0-rc.0/dist/js/select2.min.js"></script> -->
6
4
 
7
5
  <script src="externals/handlebars.min-v4.7.8.js"></script>
8
6
  <script src="externals/componentPreview.js"></script>
9
- <script src="externals/dsComponentLoader.js"></script>
10
7
  <script src="js/helpers.js"></script>
11
8
  <script>
12
9
  const serviceFinderData = new Datastore({
13
10
  // serviceURL: 'http://0.0.0.0:7001/hXL8Q1uq', // Matt
14
11
  //serviceURL: 'http://0.0.0.0:7001/afMhajMG', // Tom
15
- serviceURL: 'http://0.0.0.0:7001/GbO0pTqv', // Julian
12
+ serviceURL: "http://0.0.0.0:7001/GbO0pTqv", // Julian
16
13
  //serviceURL: 'https://au-a14fc409.datastore.squiz.cloud',
17
- jwtURL: 'http://0.0.0.0:7001/__JWT/issueToken'
14
+ jwtURL: "http://0.0.0.0:7001/__JWT/issueToken",
18
15
  });
19
16
 
20
- serviceFinderData.setSetting('jwtPayload', {
21
- "username": "jdoe",
22
- "fullName": "John Doe",
23
- "dsAdmin": false,
24
- "hhsGroup": "sunshine-coast",
25
- "isPublic": false,
26
- "currentHHS": true
17
+ serviceFinderData.setSetting("jwtPayload", {
18
+ username: "jdoe",
19
+ fullName: "John Doe",
20
+ dsAdmin: false,
21
+ hhsGroup: "sunshine-coast",
22
+ isPublic: false,
23
+ currentHHS: true,
27
24
  });
28
25
  </script>
29
26
 
@@ -31,7 +28,3 @@
31
28
 
32
29
  <!-- Configure Default HHS -->
33
30
  <div id="qhealth__hhs" data-hhs="darling-downs"></div>
34
-
35
- <!-- <script type="text/javascript" src="https://qh-search.squiz.cloud/s/resources-global/thirdparty/typeahead-0.11.1/typeahead.bundle.min.js" async></script>
36
- <script type="text/javascript" src="https://qh-search.squiz.cloud/s/resources-global/thirdparty/handlebars-4.0.5/handlebars.min.js" async></script> -->
37
- <!-- <script type="text/javascript" src="https://qh-search.squiz.cloud/s/resources-global/js/funnelback.autocompletion-2.6.0.js" async></script> -->
@@ -0,0 +1,36 @@
1
+ (function () {
2
+ "use strict";
3
+
4
+ var selectBoxes = {};
5
+
6
+ selectBoxes.init = function () {
7
+ document.querySelectorAll("select").forEach((select) => {
8
+ // First check that the select is not already wrapped
9
+ if (select.closest(".qld__select")) {
10
+ return;
11
+ }
12
+
13
+ // Create wrapper div
14
+ const wrapper = document.createElement("div");
15
+ wrapper.classList.add("qld__select");
16
+
17
+ // Matrix specific - add error class to wrapper if the field has an error
18
+ if (select.closest(".sq-form-question-error")) {
19
+ wrapper.classList.add("qld__select-error");
20
+ }
21
+
22
+ // Insert wrapper BEFORE the select
23
+ select.parentNode.insertBefore(wrapper, select);
24
+
25
+ // Move the select into the wrapper
26
+ wrapper.appendChild(select);
27
+ });
28
+ };
29
+
30
+ // Make forms available to public
31
+ QLD.selectBoxes = selectBoxes;
32
+
33
+ document.addEventListener("DOMContentLoaded", function () {
34
+ QLD.selectBoxes.init();
35
+ });
36
+ })();
@@ -14,27 +14,24 @@
14
14
 
15
15
  <head>
16
16
  <title>Queensland Design System</title>
17
-
17
+
18
18
  ${require('../components/_global/html/head.html')}
19
19
  </head>
20
20
 
21
21
  <body class="qld__grid">
22
22
  <!--noindex-->
23
23
  ${require('../components/header/html/component.hbs')({
24
- "site":require('/src/data/site.json')
25
- })}
24
+ "site":require('/src/data/site.json') })}
26
25
  <!--endnoindex-->
27
26
  ${require('../components/mega_main_navigation/html/component.hbs')({
28
- "site":require('/src/data/site.json')
29
- })}
27
+ "site":require('/src/data/site.json') })}
30
28
  <!-- MAIN BODY -->
31
29
  <main class="main" role="main">
32
30
  <section class="qld__body qld__body--breadcrumb">
33
31
  <div class="container-fluid">
34
32
  ${require('../components/breadcrumbs/html/component.hbs')({
35
- "site":require('/src/data/site.json'),
36
- "current":require('/src/data/current.json'),
37
- })}
33
+ "site":require('/src/data/site.json'),
34
+ "current":require('/src/data/current.json'), })}
38
35
  </div>
39
36
  </section>
40
37
  <!--CONTENT-->
@@ -44,41 +41,38 @@
44
41
  <div class="col-xs-12 col-md-4 col-lg-3">
45
42
  <!-- INTERNAL NAVIGATION -->
46
43
  ${require('../components/internal_navigation/html/component.hbs')({
47
- "site":require('/src/data/site.json'),
48
- "current":require('/src/data/current.json')
49
- })}
44
+ "site":require('/src/data/site.json'),
45
+ "current":require('/src/data/current.json') })}
50
46
  </div>
51
47
  <div class="col-xs-12 col-md-8 col-lg-9" id="content">
52
-
53
48
  ${require('../components/_global/html/component.hbs')({
54
- "manifest":require('../components/[component_name]/js/manifest.json'),
55
- "component":require('!url-loader!../components/[component_name]/html/component.hbs'),
56
- "component_output":require('../components/[component_name]/html/component.hbs')({
57
- "component":require('../components/[component_name]/js/manifest.json').component,
58
- "site":require('/src/data/site.json'),
59
- "current":require('/src/data/current.json'),
60
- "content":"Lorem Ipsum"
61
- })
62
- })}
49
+ "manifest":require('../components/[component_name]/js/manifest.json'),
50
+ "component":require('!url-loader!../components/[component_name]/html/component.hbs'),
51
+ "component_output":require('../components/[component_name]/html/component.hbs')({
52
+ "component":require('../components/[component_name]/js/manifest.json').component,
53
+ "site":require('/src/data/site.json'),
54
+ "current":require('/src/data/current.json'),
55
+ "content":"Lorem Ipsum" }) })}
63
56
  </div>
64
57
  </div>
65
58
  </div>
66
- </div>
59
+ </div>
60
+ <!-- Page Footer Info -->
61
+ ${require('../components/prefooter/html/component.hbs')({
62
+ "site":require('/src/data/site.json'),
63
+ "current":require('/src/data/current.json') })}
67
64
  </main>
68
65
  <!-- END MAIN BODY -->
69
66
 
70
- <!-- WIDGETS -->
71
- ${require('../components/widgets/html/component.hbs')({
72
- "site":require('/src/data/site.json'),
73
- "current":require('/src/data/current.json')
74
- })}
75
-
76
67
  <!-- FOOTER-->
77
68
  ${require('../components/footer/html/component.hbs')({
78
- "site":require('/src/data/site.json')
79
- })}
69
+ "site":require('/src/data/site.json') })}
80
70
 
81
- <div class="footer-scripts" id="footer_js" style="display: none !important;">
71
+ <div
72
+ class="footer-scripts"
73
+ id="footer_js"
74
+ style="display: none !important"
75
+ >
82
76
  ${require('../components/_global/html/scripts.html')}
83
77
  </div>
84
78
  </body>
@@ -1,69 +1,81 @@
1
1
  (function () {
2
- 'use strict';
3
-
4
-
5
- window.addEventListener('DOMContentLoaded', function () {
2
+ "use strict";
6
3
 
4
+ window.addEventListener("DOMContentLoaded", function () {
7
5
  function checkIfAzSelected() {
8
6
  var hash = window.location.hash;
9
7
 
10
- if(hash) {
11
- setTimeout(function() {
12
- var $servicesAZOptions = $('.qld__a-z_listing__options__item__link');
13
- var $servicesAZHeaders = $('.qld__a-z_listing__list__item__header');
8
+ if (hash) {
9
+ setTimeout(function () {
10
+ var servicesAZOptions = document.querySelectorAll(".qld__a-z_listing__options__item__link");
11
+ var servicesAZHeaders = document.querySelectorAll(".qld__a-z_listing__list__item__header");
14
12
 
15
- $servicesAZOptions.each(function() {
16
- $(this).removeClass('active');
13
+ servicesAZOptions.forEach(function (option) {
14
+ option.classList.remove("active");
17
15
  });
18
-
19
- $servicesAZHeaders.each(function() {
20
- $(this).removeClass('active');
16
+
17
+ servicesAZHeaders.forEach(function (header) {
18
+ header.classList.remove("active");
21
19
  });
22
20
 
23
- $(`a[href^="${hash}"].qld__a-z_listing__options__item__link`).addClass('active');
24
- $(`.qld__a-z_listing__list__item__header ${hash}`).parent().addClass('active');
21
+ var activeOption = document.querySelector(`a[href^="${hash}"].qld__a-z_listing__options__item__link`);
22
+ if (activeOption) {
23
+ activeOption.classList.add("active");
24
+ }
25
+
26
+ var activeHeader = document.querySelector(`.qld__a-z_listing__list__item__header ${hash}`);
27
+ if (activeHeader) {
28
+ activeHeader.parentElement.classList.add("active");
29
+ }
25
30
 
26
- if ($(hash).length > 0) {
27
- $('html, body').animate({
28
- scrollTop: $(hash).offset().top - 20
29
- }, 400);
31
+ var targetElement = document.querySelector(hash);
32
+ if (targetElement) {
33
+ window.scrollTo({
34
+ top: targetElement.getBoundingClientRect().top + window.scrollY - 20,
35
+ behavior: "smooth",
36
+ });
30
37
  }
31
38
  }, 100);
32
39
  }
33
40
  }
34
41
 
35
- $(document).on('click', 'a[href^="#"].qld__a-z_listing__options__item__link', function (event) {
36
- var $servicesAZOptions = $('.qld__a-z_listing__options__item__link');
37
- var $servicesAZHeaders = $('.qld__a-z_listing__list__item__header');
38
- var target = $.attr(this, 'href');
39
- event.preventDefault();
40
-
41
- $servicesAZOptions.each(function() {
42
- $(this).removeClass('active');
43
- });
44
-
45
- $servicesAZHeaders.each(function() {
46
- $(this).removeClass('active');
47
- });
48
-
49
- $(this).addClass('active');
50
- $(`.qld__a-z_listing__list__item__header ${target}`).parent().addClass('active');
51
-
52
- if ($(target).length > 0) {
53
- $('html, body').animate({
54
- scrollTop: $(target).offset().top - 20
55
- }, 400);
56
- }
42
+ document.addEventListener("click", function (event) {
43
+ var target = event.target;
57
44
 
58
- window.location.hash = target;
59
- });
45
+ if (target.matches('a[href^="#"].qld__a-z_listing__options__item__link')) {
46
+ event.preventDefault();
60
47
 
61
- $(window).on('hashchange', function() {
62
- checkIfAzSelected();
48
+ var servicesAZOptions = document.querySelectorAll(".qld__a-z_listing__options__item__link");
49
+ var servicesAZHeaders = document.querySelectorAll(".qld__a-z_listing__list__item__header");
50
+
51
+ servicesAZOptions.forEach(function (option) {
52
+ option.classList.remove("active");
53
+ });
54
+
55
+ servicesAZHeaders.forEach(function (header) {
56
+ header.classList.remove("active");
57
+ });
58
+
59
+ target.classList.add("active");
60
+ var targetHeader = document.querySelector(`.qld__a-z_listing__list__item__header ${target.getAttribute("href")}`);
61
+ if (targetHeader) {
62
+ targetHeader.parentElement.classList.add("active");
63
+ }
64
+
65
+ var targetElement = document.querySelector(target.getAttribute("href"));
66
+ if (targetElement) {
67
+ window.scrollTo({
68
+ top: targetElement.getBoundingClientRect().top + window.scrollY - 20,
69
+ behavior: "smooth",
70
+ });
71
+ }
72
+
73
+ setTimeout(() => {
74
+ window.location.hash = target.getAttribute("href");
75
+ }, 500);
76
+ }
63
77
  });
64
78
 
65
79
  checkIfAzSelected();
66
-
67
80
  });
68
-
69
- }());
81
+ })();