@qhealth-design-system/core 1.16.3 → 1.16.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/CHANGELOG.md CHANGED
@@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## Unreleased
9
9
 
10
+ ## 1.16.4 - 2025-08-12
11
+
10
12
  ## 1.16.3 - 2025-07-29
11
13
 
12
14
  ## 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.4",
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
+ })();
@@ -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
+ })();