@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.
@@ -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
- staticDisplayLevel: number;
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
  }
@@ -0,0 +1,6 @@
1
+ import { NavigationData } from "./NavigationData";
2
+ import { NavigationNode } from "./NavigationNode";
3
+ export declare class NavigationNodeQuery<T extends NavigationNode<NavigationData>> {
4
+ node: T;
5
+ depth: number;
6
+ }
@@ -0,0 +1,6 @@
1
+ var NavigationNodeQuery = /** @class */ (function () {
2
+ function NavigationNodeQuery() {
3
+ }
4
+ return NavigationNodeQuery;
5
+ }());
6
+ export { NavigationNodeQuery };
@@ -16,3 +16,4 @@ export * from "./LinkNavigationData";
16
16
  export * from "./INavigationOptions";
17
17
  export * from "./CurrentNavigationStatus";
18
18
  export * from "./AbsoluteNavigationNode";
19
+ export * from "./NavigationNodeQuery";
@@ -17,3 +17,4 @@ export * from "./LinkNavigationData";
17
17
  export * from "./INavigationOptions";
18
18
  export * from "./CurrentNavigationStatus";
19
19
  export * from "./AbsoluteNavigationNode";
20
+ export * from "./NavigationNodeQuery";
@@ -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>>, isRecursive?: boolean) => 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"]}}}
@@ -75,6 +75,7 @@
75
75
  "settingsKey"
76
76
  ],
77
77
  "wcm-mega-menu-settings": [
78
+ "settingsKey",
78
79
  "currentSettings",
79
80
  "onUpdateSettings"
80
81
  ],
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@omnia/wcm",
3
3
  "license": "MIT",
4
- "version": "6.6.115-preview",
4
+ "version": "6.6.119-preview",
5
5
  "description": "Omnia Web Content Management.",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1"