@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
@@ -1,5 +1,5 @@
1
1
  (function () {
2
- 'use strict';
2
+ "use strict";
3
3
 
4
4
  /**
5
5
  * @module initPromoPanel
@@ -8,30 +8,31 @@
8
8
 
9
9
  /**
10
10
  * Initialise Promo Panel
11
- *
11
+ *
12
12
  * @memberof module:initPromoPanel
13
13
  */
14
- initPromoPanel.init = function() {
14
+ initPromoPanel.init = function () {
15
+ let promoPanels = document.querySelectorAll(".qld__promo_panel");
15
16
 
16
- if($('.qld__promo_panel').length > 0) {
17
- $('section').each(function() {
18
- if($(this).hasClass('qld__promo_panel') && !$(this).hasClass('qld__promo_panel--no-image')) {
19
- var next = $(this).next();
17
+ if (promoPanels.length > 0) {
18
+ document.querySelectorAll("section").forEach(function (section) {
19
+ if (section.classList.contains("qld__promo_panel") && !section.classList.contains("qld__promo_panel--no-image")) {
20
+ let next = section.nextElementSibling;
20
21
 
21
- if($(this).next().is("data")) {
22
- next = $(this).next().next();
22
+ if (next && next.tagName.toLowerCase() === "data") {
23
+ next = next.nextElementSibling;
23
24
  }
24
25
 
25
- if ($(next).hasClass("qld__body--alt")) {
26
- $(this).addClass("qld__body--alt-half");
26
+ if (next && next.classList.contains("qld__body--alt")) {
27
+ section.classList.add("qld__body--alt-half");
27
28
  }
28
29
 
29
- if ($(next).hasClass("qld__body--dark")) {
30
- $(this).addClass("qld__body--dark-half");
30
+ if (next && next.classList.contains("qld__body--dark")) {
31
+ section.classList.add("qld__body--dark-half");
31
32
  }
32
33
 
33
- if ($(next).hasClass("qld__body--alt-dark")) {
34
- $(this).addClass("qld__body--alt-dark-half");
34
+ if (next && next.classList.contains("qld__body--alt-dark")) {
35
+ section.classList.add("qld__body--alt-dark-half");
35
36
  }
36
37
  }
37
38
  });
@@ -40,6 +41,6 @@
40
41
 
41
42
  // Assign initPromoPanel to global QLD object of functions
42
43
  QLD.initPromoPanel = initPromoPanel;
43
-
44
- document.addEventListener('DOMContentLoaded', initPromoPanel.init);
45
- }());
44
+
45
+ document.addEventListener("DOMContentLoaded", initPromoPanel.init);
46
+ })();
@@ -358,12 +358,6 @@
358
358
  "asset_short_name": "Code",
359
359
  "children": []
360
360
  },
361
- {
362
- "asset_url": "/component-data_table.html",
363
- "asset_name": "Data_table",
364
- "asset_short_name": "Data_table",
365
- "children": []
366
- },
367
361
  {
368
362
  "asset_url": "/component-file_upload.html",
369
363
  "asset_name": "File_upload",
@@ -535,15 +529,9 @@
535
529
  "children": []
536
530
  },
537
531
  {
538
- "asset_url": "/component-updated_date.html",
539
- "asset_name": "Updated Date",
540
- "asset_short_name": "Updated Date",
541
- "children": []
542
- },
543
- {
544
- "asset_url": "/component-widgets.html",
545
- "asset_name": "Widgets",
546
- "asset_short_name": "Widgets",
532
+ "asset_url": "/component-prefooter.html",
533
+ "asset_name": "Page Footer Info",
534
+ "asset_short_name": "Page Footer Info",
547
535
  "children": []
548
536
  }
549
537
  ]
@@ -14,28 +14,19 @@
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
- ${require('../components/header/html/component.hbs')({
24
- "site":require('/src/data/site.json')
25
- })}
23
+ ${require('../components/header/html/component.hbs')({ "site":require('/src/data/site.json') })}
26
24
  <!--endnoindex-->
27
- ${require('../components/mega_main_navigation/html/component.hbs')({
28
- "site":require('/src/data/site.json')
29
- })}
25
+ ${require('../components/mega_main_navigation/html/component.hbs')({ "site":require('/src/data/site.json') })}
30
26
  <!-- MAIN BODY -->
31
27
  <main class="main" role="main">
32
28
  <section class="qld__body qld__body--breadcrumb">
33
- <div class="container-fluid">
34
- ${require('../components/breadcrumbs/html/component.hbs')({
35
- "site":require('/src/data/site.json'),
36
- "current":require('/src/data/current.json'),
37
- })}
38
- </div>
29
+ <div class="container-fluid">${require('../components/breadcrumbs/html/component.hbs')({ "site":require('/src/data/site.json'), "current":require('/src/data/current.json'), })}</div>
39
30
  </section>
40
31
  <!--CONTENT-->
41
32
  <div class="qld__body">
@@ -43,43 +34,24 @@
43
34
  <div class="row">
44
35
  <div class="col-xs-12 col-md-4 col-lg-3">
45
36
  <!-- INTERNAL NAVIGATION -->
46
- ${require('../components/internal_navigation/html/component.hbs')({
47
- "site":require('/src/data/site.json'),
48
- "current":require('/src/data/current.json')
49
- })}
37
+ ${require('../components/internal_navigation/html/component.hbs')({ "site":require('/src/data/site.json'), "current":require('/src/data/current.json') })}
50
38
  </div>
51
39
  <div class="col-xs-12 col-md-8 col-lg-9" id="content">
52
-
53
- ${require('../components/_global/html/component.hbs')({
54
- "manifest":require('../components/a-z_listing/js/manifest.json'),
55
- "component":require('!url-loader!../components/a-z_listing/html/component.hbs'),
56
- "component_output":require('../components/a-z_listing/html/component.hbs')({
57
- "component":require('../components/a-z_listing/js/manifest.json').component,
58
- "site":require('/src/data/site.json'),
59
- "current":require('/src/data/current.json'),
60
- "content":"Lorem Ipsum"
61
- })
62
- })}
40
+ ${require('../components/_global/html/component.hbs')({ "manifest":require('../components/a-z_listing/js/manifest.json'), "component":require('!url-loader!../components/a-z_listing/html/component.hbs'),
41
+ "component_output":require('../components/a-z_listing/html/component.hbs')({ "component":require('../components/a-z_listing/js/manifest.json').component, "site":require('/src/data/site.json'),
42
+ "current":require('/src/data/current.json'), "content":"Lorem Ipsum" }) })}
63
43
  </div>
64
44
  </div>
65
45
  </div>
66
- </div>
46
+ </div>
47
+ <!-- Page Footer Info -->
48
+ ${require('../components/prefooter/html/component.hbs')({ "site":require('/src/data/site.json'), "current":require('/src/data/current.json') })}
67
49
  </main>
68
50
  <!-- END MAIN BODY -->
69
51
 
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
52
  <!-- FOOTER-->
77
- ${require('../components/footer/html/component.hbs')({
78
- "site":require('/src/data/site.json')
79
- })}
53
+ ${require('../components/footer/html/component.hbs')({ "site":require('/src/data/site.json') })}
80
54
 
81
- <div class="footer-scripts" id="footer_js" style="display: none !important;">
82
- ${require('../components/_global/html/scripts.html')}
83
- </div>
55
+ <div class="footer-scripts" id="footer_js" style="display: none !important">${require('../components/_global/html/scripts.html')}</div>
84
56
  </body>
85
57
  </html>