@qld-gov-au/qgds-bootstrap5 2.0.12 → 2.1.1
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/.esbuild/plugins/qgds-plugin-generate-icon-assets.js +31 -24
- package/.storybook/preview.js +15 -6
- package/dist/assets/components/bs5/button/button.hbs +1 -1
- package/dist/assets/components/bs5/callToAction/callToAction.hbs +3 -3
- package/dist/assets/components/bs5/dateinput/dateinput.hbs +21 -27
- package/dist/assets/components/bs5/footer/customLinks.hbs +1 -1
- package/dist/assets/components/bs5/footer/followLinks.hbs +1 -1
- package/dist/assets/components/bs5/globalAlert/globalAlert.hbs +8 -1
- package/dist/assets/components/bs5/head/head.hbs +1 -1
- package/dist/assets/components/bs5/inpageAlert/inpageAlert.hbs +10 -2
- package/dist/assets/components/bs5/pagination/pagination.hbs +7 -2
- package/dist/assets/components/bs5/promotionalPanel/promotionalPanel.hbs +1 -1
- package/dist/assets/components/bs5/searchInput/searchInput.hbs +11 -9
- package/dist/assets/css/qld.bootstrap.css +2 -2
- package/dist/assets/css/qld.bootstrap.css.map +3 -3
- package/dist/assets/css/qld.bootstrap.legacy.css +2 -2
- package/dist/assets/css/qld.bootstrap.legacy.css.map +3 -3
- package/dist/assets/img/icons-sprite.svg +24 -24
- package/dist/assets/js/handlebars.helpers.bundle.js +1 -1
- package/dist/assets/js/handlebars.init.min.js +80 -64
- package/dist/assets/js/handlebars.init.min.js.map +2 -2
- package/dist/assets/js/handlebars.partials.js +80 -64
- package/dist/assets/js/handlebars.partials.js.map +2 -2
- package/dist/assets/js/qld.bootstrap.min.js +6 -6
- package/dist/assets/js/qld.bootstrap.min.js.map +4 -4
- package/dist/assets/node/handlebars.init.min.js +28 -19
- package/dist/assets/node/handlebars.init.min.js.map +2 -2
- package/dist/components/bs5/button/button.hbs +1 -1
- package/dist/components/bs5/callToAction/callToAction.hbs +3 -3
- package/dist/components/bs5/dateinput/dateinput.hbs +21 -27
- package/dist/components/bs5/footer/customLinks.hbs +1 -1
- package/dist/components/bs5/footer/followLinks.hbs +1 -1
- package/dist/components/bs5/globalAlert/globalAlert.hbs +8 -1
- package/dist/components/bs5/head/head.hbs +1 -1
- package/dist/components/bs5/inpageAlert/inpageAlert.hbs +10 -2
- package/dist/components/bs5/pagination/pagination.hbs +7 -2
- package/dist/components/bs5/promotionalPanel/promotionalPanel.hbs +1 -1
- package/dist/components/bs5/searchInput/searchInput.hbs +11 -9
- package/dist/package.json +33 -32
- package/dist/sample-data/callToAction/callToAction.data.json +2 -1
- package/dist/sample-data/dateinput/dateinput.data.json +3 -1
- package/dist/sample-data/footer/footer.data.json +3 -0
- package/dist/sample-data/inpageAlert/inpageAlert.data.json +1 -1
- package/dist/sample-data/pagination/pagination.data.json +4 -4
- package/dist/sample-data/promotionalPanel/promotionalPanel.data.json +45 -47
- package/dist/sample-data/searchInput/searchInput.data.json +1 -0
- package/package.json +33 -32
- package/src/components/bs5/breadcrumbs/breadcrumbs.scss +4 -4
- package/src/components/bs5/button/Button.js +32 -6
- package/src/components/bs5/button/button.hbs +1 -1
- package/src/components/bs5/button/button.scss +1 -5
- package/src/components/bs5/button/button.stories.js +16 -4
- package/src/components/bs5/callToAction/callToAction.data.json +2 -1
- package/src/components/bs5/callToAction/callToAction.hbs +3 -3
- package/src/components/bs5/callToAction/callToAction.stories.js +2 -2
- package/src/components/bs5/card/card.scss +4 -2
- package/src/components/bs5/dateinput/Dateinput.js +1 -38
- package/src/components/bs5/dateinput/Dateinput.mdx +27 -0
- package/src/components/bs5/dateinput/Dateinput.stories.js +48 -4
- package/src/components/bs5/dateinput/dateinput.data.json +3 -1
- package/src/components/bs5/dateinput/dateinput.functions.js +91 -0
- package/src/components/bs5/dateinput/dateinput.hbs +21 -27
- package/src/components/bs5/footer/customLinks.hbs +1 -1
- package/src/components/bs5/footer/followLinks.hbs +1 -1
- package/src/components/bs5/footer/footer.data.json +3 -0
- package/src/components/bs5/formcheck/_form-variables.scss +36 -0
- package/src/components/bs5/formcheck/formcheck.scss +59 -14
- package/src/components/bs5/globalAlert/globalAlert.hbs +8 -1
- package/src/components/bs5/globalAlert/globalAlert.scss +14 -19
- package/src/components/bs5/globalAlert/globalAlert.stories.js +1 -0
- package/src/components/bs5/globalAlert/globalAlert.test.js +10 -5
- package/src/components/bs5/header/header.scss +1 -2
- package/src/components/bs5/icons/_icons.list.js +7 -7
- package/src/components/bs5/icons/_icons.list.scss +113 -112
- package/src/components/bs5/icons/_icons.variables.scss +7 -6
- package/src/components/bs5/icons/icons.scss +2 -1
- package/src/components/bs5/inpageAlert/inpageAlert.data.json +1 -1
- package/src/components/bs5/inpageAlert/inpageAlert.hbs +10 -2
- package/src/components/bs5/inpageAlert/inpageAlert.scss +52 -55
- package/src/components/bs5/inpageAlert/inpageAlert.stories.js +54 -3
- package/src/components/bs5/inpagenav/inpagenav.scss +9 -1
- package/src/components/bs5/modal/modal.scss +1 -1
- package/src/components/bs5/navbar/navbar.functions.js +39 -28
- package/src/components/bs5/navbar/navbar.scss +43 -28
- package/src/components/bs5/navbar/navbar.stories.js +4 -3
- package/src/components/bs5/pageLayout/PaletteShowcase.stories.js +4 -3
- package/src/components/bs5/pagination/pagination.data.json +4 -4
- package/src/components/bs5/pagination/pagination.hbs +7 -2
- package/src/components/bs5/pagination/pagination.scss +1 -1
- package/src/components/bs5/promotionalPanel/promotionalPanel.data.json +45 -47
- package/src/components/bs5/promotionalPanel/promotionalPanel.hbs +1 -1
- package/src/components/bs5/quickexit/quickexit.scss +1 -1
- package/src/components/bs5/searchInput/__snapshots__/searchInput.test.js.snap +16 -16
- package/src/components/bs5/searchInput/search.functions.js +70 -71
- package/src/components/bs5/searchInput/searchInput.data.json +1 -0
- package/src/components/bs5/searchInput/searchInput.hbs +11 -9
- package/src/components/bs5/searchInput/searchInput.scss +92 -38
- package/src/components/bs5/searchInput/searchInput.test.js +91 -119
- package/src/components/bs5/sidenav/sidenav.scss +17 -19
- package/src/components/bs5/skiplinks/skipLinks.scss +12 -4
- package/src/components/bs5/table/table.scss +93 -83
- package/src/components/common/focus-styles/focusStyles.mdx +20 -0
- package/src/components/common/focus-styles/focusStyles.stories.js +58 -0
- package/src/css/functions/_index.scss +3 -0
- package/src/css/functions/color-icon.scss +31 -0
- package/src/css/functions/string-replace.scss +49 -0
- package/src/css/functions/svg-encode.scss +22 -0
- package/src/css/main.scss +3 -0
- package/src/css/mixins/focusable.scss +1 -1
- package/src/css/mixins/make-icon.scss +1 -1
- package/src/css/mixins/make-link.scss +13 -10
- package/src/css/qld-palettes.scss +20 -12
- package/src/css/qld-reduced-motion.scss +51 -0
- package/src/css/qld-tokens.scss +3 -3
- package/src/css/qld-type.scss +11 -13
- package/src/css/qld-utilities.scss +9 -1
- package/src/css/qld-variables.scss +1 -1
- package/src/img/icons-sprite.svg +24 -24
- package/src/js/constants.js +10 -0
- package/src/js/qld.bootstrap.js +99 -151
- package/src/js/utils.js +3 -1
|
@@ -1,28 +1,4 @@
|
|
|
1
1
|
<svg xmlns="http://www.w3.org/2000/svg" role="img">
|
|
2
|
-
<symbol id="qgds-icon-spinner-step-1" viewBox="0 0 32 32">
|
|
3
|
-
<path fill="currentColor" d="M29.988 8.231A16 16 0 1 1 16.928.027l-.17 2.93a13.064 13.064 0 1 0 10.663 6.7l2.567-1.426Z"></path>
|
|
4
|
-
</symbol>
|
|
5
|
-
|
|
6
|
-
<symbol id="qgds-icon-spinner-step-2" viewBox="0 0 32 32">
|
|
7
|
-
<path fill="currentColor" d="M23.768 29.988a16 16 0 1 1 8.205-13.06l-2.93-.17a13.064 13.064 0 1 0-6.7 10.663l1.425 2.567Z"></path>
|
|
8
|
-
</symbol>
|
|
9
|
-
|
|
10
|
-
<symbol id="qgds-icon-spinner-step-3" viewBox="0 0 32 32">
|
|
11
|
-
<path fill="currentColor" d="M2.013 23.768a16 16 0 1 1 13.059 8.205l.17-2.93a13.064 13.064 0 1 0-10.663-6.7l-2.566 1.425Z"></path>
|
|
12
|
-
</symbol>
|
|
13
|
-
|
|
14
|
-
<symbol id="qgds-icon-spinner-step-4" viewBox="0 0 32 32">
|
|
15
|
-
<path fill="currentColor" d="M8.231 2.012a16 16 0 1 1-8.204 13.06l2.93.17a13.064 13.064 0 1 0 6.7-10.663L8.23 2.012Z"></path>
|
|
16
|
-
</symbol>
|
|
17
|
-
|
|
18
|
-
<symbol id="qgds-icon-x" viewBox="0 0 32 32">
|
|
19
|
-
<path fill="currentColor" d="M22.21 6.25h3.282l-7.219 8.297 8.532 11.203h-6.657l-5.25-6.797-5.953 6.797H5.617l7.735-8.813L5.195 6.25h6.844l4.688 6.234L22.21 6.25Zm-1.17 17.531h1.827L11.055 8.125h-1.97L21.04 23.781Z"></path>
|
|
20
|
-
</symbol>
|
|
21
|
-
|
|
22
|
-
<symbol id="qgds-icon-youtube" viewBox="0 0 32 32">
|
|
23
|
-
<path fill="currentColor" d="M28.258 9.86c.562 1.968.562 6.187.562 6.187s0 4.172-.562 6.187a3.127 3.127 0 0 1-2.25 2.25C23.992 25 16.023 25 16.023 25s-8.015 0-10.03-.516a3.127 3.127 0 0 1-2.25-2.25c-.563-2.015-.563-6.187-.563-6.187s0-4.219.562-6.188c.281-1.125 1.172-2.015 2.25-2.296C8.008 7 16.023 7 16.023 7s7.97 0 9.985.563c1.078.28 1.969 1.171 2.25 2.296Zm-14.86 9.984 6.657-3.797-6.657-3.797v7.594Z"></path>
|
|
24
|
-
</symbol>
|
|
25
|
-
|
|
26
2
|
<symbol id="qgds-icon-accessibility" viewBox="0 0 32 32">
|
|
27
3
|
<path fill="currentColor" d="M15.933 7.738c-.793 0-1.457-.267-1.992-.802-.535-.535-.803-1.2-.803-1.992 0-.793.268-1.458.803-1.993.535-.535 1.2-.802 1.992-.802.793 0 1.457.267 1.993.802.535.535.802 1.2.802 1.993 0 .793-.267 1.457-.802 1.992-.535.535-1.2.802-1.993.802ZM11.805 28.1V12.215a53.57 53.57 0 0 1-3.343-.396 43.696 43.696 0 0 1-3.262-.616 1.505 1.505 0 0 1-.978-.663 1.48 1.48 0 0 1-.212-1.148 1.24 1.24 0 0 1 .7-.918 1.77 1.77 0 0 1 1.198-.138c1.608.342 3.263.596 4.963.763a51.862 51.862 0 0 0 10.175 0 46.103 46.103 0 0 0 5.046-.763 1.767 1.767 0 0 1 1.198.138c.38.187.614.493.7.918.085.417.015.8-.212 1.148a1.506 1.506 0 0 1-.978.663c-1.067.244-2.154.45-3.262.616a53.564 53.564 0 0 1-3.343.396V28.1c0 .395-.14.732-.42 1.013-.281.28-.619.42-1.013.42a1.38 1.38 0 0 1-1.013-.42 1.38 1.38 0 0 1-.42-1.013v-6.72h-2.657v6.72c0 .395-.14.732-.42 1.013-.281.28-.619.42-1.014.42a1.38 1.38 0 0 1-1.012-.42 1.38 1.38 0 0 1-.42-1.013Z"></path>
|
|
28
4
|
</symbol>
|
|
@@ -400,6 +376,22 @@
|
|
|
400
376
|
<path fill="currentColor" d="M7.842 23.526 4.82 26.548c-.337.337-.724.414-1.162.231-.439-.182-.658-.512-.658-.988V5.141c0-.589.21-1.092.63-1.512A2.056 2.056 0 0 1 5.14 3h21.72c.588 0 1.091.21 1.51.63.42.419.63.922.63 1.51v16.246a2.06 2.06 0 0 1-.63 1.511c-.419.42-.922.63-1.51.63H7.842Zm-.744-1.72H26.86a.403.403 0 0 0 .29-.13.403.403 0 0 0 .13-.29V5.14a.403.403 0 0 0-.13-.29.403.403 0 0 0-.29-.13H5.14a.403.403 0 0 0-.29.13.403.403 0 0 0-.13.29v19.14l2.378-2.473Zm3.197-7.383c.335 0 .62-.118.856-.354s.354-.522.354-.857c0-.335-.118-.62-.354-.856a1.167 1.167 0 0 0-.856-.354c-.341 0-.628.118-.861.354-.233.236-.35.521-.35.856 0 .335.117.62.35.857.233.236.52.354.86.354Zm5.756 0c.335 0 .62-.118.857-.354a1.17 1.17 0 0 0 .353-.857c0-.335-.118-.62-.353-.856a1.167 1.167 0 0 0-.857-.354c-.335 0-.62.118-.857.354a1.167 1.167 0 0 0-.354.856c0 .335.118.62.354.857.236.236.522.354.857.354Zm5.64 0c.335 0 .62-.118.857-.354.236-.236.354-.522.354-.857 0-.335-.118-.62-.354-.856a1.167 1.167 0 0 0-.857-.354c-.335 0-.62.118-.856.354a1.167 1.167 0 0 0-.354.856c0 .335.118.62.354.857.236.236.521.354.856.354Z"></path>
|
|
401
377
|
</symbol>
|
|
402
378
|
|
|
379
|
+
<symbol id="qgds-icon-spinner-step-1" viewBox="0 0 32 32">
|
|
380
|
+
<path fill="currentColor" d="M29.988 8.231A16 16 0 1 1 16.928.027l-.17 2.93a13.064 13.064 0 1 0 10.663 6.7l2.567-1.426Z"></path>
|
|
381
|
+
</symbol>
|
|
382
|
+
|
|
383
|
+
<symbol id="qgds-icon-spinner-step-2" viewBox="0 0 32 32">
|
|
384
|
+
<path fill="currentColor" d="M23.768 29.988a16 16 0 1 1 8.205-13.06l-2.93-.17a13.064 13.064 0 1 0-6.7 10.663l1.425 2.567Z"></path>
|
|
385
|
+
</symbol>
|
|
386
|
+
|
|
387
|
+
<symbol id="qgds-icon-spinner-step-3" viewBox="0 0 32 32">
|
|
388
|
+
<path fill="currentColor" d="M2.013 23.768a16 16 0 1 1 13.059 8.205l.17-2.93a13.064 13.064 0 1 0-10.663-6.7l-2.566 1.425Z"></path>
|
|
389
|
+
</symbol>
|
|
390
|
+
|
|
391
|
+
<symbol id="qgds-icon-spinner-step-4" viewBox="0 0 32 32">
|
|
392
|
+
<path fill="currentColor" d="M8.231 2.012a16 16 0 1 1-8.204 13.06l2.93.17a13.064 13.064 0 1 0 6.7-10.663L8.23 2.012Z"></path>
|
|
393
|
+
</symbol>
|
|
394
|
+
|
|
403
395
|
<symbol id="qgds-icon-spreadsheet" viewBox="0 0 32 32">
|
|
404
396
|
<path fill="currentColor" d="M4 25.347V6.63c0-.72.258-1.338.774-1.854A2.557 2.557 0 0 1 6.653 4H25.37c.72 0 1.338.258 1.854.775A2.53 2.53 0 0 1 28 6.629v18.706c0 .714-.258 1.336-.775 1.868-.516.531-1.134.797-1.854.797H6.653a2.558 2.558 0 0 1-1.879-.774A2.558 2.558 0 0 1 4 25.347Zm1.8-14.644h20.4V6.665a.842.842 0 0 0-.243-.622.842.842 0 0 0-.622-.244H6.665a.842.842 0 0 0-.622.244.842.842 0 0 0-.244.622v4.038Zm7.383 7.749h5.634v-5.95h-5.634v5.95Zm0 7.749h5.634v-5.95h-5.634v5.95Zm-7.384-7.75h5.62v-5.949h-5.62v5.95Zm14.806 0H26.2v-5.949h-5.596v5.95Zm-13.94 7.75h4.754v-5.95h-5.62v5.084c0 .253.081.46.244.622a.84.84 0 0 0 .622.244Zm13.94 0h4.73c.253 0 .46-.081.622-.244a.842.842 0 0 0 .244-.622v-5.084h-5.596v5.95Z"></path>
|
|
405
397
|
</symbol>
|
|
@@ -472,6 +464,14 @@
|
|
|
472
464
|
<path fill="currentColor" d="M11.627 29.59c-1.837 0-3.401-.652-4.692-1.956C5.645 26.33 5 24.759 5 22.922c0-1.594.512-3.002 1.536-4.226a6.506 6.506 0 0 1 3.882-2.282c.292-.068.562-.02.81.142.25.162.408.39.476.682a.986.986 0 0 1-.14.804c-.164.244-.391.4-.683.468a4.345 4.345 0 0 0-2.668 1.525 4.349 4.349 0 0 0-1.05 2.887c0 1.238.436 2.294 1.31 3.167.873.874 1.934 1.31 3.182 1.31 1.05 0 1.98-.323 2.79-.97a4.438 4.438 0 0 0 1.585-2.473c.092-.292.26-.517.504-.675a.907.907 0 0 1 .805-.099c.292.093.517.263.675.512.158.248.19.519.098.81a6.503 6.503 0 0 1-2.37 3.664 6.503 6.503 0 0 1-4.115 1.422ZM22.135 8.185a2.5 2.5 0 0 1-1.835-.757 2.5 2.5 0 0 1-.757-1.836 2.5 2.5 0 0 1 .757-1.835A2.5 2.5 0 0 1 22.135 3c.72 0 1.329.252 1.829.757s.75 1.116.75 1.835c0 .72-.25 1.331-.75 1.836a2.48 2.48 0 0 1-1.829.757Zm-6.322 13.35c-1.01 0-1.798-.434-2.36-1.303-.563-.869-.633-1.773-.21-2.712l2.806-6.188h-3.46l-.577 1.508a1.046 1.046 0 0 1-.525.581.963.963 0 0 1-.789.062 1.063 1.063 0 0 1-.659-.558.998.998 0 0 1-.029-.867l.558-1.505c.188-.488.482-.86.883-1.114a2.5 2.5 0 0 1 1.368-.38h6.54c.962 0 1.692.373 2.192 1.12.5.749.548 1.578.143 2.49l-2.78 6.08h4.885c.691 0 1.28.245 1.766.736.486.49.73 1.082.73 1.773v5.809c0 .307-.104.564-.311.77-.207.208-.464.311-.771.311s-.564-.103-.771-.31a1.046 1.046 0 0 1-.31-.771V21.84a.314.314 0 0 0-.077-.221c-.05-.056-.127-.084-.228-.084h-8.014Z"></path>
|
|
473
465
|
</symbol>
|
|
474
466
|
|
|
467
|
+
<symbol id="qgds-icon-x" viewBox="0 0 32 32">
|
|
468
|
+
<path fill="currentColor" d="M22.21 6.25h3.282l-7.219 8.297 8.532 11.203h-6.657l-5.25-6.797-5.953 6.797H5.617l7.735-8.813L5.195 6.25h6.844l4.688 6.234L22.21 6.25Zm-1.17 17.531h1.827L11.055 8.125h-1.97L21.04 23.781Z"></path>
|
|
469
|
+
</symbol>
|
|
470
|
+
|
|
471
|
+
<symbol id="qgds-icon-youtube" viewBox="0 0 32 32">
|
|
472
|
+
<path fill="currentColor" d="M28.258 9.86c.562 1.968.562 6.187.562 6.187s0 4.172-.562 6.187a3.127 3.127 0 0 1-2.25 2.25C23.992 25 16.023 25 16.023 25s-8.015 0-10.03-.516a3.127 3.127 0 0 1-2.25-2.25c-.563-2.015-.563-6.187-.563-6.187s0-4.219.562-6.188c.281-1.125 1.172-2.015 2.25-2.296C8.008 7 16.023 7 16.023 7s7.97 0 9.985.563c1.078.28 1.969 1.171 2.25 2.296Zm-14.86 9.984 6.657-3.797-6.657-3.797v7.594Z"></path>
|
|
473
|
+
</symbol>
|
|
474
|
+
|
|
475
475
|
<symbol id="qgds-icon-zoom" viewBox="0 0 32 32">
|
|
476
476
|
<path fill="currentColor" d="M11 13.05H8.78c-.295 0-.541-.1-.74-.3-.2-.2-.299-.448-.299-.744s.1-.542.299-.739c.199-.196.445-.295.74-.295H11V8.781c0-.295.1-.541.3-.74.2-.2.449-.299.745-.299s.542.1.739.299c.196.199.295.445.295.74v2.191h2.19c.295 0 .542.1.741.3.2.2.299.449.299.745s-.1.543-.299.74a1.013 1.013 0 0 1-.74.294h-2.191v2.219c0 .294-.1.541-.3.74-.201.2-.45.299-.745.299A1.013 1.013 0 0 1 11 15.269v-2.218Zm1.073 9.018c-2.815 0-5.198-.975-7.148-2.924C2.975 17.195 2 14.826 2 12.037c0-2.79.974-5.16 2.924-7.111C6.873 2.976 9.244 2 12.037 2c2.794 0 5.166.975 7.116 2.924 1.95 1.95 2.926 4.32 2.926 7.11a9.823 9.823 0 0 1-.596 3.385 9.62 9.62 0 0 1-1.676 2.924l9.889 9.845c.199.19.301.438.307.74.005.302-.097.556-.307.763-.21.206-.464.309-.76.309a.996.996 0 0 1-.748-.315l-9.862-9.861a8.99 8.99 0 0 1-2.87 1.657 9.935 9.935 0 0 1-3.383.587Zm-.017-2.079c2.217 0 4.096-.771 5.635-2.314C19.23 16.13 20 14.25 20 12.034c0-2.218-.77-4.098-2.31-5.64-1.538-1.544-3.417-2.316-5.634-2.316-2.227 0-4.113.772-5.659 2.315-1.546 1.543-2.319 3.423-2.319 5.64 0 2.218.773 4.098 2.32 5.642 1.545 1.543 3.431 2.314 5.658 2.314Z"></path>
|
|
477
477
|
</symbol>
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
"use strict";(()=>{function p(r,t,e){switch(t){case"==":return r==e;case"===":return r===e;case"!=":return r!=e;case"!==":return r!==e;case"<":return r<e;case"<=":return r<=e;case">":return r>e;case">=":return r>=e;case"&&":return r&&e;case"||":return r||e;case"in":return typeof r=="string"&&typeof e=="string"?e.split(",").map(n=>n.trim()).includes(r):!1;case"contains":return typeof r=="string"&&typeof e=="string"?r.toLowerCase().indexOf(e.toLowerCase())>=0:!1;default:return!1}}function c(r){r.registerHelper("contains",function(t,e,n){return t=r.escapeExpression(t),e=r.escapeExpression(e),e.indexOf(t)>-1?n.fn(this):n.inverse(this)}),r.registerHelper("ifCond",function(t,e,n,i){return p(t,e,n)?i.fn(this):i.inverse(this)}),r.registerHelper("cond",(t,e,n)=>p(t,e,n)),r.registerHelper("isType",function(t,e,n){return t===e?n.fn(this):n.inverse(this)}),r.registerHelper("ifAny",function(...t){let e=t.pop();return t.some(n=>!!n)?e.fn(this):e.inverse(this)}),r.registerHelper("ifAll",function(...t){let e=t.pop();return t.every(n=>!!n)?e.fn(this):e.inverse(this)}),r.registerHelper("now",function(){return new Date().toISOString()}),r.registerHelper("formatDate",function(t,e,n){let i;if(t&&(i=new Date(t)),isNaN(i)&&e&&(i=new Date(e)),isNaN(i))return"Invalid Date";var s=["January","February","March","April","May","June","July","August","September","October","November","December"],u=i.getDate(),o=s[i.getMonth()],f=i.getFullYear();switch(n){case"YYYY":return`${f}`;case"MMMM YYYY":return`${o} ${f}`;default:return`${u} ${o} ${f}`}}),r.registerHelper("formatDateOrToday",function(t,e){let n=t||new Date().toISOString();return r.helpers.formatDate(t,n,e)}),r.registerHelper("formatDuration",function(t,e){if(!t)return"";if(typeof t=="string"&&e!=="long")return t;let n="",i=[],s,u,o;if(typeof t=="string"){let f=t.split(":");o=f[0],f.length==2?[u="",o=""]=f:f.length==3&&([s="",u="",o=""]=f)}else[s="",u="",o=""]=t;return e==="long"?(s>0&&i.push(`${s} hour${s>1?"s":""}`),u>0&&i.push(`${u} minute${u>1?"s":""}`),o>0&&i.push(`${o} second${o>1?"s":""}`),n=i.join(" ")):(s>0&&i.push(s.toString().padStart(2,0)),i.push(u.toString().padStart(2,0)),i.push(o.toString().padStart(2,0)),n=i.join(":")),n}),r.registerHelper("isdefined",function(t,e){return t!==void 0&&t!==""?t:e}),r.registerHelper("getClassNames",function(t,e){let n=t.split(",").map(s=>s.trim()),i=[];for(let s=0;s<n.length;s++){let u=n[s];if(e){for(let o=0;o<e.length;o++)if(e[o][u]===!0){i.push(u);break}}}return i.length>0?i.join(" "):""}),r.registerHelper("join",function(t,e){return(!e||typeof e!="string")&&(e=" "),Array.isArray(t)?t.join(e):t}),r.registerHelper("toCamelCase",function(t){return typeof t!="string"?t:t.toLowerCase().replace(/(?:^\w|[A-Z]|\b\w|\s+)/g,(e,n)=>n===0?e.toLowerCase():e.toUpperCase()).replace(/\s+/g,"")})}typeof Handlebars!="undefined"&&c(Handlebars);})();
|
|
2
|
-
//# @qld-gov-au/qgds-bootstrap5 - v2.
|
|
2
|
+
//# @qld-gov-au/qgds-bootstrap5 - v2.1.1
|
|
3
3
|
//# sourceMappingURL=handlebars.helpers.bundle.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";(()=>{function c(e,a,i){switch(a){case"==":return e==i;case"===":return e===i;case"!=":return e!=i;case"!==":return e!==i;case"<":return e<i;case"<=":return e<=i;case">":return e>i;case">=":return e>=i;case"&&":return e&&i;case"||":return e||i;case"in":return typeof e=="string"&&typeof i=="string"?i.split(",").map(t=>t.trim()).includes(e):!1;case"contains":return typeof e=="string"&&typeof i=="string"?e.toLowerCase().indexOf(i.toLowerCase())>=0:!1;default:return!1}}function r(e){e.registerHelper("contains",function(a,i,t){return a=e.escapeExpression(a),i=e.escapeExpression(i),i.indexOf(a)>-1?t.fn(this):t.inverse(this)}),e.registerHelper("ifCond",function(a,i,t,C){return c(a,i,t)?C.fn(this):C.inverse(this)}),e.registerHelper("cond",(a,i,t)=>c(a,i,t)),e.registerHelper("isType",function(a,i,t){return a===i?t.fn(this):t.inverse(this)}),e.registerHelper("ifAny",function(...a){let i=a.pop();return a.some(t=>!!t)?i.fn(this):i.inverse(this)}),e.registerHelper("ifAll",function(...a){let i=a.pop();return a.every(t=>!!t)?i.fn(this):i.inverse(this)}),e.registerHelper("now",function(){return new Date().toISOString()}),e.registerHelper("formatDate",function(a,i,t){let C;if(a&&(C=new Date(a)),isNaN(C)&&i&&(C=new Date(i)),isNaN(C))return"Invalid Date";var s=["January","February","March","April","May","June","July","August","September","October","November","December"],
|
|
1
|
+
"use strict";(()=>{function c(e,a,i){switch(a){case"==":return e==i;case"===":return e===i;case"!=":return e!=i;case"!==":return e!==i;case"<":return e<i;case"<=":return e<=i;case">":return e>i;case">=":return e>=i;case"&&":return e&&i;case"||":return e||i;case"in":return typeof e=="string"&&typeof i=="string"?i.split(",").map(t=>t.trim()).includes(e):!1;case"contains":return typeof e=="string"&&typeof i=="string"?e.toLowerCase().indexOf(i.toLowerCase())>=0:!1;default:return!1}}function r(e){e.registerHelper("contains",function(a,i,t){return a=e.escapeExpression(a),i=e.escapeExpression(i),i.indexOf(a)>-1?t.fn(this):t.inverse(this)}),e.registerHelper("ifCond",function(a,i,t,C){return c(a,i,t)?C.fn(this):C.inverse(this)}),e.registerHelper("cond",(a,i,t)=>c(a,i,t)),e.registerHelper("isType",function(a,i,t){return a===i?t.fn(this):t.inverse(this)}),e.registerHelper("ifAny",function(...a){let i=a.pop();return a.some(t=>!!t)?i.fn(this):i.inverse(this)}),e.registerHelper("ifAll",function(...a){let i=a.pop();return a.every(t=>!!t)?i.fn(this):i.inverse(this)}),e.registerHelper("now",function(){return new Date().toISOString()}),e.registerHelper("formatDate",function(a,i,t){let C;if(a&&(C=new Date(a)),isNaN(C)&&i&&(C=new Date(i)),isNaN(C))return"Invalid Date";var s=["January","February","March","April","May","June","July","August","September","October","November","December"],n=C.getDate(),l=s[C.getMonth()],o=C.getFullYear();switch(t){case"YYYY":return`${o}`;case"MMMM YYYY":return`${l} ${o}`;default:return`${n} ${l} ${o}`}}),e.registerHelper("formatDateOrToday",function(a,i){let t=a||new Date().toISOString();return e.helpers.formatDate(a,t,i)}),e.registerHelper("formatDuration",function(a,i){if(!a)return"";if(typeof a=="string"&&i!=="long")return a;let t="",C=[],s,n,l;if(typeof a=="string"){let o=a.split(":");l=o[0],o.length==2?[n="",l=""]=o:o.length==3&&([s="",n="",l=""]=o)}else[s="",n="",l=""]=a;return i==="long"?(s>0&&C.push(`${s} hour${s>1?"s":""}`),n>0&&C.push(`${n} minute${n>1?"s":""}`),l>0&&C.push(`${l} second${l>1?"s":""}`),t=C.join(" ")):(s>0&&C.push(s.toString().padStart(2,0)),C.push(n.toString().padStart(2,0)),C.push(l.toString().padStart(2,0)),t=C.join(":")),t}),e.registerHelper("isdefined",function(a,i){return a!==void 0&&a!==""?a:i}),e.registerHelper("getClassNames",function(a,i){let t=a.split(",").map(s=>s.trim()),C=[];for(let s=0;s<t.length;s++){let n=t[s];if(i){for(let l=0;l<i.length;l++)if(i[l][n]===!0){C.push(n);break}}}return C.length>0?C.join(" "):""}),e.registerHelper("join",function(a,i){return(!i||typeof i!="string")&&(i=" "),Array.isArray(a)?a.join(i):a}),e.registerHelper("toCamelCase",function(a){return typeof a!="string"?a:a.toLowerCase().replace(/(?:^\w|[A-Z]|\b\w|\s+)/g,(i,t)=>t===0?i.toLowerCase():i.toUpperCase()).replace(/\s+/g,"")})}typeof Handlebars!="undefined"&&r(Handlebars);var f=`<!-- QGDS Component: Accordion -->
|
|
2
2
|
<div class="accordion-group">
|
|
3
3
|
{{#if toggleAll}}
|
|
4
4
|
<div class="accordion-toggle">
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
{{/each }}
|
|
24
24
|
</div>
|
|
25
25
|
</div>
|
|
26
|
-
`;var
|
|
26
|
+
`;var p=`{{#unless hide_back_to_top}}
|
|
27
27
|
<div class="back-to-top d-print-none">
|
|
28
28
|
{{> directionLinks
|
|
29
29
|
label= (isdefined directionalLink.label "Back to top")
|
|
@@ -145,7 +145,7 @@
|
|
|
145
145
|
|
|
146
146
|
{{#unless islink}}
|
|
147
147
|
|
|
148
|
-
<button class="btn {{variantClass}} {{#if isprogress}}btn-progress{{/if}}
|
|
148
|
+
<button class="btn {{variantClass}} {{#if isprogress}}btn-progress{{/if}}" onclick="{{{onclick}}}" {{#if isdisabled}}disabled{{/if}} {{#if isprogress}}disabled aria-live="polite"{{/if}} {{#if arialabel}}aria-label="{{arialabel}}"{{/if}} {{{dataatts}}} {{#if progressLabel}}data-progress-label="{{progressLabel}}"{{/if}}>
|
|
149
149
|
{{#if isprogress}}
|
|
150
150
|
{{~>progressSpinner~}}
|
|
151
151
|
{{else}}
|
|
@@ -202,9 +202,9 @@
|
|
|
202
202
|
</div>
|
|
203
203
|
`;var L=`<a class="qld-cta-link {{getClassNames "small, view-all" class}}"
|
|
204
204
|
{{#if id}}id="{{id}}"{{/if}}
|
|
205
|
-
href="{{href}}"
|
|
206
|
-
target="{{target}}"
|
|
207
|
-
{{#if arialabel}}aria-label="{{arialabel}}"{{/if}}
|
|
205
|
+
href="{{href}}"
|
|
206
|
+
target="{{target}}"
|
|
207
|
+
{{#if arialabel}}aria-label="{{arialabel}}"{{/if}}
|
|
208
208
|
>
|
|
209
209
|
{{label}}
|
|
210
210
|
<span class="icon" aria-hidden="true"></span>
|
|
@@ -677,17 +677,15 @@
|
|
|
677
677
|
{{#if title}}<h1>{{title}}</h1>{{/if}}
|
|
678
678
|
{{> @partial-block }}
|
|
679
679
|
</div>
|
|
680
|
-
`;var
|
|
681
|
-
<ul class="nav footer-link-list footer-link-list--custom flex-column">
|
|
680
|
+
`;var x="";var w=`{{#if customLinks }}
|
|
681
|
+
<ul class="nav footer-link-list footer-link-list--custom flex-column">
|
|
682
682
|
{{#each customLinks }}
|
|
683
683
|
<li><a class="nav-link" href="{{ link }}" {{#if target }} target="_blank" {{/if}}>{{ label }}</a></li>
|
|
684
684
|
{{/each }}
|
|
685
685
|
</ul>
|
|
686
|
-
{{/if}}`;var
|
|
686
|
+
{{/if}}`;var S=`<!-- QGDS Component: Date input -->
|
|
687
687
|
|
|
688
|
-
<label id="{{id}}-label"
|
|
689
|
-
class="qld-text-input-label {{#if isRequired}}field-required{{/if}} {{#if isDisabled}}field-disabled{{/if}}"
|
|
690
|
-
for="{{id}}">
|
|
688
|
+
<label id="{{id}}-label" class="qld-text-input-label {{#if isRequired}}field-required{{/if}} {{#if isDisabled}}field-disabled{{/if}}" for="{{id}}">
|
|
691
689
|
{{label-text}}
|
|
692
690
|
{{#if optional-text}}
|
|
693
691
|
<span class="label-text-optional">({{optional-text}})</span>
|
|
@@ -697,57 +695,53 @@
|
|
|
697
695
|
{{#if hint-text}}
|
|
698
696
|
<span class="qld-hint-text" id="{{id}}-hint">{{hint-text}}</span>
|
|
699
697
|
{{/if}}
|
|
700
|
-
|
|
701
698
|
{{#contains "qld-input-success" customClass}}{{! legacy support for feedback classes \`qld-input-success\`}}
|
|
702
699
|
<span class="qld-input-success">{{successMessageText}}</span>
|
|
703
|
-
{{else}}
|
|
704
|
-
{{#if successMessageText}}{{! updated bootstrap style classes - \`valid-feedback\`}}
|
|
700
|
+
{{else if successMessageText}}{{! updated bootstrap style classes - \`valid-feedback\`}}
|
|
705
701
|
<div class="valid-feedback">{{successMessageText}}</div>
|
|
706
|
-
{{/
|
|
707
|
-
|
|
702
|
+
{{/contains}}
|
|
708
703
|
{{#contains "qld-input-error" customClass}}{{! legacy support for feedback classes \`qld-input-error\`}}
|
|
709
704
|
<span class="qld-input-error">{{errorMessageText}}</span>
|
|
710
|
-
{{else}}
|
|
711
|
-
{{#if errorMessageText}}{{! updated bootstrap style classes - \`invalid-feedback\`}}
|
|
705
|
+
{{else if errorMessageText}}{{! updated bootstrap style classes - \`invalid-feedback\`}}
|
|
712
706
|
<div class="invalid-feedback">{{errorMessageText}}</div>
|
|
713
|
-
{{/
|
|
707
|
+
{{/contains}}
|
|
714
708
|
|
|
715
709
|
<div aria-labelledby="{{id}}-label" role="group" class="row date-container {{customClass}}">
|
|
716
710
|
<!-- day group -->
|
|
717
711
|
<div class="day-group">
|
|
718
712
|
<label id="{{id}}-dayinput-label" for="{{id}}-dayinput" class="date-label qld-text-input-label">Day</label>
|
|
719
713
|
<div>
|
|
720
|
-
<input id="{{id}}-dayinput" aria-
|
|
721
|
-
inputmode="numeric" maxlength="2"
|
|
722
|
-
class="
|
|
723
|
-
|
|
724
|
-
{{/if}}>
|
|
714
|
+
<input id="{{id}}-dayinput" aria-labelledby="{{id}}-label {{id}}-dayinput-label" placeholder="{{day-placeholder}}" type="text"
|
|
715
|
+
inputmode="numeric" maxlength="2" minlength="2" min="1" max="31" pattern="^(0?[1-9]|[12][0-9]|3[01])$"
|
|
716
|
+
class="form-control dayinput {{customClass}} {{#if isFilled}}form-style-filled{{/if}}
|
|
717
|
+
{{#if isValid}}is-valid{{else}}{{#ifCond isValid "===" false}}is-invalid{{/ifCond}}{{/if}}" ref="day"
|
|
718
|
+
aria-invalid="false" {{#if isDisabled}}disabled{{/if}} {{#if isRequired}}required{{/if}}>
|
|
725
719
|
</div>
|
|
726
720
|
</div>
|
|
727
721
|
<!-- month group -->
|
|
728
722
|
<div class="date-group">
|
|
729
723
|
<label id="{{id}}-monthinput-label" for="{{id}}-monthinput" class="date-label qld-text-input-label">Month</label>
|
|
730
724
|
<div>
|
|
731
|
-
<input id="{{id}}-monthinput" aria-
|
|
732
|
-
type="text" inputmode="numeric" maxlength="2"
|
|
733
|
-
class="
|
|
734
|
-
|
|
735
|
-
{{/if}}>
|
|
725
|
+
<input id="{{id}}-monthinput" aria-labelledby="{{id}}-label {{id}}-monthinput-label" placeholder="{{month-placeholder}}"
|
|
726
|
+
type="text" inputmode="numeric" maxlength="2" minlength="2" min="1" max="12" pattern="^(0?[1-9]|[1][0-2])$"
|
|
727
|
+
class="form-control monthinput {{customClass}} {{#if isFilled}}form-style-filled{{/if}}
|
|
728
|
+
{{#if isValid}}is-valid{{else}}{{#ifCond isValid "===" false}}is-invalid{{/ifCond}}{{/if}}" ref="month"
|
|
729
|
+
aria-invalid="false" {{#if isDisabled}}disabled{{/if}} {{#if isRequired}}required{{/if}}>
|
|
736
730
|
</div>
|
|
737
731
|
</div>
|
|
738
732
|
<!-- year group -->
|
|
739
733
|
<div class="date-group">
|
|
740
|
-
<label id="{{id}}-yearinput-label" for="{{id}}-yearinput" class="date-label">Year</label>
|
|
734
|
+
<label id="{{id}}-yearinput-label" for="{{id}}-yearinput" class="date-label qld-text-input-label">Year</label>
|
|
741
735
|
<div class="year-label">
|
|
742
|
-
<input id="{{id}}-yearinput" aria-
|
|
743
|
-
placeholder="{{year-placeholder}}" type="text" inputmode="numeric" maxlength="4"
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
isRequired}}required{{/if}}>
|
|
736
|
+
<input id="{{id}}-yearinput" aria-labelledby="{{id}}-label {{id}}-yearinput-label"
|
|
737
|
+
placeholder="{{year-placeholder}}" type="text" inputmode="numeric" maxlength="4" minlength="4" pattern="[0-9]*"
|
|
738
|
+
{{#if yearMin}}min="{{yearMin}}"{{/if}} {{#if yearMax}}max="{{yearMax}}"{{/if}}
|
|
739
|
+
class="form-control yearinput {{customClass}} {{#if isFilled}}form-style-filled{{/if}} {{#if isValid}}is-valid{{else}}{{#ifCond isValid "===" false}}is-invalid{{/ifCond}}{{/if}}"
|
|
740
|
+
ref="year" aria-invalid="false" {{#if isDisabled}}disabled{{/if}} {{#if isRequired}}required{{/if}}>
|
|
747
741
|
</div>
|
|
748
742
|
</div>
|
|
749
743
|
</div>
|
|
750
|
-
`;var
|
|
744
|
+
`;var T=`{{! valid class values are: up, down, left, right}}
|
|
751
745
|
<a class="qld-dir-link {{class}}"
|
|
752
746
|
{{~#if id}} id="{{id}}" {{/if~}}
|
|
753
747
|
href="{{href}}"
|
|
@@ -788,12 +782,12 @@
|
|
|
788
782
|
<span class="qld-icon qld-icon-md qld-icon-{{icon}} d-lg-none" aria-hidden="true"></span>
|
|
789
783
|
<span class="qld-icon qld-icon-sm qld-icon-{{icon}} d-none d-lg-block" aria-hidden="true"></span>
|
|
790
784
|
<span class="nav-link-label d-none d-lg-block">{{ label }}</span>
|
|
791
|
-
<span class="sr-only">{{ label
|
|
785
|
+
<span class="sr-only">{{isdefined accessibleLabel label}}</span>
|
|
792
786
|
</a>
|
|
793
787
|
</li>
|
|
794
788
|
{{/each }}
|
|
795
789
|
</ul>
|
|
796
|
-
{{/if}}`;var
|
|
790
|
+
{{/if}}`;var P=`<footer class="qld-footer {{ variantClass }}" role="contentinfo">
|
|
797
791
|
<!-- Footer content container -->
|
|
798
792
|
<div class="container">
|
|
799
793
|
{{#if sitename}}
|
|
@@ -1036,7 +1030,7 @@
|
|
|
1036
1030
|
</div>
|
|
1037
1031
|
</div>
|
|
1038
1032
|
</div>
|
|
1039
|
-
</footer>`;var
|
|
1033
|
+
</footer>`;var O=`
|
|
1040
1034
|
{{#if questionLabel}}
|
|
1041
1035
|
<div class="qld-text-input-label {{listClasses}}">
|
|
1042
1036
|
{{questionLabel}}
|
|
@@ -1081,12 +1075,18 @@
|
|
|
1081
1075
|
{{> @partial-block }}
|
|
1082
1076
|
{{/mainContainerWrapper}}
|
|
1083
1077
|
</body>
|
|
1084
|
-
</html>`;var
|
|
1078
|
+
</html>`;var I=`<!-- QGDS Component: Global Alert -->
|
|
1085
1079
|
|
|
1086
1080
|
<div class="global-alert-include">
|
|
1087
1081
|
{{#each alertItems}}
|
|
1088
1082
|
<section role="region" class="global-alert alert container-full d-none {{variant}}" data-variant="{{variant}}"
|
|
1089
|
-
|
|
1083
|
+
{{#if ariaLabel}} aria-label="{{ ariaLabel }}"
|
|
1084
|
+
{{~else ifCond variant "==" "global-alert-critical"}} aria-label="Critical alert"
|
|
1085
|
+
{{~else ifCond variant "==" "global-alert-info"}} aria-label="Informational alert"
|
|
1086
|
+
{{~else ifCond variant "==" "global-alert-warning"}} aria-label="Warning alert"
|
|
1087
|
+
{{~else}} aria-label="Informational alert"
|
|
1088
|
+
{{~/if}}
|
|
1089
|
+
{{#if id}} data-id="{{id}}" {{/if}}{{#if dismissedExpiryDays}}
|
|
1090
1090
|
data-expiry-days="{{dismissedExpiryDays}}" {{/if}}>
|
|
1091
1091
|
<div class="qld-global-alert-main">
|
|
1092
1092
|
<div class="global-alert-icon">
|
|
@@ -1096,6 +1096,7 @@
|
|
|
1096
1096
|
<span class="qld-icon qld-icon-sm qld-icon-alert-information" aria-hidden="true"></span>
|
|
1097
1097
|
{{else ifCond variant '==' 'global-alert-warning'}}
|
|
1098
1098
|
<span class="qld-icon qld-icon-sm qld-icon-alert-warning" aria-hidden="true"></span>
|
|
1099
|
+
{{else}}<span class="qld-icon qld-icon-sm qld-icon-alert-information" aria-hidden="true"></span>
|
|
1099
1100
|
{{/ifCond}}
|
|
1100
1101
|
</div>
|
|
1101
1102
|
|
|
@@ -1116,8 +1117,8 @@
|
|
|
1116
1117
|
</div>
|
|
1117
1118
|
</section>
|
|
1118
1119
|
{{/each }}
|
|
1119
|
-
</div>`;var
|
|
1120
|
-
<!-- VERSION_DETAILS={"project_id":"@qld-gov-au/qgds-bootstrap5","version":"2.
|
|
1120
|
+
</div>`;var E=`
|
|
1121
|
+
<!-- VERSION_DETAILS={"project_id":"@qld-gov-au/qgds-bootstrap5","version":"2.1.1","branch":"HEAD","tag":"v2.1.1","commit":"e9b014307ee0b957ab946f973a0bd735811415db","majorVersion":"v2"} -->
|
|
1121
1122
|
|
|
1122
1123
|
{{! Select environment, used verbatium if not using predefind key
|
|
1123
1124
|
cdn := PROD|STAGING|BETA|TEST|DEV|???
|
|
@@ -1428,8 +1429,16 @@ cdn := PROD|STAGING|BETA|TEST|DEV|???
|
|
|
1428
1429
|
{{>imageTag}}
|
|
1429
1430
|
{{/ifAny}}
|
|
1430
1431
|
{{/if}}
|
|
1431
|
-
`;var B=`<div class="alert {{variantClass}} {{customClass}}" role="alert"
|
|
1432
|
-
{{#if
|
|
1432
|
+
`;var B=`<div class="alert {{variantClass}} {{customClass}}" role="alert"
|
|
1433
|
+
{{#if ariaLabel}}
|
|
1434
|
+
aria-label="{{ ariaLabel }}"
|
|
1435
|
+
{{else}}
|
|
1436
|
+
{{#ifCond variantClass "==" "alert-info"}}aria-label="Information alert"{{/ifCond}}
|
|
1437
|
+
{{#ifCond variantClass "==" "alert-success"}}aria-label="Success alert"{{/ifCond}}
|
|
1438
|
+
{{#ifCond variantClass "==" "alert-error"}}aria-label="Error alert"{{/ifCond}}
|
|
1439
|
+
{{#ifCond variantClass "==" "alert-warning"}}aria-label="Warning alert"{{/ifCond}}
|
|
1440
|
+
{{/if}}
|
|
1441
|
+
>
|
|
1433
1442
|
{{#if heading}}
|
|
1434
1443
|
{{#if headingTag}}
|
|
1435
1444
|
<{{headingTag}} class="alert-heading">{{{ heading }}}</{{headingTag}}>
|
|
@@ -1917,8 +1926,13 @@ Reference: https://getbootstrap.com/docs/5.0/components/pagination/
|
|
|
1917
1926
|
{{! More button }}
|
|
1918
1927
|
<span></span>
|
|
1919
1928
|
{{else}}
|
|
1920
|
-
|
|
1921
|
-
|
|
1929
|
+
{{#ifCond "active" "in" customClasses}}
|
|
1930
|
+
{{! Active page - not a link }}
|
|
1931
|
+
<span class="page-link" aria-current="page" aria-label="{{#if arialabel}}{{arialabel}}{{else}}Page {{linktext}}, current page{{/if}}">{{ linktext }}</span>
|
|
1932
|
+
{{else}}
|
|
1933
|
+
{{! Page button }}
|
|
1934
|
+
<a class="page-link" href="{{href}}" aria-label="{{#if arialabel}}{{arialabel}}{{else}}Page {{linktext}}{{/if}}">{{ linktext }}</a>
|
|
1935
|
+
{{/ifCond}}
|
|
1922
1936
|
{{/if}}
|
|
1923
1937
|
</li>
|
|
1924
1938
|
|
|
@@ -1941,7 +1955,7 @@ Reference: https://getbootstrap.com/docs/5.0/components/pagination/
|
|
|
1941
1955
|
{{/ifCond}}>
|
|
1942
1956
|
<div class="image-panel">
|
|
1943
1957
|
{{#ifCond type '!=' 'promo'}}
|
|
1944
|
-
<img class="promo-panel-image" src="{{promoImage}}" alt="Promotional
|
|
1958
|
+
<img class="promo-panel-image" src="{{promoImage}}" alt="{{isdefined promoImageDescription "Promotional image"}}">
|
|
1945
1959
|
{{else}}
|
|
1946
1960
|
<div class="promo-panel-image"></div>
|
|
1947
1961
|
{{/ifCond}}
|
|
@@ -2027,38 +2041,40 @@ Reference: https://getbootstrap.com/docs/5.0/components/pagination/
|
|
|
2027
2041
|
-->
|
|
2028
2042
|
<div class="qld-search-input {{customClass}}">
|
|
2029
2043
|
<input id="{{ inputID }}" name="{{ inputName }}" class="form-control" type="text" autocomplete="off"
|
|
2030
|
-
aria-label="{{ ariaLabel }}" {{#each tags}} data-{{@key}}="{{this}}" {{/each}} />
|
|
2031
|
-
<button class="btn btn-primary" type="{{ buttonType }}" id="{{ buttonID }}">
|
|
2032
|
-
<span class="btn-icon"></span>
|
|
2044
|
+
aria-label="{{ ariaLabel }}" {{#each tags}} data-{{@key}}="{{this}}" {{/each}} placeholder="{{placeholder}}" />
|
|
2045
|
+
<button class="btn btn-primary" type="{{ buttonType }}" id="{{ buttonID }}" aria-label="{{ buttonLabel }}">
|
|
2046
|
+
<span class="btn-icon" aria-hidden="true"></span>
|
|
2033
2047
|
<span class="btn-label">{{ buttonLabel }}</span>
|
|
2034
2048
|
</button>
|
|
2035
2049
|
{{#ifCond hasDynamicSuggestions '||' hasDefaultSuggestions}}
|
|
2036
|
-
|
|
2050
|
+
|
|
2051
|
+
<div class="suggestions suggestions__group default">
|
|
2037
2052
|
{{#if hasDefaultSuggestions}}
|
|
2038
2053
|
<div class="default-suggestions">
|
|
2039
2054
|
<div class="suggestions-category">
|
|
2040
2055
|
<strong class="suggestions-category-label d-block">{{defaultSuggestions.popularServicesTitle}}</strong>
|
|
2041
2056
|
<ul>
|
|
2042
2057
|
{{#each defaultSuggestions.popularServices}}
|
|
2043
|
-
<li><a href="{{link}}">{{title}}</a></li>
|
|
2058
|
+
<li><a tabindex="0" href="{{link}}">{{title}}</a></li>
|
|
2044
2059
|
{{/each}}
|
|
2045
2060
|
{{#if defaultSuggestions.popularServicesLink}}
|
|
2046
|
-
<li><a href="{{defaultSuggestions.popularServicesLink.href}}" class="view-more">{{#if defaultSuggestions.popularServicesLink.label}}{{defaultSuggestions.popularServicesLink.label}}{{else}}View More{{/if}}</a></li>
|
|
2061
|
+
<li><a tabindex="0" href="{{defaultSuggestions.popularServicesLink.href}}" class="view-more">{{#if defaultSuggestions.popularServicesLink.label}}{{defaultSuggestions.popularServicesLink.label}}{{else}}View More{{/if}}</a></li>
|
|
2047
2062
|
{{/if}}
|
|
2048
2063
|
</ul>
|
|
2049
2064
|
</div>
|
|
2050
|
-
|
|
2065
|
+
{{#if defaultSuggestions.categories}}
|
|
2051
2066
|
<div class="suggestions-category">
|
|
2052
2067
|
<strong class="suggestions-category-label d-block">{{defaultSuggestions.categoriesTitle}}</strong>
|
|
2053
2068
|
<ul>
|
|
2054
2069
|
{{#each defaultSuggestions.categories}}
|
|
2055
|
-
<li><a href="{{link}}">{{title}}</a></li>
|
|
2070
|
+
<li><a tabindex="0"href="{{link}}">{{title}}</a></li>
|
|
2056
2071
|
{{/each}}
|
|
2057
2072
|
{{#if defaultSuggestions.categoriesLink}}
|
|
2058
|
-
<li><a href="{{defaultSuggestions.categoriesLink.href}}" class="view-more">{{#if defaultSuggestions.categoriesLink.label}}{{defaultSuggestions.categoriesLink.label}}{{else}}View More{{/if}}</a></li>
|
|
2073
|
+
<li><a tabindex="0" href="{{defaultSuggestions.categoriesLink.href}}" class="view-more">{{#if defaultSuggestions.categoriesLink.label}}{{defaultSuggestions.categoriesLink.label}}{{else}}View More{{/if}}</a></li>
|
|
2059
2074
|
{{/if}}
|
|
2060
2075
|
</ul>
|
|
2061
2076
|
</div>
|
|
2077
|
+
{{/if}}
|
|
2062
2078
|
</div>
|
|
2063
2079
|
{{/if}}
|
|
2064
2080
|
{{#if hasDynamicSuggestions}}
|
|
@@ -2066,7 +2082,7 @@ Reference: https://getbootstrap.com/docs/5.0/components/pagination/
|
|
|
2066
2082
|
{{/if}}
|
|
2067
2083
|
</div>
|
|
2068
2084
|
{{/ifCond}}
|
|
2069
|
-
</div>`;var
|
|
2085
|
+
</div>`;var n1=`<!-- QGDS Component: Select -->
|
|
2070
2086
|
|
|
2071
2087
|
<label class="qld-text-input-label {{#if isRequired}}field-required{{/if}} {{#if isDisabled}}field-disabled{{/if}}" for="{{id}}">
|
|
2072
2088
|
{{label-text}}
|
|
@@ -2100,7 +2116,7 @@ Reference: https://getbootstrap.com/docs/5.0/components/pagination/
|
|
|
2100
2116
|
<option value="2">Option 2</option>
|
|
2101
2117
|
<option value="3">Option 3</option>
|
|
2102
2118
|
</select>
|
|
2103
|
-
`;var
|
|
2119
|
+
`;var o1=`<nav class="qld-side-navigation" aria-label="Side Navigation">
|
|
2104
2120
|
<button
|
|
2105
2121
|
class="accordion-button collapsed d-lg-none"
|
|
2106
2122
|
type="button"
|
|
@@ -2200,7 +2216,7 @@ Reference: https://getbootstrap.com/docs/5.0/components/pagination/
|
|
|
2200
2216
|
Loading...
|
|
2201
2217
|
</span>
|
|
2202
2218
|
</div>
|
|
2203
|
-
`;var
|
|
2219
|
+
`;var f1=`<!-- QGDS Component: Table -->
|
|
2204
2220
|
|
|
2205
2221
|
<div class="table-responsive qld-table {{customClass}}">
|
|
2206
2222
|
|
|
@@ -2248,7 +2264,7 @@ Reference: https://getbootstrap.com/docs/5.0/components/pagination/
|
|
|
2248
2264
|
{{/if}}
|
|
2249
2265
|
|
|
2250
2266
|
</table>
|
|
2251
|
-
</div>`;var
|
|
2267
|
+
</div>`;var p1=`
|
|
2252
2268
|
{{#ifCond type_variant '==' 'section-tabs'}}
|
|
2253
2269
|
<section class="container tab-content pb-5 pt-5 mb-0 {{~#if tab_variant}} {{tab_variant}} {{else}} default{{/if~}}">
|
|
2254
2270
|
<div class="row" style="padding-inline: 2.5rem;">
|
|
@@ -2412,6 +2428,6 @@ Reference: https://getbootstrap.com/docs/5.0/components/pagination/
|
|
|
2412
2428
|
</div>
|
|
2413
2429
|
{{! Render the transcript content in an accordion template }}
|
|
2414
2430
|
</section>
|
|
2415
|
-
`;function d(e){e.registerPartial("accordion",
|
|
2416
|
-
//# @qld-gov-au/qgds-bootstrap5 - v2.
|
|
2431
|
+
`;function d(e){e.registerPartial("accordion",f),e.registerPartial("backToTop",p),e.registerPartial("banner",u),e.registerPartial("blockquote",m),e.registerPartial("breadcrumbs",g),e.registerPartial("breadcrumbsWrapper",v),e.registerPartial("button",h),e.registerPartial("callout",b),e.registerPartial("callToAction",L),e.registerPartial("card",H),e.registerPartial("containerLayout",V),e.registerPartial("contentFooter",M),e.registerPartial("contentFooterWrapper",k),e.registerPartial("contentPageWithForm",y),e.registerPartial("contentPageWithSideNavigation",q),e.registerPartial("contentWrapper",Z),e.registerPartial("correctincorrect",x),e.registerPartial("customLinks",w),e.registerPartial("dateinput",S),e.registerPartial("directionLinks",T),e.registerPartial("feedbackForm",A),e.registerPartial("followLinks",D),e.registerPartial("footer",P),e.registerPartial("formcheck",O),e.registerPartial("fullPage",R),e.registerPartial("globalAlert",I),e.registerPartial("head",E),e.registerPartial("header",_),e.registerPartial("headerBrand",N),e.registerPartial("homePage",F),e.registerPartial("icon",G),e.registerPartial("image",Q),e.registerPartial("inpageAlert",B),e.registerPartial("inpagenav",j),e.registerPartial("link",W),e.registerPartial("linkColumns",J),e.registerPartial("logo",Y),e.registerPartial("logoCOADeliveringForQLD",U),e.registerPartial("logoCOALandscape",$),e.registerPartial("logoCOALandscape2Lines",z),e.registerPartial("mainContainerWrapper",X),e.registerPartial("metaDcTerms",K),e.registerPartial("metaOpenGraph",e1),e.registerPartial("modal",i1),e.registerPartial("navbar",a1),e.registerPartial("pagination",t1),e.registerPartial("promotionalPanel",C1),e.registerPartial("quickexit",s1),e.registerPartial("searchInput",l1),e.registerPartial("select",n1),e.registerPartial("sidenav",o1),e.registerPartial("sidenavWrapper",r1),e.registerPartial("skipLinks",d1),e.registerPartial("spinner",c1),e.registerPartial("table",f1),e.registerPartial("tabs",p1),e.registerPartial("tag",u1),e.registerPartial("textarea",m1),e.registerPartial("textbox",g1),e.registerPartial("typography",v1),e.registerPartial("video",h1)}typeof Handlebars!="undefined"&&d(Handlebars);var b1=!1;function L1(e){typeof e=="undefined"&&console.error("Handlebars.init requires HandleBars"),typeof e!="undefined"?(b1?console.log("HandleBars Helpers And Partials already loaded, loading again"):b1=!0,r(e),d(e)):console.log("Handlebars not found, init failed")}typeof Handlebars!="undefined"&&L1(Handlebars);})();
|
|
2432
|
+
//# @qld-gov-au/qgds-bootstrap5 - v2.1.1
|
|
2417
2433
|
//# sourceMappingURL=handlebars.init.min.js.map
|