@dereekb/dbx-web 9.24.10 → 9.24.11
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/calendar/package.json +2 -2
- package/esm2020/lib/layout/text/linkify.component.mjs +18 -13
- package/fesm2015/dereekb-dbx-web.mjs +17 -12
- package/fesm2015/dereekb-dbx-web.mjs.map +1 -1
- package/fesm2020/dereekb-dbx-web.mjs +17 -12
- package/fesm2020/dereekb-dbx-web.mjs.map +1 -1
- package/lib/layout/text/linkify.component.d.ts +5 -4
- package/mapbox/package.json +3 -3
- package/package.json +3 -3
- package/table/package.json +3 -3
|
@@ -6022,15 +6022,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
|
|
|
6022
6022
|
class DbxLinkifyComponent {
|
|
6023
6023
|
constructor(sanitizer) {
|
|
6024
6024
|
this.sanitizer = sanitizer;
|
|
6025
|
-
this._text = new BehaviorSubject(
|
|
6026
|
-
this.linkifiedText$ = this._text.pipe(distinctUntilChanged(), map((x) =>
|
|
6027
|
-
|
|
6028
|
-
|
|
6029
|
-
|
|
6030
|
-
|
|
6031
|
-
|
|
6025
|
+
this._text = new BehaviorSubject(undefined);
|
|
6026
|
+
this.linkifiedText$ = this._text.pipe(distinctUntilChanged(), map((x) => x
|
|
6027
|
+
? linkifyStr(x, {
|
|
6028
|
+
defaultProtocol: 'https',
|
|
6029
|
+
target: {
|
|
6030
|
+
url: '_blank'
|
|
6031
|
+
}
|
|
6032
|
+
})
|
|
6033
|
+
: undefined), shareReplay(1));
|
|
6032
6034
|
this.linkifiedBody$ = this.linkifiedText$.pipe(map((x) => {
|
|
6033
|
-
return this.sanitizer.bypassSecurityTrustHtml(x);
|
|
6035
|
+
return x ? this.sanitizer.bypassSecurityTrustHtml(x) : undefined;
|
|
6034
6036
|
}), shareReplay(1));
|
|
6035
6037
|
}
|
|
6036
6038
|
ngOnDestroy() {
|
|
@@ -6044,16 +6046,19 @@ class DbxLinkifyComponent {
|
|
|
6044
6046
|
}
|
|
6045
6047
|
}
|
|
6046
6048
|
DbxLinkifyComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DbxLinkifyComponent, deps: [{ token: i1$9.DomSanitizer }], target: i0.ɵɵFactoryTarget.Component });
|
|
6047
|
-
DbxLinkifyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: DbxLinkifyComponent, selector: "dbx-linkify", inputs: { text: "text" }, ngImport: i0, template: `
|
|
6048
|
-
<span
|
|
6049
|
+
DbxLinkifyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: DbxLinkifyComponent, selector: "dbx-linkify", inputs: { text: "text" }, host: { classAttribute: "dbx-i dbx-linkify" }, ngImport: i0, template: `
|
|
6050
|
+
<span [innerHTML]="linkifiedBody$ | async"></span>
|
|
6049
6051
|
`, isInline: true, dependencies: [{ kind: "pipe", type: i1.AsyncPipe, name: "async" }] });
|
|
6050
6052
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DbxLinkifyComponent, decorators: [{
|
|
6051
6053
|
type: Component,
|
|
6052
6054
|
args: [{
|
|
6053
6055
|
selector: 'dbx-linkify',
|
|
6054
6056
|
template: `
|
|
6055
|
-
<span
|
|
6056
|
-
|
|
6057
|
+
<span [innerHTML]="linkifiedBody$ | async"></span>
|
|
6058
|
+
`,
|
|
6059
|
+
host: {
|
|
6060
|
+
class: 'dbx-i dbx-linkify'
|
|
6061
|
+
}
|
|
6057
6062
|
}]
|
|
6058
6063
|
}], ctorParameters: function () { return [{ type: i1$9.DomSanitizer }]; }, propDecorators: { text: [{
|
|
6059
6064
|
type: Input
|