@sd-angular/core 19.0.32 → 19.0.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/scss/core/_read-state-panel.scss +57 -0
- package/components/table/src/components/selector-action/selector-action.component.d.ts +1 -0
- package/components/table/src/models/table-option-selector.model.d.ts +2 -0
- package/fesm2022/sd-angular-core-components-badge.mjs +2 -2
- package/fesm2022/sd-angular-core-components-badge.mjs.map +1 -1
- package/fesm2022/sd-angular-core-components-table.mjs +10 -9
- package/fesm2022/sd-angular-core-components-table.mjs.map +1 -1
- package/fesm2022/sd-angular-core-forms-autocomplete.mjs +2 -2
- package/fesm2022/sd-angular-core-forms-autocomplete.mjs.map +1 -1
- package/fesm2022/sd-angular-core-forms-select.mjs +2 -2
- package/fesm2022/sd-angular-core-forms-select.mjs.map +1 -1
- package/fesm2022/sd-angular-core-i18n.mjs +5 -0
- package/fesm2022/sd-angular-core-i18n.mjs.map +1 -1
- package/fesm2022/sd-angular-core-modules-layout.mjs +758 -17
- package/fesm2022/sd-angular-core-modules-layout.mjs.map +1 -1
- package/fesm2022/sd-angular-core-services-confirm.mjs +7 -43
- package/fesm2022/sd-angular-core-services-confirm.mjs.map +1 -1
- package/fesm2022/sd-angular-core-services-notify.mjs +2 -2
- package/fesm2022/sd-angular-core-services-notify.mjs.map +1 -1
- package/i18n/src/en.d.ts +1 -0
- package/modules/layout/components/layout-main/layout-main.component.d.ts +1 -1
- package/modules/layout/components/sidebar-mobile-v1/components/sidebar/sidebar.component.d.ts +2 -2
- package/modules/layout/components/sidebar-mobile-v1/main.component.d.ts +2 -2
- package/modules/layout/components/sidebar-v2/components/sidebar/sidebar.component.d.ts +56 -0
- package/modules/layout/components/sidebar-v2/components/user/user.component.d.ts +22 -0
- package/modules/layout/components/sidebar-v2/main.component.d.ts +25 -0
- package/modules/layout/configurations/layout.configuration.d.ts +5 -1
- package/modules/layout/services/layout.service.d.ts +2 -2
- package/package.json +1 -1
- package/services/confirm/src/lib/components/dialog-confirm/dialog-confirm.component.d.ts +0 -4
- package/services/confirm/src/lib/confirm.service.d.ts +0 -6
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { NestedTreeControl } from '@angular/cdk/tree';
|
|
2
|
+
import { MatTreeNestedDataSource } from '@angular/material/tree';
|
|
3
|
+
import { Params } from '@angular/router';
|
|
4
|
+
import { SdLayoutUserInfo, SidebarConfigurationV2 } from '../../../../configurations';
|
|
5
|
+
import { SdLayoutChildrenMenu, SdLayoutMenu } from '../../../../services';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class SidebarV2PanelComponent {
|
|
8
|
+
#private;
|
|
9
|
+
isShowSidebar: import("@angular/core").InputSignal<boolean>;
|
|
10
|
+
menus: import("@angular/core").InputSignal<SdLayoutMenu[]>;
|
|
11
|
+
userInfo: import("@angular/core").InputSignal<SdLayoutUserInfo>;
|
|
12
|
+
sidebar: import("@angular/core").InputSignal<SidebarConfigurationV2>;
|
|
13
|
+
expandSideBar: import("@angular/core").OutputEmitterRef<void>;
|
|
14
|
+
popupUserMenuClosed: import("@angular/core").OutputEmitterRef<void>;
|
|
15
|
+
popupUserMenuOpened: import("@angular/core").OutputEmitterRef<void>;
|
|
16
|
+
showSideBar: import("@angular/core").OutputEmitterRef<boolean | null>;
|
|
17
|
+
screenHeight: number;
|
|
18
|
+
isMobileOrTablet: boolean;
|
|
19
|
+
isMenuLock: import("@angular/core").WritableSignal<boolean>;
|
|
20
|
+
currentPath: import("@angular/core").WritableSignal<string>;
|
|
21
|
+
searchText: import("@angular/core").WritableSignal<string>;
|
|
22
|
+
titleMenuGroup: import("@angular/core").WritableSignal<string | undefined>;
|
|
23
|
+
idMenuGroupActive: import("@angular/core").WritableSignal<string | undefined>;
|
|
24
|
+
menusByGroup: import("@angular/core").WritableSignal<SdLayoutMenu[]>;
|
|
25
|
+
pinnedMenuGroup: import("@angular/core").WritableSignal<SdLayoutChildrenMenu>;
|
|
26
|
+
totalMenuInMenusByGroup: import("@angular/core").Signal<number>;
|
|
27
|
+
pinnedNodeKeys: import("@angular/core").Signal<Set<string>>;
|
|
28
|
+
isPinnedMenuGroupActive: import("@angular/core").Signal<boolean>;
|
|
29
|
+
activeMenuPath: import("@angular/core").Signal<string | null>;
|
|
30
|
+
dataSource: MatTreeNestedDataSource<SdLayoutMenu>;
|
|
31
|
+
treeControl: NestedTreeControl<SdLayoutMenu, SdLayoutMenu>;
|
|
32
|
+
constructor();
|
|
33
|
+
hasChild: (_: number, node: SdLayoutMenu) => boolean;
|
|
34
|
+
onToggleMenuNode: (menu: SdLayoutMenu) => void;
|
|
35
|
+
isPinnedNode: (node: SdLayoutMenu) => boolean;
|
|
36
|
+
isHoveredNode: (node: SdLayoutMenu) => boolean;
|
|
37
|
+
expandPinnedGroup: () => void;
|
|
38
|
+
onTogglePin: (event: MouseEvent, node: SdLayoutMenu) => void;
|
|
39
|
+
toggleMenuLock(event: Event): void;
|
|
40
|
+
openHomePage: () => void;
|
|
41
|
+
onUserMenuClosed: () => void;
|
|
42
|
+
onUserMenuOpened: () => void;
|
|
43
|
+
navigate: (args: {
|
|
44
|
+
path: string;
|
|
45
|
+
queryParams: Params;
|
|
46
|
+
}) => void;
|
|
47
|
+
onFilterSearchText: (event: string) => void;
|
|
48
|
+
onClearSearchText: () => void;
|
|
49
|
+
expandMenuGroup: (menuGroupNode: SdLayoutMenu) => void;
|
|
50
|
+
onMouseOverMenuGroupNode: (event: MouseEvent, menuNode: SdLayoutMenu) => void;
|
|
51
|
+
onMouseLeaveMenuGroupNode: (event: MouseEvent, menuNode: SdLayoutMenu) => void;
|
|
52
|
+
onMouseOverMenuNode: (event: MouseEvent, menuItem: SdLayoutMenu) => void;
|
|
53
|
+
onMouseLeaveMenuNode: (event: MouseEvent, menuItem: SdLayoutMenu) => void;
|
|
54
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SidebarV2PanelComponent, never>;
|
|
55
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SidebarV2PanelComponent, "sd-sidebar-v2-panel", never, { "isShowSidebar": { "alias": "isShowSidebar"; "required": true; "isSignal": true; }; "menus": { "alias": "menus"; "required": true; "isSignal": true; }; "userInfo": { "alias": "userInfo"; "required": true; "isSignal": true; }; "sidebar": { "alias": "sidebar"; "required": true; "isSignal": true; }; }, { "expandSideBar": "expandSideBar"; "popupUserMenuClosed": "popupUserMenuClosed"; "popupUserMenuOpened": "popupUserMenuOpened"; "showSideBar": "showSideBar"; }, never, never, true, never>;
|
|
56
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { SdLayoutUserInfo } from '../../../../configurations';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class SidebarV2UserComponent {
|
|
4
|
+
#private;
|
|
5
|
+
isMobileOrTablet: import("@angular/core").InputSignal<boolean>;
|
|
6
|
+
isMenuLock: import("@angular/core").InputSignal<boolean>;
|
|
7
|
+
isShowSidebar: import("@angular/core").InputSignal<boolean>;
|
|
8
|
+
userInfo: import("@angular/core").InputSignal<SdLayoutUserInfo>;
|
|
9
|
+
menuClosed: import("@angular/core").OutputEmitterRef<void>;
|
|
10
|
+
menuOpened: import("@angular/core").OutputEmitterRef<void>;
|
|
11
|
+
toggleMenuLock: import("@angular/core").OutputEmitterRef<Event>;
|
|
12
|
+
singoutLayoutConfig: () => void | Promise<void>;
|
|
13
|
+
changePasswordLayoutConfig: (() => void | Promise<void>) | undefined;
|
|
14
|
+
onMenuOpened: () => void;
|
|
15
|
+
onMenuClosed: () => void;
|
|
16
|
+
keepOpenWhenClickInsideMenu: (event: Event) => void;
|
|
17
|
+
logout: () => void;
|
|
18
|
+
changePassword: () => void;
|
|
19
|
+
onToggleMenuLock: (event: Event) => void;
|
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SidebarV2UserComponent, never>;
|
|
21
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SidebarV2UserComponent, "sd-sidebar-v2-user", never, { "isMobileOrTablet": { "alias": "isMobileOrTablet"; "required": false; "isSignal": true; }; "isMenuLock": { "alias": "isMenuLock"; "required": false; "isSignal": true; }; "isShowSidebar": { "alias": "isShowSidebar"; "required": false; "isSignal": true; }; "userInfo": { "alias": "userInfo"; "required": true; "isSignal": true; }; }, { "menuClosed": "menuClosed"; "menuOpened": "menuOpened"; "toggleMenuLock": "toggleMenuLock"; }, never, never, true, never>;
|
|
22
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { MatSidenav } from '@angular/material/sidenav';
|
|
2
|
+
import { SdLayoutUserInfo, SidebarConfigurationV2 } from '../../configurations';
|
|
3
|
+
import { SdLayoutMenu } from '../../services';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class SidebarV2Component {
|
|
6
|
+
#private;
|
|
7
|
+
sidenav: import("@angular/core").Signal<MatSidenav>;
|
|
8
|
+
menus: import("@angular/core").InputSignal<SdLayoutMenu[]>;
|
|
9
|
+
userInfo: import("@angular/core").InputSignal<SdLayoutUserInfo>;
|
|
10
|
+
sidebar: import("@angular/core").InputSignal<SidebarConfigurationV2>;
|
|
11
|
+
isMobileOrTablet: import("@angular/core").WritableSignal<boolean>;
|
|
12
|
+
isMenuLock: import("@angular/core").WritableSignal<boolean>;
|
|
13
|
+
isShowSidebar: import("@angular/core").WritableSignal<boolean>;
|
|
14
|
+
onhover: import("@angular/core").WritableSignal<boolean>;
|
|
15
|
+
constructor();
|
|
16
|
+
openSidebar: () => void;
|
|
17
|
+
onPopupOfSideBarOpened: () => void;
|
|
18
|
+
onPopupOfSideBarClosed: () => void;
|
|
19
|
+
onExpandSideBar: () => void;
|
|
20
|
+
onMouseleaveSideBar: () => void;
|
|
21
|
+
onSidenavOpenedChange: (opened: boolean) => void;
|
|
22
|
+
onToggle: (data: boolean | null) => void;
|
|
23
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SidebarV2Component, never>;
|
|
24
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SidebarV2Component, "sd-sidebar-v2", never, { "menus": { "alias": "menus"; "required": false; "isSignal": true; }; "userInfo": { "alias": "userInfo"; "required": true; "isSignal": true; }; "sidebar": { "alias": "sidebar"; "required": true; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
25
|
+
}
|
|
@@ -30,7 +30,7 @@ export interface SdLayoutUserInfo {
|
|
|
30
30
|
*/
|
|
31
31
|
avatar?: string;
|
|
32
32
|
}
|
|
33
|
-
export type ISdSidebarConfiguration = SidebarConfigurationV1;
|
|
33
|
+
export type ISdSidebarConfiguration = SidebarConfigurationV1 | SidebarConfigurationV2;
|
|
34
34
|
export interface SidebarConfigurationV1 {
|
|
35
35
|
version: 1;
|
|
36
36
|
/**
|
|
@@ -64,4 +64,8 @@ export interface SidebarConfigurationV1 {
|
|
|
64
64
|
enabled?: boolean;
|
|
65
65
|
};
|
|
66
66
|
}
|
|
67
|
+
/** Opt in to the refreshed desktop sidebar while keeping the V1 configuration fields. */
|
|
68
|
+
export interface SidebarConfigurationV2 extends Omit<SidebarConfigurationV1, 'version'> {
|
|
69
|
+
version: 2;
|
|
70
|
+
}
|
|
67
71
|
export declare const SD_LAYOUT_CONFIGURATION: InjectionToken<ISdLayoutConfiguration>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { SdLayoutUserInfo } from '../configurations';
|
|
1
|
+
import { ISdSidebarConfiguration, SdLayoutUserInfo } from '../configurations';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class SdLayoutService {
|
|
4
4
|
#private;
|
|
5
5
|
userInfo: import("@angular/core").WritableSignal<SdLayoutUserInfo | undefined>;
|
|
6
|
-
sidebar: import("@angular/core").WritableSignal<
|
|
6
|
+
sidebar: import("@angular/core").WritableSignal<ISdSidebarConfiguration | undefined>;
|
|
7
7
|
constructor();
|
|
8
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<SdLayoutService, never>;
|
|
9
9
|
static ɵprov: i0.ɵɵInjectableDeclaration<SdLayoutService>;
|
package/package.json
CHANGED
|
@@ -10,7 +10,6 @@ export interface DialogData {
|
|
|
10
10
|
yesButtonColor?: Color;
|
|
11
11
|
noButtonColor?: Color;
|
|
12
12
|
input?: {
|
|
13
|
-
label?: string;
|
|
14
13
|
placeholder?: string;
|
|
15
14
|
minlength?: number;
|
|
16
15
|
maxlength?: number;
|
|
@@ -39,9 +38,6 @@ export declare class DialogConfirmComponent {
|
|
|
39
38
|
id: string;
|
|
40
39
|
readonly dialogRef: MatDialogRef<any, any>;
|
|
41
40
|
readonly data: DialogData;
|
|
42
|
-
readonly iconTone: Color;
|
|
43
|
-
readonly resolvedIcon: string;
|
|
44
|
-
readonly hasFields: boolean;
|
|
45
41
|
constructor();
|
|
46
42
|
onCancel: () => void;
|
|
47
43
|
onAccept: () => void;
|
|
@@ -7,7 +7,6 @@ export declare class SdConfirmService {
|
|
|
7
7
|
constructor(dialog: MatDialog);
|
|
8
8
|
confirm: (message: string, option?: {
|
|
9
9
|
title?: string;
|
|
10
|
-
icon?: string;
|
|
11
10
|
yesTitle?: string;
|
|
12
11
|
noTitle?: string;
|
|
13
12
|
yesButtonColor?: Color;
|
|
@@ -17,13 +16,10 @@ export declare class SdConfirmService {
|
|
|
17
16
|
}) => Promise<unknown>;
|
|
18
17
|
withInput: (message?: string, option?: {
|
|
19
18
|
title?: string;
|
|
20
|
-
icon?: string;
|
|
21
19
|
yesTitle?: string;
|
|
22
20
|
noTitle?: string;
|
|
23
21
|
required?: boolean;
|
|
24
22
|
maxlength?: number;
|
|
25
|
-
label?: string;
|
|
26
|
-
placeholder?: string;
|
|
27
23
|
yesButtonColor?: Color;
|
|
28
24
|
noButtonColor?: Color;
|
|
29
25
|
defaultValue?: string;
|
|
@@ -31,7 +27,6 @@ export declare class SdConfirmService {
|
|
|
31
27
|
}) => Promise<string>;
|
|
32
28
|
withRadio: (message?: string, option?: {
|
|
33
29
|
title?: string;
|
|
34
|
-
icon?: string;
|
|
35
30
|
yesTitle?: string;
|
|
36
31
|
noTitle?: string;
|
|
37
32
|
required?: boolean;
|
|
@@ -46,7 +41,6 @@ export declare class SdConfirmService {
|
|
|
46
41
|
}) => Promise<string>;
|
|
47
42
|
withDate: (message?: string, option?: {
|
|
48
43
|
title?: string;
|
|
49
|
-
icon?: string;
|
|
50
44
|
yesTitle?: string;
|
|
51
45
|
noTitle?: string;
|
|
52
46
|
required?: boolean;
|