@omnia/wcm 6.6.117-preview → 6.6.121-preview
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GuidValue } from '@omnia/fx-models';
|
|
1
|
+
import { GuidValue, SpacingSettings } from '@omnia/fx-models';
|
|
2
2
|
export interface MegaMenuNode {
|
|
3
3
|
depthLevel: number;
|
|
4
4
|
rootNavigationNodeId: number;
|
|
@@ -8,9 +8,9 @@ export interface MegaMenuNode {
|
|
|
8
8
|
}
|
|
9
9
|
export interface MegaMenuLevelStyle {
|
|
10
10
|
fontSize: number;
|
|
11
|
-
|
|
11
|
+
fontWeight: number;
|
|
12
12
|
enableUppercase: boolean;
|
|
13
|
-
|
|
13
|
+
spacing: SpacingSettings;
|
|
14
14
|
}
|
|
15
15
|
export interface MegaMenuSettings {
|
|
16
16
|
startNodes: Array<MegaMenuNode>;
|
|
@@ -19,6 +19,7 @@ export interface MegaMenuSettings {
|
|
|
19
19
|
staticLevels: number;
|
|
20
20
|
maxHeight: number;
|
|
21
21
|
maxWidth: number;
|
|
22
|
+
minWidthOfColumn: number;
|
|
22
23
|
backgroundColor: string;
|
|
23
24
|
textColor: string;
|
|
24
25
|
selectedBorderColor: string;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { MegaMenuLevelStyle, MegaMenuSettings } from '.';
|
|
2
2
|
import { types } from 'typestyle';
|
|
3
|
+
import { SpacingSettings } from '@omnia/fx/models';
|
|
3
4
|
export declare const MegaMenuStyles: {
|
|
4
5
|
layoutWrapperOmniaApp: (settings: MegaMenuSettings) => types.NestedCSSProperties;
|
|
5
6
|
layoutWrapperSP: (settings: MegaMenuSettings) => types.NestedCSSProperties;
|
|
@@ -12,12 +13,13 @@ export declare const MegaMenuStyles: {
|
|
|
12
13
|
menuDropDown: (settings: MegaMenuSettings) => types.NestedCSSProperties;
|
|
13
14
|
menuDropDownLink: (settings: MegaMenuSettings) => types.NestedCSSProperties;
|
|
14
15
|
menuDropDownLinkActived: (settings: MegaMenuSettings) => types.NestedCSSProperties;
|
|
15
|
-
menuDropDownLinkIndentation: (level: number,
|
|
16
|
+
menuDropDownLinkIndentation: (level: number, spacing: SpacingSettings) => types.NestedCSSProperties;
|
|
16
17
|
menuDropDownHeader: types.NestedCSSProperties;
|
|
17
|
-
menuFlatDropDownHeader: types.NestedCSSProperties;
|
|
18
|
-
menuDropDownColumn: (containerMaxWidth: number, containerMinLeft: number, maxWidth: number, btnLeft: number) => types.NestedCSSProperties;
|
|
19
18
|
menuDropDownColumnUL: types.NestedCSSProperties;
|
|
20
19
|
menuDropDownColumnSubTitle: types.NestedCSSProperties;
|
|
21
20
|
dynamicMenuScrollable: (containerMaxHeight: number, maxHeight: number, btnBottom: number) => types.NestedCSSProperties;
|
|
22
|
-
levelStyles: (levelStyle: MegaMenuLevelStyle) => types.NestedCSSProperties;
|
|
21
|
+
levelStyles: (levelStyle: MegaMenuLevelStyle, isStartNode?: boolean) => types.NestedCSSProperties;
|
|
22
|
+
flatWrapper: (maxWidth: number, settings: MegaMenuSettings) => types.NestedCSSProperties;
|
|
23
|
+
flexChild: (minWidth: number) => types.NestedCSSProperties;
|
|
24
|
+
flexWrapper: types.NestedCSSProperties;
|
|
23
25
|
};
|