novo-elements 6.0.5 → 6.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/novo-elements.umd.js +91 -16
- package/bundles/novo-elements.umd.js.map +1 -1
- package/bundles/novo-elements.umd.min.js +2 -2
- package/bundles/novo-elements.umd.min.js.map +1 -1
- package/elements/button/styles/button-other.scss +1 -1
- package/elements/calendar/calendar.component.scss +1 -1
- package/elements/calendar/month-view/month-view.component.scss +10 -10
- package/elements/common/option/option.component.scss +0 -1
- package/elements/common/typography/text.mixins.scss +1 -1
- package/elements/data-table/data-table.component.scss +1 -1
- package/elements/form/ControlGroup.scss +1 -1
- package/elements/switch/Switch.scss +1 -1
- package/elements/tabbed-group-picker/TabbedGroupPicker.scss +0 -1
- package/elements/toolbar/toolbar.component.scss +5 -3
- package/esm2015/src/elements/aside/aside-ref.js +10 -4
- package/esm2015/src/elements/aside/aside.service.js +2 -2
- package/esm2015/src/elements/button/Button.js +1 -1
- package/esm2015/src/elements/calendar/calendar.component.js +1 -1
- package/esm2015/src/elements/calendar/month-view/month-view.component.js +1 -1
- package/esm2015/src/elements/common/common.module.js +1 -1
- package/esm2015/src/elements/common/directives/accent.directive.js +19 -4
- package/esm2015/src/elements/common/index.js +2 -1
- package/esm2015/src/elements/common/option/option.component.js +1 -1
- package/esm2015/src/elements/common/theme/theme-options.js +40 -0
- package/esm2015/src/elements/common/typography/caption/caption.component.js +1 -1
- package/esm2015/src/elements/date-picker/DatePickerInput.js +5 -2
- package/esm2015/src/elements/field/hint/hint.js +1 -1
- package/esm2015/src/elements/modal/modal-ref.js +1 -1
- package/esm2015/src/elements/toolbar/toolbar.component.js +1 -1
- package/esm2015/src/novo-elements.providers.js +1 -3
- package/esm2015/src/services/security/Security.js +4 -2
- package/fesm2015/novo-elements.js +78 -18
- package/fesm2015/novo-elements.js.map +1 -1
- package/novo-elements.scss +5 -5
- package/package.json +1 -1
- package/schematics/package.json +1 -1
- package/src/elements/aside/aside-ref.d.ts +6 -4
- package/src/elements/aside/aside.service.d.ts +3 -2
- package/src/elements/common/directives/accent.directive.d.ts +7 -2
- package/src/elements/common/index.d.ts +1 -0
- package/src/elements/common/theme/theme-options.d.ts +29 -0
- package/src/elements/modal/modal-ref.d.ts +5 -5
- package/src/elements/modal/modal.service.d.ts +1 -1
- package/styles/themes/dark.scss +2 -2
- package/styles/themes/light.scss +4 -5
- package/styles/typography.scss +0 -10
package/novo-elements.scss
CHANGED
|
@@ -98,13 +98,13 @@
|
|
|
98
98
|
background-color: var(--background-body, $color-silver);
|
|
99
99
|
}
|
|
100
100
|
.txc-main {
|
|
101
|
-
color: var(--text-main, $color-
|
|
102
|
-
}
|
|
103
|
-
.txc-bright {
|
|
104
|
-
color: var(--text-bright, $color-black);
|
|
101
|
+
color: var(--text-main, $color-charcoal);
|
|
105
102
|
}
|
|
106
103
|
.txc-muted {
|
|
107
|
-
color: var(--text-muted, $color-
|
|
104
|
+
color: var(--text-muted, $color-neutral);
|
|
105
|
+
}
|
|
106
|
+
.txc-disabled {
|
|
107
|
+
color: var(--text-disabled, $color-slate);
|
|
108
108
|
}
|
|
109
109
|
|
|
110
110
|
@include theme-colors() using ($name, $color, $contrast, $tint, $shade, $pale) {
|
package/package.json
CHANGED
package/schematics/package.json
CHANGED
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
import { OverlayRef } from '@angular/cdk/overlay';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import { AsideComponent } from './aside.component';
|
|
4
|
-
export declare class NovoAsideRef<T = any> {
|
|
4
|
+
export declare class NovoAsideRef<T = any, R = any> {
|
|
5
5
|
component: any;
|
|
6
6
|
params: T;
|
|
7
7
|
private overlayRef;
|
|
8
8
|
constructor(component: any, params: T, overlayRef: OverlayRef);
|
|
9
9
|
private _beforeClose;
|
|
10
10
|
private _afterClosed;
|
|
11
|
+
isClosed: boolean;
|
|
11
12
|
componentInstance: AsideComponent;
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
get onClosed(): Promise<R>;
|
|
14
|
+
afterClosed(): Observable<R>;
|
|
15
|
+
beforeClose(): Observable<R>;
|
|
16
|
+
close(result?: R): void;
|
|
15
17
|
}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { Overlay
|
|
1
|
+
import { Overlay } from '@angular/cdk/overlay';
|
|
2
2
|
import { Injector } from '@angular/core';
|
|
3
|
+
import { NovoAsideRef } from './aside-ref';
|
|
3
4
|
export declare class NovoAsideService {
|
|
4
5
|
private injector;
|
|
5
6
|
private overlay;
|
|
6
7
|
constructor(injector: Injector, overlay: Overlay);
|
|
7
|
-
open(component: any, params?: {}, config?: {}):
|
|
8
|
+
open<R = any>(component: any, params?: {}, config?: {}): NovoAsideRef<{}, R>;
|
|
8
9
|
private createOverlay;
|
|
9
10
|
private attachAsideContainer;
|
|
10
11
|
private createInjector;
|
|
@@ -1,7 +1,12 @@
|
|
|
1
|
-
import { ElementRef } from '@angular/core';
|
|
1
|
+
import { ChangeDetectorRef, ElementRef } from '@angular/core';
|
|
2
|
+
import { NovoTheme } from '../theme/theme-options';
|
|
2
3
|
export declare class AccentColorDirective {
|
|
3
4
|
private el;
|
|
5
|
+
private theme;
|
|
6
|
+
protected cdr: ChangeDetectorRef;
|
|
7
|
+
private subscription;
|
|
4
8
|
accent: string;
|
|
5
9
|
get hb_textColor(): string;
|
|
6
|
-
constructor(el: ElementRef);
|
|
10
|
+
constructor(el: ElementRef, theme: NovoTheme, cdr: ChangeDetectorRef);
|
|
11
|
+
onDestroy(): void;
|
|
7
12
|
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
export declare class NovoThemeOptions {
|
|
4
|
+
themeName: string;
|
|
5
|
+
}
|
|
6
|
+
export interface ThemeChangeEvent {
|
|
7
|
+
themeName: string;
|
|
8
|
+
options?: NovoThemeOptions;
|
|
9
|
+
}
|
|
10
|
+
export declare class NovoTheme {
|
|
11
|
+
private _defaultTheme;
|
|
12
|
+
private _currentTheme;
|
|
13
|
+
onThemeChange: EventEmitter<ThemeChangeEvent>;
|
|
14
|
+
/** Name of the theme being used. defaults to `modern-light` */
|
|
15
|
+
get themeName(): string;
|
|
16
|
+
set themeName(value: string);
|
|
17
|
+
use(options: NovoThemeOptions): Observable<any>;
|
|
18
|
+
/**
|
|
19
|
+
* Changes the current theme
|
|
20
|
+
*/
|
|
21
|
+
private changeTheme;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
getComputedStyle(document.documentElement)
|
|
25
|
+
.getPropertyValue('--my-variable-name'); // #999999
|
|
26
|
+
|
|
27
|
+
document.documentElement.style
|
|
28
|
+
.setProperty('--my-variable-name', 'pink');
|
|
29
|
+
*/
|
|
@@ -9,7 +9,7 @@ export interface ModalParams {
|
|
|
9
9
|
}
|
|
10
10
|
export declare class NovoModalParams implements ModalParams {
|
|
11
11
|
}
|
|
12
|
-
export declare class NovoModalRef<T = any> {
|
|
12
|
+
export declare class NovoModalRef<T = any, R = any> {
|
|
13
13
|
component: any;
|
|
14
14
|
params: T;
|
|
15
15
|
private overlayRef;
|
|
@@ -18,8 +18,8 @@ export declare class NovoModalRef<T = any> {
|
|
|
18
18
|
private _afterClosed;
|
|
19
19
|
componentInstance: NovoModalContainerComponent;
|
|
20
20
|
isClosed: boolean;
|
|
21
|
-
get onClosed(): Promise<
|
|
22
|
-
afterClosed(): Observable<
|
|
23
|
-
beforeClose(): Observable<
|
|
24
|
-
close(result?:
|
|
21
|
+
get onClosed(): Promise<R>;
|
|
22
|
+
afterClosed(): Observable<R>;
|
|
23
|
+
beforeClose(): Observable<R>;
|
|
24
|
+
close(result?: R): void;
|
|
25
25
|
}
|
|
@@ -7,7 +7,7 @@ export declare class NovoModalService {
|
|
|
7
7
|
_parentViewContainer: ViewContainerRef;
|
|
8
8
|
set parentViewContainer(view: ViewContainerRef);
|
|
9
9
|
constructor(injector: Injector, overlay: Overlay);
|
|
10
|
-
open<T extends Record<string, any>>(component: any, params?: Partial<T>): NovoModalRef<Partial<T
|
|
10
|
+
open<T extends Record<string, any>>(component: any, params?: Partial<T>): NovoModalRef<Partial<T>, any>;
|
|
11
11
|
private createOverlay;
|
|
12
12
|
private attachModalContainer;
|
|
13
13
|
private createInjector;
|
package/styles/themes/dark.scss
CHANGED
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
--selection: #{$color-ocean}; // #1c76c5;
|
|
8
8
|
--text-selection: #{$color-white};
|
|
9
9
|
--text-main: #{$color-light};
|
|
10
|
-
--text-
|
|
11
|
-
--text-
|
|
10
|
+
--text-muted: #{$color-stone};
|
|
11
|
+
--text-disabled: #a9b1ba;
|
|
12
12
|
--links: #{$color-sky-blue}; // #41adff;
|
|
13
13
|
--focus: #0096bfab;
|
|
14
14
|
--border: #{$color-onyx};
|
package/styles/themes/light.scss
CHANGED
|
@@ -6,19 +6,18 @@
|
|
|
6
6
|
--background-bright: #{$color-white}; //fff
|
|
7
7
|
--background-dark: #{$color-silver}; //e2e2e2
|
|
8
8
|
--background-muted: #{$color-sand}; //f4f4f4
|
|
9
|
+
--text-main: #{$color-charcoal}; //#363636;
|
|
10
|
+
--text-muted: #{$color-neutral}; //#70777f;
|
|
11
|
+
--text-disabled: #{$color-slate}; //#70777f;
|
|
9
12
|
--selection: #{$color-ocean}; //#9e9e9e;
|
|
10
13
|
--text-selection: #{$color-white};
|
|
11
|
-
--text-main: #{$color-dark}; //#363636;
|
|
12
|
-
--text-bright: #{$color-black};
|
|
13
|
-
--text-muted: #{$color-slate}; //#70777f;
|
|
14
|
-
// do we need disabled.
|
|
15
14
|
--links: #{$color-ocean};
|
|
16
15
|
--focus: #{$color-ocean};
|
|
17
16
|
--border: #{$color-light}; //#dbdbdb;
|
|
18
17
|
--code: #{$color-job};
|
|
19
18
|
--animation-duration: 0.1s;
|
|
20
19
|
--button-background: #{$light};
|
|
21
|
-
--button-text: #{$
|
|
20
|
+
--button-text: #{$color-charcoal};
|
|
22
21
|
--button-hover: #aaa;
|
|
23
22
|
--scrollbar-thumb: #{$color-stone};
|
|
24
23
|
--scrollbar-thumb-hover: #{$color-slate};
|