@net7/components 3.0.2-rc.2 → 3.2.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/esm2020/lib/components/advanced-autocomplete/advanced-autocomplete.mjs +3 -3
- package/esm2020/lib/components/alert/alert.mjs +3 -3
- package/esm2020/lib/components/anchor-wrapper/anchor-wrapper.mjs +3 -3
- package/esm2020/lib/components/breadcrumbs/breadcrumbs.mjs +3 -3
- package/esm2020/lib/components/bubble-chart/bubble-chart.mjs +179 -134
- package/esm2020/lib/components/carousel/carousel.mjs +3 -3
- package/esm2020/lib/components/chart/chart.mjs +3 -3
- package/esm2020/lib/components/content-placeholder/content-placeholder.mjs +3 -3
- package/esm2020/lib/components/data-widget/data-widget.mjs +3 -3
- package/esm2020/lib/components/datepicker/datepicker.mjs +3 -3
- package/esm2020/lib/components/facet/facet.mjs +3 -3
- package/esm2020/lib/components/facet-header/facet-header.mjs +3 -3
- package/esm2020/lib/components/facet-year-range/facet-year-range.mjs +3 -3
- package/esm2020/lib/components/footer/footer.mjs +3 -3
- package/esm2020/lib/components/header/header.mjs +3 -3
- package/esm2020/lib/components/hero/hero.mjs +3 -3
- package/esm2020/lib/components/histogram-range/histogram-range.mjs +27 -13
- package/esm2020/lib/components/histogram-range/histogram-range.mock.mjs +3 -3
- package/esm2020/lib/components/image-viewer/image-viewer.mjs +3 -3
- package/esm2020/lib/components/image-viewer-tools/image-viewer-tools.mjs +5 -5
- package/esm2020/lib/components/inner-title/inner-title.mjs +3 -3
- package/esm2020/lib/components/input-checkbox/input-checkbox.mjs +5 -5
- package/esm2020/lib/components/input-link/input-link.mjs +3 -3
- package/esm2020/lib/components/input-select/input-select.mjs +5 -5
- package/esm2020/lib/components/input-text/input-text.mjs +5 -5
- package/esm2020/lib/components/item-preview/item-preview.mjs +3 -3
- package/esm2020/lib/components/loader/loader.mjs +3 -3
- package/esm2020/lib/components/map/map.mjs +3 -3
- package/esm2020/lib/components/metadata-viewer/metadata-viewer.mjs +3 -3
- package/esm2020/lib/components/nav/nav.mjs +3 -3
- package/esm2020/lib/components/pagination/pagination.mjs +3 -3
- package/esm2020/lib/components/progress-line/progress-line.mjs +3 -3
- package/esm2020/lib/components/sidebar-header/sidebar-header.mjs +3 -3
- package/esm2020/lib/components/signup/signup.mjs +3 -3
- package/esm2020/lib/components/simple-autocomplete/simple-autocomplete.mjs +3 -3
- package/esm2020/lib/components/table/table.mjs +3 -3
- package/esm2020/lib/components/tag/tag.mjs +3 -3
- package/esm2020/lib/components/text-viewer/text-viewer.mjs +15 -5
- package/esm2020/lib/components/text-viewer/text-viewer.mock.mjs +29 -26
- package/esm2020/lib/components/timeline/timeline.mjs +3 -3
- package/esm2020/lib/components/toast/toast.mjs +3 -3
- package/esm2020/lib/components/tooltip-content/tooltip-content.mjs +3 -3
- package/esm2020/lib/components/tree/tree.mjs +3 -3
- package/esm2020/lib/components/wizard/wizard.mjs +3 -3
- package/esm2020/lib/dv-components-lib.module.mjs +4 -4
- package/fesm2015/net7-components.mjs +374 -301
- package/fesm2015/net7-components.mjs.map +1 -1
- package/fesm2020/net7-components.mjs +373 -301
- package/fesm2020/net7-components.mjs.map +1 -1
- package/lib/components/bubble-chart/bubble-chart.d.ts +36 -17
- package/lib/components/histogram-range/histogram-range.d.ts +11 -1
- package/lib/components/text-viewer/text-viewer.d.ts +2 -0
- package/package.json +1 -1
- package/src/lib/styles/components/_text-viewer.scss +7 -1
|
@@ -1,5 +1,39 @@
|
|
|
1
1
|
import { AfterContentChecked } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
|
+
/**
|
|
4
|
+
* Interface for D3Chart's "data"
|
|
5
|
+
*
|
|
6
|
+
* @property entity (required)
|
|
7
|
+
* - id (required)
|
|
8
|
+
* - label (optional)
|
|
9
|
+
* - typeOfEntity (optional)
|
|
10
|
+
* @property count (required)
|
|
11
|
+
*/
|
|
12
|
+
export interface BubbleChartDataItem {
|
|
13
|
+
entity: {
|
|
14
|
+
id: string;
|
|
15
|
+
label?: string;
|
|
16
|
+
typeOfEntity?: string;
|
|
17
|
+
};
|
|
18
|
+
count: number;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Interface for a Circle's node data
|
|
22
|
+
*/
|
|
23
|
+
export interface CircleNode {
|
|
24
|
+
clipUid: string;
|
|
25
|
+
data: BubbleChartDataItem;
|
|
26
|
+
depth: number;
|
|
27
|
+
height: number;
|
|
28
|
+
leafUid: string;
|
|
29
|
+
parent: Node;
|
|
30
|
+
x: number;
|
|
31
|
+
y: number;
|
|
32
|
+
r: number;
|
|
33
|
+
value: number;
|
|
34
|
+
/** Dynamic data for internal logic */
|
|
35
|
+
_meta?: any;
|
|
36
|
+
}
|
|
3
37
|
/**
|
|
4
38
|
* Interface for BubbleChartComponent's "data"
|
|
5
39
|
*
|
|
@@ -78,23 +112,6 @@ export interface BubbleChartData {
|
|
|
78
112
|
*/
|
|
79
113
|
setDraw?: any;
|
|
80
114
|
}
|
|
81
|
-
/**
|
|
82
|
-
* Interface for D3Chart's "data"
|
|
83
|
-
*
|
|
84
|
-
* @property entity (required)
|
|
85
|
-
* - id (required)
|
|
86
|
-
* - label (optional)
|
|
87
|
-
* - typeOfEntity (optional)
|
|
88
|
-
* @property count (required)
|
|
89
|
-
*/
|
|
90
|
-
export interface BubbleChartDataItem {
|
|
91
|
-
entity: {
|
|
92
|
-
id: string;
|
|
93
|
-
label?: string;
|
|
94
|
-
typeOfEntity?: string;
|
|
95
|
-
};
|
|
96
|
-
count: number;
|
|
97
|
-
}
|
|
98
115
|
export declare class BubbleChartComponent implements AfterContentChecked {
|
|
99
116
|
data: BubbleChartData;
|
|
100
117
|
emit: any;
|
|
@@ -102,6 +119,8 @@ export declare class BubbleChartComponent implements AfterContentChecked {
|
|
|
102
119
|
private _loaded;
|
|
103
120
|
ngAfterContentChecked(): void;
|
|
104
121
|
onClick(payload: any): void;
|
|
122
|
+
measureWidth: (text: any) => number;
|
|
123
|
+
isValidNumber: (value: any) => boolean;
|
|
105
124
|
draw: () => void;
|
|
106
125
|
static ɵfac: i0.ɵɵFactoryDeclaration<BubbleChartComponent, never>;
|
|
107
126
|
static ɵcmp: i0.ɵɵComponentDeclaration<BubbleChartComponent, "n7-bubble-chart", never, { "data": "data"; "emit": "emit"; }, {}, never, never>;
|
|
@@ -92,6 +92,8 @@ export declare class HistogramRangeComponent implements AfterContentChecked {
|
|
|
92
92
|
emit: any;
|
|
93
93
|
private d3;
|
|
94
94
|
private sliders;
|
|
95
|
+
/** d3 selection svg root */
|
|
96
|
+
private svg;
|
|
95
97
|
private _loaded;
|
|
96
98
|
private colourBars;
|
|
97
99
|
private getSelectedRange;
|
|
@@ -101,10 +103,18 @@ export declare class HistogramRangeComponent implements AfterContentChecked {
|
|
|
101
103
|
textCollision: (sliders: Sliders) => void;
|
|
102
104
|
/** Get x-axis position from label */
|
|
103
105
|
labelToX(): any;
|
|
106
|
+
/**
|
|
107
|
+
* Get an event with viewBox coordinates and
|
|
108
|
+
* parse them in absolute coordinates
|
|
109
|
+
*/
|
|
110
|
+
getEventCoords(event: any): {
|
|
111
|
+
x: number;
|
|
112
|
+
y: number;
|
|
113
|
+
};
|
|
104
114
|
/** Public api that allows to dinamically change the bars */
|
|
105
115
|
setBars: (newBars: any) => void;
|
|
106
116
|
/** Public api that allows to dinamically change the slider position */
|
|
107
|
-
setSliders: ([startLabel, endLabel]:
|
|
117
|
+
setSliders: ([startLabel, endLabel]: LabelCouple, emit?: boolean) => any;
|
|
108
118
|
/** Emits an event when the component has loaded */
|
|
109
119
|
emitLoaded(payload: any): void;
|
|
110
120
|
static ɵfac: i0.ɵɵFactoryDeclaration<HistogramRangeComponent, never>;
|
|
@@ -27,6 +27,8 @@ export declare class TextViewerComponent implements OnInit {
|
|
|
27
27
|
emit: any;
|
|
28
28
|
static _loaded: boolean;
|
|
29
29
|
ngOnInit(): void;
|
|
30
|
+
isDisplayed: boolean;
|
|
31
|
+
displayIndex(): void;
|
|
30
32
|
onScriptLoaded(): void;
|
|
31
33
|
onClick(payload: any): void;
|
|
32
34
|
static ɵfac: i0.ɵɵFactoryDeclaration<TextViewerComponent, never>;
|
package/package.json
CHANGED
|
@@ -55,6 +55,12 @@
|
|
|
55
55
|
font: var(--pb-base-font);
|
|
56
56
|
color: var(--pb-color-primary);
|
|
57
57
|
margin: 0;
|
|
58
|
+
|
|
59
|
+
main {
|
|
60
|
+
pb-view {
|
|
61
|
+
font-size: 16px;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
58
64
|
}
|
|
59
65
|
|
|
60
66
|
*:focus {
|
|
@@ -358,7 +364,7 @@
|
|
|
358
364
|
}
|
|
359
365
|
|
|
360
366
|
main {
|
|
361
|
-
height: 70vh;
|
|
367
|
+
height: 70vh; //70vh
|
|
362
368
|
overflow: auto;
|
|
363
369
|
display: flex;
|
|
364
370
|
justify-content: space-between;
|