-
0) || !stakeholder.defaultId)"
[formInput]="chartIndicatorFb.get('description')"
label="Default Description" type="textarea">
diff --git a/src/app/topic/indicators.component.ts b/src/app/topic/indicators.component.ts
index 1f4dd4c..47e6ced 100644
--- a/src/app/topic/indicators.component.ts
+++ b/src/app/topic/indicators.component.ts
@@ -11,7 +11,7 @@ import {
} from "@angular/core";
import {
Indicator,
- IndicatorPath,
+ IndicatorPath, IndicatorSize,
IndicatorType,
Section,
Stakeholder,
@@ -408,6 +408,26 @@ export class IndicatorsComponent implements OnInit, OnDestroy, OnChanges, AfterV
return this.chartIndicatorFb.get('indicatorPaths') as FormArray;
}
+ public getNumberClassBySize(size: IndicatorSize) {
+ if(size === 'small') {
+ return 'uk-width-1-4@xl uk-width-1-3@l uk-width-1-2@m uk-width-1-1';
+ } else if(size === 'medium') {
+ return 'uk-width-1-3@l uk-width-1-2@m uk-width-1-1';
+ } else {
+ return 'uk-width-1-2@l uk-width-1-1@m uk-width-1-1';
+ }
+ }
+
+ public getChartClassBySize(size: IndicatorSize) {
+ if(size === 'small') {
+ return 'uk-width-1-3@xl uk-width-1-2@m uk-width-1-1';
+ } else if(size === 'medium') {
+ return 'uk-width-1-2@l uk-width-1-1';
+ } else {
+ return 'uk-width-1-1';
+ }
+ }
+
public addJsonPath(index: number) {
if (index == 0 && this.getJsonPath(index).getRawValue()[index].indexOf(",") != -1) {
//if in the first path there are more than one paaths comma separated, split them and autogenerate the forms
@@ -792,18 +812,18 @@ export class IndicatorsComponent implements OnInit, OnDestroy, OnChanges, AfterV
this.filterNumbers();
this.numberIndicatorFb = null;
}
- UIkit.notification('Indicator has been successfully saved', {
+ UIkit.notification('Indicator has been successfully saved', {
status: 'success',
- timeout: 3000,
- pos: 'top-left'
+ timeout: 6000,
+ pos: 'bottom-right'
});
this.editing = false;
}, error => {
this.chartIndicatorFb = null;
UIkit.notification(error.error.message, {
status: 'danger',
- timeout: 3000,
- pos: 'top-left'
+ timeout: 6000,
+ pos: 'bottom-right'
});
this.editing = false;
}));
@@ -894,17 +914,17 @@ export class IndicatorsComponent implements OnInit, OnDestroy, OnChanges, AfterV
this.numbers.find(section => section._id === this.section._id).indicators.splice(this.index, 1);
this.filterNumbers();
}
- UIkit.notification('Indicator has been successfully deleted', {
+ UIkit.notification('Indicator has been successfully deleted', {
status: 'success',
- timeout: 3000,
- pos: 'top-left'
+ timeout: 6000,
+ pos: 'bottom-right'
});
this.editing = false;
}, error => {
UIkit.notification(error.error.message, {
status: 'danger',
- timeout: 3000,
- pos: 'top-left'
+ timeout: 6000,
+ pos: 'bottom-right'
});
this.editing = false;
}));
@@ -922,17 +942,17 @@ export class IndicatorsComponent implements OnInit, OnDestroy, OnChanges, AfterV
];
this.subscriptions.push(this.stakeholderService.changeVisibility(this.properties.monitorServiceAPIURL, path, visibility).subscribe(visibility => {
indicator.visibility = visibility;
- UIkit.notification('Indicator has been successfully changed to ' + indicator.visibility.toLowerCase(), {
+ UIkit.notification('Indicator has been successfully changed to ' + indicator.visibility.toLowerCase(), {
status: 'success',
- timeout: 3000,
- pos: 'top-left'
+ timeout: 6000,
+ pos: 'bottom-right'
});
this.editing = false;
}, error => {
UIkit.notification('An error has been occurred. Try again later', {
status: 'danger',
- timeout: 3000,
- pos: 'top-left'
+ timeout: 6000,
+ pos: 'bottom-right'
});
this.editing = false;
}));
@@ -950,17 +970,17 @@ export class IndicatorsComponent implements OnInit, OnDestroy, OnChanges, AfterV
];
this.stakeholderService.toggleAccess(this.properties.monitorServiceAPIURL, path).subscribe(visibility => {
indicator.visibility = visibility;
- UIkit.notification('Indicator has been successfully changed to ' + (visibility?'public':'private'), {
+ UIkit.notification('Indicator has been successfully changed to ' + (visibility?'public':'private'), {
status: 'success',
- timeout: 3000,
- pos: 'top-left'
+ timeout: 6000,
+ pos: 'bottom-right'
});
this.editing = false;
}, error => {
UIkit.notification(error.error.message, {
status: 'danger',
- timeout: 3000,
- pos: 'top-left'
+ timeout: 6000,
+ pos: 'bottom-right'
});
this.editing = false;
});
@@ -983,17 +1003,17 @@ export class IndicatorsComponent implements OnInit, OnDestroy, OnChanges, AfterV
this.filterNumbers();
}
this.initReorder();
- UIkit.notification('Section has been successfully saved', {
+ UIkit.notification('Section has been successfully saved', {
status: 'success',
- timeout: 3000,
- pos: 'top-left'
+ timeout: 6000,
+ pos: 'bottom-right'
});
this.editing = false;
}, error => {
UIkit.notification(error.error.message, {
status: 'danger',
- timeout: 3000,
- pos: 'top-left'
+ timeout: 6000,
+ pos: 'bottom-right'
});
this.editing = false;
}));
@@ -1025,17 +1045,17 @@ export class IndicatorsComponent implements OnInit, OnDestroy, OnChanges, AfterV
this.filterNumbers();
}
this.initReorder();
- UIkit.notification('Section has been successfully created', {
+ UIkit.notification('Section has been successfully created', {
status: 'success',
- timeout: 3000,
- pos: 'top-left'
+ timeout: 6000,
+ pos: 'bottom-right'
});
this.editing = false;
}, error => {
UIkit.notification(error.error.message, {
status: 'danger',
- timeout: 3000,
- pos: 'top-left'
+ timeout: 6000,
+ pos: 'bottom-right'
});
this.editing = false;
}));
@@ -1096,17 +1116,17 @@ export class IndicatorsComponent implements OnInit, OnDestroy, OnChanges, AfterV
this.filterNumbers();
}
this.initReorder();
- UIkit.notification('Section has been successfully deleted', {
+ UIkit.notification('Section has been successfully deleted', {
status: 'success',
- timeout: 3000,
- pos: 'top-left'
+ timeout: 6000,
+ pos: 'bottom-right'
});
this.editing = false;
}, error => {
UIkit.notification(error.error.message, {
status: 'danger',
- timeout: 3000,
- pos: 'top-left'
+ timeout: 6000,
+ pos: 'bottom-right'
});
this.editing = false;
}));
diff --git a/src/app/topic/topic.component.html b/src/app/topic/topic.component.html
index 4084c77..e663e2d 100644
--- a/src/app/topic/topic.component.html
+++ b/src/app/topic/topic.component.html
@@ -54,7 +54,7 @@
-
+
Create new topic
diff --git a/src/app/topic/topic.component.ts b/src/app/topic/topic.component.ts
index 5074755..23e4f90 100644
--- a/src/app/topic/topic.component.ts
+++ b/src/app/topic/topic.component.ts
@@ -474,8 +474,8 @@ export class TopicComponent implements OnInit, OnDestroy, IDeactivateComponent {
callback(saveElement);
UIkit.notification(message, {
status: 'success',
- timeout: 3000,
- pos: 'top-left'
+ timeout: 6000,
+ pos: 'bottom-right'
});
if (redirect) {
this.router.navigate(['../' + saveElement.alias], {
@@ -485,8 +485,8 @@ export class TopicComponent implements OnInit, OnDestroy, IDeactivateComponent {
}, error => {
UIkit.notification(error.error.message, {
status: 'danger',
- timeout: 3000,
- pos: 'top-left'
+ timeout: 6000,
+ pos: 'bottom-right'
});
}));
}
@@ -497,8 +497,8 @@ export class TopicComponent implements OnInit, OnDestroy, IDeactivateComponent {
this.stakeholderService.setStakeholder(this.stakeholder);
UIkit.notification(message, {
status: 'success',
- timeout: 3000,
- pos: 'top-left'
+ timeout: 6000,
+ pos: 'bottom-right'
});
if (redirect) {
this.back();
@@ -506,8 +506,8 @@ export class TopicComponent implements OnInit, OnDestroy, IDeactivateComponent {
}, error => {
UIkit.notification(error.error.message, {
status: 'danger',
- timeout: 3000,
- pos: 'top-left'
+ timeout: 6000,
+ pos: 'bottom-right'
});
}));
}
@@ -526,16 +526,16 @@ export class TopicComponent implements OnInit, OnDestroy, IDeactivateComponent {
this.subscriptions.push(this.stakeholderService.changeVisibility(this.properties.monitorServiceAPIURL, path, visibility).subscribe(visibility => {
element.visibility = visibility;
this.stakeholderService.setStakeholder(this.stakeholder);
- UIkit.notification(StringUtils.capitalize(this.type) + ' has been successfully changed to ' + element.visibility.toLowerCase(), {
+ UIkit.notification(StringUtils.capitalize(this.type) + ' has been successfully changed to ' + element.visibility.toLowerCase(), {
status: 'success',
- timeout: 3000,
- pos: 'top-left'
+ timeout: 6000,
+ pos: 'bottom-right'
});
}, error => {
UIkit.notification(error.error.message, {
status: 'danger',
- timeout: 3000,
- pos: 'top-left'
+ timeout: 6000,
+ pos: 'bottom-right'
});
}));
}
diff --git a/src/app/utils/indicator-utils.ts b/src/app/utils/indicator-utils.ts
index b6ae2ed..9d40c6b 100644
--- a/src/app/utils/indicator-utils.ts
+++ b/src/app/utils/indicator-utils.ts
@@ -171,7 +171,7 @@ export class IndicatorUtils {
basicChartTypes:IndicatorPathType[] =["pie", "line", "column", "bar"];
defaultChartType:IndicatorPathType = "other";
indicatorSizes: Option[] = [
- {value: 'small', label: 'Small'},
+ {value: 'small', label: 'Small(Enabled only for large screens)'},
{value: 'medium', label: 'Medium'},
{value: 'large', label: 'Large'}
];
diff --git a/src/assets/dashboard-theme/structure.css b/src/assets/dashboard-theme/structure.css
index 0b591bc..e8095a4 100644
--- a/src/assets/dashboard-theme/structure.css
+++ b/src/assets/dashboard-theme/structure.css
@@ -50,9 +50,14 @@
padding: 5px 0;
}
-#sidebar_main .menu_section ul:not(.uk-dropdown-nav) > li > a, #sidebar_main .special_section ul:not(.uk-dropdown-nav) > li > a {
- display: block;
+#sidebar_main .menu_section ul:not(.uk-dropdown-nav) > li > *,
+#sidebar_main .special_section ul:not(.uk-dropdown-nav) > li > a {
font-size: var(--sidebar-font-size);
+}
+
+#sidebar_main .menu_section ul:not(.uk-dropdown-nav) > li > a,
+#sidebar_main .special_section ul:not(.uk-dropdown-nav) > li > a {
+ display: block;
color: rgba(var(--text-color-rgb), 0.5);
}
@@ -85,7 +90,8 @@
transition-property: left;
}
-.sidebar_main_swipe #page_content, .sidebar_main_swipe openaire-user > user > *,
+.sidebar_main_swipe #page_content,
+.sidebar_main_swipe openaire-user > user > *,
.sidebar_main_swipe openaire-error > * {
padding-left: var(--sidebar-width);
padding-top: var(--header-height);
@@ -96,6 +102,10 @@
-o-transition: 0.5s;
}
+.sidebar_main_swipe #page_content .message {
+ padding-left: var(--sidebar-width);
+}
+
.sidebar_main_swipe bottom > * {
padding-left: var(--sidebar-width);
transition: 0.5s;
@@ -124,6 +134,7 @@
/*Sidebar mini*/
.sidebar_main_swipe.sidebar_mini #page_content,
+.sidebar_main_swipe.sidebar_mini #page_content .message,
.sidebar_main_swipe.sidebar_mini openaire-user > user > *,
.sidebar_main_swipe.sidebar_mini openaire-error > *,
.sidebar_main_swipe.sidebar_mini bottom > * {
@@ -144,8 +155,16 @@
}
#page_content {
- min-height: calc(100vh - var(--header-height));
+ min-height: calc(70vh - var(--header-height));
background-color: var(--background-color);
+ position: relative;
+}
+
+#page_content .message {
+ top: 50%;
+ left: 50%;
+ transform: translate(-50%, -50%);
+ position: absolute;
}
#page_content_header {
diff --git a/src/assets/dashboard-theme/tabs-pills.css b/src/assets/dashboard-theme/tabs-pills.css
index fa2a432..85edf02 100644
--- a/src/assets/dashboard-theme/tabs-pills.css
+++ b/src/assets/dashboard-theme/tabs-pills.css
@@ -14,7 +14,7 @@
.uk-subnav-pill > * > :first-child {
text-transform: none;
- font-size: 13px;
+ font-size: var(--sidebar-font-size);
color: var(--text-color);
}
@@ -35,11 +35,14 @@
.uk-tab > li > a {
color: rgb(var(--text-color-rgb), 0.5) !important;
- font-size: var(--small-font-size);
font-family: "Open Sans", sans-serif !important;
text-transform: capitalize;
}
+.uk-tab > li > * {
+ font-size: var(--small-font-size);
+}
+
.uk-tab > li:hover > a {
color: var(--secondary-color) !important;
}