@qld-gov-au/qgds-bootstrap5 2.1.1 → 2.1.2
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/dist/assets/components/bs5/button/button.hbs +2 -1
- package/dist/assets/components/bs5/dateinput/dateinput.hbs +3 -3
- package/dist/assets/components/bs5/formcheck/formcheck.hbs +1 -1
- package/dist/assets/components/bs5/head/head.hbs +1 -1
- package/dist/assets/components/bs5/select/select.hbs +1 -1
- package/dist/assets/components/bs5/textarea/textarea.hbs +1 -1
- package/dist/assets/components/bs5/textbox/textbox.hbs +1 -1
- package/dist/assets/css/qld.bootstrap.css +1 -1
- package/dist/assets/css/qld.bootstrap.legacy.css +1 -1
- package/dist/assets/js/handlebars.helpers.bundle.js +1 -1
- package/dist/assets/js/handlebars.init.min.js +11 -10
- package/dist/assets/js/handlebars.init.min.js.map +2 -2
- package/dist/assets/js/handlebars.partials.js +11 -10
- package/dist/assets/js/handlebars.partials.js.map +2 -2
- package/dist/assets/js/qld.bootstrap.min.js +1 -1
- package/dist/assets/node/handlebars.init.min.js +8 -7
- package/dist/assets/node/handlebars.init.min.js.map +2 -2
- package/dist/components/bs5/button/button.hbs +2 -1
- package/dist/components/bs5/dateinput/dateinput.hbs +3 -3
- package/dist/components/bs5/formcheck/formcheck.hbs +1 -1
- package/dist/components/bs5/head/head.hbs +1 -1
- package/dist/components/bs5/select/select.hbs +1 -1
- package/dist/components/bs5/textarea/textarea.hbs +1 -1
- package/dist/components/bs5/textbox/textbox.hbs +1 -1
- package/dist/package.json +1 -1
- package/package.json +1 -1
- package/src/components/bs5/button/button.hbs +2 -1
- package/src/components/bs5/dateinput/dateinput.hbs +3 -3
- package/src/components/bs5/formcheck/formcheck.hbs +1 -1
- package/src/components/bs5/pageLayout/pageLayout.stories.js +2 -0
- package/src/components/bs5/select/select.hbs +1 -1
- package/src/components/bs5/textarea/textarea.hbs +1 -1
- package/src/components/bs5/textbox/textbox.hbs +1 -1
|
@@ -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.1.
|
|
2
|
+
//# @qld-gov-au/qgds-bootstrap5 - v2.1.2
|
|
3
3
|
//# sourceMappingURL=handlebars.helpers.bundle.js.map
|
|
@@ -145,7 +145,8 @@
|
|
|
145
145
|
|
|
146
146
|
{{#unless islink}}
|
|
147
147
|
|
|
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}} {{
|
|
148
|
+
<button class="btn {{variantClass}} {{#if isprogress}}btn-progress{{/if}}" onclick="{{{onclick}}}" tabindex="0" {{#if isdisabled}}disabled{{/if}} {{#if isprogress}}disabled aria-live="polite"{{/if}} {{#if arialabel}}aria-label="{{arialabel}}"{{/if}} {{#if progressLabel}}data-progress-label="{{progressLabel}}"{{/if}} {{{dataatts}}} >
|
|
149
|
+
|
|
149
150
|
{{#if isprogress}}
|
|
150
151
|
{{~>progressSpinner~}}
|
|
151
152
|
{{else}}
|
|
@@ -715,7 +716,7 @@
|
|
|
715
716
|
inputmode="numeric" maxlength="2" minlength="2" min="1" max="31" pattern="^(0?[1-9]|[12][0-9]|3[01])$"
|
|
716
717
|
class="form-control dayinput {{customClass}} {{#if isFilled}}form-style-filled{{/if}}
|
|
717
718
|
{{#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}}>
|
|
719
|
+
aria-invalid="false" {{#if isDisabled}}disabled{{/if}} {{#if isRequired}}required{{/if}} tabindex="0" >
|
|
719
720
|
</div>
|
|
720
721
|
</div>
|
|
721
722
|
<!-- month group -->
|
|
@@ -726,7 +727,7 @@
|
|
|
726
727
|
type="text" inputmode="numeric" maxlength="2" minlength="2" min="1" max="12" pattern="^(0?[1-9]|[1][0-2])$"
|
|
727
728
|
class="form-control monthinput {{customClass}} {{#if isFilled}}form-style-filled{{/if}}
|
|
728
729
|
{{#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}}>
|
|
730
|
+
aria-invalid="false" {{#if isDisabled}}disabled{{/if}} {{#if isRequired}}required{{/if}} tabindex="0">
|
|
730
731
|
</div>
|
|
731
732
|
</div>
|
|
732
733
|
<!-- year group -->
|
|
@@ -737,7 +738,7 @@
|
|
|
737
738
|
placeholder="{{year-placeholder}}" type="text" inputmode="numeric" maxlength="4" minlength="4" pattern="[0-9]*"
|
|
738
739
|
{{#if yearMin}}min="{{yearMin}}"{{/if}} {{#if yearMax}}max="{{yearMax}}"{{/if}}
|
|
739
740
|
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}}>
|
|
741
|
+
ref="year" aria-invalid="false" {{#if isDisabled}}disabled{{/if}} {{#if isRequired}}required{{/if}} tabindex="0">
|
|
741
742
|
</div>
|
|
742
743
|
</div>
|
|
743
744
|
</div>
|
|
@@ -1054,7 +1055,7 @@
|
|
|
1054
1055
|
|
|
1055
1056
|
{{#each listitems}}
|
|
1056
1057
|
<div class="form-check {{#if ../isValid}}is-valid{{else}}{{#ifCond ../isValid "===" false}}is-invalid{{/ifCond}}{{/if}}">
|
|
1057
|
-
<input class="form-check-input" type="{{#if ../type}}{{../type}}{{else}}{{#if type}}{{type}}{{else}}checkbox{{/if}}{{/if}}" name="{{name}}" id="{{id}}" value="{{value}}" {{#if isDisabled}}disabled{{/if}} {{#if isChecked}}checked{{/if}} {{#if isRequired}}required{{/if}} >
|
|
1058
|
+
<input class="form-check-input" type="{{#if ../type}}{{../type}}{{else}}{{#if type}}{{type}}{{else}}checkbox{{/if}}{{/if}}" name="{{name}}" id="{{id}}" value="{{value}}" tabindex="{{isdefined ../tabindex 0}}" {{#if isDisabled}}disabled{{/if}} {{#if isChecked}}checked{{/if}} {{#if isRequired}}required{{/if}} >
|
|
1058
1059
|
<label class="form-check-label" for="{{id}}">
|
|
1059
1060
|
{{label}}
|
|
1060
1061
|
</label>
|
|
@@ -1118,7 +1119,7 @@
|
|
|
1118
1119
|
</section>
|
|
1119
1120
|
{{/each }}
|
|
1120
1121
|
</div>`;var E=`
|
|
1121
|
-
<!-- VERSION_DETAILS={"project_id":"@qld-gov-au/qgds-bootstrap5","version":"2.1.
|
|
1122
|
+
<!-- VERSION_DETAILS={"project_id":"@qld-gov-au/qgds-bootstrap5","version":"2.1.2","branch":"HEAD","tag":"v2.1.2","commit":"a76edf5d0854742800c2d5846df18b5280e0ed09","majorVersion":"v2"} -->
|
|
1122
1123
|
|
|
1123
1124
|
{{! Select environment, used verbatium if not using predefind key
|
|
1124
1125
|
cdn := PROD|STAGING|BETA|TEST|DEV|???
|
|
@@ -2110,7 +2111,7 @@ Reference: https://getbootstrap.com/docs/5.0/components/pagination/
|
|
|
2110
2111
|
{{/if}}{{/contains}}
|
|
2111
2112
|
|
|
2112
2113
|
<select id={{id}} class="form-select {{#if isFilled}}is-filled{{/if}} {{#if isValid}}is-valid{{else}}{{#ifCond isValid "===" false}}is-invalid{{/ifCond}}{{/if}} {{customClass}}"
|
|
2113
|
-
{{#if hint-text}}aria-describedby="{{id}}-hint"{{/if}} {{#if isDisabled}}disabled{{/if}} {{#if isRequired}}required{{/if}} >
|
|
2114
|
+
{{#if hint-text}}aria-describedby="{{id}}-hint"{{/if}} tabindex="0" {{#if isDisabled}}disabled{{/if}} {{#if isRequired}}required{{/if}} >
|
|
2114
2115
|
<option selected value="">{{placeholder}}</option>
|
|
2115
2116
|
<option value="1">Option 1</option>
|
|
2116
2117
|
<option value="2">Option 2</option>
|
|
@@ -2351,7 +2352,7 @@ Reference: https://getbootstrap.com/docs/5.0/components/pagination/
|
|
|
2351
2352
|
|
|
2352
2353
|
<!-- First text input field, described by the hint text above -->
|
|
2353
2354
|
<textarea id="{{id}}" class="form-control {{customClass}} {{#if isFilled}}is-filled{{/if}} {{#if isValid}}is-valid{{else}}{{#ifCond isValid "===" false}}is-invalid{{/ifCond}}{{/if}}"
|
|
2354
|
-
placeholder="{{placeholder}}" rows="{{rows}}" {{#if isDisabled}}disabled{{/if}} {{#if isRequired}}required{{/if}}
|
|
2355
|
+
placeholder="{{placeholder}}" rows="{{rows}}" tabindex="0" {{#if isDisabled}}disabled{{/if}} {{#if isRequired}}required{{/if}}
|
|
2355
2356
|
{{#if hint-text}}aria-describedby="{{id}}-hint"{{/if}}>{{value}}</textarea>`;var g1=`<!-- QGDS Component: Textbox -->
|
|
2356
2357
|
|
|
2357
2358
|
<label class="qld-text-input-label {{#if isRequired}}field-required{{/if}} {{#if isDisabled}}field-disabled{{/if}}"
|
|
@@ -2381,7 +2382,7 @@ Reference: https://getbootstrap.com/docs/5.0/components/pagination/
|
|
|
2381
2382
|
{{/if}}{{/contains}}
|
|
2382
2383
|
|
|
2383
2384
|
<input id={{id}} {{#if value}}value="{{value}}"{{/if}} class="form-control {{customClass}} {{#if isFilled}}is-filled{{/if}} {{#if isValid}}is-valid{{else}}{{#ifCond isValid "===" false}}is-invalid{{/ifCond}}{{/if}}"
|
|
2384
|
-
type="text" placeholder="{{placeholder}}" {{#if isDisabled}}disabled{{/if}} {{#if
|
|
2385
|
+
type="text" placeholder="{{placeholder}}" tabindex="0" {{#if isDisabled}}disabled{{/if}} {{#if
|
|
2385
2386
|
isRequired}}required{{/if}} {{#if hint-text}}aria-describedby="{{id}}-hint"{{/if}} />`;var v1="<!-- QGDS Partial: typography -->";var h1=`<!-- QGDS Component: Video -->
|
|
2386
2387
|
|
|
2387
2388
|
{{#if analyticsTrackingCode}}
|
|
@@ -2429,5 +2430,5 @@ Reference: https://getbootstrap.com/docs/5.0/components/pagination/
|
|
|
2429
2430
|
{{! Render the transcript content in an accordion template }}
|
|
2430
2431
|
</section>
|
|
2431
2432
|
`;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.
|
|
2433
|
+
//# @qld-gov-au/qgds-bootstrap5 - v2.1.2
|
|
2433
2434
|
//# sourceMappingURL=handlebars.init.min.js.map
|