@net7/components 3.11.0 → 3.12.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/esm2020/lib/components/button/button.mjs +24 -0
- package/esm2020/lib/components/button/button.mock.mjs +13 -0
- package/esm2020/lib/components/icon/icon.mjs +21 -0
- package/esm2020/lib/components/icon/icon.mock.mjs +8 -0
- package/esm2020/lib/components/inner-title/inner-title.mjs +3 -3
- package/esm2020/lib/components/inner-title/inner-title.mock.mjs +3 -2
- package/esm2020/lib/dv-components-lib.module.mjs +12 -4
- package/esm2020/lib/shared-interfaces.mjs +1 -1
- package/esm2020/public-api.mjs +5 -1
- package/fesm2015/net7-components.mjs +142 -78
- package/fesm2015/net7-components.mjs.map +1 -1
- package/fesm2020/net7-components.mjs +142 -78
- package/fesm2020/net7-components.mjs.map +1 -1
- package/lib/components/button/button.d.ts +15 -0
- package/lib/components/button/button.mock.d.ts +2 -0
- package/lib/components/icon/icon.d.ts +9 -0
- package/lib/components/icon/icon.mock.d.ts +2 -0
- package/lib/components/inner-title/inner-title.d.ts +1 -0
- package/lib/dv-components-lib.module.d.ts +43 -41
- package/lib/shared-interfaces.d.ts +8 -12
- package/package.json +1 -1
- package/public-api.d.ts +4 -0
- package/src/lib/styles/_imports.scss +2 -0
- package/src/lib/styles/atoms/_button.scss +1 -1
- package/src/lib/styles/components/_button.scss +68 -0
- package/src/lib/styles/components/_icon.scss +37 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Button, Icon } from 'dv-components-lib';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export interface ButtonData extends Button {
|
|
4
|
+
isDisabled?: boolean;
|
|
5
|
+
isLoading?: boolean;
|
|
6
|
+
iconLeft?: Icon;
|
|
7
|
+
iconRight?: Icon;
|
|
8
|
+
}
|
|
9
|
+
export declare class ButtonComponent {
|
|
10
|
+
data: ButtonData;
|
|
11
|
+
emit: (type: string, payload?: unknown) => void;
|
|
12
|
+
onClick(value: any): void;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ButtonComponent, never>;
|
|
14
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ButtonComponent, "n7-button", never, { "data": "data"; "emit": "emit"; }, {}, never, never>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Icon } from '../../shared-interfaces';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class IconComponent {
|
|
4
|
+
data: Icon;
|
|
5
|
+
emit: (type: string, payload?: unknown) => void;
|
|
6
|
+
onClick(value: any): void;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IconComponent, never>;
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<IconComponent, "n7-icon", never, { "data": "data"; "emit": "emit"; }, {}, never, never>;
|
|
9
|
+
}
|
|
@@ -5,48 +5,50 @@ import * as i3 from "./components/anchor-wrapper/anchor-wrapper";
|
|
|
5
5
|
import * as i4 from "./components/avatar/avatar";
|
|
6
6
|
import * as i5 from "./components/breadcrumbs/breadcrumbs";
|
|
7
7
|
import * as i6 from "./components/bubble-chart/bubble-chart";
|
|
8
|
-
import * as i7 from "./components/
|
|
9
|
-
import * as i8 from "./components/
|
|
10
|
-
import * as i9 from "./components/
|
|
11
|
-
import * as i10 from "./components/
|
|
12
|
-
import * as i11 from "./components/
|
|
13
|
-
import * as i12 from "./components/
|
|
14
|
-
import * as i13 from "./components/facet
|
|
15
|
-
import * as i14 from "./components/facet-
|
|
16
|
-
import * as i15 from "./components/
|
|
17
|
-
import * as i16 from "./components/
|
|
18
|
-
import * as i17 from "./components/
|
|
19
|
-
import * as i18 from "./components/
|
|
20
|
-
import * as i19 from "./components/
|
|
21
|
-
import * as i20 from "./components/
|
|
22
|
-
import * as i21 from "./components/
|
|
23
|
-
import * as i22 from "./components/
|
|
24
|
-
import * as i23 from "./components/
|
|
25
|
-
import * as i24 from "./components/input-
|
|
26
|
-
import * as i25 from "./components/input-
|
|
27
|
-
import * as i26 from "./components/
|
|
28
|
-
import * as i27 from "./components/
|
|
29
|
-
import * as i28 from "./components/
|
|
30
|
-
import * as i29 from "./components/
|
|
31
|
-
import * as i30 from "./components/
|
|
32
|
-
import * as i31 from "./components/
|
|
33
|
-
import * as i32 from "./components/
|
|
34
|
-
import * as i33 from "./components/
|
|
35
|
-
import * as i34 from "./components/
|
|
36
|
-
import * as i35 from "./components/
|
|
37
|
-
import * as i36 from "./components/
|
|
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 "./components/
|
|
46
|
-
import * as i45 from "
|
|
47
|
-
import * as i46 from "
|
|
8
|
+
import * as i7 from "./components/button/button";
|
|
9
|
+
import * as i8 from "./components/carousel/carousel";
|
|
10
|
+
import * as i9 from "./components/chart/chart";
|
|
11
|
+
import * as i10 from "./components/content-placeholder/content-placeholder";
|
|
12
|
+
import * as i11 from "./components/data-widget/data-widget";
|
|
13
|
+
import * as i12 from "./components/datepicker/datepicker";
|
|
14
|
+
import * as i13 from "./components/facet/facet";
|
|
15
|
+
import * as i14 from "./components/facet-header/facet-header";
|
|
16
|
+
import * as i15 from "./components/facet-year-range/facet-year-range";
|
|
17
|
+
import * as i16 from "./components/footer/footer";
|
|
18
|
+
import * as i17 from "./components/header/header";
|
|
19
|
+
import * as i18 from "./components/hero/hero";
|
|
20
|
+
import * as i19 from "./components/icon/icon";
|
|
21
|
+
import * as i20 from "./components/histogram-range/histogram-range";
|
|
22
|
+
import * as i21 from "./components/image-viewer/image-viewer";
|
|
23
|
+
import * as i22 from "./components/image-viewer-tools/image-viewer-tools";
|
|
24
|
+
import * as i23 from "./components/inner-title/inner-title";
|
|
25
|
+
import * as i24 from "./components/input-checkbox/input-checkbox";
|
|
26
|
+
import * as i25 from "./components/input-link/input-link";
|
|
27
|
+
import * as i26 from "./components/input-select/input-select";
|
|
28
|
+
import * as i27 from "./components/input-text/input-text";
|
|
29
|
+
import * as i28 from "./components/item-preview/item-preview";
|
|
30
|
+
import * as i29 from "./components/loader/loader";
|
|
31
|
+
import * as i30 from "./components/map/map";
|
|
32
|
+
import * as i31 from "./components/metadata-viewer/metadata-viewer";
|
|
33
|
+
import * as i32 from "./components/nav/nav";
|
|
34
|
+
import * as i33 from "./components/pagination/pagination";
|
|
35
|
+
import * as i34 from "./components/sidebar-header/sidebar-header";
|
|
36
|
+
import * as i35 from "./components/signup/signup";
|
|
37
|
+
import * as i36 from "./components/simple-autocomplete/simple-autocomplete";
|
|
38
|
+
import * as i37 from "./components/table/table";
|
|
39
|
+
import * as i38 from "./components/tag/tag";
|
|
40
|
+
import * as i39 from "./components/input-textarea/input-textarea";
|
|
41
|
+
import * as i40 from "./components/text-viewer/text-viewer";
|
|
42
|
+
import * as i41 from "./components/timeline/timeline";
|
|
43
|
+
import * as i42 from "./components/toast/toast";
|
|
44
|
+
import * as i43 from "./components/tooltip-content/tooltip-content";
|
|
45
|
+
import * as i44 from "./components/tree/tree";
|
|
46
|
+
import * as i45 from "./components/wizard/wizard";
|
|
47
|
+
import * as i46 from "./components/progress-line/progress-line";
|
|
48
|
+
import * as i47 from "@angular/common";
|
|
49
|
+
import * as i48 from "@angular/router";
|
|
48
50
|
export declare class DvComponentsLibModule {
|
|
49
51
|
static ɵfac: i0.ɵɵFactoryDeclaration<DvComponentsLibModule, never>;
|
|
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.
|
|
52
|
+
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.FooterComponent, typeof i17.HeaderComponent, typeof i18.HeroComponent, typeof i19.IconComponent, typeof i20.HistogramRangeComponent, typeof i21.ImageViewerComponent, typeof i22.ImageViewerToolsComponent, typeof i23.InnerTitleComponent, typeof i24.InputCheckboxComponent, typeof i25.InputLinkComponent, typeof i26.InputSelectComponent, typeof i27.InputTextComponent, typeof i28.ItemPreviewComponent, typeof i29.LoaderComponent, typeof i30.MapComponent, typeof i31.MetadataViewerComponent, typeof i32.NavComponent, typeof i33.PaginationComponent, typeof i34.SidebarHeaderComponent, typeof i35.SignupComponent, typeof i36.SimpleAutocompleteComponent, typeof i37.TableComponent, typeof i38.TagComponent, typeof i39.InputTextareaComponent, typeof i40.TextViewerComponent, typeof i41.TimelineComponent, typeof i42.ToastComponent, typeof i43.TooltipContentComponent, typeof i44.TreeComponent, typeof i45.WizardComponent, typeof i46.ProgressLineComponent], [typeof i47.CommonModule, typeof i48.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.FooterComponent, typeof i17.HeaderComponent, typeof i18.HeroComponent, typeof i19.IconComponent, typeof i20.HistogramRangeComponent, typeof i21.ImageViewerComponent, typeof i22.ImageViewerToolsComponent, typeof i23.InnerTitleComponent, typeof i24.InputCheckboxComponent, typeof i25.InputLinkComponent, typeof i26.InputSelectComponent, typeof i27.InputTextComponent, typeof i28.ItemPreviewComponent, typeof i29.LoaderComponent, typeof i30.MapComponent, typeof i31.MetadataViewerComponent, typeof i32.NavComponent, typeof i33.PaginationComponent, typeof i34.SidebarHeaderComponent, typeof i35.SignupComponent, typeof i36.SimpleAutocompleteComponent, typeof i37.TableComponent, typeof i38.TagComponent, typeof i39.InputTextareaComponent, typeof i40.TextViewerComponent, typeof i41.TimelineComponent, typeof i42.ToastComponent, typeof i43.TooltipContentComponent, typeof i44.TreeComponent, typeof i45.WizardComponent, typeof i46.ProgressLineComponent]>;
|
|
51
53
|
static ɵinj: i0.ɵɵInjectorDeclaration<DvComponentsLibModule>;
|
|
52
54
|
}
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
export interface EssentialData {
|
|
2
|
+
/**
|
|
3
|
+
* main set of classes of the component
|
|
4
|
+
*/
|
|
5
|
+
classes?: string;
|
|
6
|
+
}
|
|
1
7
|
/**
|
|
2
8
|
* Interface for an anchor <a> element
|
|
3
9
|
*
|
|
@@ -31,20 +37,10 @@ export interface Anchor {
|
|
|
31
37
|
* @property classes (optional)
|
|
32
38
|
* @property _meta (optional)
|
|
33
39
|
*/
|
|
34
|
-
export interface Button {
|
|
35
|
-
/**
|
|
36
|
-
* innerHTML or plain text for the label
|
|
37
|
-
*/
|
|
40
|
+
export interface Button extends EssentialData {
|
|
41
|
+
/** innerHTML or plain text for the label */
|
|
38
42
|
text?: string;
|
|
39
|
-
/**
|
|
40
|
-
* additional html classes
|
|
41
|
-
*/
|
|
42
|
-
classes?: string;
|
|
43
43
|
anchor?: Anchor;
|
|
44
|
-
/**
|
|
45
|
-
* additional info
|
|
46
|
-
*/
|
|
47
|
-
_meta?: any;
|
|
48
44
|
}
|
|
49
45
|
/**
|
|
50
46
|
* Type for an icon.
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ export * from './lib/components/anchor-wrapper/anchor-wrapper';
|
|
|
6
6
|
export * from './lib/components/avatar/avatar';
|
|
7
7
|
export * from './lib/components/breadcrumbs/breadcrumbs';
|
|
8
8
|
export * from './lib/components/bubble-chart/bubble-chart';
|
|
9
|
+
export * from './lib/components/button/button';
|
|
9
10
|
export * from './lib/components/carousel/carousel';
|
|
10
11
|
export * from './lib/components/chart/chart';
|
|
11
12
|
export * from './lib/components/content-placeholder/content-placeholder';
|
|
@@ -18,6 +19,7 @@ export * from './lib/components/footer/footer';
|
|
|
18
19
|
export * from './lib/components/header/header';
|
|
19
20
|
export * from './lib/components/hero/hero';
|
|
20
21
|
export * from './lib/components/histogram-range/histogram-range';
|
|
22
|
+
export * from './lib/components/icon/icon';
|
|
21
23
|
export * from './lib/components/image-viewer-tools/image-viewer-tools';
|
|
22
24
|
export * from './lib/components/image-viewer/image-viewer';
|
|
23
25
|
export * from './lib/components/inner-title/inner-title';
|
|
@@ -49,6 +51,7 @@ export * from './lib/components/alert/alert.mock';
|
|
|
49
51
|
export * from './lib/components/avatar/avatar.mock';
|
|
50
52
|
export * from './lib/components/breadcrumbs/breadcrumbs.mock';
|
|
51
53
|
export * from './lib/components/bubble-chart/bubble-chart.mock';
|
|
54
|
+
export * from './lib/components/button/button.mock';
|
|
52
55
|
export * from './lib/components/carousel/carousel.mock';
|
|
53
56
|
export * from './lib/components/chart/chart.mock';
|
|
54
57
|
export * from './lib/components/content-placeholder/content-placeholder.mock';
|
|
@@ -61,6 +64,7 @@ export * from './lib/components/footer/footer.mock';
|
|
|
61
64
|
export * from './lib/components/header/header.mock';
|
|
62
65
|
export * from './lib/components/hero/hero.mock';
|
|
63
66
|
export * from './lib/components/histogram-range/histogram-range.mock';
|
|
67
|
+
export * from './lib/components/icon/icon.mock';
|
|
64
68
|
export * from './lib/components/image-viewer-tools/image-viewer-tools.mock';
|
|
65
69
|
export * from './lib/components/image-viewer/image-viewer.mock';
|
|
66
70
|
export * from './lib/components/inner-title/inner-title.mock';
|
|
@@ -32,6 +32,7 @@
|
|
|
32
32
|
@import "components/alert";
|
|
33
33
|
@import "components/anchor-wrapper";
|
|
34
34
|
@import "components/avatar";
|
|
35
|
+
@import "components/button";
|
|
35
36
|
@import "components/breadcrumbs";
|
|
36
37
|
@import "components/bubble-chart";
|
|
37
38
|
@import "components/carousel";
|
|
@@ -46,6 +47,7 @@
|
|
|
46
47
|
@import "components/header";
|
|
47
48
|
@import "components/hero";
|
|
48
49
|
@import "components/histogram-range";
|
|
50
|
+
@import "components/icon";
|
|
49
51
|
@import "components/image-viewer";
|
|
50
52
|
@import "components/image-viewer-tools";
|
|
51
53
|
@import "components/inner-title";
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* BUTTON
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
/* ------------------------------------ *\
|
|
8
|
+
#BUTTON
|
|
9
|
+
\* ------------------------------------ */
|
|
10
|
+
|
|
11
|
+
.n7-btn {
|
|
12
|
+
display: inline-flex;
|
|
13
|
+
align-items: center;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.n7-btn.is-loading {
|
|
17
|
+
min-width: 80px;
|
|
18
|
+
display: flex;
|
|
19
|
+
align-items: center;
|
|
20
|
+
justify-content: center;
|
|
21
|
+
|
|
22
|
+
.n7-btn__loader {
|
|
23
|
+
width: 10px !important;
|
|
24
|
+
height: 10px !important;
|
|
25
|
+
border-width: 3px;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.n7-btn-cta {
|
|
30
|
+
.n7-btn__loader {
|
|
31
|
+
width: 10px !important;
|
|
32
|
+
height: 10px !important;
|
|
33
|
+
position: relative;
|
|
34
|
+
border-top: 1.1em solid rgb(200 212 255 / 30%);
|
|
35
|
+
border-right: 1.1em solid rgb(200 212 255 / 30%);
|
|
36
|
+
border-bottom: 1.1em solid rgb(200 212 255 / 30%);
|
|
37
|
+
border-left: 1.1em solid #ffffff;
|
|
38
|
+
border-width: 3px;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
.n7-btn-cta.is-disabled,
|
|
44
|
+
.n7-btn-cta.is-disabled:hover {
|
|
45
|
+
border-color: unset;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.n7-btn__text {
|
|
49
|
+
margin: 0 $space * 0.5;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
/* ------------------------------------ *\
|
|
55
|
+
#MEDIA-QUERIES
|
|
56
|
+
\* ------------------------------------ */
|
|
57
|
+
@media all and (max-width: $breakpoint-laptop) {
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
@media all and (max-width: $breakpoint-ipad-portrait) {
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
@media all and (max-width: $breakpoint-smartphone-landscape) {
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/* Retina */
|
|
67
|
+
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
|
|
68
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Icon
|
|
3
|
+
*
|
|
4
|
+
* Icon component.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
/* ------------------------------------ *\
|
|
8
|
+
ICON
|
|
9
|
+
\* ------------------------------------ */
|
|
10
|
+
.n7-icon {
|
|
11
|
+
margin: 0 $space * 0.5;
|
|
12
|
+
display: inline-flex;
|
|
13
|
+
align-items: center;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
n7-icon {
|
|
17
|
+
display: inline-flex;
|
|
18
|
+
align-items: center;
|
|
19
|
+
justify-content: center;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
/* ------------------------------------ *\
|
|
24
|
+
#MEDIA-QUERIES
|
|
25
|
+
\* ------------------------------------ */
|
|
26
|
+
@media all and (max-width: $breakpoint-laptop) {
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
@media all and (max-width: $breakpoint-ipad-portrait) {
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
@media all and (max-width: $breakpoint-smartphone-landscape) {
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/* Retina */
|
|
36
|
+
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
|
|
37
|
+
}
|