@colijnit/sharedcomponents 1.0.22 → 1.0.24
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/bundles/colijnit-sharedcomponents.umd.js +312 -6
- package/bundles/colijnit-sharedcomponents.umd.js.map +1 -1
- package/colijnit-sharedcomponents.metadata.json +1 -1
- package/esm2015/lib/components/circular-gauge/co-circular-gauge.component.js +125 -0
- package/esm2015/lib/components/circular-gauge/co-circular-gauge.module.js +21 -0
- package/esm2015/lib/components/linear-gauge/co-linear-gauge.component.js +55 -0
- package/esm2015/lib/components/linear-gauge/co-linear-gauge.module.js +19 -0
- package/esm2015/lib/components/statusbar/statusbar.component.js +81 -0
- package/esm2015/lib/components/statusbar/statusbar.module.js +23 -0
- package/esm2015/lib/service/shared-connector.service.js +1 -3
- package/esm2015/public-api.js +7 -1
- package/fesm2015/colijnit-sharedcomponents.js +310 -3
- package/fesm2015/colijnit-sharedcomponents.js.map +1 -1
- package/lib/components/circular-gauge/co-circular-gauge.component.d.ts +20 -0
- package/lib/components/circular-gauge/co-circular-gauge.module.d.ts +2 -0
- package/lib/components/circular-gauge/style/_layout.scss +24 -0
- package/lib/components/circular-gauge/style/_material-definition.scss +8 -0
- package/lib/components/circular-gauge/style/_theme.scss +9 -0
- package/lib/components/circular-gauge/style/material.scss +5 -0
- package/lib/components/linear-gauge/co-linear-gauge.component.d.ts +16 -0
- package/lib/components/linear-gauge/co-linear-gauge.module.d.ts +2 -0
- package/lib/components/linear-gauge/style/_layout.scss +22 -0
- package/lib/components/linear-gauge/style/_material-definition.scss +8 -0
- package/lib/components/linear-gauge/style/_theme.scss +6 -0
- package/lib/components/linear-gauge/style/material.scss +5 -0
- package/lib/components/statusbar/statusbar.component.d.ts +23 -0
- package/lib/components/statusbar/statusbar.module.d.ts +2 -0
- package/lib/components/statusbar/style/_layout.scss +61 -0
- package/lib/components/statusbar/style/_material-definition.scss +23 -0
- package/lib/components/statusbar/style/_theme.scss +16 -0
- package/lib/components/statusbar/style/material.scss +6 -0
- package/package.json +1 -1
- package/public-api.d.ts +6 -0
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { AxisModel, CircularGaugeComponent } from "@syncfusion/ej2-angular-circulargauge";
|
|
2
|
+
import { AnnotationModel } from "@syncfusion/ej2-circulargauge/src/circular-gauge/axes/axis-model";
|
|
3
|
+
export declare class CoCircularGaugeComponent {
|
|
4
|
+
circulargauge: CircularGaugeComponent;
|
|
5
|
+
set value(value: number);
|
|
6
|
+
get value(): number;
|
|
7
|
+
get color(): string;
|
|
8
|
+
showClass(): boolean;
|
|
9
|
+
private _value;
|
|
10
|
+
private _color;
|
|
11
|
+
majorTicks: Object;
|
|
12
|
+
minorTicks: Object;
|
|
13
|
+
labelStyle: Object;
|
|
14
|
+
lineStyle: Object;
|
|
15
|
+
ranges: Object[];
|
|
16
|
+
getAxes(): AxisModel[];
|
|
17
|
+
getPointers(): Object[];
|
|
18
|
+
getAnnotations(): AnnotationModel[];
|
|
19
|
+
private _setColor;
|
|
20
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
@import "../../../style/mixin";
|
|
2
|
+
|
|
3
|
+
@include export-module('co-circular-gauge-layout') {
|
|
4
|
+
.co-circular-gauge {
|
|
5
|
+
.circular-gauge-wrapper{
|
|
6
|
+
width: $circular-gauge-width;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.circular-gauge {
|
|
10
|
+
display: block;
|
|
11
|
+
height: $circular-gauge-height;
|
|
12
|
+
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.annotation {
|
|
16
|
+
display: flex;
|
|
17
|
+
justify-content: start;
|
|
18
|
+
font-family: $circular-gauge-annotation-font-family;
|
|
19
|
+
font-size: $circular-gauge-annotation-font-size;
|
|
20
|
+
font-weight: $circular-gauge-annotation-font-weight;
|
|
21
|
+
padding-top: $circular-gauge-annotation-padding-top;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
$circular-gauge-height: 30px !default;
|
|
2
|
+
$circular-gauge-width: 30px !default;
|
|
3
|
+
|
|
4
|
+
$circular-gauge-annotation-font-family: $sc-font-family !default;
|
|
5
|
+
$circular-gauge-annotation-font-size: 8px !default;
|
|
6
|
+
$circular-gauge-annotation-font-weight: bold !default;
|
|
7
|
+
$circular-gauge-annotation-color: #525E64 !default;
|
|
8
|
+
$circular-gauge-annotation-padding-top: 2px !default;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
declare enum GaugeColor {
|
|
2
|
+
Low = "#E0E0E0",
|
|
3
|
+
Medium = "#F88952",
|
|
4
|
+
High = "#5FDCB3"
|
|
5
|
+
}
|
|
6
|
+
export declare class CoLinearGaugeComponent {
|
|
7
|
+
set value(value: number);
|
|
8
|
+
get value(): number;
|
|
9
|
+
count: number;
|
|
10
|
+
showClass(): boolean;
|
|
11
|
+
private _value;
|
|
12
|
+
color: GaugeColor;
|
|
13
|
+
getStyle(): string;
|
|
14
|
+
private _setColor;
|
|
15
|
+
}
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
@import "../../../style/mixin";
|
|
2
|
+
|
|
3
|
+
@include export-module('co-linear-gauge-layout') {
|
|
4
|
+
.co-linear-gauge {
|
|
5
|
+
.linear-gauge {
|
|
6
|
+
height: $linear-gauge-height;
|
|
7
|
+
min-width: $linear-gauge-width;
|
|
8
|
+
max-width: fit-content;
|
|
9
|
+
margin: $linear-gauge-margin;
|
|
10
|
+
border: $linear-gauge-border;
|
|
11
|
+
border-radius: $linear-gauge-border-radius;
|
|
12
|
+
|
|
13
|
+
font-family: $linear-gauge-font-family;
|
|
14
|
+
font-size: $linear-gauge-font-size;
|
|
15
|
+
font-weight: $linear-gauge-font-weight;
|
|
16
|
+
|
|
17
|
+
display: flex;
|
|
18
|
+
justify-content: center;
|
|
19
|
+
align-items: center;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
$linear-gauge-font-family: $sc-font-family !default;
|
|
2
|
+
$linear-gauge-font-size: 10px !default;
|
|
3
|
+
$linear-gauge-font-weight: bold !default;
|
|
4
|
+
$linear-gauge-height: 12px !default;
|
|
5
|
+
$linear-gauge-width: 12px !default;
|
|
6
|
+
$linear-gauge-margin: 1px !default;
|
|
7
|
+
$linear-gauge-border: solid 1px !default;
|
|
8
|
+
$linear-gauge-border-radius: 2px !default;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { EventEmitter } from "@angular/core";
|
|
2
|
+
export interface StatusbarData {
|
|
3
|
+
label: string;
|
|
4
|
+
percentage: number;
|
|
5
|
+
count?: number;
|
|
6
|
+
totalCount?: number;
|
|
7
|
+
}
|
|
8
|
+
export declare class StatusbarComponent {
|
|
9
|
+
set statusbarData(value: StatusbarData[]);
|
|
10
|
+
get statusbarData(): StatusbarData[];
|
|
11
|
+
statusbarClick: EventEmitter<void>;
|
|
12
|
+
showClass(): boolean;
|
|
13
|
+
constructor();
|
|
14
|
+
showPopup: boolean;
|
|
15
|
+
popupClass: string;
|
|
16
|
+
private _statusbarData;
|
|
17
|
+
private _mouseY;
|
|
18
|
+
private _windowHeight;
|
|
19
|
+
onHover(event: any): void;
|
|
20
|
+
onLeave(): void;
|
|
21
|
+
onStatusbarClick(): void;
|
|
22
|
+
setPopupClass(): void;
|
|
23
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
@import "../../../style/mixin";
|
|
2
|
+
|
|
3
|
+
@include export-module('co-statusbar-layout') {
|
|
4
|
+
.co-statusbar-wrapper {
|
|
5
|
+
display: flex;
|
|
6
|
+
flex-direction: column;;
|
|
7
|
+
position: relative;
|
|
8
|
+
font-family: $statusbar-font-family;
|
|
9
|
+
font-size:$statusbar-font-size;
|
|
10
|
+
height: $statusbar-height;
|
|
11
|
+
min-width: $statusbar-min-width;
|
|
12
|
+
max-width: $statusbar-max-width;
|
|
13
|
+
|
|
14
|
+
cursor: pointer;
|
|
15
|
+
|
|
16
|
+
.statuses {
|
|
17
|
+
display: flex;
|
|
18
|
+
flex-direction: row;
|
|
19
|
+
justify-content: center;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.status-description-popup{
|
|
23
|
+
min-height: $statusbar-popup-min-height;
|
|
24
|
+
min-width: $statusbar-popup-min-width;
|
|
25
|
+
max-width: $statusbar-popup-max-width;
|
|
26
|
+
padding: $statusbar-popup-padding;
|
|
27
|
+
border: $statusbar-popup-border;
|
|
28
|
+
border-radius: $statusbar-popup-border-radius;
|
|
29
|
+
z-index: $statusbar-popup-z-index;
|
|
30
|
+
|
|
31
|
+
&.dropdown {
|
|
32
|
+
position: absolute;
|
|
33
|
+
top: $statusbar-popup-dropdown-position-top;
|
|
34
|
+
left: 50%;
|
|
35
|
+
transform: translate(-50%, 0);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
&.dropup {
|
|
39
|
+
position: absolute;
|
|
40
|
+
bottom: $statusbar-popup-dropup-position-down;
|
|
41
|
+
left: 50%;
|
|
42
|
+
transform: translate(-50%, 0);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.status-descriptions {
|
|
47
|
+
display: flex;
|
|
48
|
+
flex-direction: column;
|
|
49
|
+
|
|
50
|
+
.status-description {
|
|
51
|
+
display: flex;
|
|
52
|
+
flex-direction: row;
|
|
53
|
+
align-items: center;
|
|
54
|
+
|
|
55
|
+
span {
|
|
56
|
+
padding-left: $statusbar-status-description-padding-left;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
$statusbar-font-family: $sc-font-family !default;
|
|
2
|
+
$statusbar-font-size: 12px !default;
|
|
3
|
+
|
|
4
|
+
$statusbar-height: 30px !default;
|
|
5
|
+
$statusbar-min-width: 100px !default;
|
|
6
|
+
$statusbar-max-width: fit-content !default;
|
|
7
|
+
|
|
8
|
+
$statusbar-background-color: white !default;
|
|
9
|
+
|
|
10
|
+
$statusbar-popup-min-height: auto !default;
|
|
11
|
+
$statusbar-popup-min-width: 180px !default;
|
|
12
|
+
$statusbar-popup-max-width: fit-content !default;
|
|
13
|
+
$statusbar-popup-padding: 10px !default;
|
|
14
|
+
$statusbar-popup-border: 2px solid !default;
|
|
15
|
+
$statusbar-popup-border-color: white !default;
|
|
16
|
+
$statusbar-popup-border-radius: 10px !default;
|
|
17
|
+
$statusbar-popup-border-box-shadow: 1px 1px 10px 1px #B6BFBF !default;
|
|
18
|
+
$statusbar-popup-z-index: 10 !default;
|
|
19
|
+
|
|
20
|
+
$statusbar-popup-dropdown-position-top: 30px;
|
|
21
|
+
$statusbar-popup-dropup-position-down: 35px;
|
|
22
|
+
|
|
23
|
+
$statusbar-status-description-padding-left: 15px !default;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
@import "../../../style/mixin";
|
|
2
|
+
|
|
3
|
+
@include export-module('co-statusbar-theme') {
|
|
4
|
+
.co-statusbar-wrapper {
|
|
5
|
+
.statusses {
|
|
6
|
+
background-color: $statusbar-background-color;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.status-description-popup {
|
|
10
|
+
background-color: $statusbar-background-color;
|
|
11
|
+
border-color: $statusbar-popup-border-color;
|
|
12
|
+
box-shadow: $statusbar-popup-border-box-shadow;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -8,4 +8,10 @@ export * from './lib/components/key-pad/key-pad.component';
|
|
|
8
8
|
export * from './lib/components/key-pad/key-pad.module';
|
|
9
9
|
export * from './lib/components/layout-switcher/layout-switcher.component';
|
|
10
10
|
export * from './lib/components/layout-switcher/layout-switcher.module';
|
|
11
|
+
export * from './lib/components/circular-gauge/co-circular-gauge.component';
|
|
12
|
+
export * from './lib/components/circular-gauge/co-circular-gauge.module';
|
|
13
|
+
export * from './lib/components/linear-gauge/co-linear-gauge.component';
|
|
14
|
+
export * from './lib/components/linear-gauge/co-linear-gauge.module';
|
|
15
|
+
export * from './lib/components/statusbar/statusbar.component';
|
|
16
|
+
export * from './lib/components/statusbar/statusbar.module';
|
|
11
17
|
export * from './lib/service/shared.service';
|