mirror of
https://github.com/richard-loafle/fuse-angular.git
synced 2025-12-22 21:47:06 +00:00
Compare commits
70 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f337df17e4 | ||
|
|
ed9c024e13 | ||
|
|
94d9118df7 | ||
|
|
a5b6e545a7 | ||
|
|
0b2af161f4 | ||
|
|
9630d0154f | ||
|
|
62b64cb78c | ||
|
|
8fc20fef8f | ||
|
|
8b97e6623b | ||
|
|
a184be1650 | ||
|
|
09bd4b9fee | ||
|
|
d8782a78d5 | ||
|
|
c4e338cda1 | ||
|
|
77c05ce4e0 | ||
|
|
e92f34b38f | ||
|
|
ecbc370064 | ||
|
|
498b9647e6 | ||
|
|
962df7fe9a | ||
|
|
763111aae3 | ||
|
|
715e77776e | ||
|
|
c8c0b4a609 | ||
|
|
5d62c58725 | ||
|
|
34ffe7e53b | ||
|
|
6960a2ba26 | ||
|
|
27dbbef6e1 | ||
|
|
f7f3a60ff5 | ||
|
|
08e2d5f331 | ||
|
|
fee608cb44 | ||
|
|
343d7902fa | ||
|
|
927b4fd322 | ||
|
|
a52b1f7687 | ||
|
|
0331db4384 | ||
|
|
0f1048cb3c | ||
|
|
bbd59ab6c3 | ||
|
|
620583f99c | ||
|
|
e49771a5e0 | ||
|
|
42095bfe26 | ||
|
|
0d2b5a9662 | ||
|
|
1d1ac4b04a | ||
|
|
6afa55bb0f | ||
|
|
8454526ef5 | ||
|
|
f8292af81e | ||
|
|
46a0ac1aa9 | ||
|
|
37d5e097b5 | ||
|
|
92d7986c8a | ||
|
|
38177c3d68 | ||
|
|
798e2632bc | ||
|
|
19c960cc4c | ||
|
|
8dfc3e854b | ||
|
|
04b80ca168 | ||
|
|
54451bb19e | ||
|
|
5e98d986e2 | ||
|
|
293192557f | ||
|
|
d61549d9e6 | ||
|
|
b2ceb02709 | ||
|
|
ffbd000fe2 | ||
|
|
b6ebd2b839 | ||
|
|
4d4d52ba05 | ||
|
|
251732f221 | ||
|
|
1c34a65034 | ||
|
|
b8803a055f | ||
|
|
6b8cd41d5e | ||
|
|
2c7ef4de00 | ||
|
|
fdb572fadd | ||
|
|
528c3f95e7 | ||
|
|
f395046945 | ||
|
|
b099022f5a | ||
|
|
25a6ca2684 | ||
|
|
0cd5d613e0 | ||
|
|
f45ad11861 |
@@ -30,7 +30,8 @@
|
|||||||
"styles": [
|
"styles": [
|
||||||
"src/styles.scss"
|
"src/styles.scss"
|
||||||
],
|
],
|
||||||
"scripts": []
|
"scripts": [],
|
||||||
|
"showCircularDependencies": false
|
||||||
},
|
},
|
||||||
"configurations": {
|
"configurations": {
|
||||||
"production": {
|
"production": {
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
import { browser, by, element } from 'protractor';
|
import { browser, by, element } from 'protractor';
|
||||||
|
|
||||||
export class Fuse2Page {
|
export class Fuse2Page {
|
||||||
navigateTo() {
|
navigateTo(): any {
|
||||||
return browser.get('/');
|
return browser.get('/');
|
||||||
}
|
}
|
||||||
|
|
||||||
getParagraphText() {
|
getParagraphText(): any {
|
||||||
return element(by.css('app-root h1')).getText();
|
return element(by.css('app-root h1')).getText();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
6408
package-lock.json
generated
6408
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
65
package.json
65
package.json
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "fuse",
|
"name": "fuse",
|
||||||
"version": "6.2.0",
|
"version": "6.3.0",
|
||||||
"license": "https://themeforest.net/licenses/terms/regular",
|
"license": "https://themeforest.net/licenses/terms/regular",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"ng": "ng",
|
"ng": "ng",
|
||||||
@@ -19,67 +19,68 @@
|
|||||||
"private": true,
|
"private": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@agm/core": "1.0.0-beta.3",
|
"@agm/core": "1.0.0-beta.3",
|
||||||
"@angular/animations": "6.0.7",
|
"@angular/animations": "6.1.4",
|
||||||
"@angular/cdk": "6.3.3",
|
"@angular/cdk": "6.4.6",
|
||||||
"@angular/common": "6.0.7",
|
"@angular/common": "6.1.4",
|
||||||
"@angular/compiler": "6.0.7",
|
"@angular/compiler": "6.1.4",
|
||||||
"@angular/core": "6.0.7",
|
"@angular/core": "6.1.4",
|
||||||
"@angular/flex-layout": "6.0.0-beta.16",
|
"@angular/flex-layout": "6.0.0-beta.16",
|
||||||
"@angular/forms": "6.0.7",
|
"@angular/forms": "6.1.4",
|
||||||
"@angular/http": "6.0.7",
|
"@angular/http": "6.1.4",
|
||||||
"@angular/material": "6.3.3",
|
"@angular/material": "6.4.6",
|
||||||
"@angular/material-moment-adapter": "6.3.3",
|
"@angular/material-moment-adapter": "6.4.6",
|
||||||
"@angular/platform-browser": "6.0.7",
|
"@angular/platform-browser": "6.1.4",
|
||||||
"@angular/platform-browser-dynamic": "6.0.7",
|
"@angular/platform-browser-dynamic": "6.1.4",
|
||||||
"@angular/router": "6.0.7",
|
"@angular/router": "6.1.4",
|
||||||
"@ngrx/effects": "6.0.1",
|
"@ngrx/effects": "6.1.0",
|
||||||
"@ngrx/router-store": "6.0.1",
|
"@ngrx/router-store": "6.1.0",
|
||||||
"@ngrx/store": "6.0.1",
|
"@ngrx/store": "6.1.0",
|
||||||
"@ngrx/store-devtools": "6.0.1",
|
"@ngrx/store-devtools": "6.1.0",
|
||||||
"@ngx-translate/core": "10.0.2",
|
"@ngx-translate/core": "10.0.2",
|
||||||
"@swimlane/ngx-charts": "8.1.0",
|
"@swimlane/dragula": "3.7.3",
|
||||||
"@swimlane/ngx-datatable": "13.0.1",
|
"@swimlane/ngx-charts": "9.0.0",
|
||||||
"@swimlane/ngx-dnd": "4.0.0",
|
"@swimlane/ngx-datatable": "13.1.0",
|
||||||
|
"@swimlane/ngx-dnd": "5.0.6",
|
||||||
"@types/prismjs": "1.9.0",
|
"@types/prismjs": "1.9.0",
|
||||||
"angular-calendar": "0.25.2",
|
"angular-calendar": "0.25.2",
|
||||||
"angular-in-memory-web-api": "0.6.0",
|
"angular-in-memory-web-api": "0.6.1",
|
||||||
"chart.js": "2.7.2",
|
"chart.js": "2.7.2",
|
||||||
"classlist.js": "1.1.20150312",
|
"classlist.js": "1.1.20150312",
|
||||||
"core-js": "2.5.7",
|
"core-js": "2.5.7",
|
||||||
"d3": "5.5.0",
|
"d3": "5.7.0",
|
||||||
"hammerjs": "2.0.8",
|
"hammerjs": "2.0.8",
|
||||||
"lodash": "4.17.10",
|
"lodash": "4.17.10",
|
||||||
"moment": "2.22.2",
|
"moment": "2.22.2",
|
||||||
"ng2-charts": "1.6.0",
|
"ng2-charts": "1.6.0",
|
||||||
"ngrx-store-freeze": "0.2.4",
|
"ngrx-store-freeze": "0.2.4",
|
||||||
"ngx-color-picker": "6.4.0",
|
"ngx-color-picker": "6.6.0",
|
||||||
"ngx-cookie-service": "1.0.10",
|
"ngx-cookie-service": "1.0.10",
|
||||||
"perfect-scrollbar": "1.4.0",
|
"perfect-scrollbar": "1.4.0",
|
||||||
"prismjs": "1.15.0",
|
"prismjs": "1.15.0",
|
||||||
"rxjs": "6.2.1",
|
"rxjs": "6.2.2",
|
||||||
"rxjs-compat": "6.2.1",
|
"rxjs-compat": "6.2.2",
|
||||||
"web-animations-js": "2.3.1",
|
"web-animations-js": "2.3.1",
|
||||||
"zone.js": "0.8.26"
|
"zone.js": "0.8.26"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@angular/cli": "6.0.8",
|
"@angular/cli": "6.1.5",
|
||||||
"@angular/compiler-cli": "6.0.7",
|
"@angular/compiler-cli": "6.1.4",
|
||||||
"@angular/language-service": "6.0.7",
|
"@angular/language-service": "6.1.4",
|
||||||
"@angular-devkit/build-angular": "0.6.8",
|
"@angular-devkit/build-angular": "0.7.5",
|
||||||
"@angularclass/hmr": "2.1.3",
|
"@angularclass/hmr": "2.1.3",
|
||||||
"@types/jasmine": "2.8.8",
|
"@types/jasmine": "2.8.8",
|
||||||
"@types/jasminewd2": "2.0.3",
|
"@types/jasminewd2": "2.0.3",
|
||||||
"@types/lodash": "4.14.110",
|
"@types/lodash": "4.14.116",
|
||||||
"@types/node": "8.9.5",
|
"@types/node": "8.9.5",
|
||||||
"codelyzer": "4.2.1",
|
"codelyzer": "4.2.1",
|
||||||
"jasmine-core": "2.99.1",
|
"jasmine-core": "2.99.1",
|
||||||
"jasmine-spec-reporter": "4.2.1",
|
"jasmine-spec-reporter": "4.2.1",
|
||||||
"karma": "1.7.1",
|
"karma": "1.7.1",
|
||||||
"karma-chrome-launcher": "2.2.0",
|
"karma-chrome-launcher": "2.2.0",
|
||||||
"karma-coverage-istanbul-reporter": "2.0.1",
|
"karma-coverage-istanbul-reporter": "2.0.2",
|
||||||
"karma-jasmine": "1.1.2",
|
"karma-jasmine": "1.1.2",
|
||||||
"karma-jasmine-html-reporter": "0.2.2",
|
"karma-jasmine-html-reporter": "0.2.2",
|
||||||
"protractor": "5.3.2",
|
"protractor": "5.4.0",
|
||||||
"ts-node": "5.0.1",
|
"ts-node": "5.0.1",
|
||||||
"tslint": "5.9.1",
|
"tslint": "5.9.1",
|
||||||
"typescript": "2.7.2",
|
"typescript": "2.7.2",
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
:host {
|
fuse-countdown {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Component, Input, OnDestroy, OnInit } from '@angular/core';
|
import { Component, Input, OnDestroy, OnInit, ViewEncapsulation } from '@angular/core';
|
||||||
import { interval, Subject } from 'rxjs';
|
import { interval, Subject } from 'rxjs';
|
||||||
import { map, takeUntil } from 'rxjs/operators';
|
import { map, takeUntil } from 'rxjs/operators';
|
||||||
import * as moment from 'moment';
|
import * as moment from 'moment';
|
||||||
@@ -6,7 +6,8 @@ import * as moment from 'moment';
|
|||||||
@Component({
|
@Component({
|
||||||
selector : 'fuse-countdown',
|
selector : 'fuse-countdown',
|
||||||
templateUrl: './countdown.component.html',
|
templateUrl: './countdown.component.html',
|
||||||
styleUrls : ['./countdown.component.scss']
|
styleUrls : ['./countdown.component.scss'],
|
||||||
|
encapsulation: ViewEncapsulation.None
|
||||||
})
|
})
|
||||||
export class FuseCountdownComponent implements OnInit, OnDestroy
|
export class FuseCountdownComponent implements OnInit, OnDestroy
|
||||||
{
|
{
|
||||||
@@ -48,9 +49,13 @@ export class FuseCountdownComponent implements OnInit, OnDestroy
|
|||||||
const currDate = moment();
|
const currDate = moment();
|
||||||
const eventDate = moment(this.eventDate);
|
const eventDate = moment(this.eventDate);
|
||||||
|
|
||||||
// Get the difference in between the current date and event date
|
// Get the difference in between the current date and event date in seconds
|
||||||
let diff = eventDate.diff(currDate, 'seconds');
|
let diff = eventDate.diff(currDate, 'seconds');
|
||||||
|
|
||||||
|
// Calculate the remaining time for the first time so there will be no
|
||||||
|
// delay on the countdown
|
||||||
|
this.countdown = this._secondsToRemaining(diff);
|
||||||
|
|
||||||
// Create a subscribable interval
|
// Create a subscribable interval
|
||||||
const countDown = interval(1000)
|
const countDown = interval(1000)
|
||||||
.pipe(
|
.pipe(
|
||||||
@@ -58,14 +63,7 @@ export class FuseCountdownComponent implements OnInit, OnDestroy
|
|||||||
return diff = diff - 1;
|
return diff = diff - 1;
|
||||||
}),
|
}),
|
||||||
map(value => {
|
map(value => {
|
||||||
const timeLeft = moment.duration(value, 'seconds');
|
return this._secondsToRemaining(value);
|
||||||
|
|
||||||
return {
|
|
||||||
days : timeLeft.asDays().toFixed(0),
|
|
||||||
hours : timeLeft.hours(),
|
|
||||||
minutes: timeLeft.minutes(),
|
|
||||||
seconds: timeLeft.seconds()
|
|
||||||
};
|
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -86,4 +84,27 @@ export class FuseCountdownComponent implements OnInit, OnDestroy
|
|||||||
this._unsubscribeAll.next();
|
this._unsubscribeAll.next();
|
||||||
this._unsubscribeAll.complete();
|
this._unsubscribeAll.complete();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// -----------------------------------------------------------------------------------------------------
|
||||||
|
// @ Private methods
|
||||||
|
// -----------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Converts given seconds to a remaining time
|
||||||
|
*
|
||||||
|
* @param seconds
|
||||||
|
* @private
|
||||||
|
*/
|
||||||
|
private _secondsToRemaining(seconds): any
|
||||||
|
{
|
||||||
|
const timeLeft = moment.duration(seconds, 'seconds');
|
||||||
|
|
||||||
|
return {
|
||||||
|
days : timeLeft.asDays().toFixed(0),
|
||||||
|
hours : timeLeft.hours(),
|
||||||
|
minutes: timeLeft.minutes(),
|
||||||
|
seconds: timeLeft.seconds()
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
17
src/@fuse/components/countdown/countdown.theme.scss
Normal file
17
src/@fuse/components/countdown/countdown.theme.scss
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
@mixin fuse-countdown-theme($theme) {
|
||||||
|
|
||||||
|
$foreground: map-get($theme, foreground);
|
||||||
|
|
||||||
|
fuse-countdown {
|
||||||
|
|
||||||
|
.fuse-countdown {
|
||||||
|
|
||||||
|
.time {
|
||||||
|
|
||||||
|
.title {
|
||||||
|
color: map-get($foreground, secondary-text);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,10 +1,8 @@
|
|||||||
<!-- DEMO CONTENT -->
|
<!-- DEMO CONTENT -->
|
||||||
<div class="demo-content">
|
<div class="demo-content line-height-1.75">
|
||||||
|
|
||||||
<img src="assets/images/beach.jpg" alt="beach" style="max-width: 640px; width: 100%;">
|
<h1 class="m-0">Early Sunrise in Winter</h1>
|
||||||
|
<h4 class="mt-0 secondary-text">Demo Content</h4>
|
||||||
<h1>Early Sunrise</h1>
|
|
||||||
<h4 class="secondary-text">Demo Content</h4>
|
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse tortor nibh, convallis sed purus nec,
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse tortor nibh, convallis sed purus nec,
|
||||||
@@ -12,7 +10,7 @@
|
|||||||
vestibulum. Suspendisse euismod in urna eu posuere.
|
vestibulum. Suspendisse euismod in urna eu posuere.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<blockquote>
|
<blockquote class="my-24">
|
||||||
<p>
|
<p>
|
||||||
Nunc vel lacinia lorem. Nullam tincidunt sed purus eu placerat. Donec id dictum erat. Etiam enim ex, dapibus
|
Nunc vel lacinia lorem. Nullam tincidunt sed purus eu placerat. Donec id dictum erat. Etiam enim ex, dapibus
|
||||||
et tortor id, posuere pretium est. Maecenas fringilla ipsum vitae neque elementum, at eleifend ante
|
et tortor id, posuere pretium est. Maecenas fringilla ipsum vitae neque elementum, at eleifend ante
|
||||||
@@ -24,16 +22,12 @@
|
|||||||
</blockquote>
|
</blockquote>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
Ut ornare sit amet velit vel congue. Ut nec tristique eros. Lorem ipsum dolor sit amet, consectetur adipiscing
|
Ut ornare sit amet velit vel congue. Ut nec tristique eros. Lorem ipsum dolor sit amet, consectetur
|
||||||
elit. Vivamus sed lorem quis nibh porta iaculis. Vestibulum ut eleifend ante, at semper mi. Nam imperdiet est
|
<b>adipiscing elit</b>. Vivamus sed lorem quis nibh porta iaculis. Vestibulum ut eleifend ante, at semper mi.
|
||||||
nisi, quis hendrerit tellus convallis et. Morbi in luctus neque. Curabitur elementum ut est et gravida. In hac
|
Nam imperdiet est nisi, quis hendrerit tellus convallis et. Morbi in luctus neque. Curabitur elementum ut est et
|
||||||
habitasse platea dictumst.
|
gravida. In hac habitasse platea dictumst. In et placerat eros, eu tempor turpis. Curabitur ac felis finibus,
|
||||||
</p>
|
elementum lectus vitae, venenatis est. Integer mollis nisl a eros scelerisque varius. Etiam venenatis lectus vel
|
||||||
|
erat condimentum tristique vel vel mi. Nulla id euismod mi, et mollis tellus.
|
||||||
<p>
|
|
||||||
In et placerat eros, eu tempor turpis. Curabitur ac felis finibus, elementum lectus vitae, venenatis est.
|
|
||||||
Integer mollis nisl a eros scelerisque varius. Etiam venenatis lectus vel erat condimentum tristique vel vel mi.
|
|
||||||
Nulla id euismod mi, et mollis tellus.
|
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
@@ -43,6 +37,12 @@
|
|||||||
velit.
|
velit.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
<img class="mt-24 w-100-p" src="assets/images/etc/early-sunrise.jpg" style="max-width: 640px">
|
||||||
|
|
||||||
|
<p class="mt-8 mb-24 secondary-text">
|
||||||
|
<em>Nullam tincidunt sed purus eu placerat. Donec id dictum erat. Etiam enim ex, dapibus et tortor id.</em>
|
||||||
|
</p>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
Quisque sit amet risus enim. Aliquam sit amet interdum justo, at ultricies sapien. Suspendisse et semper urna,
|
Quisque sit amet risus enim. Aliquam sit amet interdum justo, at ultricies sapien. Suspendisse et semper urna,
|
||||||
in gravida eros. Quisque id nibh iaculis, euismod urna sed, egestas nisi. Donec eros metus, congue a imperdiet
|
in gravida eros. Quisque id nibh iaculis, euismod urna sed, egestas nisi. Donec eros metus, congue a imperdiet
|
||||||
@@ -52,10 +52,18 @@
|
|||||||
<p>
|
<p>
|
||||||
Ut auctor, metus sed dapibus tempus, urna diam auctor odio, in malesuada odio risus vitae nisi. Etiam blandit
|
Ut auctor, metus sed dapibus tempus, urna diam auctor odio, in malesuada odio risus vitae nisi. Etiam blandit
|
||||||
ante urna, vitae placerat massa mollis in. Duis nec urna ac purus semper dictum ut eget justo. Aenean non
|
ante urna, vitae placerat massa mollis in. Duis nec urna ac purus semper dictum ut eget justo. Aenean non
|
||||||
sagittis augue. Sed venenatis rhoncus enim eget ornare. Donec viverra sed felis at venenatis. Mauris aliquam
|
sagittis augue. Sed venenatis rhoncus enim eget ornare. <a href="#">Donec viverra sed felis at venenatis.</a>
|
||||||
fringilla nulla, sit amet congue felis dignissim at.
|
Mauris aliquam fringilla nulla, sit amet congue felis dignissim at.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
<li>Orci varius</li>
|
||||||
|
<li>Magnis dis</li>
|
||||||
|
<li>Conubia nostra</li>
|
||||||
|
<li>Semper urna</li>
|
||||||
|
<li>Donec viverra</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
Quisque accumsan augue tempor ante mollis, sed placerat diam porttitor. Vestibulum dignissim sem vel velit
|
Quisque accumsan augue tempor ante mollis, sed placerat diam porttitor. Vestibulum dignissim sem vel velit
|
||||||
eleifend, non pellentesque quam convallis. Pellentesque est dolor, dignissim ac tortor tristique, hendrerit
|
eleifend, non pellentesque quam convallis. Pellentesque est dolor, dignissim ac tortor tristique, hendrerit
|
||||||
@@ -69,7 +77,7 @@
|
|||||||
Etiam blandit nunc arcu, et consectetur orci blandit a. Aliquam condimentum pharetra quam at ultricies. Nunc vel
|
Etiam blandit nunc arcu, et consectetur orci blandit a. Aliquam condimentum pharetra quam at ultricies. Nunc vel
|
||||||
lacinia lorem. Nullam tincidunt sed purus eu placerat. Donec id dictum erat. Etiam enim ex, dapibus et tortor
|
lacinia lorem. Nullam tincidunt sed purus eu placerat. Donec id dictum erat. Etiam enim ex, dapibus et tortor
|
||||||
id, posuere pretium est. Maecenas fringilla ipsum vitae neque elementum, at eleifend ante sollicitudin. Donec
|
id, posuere pretium est. Maecenas fringilla ipsum vitae neque elementum, at eleifend ante sollicitudin. Donec
|
||||||
viverra augue dolor, a venenatis tellus consectetur sit amet...
|
viverra augue dolor, a venenatis tellus consectetur sit amet.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<!-- / DEMO CONTENT -->
|
<!-- / DEMO CONTENT -->
|
||||||
|
|||||||
@@ -1,7 +1,9 @@
|
|||||||
:host {
|
:host {
|
||||||
display: block;
|
display: block;
|
||||||
|
width: 100%;
|
||||||
padding: 8px;
|
padding: 8px;
|
||||||
background: #263238;
|
background: #263238;
|
||||||
cursor: text;
|
cursor: text;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
|
-webkit-overflow-scrolling: touch;
|
||||||
}
|
}
|
||||||
@@ -4,6 +4,7 @@ export * from './demo/demo.module';
|
|||||||
export * from './highlight/highlight.module';
|
export * from './highlight/highlight.module';
|
||||||
export * from './material-color-picker/material-color-picker.module';
|
export * from './material-color-picker/material-color-picker.module';
|
||||||
export * from './navigation/navigation.module';
|
export * from './navigation/navigation.module';
|
||||||
|
export * from './progress-bar/progress-bar.module';
|
||||||
export * from './search-bar/search-bar.module';
|
export * from './search-bar/search-bar.module';
|
||||||
export * from './shortcuts/shortcuts.module';
|
export * from './shortcuts/shortcuts.module';
|
||||||
export * from './sidebar/sidebar.module';
|
export * from './sidebar/sidebar.module';
|
||||||
|
|||||||
@@ -1,20 +1,20 @@
|
|||||||
<button mat-icon-button
|
<button mat-icon-button
|
||||||
type="button"
|
|
||||||
class="mat-elevation-z1"
|
class="mat-elevation-z1"
|
||||||
[matMenuTriggerFor]="colorMenu"
|
[matMenuTriggerFor]="colorMenu"
|
||||||
(menuOpened)="onMenuOpen()"
|
(menuOpened)="onMenuOpen()"
|
||||||
[ngClass]="'mat-'+selectedPalette+'-'+selectedHue+'-bg'">
|
[ngClass]="selectedPalette + '-' + selectedHue">
|
||||||
<mat-icon>palette</mat-icon>
|
<mat-icon>palette</mat-icon>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<mat-menu #colorMenu="matMenu" class="fuse-material-color-picker-menu">
|
<mat-menu #colorMenu="matMenu" class="fuse-material-color-picker-menu mat-elevation-z8">
|
||||||
|
|
||||||
<header [ngClass]="selectedColor?.class || 'mat-accent-bg'" class="mat-elevation-z4"
|
<header [ngClass]="selectedColor?.class || 'accent'" class="mat-elevation-z4"
|
||||||
fxLayout="row" fxLayoutAlign="space-between center">
|
fxLayout="row" fxLayoutAlign="space-between center">
|
||||||
|
|
||||||
<button mat-icon-button
|
<button mat-icon-button
|
||||||
[style.visibility]="view==='hues'?'visible':'hidden'"
|
class="secondary-text"
|
||||||
(click)="$event.stopPropagation();backToPaletteSelection()" aria-label="Palette">
|
[style.visibility]="view === 'hues' ? 'visible' : 'hidden'"
|
||||||
|
(click)="goToPalettesView($event)" aria-label="Palette">
|
||||||
<mat-icon class="s-20">arrow_back</mat-icon>
|
<mat-icon class="s-20">arrow_back</mat-icon>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
@@ -23,45 +23,40 @@
|
|||||||
</span>
|
</span>
|
||||||
|
|
||||||
<span *ngIf="!selectedColor?.palette">
|
<span *ngIf="!selectedColor?.palette">
|
||||||
Select Color
|
Select a Color
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
<button mat-icon-button
|
<button mat-icon-button
|
||||||
class="remove-color-button"
|
class="remove-color-button secondary-text"
|
||||||
(click)="$event.stopPropagation();removeColor()"
|
(click)="removeColor($event)"
|
||||||
aria-label="Remove Color">
|
aria-label="Remove color"
|
||||||
|
matTooltip="Remove color">
|
||||||
<mat-icon class="s-20">delete</mat-icon>
|
<mat-icon class="s-20">delete</mat-icon>
|
||||||
</button>
|
</button>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
|
|
||||||
<div [ngSwitch]="view" class="views">
|
<div [ngSwitch]="view" class="views">
|
||||||
|
|
||||||
<div class="view" *ngSwitchCase="'palettes'">
|
<div class="view" *ngSwitchCase="'palettes'">
|
||||||
|
|
||||||
<div fxLayout="row wrap" fxLayoutAlign="start start" class="colors" fusePerfectScrollbar>
|
<div fxLayout="row wrap" fxLayoutAlign="start start" class="colors" fusePerfectScrollbar>
|
||||||
<div class="color"
|
<div class="color" fxLayout="row" fxLayoutAlign="center center"
|
||||||
[ngClass]="'mat-'+color.key+'-bg'"
|
|
||||||
*ngFor="let color of (colors | keys)"
|
*ngFor="let color of (colors | keys)"
|
||||||
(click)="$event.stopPropagation();selectPalette(color.key)"
|
[ngClass]="color.key"
|
||||||
fxLayout="row" fxLayoutAlign="start end" mat-ink-ripple>
|
[class.selected]="selectedPalette === color.key"
|
||||||
<span class="label">
|
(click)="selectPalette($event, color.key)">
|
||||||
{{color.key}}
|
|
||||||
</span>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="view" *ngSwitchCase="'hues'" >
|
<div class="view" *ngSwitchCase="'hues'">
|
||||||
<div fxLayout="row wrap" fxLayoutAlign="start start" class="colors" fusePerfectScrollbar>
|
<div fxLayout="row wrap" fxLayoutAlign="start start" class="colors" fusePerfectScrollbar>
|
||||||
<div class="color" *ngFor="let hue of hues"
|
<div class="color" fxLayout="row" fxLayoutAlign="center center"
|
||||||
[fxHide]="selectedPalette === 'white' && hue !== '500'|| selectedPalette === 'black' && hue !== '500'"
|
*ngFor="let hue of hues"
|
||||||
[ngClass]="'mat-'+selectedPalette+'-'+hue+'-bg'"
|
[fxHide]="selectedPalette === 'fuse-white' && hue !== '500' || selectedPalette === 'fuse-black' && hue !== '500'"
|
||||||
(click)="selectHue(hue)" fxLayout="row" fxLayoutAlign="start end" mat-ink-ripple>
|
[ngClass]="selectedPalette + '-' + hue"
|
||||||
<span class="label">
|
[class.selected]="selectedHue === hue"
|
||||||
{{hue}}
|
(click)="selectHue($event, hue)">
|
||||||
</span>
|
|
||||||
<mat-icon *ngIf="selectedHue === hue" class="s-16">check</mat-icon>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
.fuse-material-color-picker-menu {
|
.fuse-material-color-picker-menu {
|
||||||
width: 208px;
|
width: 245px;
|
||||||
|
|
||||||
.mat-menu-content {
|
.mat-menu-content {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
@@ -7,44 +7,29 @@
|
|||||||
.views {
|
.views {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
position: relative;
|
min-height: 165px;
|
||||||
overflow: hidden;
|
|
||||||
min-height: 258px;
|
|
||||||
height: 308px;
|
|
||||||
background-color: #F7F7F7;
|
|
||||||
|
|
||||||
.view {
|
.view {
|
||||||
position: absolute;
|
overflow: hidden;
|
||||||
width: 208px;
|
|
||||||
height: 100%;
|
|
||||||
bottom: 0;
|
|
||||||
left: 0;
|
|
||||||
right: 0;
|
|
||||||
top: 0;
|
|
||||||
|
|
||||||
.colors {
|
.colors {
|
||||||
position: relative;
|
padding: 1px 0 0 0;
|
||||||
padding: 4px;
|
margin-left: -1px;
|
||||||
|
|
||||||
.color {
|
.color {
|
||||||
position: relative;
|
width: 40px;
|
||||||
width: 46px;
|
height: 40px;
|
||||||
height: 46px;
|
margin: 0 0 1px 1px;
|
||||||
margin: 2px;
|
|
||||||
border-radius: 0;
|
border-radius: 0;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
transition: border-radius .4s cubic-bezier(.25, .8, .25, 1);
|
||||||
|
|
||||||
.label {
|
&:hover {
|
||||||
padding: 2px;
|
border-radius: 20%;
|
||||||
font-size: 10px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
mat-icon {
|
&.selected {
|
||||||
position: absolute;
|
border-radius: 50% !important;
|
||||||
top: 2px;
|
|
||||||
right: 2px;
|
|
||||||
font-size: 16px;
|
|
||||||
opacity: 0.7;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,55 +1,40 @@
|
|||||||
import { Component, EventEmitter, Input, OnChanges, Output, ViewEncapsulation } from '@angular/core';
|
import { Component, EventEmitter, forwardRef, Input, Output, ViewEncapsulation } from '@angular/core';
|
||||||
|
|
||||||
import { fuseAnimations } from '@fuse/animations';
|
import { fuseAnimations } from '@fuse/animations';
|
||||||
import { MatColors } from '@fuse/mat-colors';
|
import { MatColors } from '@fuse/mat-colors';
|
||||||
|
import { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';
|
||||||
|
|
||||||
|
export const FUSE_MATERIAL_COLOR_PICKER_VALUE_ACCESSOR: any = {
|
||||||
|
provide : NG_VALUE_ACCESSOR,
|
||||||
|
useExisting: forwardRef(() => FuseMaterialColorPickerComponent),
|
||||||
|
multi : true
|
||||||
|
};
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector : 'fuse-material-color-picker',
|
selector : 'fuse-material-color-picker',
|
||||||
templateUrl : './material-color-picker.component.html',
|
templateUrl : './material-color-picker.component.html',
|
||||||
styleUrls : ['./material-color-picker.component.scss'],
|
styleUrls : ['./material-color-picker.component.scss'],
|
||||||
animations : fuseAnimations,
|
animations : fuseAnimations,
|
||||||
encapsulation: ViewEncapsulation.None
|
encapsulation: ViewEncapsulation.None,
|
||||||
|
providers : [FUSE_MATERIAL_COLOR_PICKER_VALUE_ACCESSOR]
|
||||||
})
|
})
|
||||||
export class FuseMaterialColorPickerComponent implements OnChanges
|
export class FuseMaterialColorPickerComponent implements ControlValueAccessor
|
||||||
{
|
{
|
||||||
colors: any;
|
colors: any;
|
||||||
hues: string[];
|
hues: string[];
|
||||||
selectedColor: any;
|
|
||||||
view: string;
|
view: string;
|
||||||
|
selectedColor: any;
|
||||||
@Input()
|
|
||||||
selectedPalette: string;
|
selectedPalette: string;
|
||||||
|
|
||||||
@Input()
|
|
||||||
selectedHue: string;
|
selectedHue: string;
|
||||||
|
|
||||||
@Input()
|
// Color changed
|
||||||
selectedFg: string;
|
|
||||||
|
|
||||||
@Input()
|
|
||||||
value: any;
|
|
||||||
|
|
||||||
@Output()
|
@Output()
|
||||||
onValueChange: EventEmitter<any>;
|
colorChanged: EventEmitter<any>;
|
||||||
|
|
||||||
@Output()
|
|
||||||
selectedPaletteChange: EventEmitter<any>;
|
|
||||||
|
|
||||||
@Output()
|
|
||||||
selectedHueChange: EventEmitter<any>;
|
|
||||||
|
|
||||||
@Output()
|
|
||||||
selectedClassChange: EventEmitter<any>;
|
|
||||||
|
|
||||||
@Output()
|
|
||||||
selectedBgChange: EventEmitter<any>;
|
|
||||||
|
|
||||||
@Output()
|
|
||||||
selectedFgChange: EventEmitter<any>;
|
|
||||||
|
|
||||||
// Private
|
// Private
|
||||||
_selectedClass: string;
|
private _color: string;
|
||||||
_selectedBg: string;
|
private _modelChange: (value: any) => void;
|
||||||
|
private _modelTouched: (value: any) => void;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
@@ -57,23 +42,18 @@ export class FuseMaterialColorPickerComponent implements OnChanges
|
|||||||
constructor()
|
constructor()
|
||||||
{
|
{
|
||||||
// Set the defaults
|
// Set the defaults
|
||||||
|
this.colorChanged = new EventEmitter();
|
||||||
this.colors = MatColors.all;
|
this.colors = MatColors.all;
|
||||||
this.hues = ['50', '100', '200', '300', '400', '500', '600', '700', '800', '900', 'A100', 'A200', 'A400', 'A700'];
|
this.hues = ['50', '100', '200', '300', '400', '500', '600', '700', '800', '900', 'A100', 'A200', 'A400', 'A700'];
|
||||||
this.selectedFg = '';
|
this.selectedHue = '500';
|
||||||
this.selectedHue = '';
|
|
||||||
this.selectedPalette = '';
|
|
||||||
this.view = 'palettes';
|
this.view = 'palettes';
|
||||||
|
|
||||||
this.onValueChange = new EventEmitter();
|
|
||||||
this.selectedPaletteChange = new EventEmitter();
|
|
||||||
this.selectedHueChange = new EventEmitter();
|
|
||||||
this.selectedClassChange = new EventEmitter();
|
|
||||||
this.selectedBgChange = new EventEmitter();
|
|
||||||
this.selectedFgChange = new EventEmitter();
|
|
||||||
|
|
||||||
// Set the private defaults
|
// Set the private defaults
|
||||||
this._selectedClass = '';
|
this._color = '';
|
||||||
this._selectedBg = '';
|
this._modelChange = () => {
|
||||||
|
};
|
||||||
|
this._modelTouched = () => {
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
// -----------------------------------------------------------------------------------------------------
|
// -----------------------------------------------------------------------------------------------------
|
||||||
@@ -86,88 +66,76 @@ export class FuseMaterialColorPickerComponent implements OnChanges
|
|||||||
* @param value
|
* @param value
|
||||||
*/
|
*/
|
||||||
@Input()
|
@Input()
|
||||||
set selectedClass(value)
|
set color(value)
|
||||||
{
|
{
|
||||||
if ( value && value !== '' && this._selectedClass !== value )
|
if ( !value || value === '' || this._color === value )
|
||||||
{
|
{
|
||||||
const color = value.split('-');
|
|
||||||
if ( color.length >= 5 )
|
|
||||||
{
|
|
||||||
this.selectedPalette = color[1] + '-' + color[2];
|
|
||||||
this.selectedHue = color[3];
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
this.selectedPalette = color[1];
|
|
||||||
this.selectedHue = color[2];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
this._selectedClass = value;
|
|
||||||
}
|
|
||||||
|
|
||||||
get selectedClass(): string
|
|
||||||
{
|
|
||||||
return this._selectedClass;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Selected bg
|
|
||||||
*
|
|
||||||
* @param value
|
|
||||||
*/
|
|
||||||
@Input()
|
|
||||||
set selectedBg(value)
|
|
||||||
{
|
|
||||||
if ( value && value !== '' && this._selectedBg !== value )
|
|
||||||
{
|
|
||||||
for ( const palette in this.colors )
|
|
||||||
{
|
|
||||||
if ( !this.colors.hasOwnProperty(palette) )
|
|
||||||
{
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
for ( const hue of this.hues )
|
|
||||||
{
|
|
||||||
if ( this.colors[palette][hue] === value )
|
|
||||||
{
|
|
||||||
this.selectedPalette = palette;
|
|
||||||
this.selectedHue = hue;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
this._selectedBg = value;
|
|
||||||
}
|
|
||||||
|
|
||||||
get selectedBg(): string
|
|
||||||
{
|
|
||||||
return this._selectedBg;
|
|
||||||
}
|
|
||||||
|
|
||||||
// -----------------------------------------------------------------------------------------------------
|
|
||||||
// @ Lifecycle hooks
|
|
||||||
// -----------------------------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
/**
|
|
||||||
* On changes
|
|
||||||
*
|
|
||||||
* @param changes
|
|
||||||
*/
|
|
||||||
ngOnChanges(changes: any): void
|
|
||||||
{
|
|
||||||
if ( changes.selectedBg && changes.selectedBg.currentValue === '' ||
|
|
||||||
changes.selectedClass && changes.selectedClass.currentValue === '' ||
|
|
||||||
changes.selectedPalette && changes.selectedPalette.currentValue === '' )
|
|
||||||
{
|
|
||||||
this.removeColor();
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if ( changes.selectedPalette || changes.selectedHue || changes.selectedClass || changes.selectedBg )
|
|
||||||
|
// Split the color value (red-400, blue-500, fuse-navy-700 etc.)
|
||||||
|
const colorParts = value.split('-');
|
||||||
|
|
||||||
|
// Take the very last part as the selected hue value
|
||||||
|
this.selectedHue = colorParts[colorParts.length - 1];
|
||||||
|
|
||||||
|
// Remove the last part
|
||||||
|
colorParts.pop();
|
||||||
|
|
||||||
|
// Rejoin the remaining parts as the selected palette name
|
||||||
|
this.selectedPalette = colorParts.join('-');
|
||||||
|
|
||||||
|
// Store the color value
|
||||||
|
this._color = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
get color(): string
|
||||||
|
{
|
||||||
|
return this._color;
|
||||||
|
}
|
||||||
|
|
||||||
|
// -----------------------------------------------------------------------------------------------------
|
||||||
|
// @ Control Value Accessor implementation
|
||||||
|
// -----------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Register on change function
|
||||||
|
*
|
||||||
|
* @param fn
|
||||||
|
*/
|
||||||
|
registerOnChange(fn: any): void
|
||||||
|
{
|
||||||
|
this._modelChange = fn;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Register on touched function
|
||||||
|
*
|
||||||
|
* @param fn
|
||||||
|
*/
|
||||||
|
registerOnTouched(fn: any): void
|
||||||
|
{
|
||||||
|
this._modelTouched = fn;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Write value to the view from model
|
||||||
|
*
|
||||||
|
* @param color
|
||||||
|
*/
|
||||||
|
writeValue(color: any): void
|
||||||
|
{
|
||||||
|
// Return if null
|
||||||
|
if ( !color )
|
||||||
{
|
{
|
||||||
this.updateSelectedColor();
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Set the color
|
||||||
|
this.color = color;
|
||||||
|
|
||||||
|
// Update the selected color
|
||||||
|
this.updateSelectedColor();
|
||||||
}
|
}
|
||||||
|
|
||||||
// -----------------------------------------------------------------------------------------------------
|
// -----------------------------------------------------------------------------------------------------
|
||||||
@@ -177,35 +145,61 @@ export class FuseMaterialColorPickerComponent implements OnChanges
|
|||||||
/**
|
/**
|
||||||
* Select palette
|
* Select palette
|
||||||
*
|
*
|
||||||
|
* @param event
|
||||||
* @param palette
|
* @param palette
|
||||||
*/
|
*/
|
||||||
selectPalette(palette): void
|
selectPalette(event, palette): void
|
||||||
{
|
{
|
||||||
this.selectedPalette = palette;
|
// Stop propagation
|
||||||
this.updateSelectedColor();
|
event.stopPropagation();
|
||||||
|
|
||||||
|
// Go to 'hues' view
|
||||||
this.view = 'hues';
|
this.view = 'hues';
|
||||||
|
|
||||||
|
// Update the selected palette
|
||||||
|
this.selectedPalette = palette;
|
||||||
|
|
||||||
|
// Update the selected color
|
||||||
|
this.updateSelectedColor();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Select hue
|
* Select hue
|
||||||
*
|
*
|
||||||
|
* @param event
|
||||||
* @param hue
|
* @param hue
|
||||||
*/
|
*/
|
||||||
selectHue(hue): void
|
selectHue(event, hue): void
|
||||||
{
|
{
|
||||||
|
// Stop propagation
|
||||||
|
event.stopPropagation();
|
||||||
|
|
||||||
|
// Update the selected huse
|
||||||
this.selectedHue = hue;
|
this.selectedHue = hue;
|
||||||
|
|
||||||
|
// Update the selected color
|
||||||
this.updateSelectedColor();
|
this.updateSelectedColor();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Remove color
|
* Remove color
|
||||||
|
*
|
||||||
|
* @param event
|
||||||
*/
|
*/
|
||||||
removeColor(): void
|
removeColor(event): void
|
||||||
{
|
{
|
||||||
|
// Stop propagation
|
||||||
|
event.stopPropagation();
|
||||||
|
|
||||||
|
// Return to the 'palettes' view
|
||||||
|
this.view = 'palettes';
|
||||||
|
|
||||||
|
// Clear the selected palette and hue
|
||||||
this.selectedPalette = '';
|
this.selectedPalette = '';
|
||||||
this.selectedHue = '';
|
this.selectedHue = '';
|
||||||
|
|
||||||
|
// Update the selected color
|
||||||
this.updateSelectedColor();
|
this.updateSelectedColor();
|
||||||
this.view = 'palettes';
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -213,49 +207,40 @@ export class FuseMaterialColorPickerComponent implements OnChanges
|
|||||||
*/
|
*/
|
||||||
updateSelectedColor(): void
|
updateSelectedColor(): void
|
||||||
{
|
{
|
||||||
setTimeout(() => {
|
if ( this.selectedColor && this.selectedColor.palette === this.selectedPalette && this.selectedColor.hue === this.selectedHue )
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if ( this.selectedColor && this.selectedPalette === this.selectedColor.palette && this.selectedHue === this.selectedColor.hue )
|
// Set the selected color object
|
||||||
{
|
this.selectedColor = {
|
||||||
return;
|
palette: this.selectedPalette,
|
||||||
}
|
hue : this.selectedHue,
|
||||||
|
class : this.selectedPalette + '-' + this.selectedHue,
|
||||||
|
bg : this.selectedPalette === '' ? '' : MatColors.getColor(this.selectedPalette)[this.selectedHue],
|
||||||
|
fg : this.selectedPalette === '' ? '' : MatColors.getColor(this.selectedPalette).contrast[this.selectedHue]
|
||||||
|
};
|
||||||
|
|
||||||
if ( this.selectedPalette !== '' && this.selectedHue !== '' )
|
// Emit the color changed event
|
||||||
{
|
this.colorChanged.emit(this.selectedColor);
|
||||||
this.selectedBg = MatColors.getColor(this.selectedPalette)[this.selectedHue];
|
|
||||||
this.selectedFg = MatColors.getColor(this.selectedPalette).contrast[this.selectedHue];
|
|
||||||
this.selectedClass = 'mat-' + this.selectedPalette + '-' + this.selectedHue + '-bg';
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
this.selectedBg = '';
|
|
||||||
this.selectedFg = '';
|
|
||||||
}
|
|
||||||
|
|
||||||
this.selectedColor = {
|
// Mark the model as touched
|
||||||
palette: this.selectedPalette,
|
this._modelTouched(this.selectedColor.class);
|
||||||
hue : this.selectedHue,
|
|
||||||
class : this.selectedClass,
|
|
||||||
bg : this.selectedBg,
|
|
||||||
fg : this.selectedFg
|
|
||||||
};
|
|
||||||
|
|
||||||
this.selectedPaletteChange.emit(this.selectedPalette);
|
// Update the model
|
||||||
this.selectedHueChange.emit(this.selectedHue);
|
this._modelChange(this.selectedColor.class);
|
||||||
this.selectedClassChange.emit(this.selectedClass);
|
|
||||||
this.selectedBgChange.emit(this.selectedBg);
|
|
||||||
this.selectedFgChange.emit(this.selectedFg);
|
|
||||||
|
|
||||||
this.value = this.selectedColor;
|
|
||||||
this.onValueChange.emit(this.selectedColor);
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Go back to palette selection
|
* Go to palettes view
|
||||||
|
*
|
||||||
|
* @param event
|
||||||
*/
|
*/
|
||||||
backToPaletteSelection(): void
|
goToPalettesView(event): void
|
||||||
{
|
{
|
||||||
|
// Stop propagation
|
||||||
|
event.stopPropagation();
|
||||||
|
|
||||||
this.view = 'palettes';
|
this.view = 'palettes';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { NgModule } from '@angular/core';
|
import { NgModule } from '@angular/core';
|
||||||
import { CommonModule } from '@angular/common';
|
import { CommonModule } from '@angular/common';
|
||||||
import { FlexLayoutModule } from '@angular/flex-layout';
|
import { FlexLayoutModule } from '@angular/flex-layout';
|
||||||
import { MatButtonModule, MatIconModule, MatMenuModule, MatRippleModule } from '@angular/material';
|
import { MatButtonModule, MatIconModule, MatMenuModule, MatTooltipModule } from '@angular/material';
|
||||||
|
|
||||||
import { FusePipesModule } from '@fuse/pipes/pipes.module';
|
import { FusePipesModule } from '@fuse/pipes/pipes.module';
|
||||||
|
|
||||||
@@ -19,7 +19,7 @@ import { FuseMaterialColorPickerComponent } from '@fuse/components/material-colo
|
|||||||
MatButtonModule,
|
MatButtonModule,
|
||||||
MatIconModule,
|
MatIconModule,
|
||||||
MatMenuModule,
|
MatMenuModule,
|
||||||
MatRippleModule,
|
MatTooltipModule,
|
||||||
|
|
||||||
FusePipesModule
|
FusePipesModule
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -0,0 +1,14 @@
|
|||||||
|
@mixin fuse-material-color-picker-theme($theme) {
|
||||||
|
|
||||||
|
$background: map-get($theme, background);
|
||||||
|
|
||||||
|
.fuse-material-color-picker-menu {
|
||||||
|
|
||||||
|
.mat-menu-content {
|
||||||
|
|
||||||
|
.views {
|
||||||
|
background: #303030;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,42 +1,42 @@
|
|||||||
<ng-container *ngIf="!item.hidden">
|
<ng-container *ngIf="!item.hidden">
|
||||||
|
|
||||||
<!-- normal collapse -->
|
<!-- normal collapse -->
|
||||||
<a class="nav-link" [ngClass]="item.classes" *ngIf="!item.url && !item.function" matRipple>
|
<a class="nav-link" [ngClass]="item.classes" *ngIf="!item.url && !item.function">
|
||||||
<ng-container *ngTemplateOutlet="itemContent"></ng-container>
|
<ng-container *ngTemplateOutlet="itemContent"></ng-container>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<!-- item.url -->
|
<!-- item.url -->
|
||||||
<a class="nav-link" [ngClass]="item.classes" *ngIf="item.url && !item.externalUrl && !item.function"
|
<a class="nav-link" [ngClass]="item.classes" *ngIf="item.url && !item.externalUrl && !item.function"
|
||||||
[routerLink]="[item.url]" [routerLinkActive]="['active', 'mat-accent-bg']"
|
[routerLink]="[item.url]" [routerLinkActive]="['active', 'accent']"
|
||||||
[routerLinkActiveOptions]="{exact: item.exactMatch || false}"
|
[routerLinkActiveOptions]="{exact: item.exactMatch || false}"
|
||||||
[target]="item.openInNewTab ? '_blank' : '_self'" matRipple>
|
[target]="item.openInNewTab ? '_blank' : '_self'">
|
||||||
<ng-container *ngTemplateOutlet="itemContent"></ng-container>
|
<ng-container *ngTemplateOutlet="itemContent"></ng-container>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<!-- item.externalUrl -->
|
<!-- item.externalUrl -->
|
||||||
<a class="nav-link" [ngClass]="item.classes" *ngIf="item.url && item.externalUrl && !item.function"
|
<a class="nav-link" [ngClass]="item.classes" *ngIf="item.url && item.externalUrl && !item.function"
|
||||||
[href]="item.url" [target]="item.openInNewTab ? '_blank' : '_self'" matRipple>
|
[href]="item.url" [target]="item.openInNewTab ? '_blank' : '_self'">
|
||||||
<ng-container *ngTemplateOutlet="itemContent"></ng-container>
|
<ng-container *ngTemplateOutlet="itemContent"></ng-container>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<!-- item.function -->
|
<!-- item.function -->
|
||||||
<span class="nav-link" [ngClass]="item.classes" *ngIf="!item.url && item.function"
|
<span class="nav-link" [ngClass]="item.classes" *ngIf="!item.url && item.function"
|
||||||
(click)="item.function()" matRipple>
|
(click)="item.function()">
|
||||||
<ng-container *ngTemplateOutlet="itemContent"></ng-container>
|
<ng-container *ngTemplateOutlet="itemContent"></ng-container>
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
<!-- item.url && item.function -->
|
<!-- item.url && item.function -->
|
||||||
<a class="nav-link" [ngClass]="item.classes" *ngIf="item.url && !item.externalUrl && item.function"
|
<a class="nav-link" [ngClass]="item.classes" *ngIf="item.url && !item.externalUrl && item.function"
|
||||||
(click)="item.function()"
|
(click)="item.function()"
|
||||||
[routerLink]="[item.url]" [routerLinkActive]="['active', 'mat-accent-bg']"
|
[routerLink]="[item.url]" [routerLinkActive]="['active', 'accent']"
|
||||||
[routerLinkActiveOptions]="{exact: item.exactMatch || false}" matRipple>
|
[routerLinkActiveOptions]="{exact: item.exactMatch || false}">
|
||||||
<ng-container *ngTemplateOutlet="itemContent"></ng-container>
|
<ng-container *ngTemplateOutlet="itemContent"></ng-container>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<!-- item.externalUrl && item.function -->
|
<!-- item.externalUrl && item.function -->
|
||||||
<a class="nav-link" [ngClass]="item.classes" *ngIf="item.url && item.externalUrl && item.function"
|
<a class="nav-link" [ngClass]="item.classes" *ngIf="item.url && item.externalUrl && item.function"
|
||||||
(click)="item.function()"
|
(click)="item.function()"
|
||||||
[href]="item.url" [target]="item.openInNewTab ? '_blank' : '_self'" matRipple>
|
[href]="item.url" [target]="item.openInNewTab ? '_blank' : '_self'">
|
||||||
<ng-container *ngTemplateOutlet="itemContent"></ng-container>
|
<ng-container *ngTemplateOutlet="itemContent"></ng-container>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
@@ -52,7 +52,7 @@
|
|||||||
|
|
||||||
<div class="children" [ngClass]="{'open': isOpen}">
|
<div class="children" [ngClass]="{'open': isOpen}">
|
||||||
|
|
||||||
<div class="{{fuseConfig.layout.navbar.background}}">
|
<div class="{{fuseConfig.layout.navbar.primaryBackground}}">
|
||||||
|
|
||||||
<ng-container *ngFor="let item of item.children">
|
<ng-container *ngFor="let item of item.children">
|
||||||
<fuse-nav-horizontal-item *ngIf="item.type=='item'" [item]="item"></fuse-nav-horizontal-item>
|
<fuse-nav-horizontal-item *ngIf="item.type=='item'" [item]="item"></fuse-nav-horizontal-item>
|
||||||
|
|||||||
@@ -2,37 +2,37 @@
|
|||||||
|
|
||||||
<!-- item.url -->
|
<!-- item.url -->
|
||||||
<a class="nav-link" [ngClass]="item.classes" *ngIf="item.url && !item.externalUrl && !item.function"
|
<a class="nav-link" [ngClass]="item.classes" *ngIf="item.url && !item.externalUrl && !item.function"
|
||||||
[routerLink]="[item.url]" [routerLinkActive]="['active', 'mat-accent-bg']"
|
[routerLink]="[item.url]" [routerLinkActive]="['active', 'accent']"
|
||||||
[routerLinkActiveOptions]="{exact: item.exactMatch || false}"
|
[routerLinkActiveOptions]="{exact: item.exactMatch || false}"
|
||||||
[target]="item.openInNewTab ? '_blank' : '_self'" matRipple>
|
[target]="item.openInNewTab ? '_blank' : '_self'">
|
||||||
<ng-container *ngTemplateOutlet="itemContent"></ng-container>
|
<ng-container *ngTemplateOutlet="itemContent"></ng-container>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<!-- item.externalUrl -->
|
<!-- item.externalUrl -->
|
||||||
<a class="nav-link" [ngClass]="item.classes" *ngIf="item.url && item.externalUrl && !item.function"
|
<a class="nav-link" [ngClass]="item.classes" *ngIf="item.url && item.externalUrl && !item.function"
|
||||||
[href]="item.url" [target]="item.openInNewTab ? '_blank' : '_self'" matRipple>
|
[href]="item.url" [target]="item.openInNewTab ? '_blank' : '_self'">
|
||||||
<ng-container *ngTemplateOutlet="itemContent"></ng-container>
|
<ng-container *ngTemplateOutlet="itemContent"></ng-container>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<!-- item.function -->
|
<!-- item.function -->
|
||||||
<span class="nav-link" [ngClass]="item.classes" *ngIf="!item.url && item.function"
|
<span class="nav-link" [ngClass]="item.classes" *ngIf="!item.url && item.function"
|
||||||
(click)="item.function()" matRipple>
|
(click)="item.function()">
|
||||||
<ng-container *ngTemplateOutlet="itemContent"></ng-container>
|
<ng-container *ngTemplateOutlet="itemContent"></ng-container>
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
<!-- item.url && item.function -->
|
<!-- item.url && item.function -->
|
||||||
<a class="nav-link" [ngClass]="item.classes" *ngIf="item.url && !item.externalUrl && item.function"
|
<a class="nav-link" [ngClass]="item.classes" *ngIf="item.url && !item.externalUrl && item.function"
|
||||||
(click)="item.function()"
|
(click)="item.function()"
|
||||||
[routerLink]="[item.url]" [routerLinkActive]="['active', 'mat-accent-bg']"
|
[routerLink]="[item.url]" [routerLinkActive]="['active', 'accent']"
|
||||||
[routerLinkActiveOptions]="{exact: item.exactMatch || false}"
|
[routerLinkActiveOptions]="{exact: item.exactMatch || false}"
|
||||||
[target]="item.openInNewTab ? '_blank' : '_self'" matRipple>
|
[target]="item.openInNewTab ? '_blank' : '_self'">
|
||||||
<ng-container *ngTemplateOutlet="itemContent"></ng-container>
|
<ng-container *ngTemplateOutlet="itemContent"></ng-container>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<!-- item.externalUrl && item.function -->
|
<!-- item.externalUrl && item.function -->
|
||||||
<a class="nav-link" [ngClass]="item.classes" *ngIf="item.url && item.externalUrl && item.function"
|
<a class="nav-link" [ngClass]="item.classes" *ngIf="item.url && item.externalUrl && item.function"
|
||||||
(click)="item.function()"
|
(click)="item.function()"
|
||||||
[href]="item.url" [target]="item.openInNewTab ? '_blank' : '_self'" matRipple>
|
[href]="item.url" [target]="item.openInNewTab ? '_blank' : '_self'">
|
||||||
<ng-container *ngTemplateOutlet="itemContent"></ng-container>
|
<ng-container *ngTemplateOutlet="itemContent"></ng-container>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,8 @@
|
|||||||
<ng-container *ngFor="let item of navigation">
|
<ng-container *ngFor="let item of navigation">
|
||||||
|
|
||||||
<fuse-nav-vertical-group *ngIf="item.type=='group'" [item]="item"></fuse-nav-vertical-group>
|
<fuse-nav-vertical-group *ngIf="item.type=='group'" [item]="item"></fuse-nav-vertical-group>
|
||||||
<fuse-nav-vertical-collapsable *ngIf="item.type=='collapse'" [item]="item"></fuse-nav-vertical-collapsable>
|
<fuse-nav-vertical-collapsable *ngIf="item.type=='collapsable'"
|
||||||
|
[item]="item"></fuse-nav-vertical-collapsable>
|
||||||
<fuse-nav-vertical-item *ngIf="item.type=='item'" [item]="item"></fuse-nav-vertical-item>
|
<fuse-nav-vertical-item *ngIf="item.type=='item'" [item]="item"></fuse-nav-vertical-item>
|
||||||
|
|
||||||
</ng-container>
|
</ng-container>
|
||||||
@@ -20,7 +21,7 @@
|
|||||||
<ng-container *ngFor="let item of navigation">
|
<ng-container *ngFor="let item of navigation">
|
||||||
|
|
||||||
<fuse-nav-horizontal-collapsable *ngIf="item.type=='group'" [item]="item"></fuse-nav-horizontal-collapsable>
|
<fuse-nav-horizontal-collapsable *ngIf="item.type=='group'" [item]="item"></fuse-nav-horizontal-collapsable>
|
||||||
<fuse-nav-horizontal-collapsable *ngIf="item.type=='collapse'"
|
<fuse-nav-horizontal-collapsable *ngIf="item.type=='collapsable'"
|
||||||
[item]="item"></fuse-nav-horizontal-collapsable>
|
[item]="item"></fuse-nav-horizontal-collapsable>
|
||||||
<fuse-nav-horizontal-item *ngIf="item.type=='item'" [item]="item"></fuse-nav-horizontal-item>
|
<fuse-nav-horizontal-item *ngIf="item.type=='item'" [item]="item"></fuse-nav-horizontal-item>
|
||||||
|
|
||||||
|
|||||||
@@ -1,45 +1,45 @@
|
|||||||
<ng-container *ngIf="!item.hidden">
|
<ng-container *ngIf="!item.hidden">
|
||||||
|
|
||||||
<!-- normal collapse -->
|
<!-- normal collapsable -->
|
||||||
<a class="nav-link" [ngClass]="item.classes" *ngIf="!item.url && !item.function"
|
<a class="nav-link" [ngClass]="item.classes" *ngIf="!item.url && !item.function"
|
||||||
(click)="toggleOpen($event)" matRipple>
|
(click)="toggleOpen($event)">
|
||||||
<ng-container *ngTemplateOutlet="itemContent"></ng-container>
|
<ng-container *ngTemplateOutlet="itemContent"></ng-container>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<!-- item.url -->
|
<!-- item.url -->
|
||||||
<a class="nav-link" [ngClass]="item.classes" *ngIf="item.url && !item.externalUrl && !item.function"
|
<a class="nav-link" [ngClass]="item.classes" *ngIf="item.url && !item.externalUrl && !item.function"
|
||||||
(click)="toggleOpen($event)"
|
(click)="toggleOpen($event)"
|
||||||
[routerLink]="[item.url]" [routerLinkActive]="['active', 'mat-accent-bg']"
|
[routerLink]="[item.url]" [routerLinkActive]="['active', 'accent']"
|
||||||
[routerLinkActiveOptions]="{exact: item.exactMatch || false}"
|
[routerLinkActiveOptions]="{exact: item.exactMatch || false}"
|
||||||
[target]="item.openInNewTab ? '_blank' : '_self'" matRipple>
|
[target]="item.openInNewTab ? '_blank' : '_self'">
|
||||||
<ng-container *ngTemplateOutlet="itemContent"></ng-container>
|
<ng-container *ngTemplateOutlet="itemContent"></ng-container>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<!-- item.externalUrl -->
|
<!-- item.externalUrl -->
|
||||||
<a class="nav-link" [ngClass]="item.classes" *ngIf="item.url && item.externalUrl && !item.function"
|
<a class="nav-link" [ngClass]="item.classes" *ngIf="item.url && item.externalUrl && !item.function"
|
||||||
(click)="toggleOpen($event)"
|
(click)="toggleOpen($event)"
|
||||||
[href]="item.url" [target]="item.openInNewTab ? '_blank' : '_self'" matRipple>
|
[href]="item.url" [target]="item.openInNewTab ? '_blank' : '_self'">
|
||||||
<ng-container *ngTemplateOutlet="itemContent"></ng-container>
|
<ng-container *ngTemplateOutlet="itemContent"></ng-container>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<!-- item.function -->
|
<!-- item.function -->
|
||||||
<span class="nav-link" [ngClass]="item.classes" *ngIf="!item.url && item.function"
|
<span class="nav-link" [ngClass]="item.classes" *ngIf="!item.url && item.function"
|
||||||
(click)="toggleOpen($event);item.function()" matRipple>
|
(click)="toggleOpen($event);item.function()">
|
||||||
<ng-container *ngTemplateOutlet="itemContent"></ng-container>
|
<ng-container *ngTemplateOutlet="itemContent"></ng-container>
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
<!-- item.url && item.function -->
|
<!-- item.url && item.function -->
|
||||||
<a class="nav-link" [ngClass]="item.classes" *ngIf="item.url && !item.externalUrl && item.function"
|
<a class="nav-link" [ngClass]="item.classes" *ngIf="item.url && !item.externalUrl && item.function"
|
||||||
(click)="toggleOpen($event);item.function()"
|
(click)="toggleOpen($event);item.function()"
|
||||||
[routerLink]="[item.url]" [routerLinkActive]="['active', 'mat-accent-bg']"
|
[routerLink]="[item.url]" [routerLinkActive]="['active', 'accent']"
|
||||||
[routerLinkActiveOptions]="{exact: item.exactMatch || false}" matRipple>
|
[routerLinkActiveOptions]="{exact: item.exactMatch || false}">
|
||||||
<ng-container *ngTemplateOutlet="itemContent"></ng-container>
|
<ng-container *ngTemplateOutlet="itemContent"></ng-container>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<!-- item.externalUrl && item.function -->
|
<!-- item.externalUrl && item.function -->
|
||||||
<a class="nav-link" [ngClass]="item.classes" *ngIf="item.url && item.externalUrl && item.function"
|
<a class="nav-link" [ngClass]="item.classes" *ngIf="item.url && item.externalUrl && item.function"
|
||||||
(click)="toggleOpen($event);item.function()"
|
(click)="toggleOpen($event);item.function()"
|
||||||
[href]="item.url" [target]="item.openInNewTab ? '_blank' : '_self'" matRipple>
|
[href]="item.url" [target]="item.openInNewTab ? '_blank' : '_self'">
|
||||||
<ng-container *ngTemplateOutlet="itemContent"></ng-container>
|
<ng-container *ngTemplateOutlet="itemContent"></ng-container>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
|
|||||||
@@ -2,37 +2,37 @@
|
|||||||
|
|
||||||
<!-- item.url -->
|
<!-- item.url -->
|
||||||
<a class="nav-link" [ngClass]="item.classes" *ngIf="item.url && !item.externalUrl && !item.function"
|
<a class="nav-link" [ngClass]="item.classes" *ngIf="item.url && !item.externalUrl && !item.function"
|
||||||
[routerLink]="[item.url]" [routerLinkActive]="['active', 'mat-accent-bg']"
|
[routerLink]="[item.url]" [routerLinkActive]="['active', 'accent']"
|
||||||
[routerLinkActiveOptions]="{exact: item.exactMatch || false}"
|
[routerLinkActiveOptions]="{exact: item.exactMatch || false}"
|
||||||
[target]="item.openInNewTab ? '_blank' : '_self'" matRipple>
|
[target]="item.openInNewTab ? '_blank' : '_self'">
|
||||||
<ng-container *ngTemplateOutlet="itemContent"></ng-container>
|
<ng-container *ngTemplateOutlet="itemContent"></ng-container>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<!-- item.externalUrl -->
|
<!-- item.externalUrl -->
|
||||||
<a class="nav-link" [ngClass]="item.classes" *ngIf="item.url && item.externalUrl && !item.function"
|
<a class="nav-link" [ngClass]="item.classes" *ngIf="item.url && item.externalUrl && !item.function"
|
||||||
[href]="item.url" [target]="item.openInNewTab ? '_blank' : '_self'" matRipple>
|
[href]="item.url" [target]="item.openInNewTab ? '_blank' : '_self'">
|
||||||
<ng-container *ngTemplateOutlet="itemContent"></ng-container>
|
<ng-container *ngTemplateOutlet="itemContent"></ng-container>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<!-- item.function -->
|
<!-- item.function -->
|
||||||
<span class="nav-link" [ngClass]="item.classes" *ngIf="!item.url && item.function"
|
<span class="nav-link" [ngClass]="item.classes" *ngIf="!item.url && item.function"
|
||||||
(click)="item.function()" matRipple>
|
(click)="item.function()">
|
||||||
<ng-container *ngTemplateOutlet="itemContent"></ng-container>
|
<ng-container *ngTemplateOutlet="itemContent"></ng-container>
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
<!-- item.url && item.function -->
|
<!-- item.url && item.function -->
|
||||||
<a class="nav-link" [ngClass]="item.classes" *ngIf="item.url && !item.externalUrl && item.function"
|
<a class="nav-link" [ngClass]="item.classes" *ngIf="item.url && !item.externalUrl && item.function"
|
||||||
(click)="item.function()"
|
(click)="item.function()"
|
||||||
[routerLink]="[item.url]" [routerLinkActive]="['active', 'mat-accent-bg']"
|
[routerLink]="[item.url]" [routerLinkActive]="['active', 'accent']"
|
||||||
[routerLinkActiveOptions]="{exact: item.exactMatch || false}"
|
[routerLinkActiveOptions]="{exact: item.exactMatch || false}"
|
||||||
[target]="item.openInNewTab ? '_blank' : '_self'" matRipple>
|
[target]="item.openInNewTab ? '_blank' : '_self'">
|
||||||
<ng-container *ngTemplateOutlet="itemContent"></ng-container>
|
<ng-container *ngTemplateOutlet="itemContent"></ng-container>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<!-- item.externalUrl && item.function -->
|
<!-- item.externalUrl && item.function -->
|
||||||
<a class="nav-link" [ngClass]="item.classes" *ngIf="item.url && item.externalUrl && item.function"
|
<a class="nav-link" [ngClass]="item.classes" *ngIf="item.url && item.externalUrl && item.function"
|
||||||
(click)="item.function()"
|
(click)="item.function()"
|
||||||
[href]="item.url" [target]="item.openInNewTab ? '_blank' : '_self'" matRipple>
|
[href]="item.url" [target]="item.openInNewTab ? '_blank' : '_self'">
|
||||||
<ng-container *ngTemplateOutlet="itemContent"></ng-container>
|
<ng-container *ngTemplateOutlet="itemContent"></ng-container>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,5 @@
|
|||||||
|
<ng-container *ngIf="visible">
|
||||||
|
|
||||||
|
<mat-progress-bar color="accent" [bufferValue]="bufferValue" [mode]="mode" [value]="value"></mat-progress-bar>
|
||||||
|
|
||||||
|
</ng-container>
|
||||||
@@ -0,0 +1,17 @@
|
|||||||
|
@import "src/@fuse/scss/fuse";
|
||||||
|
|
||||||
|
fuse-progress-bar {
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
right: 0;
|
||||||
|
width: 100%;
|
||||||
|
z-index: 99998;
|
||||||
|
|
||||||
|
mat-progress-bar {
|
||||||
|
|
||||||
|
.mat-progress-bar-buffer {
|
||||||
|
background-color: #C5C6CB !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
93
src/@fuse/components/progress-bar/progress-bar.component.ts
Normal file
93
src/@fuse/components/progress-bar/progress-bar.component.ts
Normal file
@@ -0,0 +1,93 @@
|
|||||||
|
import { Component, OnDestroy, OnInit, ViewEncapsulation } from '@angular/core';
|
||||||
|
import { Subject } from 'rxjs';
|
||||||
|
import { takeUntil } from 'rxjs/operators';
|
||||||
|
|
||||||
|
import { FuseProgressBarService } from '@fuse/components/progress-bar/progress-bar.service';
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector : 'fuse-progress-bar',
|
||||||
|
templateUrl : './progress-bar.component.html',
|
||||||
|
styleUrls : ['./progress-bar.component.scss'],
|
||||||
|
encapsulation: ViewEncapsulation.None
|
||||||
|
})
|
||||||
|
export class FuseProgressBarComponent implements OnInit, OnDestroy
|
||||||
|
{
|
||||||
|
bufferValue: number;
|
||||||
|
mode: 'determinate' | 'indeterminate' | 'buffer' | 'query';
|
||||||
|
value: number;
|
||||||
|
visible: boolean;
|
||||||
|
|
||||||
|
// Private
|
||||||
|
private _unsubscribeAll: Subject<any>;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Constructor
|
||||||
|
*
|
||||||
|
* @param {FuseProgressBarService} _fuseProgressBarService
|
||||||
|
*/
|
||||||
|
constructor(
|
||||||
|
private _fuseProgressBarService: FuseProgressBarService
|
||||||
|
)
|
||||||
|
{
|
||||||
|
// Set the defaults
|
||||||
|
|
||||||
|
// Set the private defaults
|
||||||
|
this._unsubscribeAll = new Subject();
|
||||||
|
}
|
||||||
|
|
||||||
|
// -----------------------------------------------------------------------------------------------------
|
||||||
|
// @ Lifecycle hooks
|
||||||
|
// -----------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
/**
|
||||||
|
* On init
|
||||||
|
*/
|
||||||
|
ngOnInit(): void
|
||||||
|
{
|
||||||
|
// Subscribe to the progress bar service properties
|
||||||
|
|
||||||
|
// Buffer value
|
||||||
|
this._fuseProgressBarService.bufferValue
|
||||||
|
.pipe(takeUntil(this._unsubscribeAll))
|
||||||
|
.subscribe((bufferValue) => {
|
||||||
|
this.bufferValue = bufferValue;
|
||||||
|
});
|
||||||
|
|
||||||
|
// Mode
|
||||||
|
this._fuseProgressBarService.mode
|
||||||
|
.pipe(takeUntil(this._unsubscribeAll))
|
||||||
|
.subscribe((mode) => {
|
||||||
|
this.mode = mode;
|
||||||
|
});
|
||||||
|
|
||||||
|
// Value
|
||||||
|
this._fuseProgressBarService.value
|
||||||
|
.pipe(takeUntil(this._unsubscribeAll))
|
||||||
|
.subscribe((value) => {
|
||||||
|
this.value = value;
|
||||||
|
});
|
||||||
|
|
||||||
|
// Visible
|
||||||
|
this._fuseProgressBarService.visible
|
||||||
|
.pipe(takeUntil(this._unsubscribeAll))
|
||||||
|
.subscribe((visible) => {
|
||||||
|
this.visible = visible;
|
||||||
|
});
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* On destroy
|
||||||
|
*/
|
||||||
|
ngOnDestroy(): void
|
||||||
|
{
|
||||||
|
// Unsubscribe from all subscriptions
|
||||||
|
this._unsubscribeAll.next();
|
||||||
|
this._unsubscribeAll.complete();
|
||||||
|
}
|
||||||
|
|
||||||
|
// -----------------------------------------------------------------------------------------------------
|
||||||
|
// @ Public methods
|
||||||
|
// -----------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
}
|
||||||
27
src/@fuse/components/progress-bar/progress-bar.module.ts
Normal file
27
src/@fuse/components/progress-bar/progress-bar.module.ts
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
import { NgModule } from '@angular/core';
|
||||||
|
import { CommonModule } from '@angular/common';
|
||||||
|
import { RouterModule } from '@angular/router';
|
||||||
|
|
||||||
|
import { MatButtonModule, MatIconModule, MatProgressBarModule } from '@angular/material';
|
||||||
|
|
||||||
|
import { FuseProgressBarComponent } from './progress-bar.component';
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
declarations: [
|
||||||
|
FuseProgressBarComponent
|
||||||
|
],
|
||||||
|
imports : [
|
||||||
|
CommonModule,
|
||||||
|
RouterModule,
|
||||||
|
|
||||||
|
MatButtonModule,
|
||||||
|
MatIconModule,
|
||||||
|
MatProgressBarModule
|
||||||
|
],
|
||||||
|
exports : [
|
||||||
|
FuseProgressBarComponent
|
||||||
|
]
|
||||||
|
})
|
||||||
|
export class FuseProgressBarModule
|
||||||
|
{
|
||||||
|
}
|
||||||
@@ -1,14 +1,17 @@
|
|||||||
import { Injectable } from '@angular/core';
|
import { Injectable } from '@angular/core';
|
||||||
import { NavigationEnd, NavigationStart, Router } from '@angular/router';
|
import { NavigationCancel, NavigationEnd, NavigationError, NavigationStart, Router } from '@angular/router';
|
||||||
import { BehaviorSubject, Observable } from 'rxjs';
|
import { BehaviorSubject, Observable } from 'rxjs';
|
||||||
import { filter } from 'rxjs/operators';
|
import { filter } from 'rxjs/operators';
|
||||||
|
|
||||||
@Injectable({
|
@Injectable({
|
||||||
providedIn: 'root'
|
providedIn: 'root'
|
||||||
})
|
})
|
||||||
export class FuseLoadingBarService
|
export class FuseProgressBarService
|
||||||
{
|
{
|
||||||
// Private
|
// Private
|
||||||
|
private _bufferValue: BehaviorSubject<number>;
|
||||||
|
private _mode: BehaviorSubject<string>;
|
||||||
|
private _value: BehaviorSubject<number>;
|
||||||
private _visible: BehaviorSubject<boolean>;
|
private _visible: BehaviorSubject<boolean>;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -28,9 +31,50 @@ export class FuseLoadingBarService
|
|||||||
// @ Accessors
|
// @ Accessors
|
||||||
// -----------------------------------------------------------------------------------------------------
|
// -----------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Buffer value
|
||||||
|
*/
|
||||||
|
get bufferValue(): Observable<any>
|
||||||
|
{
|
||||||
|
return this._bufferValue.asObservable();
|
||||||
|
}
|
||||||
|
|
||||||
|
setBufferValue(value: number): void
|
||||||
|
{
|
||||||
|
this._bufferValue.next(value);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Mode
|
||||||
|
*/
|
||||||
|
get mode(): Observable<any>
|
||||||
|
{
|
||||||
|
return this._mode.asObservable();
|
||||||
|
}
|
||||||
|
|
||||||
|
setMode(value: 'determinate' | 'indeterminate' | 'buffer' | 'query'): void
|
||||||
|
{
|
||||||
|
this._mode.next(value);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Value
|
||||||
|
*/
|
||||||
|
get value(): Observable<any>
|
||||||
|
{
|
||||||
|
return this._value.asObservable();
|
||||||
|
}
|
||||||
|
|
||||||
|
setValue(value: number): void
|
||||||
|
{
|
||||||
|
this._value.next(value);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Visible
|
||||||
|
*/
|
||||||
get visible(): Observable<any>
|
get visible(): Observable<any>
|
||||||
{
|
{
|
||||||
// Return the _visible as observable
|
|
||||||
return this._visible.asObservable();
|
return this._visible.asObservable();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -45,24 +89,23 @@ export class FuseLoadingBarService
|
|||||||
*/
|
*/
|
||||||
private _init(): void
|
private _init(): void
|
||||||
{
|
{
|
||||||
// Initialize the behavior subject
|
// Initialize the behavior subjects
|
||||||
|
this._bufferValue = new BehaviorSubject(0);
|
||||||
|
this._mode = new BehaviorSubject('indeterminate');
|
||||||
|
this._value = new BehaviorSubject(0);
|
||||||
this._visible = new BehaviorSubject(false);
|
this._visible = new BehaviorSubject(false);
|
||||||
|
|
||||||
// Subscribe to the router events to show/hide the loading bar
|
// Subscribe to the router events to show/hide the loading bar
|
||||||
this._router.events
|
this._router.events
|
||||||
.pipe(
|
.pipe(filter((event) => event instanceof NavigationStart))
|
||||||
filter((event) => event instanceof NavigationStart)
|
|
||||||
)
|
|
||||||
.subscribe(() => {
|
.subscribe(() => {
|
||||||
this.showLoadingBar();
|
this.show();
|
||||||
});
|
});
|
||||||
|
|
||||||
this._router.events
|
this._router.events
|
||||||
.pipe(
|
.pipe(filter((event) => event instanceof NavigationEnd || event instanceof NavigationError || event instanceof NavigationCancel))
|
||||||
filter((event) => event instanceof NavigationEnd)
|
|
||||||
)
|
|
||||||
.subscribe(() => {
|
.subscribe(() => {
|
||||||
this.hideLoadingBar();
|
this.hide();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -71,20 +114,18 @@ export class FuseLoadingBarService
|
|||||||
// -----------------------------------------------------------------------------------------------------
|
// -----------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Show the loading bar
|
* Show the progress bar
|
||||||
*/
|
*/
|
||||||
showLoadingBar(): void
|
show(): void
|
||||||
{
|
{
|
||||||
// Show
|
|
||||||
this._visible.next(true);
|
this._visible.next(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Hide the loading bar
|
* Hide the progress bar
|
||||||
*/
|
*/
|
||||||
hideLoadingBar(): void
|
hide(): void
|
||||||
{
|
{
|
||||||
// Hide
|
|
||||||
this._visible.next(false);
|
this._visible.next(false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,15 +1,12 @@
|
|||||||
<div class="fuse-search-bar" [ngClass]="{'expanded':!collapsed}">
|
<div class="fuse-search-bar" [ngClass]="{'expanded':!collapsed}">
|
||||||
|
|
||||||
<div class="fuse-search-bar-content" [ngClass]="fuseConfig.layout.toolbar.background">
|
<div class="fuse-search-bar-content">
|
||||||
|
|
||||||
<label for="fuse-search-bar-input">
|
<label for="fuse-search-bar-input">
|
||||||
<button mat-icon-button class="fuse-search-bar-expander" aria-label="Expand Search Bar" (click)="expand()"
|
<button mat-icon-button class="fuse-search-bar-expander" aria-label="Expand Search Bar" (click)="expand()"
|
||||||
*ngIf="collapsed">
|
*ngIf="collapsed">
|
||||||
<mat-icon class="s-24 secondary-text">search</mat-icon>
|
<mat-icon class="s-24 secondary-text">search</mat-icon>
|
||||||
</button>
|
</button>
|
||||||
<!--<span class="fuse-search-bar-loader" fxLayout="row" fxLayoutAlign="center center" *ngIf="!collapsed">
|
|
||||||
<mat-progress-spinner color="mat-accent" mode="indeterminate"></mat-progress-spinner>
|
|
||||||
</span>-->
|
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
<input id="fuse-search-bar-input" class="ml-24" type="text" placeholder="Search" (input)="search($event)"
|
<input id="fuse-search-bar-input" class="ml-24" type="text" placeholder="Search" (input)="search($event)"
|
||||||
|
|||||||
@@ -53,8 +53,9 @@
|
|||||||
display: none;
|
display: none;
|
||||||
flex: 1 0 auto;
|
flex: 1 0 auto;
|
||||||
min-height: 64px;
|
min-height: 64px;
|
||||||
background-color: transparent;
|
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
|
background-color: transparent;
|
||||||
|
color: currentColor;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
11
src/@fuse/components/search-bar/search-bar.theme.scss
Normal file
11
src/@fuse/components/search-bar/search-bar.theme.scss
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
@mixin fuse-search-bar-theme($theme) {
|
||||||
|
|
||||||
|
$background: map-get($theme, background);
|
||||||
|
|
||||||
|
.fuse-search-bar {
|
||||||
|
|
||||||
|
&.expanded {
|
||||||
|
background-color: map-get($background, background);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -19,6 +19,10 @@
|
|||||||
display: flex !important;
|
display: flex !important;
|
||||||
flex: 1;
|
flex: 1;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
|
||||||
|
> div {
|
||||||
|
flex: 1 1 auto !important;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
11
src/@fuse/components/shortcuts/shortcuts.theme.scss
Normal file
11
src/@fuse/components/shortcuts/shortcuts.theme.scss
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
@mixin fuse-shortcuts-theme($theme) {
|
||||||
|
|
||||||
|
$background: map-get($theme, background);
|
||||||
|
|
||||||
|
#fuse-shortcuts {
|
||||||
|
|
||||||
|
&.show-mobile-panel {
|
||||||
|
background-color: map-get($background, background);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,3 +1,5 @@
|
|||||||
|
@import "src/@fuse/scss/fuse";
|
||||||
|
|
||||||
fuse-sidebar {
|
fuse-sidebar {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
@@ -7,12 +9,18 @@ fuse-sidebar {
|
|||||||
bottom: 0;
|
bottom: 0;
|
||||||
overflow-x: hidden;
|
overflow-x: hidden;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
|
-webkit-overflow-scrolling: touch;
|
||||||
width: 280px;
|
width: 280px;
|
||||||
min-width: 280px;
|
min-width: 280px;
|
||||||
max-width: 280px;
|
max-width: 280px;
|
||||||
z-index: 1000;
|
z-index: 1000;
|
||||||
box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.35);
|
box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.35);
|
||||||
background: white;
|
|
||||||
|
@include media-breakpoint-down('xs') {
|
||||||
|
min-width: 0 !important;
|
||||||
|
max-width: 80vw !important;
|
||||||
|
width: 80vw !important;
|
||||||
|
}
|
||||||
|
|
||||||
&.left-positioned {
|
&.left-positioned {
|
||||||
left: 0;
|
left: 0;
|
||||||
@@ -53,10 +61,5 @@ fuse-sidebar {
|
|||||||
left: 0;
|
left: 0;
|
||||||
right: 0;
|
right: 0;
|
||||||
z-index: 999;
|
z-index: 999;
|
||||||
background-color: rgba(0, 0, 0, 0.6);
|
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
|
|
||||||
&.fuse-sidebar-overlay-invisible {
|
|
||||||
background-color: transparent;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
@@ -1,4 +1,6 @@
|
|||||||
import { ChangeDetectorRef, Component, ElementRef, EventEmitter, HostBinding, HostListener, Input, OnDestroy, OnInit, Output, Renderer2, RendererStyleFlags2, ViewEncapsulation } from '@angular/core';
|
import {
|
||||||
|
ChangeDetectorRef, Component, ElementRef, EventEmitter, HostBinding, HostListener, Input, OnDestroy, OnInit, Output, Renderer2, RendererStyleFlags2, ViewEncapsulation
|
||||||
|
} from '@angular/core';
|
||||||
import { animate, AnimationBuilder, AnimationPlayer, style } from '@angular/animations';
|
import { animate, AnimationBuilder, AnimationPlayer, style } from '@angular/animations';
|
||||||
import { ObservableMedia } from '@angular/flex-layout';
|
import { ObservableMedia } from '@angular/flex-layout';
|
||||||
import { Subject } from 'rxjs';
|
import { Subject } from 'rxjs';
|
||||||
@@ -318,7 +320,6 @@ export class FuseSidebarComponent implements OnInit, OnDestroy
|
|||||||
|
|
||||||
// Get the active status
|
// Get the active status
|
||||||
const isActive = this._observableMedia.isActive(this.lockedOpen);
|
const isActive = this._observableMedia.isActive(this.lockedOpen);
|
||||||
|
|
||||||
// If the both status are the same, don't act
|
// If the both status are the same, don't act
|
||||||
if ( this._wasActive === isActive )
|
if ( this._wasActive === isActive )
|
||||||
{
|
{
|
||||||
|
|||||||
16
src/@fuse/components/sidebar/sidebar.theme.scss
Normal file
16
src/@fuse/components/sidebar/sidebar.theme.scss
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
@mixin fuse-sidebar-theme($theme) {
|
||||||
|
|
||||||
|
$background: map-get($theme, background);
|
||||||
|
|
||||||
|
fuse-sidebar {
|
||||||
|
background: map-get($background, background);
|
||||||
|
}
|
||||||
|
|
||||||
|
.fuse-sidebar-overlay {
|
||||||
|
background-color: rgba(0, 0, 0, 0.6);
|
||||||
|
|
||||||
|
&.fuse-sidebar-overlay-invisible {
|
||||||
|
background-color: transparent;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -12,6 +12,20 @@
|
|||||||
|
|
||||||
<form [formGroup]="form">
|
<form [formGroup]="form">
|
||||||
|
|
||||||
|
<!-- COLOR THEME -->
|
||||||
|
<div class="group">
|
||||||
|
|
||||||
|
<h2>Color themes</h2>
|
||||||
|
|
||||||
|
<mat-radio-group fxLayout="column" fxLayoutAlign="start start" formControlName="colorTheme">
|
||||||
|
<mat-radio-button class="mb-12" value="theme-default">Default Light</mat-radio-button>
|
||||||
|
<mat-radio-button class="mb-12" value="theme-yellow-light">Yellow Light</mat-radio-button>
|
||||||
|
<mat-radio-button class="mb-12" value="theme-blue-gray-dark">Blue-Gray Dark</mat-radio-button>
|
||||||
|
<mat-radio-button class="mb-12" value="theme-pink-dark">Pink Dark</mat-radio-button>
|
||||||
|
</mat-radio-group>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
<!-- LAYOUT STYLES -->
|
<!-- LAYOUT STYLES -->
|
||||||
<div class="group" formGroupName="layout">
|
<div class="group" formGroupName="layout">
|
||||||
|
|
||||||
@@ -79,10 +93,13 @@
|
|||||||
<mat-radio-button class="mb-16" value="vertical-style-2">Style 2</mat-radio-button>
|
<mat-radio-button class="mb-16" value="vertical-style-2">Style 2</mat-radio-button>
|
||||||
</mat-radio-group>
|
</mat-radio-group>
|
||||||
|
|
||||||
<h3 class="mt-24 mb-8">Color:</h3>
|
<h3 class="mt-16 mb-8">Primary background:</h3>
|
||||||
<fuse-material-color-picker class="mb-16"
|
<fuse-material-color-picker class="mb-16"
|
||||||
[(selectedClass)]="fuseConfig.layout.navbar.background">
|
formControlName="primaryBackground"></fuse-material-color-picker>
|
||||||
</fuse-material-color-picker>
|
|
||||||
|
<h3 class="mt-16 mb-8">Secondary background:</h3>
|
||||||
|
<fuse-material-color-picker class="mb-16"
|
||||||
|
formControlName="secondaryBackground"></fuse-material-color-picker>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -102,10 +119,13 @@
|
|||||||
<mat-radio-button class="mb-12" value="below-fixed">Below Fixed</mat-radio-button>
|
<mat-radio-button class="mb-12" value="below-fixed">Below Fixed</mat-radio-button>
|
||||||
</mat-radio-group>
|
</mat-radio-group>
|
||||||
|
|
||||||
<h3 class="mt-24 mb-8">Color:</h3>
|
<mat-checkbox class="mt-24" formControlName="customBackgroundColor">
|
||||||
|
Use custom background color
|
||||||
|
</mat-checkbox>
|
||||||
|
|
||||||
|
<h3 class="mt-24 mb-8">Background color:</h3>
|
||||||
<fuse-material-color-picker class="mb-16"
|
<fuse-material-color-picker class="mb-16"
|
||||||
[(selectedClass)]="fuseConfig.layout.toolbar.background">
|
formControlName="background"></fuse-material-color-picker>
|
||||||
</fuse-material-color-picker>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -125,10 +145,30 @@
|
|||||||
<mat-radio-button class="mb-12" value="below-fixed">Below Fixed</mat-radio-button>
|
<mat-radio-button class="mb-12" value="below-fixed">Below Fixed</mat-radio-button>
|
||||||
</mat-radio-group>
|
</mat-radio-group>
|
||||||
|
|
||||||
|
<mat-checkbox class="mt-24" formControlName="customBackgroundColor">
|
||||||
|
Use custom background color
|
||||||
|
</mat-checkbox>
|
||||||
|
|
||||||
<h3 class="mt-24 mb-8">Color:</h3>
|
<h3 class="mt-24 mb-8">Color:</h3>
|
||||||
<fuse-material-color-picker class="mb-16"
|
<fuse-material-color-picker class="mb-16"
|
||||||
[(selectedClass)]="fuseConfig.layout.footer.background">
|
formControlName="background"></fuse-material-color-picker>
|
||||||
</fuse-material-color-picker>
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- SIDE PANEL -->
|
||||||
|
<div class="group" formGroupName="sidepanel">
|
||||||
|
|
||||||
|
<h2>Side Panel</h2>
|
||||||
|
|
||||||
|
<mat-slide-toggle formControlName="hidden">
|
||||||
|
Hide
|
||||||
|
</mat-slide-toggle>
|
||||||
|
|
||||||
|
<h3 class="mt-24">Position:</h3>
|
||||||
|
<mat-radio-group fxLayout="column" fxLayoutAlign="start start" formControlName="position">
|
||||||
|
<mat-radio-button class="mb-12" value="left">Left</mat-radio-button>
|
||||||
|
<mat-radio-button class="mb-12" value="right">Right</mat-radio-button>
|
||||||
|
</mat-radio-group>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -173,10 +213,13 @@
|
|||||||
<mat-radio-button class="mb-16" value="vertical-style-2">Style 2</mat-radio-button>
|
<mat-radio-button class="mb-16" value="vertical-style-2">Style 2</mat-radio-button>
|
||||||
</mat-radio-group>
|
</mat-radio-group>
|
||||||
|
|
||||||
<h3 class="mt-24 mb-8">Color:</h3>
|
<h3 class="mt-16 mb-8">Primary background:</h3>
|
||||||
<fuse-material-color-picker class="mb-16"
|
<fuse-material-color-picker class="mb-16"
|
||||||
[(selectedClass)]="fuseConfig.layout.navbar.background">
|
formControlName="primaryBackground"></fuse-material-color-picker>
|
||||||
</fuse-material-color-picker>
|
|
||||||
|
<h3 class="mt-16 mb-8">Secondary background:</h3>
|
||||||
|
<fuse-material-color-picker class="mb-16"
|
||||||
|
formControlName="secondaryBackground"></fuse-material-color-picker>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -196,10 +239,13 @@
|
|||||||
<mat-radio-button class="mb-12" value="below">Below</mat-radio-button>
|
<mat-radio-button class="mb-12" value="below">Below</mat-radio-button>
|
||||||
</mat-radio-group>
|
</mat-radio-group>
|
||||||
|
|
||||||
<h3 class="mt-24 mb-8">Color:</h3>
|
<mat-checkbox class="mt-24" formControlName="customBackgroundColor">
|
||||||
|
Use custom background color
|
||||||
|
</mat-checkbox>
|
||||||
|
|
||||||
|
<h3 class="mt-24 mb-8">Background color:</h3>
|
||||||
<fuse-material-color-picker class="mb-16"
|
<fuse-material-color-picker class="mb-16"
|
||||||
[(selectedClass)]="fuseConfig.layout.toolbar.background">
|
formControlName="background"></fuse-material-color-picker>
|
||||||
</fuse-material-color-picker>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -219,10 +265,30 @@
|
|||||||
<mat-radio-button class="mb-12" value="below">Below</mat-radio-button>
|
<mat-radio-button class="mb-12" value="below">Below</mat-radio-button>
|
||||||
</mat-radio-group>
|
</mat-radio-group>
|
||||||
|
|
||||||
<h3 class="mt-24 mb-8">Color:</h3>
|
<mat-checkbox class="mt-24" formControlName="customBackgroundColor">
|
||||||
|
Use custom background color
|
||||||
|
</mat-checkbox>
|
||||||
|
|
||||||
|
<h3 class="mt-24 mb-8">Background color:</h3>
|
||||||
<fuse-material-color-picker class="mb-16"
|
<fuse-material-color-picker class="mb-16"
|
||||||
[(selectedClass)]="fuseConfig.layout.footer.background">
|
formControlName="background"></fuse-material-color-picker>
|
||||||
</fuse-material-color-picker>
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- SIDE PANEL -->
|
||||||
|
<div class="group" formGroupName="sidepanel">
|
||||||
|
|
||||||
|
<h2>Side Panel</h2>
|
||||||
|
|
||||||
|
<mat-slide-toggle formControlName="hidden">
|
||||||
|
Hide
|
||||||
|
</mat-slide-toggle>
|
||||||
|
|
||||||
|
<h3 class="mt-24">Position:</h3>
|
||||||
|
<mat-radio-group fxLayout="column" fxLayoutAlign="start start" formControlName="position">
|
||||||
|
<mat-radio-button class="mb-12" value="left">Left</mat-radio-button>
|
||||||
|
<mat-radio-button class="mb-12" value="right">Right</mat-radio-button>
|
||||||
|
</mat-radio-group>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -267,10 +333,13 @@
|
|||||||
<mat-radio-button class="mb-16" value="vertical-style-2">Style 2</mat-radio-button>
|
<mat-radio-button class="mb-16" value="vertical-style-2">Style 2</mat-radio-button>
|
||||||
</mat-radio-group>
|
</mat-radio-group>
|
||||||
|
|
||||||
<h3 class="mt-24 mb-8">Color:</h3>
|
<h3 class="mt-16 mb-8">Primary background:</h3>
|
||||||
<fuse-material-color-picker class="mb-16"
|
<fuse-material-color-picker class="mb-16"
|
||||||
[(selectedClass)]="fuseConfig.layout.navbar.background">
|
formControlName="primaryBackground"></fuse-material-color-picker>
|
||||||
</fuse-material-color-picker>
|
|
||||||
|
<h3 class="mt-16 mb-8">Secondary background:</h3>
|
||||||
|
<fuse-material-color-picker class="mb-16"
|
||||||
|
formControlName="secondaryBackground"></fuse-material-color-picker>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -289,10 +358,13 @@
|
|||||||
<mat-radio-button class="mb-12" value="above-fixed">Above Fixed</mat-radio-button>
|
<mat-radio-button class="mb-12" value="above-fixed">Above Fixed</mat-radio-button>
|
||||||
</mat-radio-group>
|
</mat-radio-group>
|
||||||
|
|
||||||
<h3 class="mt-24 mb-8">Color:</h3>
|
<mat-checkbox class="mt-24" formControlName="customBackgroundColor">
|
||||||
|
Use custom background color
|
||||||
|
</mat-checkbox>
|
||||||
|
|
||||||
|
<h3 class="mt-24 mb-8">Background color:</h3>
|
||||||
<fuse-material-color-picker class="mb-16"
|
<fuse-material-color-picker class="mb-16"
|
||||||
[(selectedClass)]="fuseConfig.layout.toolbar.background">
|
formControlName="background"></fuse-material-color-picker>
|
||||||
</fuse-material-color-picker>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -311,10 +383,30 @@
|
|||||||
<mat-radio-button class="mb-12" value="above-fixed">Above Fixed</mat-radio-button>
|
<mat-radio-button class="mb-12" value="above-fixed">Above Fixed</mat-radio-button>
|
||||||
</mat-radio-group>
|
</mat-radio-group>
|
||||||
|
|
||||||
<h3 class="mt-24 mb-8">Color:</h3>
|
<mat-checkbox class="mt-24" formControlName="customBackgroundColor">
|
||||||
|
Use custom background color
|
||||||
|
</mat-checkbox>
|
||||||
|
|
||||||
|
<h3 class="mt-24 mb-8">Background color:</h3>
|
||||||
<fuse-material-color-picker class="mb-16"
|
<fuse-material-color-picker class="mb-16"
|
||||||
[(selectedClass)]="fuseConfig.layout.footer.background">
|
formControlName="background"></fuse-material-color-picker>
|
||||||
</fuse-material-color-picker>
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- SIDE PANEL -->
|
||||||
|
<div class="group" formGroupName="sidepanel">
|
||||||
|
|
||||||
|
<h2>Side Panel</h2>
|
||||||
|
|
||||||
|
<mat-slide-toggle formControlName="hidden">
|
||||||
|
Hide
|
||||||
|
</mat-slide-toggle>
|
||||||
|
|
||||||
|
<h3 class="mt-24">Position:</h3>
|
||||||
|
<mat-radio-group fxLayout="column" fxLayoutAlign="start start" formControlName="position">
|
||||||
|
<mat-radio-button class="mb-12" value="left">Left</mat-radio-button>
|
||||||
|
<mat-radio-button class="mb-12" value="right">Right</mat-radio-button>
|
||||||
|
</mat-radio-group>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -354,9 +446,14 @@
|
|||||||
<mat-radio-button class="mb-16" value="vertical-style-2">Style 2</mat-radio-button>
|
<mat-radio-button class="mb-16" value="vertical-style-2">Style 2</mat-radio-button>
|
||||||
</mat-radio-group>
|
</mat-radio-group>
|
||||||
|
|
||||||
<h3 class="mt-24 mb-8">Color:</h3>
|
<h3 class="mt-16 mb-8">Primary background:</h3>
|
||||||
<fuse-material-color-picker class="mb-16"
|
<fuse-material-color-picker class="mb-16"
|
||||||
[(selectedClass)]="fuseConfig.layout.navbar.background">
|
formControlName="primaryBackground">
|
||||||
|
</fuse-material-color-picker>
|
||||||
|
|
||||||
|
<h3 class="mt-16 mb-8">Secondary background (Vertical):</h3>
|
||||||
|
<fuse-material-color-picker class="mb-16"
|
||||||
|
formControlName="secondaryBackground">
|
||||||
</fuse-material-color-picker>
|
</fuse-material-color-picker>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
@@ -376,10 +473,13 @@
|
|||||||
<mat-radio-button class="mb-12" value="below">Below</mat-radio-button>
|
<mat-radio-button class="mb-12" value="below">Below</mat-radio-button>
|
||||||
</mat-radio-group>
|
</mat-radio-group>
|
||||||
|
|
||||||
<h3 class="mt-24 mb-8">Color:</h3>
|
<mat-checkbox class="mt-24" formControlName="customBackgroundColor">
|
||||||
|
Use custom background color
|
||||||
|
</mat-checkbox>
|
||||||
|
|
||||||
|
<h3 class="mt-24 mb-8">Background color:</h3>
|
||||||
<fuse-material-color-picker class="mb-16"
|
<fuse-material-color-picker class="mb-16"
|
||||||
[(selectedClass)]="fuseConfig.layout.toolbar.background">
|
formControlName="background"></fuse-material-color-picker>
|
||||||
</fuse-material-color-picker>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -398,10 +498,30 @@
|
|||||||
<mat-radio-button class="mb-12" value="above-static">Above Static</mat-radio-button>
|
<mat-radio-button class="mb-12" value="above-static">Above Static</mat-radio-button>
|
||||||
</mat-radio-group>
|
</mat-radio-group>
|
||||||
|
|
||||||
<h3 class="mt-24 mb-8">Color:</h3>
|
<mat-checkbox class="mt-24" formControlName="customBackgroundColor">
|
||||||
|
Use custom background color
|
||||||
|
</mat-checkbox>
|
||||||
|
|
||||||
|
<h3 class="mt-24 mb-8">Background color:</h3>
|
||||||
<fuse-material-color-picker class="mb-16"
|
<fuse-material-color-picker class="mb-16"
|
||||||
[(selectedClass)]="fuseConfig.layout.footer.background">
|
formControlName="background"></fuse-material-color-picker>
|
||||||
</fuse-material-color-picker>
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- SIDE PANEL -->
|
||||||
|
<div class="group" formGroupName="sidepanel">
|
||||||
|
|
||||||
|
<h2>Side Panel</h2>
|
||||||
|
|
||||||
|
<mat-slide-toggle formControlName="hidden">
|
||||||
|
Hide
|
||||||
|
</mat-slide-toggle>
|
||||||
|
|
||||||
|
<h3 class="mt-24">Position:</h3>
|
||||||
|
<mat-radio-group fxLayout="column" fxLayoutAlign="start start" formControlName="position">
|
||||||
|
<mat-radio-button class="mb-12" value="left">Left</mat-radio-button>
|
||||||
|
<mat-radio-button class="mb-12" value="right">Right</mat-radio-button>
|
||||||
|
</mat-radio-group>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
:host {
|
fuse-theme-options {
|
||||||
display: flex;
|
display: flex;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
|
||||||
@@ -19,6 +19,7 @@
|
|||||||
flex: 1 0 auto;
|
flex: 1 0 auto;
|
||||||
padding: 40px 24px 24px 24px;
|
padding: 40px 24px 24px 24px;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
|
-webkit-overflow-scrolling: touch;
|
||||||
|
|
||||||
.header {
|
.header {
|
||||||
display: flex;
|
display: flex;
|
||||||
@@ -44,7 +45,6 @@
|
|||||||
flex: 1 0 auto;
|
flex: 1 0 auto;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
position: relative;
|
position: relative;
|
||||||
border: 1px solid rgba(0, 0, 0, 0.12);
|
|
||||||
border-radius: 2px;
|
border-radius: 2px;
|
||||||
padding: 28px 16px 8px 16px;
|
padding: 28px 16px 8px 16px;
|
||||||
margin: 16px 0;
|
margin: 16px 0;
|
||||||
@@ -57,14 +57,11 @@
|
|||||||
padding: 0 8px;
|
padding: 0 8px;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
background: white;
|
|
||||||
color: rgba(0, 0, 0, 0.54);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
h3 {
|
h3 {
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
color: rgba(0, 0, 0, 0.54);
|
|
||||||
margin: 24px 0 16px 0;
|
margin: 24px 0 16px 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
import { Component, HostBinding, OnDestroy, OnInit, Renderer2 } from '@angular/core';
|
import { Component, HostBinding, Inject, OnDestroy, OnInit, Renderer2, ViewEncapsulation } from '@angular/core';
|
||||||
import { FormBuilder, FormControl, FormGroup } from '@angular/forms';
|
import { FormBuilder, FormControl, FormGroup } from '@angular/forms';
|
||||||
|
import { DOCUMENT } from '@angular/common';
|
||||||
import { Subject } from 'rxjs';
|
import { Subject } from 'rxjs';
|
||||||
import { takeUntil } from 'rxjs/operators';
|
import { takeUntil } from 'rxjs/operators';
|
||||||
|
|
||||||
@@ -9,10 +10,11 @@ import { FuseNavigationService } from '@fuse/components/navigation/navigation.se
|
|||||||
import { FuseSidebarService } from '@fuse/components/sidebar/sidebar.service';
|
import { FuseSidebarService } from '@fuse/components/sidebar/sidebar.service';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector : 'fuse-theme-options',
|
selector : 'fuse-theme-options',
|
||||||
templateUrl: './theme-options.component.html',
|
templateUrl : './theme-options.component.html',
|
||||||
styleUrls : ['./theme-options.component.scss'],
|
styleUrls : ['./theme-options.component.scss'],
|
||||||
animations : fuseAnimations
|
encapsulation: ViewEncapsulation.None,
|
||||||
|
animations : fuseAnimations
|
||||||
})
|
})
|
||||||
export class FuseThemeOptionsComponent implements OnInit, OnDestroy
|
export class FuseThemeOptionsComponent implements OnInit, OnDestroy
|
||||||
{
|
{
|
||||||
@@ -28,6 +30,7 @@ export class FuseThemeOptionsComponent implements OnInit, OnDestroy
|
|||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
*
|
*
|
||||||
|
* @param {DOCUMENT} document
|
||||||
* @param {FormBuilder} _formBuilder
|
* @param {FormBuilder} _formBuilder
|
||||||
* @param {FuseConfigService} _fuseConfigService
|
* @param {FuseConfigService} _fuseConfigService
|
||||||
* @param {FuseNavigationService} _fuseNavigationService
|
* @param {FuseNavigationService} _fuseNavigationService
|
||||||
@@ -35,6 +38,7 @@ export class FuseThemeOptionsComponent implements OnInit, OnDestroy
|
|||||||
* @param {Renderer2} _renderer
|
* @param {Renderer2} _renderer
|
||||||
*/
|
*/
|
||||||
constructor(
|
constructor(
|
||||||
|
@Inject(DOCUMENT) private document: any,
|
||||||
private _formBuilder: FormBuilder,
|
private _formBuilder: FormBuilder,
|
||||||
private _fuseConfigService: FuseConfigService,
|
private _fuseConfigService: FuseConfigService,
|
||||||
private _fuseNavigationService: FuseNavigationService,
|
private _fuseNavigationService: FuseNavigationService,
|
||||||
@@ -61,28 +65,36 @@ export class FuseThemeOptionsComponent implements OnInit, OnDestroy
|
|||||||
// Build the config form
|
// Build the config form
|
||||||
// noinspection TypeScriptValidateTypes
|
// noinspection TypeScriptValidateTypes
|
||||||
this.form = this._formBuilder.group({
|
this.form = this._formBuilder.group({
|
||||||
|
colorTheme : new FormControl(),
|
||||||
|
customScrollbars: new FormControl(),
|
||||||
layout : this._formBuilder.group({
|
layout : this._formBuilder.group({
|
||||||
style : new FormControl(),
|
style : new FormControl(),
|
||||||
width : new FormControl(),
|
width : new FormControl(),
|
||||||
navbar : this._formBuilder.group({
|
navbar : this._formBuilder.group({
|
||||||
background: new FormControl(),
|
primaryBackground : new FormControl(),
|
||||||
folded : new FormControl(),
|
secondaryBackground: new FormControl(),
|
||||||
hidden : new FormControl(),
|
folded : new FormControl(),
|
||||||
position : new FormControl(),
|
hidden : new FormControl(),
|
||||||
variant : new FormControl()
|
position : new FormControl(),
|
||||||
|
variant : new FormControl()
|
||||||
}),
|
}),
|
||||||
toolbar: this._formBuilder.group({
|
toolbar : this._formBuilder.group({
|
||||||
background: new FormControl(),
|
background : new FormControl(),
|
||||||
hidden : new FormControl(),
|
customBackgroundColor: new FormControl(),
|
||||||
position : new FormControl()
|
hidden : new FormControl(),
|
||||||
|
position : new FormControl()
|
||||||
}),
|
}),
|
||||||
footer : this._formBuilder.group({
|
footer : this._formBuilder.group({
|
||||||
background: new FormControl(),
|
background : new FormControl(),
|
||||||
hidden : new FormControl(),
|
customBackgroundColor: new FormControl(),
|
||||||
position : new FormControl()
|
hidden : new FormControl(),
|
||||||
|
position : new FormControl()
|
||||||
|
}),
|
||||||
|
sidepanel: this._formBuilder.group({
|
||||||
|
hidden : new FormControl(),
|
||||||
|
position: new FormControl()
|
||||||
})
|
})
|
||||||
}),
|
})
|
||||||
customScrollbars: new FormControl()
|
|
||||||
});
|
});
|
||||||
|
|
||||||
// Subscribe to the config changes
|
// Subscribe to the config changes
|
||||||
@@ -173,23 +185,30 @@ export class FuseThemeOptionsComponent implements OnInit, OnDestroy
|
|||||||
{
|
{
|
||||||
this.form.patchValue({
|
this.form.patchValue({
|
||||||
layout: {
|
layout: {
|
||||||
width : 'fullwidth',
|
width : 'fullwidth',
|
||||||
navbar : {
|
navbar : {
|
||||||
background: 'mat-fuse-dark-700-bg',
|
primaryBackground : 'fuse-navy-700',
|
||||||
folded : false,
|
secondaryBackground: 'fuse-navy-900',
|
||||||
hidden : false,
|
folded : false,
|
||||||
position : 'left',
|
hidden : false,
|
||||||
variant : 'vertical-style-1'
|
position : 'left',
|
||||||
|
variant : 'vertical-style-1'
|
||||||
},
|
},
|
||||||
toolbar: {
|
toolbar : {
|
||||||
background: 'mat-white-500-bg',
|
background : 'fuse-white-500',
|
||||||
hidden : false,
|
customBackgroundColor: false,
|
||||||
position : 'below-static'
|
hidden : false,
|
||||||
|
position : 'below-static'
|
||||||
},
|
},
|
||||||
footer : {
|
footer : {
|
||||||
background: 'mat-fuse-dark-900-bg',
|
background : 'fuse-navy-900',
|
||||||
hidden : false,
|
customBackgroundColor: true,
|
||||||
position : 'below-static'
|
hidden : false,
|
||||||
|
position : 'below-static'
|
||||||
|
},
|
||||||
|
sidepanel: {
|
||||||
|
hidden : false,
|
||||||
|
position: 'right'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -202,23 +221,30 @@ export class FuseThemeOptionsComponent implements OnInit, OnDestroy
|
|||||||
{
|
{
|
||||||
this.form.patchValue({
|
this.form.patchValue({
|
||||||
layout: {
|
layout: {
|
||||||
width : 'fullwidth',
|
width : 'fullwidth',
|
||||||
navbar : {
|
navbar : {
|
||||||
background: 'mat-fuse-dark-700-bg',
|
primaryBackground : 'fuse-navy-700',
|
||||||
folded : false,
|
secondaryBackground: 'fuse-navy-900',
|
||||||
hidden : false,
|
folded : false,
|
||||||
position : 'left',
|
hidden : false,
|
||||||
variant : 'vertical-style-1'
|
position : 'left',
|
||||||
|
variant : 'vertical-style-1'
|
||||||
},
|
},
|
||||||
toolbar: {
|
toolbar : {
|
||||||
background: 'mat-white-500-bg',
|
background : 'fuse-white-500',
|
||||||
hidden : false,
|
customBackgroundColor: false,
|
||||||
position : 'below'
|
hidden : false,
|
||||||
|
position : 'below'
|
||||||
},
|
},
|
||||||
footer : {
|
footer : {
|
||||||
background: 'mat-fuse-dark-900-bg',
|
background : 'fuse-navy-900',
|
||||||
hidden : false,
|
customBackgroundColor: true,
|
||||||
position : 'below'
|
hidden : false,
|
||||||
|
position : 'below'
|
||||||
|
},
|
||||||
|
sidepanel: {
|
||||||
|
hidden : false,
|
||||||
|
position: 'right'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -231,23 +257,30 @@ export class FuseThemeOptionsComponent implements OnInit, OnDestroy
|
|||||||
{
|
{
|
||||||
this.form.patchValue({
|
this.form.patchValue({
|
||||||
layout: {
|
layout: {
|
||||||
width : 'fullwidth',
|
width : 'fullwidth',
|
||||||
navbar : {
|
navbar : {
|
||||||
background: 'mat-fuse-dark-700-bg',
|
primaryBackground : 'fuse-navy-700',
|
||||||
folded : false,
|
secondaryBackground: 'fuse-navy-900',
|
||||||
hidden : false,
|
folded : false,
|
||||||
position : 'left',
|
hidden : false,
|
||||||
layout : 'vertical-style-1'
|
position : 'left',
|
||||||
|
layout : 'vertical-style-1'
|
||||||
},
|
},
|
||||||
toolbar: {
|
toolbar : {
|
||||||
background: 'mat-white-500-bg',
|
background : 'fuse-white-500',
|
||||||
hidden : false,
|
customBackgroundColor: false,
|
||||||
position : 'above-static'
|
hidden : false,
|
||||||
|
position : 'above-static'
|
||||||
},
|
},
|
||||||
footer : {
|
footer : {
|
||||||
background: 'mat-fuse-dark-900-bg',
|
background : 'fuse-navy-900',
|
||||||
hidden : false,
|
customBackgroundColor: true,
|
||||||
position : 'above-static'
|
hidden : false,
|
||||||
|
position : 'above-static'
|
||||||
|
},
|
||||||
|
sidepanel: {
|
||||||
|
hidden : false,
|
||||||
|
position: 'right'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -260,23 +293,30 @@ export class FuseThemeOptionsComponent implements OnInit, OnDestroy
|
|||||||
{
|
{
|
||||||
this.form.patchValue({
|
this.form.patchValue({
|
||||||
layout: {
|
layout: {
|
||||||
width : 'fullwidth',
|
width : 'fullwidth',
|
||||||
navbar : {
|
navbar : {
|
||||||
background: 'mat-fuse-dark-700-bg',
|
primaryBackground : 'fuse-navy-700',
|
||||||
folded : false,
|
secondaryBackground: 'fuse-navy-900',
|
||||||
hidden : false,
|
folded : false,
|
||||||
position : 'top',
|
hidden : false,
|
||||||
variant : 'vertical-style-1'
|
position : 'top',
|
||||||
|
variant : 'vertical-style-1'
|
||||||
},
|
},
|
||||||
toolbar: {
|
toolbar : {
|
||||||
background: 'mat-white-500-bg',
|
background : 'fuse-white-500',
|
||||||
hidden : false,
|
customBackgroundColor: false,
|
||||||
position : 'above'
|
hidden : false,
|
||||||
|
position : 'above'
|
||||||
},
|
},
|
||||||
footer : {
|
footer : {
|
||||||
background: 'mat-fuse-dark-900-bg',
|
background : 'fuse-navy-900',
|
||||||
hidden : false,
|
customBackgroundColor: true,
|
||||||
position : 'above-fixed'
|
hidden : false,
|
||||||
|
position : 'above-fixed'
|
||||||
|
},
|
||||||
|
sidepanel: {
|
||||||
|
hidden : false,
|
||||||
|
position: 'right'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -299,5 +339,4 @@ export class FuseThemeOptionsComponent implements OnInit, OnDestroy
|
|||||||
{
|
{
|
||||||
this._fuseSidebarService.getSidebar(key).toggleOpen();
|
this._fuseSidebarService.getSidebar(key).toggleOpen();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,11 +2,13 @@ import { NgModule } from '@angular/core';
|
|||||||
import { CommonModule } from '@angular/common';
|
import { CommonModule } from '@angular/common';
|
||||||
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
||||||
import { FlexLayoutModule } from '@angular/flex-layout';
|
import { FlexLayoutModule } from '@angular/flex-layout';
|
||||||
import { MatButtonModule, MatDividerModule, MatFormFieldModule, MatIconModule, MatOptionModule, MatRadioModule, MatSelectModule, MatSlideToggleModule } from '@angular/material';
|
import {
|
||||||
|
MatButtonModule, MatCheckboxModule, MatDividerModule, MatFormFieldModule, MatIconModule, MatOptionModule, MatRadioModule, MatSelectModule, MatSlideToggleModule
|
||||||
|
} from '@angular/material';
|
||||||
|
|
||||||
import { FuseDirectivesModule } from '@fuse/directives/directives';
|
import { FuseDirectivesModule } from '@fuse/directives/directives';
|
||||||
import { FuseSidebarModule } from '@fuse/components/sidebar/sidebar.module';
|
|
||||||
import { FuseMaterialColorPickerModule } from '@fuse/components/material-color-picker/material-color-picker.module';
|
import { FuseMaterialColorPickerModule } from '@fuse/components/material-color-picker/material-color-picker.module';
|
||||||
|
import { FuseSidebarModule } from '@fuse/components/sidebar/sidebar.module';
|
||||||
|
|
||||||
import { FuseThemeOptionsComponent } from '@fuse/components/theme-options/theme-options.component';
|
import { FuseThemeOptionsComponent } from '@fuse/components/theme-options/theme-options.component';
|
||||||
|
|
||||||
@@ -22,6 +24,7 @@ import { FuseThemeOptionsComponent } from '@fuse/components/theme-options/theme-
|
|||||||
FlexLayoutModule,
|
FlexLayoutModule,
|
||||||
|
|
||||||
MatButtonModule,
|
MatButtonModule,
|
||||||
|
MatCheckboxModule,
|
||||||
MatDividerModule,
|
MatDividerModule,
|
||||||
MatFormFieldModule,
|
MatFormFieldModule,
|
||||||
MatIconModule,
|
MatIconModule,
|
||||||
|
|||||||
27
src/@fuse/components/theme-options/theme-options.theme.scss
Normal file
27
src/@fuse/components/theme-options/theme-options.theme.scss
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
@mixin fuse-theme-options-theme($theme) {
|
||||||
|
|
||||||
|
$background: map-get($theme, background);
|
||||||
|
$foreground: map-get($theme, foreground);
|
||||||
|
|
||||||
|
fuse-theme-options {
|
||||||
|
|
||||||
|
.theme-options-panel {
|
||||||
|
|
||||||
|
form {
|
||||||
|
|
||||||
|
.group {
|
||||||
|
border: 1px solid map-get($foreground, divider);
|
||||||
|
|
||||||
|
h2 {
|
||||||
|
background: map-get($background, background);
|
||||||
|
color: map-get($foreground, secondary-text);
|
||||||
|
}
|
||||||
|
|
||||||
|
h3 {
|
||||||
|
color: map-get($foreground, secondary-text);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
13
src/@fuse/components/widget/widget.theme.scss
Normal file
13
src/@fuse/components/widget/widget.theme.scss
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
@mixin fuse-widget-theme($theme) {
|
||||||
|
|
||||||
|
$background: map-get($theme, background);
|
||||||
|
$foreground: map-get($theme, foreground);
|
||||||
|
|
||||||
|
fuse-widget {
|
||||||
|
|
||||||
|
> .fuse-widget-front,
|
||||||
|
> .fuse-widget-back {
|
||||||
|
background: map-get($background, card);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -15,11 +15,11 @@ export class FuseMatSidenavHelperDirective implements OnInit, OnDestroy
|
|||||||
@HostBinding('class.mat-is-locked-open')
|
@HostBinding('class.mat-is-locked-open')
|
||||||
isLockedOpen: boolean;
|
isLockedOpen: boolean;
|
||||||
|
|
||||||
@Input('fuseMatSidenavHelper')
|
@Input()
|
||||||
id: string;
|
fuseMatSidenavHelper: string;
|
||||||
|
|
||||||
@Input('mat-is-locked-open')
|
@Input()
|
||||||
matIsLockedOpenBreakpoint: string;
|
matIsLockedOpen: string;
|
||||||
|
|
||||||
// Private
|
// Private
|
||||||
private _unsubscribeAll: Subject<any>;
|
private _unsubscribeAll: Subject<any>;
|
||||||
@@ -56,9 +56,9 @@ export class FuseMatSidenavHelperDirective implements OnInit, OnDestroy
|
|||||||
ngOnInit(): void
|
ngOnInit(): void
|
||||||
{
|
{
|
||||||
// Register the sidenav to the service
|
// Register the sidenav to the service
|
||||||
this._fuseMatSidenavHelperService.setSidenav(this.id, this._matSidenav);
|
this._fuseMatSidenavHelperService.setSidenav(this.fuseMatSidenavHelper, this._matSidenav);
|
||||||
|
|
||||||
if ( this._observableMedia.isActive(this.matIsLockedOpenBreakpoint) )
|
if ( this._observableMedia.isActive(this.matIsLockedOpen) )
|
||||||
{
|
{
|
||||||
this.isLockedOpen = true;
|
this.isLockedOpen = true;
|
||||||
this._matSidenav.mode = 'side';
|
this._matSidenav.mode = 'side';
|
||||||
@@ -74,7 +74,7 @@ export class FuseMatSidenavHelperDirective implements OnInit, OnDestroy
|
|||||||
this._fuseMatchMediaService.onMediaChange
|
this._fuseMatchMediaService.onMediaChange
|
||||||
.pipe(takeUntil(this._unsubscribeAll))
|
.pipe(takeUntil(this._unsubscribeAll))
|
||||||
.subscribe(() => {
|
.subscribe(() => {
|
||||||
if ( this._observableMedia.isActive(this.matIsLockedOpenBreakpoint) )
|
if ( this._observableMedia.isActive(this.matIsLockedOpen) )
|
||||||
{
|
{
|
||||||
this.isLockedOpen = true;
|
this.isLockedOpen = true;
|
||||||
this._matSidenav.mode = 'side';
|
this._matSidenav.mode = 'side';
|
||||||
@@ -105,8 +105,8 @@ export class FuseMatSidenavHelperDirective implements OnInit, OnDestroy
|
|||||||
})
|
})
|
||||||
export class FuseMatSidenavTogglerDirective
|
export class FuseMatSidenavTogglerDirective
|
||||||
{
|
{
|
||||||
@Input('fuseMatSidenavToggler')
|
@Input()
|
||||||
id;
|
fuseMatSidenavToggler: string;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
@@ -126,8 +126,8 @@ export class FuseMatSidenavTogglerDirective
|
|||||||
* On click
|
* On click
|
||||||
*/
|
*/
|
||||||
@HostListener('click')
|
@HostListener('click')
|
||||||
onClick()
|
onClick(): void
|
||||||
{
|
{
|
||||||
this._fuseMatSidenavHelperService.getSidenav(this.id).toggle();
|
this._fuseMatSidenavHelperService.getSidenav(this.fuseMatSidenavToggler).toggle();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ const black12 = 'rgba(black, 0.12)';
|
|||||||
const white12 = 'rgba(white, 0.12)';
|
const white12 = 'rgba(white, 0.12)';
|
||||||
const black6 = 'rgba(black, 0.06)';
|
const black6 = 'rgba(black, 0.06)';
|
||||||
const white6 = 'rgba(white, 0.06)';
|
const white6 = 'rgba(white, 0.06)';
|
||||||
|
|
||||||
const matColors = {
|
const matColors = {
|
||||||
'red': {
|
'red': {
|
||||||
50 : '#ffebee',
|
50 : '#ffebee',
|
||||||
@@ -635,7 +636,8 @@ const matColors = {
|
|||||||
A700: white87
|
A700: white87
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
'fuse-dark': {
|
|
||||||
|
'fuse-navy': {
|
||||||
50 : '#ECECEE',
|
50 : '#ECECEE',
|
||||||
100 : '#C5C6CB',
|
100 : '#C5C6CB',
|
||||||
200 : '#9EA1A9',
|
200 : '#9EA1A9',
|
||||||
@@ -667,13 +669,15 @@ const matColors = {
|
|||||||
A700: white87
|
A700: white87
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
white : {
|
|
||||||
|
'fuse-white': {
|
||||||
500 : 'white',
|
500 : 'white',
|
||||||
contrast: {
|
contrast: {
|
||||||
500: black87
|
500: black87
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
black : {
|
|
||||||
|
'fuse-black': {
|
||||||
500 : 'black',
|
500 : 'black',
|
||||||
contrast: {
|
contrast: {
|
||||||
500: 'white'
|
500: 'white'
|
||||||
@@ -683,7 +687,23 @@ const matColors = {
|
|||||||
|
|
||||||
// tslint:disable-next-line
|
// tslint:disable-next-line
|
||||||
const matPresetColors = [
|
const matPresetColors = [
|
||||||
'#ffebee', '#ffcdd2', '#ef9a9a', '#e57373', '#ef5350', '#f44336', '#e53935', '#d32f2f', '#c62828', '#b71c1c', '#ff8a80', '#ff5252', '#ff1744', '#d50000', '#fce4ec', '#f8bbd0', '#f48fb1', '#f06292', '#ec407a', '#e91e63', '#d81b60', '#c2185b', '#ad1457', '#880e4f', '#ff80ab', '#ff4081', '#f50057', '#c51162', '#f3e5f5', '#e1bee7', '#ce93d8', '#ba68c8', '#ab47bc', '#9c27b0', '#8e24aa', '#7b1fa2', '#6a1b9a', '#4a148c', '#ea80fc', '#e040fb', '#d500f9', '#aa00ff', '#ede7f6', '#d1c4e9', '#b39ddb', '#9575cd', '#7e57c2', '#673ab7', '#5e35b1', '#512da8', '#4527a0', '#311b92', '#b388ff', '#7c4dff', '#651fff', '#6200ea', '#e8eaf6', '#c5cae9', '#9fa8da', '#7986cb', '#5c6bc0', '#3f51b5', '#3949ab', '#303f9f', '#283593', '#1a237e', '#8c9eff', '#536dfe', '#3d5afe', '#304ffe', '#e3f2fd', '#bbdefb', '#90caf9', '#64b5f6', '#42a5f5', '#2196f3', '#1e88e5', '#1976d2', '#1565c0', '#0d47a1', '#82b1ff', '#448aff', '#2979ff', '#2962ff', '#e1f5fe', '#b3e5fc', '#81d4fa', '#4fc3f7', '#29b6f6', '#03a9f4', '#039be5', '#0288d1', '#0277bd', '#01579b', '#80d8ff', '#40c4ff', '#00b0ff', '#0091ea', '#e0f7fa', '#b2ebf2', '#80deea', '#4dd0e1', '#26c6da', '#00bcd4', '#00acc1', '#0097a7', '#00838f', '#006064', '#84ffff', '#18ffff', '#00e5ff', '#00b8d4', '#e0f2f1', '#b2dfdb', '#80cbc4', '#4db6ac', '#26a69a', '#009688', '#00897b', '#00796b', '#00695c', '#004d40', '#a7ffeb', '#64ffda', '#1de9b6', '#00bfa5', '#e8f5e9', '#c8e6c9', '#a5d6a7', '#81c784', '#66bb6a', '#4caf50', '#43a047', '#388e3c', '#2e7d32', '#1b5e20', '#b9f6ca', '#69f0ae', '#00e676', '#00c853', '#f1f8e9', '#dcedc8', '#c5e1a5', '#aed581', '#9ccc65', '#8bc34a', '#7cb342', '#689f38', '#558b2f', '#33691e', '#ccff90', '#b2ff59', '#76ff03', '#64dd17', '#f9fbe7', '#f0f4c3', '#e6ee9c', '#dce775', '#d4e157', '#cddc39', '#c0ca33', '#afb42b', '#9e9d24', '#827717', '#f4ff81', '#eeff41', '#c6ff00', '#aeea00', '#fffde7', '#fff9c4', '#fff59d', '#fff176', '#ffee58', '#ffeb3b', '#fdd835', '#fbc02d', '#f9a825', '#f57f17', '#ffff8d', '#ffff00', '#ffea00', '#ffd600', '#fff8e1', '#ffecb3', '#ffe082', '#ffd54f', '#ffca28', '#ffc107', '#ffb300', '#ffa000', '#ff8f00', '#ff6f00', '#ffe57f', '#ffd740', '#ffc400', '#ffab00', '#fff3e0', '#ffe0b2', '#ffcc80', '#ffb74d', '#ffa726', '#ff9800', '#fb8c00', '#f57c00', '#ef6c00', '#e65100', '#ffd180', '#ffab40', '#ff9100', '#ff6d00', '#fbe9e7', '#ffccbc', '#ffab91', '#ff8a65', '#ff7043', '#ff5722', '#f4511e', '#e64a19', '#d84315', '#bf360c', '#ff9e80', '#ff6e40', '#ff3d00', '#dd2c00', '#efebe9', '#d7ccc8', '#bcaaa4', '#a1887f', '#8d6e63', '#795548', '#6d4c41', '#5d4037', '#4e342e', '#3e2723', '#d7ccc8', '#bcaaa4', '#8d6e63', '#5d4037', '#fafafa', '#f5f5f5', '#eeeeee', '#e0e0e0', '#bdbdbd', '#9e9e9e', '#757575', '#616161', '#424242', '#212121', '#ffffff', '#eeeeee', '#bdbdbd', '#616161', '#eceff1', '#cfd8dc', '#b0bec5', '#90a4ae', '#78909c', '#607d8b', '#546e7a', '#455a64', '#37474f', '#263238', '#cfd8dc', '#b0bec5', '#78909c', '#455a64'
|
'#ffebee', '#ffcdd2', '#ef9a9a', '#e57373', '#ef5350', '#f44336', '#e53935', '#d32f2f', '#c62828', '#b71c1c', '#ff8a80', '#ff5252', '#ff1744', '#d50000', '#fce4ec', '#f8bbd0',
|
||||||
|
'#f48fb1', '#f06292', '#ec407a', '#e91e63', '#d81b60', '#c2185b', '#ad1457', '#880e4f', '#ff80ab', '#ff4081', '#f50057', '#c51162', '#f3e5f5', '#e1bee7', '#ce93d8', '#ba68c8',
|
||||||
|
'#ab47bc', '#9c27b0', '#8e24aa', '#7b1fa2', '#6a1b9a', '#4a148c', '#ea80fc', '#e040fb', '#d500f9', '#aa00ff', '#ede7f6', '#d1c4e9', '#b39ddb', '#9575cd', '#7e57c2', '#673ab7',
|
||||||
|
'#5e35b1', '#512da8', '#4527a0', '#311b92', '#b388ff', '#7c4dff', '#651fff', '#6200ea', '#e8eaf6', '#c5cae9', '#9fa8da', '#7986cb', '#5c6bc0', '#3f51b5', '#3949ab', '#303f9f',
|
||||||
|
'#283593', '#1a237e', '#8c9eff', '#536dfe', '#3d5afe', '#304ffe', '#e3f2fd', '#bbdefb', '#90caf9', '#64b5f6', '#42a5f5', '#2196f3', '#1e88e5', '#1976d2', '#1565c0', '#0d47a1',
|
||||||
|
'#82b1ff', '#448aff', '#2979ff', '#2962ff', '#e1f5fe', '#b3e5fc', '#81d4fa', '#4fc3f7', '#29b6f6', '#03a9f4', '#039be5', '#0288d1', '#0277bd', '#01579b', '#80d8ff', '#40c4ff',
|
||||||
|
'#00b0ff', '#0091ea', '#e0f7fa', '#b2ebf2', '#80deea', '#4dd0e1', '#26c6da', '#00bcd4', '#00acc1', '#0097a7', '#00838f', '#006064', '#84ffff', '#18ffff', '#00e5ff', '#00b8d4',
|
||||||
|
'#e0f2f1', '#b2dfdb', '#80cbc4', '#4db6ac', '#26a69a', '#009688', '#00897b', '#00796b', '#00695c', '#004d40', '#a7ffeb', '#64ffda', '#1de9b6', '#00bfa5', '#e8f5e9', '#c8e6c9',
|
||||||
|
'#a5d6a7', '#81c784', '#66bb6a', '#4caf50', '#43a047', '#388e3c', '#2e7d32', '#1b5e20', '#b9f6ca', '#69f0ae', '#00e676', '#00c853', '#f1f8e9', '#dcedc8', '#c5e1a5', '#aed581',
|
||||||
|
'#9ccc65', '#8bc34a', '#7cb342', '#689f38', '#558b2f', '#33691e', '#ccff90', '#b2ff59', '#76ff03', '#64dd17', '#f9fbe7', '#f0f4c3', '#e6ee9c', '#dce775', '#d4e157', '#cddc39',
|
||||||
|
'#c0ca33', '#afb42b', '#9e9d24', '#827717', '#f4ff81', '#eeff41', '#c6ff00', '#aeea00', '#fffde7', '#fff9c4', '#fff59d', '#fff176', '#ffee58', '#ffeb3b', '#fdd835', '#fbc02d',
|
||||||
|
'#f9a825', '#f57f17', '#ffff8d', '#ffff00', '#ffea00', '#ffd600', '#fff8e1', '#ffecb3', '#ffe082', '#ffd54f', '#ffca28', '#ffc107', '#ffb300', '#ffa000', '#ff8f00', '#ff6f00',
|
||||||
|
'#ffe57f', '#ffd740', '#ffc400', '#ffab00', '#fff3e0', '#ffe0b2', '#ffcc80', '#ffb74d', '#ffa726', '#ff9800', '#fb8c00', '#f57c00', '#ef6c00', '#e65100', '#ffd180', '#ffab40',
|
||||||
|
'#ff9100', '#ff6d00', '#fbe9e7', '#ffccbc', '#ffab91', '#ff8a65', '#ff7043', '#ff5722', '#f4511e', '#e64a19', '#d84315', '#bf360c', '#ff9e80', '#ff6e40', '#ff3d00', '#dd2c00',
|
||||||
|
'#efebe9', '#d7ccc8', '#bcaaa4', '#a1887f', '#8d6e63', '#795548', '#6d4c41', '#5d4037', '#4e342e', '#3e2723', '#d7ccc8', '#bcaaa4', '#8d6e63', '#5d4037', '#fafafa', '#f5f5f5',
|
||||||
|
'#eeeeee', '#e0e0e0', '#bdbdbd', '#9e9e9e', '#757575', '#616161', '#424242', '#212121', '#ffffff', '#eeeeee', '#bdbdbd', '#616161', '#eceff1', '#cfd8dc', '#b0bec5', '#90a4ae',
|
||||||
|
'#78909c', '#607d8b', '#546e7a', '#455a64', '#37474f', '#263238', '#cfd8dc', '#b0bec5', '#78909c', '#455a64'
|
||||||
];
|
];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -693,15 +713,15 @@ const matPresetColors = [
|
|||||||
export class MatColors
|
export class MatColors
|
||||||
{
|
{
|
||||||
public static all = matColors;
|
public static all = matColors;
|
||||||
|
|
||||||
public static presets = matPresetColors;
|
public static presets = matPresetColors;
|
||||||
|
|
||||||
public static getColor(colorName)
|
public static getColor(colorName): any
|
||||||
{
|
{
|
||||||
if ( matColors[colorName] )
|
if ( matColors[colorName] )
|
||||||
{
|
{
|
||||||
return matColors[colorName];
|
return matColors[colorName];
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,15 +10,12 @@
|
|||||||
// Fuse
|
// Fuse
|
||||||
@import "fuse";
|
@import "fuse";
|
||||||
|
|
||||||
|
// Theme
|
||||||
|
@import "theme";
|
||||||
|
|
||||||
// Include core Angular Material styles
|
// Include core Angular Material styles
|
||||||
@include mat-core();
|
@include mat-core();
|
||||||
|
|
||||||
// Setup the typography
|
|
||||||
@include angular-material-typography($typography);
|
|
||||||
|
|
||||||
// Create an Angular Material theme from the $theme map
|
|
||||||
@include angular-material-theme($theme);
|
|
||||||
|
|
||||||
// Partials
|
// Partials
|
||||||
@import "partials/reset";
|
@import "partials/reset";
|
||||||
@import "partials/normalize";
|
@import "partials/normalize";
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
// Material theming
|
// Material theming tools
|
||||||
@import "theming";
|
@import '~@angular/material/theming';
|
||||||
|
|
||||||
// Breakpoint mixins
|
// Breakpoint mixins
|
||||||
@import "mixins/breakpoints";
|
@import "mixins/breakpoints";
|
||||||
@@ -25,7 +25,7 @@ $grid-breakpoints: (
|
|||||||
|
|
||||||
@mixin media-breakpoint($breakpointName) {
|
@mixin media-breakpoint($breakpointName) {
|
||||||
|
|
||||||
$mediaQuery: map_get($breakpoints, $breakpointName);
|
$mediaQuery: map-get($breakpoints, $breakpointName);
|
||||||
|
|
||||||
@if ($mediaQuery != null) {
|
@if ($mediaQuery != null) {
|
||||||
|
|
||||||
|
|||||||
@@ -6,11 +6,12 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Fix: "Inconsistent font sizes across elements"
|
// Fix: "Smooth scrolling for iOS"
|
||||||
.mat-form-field-wrapper {
|
.mat-dialog-container {
|
||||||
font-size: 16px;
|
-webkit-overflow-scrolling: touch;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Fix: "Inconsistent font sizes across elements"
|
||||||
.mat-checkbox {
|
.mat-checkbox {
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
}
|
}
|
||||||
@@ -29,7 +30,7 @@
|
|||||||
background-color: rgba(0, 0, 0, 0.12);
|
background-color: rgba(0, 0, 0, 0.12);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Fix: "Some idiots using table-cell and inline-table in mat-select"
|
// Fix: "Table-cell and inline-table in mat-select"
|
||||||
.mat-form-field {
|
.mat-form-field {
|
||||||
|
|
||||||
&.mat-form-field-type-mat-select {
|
&.mat-form-field-type-mat-select {
|
||||||
|
|||||||
@@ -1,7 +1,26 @@
|
|||||||
|
// -----------------------------------------------------------------------------------------------------
|
||||||
|
// @ Theming
|
||||||
|
// -----------------------------------------------------------------------------------------------------
|
||||||
|
@mixin cards-theme($theme) {
|
||||||
|
|
||||||
|
$background: map-get($theme, background);
|
||||||
|
$foreground: map-get($theme, foreground);
|
||||||
|
|
||||||
|
.fuse-card {
|
||||||
|
background: map-get($background, card);
|
||||||
|
|
||||||
|
.card-divider {
|
||||||
|
border-top: 1px solid map-get($foreground, divider);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// -----------------------------------------------------------------------------------------------------
|
||||||
|
// @ Cards
|
||||||
|
// -----------------------------------------------------------------------------------------------------
|
||||||
.fuse-card {
|
.fuse-card {
|
||||||
max-width: 320px;
|
max-width: 320px;
|
||||||
min-width: 320px;
|
min-width: 320px;
|
||||||
background: white;
|
|
||||||
border-radius: 2px;
|
border-radius: 2px;
|
||||||
@include mat-elevation(2);
|
@include mat-elevation(2);
|
||||||
|
|
||||||
@@ -37,13 +56,8 @@
|
|||||||
|
|
||||||
// Divider
|
// Divider
|
||||||
.card-divider {
|
.card-divider {
|
||||||
border-top: 1px solid rgba(0, 0, 0, 0.12);
|
|
||||||
margin: 16px;
|
margin: 16px;
|
||||||
|
|
||||||
&.light {
|
|
||||||
border-top-color: rgba(255, 255, 255, 0.12);
|
|
||||||
}
|
|
||||||
|
|
||||||
&.full-width {
|
&.full-width {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,23 +1,52 @@
|
|||||||
.secondary-text,
|
// -----------------------------------------------------------------------------------------------------
|
||||||
.icon,
|
// @ Theming
|
||||||
i {
|
// -----------------------------------------------------------------------------------------------------
|
||||||
color: rgba(0, 0, 0, 0.54);
|
@mixin colors-theme($theme) {
|
||||||
|
|
||||||
|
$is-dark: map-get($theme, is-dark);
|
||||||
|
$background: map-get($theme, background);
|
||||||
|
$foreground: map-get($theme, foreground);
|
||||||
|
|
||||||
|
// Base colors
|
||||||
|
& {
|
||||||
|
color: map-get($foreground, text);
|
||||||
|
|
||||||
|
// If it's a light theme, use a darker background
|
||||||
|
// color other than the default #fafafa
|
||||||
|
@if ($is-dark) {
|
||||||
|
background: map-get($background, background);
|
||||||
|
} @else {
|
||||||
|
background: #F5F5F5;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.secondary-text {
|
||||||
|
color: map-get($foreground, secondary-text);
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon,
|
||||||
|
i {
|
||||||
|
color: map-get($foreground, icon);
|
||||||
|
}
|
||||||
|
|
||||||
|
.hint-text {
|
||||||
|
color: map-get($foreground, hint-text);
|
||||||
|
}
|
||||||
|
|
||||||
|
.disabled-text {
|
||||||
|
color: map-get($foreground, disabled-text);
|
||||||
|
}
|
||||||
|
|
||||||
|
.fade-text,
|
||||||
|
.divider {
|
||||||
|
color: map-get($foreground, divider);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.hint-text,
|
// -----------------------------------------------------------------------------------------------------
|
||||||
.disabled-text {
|
// @ Material colors map
|
||||||
color: rgba(0, 0, 0, 0.38);
|
// -----------------------------------------------------------------------------------------------------
|
||||||
}
|
|
||||||
|
|
||||||
.divider {
|
|
||||||
color: rgba(0, 0, 0, 0.12);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Material colors map
|
|
||||||
$matPalettes: (
|
$matPalettes: (
|
||||||
primary: $primary,
|
|
||||||
accent: $accent,
|
|
||||||
warn: $warn,
|
|
||||||
red: $mat-red,
|
red: $mat-red,
|
||||||
pink: $mat-pink,
|
pink: $mat-pink,
|
||||||
purple: $mat-purple,
|
purple: $mat-purple,
|
||||||
@@ -36,17 +65,16 @@ $matPalettes: (
|
|||||||
deep-orange: $mat-deep-orange,
|
deep-orange: $mat-deep-orange,
|
||||||
brown: $mat-brown,
|
brown: $mat-brown,
|
||||||
grey: $mat-grey,
|
grey: $mat-grey,
|
||||||
blue-grey: $mat-blue-grey,
|
blue-grey: $mat-blue-grey
|
||||||
white: $mat-white,
|
|
||||||
black: $mat-black,
|
|
||||||
fuse-dark: $mat-fusedark
|
|
||||||
);
|
);
|
||||||
|
|
||||||
// Material color hues list
|
// Material color hues list
|
||||||
$matHues: 50, 100, 200, 300, 400, 500, 600, 700, 800, 900, A100, A200, A400, A700;
|
$matHues: 50, 100, 200, 300, 400, 500, 600, 700, 800, 900, A100, A200, A400, A700;
|
||||||
|
|
||||||
// Text color levels generator mixin
|
// -----------------------------------------------------------------------------------------------------
|
||||||
@mixin generateTextColorLevels($classes, $contrast) {
|
// @ Text color levels generator
|
||||||
|
// -----------------------------------------------------------------------------------------------------
|
||||||
|
@mixin generate-text-color-levels($classes, $contrast) {
|
||||||
|
|
||||||
// If the contrast is dark...
|
// If the contrast is dark...
|
||||||
@if ($contrast == 'dark') {
|
@if ($contrast == 'dark') {
|
||||||
@@ -125,7 +153,10 @@ $matHues: 50, 100, 200, 300, 400, 500, 600, 700, 800, 900, A100, A200, A400, A70
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@mixin generateMaterialElementColors($classes, $contrast) {
|
// -----------------------------------------------------------------------------------------------------
|
||||||
|
// @ Material element colors generator
|
||||||
|
// -----------------------------------------------------------------------------------------------------
|
||||||
|
@mixin generate-material-element-colors($classes, $contrast) {
|
||||||
|
|
||||||
// If the contrast color is light...
|
// If the contrast color is light...
|
||||||
$fuseForeground: (
|
$fuseForeground: (
|
||||||
@@ -150,53 +181,55 @@ $matHues: 50, 100, 200, 300, 400, 500, 600, 700, 800, 900, A100, A200, A400, A70
|
|||||||
|
|
||||||
// Native Input
|
// Native Input
|
||||||
input[type="text"] {
|
input[type="text"] {
|
||||||
color: map_get($fuseForeground, base);
|
color: map-get($fuseForeground, base);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Input
|
// Input
|
||||||
.mat-form-field-label {
|
.mat-form-field-label {
|
||||||
color: map_get($fuseForeground, hint-text);
|
color: map-get($fuseForeground, hint-text);
|
||||||
}
|
}
|
||||||
|
|
||||||
.mat-form-field-underline {
|
.mat-form-field-underline {
|
||||||
background-color: map_get($fuseForeground, divider);
|
background-color: map-get($fuseForeground, divider);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Select
|
// Select
|
||||||
.mat-select-trigger,
|
.mat-select-trigger,
|
||||||
.mat-select-arrow {
|
.mat-select-arrow {
|
||||||
color: map_get($fuseForeground, hint-text);
|
color: map-get($fuseForeground, hint-text);
|
||||||
}
|
}
|
||||||
|
|
||||||
.mat-select-underline {
|
.mat-select-underline {
|
||||||
background-color: map_get($fuseForeground, divider);
|
background-color: map-get($fuseForeground, divider);
|
||||||
}
|
}
|
||||||
|
|
||||||
.mat-select-disabled .mat-select-value,
|
.mat-select-disabled .mat-select-value,
|
||||||
.mat-select-arrow,
|
.mat-select-arrow,
|
||||||
.mat-select-trigger {
|
.mat-select-trigger {
|
||||||
color: map_get($fuseForeground, hint-text);
|
color: map-get($fuseForeground, hint-text);
|
||||||
}
|
}
|
||||||
|
|
||||||
.mat-select-content,
|
.mat-select-content,
|
||||||
.mat-select-panel-done-animating {
|
.mat-select-panel-done-animating {
|
||||||
background: map_get($background, card);
|
//background: map-get($background, card);
|
||||||
}
|
}
|
||||||
|
|
||||||
.mat-select-value {
|
.mat-select-value {
|
||||||
color: map_get($fuseForeground, text);
|
color: map-get($fuseForeground, text);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Color classes generator mixin
|
// -----------------------------------------------------------------------------------------------------
|
||||||
@mixin generateColorClasses($colorName, $color, $contrastColor, $hue) {
|
// @ Color classes generator
|
||||||
|
// -----------------------------------------------------------------------------------------------------
|
||||||
|
@mixin generate-color-classes($colorName, $color, $contrastColor, $hue) {
|
||||||
|
|
||||||
.#{$colorName}#{$hue}-bg {
|
.#{$colorName}#{$hue}-bg {
|
||||||
background-color: $color !important;
|
background-color: $color !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mat-#{$colorName}#{$hue}-bg {
|
.#{$colorName}#{$hue} {
|
||||||
background-color: $color !important;
|
background-color: $color !important;
|
||||||
color: $contrastColor !important;
|
color: $contrastColor !important;
|
||||||
|
|
||||||
@@ -231,13 +264,10 @@ $matHues: 50, 100, 200, 300, 400, 500, 600, 700, 800, 900, A100, A200, A400, A70
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@mixin generateFuseColorClasses($primary, $accent, $warn) {
|
// -----------------------------------------------------------------------------------------------------
|
||||||
|
// @ Fuse color classes
|
||||||
$palettes: (
|
// -----------------------------------------------------------------------------------------------------
|
||||||
primary: $primary,
|
@mixin fuse-color-classes($palettes) {
|
||||||
accent: $accent,
|
|
||||||
warn: $warn
|
|
||||||
);
|
|
||||||
|
|
||||||
// Define contrast lists
|
// Define contrast lists
|
||||||
$light-contrasting-classes: ();
|
$light-contrasting-classes: ();
|
||||||
@@ -258,101 +288,74 @@ $matHues: 50, 100, 200, 300, 400, 500, 600, 700, 800, 900, A100, A200, A400, A70
|
|||||||
@if ($color != null and $contrast != null) {
|
@if ($color != null and $contrast != null) {
|
||||||
|
|
||||||
// Generate color classes
|
// Generate color classes
|
||||||
@include generateColorClasses($paletteName, $color, $contrast, '-#{$hue}');
|
@include generate-color-classes($paletteName, $color, $contrast, '-#{$hue}');
|
||||||
|
|
||||||
// If the contrast color is dark
|
// If the contrast color is dark
|
||||||
@if (rgba(black, 1) == rgba($contrast, 1)) {
|
@if (rgba(black, 1) == rgba($contrast, 1)) {
|
||||||
$dark-contrasting-classes: append($dark-contrasting-classes, unquote('.mat-#{$paletteName}-#{$hue}-bg'), 'comma');
|
$dark-contrasting-classes: append($dark-contrasting-classes, unquote('.#{$paletteName}-#{$hue}'), 'comma');
|
||||||
}
|
}
|
||||||
// if the contrast color is light
|
// if the contrast color is light
|
||||||
@else {
|
@else {
|
||||||
$light-contrasting-classes: append($light-contrasting-classes, unquote('.mat-#{$paletteName}-#{$hue}-bg'), 'comma');
|
$light-contrasting-classes: append($light-contrasting-classes, unquote('.#{$paletteName}-#{$hue}'), 'comma');
|
||||||
}
|
}
|
||||||
|
|
||||||
// Run the generator one more time for default values (500)
|
// Run the generator one more time for default values (500)
|
||||||
@if ($hue == 500) {
|
// if we are not working with primary, accent or warn palettes
|
||||||
|
@if ($hue == 500 and $paletteName != 'primary' and $paletteName != 'accent' and $paletteName != 'warn') {
|
||||||
|
|
||||||
// Generate color classes
|
// Generate color classes
|
||||||
@include generateColorClasses($paletteName, $color, $contrast, '');
|
@include generate-color-classes($paletteName, $color, $contrast, '');
|
||||||
|
|
||||||
// Add color to the correct list depending on the contrasting color
|
// Add color to the correct list depending on the contrasting color
|
||||||
|
|
||||||
// If the contrast color is dark
|
// If the contrast color is dark
|
||||||
@if (rgba(black, 1) == rgba($contrast, 1)) {
|
@if (rgba(black, 1) == rgba($contrast, 1)) {
|
||||||
$dark-contrasting-classes: append($dark-contrasting-classes, unquote('.mat-#{$paletteName}-bg'), 'comma');
|
$dark-contrasting-classes: append($dark-contrasting-classes, unquote('.#{$paletteName}'), 'comma');
|
||||||
}
|
}
|
||||||
// if the contrast color is light
|
// if the contrast color is light
|
||||||
@else {
|
@else {
|
||||||
$light-contrasting-classes: append($light-contrasting-classes, unquote('.mat-#{$paletteName}-bg'), 'comma');
|
$light-contrasting-classes: append($light-contrasting-classes, unquote('.#{$paletteName}'), 'comma');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
// Generate contrasting colors
|
// Run the generator again for the selected default hue values for
|
||||||
@include generateTextColorLevels($dark-contrasting-classes, 'dark');
|
// primary, accent and warn palettes
|
||||||
@include generateTextColorLevels($light-contrasting-classes, 'light');
|
//
|
||||||
@include generateMaterialElementColors($dark-contrasting-classes, 'dark');
|
// We are doing this because the default hue value can be changed
|
||||||
@include generateMaterialElementColors($light-contrasting-classes, 'light');
|
// by the user when the Material theme being generated.
|
||||||
}
|
@if ($paletteName == 'primary' or $paletteName == 'accent' or $paletteName == 'warn') {
|
||||||
|
|
||||||
// Generate the color classes...
|
// Get the color and the contrasting color for the selected
|
||||||
|
// default hue
|
||||||
// Define contrast lists
|
$color: map-get($palette, 'default');
|
||||||
$light-contrasting-classes: ();
|
$contrast: map-get($palette, 'default-contrast');
|
||||||
$dark-contrasting-classes: ();
|
|
||||||
|
|
||||||
@each $paletteName, $palette in $matPalettes {
|
|
||||||
|
|
||||||
// Get the contrasts map
|
|
||||||
$contrasts: map-get($palette, 'contrast');
|
|
||||||
|
|
||||||
@each $hue in $matHues {
|
|
||||||
|
|
||||||
// Get the color and the contrasting color
|
|
||||||
$color: map-get($palette, $hue);
|
|
||||||
$contrast: map-get($contrasts, $hue);
|
|
||||||
|
|
||||||
@if ($color != null and $contrast != null) {
|
|
||||||
|
|
||||||
// Generate color classes
|
// Generate color classes
|
||||||
@include generateColorClasses($paletteName, $color, $contrast, '-#{$hue}');
|
@include generate-color-classes($paletteName, $color, $contrast, '');
|
||||||
|
|
||||||
// Add color to the correct list depending on the contrasting color
|
// Add color to the correct list depending on the contrasting color
|
||||||
|
|
||||||
// If the contrast color is dark
|
// If the contrast color is dark
|
||||||
@if (rgba(black, 1) == rgba($contrast, 1)) {
|
@if (rgba(black, 1) == rgba($contrast, 1)) {
|
||||||
$dark-contrasting-classes: append($dark-contrasting-classes, unquote('.mat-#{$paletteName}-#{$hue}-bg'), 'comma');
|
$dark-contrasting-classes: append($dark-contrasting-classes, unquote('.#{$paletteName}'), 'comma');
|
||||||
}
|
}
|
||||||
// if the contrast color is light
|
// if the contrast color is light
|
||||||
@else {
|
@else {
|
||||||
$light-contrasting-classes: append($light-contrasting-classes, unquote('.mat-#{$paletteName}-#{$hue}-bg'), 'comma');
|
$light-contrasting-classes: append($light-contrasting-classes, unquote('.#{$paletteName}'), 'comma');
|
||||||
}
|
|
||||||
|
|
||||||
// Run the generator one more time for default values (500)
|
|
||||||
@if ($hue == 500) {
|
|
||||||
|
|
||||||
// Generate color classes
|
|
||||||
@include generateColorClasses($paletteName, $color, $contrast, '');
|
|
||||||
|
|
||||||
// Add color to the correct list depending on the contrasting color
|
|
||||||
|
|
||||||
// If the contrast color is dark
|
|
||||||
@if (rgba(black, 1) == rgba($contrast, 1)) {
|
|
||||||
$dark-contrasting-classes: append($dark-contrasting-classes, unquote('.mat-#{$paletteName}-bg'), 'comma');
|
|
||||||
}
|
|
||||||
// if the contrast color is light
|
|
||||||
@else {
|
|
||||||
$light-contrasting-classes: append($light-contrasting-classes, unquote('.mat-#{$paletteName}-bg'), 'comma');
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Generate contrasting colors
|
||||||
|
@include generate-text-color-levels($dark-contrasting-classes, 'dark');
|
||||||
|
@include generate-text-color-levels($light-contrasting-classes, 'light');
|
||||||
|
@include generate-material-element-colors($dark-contrasting-classes, 'dark');
|
||||||
|
@include generate-material-element-colors($light-contrasting-classes, 'light');
|
||||||
}
|
}
|
||||||
|
|
||||||
// Generate contrasting colors
|
// -----------------------------------------------------------------------------------------------------
|
||||||
@include generateTextColorLevels($dark-contrasting-classes, 'dark');
|
// @ Generate Fuse color classes for default Material palettes
|
||||||
@include generateTextColorLevels($light-contrasting-classes, 'light');
|
// -----------------------------------------------------------------------------------------------------
|
||||||
@include generateMaterialElementColors($dark-contrasting-classes, 'dark');
|
@include fuse-color-classes($matPalettes);
|
||||||
@include generateMaterialElementColors($light-contrasting-classes, 'light');
|
|
||||||
|
|||||||
@@ -9,5 +9,15 @@ body {
|
|||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
background: #F5F5F5;
|
}
|
||||||
|
|
||||||
|
body {
|
||||||
|
|
||||||
|
// Boxed
|
||||||
|
&.boxed {
|
||||||
|
max-width: 1200px;
|
||||||
|
margin: 0 auto;
|
||||||
|
|
||||||
|
@include mat-elevation(8);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
// ######################
|
// -----------------------------------------------------------------------------------------------------
|
||||||
// POSITION HELPERS
|
// @ Position helpers
|
||||||
// ######################
|
// -----------------------------------------------------------------------------------------------------
|
||||||
@each $breakpoint in map-keys($grid-breakpoints) {
|
@each $breakpoint in map-keys($grid-breakpoints) {
|
||||||
|
|
||||||
@include media-breakpoint-up($breakpoint) {
|
@include media-breakpoint-up($breakpoint) {
|
||||||
@@ -21,9 +21,9 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// ####################################
|
// -----------------------------------------------------------------------------------------------------
|
||||||
// ABSOLUTE POSITION ALIGNMENT HELPERS
|
// @ Absolute position alignment helpers
|
||||||
// ####################################
|
// -----------------------------------------------------------------------------------------------------
|
||||||
@each $breakpoint in map-keys($grid-breakpoints) {
|
@each $breakpoint in map-keys($grid-breakpoints) {
|
||||||
|
|
||||||
@include media-breakpoint-up($breakpoint) {
|
@include media-breakpoint-up($breakpoint) {
|
||||||
@@ -48,9 +48,9 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// ######################
|
// -----------------------------------------------------------------------------------------------------
|
||||||
// SIZE HELPERS
|
// @ Size helpers
|
||||||
// ######################
|
// -----------------------------------------------------------------------------------------------------
|
||||||
@each $prop, $abbrev in (height: h, width: w) {
|
@each $prop, $abbrev in (height: h, width: w) {
|
||||||
|
|
||||||
@for $index from 0 through 180 {
|
@for $index from 0 through 180 {
|
||||||
@@ -75,9 +75,9 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// ######################
|
// -----------------------------------------------------------------------------------------------------
|
||||||
// SPACING HELPERS
|
// @ Spacing helpers
|
||||||
// ######################
|
// -----------------------------------------------------------------------------------------------------
|
||||||
@each $breakpoint in map-keys($grid-breakpoints) {
|
@each $breakpoint in map-keys($grid-breakpoints) {
|
||||||
|
|
||||||
@include media-breakpoint-up($breakpoint) {
|
@include media-breakpoint-up($breakpoint) {
|
||||||
@@ -168,9 +168,9 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// ######################
|
// -----------------------------------------------------------------------------------------------------
|
||||||
// BORDER HELPERS
|
// @ Border helpers
|
||||||
// ######################
|
// -----------------------------------------------------------------------------------------------------
|
||||||
$border-style: 1px solid rgba(0, 0, 0, 0.12);
|
$border-style: 1px solid rgba(0, 0, 0, 0.12);
|
||||||
|
|
||||||
.border,
|
.border,
|
||||||
@@ -199,7 +199,7 @@ $border-style: 1px solid rgba(0, 0, 0, 0.12);
|
|||||||
}
|
}
|
||||||
|
|
||||||
.border-horizontal,
|
.border-horizontal,
|
||||||
.b-x {
|
.bx {
|
||||||
border-left: $border-style;
|
border-left: $border-style;
|
||||||
border-right: $border-style;
|
border-right: $border-style;
|
||||||
}
|
}
|
||||||
@@ -210,9 +210,9 @@ $border-style: 1px solid rgba(0, 0, 0, 0.12);
|
|||||||
border-bottom: $border-style;
|
border-bottom: $border-style;
|
||||||
}
|
}
|
||||||
|
|
||||||
// ######################
|
// -----------------------------------------------------------------------------------------------------
|
||||||
// BORDER RADIUS HELPERS
|
// @ Border radius helpers
|
||||||
// ######################
|
// -----------------------------------------------------------------------------------------------------
|
||||||
.border-radius-100 {
|
.border-radius-100 {
|
||||||
border-radius: 100%;
|
border-radius: 100%;
|
||||||
}
|
}
|
||||||
@@ -233,9 +233,9 @@ $border-style: 1px solid rgba(0, 0, 0, 0.12);
|
|||||||
border-radius: 16px;
|
border-radius: 16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
// ######################
|
// -----------------------------------------------------------------------------------------------------
|
||||||
// CURSOR HELPERS
|
// @ Cursor helpers
|
||||||
// ######################
|
// -----------------------------------------------------------------------------------------------------
|
||||||
.cursor-pointer {
|
.cursor-pointer {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,169 @@
|
|||||||
/*----------------------------------------------------------------*/
|
// -----------------------------------------------------------------------------------------------------
|
||||||
/* Avatars
|
// @ Theming
|
||||||
/*----------------------------------------------------------------*/
|
// -----------------------------------------------------------------------------------------------------
|
||||||
|
@mixin material-theme($theme) {
|
||||||
|
|
||||||
|
$background: map-get($theme, background);
|
||||||
|
$foreground: map-get($theme, foreground);
|
||||||
|
|
||||||
|
// -----------------------------------------------------------------------------------------------------
|
||||||
|
// @ Avatar
|
||||||
|
// -----------------------------------------------------------------------------------------------------
|
||||||
|
.avatar {
|
||||||
|
color: map-get($foreground, text);
|
||||||
|
}
|
||||||
|
|
||||||
|
// -----------------------------------------------------------------------------------------------------
|
||||||
|
// @ Forms
|
||||||
|
// -----------------------------------------------------------------------------------------------------
|
||||||
|
.form-wrapper {
|
||||||
|
background-color: map-get($background, card);
|
||||||
|
}
|
||||||
|
|
||||||
|
// -----------------------------------------------------------------------------------------------------
|
||||||
|
// @ Navigation - Simple
|
||||||
|
// -----------------------------------------------------------------------------------------------------
|
||||||
|
.navigation-simple {
|
||||||
|
|
||||||
|
.item {
|
||||||
|
|
||||||
|
&.selected {
|
||||||
|
background-color: map-get($background, hover);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.subheader {
|
||||||
|
border-top: 1px solid map-get($foreground, divider);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// -----------------------------------------------------------------------------------------------------
|
||||||
|
// @ Pagination - Simple
|
||||||
|
// -----------------------------------------------------------------------------------------------------
|
||||||
|
.simple-pagination {
|
||||||
|
background: map-get($background, card);
|
||||||
|
|
||||||
|
.pagination-item {
|
||||||
|
color: map-get($foreground, secondary-text);
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
color: map-get($foreground, text);
|
||||||
|
}
|
||||||
|
|
||||||
|
&.disabled {
|
||||||
|
color: map-get($foreground, disabled-text);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// -----------------------------------------------------------------------------------------------------
|
||||||
|
// @ Price tables
|
||||||
|
// -----------------------------------------------------------------------------------------------------
|
||||||
|
.price-tables {
|
||||||
|
|
||||||
|
.price-table {
|
||||||
|
background: map-get($background, card);
|
||||||
|
|
||||||
|
&.style-1 {
|
||||||
|
|
||||||
|
.price {
|
||||||
|
|
||||||
|
.currency {
|
||||||
|
color: map-get($foreground, secondary-text);
|
||||||
|
}
|
||||||
|
|
||||||
|
.period {
|
||||||
|
color: map-get($foreground, secondary-text);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&.style-2 {
|
||||||
|
|
||||||
|
.price {
|
||||||
|
|
||||||
|
.currency {
|
||||||
|
color: map-get($foreground, secondary-text);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.period {
|
||||||
|
color: map-get($foreground, secondary-text);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&.style-3 {
|
||||||
|
|
||||||
|
.package-type {
|
||||||
|
|
||||||
|
.subtitle {
|
||||||
|
color: map-get($foreground, secondary-text);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.terms {
|
||||||
|
color: map-get($foreground, secondary-text);
|
||||||
|
}
|
||||||
|
|
||||||
|
.note {
|
||||||
|
color: map-get($foreground, secondary-text);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// -------------------------------------------------------------------------------------------------
|
||||||
|
// @ Table - Simple
|
||||||
|
// -------------------------------------------------------------------------------------------------
|
||||||
|
.simple-table-container {
|
||||||
|
background: map-get($background, card);
|
||||||
|
}
|
||||||
|
|
||||||
|
table {
|
||||||
|
|
||||||
|
&.simple {
|
||||||
|
|
||||||
|
thead {
|
||||||
|
|
||||||
|
tr {
|
||||||
|
|
||||||
|
th {
|
||||||
|
color: map-get($foreground, secondary-text);
|
||||||
|
border-bottom: 1px solid map-get($foreground, divider);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
tbody {
|
||||||
|
|
||||||
|
tr {
|
||||||
|
|
||||||
|
td {
|
||||||
|
border-bottom: 1px solid map-get($foreground, divider);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&.clickable {
|
||||||
|
|
||||||
|
tbody {
|
||||||
|
|
||||||
|
tr {
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background-color: map-get($background, hover);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// -----------------------------------------------------------------------------------------------------
|
||||||
|
// @ Avatar
|
||||||
|
// -----------------------------------------------------------------------------------------------------
|
||||||
.avatar {
|
.avatar {
|
||||||
width: 40px;
|
width: 40px;
|
||||||
min-width: 40px;
|
min-width: 40px;
|
||||||
@@ -11,7 +174,6 @@
|
|||||||
font-size: 17px;
|
font-size: 17px;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
color: #FFFFFF;
|
|
||||||
|
|
||||||
&.square {
|
&.square {
|
||||||
border-radius: 0;
|
border-radius: 0;
|
||||||
@@ -58,6 +220,7 @@ mat-icon.status {
|
|||||||
|
|
||||||
&.online {
|
&.online {
|
||||||
color: #4CAF50;
|
color: #4CAF50;
|
||||||
|
|
||||||
&:before {
|
&:before {
|
||||||
content: "check_circle";
|
content: "check_circle";
|
||||||
}
|
}
|
||||||
@@ -65,6 +228,7 @@ mat-icon.status {
|
|||||||
|
|
||||||
&.do-not-disturb {
|
&.do-not-disturb {
|
||||||
color: #F44336;
|
color: #F44336;
|
||||||
|
|
||||||
&:before {
|
&:before {
|
||||||
content: "do_not_disturb_on";
|
content: "do_not_disturb_on";
|
||||||
}
|
}
|
||||||
@@ -73,6 +237,7 @@ mat-icon.status {
|
|||||||
&.away {
|
&.away {
|
||||||
background-color: #FFC107;
|
background-color: #FFC107;
|
||||||
color: #FFFFFF;
|
color: #FFFFFF;
|
||||||
|
|
||||||
&:before {
|
&:before {
|
||||||
content: "access_time";
|
content: "access_time";
|
||||||
}
|
}
|
||||||
@@ -81,17 +246,17 @@ mat-icon.status {
|
|||||||
&.offline {
|
&.offline {
|
||||||
color: #646464;
|
color: #646464;
|
||||||
background-color: #FFFFFF;
|
background-color: #FFFFFF;
|
||||||
|
|
||||||
&:before {
|
&:before {
|
||||||
content: "not_interested";
|
content: "not_interested";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*----------------------------------------------------------------*/
|
// -----------------------------------------------------------------------------------------------------
|
||||||
/* Forms
|
// @ Forms
|
||||||
/*----------------------------------------------------------------*/
|
// -----------------------------------------------------------------------------------------------------
|
||||||
.form-wrapper {
|
.form-wrapper {
|
||||||
background: #FFFFFF;
|
|
||||||
padding: 16px;
|
padding: 16px;
|
||||||
|
|
||||||
.form-title {
|
.form-title {
|
||||||
@@ -100,9 +265,9 @@ mat-icon.status {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*----------------------------------------------------------------*/
|
// -----------------------------------------------------------------------------------------------------
|
||||||
/* Navigation - Simple
|
// @ Navigation - Simple
|
||||||
/*----------------------------------------------------------------*/
|
// -----------------------------------------------------------------------------------------------------
|
||||||
.navigation-simple {
|
.navigation-simple {
|
||||||
|
|
||||||
.item {
|
.item {
|
||||||
@@ -125,21 +290,12 @@ mat-icon.status {
|
|||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
line-height: 1;
|
line-height: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
&.selected {
|
|
||||||
background-color: rgba(0, 0, 0, 0.06);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.subheader {
|
.subheader {
|
||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
border-top: 1px solid rgba(0, 0, 0, 0.12);
|
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
margin-top: 8px;
|
margin-top: 8px;
|
||||||
|
|
||||||
&.light {
|
|
||||||
border-top: 1px solid rgba(255, 255, 255, 0.12);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
mat-divider {
|
mat-divider {
|
||||||
@@ -147,15 +303,14 @@ mat-icon.status {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*----------------------------------------------------------------*/
|
// -----------------------------------------------------------------------------------------------------
|
||||||
/* Pagination
|
// @ Pagination - Simple
|
||||||
/*----------------------------------------------------------------*/
|
// -----------------------------------------------------------------------------------------------------
|
||||||
.simple-pagination {
|
.simple-pagination {
|
||||||
position: relative;
|
position: relative;
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
@include mat-elevation(1);
|
@include mat-elevation(1);
|
||||||
background-color: #FFFFFF;
|
|
||||||
padding: 0 8px;
|
padding: 0 8px;
|
||||||
|
|
||||||
.pagination-item {
|
.pagination-item {
|
||||||
@@ -168,32 +323,24 @@ mat-icon.status {
|
|||||||
border-radius: 0;
|
border-radius: 0;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
color: rgba(0, 0, 0, 0.54);
|
|
||||||
|
|
||||||
&:hover {
|
|
||||||
color: rgba(0, 0, 0, 0.87);
|
|
||||||
}
|
|
||||||
|
|
||||||
&.active {
|
&.active {
|
||||||
cursor: default;
|
cursor: default;
|
||||||
color: rgba(0, 0, 0, 0.87);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
&.disabled {
|
&.disabled {
|
||||||
cursor: default;
|
cursor: default;
|
||||||
color: rgba(0, 0, 0, 0.26);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*----------------------------------------------------------------*/
|
// -----------------------------------------------------------------------------------------------------
|
||||||
/* Price Tables
|
// @ Price tables
|
||||||
/*----------------------------------------------------------------*/
|
// -----------------------------------------------------------------------------------------------------
|
||||||
.price-tables {
|
.price-tables {
|
||||||
|
|
||||||
.price-table {
|
.price-table {
|
||||||
position: relative;
|
position: relative;
|
||||||
background-color: #FFFFFF;
|
|
||||||
width: 280px;
|
width: 280px;
|
||||||
border-radius: 2px;
|
border-radius: 2px;
|
||||||
margin: 12px;
|
margin: 12px;
|
||||||
@@ -218,7 +365,6 @@ mat-icon.status {
|
|||||||
padding-right: 4px;
|
padding-right: 4px;
|
||||||
font-size: 24px;
|
font-size: 24px;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
color: rgba(0, 0, 0, 0.54);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.value {
|
.value {
|
||||||
@@ -230,7 +376,6 @@ mat-icon.status {
|
|||||||
.period {
|
.period {
|
||||||
padding: 0 0 5px 4px;
|
padding: 0 0 5px 4px;
|
||||||
font-size: 17px;
|
font-size: 17px;
|
||||||
color: rgba(0, 0, 0, 0.54);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -279,7 +424,6 @@ mat-icon.status {
|
|||||||
padding-right: 4px;
|
padding-right: 4px;
|
||||||
font-size: 24px;
|
font-size: 24px;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
color: rgba(0, 0, 0, 0.54);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.value {
|
.value {
|
||||||
@@ -293,7 +437,6 @@ mat-icon.status {
|
|||||||
padding: 0 32px;
|
padding: 0 32px;
|
||||||
font-size: 15px;
|
font-size: 15px;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
color: rgba(0, 0, 0, 0.54);
|
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -328,7 +471,6 @@ mat-icon.status {
|
|||||||
|
|
||||||
.subtitle {
|
.subtitle {
|
||||||
font-size: 17px;
|
font-size: 17px;
|
||||||
color: rgba(0, 0, 0, 0.54);
|
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -357,7 +499,6 @@ mat-icon.status {
|
|||||||
.terms {
|
.terms {
|
||||||
margin: 32px;
|
margin: 32px;
|
||||||
font-size: 15px;
|
font-size: 15px;
|
||||||
color: rgba(0, 0, 0, 0.54);
|
|
||||||
|
|
||||||
.term {
|
.term {
|
||||||
padding-bottom: 16px;
|
padding-bottom: 16px;
|
||||||
@@ -375,17 +516,15 @@ mat-icon.status {
|
|||||||
.note {
|
.note {
|
||||||
padding: 8px 32px 16px 32px;
|
padding: 8px 32px 16px 32px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
color: rgba(0, 0, 0, 0.54);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*----------------------------------------------------------------*/
|
// -----------------------------------------------------------------------------------------------------
|
||||||
/* Table - Simple
|
// @ Table - Simple
|
||||||
/*----------------------------------------------------------------*/
|
// -----------------------------------------------------------------------------------------------------
|
||||||
.simple-table-container {
|
.simple-table-container {
|
||||||
background: #FFFFFF;
|
|
||||||
|
|
||||||
.table-title {
|
.table-title {
|
||||||
font-size: 20px;
|
font-size: 20px;
|
||||||
@@ -408,8 +547,6 @@ table {
|
|||||||
th {
|
th {
|
||||||
padding: 16px 8px;
|
padding: 16px 8px;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
color: rgba(0, 0, 0, 0.54);
|
|
||||||
border-bottom: 1px solid rgba(0, 0, 0, 0.12);
|
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
|
|
||||||
&:first-child {
|
&:first-child {
|
||||||
@@ -429,7 +566,6 @@ table {
|
|||||||
|
|
||||||
td {
|
td {
|
||||||
padding: 16px 8px;
|
padding: 16px 8px;
|
||||||
border-bottom: 1px solid rgba(0, 0, 0, 0.12);
|
|
||||||
|
|
||||||
&:first-child {
|
&:first-child {
|
||||||
padding-left: 24px;
|
padding-left: 24px;
|
||||||
@@ -455,12 +591,8 @@ table {
|
|||||||
|
|
||||||
tr {
|
tr {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
|
||||||
&:hover {
|
|
||||||
background: rgba(0, 0, 0, 0.03);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -64,11 +64,11 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
background-color: map-get($background, hover);
|
background-color: rgba(0, 0, 0, 0.04);
|
||||||
}
|
}
|
||||||
|
|
||||||
.mat-ripple-element {
|
.mat-ripple-element {
|
||||||
background-color: map-get($background, hover);
|
background-color: rgba(0, 0, 0, 0.04);
|
||||||
}
|
}
|
||||||
|
|
||||||
&.active {
|
&.active {
|
||||||
|
|||||||
@@ -1,4 +1,83 @@
|
|||||||
// Page Layouts
|
// -----------------------------------------------------------------------------------------------------
|
||||||
|
// @ Theming
|
||||||
|
// -----------------------------------------------------------------------------------------------------
|
||||||
|
@mixin page-layouts-theme($theme) {
|
||||||
|
|
||||||
|
$background: map-get($theme, background);
|
||||||
|
$foreground: map-get($theme, foreground);
|
||||||
|
|
||||||
|
.page-layout {
|
||||||
|
|
||||||
|
// Carded layout
|
||||||
|
&.carded {
|
||||||
|
|
||||||
|
// Fullwidth
|
||||||
|
&.fullwidth {
|
||||||
|
|
||||||
|
> .center {
|
||||||
|
|
||||||
|
> .content-card {
|
||||||
|
background: map-get($background, card);
|
||||||
|
|
||||||
|
> .toolbar {
|
||||||
|
border-bottom-color: map-get($foreground, divider);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Left / Right sidebar
|
||||||
|
&.left-sidebar,
|
||||||
|
&.right-sidebar {
|
||||||
|
|
||||||
|
> .center {
|
||||||
|
|
||||||
|
> .content-card {
|
||||||
|
background: map-get($background, card);
|
||||||
|
|
||||||
|
> .toolbar {
|
||||||
|
border-bottom-color: map-get($foreground, divider);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Simple layout
|
||||||
|
&.simple {
|
||||||
|
|
||||||
|
// Left / Right sidebar
|
||||||
|
&.left-sidebar,
|
||||||
|
&.right-sidebar {
|
||||||
|
|
||||||
|
> .center {
|
||||||
|
|
||||||
|
> .content {
|
||||||
|
background: map-get($background, card);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Inner sidebar
|
||||||
|
&.inner-sidebar {
|
||||||
|
|
||||||
|
> .content {
|
||||||
|
|
||||||
|
> .center {
|
||||||
|
|
||||||
|
> .content {
|
||||||
|
background: map-get($background, card);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// -----------------------------------------------------------------------------------------------------
|
||||||
|
// @ Page Layouts
|
||||||
|
// -----------------------------------------------------------------------------------------------------
|
||||||
$carded-header-height: 200px !default;
|
$carded-header-height: 200px !default;
|
||||||
$carded-header-height-sm: 160px !default;
|
$carded-header-height-sm: 160px !default;
|
||||||
$carded-toolbar-height: 64px !default;
|
$carded-toolbar-height: 64px !default;
|
||||||
@@ -50,6 +129,7 @@ $carded-header-height-without-toolbar-sm: $carded-header-height-sm - $carded-too
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
min-width: 0;
|
min-width: 0;
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
|
height: 100%;
|
||||||
max-height: 100%;
|
max-height: 100%;
|
||||||
|
|
||||||
> .header {
|
> .header {
|
||||||
@@ -75,7 +155,7 @@ $carded-header-height-without-toolbar-sm: $carded-header-height-sm - $carded-too
|
|||||||
display: flex;
|
display: flex;
|
||||||
justify-content: flex-start;
|
justify-content: flex-start;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
border-bottom: 1px solid rgba(0, 0, 0, 0.12);
|
border-bottom: 1px solid;
|
||||||
height: $carded-toolbar-height;
|
height: $carded-toolbar-height;
|
||||||
min-height: $carded-toolbar-height;
|
min-height: $carded-toolbar-height;
|
||||||
max-height: $carded-toolbar-height;
|
max-height: $carded-toolbar-height;
|
||||||
@@ -143,8 +223,9 @@ $carded-header-height-without-toolbar-sm: $carded-header-height-sm - $carded-too
|
|||||||
flex: 1 1 auto;
|
flex: 1 1 auto;
|
||||||
|
|
||||||
> .content {
|
> .content {
|
||||||
overflow: auto;
|
|
||||||
flex: 1 1 auto;
|
flex: 1 1 auto;
|
||||||
|
overflow: auto;
|
||||||
|
-webkit-overflow-scrolling: touch;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -166,6 +247,7 @@ $carded-header-height-without-toolbar-sm: $carded-header-height-sm - $carded-too
|
|||||||
|
|
||||||
.tab-content {
|
.tab-content {
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
|
-webkit-overflow-scrolling: touch;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -244,6 +326,7 @@ $carded-header-height-without-toolbar-sm: $carded-header-height-sm - $carded-too
|
|||||||
z-index: 3;
|
z-index: 3;
|
||||||
margin-left: 32px;
|
margin-left: 32px;
|
||||||
margin-right: 32px;
|
margin-right: 32px;
|
||||||
|
width: 100%;
|
||||||
min-width: 0;
|
min-width: 0;
|
||||||
|
|
||||||
> .header {
|
> .header {
|
||||||
@@ -271,7 +354,7 @@ $carded-header-height-without-toolbar-sm: $carded-header-height-sm - $carded-too
|
|||||||
justify-content: flex-start;
|
justify-content: flex-start;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
flex: 1 1 auto;
|
flex: 1 1 auto;
|
||||||
border-bottom: 1px solid rgba(0, 0, 0, 0.12);
|
border-bottom: 1px solid;
|
||||||
height: $carded-toolbar-height;
|
height: $carded-toolbar-height;
|
||||||
min-height: $carded-toolbar-height;
|
min-height: $carded-toolbar-height;
|
||||||
max-height: $carded-toolbar-height;
|
max-height: $carded-toolbar-height;
|
||||||
@@ -346,6 +429,7 @@ $carded-header-height-without-toolbar-sm: $carded-header-height-sm - $carded-too
|
|||||||
|
|
||||||
.content {
|
.content {
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
|
-webkit-overflow-scrolling: touch;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -358,6 +442,7 @@ $carded-header-height-without-toolbar-sm: $carded-header-height-sm - $carded-too
|
|||||||
> .content {
|
> .content {
|
||||||
flex: 1 1 auto;
|
flex: 1 1 auto;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
|
-webkit-overflow-scrolling: touch;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -379,6 +464,7 @@ $carded-header-height-without-toolbar-sm: $carded-header-height-sm - $carded-too
|
|||||||
|
|
||||||
.tab-content {
|
.tab-content {
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
|
-webkit-overflow-scrolling: touch;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -479,6 +565,7 @@ $carded-header-height-without-toolbar-sm: $carded-header-height-sm - $carded-too
|
|||||||
flex: 1 1 auto;
|
flex: 1 1 auto;
|
||||||
z-index: 3;
|
z-index: 3;
|
||||||
min-width: 0;
|
min-width: 0;
|
||||||
|
width: 100%;
|
||||||
@include mat-elevation(7);
|
@include mat-elevation(7);
|
||||||
|
|
||||||
> .header {
|
> .header {
|
||||||
@@ -500,16 +587,18 @@ $carded-header-height-without-toolbar-sm: $carded-header-height-sm - $carded-too
|
|||||||
|
|
||||||
.content {
|
.content {
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
|
-webkit-overflow-scrolling: touch;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
> .center {
|
> .center {
|
||||||
flex: 1 1 auto;
|
flex: 1 1 auto;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
|
-webkit-overflow-scrolling: touch;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Inner Sidebar
|
// Inner sidebar
|
||||||
&.inner-sidebar {
|
&.inner-sidebar {
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
@@ -528,12 +617,14 @@ $carded-header-height-without-toolbar-sm: $carded-header-height-sm - $carded-too
|
|||||||
|
|
||||||
.content {
|
.content {
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
|
-webkit-overflow-scrolling: touch;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
> .center {
|
> .center {
|
||||||
flex: 1 1 auto;
|
flex: 1 1 auto;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
|
-webkit-overflow-scrolling: touch;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -20,13 +20,6 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
html, body {
|
|
||||||
margin: 0;
|
|
||||||
width: 100%;
|
|
||||||
height: 100%;
|
|
||||||
overflow: hidden;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Reset non angular-material input's default browser/os styles
|
// Reset non angular-material input's default browser/os styles
|
||||||
*:not(mat-form-field) {
|
*:not(mat-form-field) {
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,44 @@
|
|||||||
|
// -----------------------------------------------------------------------------------------------------
|
||||||
|
// @ Theming
|
||||||
|
// -----------------------------------------------------------------------------------------------------
|
||||||
|
@mixin typography-theme($theme) {
|
||||||
|
|
||||||
|
$background: map-get($theme, background);
|
||||||
|
$accent: map-get($theme, accent);
|
||||||
|
$is-dark: map-get($theme, is-dark);
|
||||||
|
|
||||||
|
a {
|
||||||
|
color: map-get($accent, default);
|
||||||
|
}
|
||||||
|
|
||||||
|
code {
|
||||||
|
|
||||||
|
&:not(.highlight) {
|
||||||
|
background-color: map-get($background, app-bar);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.changelog {
|
||||||
|
|
||||||
|
.entry {
|
||||||
|
background-color: map-get($background, card);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.text-boxed {
|
||||||
|
@if ($is-dark) {
|
||||||
|
background-color: rgba(255, 255, 255, 0.12);
|
||||||
|
color: rgba(255, 255, 255, 0.54);
|
||||||
|
} @else {
|
||||||
|
background-color: rgba(0, 0, 0, 0.12);
|
||||||
|
color: rgba(0, 0, 0, 0.54);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// -----------------------------------------------------------------------------------------------------
|
||||||
|
// @ Typography
|
||||||
|
// -----------------------------------------------------------------------------------------------------
|
||||||
html {
|
html {
|
||||||
font-size: 62.5%;
|
font-size: 62.5%;
|
||||||
font-family: 'Roboto', 'Helvetica Neue', 'Arial', sans-serif;
|
font-family: 'Roboto', 'Helvetica Neue', 'Arial', sans-serif;
|
||||||
@@ -46,7 +87,6 @@ h6, .h6 {
|
|||||||
|
|
||||||
// Links
|
// Links
|
||||||
a {
|
a {
|
||||||
color: mat-color($accent);
|
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
|
|
||||||
&:not(.mat-button):not(.mat-raised-button):not(.mat-icon-button) {
|
&:not(.mat-button):not(.mat-raised-button):not(.mat-icon-button) {
|
||||||
@@ -103,11 +143,10 @@ code {
|
|||||||
font-family: 'Monaco', 'Menlo', 'Consolas', 'Ubuntu Mono', monospace;;
|
font-family: 'Monaco', 'Menlo', 'Consolas', 'Ubuntu Mono', monospace;;
|
||||||
|
|
||||||
&:not(.highlight) {
|
&:not(.highlight) {
|
||||||
background: rgba(0, 0, 0, 0.065);
|
|
||||||
color: #106CC8;
|
color: #106CC8;
|
||||||
margin: 0 1px;
|
|
||||||
padding: 2px 3px;
|
padding: 2px 3px;
|
||||||
border-radius: 2px;
|
border-radius: 2px;
|
||||||
|
line-height: 1.7;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -237,6 +276,7 @@ strong {
|
|||||||
line-height: 1.25;
|
line-height: 1.25;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.line-height-1\.5,
|
||||||
.line-height-1\.50 {
|
.line-height-1\.50 {
|
||||||
line-height: 1.5;
|
line-height: 1.5;
|
||||||
}
|
}
|
||||||
@@ -245,6 +285,19 @@ strong {
|
|||||||
line-height: 1.75;
|
line-height: 1.75;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Letter spacing helpers
|
||||||
|
.letter-spacing-condensed {
|
||||||
|
letter-spacing: -0.02em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.letter-spacing-normal {
|
||||||
|
letter-spacing: normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
.letter-spacing-relaxed {
|
||||||
|
letter-spacing: 0.02em;
|
||||||
|
}
|
||||||
|
|
||||||
// Boxed text
|
// Boxed text
|
||||||
.text-boxed {
|
.text-boxed {
|
||||||
border-radius: 2px;
|
border-radius: 2px;
|
||||||
@@ -252,17 +305,9 @@ strong {
|
|||||||
margin: 0 8px;
|
margin: 0 8px;
|
||||||
font-size: 11px;
|
font-size: 11px;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
color: rgba(0, 0, 0, 0.54);
|
|
||||||
background-color: rgba(0, 0, 0, 0.12);
|
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Boxed text light
|
|
||||||
.text-boxed-light {
|
|
||||||
@extend .text-boxed;
|
|
||||||
background-color: rgba(255, 255, 255, 0.7);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Truncate
|
// Truncate
|
||||||
.text-truncate {
|
.text-truncate {
|
||||||
display: block;
|
display: block;
|
||||||
@@ -280,7 +325,6 @@ strong {
|
|||||||
.changelog {
|
.changelog {
|
||||||
|
|
||||||
.entry {
|
.entry {
|
||||||
background: white;
|
|
||||||
margin-bottom: 24px;
|
margin-bottom: 24px;
|
||||||
padding: 24px 32px;
|
padding: 24px 32px;
|
||||||
@include mat-elevation(2);
|
@include mat-elevation(2);
|
||||||
|
|||||||
@@ -1,360 +0,0 @@
|
|||||||
/*@font-face {
|
|
||||||
font-family: 'fontello';
|
|
||||||
src: url('../font/fontello.eot?81091010');
|
|
||||||
src: url('../font/fontello.eot?81091010#iefix') format('embedded-opentype'),
|
|
||||||
url('../font/fontello.woff2?81091010') format('woff2'),
|
|
||||||
url('../font/fontello.woff?81091010') format('woff'),
|
|
||||||
url('../font/fontello.ttf?81091010') format('truetype'),
|
|
||||||
url('../font/fontello.svg?81091010#fontello') format('svg');
|
|
||||||
font-weight: normal;
|
|
||||||
font-style: normal;
|
|
||||||
}*/
|
|
||||||
|
|
||||||
owl-date-time {
|
|
||||||
|
|
||||||
[class^="icon-"]:before, [class*=" icon-"]:before {
|
|
||||||
font-family: "Material Icons";
|
|
||||||
font-style: normal;
|
|
||||||
font-weight: normal;
|
|
||||||
speak: none;
|
|
||||||
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
|
|
||||||
/* For safety - reset parent styles, that can break glyph codes*/
|
|
||||||
font-variant: normal;
|
|
||||||
text-transform: none;
|
|
||||||
|
|
||||||
/* Font smoothing. That was taken from TWBS */
|
|
||||||
-webkit-font-smoothing: antialiased;
|
|
||||||
-moz-osx-font-smoothing: grayscale;
|
|
||||||
}
|
|
||||||
|
|
||||||
.icon-cancel:before {
|
|
||||||
content: 'close';
|
|
||||||
}
|
|
||||||
|
|
||||||
.icon-up-open:before {
|
|
||||||
content: 'keyboard_arrow_up';
|
|
||||||
}
|
|
||||||
|
|
||||||
.icon-down-open:before {
|
|
||||||
content: 'keyboard_arrow_down';
|
|
||||||
}
|
|
||||||
|
|
||||||
.icon-left-open:before {
|
|
||||||
content: 'chevron_left';
|
|
||||||
}
|
|
||||||
|
|
||||||
.icon-right-open:before {
|
|
||||||
content: 'chevron_right';
|
|
||||||
}
|
|
||||||
|
|
||||||
$white: #FFFFFF;
|
|
||||||
$black: #000000;
|
|
||||||
$grey: #DDDDDD;
|
|
||||||
$blue: #0070BA;
|
|
||||||
|
|
||||||
.owl-widget,
|
|
||||||
.owl-widget * {
|
|
||||||
box-sizing: border-box;
|
|
||||||
}
|
|
||||||
|
|
||||||
.owl-widget {
|
|
||||||
font-size: 1em;
|
|
||||||
}
|
|
||||||
|
|
||||||
.owl-state-focus {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
.owl-corner-all {
|
|
||||||
border-radius: 2px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.owl-corner-top {
|
|
||||||
border-top-left-radius: 2px;
|
|
||||||
border-top-right-radius: 2px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.owl-state-default {
|
|
||||||
background: #FFFFFF;
|
|
||||||
color: rgba(0, 0, 0, 0.87);
|
|
||||||
}
|
|
||||||
|
|
||||||
.owl-dateTime-inputWrapper {
|
|
||||||
display: flex;
|
|
||||||
flex-direction: row;
|
|
||||||
justify-content: flex-start;
|
|
||||||
align-items: center;
|
|
||||||
|
|
||||||
.owl-dateTime-input {
|
|
||||||
background: none !important;
|
|
||||||
padding: 0 !important;
|
|
||||||
cursor: pointer;
|
|
||||||
|
|
||||||
.owl-inputtext {
|
|
||||||
margin: 0;
|
|
||||||
padding: 8px;
|
|
||||||
background: none !important;
|
|
||||||
color: rgba(0, 0, 0, 0.87);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.owl-dateTime-cancel {
|
|
||||||
position: relative !important;
|
|
||||||
right: 0 !important;
|
|
||||||
top: 0 !important;
|
|
||||||
transform: none !important;
|
|
||||||
font-size: 16px !important;
|
|
||||||
width: 16px !important;
|
|
||||||
height: 16px !important;
|
|
||||||
min-width: 16px !important;
|
|
||||||
min-height: 16px !important;
|
|
||||||
line-height: 16px !important;
|
|
||||||
color: rgba(0, 0, 0, 0.54) !important;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.owl-dateTime {
|
|
||||||
position: relative;
|
|
||||||
width: 140px;
|
|
||||||
|
|
||||||
&.owl-dateTime-inline {
|
|
||||||
width: auto;
|
|
||||||
|
|
||||||
.owl-dateTime-dialog {
|
|
||||||
position: relative;
|
|
||||||
z-index: auto;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.owl-dateTime-dialog {
|
|
||||||
width: 256px;
|
|
||||||
user-select: none;
|
|
||||||
z-index: 99999;
|
|
||||||
top: 24px !important;
|
|
||||||
right: 0 !important;
|
|
||||||
left: auto !important;
|
|
||||||
@include mat-elevation(4);
|
|
||||||
}
|
|
||||||
|
|
||||||
.owl-dateTime-dialogHeader {
|
|
||||||
height: 2.5em;
|
|
||||||
padding: .25em;
|
|
||||||
background-color: rgba(0, 0, 0, .1);
|
|
||||||
overflow-y: auto;
|
|
||||||
}
|
|
||||||
|
|
||||||
.owl-calendar-wrapper {
|
|
||||||
padding: 16px !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.owl-calendar-control {
|
|
||||||
|
|
||||||
.owl-calendar-controlNav {
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
|
|
||||||
.nav-prev,
|
|
||||||
.nav-next {
|
|
||||||
display: flex;
|
|
||||||
|
|
||||||
&:before {
|
|
||||||
font-family: "Material Icons";
|
|
||||||
position: relative !important;
|
|
||||||
right: 0 !important;
|
|
||||||
top: 0 !important;
|
|
||||||
transform: none !important;
|
|
||||||
font-size: 20px !important;
|
|
||||||
width: 20px !important;
|
|
||||||
height: 20px !important;
|
|
||||||
min-width: 20px !important;
|
|
||||||
min-height: 20px !important;
|
|
||||||
line-height: 20px !important;
|
|
||||||
content: "chevron_left";
|
|
||||||
color: rgba(0, 0, 0, 0.54);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.nav-next:before {
|
|
||||||
content: "chevron_right";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.owl-calendar-controlContent {
|
|
||||||
|
|
||||||
.month-control,
|
|
||||||
.year-control {
|
|
||||||
font-size: 14px;
|
|
||||||
font-weight: 500;
|
|
||||||
cursor: pointer;
|
|
||||||
}
|
|
||||||
|
|
||||||
.month-control {
|
|
||||||
margin-right: 8px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.year-control {
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.owl-calendar {
|
|
||||||
|
|
||||||
table {
|
|
||||||
border-spacing: 0 !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
tbody td {
|
|
||||||
|
|
||||||
&.owl-calendar-selected {
|
|
||||||
background-color: $blue;
|
|
||||||
color: $white;
|
|
||||||
}
|
|
||||||
|
|
||||||
&.owl-calendar-invalid {
|
|
||||||
color: #ACACAC;
|
|
||||||
}
|
|
||||||
|
|
||||||
&.owl-calendar-outFocus {
|
|
||||||
color: $grey;
|
|
||||||
}
|
|
||||||
|
|
||||||
&.owl-calendar-hidden {
|
|
||||||
visibility: hidden;
|
|
||||||
}
|
|
||||||
|
|
||||||
&:not(.owl-calendar-selected):not(.owl-calendar-invalid):hover {
|
|
||||||
background-color: lighten($blue, 50%);
|
|
||||||
color: $black;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.owl-years,
|
|
||||||
.owl-months {
|
|
||||||
|
|
||||||
td.owl-year,
|
|
||||||
td.owl-month {
|
|
||||||
padding: 0;
|
|
||||||
font-size: 16px;
|
|
||||||
width: 72px;
|
|
||||||
height: 48px;
|
|
||||||
line-height: 48px;
|
|
||||||
cursor: pointer;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.owl-calendar-yearArrow {
|
|
||||||
width: 24px !important;
|
|
||||||
height: 24px !important;
|
|
||||||
|
|
||||||
&.left {
|
|
||||||
left: -16px !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
&.right {
|
|
||||||
right: -16px !important;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.owl-weekdays {
|
|
||||||
|
|
||||||
th.owl-weekday {
|
|
||||||
height: 32px;
|
|
||||||
line-height: 32px;
|
|
||||||
text-align: center;
|
|
||||||
font-size: 12px;
|
|
||||||
padding: 0;
|
|
||||||
color: rgba(0, 0, 0, 0.37);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.owl-days {
|
|
||||||
|
|
||||||
td.owl-day {
|
|
||||||
height: 32px;
|
|
||||||
width: 32px;
|
|
||||||
line-height: 32px;
|
|
||||||
cursor: pointer;
|
|
||||||
border-radius: 100%;
|
|
||||||
padding: 0;
|
|
||||||
|
|
||||||
&.owl-day-today:before {
|
|
||||||
content: '';
|
|
||||||
display: block;
|
|
||||||
position: absolute;
|
|
||||||
right: 2px;
|
|
||||||
top: 2px;
|
|
||||||
border-top: .5em solid lighten($blue, 20%);
|
|
||||||
border-left: .5em solid transparent;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.owl-timer-wrapper {
|
|
||||||
height: 88px;
|
|
||||||
padding: 8px !important;
|
|
||||||
background-color: rgba(0, 0, 0, 0.06);
|
|
||||||
|
|
||||||
.owl-timer-input {
|
|
||||||
background: none;
|
|
||||||
width: 100% !important;
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.owl-timer-text {
|
|
||||||
display: flex;
|
|
||||||
justify-content: center;
|
|
||||||
align-items: center;
|
|
||||||
width: 100%;
|
|
||||||
height: 40%;
|
|
||||||
font-size: 20px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.owl-meridian-btn {
|
|
||||||
font-size: .8em;
|
|
||||||
color: $blue;
|
|
||||||
background-image: none;
|
|
||||||
background-color: transparent;
|
|
||||||
border-color: $blue;
|
|
||||||
|
|
||||||
&:hover {
|
|
||||||
color: $white;
|
|
||||||
background-color: $blue;
|
|
||||||
border-color: $blue;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.owl-timer-divider {
|
|
||||||
display: inline-block;
|
|
||||||
position: absolute;
|
|
||||||
width: 8px;
|
|
||||||
height: 100%;
|
|
||||||
left: -2px;
|
|
||||||
|
|
||||||
.owl-timer-dot {
|
|
||||||
display: block;
|
|
||||||
background: rgba(0, 0, 0, 0.37);
|
|
||||||
width: 3px;
|
|
||||||
height: 3px;
|
|
||||||
position: absolute;
|
|
||||||
left: 50%;
|
|
||||||
border-radius: 100%;
|
|
||||||
transform: translateX(-50%);
|
|
||||||
|
|
||||||
&.dot-top {
|
|
||||||
top: 40%;
|
|
||||||
}
|
|
||||||
|
|
||||||
&.dot-bottom {
|
|
||||||
bottom: 40%;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -11,6 +11,7 @@
|
|||||||
height: 140px;
|
height: 140px;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
overflow-x: hidden;
|
overflow-x: hidden;
|
||||||
|
-webkit-overflow-scrolling: touch;
|
||||||
|
|
||||||
> hr {
|
> hr {
|
||||||
display: none;
|
display: none;
|
||||||
|
|||||||
@@ -1,3 +1,76 @@
|
|||||||
|
// -----------------------------------------------------------------------------------------------------
|
||||||
|
// @ Theming
|
||||||
|
// -----------------------------------------------------------------------------------------------------
|
||||||
|
@mixin ngx-datatable-theme($theme) {
|
||||||
|
|
||||||
|
$background: map-get($theme, background);
|
||||||
|
$foreground: map-get($theme, foreground);
|
||||||
|
|
||||||
|
ngx-datatable {
|
||||||
|
|
||||||
|
&.material {
|
||||||
|
background: map-get($background, card);
|
||||||
|
color: map-get($foreground, text);
|
||||||
|
|
||||||
|
.datatable-header {
|
||||||
|
|
||||||
|
.datatable-header-cell {
|
||||||
|
color: map-get($foreground, secondary-text);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.datatable-body {
|
||||||
|
|
||||||
|
.datatable-row-wrapper {
|
||||||
|
border-bottom-color: map-get($foreground, divider);
|
||||||
|
|
||||||
|
&:first-child {
|
||||||
|
border-top-color: map-get($foreground, divider);
|
||||||
|
}
|
||||||
|
|
||||||
|
.datatable-body-row {
|
||||||
|
|
||||||
|
.datatable-body-cell {
|
||||||
|
color: map-get($foreground, text);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.datatable-footer {
|
||||||
|
color: map-get($foreground, secondary-text);
|
||||||
|
|
||||||
|
.datatable-pager {
|
||||||
|
|
||||||
|
a {
|
||||||
|
color: map-get($foreground, secondary-text);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&:not(.cell-selection) {
|
||||||
|
|
||||||
|
.datatable-body {
|
||||||
|
|
||||||
|
.datatable-row-wrapper {
|
||||||
|
|
||||||
|
.datatable-body-row {
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background-color: map-get($background, hover);
|
||||||
|
|
||||||
|
.datatable-row-group {
|
||||||
|
background-color: map-get($background, hover);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.ngx-datatable {
|
.ngx-datatable {
|
||||||
|
|
||||||
&.material {
|
&.material {
|
||||||
@@ -42,12 +115,11 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.datatable-row-wrapper {
|
.datatable-row-wrapper {
|
||||||
border-bottom: 1px solid rgba(0, 0, 0, 0.12);
|
border-bottom: 1px solid;
|
||||||
|
|
||||||
&:first-child {
|
&:first-child {
|
||||||
border-top: 1px solid rgba(0, 0, 0, 0.12);
|
border-top: 1px solid;
|
||||||
}
|
}
|
||||||
|
|
||||||
.datatable-body-cell {
|
.datatable-body-cell {
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
@@ -118,48 +190,63 @@
|
|||||||
.datatable-icon-filter:before {
|
.datatable-icon-filter:before {
|
||||||
content: "filter_list";
|
content: "filter_list";
|
||||||
}
|
}
|
||||||
|
|
||||||
.datatable-icon-collapse:before {
|
.datatable-icon-collapse:before {
|
||||||
content: "unfold_less";
|
content: "unfold_less";
|
||||||
}
|
}
|
||||||
|
|
||||||
.datatable-icon-expand:before {
|
.datatable-icon-expand:before {
|
||||||
content: "unfold_more";
|
content: "unfold_more";
|
||||||
}
|
}
|
||||||
|
|
||||||
.datatable-icon-close:before {
|
.datatable-icon-close:before {
|
||||||
content: "close";
|
content: "close";
|
||||||
}
|
}
|
||||||
|
|
||||||
.datatable-icon-up:before {
|
.datatable-icon-up:before {
|
||||||
content: "keyboard_arrow_up";
|
content: "keyboard_arrow_up";
|
||||||
}
|
}
|
||||||
|
|
||||||
.datatable-icon-down:before {
|
.datatable-icon-down:before {
|
||||||
content: "keyboard_arrow_down";
|
content: "keyboard_arrow_down";
|
||||||
}
|
}
|
||||||
|
|
||||||
.datatable-icon-sort:before {
|
.datatable-icon-sort:before {
|
||||||
content: "sort";
|
content: "sort";
|
||||||
}
|
}
|
||||||
|
|
||||||
.datatable-icon-done:before {
|
.datatable-icon-done:before {
|
||||||
content: "done";
|
content: "done";
|
||||||
}
|
}
|
||||||
|
|
||||||
.datatable-icon-done-all:before {
|
.datatable-icon-done-all:before {
|
||||||
content: "done_all";
|
content: "done_all";
|
||||||
}
|
}
|
||||||
|
|
||||||
.datatable-icon-search:before {
|
.datatable-icon-search:before {
|
||||||
content: "search";
|
content: "search";
|
||||||
}
|
}
|
||||||
|
|
||||||
.datatable-icon-pin:before {
|
.datatable-icon-pin:before {
|
||||||
content: "lock";
|
content: "lock";
|
||||||
}
|
}
|
||||||
|
|
||||||
.datatable-icon-add:before {
|
.datatable-icon-add:before {
|
||||||
content: "add";
|
content: "add";
|
||||||
}
|
}
|
||||||
|
|
||||||
.datatable-icon-left:before {
|
.datatable-icon-left:before {
|
||||||
content: "chevron_left";
|
content: "chevron_left";
|
||||||
}
|
}
|
||||||
|
|
||||||
.datatable-icon-right:before {
|
.datatable-icon-right:before {
|
||||||
content: "chevron_right";
|
content: "chevron_right";
|
||||||
}
|
}
|
||||||
|
|
||||||
.datatable-icon-skip:before {
|
.datatable-icon-skip:before {
|
||||||
content: "skip_next";
|
content: "skip_next";
|
||||||
}
|
}
|
||||||
|
|
||||||
.datatable-icon-prev:before {
|
.datatable-icon-prev:before {
|
||||||
content: "skip_previous";
|
content: "skip_previous";
|
||||||
}
|
}
|
||||||
30
src/@fuse/scss/theme.scss
Normal file
30
src/@fuse/scss/theme.scss
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
@import "src/@fuse/components/countdown/countdown.theme";
|
||||||
|
@import "src/@fuse/components/material-color-picker/material-color-picker.theme";
|
||||||
|
@import "src/@fuse/components/search-bar/search-bar.theme";
|
||||||
|
@import "src/@fuse/components/shortcuts/shortcuts.theme";
|
||||||
|
@import "src/@fuse/components/sidebar/sidebar.theme";
|
||||||
|
@import "src/@fuse/components/theme-options/theme-options.theme";
|
||||||
|
@import "src/@fuse/components/widget/widget.theme";
|
||||||
|
|
||||||
|
@mixin fuse-core-theme($theme) {
|
||||||
|
|
||||||
|
// Theming for Fuse core styles
|
||||||
|
@include colors-theme($theme);
|
||||||
|
@include cards-theme($theme);
|
||||||
|
@include material-theme($theme);
|
||||||
|
@include page-layouts-theme($theme);
|
||||||
|
@include typography-theme($theme);
|
||||||
|
|
||||||
|
// Theming for Fuse components
|
||||||
|
@include fuse-countdown-theme($theme);
|
||||||
|
@include fuse-search-bar-theme($theme);
|
||||||
|
@include fuse-shortcuts-theme($theme);
|
||||||
|
@include fuse-sidebar-theme($theme);
|
||||||
|
@include fuse-theme-options-theme($theme);
|
||||||
|
@include fuse-material-color-picker-theme($theme);
|
||||||
|
@include fuse-widget-theme($theme);
|
||||||
|
|
||||||
|
// Theming for 3rd party components
|
||||||
|
@include ngx-datatable-theme($theme);
|
||||||
|
}
|
||||||
|
|
||||||
@@ -1,66 +0,0 @@
|
|||||||
@import '~@angular/material/theming';
|
|
||||||
|
|
||||||
// Custom color maps
|
|
||||||
$mat-white: (
|
|
||||||
500: white,
|
|
||||||
contrast: (
|
|
||||||
500: $black-87-opacity
|
|
||||||
)
|
|
||||||
);
|
|
||||||
|
|
||||||
$mat-black: (
|
|
||||||
500: black,
|
|
||||||
contrast: (
|
|
||||||
500: white,
|
|
||||||
)
|
|
||||||
);
|
|
||||||
|
|
||||||
$mat-fusedark: (
|
|
||||||
50: #ECECEE,
|
|
||||||
100: #C5C6CB,
|
|
||||||
200: #9EA1A9,
|
|
||||||
300: #7D818C,
|
|
||||||
400: #5C616F,
|
|
||||||
500: #3C4252,
|
|
||||||
600: #353A48,
|
|
||||||
700: #2D323E,
|
|
||||||
800: #262933,
|
|
||||||
900: #1E2129,
|
|
||||||
A100: #C5C6CB,
|
|
||||||
A200: #9EA1A9,
|
|
||||||
A400: #5C616F,
|
|
||||||
A700: #2D323E,
|
|
||||||
contrast: (
|
|
||||||
50: $black-87-opacity,
|
|
||||||
100: $black-87-opacity,
|
|
||||||
200: $black-87-opacity,
|
|
||||||
300: white,
|
|
||||||
400: white,
|
|
||||||
500: $white-87-opacity,
|
|
||||||
600: $white-87-opacity,
|
|
||||||
700: $white-87-opacity,
|
|
||||||
800: $white-87-opacity,
|
|
||||||
900: $white-87-opacity,
|
|
||||||
A100: $black-87-opacity,
|
|
||||||
A200: $white-87-opacity,
|
|
||||||
A400: $white-87-opacity,
|
|
||||||
A700: $white-87-opacity,
|
|
||||||
)
|
|
||||||
);
|
|
||||||
|
|
||||||
// Define the Material palettes
|
|
||||||
$primary: mat-palette($mat-fusedark);
|
|
||||||
$accent: mat-palette($mat-light-blue, 600, 400, 700);
|
|
||||||
$warn: mat-palette($mat-red);
|
|
||||||
|
|
||||||
// Create the Material theme object
|
|
||||||
$theme: mat-light-theme($primary, $accent, $warn);
|
|
||||||
|
|
||||||
// Store the background and foreground colors for easier access
|
|
||||||
$background: map-get($theme, background);
|
|
||||||
$foreground: map-get($theme, foreground);
|
|
||||||
|
|
||||||
// Force the input field font sizes to 16px
|
|
||||||
$typography: mat-typography-config(
|
|
||||||
$input: mat-typography-level(16px, 1.125, 400)
|
|
||||||
)
|
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
import { Inject, Injectable, InjectionToken } from '@angular/core';
|
import { Inject, Injectable, InjectionToken } from '@angular/core';
|
||||||
import { NavigationStart, Router } from '@angular/router';
|
import { Router, RoutesRecognized } from '@angular/router';
|
||||||
import { Platform } from '@angular/cdk/platform';
|
import { Platform } from '@angular/cdk/platform';
|
||||||
import { BehaviorSubject, Observable } from 'rxjs';
|
import { BehaviorSubject, Observable } from 'rxjs';
|
||||||
import { filter } from 'rxjs/operators';
|
import { filter } from 'rxjs/operators';
|
||||||
@@ -93,15 +93,18 @@ export class FuseConfigService
|
|||||||
// Set the config from the default config
|
// Set the config from the default config
|
||||||
this._configSubject = new BehaviorSubject(_.cloneDeep(this._defaultConfig));
|
this._configSubject = new BehaviorSubject(_.cloneDeep(this._defaultConfig));
|
||||||
|
|
||||||
// Reload the default config on every navigation start if
|
// Reload the default layout config on every RoutesRecognized event
|
||||||
// the current config is different from the default one
|
// if the current layout config is different from the default one
|
||||||
this._router.events
|
this._router.events
|
||||||
.pipe(filter(event => event instanceof NavigationStart))
|
.pipe(filter(event => event instanceof RoutesRecognized))
|
||||||
.subscribe(() => {
|
.subscribe(() => {
|
||||||
if ( !_.isEqual(this._configSubject.getValue(), this._defaultConfig) )
|
if ( !_.isEqual(this._configSubject.getValue().layout, this._defaultConfig.layout) )
|
||||||
{
|
{
|
||||||
// Clone the default config
|
// Clone the current config
|
||||||
const config = _.cloneDeep(this._defaultConfig);
|
const config = _.cloneDeep(this._configSubject.getValue());
|
||||||
|
|
||||||
|
// Reset the layout from the default config
|
||||||
|
config.layout = _.cloneDeep(this._defaultConfig.layout);
|
||||||
|
|
||||||
// Set the config
|
// Set the config
|
||||||
this._configSubject.next(config);
|
this._configSubject.next(config);
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
import { MediaChange, ObservableMedia } from '@angular/flex-layout';
|
import { MediaChange, ObservableMedia } from '@angular/flex-layout';
|
||||||
import { Injectable } from '@angular/core';
|
import { Injectable } from '@angular/core';
|
||||||
import { BehaviorSubject } from 'rxjs';
|
import { BehaviorSubject } from 'rxjs';
|
||||||
|
import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
|
||||||
|
|
||||||
@Injectable({
|
@Injectable({
|
||||||
providedIn: 'root'
|
providedIn: 'root'
|
||||||
@@ -38,7 +39,11 @@ export class FuseMatchMediaService
|
|||||||
*/
|
*/
|
||||||
private _init(): void
|
private _init(): void
|
||||||
{
|
{
|
||||||
this._observableMedia
|
this._observableMedia.asObservable()
|
||||||
|
.pipe(
|
||||||
|
debounceTime(500),
|
||||||
|
distinctUntilChanged()
|
||||||
|
)
|
||||||
.subscribe((change: MediaChange) => {
|
.subscribe((change: MediaChange) => {
|
||||||
if ( this.activeMediaQuery !== change.mqAlias )
|
if ( this.activeMediaQuery !== change.mqAlias )
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -3,6 +3,8 @@ import { DOCUMENT } from '@angular/common';
|
|||||||
import { animate, AnimationBuilder, AnimationPlayer, style } from '@angular/animations';
|
import { animate, AnimationBuilder, AnimationPlayer, style } from '@angular/animations';
|
||||||
import { NavigationEnd, Router } from '@angular/router';
|
import { NavigationEnd, Router } from '@angular/router';
|
||||||
|
|
||||||
|
import { filter, take } from 'rxjs/operators';
|
||||||
|
|
||||||
@Injectable({
|
@Injectable({
|
||||||
providedIn: 'root'
|
providedIn: 'root'
|
||||||
})
|
})
|
||||||
@@ -46,19 +48,16 @@ export class FuseSplashScreenService
|
|||||||
if ( this.splashScreenEl )
|
if ( this.splashScreenEl )
|
||||||
{
|
{
|
||||||
// Hide it on the first NavigationEnd event
|
// Hide it on the first NavigationEnd event
|
||||||
const hideOnLoad = this._router.events.subscribe((event) => {
|
this._router.events
|
||||||
if ( event instanceof NavigationEnd )
|
.pipe(
|
||||||
{
|
filter((event => event instanceof NavigationEnd)),
|
||||||
setTimeout(() => {
|
take(1)
|
||||||
this.hide();
|
)
|
||||||
|
.subscribe(() => {
|
||||||
// Unsubscribe from this event so it
|
setTimeout(() => {
|
||||||
// won't get triggered again
|
this.hide();
|
||||||
hideOnLoad.unsubscribe();
|
});
|
||||||
}, 0);
|
});
|
||||||
}
|
|
||||||
}
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,25 +1,33 @@
|
|||||||
export interface FuseConfig
|
export interface FuseConfig
|
||||||
{
|
{
|
||||||
|
colorTheme: string;
|
||||||
|
customScrollbars: boolean;
|
||||||
layout: {
|
layout: {
|
||||||
style: string,
|
style: string,
|
||||||
width: 'fullwidth' | 'boxed',
|
width: 'fullwidth' | 'boxed',
|
||||||
navbar: {
|
navbar: {
|
||||||
background: string,
|
primaryBackground: string,
|
||||||
|
secondaryBackground: string,
|
||||||
hidden: boolean,
|
hidden: boolean,
|
||||||
folded: boolean,
|
folded: boolean,
|
||||||
position: 'left' | 'right' | 'top',
|
position: 'left' | 'right' | 'top',
|
||||||
variant: string
|
variant: string
|
||||||
},
|
},
|
||||||
toolbar: {
|
toolbar: {
|
||||||
|
customBackgroundColor: boolean,
|
||||||
background: string,
|
background: string,
|
||||||
hidden: boolean,
|
hidden: boolean,
|
||||||
position: 'above' | 'above-static' | 'above-fixed' | 'below' | 'below-static' | 'below-fixed'
|
position: 'above' | 'above-static' | 'above-fixed' | 'below' | 'below-static' | 'below-fixed'
|
||||||
}
|
}
|
||||||
footer: {
|
footer: {
|
||||||
|
customBackgroundColor: boolean,
|
||||||
background: string,
|
background: string,
|
||||||
hidden: boolean,
|
hidden: boolean,
|
||||||
position: 'above' | 'above-static' | 'above-fixed' | 'below' | 'below-static' | 'below-fixed'
|
position: 'above' | 'above-static' | 'above-fixed' | 'below' | 'below-static' | 'below-fixed'
|
||||||
|
},
|
||||||
|
sidepanel: {
|
||||||
|
hidden: boolean,
|
||||||
|
position: 'left' | 'right'
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
customScrollbars: boolean;
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,29 +1,40 @@
|
|||||||
|
<!-- PROGRESS BAR -->
|
||||||
|
<fuse-progress-bar></fuse-progress-bar>
|
||||||
|
<!-- / PROGRESS BAR -->
|
||||||
|
|
||||||
<!-- VERTICAL LAYOUT 1 -->
|
<!-- VERTICAL LAYOUT 1 -->
|
||||||
<ng-container *ngIf="fuseConfig.layout.style === 'vertical-layout-1'">
|
<ng-container *ngIf="fuseConfig.layout.style === 'vertical-layout-1'">
|
||||||
<vertical-layout-1></vertical-layout-1>
|
<vertical-layout-1></vertical-layout-1>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
|
<!-- / VERTICAL LAYOUT 1 -->
|
||||||
|
|
||||||
<!-- VERTICAL LAYOUT 2 -->
|
<!-- VERTICAL LAYOUT 2 -->
|
||||||
<ng-container *ngIf="fuseConfig.layout.style === 'vertical-layout-2'">
|
<ng-container *ngIf="fuseConfig.layout.style === 'vertical-layout-2'">
|
||||||
<vertical-layout-2></vertical-layout-2>
|
<vertical-layout-2></vertical-layout-2>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
|
<!-- / VERTICAL LAYOUT 2 -->
|
||||||
|
|
||||||
<!-- VERTICAL LAYOUT 3 -->
|
<!-- VERTICAL LAYOUT 3 -->
|
||||||
<ng-container *ngIf="fuseConfig.layout.style === 'vertical-layout-3'">
|
<ng-container *ngIf="fuseConfig.layout.style === 'vertical-layout-3'">
|
||||||
<vertical-layout-3></vertical-layout-3>
|
<vertical-layout-3></vertical-layout-3>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
|
<!-- / VERTICAL LAYOUT 3 -->
|
||||||
|
|
||||||
<!-- HORIZONTAL LAYOUT 1 -->
|
<!-- HORIZONTAL LAYOUT 1 -->
|
||||||
<ng-container *ngIf="fuseConfig.layout.style === 'horizontal-layout-1'">
|
<ng-container *ngIf="fuseConfig.layout.style === 'horizontal-layout-1'">
|
||||||
<horizontal-layout-1></horizontal-layout-1>
|
<horizontal-layout-1></horizontal-layout-1>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
|
<!-- / HORIZONTAL LAYOUT 1 -->
|
||||||
|
|
||||||
<!-- THEME OPTIONS PANEL -->
|
<!-- THEME OPTIONS PANEL -->
|
||||||
<button mat-icon-button class="mat-primary-bg mat-elevation-z2 theme-options-button"
|
<button mat-icon-button class="warn mat-elevation-z2 theme-options-button"
|
||||||
|
[ngClass]="{'right-side-panel': fuseConfig.layout.sidepanel.position === 'right',
|
||||||
|
'side-panel-hidden': fuseConfig.layout.sidepanel.hidden === true}"
|
||||||
(click)="toggleSidebarOpen('themeOptionsPanel')">
|
(click)="toggleSidebarOpen('themeOptionsPanel')">
|
||||||
<mat-icon>settings</mat-icon>
|
<mat-icon>settings</mat-icon>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<fuse-sidebar name="themeOptionsPanel" class="theme-options-sidebar" position="right" [invisibleOverlay]="true">
|
<fuse-sidebar name="themeOptionsPanel" class="theme-options-sidebar" position="right" [invisibleOverlay]="true">
|
||||||
<fuse-theme-options></fuse-theme-options>
|
<fuse-theme-options></fuse-theme-options>
|
||||||
</fuse-sidebar>
|
</fuse-sidebar>
|
||||||
|
<!-- / THEME OPTIONS PANEL -->
|
||||||
@@ -11,7 +11,7 @@
|
|||||||
.theme-options-button {
|
.theme-options-button {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 160px;
|
top: 160px;
|
||||||
right: 70px;
|
right: 0;
|
||||||
width: 48px;
|
width: 48px;
|
||||||
height: 48px;
|
height: 48px;
|
||||||
line-height: 48px;
|
line-height: 48px;
|
||||||
@@ -23,8 +23,15 @@
|
|||||||
opacity: .90;
|
opacity: .90;
|
||||||
z-index: 998;
|
z-index: 998;
|
||||||
|
|
||||||
@include media-breakpoint-down('md') {
|
&.right-side-panel {
|
||||||
right: 0;
|
|
||||||
|
@include media-breakpoint-up('lg') {
|
||||||
|
right: 70px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&.side-panel-hidden {
|
||||||
|
right: 0 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
mat-icon {
|
mat-icon {
|
||||||
|
|||||||
@@ -1,4 +1,6 @@
|
|||||||
import { Component, OnDestroy, OnInit } from '@angular/core';
|
import { Component, Inject, OnDestroy, OnInit } from '@angular/core';
|
||||||
|
import { DOCUMENT } from '@angular/common';
|
||||||
|
import { Platform } from '@angular/cdk/platform';
|
||||||
import { TranslateService } from '@ngx-translate/core';
|
import { TranslateService } from '@ngx-translate/core';
|
||||||
import { Subject } from 'rxjs';
|
import { Subject } from 'rxjs';
|
||||||
import { takeUntil } from 'rxjs/operators';
|
import { takeUntil } from 'rxjs/operators';
|
||||||
@@ -20,8 +22,8 @@ import { locale as navigationTurkish } from 'app/navigation/i18n/tr';
|
|||||||
})
|
})
|
||||||
export class AppComponent implements OnInit, OnDestroy
|
export class AppComponent implements OnInit, OnDestroy
|
||||||
{
|
{
|
||||||
navigation: any;
|
|
||||||
fuseConfig: any;
|
fuseConfig: any;
|
||||||
|
navigation: any;
|
||||||
|
|
||||||
// Private
|
// Private
|
||||||
private _unsubscribeAll: Subject<any>;
|
private _unsubscribeAll: Subject<any>;
|
||||||
@@ -29,20 +31,24 @@ export class AppComponent implements OnInit, OnDestroy
|
|||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
*
|
*
|
||||||
|
* @param {DOCUMENT} document
|
||||||
* @param {FuseConfigService} _fuseConfigService
|
* @param {FuseConfigService} _fuseConfigService
|
||||||
* @param {FuseNavigationService} _fuseNavigationService
|
* @param {FuseNavigationService} _fuseNavigationService
|
||||||
* @param {FuseSidebarService} _fuseSidebarService
|
* @param {FuseSidebarService} _fuseSidebarService
|
||||||
* @param {FuseSplashScreenService} _fuseSplashScreenService
|
* @param {FuseSplashScreenService} _fuseSplashScreenService
|
||||||
* @param {FuseTranslationLoaderService} _fuseTranslationLoaderService
|
* @param {FuseTranslationLoaderService} _fuseTranslationLoaderService
|
||||||
|
* @param {Platform} _platform
|
||||||
* @param {TranslateService} _translateService
|
* @param {TranslateService} _translateService
|
||||||
*/
|
*/
|
||||||
constructor(
|
constructor(
|
||||||
|
@Inject(DOCUMENT) private document: any,
|
||||||
private _fuseConfigService: FuseConfigService,
|
private _fuseConfigService: FuseConfigService,
|
||||||
private _fuseNavigationService: FuseNavigationService,
|
private _fuseNavigationService: FuseNavigationService,
|
||||||
private _fuseSidebarService: FuseSidebarService,
|
private _fuseSidebarService: FuseSidebarService,
|
||||||
private _fuseSplashScreenService: FuseSplashScreenService,
|
private _fuseSplashScreenService: FuseSplashScreenService,
|
||||||
private _fuseTranslationLoaderService: FuseTranslationLoaderService,
|
private _fuseTranslationLoaderService: FuseTranslationLoaderService,
|
||||||
private _translateService: TranslateService
|
private _translateService: TranslateService,
|
||||||
|
private _platform: Platform
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
// Get default navigation
|
// Get default navigation
|
||||||
@@ -66,6 +72,42 @@ export class AppComponent implements OnInit, OnDestroy
|
|||||||
// Use a language
|
// Use a language
|
||||||
this._translateService.use('en');
|
this._translateService.use('en');
|
||||||
|
|
||||||
|
/**
|
||||||
|
* ------------------------------------------------------------------
|
||||||
|
* ngxTranslate Fix Start
|
||||||
|
* ------------------------------------------------------------------
|
||||||
|
* If you are using a language other than the default one, i.e. Turkish in this case,
|
||||||
|
* you may encounter an issue where some of the components are not actually being
|
||||||
|
* translated when your app first initialized.
|
||||||
|
*
|
||||||
|
* This is related to ngxTranslate module and below there is a temporary fix while we
|
||||||
|
* are moving the multi language implementation over to the Angular's core language
|
||||||
|
* service.
|
||||||
|
**/
|
||||||
|
|
||||||
|
// Set the default language to 'en' and then back to 'tr'.
|
||||||
|
// '.use' cannot be used here as ngxTranslate won't switch to a language that's already
|
||||||
|
// been selected and there is no way to force it, so we overcome the issue by switching
|
||||||
|
// the default language back and forth.
|
||||||
|
/**
|
||||||
|
setTimeout(() => {
|
||||||
|
this._translateService.setDefaultLang('en');
|
||||||
|
this._translateService.setDefaultLang('tr');
|
||||||
|
});
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* ------------------------------------------------------------------
|
||||||
|
* ngxTranslate Fix End
|
||||||
|
* ------------------------------------------------------------------
|
||||||
|
*/
|
||||||
|
|
||||||
|
// Add is-mobile class to the body if the platform is mobile
|
||||||
|
if ( this._platform.ANDROID || this._platform.IOS )
|
||||||
|
{
|
||||||
|
this.document.body.classList.add('is-mobile');
|
||||||
|
}
|
||||||
|
|
||||||
// Set the private defaults
|
// Set the private defaults
|
||||||
this._unsubscribeAll = new Subject();
|
this._unsubscribeAll = new Subject();
|
||||||
}
|
}
|
||||||
@@ -83,7 +125,31 @@ export class AppComponent implements OnInit, OnDestroy
|
|||||||
this._fuseConfigService.config
|
this._fuseConfigService.config
|
||||||
.pipe(takeUntil(this._unsubscribeAll))
|
.pipe(takeUntil(this._unsubscribeAll))
|
||||||
.subscribe((config) => {
|
.subscribe((config) => {
|
||||||
|
|
||||||
this.fuseConfig = config;
|
this.fuseConfig = config;
|
||||||
|
|
||||||
|
// Boxed
|
||||||
|
if ( this.fuseConfig.layout.width === 'boxed' )
|
||||||
|
{
|
||||||
|
this.document.body.classList.add('boxed');
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
this.document.body.classList.remove('boxed');
|
||||||
|
}
|
||||||
|
|
||||||
|
// Color theme - Use normal for loop for IE11 compatibility
|
||||||
|
for ( let i = 0; i < this.document.body.classList.length; i++ )
|
||||||
|
{
|
||||||
|
const className = this.document.body.classList[i];
|
||||||
|
|
||||||
|
if ( className.startsWith('theme-') )
|
||||||
|
{
|
||||||
|
this.document.body.classList.remove(className);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
this.document.body.classList.add(this.fuseConfig.colorTheme);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ import 'hammerjs';
|
|||||||
|
|
||||||
import { FuseModule } from '@fuse/fuse.module';
|
import { FuseModule } from '@fuse/fuse.module';
|
||||||
import { FuseSharedModule } from '@fuse/shared.module';
|
import { FuseSharedModule } from '@fuse/shared.module';
|
||||||
import { FuseSidebarModule, FuseThemeOptionsModule } from '@fuse/components';
|
import { FuseProgressBarModule, FuseSidebarModule, FuseThemeOptionsModule } from '@fuse/components';
|
||||||
|
|
||||||
import { fuseConfig } from 'app/fuse-config';
|
import { fuseConfig } from 'app/fuse-config';
|
||||||
|
|
||||||
@@ -72,6 +72,7 @@ const appRoutes: Routes = [
|
|||||||
|
|
||||||
// Fuse modules
|
// Fuse modules
|
||||||
FuseModule.forRoot(fuseConfig),
|
FuseModule.forRoot(fuseConfig),
|
||||||
|
FuseProgressBarModule,
|
||||||
FuseSharedModule,
|
FuseSharedModule,
|
||||||
FuseSidebarModule,
|
FuseSidebarModule,
|
||||||
FuseThemeOptionsModule,
|
FuseThemeOptionsModule,
|
||||||
|
|||||||
306
src/app/app.theme.scss
Normal file
306
src/app/app.theme.scss
Normal file
@@ -0,0 +1,306 @@
|
|||||||
|
// -----------------------------------------------------------------------------------------------------
|
||||||
|
// @ Custom color maps for Fuse
|
||||||
|
// -----------------------------------------------------------------------------------------------------
|
||||||
|
$fuse-white: (
|
||||||
|
500: white,
|
||||||
|
contrast: (
|
||||||
|
500: $dark-primary-text
|
||||||
|
)
|
||||||
|
);
|
||||||
|
|
||||||
|
$fuse-black: (
|
||||||
|
500: black,
|
||||||
|
contrast: (
|
||||||
|
500: $light-primary-text,
|
||||||
|
)
|
||||||
|
);
|
||||||
|
|
||||||
|
$fuse-navy: (
|
||||||
|
50: #ECECEE,
|
||||||
|
100: #C5C6CB,
|
||||||
|
200: #9EA1A9,
|
||||||
|
300: #7D818C,
|
||||||
|
400: #5C616F,
|
||||||
|
500: #3C4252,
|
||||||
|
600: #353A48,
|
||||||
|
700: #2D323E,
|
||||||
|
800: #262933,
|
||||||
|
900: #1E2129,
|
||||||
|
A100: #C5C6CB,
|
||||||
|
A200: #9EA1A9,
|
||||||
|
A400: #5C616F,
|
||||||
|
A700: #2D323E,
|
||||||
|
contrast: (
|
||||||
|
50: $dark-primary-text,
|
||||||
|
100: $dark-primary-text,
|
||||||
|
200: $dark-primary-text,
|
||||||
|
300: $light-primary-text,
|
||||||
|
400: $light-primary-text,
|
||||||
|
500: $light-primary-text,
|
||||||
|
600: $light-primary-text,
|
||||||
|
700: $light-primary-text,
|
||||||
|
800: $light-primary-text,
|
||||||
|
900: $light-primary-text,
|
||||||
|
A100: $dark-primary-text,
|
||||||
|
A200: $light-primary-text,
|
||||||
|
A400: $light-primary-text,
|
||||||
|
A700: $light-primary-text,
|
||||||
|
)
|
||||||
|
);
|
||||||
|
|
||||||
|
// Generate Fuse color classes for custom palettes
|
||||||
|
$custom_palettes: (
|
||||||
|
fuse-white: $fuse-white,
|
||||||
|
fuse-black: $fuse-black,
|
||||||
|
fuse-navy: $fuse-navy
|
||||||
|
);
|
||||||
|
|
||||||
|
@include fuse-color-classes($custom_palettes);
|
||||||
|
|
||||||
|
// -----------------------------------------------------------------------------------------------------
|
||||||
|
// @ Typography
|
||||||
|
// -----------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
// Force the input field font sizes to 16px
|
||||||
|
$typography: mat-typography-config(
|
||||||
|
$input: mat-typography-level(16px, 1.125, 400)
|
||||||
|
);
|
||||||
|
|
||||||
|
// Setup the typography
|
||||||
|
@include angular-material-typography($typography);
|
||||||
|
|
||||||
|
// -----------------------------------------------------------------------------------------------------
|
||||||
|
// @ Component theming
|
||||||
|
// -----------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
// Import app and page component themes here to enable theming for them
|
||||||
|
@import "src/app/layout/components/chat-panel/chat-panel.theme";
|
||||||
|
@import "src/app/layout/components/toolbar/toolbar.theme";
|
||||||
|
|
||||||
|
@import "src/app/main/apps/academy/academy.theme";
|
||||||
|
@import "src/app/main/apps/calendar/calendar.theme";
|
||||||
|
@import "src/app/main/apps/chat/chat.theme";
|
||||||
|
@import "src/app/main/apps/contacts/contacts.theme";
|
||||||
|
@import "src/app/main/apps/dashboards/project/project.theme";
|
||||||
|
@import "src/app/main/apps/file-manager/file-manager.theme";
|
||||||
|
@import "src/app/main/apps/mail/mail.theme";
|
||||||
|
@import "src/app/main/apps/mail-ngrx/mail.theme";
|
||||||
|
@import "src/app/main/apps/scrumboard/scrumboard.theme";
|
||||||
|
@import "src/app/main/apps/todo/todo.theme";
|
||||||
|
|
||||||
|
@import "src/app/main/pages/authentication/login/login.theme";
|
||||||
|
@import "src/app/main/pages/authentication/login-2/login-2.theme";
|
||||||
|
@import "src/app/main/pages/authentication/register/register.theme";
|
||||||
|
@import "src/app/main/pages/authentication/register-2/register-2.theme";
|
||||||
|
@import "src/app/main/pages/authentication/reset-password/reset-password.theme";
|
||||||
|
@import "src/app/main/pages/authentication/reset-password-2/reset-password-2.theme";
|
||||||
|
@import "src/app/main/pages/authentication/forgot-password/forgot-password.theme";
|
||||||
|
@import "src/app/main/pages/authentication/forgot-password-2/forgot-password-2.theme";
|
||||||
|
@import "src/app/main/pages/authentication/lock/lock.theme";
|
||||||
|
@import "src/app/main/pages/authentication/mail-confirm/mail-confirm.theme";
|
||||||
|
@import "src/app/main/pages/coming-soon/coming-soon.theme";
|
||||||
|
@import "src/app/main/pages/errors/404/error-404.theme";
|
||||||
|
@import "src/app/main/pages/errors/500/error-500.theme";
|
||||||
|
@import "src/app/main/pages/maintenance/maintenance.theme";
|
||||||
|
@import "src/app/main/pages/pricing/style-1/style-1.theme";
|
||||||
|
@import "src/app/main/pages/pricing/style-2/style-2.theme";
|
||||||
|
@import "src/app/main/pages/pricing/style-3/style-3.theme";
|
||||||
|
@import "src/app/main/pages/profile/tabs/about/about.theme";
|
||||||
|
@import "src/app/main/pages/profile/tabs/photos-videos/photos-videos.theme";
|
||||||
|
@import "src/app/main/pages/profile/tabs/timeline/timeline.theme";
|
||||||
|
@import "src/app/main/pages/faq/faq.theme";
|
||||||
|
@import "src/app/main/pages/knowledge-base/knowledge-base.theme";
|
||||||
|
|
||||||
|
@import "src/app/main/documentation/components/cards/cards.theme";
|
||||||
|
|
||||||
|
@import "src/app/main/angular-material-elements/example-viewer/example-viewer.theme";
|
||||||
|
|
||||||
|
// Define a mixin for easier access
|
||||||
|
@mixin components-theme($theme) {
|
||||||
|
|
||||||
|
// Layout components
|
||||||
|
@include chat-panel-theme($theme);
|
||||||
|
@include toolbar-theme($theme);
|
||||||
|
|
||||||
|
// Apps
|
||||||
|
@include academy-theme($theme);
|
||||||
|
@include calendar-theme($theme);
|
||||||
|
@include chat-theme($theme);
|
||||||
|
@include contacts-theme($theme);
|
||||||
|
@include dashboards-project-theme($theme);
|
||||||
|
@include file-manager-theme($theme);
|
||||||
|
@include mail-theme($theme);
|
||||||
|
@include mail-ngrx-theme($theme);
|
||||||
|
@include scrumboard-theme($theme);
|
||||||
|
@include todo-theme($theme);
|
||||||
|
|
||||||
|
// Pages
|
||||||
|
@include login-theme($theme);
|
||||||
|
@include login-2-theme($theme);
|
||||||
|
@include register-theme($theme);
|
||||||
|
@include register-2-theme($theme);
|
||||||
|
@include reset-password-theme($theme);
|
||||||
|
@include reset-password-2-theme($theme);
|
||||||
|
@include forgot-password-theme($theme);
|
||||||
|
@include forgot-password-2-theme($theme);
|
||||||
|
@include lock-theme($theme);
|
||||||
|
@include mail-confirm-theme($theme);
|
||||||
|
@include coming-soon-theme($theme);
|
||||||
|
@include error-404-theme($theme);
|
||||||
|
@include error-500-theme($theme);
|
||||||
|
@include maintenance-theme($theme);
|
||||||
|
@include pricing-style-1-theme($theme);
|
||||||
|
@include pricing-style-2-theme($theme);
|
||||||
|
@include pricing-style-3-theme($theme);
|
||||||
|
@include profile-about-theme($theme);
|
||||||
|
@include profile-photos-videos-theme($theme);
|
||||||
|
@include profile-timeline-theme($theme);
|
||||||
|
@include faq-theme($theme);
|
||||||
|
@include knowledge-base-theme($theme);
|
||||||
|
|
||||||
|
// Docs
|
||||||
|
@include docs-components-cards-theme($theme);
|
||||||
|
|
||||||
|
// Example Viewer
|
||||||
|
@include example-viewer-theme($theme);
|
||||||
|
}
|
||||||
|
|
||||||
|
// -----------------------------------------------------------------------------------------------------
|
||||||
|
// @ Define the default theme
|
||||||
|
// -----------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
// Define the primary, accent and warn palettes
|
||||||
|
$default-primary-palette: mat-palette($fuse-navy);
|
||||||
|
$default-accent-palette: mat-palette($mat-light-blue, 600, 400, 700);
|
||||||
|
$default-warn-palette: mat-palette($mat-red);
|
||||||
|
|
||||||
|
// Create the Material theme object
|
||||||
|
$theme: mat-light-theme($default-primary-palette, $default-accent-palette, $default-warn-palette);
|
||||||
|
|
||||||
|
// Add ".theme-default" class to the body to activate this theme.
|
||||||
|
// Class name must start with "theme-" !!!
|
||||||
|
body.theme-default {
|
||||||
|
|
||||||
|
// Create an Angular Material theme from the $theme map
|
||||||
|
@include angular-material-theme($theme);
|
||||||
|
|
||||||
|
// Apply the theme to the Fuse Core
|
||||||
|
@include fuse-core-theme($theme);
|
||||||
|
|
||||||
|
// Apply the theme to the user components
|
||||||
|
@include components-theme($theme);
|
||||||
|
|
||||||
|
// Generate Fuse color classes for primary, accent and warn colors
|
||||||
|
$palettes: (
|
||||||
|
primary: $default-primary-palette,
|
||||||
|
accent: $default-accent-palette,
|
||||||
|
warn: $default-warn-palette
|
||||||
|
);
|
||||||
|
|
||||||
|
@include fuse-color-classes($palettes);
|
||||||
|
}
|
||||||
|
|
||||||
|
// -----------------------------------------------------------------------------------------------------
|
||||||
|
// @ Define a yellow light theme
|
||||||
|
// -----------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
// Define the primary, accent and warn palettes
|
||||||
|
$yellow-light-theme-primary-palette: mat-palette($fuse-navy, 600, 400, 700);
|
||||||
|
$yellow-light-theme-accent-palette: mat-palette($mat-yellow, 600, 400, 700);
|
||||||
|
$yellow-light-theme-warn-palette: mat-palette($mat-red);
|
||||||
|
|
||||||
|
// Create the Material theme object
|
||||||
|
$yellow-light-theme: mat-light-theme($yellow-light-theme-primary-palette, $yellow-light-theme-accent-palette, $yellow-light-theme-warn-palette);
|
||||||
|
|
||||||
|
// Add ".theme-yellow-light" class to the body to activate this theme.
|
||||||
|
// Class name must start with "theme-" !!!
|
||||||
|
body.theme-yellow-light {
|
||||||
|
|
||||||
|
// Generate the Angular Material theme
|
||||||
|
@include angular-material-theme($yellow-light-theme);
|
||||||
|
|
||||||
|
// Apply the theme to the Fuse Core
|
||||||
|
@include fuse-core-theme($yellow-light-theme);
|
||||||
|
|
||||||
|
// Apply the theme to the user components
|
||||||
|
@include components-theme($yellow-light-theme);
|
||||||
|
|
||||||
|
// Generate Fuse color classes for primary, accent and warn colors
|
||||||
|
$palettes: (
|
||||||
|
primary: $yellow-light-theme-primary-palette,
|
||||||
|
accent: $yellow-light-theme-accent-palette,
|
||||||
|
warn: $yellow-light-theme-warn-palette
|
||||||
|
);
|
||||||
|
|
||||||
|
@include fuse-color-classes($palettes);
|
||||||
|
}
|
||||||
|
|
||||||
|
// -----------------------------------------------------------------------------------------------------
|
||||||
|
// @ Define a blue-gray dark theme
|
||||||
|
// -----------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
// Define the primary, accent and warn palettes
|
||||||
|
$blue-gray-dark-theme-primary-palette: mat-palette($mat-blue);
|
||||||
|
$blue-gray-dark-theme-accent-palette: mat-palette($mat-blue-gray);
|
||||||
|
$blue-gray-dark-theme-warn-palette: mat-palette($mat-red);
|
||||||
|
|
||||||
|
// Create the Material theme object
|
||||||
|
$blue-gray-dark-theme: mat-dark-theme($blue-gray-dark-theme-primary-palette, $blue-gray-dark-theme-accent-palette, $blue-gray-dark-theme-warn-palette);
|
||||||
|
|
||||||
|
// Add ".theme-blue-gray-dark" class to the body to activate this theme.
|
||||||
|
// Class name must start with "theme-" !!!
|
||||||
|
body.theme-blue-gray-dark {
|
||||||
|
|
||||||
|
// Generate the Angular Material theme
|
||||||
|
@include angular-material-theme($blue-gray-dark-theme);
|
||||||
|
|
||||||
|
// Apply the theme to the Fuse Core
|
||||||
|
@include fuse-core-theme($blue-gray-dark-theme);
|
||||||
|
|
||||||
|
// Apply the theme to the user components
|
||||||
|
@include components-theme($blue-gray-dark-theme);
|
||||||
|
|
||||||
|
// Generate Fuse color classes for primary, accent and warn colors
|
||||||
|
$palettes: (
|
||||||
|
primary: $blue-gray-dark-theme-primary-palette,
|
||||||
|
accent: $blue-gray-dark-theme-accent-palette,
|
||||||
|
warn: $blue-gray-dark-theme-warn-palette
|
||||||
|
);
|
||||||
|
|
||||||
|
@include fuse-color-classes($palettes);
|
||||||
|
}
|
||||||
|
|
||||||
|
// -----------------------------------------------------------------------------------------------------
|
||||||
|
// @ Define a pink dark theme
|
||||||
|
// -----------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
// Define the primary, accent and warn palettes
|
||||||
|
$pink-dark-theme-primary-palette: mat-palette($mat-pink);
|
||||||
|
$pink-dark-theme-accent-palette: mat-palette($mat-pink);
|
||||||
|
$pink-dark-theme-warn-palette: mat-palette($mat-red);
|
||||||
|
|
||||||
|
// Create the Material theme object
|
||||||
|
$pink-dark-theme: mat-dark-theme($pink-dark-theme-primary-palette, $pink-dark-theme-accent-palette, $pink-dark-theme-warn-palette);
|
||||||
|
|
||||||
|
// Add ".theme-pink-dark" class to the body to activate this theme.
|
||||||
|
// Class name must start with "theme-" !!!
|
||||||
|
body.theme-pink-dark {
|
||||||
|
|
||||||
|
// Generate the Angular Material theme
|
||||||
|
@include angular-material-theme($pink-dark-theme);
|
||||||
|
|
||||||
|
// Apply the theme to the Fuse Core
|
||||||
|
@include fuse-core-theme($pink-dark-theme);
|
||||||
|
|
||||||
|
// Apply the theme to the user components
|
||||||
|
@include components-theme($pink-dark-theme);
|
||||||
|
|
||||||
|
// Generate Fuse color classes for primary, accent and warn colors
|
||||||
|
$palettes: (
|
||||||
|
primary: $pink-dark-theme-primary-palette,
|
||||||
|
accent: $pink-dark-theme-accent-palette,
|
||||||
|
warn: $pink-dark-theme-warn-palette
|
||||||
|
);
|
||||||
|
|
||||||
|
@include fuse-color-classes($palettes);
|
||||||
|
}
|
||||||
@@ -6,21 +6,21 @@ export class ChatFakeDb
|
|||||||
'name' : 'Alice Freeman',
|
'name' : 'Alice Freeman',
|
||||||
'avatar': 'assets/images/avatars/alice.jpg',
|
'avatar': 'assets/images/avatars/alice.jpg',
|
||||||
'status': 'online',
|
'status': 'online',
|
||||||
'mood' : 'Lorem ipsum dolor sit amet, consectetur adipiscing elit...'
|
'mood' : 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'id' : '5725a680606588342058356d',
|
'id' : '5725a680606588342058356d',
|
||||||
'name' : 'Arnold',
|
'name' : 'Arnold',
|
||||||
'avatar': 'assets/images/avatars/Arnold.jpg',
|
'avatar': 'assets/images/avatars/Arnold.jpg',
|
||||||
'status': 'do-not-disturb',
|
'status': 'do-not-disturb',
|
||||||
'mood' : 'Lorem ipsum dolor sit amet, consectetur adipiscing elit...'
|
'mood' : 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'id' : '5725a68009e20d0a9e9acf2a',
|
'id' : '5725a68009e20d0a9e9acf2a',
|
||||||
'name' : 'Barrera',
|
'name' : 'Barrera',
|
||||||
'avatar': 'assets/images/avatars/Barrera.jpg',
|
'avatar': 'assets/images/avatars/Barrera.jpg',
|
||||||
'status': 'do-not-disturb',
|
'status': 'do-not-disturb',
|
||||||
'mood' : 'Lorem ipsum dolor sit amet, consectetur adipiscing elit...',
|
'mood' : 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.',
|
||||||
'unread': null
|
'unread': null
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -28,7 +28,7 @@ export class ChatFakeDb
|
|||||||
'name' : 'Blair',
|
'name' : 'Blair',
|
||||||
'avatar': 'assets/images/avatars/Blair.jpg',
|
'avatar': 'assets/images/avatars/Blair.jpg',
|
||||||
'status': 'offline',
|
'status': 'offline',
|
||||||
'mood' : 'Lorem ipsum dolor sit amet, consectetur adipiscing elit...',
|
'mood' : 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.',
|
||||||
'unread': 3
|
'unread': 3
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -36,112 +36,112 @@ export class ChatFakeDb
|
|||||||
'name' : 'Boyle',
|
'name' : 'Boyle',
|
||||||
'avatar': 'assets/images/avatars/Boyle.jpg',
|
'avatar': 'assets/images/avatars/Boyle.jpg',
|
||||||
'status': 'offline',
|
'status': 'offline',
|
||||||
'mood' : 'Lorem ipsum dolor sit amet, consectetur adipiscing elit...'
|
'mood' : 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'id' : '5725a68031fdbb1db2c1af47',
|
'id' : '5725a68031fdbb1db2c1af47',
|
||||||
'name' : 'Christy',
|
'name' : 'Christy',
|
||||||
'avatar': 'assets/images/avatars/Christy.jpg',
|
'avatar': 'assets/images/avatars/Christy.jpg',
|
||||||
'status': 'offline',
|
'status': 'offline',
|
||||||
'mood' : 'Lorem ipsum dolor sit amet, consectetur adipiscing elit...'
|
'mood' : 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'id' : '5725a680bc670af746c435e2',
|
'id' : '5725a680bc670af746c435e2',
|
||||||
'name' : 'Copeland',
|
'name' : 'Copeland',
|
||||||
'avatar': 'assets/images/avatars/Copeland.jpg',
|
'avatar': 'assets/images/avatars/Copeland.jpg',
|
||||||
'status': 'online',
|
'status': 'online',
|
||||||
'mood' : 'Lorem ipsum dolor sit amet, consectetur adipiscing elit...'
|
'mood' : 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'id' : '5725a680e7eb988a58ddf303',
|
'id' : '5725a680e7eb988a58ddf303',
|
||||||
'name' : 'Estes',
|
'name' : 'Estes',
|
||||||
'avatar': 'assets/images/avatars/Estes.jpg',
|
'avatar': 'assets/images/avatars/Estes.jpg',
|
||||||
'status': 'away',
|
'status': 'away',
|
||||||
'mood' : 'Lorem ipsum dolor sit amet, consectetur adipiscing elit...'
|
'mood' : 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'id' : '5725a680dcb077889f758961',
|
'id' : '5725a680dcb077889f758961',
|
||||||
'name' : 'Harper',
|
'name' : 'Harper',
|
||||||
'avatar': 'assets/images/avatars/Harper.jpg',
|
'avatar': 'assets/images/avatars/Harper.jpg',
|
||||||
'status': 'offline',
|
'status': 'offline',
|
||||||
'mood' : 'Lorem ipsum dolor sit amet, consectetur adipiscing elit...'
|
'mood' : 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'id' : '5725a6806acf030f9341e925',
|
'id' : '5725a6806acf030f9341e925',
|
||||||
'name' : 'Helen',
|
'name' : 'Helen',
|
||||||
'avatar': 'assets/images/avatars/Helen.jpg',
|
'avatar': 'assets/images/avatars/Helen.jpg',
|
||||||
'status': 'away',
|
'status': 'away',
|
||||||
'mood' : 'Lorem ipsum dolor sit amet, consectetur adipiscing elit...'
|
'mood' : 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'id' : '5725a680ae1ae9a3c960d487',
|
'id' : '5725a680ae1ae9a3c960d487',
|
||||||
'name' : 'Henderson',
|
'name' : 'Henderson',
|
||||||
'avatar': 'assets/images/avatars/Henderson.jpg',
|
'avatar': 'assets/images/avatars/Henderson.jpg',
|
||||||
'status': 'offline',
|
'status': 'offline',
|
||||||
'mood' : 'Lorem ipsum dolor sit amet, consectetur adipiscing elit...'
|
'mood' : 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'id' : '5725a680b8d240c011dd224b',
|
'id' : '5725a680b8d240c011dd224b',
|
||||||
'name' : 'Josefina',
|
'name' : 'Josefina',
|
||||||
'avatar': 'assets/images/avatars/Josefina.jpg',
|
'avatar': 'assets/images/avatars/Josefina.jpg',
|
||||||
'status': 'online',
|
'status': 'online',
|
||||||
'mood' : 'Lorem ipsum dolor sit amet, consectetur adipiscing elit...'
|
'mood' : 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'id' : '5725a68034cb3968e1f79eac',
|
'id' : '5725a68034cb3968e1f79eac',
|
||||||
'name' : 'Katina',
|
'name' : 'Katina',
|
||||||
'avatar': 'assets/images/avatars/Katina.jpg',
|
'avatar': 'assets/images/avatars/Katina.jpg',
|
||||||
'status': 'away',
|
'status': 'away',
|
||||||
'mood' : 'Lorem ipsum dolor sit amet, consectetur adipiscing elit...'
|
'mood' : 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'id' : '5725a6801146cce777df2a08',
|
'id' : '5725a6801146cce777df2a08',
|
||||||
'name' : 'Lily',
|
'name' : 'Lily',
|
||||||
'avatar': 'assets/images/avatars/Lily.jpg',
|
'avatar': 'assets/images/avatars/Lily.jpg',
|
||||||
'status': 'do-not-disturb',
|
'status': 'do-not-disturb',
|
||||||
'mood' : 'Lorem ipsum dolor sit amet, consectetur adipiscing elit...'
|
'mood' : 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'id' : '5725a6808a178bfd034d6ecf',
|
'id' : '5725a6808a178bfd034d6ecf',
|
||||||
'name' : 'Mai',
|
'name' : 'Mai',
|
||||||
'avatar': 'assets/images/avatars/Mai.jpg',
|
'avatar': 'assets/images/avatars/Mai.jpg',
|
||||||
'status': 'away',
|
'status': 'away',
|
||||||
'mood' : 'Lorem ipsum dolor sit amet, consectetur adipiscing elit...'
|
'mood' : 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'id' : '5725a680653c265f5c79b5a9',
|
'id' : '5725a680653c265f5c79b5a9',
|
||||||
'name' : 'Nancy',
|
'name' : 'Nancy',
|
||||||
'avatar': 'assets/images/avatars/Nancy.jpg',
|
'avatar': 'assets/images/avatars/Nancy.jpg',
|
||||||
'status': 'do-not-disturb',
|
'status': 'do-not-disturb',
|
||||||
'mood' : 'Lorem ipsum dolor sit amet, consectetur adipiscing elit...'
|
'mood' : 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'id' : '5725a680bbcec3cc32a8488a',
|
'id' : '5725a680bbcec3cc32a8488a',
|
||||||
'name' : 'Nora',
|
'name' : 'Nora',
|
||||||
'avatar': 'assets/images/avatars/Nora.jpg',
|
'avatar': 'assets/images/avatars/Nora.jpg',
|
||||||
'status': 'do-not-disturb',
|
'status': 'do-not-disturb',
|
||||||
'mood' : 'Lorem ipsum dolor sit amet, consectetur adipiscing elit...'
|
'mood' : 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'id' : '5725a6803d87f1b77e17b62b',
|
'id' : '5725a6803d87f1b77e17b62b',
|
||||||
'name' : 'Odessa',
|
'name' : 'Odessa',
|
||||||
'avatar': 'assets/images/avatars/Odessa.jpg',
|
'avatar': 'assets/images/avatars/Odessa.jpg',
|
||||||
'status': 'away',
|
'status': 'away',
|
||||||
'mood' : 'Lorem ipsum dolor sit amet, consectetur adipiscing elit...'
|
'mood' : 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'id' : '5725a680e87cb319bd9bd673',
|
'id' : '5725a680e87cb319bd9bd673',
|
||||||
'name' : 'Reyna',
|
'name' : 'Reyna',
|
||||||
'avatar': 'assets/images/avatars/Reyna.jpg',
|
'avatar': 'assets/images/avatars/Reyna.jpg',
|
||||||
'status': 'offline',
|
'status': 'offline',
|
||||||
'mood' : 'Lorem ipsum dolor sit amet, consectetur adipiscing elit...'
|
'mood' : 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'id' : '5725a6802d10e277a0f35775',
|
'id' : '5725a6802d10e277a0f35775',
|
||||||
'name' : 'Shauna',
|
'name' : 'Shauna',
|
||||||
'avatar': 'assets/images/avatars/Shauna.jpg',
|
'avatar': 'assets/images/avatars/Shauna.jpg',
|
||||||
'status': 'online',
|
'status': 'online',
|
||||||
'mood' : 'Lorem ipsum dolor sit amet, consectetur adipiscing elit...',
|
'mood' : 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.',
|
||||||
'unread': null
|
'unread': null
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -149,7 +149,7 @@ export class ChatFakeDb
|
|||||||
'name' : 'Shepard',
|
'name' : 'Shepard',
|
||||||
'avatar': 'assets/images/avatars/Shepard.jpg',
|
'avatar': 'assets/images/avatars/Shepard.jpg',
|
||||||
'status': 'online',
|
'status': 'online',
|
||||||
'mood' : 'Lorem ipsum dolor sit amet, consectetur adipiscing elit...'
|
'mood' : 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'id' : '5725a680cd7efa56a45aea5d',
|
'id' : '5725a680cd7efa56a45aea5d',
|
||||||
@@ -163,21 +163,21 @@ export class ChatFakeDb
|
|||||||
'name' : 'Trevino',
|
'name' : 'Trevino',
|
||||||
'avatar': 'assets/images/avatars/Trevino.jpg',
|
'avatar': 'assets/images/avatars/Trevino.jpg',
|
||||||
'status': 'away',
|
'status': 'away',
|
||||||
'mood' : 'Lorem ipsum dolor sit amet, consectetur adipiscing elit...'
|
'mood' : 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'id' : '5725a68018c663044be49cbf',
|
'id' : '5725a68018c663044be49cbf',
|
||||||
'name' : 'Tyson',
|
'name' : 'Tyson',
|
||||||
'avatar': 'assets/images/avatars/Tyson.jpg',
|
'avatar': 'assets/images/avatars/Tyson.jpg',
|
||||||
'status': 'do-not-disturb',
|
'status': 'do-not-disturb',
|
||||||
'mood' : 'Lorem ipsum dolor sit amet, consectetur adipiscing elit...'
|
'mood' : 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'id' : '5725a6809413bf8a0a5272b1',
|
'id' : '5725a6809413bf8a0a5272b1',
|
||||||
'name' : 'Velazquez',
|
'name' : 'Velazquez',
|
||||||
'avatar': 'assets/images/avatars/Velazquez.jpg',
|
'avatar': 'assets/images/avatars/Velazquez.jpg',
|
||||||
'status': 'online',
|
'status': 'online',
|
||||||
'mood' : 'Lorem ipsum dolor sit amet, consectetur adipiscing elit...'
|
'mood' : 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.'
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
@@ -302,6 +302,7 @@ export class ChatFakeDb
|
|||||||
'contactId' : '5725a680b3249760ea21de52',
|
'contactId' : '5725a680b3249760ea21de52',
|
||||||
'name' : 'Alice Freeman',
|
'name' : 'Alice Freeman',
|
||||||
'unread' : 4,
|
'unread' : 4,
|
||||||
|
'lastMessage' : 'You are the worst!',
|
||||||
'lastMessageTime': '2017-06-12T02:10:18.931Z'
|
'lastMessageTime': '2017-06-12T02:10:18.931Z'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -309,6 +310,7 @@ export class ChatFakeDb
|
|||||||
'contactId' : '5725a680b8d240c011dd224b',
|
'contactId' : '5725a680b8d240c011dd224b',
|
||||||
'name' : 'Josefina',
|
'name' : 'Josefina',
|
||||||
'unread' : null,
|
'unread' : null,
|
||||||
|
'lastMessage' : 'We are losing money! Quick!',
|
||||||
'lastMessageTime': '2017-02-18T10:30:18.931Z'
|
'lastMessageTime': '2017-02-18T10:30:18.931Z'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -316,6 +318,7 @@ export class ChatFakeDb
|
|||||||
'contactId' : '5725a6809413bf8a0a5272b1',
|
'contactId' : '5725a6809413bf8a0a5272b1',
|
||||||
'name' : 'Velazquez',
|
'name' : 'Velazquez',
|
||||||
'unread' : 2,
|
'unread' : 2,
|
||||||
|
'lastMessage' : 'Quickly come to the meeting room 1B, we have a big server issue',
|
||||||
'lastMessageTime': '2017-03-18T12:30:18.931Z'
|
'lastMessageTime': '2017-03-18T12:30:18.931Z'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -1622,7 +1622,7 @@ export class ProjectDashboardDb
|
|||||||
[
|
[
|
||||||
{
|
{
|
||||||
'value' : 'Wireframing',
|
'value' : 'Wireframing',
|
||||||
'classes': 'mat-primary-bg',
|
'classes': 'primary',
|
||||||
'icon' : ''
|
'icon' : ''
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -1654,7 +1654,7 @@ export class ProjectDashboardDb
|
|||||||
[
|
[
|
||||||
{
|
{
|
||||||
'value' : 'Design',
|
'value' : 'Design',
|
||||||
'classes': 'mat-green-bg',
|
'classes': 'green',
|
||||||
'icon' : ''
|
'icon' : ''
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -1686,7 +1686,7 @@ export class ProjectDashboardDb
|
|||||||
[
|
[
|
||||||
{
|
{
|
||||||
'value' : 'Coding',
|
'value' : 'Coding',
|
||||||
'classes': 'mat-red-bg',
|
'classes': 'red',
|
||||||
'icon' : ''
|
'icon' : ''
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -1718,7 +1718,7 @@ export class ProjectDashboardDb
|
|||||||
[
|
[
|
||||||
{
|
{
|
||||||
'value' : 'Marketing',
|
'value' : 'Marketing',
|
||||||
'classes': 'mat-accent-bg',
|
'classes': 'accent',
|
||||||
'icon' : ''
|
'icon' : ''
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -1750,7 +1750,7 @@ export class ProjectDashboardDb
|
|||||||
[
|
[
|
||||||
{
|
{
|
||||||
'value' : 'Extra',
|
'value' : 'Extra',
|
||||||
'classes': 'mat-orange-bg',
|
'classes': 'orange',
|
||||||
'icon' : ''
|
'icon' : ''
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,519 +1,5 @@
|
|||||||
export class ECommerceFakeDb
|
export class ECommerceFakeDb
|
||||||
{
|
{
|
||||||
public static dashboard = {
|
|
||||||
'widget1': {
|
|
||||||
'ranges' : {
|
|
||||||
'DY' : 'Yesterday',
|
|
||||||
'DT' : 'Today',
|
|
||||||
'DTM': 'Tomorrow'
|
|
||||||
},
|
|
||||||
'currentRange': 'DT',
|
|
||||||
'data' : {
|
|
||||||
'label': 'CONVERSION RATE',
|
|
||||||
'count': {
|
|
||||||
'DY' : 21,
|
|
||||||
'DT' : 25,
|
|
||||||
'DTM': 19
|
|
||||||
},
|
|
||||||
'extra': {
|
|
||||||
'label': 'Abandoned carts',
|
|
||||||
'count': {
|
|
||||||
'DY' : 3,
|
|
||||||
'DT' : 7,
|
|
||||||
'DTM': 8
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
'detail' : 'You can show some detailed information about this widget in here.'
|
|
||||||
},
|
|
||||||
'widget2': {
|
|
||||||
'title' : 'Average Order Value',
|
|
||||||
'data' : {
|
|
||||||
'label': '30 DAYS',
|
|
||||||
'count': 21,
|
|
||||||
'extra': {
|
|
||||||
'label': 'Last year same time',
|
|
||||||
'count': 14
|
|
||||||
}
|
|
||||||
},
|
|
||||||
'detail': 'You can show some detailed information about this widget in here.'
|
|
||||||
},
|
|
||||||
'widget3': {
|
|
||||||
'title' : 'Online Visitors',
|
|
||||||
'data' : {
|
|
||||||
'label': 'last 30 minutes',
|
|
||||||
'count': 32,
|
|
||||||
'extra': {
|
|
||||||
'label': 'Total visitors today',
|
|
||||||
'count': 998
|
|
||||||
}
|
|
||||||
},
|
|
||||||
'detail': 'You can show some detailed information about this widget in here.'
|
|
||||||
},
|
|
||||||
'widget4': {
|
|
||||||
'title' : 'Profit per Visitor',
|
|
||||||
'data' : {
|
|
||||||
'label': 'TODAY',
|
|
||||||
'count': '3,7',
|
|
||||||
'extra': {
|
|
||||||
'label': 'Yesterday',
|
|
||||||
'count': '2,90'
|
|
||||||
}
|
|
||||||
},
|
|
||||||
'detail': 'You can show some detailed information about this widget in here.'
|
|
||||||
},
|
|
||||||
'widget5': {
|
|
||||||
'title' : 'Sales',
|
|
||||||
'ranges' : {
|
|
||||||
'TW': 'This Week',
|
|
||||||
'LW': 'Last Week',
|
|
||||||
'2W': '2 Weeks Ago'
|
|
||||||
},
|
|
||||||
'mainChart': {
|
|
||||||
'2W': [
|
|
||||||
{
|
|
||||||
'name' : 'Mon',
|
|
||||||
'series': [
|
|
||||||
{
|
|
||||||
'name' : 'Sales',
|
|
||||||
'value': 9
|
|
||||||
},
|
|
||||||
{
|
|
||||||
'name' : 'Abandoned Carts',
|
|
||||||
'value': 37
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
'name' : 'Tue',
|
|
||||||
'series': [
|
|
||||||
{
|
|
||||||
'name' : 'Sales',
|
|
||||||
'value': 12
|
|
||||||
},
|
|
||||||
{
|
|
||||||
'name' : 'Abandoned Carts',
|
|
||||||
'value': 32
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
'name' : 'Wed',
|
|
||||||
'series': [
|
|
||||||
{
|
|
||||||
'name' : 'Sales',
|
|
||||||
'value': 9
|
|
||||||
},
|
|
||||||
{
|
|
||||||
'name' : 'Abandoned Carts',
|
|
||||||
'value': 39
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
'name' : 'Thu',
|
|
||||||
'series': [
|
|
||||||
{
|
|
||||||
'name' : 'Sales',
|
|
||||||
'value': 12
|
|
||||||
},
|
|
||||||
{
|
|
||||||
'name' : 'Abandoned Carts',
|
|
||||||
'value': 27
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
'name' : 'Fri',
|
|
||||||
'series': [
|
|
||||||
{
|
|
||||||
'name' : 'Sales',
|
|
||||||
'value': 7
|
|
||||||
},
|
|
||||||
{
|
|
||||||
'name' : 'Abandoned Carts',
|
|
||||||
'value': 18
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
'name' : 'Sat',
|
|
||||||
'series': [
|
|
||||||
{
|
|
||||||
'name' : 'Sales',
|
|
||||||
'value': 8
|
|
||||||
},
|
|
||||||
{
|
|
||||||
'name' : 'Abandoned Carts',
|
|
||||||
'value': 24
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
'name' : 'Sun',
|
|
||||||
'series': [
|
|
||||||
{
|
|
||||||
'name' : 'Sales',
|
|
||||||
'value': 16
|
|
||||||
},
|
|
||||||
{
|
|
||||||
'name' : 'Abandoned Carts',
|
|
||||||
'value': 20
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
],
|
|
||||||
'LW': [
|
|
||||||
{
|
|
||||||
'name' : 'Mon',
|
|
||||||
'series': [
|
|
||||||
{
|
|
||||||
'name' : 'Sales',
|
|
||||||
'value': 12
|
|
||||||
},
|
|
||||||
{
|
|
||||||
'name' : 'Abandoned Carts',
|
|
||||||
'value': 37
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
'name' : 'Tue',
|
|
||||||
'series': [
|
|
||||||
{
|
|
||||||
'name' : 'Sales',
|
|
||||||
'value': 8
|
|
||||||
},
|
|
||||||
{
|
|
||||||
'name' : 'Abandoned Carts',
|
|
||||||
'value': 24
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
'name' : 'Wed',
|
|
||||||
'series': [
|
|
||||||
{
|
|
||||||
'name' : 'Sales',
|
|
||||||
'value': 7
|
|
||||||
},
|
|
||||||
{
|
|
||||||
'name' : 'Abandoned Carts',
|
|
||||||
'value': 51
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
'name' : 'Thu',
|
|
||||||
'series': [
|
|
||||||
{
|
|
||||||
'name' : 'Sales',
|
|
||||||
'value': 13
|
|
||||||
},
|
|
||||||
{
|
|
||||||
'name' : 'Abandoned Carts',
|
|
||||||
'value': 31
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
'name' : 'Fri',
|
|
||||||
'series': [
|
|
||||||
{
|
|
||||||
'name' : 'Sales',
|
|
||||||
'value': 7
|
|
||||||
},
|
|
||||||
{
|
|
||||||
'name' : 'Abandoned Carts',
|
|
||||||
'value': 29
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
'name' : 'Sat',
|
|
||||||
'series': [
|
|
||||||
{
|
|
||||||
'name' : 'Sales',
|
|
||||||
'value': 6
|
|
||||||
},
|
|
||||||
{
|
|
||||||
'name' : 'Abandoned Carts',
|
|
||||||
'value': 17
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
'name' : 'Sun',
|
|
||||||
'series': [
|
|
||||||
{
|
|
||||||
'name' : 'Sales',
|
|
||||||
'value': 10
|
|
||||||
},
|
|
||||||
{
|
|
||||||
'name' : 'Abandoned Carts',
|
|
||||||
'value': 31
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
],
|
|
||||||
'TW': [
|
|
||||||
{
|
|
||||||
'name' : 'Mon',
|
|
||||||
'series': [
|
|
||||||
{
|
|
||||||
'name' : 'Sales',
|
|
||||||
'value': 11
|
|
||||||
},
|
|
||||||
{
|
|
||||||
'name' : 'Abandoned Carts',
|
|
||||||
'value': 42
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
'name' : 'Tue',
|
|
||||||
'series': [
|
|
||||||
{
|
|
||||||
'name' : 'Sales',
|
|
||||||
'value': 10
|
|
||||||
},
|
|
||||||
{
|
|
||||||
'name' : 'Abandoned Carts',
|
|
||||||
'value': 28
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
'name' : 'Wed',
|
|
||||||
'series': [
|
|
||||||
{
|
|
||||||
'name' : 'Sales',
|
|
||||||
'value': 8
|
|
||||||
},
|
|
||||||
{
|
|
||||||
'name' : 'Abandoned Carts',
|
|
||||||
'value': 43
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
'name' : 'Thu',
|
|
||||||
'series': [
|
|
||||||
{
|
|
||||||
'name' : 'Sales',
|
|
||||||
'value': 11
|
|
||||||
},
|
|
||||||
{
|
|
||||||
'name' : 'Abandoned Carts',
|
|
||||||
'value': 34
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
'name' : 'Fri',
|
|
||||||
'series': [
|
|
||||||
{
|
|
||||||
'name' : 'Sales',
|
|
||||||
'value': 8
|
|
||||||
},
|
|
||||||
{
|
|
||||||
'name' : 'Abandoned Carts',
|
|
||||||
'value': 20
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
'name' : 'Sat',
|
|
||||||
'series': [
|
|
||||||
{
|
|
||||||
'name' : 'Sales',
|
|
||||||
'value': 10
|
|
||||||
},
|
|
||||||
{
|
|
||||||
'name' : 'Abandoned Carts',
|
|
||||||
'value': 25
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
'name' : 'Sun',
|
|
||||||
'series': [
|
|
||||||
{
|
|
||||||
'name' : 'Sales',
|
|
||||||
'value': 17
|
|
||||||
},
|
|
||||||
{
|
|
||||||
'name' : 'Abandoned Carts',
|
|
||||||
'value': 22
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
'widget6': {
|
|
||||||
'title' : 'Top 5 Categories',
|
|
||||||
'ranges' : {
|
|
||||||
'TW': 'This Week',
|
|
||||||
'LW': 'Last Week',
|
|
||||||
'2W': '2 Weeks Ago'
|
|
||||||
},
|
|
||||||
'mainChart' : {
|
|
||||||
'2W': [
|
|
||||||
{
|
|
||||||
'name' : 'Women Dresses',
|
|
||||||
'value': 18
|
|
||||||
},
|
|
||||||
{
|
|
||||||
'name' : 'Men Shoes',
|
|
||||||
'value': 12
|
|
||||||
},
|
|
||||||
{
|
|
||||||
'name' : 'Women Shoes',
|
|
||||||
'value': 40
|
|
||||||
},
|
|
||||||
{
|
|
||||||
'name' : 'Women Bags',
|
|
||||||
'value': 20
|
|
||||||
},
|
|
||||||
{
|
|
||||||
'name' : 'Men T-Shirts',
|
|
||||||
'value': 10
|
|
||||||
}
|
|
||||||
],
|
|
||||||
'LW': [
|
|
||||||
{
|
|
||||||
'name' : 'Women Dresses',
|
|
||||||
'value': 17
|
|
||||||
},
|
|
||||||
{
|
|
||||||
'name' : 'Men Shoes',
|
|
||||||
'value': 14
|
|
||||||
},
|
|
||||||
{
|
|
||||||
'name' : 'Women Shoes',
|
|
||||||
'value': 36
|
|
||||||
},
|
|
||||||
{
|
|
||||||
'name' : 'Women Bags',
|
|
||||||
'value': 23
|
|
||||||
},
|
|
||||||
{
|
|
||||||
'name' : 'Men T-Shirts',
|
|
||||||
'value': 12
|
|
||||||
}
|
|
||||||
],
|
|
||||||
'TW': [
|
|
||||||
{
|
|
||||||
'name' : 'Women Dresses',
|
|
||||||
'value': 13
|
|
||||||
},
|
|
||||||
{
|
|
||||||
'name' : 'Men Shoes',
|
|
||||||
'value': 16
|
|
||||||
},
|
|
||||||
{
|
|
||||||
'name' : 'Women Shoes',
|
|
||||||
'value': 34
|
|
||||||
},
|
|
||||||
{
|
|
||||||
'name' : 'Women Bags',
|
|
||||||
'value': 23
|
|
||||||
},
|
|
||||||
{
|
|
||||||
'name' : 'Men T-Shirts',
|
|
||||||
'value': 14
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
'footerLeft' : {
|
|
||||||
'title': 'Total Sales',
|
|
||||||
'count': {
|
|
||||||
'2W': 487,
|
|
||||||
'LW': 526,
|
|
||||||
'TW': 594
|
|
||||||
}
|
|
||||||
},
|
|
||||||
'footerRight': {
|
|
||||||
'title': 'Sales From Top 5 Categories',
|
|
||||||
'count': {
|
|
||||||
'2W': 193,
|
|
||||||
'LW': 260,
|
|
||||||
'TW': 287
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
'widget7': {
|
|
||||||
'title' : 'Latest Customers',
|
|
||||||
'ranges' : {
|
|
||||||
'T' : 'Today',
|
|
||||||
'TM': 'Tomorrow'
|
|
||||||
},
|
|
||||||
'customers': {
|
|
||||||
'T' : [
|
|
||||||
{
|
|
||||||
'name' : 'Abbott Keitch',
|
|
||||||
'location': 'United States of America'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
'name' : 'Arnold Matlock',
|
|
||||||
'location': 'United States of America'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
'name' : 'Barrera Bradbury',
|
|
||||||
'location': 'England'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
'name' : 'Blair Strangeway',
|
|
||||||
'location': 'Germany'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
'name' : 'Copeland Redcliff',
|
|
||||||
'location': 'French'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
'name' : 'Henderson Cambias',
|
|
||||||
'location': 'Russia'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
'name' : 'Lily Peasegood',
|
|
||||||
'location': 'Mexico'
|
|
||||||
}
|
|
||||||
],
|
|
||||||
'TM': [
|
|
||||||
{
|
|
||||||
'name' : 'Boyle Winters',
|
|
||||||
'location': 'United States of America'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
'name' : 'Tyson Marshall',
|
|
||||||
'location': 'United States of America'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
'name' : 'Reyna Preece',
|
|
||||||
'location': 'England'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
'name' : 'Shauna Atherton',
|
|
||||||
'location': 'Germany'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
'name' : 'Tillman Lee',
|
|
||||||
'location': 'French'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
'name' : 'Velazquez Smethley',
|
|
||||||
'location': 'Russia'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
'name' : 'Helen Sheridan',
|
|
||||||
'location': 'Mexico'
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
public static products = [
|
public static products = [
|
||||||
{
|
{
|
||||||
'id' : '1',
|
'id' : '1',
|
||||||
@@ -2136,13 +1622,13 @@ export class ECommerceFakeDb
|
|||||||
{
|
{
|
||||||
'id' : 13,
|
'id' : 13,
|
||||||
'name' : 'On pre-order (not paid)',
|
'name' : 'On pre-order (not paid)',
|
||||||
'color': 'mat-purple-300-bg',
|
'color': 'purple-300',
|
||||||
'date' : '2016/04/03 10:06:18'
|
'date' : '2016/04/03 10:06:18'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'id' : 1,
|
'id' : 1,
|
||||||
'name' : 'Awaiting check payment',
|
'name' : 'Awaiting check payment',
|
||||||
'color': 'mat-blue-500-bg',
|
'color': 'blue-500',
|
||||||
'date' : '2015/03/17 18:28:37'
|
'date' : '2015/03/17 18:28:37'
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
@@ -2220,13 +1706,13 @@ export class ECommerceFakeDb
|
|||||||
{
|
{
|
||||||
'id' : 2,
|
'id' : 2,
|
||||||
'name' : 'Payment accepted',
|
'name' : 'Payment accepted',
|
||||||
'color': 'mat-green-500-bg',
|
'color': 'green-500',
|
||||||
'date' : '2015/10/04 08:54:33'
|
'date' : '2015/10/04 08:54:33'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'id' : 1,
|
'id' : 1,
|
||||||
'name' : 'Awaiting check payment',
|
'name' : 'Awaiting check payment',
|
||||||
'color': 'mat-blue-500-bg',
|
'color': 'blue-500',
|
||||||
'date' : '2015/05/03 03:43:04'
|
'date' : '2015/05/03 03:43:04'
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
@@ -2304,13 +1790,13 @@ export class ECommerceFakeDb
|
|||||||
{
|
{
|
||||||
'id' : 8,
|
'id' : 8,
|
||||||
'name' : 'Payment error',
|
'name' : 'Payment error',
|
||||||
'color': 'mat-red-900-bg',
|
'color': 'red-900',
|
||||||
'date' : '2015/07/02 20:44:34'
|
'date' : '2015/07/02 20:44:34'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'id' : 3,
|
'id' : 3,
|
||||||
'name' : 'Preparing the order',
|
'name' : 'Preparing the order',
|
||||||
'color': 'mat-orange-500-bg',
|
'color': 'orange-500',
|
||||||
'date' : '2015/03/23 04:59:45'
|
'date' : '2015/03/23 04:59:45'
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
@@ -2388,13 +1874,13 @@ export class ECommerceFakeDb
|
|||||||
{
|
{
|
||||||
'id' : 5,
|
'id' : 5,
|
||||||
'name' : 'Delivered',
|
'name' : 'Delivered',
|
||||||
'color': 'mat-green-800-bg',
|
'color': 'green-800',
|
||||||
'date' : '2015/10/26 16:12:47'
|
'date' : '2015/10/26 16:12:47'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'id' : 4,
|
'id' : 4,
|
||||||
'name' : 'Shipped',
|
'name' : 'Shipped',
|
||||||
'color': 'mat-purple-500-bg',
|
'color': 'purple-500',
|
||||||
'date' : '2016/02/06 06:42:37'
|
'date' : '2016/02/06 06:42:37'
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
@@ -2472,13 +1958,13 @@ export class ECommerceFakeDb
|
|||||||
{
|
{
|
||||||
'id' : 8,
|
'id' : 8,
|
||||||
'name' : 'Payment error',
|
'name' : 'Payment error',
|
||||||
'color': 'mat-red-900-bg',
|
'color': 'red-900',
|
||||||
'date' : '2015/02/01 09:21:46'
|
'date' : '2015/02/01 09:21:46'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'id' : 6,
|
'id' : 6,
|
||||||
'name' : 'Canceled',
|
'name' : 'Canceled',
|
||||||
'color': 'mat-pink-500-bg',
|
'color': 'pink-500',
|
||||||
'date' : '2015/11/16 04:48:32'
|
'date' : '2015/11/16 04:48:32'
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
@@ -2556,13 +2042,13 @@ export class ECommerceFakeDb
|
|||||||
{
|
{
|
||||||
'id' : 3,
|
'id' : 3,
|
||||||
'name' : 'Preparing the order',
|
'name' : 'Preparing the order',
|
||||||
'color': 'mat-orange-500-bg',
|
'color': 'orange-500',
|
||||||
'date' : '2015/11/30 01:04:32'
|
'date' : '2015/11/30 01:04:32'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'id' : 2,
|
'id' : 2,
|
||||||
'name' : 'Payment accepted',
|
'name' : 'Payment accepted',
|
||||||
'color': 'mat-green-500-bg',
|
'color': 'green-500',
|
||||||
'date' : '2015/11/12 21:27:18'
|
'date' : '2015/11/12 21:27:18'
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
@@ -2640,13 +2126,13 @@ export class ECommerceFakeDb
|
|||||||
{
|
{
|
||||||
'id' : 11,
|
'id' : 11,
|
||||||
'name' : 'Awaiting PayPal payment',
|
'name' : 'Awaiting PayPal payment',
|
||||||
'color': 'mat-blue-500-bg',
|
'color': 'blue-500',
|
||||||
'date' : '2015/09/03 18:53:02'
|
'date' : '2015/09/03 18:53:02'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'id' : 13,
|
'id' : 13,
|
||||||
'name' : 'On pre-order (not paid)',
|
'name' : 'On pre-order (not paid)',
|
||||||
'color': 'mat-purple-300-bg',
|
'color': 'purple-300',
|
||||||
'date' : '2015/12/13 18:14:40'
|
'date' : '2015/12/13 18:14:40'
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
@@ -2724,13 +2210,13 @@ export class ECommerceFakeDb
|
|||||||
{
|
{
|
||||||
'id' : 4,
|
'id' : 4,
|
||||||
'name' : 'Shipped',
|
'name' : 'Shipped',
|
||||||
'color': 'mat-purple-500-bg',
|
'color': 'purple-500',
|
||||||
'date' : '2015/04/29 07:57:43'
|
'date' : '2015/04/29 07:57:43'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'id' : 3,
|
'id' : 3,
|
||||||
'name' : 'Preparing the order',
|
'name' : 'Preparing the order',
|
||||||
'color': 'mat-orange-500-bg',
|
'color': 'orange-500',
|
||||||
'date' : '2015/04/23 11:14:38'
|
'date' : '2015/04/23 11:14:38'
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
@@ -2808,13 +2294,13 @@ export class ECommerceFakeDb
|
|||||||
{
|
{
|
||||||
'id' : 12,
|
'id' : 12,
|
||||||
'name' : 'Remote payment accepted',
|
'name' : 'Remote payment accepted',
|
||||||
'color': 'mat-green-500-bg',
|
'color': 'green-500',
|
||||||
'date' : '2015/07/15 15:48:00'
|
'date' : '2015/07/15 15:48:00'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'id' : 14,
|
'id' : 14,
|
||||||
'name' : 'Awaiting Cash-on-delivery payment',
|
'name' : 'Awaiting Cash-on-delivery payment',
|
||||||
'color': 'mat-blue-500-bg',
|
'color': 'blue-500',
|
||||||
'date' : '2015/11/08 18:30:15'
|
'date' : '2015/11/08 18:30:15'
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
@@ -2892,13 +2378,13 @@ export class ECommerceFakeDb
|
|||||||
{
|
{
|
||||||
'id' : 5,
|
'id' : 5,
|
||||||
'name' : 'Delivered',
|
'name' : 'Delivered',
|
||||||
'color': 'mat-green-800-bg',
|
'color': 'green-800',
|
||||||
'date' : '2016/05/02 09:53:55'
|
'date' : '2016/05/02 09:53:55'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'id' : 2,
|
'id' : 2,
|
||||||
'name' : 'Payment accepted',
|
'name' : 'Payment accepted',
|
||||||
'color': 'mat-green-500-bg',
|
'color': 'green-500',
|
||||||
'date' : '2015/07/11 05:33:31'
|
'date' : '2015/07/11 05:33:31'
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
@@ -2976,13 +2462,13 @@ export class ECommerceFakeDb
|
|||||||
{
|
{
|
||||||
'id' : 9,
|
'id' : 9,
|
||||||
'name' : 'On pre-order (paid)',
|
'name' : 'On pre-order (paid)',
|
||||||
'color': 'mat-purple-300-bg',
|
'color': 'purple-300',
|
||||||
'date' : '2016/02/26 14:15:38'
|
'date' : '2016/02/26 14:15:38'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'id' : 4,
|
'id' : 4,
|
||||||
'name' : 'Shipped',
|
'name' : 'Shipped',
|
||||||
'color': 'mat-purple-500-bg',
|
'color': 'purple-500',
|
||||||
'date' : '2015/10/17 03:32:39'
|
'date' : '2015/10/17 03:32:39'
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
@@ -3060,13 +2546,13 @@ export class ECommerceFakeDb
|
|||||||
{
|
{
|
||||||
'id' : 10,
|
'id' : 10,
|
||||||
'name' : 'Awaiting bank wire payment',
|
'name' : 'Awaiting bank wire payment',
|
||||||
'color': 'mat-blue-500-bg',
|
'color': 'blue-500',
|
||||||
'date' : '2015/09/01 20:50:07'
|
'date' : '2015/09/01 20:50:07'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'id' : 12,
|
'id' : 12,
|
||||||
'name' : 'Remote payment accepted',
|
'name' : 'Remote payment accepted',
|
||||||
'color': 'mat-green-500-bg',
|
'color': 'green-500',
|
||||||
'date' : '2016/02/13 21:19:04'
|
'date' : '2016/02/13 21:19:04'
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
@@ -3144,13 +2630,13 @@ export class ECommerceFakeDb
|
|||||||
{
|
{
|
||||||
'id' : 6,
|
'id' : 6,
|
||||||
'name' : 'Canceled',
|
'name' : 'Canceled',
|
||||||
'color': 'mat-pink-500-bg',
|
'color': 'pink-500',
|
||||||
'date' : '2015/03/31 03:01:12'
|
'date' : '2015/03/31 03:01:12'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'id' : 8,
|
'id' : 8,
|
||||||
'name' : 'Payment error',
|
'name' : 'Payment error',
|
||||||
'color': 'mat-red-900-bg',
|
'color': 'red-900',
|
||||||
'date' : '2016/03/11 18:53:35'
|
'date' : '2016/03/11 18:53:35'
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
@@ -3228,13 +2714,13 @@ export class ECommerceFakeDb
|
|||||||
{
|
{
|
||||||
'id' : 7,
|
'id' : 7,
|
||||||
'name' : 'Refunded',
|
'name' : 'Refunded',
|
||||||
'color': 'mat-red-500-bg',
|
'color': 'red-500',
|
||||||
'date' : '2015/12/29 15:34:46'
|
'date' : '2015/12/29 15:34:46'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'id' : 11,
|
'id' : 11,
|
||||||
'name' : 'Awaiting PayPal payment',
|
'name' : 'Awaiting PayPal payment',
|
||||||
'color': 'mat-blue-500-bg',
|
'color': 'blue-500',
|
||||||
'date' : '2015/07/14 19:10:43'
|
'date' : '2015/07/14 19:10:43'
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
@@ -3312,13 +2798,13 @@ export class ECommerceFakeDb
|
|||||||
{
|
{
|
||||||
'id' : 1,
|
'id' : 1,
|
||||||
'name' : 'Awaiting check payment',
|
'name' : 'Awaiting check payment',
|
||||||
'color': 'mat-blue-500-bg',
|
'color': 'blue-500',
|
||||||
'date' : '2015/12/21 10:42:21'
|
'date' : '2015/12/21 10:42:21'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'id' : 6,
|
'id' : 6,
|
||||||
'name' : 'Canceled',
|
'name' : 'Canceled',
|
||||||
'color': 'mat-pink-500-bg',
|
'color': 'pink-500',
|
||||||
'date' : '2016/02/11 05:58:55'
|
'date' : '2016/02/11 05:58:55'
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
@@ -3396,13 +2882,13 @@ export class ECommerceFakeDb
|
|||||||
{
|
{
|
||||||
'id' : 9,
|
'id' : 9,
|
||||||
'name' : 'On pre-order (paid)',
|
'name' : 'On pre-order (paid)',
|
||||||
'color': 'mat-purple-300-bg',
|
'color': 'purple-300',
|
||||||
'date' : '2015/06/20 08:37:46'
|
'date' : '2015/06/20 08:37:46'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'id' : 2,
|
'id' : 2,
|
||||||
'name' : 'Payment accepted',
|
'name' : 'Payment accepted',
|
||||||
'color': 'mat-green-500-bg',
|
'color': 'green-500',
|
||||||
'date' : '2015/01/01 01:42:21'
|
'date' : '2015/01/01 01:42:21'
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
@@ -3480,13 +2966,13 @@ export class ECommerceFakeDb
|
|||||||
{
|
{
|
||||||
'id' : 5,
|
'id' : 5,
|
||||||
'name' : 'Delivered',
|
'name' : 'Delivered',
|
||||||
'color': 'mat-green-800-bg',
|
'color': 'green-800',
|
||||||
'date' : '2015/03/23 00:18:52'
|
'date' : '2015/03/23 00:18:52'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'id' : 3,
|
'id' : 3,
|
||||||
'name' : 'Preparing the order',
|
'name' : 'Preparing the order',
|
||||||
'color': 'mat-orange-500-bg',
|
'color': 'orange-500',
|
||||||
'date' : '2015/03/22 04:48:12'
|
'date' : '2015/03/22 04:48:12'
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
@@ -3564,13 +3050,13 @@ export class ECommerceFakeDb
|
|||||||
{
|
{
|
||||||
'id' : 6,
|
'id' : 6,
|
||||||
'name' : 'Canceled',
|
'name' : 'Canceled',
|
||||||
'color': 'mat-pink-500-bg',
|
'color': 'pink-500',
|
||||||
'date' : '2016/03/24 22:56:35'
|
'date' : '2016/03/24 22:56:35'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'id' : 4,
|
'id' : 4,
|
||||||
'name' : 'Shipped',
|
'name' : 'Shipped',
|
||||||
'color': 'mat-purple-500-bg',
|
'color': 'purple-500',
|
||||||
'date' : '2016/04/09 13:33:26'
|
'date' : '2016/04/09 13:33:26'
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
@@ -3648,13 +3134,13 @@ export class ECommerceFakeDb
|
|||||||
{
|
{
|
||||||
'id' : 7,
|
'id' : 7,
|
||||||
'name' : 'Refunded',
|
'name' : 'Refunded',
|
||||||
'color': 'mat-red-500-bg',
|
'color': 'red-500',
|
||||||
'date' : '2015/08/10 17:14:57'
|
'date' : '2015/08/10 17:14:57'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'id' : 5,
|
'id' : 5,
|
||||||
'name' : 'Delivered',
|
'name' : 'Delivered',
|
||||||
'color': 'mat-green-800-bg',
|
'color': 'green-800',
|
||||||
'date' : '2016/03/30 01:38:14'
|
'date' : '2016/03/30 01:38:14'
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
@@ -3732,13 +3218,13 @@ export class ECommerceFakeDb
|
|||||||
{
|
{
|
||||||
'id' : 10,
|
'id' : 10,
|
||||||
'name' : 'Awaiting bank wire payment',
|
'name' : 'Awaiting bank wire payment',
|
||||||
'color': 'mat-blue-500-bg',
|
'color': 'blue-500',
|
||||||
'date' : '2015/05/19 11:09:56'
|
'date' : '2015/05/19 11:09:56'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'id' : 12,
|
'id' : 12,
|
||||||
'name' : 'Remote payment accepted',
|
'name' : 'Remote payment accepted',
|
||||||
'color': 'mat-green-500-bg',
|
'color': 'green-500',
|
||||||
'date' : '2015/03/27 05:02:33'
|
'date' : '2015/03/27 05:02:33'
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -34,7 +34,6 @@ export class FakeDbService implements InMemoryDbService
|
|||||||
'calendar': CalendarFakeDb.data,
|
'calendar': CalendarFakeDb.data,
|
||||||
|
|
||||||
// E-Commerce
|
// E-Commerce
|
||||||
'e-commerce-dashboard': ECommerceFakeDb.dashboard,
|
|
||||||
'e-commerce-products' : ECommerceFakeDb.products,
|
'e-commerce-products' : ECommerceFakeDb.products,
|
||||||
'e-commerce-orders' : ECommerceFakeDb.orders,
|
'e-commerce-orders' : ECommerceFakeDb.orders,
|
||||||
|
|
||||||
|
|||||||
@@ -274,7 +274,7 @@ export class ScrumboardFakeDb
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
'activities' : [],
|
'activities' : [],
|
||||||
'due' : '2018-09-07T12:00:00.000Z'
|
'due' : '2020-09-07T12:00:00.000Z'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'id' : 'f6b9d7a9247e5d794a081927',
|
'id' : 'f6b9d7a9247e5d794a081927',
|
||||||
@@ -565,22 +565,22 @@ export class ScrumboardFakeDb
|
|||||||
{
|
{
|
||||||
'id' : '26022e4129ad3a5sc28b36cd',
|
'id' : '26022e4129ad3a5sc28b36cd',
|
||||||
'name' : 'High Priority',
|
'name' : 'High Priority',
|
||||||
'color': 'mat-red-500-bg'
|
'color': 'red-500'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'id' : '56027e4119ad3a5dc28b36cd',
|
'id' : '56027e4119ad3a5dc28b36cd',
|
||||||
'name' : 'Design',
|
'name' : 'Design',
|
||||||
'color': 'mat-orange-400-bg'
|
'color': 'orange-400'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'id' : '5640635e19ad3a5dc21416b2',
|
'id' : '5640635e19ad3a5dc21416b2',
|
||||||
'name' : 'App',
|
'name' : 'App',
|
||||||
'color': 'mat-blue-600-bg'
|
'color': 'blue-600'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'id' : '6540635g19ad3s5dc31412b2',
|
'id' : '6540635g19ad3s5dc31412b2',
|
||||||
'name' : 'Feature',
|
'name' : 'Feature',
|
||||||
'color': 'mat-green-400-bg'
|
'color': 'green-400'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@@ -769,17 +769,17 @@ export class ScrumboardFakeDb
|
|||||||
{
|
{
|
||||||
'id' : '56027e4119ad3a5dc28b36cd',
|
'id' : '56027e4119ad3a5dc28b36cd',
|
||||||
'name' : 'Design',
|
'name' : 'Design',
|
||||||
'color': 'mat-red-500-bg'
|
'color': 'red-500'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'id' : '5640635e19ad3a5dc21416b2',
|
'id' : '5640635e19ad3a5dc21416b2',
|
||||||
'name' : 'App',
|
'name' : 'App',
|
||||||
'color': 'mat-blue-500-bg'
|
'color': 'blue-500'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'id' : '6540635g19ad3s5dc31412b2',
|
'id' : '6540635g19ad3s5dc31412b2',
|
||||||
'name' : 'Feature',
|
'name' : 'Feature',
|
||||||
'color': 'mat-green-400-bg'
|
'color': 'green-400'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,32 +3,41 @@ import { FuseConfig } from '@fuse/types';
|
|||||||
/**
|
/**
|
||||||
* Default Fuse Configuration
|
* Default Fuse Configuration
|
||||||
*
|
*
|
||||||
* You can edit these options to change the default options. All these options also can be changed per component
|
* You can edit these options to change the default options. All these options also can be
|
||||||
* basis. See `app/main/pages/authentication/login/login.component.ts` constructor method to learn more
|
* changed per component basis. See `app/main/pages/authentication/login/login.component.ts`
|
||||||
* about changing these options per component basis.
|
* constructor method to learn more about changing these options per component basis.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
export const fuseConfig: FuseConfig = {
|
export const fuseConfig: FuseConfig = {
|
||||||
|
// Color themes can be defined in src/app/app.theme.scss
|
||||||
|
colorTheme : 'theme-default',
|
||||||
|
customScrollbars: true,
|
||||||
layout : {
|
layout : {
|
||||||
style : 'vertical-layout-1',
|
style : 'vertical-layout-1',
|
||||||
width : 'fullwidth',
|
width : 'fullwidth',
|
||||||
navbar : {
|
navbar : {
|
||||||
background: 'mat-fuse-dark-700-bg',
|
primaryBackground : 'fuse-navy-700',
|
||||||
folded : false,
|
secondaryBackground: 'fuse-navy-900',
|
||||||
hidden : false,
|
folded : false,
|
||||||
position : 'left',
|
hidden : false,
|
||||||
variant : 'vertical-style-1'
|
position : 'left',
|
||||||
|
variant : 'vertical-style-1'
|
||||||
},
|
},
|
||||||
toolbar: {
|
toolbar : {
|
||||||
background: 'mat-white-500-bg',
|
customBackgroundColor: false,
|
||||||
hidden : false,
|
background : 'fuse-white-500',
|
||||||
position : 'below-static'
|
hidden : false,
|
||||||
|
position : 'below-static'
|
||||||
},
|
},
|
||||||
footer : {
|
footer : {
|
||||||
background: 'mat-fuse-dark-900-bg',
|
customBackgroundColor: true,
|
||||||
hidden : false,
|
background : 'fuse-navy-900',
|
||||||
position : 'below-fixed'
|
hidden : false,
|
||||||
|
position : 'below-fixed'
|
||||||
|
},
|
||||||
|
sidepanel: {
|
||||||
|
hidden : false,
|
||||||
|
position: 'right'
|
||||||
}
|
}
|
||||||
},
|
}
|
||||||
customScrollbars: true
|
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,8 +1,9 @@
|
|||||||
<div class="header mat-elevation-z4 mat-primary-bg" fxLayout="row" fxLayoutAlign="space-between center">
|
<div class="header mat-elevation-z4 primary" fxLayout="row" fxLayoutAlign="space-between center">
|
||||||
|
|
||||||
<ng-container *ngIf="selectedContact === null">
|
<ng-container *ngIf="selectedContact === null">
|
||||||
|
|
||||||
<div class="title ml-16" fxLayout="row" fxLayoutAlign="start center">
|
<div class="title ml-16" fxLayout="row" fxLayoutAlign="start center"
|
||||||
|
(click)="unfoldSidebarTemporarily()">
|
||||||
<mat-icon class="s-32 white-fg">chat</mat-icon>
|
<mat-icon class="s-32 white-fg">chat</mat-icon>
|
||||||
<h3 class="ml-12">Team Chat</h3>
|
<h3 class="ml-12">Team Chat</h3>
|
||||||
</div>
|
</div>
|
||||||
@@ -18,36 +19,38 @@
|
|||||||
|
|
||||||
</ng-container>
|
</ng-container>
|
||||||
|
|
||||||
<button mat-icon-button class="toggle-sidebar-folded mr-8" (click)="foldSidebarTemporarily()" fxHide fxShow.gt-md>
|
<button mat-icon-button class="toggle-sidebar-folded mr-8" (click)="foldSidebarTemporarily();resetChat();"
|
||||||
<mat-icon class="secondary-text s-20">arrow_forward</mat-icon>
|
fxHide fxShow.gt-md>
|
||||||
|
<mat-icon class="secondary-text s-20">close</mat-icon>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<button mat-icon-button class="toggle-sidebar-folded mr-8" (click)="toggleSidebarOpen()" fxHide.gt-md>
|
<button mat-icon-button class="toggle-sidebar-open mr-8" (click)="toggleSidebarOpen();resetChat();"
|
||||||
<mat-icon class="secondary-text">arrow_forward</mat-icon>
|
fxHide.gt-md>
|
||||||
|
<mat-icon class="secondary-text">close</mat-icon>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div>
|
<div class="content">
|
||||||
|
|
||||||
<!-- Contacts -->
|
<!-- Contacts -->
|
||||||
<mat-list id="contacts-list" fusePerfectScrollbar [fusePerfectScrollbarOptions]="{suppressScrollX: true}">
|
<div id="contacts-list" fusePerfectScrollbar [fusePerfectScrollbarOptions]="{suppressScrollX: true}">
|
||||||
|
|
||||||
<mat-list-item *ngFor="let contact of contacts"
|
<div *ngFor="let contact of contacts"
|
||||||
[ngClass]="contact.status"
|
class="contacts-list-item"
|
||||||
[class.active]="contact.id === selectedContact?.id"
|
[ngClass]="contact.status"
|
||||||
(click)="goToChat(contact)"
|
[class.active]="contact.id === selectedContact?.id"
|
||||||
[matTooltip]="contact.name"
|
(click)="toggleChat(contact)">
|
||||||
matTooltipPosition="left"
|
|
||||||
matRipple>
|
|
||||||
|
|
||||||
<img matListAvatar [src]="contact.avatar">
|
<img class="avatar" [src]="contact.avatar"
|
||||||
|
[matTooltip]="contact.name"
|
||||||
|
matTooltipPosition="left">
|
||||||
<div class="unread-count" *ngIf="contact.unread">{{contact.unread}}</div>
|
<div class="unread-count" *ngIf="contact.unread">{{contact.unread}}</div>
|
||||||
<div class="status-icon" [ngClass]="contact.status"></div>
|
<div class="status-icon" [ngClass]="contact.status"></div>
|
||||||
|
|
||||||
</mat-list-item>
|
</div>
|
||||||
|
|
||||||
</mat-list>
|
</div>
|
||||||
<!-- / Contacts -->
|
<!-- / Contacts -->
|
||||||
|
|
||||||
<!-- Chat -->
|
<!-- Chat -->
|
||||||
@@ -78,27 +81,43 @@
|
|||||||
|
|
||||||
</ng-container>
|
</ng-container>
|
||||||
|
|
||||||
<ng-container *ngIf="chat && chat.dialog && chat.dialog.length === 0">
|
<ng-container *ngIf="selectedContact && chat && chat.dialog && chat.dialog.length === 0">
|
||||||
|
|
||||||
<div class="no-messages-icon">
|
<div class="no-messages-icon">
|
||||||
<mat-icon class="s-128">chat</mat-icon>
|
<mat-icon class="s-128 fade-text">chat</mat-icon>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="no-messages secondary-text">
|
<div class="no-messages secondary-text">
|
||||||
Start a conversation by typing your message below.
|
Start a conversation by typing your message below.
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
</ng-container>
|
||||||
|
|
||||||
|
<ng-container *ngIf="!selectedContact">
|
||||||
|
|
||||||
|
<div class="no-contact-selected">
|
||||||
|
|
||||||
|
<div class="no-contact-icon">
|
||||||
|
<mat-icon class="s-128 fade-text">chat</mat-icon>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="no-contact secondary-text">
|
||||||
|
Select a contact to start a conversation.
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
</ng-container>
|
</ng-container>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="reply-form" fxFlex="0 0 auto" fxLayout="row" fxLayoutAlign="center center">
|
<div class="reply-form" fxFlex="0 0 auto" fxLayout="row" fxLayoutAlign="center center"
|
||||||
|
*ngIf="selectedContact">
|
||||||
|
|
||||||
<form #replyForm="ngForm"
|
<form #replyForm="ngForm"
|
||||||
(ngSubmit)="reply($event)"
|
(ngSubmit)="reply($event)"
|
||||||
(keydown.enter)="reply($event)"
|
(keydown.enter)="reply($event)"
|
||||||
fxFlex
|
fxFlex fxLayout="row" fxLayoutAlign="start center">
|
||||||
fxLayout="row"
|
|
||||||
fxLayoutAlign="start center">
|
|
||||||
|
|
||||||
<mat-form-field class="message-text" fxFlex floatLabel="never" appearance="standard">
|
<mat-form-field class="message-text" fxFlex floatLabel="never" appearance="standard">
|
||||||
<textarea matInput #replyInput ngModel name="message" placeholder="Type your message"
|
<textarea matInput #replyInput ngModel name="message" placeholder="Type your message"
|
||||||
|
|||||||
@@ -10,12 +10,20 @@ chat-panel {
|
|||||||
z-index: 99;
|
z-index: 99;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
|
||||||
|
@include media-breakpoint-down('xs') {
|
||||||
|
max-width: none !important;
|
||||||
|
width: 100% !important;
|
||||||
|
}
|
||||||
|
|
||||||
.header {
|
.header {
|
||||||
|
position: relative;
|
||||||
height: 64px;
|
height: 64px;
|
||||||
max-height: 64px;
|
max-height: 64px;
|
||||||
min-height: 64px;
|
min-height: 64px;
|
||||||
|
z-index: 10;
|
||||||
|
|
||||||
.title {
|
.title {
|
||||||
|
cursor: pointer;
|
||||||
|
|
||||||
mat-icon {
|
mat-icon {
|
||||||
margin-left: 4px;
|
margin-left: 4px;
|
||||||
@@ -26,14 +34,23 @@ chat-panel {
|
|||||||
transition: opacity 300ms ease-in-out;
|
transition: opacity 300ms ease-in-out;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.content {
|
||||||
|
flex: 1 1 100%;
|
||||||
|
min-height: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#contacts-list {
|
#contacts-list {
|
||||||
padding: 8px 0;
|
position: relative;
|
||||||
overflow: auto;
|
z-index: 5;
|
||||||
|
padding: 16px 0;
|
||||||
width: 72px;
|
width: 72px;
|
||||||
min-width: 72px;
|
min-width: 72px;
|
||||||
max-width: 72px;
|
max-width: 72px;
|
||||||
|
overflow: auto;
|
||||||
|
-webkit-overflow-scrolling: touch;
|
||||||
|
|
||||||
// Perfect scrollbar
|
// Perfect scrollbar
|
||||||
.ps__rail-y {
|
.ps__rail-y {
|
||||||
@@ -44,13 +61,28 @@ chat-panel {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.mat-list-item {
|
.contacts-list-item {
|
||||||
cursor: pointer;
|
|
||||||
position: relative;
|
position: relative;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
padding: 0 16px;
|
||||||
|
height: 56px;
|
||||||
|
cursor: pointer;
|
||||||
|
|
||||||
&.active {
|
&.active {
|
||||||
background-color: mat-color(mat-palette($mat-grey, 300));
|
position: relative;
|
||||||
@include mat-elevation(2);
|
|
||||||
|
&:after {
|
||||||
|
position: absolute;
|
||||||
|
top: 8px;
|
||||||
|
right: 0;
|
||||||
|
bottom: 8px;
|
||||||
|
content: "";
|
||||||
|
width: 4px;
|
||||||
|
border-top-left-radius: 4px;
|
||||||
|
border-bottom-left-radius: 4px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&.offline {
|
&.offline {
|
||||||
@@ -68,62 +100,68 @@ chat-panel {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.mat-list-item-content {
|
.avatar {
|
||||||
|
margin: 0;
|
||||||
|
width: 32px;
|
||||||
|
height: 32px;
|
||||||
|
min-width: 32px;
|
||||||
|
}
|
||||||
|
|
||||||
.unread-count {
|
.unread-count {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
min-width: 18px;
|
display: flex;
|
||||||
height: 18px;
|
align-items: center;
|
||||||
top: 4px;
|
justify-content: center;
|
||||||
left: 10px;
|
min-width: 18px;
|
||||||
border-radius: 9px;
|
height: 18px;
|
||||||
padding: 0 5px;
|
top: 8px;
|
||||||
font-size: 11px;
|
left: 12px;
|
||||||
text-align: center;
|
border-radius: 9px;
|
||||||
display: flex;
|
padding: 0 5px;
|
||||||
align-items: center;
|
font-size: 11px;
|
||||||
justify-content: center;
|
text-align: center;
|
||||||
background-color: mat-color(mat-palette($mat-indigo));
|
box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.35);
|
||||||
color: white;
|
}
|
||||||
box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.35);
|
|
||||||
|
.status-icon {
|
||||||
|
position: absolute;
|
||||||
|
width: 12px;
|
||||||
|
height: 12px;
|
||||||
|
bottom: 10px;
|
||||||
|
left: 44px;
|
||||||
|
border: 2px solid;
|
||||||
|
border-radius: 50%;
|
||||||
|
|
||||||
|
&.online {
|
||||||
|
background-color: #4CAF50;
|
||||||
}
|
}
|
||||||
|
|
||||||
.status-icon {
|
&.do-not-disturb {
|
||||||
position: absolute;
|
background-color: #F44336;
|
||||||
width: 12px;
|
}
|
||||||
height: 12px;
|
|
||||||
bottom: 3px;
|
|
||||||
left: 44px;
|
|
||||||
border: 2px solid white;
|
|
||||||
border-radius: 50%;
|
|
||||||
|
|
||||||
&.online {
|
&.away {
|
||||||
background-color: #4CAF50;
|
background-color: #FFC107;
|
||||||
}
|
}
|
||||||
|
|
||||||
&.do-not-disturb {
|
&.offline {
|
||||||
background-color: #F44336;
|
background-color: #646464;
|
||||||
}
|
|
||||||
|
|
||||||
&.away {
|
|
||||||
background-color: #FFC107;
|
|
||||||
}
|
|
||||||
|
|
||||||
&.offline {
|
|
||||||
background-color: #646464;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#chat {
|
#chat {
|
||||||
background-color: mat-color(mat-palette($mat-grey, 300));
|
position: relative;
|
||||||
|
z-index: 7;
|
||||||
|
flex: 1 1 100%;
|
||||||
|
box-shadow: -1px 0 2px 0 rgba(0, 0, 0, 0.25);
|
||||||
|
|
||||||
.messages {
|
.messages {
|
||||||
position: relative;
|
position: relative;
|
||||||
overflow: auto;
|
|
||||||
padding: 16px 0 40px 40px;
|
padding: 16px 0 40px 40px;
|
||||||
|
overflow: auto;
|
||||||
|
-webkit-overflow-scrolling: touch;
|
||||||
|
|
||||||
.message-row {
|
.message-row {
|
||||||
position: relative;
|
position: relative;
|
||||||
@@ -145,6 +183,7 @@ chat-panel {
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
padding: 12px;
|
padding: 12px;
|
||||||
|
max-width: 100%;
|
||||||
|
|
||||||
.message {
|
.message {
|
||||||
white-space: pre-wrap;
|
white-space: pre-wrap;
|
||||||
@@ -158,7 +197,7 @@ chat-panel {
|
|||||||
font-size: 11px;
|
font-size: 11px;
|
||||||
margin-top: 8px;
|
margin-top: 8px;
|
||||||
top: 100%;
|
top: 100%;
|
||||||
color: $black-87-opacity;
|
left: 0;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -166,9 +205,6 @@ chat-panel {
|
|||||||
&.contact {
|
&.contact {
|
||||||
|
|
||||||
.bubble {
|
.bubble {
|
||||||
background-color: mat-color(mat-palette($mat-indigo));
|
|
||||||
color: white;
|
|
||||||
|
|
||||||
border-top-left-radius: 5px;
|
border-top-left-radius: 5px;
|
||||||
border-bottom-left-radius: 5px;
|
border-bottom-left-radius: 5px;
|
||||||
|
|
||||||
@@ -205,8 +241,6 @@ chat-panel {
|
|||||||
|
|
||||||
.bubble {
|
.bubble {
|
||||||
margin-left: auto;
|
margin-left: auto;
|
||||||
background-color: #FFFFFF;
|
|
||||||
color: $black-87-opacity;
|
|
||||||
|
|
||||||
border-top-left-radius: 20px;
|
border-top-left-radius: 20px;
|
||||||
border-bottom-left-radius: 20px;
|
border-bottom-left-radius: 20px;
|
||||||
@@ -271,10 +305,6 @@ chat-panel {
|
|||||||
padding: 0 24px;
|
padding: 0 24px;
|
||||||
margin-top: -64px;
|
margin-top: -64px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
|
||||||
mat-icon {
|
|
||||||
color: rgba(0, 0, 0, 0.06);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.no-messages {
|
.no-messages {
|
||||||
@@ -285,6 +315,20 @@ chat-panel {
|
|||||||
padding: 0 16px 24px 16px;
|
padding: 0 16px 24px 16px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.no-contact-selected {
|
||||||
|
position: absolute;
|
||||||
|
top: 50%;
|
||||||
|
right: 0;
|
||||||
|
left: 0;
|
||||||
|
transform: translateY(-50%);
|
||||||
|
padding: 0 24px;
|
||||||
|
text-align: center;
|
||||||
|
|
||||||
|
.no-contact {
|
||||||
|
margin-top: 24px;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.reply-form {
|
.reply-form {
|
||||||
@@ -292,6 +336,7 @@ chat-panel {
|
|||||||
|
|
||||||
.message-text {
|
.message-text {
|
||||||
padding: 16px 8px;
|
padding: 16px 8px;
|
||||||
|
border-top: 1px solid;
|
||||||
|
|
||||||
.mat-form-field-wrapper {
|
.mat-form-field-wrapper {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
@@ -302,7 +347,6 @@ chat-panel {
|
|||||||
.mat-form-field-infix {
|
.mat-form-field-infix {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
border: none;
|
border: none;
|
||||||
background: white;
|
|
||||||
border-radius: 20px;
|
border-radius: 20px;
|
||||||
@include mat-elevation(2);
|
@include mat-elevation(2);
|
||||||
|
|
||||||
@@ -337,6 +381,26 @@ fuse-sidebar {
|
|||||||
min-width: 360px;
|
min-width: 360px;
|
||||||
max-width: 360px;
|
max-width: 360px;
|
||||||
|
|
||||||
|
@include media-breakpoint-down('xs') {
|
||||||
|
min-width: 0 !important;
|
||||||
|
max-width: 100vw !important;
|
||||||
|
width: 100vw !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.left-chat-panel {
|
||||||
|
|
||||||
|
.header {
|
||||||
|
|
||||||
|
.toggle-sidebar-folded,
|
||||||
|
.toggle-sidebar-open {
|
||||||
|
|
||||||
|
mat-icon {
|
||||||
|
transform: rotate(180deg);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Folded
|
// Folded
|
||||||
&.folded {
|
&.folded {
|
||||||
|
|
||||||
|
|||||||
@@ -120,11 +120,8 @@ export class ChatPanelComponent implements OnInit, AfterViewInit, OnDestroy
|
|||||||
{
|
{
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
|
|
||||||
// Reset the reply form
|
|
||||||
this._replyForm.reset();
|
|
||||||
|
|
||||||
// Focus to the reply input
|
// Focus to the reply input
|
||||||
this._replyInput.nativeElement.focus();
|
// this._replyInput.nativeElement.focus();
|
||||||
|
|
||||||
// Scroll to the bottom of the messages list
|
// Scroll to the bottom of the messages list
|
||||||
if ( this._chatViewScrollbar )
|
if ( this._chatViewScrollbar )
|
||||||
@@ -142,14 +139,6 @@ export class ChatPanelComponent implements OnInit, AfterViewInit, OnDestroy
|
|||||||
// @ Public methods
|
// @ Public methods
|
||||||
// -----------------------------------------------------------------------------------------------------
|
// -----------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
/**
|
|
||||||
* Toggle sidebar folded status
|
|
||||||
*/
|
|
||||||
toggleSidebarFolded(): void
|
|
||||||
{
|
|
||||||
this._fuseSidebarService.getSidebar('chatPanel').toggleFold();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Fold the temporarily unfolded sidebar back
|
* Fold the temporarily unfolded sidebar back
|
||||||
*/
|
*/
|
||||||
@@ -214,27 +203,52 @@ export class ChatPanelComponent implements OnInit, AfterViewInit, OnDestroy
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Go to chat with the contact
|
* Toggle chat with the contact
|
||||||
*
|
*
|
||||||
* @param contact
|
* @param contact
|
||||||
*/
|
*/
|
||||||
goToChat(contact): void
|
toggleChat(contact): void
|
||||||
{
|
{
|
||||||
// Unfold the sidebar temporarily
|
// If the contact equals to the selectedContact,
|
||||||
this.unfoldSidebarTemporarily();
|
// that means we will deselect the contact and
|
||||||
|
// unload the chat
|
||||||
|
if ( this.selectedContact && contact.id === this.selectedContact.id )
|
||||||
|
{
|
||||||
|
// Reset
|
||||||
|
this.resetChat();
|
||||||
|
}
|
||||||
|
// Otherwise, we will select the contact, open
|
||||||
|
// the sidebar and start the chat
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// Unfold the sidebar temporarily
|
||||||
|
this.unfoldSidebarTemporarily();
|
||||||
|
|
||||||
// Set the selected contact
|
// Set the selected contact
|
||||||
this.selectedContact = contact;
|
this.selectedContact = contact;
|
||||||
|
|
||||||
// Load the chat
|
// Load the chat
|
||||||
this._chatPanelService.getChat(contact.id).then((chat) => {
|
this._chatPanelService.getChat(contact.id).then((chat) => {
|
||||||
|
|
||||||
// Set the chat
|
// Set the chat
|
||||||
this.chat = chat;
|
this.chat = chat;
|
||||||
|
|
||||||
// Prepare the chat for the replies
|
// Prepare the chat for the replies
|
||||||
this._prepareChatForReplies();
|
this._prepareChatForReplies();
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Remove the selected contact and unload the chat
|
||||||
|
*/
|
||||||
|
resetChat(): void
|
||||||
|
{
|
||||||
|
// Set the selected contact as null
|
||||||
|
this.selectedContact = null;
|
||||||
|
|
||||||
|
// Set the chat as null
|
||||||
|
this.chat = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -259,6 +273,9 @@ export class ChatPanelComponent implements OnInit, AfterViewInit, OnDestroy
|
|||||||
// Add the message to the chat
|
// Add the message to the chat
|
||||||
this.chat.dialog.push(message);
|
this.chat.dialog.push(message);
|
||||||
|
|
||||||
|
// Reset the reply form
|
||||||
|
this._replyForm.reset();
|
||||||
|
|
||||||
// Update the server
|
// Update the server
|
||||||
this._chatPanelService.updateChat(this.chat.id, this.chat.dialog).then(response => {
|
this._chatPanelService.updateChat(this.chat.id, this.chat.dialog).then(response => {
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { NgModule } from '@angular/core';
|
import { NgModule } from '@angular/core';
|
||||||
import { MatButtonModule, MatFormFieldModule, MatIconModule, MatInputModule, MatListModule, MatRippleModule, MatTabsModule, MatTooltipModule } from '@angular/material';
|
import { MatButtonModule, MatFormFieldModule, MatIconModule, MatInputModule, MatRippleModule, MatTabsModule, MatTooltipModule } from '@angular/material';
|
||||||
|
|
||||||
import { FuseSharedModule } from '@fuse/shared.module';
|
import { FuseSharedModule } from '@fuse/shared.module';
|
||||||
|
|
||||||
@@ -18,7 +18,6 @@ import { ChatPanelService } from 'app/layout/components/chat-panel/chat-panel.se
|
|||||||
MatFormFieldModule,
|
MatFormFieldModule,
|
||||||
MatIconModule,
|
MatIconModule,
|
||||||
MatInputModule,
|
MatInputModule,
|
||||||
MatListModule,
|
|
||||||
MatTabsModule,
|
MatTabsModule,
|
||||||
MatTooltipModule,
|
MatTooltipModule,
|
||||||
MatRippleModule,
|
MatRippleModule,
|
||||||
|
|||||||
82
src/app/layout/components/chat-panel/chat-panel.theme.scss
Normal file
82
src/app/layout/components/chat-panel/chat-panel.theme.scss
Normal file
@@ -0,0 +1,82 @@
|
|||||||
|
@mixin chat-panel-theme($theme) {
|
||||||
|
|
||||||
|
$background: map-get($theme, background);
|
||||||
|
$foreground: map-get($theme, foreground);
|
||||||
|
$primary: map-get($theme, primary);
|
||||||
|
$accent: map-get($theme, accent);
|
||||||
|
$is-dark: map-get($theme, is-dark);
|
||||||
|
|
||||||
|
chat-panel {
|
||||||
|
|
||||||
|
#contacts-list {
|
||||||
|
background-color: map-get($background, app-bar);
|
||||||
|
|
||||||
|
.contacts-list-item {
|
||||||
|
|
||||||
|
&.active {
|
||||||
|
background: map-get($background, hover);
|
||||||
|
|
||||||
|
&:after {
|
||||||
|
background-color: map-get($accent, default);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.unread-count {
|
||||||
|
background-color: map-get($accent, default);
|
||||||
|
color: map-get($accent, default-contrast);
|
||||||
|
}
|
||||||
|
|
||||||
|
.status-icon {
|
||||||
|
border-color: map-get($background, app-bar);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#chat {
|
||||||
|
|
||||||
|
.messages {
|
||||||
|
|
||||||
|
.message-row {
|
||||||
|
|
||||||
|
&.contact {
|
||||||
|
|
||||||
|
.bubble {
|
||||||
|
background-color: map-get($primary, default);
|
||||||
|
color: map-get($primary, default-contrast);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&.me {
|
||||||
|
|
||||||
|
.bubble {
|
||||||
|
color: rgba(0, 0, 0, 0.87);
|
||||||
|
background-color: #E0E0E0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.reply-form {
|
||||||
|
|
||||||
|
.message-text {
|
||||||
|
background-color: map-get($background, app-bar);
|
||||||
|
border-color: map-get($foreground, divider);
|
||||||
|
|
||||||
|
.mat-form-field-wrapper {
|
||||||
|
|
||||||
|
.mat-form-field-flex {
|
||||||
|
|
||||||
|
.mat-form-field-infix {
|
||||||
|
@if ($is-dark == true) {
|
||||||
|
background-color: map-get($background, hover);
|
||||||
|
} @else {
|
||||||
|
background-color: white;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -3,7 +3,7 @@
|
|||||||
<div fxLayout="row" fxLayoutAlign="center center" fxLayoutAlign.gt-xs="space-between center" fxFlex>
|
<div fxLayout="row" fxLayoutAlign="center center" fxLayoutAlign.gt-xs="space-between center" fxFlex>
|
||||||
|
|
||||||
<a href="https://1.envato.market/c/1257954/275988/4415?u=https%3A%2F%2Fthemeforest.net%2Fitem%2Ffuse-angularjs-material-design-admin-template%2F12931855"
|
<a href="https://1.envato.market/c/1257954/275988/4415?u=https%3A%2F%2Fthemeforest.net%2Fitem%2Ffuse-angularjs-material-design-admin-template%2F12931855"
|
||||||
target="_blank" mat-button class="mat-pink-bg" fxFlex="0 0 auto" fxLayout="row"
|
target="_blank" mat-button class="pink" fxFlex="0 0 auto" fxLayout="row"
|
||||||
fxLayoutAlign="start center">
|
fxLayoutAlign="start center">
|
||||||
<mat-icon class="s-16 mr-sm-4">shopping_cart</mat-icon>
|
<mat-icon class="s-16 mr-sm-4">shopping_cart</mat-icon>
|
||||||
<span>Purchase FUSE (Angular 6+)</span>
|
<span>Purchase FUSE (Angular 6+)</span>
|
||||||
|
|||||||
@@ -1 +1,3 @@
|
|||||||
<fuse-navigation layout="horizontal"></fuse-navigation>
|
<div [ngClass]="fuseConfig.layout.navbar.primaryBackground">
|
||||||
|
<fuse-navigation layout="horizontal"></fuse-navigation>
|
||||||
|
</div>
|
||||||
@@ -1,3 +1,16 @@
|
|||||||
navbar-horizontal-style-1 {
|
navbar-horizontal-style-1 {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
navbar {
|
||||||
|
|
||||||
|
&.horizontal-style-1 {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
flex: 1 1 auto;
|
||||||
|
width: 100%;
|
||||||
|
height: 56px;
|
||||||
|
max-height: 56px;
|
||||||
|
min-height: 56px;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -2,6 +2,7 @@ import { Component, OnDestroy, OnInit, ViewEncapsulation } from '@angular/core';
|
|||||||
import { Subject } from 'rxjs';
|
import { Subject } from 'rxjs';
|
||||||
import { filter, takeUntil } from 'rxjs/operators';
|
import { filter, takeUntil } from 'rxjs/operators';
|
||||||
|
|
||||||
|
import { FuseConfigService } from '@fuse/services/config.service';
|
||||||
import { FuseNavigationService } from '@fuse/components/navigation/navigation.service';
|
import { FuseNavigationService } from '@fuse/components/navigation/navigation.service';
|
||||||
import { FuseSidebarService } from '@fuse/components/sidebar/sidebar.service';
|
import { FuseSidebarService } from '@fuse/components/sidebar/sidebar.service';
|
||||||
|
|
||||||
@@ -13,6 +14,7 @@ import { FuseSidebarService } from '@fuse/components/sidebar/sidebar.service';
|
|||||||
})
|
})
|
||||||
export class NavbarHorizontalStyle1Component implements OnInit, OnDestroy
|
export class NavbarHorizontalStyle1Component implements OnInit, OnDestroy
|
||||||
{
|
{
|
||||||
|
fuseConfig: any;
|
||||||
navigation: any;
|
navigation: any;
|
||||||
|
|
||||||
// Private
|
// Private
|
||||||
@@ -21,10 +23,12 @@ export class NavbarHorizontalStyle1Component implements OnInit, OnDestroy
|
|||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
*
|
*
|
||||||
|
* @param {FuseConfigService} _fuseConfigService
|
||||||
* @param {FuseNavigationService} _fuseNavigationService
|
* @param {FuseNavigationService} _fuseNavigationService
|
||||||
* @param {FuseSidebarService} _fuseSidebarService
|
* @param {FuseSidebarService} _fuseSidebarService
|
||||||
*/
|
*/
|
||||||
constructor(
|
constructor(
|
||||||
|
private _fuseConfigService: FuseConfigService,
|
||||||
private _fuseNavigationService: FuseNavigationService,
|
private _fuseNavigationService: FuseNavigationService,
|
||||||
private _fuseSidebarService: FuseSidebarService
|
private _fuseSidebarService: FuseSidebarService
|
||||||
)
|
)
|
||||||
@@ -51,6 +55,13 @@ export class NavbarHorizontalStyle1Component implements OnInit, OnDestroy
|
|||||||
.subscribe(() => {
|
.subscribe(() => {
|
||||||
this.navigation = this._fuseNavigationService.getCurrentNavigation();
|
this.navigation = this._fuseNavigationService.getCurrentNavigation();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// Subscribe to the config changes
|
||||||
|
this._fuseConfigService.config
|
||||||
|
.pipe(takeUntil(this._unsubscribeAll))
|
||||||
|
.subscribe((config) => {
|
||||||
|
this.fuseConfig = config;
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
navbar {
|
navbar {
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
width: 100%;
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Component, Input, ViewEncapsulation } from '@angular/core';
|
import { Component, ElementRef, Input, Renderer2, ViewEncapsulation } from '@angular/core';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector : 'navbar',
|
selector : 'navbar',
|
||||||
@@ -8,16 +8,46 @@ import { Component, Input, ViewEncapsulation } from '@angular/core';
|
|||||||
})
|
})
|
||||||
export class NavbarComponent
|
export class NavbarComponent
|
||||||
{
|
{
|
||||||
// Variant
|
// Private
|
||||||
@Input()
|
_variant: string;
|
||||||
variant;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
|
*
|
||||||
|
* @param {ElementRef} _elementRef
|
||||||
|
* @param {Renderer2} _renderer
|
||||||
*/
|
*/
|
||||||
constructor()
|
constructor(
|
||||||
|
private _elementRef: ElementRef,
|
||||||
|
private _renderer: Renderer2
|
||||||
|
)
|
||||||
{
|
{
|
||||||
// Set the defaults
|
// Set the private defaults
|
||||||
this.variant = 'vertical-style-1';
|
this._variant = 'vertical-style-1';
|
||||||
|
}
|
||||||
|
|
||||||
|
// -----------------------------------------------------------------------------------------------------
|
||||||
|
// @ Accessors
|
||||||
|
// -----------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Variant
|
||||||
|
*/
|
||||||
|
get variant(): string
|
||||||
|
{
|
||||||
|
return this._variant;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Input()
|
||||||
|
set variant(value: string)
|
||||||
|
{
|
||||||
|
// Remove the old class name
|
||||||
|
this._renderer.removeClass(this._elementRef.nativeElement, this.variant);
|
||||||
|
|
||||||
|
// Store the variant value
|
||||||
|
this._variant = value;
|
||||||
|
|
||||||
|
// Add the new class name
|
||||||
|
this._renderer.addClass(this._elementRef.nativeElement, value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
<div class="navbar-top mat-indigo-700-bg">
|
<div class="navbar-top" [ngClass]="fuseConfig.layout.navbar.secondaryBackground">
|
||||||
|
|
||||||
<div class="logo">
|
<div class="logo">
|
||||||
<img class="logo-icon" src="assets/images/logos/fuse.svg">
|
<img class="logo-icon" src="assets/images/logos/fuse.svg">
|
||||||
@@ -22,13 +22,14 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div class="navbar-scroll-container" fusePerfectScrollbar [fusePerfectScrollbarOptions]="{suppressScrollX: true}">
|
<div class="navbar-scroll-container" [ngClass]="fuseConfig.layout.navbar.primaryBackground"
|
||||||
|
fusePerfectScrollbar [fusePerfectScrollbarOptions]="{suppressScrollX: true}">
|
||||||
|
|
||||||
<div class="user mat-indigo-700-bg" fxLayout="column">
|
<div class="user" fxLayout="column" [ngClass]="fuseConfig.layout.navbar.secondaryBackground">
|
||||||
|
|
||||||
<div class="h3 username">Charlie Adams</div>
|
<div class="h3 username">Charlie Adams</div>
|
||||||
<div class="h5 email hint-text mt-8">adams.charlie@mail.com</div>
|
<div class="h5 email hint-text mt-8">adams.charlie@mail.com</div>
|
||||||
<div class="avatar-container" [ngClass]="fuseConfig.layout.navbar.background">
|
<div class="avatar-container" [ngClass]="fuseConfig.layout.navbar.primaryBackground">
|
||||||
<img class="avatar" src="assets/images/avatars/Velazquez.jpg">
|
<img class="avatar" src="assets/images/avatars/Velazquez.jpg">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -1,60 +1,68 @@
|
|||||||
@import "src/@fuse/scss/fuse";
|
@import "src/@fuse/scss/fuse";
|
||||||
|
|
||||||
fuse-sidebar {
|
fuse-sidebar {
|
||||||
overflow: hidden;
|
|
||||||
|
|
||||||
&.folded:not(.unfolded) {
|
&.navbar-fuse-sidebar {
|
||||||
|
overflow: hidden;
|
||||||
|
|
||||||
navbar {
|
&.folded:not(.unfolded) {
|
||||||
|
|
||||||
navbar-vertical-style-1 {
|
navbar {
|
||||||
|
|
||||||
.navbar-top {
|
navbar-vertical-style-1 {
|
||||||
padding: 12px 0;
|
|
||||||
justify-content: center;
|
|
||||||
|
|
||||||
.buttons {
|
.navbar-top {
|
||||||
display: none;
|
padding: 12px 0;
|
||||||
}
|
justify-content: center;
|
||||||
|
|
||||||
.logo {
|
.buttons {
|
||||||
|
|
||||||
.logo-icon {
|
|
||||||
width: 32px;
|
|
||||||
height: 32px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.logo-text {
|
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.logo {
|
||||||
|
|
||||||
|
.logo-icon {
|
||||||
|
width: 32px;
|
||||||
|
height: 32px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.logo-text {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
.navbar-scroll-container {
|
.navbar-scroll-container {
|
||||||
|
|
||||||
.user {
|
.user {
|
||||||
padding: 12px 0;
|
padding: 12px 0;
|
||||||
|
height: 64px;
|
||||||
|
min-height: 64px;
|
||||||
|
max-height: 64px;
|
||||||
|
|
||||||
.avatar-container {
|
.avatar-container {
|
||||||
position: relative;
|
position: relative;
|
||||||
top: auto;
|
top: auto;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
|
transform: translateX(0);
|
||||||
|
left: auto;
|
||||||
|
|
||||||
.avatar {
|
.avatar {
|
||||||
width: 40px;
|
width: 40px;
|
||||||
height: 40px;
|
height: 40px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.username,
|
||||||
|
.email {
|
||||||
|
display: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.username,
|
.navbar-content {
|
||||||
.email {
|
padding-top: 0;
|
||||||
display: none;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.navbar-content {
|
|
||||||
margin-top: 0;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -63,6 +71,24 @@ fuse-sidebar {
|
|||||||
|
|
||||||
navbar {
|
navbar {
|
||||||
|
|
||||||
|
&.vertical-style-1 {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
flex: 1 1 auto;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
|
||||||
|
&.right-navbar {
|
||||||
|
|
||||||
|
.toggle-sidebar-opened {
|
||||||
|
|
||||||
|
mat-icon {
|
||||||
|
transform: rotate(180deg);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
navbar-vertical-style-1 {
|
navbar-vertical-style-1 {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
@@ -76,11 +102,13 @@ navbar {
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
min-height: 64px;
|
min-height: 64px;
|
||||||
|
max-height: 64px;
|
||||||
height: 64px;
|
height: 64px;
|
||||||
padding: 12px 12px 12px 20px;
|
padding: 12px 12px 12px 20px;
|
||||||
|
|
||||||
@include media-breakpoint('xs') {
|
@include media-breakpoint('xs') {
|
||||||
min-height: 56px;
|
min-height: 56px;
|
||||||
|
max-height: 56px;
|
||||||
height: 56px;
|
height: 56px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -109,7 +137,11 @@ navbar {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.navbar-scroll-container {
|
.navbar-scroll-container {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
flex: 1 1 auto;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
|
-webkit-overflow-scrolling: touch;
|
||||||
|
|
||||||
background: linear-gradient(rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0) 30%),
|
background: linear-gradient(rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0) 30%),
|
||||||
linear-gradient(rgba(0, 0, 0, 0.25) 0, rgba(0, 0, 0, 0) 40%);
|
linear-gradient(rgba(0, 0, 0, 0.25) 0, rgba(0, 0, 0, 0) 40%);
|
||||||
@@ -124,6 +156,9 @@ navbar {
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: flex-start;
|
justify-content: flex-start;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
height: 136px;
|
||||||
|
min-height: 136px;
|
||||||
|
max-height: 136px;
|
||||||
padding: 24px 0 64px 0;
|
padding: 24px 0 64px 0;
|
||||||
|
|
||||||
.avatar-container {
|
.avatar-container {
|
||||||
@@ -131,6 +166,8 @@ navbar {
|
|||||||
top: 92px;
|
top: 92px;
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
padding: 8px;
|
padding: 8px;
|
||||||
|
transform: translateX(-50%);
|
||||||
|
left: 50%;
|
||||||
|
|
||||||
.avatar {
|
.avatar {
|
||||||
width: 72px;
|
width: 72px;
|
||||||
@@ -142,17 +179,7 @@ navbar {
|
|||||||
|
|
||||||
.navbar-content {
|
.navbar-content {
|
||||||
flex: 1 1 auto;
|
flex: 1 1 auto;
|
||||||
margin-top: 32px;
|
padding-top: 32px;
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
&.right-navbar {
|
|
||||||
|
|
||||||
.toggle-sidebar-opened {
|
|
||||||
|
|
||||||
mat-icon {
|
|
||||||
transform: rotate(180deg);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { Component, OnDestroy, OnInit, ViewChild, ViewEncapsulation } from '@angular/core';
|
import { Component, OnDestroy, OnInit, ViewChild, ViewEncapsulation } from '@angular/core';
|
||||||
import { NavigationEnd, Router } from '@angular/router';
|
import { NavigationEnd, Router } from '@angular/router';
|
||||||
import { Subject } from 'rxjs';
|
import { Subject } from 'rxjs';
|
||||||
import { filter, take, takeUntil } from 'rxjs/operators';
|
import { delay, filter, take, takeUntil } from 'rxjs/operators';
|
||||||
|
|
||||||
import { FuseConfigService } from '@fuse/services/config.service';
|
import { FuseConfigService } from '@fuse/services/config.service';
|
||||||
import { FuseNavigationService } from '@fuse/components/navigation/navigation.service';
|
import { FuseNavigationService } from '@fuse/components/navigation/navigation.service';
|
||||||
@@ -17,7 +17,6 @@ import { FuseSidebarService } from '@fuse/components/sidebar/sidebar.service';
|
|||||||
export class NavbarVerticalStyle1Component implements OnInit, OnDestroy
|
export class NavbarVerticalStyle1Component implements OnInit, OnDestroy
|
||||||
{
|
{
|
||||||
fuseConfig: any;
|
fuseConfig: any;
|
||||||
fusePerfectScrollbarUpdateTimeout: any;
|
|
||||||
navigation: any;
|
navigation: any;
|
||||||
|
|
||||||
// Private
|
// Private
|
||||||
@@ -60,11 +59,12 @@ export class NavbarVerticalStyle1Component implements OnInit, OnDestroy
|
|||||||
|
|
||||||
// Update the scrollbar on collapsable item toggle
|
// Update the scrollbar on collapsable item toggle
|
||||||
this._fuseNavigationService.onItemCollapseToggled
|
this._fuseNavigationService.onItemCollapseToggled
|
||||||
.pipe(takeUntil(this._unsubscribeAll))
|
.pipe(
|
||||||
|
delay(500),
|
||||||
|
takeUntil(this._unsubscribeAll)
|
||||||
|
)
|
||||||
.subscribe(() => {
|
.subscribe(() => {
|
||||||
this.fusePerfectScrollbarUpdateTimeout = setTimeout(() => {
|
this._fusePerfectScrollbar.update();
|
||||||
this._fusePerfectScrollbar.update();
|
|
||||||
}, 310);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
// Scroll to the active item position
|
// Scroll to the active item position
|
||||||
@@ -135,11 +135,6 @@ export class NavbarVerticalStyle1Component implements OnInit, OnDestroy
|
|||||||
*/
|
*/
|
||||||
ngOnDestroy(): void
|
ngOnDestroy(): void
|
||||||
{
|
{
|
||||||
if ( this.fusePerfectScrollbarUpdateTimeout )
|
|
||||||
{
|
|
||||||
clearTimeout(this.fusePerfectScrollbarUpdateTimeout);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Unsubscribe from all subscriptions
|
// Unsubscribe from all subscriptions
|
||||||
this._unsubscribeAll.next();
|
this._unsubscribeAll.next();
|
||||||
this._unsubscribeAll.complete();
|
this._unsubscribeAll.complete();
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
<div class="navbar-header">
|
<div class="navbar-header" [ngClass]="fuseConfig.layout.navbar.secondaryBackground">
|
||||||
|
|
||||||
<div class="logo">
|
<div class="logo">
|
||||||
<img class="logo-icon" src="assets/images/logos/fuse.svg">
|
<img class="logo-icon" src="assets/images/logos/fuse.svg">
|
||||||
@@ -17,7 +17,7 @@
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="navbar-content" fusePerfectScrollbar
|
<div class="navbar-content" fusePerfectScrollbar [fusePerfectScrollbarOptions]="{suppressScrollX: true}"
|
||||||
[fusePerfectScrollbarOptions]="{suppressScrollX: true}">
|
[ngClass]="fuseConfig.layout.navbar.primaryBackground">
|
||||||
<fuse-navigation layout="vertical"></fuse-navigation>
|
<fuse-navigation layout="vertical"></fuse-navigation>
|
||||||
</div>
|
</div>
|
||||||
@@ -1,22 +1,25 @@
|
|||||||
@import "src/@fuse/scss/fuse";
|
@import "src/@fuse/scss/fuse";
|
||||||
|
|
||||||
fuse-sidebar {
|
fuse-sidebar {
|
||||||
overflow: hidden;
|
|
||||||
|
|
||||||
&.folded:not(.unfolded) {
|
&.navbar-fuse-sidebar {
|
||||||
|
overflow: hidden;
|
||||||
|
|
||||||
navbar {
|
&.folded:not(.unfolded) {
|
||||||
|
|
||||||
navbar-vertical-style-2 {
|
navbar {
|
||||||
|
|
||||||
.navbar-header {
|
navbar-vertical-style-2 {
|
||||||
padding: 0 13px;
|
|
||||||
|
|
||||||
.logo {
|
.navbar-header {
|
||||||
|
padding: 0 13px;
|
||||||
|
|
||||||
.logo-text {
|
.logo {
|
||||||
opacity: 0;
|
|
||||||
transition: opacity 200ms ease;
|
.logo-text {
|
||||||
|
opacity: 0;
|
||||||
|
transition: opacity 200ms ease;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -27,6 +30,24 @@ fuse-sidebar {
|
|||||||
|
|
||||||
navbar {
|
navbar {
|
||||||
|
|
||||||
|
&.vertical-style-2 {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
flex: 1 1 auto;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
|
||||||
|
&.right-navbar {
|
||||||
|
|
||||||
|
.toggle-sidebar-opened {
|
||||||
|
|
||||||
|
mat-icon {
|
||||||
|
transform: rotate(180deg);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
navbar-vertical-style-2 {
|
navbar-vertical-style-2 {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
@@ -41,7 +62,6 @@ navbar {
|
|||||||
min-height: 64px;
|
min-height: 64px;
|
||||||
padding: 0 16px 0 24px;
|
padding: 0 16px 0 24px;
|
||||||
transition: padding 200ms ease;
|
transition: padding 200ms ease;
|
||||||
background-color: rgba(255, 255, 255, .05);
|
|
||||||
@include mat-elevation(1);
|
@include mat-elevation(1);
|
||||||
|
|
||||||
.logo {
|
.logo {
|
||||||
@@ -65,17 +85,8 @@ navbar {
|
|||||||
.navbar-content {
|
.navbar-content {
|
||||||
flex: 1 1 auto;
|
flex: 1 1 auto;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
|
-webkit-overflow-scrolling: touch;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
&.right-navbar {
|
|
||||||
|
|
||||||
.toggle-sidebar-opened {
|
|
||||||
|
|
||||||
mat-icon {
|
|
||||||
transform: rotate(180deg);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,8 +1,9 @@
|
|||||||
import { Component, OnDestroy, OnInit, ViewChild, ViewEncapsulation } from '@angular/core';
|
import { Component, OnDestroy, OnInit, ViewChild, ViewEncapsulation } from '@angular/core';
|
||||||
import { NavigationEnd, Router } from '@angular/router';
|
import { NavigationEnd, Router } from '@angular/router';
|
||||||
import { Subject } from 'rxjs';
|
import { Subject } from 'rxjs';
|
||||||
import { filter, take, takeUntil } from 'rxjs/operators';
|
import { delay, filter, take, takeUntil } from 'rxjs/operators';
|
||||||
|
|
||||||
|
import { FuseConfigService } from '@fuse/services/config.service';
|
||||||
import { FuseNavigationService } from '@fuse/components/navigation/navigation.service';
|
import { FuseNavigationService } from '@fuse/components/navigation/navigation.service';
|
||||||
import { FusePerfectScrollbarDirective } from '@fuse/directives/fuse-perfect-scrollbar/fuse-perfect-scrollbar.directive';
|
import { FusePerfectScrollbarDirective } from '@fuse/directives/fuse-perfect-scrollbar/fuse-perfect-scrollbar.directive';
|
||||||
import { FuseSidebarService } from '@fuse/components/sidebar/sidebar.service';
|
import { FuseSidebarService } from '@fuse/components/sidebar/sidebar.service';
|
||||||
@@ -15,7 +16,7 @@ import { FuseSidebarService } from '@fuse/components/sidebar/sidebar.service';
|
|||||||
})
|
})
|
||||||
export class NavbarVerticalStyle2Component implements OnInit, OnDestroy
|
export class NavbarVerticalStyle2Component implements OnInit, OnDestroy
|
||||||
{
|
{
|
||||||
fusePerfectScrollbarUpdateTimeout: any;
|
fuseConfig: any;
|
||||||
navigation: any;
|
navigation: any;
|
||||||
|
|
||||||
// Private
|
// Private
|
||||||
@@ -25,11 +26,13 @@ export class NavbarVerticalStyle2Component implements OnInit, OnDestroy
|
|||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
*
|
*
|
||||||
|
* @param {FuseConfigService} _fuseConfigService
|
||||||
* @param {FuseNavigationService} _fuseNavigationService
|
* @param {FuseNavigationService} _fuseNavigationService
|
||||||
* @param {FuseSidebarService} _fuseSidebarService
|
* @param {FuseSidebarService} _fuseSidebarService
|
||||||
* @param {Router} _router
|
* @param {Router} _router
|
||||||
*/
|
*/
|
||||||
constructor(
|
constructor(
|
||||||
|
private _fuseConfigService: FuseConfigService,
|
||||||
private _fuseNavigationService: FuseNavigationService,
|
private _fuseNavigationService: FuseNavigationService,
|
||||||
private _fuseSidebarService: FuseSidebarService,
|
private _fuseSidebarService: FuseSidebarService,
|
||||||
private _router: Router
|
private _router: Router
|
||||||
@@ -56,11 +59,12 @@ export class NavbarVerticalStyle2Component implements OnInit, OnDestroy
|
|||||||
|
|
||||||
// Update the scrollbar on collapsable item toggle
|
// Update the scrollbar on collapsable item toggle
|
||||||
this._fuseNavigationService.onItemCollapseToggled
|
this._fuseNavigationService.onItemCollapseToggled
|
||||||
.pipe(takeUntil(this._unsubscribeAll))
|
.pipe(
|
||||||
|
delay(500),
|
||||||
|
takeUntil(this._unsubscribeAll)
|
||||||
|
)
|
||||||
.subscribe(() => {
|
.subscribe(() => {
|
||||||
this.fusePerfectScrollbarUpdateTimeout = setTimeout(() => {
|
this._fusePerfectScrollbar.update();
|
||||||
this._fusePerfectScrollbar.update();
|
|
||||||
}, 310);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
// Scroll to the active item position
|
// Scroll to the active item position
|
||||||
@@ -117,6 +121,13 @@ export class NavbarVerticalStyle2Component implements OnInit, OnDestroy
|
|||||||
.subscribe(() => {
|
.subscribe(() => {
|
||||||
this.navigation = this._fuseNavigationService.getCurrentNavigation();
|
this.navigation = this._fuseNavigationService.getCurrentNavigation();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// Subscribe to the config changes
|
||||||
|
this._fuseConfigService.config
|
||||||
|
.pipe(takeUntil(this._unsubscribeAll))
|
||||||
|
.subscribe((config) => {
|
||||||
|
this.fuseConfig = config;
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -124,11 +135,6 @@ export class NavbarVerticalStyle2Component implements OnInit, OnDestroy
|
|||||||
*/
|
*/
|
||||||
ngOnDestroy(): void
|
ngOnDestroy(): void
|
||||||
{
|
{
|
||||||
if ( this.fusePerfectScrollbarUpdateTimeout )
|
|
||||||
{
|
|
||||||
clearTimeout(this.fusePerfectScrollbarUpdateTimeout);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Unsubscribe from all subscriptions
|
// Unsubscribe from all subscriptions
|
||||||
this._unsubscribeAll.next();
|
this._unsubscribeAll.next();
|
||||||
this._unsubscribeAll.complete();
|
this._unsubscribeAll.complete();
|
||||||
|
|||||||
@@ -1,72 +1,76 @@
|
|||||||
<mat-list class="date" cdkFocusRegionStart>
|
<div fxLayout="column" fxFlex fusePerfectScrollbar>
|
||||||
|
|
||||||
<h3 matSubheader cdkFocusInit>
|
<mat-list class="date" cdkFocusRegionStart>
|
||||||
<span>Today</span>
|
|
||||||
</h3>
|
|
||||||
|
|
||||||
<div class="secondary-text mat-display-1 mb-0 p-16">
|
<h3 matSubheader cdkFocusInit>
|
||||||
<div class="mb-12">
|
<span>Today</span>
|
||||||
{{date | date:'EEEE'}}
|
</h3>
|
||||||
|
|
||||||
|
<div class="secondary-text mat-display-1 mb-0 p-16">
|
||||||
|
<div class="mb-12">
|
||||||
|
{{date | date:'EEEE'}}
|
||||||
|
</div>
|
||||||
|
<div fxLayout="row" fxLayoutAlign="start start">
|
||||||
|
<span> {{date | date:'d'}}</span>
|
||||||
|
<span class="mat-subheading-1">th</span>
|
||||||
|
<span> {{date | date:'MMMM'}}</span>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div fxLayout="row" fxLayoutAlign="start start">
|
</mat-list>
|
||||||
<span> {{date | date:'d'}}</span>
|
|
||||||
<span class="mat-subheading-1">th</span>
|
|
||||||
<span> {{date | date:'MMMM'}}</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</mat-list>
|
|
||||||
|
|
||||||
<mat-divider cdkFocusRegionEnd></mat-divider>
|
<mat-divider cdkFocusRegionEnd></mat-divider>
|
||||||
|
|
||||||
<mat-list>
|
<mat-list>
|
||||||
<h3 matSubheader>
|
<h3 matSubheader>
|
||||||
<span>Events</span>
|
<span>Events</span>
|
||||||
</h3>
|
</h3>
|
||||||
|
|
||||||
<mat-list-item *ngFor="let event of events">
|
<mat-list-item *ngFor="let event of events">
|
||||||
<h3 matLine>{{event.title}}</h3>
|
<h3 matLine>{{event.title}}</h3>
|
||||||
<p matLine class="secondary-text">{{event.detail}}</p>
|
<p matLine class="secondary-text">{{event.detail}}</p>
|
||||||
</mat-list-item>
|
</mat-list-item>
|
||||||
</mat-list>
|
</mat-list>
|
||||||
|
|
||||||
<mat-divider></mat-divider>
|
<mat-divider></mat-divider>
|
||||||
|
|
||||||
<mat-list>
|
<mat-list>
|
||||||
<h3 matSubheader>
|
<h3 matSubheader>
|
||||||
<span>Notes</span>
|
<span>Notes</span>
|
||||||
</h3>
|
</h3>
|
||||||
|
|
||||||
<mat-list-item *ngFor="let note of notes">
|
<mat-list-item *ngFor="let note of notes">
|
||||||
<h3 matLine>{{note.title}}</h3>
|
<h3 matLine>{{note.title}}</h3>
|
||||||
<p matLine class="secondary-text">{{note.detail}}</p>
|
<p matLine class="secondary-text">{{note.detail}}</p>
|
||||||
</mat-list-item>
|
</mat-list-item>
|
||||||
</mat-list>
|
</mat-list>
|
||||||
|
|
||||||
<mat-divider></mat-divider>
|
<mat-divider></mat-divider>
|
||||||
|
|
||||||
<mat-list>
|
<mat-list>
|
||||||
<h3 matSubheader>
|
<h3 matSubheader>
|
||||||
<span>Quick Settings</span>
|
<span>Quick Settings</span>
|
||||||
</h3>
|
</h3>
|
||||||
|
|
||||||
<mat-list-item>
|
<mat-list-item>
|
||||||
<mat-slide-toggle fxFlex class="mat-primary" [(ngModel)]="settings.notify" aria-label="Notifications"
|
<mat-slide-toggle fxFlex class="mat-primary" [(ngModel)]="settings.notify" aria-label="Notifications"
|
||||||
labelPosition="before">
|
labelPosition="before">
|
||||||
<h3>Notifications</h3>
|
<h3>Notifications</h3>
|
||||||
</mat-slide-toggle>
|
</mat-slide-toggle>
|
||||||
</mat-list-item>
|
</mat-list-item>
|
||||||
|
|
||||||
<mat-list-item>
|
<mat-list-item>
|
||||||
<mat-slide-toggle fxFlex class="mat-accent" [(ngModel)]="settings.cloud" aria-label="Cloud"
|
<mat-slide-toggle fxFlex class="mat-accent" [(ngModel)]="settings.cloud" aria-label="Cloud"
|
||||||
labelPosition="before">
|
labelPosition="before">
|
||||||
<h3>Cloud Sync</h3>
|
<h3>Cloud Sync</h3>
|
||||||
</mat-slide-toggle>
|
</mat-slide-toggle>
|
||||||
</mat-list-item>
|
</mat-list-item>
|
||||||
|
|
||||||
<mat-list-item>
|
<mat-list-item>
|
||||||
<mat-slide-toggle fxFlex class="mat-warn" [(ngModel)]="settings.retro" aria-label="Retro Thrusters"
|
<mat-slide-toggle fxFlex class="mat-warn" [(ngModel)]="settings.retro" aria-label="Retro Thrusters"
|
||||||
labelPosition="before">
|
labelPosition="before">
|
||||||
<h3>Retro Thrusters</h3>
|
<h3>Retro Thrusters</h3>
|
||||||
</mat-slide-toggle>
|
</mat-slide-toggle>
|
||||||
</mat-list-item>
|
</mat-list-item>
|
||||||
</mat-list>
|
</mat-list>
|
||||||
|
|
||||||
|
</div>
|
||||||
@@ -1,10 +1,11 @@
|
|||||||
quick-panel {
|
quick-panel {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
flex: 1 1 auto;
|
||||||
width: 280px;
|
width: 280px;
|
||||||
min-width: 280px;
|
min-width: 280px;
|
||||||
max-width: 280px;
|
max-width: 280px;
|
||||||
z-index: 99;
|
z-index: 99;
|
||||||
flex-direction: column;
|
|
||||||
|
|
||||||
.mat-slide-toggle-content {
|
.mat-slide-toggle-content {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
|
|||||||
@@ -1,7 +1,5 @@
|
|||||||
<mat-toolbar class="p-0 mat-elevation-z1">
|
<mat-toolbar class="p-0 mat-elevation-z1">
|
||||||
|
|
||||||
<mat-progress-bar *ngIf="showLoadingBar" class="loading-bar" color="accent" mode="indeterminate"></mat-progress-bar>
|
|
||||||
|
|
||||||
<div fxFlex fxFill fxLayout="row" fxLayoutAlign="start center">
|
<div fxFlex fxFill fxLayout="row" fxLayoutAlign="start center">
|
||||||
|
|
||||||
<div fxFlex="1 0 auto" fxLayout="row" fxLayoutAlign="start center">
|
<div fxFlex="1 0 auto" fxLayout="row" fxLayoutAlign="start center">
|
||||||
@@ -19,7 +17,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="px-8 px-mat-16">
|
<div class="px-8 px-md-16">
|
||||||
<fuse-shortcuts [navigation]="navigation"></fuse-shortcuts>
|
<fuse-shortcuts [navigation]="navigation"></fuse-shortcuts>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -93,7 +91,7 @@
|
|||||||
class="chat-panel-toggle-button"
|
class="chat-panel-toggle-button"
|
||||||
(click)="toggleSidebarOpen('chatPanel')"
|
(click)="toggleSidebarOpen('chatPanel')"
|
||||||
aria-label="Toggle chat panel">
|
aria-label="Toggle chat panel">
|
||||||
<mat-icon class="icon">chat</mat-icon>
|
<mat-icon class="secondary-text">chat</mat-icon>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<div class="toolbar-separator" fxHide.gt-md></div>
|
<div class="toolbar-separator" fxHide.gt-md></div>
|
||||||
@@ -102,7 +100,7 @@
|
|||||||
class="quick-panel-toggle-button"
|
class="quick-panel-toggle-button"
|
||||||
(click)="toggleSidebarOpen('quickPanel')"
|
(click)="toggleSidebarOpen('quickPanel')"
|
||||||
aria-label="Toggle quick panel">
|
aria-label="Toggle quick panel">
|
||||||
<mat-icon class="icon">format_list_bulleted</mat-icon>
|
<mat-icon class="secondary-text">format_list_bulleted</mat-icon>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<div class="toolbar-separator" *ngIf="!hiddenNavbar && rightNavbar" fxHide fxShow.gt-xs></div>
|
<div class="toolbar-separator" *ngIf="!hiddenNavbar && rightNavbar" fxHide fxShow.gt-xs></div>
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
@import "src/@fuse/scss/fuse";
|
@import "src/@fuse/scss/fuse";
|
||||||
|
|
||||||
:host {
|
toolbar {
|
||||||
position: relative;
|
position: relative;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex: 0 0 auto;
|
flex: 0 0 auto;
|
||||||
@@ -11,17 +11,9 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.mat-toolbar {
|
.mat-toolbar {
|
||||||
|
position: relative;
|
||||||
background: inherit;
|
background: inherit;
|
||||||
color: inherit;
|
color: inherit;
|
||||||
position: relative;
|
|
||||||
|
|
||||||
.loading-bar {
|
|
||||||
position: absolute;
|
|
||||||
top: 0;
|
|
||||||
left: 0;
|
|
||||||
right: 0;
|
|
||||||
width: 100%;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.logo {
|
.logo {
|
||||||
@@ -54,7 +46,6 @@
|
|||||||
.toolbar-separator {
|
.toolbar-separator {
|
||||||
height: 64px;
|
height: 64px;
|
||||||
width: 1px;
|
width: 1px;
|
||||||
background: rgba(0, 0, 0, .12);
|
|
||||||
|
|
||||||
@include media-breakpoint-down('xs') {
|
@include media-breakpoint-down('xs') {
|
||||||
height: 56px;
|
height: 56px;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Component, OnDestroy, OnInit } from '@angular/core';
|
import { Component, OnDestroy, OnInit, ViewEncapsulation } from '@angular/core';
|
||||||
import { Subject } from 'rxjs';
|
import { Subject } from 'rxjs';
|
||||||
import { takeUntil } from 'rxjs/operators';
|
import { takeUntil } from 'rxjs/operators';
|
||||||
import { TranslateService } from '@ngx-translate/core';
|
import { TranslateService } from '@ngx-translate/core';
|
||||||
@@ -8,12 +8,12 @@ import { FuseConfigService } from '@fuse/services/config.service';
|
|||||||
import { FuseSidebarService } from '@fuse/components/sidebar/sidebar.service';
|
import { FuseSidebarService } from '@fuse/components/sidebar/sidebar.service';
|
||||||
|
|
||||||
import { navigation } from 'app/navigation/navigation';
|
import { navigation } from 'app/navigation/navigation';
|
||||||
import { FuseLoadingBarService } from '@fuse/services/loading-bar.service';
|
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector : 'toolbar',
|
selector : 'toolbar',
|
||||||
templateUrl: './toolbar.component.html',
|
templateUrl : './toolbar.component.html',
|
||||||
styleUrls : ['./toolbar.component.scss']
|
styleUrls : ['./toolbar.component.scss'],
|
||||||
|
encapsulation: ViewEncapsulation.None
|
||||||
})
|
})
|
||||||
|
|
||||||
export class ToolbarComponent implements OnInit, OnDestroy
|
export class ToolbarComponent implements OnInit, OnDestroy
|
||||||
@@ -24,9 +24,7 @@ export class ToolbarComponent implements OnInit, OnDestroy
|
|||||||
languages: any;
|
languages: any;
|
||||||
navigation: any;
|
navigation: any;
|
||||||
selectedLanguage: any;
|
selectedLanguage: any;
|
||||||
showLoadingBar: boolean;
|
|
||||||
userStatusOptions: any[];
|
userStatusOptions: any[];
|
||||||
chatPanelLockedOpen: string;
|
|
||||||
|
|
||||||
// Private
|
// Private
|
||||||
private _unsubscribeAll: Subject<any>;
|
private _unsubscribeAll: Subject<any>;
|
||||||
@@ -35,13 +33,11 @@ export class ToolbarComponent implements OnInit, OnDestroy
|
|||||||
* Constructor
|
* Constructor
|
||||||
*
|
*
|
||||||
* @param {FuseConfigService} _fuseConfigService
|
* @param {FuseConfigService} _fuseConfigService
|
||||||
* @param {FuseLoadingBarService} _fuseLoadingBarService
|
|
||||||
* @param {FuseSidebarService} _fuseSidebarService
|
* @param {FuseSidebarService} _fuseSidebarService
|
||||||
* @param {TranslateService} _translateService
|
* @param {TranslateService} _translateService
|
||||||
*/
|
*/
|
||||||
constructor(
|
constructor(
|
||||||
private _fuseConfigService: FuseConfigService,
|
private _fuseConfigService: FuseConfigService,
|
||||||
private _fuseLoadingBarService: FuseLoadingBarService,
|
|
||||||
private _fuseSidebarService: FuseSidebarService,
|
private _fuseSidebarService: FuseSidebarService,
|
||||||
private _translateService: TranslateService
|
private _translateService: TranslateService
|
||||||
)
|
)
|
||||||
@@ -103,13 +99,6 @@ export class ToolbarComponent implements OnInit, OnDestroy
|
|||||||
*/
|
*/
|
||||||
ngOnInit(): void
|
ngOnInit(): void
|
||||||
{
|
{
|
||||||
// Subscribe to the Fuse loading bar service
|
|
||||||
this._fuseLoadingBarService.visible
|
|
||||||
.pipe(takeUntil(this._unsubscribeAll))
|
|
||||||
.subscribe((visible) => {
|
|
||||||
this.showLoadingBar = visible;
|
|
||||||
});
|
|
||||||
|
|
||||||
// Subscribe to the config changes
|
// Subscribe to the config changes
|
||||||
this._fuseConfigService.config
|
this._fuseConfigService.config
|
||||||
.pipe(takeUntil(this._unsubscribeAll))
|
.pipe(takeUntil(this._unsubscribeAll))
|
||||||
@@ -147,28 +136,6 @@ export class ToolbarComponent implements OnInit, OnDestroy
|
|||||||
this._fuseSidebarService.getSidebar(key).toggleOpen();
|
this._fuseSidebarService.getSidebar(key).toggleOpen();
|
||||||
}
|
}
|
||||||
|
|
||||||
toggleChatPanel(): void
|
|
||||||
{
|
|
||||||
// Get the chat panel sidebar
|
|
||||||
const chatPanelSidebar = this._fuseSidebarService.getSidebar('chatPanel');
|
|
||||||
|
|
||||||
// Store the original value
|
|
||||||
if ( chatPanelSidebar.lockedOpen !== '' )
|
|
||||||
{
|
|
||||||
this.chatPanelLockedOpen = chatPanelSidebar.lockedOpen;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Toggle
|
|
||||||
if ( chatPanelSidebar.lockedOpen === this.chatPanelLockedOpen )
|
|
||||||
{
|
|
||||||
chatPanelSidebar.lockedOpen = '';
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
chatPanelSidebar.lockedOpen = this.chatPanelLockedOpen;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Search
|
* Search
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { NgModule } from '@angular/core';
|
import { NgModule } from '@angular/core';
|
||||||
import { RouterModule } from '@angular/router';
|
import { RouterModule } from '@angular/router';
|
||||||
import { MatButtonModule, MatIconModule, MatMenuModule, MatProgressBarModule, MatToolbarModule } from '@angular/material';
|
import { MatButtonModule, MatIconModule, MatMenuModule, MatToolbarModule } from '@angular/material';
|
||||||
|
|
||||||
import { FuseSearchBarModule, FuseShortcutsModule } from '@fuse/components';
|
import { FuseSearchBarModule, FuseShortcutsModule } from '@fuse/components';
|
||||||
import { FuseSharedModule } from '@fuse/shared.module';
|
import { FuseSharedModule } from '@fuse/shared.module';
|
||||||
@@ -16,7 +16,6 @@ import { ToolbarComponent } from 'app/layout/components/toolbar/toolbar.componen
|
|||||||
MatButtonModule,
|
MatButtonModule,
|
||||||
MatIconModule,
|
MatIconModule,
|
||||||
MatMenuModule,
|
MatMenuModule,
|
||||||
MatProgressBarModule,
|
|
||||||
MatToolbarModule,
|
MatToolbarModule,
|
||||||
|
|
||||||
FuseSharedModule,
|
FuseSharedModule,
|
||||||
|
|||||||
8
src/app/layout/components/toolbar/toolbar.theme.scss
Normal file
8
src/app/layout/components/toolbar/toolbar.theme.scss
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
@mixin toolbar-theme($theme) {
|
||||||
|
|
||||||
|
$foreground: map-get($theme, foreground);
|
||||||
|
|
||||||
|
.toolbar-separator {
|
||||||
|
background: map-get($foreground, divider);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,4 +1,18 @@
|
|||||||
<div id="main" [ngClass]="{'boxed':fuseConfig.layout.width === 'boxed'}">
|
<!-- SIDE PANEL -->
|
||||||
|
<ng-container *ngIf="!fuseConfig.layout.sidepanel.hidden && fuseConfig.layout.sidepanel.position === 'left'">
|
||||||
|
|
||||||
|
<!-- CHAT PANEL -->
|
||||||
|
<fuse-sidebar name="chatPanel" position="left" class="chat-panel left-chat-panel"
|
||||||
|
[folded]="true" [foldedWidth]="70" [foldedAutoTriggerOnHover]="false"
|
||||||
|
lockedOpen="gt-md">
|
||||||
|
<chat-panel></chat-panel>
|
||||||
|
</fuse-sidebar>
|
||||||
|
<!-- / CHAT PANEL -->
|
||||||
|
|
||||||
|
</ng-container>
|
||||||
|
<!-- / SIDE PANEL -->
|
||||||
|
|
||||||
|
<div id="main">
|
||||||
|
|
||||||
<!-- TOOLBAR: Above -->
|
<!-- TOOLBAR: Above -->
|
||||||
<ng-container *ngIf="fuseConfig.layout.toolbar.position === 'above'">
|
<ng-container *ngIf="fuseConfig.layout.toolbar.position === 'above'">
|
||||||
@@ -55,13 +69,19 @@
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- CHAT PANEL -->
|
<!-- SIDE PANEL -->
|
||||||
<fuse-sidebar class="chat-panel" name="chatPanel" position="right"
|
<ng-container *ngIf="!fuseConfig.layout.sidepanel.hidden && fuseConfig.layout.sidepanel.position === 'right'">
|
||||||
[folded]="true" [foldedWidth]="70" [foldedAutoTriggerOnHover]="false"
|
|
||||||
lockedOpen="gt-md">
|
<!-- CHAT PANEL -->
|
||||||
<chat-panel></chat-panel>
|
<fuse-sidebar name="chatPanel" position="right" class="chat-panel right-chat-panel"
|
||||||
</fuse-sidebar>
|
[folded]="true" [foldedWidth]="70" [foldedAutoTriggerOnHover]="false"
|
||||||
<!-- / CHAT PANEL -->
|
lockedOpen="gt-md">
|
||||||
|
<chat-panel></chat-panel>
|
||||||
|
</fuse-sidebar>
|
||||||
|
<!-- / CHAT PANEL -->
|
||||||
|
|
||||||
|
</ng-container>
|
||||||
|
<!-- / SIDE PANEL -->
|
||||||
|
|
||||||
<!-- QUICK PANEL -->
|
<!-- QUICK PANEL -->
|
||||||
<fuse-sidebar name="quickPanel" position="right" class="quick-panel">
|
<fuse-sidebar name="quickPanel" position="right" class="quick-panel">
|
||||||
@@ -76,22 +96,23 @@
|
|||||||
<!-- TOOLBAR -->
|
<!-- TOOLBAR -->
|
||||||
<ng-template #toolbar>
|
<ng-template #toolbar>
|
||||||
<toolbar *ngIf="!fuseConfig.layout.toolbar.hidden"
|
<toolbar *ngIf="!fuseConfig.layout.toolbar.hidden"
|
||||||
[ngClass]="[fuseConfig.layout.toolbar.position, fuseConfig.layout.toolbar.background]"></toolbar>
|
[ngClass]="fuseConfig.layout.toolbar.customBackgroundColor === true ? fuseConfig.layout.toolbar.position + ' ' + fuseConfig.layout.toolbar.background : fuseConfig.layout.toolbar.position">
|
||||||
|
</toolbar>
|
||||||
</ng-template>
|
</ng-template>
|
||||||
<!-- / TOOLBAR -->
|
<!-- / TOOLBAR -->
|
||||||
|
|
||||||
<!-- FOOTER -->
|
<!-- FOOTER -->
|
||||||
<ng-template #footer>
|
<ng-template #footer>
|
||||||
<footer *ngIf="!fuseConfig.layout.footer.hidden"
|
<footer *ngIf="!fuseConfig.layout.footer.hidden"
|
||||||
[ngClass]="[fuseConfig.layout.footer.position, fuseConfig.layout.footer.background]"></footer>
|
[ngClass]="fuseConfig.layout.footer.customBackgroundColor === true ? fuseConfig.layout.footer.position + ' ' + fuseConfig.layout.footer.background : fuseConfig.layout.footer.position">
|
||||||
|
</footer>
|
||||||
</ng-template>
|
</ng-template>
|
||||||
<!-- / FOOTER -->
|
<!-- / FOOTER -->
|
||||||
|
|
||||||
<!-- TOP NAVBAR -->
|
<!-- TOP NAVBAR -->
|
||||||
<ng-template #topNavbar>
|
<ng-template #topNavbar>
|
||||||
<navbar variant="horizontal-style-1"
|
<navbar variant="horizontal-style-1"
|
||||||
class="top-navbar" [ngClass]="fuseConfig.layout.navbar.background"
|
class="top-navbar" fxHide fxShow.gt-md
|
||||||
fxHide fxShow.gt-md
|
|
||||||
*ngIf="!fuseConfig.layout.navbar.hidden">
|
*ngIf="!fuseConfig.layout.navbar.hidden">
|
||||||
</navbar>
|
</navbar>
|
||||||
</ng-template>
|
</ng-template>
|
||||||
@@ -99,11 +120,10 @@
|
|||||||
|
|
||||||
<!-- LEFT NAVBAR -->
|
<!-- LEFT NAVBAR -->
|
||||||
<ng-template #leftNavbar>
|
<ng-template #leftNavbar>
|
||||||
<fuse-sidebar name="navbar"
|
<fuse-sidebar name="navbar" class="navbar-fuse-sidebar"
|
||||||
[folded]="fuseConfig.layout.navbar.folded"
|
[folded]="fuseConfig.layout.navbar.folded"
|
||||||
*ngIf="!fuseConfig.layout.navbar.hidden">
|
*ngIf="!fuseConfig.layout.navbar.hidden">
|
||||||
<navbar [variant]="fuseConfig.layout.navbar.variant"
|
<navbar [variant]="fuseConfig.layout.navbar.variant" class="left-navbar"></navbar>
|
||||||
class="left-navbar" [ngClass]="fuseConfig.layout.navbar.background"></navbar>
|
|
||||||
</fuse-sidebar>
|
</fuse-sidebar>
|
||||||
</ng-template>
|
</ng-template>
|
||||||
<!-- / LEFT NAVBAR -->
|
<!-- / LEFT NAVBAR -->
|
||||||
|
|||||||
@@ -16,13 +16,6 @@ horizontal-layout-1 {
|
|||||||
z-index: 1;
|
z-index: 1;
|
||||||
min-width: 0;
|
min-width: 0;
|
||||||
|
|
||||||
// Boxed
|
|
||||||
&.boxed {
|
|
||||||
max-width: 1200px;
|
|
||||||
margin: 0 auto;
|
|
||||||
@include mat-elevation(8);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Container 1
|
// Container 1
|
||||||
> .container {
|
> .container {
|
||||||
position: relative;
|
position: relative;
|
||||||
@@ -46,9 +39,9 @@ horizontal-layout-1 {
|
|||||||
display: flex;
|
display: flex;
|
||||||
flex: 1 1 0%;
|
flex: 1 1 0%;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
transform: translateZ(0);
|
|
||||||
overflow-x: hidden;
|
overflow-x: hidden;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
|
-webkit-overflow-scrolling: touch;
|
||||||
|
|
||||||
// Content component
|
// Content component
|
||||||
content {
|
content {
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user