@qhealth-design-system/core 1.19.1 → 1.19.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/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
<form role="search" aria-label="sitewide" class="qld__search-form" id="search-form-global-basic" action="{{site.metadata.siteSearchUrl.value}}">
|
|
95
95
|
<div class="qld__search-form__inner">
|
|
96
96
|
<svg class="qld__icon qld__icon--sm qld__search-form__inner-icon" xmlns="http://www.w3.org/2000/svg" aria-hidden="true"><use href="{{@root.site.metadata.coreSiteIcons.value}}#search"></use></svg>
|
|
97
|
-
<input type="search" id="search-input-global-basic-query" name="query" class="qld__text-input data-hj-allow" aria-expanded="false" autocomplete="off" disabled="true" value="{{#ifCond resultsPage.question.query '!==' '!padrenull'}}{{resultsPage.question.query}}{{/ifCond}}">
|
|
97
|
+
<input type="search" id="search-input-global-basic-query" name="query" class="qld__text-input data-hj-allow" aria-expanded="false" autocomplete="off" disabled="true" value="{{#ifCond resultsPage.question.query '!==' '!padrenull'}}{{#contains resultsPage.question.query 'hhsid:'}}{{else}}{{resultsPage.question.query}}{{/contains}}{{/ifCond}}">
|
|
98
98
|
<input type="text" id="name" name="name" autocomplete="off" tabindex="-1" class="qld__text-input--validation">
|
|
99
99
|
<div class="qld__search-form__btn">
|
|
100
100
|
<button class="qld__btn qld__btn--search" type="button" aria-label="Search" disabled="true">
|
|
@@ -119,7 +119,7 @@
|
|
|
119
119
|
<div class="col-xs-12 col-md-12">
|
|
120
120
|
<div class="qld__search__info">
|
|
121
121
|
<div class="qld__search__info-query">
|
|
122
|
-
<h2 class="qld__display-lg">Results{{#ifCond resultsPage.question.query '!==' ''}} for <span class="qld__search__info-query-term">‘{{resultsPage.question.query}}’</span>{{/ifCond}}</h2>
|
|
122
|
+
<h2 class="qld__display-lg">Results{{#ifCond resultsPage.question.query '!==' ''}}{{#contains resultsPage.question.query 'hhsid:'}}{{else}} for <span class="qld__search__info-query-term">‘{{resultsPage.question.query}}’</span>{{/contains}}{{/ifCond}}</h2>
|
|
123
123
|
</div>
|
|
124
124
|
<div class="qld__search__info-inner">
|
|
125
125
|
<div class="qld__search__info-summary">
|
|
@@ -290,12 +290,12 @@
|
|
|
290
290
|
</div>
|
|
291
291
|
<p class="qld__search__result-summary">
|
|
292
292
|
{{#ifCond collection 'contains' '__facilities'}}
|
|
293
|
-
{{#if
|
|
293
|
+
{{#if listMetadata.building}}{{{listMetadata.building}}}, {{/if}}{{#if listMetadata.physicalAddressStreet}}{{{listMetadata.physicalAddressStreet}}}{{/if}}{{#if listMetadata.physicalAddressSuburb}}, {{{listMetadata.physicalAddressSuburb}}}{{/if}}{{#if listMetadata.physicalAddressPostcode}}, {{{listMetadata.physicalAddressPostcode}}}{{/if}}
|
|
294
294
|
{{else}}
|
|
295
295
|
{{#ifCond collection 'contains' '__service-locations'}}
|
|
296
|
-
{{#if
|
|
296
|
+
{{#if listMetadata.building}}{{{listMetadata.building}}}, {{/if}}{{#if listMetadata.physicalAddressStreet}}{{{listMetadata.physicalAddressStreet}}}{{/if}}{{#if listMetadata.physicalAddressSuburb}}, {{{listMetadata.physicalAddressSuburb}}}{{/if}}{{#if listMetadata.physicalAddressPostcode}}, {{{listMetadata.physicalAddressPostcode}}}{{/if}}
|
|
297
297
|
{{else}}
|
|
298
|
-
{{#if
|
|
298
|
+
{{#if listMetadata.d}}<span class="qld__search__result-date">{{formatDate listMetadata.d.[0] 'j F Y'}} —</span>{{/if}}
|
|
299
299
|
{{{charMax summary '160'}}}
|
|
300
300
|
{{/ifCond}}
|
|
301
301
|
{{/ifCond}}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
module.exports = function(string, contains, options) {
|
|
2
|
-
if(string.indexOf(contains) !== -1) {
|
|
1
|
+
module.exports = function (string, contains, options) {
|
|
2
|
+
if (typeof string === "string" && string.indexOf(contains) !== -1) {
|
|
3
3
|
return options.fn(this);
|
|
4
4
|
}
|
|
5
5
|
|
|
6
6
|
return options.inverse(this);
|
|
7
|
-
}
|
|
7
|
+
};
|