@net7/components 4.4.2 → 4.5.0
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/esm2022/lib/components/parallel-text-viewer/parallel-text-viewer.mjs +49 -0
- package/esm2022/lib/components/parallel-text-viewer/parallel-text-viewer.mock.mjs +94 -0
- package/esm2022/lib/components/text-viewer/text-viewer.mock.mjs +4 -4
- package/esm2022/lib/dv-components-lib.module.mjs +7 -3
- package/esm2022/public-api.mjs +3 -1
- package/fesm2022/net7-components.mjs +149 -6
- package/fesm2022/net7-components.mjs.map +1 -1
- package/lib/components/parallel-text-viewer/parallel-text-viewer.d.ts +124 -0
- package/lib/components/parallel-text-viewer/parallel-text-viewer.mock.d.ts +2 -0
- package/lib/dv-components-lib.module.d.ts +4 -3
- package/package.json +1 -1
- package/public-api.d.ts +2 -0
- package/src/lib/styles/_imports.scss +1 -0
- package/src/lib/styles/components/_parallel-text-viewer.scss +816 -0
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
/**
|
|
4
|
+
* Interface for ParallelTextViewerComponent's "data"
|
|
5
|
+
* Interface for TextViewerComponent's "data"
|
|
6
|
+
* @property endpoint (required)
|
|
7
|
+
* @property doc (required)
|
|
8
|
+
* @property facsimile (optional)
|
|
9
|
+
*/
|
|
10
|
+
export interface PanelConfig {
|
|
11
|
+
id: string;
|
|
12
|
+
enabled: boolean;
|
|
13
|
+
title: string;
|
|
14
|
+
type: 'text' | 'facsimile';
|
|
15
|
+
odd?: string;
|
|
16
|
+
doc_id?: string;
|
|
17
|
+
view?: string;
|
|
18
|
+
xpath?: string;
|
|
19
|
+
mapFunction?: string;
|
|
20
|
+
src?: string;
|
|
21
|
+
facsimile?: {
|
|
22
|
+
enabled?: boolean;
|
|
23
|
+
uri: string;
|
|
24
|
+
scans?: string[];
|
|
25
|
+
options?: {
|
|
26
|
+
height?: string;
|
|
27
|
+
defaultZoomLevel?: number;
|
|
28
|
+
showHomeControl?: boolean;
|
|
29
|
+
showFullPageControl?: boolean;
|
|
30
|
+
showRotationControl?: boolean;
|
|
31
|
+
showNavigator?: boolean;
|
|
32
|
+
showNavigationControl?: boolean;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
params?: Array<{
|
|
36
|
+
name: string;
|
|
37
|
+
value: string;
|
|
38
|
+
}>;
|
|
39
|
+
}
|
|
40
|
+
export interface ParallelTextViewerData {
|
|
41
|
+
endpoint: string;
|
|
42
|
+
docs: {
|
|
43
|
+
xml: string;
|
|
44
|
+
id: string;
|
|
45
|
+
}[];
|
|
46
|
+
mainDoc: {
|
|
47
|
+
doc_id: string;
|
|
48
|
+
odd: string;
|
|
49
|
+
view: string;
|
|
50
|
+
channel?: string;
|
|
51
|
+
translation?: boolean;
|
|
52
|
+
download?: string;
|
|
53
|
+
rootPath?: string;
|
|
54
|
+
mapFunction?: string;
|
|
55
|
+
url?: string;
|
|
56
|
+
xpath?: string;
|
|
57
|
+
disableHistory?: boolean;
|
|
58
|
+
apparatus?: {
|
|
59
|
+
mapFunction?: string;
|
|
60
|
+
rootPath?: string;
|
|
61
|
+
odd: string;
|
|
62
|
+
channel?: string;
|
|
63
|
+
view: string;
|
|
64
|
+
params?: {
|
|
65
|
+
name: string;
|
|
66
|
+
value: string;
|
|
67
|
+
}[];
|
|
68
|
+
standalone?: boolean;
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
grid?: {
|
|
72
|
+
id?: string;
|
|
73
|
+
panels?: number[];
|
|
74
|
+
subscribe?: string;
|
|
75
|
+
emit?: string;
|
|
76
|
+
initialPanels?: string;
|
|
77
|
+
columnWidths?: string;
|
|
78
|
+
};
|
|
79
|
+
panels?: PanelConfig[];
|
|
80
|
+
download?: {
|
|
81
|
+
label?: string;
|
|
82
|
+
file?: string;
|
|
83
|
+
format?: string;
|
|
84
|
+
};
|
|
85
|
+
scrollSync?: boolean;
|
|
86
|
+
labels?: {
|
|
87
|
+
view?: string;
|
|
88
|
+
addColumn?: string;
|
|
89
|
+
select?: {
|
|
90
|
+
label?: string;
|
|
91
|
+
type?: {
|
|
92
|
+
[key: string]: string;
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
index?: {
|
|
96
|
+
show?: string;
|
|
97
|
+
hide?: string;
|
|
98
|
+
};
|
|
99
|
+
toc?: string;
|
|
100
|
+
loading?: string;
|
|
101
|
+
};
|
|
102
|
+
toggleColumn?: boolean;
|
|
103
|
+
libOptions?: {
|
|
104
|
+
pbPage?: {
|
|
105
|
+
urlIgnore?: string[];
|
|
106
|
+
};
|
|
107
|
+
};
|
|
108
|
+
/**
|
|
109
|
+
* additional html classes
|
|
110
|
+
*/
|
|
111
|
+
classes?: string;
|
|
112
|
+
}
|
|
113
|
+
export declare class ParallelTextViewerComponent implements OnInit {
|
|
114
|
+
data: ParallelTextViewerData;
|
|
115
|
+
emit: any;
|
|
116
|
+
static _loaded: boolean;
|
|
117
|
+
ngOnInit(): void;
|
|
118
|
+
displayIndex(): void;
|
|
119
|
+
onScriptLoaded(): void;
|
|
120
|
+
onClick(payload: any): void;
|
|
121
|
+
openDownload(event: Event, url: string): void;
|
|
122
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ParallelTextViewerComponent, never>;
|
|
123
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ParallelTextViewerComponent, "n7-parallel-text-viewer", never, { "data": { "alias": "data"; "required": false; }; "emit": { "alias": "emit"; "required": false; }; }, {}, never, never, false, never>;
|
|
124
|
+
}
|
|
@@ -48,10 +48,11 @@ import * as i46 from "./components/tree/tree";
|
|
|
48
48
|
import * as i47 from "./components/wizard/wizard";
|
|
49
49
|
import * as i48 from "./components/progress-line/progress-line";
|
|
50
50
|
import * as i49 from "./components/network/network";
|
|
51
|
-
import * as i50 from "
|
|
52
|
-
import * as i51 from "@angular/
|
|
51
|
+
import * as i50 from "./components/parallel-text-viewer/parallel-text-viewer";
|
|
52
|
+
import * as i51 from "@angular/common";
|
|
53
|
+
import * as i52 from "@angular/router";
|
|
53
54
|
export declare class DvComponentsLibModule {
|
|
54
55
|
static ɵfac: i0.ɵɵFactoryDeclaration<DvComponentsLibModule, never>;
|
|
55
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<DvComponentsLibModule, [typeof i1.AdvancedAutocompleteComponent, typeof i2.AlertComponent, typeof i3.AnchorWrapperComponent, typeof i4.AvatarComponent, typeof i5.BreadcrumbsComponent, typeof i6.BubbleChartComponent, typeof i7.ButtonComponent, typeof i8.CarouselComponent, typeof i9.ChartComponent, typeof i10.ContentPlaceholderComponent, typeof i11.DataWidgetComponent, typeof i12.DatepickerComponent, typeof i13.FacetComponent, typeof i14.FacetHeaderComponent, typeof i15.FacetYearRangeComponent, typeof i16.FileSelectorComponent, typeof i17.FooterComponent, typeof i18.HeaderComponent, typeof i19.HeroComponent, typeof i20.IconComponent, typeof i21.HistogramRangeComponent, typeof i22.ImageViewerComponent, typeof i23.ImageViewerToolsComponent, typeof i24.InnerTitleComponent, typeof i25.InputCheckboxComponent, typeof i26.InputLinkComponent, typeof i27.InputSelectComponent, typeof i28.InputTextComponent, typeof i29.ItemPreviewComponent, typeof i30.LoaderComponent, typeof i31.MapComponent, typeof i32.MetadataViewerComponent, typeof i33.MiradorComponent, typeof i34.NavComponent, typeof i35.PaginationComponent, typeof i36.SidebarHeaderComponent, typeof i37.SignupComponent, typeof i38.SimpleAutocompleteComponent, typeof i39.TableComponent, typeof i40.TagComponent, typeof i41.InputTextareaComponent, typeof i42.TextViewerComponent, typeof i43.TimelineComponent, typeof i44.ToastComponent, typeof i45.TooltipContentComponent, typeof i46.TreeComponent, typeof i47.WizardComponent, typeof i48.ProgressLineComponent, typeof i49.NetworkComponent], [typeof
|
|
56
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DvComponentsLibModule, [typeof i1.AdvancedAutocompleteComponent, typeof i2.AlertComponent, typeof i3.AnchorWrapperComponent, typeof i4.AvatarComponent, typeof i5.BreadcrumbsComponent, typeof i6.BubbleChartComponent, typeof i7.ButtonComponent, typeof i8.CarouselComponent, typeof i9.ChartComponent, typeof i10.ContentPlaceholderComponent, typeof i11.DataWidgetComponent, typeof i12.DatepickerComponent, typeof i13.FacetComponent, typeof i14.FacetHeaderComponent, typeof i15.FacetYearRangeComponent, typeof i16.FileSelectorComponent, typeof i17.FooterComponent, typeof i18.HeaderComponent, typeof i19.HeroComponent, typeof i20.IconComponent, typeof i21.HistogramRangeComponent, typeof i22.ImageViewerComponent, typeof i23.ImageViewerToolsComponent, typeof i24.InnerTitleComponent, typeof i25.InputCheckboxComponent, typeof i26.InputLinkComponent, typeof i27.InputSelectComponent, typeof i28.InputTextComponent, typeof i29.ItemPreviewComponent, typeof i30.LoaderComponent, typeof i31.MapComponent, typeof i32.MetadataViewerComponent, typeof i33.MiradorComponent, typeof i34.NavComponent, typeof i35.PaginationComponent, typeof i36.SidebarHeaderComponent, typeof i37.SignupComponent, typeof i38.SimpleAutocompleteComponent, typeof i39.TableComponent, typeof i40.TagComponent, typeof i41.InputTextareaComponent, typeof i42.TextViewerComponent, typeof i43.TimelineComponent, typeof i44.ToastComponent, typeof i45.TooltipContentComponent, typeof i46.TreeComponent, typeof i47.WizardComponent, typeof i48.ProgressLineComponent, typeof i49.NetworkComponent, typeof i50.ParallelTextViewerComponent], [typeof i51.CommonModule, typeof i52.RouterModule], [typeof i1.AdvancedAutocompleteComponent, typeof i2.AlertComponent, typeof i3.AnchorWrapperComponent, typeof i4.AvatarComponent, typeof i5.BreadcrumbsComponent, typeof i6.BubbleChartComponent, typeof i7.ButtonComponent, typeof i8.CarouselComponent, typeof i9.ChartComponent, typeof i10.ContentPlaceholderComponent, typeof i11.DataWidgetComponent, typeof i12.DatepickerComponent, typeof i13.FacetComponent, typeof i14.FacetHeaderComponent, typeof i15.FacetYearRangeComponent, typeof i16.FileSelectorComponent, typeof i17.FooterComponent, typeof i18.HeaderComponent, typeof i19.HeroComponent, typeof i20.IconComponent, typeof i21.HistogramRangeComponent, typeof i22.ImageViewerComponent, typeof i23.ImageViewerToolsComponent, typeof i24.InnerTitleComponent, typeof i25.InputCheckboxComponent, typeof i26.InputLinkComponent, typeof i27.InputSelectComponent, typeof i28.InputTextComponent, typeof i29.ItemPreviewComponent, typeof i30.LoaderComponent, typeof i31.MapComponent, typeof i32.MetadataViewerComponent, typeof i33.MiradorComponent, typeof i34.NavComponent, typeof i35.PaginationComponent, typeof i36.SidebarHeaderComponent, typeof i37.SignupComponent, typeof i38.SimpleAutocompleteComponent, typeof i39.TableComponent, typeof i40.TagComponent, typeof i41.InputTextareaComponent, typeof i42.TextViewerComponent, typeof i43.TimelineComponent, typeof i44.ToastComponent, typeof i45.TooltipContentComponent, typeof i46.TreeComponent, typeof i47.WizardComponent, typeof i48.ProgressLineComponent, typeof i49.NetworkComponent, typeof i50.ParallelTextViewerComponent]>;
|
|
56
57
|
static ɵinj: i0.ɵɵInjectorDeclaration<DvComponentsLibModule>;
|
|
57
58
|
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -49,6 +49,7 @@ export * from './lib/components/tooltip-content/tooltip-content';
|
|
|
49
49
|
export * from './lib/components/tree/tree';
|
|
50
50
|
export * from './lib/components/wizard/wizard';
|
|
51
51
|
export * from './lib/components/network/network';
|
|
52
|
+
export * from './lib/components/parallel-text-viewer/parallel-text-viewer';
|
|
52
53
|
export * from './lib/components/advanced-autocomplete/advanced-autocomplete.mock';
|
|
53
54
|
export * from './lib/components/alert/alert.mock';
|
|
54
55
|
export * from './lib/components/avatar/avatar.mock';
|
|
@@ -99,3 +100,4 @@ export * from './lib/components/tooltip-content/tooltip-content.mock';
|
|
|
99
100
|
export * from './lib/components/tree/tree.mock';
|
|
100
101
|
export * from './lib/components/wizard/wizard.mock';
|
|
101
102
|
export * from './lib/components/network/network.mock';
|
|
103
|
+
export * from './lib/components/parallel-text-viewer/parallel-text-viewer.mock';
|