@omnia/wcm 6.6.115-preview → 6.6.119-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.
- package/internal-do-not-import-from-here/fx/models/components/MegaMenu.d.ts +19 -7
- package/internal-do-not-import-from-here/fx/models/components/MegaMenuStyles.d.ts +7 -4
- package/internal-do-not-import-from-here/fx/models/navigation/NavigationNode.d.ts +4 -0
- package/internal-do-not-import-from-here/fx/models/navigation/NavigationNodeQuery.d.ts +6 -0
- package/internal-do-not-import-from-here/fx/models/navigation/NavigationNodeQuery.js +6 -0
- package/internal-do-not-import-from-here/fx/models/navigation/index.d.ts +1 -0
- package/internal-do-not-import-from-here/fx/models/navigation/index.js +1 -0
- package/internal-do-not-import-from-here/fx/services/NavigationService.d.ts +2 -1
- package/internal-do-not-import-from-here/fx/stores/NavigationStore.d.ts +1 -1
- package/internal-do-not-import-from-here/manifests/omnia.wcm.fx.core.manifest.json +1 -1
- package/internal-do-not-import-from-here/wcdefinitions.json +1 -0
- package/package.json +1 -1
|
@@ -1,14 +1,26 @@
|
|
|
1
|
-
import { GuidValue } from '@omnia/fx-models';
|
|
1
|
+
import { GuidValue, SpacingSettings } from '@omnia/fx-models';
|
|
2
|
+
export interface MegaMenuNode {
|
|
3
|
+
depthLevel: number;
|
|
4
|
+
rootNavigationNodeId: number;
|
|
5
|
+
publishingAppId: GuidValue;
|
|
6
|
+
publishingAppPath: string;
|
|
7
|
+
excludeStartNode: boolean;
|
|
8
|
+
}
|
|
9
|
+
export interface MegaMenuLevelStyle {
|
|
10
|
+
fontSize: number;
|
|
11
|
+
fontWeight: number;
|
|
12
|
+
enableUppercase: boolean;
|
|
13
|
+
spacing: SpacingSettings;
|
|
14
|
+
}
|
|
2
15
|
export interface MegaMenuSettings {
|
|
16
|
+
startNodes: Array<MegaMenuNode>;
|
|
17
|
+
levelStyles: Array<MegaMenuLevelStyle>;
|
|
18
|
+
enableDropdownMenu: boolean;
|
|
19
|
+
staticLevels: number;
|
|
3
20
|
maxHeight: number;
|
|
4
21
|
maxWidth: number;
|
|
5
|
-
|
|
6
|
-
dynamicDisplayLevel: number;
|
|
22
|
+
minWidthOfColumn: number;
|
|
7
23
|
backgroundColor: string;
|
|
8
24
|
textColor: string;
|
|
9
25
|
selectedBorderColor: string;
|
|
10
|
-
rootNavigationNodeId: number;
|
|
11
|
-
publishingAppId: GuidValue;
|
|
12
|
-
publishingAppPath: string;
|
|
13
|
-
flat?: boolean;
|
|
14
26
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { MegaMenuSettings } from '.';
|
|
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,11 +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) => types.NestedCSSProperties;
|
|
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;
|
|
21
|
+
levelStyles: (levelStyle: MegaMenuLevelStyle, isStartNode?: boolean) => types.NestedCSSProperties;
|
|
22
|
+
flatWrapper: (maxWidth: number, backgroundColor?: string) => types.NestedCSSProperties;
|
|
23
|
+
flexChild: (minWidth: number) => types.NestedCSSProperties;
|
|
24
|
+
flexWrapper: types.NestedCSSProperties;
|
|
22
25
|
};
|
|
@@ -30,4 +30,8 @@ export interface NavigationNode<T extends NavigationData> extends AuditingInform
|
|
|
30
30
|
* */
|
|
31
31
|
publishedChildCount: number;
|
|
32
32
|
path?: string;
|
|
33
|
+
/**
|
|
34
|
+
* The order value which is used to sort nodes when there are subset of nodes available in client side
|
|
35
|
+
* */
|
|
36
|
+
orderValue?: number;
|
|
33
37
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { NavigationData, NavigationNode, NavigationResult, NodeId, NavigationPosition, MoveNavigationNodeResult, PageId, PageNavigationData, PageNavigationNode, NavigationDataType } from "../models";
|
|
1
|
+
import { NavigationData, NavigationNode, NavigationResult, NodeId, NavigationPosition, MoveNavigationNodeResult, PageId, PageNavigationData, PageNavigationNode, NavigationDataType, NavigationNodeQuery } from "../models";
|
|
2
2
|
import { HttpClient } from '@omnia/fx';
|
|
3
3
|
import { GuidValue } from '@omnia/fx-models';
|
|
4
4
|
export declare class NavigationService {
|
|
@@ -43,6 +43,7 @@ export declare class NavigationService {
|
|
|
43
43
|
getParentNodes: <T extends NavigationNode<NavigationData>>(nodeToGetParentsFor: T, nodeTypes?: NavigationDataType) => Promise<Array<NavigationNode<NavigationData>>>;
|
|
44
44
|
getChildNodes: <T extends NavigationNode<NavigationData>>(nodeToGetParentsFor: T, nodeTypes?: NavigationDataType, depth?: number, forceFromPublishingAppId?: string) => Promise<Array<NavigationNode<NavigationData>>>;
|
|
45
45
|
getMegamenuChildNodes: <T extends NavigationNode<NavigationData>>(nodeToGetParentsFor: T, nodeTypes?: NavigationDataType, depth?: number, forceFromPublishingAppId?: string) => Promise<Array<NavigationNode<NavigationData>>>;
|
|
46
|
+
getMegamenusChildNodes: <T extends NavigationNode<NavigationData>>(nodesToGetParentsFor: NavigationNodeQuery<T>[], nodeTypes?: NavigationDataType) => Promise<Array<NavigationNode<NavigationData>>>;
|
|
46
47
|
getUnavailableDirectChildNodes: <T extends NavigationNode<NavigationData>>(nodeToGet: T) => Promise<Array<NavigationNode<NavigationData>>>;
|
|
47
48
|
getNodesByIds: (nodeIds: Array<NodeId>) => Promise<{
|
|
48
49
|
[nodeId: number]: NavigationNode<NavigationData>;
|
|
@@ -28,7 +28,7 @@ export declare class NavigationStore extends Store {
|
|
|
28
28
|
isLoadingChildren: (node: NavigationNode<NavigationData>) => boolean;
|
|
29
29
|
getParents: <T_1 extends NavigationNode<NavigationData>>(node: NavigationNode<NavigationData>, nodeTypes?: NavigationDataType) => T_1[];
|
|
30
30
|
absoluteUrl: (node: NavigationNode<NavigationData>, variationId?: VariationId) => string;
|
|
31
|
-
sortSiblingNodes: (nodes: Array<NavigationNode<NavigationData
|
|
31
|
+
sortSiblingNodes: (nodes: Array<NavigationNode<NavigationData>>) => NavigationNode<NavigationData>[];
|
|
32
32
|
};
|
|
33
33
|
/**
|
|
34
34
|
* Implementation of mutations
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"omniaWebpackJsonp['d60fa82a-129a-41a9-93ce-d784dcb217b0']['73f0116c-212c-4912-b780-d8df4ea3d78b']","content":{"./node_modules/@omnia/wcm/models/index.js":{"id":"0044f6fa-6f28-4130-9b07-649c0ab06fca","buildMeta":{"exportsType":"namespace"},"exports":["AccordionBlockStyles","ActionButtonLinkHandlerTargets","ActionButtonType","ActivityActionTypes","ActivityFeedScopes","ActivityType","ApprovalType","AutomaticPageCreationStatusType","BannerBlockStyles","BannerElementName","BannerLayout","BreadcrumbBlockStyles","BuildInContentBlockTextStyleFormatting","CalendarRollupBlockListViewSettingsStyles","CalendarRollupBlockSettingsStyles","CalendarRollupBlockStyles","CalendarRollupEnums","CalendarType","CardTypes","ChildStructureType","ColleagueDialogContentStyles","CommentSorting","CommunityAppLayoutDefinition","CommunityPageActivityStyles","CommunityStyles","Constants","ContentBlockModes","ContentBlockStyles","CurrentNavigationBlockSettingsStyles","CurrentNavigationBlockStyles","CurrentNavigationStatus","CurrentPageStatus","DailyRecurrenceTypeEnums","DeletedPageDialogStyles","DocumentTypes","DynamicRollerSizes","DynamicRollerTypes","EnterpriseGlossaryPageInformationProviderStyles","EnterprisePropertiesBlockDateTimeModes","EnterprisePropertyDataTypeProvider","EnterprisePropertyDocumentProviderProperty","EventCloneDialogContentStyles","EventParticipantCounterBlockStyles","EventParticipantListEnums","EventParticipantListStyles","EventParticipantListViewStyles","HtmlScriptBlockStyle","InfoScreenConstants","InfoScreenManifests","InfoScreenViewIdConstants","ItemQueryEnums","LabelPositions","LinkPickerStyle","MediaBlockStyles","MediaPickerStorageProviderPageContext","MediaPickerStorageProviderPageCreationContext","MediaPickerStorageProviderPageReadContext","MegaMenuStyles","MobileNavigationNodeStyles","MobileNavigationStyles","MonthlyRecurrenceTypeEnums","NavigationDataType","NavigationNodeStyles","NavigationNodeType","NavigationRenders","NodeId","OutlookCalendarType","PageCollectionTopic","PageDataType","PageFeedbackBlockStyles","PageFeedbackDialogStyles","PageFeedbacksStyles","PageId","PageItemTemplateStyles","PagePickerNodeStyles","PagePickerProviderStyles","PagePropertiesBlockAdvancedStyles","PagePropertiesBlockStyles","PageRollUpDialogViewStyles","PageRollupBlockCardViewSettingsStyles","PageRollupBlockListViewSettingsStyles","PageRollupBlockListViewViewStyles","PageRollupBlockListingWithImageViewViewStyles","PageRollupBlockRollerViewViewStyles","PageRollupBlockSettingsFilterTabStyles","PageRollupBlockSettingsGeneralTabStyles","PageRollupBlockStyles","PageRollupConstants","PageRollupEnums","PageRollupListViewSettingsStyles","PageRollupListViewStyles","PageRollupListingPickedPagesStyles","PageRollupNavigationViewStyles","PageRollupNewsletterViewStyles","PageRollupPickedPagesDialogStyles","PageTopic","PageTypeConstants","PagesDashboardSettingsStyles","PagingTypes","Parameters","ParticipantType","PendingFileStatus","PublishingAppBootRouteProperty","PublishingAppLayoutDefinition","PublishingAppReuseContentSettingsRouteProperty","PublishingAppTopic","RecurrenceTypeEnums","RelatedLinkAddHeadingDialogStyles","RelatedLinkBlockStyles","RelatedLinkEditFormStyles","RelatedLinkElementName","ResourceEvaluators","ReusablePageStatusType","ReuseContentMode","RoleDefinitions","RootService","RssReaderBlockLeftImageViewStyles","RssReaderBlockNoImageViewStyles","RssReaderBlockStyles","RuleStatus","RuleTypes","ScheduleEndTypeEnums","SearchTemplateOmniaPageStyles","SelectedPageItemStyles","SharepointPageTemplateStyles","SignOffRequestBlockStyles","SignOffRequestConstants","TagTopic","TaxonomyNavigationStyles","TaxonomyTopic","TopicInformationType","TopicType","UserTopic","VariationId","VariationInputStyles","VariationsRouteProperty","VersionId","VersionType","VersionUpdationMode","VideoType","WCMFxLocalization","WCMNavigationDataTypes","WCMPageIdCustomPropertyName","WCMPageTypes","WCMReaderContext","WCMRecipientsEnterpriseProperties","WcmGroupManifests","WcmLayoutProvider","WcmPropertyDefaultBooleanValues","WcmPropertyDefaultValues","WcmResourceManifests","WcmService","WcmWebComponentManifests","WeekOfMonthEnums","WorkplaceService","layoutItemAction"]}}}
|
|
1
|
+
{"name":"omniaWebpackJsonp['d60fa82a-129a-41a9-93ce-d784dcb217b0']['73f0116c-212c-4912-b780-d8df4ea3d78b']","content":{"./node_modules/@omnia/wcm/models/index.js":{"id":"0044f6fa-6f28-4130-9b07-649c0ab06fca","buildMeta":{"exportsType":"namespace"},"exports":["AccordionBlockStyles","ActionButtonLinkHandlerTargets","ActionButtonType","ActivityActionTypes","ActivityFeedScopes","ActivityType","ApprovalType","AutomaticPageCreationStatusType","BannerBlockStyles","BannerElementName","BannerLayout","BreadcrumbBlockStyles","BuildInContentBlockTextStyleFormatting","CalendarRollupBlockListViewSettingsStyles","CalendarRollupBlockSettingsStyles","CalendarRollupBlockStyles","CalendarRollupEnums","CalendarType","CardTypes","ChildStructureType","ColleagueDialogContentStyles","CommentSorting","CommunityAppLayoutDefinition","CommunityPageActivityStyles","CommunityStyles","Constants","ContentBlockModes","ContentBlockStyles","CurrentNavigationBlockSettingsStyles","CurrentNavigationBlockStyles","CurrentNavigationStatus","CurrentPageStatus","DailyRecurrenceTypeEnums","DeletedPageDialogStyles","DocumentTypes","DynamicRollerSizes","DynamicRollerTypes","EnterpriseGlossaryPageInformationProviderStyles","EnterprisePropertiesBlockDateTimeModes","EnterprisePropertyDataTypeProvider","EnterprisePropertyDocumentProviderProperty","EventCloneDialogContentStyles","EventParticipantCounterBlockStyles","EventParticipantListEnums","EventParticipantListStyles","EventParticipantListViewStyles","HtmlScriptBlockStyle","InfoScreenConstants","InfoScreenManifests","InfoScreenViewIdConstants","ItemQueryEnums","LabelPositions","LinkPickerStyle","MediaBlockStyles","MediaPickerStorageProviderPageContext","MediaPickerStorageProviderPageCreationContext","MediaPickerStorageProviderPageReadContext","MegaMenuStyles","MobileNavigationNodeStyles","MobileNavigationStyles","MonthlyRecurrenceTypeEnums","NavigationDataType","NavigationNodeQuery","NavigationNodeStyles","NavigationNodeType","NavigationRenders","NodeId","OutlookCalendarType","PageCollectionTopic","PageDataType","PageFeedbackBlockStyles","PageFeedbackDialogStyles","PageFeedbacksStyles","PageId","PageItemTemplateStyles","PagePickerNodeStyles","PagePickerProviderStyles","PagePropertiesBlockAdvancedStyles","PagePropertiesBlockStyles","PageRollUpDialogViewStyles","PageRollupBlockCardViewSettingsStyles","PageRollupBlockListViewSettingsStyles","PageRollupBlockListViewViewStyles","PageRollupBlockListingWithImageViewViewStyles","PageRollupBlockRollerViewViewStyles","PageRollupBlockSettingsFilterTabStyles","PageRollupBlockSettingsGeneralTabStyles","PageRollupBlockStyles","PageRollupConstants","PageRollupEnums","PageRollupListViewSettingsStyles","PageRollupListViewStyles","PageRollupListingPickedPagesStyles","PageRollupNavigationViewStyles","PageRollupNewsletterViewStyles","PageRollupPickedPagesDialogStyles","PageTopic","PageTypeConstants","PagesDashboardSettingsStyles","PagingTypes","Parameters","ParticipantType","PendingFileStatus","PublishingAppBootRouteProperty","PublishingAppLayoutDefinition","PublishingAppReuseContentSettingsRouteProperty","PublishingAppTopic","RecurrenceTypeEnums","RelatedLinkAddHeadingDialogStyles","RelatedLinkBlockStyles","RelatedLinkEditFormStyles","RelatedLinkElementName","ResourceEvaluators","ReusablePageStatusType","ReuseContentMode","RoleDefinitions","RootService","RssReaderBlockLeftImageViewStyles","RssReaderBlockNoImageViewStyles","RssReaderBlockStyles","RuleStatus","RuleTypes","ScheduleEndTypeEnums","SearchTemplateOmniaPageStyles","SelectedPageItemStyles","SharepointPageTemplateStyles","SignOffRequestBlockStyles","SignOffRequestConstants","TagTopic","TaxonomyNavigationStyles","TaxonomyTopic","TopicInformationType","TopicType","UserTopic","VariationId","VariationInputStyles","VariationsRouteProperty","VersionId","VersionType","VersionUpdationMode","VideoType","WCMFxLocalization","WCMNavigationDataTypes","WCMPageIdCustomPropertyName","WCMPageTypes","WCMReaderContext","WCMRecipientsEnterpriseProperties","WcmGroupManifests","WcmLayoutProvider","WcmPropertyDefaultBooleanValues","WcmPropertyDefaultValues","WcmResourceManifests","WcmService","WcmWebComponentManifests","WeekOfMonthEnums","WorkplaceService","layoutItemAction"]}}}
|