@worksafevictoria/wcl7.5 1.8.0-beta.1 → 1.8.0-beta.10
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/lib/utility.js +2 -0
- package/package.json +1 -1
- package/src/components/Common/CardGrid/index.vue +2 -0
- package/src/components/Common/CardGridItem/index.vue +4 -3
- package/src/components/Global/AppHeader/index.vue +194 -284
- package/src/components/Paragraphs/Directory/Asbestos/Records/SingleRecord/index.stories.js +30 -0
- package/src/components/Paragraphs/Directory/Asbestos/Records/SingleRecord/index.vue +182 -0
- package/src/components/Paragraphs/Directory/Asbestos/Records/index.stories.js +19 -0
- package/src/components/Paragraphs/Directory/Asbestos/Records/index.vue +254 -0
- package/src/components/Paragraphs/Directory/HSCP/Records/SingleRecord/index.vue +38 -152
- package/src/components/Paragraphs/Directory/HSCP/Records/SingleRecord/styles.scss +127 -0
- package/src/components/Paragraphs/Directory/HSCP/Records/index.vue +41 -87
- package/src/components/Paragraphs/Directory/HSCP/styles.scss +68 -0
- package/src/components/Paragraphs/Directory/Records/PRS/index.stories.js +2 -2
- package/src/components/Paragraphs/Directory/styles.scss +2 -0
- package/src/components/SubComponents/FormInstance/models/overrides/file.js +2 -1
- package/src/components/SubComponents/Search/SearchListing/index.vue +23 -19
- package/src/components/SubComponents/Search/index.stories.js +2 -1
- package/src/components/SubComponents/Search/index.vue +5 -10
- package/src/index.js +2 -0
- package/src/mock/asbestos-removalists.js +226 -0
- package/src/mock/course-provider.js +33 -19
package/lib/utility.js
CHANGED
|
@@ -35,6 +35,8 @@ function isGovSite(url) {
|
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
function navigateToPath(path, newTab, nuxtRouter) {
|
|
38
|
+
debugger
|
|
39
|
+
|
|
38
40
|
const url = String(path).startsWith('www.') ? `http://${path}` : path
|
|
39
41
|
const isAbsolute = isAbsoluteUrl(url)
|
|
40
42
|
const router = nuxtRouter ? nuxtRouter : this.$router
|
package/package.json
CHANGED
|
@@ -227,6 +227,7 @@ export default {
|
|
|
227
227
|
},
|
|
228
228
|
methods: {
|
|
229
229
|
cardTitleSelected(selectedCard, ev) {
|
|
230
|
+
debugger;
|
|
230
231
|
this.clearCards();
|
|
231
232
|
selectedCard.selected = !!!selectedCard.selected;
|
|
232
233
|
const selectedCardModelIndex = this.getChildIndex(selectedCard);
|
|
@@ -239,6 +240,7 @@ export default {
|
|
|
239
240
|
},
|
|
240
241
|
cardSelected(selectedCard, ev) {
|
|
241
242
|
debugger;
|
|
243
|
+
console.log("cardSelected selectedCard :- ", selectedCard);
|
|
242
244
|
this.clearCards();
|
|
243
245
|
selectedCard.selected = !!!selectedCard.selected;
|
|
244
246
|
const selectedCardModelIndex = this.getChildIndex(selectedCard);
|
|
@@ -117,8 +117,10 @@
|
|
|
117
117
|
</card-grid-item-icon>
|
|
118
118
|
<span v-if="pillText" class="visually-hidden">{{ pillText }}</span>
|
|
119
119
|
</div>
|
|
120
|
+
<span class="d-none">Description :- {{ description }}</span>
|
|
121
|
+
<span class="d-none">stripDescriptionHtml :- {{ stripDescriptionHtml }}</span>
|
|
120
122
|
<b-card-text
|
|
121
|
-
v-if="$slots.cardDescription || description"
|
|
123
|
+
v-if="$slots.cardDescription || description || stripDescriptionHtml"
|
|
122
124
|
tag="div"
|
|
123
125
|
class="card-grid-item__body"
|
|
124
126
|
:class="{
|
|
@@ -126,7 +128,6 @@
|
|
|
126
128
|
}"
|
|
127
129
|
>
|
|
128
130
|
<div
|
|
129
|
-
v-if="$slots.cardDescription || description"
|
|
130
131
|
class="card-grid-item__description"
|
|
131
132
|
:class="{
|
|
132
133
|
[descriptionClass]: !!descriptionClass,
|
|
@@ -403,7 +404,7 @@ export default {
|
|
|
403
404
|
methods: {
|
|
404
405
|
cardClicked(ev) {
|
|
405
406
|
debugger;
|
|
406
|
-
|
|
407
|
+
|
|
407
408
|
if (this.isSelectable) {
|
|
408
409
|
this.parentGrid.cardSelected(this, ev);
|
|
409
410
|
}
|