@norwegian/core-components 5.12.2 → 5.14.0
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/assets/documentation/divider/divider.md +1 -0
- package/bundles/norwegian-core-components.umd.js +76 -3
- package/bundles/norwegian-core-components.umd.js.map +1 -1
- package/esm2015/lib/components/divider/divider.component.js +53 -0
- package/esm2015/lib/components/divider/divider.module.js +15 -0
- package/esm2015/lib/components/divider/index.js +3 -0
- package/esm2015/lib/components/index.js +2 -1
- package/esm2015/lib/components/spinner/spinner.component.js +13 -4
- package/esm2015/lib/core/models/class.model.js +1 -1
- package/fesm2015/norwegian-core-components.js +74 -4
- package/fesm2015/norwegian-core-components.js.map +1 -1
- package/lib/components/divider/divider.component.d.ts +60 -0
- package/lib/components/divider/divider.module.d.ts +2 -0
- package/lib/components/divider/index.d.ts +2 -0
- package/lib/components/index.d.ts +1 -0
- package/lib/components/spinner/spinner.component.d.ts +20 -0
- package/lib/core/models/class.model.d.ts +1 -0
- package/norwegian-core-components.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright Norwegian Air Shuttle. All Rights Reserved.
|
|
4
|
+
*/
|
|
5
|
+
import { ClassModel } from '../../core/models/class.model';
|
|
6
|
+
import { NasComponentBase } from '../../core/base/nas-component.base';
|
|
7
|
+
/**
|
|
8
|
+
* @description
|
|
9
|
+
* Norwegian Divider Component | Layout
|
|
10
|
+
*/
|
|
11
|
+
export declare class DividerComponent extends NasComponentBase {
|
|
12
|
+
/**
|
|
13
|
+
* @description
|
|
14
|
+
* Sets text on the divider. If set to false the divider will not display any text.
|
|
15
|
+
*/
|
|
16
|
+
text: string;
|
|
17
|
+
/**
|
|
18
|
+
* @description
|
|
19
|
+
* Boolean to give the divider a double look.
|
|
20
|
+
*/
|
|
21
|
+
double: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* @description
|
|
24
|
+
* Boolean to give the divider a dotted look.
|
|
25
|
+
*/
|
|
26
|
+
dotted: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* @description
|
|
29
|
+
* Boolean to give the divider a dashed look.
|
|
30
|
+
*/
|
|
31
|
+
dashed: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* @description
|
|
34
|
+
* Boolean to give the divider large spacing.
|
|
35
|
+
*/
|
|
36
|
+
spaceLarge: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* @description
|
|
39
|
+
* Boolean to give the divider light color.
|
|
40
|
+
*/
|
|
41
|
+
light: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* @description
|
|
44
|
+
* Boolean to give the divider dark color.
|
|
45
|
+
*/
|
|
46
|
+
dark: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* @description
|
|
49
|
+
* Boolean to give the divider secondary color.
|
|
50
|
+
*/
|
|
51
|
+
secondary: boolean;
|
|
52
|
+
/**
|
|
53
|
+
* @description
|
|
54
|
+
* Boolean to give the divider primary color.
|
|
55
|
+
*/
|
|
56
|
+
primary: boolean;
|
|
57
|
+
constructor();
|
|
58
|
+
getModifiers(): Array<string>;
|
|
59
|
+
getClasses(element?: string, modifiers?: any): Array<ClassModel>;
|
|
60
|
+
}
|
|
@@ -8,6 +8,7 @@ export declare class SpinnerComponent extends NasComponentBase {
|
|
|
8
8
|
private renderer;
|
|
9
9
|
private enableValue;
|
|
10
10
|
private loadingTimeout;
|
|
11
|
+
showRefreshLink: boolean;
|
|
11
12
|
/**
|
|
12
13
|
* @description
|
|
13
14
|
* An information message that is displayed on the spinner.
|
|
@@ -17,6 +18,15 @@ export declare class SpinnerComponent extends NasComponentBase {
|
|
|
17
18
|
* ```
|
|
18
19
|
*/
|
|
19
20
|
text: string;
|
|
21
|
+
/**
|
|
22
|
+
* @description
|
|
23
|
+
* An information message that is displayed on the refresh link.
|
|
24
|
+
* @example
|
|
25
|
+
* ```html
|
|
26
|
+
* <nas-spinner [refreshText]="text"></nas-spinner>
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
refreshText: string;
|
|
20
30
|
/**
|
|
21
31
|
* @description
|
|
22
32
|
* Sets small styling.
|
|
@@ -53,6 +63,16 @@ export declare class SpinnerComponent extends NasComponentBase {
|
|
|
53
63
|
*/
|
|
54
64
|
get enable(): boolean;
|
|
55
65
|
set enable(enable: boolean);
|
|
66
|
+
/**
|
|
67
|
+
* @description
|
|
68
|
+
* Sets the number of seconds to wait before showing the refresh link.
|
|
69
|
+
* @example
|
|
70
|
+
* ```html
|
|
71
|
+
* <nas-spinner [refresh]="10"></nas-spinner>
|
|
72
|
+
* ```
|
|
73
|
+
*/
|
|
74
|
+
refresh?: number;
|
|
56
75
|
constructor(renderer: Renderer2);
|
|
57
76
|
private setEnabled;
|
|
77
|
+
refreshPage(): void;
|
|
58
78
|
}
|