@hmcts/ccd-case-ui-toolkit 4.17.9-rc.2 → 4.17.9-rc.3
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/index.umd.js +11 -9
- package/dist/index.umd.js.map +1 -1
- package/dist/index.umd.min.js +1 -1
- package/dist/index.umd.min.js.LICENSE.txt +1 -1
- package/dist/index.umd.min.js.map +1 -1
- package/dist/shared/components/markdown/markdown.component.d.ts +1 -1
- package/dist/shared/components/markdown/markdown.component.js +10 -8
- package/dist/shared/components/markdown/markdown.component.js.map +1 -1
- package/package.json +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @hmcts/ccd-case-ui-toolkit - Case UI Toolkit
|
|
3
|
-
* @version v4.17.9-rc.
|
|
3
|
+
* @version v4.17.9-rc.3
|
|
4
4
|
* @link undefined
|
|
5
5
|
* @license MIT
|
|
6
6
|
*/
|
|
@@ -27517,21 +27517,23 @@ var MarkdownComponent = /** @class */ (function () {
|
|
|
27517
27517
|
if (event.target instanceof HTMLAnchorElement === false) {
|
|
27518
27518
|
return;
|
|
27519
27519
|
}
|
|
27520
|
-
|
|
27520
|
+
return this.callUpdateHrefLink(event.target, event);
|
|
27521
|
+
};
|
|
27522
|
+
MarkdownComponent.prototype.callUpdateHrefLink = function (eventTarget, event) {
|
|
27521
27523
|
var targetPath = eventTarget.pathname;
|
|
27524
|
+
var hash = eventTarget.hash;
|
|
27525
|
+
var search = eventTarget.search;
|
|
27526
|
+
if (hash) {
|
|
27527
|
+
return true;
|
|
27528
|
+
}
|
|
27522
27529
|
if (this.markdownUseHrefAsRouterLink === true && targetPath.indexOf('http') < 0) {
|
|
27523
27530
|
// Prevent page from reloading
|
|
27524
27531
|
event.preventDefault();
|
|
27532
|
+
this.convertHrefToRouterService.updateHrefLink(targetPath + search);
|
|
27525
27533
|
}
|
|
27526
|
-
|
|
27527
|
-
};
|
|
27528
|
-
MarkdownComponent.prototype.callUpdateHrefLink = function (eventTarget, targetPath) {
|
|
27529
|
-
var hash = eventTarget.hash;
|
|
27530
|
-
var search = eventTarget.search;
|
|
27531
|
-
if (hash) {
|
|
27534
|
+
else {
|
|
27532
27535
|
return true;
|
|
27533
27536
|
}
|
|
27534
|
-
this.convertHrefToRouterService.updateHrefLink(targetPath + search);
|
|
27535
27537
|
};
|
|
27536
27538
|
__decorate([
|
|
27537
27539
|
core_1.Input(),
|