@spicainternational/ngx-sds-components 8.0.0 → 8.3.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/README.md +16 -16
- package/esm2022/public-api.mjs +2 -1
- package/esm2022/src/lib/app-switcher/app-switcher.component.mjs +3 -3
- package/esm2022/src/lib/app-switcher/app-switcher.model.mjs +1 -1
- package/esm2022/src/lib/app-switcher/public-api.mjs +1 -1
- package/esm2022/src/lib/avatar/avatar-group.component.mjs +3 -3
- package/esm2022/src/lib/avatar/avatar-group.model.mjs +1 -1
- package/esm2022/src/lib/avatar/avatar.component.mjs +20 -6
- package/esm2022/src/lib/avatar/public-api.mjs +1 -1
- package/esm2022/src/lib/badge/badge.directive.mjs +1 -1
- package/esm2022/src/lib/badge/badge.types.mjs +1 -1
- package/esm2022/src/lib/badge/components/badge.component.mjs +3 -3
- package/esm2022/src/lib/badge/public-api.mjs +1 -1
- package/esm2022/src/lib/callout/callout.component.mjs +3 -3
- package/esm2022/src/lib/callout/public-api.mjs +1 -1
- package/esm2022/src/lib/color-picker/color-picker.component.mjs +3 -3
- package/esm2022/src/lib/color-picker/public-api.mjs +1 -1
- package/esm2022/src/lib/date-picker/date-picker.component.mjs +3 -3
- package/esm2022/src/lib/date-picker/date-picker.model.mjs +1 -1
- package/esm2022/src/lib/date-picker/public-api.mjs +1 -1
- package/esm2022/src/lib/date-picker/sds-date-picker.service.mjs +1 -1
- package/esm2022/src/lib/date-pipes/date-compare.pipe.mjs +1 -1
- package/esm2022/src/lib/date-pipes/date-format.pipe.mjs +1 -1
- package/esm2022/src/lib/date-pipes/date-period-format.pipe.mjs +1 -1
- package/esm2022/src/lib/date-pipes/date-time-formats.constants.mjs +1 -1
- package/esm2022/src/lib/date-pipes/date-time-range-duration.pipe.mjs +1 -1
- package/esm2022/src/lib/date-pipes/date-time-range-format.pipe.mjs +1 -1
- package/esm2022/src/lib/date-pipes/public-api.mjs +1 -1
- package/esm2022/src/lib/drawer/drawer.component.mjs +4 -4
- package/esm2022/src/lib/drawer/public-api.mjs +1 -1
- package/esm2022/src/lib/duration-box/duration-box.component.mjs +3 -3
- package/esm2022/src/lib/duration-box/duration.service.mjs +1 -1
- package/esm2022/src/lib/duration-box/public-api.mjs +1 -1
- package/esm2022/src/lib/duration-pipe/duration-format.pipe.mjs +1 -1
- package/esm2022/src/lib/duration-pipe/public-api.mjs +1 -1
- package/esm2022/src/lib/ellipsis/directives/ellipsis.directive.mjs +1 -1
- package/esm2022/src/lib/ellipsis/public-api.mjs +1 -1
- package/esm2022/src/lib/expansion-panel/expansion-panel.component.mjs +3 -3
- package/esm2022/src/lib/expansion-panel/expansion-panel.types.mjs +1 -1
- package/esm2022/src/lib/expansion-panel/public-api.mjs +1 -1
- package/esm2022/src/lib/highlight-text/directives/highlight-text.directive.mjs +1 -1
- package/esm2022/src/lib/highlight-text/directives/index.mjs +1 -1
- package/esm2022/src/lib/highlight-text/pipes/highlight-text.pipe.mjs +1 -1
- package/esm2022/src/lib/highlight-text/pipes/index.mjs +1 -1
- package/esm2022/src/lib/highlight-text/public-api.mjs +1 -1
- package/esm2022/src/lib/highlight-text/utils/highlight-text.utils.mjs +1 -1
- package/esm2022/src/lib/highlight-text/utils/index.mjs +1 -1
- package/esm2022/src/lib/intersection/directives/index.mjs +1 -1
- package/esm2022/src/lib/intersection/directives/intersection.directive.mjs +1 -1
- package/esm2022/src/lib/intersection/public-api.mjs +1 -1
- package/esm2022/src/lib/intersection/services/index.mjs +1 -1
- package/esm2022/src/lib/intersection/services/intersection.service.mjs +1 -1
- package/esm2022/src/lib/keyboard-shortcut/directives/index.mjs +1 -1
- package/esm2022/src/lib/keyboard-shortcut/directives/keyboard-shortcut.directive.mjs +19 -29
- package/esm2022/src/lib/keyboard-shortcut/public-api.mjs +1 -1
- package/esm2022/src/lib/layout/default-layout/default-layout.component.mjs +3 -3
- package/esm2022/src/lib/layout/extra-large-layout/extra-large-layout.component.mjs +3 -3
- package/esm2022/src/lib/layout/fluid-layout/fluid-layout.component.mjs +3 -3
- package/esm2022/src/lib/layout/medium-layout/medium-layout.component.mjs +3 -3
- package/esm2022/src/lib/layout/public-api.mjs +1 -1
- package/esm2022/src/lib/layout/small-layout/small-layout.component.mjs +3 -3
- package/esm2022/src/lib/message/message.component.mjs +3 -3
- package/esm2022/src/lib/message/public-api.mjs +1 -1
- package/esm2022/src/lib/modal/dialog/dialog.component.mjs +5 -5
- package/esm2022/src/lib/modal/modal.component.mjs +5 -5
- package/esm2022/src/lib/modal/modal.model.mjs +1 -1
- package/esm2022/src/lib/modal/public-api.mjs +1 -1
- package/esm2022/src/lib/navigation/models/navigation-models.mjs +1 -1
- package/esm2022/src/lib/navigation/navigation-collapsible-frame/navigation-collapsible-frame.component.mjs +3 -3
- package/esm2022/src/lib/navigation/navigation-container/navigation-container.component.mjs +5 -8
- package/esm2022/src/lib/navigation/navigation-external-link/navigation-external-link.component.mjs +3 -3
- package/esm2022/src/lib/navigation/navigation-group/navigation-group.component.mjs +123 -14
- package/esm2022/src/lib/navigation/navigation-header/navigation-header.component.mjs +3 -3
- package/esm2022/src/lib/navigation/navigation-route-link/navigation-route-link.component.mjs +61 -23
- package/esm2022/src/lib/navigation/navigation-separator/navigation-separator.component.mjs +3 -3
- package/esm2022/src/lib/navigation/navigation-user-profile/components/user-profile-action-button/user-profile-action-button.component.mjs +3 -3
- package/esm2022/src/lib/navigation/navigation-user-profile/components/user-profile-selector/user-profile-selector.component.mjs +3 -3
- package/esm2022/src/lib/navigation/navigation-user-profile/components/user-profile-tile/user-profile-tile.component.mjs +3 -3
- package/esm2022/src/lib/navigation/navigation-user-profile/navigation-profile.model.mjs +1 -1
- package/esm2022/src/lib/navigation/navigation-user-profile/navigation-user-profile.component.mjs +3 -3
- package/esm2022/src/lib/navigation/product-home/product-home.component.mjs +5 -5
- package/esm2022/src/lib/navigation/public-api.mjs +1 -1
- package/esm2022/src/lib/navigation/utils/navigation.utils.mjs +1 -1
- package/esm2022/src/lib/number-box/number-box.component.mjs +3 -3
- package/esm2022/src/lib/number-box/public-api.mjs +1 -1
- package/esm2022/src/lib/page-header/page-header.component.mjs +3 -3
- package/esm2022/src/lib/page-header/public-api.mjs +1 -1
- package/esm2022/src/lib/pane/pane.component.mjs +3 -3
- package/esm2022/src/lib/pane/pane.model.mjs +1 -1
- package/esm2022/src/lib/pane/public-api.mjs +1 -1
- package/esm2022/src/lib/quick-info/quick-info.component.mjs +3 -3
- package/esm2022/src/lib/quick-info/quick-info.model.mjs +1 -1
- package/esm2022/src/lib/ripple/public-api.mjs +2 -0
- package/esm2022/src/lib/ripple/ripple.directive.mjs +103 -0
- package/esm2022/src/lib/ripple/spicainternational-ngx-sds-components-src-lib-ripple.mjs +5 -0
- package/esm2022/src/lib/segmented-control/public-api.mjs +1 -1
- package/esm2022/src/lib/segmented-control/segmented-control.component.mjs +56 -7
- package/esm2022/src/lib/side-bar/side-bar.component.mjs +22 -16
- package/esm2022/src/lib/static-value/public-api.mjs +1 -1
- package/esm2022/src/lib/static-value/static-value.component.mjs +3 -3
- package/esm2022/src/lib/table-actions/public-api.mjs +1 -1
- package/esm2022/src/lib/table-actions/table-actions.component.mjs +3 -3
- package/esm2022/src/lib/timeline/components/timeline.component.mjs +13 -3
- package/esm2022/src/lib/timeline/models/timeline.model.mjs +1 -1
- package/esm2022/src/lib/timeline/public-api.mjs +1 -1
- package/esm2022/src/lib/timeline/services/timeline.service.mjs +1 -1
- package/esm2022/src/lib/timeline/types/timeline.types.mjs +1 -1
- package/esm2022/src/lib/timer/public-api.mjs +1 -1
- package/esm2022/src/lib/timer/services/index.mjs +1 -1
- package/esm2022/src/lib/timer/services/timer.service.mjs +1 -1
- package/esm2022/src/lib/timer/utils/index.mjs +1 -1
- package/esm2022/src/lib/timer/utils/timer.utils.mjs +1 -1
- package/esm2022/src/lib/tooltip/components/tooltip.component.mjs +3 -3
- package/esm2022/src/lib/tooltip/public-api.mjs +1 -1
- package/esm2022/src/lib/tooltip/tooltip.directive.mjs +1 -1
- package/esm2022/src/lib/tooltip/tooltip.types.mjs +1 -1
- package/esm2022/src/lib/tooltip/utils/tooltip.utils.mjs +1 -1
- package/esm2022/src/lib/utils/date-time/date-time-format.function.mjs +1 -1
- package/esm2022/src/lib/utils/date-time/intl-date-time-format-options-presets.mjs +1 -1
- package/esm2022/src/lib/utils/date-time/public-api.mjs +1 -1
- package/esm2022/src/lib/utils/public-api.mjs +1 -1
- package/fesm2022/spicainternational-ngx-sds-components-src-lib-app-switcher.mjs +2 -2
- package/fesm2022/spicainternational-ngx-sds-components-src-lib-app-switcher.mjs.map +1 -1
- package/fesm2022/spicainternational-ngx-sds-components-src-lib-avatar.mjs +21 -7
- package/fesm2022/spicainternational-ngx-sds-components-src-lib-avatar.mjs.map +1 -1
- package/fesm2022/spicainternational-ngx-sds-components-src-lib-badge.mjs +2 -2
- package/fesm2022/spicainternational-ngx-sds-components-src-lib-badge.mjs.map +1 -1
- package/fesm2022/spicainternational-ngx-sds-components-src-lib-callout.mjs +2 -2
- package/fesm2022/spicainternational-ngx-sds-components-src-lib-callout.mjs.map +1 -1
- package/fesm2022/spicainternational-ngx-sds-components-src-lib-color-picker.mjs +2 -2
- package/fesm2022/spicainternational-ngx-sds-components-src-lib-color-picker.mjs.map +1 -1
- package/fesm2022/spicainternational-ngx-sds-components-src-lib-date-picker.mjs +2 -2
- package/fesm2022/spicainternational-ngx-sds-components-src-lib-date-picker.mjs.map +1 -1
- package/fesm2022/spicainternational-ngx-sds-components-src-lib-date-pipes.mjs.map +1 -1
- package/fesm2022/spicainternational-ngx-sds-components-src-lib-drawer.mjs +3 -3
- package/fesm2022/spicainternational-ngx-sds-components-src-lib-drawer.mjs.map +1 -1
- package/fesm2022/spicainternational-ngx-sds-components-src-lib-duration-box.mjs +2 -2
- package/fesm2022/spicainternational-ngx-sds-components-src-lib-duration-box.mjs.map +1 -1
- package/fesm2022/spicainternational-ngx-sds-components-src-lib-duration-pipe.mjs.map +1 -1
- package/fesm2022/spicainternational-ngx-sds-components-src-lib-ellipsis.mjs.map +1 -1
- package/fesm2022/spicainternational-ngx-sds-components-src-lib-expansion-panel.mjs +2 -2
- package/fesm2022/spicainternational-ngx-sds-components-src-lib-expansion-panel.mjs.map +1 -1
- package/fesm2022/spicainternational-ngx-sds-components-src-lib-highlight-text.mjs.map +1 -1
- package/fesm2022/spicainternational-ngx-sds-components-src-lib-intersection.mjs.map +1 -1
- package/fesm2022/spicainternational-ngx-sds-components-src-lib-keyboard-shortcut.mjs +18 -28
- package/fesm2022/spicainternational-ngx-sds-components-src-lib-keyboard-shortcut.mjs.map +1 -1
- package/fesm2022/spicainternational-ngx-sds-components-src-lib-layout.mjs +10 -10
- package/fesm2022/spicainternational-ngx-sds-components-src-lib-layout.mjs.map +1 -1
- package/fesm2022/spicainternational-ngx-sds-components-src-lib-message.mjs +2 -2
- package/fesm2022/spicainternational-ngx-sds-components-src-lib-message.mjs.map +1 -1
- package/fesm2022/spicainternational-ngx-sds-components-src-lib-modal.mjs +8 -8
- package/fesm2022/spicainternational-ngx-sds-components-src-lib-modal.mjs.map +1 -1
- package/fesm2022/spicainternational-ngx-sds-components-src-lib-navigation.mjs +217 -75
- package/fesm2022/spicainternational-ngx-sds-components-src-lib-navigation.mjs.map +1 -1
- package/fesm2022/spicainternational-ngx-sds-components-src-lib-number-box.mjs +2 -2
- package/fesm2022/spicainternational-ngx-sds-components-src-lib-number-box.mjs.map +1 -1
- package/fesm2022/spicainternational-ngx-sds-components-src-lib-page-header.mjs +2 -2
- package/fesm2022/spicainternational-ngx-sds-components-src-lib-page-header.mjs.map +1 -1
- package/fesm2022/spicainternational-ngx-sds-components-src-lib-pane.mjs +2 -2
- package/fesm2022/spicainternational-ngx-sds-components-src-lib-pane.mjs.map +1 -1
- package/fesm2022/spicainternational-ngx-sds-components-src-lib-quick-info.mjs +2 -2
- package/fesm2022/spicainternational-ngx-sds-components-src-lib-quick-info.mjs.map +1 -1
- package/fesm2022/spicainternational-ngx-sds-components-src-lib-ripple.mjs +110 -0
- package/fesm2022/spicainternational-ngx-sds-components-src-lib-ripple.mjs.map +1 -0
- package/fesm2022/spicainternational-ngx-sds-components-src-lib-segmented-control.mjs +55 -6
- package/fesm2022/spicainternational-ngx-sds-components-src-lib-segmented-control.mjs.map +1 -1
- package/fesm2022/spicainternational-ngx-sds-components-src-lib-side-bar.mjs +21 -15
- package/fesm2022/spicainternational-ngx-sds-components-src-lib-side-bar.mjs.map +1 -1
- package/fesm2022/spicainternational-ngx-sds-components-src-lib-static-value.mjs +2 -2
- package/fesm2022/spicainternational-ngx-sds-components-src-lib-static-value.mjs.map +1 -1
- package/fesm2022/spicainternational-ngx-sds-components-src-lib-table-actions.mjs +2 -2
- package/fesm2022/spicainternational-ngx-sds-components-src-lib-table-actions.mjs.map +1 -1
- package/fesm2022/spicainternational-ngx-sds-components-src-lib-timeline.mjs +12 -2
- package/fesm2022/spicainternational-ngx-sds-components-src-lib-timeline.mjs.map +1 -1
- package/fesm2022/spicainternational-ngx-sds-components-src-lib-timer.mjs.map +1 -1
- package/fesm2022/spicainternational-ngx-sds-components-src-lib-tooltip.mjs +2 -2
- package/fesm2022/spicainternational-ngx-sds-components-src-lib-tooltip.mjs.map +1 -1
- package/fesm2022/spicainternational-ngx-sds-components-src-lib-utils-date-time.mjs.map +1 -1
- package/fesm2022/spicainternational-ngx-sds-components-src-lib-utils.mjs.map +1 -1
- package/fesm2022/spicainternational-ngx-sds-components.mjs +1 -0
- package/fesm2022/spicainternational-ngx-sds-components.mjs.map +1 -1
- package/package.json +13 -7
- package/public-api.d.ts +1 -0
- package/src/lib/avatar/avatar.component.d.ts +7 -4
- package/src/lib/keyboard-shortcut/directives/keyboard-shortcut.directive.d.ts +5 -10
- package/src/lib/modal/modal.component.d.ts +1 -1
- package/src/lib/navigation/navigation-container/navigation-container.component.d.ts +1 -2
- package/src/lib/navigation/navigation-group/navigation-group.component.d.ts +23 -3
- package/src/lib/navigation/navigation-route-link/navigation-route-link.component.d.ts +22 -9
- package/src/lib/ripple/index.d.ts +5 -0
- package/src/lib/ripple/public-api.d.ts +1 -0
- package/src/lib/ripple/ripple.directive.d.ts +21 -0
- package/src/lib/ripple/sds-ripple.css +20 -0
- package/src/lib/segmented-control/segmented-control.component.d.ts +10 -4
- package/src/lib/side-bar/side-bar.component.d.ts +13 -7
- package/src/lib/timeline/components/timeline.component.d.ts +9 -1
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { model,
|
|
2
|
+
import { input, model, inject, computed, Component, QueryList, signal, ContentChildren, Input, EventEmitter, Output, effect, untracked, ChangeDetectionStrategy } from '@angular/core';
|
|
3
3
|
import * as i1 from '@angular/router';
|
|
4
|
-
import {
|
|
4
|
+
import { Router, NavigationEnd, RouterLink } from '@angular/router';
|
|
5
5
|
import { NgIf, NgFor } from '@angular/common';
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
6
|
+
import { toSignal } from '@angular/core/rxjs-interop';
|
|
7
|
+
import { filter, map, Subject, takeUntil } from 'rxjs';
|
|
8
|
+
import { faAngleUp, faAngleDown, faExternalLink, faUser, faSignOut, faEyeSlash, faArrowLeftFromLine, faArrowRightFromLine } from '@fortawesome/pro-regular-svg-icons';
|
|
8
9
|
import * as i3 from 'devextreme-angular/ui/nested';
|
|
9
10
|
import { DxoPositionModule } from 'devextreme-angular/ui/nested';
|
|
10
11
|
import * as i2 from 'devextreme-angular/ui/popover';
|
|
@@ -14,40 +15,6 @@ import { FaIconComponent, FontAwesomeModule } from '@fortawesome/angular-fontawe
|
|
|
14
15
|
import { SdsAvatarComponent } from '@spicainternational/ngx-sds-components/src/lib/avatar';
|
|
15
16
|
import { SdsAppSwitcherComponent } from '@spicainternational/ngx-sds-components/src/lib/app-switcher';
|
|
16
17
|
|
|
17
|
-
class SdsNavigationRouteLinkComponent {
|
|
18
|
-
constructor() {
|
|
19
|
-
/**
|
|
20
|
-
* This variable is used as 'routerLink' attribute in the anchor tag.
|
|
21
|
-
*
|
|
22
|
-
* Is named 'link' to avoid conflict with the 'routerLink' directive.
|
|
23
|
-
*/
|
|
24
|
-
this.link = '';
|
|
25
|
-
this.text = '';
|
|
26
|
-
this.additionalInfo = undefined;
|
|
27
|
-
this.disabled = false;
|
|
28
|
-
this.isCollapsed = model(false);
|
|
29
|
-
}
|
|
30
|
-
ngOnInit() { }
|
|
31
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: SdsNavigationRouteLinkComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
32
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "17.3.12", type: SdsNavigationRouteLinkComponent, isStandalone: true, selector: "sds-navigation-route-link", inputs: { link: { classPropertyName: "link", publicName: "link", isSignal: false, isRequired: false, transformFunction: null }, text: { classPropertyName: "text", publicName: "text", isSignal: false, isRequired: false, transformFunction: null }, additionalInfo: { classPropertyName: "additionalInfo", publicName: "additionalInfo", isSignal: false, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: false, isRequired: false, transformFunction: null }, isCollapsed: { classPropertyName: "isCollapsed", publicName: "isCollapsed", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { isCollapsed: "isCollapsedChange" }, ngImport: i0, template: "<!-- class=\"sds-navigation-router-link sidebar-item-x d-flex justify-content-start align-items-center sidebar-item-x py-1\"> -->\r\n<div \r\n class=\"sds-navigation-router-link sds-navigation-item-container\"\r\n [class.disabled]=\"disabled\"\r\n routerLinkActive=\"active\"\r\n [title]=\"isCollapsed() ? text : ''\"\r\n >\r\n <a class=\"sds-navigation-item-content w-100 pe-2 text-gray-800\" [routerLink]=\"link\">\r\n <div class=\"d-flex align-items-center w-100 justify-content-center\">\r\n <div class=\"sds-navigation-icon\" >\r\n <ng-content select=\"[navigationIcon]\"></ng-content>\r\n </div>\r\n\r\n <ng-container *ngIf=\"!isCollapsed()\">\r\n <div class=\"sds-navigation-text user-select-none\">\r\n {{ text }}\r\n </div>\r\n <span *ngIf=\"additionalInfo\"\r\n class=\"sds-navigation-router-link-additional-info badge rounded-pill bg-warning text-body\"\r\n >{{ additionalInfo }}</span\r\n > \r\n </ng-container>\r\n </div>\r\n </a>\r\n</div>", styles: [".sds-navigation-router-link.sds-navigation-item-container.disabled{pointer-events:none;opacity:.6}.sds-navigation-router-link.active>a{font-weight:600!important}.sds-navigation-router-link.sds-navigation-item-container.active{background-color:#00a8d226!important}.sds-navigation-router-link.sds-navigation-item-container:hover:not(.active){background-color:var(--bs-gray-200)!important}.sds-navigation-router-link.sds-navigation-item-container{border-radius:.5rem;border-left:none!important}.sds-navigation-router-link{padding:0!important}.sds-navigation-router-link a{padding-top:.5rem!important;padding-bottom:.5rem!important}\n"], dependencies: [{ kind: "directive", type: RouterLinkActive, selector: "[routerLinkActive]", inputs: ["routerLinkActiveOptions", "ariaCurrentWhenActive", "routerLinkActive"], outputs: ["isActiveChange"], exportAs: ["routerLinkActive"] }, { kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] }); }
|
|
33
|
-
}
|
|
34
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: SdsNavigationRouteLinkComponent, decorators: [{
|
|
35
|
-
type: Component,
|
|
36
|
-
args: [{ selector: 'sds-navigation-route-link', standalone: true, imports: [
|
|
37
|
-
RouterLinkActive,
|
|
38
|
-
RouterLink,
|
|
39
|
-
NgIf,
|
|
40
|
-
], template: "<!-- class=\"sds-navigation-router-link sidebar-item-x d-flex justify-content-start align-items-center sidebar-item-x py-1\"> -->\r\n<div \r\n class=\"sds-navigation-router-link sds-navigation-item-container\"\r\n [class.disabled]=\"disabled\"\r\n routerLinkActive=\"active\"\r\n [title]=\"isCollapsed() ? text : ''\"\r\n >\r\n <a class=\"sds-navigation-item-content w-100 pe-2 text-gray-800\" [routerLink]=\"link\">\r\n <div class=\"d-flex align-items-center w-100 justify-content-center\">\r\n <div class=\"sds-navigation-icon\" >\r\n <ng-content select=\"[navigationIcon]\"></ng-content>\r\n </div>\r\n\r\n <ng-container *ngIf=\"!isCollapsed()\">\r\n <div class=\"sds-navigation-text user-select-none\">\r\n {{ text }}\r\n </div>\r\n <span *ngIf=\"additionalInfo\"\r\n class=\"sds-navigation-router-link-additional-info badge rounded-pill bg-warning text-body\"\r\n >{{ additionalInfo }}</span\r\n > \r\n </ng-container>\r\n </div>\r\n </a>\r\n</div>", styles: [".sds-navigation-router-link.sds-navigation-item-container.disabled{pointer-events:none;opacity:.6}.sds-navigation-router-link.active>a{font-weight:600!important}.sds-navigation-router-link.sds-navigation-item-container.active{background-color:#00a8d226!important}.sds-navigation-router-link.sds-navigation-item-container:hover:not(.active){background-color:var(--bs-gray-200)!important}.sds-navigation-router-link.sds-navigation-item-container{border-radius:.5rem;border-left:none!important}.sds-navigation-router-link{padding:0!important}.sds-navigation-router-link a{padding-top:.5rem!important;padding-bottom:.5rem!important}\n"] }]
|
|
41
|
-
}], ctorParameters: () => [], propDecorators: { link: [{
|
|
42
|
-
type: Input
|
|
43
|
-
}], text: [{
|
|
44
|
-
type: Input
|
|
45
|
-
}], additionalInfo: [{
|
|
46
|
-
type: Input
|
|
47
|
-
}], disabled: [{
|
|
48
|
-
type: Input
|
|
49
|
-
}] } });
|
|
50
|
-
|
|
51
18
|
function removeQueryParams(url) {
|
|
52
19
|
return url.split('?')[0];
|
|
53
20
|
}
|
|
@@ -96,16 +63,91 @@ function isSubsetOrSame(mainArray, subArray) {
|
|
|
96
63
|
// }
|
|
97
64
|
}
|
|
98
65
|
|
|
66
|
+
class SdsNavigationRouteLinkComponent {
|
|
67
|
+
#router;
|
|
68
|
+
constructor() {
|
|
69
|
+
/**
|
|
70
|
+
* This variable is used as 'routerLink' attribute in the anchor tag.
|
|
71
|
+
*
|
|
72
|
+
* Is named 'link' to avoid conflict with the 'routerLink' directive.
|
|
73
|
+
*/
|
|
74
|
+
this.link = input('');
|
|
75
|
+
/** @deprecated Use `activeRoutePattern` instead. */
|
|
76
|
+
this.nestedLinks = input([]);
|
|
77
|
+
this.text = input('');
|
|
78
|
+
/**
|
|
79
|
+
* This variable can be used to provide a pattern for active route.
|
|
80
|
+
* It has higher priority than default route matching (checking if current route starts with provided link or is part of nested links).
|
|
81
|
+
* This is useful when we have more complex logic to determine if route is active.
|
|
82
|
+
*
|
|
83
|
+
* @memberof SdsNavigationRouteLinkComponent
|
|
84
|
+
*/
|
|
85
|
+
this.activeRoutePattern = input('');
|
|
86
|
+
this.additionalInfo = input(undefined);
|
|
87
|
+
this.disabled = input(false);
|
|
88
|
+
this.isCollapsed = model(false);
|
|
89
|
+
/** @deprecated Use `activeRoutePattern` instead. */
|
|
90
|
+
this.ignoreQueryParamsInActiveRoute = input(false);
|
|
91
|
+
this.#router = inject(Router);
|
|
92
|
+
this.#routerUrl = toSignal(this.#router.events.pipe(filter((event) => event instanceof NavigationEnd), map((event) => event.urlAfterRedirects)), { initialValue: this.#router.url });
|
|
93
|
+
this.#currentUrl = computed(() => {
|
|
94
|
+
const activeRoute = this.ignoreQueryParamsInActiveRoute()
|
|
95
|
+
? removeQueryParams(this.#routerUrl())
|
|
96
|
+
: this.#routerUrl();
|
|
97
|
+
return activeRoute.split('/').filter((p) => p.length > 0);
|
|
98
|
+
});
|
|
99
|
+
this.#activeRoutePatternRegExp = computed(() => {
|
|
100
|
+
if (!this.activeRoutePattern()) {
|
|
101
|
+
return null;
|
|
102
|
+
}
|
|
103
|
+
if (typeof this.activeRoutePattern() === 'string') {
|
|
104
|
+
return new RegExp(this.activeRoutePattern());
|
|
105
|
+
}
|
|
106
|
+
return this.activeRoutePattern();
|
|
107
|
+
});
|
|
108
|
+
this.isActive = computed(() => {
|
|
109
|
+
// If activeRoutePattern is provided, we should use it to determine if route is active
|
|
110
|
+
if (this.#activeRoutePatternRegExp()) {
|
|
111
|
+
return this.#activeRoutePatternRegExp().test(this.#routerUrl());
|
|
112
|
+
}
|
|
113
|
+
// Otherwise we should check if current route is part of navigation group (either default link or nested links)
|
|
114
|
+
const currentUrl = this.#currentUrl();
|
|
115
|
+
const nestedLinks = this.nestedLinks();
|
|
116
|
+
const defaultLink = this.link();
|
|
117
|
+
const isActive = isUrlPartOfNavigationGroup(currentUrl, nestedLinks, defaultLink);
|
|
118
|
+
return isActive;
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
#routerUrl;
|
|
122
|
+
#currentUrl;
|
|
123
|
+
#activeRoutePatternRegExp;
|
|
124
|
+
navigateToDefaultUrl() {
|
|
125
|
+
this.#router.navigateByUrl(this.link());
|
|
126
|
+
}
|
|
127
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: SdsNavigationRouteLinkComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
128
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "17.3.12", type: SdsNavigationRouteLinkComponent, isStandalone: true, selector: "sds-navigation-route-link", inputs: { link: { classPropertyName: "link", publicName: "link", isSignal: true, isRequired: false, transformFunction: null }, nestedLinks: { classPropertyName: "nestedLinks", publicName: "nestedLinks", isSignal: true, isRequired: false, transformFunction: null }, text: { classPropertyName: "text", publicName: "text", isSignal: true, isRequired: false, transformFunction: null }, activeRoutePattern: { classPropertyName: "activeRoutePattern", publicName: "activeRoutePattern", isSignal: true, isRequired: false, transformFunction: null }, additionalInfo: { classPropertyName: "additionalInfo", publicName: "additionalInfo", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, isCollapsed: { classPropertyName: "isCollapsed", publicName: "isCollapsed", isSignal: true, isRequired: false, transformFunction: null }, ignoreQueryParamsInActiveRoute: { classPropertyName: "ignoreQueryParamsInActiveRoute", publicName: "ignoreQueryParamsInActiveRoute", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { isCollapsed: "isCollapsedChange" }, ngImport: i0, template: "<!-- class=\"sds-navigation-router-link sidebar-item-x d-flex justify-content-start align-items-center sidebar-item-x py-1\"> -->\n<div \n class=\"sds-navigation-router-link sds-navigation-item-container\"\n [class.disabled]=\"disabled()\"\n [class.active]=\"isActive()\"\n [title]=\"isCollapsed() ? text() : ''\"\n >\n <a class=\"sds-navigation-item-content w-100 pe-2 text-gray-800\" \n (click)=\"navigateToDefaultUrl()\"\n >\n <div class=\"d-flex align-items-center w-100 justify-content-center\">\n <div class=\"sds-navigation-icon\" >\n <ng-content select=\"[navigationIcon]\"></ng-content>\n </div>\n\n <ng-container *ngIf=\"!isCollapsed()\">\n <div class=\"sds-navigation-text user-select-none\">\n {{ text() }}\n </div>\n <span *ngIf=\"additionalInfo()\"\n class=\"sds-navigation-router-link-additional-info badge rounded-pill bg-warning text-body\"\n >{{ additionalInfo() }}</span\n > \n </ng-container>\n </div>\n </a>\n</div>", styles: [".sds-navigation-router-link.sds-navigation-item-container.disabled{pointer-events:none;opacity:.6}.sds-navigation-router-link.active>a{font-weight:600!important}.sds-navigation-router-link.sds-navigation-item-container.active{background-color:var(--sds-navigation-active-item)!important}.sds-navigation-router-link.sds-navigation-item-container:hover:not(.active){background-color:var(--bs-gray-200)!important}.sds-navigation-router-link.sds-navigation-item-container{border-radius:.266rem;border-left:none!important}.sds-navigation-router-link{padding:0!important}.sds-navigation-router-link a{padding-top:.5rem!important;padding-bottom:.5rem!important}\n"], dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] }); }
|
|
129
|
+
}
|
|
130
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: SdsNavigationRouteLinkComponent, decorators: [{
|
|
131
|
+
type: Component,
|
|
132
|
+
args: [{ selector: 'sds-navigation-route-link', standalone: true, imports: [NgIf], template: "<!-- class=\"sds-navigation-router-link sidebar-item-x d-flex justify-content-start align-items-center sidebar-item-x py-1\"> -->\n<div \n class=\"sds-navigation-router-link sds-navigation-item-container\"\n [class.disabled]=\"disabled()\"\n [class.active]=\"isActive()\"\n [title]=\"isCollapsed() ? text() : ''\"\n >\n <a class=\"sds-navigation-item-content w-100 pe-2 text-gray-800\" \n (click)=\"navigateToDefaultUrl()\"\n >\n <div class=\"d-flex align-items-center w-100 justify-content-center\">\n <div class=\"sds-navigation-icon\" >\n <ng-content select=\"[navigationIcon]\"></ng-content>\n </div>\n\n <ng-container *ngIf=\"!isCollapsed()\">\n <div class=\"sds-navigation-text user-select-none\">\n {{ text() }}\n </div>\n <span *ngIf=\"additionalInfo()\"\n class=\"sds-navigation-router-link-additional-info badge rounded-pill bg-warning text-body\"\n >{{ additionalInfo() }}</span\n > \n </ng-container>\n </div>\n </a>\n</div>", styles: [".sds-navigation-router-link.sds-navigation-item-container.disabled{pointer-events:none;opacity:.6}.sds-navigation-router-link.active>a{font-weight:600!important}.sds-navigation-router-link.sds-navigation-item-container.active{background-color:var(--sds-navigation-active-item)!important}.sds-navigation-router-link.sds-navigation-item-container:hover:not(.active){background-color:var(--bs-gray-200)!important}.sds-navigation-router-link.sds-navigation-item-container{border-radius:.266rem;border-left:none!important}.sds-navigation-router-link{padding:0!important}.sds-navigation-router-link a{padding-top:.5rem!important;padding-bottom:.5rem!important}\n"] }]
|
|
133
|
+
}], ctorParameters: () => [] });
|
|
134
|
+
|
|
99
135
|
class SdsNavigationGroupComponent {
|
|
136
|
+
/** @deprecated Use `activeRoutePattern` instead. */
|
|
100
137
|
set navigationGroupNestedRoutes(value) {
|
|
101
138
|
this._navigationGroupNestedRoutes = value;
|
|
102
139
|
}
|
|
103
140
|
get navigationGroupNestedRoutes() {
|
|
104
141
|
return this._navigationGroupNestedRoutes;
|
|
105
142
|
}
|
|
143
|
+
#MOUSE_MOVE_TO_POPOVER_DELAY;
|
|
144
|
+
#pendingOpenTimeoutId;
|
|
145
|
+
#pendingCloseTimeoutId;
|
|
146
|
+
#closeRequested;
|
|
106
147
|
constructor(_router) {
|
|
107
148
|
this._router = _router;
|
|
108
149
|
/**
|
|
150
|
+
@deprecated Use `activeRoutePattern` instead.
|
|
109
151
|
* List of paths allowed/expected within this module.
|
|
110
152
|
* These are paths that are not accessible through child navigation
|
|
111
153
|
* elements, but through links in other parts of the application (e.g. link
|
|
@@ -116,13 +158,23 @@ class SdsNavigationGroupComponent {
|
|
|
116
158
|
this.icon = '';
|
|
117
159
|
this.defaultRouterLink = '';
|
|
118
160
|
this.reverse = false;
|
|
161
|
+
/** @deprecated Use `activeRoutePattern` instead. */
|
|
119
162
|
this.ignoreQueryParamsInActiveRoute = false;
|
|
120
163
|
this.disabled = false;
|
|
121
164
|
this.showPopover = false;
|
|
122
165
|
this.showPopoverHeader = false;
|
|
123
166
|
this.lightStyle = input(true);
|
|
167
|
+
/**
|
|
168
|
+
* This variable can be used to provide a pattern for active route.
|
|
169
|
+
* It has higher priority than default route matching (checking if current route starts with provided link or is part of nested links).
|
|
170
|
+
* This is useful when we have more complex logic to determine if route is active.
|
|
171
|
+
*
|
|
172
|
+
* @memberof SdsNavigationGroupComponent
|
|
173
|
+
*/
|
|
174
|
+
this.activeRoutePattern = input('');
|
|
124
175
|
this.routerLinkComponents = new QueryList();
|
|
125
176
|
this.active = false;
|
|
177
|
+
this.isPopoverVisible = signal(false);
|
|
126
178
|
this.faAngleUpRegular = faAngleUp;
|
|
127
179
|
this.faAngleDownRegular = faAngleDown;
|
|
128
180
|
/**
|
|
@@ -132,33 +184,126 @@ class SdsNavigationGroupComponent {
|
|
|
132
184
|
this._unsubscribe = new Subject();
|
|
133
185
|
this.isGroupActive = false;
|
|
134
186
|
this.isActiveGroupClosed = false;
|
|
187
|
+
this.#MOUSE_MOVE_TO_POPOVER_DELAY = 200;
|
|
188
|
+
this.#pendingOpenTimeoutId = null;
|
|
189
|
+
this.#pendingCloseTimeoutId = null;
|
|
190
|
+
this.#closeRequested = false;
|
|
135
191
|
this.isCollapsed = model(false);
|
|
192
|
+
this.lastPointerType = signal('mouse');
|
|
193
|
+
this.isTouchPointerType = computed(() => this.lastPointerType() === 'touch');
|
|
194
|
+
this.#activeRoutePatternRegExp = computed(() => {
|
|
195
|
+
if (!this.activeRoutePattern()) {
|
|
196
|
+
return null;
|
|
197
|
+
}
|
|
198
|
+
if (typeof this.activeRoutePattern() === 'string') {
|
|
199
|
+
return new RegExp(this.activeRoutePattern());
|
|
200
|
+
}
|
|
201
|
+
return this.activeRoutePattern();
|
|
202
|
+
});
|
|
136
203
|
}
|
|
204
|
+
#activeRoutePatternRegExp;
|
|
137
205
|
ngOnInit() {
|
|
138
206
|
this._router.events.pipe(filter((event) => event instanceof NavigationEnd), takeUntil(this._unsubscribe)).subscribe((event) => {
|
|
139
207
|
if (event instanceof NavigationEnd) {
|
|
140
|
-
|
|
208
|
+
this.isPopoverVisible.set(false);
|
|
209
|
+
if (this.#activeRoutePatternRegExp()) {
|
|
210
|
+
this.isGroupActive = this.#activeRoutePatternRegExp().test(event.urlAfterRedirects);
|
|
211
|
+
}
|
|
212
|
+
else {
|
|
213
|
+
const activeRoute = this.ignoreQueryParamsInActiveRoute ? removeQueryParams(event.urlAfterRedirects) : event.urlAfterRedirects;
|
|
214
|
+
const route = activeRoute.split('/').filter(item => item.length > 0);
|
|
215
|
+
this.currentUrl = route;
|
|
216
|
+
this.isGroupActive = isUrlPartOfNavigationGroup(this.currentUrl, this.navigationGroupNestedRoutes, this.defaultRouterLink);
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
});
|
|
220
|
+
}
|
|
221
|
+
ngOnChanges(changes) {
|
|
222
|
+
if (changes['navigationGroupNestedRoutes'] || changes['defaultRouterLink']) {
|
|
223
|
+
this.isPopoverVisible.set(false);
|
|
224
|
+
if (this.#activeRoutePatternRegExp()) {
|
|
225
|
+
this.isGroupActive = this.#activeRoutePatternRegExp().test(this._router.url);
|
|
226
|
+
}
|
|
227
|
+
else {
|
|
228
|
+
const activeRoute = this.ignoreQueryParamsInActiveRoute ? removeQueryParams(this._router.url) : this._router.url;
|
|
141
229
|
const route = activeRoute.split('/').filter(item => item.length > 0);
|
|
142
230
|
this.currentUrl = route;
|
|
143
231
|
this.isGroupActive = isUrlPartOfNavigationGroup(this.currentUrl, this.navigationGroupNestedRoutes, this.defaultRouterLink);
|
|
144
232
|
}
|
|
145
|
-
}
|
|
233
|
+
}
|
|
146
234
|
}
|
|
147
235
|
ngOnDestroy() {
|
|
148
236
|
this._unsubscribe.next();
|
|
149
237
|
this._unsubscribe.complete();
|
|
150
238
|
}
|
|
239
|
+
onMouseEnter() {
|
|
240
|
+
const isTouchPointerType = this.isTouchPointerType();
|
|
241
|
+
if (!isTouchPointerType) {
|
|
242
|
+
if (this.#pendingCloseTimeoutId != null) {
|
|
243
|
+
clearTimeout(this.#pendingCloseTimeoutId);
|
|
244
|
+
}
|
|
245
|
+
this.#pendingCloseTimeoutId = null;
|
|
246
|
+
this.#closeRequested = false;
|
|
247
|
+
const timeoutId = window.setTimeout(() => {
|
|
248
|
+
if (!this.#closeRequested) {
|
|
249
|
+
this.isPopoverVisible.set(true);
|
|
250
|
+
}
|
|
251
|
+
this.#pendingOpenTimeoutId = null;
|
|
252
|
+
}, this.#MOUSE_MOVE_TO_POPOVER_DELAY);
|
|
253
|
+
this.#pendingOpenTimeoutId = timeoutId;
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
onMouseLeave() {
|
|
257
|
+
const isTouchPointerType = this.isTouchPointerType();
|
|
258
|
+
if (!isTouchPointerType) {
|
|
259
|
+
if (!this.isPopoverVisible()) {
|
|
260
|
+
if (this.#pendingOpenTimeoutId != null) {
|
|
261
|
+
clearTimeout(this.#pendingOpenTimeoutId);
|
|
262
|
+
}
|
|
263
|
+
this.#pendingOpenTimeoutId = null;
|
|
264
|
+
this.#closeRequested = true;
|
|
265
|
+
}
|
|
266
|
+
else {
|
|
267
|
+
const timeoutId = window.setTimeout(() => {
|
|
268
|
+
this.isPopoverVisible.set(false);
|
|
269
|
+
this.#closeRequested = true;
|
|
270
|
+
this.#pendingCloseTimeoutId = null;
|
|
271
|
+
}, this.#MOUSE_MOVE_TO_POPOVER_DELAY);
|
|
272
|
+
this.#pendingCloseTimeoutId = timeoutId;
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
onClick() {
|
|
277
|
+
const isTouchPointerType = this.isTouchPointerType();
|
|
278
|
+
if (isTouchPointerType && this.isCollapsed()) {
|
|
279
|
+
this.isPopoverVisible.set(true);
|
|
280
|
+
}
|
|
281
|
+
else {
|
|
282
|
+
if (this.defaultRouterLink) {
|
|
283
|
+
this._router.navigateByUrl(this.defaultRouterLink);
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
}
|
|
151
287
|
onHiding(e) {
|
|
152
|
-
const
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
288
|
+
const isTouchPointerType = this.isTouchPointerType();
|
|
289
|
+
if (!isTouchPointerType) {
|
|
290
|
+
const popoverContent = e.component.content().parentNode;
|
|
291
|
+
const isMouseInsidePopover = popoverContent.matches(':hover');
|
|
292
|
+
e.cancel = isMouseInsidePopover;
|
|
293
|
+
if (isMouseInsidePopover) {
|
|
294
|
+
this.#closeRequested = false;
|
|
295
|
+
popoverContent.addEventListener('mouseleave', () => {
|
|
296
|
+
popoverContent.removeEventListener('mouseleave', () => { });
|
|
297
|
+
e.component.hide();
|
|
298
|
+
});
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
rememberPointer(e) {
|
|
303
|
+
this.lastPointerType.set(e.pointerType ?? 'mouse');
|
|
159
304
|
}
|
|
160
305
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: SdsNavigationGroupComponent, deps: [{ token: i1.Router }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
161
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "17.3.12", type: SdsNavigationGroupComponent, isStandalone: true, selector: "sds-navigation-group", inputs: { navigationGroupNestedRoutes: { classPropertyName: "navigationGroupNestedRoutes", publicName: "navigationGroupNestedRoutes", isSignal: false, isRequired: false, transformFunction: null }, text: { classPropertyName: "text", publicName: "text", isSignal: false, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: false, isRequired: false, transformFunction: null }, defaultRouterLink: { classPropertyName: "defaultRouterLink", publicName: "defaultRouterLink", isSignal: false, isRequired: false, transformFunction: null }, reverse: { classPropertyName: "reverse", publicName: "reverse", isSignal: false, isRequired: false, transformFunction: null }, ignoreQueryParamsInActiveRoute: { classPropertyName: "ignoreQueryParamsInActiveRoute", publicName: "ignoreQueryParamsInActiveRoute", isSignal: false, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: false, isRequired: false, transformFunction: null }, showPopover: { classPropertyName: "showPopover", publicName: "showPopover", isSignal: false, isRequired: false, transformFunction: null }, showPopoverHeader: { classPropertyName: "showPopoverHeader", publicName: "showPopoverHeader", isSignal: false, isRequired: false, transformFunction: null }, lightStyle: { classPropertyName: "lightStyle", publicName: "lightStyle", isSignal: true, isRequired: false, transformFunction: null }, isCollapsed: { classPropertyName: "isCollapsed", publicName: "isCollapsed", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { isCollapsed: "isCollapsedChange" }, queries: [{ propertyName: "routerLinkComponents", predicate: SdsNavigationRouteLinkComponent }], ngImport: i0, template: "<div \r\n #navigationGroup\r\n class=\"sds-navigation-group sds-navigation-item-container d-flex\"\r\n [class.sds-navigation-group-light-style]=\"lightStyle()\"\r\n [class.flex-column-reverse]=\"reverse\"\r\n [class.flex-column]=\"!reverse\"\r\n [class.disabled]=\"disabled\"\r\n [class.active]=\"isGroupActive\"\r\n [class.collapsed]=\"isCollapsed()\"\r\n >\r\n <a \r\n class=\"w-100 sds-navigation-item-content p-2 text-gray-800 sds-fs-93\"\r\n [class.collapsed]=\"isCollapsed()\"\r\n style=\"cursor: pointer\"\r\n [routerLink]=\"[defaultRouterLink]\">\r\n <div class=\"d-flex align-items-center w-100 justify-content-center\">\r\n <div class=\"sds-navigation-icon\" >\r\n <ng-content select=\"[navigationIcon]\"></ng-content>\r\n </div>\r\n\r\n <ng-container *ngIf=\"!isCollapsed()\">\r\n <div class=\"sds-navigation-text user-select-none\">\r\n {{ text }}\r\n </div>\r\n <div class=\"text-right\">\r\n <fa-icon *ngIf=\"!reverse\" [icon]=\"faAngleDownRegular\"></fa-icon>\r\n <fa-icon *ngIf=\"reverse\" [icon]=\"faAngleUpRegular\"></fa-icon>\r\n </div>\r\n </ng-container>\r\n </div>\r\n </a>\r\n\r\n <div \r\n class=\"sub-menu\" \r\n *ngIf=\"!isCollapsed()\">\r\n\r\n <div class=\"sds-navigation-group-items sds-flex-column gap-05\">\r\n <ng-content></ng-content>\r\n </div>\r\n </div>\r\n</div>\r\n\r\n<ng-container *ngIf=\"isCollapsed() || (showPopover && !isGroupActive)\">\r\n <dx-popover\r\n [target]=\"navigationGroup\"\r\n [showEvent]=\"{ name: 'dxhoverstart', delay: 100 }\"\r\n [hideEvent]=\"{ name: 'dxhoverend', delay: 100 }\"\r\n (onHiding)=\"onHiding($event)\"\r\n width=\"15rem\"\r\n [wrapperAttr]=\"{ class: 'sds-navigation-group-popover-wrapper sds-dx-popup-content-padding-2' }\"\r\n [hideOnOutsideClick]=\"true\"\r\n [hideOnParentScroll]=\"true\"\r\n [animation]=\"{}\"\r\n >\r\n\r\n <dxo-position\r\n my=\"top left\"\r\n at=\"top right\"\r\n [of]=\"navigationGroup\"\r\n offset=\"-12 0\"\r\n >\r\n </dxo-position>\r\n\r\n <div *ngIf=\"showPopoverHeader\" class=\"group-header user-select-none\">\r\n {{ text }}\r\n </div>\r\n <div \r\n class=\"sds-navigation-container sds-navigation-popover-container sds-scrollbar sds-scrollbar-thin sds-scrollbar-no-hide\"\r\n >\r\n <div class=\"sds-navigation-group-items\">\r\n <ng-content select=\"[popoverContent]\"></ng-content>\r\n </div>\r\n </div>\r\n </dx-popover>\r\n</ng-container>\r\n", styles: [".gap-05{gap:.125rem!important}.sds-navigation-group.sds-navigation-item-container{border-radius:.5rem;border-left:none!important;padding-top:0!important;padding-bottom:0!important}.sds-navigation-group.sds-navigation-item-container a{padding-top:.6rem!important;padding-bottom:.6rem!important}.sds-navigation-group.sds-navigation-item-container.disabled{pointer-events:none;opacity:.6}.sds-navigation-group.active>a{font-weight:600}.sds-navigation-group.active:not(.collapsed){background-color:transparent!important}.sds-navigation-group .sub-menu{display:grid;grid-template-rows:0fr;transition:grid-template-rows .25s ease-in-out}.sds-navigation-group .sub-menu>div{overflow:hidden;min-height:0}.sds-navigation-group.active .sub-menu{grid-template-rows:1fr}::ng-deep .sds-navigation-group-popover-wrapper.sds-dx-popup-content-padding-0 .dx-popup-content{padding:0rem}::ng-deep .sds-navigation-group-popover-wrapper.sds-dx-popup-content-padding-1 .dx-popup-content{padding:.25rem}::ng-deep .sds-navigation-group-popover-wrapper.sds-dx-popup-content-padding-2 .dx-popup-content{padding:.5rem}::ng-deep .sds-navigation-group-popover-wrapper.sds-dx-popup-content-padding-3 .dx-popup-content{padding:1rem}::ng-deep .sds-navigation-group-popover-wrapper .dx-popover-arrow{display:none}::ng-deep .sds-navigation-group-popover-wrapper .group-header{font-weight:600;padding:.25rem .75rem .5rem .5rem}::ng-deep .sds-navigation-group-popover-wrapper .sds-navigation-container.sds-navigation-popover-container{color:var(--bs-body-color)!important;padding-bottom:.07rem;overflow-y:auto;max-height:45vh}::ng-deep .sds-navigation-group-popover-wrapper .sds-navigation-container.sds-navigation-popover-container .sds-navigation-group-items .active{font-weight:500}::ng-deep .sds-navigation-group-popover-wrapper .sds-navigation-container.sds-navigation-popover-container .sds-navigation-group-items .sds-navigation-icon{display:none}::ng-deep .sds-navigation-group-popover-wrapper .sds-navigation-container.sds-navigation-popover-container .sds-navigation-group-items .sds-navigation-item-container{border-left:none;padding-top:.25rem;padding-bottom:.25rem;border-radius:var(--bs-border-radius);color:var(--bs-body-color)!important}::ng-deep .sds-navigation-group-popover-wrapper .sds-navigation-container.sds-navigation-popover-container .sds-navigation-group-items .sds-navigation-item-container .sds-navigation-item-content{padding-top:.25rem;padding-bottom:.25rem;padding-left:1rem;color:var(--bs-body-color)!important}::ng-deep .sds-navigation-group-popover-wrapper .sds-navigation-container.sds-navigation-popover-container .sds-navigation-group-items .sds-navigation-item-container .sds-navigation-header{color:var(--bs-body-color)!important}\n"], dependencies: [{ kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: FaIconComponent, selector: "fa-icon", inputs: ["icon", "title", "animation", "spin", "pulse", "mask", "styles", "flip", "size", "pull", "border", "inverse", "symbol", "rotate", "fixedWidth", "classes", "transform", "a11yRole"] }, { kind: "ngmodule", type: DxPopoverModule }, { kind: "component", type: i2.DxPopoverComponent, selector: "dx-popover", inputs: ["animation", "closeOnOutsideClick", "container", "contentTemplate", "deferRendering", "disabled", "enableBodyScroll", "height", "hideEvent", "hideOnOutsideClick", "hideOnParentScroll", "hint", "hoverStateEnabled", "maxHeight", "maxWidth", "minHeight", "minWidth", "position", "rtlEnabled", "shading", "shadingColor", "showCloseButton", "showEvent", "showTitle", "target", "title", "titleTemplate", "toolbarItems", "visible", "width", "wrapperAttr"], outputs: ["onContentReady", "onDisposing", "onHidden", "onHiding", "onInitialized", "onOptionChanged", "onShowing", "onShown", "onTitleRendered", "animationChange", "closeOnOutsideClickChange", "containerChange", "contentTemplateChange", "deferRenderingChange", "disabledChange", "enableBodyScrollChange", "heightChange", "hideEventChange", "hideOnOutsideClickChange", "hideOnParentScrollChange", "hintChange", "hoverStateEnabledChange", "maxHeightChange", "maxWidthChange", "minHeightChange", "minWidthChange", "positionChange", "rtlEnabledChange", "shadingChange", "shadingColorChange", "showCloseButtonChange", "showEventChange", "showTitleChange", "targetChange", "titleChange", "titleTemplateChange", "toolbarItemsChange", "visibleChange", "widthChange", "wrapperAttrChange"] }, { kind: "component", type: i3.DxoPositionComponent, selector: "dxo-position", inputs: ["at", "boundary", "boundaryOffset", "collision", "my", "of", "offset"] }, { kind: "ngmodule", type: DxoPositionModule }] }); }
|
|
306
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "17.3.12", type: SdsNavigationGroupComponent, isStandalone: true, selector: "sds-navigation-group", inputs: { navigationGroupNestedRoutes: { classPropertyName: "navigationGroupNestedRoutes", publicName: "navigationGroupNestedRoutes", isSignal: false, isRequired: false, transformFunction: null }, text: { classPropertyName: "text", publicName: "text", isSignal: false, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: false, isRequired: false, transformFunction: null }, defaultRouterLink: { classPropertyName: "defaultRouterLink", publicName: "defaultRouterLink", isSignal: false, isRequired: false, transformFunction: null }, reverse: { classPropertyName: "reverse", publicName: "reverse", isSignal: false, isRequired: false, transformFunction: null }, ignoreQueryParamsInActiveRoute: { classPropertyName: "ignoreQueryParamsInActiveRoute", publicName: "ignoreQueryParamsInActiveRoute", isSignal: false, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: false, isRequired: false, transformFunction: null }, showPopover: { classPropertyName: "showPopover", publicName: "showPopover", isSignal: false, isRequired: false, transformFunction: null }, showPopoverHeader: { classPropertyName: "showPopoverHeader", publicName: "showPopoverHeader", isSignal: false, isRequired: false, transformFunction: null }, lightStyle: { classPropertyName: "lightStyle", publicName: "lightStyle", isSignal: true, isRequired: false, transformFunction: null }, activeRoutePattern: { classPropertyName: "activeRoutePattern", publicName: "activeRoutePattern", isSignal: true, isRequired: false, transformFunction: null }, isCollapsed: { classPropertyName: "isCollapsed", publicName: "isCollapsed", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { isCollapsed: "isCollapsedChange" }, queries: [{ propertyName: "routerLinkComponents", predicate: SdsNavigationRouteLinkComponent }], usesOnChanges: true, ngImport: i0, template: "<div \n #navigationGroup\n class=\"sds-navigation-group sds-navigation-item-container d-flex\"\n [class.sds-navigation-group-light-style]=\"lightStyle()\"\n [class.flex-column-reverse]=\"reverse\"\n [class.flex-column]=\"!reverse\"\n [class.disabled]=\"disabled\"\n [class.active]=\"isGroupActive\"\n [class.collapsed]=\"isCollapsed()\"\n [class.popoverVisible]=\"isPopoverVisible()\"\n >\n <a \n class=\"w-100 sds-navigation-item-content p-2 text-gray-800 sds-fs-93\"\n [class.collapsed]=\"isCollapsed()\"\n style=\"cursor: pointer\"\n [routerLink]=\"(isCollapsed() && isTouchPointerType()) ? undefined : [defaultRouterLink]\"\n (pointerdown)=\"rememberPointer($event)\"\n\n (mouseenter)=\"onMouseEnter()\"\n (mouseleave)=\"onMouseLeave()\"\n (click)=\"onClick()\"\n >\n <div class=\"d-flex align-items-center w-100 justify-content-center\">\n <div class=\"sds-navigation-icon\" >\n <ng-content select=\"[navigationIcon]\"></ng-content>\n </div>\n\n <ng-container *ngIf=\"!isCollapsed()\">\n <div class=\"sds-navigation-text user-select-none\">\n {{ text }}\n </div>\n <div class=\"text-right group-dropdown\">\n <fa-icon *ngIf=\"!reverse\" [icon]=\"faAngleDownRegular\"></fa-icon>\n <fa-icon *ngIf=\"reverse\" [icon]=\"faAngleUpRegular\"></fa-icon>\n </div>\n </ng-container>\n </div>\n </a>\n\n <div \n class=\"sub-menu\" \n *ngIf=\"!isCollapsed()\">\n\n <div class=\"sds-navigation-group-items sds-flex-column gap-05\">\n <ng-content></ng-content>\n </div>\n </div>\n</div>\n\n<ng-container *ngIf=\"isCollapsed() || (showPopover && !isGroupActive)\">\n <dx-popover\n [target]=\"navigationGroup\"\n \n \n (onHiding)=\"onHiding($event)\"\n width=\"15rem\"\n [wrapperAttr]=\"{ class: 'sds-navigation-group-popover-wrapper sds-dx-popup-content-padding-2', style: 'border-left: none'}\"\n [hideOnOutsideClick]=\"true\"\n [hideOnParentScroll]=\"true\"\n [animation]=\"{}\"\n [(visible)]=\"isPopoverVisible\"\n >\n\n <dxo-position\n my=\"top left\"\n at=\"top right\"\n [of]=\"navigationGroup\"\n offset=\"-10 -5\"\n >\n </dxo-position>\n\n <div *ngIf=\"showPopoverHeader && isCollapsed()\" class=\"group-header user-select-none\">\n {{ text }}\n </div>\n <div \n class=\"sds-navigation-container sds-navigation-popover-container sds-scrollbar sds-scrollbar-thin sds-scrollbar-no-hide\"\n >\n <div class=\"sds-navigation-group-items\">\n <ng-content select=\"[popoverContent]\"></ng-content>\n </div>\n </div>\n </dx-popover>\n</ng-container>\n", styles: [".gap-05{gap:.125rem!important}.sds-navigation-group.sds-navigation-item-container{border-radius:.266rem;border-left:none!important;padding-top:0!important;padding-bottom:0!important}.sds-navigation-group.sds-navigation-item-container a{padding-top:.6rem!important;padding-bottom:.6rem!important}.sds-navigation-group.sds-navigation-item-container.disabled{pointer-events:none;opacity:.6}.sds-navigation-group.active{background-color:var(--sds-navigation-active-item)!important}.sds-navigation-group.active>a{font-weight:600}.sds-navigation-group.active:not(.collapsed){background-color:transparent!important}.sds-navigation-group .group-dropdown{transition:transform .2s ease-out}.sds-navigation-group.popoverVisible:not(.active){background-color:var(--bs-gray-200)}.sds-navigation-group.popoverVisible:not(.active) .group-dropdown{transform:rotate(-90deg)}.sds-navigation-group .sub-menu{display:grid;grid-template-rows:0fr;transition:grid-template-rows .25s ease-out}.sds-navigation-group .sub-menu>div{overflow:hidden;min-height:0}.sds-navigation-group.active .sub-menu{grid-template-rows:1fr}::ng-deep .sds-navigation-group-popover-wrapper{--sds-navigation-active-item: oklch(.6 .2 var(--sds-brand-hue) / .12)}::ng-deep .sds-navigation-group-popover-wrapper.sds-dx-popup-content-padding-0 .dx-popup-content{padding:0rem}::ng-deep .sds-navigation-group-popover-wrapper.sds-dx-popup-content-padding-1 .dx-popup-content{padding:.25rem}::ng-deep .sds-navigation-group-popover-wrapper.sds-dx-popup-content-padding-2 .dx-popup-content{padding:.5rem}::ng-deep .sds-navigation-group-popover-wrapper.sds-dx-popup-content-padding-3 .dx-popup-content{padding:1rem}::ng-deep .sds-navigation-group-popover-wrapper .dx-popover-arrow{display:none}::ng-deep .sds-navigation-group-popover-wrapper .group-header{font-weight:600;padding:.25rem .75rem .5rem .5rem}::ng-deep .sds-navigation-group-popover-wrapper .sds-navigation-container.sds-navigation-popover-container{color:var(--bs-body-color)!important;padding-bottom:.07rem;overflow-y:auto;max-height:45vh}::ng-deep .sds-navigation-group-popover-wrapper .sds-navigation-container.sds-navigation-popover-container .sds-navigation-group-items .active{font-weight:500}::ng-deep .sds-navigation-group-popover-wrapper .sds-navigation-container.sds-navigation-popover-container .sds-navigation-group-items .sds-navigation-icon{display:none}::ng-deep .sds-navigation-group-popover-wrapper .sds-navigation-container.sds-navigation-popover-container .sds-navigation-group-items .sds-navigation-item-container{border-left:none;padding-top:.25rem;padding-bottom:.25rem;border-radius:var(--bs-border-radius);color:var(--bs-body-color)!important}::ng-deep .sds-navigation-group-popover-wrapper .sds-navigation-container.sds-navigation-popover-container .sds-navigation-group-items .sds-navigation-item-container .sds-navigation-item-content{padding-top:.25rem;padding-bottom:.25rem;padding-left:1rem;color:var(--bs-body-color)!important}::ng-deep .sds-navigation-group-popover-wrapper .sds-navigation-container.sds-navigation-popover-container .sds-navigation-group-items .sds-navigation-item-container .sds-navigation-header{color:var(--bs-body-color)!important}\n"], dependencies: [{ kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: FaIconComponent, selector: "fa-icon", inputs: ["icon", "title", "animation", "spin", "pulse", "mask", "styles", "flip", "size", "pull", "border", "inverse", "symbol", "rotate", "fixedWidth", "classes", "transform", "a11yRole"] }, { kind: "ngmodule", type: DxPopoverModule }, { kind: "component", type: i2.DxPopoverComponent, selector: "dx-popover", inputs: ["animation", "closeOnOutsideClick", "container", "contentTemplate", "deferRendering", "disabled", "enableBodyScroll", "height", "hideEvent", "hideOnOutsideClick", "hideOnParentScroll", "hint", "hoverStateEnabled", "maxHeight", "maxWidth", "minHeight", "minWidth", "position", "rtlEnabled", "shading", "shadingColor", "showCloseButton", "showEvent", "showTitle", "target", "title", "titleTemplate", "toolbarItems", "visible", "width", "wrapperAttr"], outputs: ["onContentReady", "onDisposing", "onHidden", "onHiding", "onInitialized", "onOptionChanged", "onShowing", "onShown", "onTitleRendered", "animationChange", "closeOnOutsideClickChange", "containerChange", "contentTemplateChange", "deferRenderingChange", "disabledChange", "enableBodyScrollChange", "heightChange", "hideEventChange", "hideOnOutsideClickChange", "hideOnParentScrollChange", "hintChange", "hoverStateEnabledChange", "maxHeightChange", "maxWidthChange", "minHeightChange", "minWidthChange", "positionChange", "rtlEnabledChange", "shadingChange", "shadingColorChange", "showCloseButtonChange", "showEventChange", "showTitleChange", "targetChange", "titleChange", "titleTemplateChange", "toolbarItemsChange", "visibleChange", "widthChange", "wrapperAttrChange"] }, { kind: "component", type: i3.DxoPositionComponent, selector: "dxo-position", inputs: ["at", "boundary", "boundaryOffset", "collision", "my", "of", "offset"] }, { kind: "ngmodule", type: DxoPositionModule }] }); }
|
|
162
307
|
}
|
|
163
308
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: SdsNavigationGroupComponent, decorators: [{
|
|
164
309
|
type: Component,
|
|
@@ -167,8 +312,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImpo
|
|
|
167
312
|
NgIf,
|
|
168
313
|
FaIconComponent,
|
|
169
314
|
DxPopoverModule,
|
|
170
|
-
DxoPositionModule
|
|
171
|
-
], template: "<div \
|
|
315
|
+
DxoPositionModule
|
|
316
|
+
], template: "<div \n #navigationGroup\n class=\"sds-navigation-group sds-navigation-item-container d-flex\"\n [class.sds-navigation-group-light-style]=\"lightStyle()\"\n [class.flex-column-reverse]=\"reverse\"\n [class.flex-column]=\"!reverse\"\n [class.disabled]=\"disabled\"\n [class.active]=\"isGroupActive\"\n [class.collapsed]=\"isCollapsed()\"\n [class.popoverVisible]=\"isPopoverVisible()\"\n >\n <a \n class=\"w-100 sds-navigation-item-content p-2 text-gray-800 sds-fs-93\"\n [class.collapsed]=\"isCollapsed()\"\n style=\"cursor: pointer\"\n [routerLink]=\"(isCollapsed() && isTouchPointerType()) ? undefined : [defaultRouterLink]\"\n (pointerdown)=\"rememberPointer($event)\"\n\n (mouseenter)=\"onMouseEnter()\"\n (mouseleave)=\"onMouseLeave()\"\n (click)=\"onClick()\"\n >\n <div class=\"d-flex align-items-center w-100 justify-content-center\">\n <div class=\"sds-navigation-icon\" >\n <ng-content select=\"[navigationIcon]\"></ng-content>\n </div>\n\n <ng-container *ngIf=\"!isCollapsed()\">\n <div class=\"sds-navigation-text user-select-none\">\n {{ text }}\n </div>\n <div class=\"text-right group-dropdown\">\n <fa-icon *ngIf=\"!reverse\" [icon]=\"faAngleDownRegular\"></fa-icon>\n <fa-icon *ngIf=\"reverse\" [icon]=\"faAngleUpRegular\"></fa-icon>\n </div>\n </ng-container>\n </div>\n </a>\n\n <div \n class=\"sub-menu\" \n *ngIf=\"!isCollapsed()\">\n\n <div class=\"sds-navigation-group-items sds-flex-column gap-05\">\n <ng-content></ng-content>\n </div>\n </div>\n</div>\n\n<ng-container *ngIf=\"isCollapsed() || (showPopover && !isGroupActive)\">\n <dx-popover\n [target]=\"navigationGroup\"\n \n \n (onHiding)=\"onHiding($event)\"\n width=\"15rem\"\n [wrapperAttr]=\"{ class: 'sds-navigation-group-popover-wrapper sds-dx-popup-content-padding-2', style: 'border-left: none'}\"\n [hideOnOutsideClick]=\"true\"\n [hideOnParentScroll]=\"true\"\n [animation]=\"{}\"\n [(visible)]=\"isPopoverVisible\"\n >\n\n <dxo-position\n my=\"top left\"\n at=\"top right\"\n [of]=\"navigationGroup\"\n offset=\"-10 -5\"\n >\n </dxo-position>\n\n <div *ngIf=\"showPopoverHeader && isCollapsed()\" class=\"group-header user-select-none\">\n {{ text }}\n </div>\n <div \n class=\"sds-navigation-container sds-navigation-popover-container sds-scrollbar sds-scrollbar-thin sds-scrollbar-no-hide\"\n >\n <div class=\"sds-navigation-group-items\">\n <ng-content select=\"[popoverContent]\"></ng-content>\n </div>\n </div>\n </dx-popover>\n</ng-container>\n", styles: [".gap-05{gap:.125rem!important}.sds-navigation-group.sds-navigation-item-container{border-radius:.266rem;border-left:none!important;padding-top:0!important;padding-bottom:0!important}.sds-navigation-group.sds-navigation-item-container a{padding-top:.6rem!important;padding-bottom:.6rem!important}.sds-navigation-group.sds-navigation-item-container.disabled{pointer-events:none;opacity:.6}.sds-navigation-group.active{background-color:var(--sds-navigation-active-item)!important}.sds-navigation-group.active>a{font-weight:600}.sds-navigation-group.active:not(.collapsed){background-color:transparent!important}.sds-navigation-group .group-dropdown{transition:transform .2s ease-out}.sds-navigation-group.popoverVisible:not(.active){background-color:var(--bs-gray-200)}.sds-navigation-group.popoverVisible:not(.active) .group-dropdown{transform:rotate(-90deg)}.sds-navigation-group .sub-menu{display:grid;grid-template-rows:0fr;transition:grid-template-rows .25s ease-out}.sds-navigation-group .sub-menu>div{overflow:hidden;min-height:0}.sds-navigation-group.active .sub-menu{grid-template-rows:1fr}::ng-deep .sds-navigation-group-popover-wrapper{--sds-navigation-active-item: oklch(.6 .2 var(--sds-brand-hue) / .12)}::ng-deep .sds-navigation-group-popover-wrapper.sds-dx-popup-content-padding-0 .dx-popup-content{padding:0rem}::ng-deep .sds-navigation-group-popover-wrapper.sds-dx-popup-content-padding-1 .dx-popup-content{padding:.25rem}::ng-deep .sds-navigation-group-popover-wrapper.sds-dx-popup-content-padding-2 .dx-popup-content{padding:.5rem}::ng-deep .sds-navigation-group-popover-wrapper.sds-dx-popup-content-padding-3 .dx-popup-content{padding:1rem}::ng-deep .sds-navigation-group-popover-wrapper .dx-popover-arrow{display:none}::ng-deep .sds-navigation-group-popover-wrapper .group-header{font-weight:600;padding:.25rem .75rem .5rem .5rem}::ng-deep .sds-navigation-group-popover-wrapper .sds-navigation-container.sds-navigation-popover-container{color:var(--bs-body-color)!important;padding-bottom:.07rem;overflow-y:auto;max-height:45vh}::ng-deep .sds-navigation-group-popover-wrapper .sds-navigation-container.sds-navigation-popover-container .sds-navigation-group-items .active{font-weight:500}::ng-deep .sds-navigation-group-popover-wrapper .sds-navigation-container.sds-navigation-popover-container .sds-navigation-group-items .sds-navigation-icon{display:none}::ng-deep .sds-navigation-group-popover-wrapper .sds-navigation-container.sds-navigation-popover-container .sds-navigation-group-items .sds-navigation-item-container{border-left:none;padding-top:.25rem;padding-bottom:.25rem;border-radius:var(--bs-border-radius);color:var(--bs-body-color)!important}::ng-deep .sds-navigation-group-popover-wrapper .sds-navigation-container.sds-navigation-popover-container .sds-navigation-group-items .sds-navigation-item-container .sds-navigation-item-content{padding-top:.25rem;padding-bottom:.25rem;padding-left:1rem;color:var(--bs-body-color)!important}::ng-deep .sds-navigation-group-popover-wrapper .sds-navigation-container.sds-navigation-popover-container .sds-navigation-group-items .sds-navigation-item-container .sds-navigation-header{color:var(--bs-body-color)!important}\n"] }]
|
|
172
317
|
}], ctorParameters: () => [{ type: i1.Router }], propDecorators: { navigationGroupNestedRoutes: [{
|
|
173
318
|
type: Input
|
|
174
319
|
}], text: [{
|
|
@@ -198,11 +343,11 @@ class SdsNavigationSeparatorComponent {
|
|
|
198
343
|
}
|
|
199
344
|
ngOnInit() { }
|
|
200
345
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: SdsNavigationSeparatorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
201
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "17.3.12", type: SdsNavigationSeparatorComponent, isStandalone: true, selector: "sds-navigation-separator", inputs: { isCollapsed: { classPropertyName: "isCollapsed", publicName: "isCollapsed", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { isCollapsed: "isCollapsedChange" }, ngImport: i0, template: "<div \
|
|
346
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "17.3.12", type: SdsNavigationSeparatorComponent, isStandalone: true, selector: "sds-navigation-separator", inputs: { isCollapsed: { classPropertyName: "isCollapsed", publicName: "isCollapsed", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { isCollapsed: "isCollapsedChange" }, ngImport: i0, template: "<div \n class=\"sds-navigation-separator nav-separator\">\n</div>\n", styles: [""] }); }
|
|
202
347
|
}
|
|
203
348
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: SdsNavigationSeparatorComponent, decorators: [{
|
|
204
349
|
type: Component,
|
|
205
|
-
args: [{ selector: 'sds-navigation-separator', standalone: true, template: "<div \
|
|
350
|
+
args: [{ selector: 'sds-navigation-separator', standalone: true, template: "<div \n class=\"sds-navigation-separator nav-separator\">\n</div>\n" }]
|
|
206
351
|
}], ctorParameters: () => [] });
|
|
207
352
|
|
|
208
353
|
class SdsNavigationHeaderComponent {
|
|
@@ -212,13 +357,13 @@ class SdsNavigationHeaderComponent {
|
|
|
212
357
|
}
|
|
213
358
|
ngOnInit() { }
|
|
214
359
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: SdsNavigationHeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
215
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "17.3.12", type: SdsNavigationHeaderComponent, isStandalone: true, selector: "sds-navigation-header", inputs: { text: { classPropertyName: "text", publicName: "text", isSignal: false, isRequired: false, transformFunction: null }, isCollapsed: { classPropertyName: "isCollapsed", publicName: "isCollapsed", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { isCollapsed: "isCollapsedChange" }, ngImport: i0, template: "\
|
|
360
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "17.3.12", type: SdsNavigationHeaderComponent, isStandalone: true, selector: "sds-navigation-header", inputs: { text: { classPropertyName: "text", publicName: "text", isSignal: false, isRequired: false, transformFunction: null }, isCollapsed: { classPropertyName: "isCollapsed", publicName: "isCollapsed", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { isCollapsed: "isCollapsedChange" }, ngImport: i0, template: "\n<div class=\"sds-navigation-header text-gray-800\">\n <span *ngIf=\"!isCollapsed()\">{{ text }}</span>\n</div>\n", styles: [""], dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] }); }
|
|
216
361
|
}
|
|
217
362
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: SdsNavigationHeaderComponent, decorators: [{
|
|
218
363
|
type: Component,
|
|
219
364
|
args: [{ selector: 'sds-navigation-header', standalone: true, imports: [
|
|
220
365
|
NgIf
|
|
221
|
-
], template: "\
|
|
366
|
+
], template: "\n<div class=\"sds-navigation-header text-gray-800\">\n <span *ngIf=\"!isCollapsed()\">{{ text }}</span>\n</div>\n" }]
|
|
222
367
|
}], ctorParameters: () => [], propDecorators: { text: [{
|
|
223
368
|
type: Input
|
|
224
369
|
}] } });
|
|
@@ -239,11 +384,11 @@ class SdsNavigationExternalLinkComponent {
|
|
|
239
384
|
window.open(this.link, this.tabName);
|
|
240
385
|
}
|
|
241
386
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: SdsNavigationExternalLinkComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
242
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "17.3.12", type: SdsNavigationExternalLinkComponent, isStandalone: true, selector: "sds-navigation-external-link", inputs: { link: { classPropertyName: "link", publicName: "link", isSignal: false, isRequired: false, transformFunction: null }, text: { classPropertyName: "text", publicName: "text", isSignal: false, isRequired: false, transformFunction: null }, tabName: { classPropertyName: "tabName", publicName: "tabName", isSignal: false, isRequired: false, transformFunction: null }, externalLinkHint: { classPropertyName: "externalLinkHint", publicName: "externalLinkHint", isSignal: false, isRequired: false, transformFunction: null }, showExternalLinkIcon: { classPropertyName: "showExternalLinkIcon", publicName: "showExternalLinkIcon", isSignal: false, isRequired: false, transformFunction: null }, isCollapsed: { classPropertyName: "isCollapsed", publicName: "isCollapsed", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { isCollapsed: "isCollapsedChange" }, ngImport: i0, template: "<div \
|
|
387
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "17.3.12", type: SdsNavigationExternalLinkComponent, isStandalone: true, selector: "sds-navigation-external-link", inputs: { link: { classPropertyName: "link", publicName: "link", isSignal: false, isRequired: false, transformFunction: null }, text: { classPropertyName: "text", publicName: "text", isSignal: false, isRequired: false, transformFunction: null }, tabName: { classPropertyName: "tabName", publicName: "tabName", isSignal: false, isRequired: false, transformFunction: null }, externalLinkHint: { classPropertyName: "externalLinkHint", publicName: "externalLinkHint", isSignal: false, isRequired: false, transformFunction: null }, showExternalLinkIcon: { classPropertyName: "showExternalLinkIcon", publicName: "showExternalLinkIcon", isSignal: false, isRequired: false, transformFunction: null }, isCollapsed: { classPropertyName: "isCollapsed", publicName: "isCollapsed", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { isCollapsed: "isCollapsedChange" }, ngImport: i0, template: "<div \n class=\"sds-navigation-external-link sds-navigation-item-container\"\n [title]=\"isCollapsed() ? text : ''\"\n >\n <a class=\"w-100 sds-navigation-item-content pe-2 text-gray-800 sds-fs-93\" (click)=\"openLink()\" >\n <div class=\"d-flex align-items-center justify-content-center position-relative\">\n <div class=\"sds-navigation-icon\" >\n <ng-content select=\"[navigationIcon]\"></ng-content>\n </div>\n\n <ng-container *ngIf=\"!isCollapsed()\">\n \n <div class=\"sds-navigation-text\">\n <span>{{ text }}</span>\n </div>\n\n <div \n class=\"sds-navigation-external-link-info-container\">\n <fa-icon \n class=\"sds-navigation-external-link-info-icon\"\n *ngIf=\"showExternalLinkIcon\"\n\n [icon]=\"externalLinkIcon\"\n [size]=\"'xs'\"\n [title]=\"externalLinkHint\"\n >\n </fa-icon>\n </div> \n </ng-container>\n \n <ng-content></ng-content>\n\n </div>\n </a>\n</div>", styles: [".sds-navigation-external-link:hover{background-color:#eff1f3;border-left-color:#eff1f3}.sds-navigation-external-link{border-radius:.266rem;padding:0!important;border-left:none!important}.sds-navigation-external-link a{padding-top:.5rem!important;padding-bottom:.5rem!important}\n"], dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: FaIconComponent, selector: "fa-icon", inputs: ["icon", "title", "animation", "spin", "pulse", "mask", "styles", "flip", "size", "pull", "border", "inverse", "symbol", "rotate", "fixedWidth", "classes", "transform", "a11yRole"] }] }); }
|
|
243
388
|
}
|
|
244
389
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: SdsNavigationExternalLinkComponent, decorators: [{
|
|
245
390
|
type: Component,
|
|
246
|
-
args: [{ selector: 'sds-navigation-external-link', standalone: true, imports: [NgIf, FaIconComponent], template: "<div \
|
|
391
|
+
args: [{ selector: 'sds-navigation-external-link', standalone: true, imports: [NgIf, FaIconComponent], template: "<div \n class=\"sds-navigation-external-link sds-navigation-item-container\"\n [title]=\"isCollapsed() ? text : ''\"\n >\n <a class=\"w-100 sds-navigation-item-content pe-2 text-gray-800 sds-fs-93\" (click)=\"openLink()\" >\n <div class=\"d-flex align-items-center justify-content-center position-relative\">\n <div class=\"sds-navigation-icon\" >\n <ng-content select=\"[navigationIcon]\"></ng-content>\n </div>\n\n <ng-container *ngIf=\"!isCollapsed()\">\n \n <div class=\"sds-navigation-text\">\n <span>{{ text }}</span>\n </div>\n\n <div \n class=\"sds-navigation-external-link-info-container\">\n <fa-icon \n class=\"sds-navigation-external-link-info-icon\"\n *ngIf=\"showExternalLinkIcon\"\n\n [icon]=\"externalLinkIcon\"\n [size]=\"'xs'\"\n [title]=\"externalLinkHint\"\n >\n </fa-icon>\n </div> \n </ng-container>\n \n <ng-content></ng-content>\n\n </div>\n </a>\n</div>", styles: [".sds-navigation-external-link:hover{background-color:#eff1f3;border-left-color:#eff1f3}.sds-navigation-external-link{border-radius:.266rem;padding:0!important;border-left:none!important}.sds-navigation-external-link a{padding-top:.5rem!important;padding-bottom:.5rem!important}\n"] }]
|
|
247
392
|
}], ctorParameters: () => [], propDecorators: { link: [{
|
|
248
393
|
type: Input
|
|
249
394
|
}], text: [{
|
|
@@ -261,13 +406,13 @@ class SdsNavigationCollapsibleFrameComponent {
|
|
|
261
406
|
this.isCollapsed = model(false);
|
|
262
407
|
}
|
|
263
408
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: SdsNavigationCollapsibleFrameComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
264
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "17.3.12", type: SdsNavigationCollapsibleFrameComponent, isStandalone: true, selector: "sds-navigation-collapsible-frame", inputs: { isCollapsed: { classPropertyName: "isCollapsed", publicName: "isCollapsed", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { isCollapsed: "isCollapsedChange" }, ngImport: i0, template: "<ng-container *ngIf=\"!isCollapsed()\">\
|
|
409
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "17.3.12", type: SdsNavigationCollapsibleFrameComponent, isStandalone: true, selector: "sds-navigation-collapsible-frame", inputs: { isCollapsed: { classPropertyName: "isCollapsed", publicName: "isCollapsed", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { isCollapsed: "isCollapsedChange" }, ngImport: i0, template: "<ng-container *ngIf=\"!isCollapsed()\">\n <ng-content></ng-content>\n</ng-container>\n\n<ng-container *ngIf=\"isCollapsed()\">\n <ng-content select=\"[collapsed]\"></ng-content>\n</ng-container>\n\n", styles: [""], dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] }); }
|
|
265
410
|
}
|
|
266
411
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: SdsNavigationCollapsibleFrameComponent, decorators: [{
|
|
267
412
|
type: Component,
|
|
268
413
|
args: [{ selector: 'sds-navigation-collapsible-frame', standalone: true, imports: [
|
|
269
414
|
NgIf
|
|
270
|
-
], template: "<ng-container *ngIf=\"!isCollapsed()\">\
|
|
415
|
+
], template: "<ng-container *ngIf=\"!isCollapsed()\">\n <ng-content></ng-content>\n</ng-container>\n\n<ng-container *ngIf=\"isCollapsed()\">\n <ng-content select=\"[collapsed]\"></ng-content>\n</ng-container>\n\n" }]
|
|
271
416
|
}] });
|
|
272
417
|
|
|
273
418
|
class SdsUserProfileActionButtonComponent {
|
|
@@ -279,14 +424,14 @@ class SdsUserProfileActionButtonComponent {
|
|
|
279
424
|
this.actionClick.emit();
|
|
280
425
|
}
|
|
281
426
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: SdsUserProfileActionButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
282
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: SdsUserProfileActionButtonComponent, isStandalone: true, selector: "sds-user-profile-action-button", inputs: { text: "text", icon: "icon" }, outputs: { actionClick: "actionClick" }, ngImport: i0, template: "<a \
|
|
427
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: SdsUserProfileActionButtonComponent, isStandalone: true, selector: "sds-user-profile-action-button", inputs: { text: "text", icon: "icon" }, outputs: { actionClick: "actionClick" }, ngImport: i0, template: "<a \n class=\"\n d-block \n text-black \n sds-navigation-user-profile-action-button \n sds-hoverable-150 \n sds-fs-93 \n sds-cursor-pointer\n \"\n (click)=\"onActionClick()\" \n>\n <fa-icon\n *ngIf=\"icon\"\n class=\"me-2\"\n [fixedWidth]=\"true\"\n [size]=\"'sm'\"\n [icon]=\"icon\">\n </fa-icon>\n\n <span>{{text}}</span>\n</a>", styles: ["a{-webkit-user-select:none;user-select:none;text-decoration:none;padding:.5rem;width:100%;border-radius:4px}\n"], dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: FontAwesomeModule }, { kind: "component", type: i1$1.FaIconComponent, selector: "fa-icon", inputs: ["icon", "title", "animation", "spin", "pulse", "mask", "styles", "flip", "size", "pull", "border", "inverse", "symbol", "rotate", "fixedWidth", "classes", "transform", "a11yRole"] }] }); }
|
|
283
428
|
}
|
|
284
429
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: SdsUserProfileActionButtonComponent, decorators: [{
|
|
285
430
|
type: Component,
|
|
286
431
|
args: [{ selector: 'sds-user-profile-action-button', standalone: true, imports: [
|
|
287
432
|
NgIf,
|
|
288
433
|
FontAwesomeModule
|
|
289
|
-
], template: "<a \
|
|
434
|
+
], template: "<a \n class=\"\n d-block \n text-black \n sds-navigation-user-profile-action-button \n sds-hoverable-150 \n sds-fs-93 \n sds-cursor-pointer\n \"\n (click)=\"onActionClick()\" \n>\n <fa-icon\n *ngIf=\"icon\"\n class=\"me-2\"\n [fixedWidth]=\"true\"\n [size]=\"'sm'\"\n [icon]=\"icon\">\n </fa-icon>\n\n <span>{{text}}</span>\n</a>", styles: ["a{-webkit-user-select:none;user-select:none;text-decoration:none;padding:.5rem;width:100%;border-radius:4px}\n"] }]
|
|
290
435
|
}], propDecorators: { text: [{
|
|
291
436
|
type: Input
|
|
292
437
|
}], icon: [{
|
|
@@ -356,7 +501,7 @@ class SdsNavigationUserProfileComponent {
|
|
|
356
501
|
this.notificationBadgeClick.emit();
|
|
357
502
|
}
|
|
358
503
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: SdsNavigationUserProfileComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
359
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.3.12", type: SdsNavigationUserProfileComponent, isStandalone: true, selector: "sds-navigation-user-profile", inputs: { profile: { classPropertyName: "profile", publicName: "profile", isSignal: false, isRequired: false, transformFunction: null }, profileInfo: { classPropertyName: "profileInfo", publicName: "profileInfo", isSignal: false, isRequired: false, transformFunction: null }, showSignOut: { classPropertyName: "showSignOut", publicName: "showSignOut", isSignal: false, isRequired: false, transformFunction: null }, showProfile: { classPropertyName: "showProfile", publicName: "showProfile", isSignal: false, isRequired: false, transformFunction: null }, signOutText: { classPropertyName: "signOutText", publicName: "signOutText", isSignal: false, isRequired: false, transformFunction: null }, profileText: { classPropertyName: "profileText", publicName: "profileText", isSignal: false, isRequired: false, transformFunction: null }, showNotificationBadge: { classPropertyName: "showNotificationBadge", publicName: "showNotificationBadge", isSignal: false, isRequired: false, transformFunction: null }, newNotificationsText: { classPropertyName: "newNotificationsText", publicName: "newNotificationsText", isSignal: false, isRequired: false, transformFunction: null }, showOptions: { classPropertyName: "showOptions", publicName: "showOptions", isSignal: false, isRequired: false, transformFunction: null }, isCollapsed: { classPropertyName: "isCollapsed", publicName: "isCollapsed", isSignal: true, isRequired: false, transformFunction: null }, sideBarInstanceName: { classPropertyName: "sideBarInstanceName", publicName: "sideBarInstanceName", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { profileClick: "profileClick", signOutClick: "signOutClick", notificationBadgeClick: "notificationBadgeClick", showOptionsChange: "showOptionsChange", isCollapsed: "isCollapsedChange" }, usesOnChanges: true, ngImport: i0, template: "<div\
|
|
504
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.3.12", type: SdsNavigationUserProfileComponent, isStandalone: true, selector: "sds-navigation-user-profile", inputs: { profile: { classPropertyName: "profile", publicName: "profile", isSignal: false, isRequired: false, transformFunction: null }, profileInfo: { classPropertyName: "profileInfo", publicName: "profileInfo", isSignal: false, isRequired: false, transformFunction: null }, showSignOut: { classPropertyName: "showSignOut", publicName: "showSignOut", isSignal: false, isRequired: false, transformFunction: null }, showProfile: { classPropertyName: "showProfile", publicName: "showProfile", isSignal: false, isRequired: false, transformFunction: null }, signOutText: { classPropertyName: "signOutText", publicName: "signOutText", isSignal: false, isRequired: false, transformFunction: null }, profileText: { classPropertyName: "profileText", publicName: "profileText", isSignal: false, isRequired: false, transformFunction: null }, showNotificationBadge: { classPropertyName: "showNotificationBadge", publicName: "showNotificationBadge", isSignal: false, isRequired: false, transformFunction: null }, newNotificationsText: { classPropertyName: "newNotificationsText", publicName: "newNotificationsText", isSignal: false, isRequired: false, transformFunction: null }, showOptions: { classPropertyName: "showOptions", publicName: "showOptions", isSignal: false, isRequired: false, transformFunction: null }, isCollapsed: { classPropertyName: "isCollapsed", publicName: "isCollapsed", isSignal: true, isRequired: false, transformFunction: null }, sideBarInstanceName: { classPropertyName: "sideBarInstanceName", publicName: "sideBarInstanceName", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { profileClick: "profileClick", signOutClick: "signOutClick", notificationBadgeClick: "notificationBadgeClick", showOptionsChange: "showOptionsChange", isCollapsed: "isCollapsedChange" }, usesOnChanges: true, ngImport: i0, template: "<div\n class=\"\n d-flex\n flex-row\n align-items-center\n gap-2\n sds-navigation-user-profile-container\n user-select-none\n mb-1 ms-1 me-1 mt-2\n pt-1 pb-1 ps-2\n sds-hoverable\n sds-rounded-2\n \"\n (click)=\"toggleOptions($event)\"\n>\n <div \n #popoverTarget\n class=\"\n position-relative\n\n \">\n <sds-avatar\n [text]=\"profile?.name\"\n [colorKey]=\"profile?.id\"\n [pictureUri]=\"profile?.pictureUri\"\n >\n </sds-avatar>\n\n <span\n *ngIf=\"showNotificationBadge\"\n class=\"\n position-absolute\n notification-badge\n translate-middle\n bg-danger\n border border-light\n rounded-circle\n \"\n (click)=\"onNotificationBadgeClick($event)\"\n >\n <span class=\"visually-hidden\">{{ newNotificationsText }}</span>\n </span>\n </div>\n\n @if(!isCollapsed()) {\n <div class=\"sds-flex-column\">\n <span class=\"truncate-two-lines text-gray-800 sds-fs-93\">\n {{ profile?.name }}\n </span>\n\n <span class=\"sds-fw-400 sds-fs-75 text-truncate text-muted\">\n {{ profileInfo }}\n </span>\n </div>\n }\n</div>\n\n<dx-popover\n [target]=\"popoverTarget\"\n [position]=\"{ my: 'left bottom', at: 'left top' }\"\n collision=\"fit none\"\n minWidth=\"20rem\"\n maxWidth=\"20rem\"\n [(visible)]=\"showOptions\"\n [wrapperAttr]=\"{\n class: 'sds-navigation-user-profile-popover sds-dx-popup-no-arrow sds-dx-popup-content-padding-0'\n }\"\n>\n <div class=\"py-2 pb-3 main-profile-container border-bottom\">\n\n <div class=\"sds-flex-column align-items-center\">\n <sds-avatar\n [text]=\"profile?.name\"\n [colorKey]=\"profile?.id\"\n [pictureUri]=\"profile?.pictureUri\"\n [size]=\"7\"\n >\n </sds-avatar>\n\n <h5 class=\"text-center mt-2 px-3\">\n {{profile?.name}}\n </h5>\n\n <div class=\"sds-fw-400 text-center text-gray-800 sds-fs-87 px-3 text-truncate w-100\">\n {{profile?.info}}\n </div>\n \n </div>\n\n </div>\n\n <ng-content></ng-content>\n\n <ul\n class=\"\n list-unstyled\n sds-navigation-user-profile-actions\n mb-0\n sds-ul-gap-1\n mx-2\n mb-2\n \"\n >\n <li *ngIf=\"showProfile\">\n <sds-user-profile-action-button\n [text]=\"profileText\"\n [icon]=\"userProfileIcon\"\n (actionClick)=\"onProfileClick()\"\n >\n </sds-user-profile-action-button>\n </li>\n\n <li *ngIf=\"showSignOut\">\n <sds-user-profile-action-button\n [text]=\"signOutText\"\n [icon]=\"signOutIcon\"\n (actionClick)=\"onSignOutClick()\"\n >\n </sds-user-profile-action-button>\n </li>\n </ul>\n</dx-popover>\n", styles: [".sds-navigation-user-profile-container{padding:.8rem;cursor:pointer}.sds-navigation-user-profile-container .notification-badge{top:15%;left:100%;padding:.4rem}.truncate-two-lines{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical}.main-profile-container{margin:.5rem}::ng-deep .sds-navigation-user-profile-popover .dx-popup-content{padding:0!important;font-size:1rem}\n"], dependencies: [{ kind: "component", type: SdsAvatarComponent, selector: "sds-avatar", inputs: ["text", "colorKey", "pictureUri", "showHint", "borderStyle", "borderColor", "borderWidth", "initialsText", "cursor", "size", "pictureImageAlt", "pictureLoading", "picturePriority", "badgeVisible", "badgePosition", "badgeBackgroundColor", "badgeTextColor", "badgeHint"] }, { kind: "component", type: SdsUserProfileActionButtonComponent, selector: "sds-user-profile-action-button", inputs: ["text", "icon"], outputs: ["actionClick"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: DxPopoverModule }, { kind: "component", type: i2.DxPopoverComponent, selector: "dx-popover", inputs: ["animation", "closeOnOutsideClick", "container", "contentTemplate", "deferRendering", "disabled", "enableBodyScroll", "height", "hideEvent", "hideOnOutsideClick", "hideOnParentScroll", "hint", "hoverStateEnabled", "maxHeight", "maxWidth", "minHeight", "minWidth", "position", "rtlEnabled", "shading", "shadingColor", "showCloseButton", "showEvent", "showTitle", "target", "title", "titleTemplate", "toolbarItems", "visible", "width", "wrapperAttr"], outputs: ["onContentReady", "onDisposing", "onHidden", "onHiding", "onInitialized", "onOptionChanged", "onShowing", "onShown", "onTitleRendered", "animationChange", "closeOnOutsideClickChange", "containerChange", "contentTemplateChange", "deferRenderingChange", "disabledChange", "enableBodyScrollChange", "heightChange", "hideEventChange", "hideOnOutsideClickChange", "hideOnParentScrollChange", "hintChange", "hoverStateEnabledChange", "maxHeightChange", "maxWidthChange", "minHeightChange", "minWidthChange", "positionChange", "rtlEnabledChange", "shadingChange", "shadingColorChange", "showCloseButtonChange", "showEventChange", "showTitleChange", "targetChange", "titleChange", "titleTemplateChange", "toolbarItemsChange", "visibleChange", "widthChange", "wrapperAttrChange"] }] }); }
|
|
360
505
|
}
|
|
361
506
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: SdsNavigationUserProfileComponent, decorators: [{
|
|
362
507
|
type: Component,
|
|
@@ -365,7 +510,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImpo
|
|
|
365
510
|
SdsUserProfileActionButtonComponent,
|
|
366
511
|
NgIf,
|
|
367
512
|
DxPopoverModule,
|
|
368
|
-
], template: "<div\
|
|
513
|
+
], template: "<div\n class=\"\n d-flex\n flex-row\n align-items-center\n gap-2\n sds-navigation-user-profile-container\n user-select-none\n mb-1 ms-1 me-1 mt-2\n pt-1 pb-1 ps-2\n sds-hoverable\n sds-rounded-2\n \"\n (click)=\"toggleOptions($event)\"\n>\n <div \n #popoverTarget\n class=\"\n position-relative\n\n \">\n <sds-avatar\n [text]=\"profile?.name\"\n [colorKey]=\"profile?.id\"\n [pictureUri]=\"profile?.pictureUri\"\n >\n </sds-avatar>\n\n <span\n *ngIf=\"showNotificationBadge\"\n class=\"\n position-absolute\n notification-badge\n translate-middle\n bg-danger\n border border-light\n rounded-circle\n \"\n (click)=\"onNotificationBadgeClick($event)\"\n >\n <span class=\"visually-hidden\">{{ newNotificationsText }}</span>\n </span>\n </div>\n\n @if(!isCollapsed()) {\n <div class=\"sds-flex-column\">\n <span class=\"truncate-two-lines text-gray-800 sds-fs-93\">\n {{ profile?.name }}\n </span>\n\n <span class=\"sds-fw-400 sds-fs-75 text-truncate text-muted\">\n {{ profileInfo }}\n </span>\n </div>\n }\n</div>\n\n<dx-popover\n [target]=\"popoverTarget\"\n [position]=\"{ my: 'left bottom', at: 'left top' }\"\n collision=\"fit none\"\n minWidth=\"20rem\"\n maxWidth=\"20rem\"\n [(visible)]=\"showOptions\"\n [wrapperAttr]=\"{\n class: 'sds-navigation-user-profile-popover sds-dx-popup-no-arrow sds-dx-popup-content-padding-0'\n }\"\n>\n <div class=\"py-2 pb-3 main-profile-container border-bottom\">\n\n <div class=\"sds-flex-column align-items-center\">\n <sds-avatar\n [text]=\"profile?.name\"\n [colorKey]=\"profile?.id\"\n [pictureUri]=\"profile?.pictureUri\"\n [size]=\"7\"\n >\n </sds-avatar>\n\n <h5 class=\"text-center mt-2 px-3\">\n {{profile?.name}}\n </h5>\n\n <div class=\"sds-fw-400 text-center text-gray-800 sds-fs-87 px-3 text-truncate w-100\">\n {{profile?.info}}\n </div>\n \n </div>\n\n </div>\n\n <ng-content></ng-content>\n\n <ul\n class=\"\n list-unstyled\n sds-navigation-user-profile-actions\n mb-0\n sds-ul-gap-1\n mx-2\n mb-2\n \"\n >\n <li *ngIf=\"showProfile\">\n <sds-user-profile-action-button\n [text]=\"profileText\"\n [icon]=\"userProfileIcon\"\n (actionClick)=\"onProfileClick()\"\n >\n </sds-user-profile-action-button>\n </li>\n\n <li *ngIf=\"showSignOut\">\n <sds-user-profile-action-button\n [text]=\"signOutText\"\n [icon]=\"signOutIcon\"\n (actionClick)=\"onSignOutClick()\"\n >\n </sds-user-profile-action-button>\n </li>\n </ul>\n</dx-popover>\n", styles: [".sds-navigation-user-profile-container{padding:.8rem;cursor:pointer}.sds-navigation-user-profile-container .notification-badge{top:15%;left:100%;padding:.4rem}.truncate-two-lines{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical}.main-profile-container{margin:.5rem}::ng-deep .sds-navigation-user-profile-popover .dx-popup-content{padding:0!important;font-size:1rem}\n"] }]
|
|
369
514
|
}], ctorParameters: () => [], propDecorators: { profile: [{
|
|
370
515
|
type: Input
|
|
371
516
|
}], profileInfo: [{
|
|
@@ -397,7 +542,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImpo
|
|
|
397
542
|
class SdsNavigationContainerComponent {
|
|
398
543
|
constructor() {
|
|
399
544
|
this.isCollapsed = model(false);
|
|
400
|
-
this.product = 'all-hours';
|
|
401
545
|
effect(() => {
|
|
402
546
|
const isCollapsed = this.isCollapsed();
|
|
403
547
|
untracked(() => {
|
|
@@ -416,14 +560,12 @@ class SdsNavigationContainerComponent {
|
|
|
416
560
|
this.collapsibleFrameComponentChildren?.forEach((child) => { child.isCollapsed.set(isCollapsed); });
|
|
417
561
|
}
|
|
418
562
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: SdsNavigationContainerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
419
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "17.3.12", type: SdsNavigationContainerComponent, isStandalone: true, selector: "sds-navigation-container", inputs: {
|
|
563
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "17.3.12", type: SdsNavigationContainerComponent, isStandalone: true, selector: "sds-navigation-container", inputs: { isCollapsed: { classPropertyName: "isCollapsed", publicName: "isCollapsed", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { isCollapsed: "isCollapsedChange" }, queries: [{ propertyName: "groupComponentChildren", predicate: SdsNavigationGroupComponent }, { propertyName: "routeLinkComponentChildren", predicate: SdsNavigationRouteLinkComponent }, { propertyName: "separatorComponentChildren", predicate: SdsNavigationSeparatorComponent }, { propertyName: "headerComponentChildren", predicate: SdsNavigationHeaderComponent }, { propertyName: "externalLinkComponentChildren", predicate: SdsNavigationExternalLinkComponent }, { propertyName: "userProfileComponentChildren", predicate: SdsNavigationUserProfileComponent }, { propertyName: "collapsibleFrameComponentChildren", predicate: SdsNavigationCollapsibleFrameComponent }], ngImport: i0, template: "<div class=\"sds-navigation-container\">\n <ng-content></ng-content>\n</div>", styles: [".sds-navigation-container{height:100%;display:flex;flex-direction:column;padding-right:.25rem;padding-left:.25rem;gap:.25rem}:host{overflow-y:auto;overflow-x:hidden}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
420
564
|
}
|
|
421
565
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: SdsNavigationContainerComponent, decorators: [{
|
|
422
566
|
type: Component,
|
|
423
|
-
args: [{ selector: 'sds-navigation-container', standalone: true, template: "<div
|
|
424
|
-
}], ctorParameters: () => [], propDecorators: {
|
|
425
|
-
type: Input
|
|
426
|
-
}], groupComponentChildren: [{
|
|
567
|
+
args: [{ selector: 'sds-navigation-container', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"sds-navigation-container\">\n <ng-content></ng-content>\n</div>", styles: [".sds-navigation-container{height:100%;display:flex;flex-direction:column;padding-right:.25rem;padding-left:.25rem;gap:.25rem}:host{overflow-y:auto;overflow-x:hidden}\n"] }]
|
|
568
|
+
}], ctorParameters: () => [], propDecorators: { groupComponentChildren: [{
|
|
427
569
|
type: ContentChildren,
|
|
428
570
|
args: [SdsNavigationGroupComponent]
|
|
429
571
|
}], routeLinkComponentChildren: [{
|
|
@@ -453,13 +595,13 @@ class SdsUserProfileTileComponent {
|
|
|
453
595
|
this.size = 'medium';
|
|
454
596
|
}
|
|
455
597
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: SdsUserProfileTileComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
456
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: SdsUserProfileTileComponent, isStandalone: true, selector: "sds-user-profile-tile", inputs: { profile: "profile", emphasizeName: "emphasizeName", size: "size" }, ngImport: i0, template: "\
|
|
598
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: SdsUserProfileTileComponent, isStandalone: true, selector: "sds-user-profile-tile", inputs: { profile: "profile", emphasizeName: "emphasizeName", size: "size" }, ngImport: i0, template: "\n<div class=\"sds-flex-row-center gap-3\">\n <sds-avatar\n [text]=\"profile?.name\"\n [colorKey]=\"profile?.id\"\n [pictureUri]=\"profile?.pictureUri\"\n [size]=\"size === 'small' ? 2 : 3\"\n borderColor=\"white\"\n borderWidth=\"2\"\n >\n </sds-avatar>\n\n <div \n class=\"flex-grow-1 flex-shrink-1 text-body\"\n [style.minWidth.px]=\"1\"\n >\n <span \n class=\"sds-fs-100 text-truncate\"\n [class.sds-fs-100]=\"size === 'medium'\"\n [class.sds-fs-95]=\"size === 'small'\"\n [class.sds-fw-500]=\"emphasizeName\"\n >\n {{profile?.name}}\n </span>\n <div \n class=\"sds-fw-400 text-truncate text-gray-800\"\n [class.sds-fs-75]=\"size === 'medium'\"\n [class.sds-fs-75]=\"size === 'small'\"\n >\n {{profile?.info}}\n </div>\n </div>\n</div>\n", styles: [""], dependencies: [{ kind: "component", type: SdsAvatarComponent, selector: "sds-avatar", inputs: ["text", "colorKey", "pictureUri", "showHint", "borderStyle", "borderColor", "borderWidth", "initialsText", "cursor", "size", "pictureImageAlt", "pictureLoading", "picturePriority", "badgeVisible", "badgePosition", "badgeBackgroundColor", "badgeTextColor", "badgeHint"] }] }); }
|
|
457
599
|
}
|
|
458
600
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: SdsUserProfileTileComponent, decorators: [{
|
|
459
601
|
type: Component,
|
|
460
602
|
args: [{ selector: 'sds-user-profile-tile', standalone: true, imports: [
|
|
461
603
|
SdsAvatarComponent
|
|
462
|
-
], template: "\
|
|
604
|
+
], template: "\n<div class=\"sds-flex-row-center gap-3\">\n <sds-avatar\n [text]=\"profile?.name\"\n [colorKey]=\"profile?.id\"\n [pictureUri]=\"profile?.pictureUri\"\n [size]=\"size === 'small' ? 2 : 3\"\n borderColor=\"white\"\n borderWidth=\"2\"\n >\n </sds-avatar>\n\n <div \n class=\"flex-grow-1 flex-shrink-1 text-body\"\n [style.minWidth.px]=\"1\"\n >\n <span \n class=\"sds-fs-100 text-truncate\"\n [class.sds-fs-100]=\"size === 'medium'\"\n [class.sds-fs-95]=\"size === 'small'\"\n [class.sds-fw-500]=\"emphasizeName\"\n >\n {{profile?.name}}\n </span>\n <div \n class=\"sds-fw-400 text-truncate text-gray-800\"\n [class.sds-fs-75]=\"size === 'medium'\"\n [class.sds-fs-75]=\"size === 'small'\"\n >\n {{profile?.info}}\n </div>\n </div>\n</div>\n" }]
|
|
463
605
|
}], propDecorators: { profile: [{
|
|
464
606
|
type: Input
|
|
465
607
|
}], emphasizeName: [{
|
|
@@ -485,7 +627,7 @@ class SdsUserProfileSelectorComponent {
|
|
|
485
627
|
this.profileIdChange.emit('');
|
|
486
628
|
}
|
|
487
629
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: SdsUserProfileSelectorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
488
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: SdsUserProfileSelectorComponent, isStandalone: true, selector: "sds-user-profile-selector", inputs: { content: "content", profiles: "profiles", selectDefaultProfileText: "selectDefaultProfileText", switchText: "switchText" }, outputs: { profileIdChange: "profileIdChange" }, ngImport: i0, template: "<div class=\"mx-2\"> \
|
|
630
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: SdsUserProfileSelectorComponent, isStandalone: true, selector: "sds-user-profile-selector", inputs: { content: "content", profiles: "profiles", selectDefaultProfileText: "selectDefaultProfileText", switchText: "switchText" }, outputs: { profileIdChange: "profileIdChange" }, ngImport: i0, template: "<div class=\"mx-2\"> \n <div \n *ngIf=\"content === 'profileList' && profiles && profiles.length > 0\"\n class=\"pt-2 pb-3 mt-1 mb-2 ps-2 border-bottom\">\n\n <div class=\"sds-fs-75 py-1 mb-2 text-uppercase\">{{switchText}}</div>\n\n <ul class=\"list-unstyled mb-0 sds-ul-gap-1 ps-2 profile-list sds-scrollbar sds-scrollbar-thin\">\n <li\n class=\"rounded sds-hoverable-150 pe-2 py-1\"\n *ngFor=\"let profile of profiles\"\n >\n <sds-user-profile-tile\n class=\"sds-cursor-pointer\"\n [profile]=\"profile\"\n [size]=\"'small'\"\n [emphasizeName]=\"false\"\n (click)=\"selectProfile(profile.id)\"\n >\n </sds-user-profile-tile>\n </li>\n </ul>\n </div>\n\n <div \n *ngIf=\"content === 'selectDefaultProfile'\"\n class=\"mt-2 mb-1\">\n <sds-user-profile-action-button\n [text]=\"selectDefaultProfileText\"\n [icon]=\"SELECT_DEFAULT_PROFILE_ICON\"\n (click)=\"selectDefaultProfile()\"\n >\n </sds-user-profile-action-button>\n </div>\n</div>", styles: [".profile-list{max-height:6rem;overflow-y:auto}\n"], dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: SdsUserProfileTileComponent, selector: "sds-user-profile-tile", inputs: ["profile", "emphasizeName", "size"] }, { kind: "component", type: SdsUserProfileActionButtonComponent, selector: "sds-user-profile-action-button", inputs: ["text", "icon"], outputs: ["actionClick"] }] }); }
|
|
489
631
|
}
|
|
490
632
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: SdsUserProfileSelectorComponent, decorators: [{
|
|
491
633
|
type: Component,
|
|
@@ -494,7 +636,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImpo
|
|
|
494
636
|
NgFor,
|
|
495
637
|
SdsUserProfileTileComponent,
|
|
496
638
|
SdsUserProfileActionButtonComponent
|
|
497
|
-
], template: "<div class=\"mx-2\"> \
|
|
639
|
+
], template: "<div class=\"mx-2\"> \n <div \n *ngIf=\"content === 'profileList' && profiles && profiles.length > 0\"\n class=\"pt-2 pb-3 mt-1 mb-2 ps-2 border-bottom\">\n\n <div class=\"sds-fs-75 py-1 mb-2 text-uppercase\">{{switchText}}</div>\n\n <ul class=\"list-unstyled mb-0 sds-ul-gap-1 ps-2 profile-list sds-scrollbar sds-scrollbar-thin\">\n <li\n class=\"rounded sds-hoverable-150 pe-2 py-1\"\n *ngFor=\"let profile of profiles\"\n >\n <sds-user-profile-tile\n class=\"sds-cursor-pointer\"\n [profile]=\"profile\"\n [size]=\"'small'\"\n [emphasizeName]=\"false\"\n (click)=\"selectProfile(profile.id)\"\n >\n </sds-user-profile-tile>\n </li>\n </ul>\n </div>\n\n <div \n *ngIf=\"content === 'selectDefaultProfile'\"\n class=\"mt-2 mb-1\">\n <sds-user-profile-action-button\n [text]=\"selectDefaultProfileText\"\n [icon]=\"SELECT_DEFAULT_PROFILE_ICON\"\n (click)=\"selectDefaultProfile()\"\n >\n </sds-user-profile-action-button>\n </div>\n</div>", styles: [".profile-list{max-height:6rem;overflow-y:auto}\n"] }]
|
|
498
640
|
}], propDecorators: { content: [{
|
|
499
641
|
type: Input
|
|
500
642
|
}], profiles: [{
|
|
@@ -519,7 +661,7 @@ class SdsProductHomeComponent {
|
|
|
519
661
|
this.headerClick = new EventEmitter();
|
|
520
662
|
this.ICON_CLOSE = faArrowLeftFromLine;
|
|
521
663
|
this.ICON_OPEN = faArrowRightFromLine;
|
|
522
|
-
this.ICON_SIDEBAR = faSidebar;
|
|
664
|
+
this.ICON_SIDEBAR = faArrowLeftFromLine; //faSidebar;
|
|
523
665
|
this.isCollapsed = model(false);
|
|
524
666
|
this.sideBarInstanceName = input('');
|
|
525
667
|
}
|
|
@@ -536,7 +678,7 @@ class SdsProductHomeComponent {
|
|
|
536
678
|
this.isCollapsed.set(!this.isCollapsed());
|
|
537
679
|
}
|
|
538
680
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: SdsProductHomeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
539
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.3.12", type: SdsProductHomeComponent, isStandalone: true, selector: "sds-product-home", inputs: { logoUrl: { classPropertyName: "logoUrl", publicName: "logoUrl", isSignal: false, isRequired: false, transformFunction: null }, logoAltText: { classPropertyName: "logoAltText", publicName: "logoAltText", isSignal: false, isRequired: false, transformFunction: null }, moduleTitle: { classPropertyName: "moduleTitle", publicName: "moduleTitle", isSignal: false, isRequired: false, transformFunction: null }, showAppSwitcher: { classPropertyName: "showAppSwitcher", publicName: "showAppSwitcher", isSignal: false, isRequired: false, transformFunction: null }, appSwitcherProductCode: { classPropertyName: "appSwitcherProductCode", publicName: "appSwitcherProductCode", isSignal: false, isRequired: false, transformFunction: null }, appSwitcherUserProductCodes: { classPropertyName: "appSwitcherUserProductCodes", publicName: "appSwitcherUserProductCodes", isSignal: false, isRequired: false, transformFunction: null }, appSwitcherTenantProducts: { classPropertyName: "appSwitcherTenantProducts", publicName: "appSwitcherTenantProducts", isSignal: false, isRequired: false, transformFunction: null }, appSwitcherSwitchText: { classPropertyName: "appSwitcherSwitchText", publicName: "appSwitcherSwitchText", isSignal: false, isRequired: false, transformFunction: null }, appSwitcherDiscoverText: { classPropertyName: "appSwitcherDiscoverText", publicName: "appSwitcherDiscoverText", isSignal: false, isRequired: false, transformFunction: null }, textOpen: { classPropertyName: "textOpen", publicName: "textOpen", isSignal: true, isRequired: false, transformFunction: null }, textClose: { classPropertyName: "textClose", publicName: "textClose", isSignal: true, isRequired: false, transformFunction: null }, allowHeaderClick: { classPropertyName: "allowHeaderClick", publicName: "allowHeaderClick", isSignal: false, isRequired: false, transformFunction: null }, isCollapsed: { classPropertyName: "isCollapsed", publicName: "isCollapsed", isSignal: true, isRequired: false, transformFunction: null }, sideBarInstanceName: { classPropertyName: "sideBarInstanceName", publicName: "sideBarInstanceName", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { productSwitched: "productSwitched", headerClick: "headerClick", isCollapsed: "isCollapsedChange" }, ngImport: i0, template: "<div \
|
|
681
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.3.12", type: SdsProductHomeComponent, isStandalone: true, selector: "sds-product-home", inputs: { logoUrl: { classPropertyName: "logoUrl", publicName: "logoUrl", isSignal: false, isRequired: false, transformFunction: null }, logoAltText: { classPropertyName: "logoAltText", publicName: "logoAltText", isSignal: false, isRequired: false, transformFunction: null }, moduleTitle: { classPropertyName: "moduleTitle", publicName: "moduleTitle", isSignal: false, isRequired: false, transformFunction: null }, showAppSwitcher: { classPropertyName: "showAppSwitcher", publicName: "showAppSwitcher", isSignal: false, isRequired: false, transformFunction: null }, appSwitcherProductCode: { classPropertyName: "appSwitcherProductCode", publicName: "appSwitcherProductCode", isSignal: false, isRequired: false, transformFunction: null }, appSwitcherUserProductCodes: { classPropertyName: "appSwitcherUserProductCodes", publicName: "appSwitcherUserProductCodes", isSignal: false, isRequired: false, transformFunction: null }, appSwitcherTenantProducts: { classPropertyName: "appSwitcherTenantProducts", publicName: "appSwitcherTenantProducts", isSignal: false, isRequired: false, transformFunction: null }, appSwitcherSwitchText: { classPropertyName: "appSwitcherSwitchText", publicName: "appSwitcherSwitchText", isSignal: false, isRequired: false, transformFunction: null }, appSwitcherDiscoverText: { classPropertyName: "appSwitcherDiscoverText", publicName: "appSwitcherDiscoverText", isSignal: false, isRequired: false, transformFunction: null }, textOpen: { classPropertyName: "textOpen", publicName: "textOpen", isSignal: true, isRequired: false, transformFunction: null }, textClose: { classPropertyName: "textClose", publicName: "textClose", isSignal: true, isRequired: false, transformFunction: null }, allowHeaderClick: { classPropertyName: "allowHeaderClick", publicName: "allowHeaderClick", isSignal: false, isRequired: false, transformFunction: null }, isCollapsed: { classPropertyName: "isCollapsed", publicName: "isCollapsed", isSignal: true, isRequired: false, transformFunction: null }, sideBarInstanceName: { classPropertyName: "sideBarInstanceName", publicName: "sideBarInstanceName", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { productSwitched: "productSwitched", headerClick: "headerClick", isCollapsed: "isCollapsedChange" }, ngImport: i0, template: "<div \n class=\"product-header pb-2 mb-2 align-items-start gap-2\"\n >\n @if(!isCollapsed()) {\n <sds-app-switcher\n *ngIf=\"showAppSwitcher\"\n class=\"app-switcher text-gray-800 sds-fs-93 sds-hoverable sds-rounded-2 p-1 d-flex align-items-center justify-content-center\"\n [productCode]=\"appSwitcherProductCode\"\n [userProductCodes]=\"appSwitcherUserProductCodes\"\n [tenantProducts]=\"appSwitcherTenantProducts\"\n [switchText]=\"appSwitcherSwitchText\"\n [discoverText]=\"appSwitcherDiscoverText\"\n (productClick)=\"onProductClick($event)\"\n >\n </sds-app-switcher>\n \n <div \n class=\"sds-flex-grow-shrink product-title\"\n (click)=\"onHeaderClick()\"\n [class.sds-cursor-pointer]=\"allowHeaderClick\"\n [title]=\"moduleTitle && isCollapsed() ? moduleTitle : ''\"\n >\n <div \n class=\"product-logo-container\"\n [class.collapsed]=\"isCollapsed()\"\n >\n <img\n class=\"product-logo\"\n [src]=\"logoUrl\" \n [alt]=\"logoAltText\"\n > \n </div>\n\n @if(moduleTitle && !isCollapsed()) {\n <h6 class=\"mt-2\">\n {{moduleTitle}}\n </h6>\n }\n </div>\n }\n\n <a \n class=\"\n toggle-collapsed-button \n text-gray-800 sds-fs-93 \n sds-hoverable sds-rounded-2 \n p-1 ml-2\n d-flex align-items-center justify-content-center\n sds-cursor-pointer\n \" \n (click)=\"toggleState()\" \n [title]=\"isCollapsed() ? textOpen() : textClose()\" \n >\n <fa-icon \n class=\"static-icon\"\n [icon]=\"ICON_SIDEBAR\" \n [fixedWidth]=\"true\"\n >\n </fa-icon>\n\n <fa-icon \n class=\"hover-icon\"\n [icon]=\"isCollapsed() ? ICON_OPEN : ICON_CLOSE\" \n [fixedWidth]=\"true\"\n >\n </fa-icon>\n </a>\n \n</div>\n", styles: [".product-header{padding-left:.75rem!important}.product-header .app-switcher{height:2rem;width:2rem}.product-header .product-title{margin-top:.15rem}.product-header .product-logo-container{height:calc(1.5rem + 2px)}.product-header .product-logo-container.collapsed{width:calc(1.5rem + 2px);overflow-x:hidden}.product-header .product-logo{height:1.5rem}.product-header h6{font-size:.8rem}.product-header a.toggle-collapsed-button{height:2rem;width:2rem}.product-header a.toggle-collapsed-button .static-icon{display:block}.product-header a.toggle-collapsed-button .hover-icon,.product-header a.toggle-collapsed-button:hover .static-icon{display:none}.product-header a.toggle-collapsed-button:hover .hover-icon{display:block}:host{width:100%}\n"], dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: FontAwesomeModule }, { kind: "component", type: i1$1.FaIconComponent, selector: "fa-icon", inputs: ["icon", "title", "animation", "spin", "pulse", "mask", "styles", "flip", "size", "pull", "border", "inverse", "symbol", "rotate", "fixedWidth", "classes", "transform", "a11yRole"] }, { kind: "component", type: SdsAppSwitcherComponent, selector: "sds-app-switcher", inputs: ["productCode", "userProductCodes", "tenantProducts", "switchText", "discoverText", "ariaLabel"], outputs: ["productClick"] }] }); }
|
|
540
682
|
}
|
|
541
683
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: SdsProductHomeComponent, decorators: [{
|
|
542
684
|
type: Component,
|
|
@@ -544,7 +686,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImpo
|
|
|
544
686
|
NgIf,
|
|
545
687
|
FontAwesomeModule,
|
|
546
688
|
SdsAppSwitcherComponent
|
|
547
|
-
], template: "<div \
|
|
689
|
+
], template: "<div \n class=\"product-header pb-2 mb-2 align-items-start gap-2\"\n >\n @if(!isCollapsed()) {\n <sds-app-switcher\n *ngIf=\"showAppSwitcher\"\n class=\"app-switcher text-gray-800 sds-fs-93 sds-hoverable sds-rounded-2 p-1 d-flex align-items-center justify-content-center\"\n [productCode]=\"appSwitcherProductCode\"\n [userProductCodes]=\"appSwitcherUserProductCodes\"\n [tenantProducts]=\"appSwitcherTenantProducts\"\n [switchText]=\"appSwitcherSwitchText\"\n [discoverText]=\"appSwitcherDiscoverText\"\n (productClick)=\"onProductClick($event)\"\n >\n </sds-app-switcher>\n \n <div \n class=\"sds-flex-grow-shrink product-title\"\n (click)=\"onHeaderClick()\"\n [class.sds-cursor-pointer]=\"allowHeaderClick\"\n [title]=\"moduleTitle && isCollapsed() ? moduleTitle : ''\"\n >\n <div \n class=\"product-logo-container\"\n [class.collapsed]=\"isCollapsed()\"\n >\n <img\n class=\"product-logo\"\n [src]=\"logoUrl\" \n [alt]=\"logoAltText\"\n > \n </div>\n\n @if(moduleTitle && !isCollapsed()) {\n <h6 class=\"mt-2\">\n {{moduleTitle}}\n </h6>\n }\n </div>\n }\n\n <a \n class=\"\n toggle-collapsed-button \n text-gray-800 sds-fs-93 \n sds-hoverable sds-rounded-2 \n p-1 ml-2\n d-flex align-items-center justify-content-center\n sds-cursor-pointer\n \" \n (click)=\"toggleState()\" \n [title]=\"isCollapsed() ? textOpen() : textClose()\" \n >\n <fa-icon \n class=\"static-icon\"\n [icon]=\"ICON_SIDEBAR\" \n [fixedWidth]=\"true\"\n >\n </fa-icon>\n\n <fa-icon \n class=\"hover-icon\"\n [icon]=\"isCollapsed() ? ICON_OPEN : ICON_CLOSE\" \n [fixedWidth]=\"true\"\n >\n </fa-icon>\n </a>\n \n</div>\n", styles: [".product-header{padding-left:.75rem!important}.product-header .app-switcher{height:2rem;width:2rem}.product-header .product-title{margin-top:.15rem}.product-header .product-logo-container{height:calc(1.5rem + 2px)}.product-header .product-logo-container.collapsed{width:calc(1.5rem + 2px);overflow-x:hidden}.product-header .product-logo{height:1.5rem}.product-header h6{font-size:.8rem}.product-header a.toggle-collapsed-button{height:2rem;width:2rem}.product-header a.toggle-collapsed-button .static-icon{display:block}.product-header a.toggle-collapsed-button .hover-icon,.product-header a.toggle-collapsed-button:hover .static-icon{display:none}.product-header a.toggle-collapsed-button:hover .hover-icon{display:block}:host{width:100%}\n"] }]
|
|
548
690
|
}], ctorParameters: () => [], propDecorators: { logoUrl: [{
|
|
549
691
|
type: Input
|
|
550
692
|
}], logoAltText: [{
|