@net7/components 3.8.5 → 3.10.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/bubble-chart/bubble-chart.mjs +131 -176
- package/esm2020/lib/components/input-text/input-text.mjs +3 -3
- package/esm2020/lib/components/input-textarea/input-textarea.mjs +21 -0
- package/esm2020/lib/components/input-textarea/input-textarea.mock.mjs +9 -0
- package/esm2020/lib/dv-components-lib.module.mjs +5 -1
- package/esm2020/public-api.mjs +3 -1
- package/fesm2015/net7-components.mjs +163 -179
- package/fesm2015/net7-components.mjs.map +1 -1
- package/fesm2020/net7-components.mjs +163 -178
- package/fesm2020/net7-components.mjs.map +1 -1
- package/lib/components/bubble-chart/bubble-chart.d.ts +17 -36
- package/lib/components/input-textarea/input-textarea.d.ts +31 -0
- package/lib/components/input-textarea/input-textarea.mock.d.ts +2 -0
- package/lib/dv-components-lib.module.d.ts +11 -10
- 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/_input-textarea.scss +47 -0
|
@@ -1,39 +1,5 @@
|
|
|
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
|
-
}
|
|
37
3
|
/**
|
|
38
4
|
* Interface for BubbleChartComponent's "data"
|
|
39
5
|
*
|
|
@@ -112,6 +78,23 @@ export interface BubbleChartData {
|
|
|
112
78
|
*/
|
|
113
79
|
setDraw?: any;
|
|
114
80
|
}
|
|
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
|
+
}
|
|
115
98
|
export declare class BubbleChartComponent implements AfterContentChecked {
|
|
116
99
|
data: BubbleChartData;
|
|
117
100
|
emit: any;
|
|
@@ -119,8 +102,6 @@ export declare class BubbleChartComponent implements AfterContentChecked {
|
|
|
119
102
|
private _loaded;
|
|
120
103
|
ngAfterContentChecked(): void;
|
|
121
104
|
onClick(payload: any): void;
|
|
122
|
-
measureWidth: (text: any) => number;
|
|
123
|
-
isValidNumber: (value: any) => boolean;
|
|
124
105
|
draw: () => void;
|
|
125
106
|
static ɵfac: i0.ɵɵFactoryDeclaration<BubbleChartComponent, never>;
|
|
126
107
|
static ɵcmp: i0.ɵɵComponentDeclaration<BubbleChartComponent, "n7-bubble-chart", never, { "data": "data"; "emit": "emit"; }, {}, never, never>;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare type InputTextareaData = {
|
|
3
|
+
/** Unique ID for the text input element */
|
|
4
|
+
id: string;
|
|
5
|
+
/** Placeholder text inside the textarea */
|
|
6
|
+
placeholder?: string;
|
|
7
|
+
/** Default value of the textarea */
|
|
8
|
+
value?: string | number | null;
|
|
9
|
+
/** Label for the textarea */
|
|
10
|
+
label?: string;
|
|
11
|
+
/** Prevents the user from changing the input's value */
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
/** Optional icon to render inside the textarea (eg. n7-icon-search) */
|
|
14
|
+
/** Payload that is sent when the user changes the value */
|
|
15
|
+
inputPayload?: any;
|
|
16
|
+
/** Payload that is sent when the user presses the "Enter" key */
|
|
17
|
+
enterPayload?: any;
|
|
18
|
+
/** Payload that is sent when the user clicks on the icon */
|
|
19
|
+
iconPayload?: any;
|
|
20
|
+
/** Additional HTML Classes */
|
|
21
|
+
classes?: any;
|
|
22
|
+
/** Additional data for the component's logic */
|
|
23
|
+
_meta?: any;
|
|
24
|
+
};
|
|
25
|
+
export declare class InputTextareaComponent {
|
|
26
|
+
data: InputTextareaData;
|
|
27
|
+
emit: (type: string, payload?: unknown) => void;
|
|
28
|
+
onChange(inputPayload: any, value?: any): void;
|
|
29
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InputTextareaComponent, never>;
|
|
30
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<InputTextareaComponent, "n7-frontend-components-input-textarea", never, { "data": "data"; "emit": "emit"; }, {}, never, never>;
|
|
31
|
+
}
|
|
@@ -35,17 +35,18 @@ import * as i33 from "./components/signup/signup";
|
|
|
35
35
|
import * as i34 from "./components/simple-autocomplete/simple-autocomplete";
|
|
36
36
|
import * as i35 from "./components/table/table";
|
|
37
37
|
import * as i36 from "./components/tag/tag";
|
|
38
|
-
import * as i37 from "./components/
|
|
39
|
-
import * as i38 from "./components/
|
|
40
|
-
import * as i39 from "./components/
|
|
41
|
-
import * as i40 from "./components/
|
|
42
|
-
import * as i41 from "./components/
|
|
43
|
-
import * as i42 from "./components/
|
|
44
|
-
import * as i43 from "./components/
|
|
45
|
-
import * as i44 from "
|
|
46
|
-
import * as i45 from "@angular/
|
|
38
|
+
import * as i37 from "./components/input-textarea/input-textarea";
|
|
39
|
+
import * as i38 from "./components/text-viewer/text-viewer";
|
|
40
|
+
import * as i39 from "./components/timeline/timeline";
|
|
41
|
+
import * as i40 from "./components/toast/toast";
|
|
42
|
+
import * as i41 from "./components/tooltip-content/tooltip-content";
|
|
43
|
+
import * as i42 from "./components/tree/tree";
|
|
44
|
+
import * as i43 from "./components/wizard/wizard";
|
|
45
|
+
import * as i44 from "./components/progress-line/progress-line";
|
|
46
|
+
import * as i45 from "@angular/common";
|
|
47
|
+
import * as i46 from "@angular/router";
|
|
47
48
|
export declare class DvComponentsLibModule {
|
|
48
49
|
static ɵfac: i0.ɵɵFactoryDeclaration<DvComponentsLibModule, never>;
|
|
49
|
-
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.CarouselComponent, typeof i8.ChartComponent, typeof i9.ContentPlaceholderComponent, typeof i10.DataWidgetComponent, typeof i11.DatepickerComponent, typeof i12.FacetComponent, typeof i13.FacetHeaderComponent, typeof i14.FacetYearRangeComponent, typeof i15.FooterComponent, typeof i16.HeaderComponent, typeof i17.HeroComponent, typeof i18.HistogramRangeComponent, typeof i19.ImageViewerComponent, typeof i20.ImageViewerToolsComponent, typeof i21.InnerTitleComponent, typeof i22.InputCheckboxComponent, typeof i23.InputLinkComponent, typeof i24.InputSelectComponent, typeof i25.InputTextComponent, typeof i26.ItemPreviewComponent, typeof i27.LoaderComponent, typeof i28.MapComponent, typeof i29.MetadataViewerComponent, typeof i30.NavComponent, typeof i31.PaginationComponent, typeof i32.SidebarHeaderComponent, typeof i33.SignupComponent, typeof i34.SimpleAutocompleteComponent, typeof i35.TableComponent, typeof i36.TagComponent, typeof i37.
|
|
50
|
+
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.CarouselComponent, typeof i8.ChartComponent, typeof i9.ContentPlaceholderComponent, typeof i10.DataWidgetComponent, typeof i11.DatepickerComponent, typeof i12.FacetComponent, typeof i13.FacetHeaderComponent, typeof i14.FacetYearRangeComponent, typeof i15.FooterComponent, typeof i16.HeaderComponent, typeof i17.HeroComponent, typeof i18.HistogramRangeComponent, typeof i19.ImageViewerComponent, typeof i20.ImageViewerToolsComponent, typeof i21.InnerTitleComponent, typeof i22.InputCheckboxComponent, typeof i23.InputLinkComponent, typeof i24.InputSelectComponent, typeof i25.InputTextComponent, typeof i26.ItemPreviewComponent, typeof i27.LoaderComponent, typeof i28.MapComponent, typeof i29.MetadataViewerComponent, typeof i30.NavComponent, typeof i31.PaginationComponent, typeof i32.SidebarHeaderComponent, typeof i33.SignupComponent, typeof i34.SimpleAutocompleteComponent, typeof i35.TableComponent, typeof i36.TagComponent, typeof i37.InputTextareaComponent, typeof i38.TextViewerComponent, typeof i39.TimelineComponent, typeof i40.ToastComponent, typeof i41.TooltipContentComponent, typeof i42.TreeComponent, typeof i43.WizardComponent, typeof i44.ProgressLineComponent], [typeof i45.CommonModule, typeof i46.RouterModule], [typeof i1.AdvancedAutocompleteComponent, typeof i2.AlertComponent, typeof i3.AnchorWrapperComponent, typeof i4.AvatarComponent, typeof i5.BreadcrumbsComponent, typeof i6.BubbleChartComponent, typeof i7.CarouselComponent, typeof i8.ChartComponent, typeof i9.ContentPlaceholderComponent, typeof i10.DataWidgetComponent, typeof i11.DatepickerComponent, typeof i12.FacetComponent, typeof i13.FacetHeaderComponent, typeof i14.FacetYearRangeComponent, typeof i15.FooterComponent, typeof i16.HeaderComponent, typeof i17.HeroComponent, typeof i18.HistogramRangeComponent, typeof i19.ImageViewerComponent, typeof i20.ImageViewerToolsComponent, typeof i21.InnerTitleComponent, typeof i22.InputCheckboxComponent, typeof i23.InputLinkComponent, typeof i24.InputSelectComponent, typeof i25.InputTextComponent, typeof i26.ItemPreviewComponent, typeof i27.LoaderComponent, typeof i28.MapComponent, typeof i29.MetadataViewerComponent, typeof i30.NavComponent, typeof i31.PaginationComponent, typeof i32.SidebarHeaderComponent, typeof i33.SignupComponent, typeof i34.SimpleAutocompleteComponent, typeof i35.TableComponent, typeof i36.TagComponent, typeof i37.InputTextareaComponent, typeof i38.TextViewerComponent, typeof i39.TimelineComponent, typeof i40.ToastComponent, typeof i41.TooltipContentComponent, typeof i42.TreeComponent, typeof i43.WizardComponent, typeof i44.ProgressLineComponent]>;
|
|
50
51
|
static ɵinj: i0.ɵɵInjectorDeclaration<DvComponentsLibModule>;
|
|
51
52
|
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -25,6 +25,7 @@ export * from './lib/components/input-checkbox/input-checkbox';
|
|
|
25
25
|
export * from './lib/components/input-link/input-link';
|
|
26
26
|
export * from './lib/components/input-select/input-select';
|
|
27
27
|
export * from './lib/components/input-text/input-text';
|
|
28
|
+
export * from './lib/components/input-textarea/input-textarea';
|
|
28
29
|
export * from './lib/components/item-preview/item-preview';
|
|
29
30
|
export * from './lib/components/loader/loader';
|
|
30
31
|
export * from './lib/components/map/map';
|
|
@@ -67,6 +68,7 @@ export * from './lib/components/input-checkbox/input-checkbox.mock';
|
|
|
67
68
|
export * from './lib/components/input-link/input-link.mock';
|
|
68
69
|
export * from './lib/components/input-select/input-select.mock';
|
|
69
70
|
export * from './lib/components/input-text/input-text.mock';
|
|
71
|
+
export * from './lib/components/input-textarea/input-textarea.mock';
|
|
70
72
|
export * from './lib/components/item-preview/item-preview.mock';
|
|
71
73
|
export * from './lib/components/loader/loader.mock';
|
|
72
74
|
export * from './lib/components/map/map.mock';
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/* ------------------------------------ *\
|
|
2
|
+
#INPUT TEXT
|
|
3
|
+
\* ------------------------------------ */
|
|
4
|
+
.n7-input-textarea {
|
|
5
|
+
|
|
6
|
+
&__label {
|
|
7
|
+
display: block;
|
|
8
|
+
font-size: $font-size-s;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
&__wrapper {
|
|
12
|
+
position: relative;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
&__text[type="textarea"] {
|
|
16
|
+
width: 100%;
|
|
17
|
+
height: 200px;
|
|
18
|
+
box-sizing: border-box;
|
|
19
|
+
padding: $space;
|
|
20
|
+
border: 1px solid $color-gray-03;
|
|
21
|
+
border-radius: 3px;
|
|
22
|
+
resize: vertical;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.has-icon {
|
|
26
|
+
input {
|
|
27
|
+
padding-right: $space*4;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/* ------------------------------------ *\
|
|
34
|
+
#MEDIA-QUERIES
|
|
35
|
+
\* ------------------------------------ */
|
|
36
|
+
@media all and (max-width: $breakpoint-laptop) {
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
@media all and (max-width: $breakpoint-ipad-portrait) {
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
@media all and (max-width: $breakpoint-smartphone-landscape) {
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/* Retina */
|
|
46
|
+
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
|
|
47
|
+
}
|