@spicainternational/ngx-sds-components 5.12.3 → 5.13.0-beta.1

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.
Files changed (43) hide show
  1. package/esm2020/public-api.mjs +2 -1
  2. package/esm2020/src/lib/app-switcher/app-switcher.component.mjs +7 -8
  3. package/esm2020/src/lib/navigation/navigation-user-profile/navigation-user-profile.component.mjs +6 -3
  4. package/esm2020/src/lib/navigation/navigation.module.mjs +13 -5
  5. package/esm2020/src/lib/navigation/product-home/product-home.component.mjs +37 -0
  6. package/esm2020/src/lib/navigation/public-api.mjs +2 -1
  7. package/esm2020/src/lib/side-bar/side-bar.component.mjs +90 -15
  8. package/esm2020/src/lib/static-value/public-api.mjs +3 -0
  9. package/esm2020/src/lib/static-value/spicainternational-ngx-sds-components-src-lib-static-value.mjs +5 -0
  10. package/esm2020/src/lib/static-value/static-value.component.mjs +25 -0
  11. package/esm2020/src/lib/static-value/static-value.module.mjs +30 -0
  12. package/fesm2015/spicainternational-ngx-sds-components-src-lib-app-switcher.mjs +7 -8
  13. package/fesm2015/spicainternational-ngx-sds-components-src-lib-app-switcher.mjs.map +1 -1
  14. package/fesm2015/spicainternational-ngx-sds-components-src-lib-navigation.mjs +51 -7
  15. package/fesm2015/spicainternational-ngx-sds-components-src-lib-navigation.mjs.map +1 -1
  16. package/fesm2015/spicainternational-ngx-sds-components-src-lib-side-bar.mjs +89 -14
  17. package/fesm2015/spicainternational-ngx-sds-components-src-lib-side-bar.mjs.map +1 -1
  18. package/fesm2015/spicainternational-ngx-sds-components-src-lib-static-value.mjs +59 -0
  19. package/fesm2015/spicainternational-ngx-sds-components-src-lib-static-value.mjs.map +1 -0
  20. package/fesm2015/spicainternational-ngx-sds-components.mjs +1 -0
  21. package/fesm2015/spicainternational-ngx-sds-components.mjs.map +1 -1
  22. package/fesm2020/spicainternational-ngx-sds-components-src-lib-app-switcher.mjs +7 -8
  23. package/fesm2020/spicainternational-ngx-sds-components-src-lib-app-switcher.mjs.map +1 -1
  24. package/fesm2020/spicainternational-ngx-sds-components-src-lib-navigation.mjs +51 -7
  25. package/fesm2020/spicainternational-ngx-sds-components-src-lib-navigation.mjs.map +1 -1
  26. package/fesm2020/spicainternational-ngx-sds-components-src-lib-side-bar.mjs +89 -14
  27. package/fesm2020/spicainternational-ngx-sds-components-src-lib-side-bar.mjs.map +1 -1
  28. package/fesm2020/spicainternational-ngx-sds-components-src-lib-static-value.mjs +59 -0
  29. package/fesm2020/spicainternational-ngx-sds-components-src-lib-static-value.mjs.map +1 -0
  30. package/fesm2020/spicainternational-ngx-sds-components.mjs +1 -0
  31. package/fesm2020/spicainternational-ngx-sds-components.mjs.map +1 -1
  32. package/package.json +9 -1
  33. package/public-api.d.ts +1 -0
  34. package/src/lib/navigation/navigation-user-profile/navigation-user-profile.component.d.ts +2 -1
  35. package/src/lib/navigation/navigation.module.d.ts +9 -7
  36. package/src/lib/navigation/product-home/product-home.component.d.ts +18 -0
  37. package/src/lib/navigation/public-api.d.ts +1 -0
  38. package/src/lib/side-bar/side-bar.component.d.ts +67 -9
  39. package/src/lib/static-value/package.json +10 -0
  40. package/src/lib/static-value/public-api.d.ts +2 -0
  41. package/src/lib/static-value/spicainternational-ngx-sds-components-src-lib-static-value.d.ts +5 -0
  42. package/src/lib/static-value/static-value.component.d.ts +12 -0
  43. package/src/lib/static-value/static-value.module.d.ts +9 -0
@@ -2,19 +2,90 @@ import * as i0 from '@angular/core';
2
2
  import { Component, Input, NgModule } from '@angular/core';
3
3
  import * as i2 from '@angular/common';
4
4
  import { CommonModule } from '@angular/common';
5
- import { faChevronRight } from '@fortawesome/pro-regular-svg-icons';
5
+ import { faAngleLeft } from '@fortawesome/pro-solid-svg-icons';
6
+ import { Subject } from 'rxjs';
6
7
  import * as i1 from '@fortawesome/angular-fontawesome';
7
8
  import { FontAwesomeModule } from '@fortawesome/angular-fontawesome';
8
9
 
10
+ // import { faSidebar } from '@fortawesome/pro-light-svg-icons';
11
+ // import { IconDefinition, faSidebar, faChevronRight, faGripVertical, faGripLinesVertical, faChevronLeft, faArrowRightFromBracket } from '@fortawesome/pro-regular-svg-icons';
9
12
  class SdsSideBarComponent {
10
13
  constructor() {
11
- this.showSideBar = false;
12
- this.product = '';
13
- this.isMainSideBar = false;
14
- this.showSideBarToggleButton = false;
15
- this.caretIcon = faChevronRight;
14
+ /**
15
+ * Define when the hide panel button is shown.
16
+ * Default is 'auto' which will only show the button when the users hovers over the panel.
17
+ * 'always' will always show the button.
18
+ *
19
+ * @type {('always' | 'auto')}
20
+ * @memberof SdsSideBarComponent
21
+ */
22
+ this.showCloseButton = 'auto';
23
+ /**
24
+ * Pull out mode will show the side bar as user hovers over the left side of the screen
25
+ * When side bar is in pull out mode it will be rendered over the main contents.
26
+ *
27
+ * @type {boolean}
28
+ * @memberof SdsSideBarComponent
29
+ */
30
+ this.enablePullOutMode = false;
31
+ /**
32
+ * Define the width of the side bar in rem.
33
+ *
34
+ * @type {number}
35
+ * @memberof SdsSideBarComponent
36
+ */
37
+ this.widthRem = 14;
38
+ /**
39
+ * Product name defines the color scheme of the side bar.
40
+ * Default is 'all-hours'.
41
+ * Options: 'all-hours', 'door-cloud', 'my-hours', 'time-and-space'
42
+ *
43
+ * @type {string}
44
+ * @memberof SdsSideBarComponent
45
+ */
46
+ this.product = 'all-hours';
47
+ /**
48
+ * Define the width of the screen that triggers hiding of the side bar.
49
+ * Note that the width is checked at the component creation and not when the screen is resized.
50
+ * If user resizes the screen he must manually hide the side bar.
51
+ *
52
+ * @type {(number | undefined)}
53
+ * @memberof SdsSideBarComponent
54
+ */
55
+ this.autoHideScreenWidth = 992;
56
+ this.showSideBar = true;
57
+ this.pullOutSideBar = false;
58
+ this.caretIcon = faAngleLeft;
59
+ this.autoHideActive = false;
60
+ this.screenWidth = 0;
61
+ this.componentInitialized = false;
62
+ this._checkAutoHide$ = new Subject();
63
+ this._checkAutoHide$.subscribe(() => {
64
+ console.log('check autohide');
65
+ if (this.componentInitialized && this.autoHideScreenWidth) {
66
+ console.log('this.autoHideScreenWidthRem', this.autoHideScreenWidth);
67
+ this.autoHideActive = this.screenWidth < this.autoHideScreenWidth;
68
+ console.log('hideSideBar', this.autoHideActive);
69
+ if (this.autoHideActive) {
70
+ this.showSideBar = false;
71
+ }
72
+ }
73
+ });
74
+ }
75
+ ngOnDestroy() {
76
+ this._checkAutoHide$.unsubscribe();
77
+ }
78
+ ngOnChanges(changes) {
79
+ if (changes['autoHideScreenWidthRem']) {
80
+ this._checkAutoHide$.next();
81
+ }
82
+ }
83
+ ngOnInit() {
84
+ this.componentInitialized = true;
85
+ this.screenWidth = window.innerWidth;
86
+ console.log('screenWidth', this.screenWidth);
87
+ this._checkAutoHide$.next();
16
88
  }
17
- ngOnInit() { }
18
89
  toggleSideBar(state) {
19
90
  if (state !== undefined) {
20
91
  this.showSideBar = state;
@@ -25,19 +96,23 @@ class SdsSideBarComponent {
25
96
  }
26
97
  }
27
98
  SdsSideBarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.1", ngImport: i0, type: SdsSideBarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
28
- SdsSideBarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.1", type: SdsSideBarComponent, selector: "sds-side-bar", inputs: { product: "product", isMainSideBar: "isMainSideBar", showSideBarToggleButton: "showSideBarToggleButton", hideSideBarText: "hideSideBarText", showSideBarText: "showSideBarText" }, ngImport: i0, template: "<aside\r\n class=\"sds-side-bar \"\r\n [class]=\"(product ? 'product-' + product : null)\"\r\n [class.sds-main-side-bar] = \"isMainSideBar\"\r\n [class.hide-sidebar]=\"!showSideBar\"\r\n>\r\n <div class=\"d-flex flex-column h-100\">\r\n <div class=\"d-flex flex-column flex-grow-0 w-100 h-100\">\r\n <div\r\n *ngIf=\"showSideBarToggleButton\"\r\n class=\"toggle-side-bar-button position-absolute d-md-none rounded-circle toggleSideBar d-flex justify-content-center justify-content-center align-items-center\"\r\n [class.open]=\"showSideBar\"\r\n [title]=\"showSideBar ? hideSideBarText : showSideBarText\"\r\n (click)=\"toggleSideBar()\"\r\n >\r\n <div class=\"toggle-side-bar-icon\">\r\n <fa-icon [icon]=\"caretIcon\"></fa-icon>\r\n </div> \r\n </div>\r\n\r\n <ng-content></ng-content> \r\n </div>\r\n </div>\r\n</aside>\r\n", styles: [".toggle-side-bar-button{transition:transform .2s linear}.toggle-side-bar-button.open .toggle-side-bar-icon{transform:rotate(-180deg)}\n"], components: [{ type: i1.FaIconComponent, selector: "fa-icon", inputs: ["icon", "title", "spin", "pulse", "mask", "styles", "flip", "size", "pull", "border", "inverse", "symbol", "rotate", "fixedWidth", "classes", "transform", "a11yRole"] }], directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
99
+ SdsSideBarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.1", type: SdsSideBarComponent, selector: "sds-side-bar", inputs: { showCloseButton: "showCloseButton", enablePullOutMode: "enablePullOutMode", widthRem: "widthRem", product: "product", autoHideScreenWidth: "autoHideScreenWidth", closeButtonHint: "closeButtonHint", openButtonHint: "openButtonHint" }, usesOnChanges: true, ngImport: i0, template: "<div \r\n class=\"vh-100 position-relative sds-side-bar-container\"\r\n [class.sds-side-bar-open]=\"showSideBar\" \r\n >\r\n\r\n <!-- CLOSE SIDEBAR -->\r\n <div \r\n *ngIf=\"!pullOutSideBar && (true || showSideBar)\"\r\n class=\"sds-side-bar-button-container close-side-bar-button\"\r\n [class.hidden]=\"!showSideBar\"\r\n [class.always-show]=\"showSideBar && showCloseButton === 'always'\"\r\n >\r\n \r\n <button\r\n class=\"btn btn-outline-primary shadow-sm\"\r\n [title]=\"closeButtonHint\"\r\n (click)=\"toggleSideBar()\"\r\n >\r\n <fa-icon \r\n [icon]=\"caretIcon\" \r\n size=\"xs\"\r\n >\r\n </fa-icon>\r\n\r\n <div class=\"hot-spot\"></div>\r\n\r\n </button>\r\n </div>\r\n\r\n <!-- OPEN SIDEBAR -->\r\n <div \r\n *ngIf=\"!pullOutSideBar && (true || !showSideBar)\" \r\n class=\"sds-side-bar-button-container open-side-bar-button\"\r\n [class.hidden]=\"showSideBar\"\r\n >\r\n \r\n <button\r\n class=\"btn btn-outline-primary shadow-sm\"\r\n [title]=\"openButtonHint\"\r\n (click)=\"toggleSideBar()\"\r\n >\r\n <fa-icon \r\n [icon]=\"caretIcon\"\r\n [rotate]=\"180\"\r\n size=\"xs\"\r\n >\r\n </fa-icon>\r\n\r\n <div class=\"hot-spot\"></div>\r\n\r\n </button>\r\n </div>\r\n\r\n <aside\r\n class=\"sds-side-bar h-100 border-end\"\r\n [class]=\"(product ? 'product-' + product : null)\"\r\n [class.shadow]=\"pullOutSideBar\"\r\n [class.sds-side-bar-open]=\"showSideBar\"\r\n [style.width.rem]=\"(showSideBar || pullOutSideBar) ? widthRem : enablePullOutMode ? 0.75 : 0\"\r\n \r\n (mouseleave)=\"pullOutSideBar = false\"\r\n >\r\n <div \r\n *ngIf=\"enablePullOutMode && !showSideBar && !pullOutSideBar\"\r\n class=\"sds-side-bar-pull-out h-100 position-absolute\" \r\n style=\"width: 0.75rem;\"\r\n (mouseenter)=\"pullOutSideBar = true\"\r\n >\r\n </div>\r\n\r\n <div class=\"d-flex flex-column flex-grow-0 h-100\" \r\n [style.width.rem]=\"widthRem\">\r\n\r\n <ng-content></ng-content> \r\n </div>\r\n\r\n </aside>\r\n</div>", styles: [".sds-side-bar{transition:.3s;overflow-x:hidden;position:absolute;z-index:10}.sds-side-bar.sds-side-bar-open{position:relative}.sds-side-bar:has(.sds-side-bar-pull-out:hover){width:var(--sds-side-bar-width)!important}.sds-side-bar .sds-side-bar-pull-out{background-color:#f8f9fa}.sds-side-bar-container .sds-side-bar-button-container{position:absolute;z-index:11;height:2.2rem;width:2.2rem;top:.85rem;border-radius:50%;background-color:#fff}.sds-side-bar-container .sds-side-bar-button-container.always-show{visibility:visible;opacity:1}.sds-side-bar-container button{height:2.2rem;width:2.2rem;display:flex;align-items:center;justify-content:center;border:1px solid #CED4DA;border-radius:50%;color:#375d75!important;line-height:1rem}.sds-side-bar-container button:hover{color:#f8f9fa!important}.sds-side-bar-container button .hot-spot{position:absolute;inset:-1rem}.sds-side-bar-container .open-side-bar-button{top:.85rem;right:-2.3rem;transition:visibility 0ms linear .18s;transition:opacity 0ms linear .18s;visibility:visible;opacity:1}.sds-side-bar-container .open-side-bar-button.hidden{visibility:hidden;opacity:0}.sds-side-bar-container:hover .close-side-bar-button:not(.hidden){visibility:visible;opacity:1}.sds-side-bar-container .close-side-bar-button{right:-1.1rem;visibility:hidden;transition:visibility 0s linear;transition:opacity .3s ease-in;opacity:0}:host{display:block}\n"], components: [{ type: i1.FaIconComponent, selector: "fa-icon", inputs: ["icon", "title", "spin", "pulse", "mask", "styles", "flip", "size", "pull", "border", "inverse", "symbol", "rotate", "fixedWidth", "classes", "transform", "a11yRole"] }], directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
29
100
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.1", ngImport: i0, type: SdsSideBarComponent, decorators: [{
30
101
  type: Component,
31
- args: [{ selector: 'sds-side-bar', template: "<aside\r\n class=\"sds-side-bar \"\r\n [class]=\"(product ? 'product-' + product : null)\"\r\n [class.sds-main-side-bar] = \"isMainSideBar\"\r\n [class.hide-sidebar]=\"!showSideBar\"\r\n>\r\n <div class=\"d-flex flex-column h-100\">\r\n <div class=\"d-flex flex-column flex-grow-0 w-100 h-100\">\r\n <div\r\n *ngIf=\"showSideBarToggleButton\"\r\n class=\"toggle-side-bar-button position-absolute d-md-none rounded-circle toggleSideBar d-flex justify-content-center justify-content-center align-items-center\"\r\n [class.open]=\"showSideBar\"\r\n [title]=\"showSideBar ? hideSideBarText : showSideBarText\"\r\n (click)=\"toggleSideBar()\"\r\n >\r\n <div class=\"toggle-side-bar-icon\">\r\n <fa-icon [icon]=\"caretIcon\"></fa-icon>\r\n </div> \r\n </div>\r\n\r\n <ng-content></ng-content> \r\n </div>\r\n </div>\r\n</aside>\r\n", styles: [".toggle-side-bar-button{transition:transform .2s linear}.toggle-side-bar-button.open .toggle-side-bar-icon{transform:rotate(-180deg)}\n"] }]
32
- }], ctorParameters: function () { return []; }, propDecorators: { product: [{
102
+ args: [{ selector: 'sds-side-bar', template: "<div \r\n class=\"vh-100 position-relative sds-side-bar-container\"\r\n [class.sds-side-bar-open]=\"showSideBar\" \r\n >\r\n\r\n <!-- CLOSE SIDEBAR -->\r\n <div \r\n *ngIf=\"!pullOutSideBar && (true || showSideBar)\"\r\n class=\"sds-side-bar-button-container close-side-bar-button\"\r\n [class.hidden]=\"!showSideBar\"\r\n [class.always-show]=\"showSideBar && showCloseButton === 'always'\"\r\n >\r\n \r\n <button\r\n class=\"btn btn-outline-primary shadow-sm\"\r\n [title]=\"closeButtonHint\"\r\n (click)=\"toggleSideBar()\"\r\n >\r\n <fa-icon \r\n [icon]=\"caretIcon\" \r\n size=\"xs\"\r\n >\r\n </fa-icon>\r\n\r\n <div class=\"hot-spot\"></div>\r\n\r\n </button>\r\n </div>\r\n\r\n <!-- OPEN SIDEBAR -->\r\n <div \r\n *ngIf=\"!pullOutSideBar && (true || !showSideBar)\" \r\n class=\"sds-side-bar-button-container open-side-bar-button\"\r\n [class.hidden]=\"showSideBar\"\r\n >\r\n \r\n <button\r\n class=\"btn btn-outline-primary shadow-sm\"\r\n [title]=\"openButtonHint\"\r\n (click)=\"toggleSideBar()\"\r\n >\r\n <fa-icon \r\n [icon]=\"caretIcon\"\r\n [rotate]=\"180\"\r\n size=\"xs\"\r\n >\r\n </fa-icon>\r\n\r\n <div class=\"hot-spot\"></div>\r\n\r\n </button>\r\n </div>\r\n\r\n <aside\r\n class=\"sds-side-bar h-100 border-end\"\r\n [class]=\"(product ? 'product-' + product : null)\"\r\n [class.shadow]=\"pullOutSideBar\"\r\n [class.sds-side-bar-open]=\"showSideBar\"\r\n [style.width.rem]=\"(showSideBar || pullOutSideBar) ? widthRem : enablePullOutMode ? 0.75 : 0\"\r\n \r\n (mouseleave)=\"pullOutSideBar = false\"\r\n >\r\n <div \r\n *ngIf=\"enablePullOutMode && !showSideBar && !pullOutSideBar\"\r\n class=\"sds-side-bar-pull-out h-100 position-absolute\" \r\n style=\"width: 0.75rem;\"\r\n (mouseenter)=\"pullOutSideBar = true\"\r\n >\r\n </div>\r\n\r\n <div class=\"d-flex flex-column flex-grow-0 h-100\" \r\n [style.width.rem]=\"widthRem\">\r\n\r\n <ng-content></ng-content> \r\n </div>\r\n\r\n </aside>\r\n</div>", styles: [".sds-side-bar{transition:.3s;overflow-x:hidden;position:absolute;z-index:10}.sds-side-bar.sds-side-bar-open{position:relative}.sds-side-bar:has(.sds-side-bar-pull-out:hover){width:var(--sds-side-bar-width)!important}.sds-side-bar .sds-side-bar-pull-out{background-color:#f8f9fa}.sds-side-bar-container .sds-side-bar-button-container{position:absolute;z-index:11;height:2.2rem;width:2.2rem;top:.85rem;border-radius:50%;background-color:#fff}.sds-side-bar-container .sds-side-bar-button-container.always-show{visibility:visible;opacity:1}.sds-side-bar-container button{height:2.2rem;width:2.2rem;display:flex;align-items:center;justify-content:center;border:1px solid #CED4DA;border-radius:50%;color:#375d75!important;line-height:1rem}.sds-side-bar-container button:hover{color:#f8f9fa!important}.sds-side-bar-container button .hot-spot{position:absolute;inset:-1rem}.sds-side-bar-container .open-side-bar-button{top:.85rem;right:-2.3rem;transition:visibility 0ms linear .18s;transition:opacity 0ms linear .18s;visibility:visible;opacity:1}.sds-side-bar-container .open-side-bar-button.hidden{visibility:hidden;opacity:0}.sds-side-bar-container:hover .close-side-bar-button:not(.hidden){visibility:visible;opacity:1}.sds-side-bar-container .close-side-bar-button{right:-1.1rem;visibility:hidden;transition:visibility 0s linear;transition:opacity .3s ease-in;opacity:0}:host{display:block}\n"] }]
103
+ }], ctorParameters: function () { return []; }, propDecorators: { showCloseButton: [{
104
+ type: Input
105
+ }], enablePullOutMode: [{
106
+ type: Input
107
+ }], widthRem: [{
33
108
  type: Input
34
- }], isMainSideBar: [{
109
+ }], product: [{
35
110
  type: Input
36
- }], showSideBarToggleButton: [{
111
+ }], autoHideScreenWidth: [{
37
112
  type: Input
38
- }], hideSideBarText: [{
113
+ }], closeButtonHint: [{
39
114
  type: Input
40
- }], showSideBarText: [{
115
+ }], openButtonHint: [{
41
116
  type: Input
42
117
  }] } });
43
118
 
@@ -1 +1 @@
1
- {"version":3,"file":"spicainternational-ngx-sds-components-src-lib-side-bar.mjs","sources":["../../../projects/ngx-sds-components/src/lib/side-bar/side-bar.component.ts","../../../projects/ngx-sds-components/src/lib/side-bar/side-bar.component.html","../../../projects/ngx-sds-components/src/lib/side-bar/side-bar.module.ts","../../../projects/ngx-sds-components/src/lib/side-bar/spicainternational-ngx-sds-components-src-lib-side-bar.ts"],"sourcesContent":["import { Component, Input, OnInit } from '@angular/core';\r\nimport { IconDefinition, faChevronRight } from '@fortawesome/pro-regular-svg-icons';\r\n\r\n@Component({\r\n selector: 'sds-side-bar',\r\n templateUrl: './side-bar.component.html',\r\n styleUrls: ['./side-bar.component.scss'],\r\n})\r\nexport class SdsSideBarComponent implements OnInit {\r\n\r\n public showSideBar = false;\r\n\r\n @Input() product:string = '';\r\n @Input() isMainSideBar: boolean = false;\r\n @Input() showSideBarToggleButton: boolean = false;\r\n\r\n @Input() public hideSideBarText?: string;\r\n @Input() public showSideBarText?: string;\r\n\r\n\r\n public caretIcon: IconDefinition = faChevronRight;\r\n\r\n constructor() {}\r\n\r\n ngOnInit(): void {}\r\n\r\n public toggleSideBar(state?: boolean) {\r\n if (state !== undefined) {\r\n this.showSideBar = state;\r\n } else {\r\n this.showSideBar = !this.showSideBar;\r\n }\r\n } \r\n}\r\n","<aside\r\n class=\"sds-side-bar \"\r\n [class]=\"(product ? 'product-' + product : null)\"\r\n [class.sds-main-side-bar] = \"isMainSideBar\"\r\n [class.hide-sidebar]=\"!showSideBar\"\r\n>\r\n <div class=\"d-flex flex-column h-100\">\r\n <div class=\"d-flex flex-column flex-grow-0 w-100 h-100\">\r\n <div\r\n *ngIf=\"showSideBarToggleButton\"\r\n class=\"toggle-side-bar-button position-absolute d-md-none rounded-circle toggleSideBar d-flex justify-content-center justify-content-center align-items-center\"\r\n [class.open]=\"showSideBar\"\r\n [title]=\"showSideBar ? hideSideBarText : showSideBarText\"\r\n (click)=\"toggleSideBar()\"\r\n >\r\n <div class=\"toggle-side-bar-icon\">\r\n <fa-icon [icon]=\"caretIcon\"></fa-icon>\r\n </div> \r\n </div>\r\n\r\n <ng-content></ng-content> \r\n </div>\r\n </div>\r\n</aside>\r\n","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { SdsSideBarComponent } from './side-bar.component';\r\nimport { FontAwesomeModule } from '@fortawesome/angular-fontawesome';\r\n\r\n\r\n\r\nconst components = [\r\n SdsSideBarComponent\r\n]\r\n@NgModule({\r\n declarations: [\r\n ...components\r\n ],\r\n imports: [\r\n CommonModule, FontAwesomeModule\r\n ],\r\n exports: [\r\n ...components\r\n ]\r\n})\r\nexport class SdsSideBarModule { }\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;MAQa,mBAAmB,CAAA;AAc5B,IAAA,WAAA,GAAA;QAZO,IAAW,CAAA,WAAA,GAAG,KAAK,CAAC;QAElB,IAAO,CAAA,OAAA,GAAU,EAAE,CAAC;QACpB,IAAa,CAAA,aAAA,GAAY,KAAK,CAAC;QAC/B,IAAuB,CAAA,uBAAA,GAAY,KAAK,CAAC;QAM3C,IAAS,CAAA,SAAA,GAAmB,cAAc,CAAC;KAElC;AAEhB,IAAA,QAAQ,MAAW;AAEZ,IAAA,aAAa,CAAC,KAAe,EAAA;QAChC,IAAI,KAAK,KAAK,SAAS,EAAE;AACrB,YAAA,IAAI,CAAC,WAAW,GAA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AAA,CAAA;sBAA9B,KAAK;;;AEVV,MAAM,UAAU,GAAG;IACf,mBAAmB;CACtB,CAAA;MAYY,gBAAgB,CAAA;;6GAAhB,gBAAgB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;AAAhB,gBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,gBAAgB,iBAbzB,mBAAmB,CAAA,EAAA,OAAA,EAAA,CAOnB,YAAY,EAAE,iBAAiB,aAP/B,mBAAmB,CAAA,EAAA,CAAA,CAAA;AAaV,gBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,gBAAgB,EAPlB,OAAA,EAAA,CAAA;AACP,YAAA,YAAY,EAAE,iBAAiB;AAChC,SAAA,CAAA,EAAA,CAAA,CAAA;2FAKU,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAX5B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE;AACZ,wBAAA,GAAG,UAAU;AACd,qBAAA;AACD,oBAAA,OAAO,EAAE;AACP,wBAAA,YAAY,EAAE,iBAAiB;AAChC,qBAAA;AACD,oBAAA,OAAO,EAAE;AACP,wBAAA,GAAG,UAAU;AACd,qBAAA;AACF,iBAAA,CAAA;;;ACpBD;;AAEG;;;;"}
1
+ {"version":3,"file":"spicainternational-ngx-sds-components-src-lib-side-bar.mjs","sources":["../../../projects/ngx-sds-components/src/lib/side-bar/side-bar.component.ts","../../../projects/ngx-sds-components/src/lib/side-bar/side-bar.component.html","../../../projects/ngx-sds-components/src/lib/side-bar/side-bar.module.ts","../../../projects/ngx-sds-components/src/lib/side-bar/spicainternational-ngx-sds-components-src-lib-side-bar.ts"],"sourcesContent":["import { Component, Input, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';\r\nimport { IconDefinition, faAngleLeft, faChevronRight } from '@fortawesome/pro-solid-svg-icons';\r\nimport { Subject } from 'rxjs';\r\n// import { faSidebar } from '@fortawesome/pro-light-svg-icons';\r\n// import { IconDefinition, faSidebar, faChevronRight, faGripVertical, faGripLinesVertical, faChevronLeft, faArrowRightFromBracket } from '@fortawesome/pro-regular-svg-icons';\r\n\r\n@Component({\r\n selector: 'sds-side-bar',\r\n templateUrl: './side-bar.component.html',\r\n styleUrls: ['./side-bar.component.scss'],\r\n})\r\nexport class SdsSideBarComponent implements OnInit, OnChanges, OnDestroy {\r\n\r\n /**\r\n * Define when the hide panel button is shown. \r\n * Default is 'auto' which will only show the button when the users hovers over the panel.\r\n * 'always' will always show the button.\r\n *\r\n * @type {('always' | 'auto')}\r\n * @memberof SdsSideBarComponent\r\n */\r\n @Input() public showCloseButton: 'always' | 'auto' = 'auto';\r\n \r\n /**\r\n * Pull out mode will show the side bar as user hovers over the left side of the screen\r\n * When side bar is in pull out mode it will be rendered over the main contents.\r\n *\r\n * @type {boolean}\r\n * @memberof SdsSideBarComponent\r\n */\r\n @Input() public enablePullOutMode: boolean = false;\r\n\r\n /**\r\n * Define the width of the side bar in rem.\r\n *\r\n * @type {number}\r\n * @memberof SdsSideBarComponent\r\n */\r\n @Input() public widthRem: number = 14;\r\n\r\n /**\r\n * Product name defines the color scheme of the side bar.\r\n * Default is 'all-hours'.\r\n * Options: 'all-hours', 'door-cloud', 'my-hours', 'time-and-space'\r\n *\r\n * @type {string}\r\n * @memberof SdsSideBarComponent\r\n */\r\n @Input() product: 'all-hours' | 'door-cloud' | 'my-hours' | 'time-and-space' = 'all-hours';\r\n\r\n /**\r\n * Define the width of the screen that triggers hiding of the side bar.\r\n * Note that the width is checked at the component creation and not when the screen is resized.\r\n * If user resizes the screen he must manually hide the side bar.\r\n *\r\n * @type {(number | undefined)}\r\n * @memberof SdsSideBarComponent\r\n */\r\n @Input() public autoHideScreenWidth: number | undefined = 992;\r\n\r\n /**\r\n * Define the hint of the hide button.\r\n *\r\n * @type {string}\r\n * @memberof SdsSideBarComponent\r\n */\r\n @Input() public closeButtonHint?: string;\r\n\r\n /**\r\n * Define the hint of the show button.\r\n *\r\n * @type {string}\r\n * @memberof SdsSideBarComponent\r\n */\r\n @Input() public openButtonHint?: string;\r\n\r\n\r\n public showSideBar = true;\r\n public pullOutSideBar = false; \r\n public caretIcon: IconDefinition = faAngleLeft;\r\n public autoHideActive: boolean = false;\r\n\r\n private screenWidth: number = 0;\r\n private componentInitialized: boolean = false;\r\n\r\n private _checkAutoHide$ = new Subject<void>();\r\n\r\n constructor() {\r\n\r\n this._checkAutoHide$.subscribe(() => {\r\n console.log('check autohide');\r\n if (this.componentInitialized && this.autoHideScreenWidth) {\r\n console.log('this.autoHideScreenWidthRem', this.autoHideScreenWidth);\r\n\r\n this.autoHideActive = this.screenWidth < this.autoHideScreenWidth;\r\n\r\n console.log('hideSideBar', this.autoHideActive);\r\n\r\n if (this.autoHideActive) {\r\n this.showSideBar = false;\r\n }\r\n }\r\n });\r\n }\r\n ngOnDestroy(): void {\r\n this._checkAutoHide$.unsubscribe();\r\n }\r\n\r\n ngOnChanges(changes: SimpleChanges): void {\r\n if (changes['autoHideScreenWidthRem']) {\r\n this._checkAutoHide$.next();\r\n }\r\n }\r\n\r\n ngOnInit() { \r\n this.componentInitialized = true;\r\n this.screenWidth = window.innerWidth; \r\n console.log('screenWidth', this.screenWidth);\r\n this._checkAutoHide$.next();\r\n } \r\n\r\n public toggleSideBar(state?: boolean) {\r\n if (state !== undefined) {\r\n this.showSideBar = state;\r\n } else {\r\n this.showSideBar = !this.showSideBar;\r\n }\r\n } \r\n}\r\n","<div \r\n class=\"vh-100 position-relative sds-side-bar-container\"\r\n [class.sds-side-bar-open]=\"showSideBar\" \r\n >\r\n\r\n <!-- CLOSE SIDEBAR -->\r\n <div \r\n *ngIf=\"!pullOutSideBar && (true || showSideBar)\"\r\n class=\"sds-side-bar-button-container close-side-bar-button\"\r\n [class.hidden]=\"!showSideBar\"\r\n [class.always-show]=\"showSideBar && showCloseButton === 'always'\"\r\n >\r\n \r\n <button\r\n class=\"btn btn-outline-primary shadow-sm\"\r\n [title]=\"closeButtonHint\"\r\n (click)=\"toggleSideBar()\"\r\n >\r\n <fa-icon \r\n [icon]=\"caretIcon\" \r\n size=\"xs\"\r\n >\r\n </fa-icon>\r\n\r\n <div class=\"hot-spot\"></div>\r\n\r\n </button>\r\n </div>\r\n\r\n <!-- OPEN SIDEBAR -->\r\n <div \r\n *ngIf=\"!pullOutSideBar && (true || !showSideBar)\" \r\n class=\"sds-side-bar-button-container open-side-bar-button\"\r\n [class.hidden]=\"showSideBar\"\r\n >\r\n \r\n <button\r\n class=\"btn btn-outline-primary shadow-sm\"\r\n [title]=\"openButtonHint\"\r\n (click)=\"toggleSideBar()\"\r\n >\r\n <fa-icon \r\n [icon]=\"caretIcon\"\r\n [rotate]=\"180\"\r\n size=\"xs\"\r\n >\r\n </fa-icon>\r\n\r\n <div class=\"hot-spot\"></div>\r\n\r\n </button>\r\n </div>\r\n\r\n <aside\r\n class=\"sds-side-bar h-100 border-end\"\r\n [class]=\"(product ? 'product-' + product : null)\"\r\n [class.shadow]=\"pullOutSideBar\"\r\n [class.sds-side-bar-open]=\"showSideBar\"\r\n [style.width.rem]=\"(showSideBar || pullOutSideBar) ? widthRem : enablePullOutMode ? 0.75 : 0\"\r\n \r\n (mouseleave)=\"pullOutSideBar = false\"\r\n >\r\n <div \r\n *ngIf=\"enablePullOutMode && !showSideBar && !pullOutSideBar\"\r\n class=\"sds-side-bar-pull-out h-100 position-absolute\" \r\n style=\"width: 0.75rem;\"\r\n (mouseenter)=\"pullOutSideBar = true\"\r\n >\r\n </div>\r\n\r\n <div class=\"d-flex flex-column flex-grow-0 h-100\" \r\n [style.width.rem]=\"widthRem\">\r\n\r\n <ng-content></ng-content> \r\n </div>\r\n\r\n </aside>\r\n</div>","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { SdsSideBarComponent } from './side-bar.component';\r\nimport { FontAwesomeModule } from '@fortawesome/angular-fontawesome';\r\n\r\n\r\n\r\nconst components = [\r\n SdsSideBarComponent\r\n]\r\n@NgModule({\r\n declarations: [\r\n ...components\r\n ],\r\n imports: [\r\n CommonModule, FontAwesomeModule\r\n ],\r\n exports: [\r\n ...components\r\n ]\r\n})\r\nexport class SdsSideBarModule { }\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;AAGA;AACA;MAOa,mBAAmB,CAAA;AA4E5B,IAAA,WAAA,GAAA;AA1EA;;;;;;;AAOG;QACa,IAAe,CAAA,eAAA,GAAsB,MAAM,CAAC;AAE5D;;;;;;AAMG;QACa,IAAiB,CAAA,iBAAA,GAAY,KAAK,CAAC;AAEnD;;;;;AAKG;QACa,IAAQ,CAAA,QAAA,GAAW,EAAE,CAAC;AAEtC;;;;;;;AAOG;QACM,IAAO,CAAA,OAAA,GAA+D,WAAW,CAAC;AAE3F;;;;;;;AAOG;QACa,IAAmB,CAAA,mBAAA,GAAuB,GAAG,CAAC;QAmBvD,IAAW,CAAA,WAAA,GAAG,IAAI,CAAC;QACnB,IAAc,CAAA,cAAA,GAAG,KAAK,CAAC;QACvB,IAAS,CAAA,SAAA,GAAmB,WAAW,CAAC;QACxC,IAAc,CAAA,cAAA,GAAY,KAAK,CAAC;QAE/B,IAAW,CAAA,WAAA,GAAW,CAAC,CAAC;QACxB,IAAoB,CAAA,oBAAA,GAAY,KAAK,CAAC;AAEtC,QAAA,IAAA,CAAA,eAAe,GAAG,IAAI,OAAO,EAAQ,CAAC;AAI1C,QAAA,IAAI,CAAC,eAAe,CAAC,SAAS,CAAC,MAAK;AAChC,YAAA,OAAO,CAAC,GAAG,CAAC,gBAAgB,CAAC,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AAgB,CAAA;;6GAAhB,gBAAgB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;AAAhB,gBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,gBAAgB,iBAbzB,mBAAmB,CAAA,EAAA,OAAA,EAAA,CAOnB,YAAY,EAAE,iBAAiB,aAP/B,mBAAmB,CAAA,EAAA,CAAA,CAAA;AAaV,gBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,gBAAgB,EAPlB,OAAA,EAAA,CAAA;AACP,YAAA,YAAY,EAAE,iBAAiB;AAChC,SAAA,CAAA,EAAA,CAAA,CAAA;2FAKU,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAX5B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE;AACZ,wBAAA,GAAG,UAAU;AACd,qBAAA;AACD,oBAAA,OAAO,EAAE;AACP,wBAAA,YAAY,EAAE,iBAAiB;AAChC,qBAAA;AACD,oBAAA,OAAO,EAAE;AACP,wBAAA,GAAG,UAAU;AACd,qBAAA;AACF,iBAAA,CAAA;;;ACpBD;;AAEG;;;;"}
@@ -0,0 +1,59 @@
1
+ import * as i0 from '@angular/core';
2
+ import { Component, Input, NgModule } from '@angular/core';
3
+ import * as i2 from '@angular/common';
4
+ import { CommonModule } from '@angular/common';
5
+ import * as i1 from '@fortawesome/angular-fontawesome';
6
+ import { FontAwesomeModule } from '@fortawesome/angular-fontawesome';
7
+
8
+ class SdsStaticValueComponent {
9
+ constructor() {
10
+ this.label = '';
11
+ this.showColon = true;
12
+ }
13
+ ngOnInit() {
14
+ }
15
+ }
16
+ SdsStaticValueComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.1", ngImport: i0, type: SdsStaticValueComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
17
+ SdsStaticValueComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.1", type: SdsStaticValueComponent, selector: "sds-static-value", inputs: { icon: "icon", label: "label", showColon: "showColon" }, ngImport: i0, template: "<div class=\"d-flex gap-1 align-items-center\">\r\n <fa-icon *ngIf=\"icon\" [fixedWidth]=\"true\" [icon]=\"icon\"></fa-icon>\r\n <div *ngIf=\"label || showColon\">\r\n <span>{{label}}</span>\r\n <span *ngIf=\"showColon\">:</span>\r\n </div>\r\n <ng-content></ng-content>\r\n</div>", styles: [""], components: [{ type: i1.FaIconComponent, selector: "fa-icon", inputs: ["icon", "title", "spin", "pulse", "mask", "styles", "flip", "size", "pull", "border", "inverse", "symbol", "rotate", "fixedWidth", "classes", "transform", "a11yRole"] }], directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
18
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.1", ngImport: i0, type: SdsStaticValueComponent, decorators: [{
19
+ type: Component,
20
+ args: [{ selector: 'sds-static-value', template: "<div class=\"d-flex gap-1 align-items-center\">\r\n <fa-icon *ngIf=\"icon\" [fixedWidth]=\"true\" [icon]=\"icon\"></fa-icon>\r\n <div *ngIf=\"label || showColon\">\r\n <span>{{label}}</span>\r\n <span *ngIf=\"showColon\">:</span>\r\n </div>\r\n <ng-content></ng-content>\r\n</div>", styles: [""] }]
21
+ }], ctorParameters: function () { return []; }, propDecorators: { icon: [{
22
+ type: Input
23
+ }], label: [{
24
+ type: Input
25
+ }], showColon: [{
26
+ type: Input
27
+ }] } });
28
+
29
+ class SdsStaticValueModule {
30
+ }
31
+ SdsStaticValueModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.1", ngImport: i0, type: SdsStaticValueModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
32
+ SdsStaticValueModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.1", ngImport: i0, type: SdsStaticValueModule, declarations: [SdsStaticValueComponent], imports: [CommonModule,
33
+ FontAwesomeModule], exports: [SdsStaticValueComponent] });
34
+ SdsStaticValueModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.1", ngImport: i0, type: SdsStaticValueModule, imports: [[
35
+ CommonModule,
36
+ FontAwesomeModule
37
+ ]] });
38
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.1", ngImport: i0, type: SdsStaticValueModule, decorators: [{
39
+ type: NgModule,
40
+ args: [{
41
+ declarations: [
42
+ SdsStaticValueComponent
43
+ ],
44
+ imports: [
45
+ CommonModule,
46
+ FontAwesomeModule
47
+ ],
48
+ exports: [
49
+ SdsStaticValueComponent
50
+ ]
51
+ }]
52
+ }] });
53
+
54
+ /**
55
+ * Generated bundle index. Do not edit.
56
+ */
57
+
58
+ export { SdsStaticValueComponent, SdsStaticValueModule };
59
+ //# sourceMappingURL=spicainternational-ngx-sds-components-src-lib-static-value.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"spicainternational-ngx-sds-components-src-lib-static-value.mjs","sources":["../../../projects/ngx-sds-components/src/lib/static-value/static-value.component.ts","../../../projects/ngx-sds-components/src/lib/static-value/static-value.component.html","../../../projects/ngx-sds-components/src/lib/static-value/static-value.module.ts","../../../projects/ngx-sds-components/src/lib/static-value/spicainternational-ngx-sds-components-src-lib-static-value.ts"],"sourcesContent":["import { Component, Input, OnInit } from '@angular/core';\r\nimport { IconProp } from '@fortawesome/fontawesome-svg-core';\r\n\r\n@Component({\r\n selector: 'sds-static-value',\r\n templateUrl: './static-value.component.html',\r\n styleUrls: ['./static-value.component.scss']\r\n})\r\nexport class SdsStaticValueComponent implements OnInit {\r\n\r\n @Input() public icon: IconProp | undefined;\r\n @Input() public label: string = '';\r\n @Input() public showColon: boolean = true;\r\n\r\n\r\n\r\n constructor() { }\r\n\r\n ngOnInit(): void {\r\n }\r\n\r\n}\r\n","<div class=\"d-flex gap-1 align-items-center\">\r\n <fa-icon *ngIf=\"icon\" [fixedWidth]=\"true\" [icon]=\"icon\"></fa-icon>\r\n <div *ngIf=\"label || showColon\">\r\n <span>{{label}}</span>\r\n <span *ngIf=\"showColon\">:</span>\r\n </div>\r\n <ng-content></ng-content>\r\n</div>","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { SdsStaticValueComponent } from './static-value.component';\r\nimport { FontAwesomeModule } from '@fortawesome/angular-fontawesome';\r\n\r\n@NgModule({\r\n declarations: [\r\n SdsStaticValueComponent\r\n ],\r\n imports: [\r\n CommonModule, \r\n FontAwesomeModule\r\n ],\r\n exports: [\r\n SdsStaticValueComponent\r\n ]\r\n})\r\nexport class SdsStaticValueModule {}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;MAQa,uBAAuB,CAAA;AAQhC,IAAA,WAAA,GAAA;QALgB,IAAK,CAAA,KAAA,GAAW,EAAE,CAAC;QACnB,IAAS,CAAA,SAAA,GAAY,IAAI,CAAC;KAIzB;IAEjB,QAAQ,GAAA;KACP;;oHAXQ,uBAAuB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAvB,uBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,uBAAuB,0HCRpC,oTAOM,EAAA,MAAA,EAAA,CAAA,EAAA,CAAA,EAAA,UAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,C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,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBAZhC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,YAAY,EAAE;wBACV,uBAAuB;AAC1B,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACL,YAAY;wBACZ,iBAAiB;AACpB,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACL,uBAAuB;AAC1B,qBAAA;AACJ,iBAAA,CAAA;;;AChBD;;AAEG;;;;"}
@@ -18,6 +18,7 @@ export * from '@spicainternational/ngx-sds-components/src/lib/pane';
18
18
  export * from '@spicainternational/ngx-sds-components/src/lib/quick-info';
19
19
  export * from '@spicainternational/ngx-sds-components/src/lib/segmented-control';
20
20
  export * from '@spicainternational/ngx-sds-components/src/lib/side-bar';
21
+ export * from '@spicainternational/ngx-sds-components/src/lib/static-value';
21
22
  export * from '@spicainternational/ngx-sds-components/src/lib/tooltip';
22
23
 
23
24
  /*
@@ -1 +1 @@
1
- {"version":3,"file":"spicainternational-ngx-sds-components.mjs","sources":["../../../projects/ngx-sds-components/src/public-api.ts","../../../projects/ngx-sds-components/src/spicainternational-ngx-sds-components.ts"],"sourcesContent":["/*\r\n * Public API Surface of ngx-sds-components\r\n */\r\n\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/app-switcher';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/avatar';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/badge';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/callout';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/color-picker';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/expansion-panel';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/date-picker';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/date-pipes';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/duration-pipe';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/duration-box';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/highlight-text';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/layout';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/message';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/modal';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/navigation';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/page-header';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/pane';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/quick-info';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/segmented-control';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/side-bar';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/tooltip';\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA;;AAEG;;ACFH;;AAEG"}
1
+ {"version":3,"file":"spicainternational-ngx-sds-components.mjs","sources":["../../../projects/ngx-sds-components/src/public-api.ts","../../../projects/ngx-sds-components/src/spicainternational-ngx-sds-components.ts"],"sourcesContent":["/*\r\n * Public API Surface of ngx-sds-components\r\n */\r\n\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/app-switcher';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/avatar';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/badge';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/callout';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/color-picker';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/expansion-panel';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/date-picker';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/date-pipes';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/duration-pipe';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/duration-box';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/highlight-text';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/layout';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/message';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/modal';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/navigation';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/page-header';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/pane';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/quick-info';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/segmented-control';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/side-bar';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/static-value';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/tooltip';\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA;;AAEG;;ACFH;;AAEG"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spicainternational/ngx-sds-components",
3
- "version": "5.12.3",
3
+ "version": "5.13.0-beta.1",
4
4
  "description": "Spica design system angular components.",
5
5
  "peerDependencies": {
6
6
  "@angular/common": ">=13.3.0",
@@ -198,6 +198,14 @@
198
198
  "node": "./fesm2015/spicainternational-ngx-sds-components-src-lib-side-bar.mjs",
199
199
  "default": "./fesm2020/spicainternational-ngx-sds-components-src-lib-side-bar.mjs"
200
200
  },
201
+ "./src/lib/static-value": {
202
+ "types": "./src/lib/static-value/spicainternational-ngx-sds-components-src-lib-static-value.d.ts",
203
+ "esm2020": "./esm2020/src/lib/static-value/spicainternational-ngx-sds-components-src-lib-static-value.mjs",
204
+ "es2020": "./fesm2020/spicainternational-ngx-sds-components-src-lib-static-value.mjs",
205
+ "es2015": "./fesm2015/spicainternational-ngx-sds-components-src-lib-static-value.mjs",
206
+ "node": "./fesm2015/spicainternational-ngx-sds-components-src-lib-static-value.mjs",
207
+ "default": "./fesm2020/spicainternational-ngx-sds-components-src-lib-static-value.mjs"
208
+ },
201
209
  "./src/lib/tooltip": {
202
210
  "types": "./src/lib/tooltip/spicainternational-ngx-sds-components-src-lib-tooltip.d.ts",
203
211
  "esm2020": "./esm2020/src/lib/tooltip/spicainternational-ngx-sds-components-src-lib-tooltip.mjs",
package/public-api.d.ts CHANGED
@@ -18,4 +18,5 @@ export * from '@spicainternational/ngx-sds-components/src/lib/pane';
18
18
  export * from '@spicainternational/ngx-sds-components/src/lib/quick-info';
19
19
  export * from '@spicainternational/ngx-sds-components/src/lib/segmented-control';
20
20
  export * from '@spicainternational/ngx-sds-components/src/lib/side-bar';
21
+ export * from '@spicainternational/ngx-sds-components/src/lib/static-value';
21
22
  export * from '@spicainternational/ngx-sds-components/src/lib/tooltip';
@@ -3,6 +3,7 @@ import * as i0 from "@angular/core";
3
3
  export declare class SdsNavigationUserProfileComponent implements OnInit {
4
4
  name: string;
5
5
  id: string;
6
+ email: string;
6
7
  showSignOut: boolean;
7
8
  showProfile: boolean;
8
9
  signOutText: string;
@@ -15,5 +16,5 @@ export declare class SdsNavigationUserProfileComponent implements OnInit {
15
16
  onProfileClick(): void;
16
17
  onSignOutClick(): void;
17
18
  static ɵfac: i0.ɵɵFactoryDeclaration<SdsNavigationUserProfileComponent, never>;
18
- static ɵcmp: i0.ɵɵComponentDeclaration<SdsNavigationUserProfileComponent, "sds-navigation-user-profile", never, { "name": "name"; "id": "id"; "showSignOut": "showSignOut"; "showProfile": "showProfile"; "signOutText": "signOutText"; "profileText": "profileText"; }, { "profileClick": "profileClick"; "signOutClick": "signOutClick"; }, never, never>;
19
+ static ɵcmp: i0.ɵɵComponentDeclaration<SdsNavigationUserProfileComponent, "sds-navigation-user-profile", never, { "name": "name"; "id": "id"; "email": "email"; "showSignOut": "showSignOut"; "showProfile": "showProfile"; "signOutText": "signOutText"; "profileText": "profileText"; }, { "profileClick": "profileClick"; "signOutClick": "signOutClick"; }, never, never>;
19
20
  }
@@ -6,14 +6,16 @@ import * as i4 from "./navigation-header/navigation-header.component";
6
6
  import * as i5 from "./navigation-container/navigation-container.component";
7
7
  import * as i6 from "./navigation-external-link/navigation-external-link.component";
8
8
  import * as i7 from "./navigation-user-profile/navigation-user-profile.component";
9
- import * as i8 from "./pipes/navigation-route-active.pipe";
10
- import * as i9 from "@angular/common";
11
- import * as i10 from "@angular/router";
12
- import * as i11 from "@spicainternational/ngx-sds-components/src/lib/avatar";
13
- import * as i12 from "@fortawesome/angular-fontawesome";
14
- import * as i13 from "devextreme-angular/ui/popover";
9
+ import * as i8 from "./product-home/product-home.component";
10
+ import * as i9 from "./pipes/navigation-route-active.pipe";
11
+ import * as i10 from "@angular/common";
12
+ import * as i11 from "@angular/router";
13
+ import * as i12 from "@spicainternational/ngx-sds-components/src/lib/avatar";
14
+ import * as i13 from "@spicainternational/ngx-sds-components/src/lib/app-switcher";
15
+ import * as i14 from "@fortawesome/angular-fontawesome";
16
+ import * as i15 from "devextreme-angular/ui/popover";
15
17
  export declare class SdsNavigationModule {
16
18
  static ɵfac: i0.ɵɵFactoryDeclaration<SdsNavigationModule, never>;
17
- static ɵmod: i0.ɵɵNgModuleDeclaration<SdsNavigationModule, [typeof i1.SdsNavigationGroupComponent, typeof i2.SdsNavigationRouteLinkComponent, typeof i3.SdsNavigationSeparatorComponent, typeof i4.SdsNavigationHeaderComponent, typeof i5.SdsNavigationContainerComponent, typeof i6.SdsNavigationExternalLinkComponent, typeof i7.SdsNavigationUserProfileComponent, typeof i8.NavigationRouteActivePipe, typeof i7.SdsNavigationUserProfileComponent], [typeof i9.CommonModule, typeof i10.RouterModule, typeof i11.SdsAvatarModule, typeof i12.FontAwesomeModule, typeof i13.DxPopoverModule], [typeof i1.SdsNavigationGroupComponent, typeof i2.SdsNavigationRouteLinkComponent, typeof i3.SdsNavigationSeparatorComponent, typeof i4.SdsNavigationHeaderComponent, typeof i5.SdsNavigationContainerComponent, typeof i6.SdsNavigationExternalLinkComponent, typeof i7.SdsNavigationUserProfileComponent]>;
19
+ static ɵmod: i0.ɵɵNgModuleDeclaration<SdsNavigationModule, [typeof i1.SdsNavigationGroupComponent, typeof i2.SdsNavigationRouteLinkComponent, typeof i3.SdsNavigationSeparatorComponent, typeof i4.SdsNavigationHeaderComponent, typeof i5.SdsNavigationContainerComponent, typeof i6.SdsNavigationExternalLinkComponent, typeof i7.SdsNavigationUserProfileComponent, typeof i8.SdsProductHomeComponent, typeof i9.NavigationRouteActivePipe, typeof i7.SdsNavigationUserProfileComponent], [typeof i10.CommonModule, typeof i11.RouterModule, typeof i12.SdsAvatarModule, typeof i13.SdsAppSwitcherModule, typeof i14.FontAwesomeModule, typeof i15.DxPopoverModule], [typeof i1.SdsNavigationGroupComponent, typeof i2.SdsNavigationRouteLinkComponent, typeof i3.SdsNavigationSeparatorComponent, typeof i4.SdsNavigationHeaderComponent, typeof i5.SdsNavigationContainerComponent, typeof i6.SdsNavigationExternalLinkComponent, typeof i7.SdsNavigationUserProfileComponent, typeof i8.SdsProductHomeComponent]>;
18
20
  static ɵinj: i0.ɵɵInjectorDeclaration<SdsNavigationModule>;
19
21
  }
@@ -0,0 +1,18 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { ProductModel } from '@spicainternational/ngx-sds-components/src/lib/app-switcher';
3
+ import * as i0 from "@angular/core";
4
+ export declare class SdsProductHomeComponent implements OnInit {
5
+ logoUrl?: string;
6
+ logoAltText?: string;
7
+ moduleTitle?: string;
8
+ showAppSwitcher: boolean;
9
+ appSwitcherProductCode: Number | undefined;
10
+ appSwitcherUserProductCodes: Number[] | undefined;
11
+ appSwitcherTenantProducts: ProductModel[] | undefined;
12
+ appSwitcherSwitchText: string;
13
+ appSwitcherDiscoverText: string;
14
+ constructor();
15
+ ngOnInit(): void;
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<SdsProductHomeComponent, never>;
17
+ static ɵcmp: i0.ɵɵComponentDeclaration<SdsProductHomeComponent, "sds-product-home", never, { "logoUrl": "logoUrl"; "logoAltText": "logoAltText"; "moduleTitle": "moduleTitle"; "showAppSwitcher": "showAppSwitcher"; "appSwitcherProductCode": "appSwitcherProductCode"; "appSwitcherUserProductCodes": "appSwitcherUserProductCodes"; "appSwitcherTenantProducts": "appSwitcherTenantProducts"; "appSwitcherSwitchText": "appSwitcherSwitchText"; "appSwitcherDiscoverText": "appSwitcherDiscoverText"; }, {}, never, never>;
18
+ }
@@ -6,3 +6,4 @@ export * from './navigation-header/navigation-header.component';
6
6
  export * from './navigation-route-link/navigation-route-link.component';
7
7
  export * from './navigation-separator/navigation-separator.component';
8
8
  export * from './navigation-user-profile/navigation-user-profile.component';
9
+ export * from './product-home/product-home.component';
@@ -1,17 +1,75 @@
1
- import { OnInit } from '@angular/core';
2
- import { IconDefinition } from '@fortawesome/pro-regular-svg-icons';
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
- product: string;
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, { "product": "product"; "isMainSideBar": "isMainSideBar"; "showSideBarToggleButton": "showSideBarToggleButton"; "hideSideBarText": "hideSideBarText"; "showSideBarText": "showSideBarText"; }, {}, 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
  }
@@ -0,0 +1,10 @@
1
+ {
2
+ "module": "../../../fesm2015/spicainternational-ngx-sds-components-src-lib-static-value.mjs",
3
+ "es2020": "../../../fesm2020/spicainternational-ngx-sds-components-src-lib-static-value.mjs",
4
+ "esm2020": "../../../esm2020/src/lib/static-value/spicainternational-ngx-sds-components-src-lib-static-value.mjs",
5
+ "fesm2020": "../../../fesm2020/spicainternational-ngx-sds-components-src-lib-static-value.mjs",
6
+ "fesm2015": "../../../fesm2015/spicainternational-ngx-sds-components-src-lib-static-value.mjs",
7
+ "typings": "spicainternational-ngx-sds-components-src-lib-static-value.d.ts",
8
+ "sideEffects": false,
9
+ "name": "@spicainternational/ngx-sds-components/src/lib/static-value"
10
+ }
@@ -0,0 +1,2 @@
1
+ export * from './static-value.module';
2
+ export * from './static-value.component';
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="@spicainternational/ngx-sds-components/src/lib/static-value" />
5
+ export * from './public-api';
@@ -0,0 +1,12 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { IconProp } from '@fortawesome/fontawesome-svg-core';
3
+ import * as i0 from "@angular/core";
4
+ export declare class SdsStaticValueComponent implements OnInit {
5
+ icon: IconProp | undefined;
6
+ label: string;
7
+ showColon: boolean;
8
+ constructor();
9
+ ngOnInit(): void;
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<SdsStaticValueComponent, never>;
11
+ static ɵcmp: i0.ɵɵComponentDeclaration<SdsStaticValueComponent, "sds-static-value", never, { "icon": "icon"; "label": "label"; "showColon": "showColon"; }, {}, never, ["*"]>;
12
+ }
@@ -0,0 +1,9 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./static-value.component";
3
+ import * as i2 from "@angular/common";
4
+ import * as i3 from "@fortawesome/angular-fontawesome";
5
+ export declare class SdsStaticValueModule {
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<SdsStaticValueModule, never>;
7
+ static ɵmod: i0.ɵɵNgModuleDeclaration<SdsStaticValueModule, [typeof i1.SdsStaticValueComponent], [typeof i2.CommonModule, typeof i3.FontAwesomeModule], [typeof i1.SdsStaticValueComponent]>;
8
+ static ɵinj: i0.ɵɵInjectorDeclaration<SdsStaticValueModule>;
9
+ }