@hmcts/media-viewer 4.1.8-exui-2986-6 → 4.1.8-exui-2488-1
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/assets/all.scss +0 -1
- package/esm2022/lib/toolbar/highlight-toolbar/highlight-toolbar.component.mjs +4 -6
- package/esm2022/lib/toolbar/main-toolbar/main-toolbar.component.mjs +4 -5
- package/esm2022/lib/toolbar/redaction-toolbar/redaction-toolbar.component.mjs +4 -5
- package/esm2022/lib/toolbar/toolbar.module.mjs +4 -7
- package/esm2022/lib/viewers/pdf-viewer/side-bar/side-bar.component.mjs +8 -3
- package/fesm2022/hmcts-media-viewer.mjs +16 -48
- package/fesm2022/hmcts-media-viewer.mjs.map +1 -1
- package/lib/toolbar/toolbar.module.d.ts +6 -7
- package/lib/toolbar/toolbar.module.d.ts.map +1 -1
- package/lib/viewers/pdf-viewer/side-bar/side-bar.component.d.ts.map +1 -1
- package/package.json +1 -1
- package/assets/sass/tooltip.scss +0 -50
- package/esm2022/lib/shared/directives/tooltip-dismiss.directive.mjs +0 -36
- package/lib/shared/directives/tooltip-dismiss.directive.d.ts +0 -11
- package/lib/shared/directives/tooltip-dismiss.directive.d.ts.map +0 -1
|
@@ -5,16 +5,15 @@ import * as i3 from "./redaction-toolbar/redaction-toolbar.component";
|
|
|
5
5
|
import * as i4 from "./icp-toolbar/icp-toolbar.component";
|
|
6
6
|
import * as i5 from "./redaction-search-bar/redaction-search-bar.component";
|
|
7
7
|
import * as i6 from "./highlight-toolbar/highlight-toolbar.component";
|
|
8
|
-
import * as i7 from "
|
|
9
|
-
import * as i8 from "@angular/
|
|
10
|
-
import * as i9 from "@angular/
|
|
11
|
-
import * as i10 from "@angular/
|
|
12
|
-
import * as i11 from "
|
|
13
|
-
import * as i12 from "rpx-xui-translation";
|
|
8
|
+
import * as i7 from "@angular/common";
|
|
9
|
+
import * as i8 from "@angular/forms";
|
|
10
|
+
import * as i9 from "@angular/cdk/overlay";
|
|
11
|
+
import * as i10 from "@angular/router";
|
|
12
|
+
import * as i11 from "rpx-xui-translation";
|
|
14
13
|
export { ToolbarButtonVisibilityService } from './toolbar-button-visibility.service';
|
|
15
14
|
export declare class ToolbarModule {
|
|
16
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<ToolbarModule, never>;
|
|
17
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ToolbarModule, [typeof i1.SearchBarComponent, typeof i2.MainToolbarComponent, typeof i3.RedactionToolbarComponent, typeof i4.IcpToolbarComponent, typeof i5.RedactionSearchBarComponent, typeof i6.HighlightToolbarComponent
|
|
16
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ToolbarModule, [typeof i1.SearchBarComponent, typeof i2.MainToolbarComponent, typeof i3.RedactionToolbarComponent, typeof i4.IcpToolbarComponent, typeof i5.RedactionSearchBarComponent, typeof i6.HighlightToolbarComponent], [typeof i7.CommonModule, typeof i8.FormsModule, typeof i9.OverlayModule, typeof i10.RouterModule, typeof i11.RpxTranslationModule], [typeof i2.MainToolbarComponent, typeof i1.SearchBarComponent, typeof i3.RedactionToolbarComponent, typeof i4.IcpToolbarComponent, typeof i5.RedactionSearchBarComponent, typeof i6.HighlightToolbarComponent]>;
|
|
18
17
|
static ɵinj: i0.ɵɵInjectorDeclaration<ToolbarModule>;
|
|
19
18
|
}
|
|
20
19
|
//# sourceMappingURL=toolbar.module.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toolbar.module.d.ts","sourceRoot":"","sources":["../../../../projects/media-viewer/src/lib/toolbar/toolbar.module.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"toolbar.module.d.ts","sourceRoot":"","sources":["../../../../projects/media-viewer/src/lib/toolbar/toolbar.module.ts"],"names":[],"mappings":";;;;;;;;;;;;AASA,OAAO,EAAE,8BAA8B,EAAE,MAAM,qCAAqC,CAAC;AAOrF,qBA4Ba,aAAa;yCAAb,aAAa;0CAAb,aAAa;0CAAb,aAAa;CAAI"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"side-bar.component.d.ts","sourceRoot":"","sources":["../../../../../../projects/media-viewer/src/lib/viewers/pdf-viewer/side-bar/side-bar.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAA6D,SAAS,EAAE,SAAS,EAAE,MAAM,EAAE,aAAa,EAAa,MAAM,eAAe,CAAC;AAClJ,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AACvD,OAAO,EAAE,UAAU,EAAgB,MAAM,MAAM,CAAC;AAChD,OAAO,EAAU,KAAK,EAAE,MAAM,aAAa,CAAC;AAE5C,OAAO,EAAE,YAAY,EAAE,MAAM,2CAA2C,CAAC;AAIzE,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,MAAM,2CAA2C,CAAC;AAC3E,OAAO,EAAE,mBAAmB,EAAE,MAAM,wCAAwC,CAAC;AAC7E,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;;AAErE,qBAIa,gBAAiB,YAAW,MAAM,EAAE,SAAS,EAAE,SAAS;IAoBvD,OAAO,CAAC,YAAY;IAC9B,OAAO,CAAC,KAAK;IACb,OAAO,CAAC,QAAQ,CAAC,aAAa;IApBvB,kBAAkB,EAAE,OAAO,CAAC;IAC5B,OAAO,EAAE,OAAO,CAAC;IACjB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,iBAAiB,EAAE,MAAM,CAAC;IAGnC,SAAS,EAAE,kBAAkB,CAAC;IAC9B,WAAW,EAAE,OAAO,CAAS;IAC7B,YAAY,SAAa;IACzB,cAAc,EAAE,UAAU,CAAC,YAAY,EAAE,CAAC,CAAC;IAC3C,SAAS,EAAE,GAAG,CAAC;IACf,WAAW,EAAE,GAAG,CAAC;IAEjB,OAAO,CAAC,aAAa,CAAsB;IACrB,UAAU,MAAC;gBAEb,YAAY,EAAE,kBAAkB,EAC1C,KAAK,EAAE,KAAK,CAAC,cAAc,CAAC,EACnB,aAAa,EAAE,mBAAmB;IAGrD,QAAQ,IAAI,IAAI;
|
|
1
|
+
{"version":3,"file":"side-bar.component.d.ts","sourceRoot":"","sources":["../../../../../../projects/media-viewer/src/lib/viewers/pdf-viewer/side-bar/side-bar.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAA6D,SAAS,EAAE,SAAS,EAAE,MAAM,EAAE,aAAa,EAAa,MAAM,eAAe,CAAC;AAClJ,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AACvD,OAAO,EAAE,UAAU,EAAgB,MAAM,MAAM,CAAC;AAChD,OAAO,EAAU,KAAK,EAAE,MAAM,aAAa,CAAC;AAE5C,OAAO,EAAE,YAAY,EAAE,MAAM,2CAA2C,CAAC;AAIzE,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,MAAM,2CAA2C,CAAC;AAC3E,OAAO,EAAE,mBAAmB,EAAE,MAAM,wCAAwC,CAAC;AAC7E,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;;AAErE,qBAIa,gBAAiB,YAAW,MAAM,EAAE,SAAS,EAAE,SAAS;IAoBvD,OAAO,CAAC,YAAY;IAC9B,OAAO,CAAC,KAAK;IACb,OAAO,CAAC,QAAQ,CAAC,aAAa;IApBvB,kBAAkB,EAAE,OAAO,CAAC;IAC5B,OAAO,EAAE,OAAO,CAAC;IACjB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,iBAAiB,EAAE,MAAM,CAAC;IAGnC,SAAS,EAAE,kBAAkB,CAAC;IAC9B,WAAW,EAAE,OAAO,CAAS;IAC7B,YAAY,SAAa;IACzB,cAAc,EAAE,UAAU,CAAC,YAAY,EAAE,CAAC,CAAC;IAC3C,SAAS,EAAE,GAAG,CAAC;IACf,WAAW,EAAE,GAAG,CAAC;IAEjB,OAAO,CAAC,aAAa,CAAsB;IACrB,UAAU,MAAC;gBAEb,YAAY,EAAE,kBAAkB,EAC1C,KAAK,EAAE,KAAK,CAAC,cAAc,CAAC,EACnB,aAAa,EAAE,mBAAmB;IAGrD,QAAQ,IAAI,IAAI;IA2BhB,WAAW,CAAC,OAAO,EAAE,aAAa,GAAG,IAAI;IAMzC,WAAW,IAAI,IAAI;IAMZ,QAAQ,CAAC,KAAK,EAAE,GAAG,GAAG,IAAI;IAOjC,eAAe,CAAC,WAAW,EAAE,GAAG,EAAE;IAIlC,cAAc,CAAC,KAAK,EAAE,OAAO;IAI7B,iBAAiB,CAAC,WAAW,EAAE,MAAM;IAIrC,YAAY,CAAC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,GAAG,OAAO;IAQtD,WAAW,CAAC,IAAI,EAAE,OAAO,GAAG,MAAM;yCA3FvB,gBAAgB;2CAAhB,gBAAgB;CA8F5B"}
|
package/package.json
CHANGED
package/assets/sass/tooltip.scss
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
.mv-tooltip {
|
|
2
|
-
/* default: place below */
|
|
3
|
-
--tooltip-offset-y: 100%;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
.mv-tooltip::before {
|
|
7
|
-
content: attr(data-tooltip); /* Tooltip text comes from attribute */
|
|
8
|
-
position: absolute;
|
|
9
|
-
top: var(--tooltip-offset-y);
|
|
10
|
-
left: 50%;
|
|
11
|
-
transform: translateX(-50%);
|
|
12
|
-
background: #e3e2e1;
|
|
13
|
-
color: #444444;
|
|
14
|
-
border: 1px solid #d1d1d1;
|
|
15
|
-
font-size: 11px;
|
|
16
|
-
font-family: system-ui, sans-serif;
|
|
17
|
-
padding: 3px 6px;
|
|
18
|
-
border-radius: 2px;
|
|
19
|
-
/* Dynamic sizing */
|
|
20
|
-
white-space: nowrap;
|
|
21
|
-
width: max-content;
|
|
22
|
-
max-width: 300px;
|
|
23
|
-
z-index: 999;
|
|
24
|
-
opacity: 0;
|
|
25
|
-
visibility: hidden;
|
|
26
|
-
transition: opacity 0.2s ease-in-out;
|
|
27
|
-
box-shadow: 0px 2px 4px rgba(0,0,0,0.3);
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
/* Show tooltip on hover and focus */
|
|
31
|
-
.mv-tooltip:hover::after,
|
|
32
|
-
.mv-tooltip:focus::after,
|
|
33
|
-
.mv-tooltip:hover::before,
|
|
34
|
-
/* Show tooltip on hover or keyboard focus */
|
|
35
|
-
.mv-tooltip:focus::before,
|
|
36
|
-
.mv-tooltip:focus-within::before {
|
|
37
|
-
opacity: 1;
|
|
38
|
-
visibility: visible;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
/* Hide tooltip when dismissed, even if focussed */
|
|
42
|
-
.mv-tooltip[data-tooltip-dismissed]::before {
|
|
43
|
-
opacity: 0;
|
|
44
|
-
visibility: hidden;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
/* place above */
|
|
48
|
-
.mv-tooltip[data-placement="above"] {
|
|
49
|
-
--tooltip-offset-y: -50%;
|
|
50
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { Directive, HostListener } from "@angular/core";
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export class TooltipDismissDirective {
|
|
4
|
-
constructor(el) {
|
|
5
|
-
this.el = el;
|
|
6
|
-
}
|
|
7
|
-
onEscapeDismissTooltip() {
|
|
8
|
-
const element = this.el.nativeElement;
|
|
9
|
-
element.setAttribute('data-tooltip-dismissed', 'true');
|
|
10
|
-
}
|
|
11
|
-
onShowTooltip() {
|
|
12
|
-
const element = this.el.nativeElement;
|
|
13
|
-
element.removeAttribute('data-tooltip-dismissed');
|
|
14
|
-
}
|
|
15
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: TooltipDismissDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
16
|
-
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.13", type: TooltipDismissDirective, selector: ".mv-tooltip, [mvTooltipDismiss]", host: { listeners: { "document:keydown.escape": "onEscapeDismissTooltip($event)", "mouseenter": "onShowTooltip()", "focus": "onShowTooltip()", "focusin": "onShowTooltip()" } }, ngImport: i0 }); }
|
|
17
|
-
}
|
|
18
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: TooltipDismissDirective, decorators: [{
|
|
19
|
-
type: Directive,
|
|
20
|
-
args: [{
|
|
21
|
-
selector: '.mv-tooltip, [mvTooltipDismiss]'
|
|
22
|
-
}]
|
|
23
|
-
}], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { onEscapeDismissTooltip: [{
|
|
24
|
-
type: HostListener,
|
|
25
|
-
args: ['document:keydown.escape', ['$event']]
|
|
26
|
-
}], onShowTooltip: [{
|
|
27
|
-
type: HostListener,
|
|
28
|
-
args: ['mouseenter']
|
|
29
|
-
}, {
|
|
30
|
-
type: HostListener,
|
|
31
|
-
args: ['focus']
|
|
32
|
-
}, {
|
|
33
|
-
type: HostListener,
|
|
34
|
-
args: ['focusin']
|
|
35
|
-
}] } });
|
|
36
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidG9vbHRpcC1kaXNtaXNzLmRpcmVjdGl2ZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL21lZGlhLXZpZXdlci9zcmMvbGliL3NoYXJlZC9kaXJlY3RpdmVzL3Rvb2x0aXAtZGlzbWlzcy5kaXJlY3RpdmUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQU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ZSB7XG4gIGNvbnN0cnVjdG9yKHByaXZhdGUgZWw6IEVsZW1lbnRSZWYpIHt9XG5cbiAgQEhvc3RMaXN0ZW5lcignZG9jdW1lbnQ6a2V5ZG93bi5lc2NhcGUnLCBbJyRldmVudCddKVxuICBvbkVzY2FwZURpc21pc3NUb29sdGlwKCkge1xuICAgIGNvbnN0IGVsZW1lbnQgPSB0aGlzLmVsLm5hdGl2ZUVsZW1lbnQgYXMgSFRNTEVsZW1lbnQ7XG4gICAgZWxlbWVudC5zZXRBdHRyaWJ1dGUoJ2RhdGEtdG9vbHRpcC1kaXNtaXNzZWQnLCAndHJ1ZScpO1xuICB9XG5cbiAgQEhvc3RMaXN0ZW5lcignbW91c2VlbnRlcicpXG4gIEBIb3N0TGlzdGVuZXIoJ2ZvY3VzJylcbiAgQEhvc3RMaXN0ZW5lcignZm9jdXNpbicpXG4gIG9uU2hvd1Rvb2x0aXAoKSB7XG4gICAgY29uc3QgZWxlbWVudCA9IHRoaXMuZWwubmF0aXZlRWxlbWVudCBhcyBIVE1MRWxlbWVudDtcbiAgICBlbGVtZW50LnJlbW92ZUF0dHJpYnV0ZSgnZGF0YS10b29sdGlwLWRpc21pc3NlZCcpO1xuICB9XG5cbn0iXX0=
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { ElementRef } from "@angular/core";
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class TooltipDismissDirective {
|
|
4
|
-
private el;
|
|
5
|
-
constructor(el: ElementRef);
|
|
6
|
-
onEscapeDismissTooltip(): void;
|
|
7
|
-
onShowTooltip(): void;
|
|
8
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TooltipDismissDirective, never>;
|
|
9
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<TooltipDismissDirective, ".mv-tooltip, [mvTooltipDismiss]", never, {}, {}, never, never, false, never>;
|
|
10
|
-
}
|
|
11
|
-
//# sourceMappingURL=tooltip-dismiss.directive.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tooltip-dismiss.directive.d.ts","sourceRoot":"","sources":["../../../../../projects/media-viewer/src/lib/shared/directives/tooltip-dismiss.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAAgB,MAAM,eAAe,CAAC;;AAEpE,qBAGa,uBAAuB;IACtB,OAAO,CAAC,EAAE;gBAAF,EAAE,EAAE,UAAU;IAGlC,sBAAsB;IAQtB,aAAa;yCAZF,uBAAuB;2CAAvB,uBAAuB;CAiBnC"}
|