@spicainternational/ngx-sds-components 6.19.1 → 7.1.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/esm2020/src/lib/navigation/navigation-user-profile/navigation-profile.model.mjs +2 -0
- package/esm2020/src/lib/navigation/navigation-user-profile/navigation-user-profile.component.mjs +44 -13
- package/esm2020/src/lib/navigation/navigation.module.mjs +16 -4
- package/esm2020/src/lib/navigation/public-api.mjs +2 -1
- package/esm2020/src/lib/quick-info/quick-info.component.mjs +5 -3
- package/esm2020/src/lib/timeline/components/timeline.component.mjs +10 -6
- package/esm2020/src/lib/timeline/services/timeline.service.mjs +56 -55
- package/esm2020/src/lib/timeline/types/timeline.types.mjs +1 -1
- package/esm2020/src/lib/tooltip/components/tooltip.component.mjs +2 -2
- package/fesm2015/spicainternational-ngx-sds-components-src-lib-navigation.mjs +57 -15
- package/fesm2015/spicainternational-ngx-sds-components-src-lib-navigation.mjs.map +1 -1
- package/fesm2015/spicainternational-ngx-sds-components-src-lib-quick-info.mjs +4 -2
- package/fesm2015/spicainternational-ngx-sds-components-src-lib-quick-info.mjs.map +1 -1
- package/fesm2015/spicainternational-ngx-sds-components-src-lib-timeline.mjs +64 -59
- package/fesm2015/spicainternational-ngx-sds-components-src-lib-timeline.mjs.map +1 -1
- package/fesm2015/spicainternational-ngx-sds-components-src-lib-tooltip.mjs +2 -2
- package/fesm2015/spicainternational-ngx-sds-components-src-lib-tooltip.mjs.map +1 -1
- package/fesm2020/spicainternational-ngx-sds-components-src-lib-navigation.mjs +56 -15
- package/fesm2020/spicainternational-ngx-sds-components-src-lib-navigation.mjs.map +1 -1
- package/fesm2020/spicainternational-ngx-sds-components-src-lib-quick-info.mjs +4 -2
- package/fesm2020/spicainternational-ngx-sds-components-src-lib-quick-info.mjs.map +1 -1
- package/fesm2020/spicainternational-ngx-sds-components-src-lib-timeline.mjs +64 -59
- package/fesm2020/spicainternational-ngx-sds-components-src-lib-timeline.mjs.map +1 -1
- package/fesm2020/spicainternational-ngx-sds-components-src-lib-tooltip.mjs +2 -2
- package/fesm2020/spicainternational-ngx-sds-components-src-lib-tooltip.mjs.map +1 -1
- package/package.json +1 -1
- package/src/lib/navigation/navigation-user-profile/navigation-profile.model.d.ts +6 -0
- package/src/lib/navigation/navigation-user-profile/navigation-user-profile.component.d.ts +15 -7
- package/src/lib/navigation/navigation.module.d.ts +9 -6
- package/src/lib/navigation/public-api.d.ts +1 -0
- package/src/lib/quick-info/quick-info.component.d.ts +2 -1
- package/src/lib/timeline/components/timeline.component.d.ts +1 -1
- package/src/lib/timeline/services/timeline.service.d.ts +3 -4
- package/src/lib/timeline/types/timeline.types.d.ts +1 -1
|
@@ -1,12 +1,15 @@
|
|
|
1
|
-
import { EventEmitter, OnInit } from '@angular/core';
|
|
1
|
+
import { EventEmitter, OnInit, OnChanges, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { NavigationProfile } from './navigation-profile.model';
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class SdsNavigationUserProfileComponent implements OnInit {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
export declare class SdsNavigationUserProfileComponent implements OnInit, OnChanges {
|
|
5
|
+
profile: NavigationProfile | null;
|
|
6
|
+
additionalProfiles: NavigationProfile[];
|
|
7
|
+
activeProfileId: string | null;
|
|
8
|
+
activeProfileIdChange: EventEmitter<string | null>;
|
|
9
|
+
activeProfileInfo: string;
|
|
8
10
|
showSignOut: boolean;
|
|
9
11
|
showProfile: boolean;
|
|
12
|
+
showTopBorder: boolean;
|
|
10
13
|
signOutText: string;
|
|
11
14
|
profileText: string;
|
|
12
15
|
showNotificationBadge: boolean;
|
|
@@ -15,11 +18,16 @@ export declare class SdsNavigationUserProfileComponent implements OnInit {
|
|
|
15
18
|
signOutClick: EventEmitter<void>;
|
|
16
19
|
notificationBadgeClick: EventEmitter<void>;
|
|
17
20
|
showOptions: boolean;
|
|
21
|
+
protected activeProfile: NavigationProfile | null;
|
|
22
|
+
protected userProfileIcon: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
23
|
+
protected signOutIcon: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
18
24
|
constructor();
|
|
19
25
|
ngOnInit(): void;
|
|
26
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
20
27
|
onProfileClick(): void;
|
|
21
28
|
onSignOutClick(): void;
|
|
22
29
|
onNotificationBadgeClick(event: MouseEvent): void;
|
|
30
|
+
onActiveProfileIdChange(id: string | null): void;
|
|
23
31
|
static ɵfac: i0.ɵɵFactoryDeclaration<SdsNavigationUserProfileComponent, never>;
|
|
24
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SdsNavigationUserProfileComponent, "sds-navigation-user-profile", never, { "
|
|
32
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SdsNavigationUserProfileComponent, "sds-navigation-user-profile", never, { "profile": "profile"; "additionalProfiles": "additionalProfiles"; "activeProfileId": "activeProfileId"; "activeProfileInfo": "activeProfileInfo"; "showSignOut": "showSignOut"; "showProfile": "showProfile"; "showTopBorder": "showTopBorder"; "signOutText": "signOutText"; "profileText": "profileText"; "showNotificationBadge": "showNotificationBadge"; "newNotificationsText": "newNotificationsText"; }, { "activeProfileIdChange": "activeProfileIdChange"; "profileClick": "profileClick"; "signOutClick": "signOutClick"; "notificationBadgeClick": "notificationBadgeClick"; }, never, ["*"], false, never>;
|
|
25
33
|
}
|
|
@@ -9,13 +9,16 @@ import * as i7 from "./navigation-user-profile/navigation-user-profile.component
|
|
|
9
9
|
import * as i8 from "./product-home/product-home.component";
|
|
10
10
|
import * as i9 from "./pipes/navigation-route-active.pipe";
|
|
11
11
|
import * as i10 from "@angular/common";
|
|
12
|
-
import * as i11 from "@angular/
|
|
13
|
-
import * as i12 from "@
|
|
14
|
-
import * as i13 from "@spicainternational/ngx-sds-components/src/lib/
|
|
15
|
-
import * as i14 from "@
|
|
16
|
-
import * as i15 from "
|
|
12
|
+
import * as i11 from "@angular/forms";
|
|
13
|
+
import * as i12 from "@angular/router";
|
|
14
|
+
import * as i13 from "@spicainternational/ngx-sds-components/src/lib/avatar";
|
|
15
|
+
import * as i14 from "@spicainternational/ngx-sds-components/src/lib/app-switcher";
|
|
16
|
+
import * as i15 from "@fortawesome/angular-fontawesome";
|
|
17
|
+
import * as i16 from "devextreme-angular/ui/popover";
|
|
18
|
+
import * as i17 from "devextreme-angular";
|
|
19
|
+
import * as i18 from "@spicainternational/ngx-sds-components/src/lib/tooltip";
|
|
17
20
|
export declare class SdsNavigationModule {
|
|
18
21
|
static ɵfac: i0.ɵɵFactoryDeclaration<SdsNavigationModule, never>;
|
|
19
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<SdsNavigationModule, [typeof i1.SdsNavigationGroupComponent, typeof i2.SdsNavigationRouteLinkComponent, typeof i3.SdsNavigationSeparatorComponent, typeof i4.SdsNavigationHeaderComponent, typeof i5.SdsNavigationContainerComponent, typeof i6.SdsNavigationExternalLinkComponent, typeof i7.SdsNavigationUserProfileComponent, typeof i8.SdsProductHomeComponent, typeof i9.NavigationRouteActivePipe, typeof i7.SdsNavigationUserProfileComponent], [typeof i10.CommonModule, typeof i11.
|
|
22
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SdsNavigationModule, [typeof i1.SdsNavigationGroupComponent, typeof i2.SdsNavigationRouteLinkComponent, typeof i3.SdsNavigationSeparatorComponent, typeof i4.SdsNavigationHeaderComponent, typeof i5.SdsNavigationContainerComponent, typeof i6.SdsNavigationExternalLinkComponent, typeof i7.SdsNavigationUserProfileComponent, typeof i8.SdsProductHomeComponent, typeof i9.NavigationRouteActivePipe, typeof i7.SdsNavigationUserProfileComponent], [typeof i10.CommonModule, typeof i11.FormsModule, typeof i12.RouterModule, typeof i13.SdsAvatarModule, typeof i14.SdsAppSwitcherModule, typeof i15.FontAwesomeModule, typeof i16.DxPopoverModule, typeof i17.DxScrollViewModule, typeof i18.SdsTooltipModule], [typeof i1.SdsNavigationGroupComponent, typeof i2.SdsNavigationRouteLinkComponent, typeof i3.SdsNavigationSeparatorComponent, typeof i4.SdsNavigationHeaderComponent, typeof i5.SdsNavigationContainerComponent, typeof i6.SdsNavigationExternalLinkComponent, typeof i7.SdsNavigationUserProfileComponent, typeof i8.SdsProductHomeComponent]>;
|
|
20
23
|
static ɵinj: i0.ɵɵInjectorDeclaration<SdsNavigationModule>;
|
|
21
24
|
}
|
|
@@ -6,4 +6,5 @@ export * from './navigation-header/navigation-header.component';
|
|
|
6
6
|
export * from './navigation-route-link/navigation-route-link.component';
|
|
7
7
|
export * from './navigation-separator/navigation-separator.component';
|
|
8
8
|
export * from './navigation-user-profile/navigation-user-profile.component';
|
|
9
|
+
export * from './navigation-user-profile/navigation-profile.model';
|
|
9
10
|
export * from './product-home/product-home.component';
|
|
@@ -14,6 +14,7 @@ export declare class SdsQuickInfoComponent implements OnChanges {
|
|
|
14
14
|
animation: PopoverAnimation | undefined;
|
|
15
15
|
showPopoverArrow: boolean;
|
|
16
16
|
infoIcon: IconProp;
|
|
17
|
+
popoverPosition: string | any;
|
|
17
18
|
hide: EventEmitter<any>;
|
|
18
19
|
show: EventEmitter<any>;
|
|
19
20
|
private _popover;
|
|
@@ -37,5 +38,5 @@ export declare class SdsQuickInfoComponent implements OnChanges {
|
|
|
37
38
|
private setShowEvent;
|
|
38
39
|
private setHideEvent;
|
|
39
40
|
static ɵfac: i0.ɵɵFactoryDeclaration<SdsQuickInfoComponent, never>;
|
|
40
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SdsQuickInfoComponent, "sds-quick-info", never, { "popoverMaxWidth": "popoverMaxWidth"; "popoverMinWidth": "popoverMinWidth"; "popoverWidth": "popoverWidth"; "showDelay": "showDelay"; "showEventName": "showEventName"; "hideDelay": "hideDelay"; "hideEventName": "hideEventName"; "mode": "mode"; "animation": "animation"; "showPopoverArrow": "showPopoverArrow"; "infoIcon": "infoIcon"; }, { "hide": "hide"; "show": "show"; }, ["customContent"], ["customContent", "*"], false, never>;
|
|
41
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SdsQuickInfoComponent, "sds-quick-info", never, { "popoverMaxWidth": "popoverMaxWidth"; "popoverMinWidth": "popoverMinWidth"; "popoverWidth": "popoverWidth"; "showDelay": "showDelay"; "showEventName": "showEventName"; "hideDelay": "hideDelay"; "hideEventName": "hideEventName"; "mode": "mode"; "animation": "animation"; "showPopoverArrow": "showPopoverArrow"; "infoIcon": "infoIcon"; "popoverPosition": "popoverPosition"; }, { "hide": "hide"; "show": "show"; }, ["customContent"], ["customContent", "*"], false, never>;
|
|
41
42
|
}
|
|
@@ -159,5 +159,5 @@ export declare class SdsTimelineComponent implements OnInit, OnChanges, AfterVie
|
|
|
159
159
|
private generateInternalTimelineItems;
|
|
160
160
|
private generateInternalTimelinePointInTimeItems;
|
|
161
161
|
static ɵfac: i0.ɵɵFactoryDeclaration<SdsTimelineComponent, never>;
|
|
162
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SdsTimelineComponent, "sds-timeline", never, { "start": "start"; "end": "end"; "items": "items"; "pointInTimeItems": "pointInTimeItems"; "itemTemplate": "itemTemplate"; "pointInTimeTemplate": "pointInTimeTemplate"; "tickFrequency": "tickFrequency"; "zoomPercent": "zoomPercent"; "viewOffsetPercent": "viewOffsetPercent"; "maxZoomPercent": "maxZoomPercent"; "showHourLabels": "showHourLabels"; "hourLabelClass": "hourLabelClass"; "showDayLabels": "showDayLabels"; "dayLabelClass": "dayLabelClass"; "hourTickClass": "hourTickClass"; "timelineHeight": "timelineHeight"; "enableZoomAndDrag": "enableZoomAndDrag"; }, { "zoomPercentChange": "zoomPercentChange"; "viewOffsetPercentChange": "viewOffsetPercentChange"; }, never, never, false, never>;
|
|
162
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SdsTimelineComponent, "sds-timeline", never, { "start": "start"; "end": "end"; "items": "items"; "pointInTimeItems": "pointInTimeItems"; "itemTemplate": "itemTemplate"; "pointInTimeTemplate": "pointInTimeTemplate"; "tickFrequency": "tickFrequency"; "zoomPercent": "zoomPercent"; "viewOffsetPercent": "viewOffsetPercent"; "maxZoomPercent": "maxZoomPercent"; "showHourLabels": "showHourLabels"; "hourLabelClass": "hourLabelClass"; "showDayLabels": "showDayLabels"; "dayLabelClass": "dayLabelClass"; "hourTickClass": "hourTickClass"; "timelineHeight": "timelineHeight"; "enableZoomAndDrag": "enableZoomAndDrag"; "offSetMinutes": "offSetMinutes"; }, { "zoomPercentChange": "zoomPercentChange"; "viewOffsetPercentChange": "viewOffsetPercentChange"; }, never, never, false, never>;
|
|
163
163
|
}
|
|
@@ -5,18 +5,17 @@ export declare class SdsTimelineService {
|
|
|
5
5
|
private end;
|
|
6
6
|
private widthPercentPerMinute;
|
|
7
7
|
private hourTicks;
|
|
8
|
-
dayLabels: TimelineIntervalLabel[];
|
|
9
|
-
hourLabels: TimelineIntervalLabel[];
|
|
10
8
|
constructor(start: Date, end: Date, offSetMinutes: number);
|
|
11
9
|
getX(time: Date): number;
|
|
12
10
|
getWidthFromMinutes(minutes: number): number;
|
|
13
11
|
getWidthFromTime(start: Date, end: Date): number;
|
|
14
12
|
getTick(time: Date): TimelineTick;
|
|
15
13
|
getHourTicks(frequency?: TimelineTickFrequency): TimelineTick[];
|
|
14
|
+
getHourLabels(frequency?: TimelineTickFrequency): TimelineIntervalLabel[];
|
|
15
|
+
getDayLabels(): TimelineIntervalLabel[];
|
|
16
|
+
private isValidFrequencyHour;
|
|
16
17
|
private diffInMinutes;
|
|
17
18
|
private roundHoursUp;
|
|
18
19
|
private roundHoursDown;
|
|
19
20
|
private initHourTicks;
|
|
20
|
-
private initDayLabels;
|
|
21
|
-
private initHourLabels;
|
|
22
21
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type TimelineTickFrequency = 'hourly' | '3hrs' | '6hrs';
|
|
1
|
+
export type TimelineTickFrequency = 'hourly' | '2hrs' | '3hrs' | '6hrs';
|