@spicainternational/ngx-sds-components 5.12.2 → 5.13.0-beta.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/esm2020/src/lib/avatar/avatar.component.mjs +1 -5
- package/esm2020/src/lib/badge/badge.directive.mjs +2 -2
- package/esm2020/src/lib/side-bar/side-bar.component.mjs +90 -15
- package/fesm2015/spicainternational-ngx-sds-components-src-lib-avatar.mjs +0 -4
- package/fesm2015/spicainternational-ngx-sds-components-src-lib-avatar.mjs.map +1 -1
- package/fesm2015/spicainternational-ngx-sds-components-src-lib-badge.mjs +1 -1
- package/fesm2015/spicainternational-ngx-sds-components-src-lib-badge.mjs.map +1 -1
- package/fesm2015/spicainternational-ngx-sds-components-src-lib-side-bar.mjs +89 -14
- package/fesm2015/spicainternational-ngx-sds-components-src-lib-side-bar.mjs.map +1 -1
- package/fesm2020/spicainternational-ngx-sds-components-src-lib-avatar.mjs +0 -4
- package/fesm2020/spicainternational-ngx-sds-components-src-lib-avatar.mjs.map +1 -1
- package/fesm2020/spicainternational-ngx-sds-components-src-lib-badge.mjs +1 -1
- package/fesm2020/spicainternational-ngx-sds-components-src-lib-badge.mjs.map +1 -1
- package/fesm2020/spicainternational-ngx-sds-components-src-lib-side-bar.mjs +89 -14
- package/fesm2020/spicainternational-ngx-sds-components-src-lib-side-bar.mjs.map +1 -1
- package/package.json +1 -1
- package/src/lib/side-bar/side-bar.component.d.ts +67 -9
package/package.json
CHANGED
|
@@ -1,17 +1,75 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
|
-
import { IconDefinition } from '@fortawesome/pro-
|
|
1
|
+
import { OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { IconDefinition } from '@fortawesome/pro-solid-svg-icons';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class SdsSideBarComponent implements OnInit {
|
|
4
|
+
export declare class SdsSideBarComponent implements OnInit, OnChanges, OnDestroy {
|
|
5
|
+
/**
|
|
6
|
+
* Define when the hide panel button is shown.
|
|
7
|
+
* Default is 'auto' which will only show the button when the users hovers over the panel.
|
|
8
|
+
* 'always' will always show the button.
|
|
9
|
+
*
|
|
10
|
+
* @type {('always' | 'auto')}
|
|
11
|
+
* @memberof SdsSideBarComponent
|
|
12
|
+
*/
|
|
13
|
+
showCloseButton: 'always' | 'auto';
|
|
14
|
+
/**
|
|
15
|
+
* Pull out mode will show the side bar as user hovers over the left side of the screen
|
|
16
|
+
* When side bar is in pull out mode it will be rendered over the main contents.
|
|
17
|
+
*
|
|
18
|
+
* @type {boolean}
|
|
19
|
+
* @memberof SdsSideBarComponent
|
|
20
|
+
*/
|
|
21
|
+
enablePullOutMode: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Define the width of the side bar in rem.
|
|
24
|
+
*
|
|
25
|
+
* @type {number}
|
|
26
|
+
* @memberof SdsSideBarComponent
|
|
27
|
+
*/
|
|
28
|
+
widthRem: number;
|
|
29
|
+
/**
|
|
30
|
+
* Product name defines the color scheme of the side bar.
|
|
31
|
+
* Default is 'all-hours'.
|
|
32
|
+
* Options: 'all-hours', 'door-cloud', 'my-hours', 'time-and-space'
|
|
33
|
+
*
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof SdsSideBarComponent
|
|
36
|
+
*/
|
|
37
|
+
product: 'all-hours' | 'door-cloud' | 'my-hours' | 'time-and-space';
|
|
38
|
+
/**
|
|
39
|
+
* Define the width of the screen that triggers hiding of the side bar.
|
|
40
|
+
* Note that the width is checked at the component creation and not when the screen is resized.
|
|
41
|
+
* If user resizes the screen he must manually hide the side bar.
|
|
42
|
+
*
|
|
43
|
+
* @type {(number | undefined)}
|
|
44
|
+
* @memberof SdsSideBarComponent
|
|
45
|
+
*/
|
|
46
|
+
autoHideScreenWidth: number | undefined;
|
|
47
|
+
/**
|
|
48
|
+
* Define the hint of the hide button.
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof SdsSideBarComponent
|
|
52
|
+
*/
|
|
53
|
+
closeButtonHint?: string;
|
|
54
|
+
/**
|
|
55
|
+
* Define the hint of the show button.
|
|
56
|
+
*
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof SdsSideBarComponent
|
|
59
|
+
*/
|
|
60
|
+
openButtonHint?: string;
|
|
5
61
|
showSideBar: boolean;
|
|
6
|
-
|
|
7
|
-
isMainSideBar: boolean;
|
|
8
|
-
showSideBarToggleButton: boolean;
|
|
9
|
-
hideSideBarText?: string;
|
|
10
|
-
showSideBarText?: string;
|
|
62
|
+
pullOutSideBar: boolean;
|
|
11
63
|
caretIcon: IconDefinition;
|
|
64
|
+
autoHideActive: boolean;
|
|
65
|
+
private screenWidth;
|
|
66
|
+
private componentInitialized;
|
|
67
|
+
private _checkAutoHide$;
|
|
12
68
|
constructor();
|
|
69
|
+
ngOnDestroy(): void;
|
|
70
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
13
71
|
ngOnInit(): void;
|
|
14
72
|
toggleSideBar(state?: boolean): void;
|
|
15
73
|
static ɵfac: i0.ɵɵFactoryDeclaration<SdsSideBarComponent, never>;
|
|
16
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SdsSideBarComponent, "sds-side-bar", never, { "
|
|
74
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SdsSideBarComponent, "sds-side-bar", never, { "showCloseButton": "showCloseButton"; "enablePullOutMode": "enablePullOutMode"; "widthRem": "widthRem"; "product": "product"; "autoHideScreenWidth": "autoHideScreenWidth"; "closeButtonHint": "closeButtonHint"; "openButtonHint": "openButtonHint"; }, {}, never, ["*"]>;
|
|
17
75
|
}
|