@omnia/wcm 6.7.100-preview → 6.7.104-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/core/loc/CoreLocalization.d.ts +25 -0
- package/internal-do-not-import-from-here/core/loc/PageRollupLocalization.d.ts +5 -23
- package/internal-do-not-import-from-here/core/ux/FilterTargetingPropertyValueInput.d.ts +35 -0
- package/internal-do-not-import-from-here/core/ux/index.d.ts +1 -1
- package/internal-do-not-import-from-here/fx/models/Constants.d.ts +1 -0
- package/internal-do-not-import-from-here/fx/models/Constants.js +1 -0
- package/internal-do-not-import-from-here/fx/models/channels/ChannelPages.d.ts +2 -2
- package/internal-do-not-import-from-here/fx/models/channels/{Channel.d.ts → PublishingChannel.d.ts} +5 -3
- package/internal-do-not-import-from-here/fx/models/channels/PublishingChannel.js +3 -0
- package/internal-do-not-import-from-here/fx/models/channels/index.d.ts +1 -1
- package/internal-do-not-import-from-here/fx/models/channels/index.js +1 -1
- package/internal-do-not-import-from-here/fx/models/components/FilterSettings.d.ts +34 -0
- package/internal-do-not-import-from-here/fx/models/components/FilterSettings.js +28 -0
- package/internal-do-not-import-from-here/fx/models/components/PageRollupBlock.d.ts +16 -23
- package/internal-do-not-import-from-here/fx/models/components/index.d.ts +1 -0
- package/internal-do-not-import-from-here/fx/models/components/index.js +1 -0
- package/internal-do-not-import-from-here/fx/models/infoscreen/AdminInfoScreenBlock.d.ts +5 -4
- package/internal-do-not-import-from-here/fx/models/pagequery/PageDetailsQuery.d.ts +4 -4
- package/internal-do-not-import-from-here/fx/models/pagequery/PageRollupEnums.d.ts +4 -21
- package/internal-do-not-import-from-here/fx/models/pagequery/PageRollupEnums.js +4 -25
- package/internal-do-not-import-from-here/fx/models/pagequery/PageRollupListViewSettings.d.ts +2 -2
- package/internal-do-not-import-from-here/fx/models/query/PageQuery.d.ts +4 -3
- package/internal-do-not-import-from-here/fx/models/social/Topics/PublishingChannelTopic.d.ts +7 -0
- package/internal-do-not-import-from-here/fx/models/social/Topics/PublishingChannelTopic.js +12 -0
- package/internal-do-not-import-from-here/fx/models/social/Topics/Topic.d.ts +2 -1
- package/internal-do-not-import-from-here/fx/models/social/Topics/Topic.js +1 -0
- package/internal-do-not-import-from-here/fx/models/social/Topics/index.d.ts +1 -0
- package/internal-do-not-import-from-here/fx/models/social/Topics/index.js +1 -0
- package/internal-do-not-import-from-here/fx/services/ChannelManagementService.d.ts +13 -12
- package/internal-do-not-import-from-here/fx/stores/ChannelManagementStore.d.ts +32 -23
- package/internal-do-not-import-from-here/fx/stores/PageRollupStore.d.ts +3 -3
- package/internal-do-not-import-from-here/fx/stores/PageRollupStoreHelper.d.ts +5 -2
- package/internal-do-not-import-from-here/manifests/omnia.wcm.fx.core.manifest.json +1 -1
- package/internal-do-not-import-from-here/models/social/Subscription.d.ts +2 -1
- package/internal-do-not-import-from-here/models/social/Subscription.js +1 -1
- package/package.json +1 -1
- package/internal-do-not-import-from-here/core/ux/FilterTaxonomyValueInput.d.ts +0 -27
- package/internal-do-not-import-from-here/fx/models/channels/Channel.js +0 -3
|
@@ -113,6 +113,31 @@ export declare module WCMCoreLocalization {
|
|
|
113
113
|
Description: string;
|
|
114
114
|
};
|
|
115
115
|
};
|
|
116
|
+
BlockSettings: {
|
|
117
|
+
IncludeChildTerms: string;
|
|
118
|
+
IncludeEmpty: string;
|
|
119
|
+
DatePeriods: {
|
|
120
|
+
OneWeekFromToday: string;
|
|
121
|
+
TwoWeeksFromToday: string;
|
|
122
|
+
OneMonthFromToday: string;
|
|
123
|
+
EarlierThanNow: string;
|
|
124
|
+
LaterThanNow: string;
|
|
125
|
+
};
|
|
126
|
+
TaxonomyFilterTypes: {
|
|
127
|
+
FixedValue: string;
|
|
128
|
+
CurrentPage: string;
|
|
129
|
+
User: string;
|
|
130
|
+
};
|
|
131
|
+
UIFilterOption: {
|
|
132
|
+
Searchbox: string;
|
|
133
|
+
MyDrafts: string;
|
|
134
|
+
HideFilter: string;
|
|
135
|
+
};
|
|
136
|
+
BooleanFilterOption: {
|
|
137
|
+
Yes: string;
|
|
138
|
+
No: string;
|
|
139
|
+
};
|
|
140
|
+
};
|
|
116
141
|
PropertyMapping: {
|
|
117
142
|
PropertyToStoreData: string;
|
|
118
143
|
};
|
|
@@ -2,6 +2,9 @@ export declare module PageRollupLocalization {
|
|
|
2
2
|
const namespace = "OWCM.PageRollup";
|
|
3
3
|
interface locInterface {
|
|
4
4
|
ControlTitle: string;
|
|
5
|
+
/**
|
|
6
|
+
* Some properties were moved to a more generic WCMCoreLocalization
|
|
7
|
+
* */
|
|
5
8
|
Settings: {
|
|
6
9
|
General: string;
|
|
7
10
|
Create: string;
|
|
@@ -41,20 +44,6 @@ export declare module PageRollupLocalization {
|
|
|
41
44
|
SearchBoxRounded: string;
|
|
42
45
|
SearchBoxFilled: string;
|
|
43
46
|
CollapseFilter: string;
|
|
44
|
-
DatePeriods: {
|
|
45
|
-
OneWeekFromToday: string;
|
|
46
|
-
TwoWeeksFromToday: string;
|
|
47
|
-
OneMonthFromToday: string;
|
|
48
|
-
EarlierThanNow: string;
|
|
49
|
-
LaterThanNow: string;
|
|
50
|
-
};
|
|
51
|
-
TaxonomyFilterTypes: {
|
|
52
|
-
FixedValue: string;
|
|
53
|
-
CurrentPage: string;
|
|
54
|
-
User: string;
|
|
55
|
-
};
|
|
56
|
-
IncludeChildTerms: string;
|
|
57
|
-
IncludeEmpty: string;
|
|
58
47
|
Paging: string;
|
|
59
48
|
PageSize: string;
|
|
60
49
|
PagingType: {
|
|
@@ -62,10 +51,6 @@ export declare module PageRollupLocalization {
|
|
|
62
51
|
Classic: string;
|
|
63
52
|
Scroll: string;
|
|
64
53
|
};
|
|
65
|
-
BooleanFilterOption: {
|
|
66
|
-
Yes: string;
|
|
67
|
-
No: string;
|
|
68
|
-
};
|
|
69
54
|
Scope: {
|
|
70
55
|
Label: string;
|
|
71
56
|
Tenant: string;
|
|
@@ -75,11 +60,6 @@ export declare module PageRollupLocalization {
|
|
|
75
60
|
NavigationPath: string;
|
|
76
61
|
Channels: string;
|
|
77
62
|
};
|
|
78
|
-
UIFilterOption: {
|
|
79
|
-
Searchbox: string;
|
|
80
|
-
MyDrafts: string;
|
|
81
|
-
HideFilter: string;
|
|
82
|
-
};
|
|
83
63
|
SearchBoxMessage: {
|
|
84
64
|
SearchOnPageTitleAnd: string;
|
|
85
65
|
PageProperties: string;
|
|
@@ -116,6 +96,8 @@ export declare module PageRollupLocalization {
|
|
|
116
96
|
EnableClientCaching: string;
|
|
117
97
|
PageType: string;
|
|
118
98
|
Channel: string;
|
|
99
|
+
CurrentUserSubscription: string;
|
|
100
|
+
CustomQuery: string;
|
|
119
101
|
};
|
|
120
102
|
PagePicker: {
|
|
121
103
|
AddPage: string;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { TaxonomyPropertySettings } from "@omnia/fx/models";
|
|
2
|
+
import { VueComponentBase, VueComponentBaseProps } from "@omnia/fx/ux";
|
|
3
|
+
import { FilterSettingsEnums, TaxonomyUIFilter } from "../../fx/models";
|
|
4
|
+
export interface IFilterTargetingPropertyValueInput extends VueComponentBaseProps {
|
|
5
|
+
valueObj: TaxonomyUIFilter;
|
|
6
|
+
settings: TaxonomyPropertySettings;
|
|
7
|
+
filterSettingsClass: string;
|
|
8
|
+
alignSelfCenterClass: string;
|
|
9
|
+
filterTypes: Array<{
|
|
10
|
+
id: FilterSettingsEnums.FilterTypes;
|
|
11
|
+
title: string;
|
|
12
|
+
}>;
|
|
13
|
+
updateBlockData: () => void;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Generic component created for all targeting properties
|
|
17
|
+
* */
|
|
18
|
+
export declare class FilterTargetingPropertyValueInput extends VueComponentBase<IFilterTargetingPropertyValueInput> {
|
|
19
|
+
valueObj: TaxonomyUIFilter;
|
|
20
|
+
settings: TaxonomyPropertySettings;
|
|
21
|
+
filterSettingsClass: string;
|
|
22
|
+
alignSelfCenterClass: string;
|
|
23
|
+
filterTypes: Array<{
|
|
24
|
+
id: FilterSettingsEnums.FilterTypes;
|
|
25
|
+
title: string;
|
|
26
|
+
}>;
|
|
27
|
+
updateBlockData: () => void;
|
|
28
|
+
private loc;
|
|
29
|
+
created(): void;
|
|
30
|
+
renderFilterTypePicker(h: any): JSX.Element;
|
|
31
|
+
renderFixedValuePicker(h: any): JSX.Element;
|
|
32
|
+
renderIncludeChildTermsCheckbox(h: any): JSX.Element;
|
|
33
|
+
renderIncludeEmptyCheckbox(h: any): JSX.Element;
|
|
34
|
+
render(h: any): JSX.Element;
|
|
35
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export * from "./EnterprisePropertyRenderer";
|
|
2
|
-
export * from "./
|
|
2
|
+
export * from "./FilterTargetingPropertyValueInput";
|
|
@@ -22,6 +22,7 @@ export declare const PageRollupConstants: {
|
|
|
22
22
|
readonly PageSizeMax: number;
|
|
23
23
|
readonly DefaultPageSize: number;
|
|
24
24
|
readonly channelIdInternalName: string;
|
|
25
|
+
readonly FilterByCurrentUserSubscription: string;
|
|
25
26
|
};
|
|
26
27
|
export declare const Constants: {
|
|
27
28
|
social: {
|
|
@@ -26,6 +26,7 @@ export var PageRollupConstants = {
|
|
|
26
26
|
get PageSizeMax() { return 200; },
|
|
27
27
|
get DefaultPageSize() { return 30; },
|
|
28
28
|
get channelIdInternalName() { return "PChannelId"; },
|
|
29
|
+
get FilterByCurrentUserSubscription() { return "CurrentUserSubscription"; },
|
|
29
30
|
};
|
|
30
31
|
export var Constants = {
|
|
31
32
|
social: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { PublishingChannelId } from "./PublishingChannel";
|
|
1
2
|
import { PageId } from "../pages";
|
|
2
|
-
import { ChannelId } from "./Channel";
|
|
3
3
|
export declare enum PublishingStatus {
|
|
4
4
|
PendingPublishing = 0,
|
|
5
5
|
PendingApproval = 1,
|
|
@@ -7,7 +7,7 @@ export declare enum PublishingStatus {
|
|
|
7
7
|
}
|
|
8
8
|
export interface ChannelPage {
|
|
9
9
|
pageId: PageId;
|
|
10
|
-
channelId:
|
|
10
|
+
channelId: PublishingChannelId;
|
|
11
11
|
status: PublishingStatus;
|
|
12
12
|
createdBy: string;
|
|
13
13
|
}
|
package/internal-do-not-import-from-here/fx/models/channels/{Channel.d.ts → PublishingChannel.d.ts}
RENAMED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { Guid, Identity, MediaPickerImage, MultilingualString } from "@omnia/fx-models";
|
|
2
|
-
|
|
2
|
+
import { TargetingFilterProperty } from "@omnia/fx-sp/models";
|
|
3
|
+
export declare enum PublishingChannelId {
|
|
3
4
|
}
|
|
4
|
-
export interface
|
|
5
|
-
id:
|
|
5
|
+
export interface PublishingChannel {
|
|
6
|
+
id: PublishingChannelId;
|
|
6
7
|
securityResourceId: Guid;
|
|
7
8
|
title: MultilingualString;
|
|
8
9
|
description: MultilingualString;
|
|
@@ -11,6 +12,7 @@ export interface Channel {
|
|
|
11
12
|
image: MediaPickerImage;
|
|
12
13
|
administrator: Array<Identity>;
|
|
13
14
|
publisher: Array<Identity>;
|
|
15
|
+
targetingFilter?: TargetingFilterProperty;
|
|
14
16
|
imageUrl?: string;
|
|
15
17
|
multilingualTitle?: string;
|
|
16
18
|
multilingualDescription?: string;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { GuidValue } from "@omnia/fx/models";
|
|
2
|
+
export interface TaxonomyQueryFilter {
|
|
3
|
+
fixedTermIds?: Array<GuidValue>;
|
|
4
|
+
filterType: FilterSettingsEnums.FilterTypes;
|
|
5
|
+
includeChildTerms: boolean;
|
|
6
|
+
includeEmpty: boolean;
|
|
7
|
+
}
|
|
8
|
+
export interface TaxonomyUIFilter extends TaxonomyQueryFilter {
|
|
9
|
+
termIds: Array<GuidValue>;
|
|
10
|
+
fixedTermIds: Array<GuidValue>;
|
|
11
|
+
}
|
|
12
|
+
export declare module FilterSettingsEnums {
|
|
13
|
+
enum DatePeriods {
|
|
14
|
+
OneWeekFromToday = 1,
|
|
15
|
+
TwoWeeksFromToday = 2,
|
|
16
|
+
OneMonthFromToday = 3,
|
|
17
|
+
LaterThanNow = 4,
|
|
18
|
+
EarlierThanNow = 5
|
|
19
|
+
}
|
|
20
|
+
enum FilterTypes {
|
|
21
|
+
FixedValue = 1,
|
|
22
|
+
CurrentPage = 2,
|
|
23
|
+
User = 3,
|
|
24
|
+
CurrentTerm = 4
|
|
25
|
+
}
|
|
26
|
+
enum DateTimeModes {
|
|
27
|
+
Normal = 1,
|
|
28
|
+
Social = 2
|
|
29
|
+
}
|
|
30
|
+
enum BooleanFilterOptions {
|
|
31
|
+
Yes = 1,
|
|
32
|
+
No = 2
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export var FilterSettingsEnums;
|
|
2
|
+
(function (FilterSettingsEnums) {
|
|
3
|
+
var DatePeriods;
|
|
4
|
+
(function (DatePeriods) {
|
|
5
|
+
DatePeriods[DatePeriods["OneWeekFromToday"] = 1] = "OneWeekFromToday";
|
|
6
|
+
DatePeriods[DatePeriods["TwoWeeksFromToday"] = 2] = "TwoWeeksFromToday";
|
|
7
|
+
DatePeriods[DatePeriods["OneMonthFromToday"] = 3] = "OneMonthFromToday";
|
|
8
|
+
DatePeriods[DatePeriods["LaterThanNow"] = 4] = "LaterThanNow";
|
|
9
|
+
DatePeriods[DatePeriods["EarlierThanNow"] = 5] = "EarlierThanNow";
|
|
10
|
+
})(DatePeriods = FilterSettingsEnums.DatePeriods || (FilterSettingsEnums.DatePeriods = {}));
|
|
11
|
+
var FilterTypes;
|
|
12
|
+
(function (FilterTypes) {
|
|
13
|
+
FilterTypes[FilterTypes["FixedValue"] = 1] = "FixedValue";
|
|
14
|
+
FilterTypes[FilterTypes["CurrentPage"] = 2] = "CurrentPage";
|
|
15
|
+
FilterTypes[FilterTypes["User"] = 3] = "User";
|
|
16
|
+
FilterTypes[FilterTypes["CurrentTerm"] = 4] = "CurrentTerm";
|
|
17
|
+
})(FilterTypes = FilterSettingsEnums.FilterTypes || (FilterSettingsEnums.FilterTypes = {}));
|
|
18
|
+
var DateTimeModes;
|
|
19
|
+
(function (DateTimeModes) {
|
|
20
|
+
DateTimeModes[DateTimeModes["Normal"] = 1] = "Normal";
|
|
21
|
+
DateTimeModes[DateTimeModes["Social"] = 2] = "Social";
|
|
22
|
+
})(DateTimeModes = FilterSettingsEnums.DateTimeModes || (FilterSettingsEnums.DateTimeModes = {}));
|
|
23
|
+
var BooleanFilterOptions;
|
|
24
|
+
(function (BooleanFilterOptions) {
|
|
25
|
+
BooleanFilterOptions[BooleanFilterOptions["Yes"] = 1] = "Yes";
|
|
26
|
+
BooleanFilterOptions[BooleanFilterOptions["No"] = 2] = "No";
|
|
27
|
+
})(BooleanFilterOptions = FilterSettingsEnums.BooleanFilterOptions || (FilterSettingsEnums.BooleanFilterOptions = {}));
|
|
28
|
+
})(FilterSettingsEnums || (FilterSettingsEnums = {}));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { GuidValue, Identity, MultilingualString, PropertyIndexedType, RollupOtherTypes, SpacingSettings, Tag } from '@omnia/fx-models';
|
|
2
|
-
import { Page, PageDialogPropertiesMapping, PageItemNode, PageRollupEnums, PagingTypes } from '..';
|
|
3
|
-
import {
|
|
2
|
+
import { FilterSettingsEnums, Page, PageDialogPropertiesMapping, PageItemNode, PageRollupEnums, PagingTypes, TaxonomyQueryFilter, TaxonomyUIFilter } from '..';
|
|
3
|
+
import { PublishingChannelId } from '../channels';
|
|
4
4
|
import { PageId } from '../pages';
|
|
5
5
|
import { VariationId } from '../variations';
|
|
6
6
|
export interface PageRollupViewSettings {
|
|
@@ -48,21 +48,17 @@ export interface PageRollupPersonPropertyFilterValue extends PageRollupPropertyF
|
|
|
48
48
|
value: Array<Identity>;
|
|
49
49
|
}
|
|
50
50
|
export interface PageRollupDatePropertyFilterValue extends PageRollupPropertyFilterValue {
|
|
51
|
-
value:
|
|
51
|
+
value: FilterSettingsEnums.DatePeriods;
|
|
52
52
|
}
|
|
53
53
|
export interface PageRollupTagPropertyFilterValue extends PageRollupPropertyFilterValue {
|
|
54
54
|
value: Array<Tag>;
|
|
55
|
-
filterType:
|
|
55
|
+
filterType: FilterSettingsEnums.FilterTypes;
|
|
56
56
|
}
|
|
57
|
-
export interface PageRollupTaxonomyPropertyFilterValue extends
|
|
58
|
-
fixedTermIds?: Array<string>;
|
|
59
|
-
filterType: PageRollupEnums.FilterTypes;
|
|
60
|
-
includeChildTerms: boolean;
|
|
61
|
-
includeEmpty: boolean;
|
|
57
|
+
export interface PageRollupTaxonomyPropertyFilterValue extends TaxonomyQueryFilter {
|
|
62
58
|
}
|
|
63
59
|
export interface PageRollupLanguagePropertyFilterValue extends PageRollupPropertyFilterValue {
|
|
64
60
|
value: string[];
|
|
65
|
-
filterType:
|
|
61
|
+
filterType: FilterSettingsEnums.FilterTypes;
|
|
66
62
|
}
|
|
67
63
|
/**
|
|
68
64
|
*
|
|
@@ -77,14 +73,14 @@ export interface PageRollupUiFilter {
|
|
|
77
73
|
export interface PageRollupUiFilterValue {
|
|
78
74
|
}
|
|
79
75
|
export interface PageRollupUiDatePeriodsFilterValue extends PageRollupUiDatePropFilterValue {
|
|
80
|
-
value:
|
|
76
|
+
value: FilterSettingsEnums.DatePeriods;
|
|
81
77
|
}
|
|
82
78
|
export interface PageRollupUiDatePropFilterValue extends PageRollupUiFilterValue {
|
|
83
79
|
from: string;
|
|
84
80
|
to: string;
|
|
85
81
|
}
|
|
86
82
|
export interface PageRollupUiBooleanPropFilterValue extends PageRollupUiFilterValue {
|
|
87
|
-
value:
|
|
83
|
+
value: FilterSettingsEnums.BooleanFilterOptions;
|
|
88
84
|
}
|
|
89
85
|
export interface PageRollupUiTextPropFilterValue extends PageRollupUiFilterValue {
|
|
90
86
|
text: string;
|
|
@@ -95,12 +91,7 @@ export interface PageRollupUiNumberPropFilterValue extends PageRollupUiFilterVal
|
|
|
95
91
|
export interface PageRollupUiPersonPropFilterValue extends PageRollupUiFilterValue {
|
|
96
92
|
value: Array<Identity>;
|
|
97
93
|
}
|
|
98
|
-
export interface PageRollupUiTaxonomyPropFilterValue extends
|
|
99
|
-
termIds: Array<GuidValue>;
|
|
100
|
-
fixedTermIds: Array<GuidValue>;
|
|
101
|
-
filterType: PageRollupEnums.FilterTypes;
|
|
102
|
-
includeChildTerms: boolean;
|
|
103
|
-
includeEmpty: boolean;
|
|
94
|
+
export interface PageRollupUiTaxonomyPropFilterValue extends TaxonomyUIFilter {
|
|
104
95
|
}
|
|
105
96
|
export interface PageRollupUiSearchboxFilterValue extends PageRollupUiTextPropFilterValue {
|
|
106
97
|
properties: Array<string>;
|
|
@@ -117,7 +108,7 @@ export interface PageRollupPageTypePropertyFilterValue extends PageRollupPropert
|
|
|
117
108
|
value: Array<PageId>;
|
|
118
109
|
}
|
|
119
110
|
export interface PageRollupChannelFilterValue extends PageRollupPropertyFilterValue {
|
|
120
|
-
value: Array<
|
|
111
|
+
value: Array<PublishingChannelId>;
|
|
121
112
|
}
|
|
122
113
|
export interface PageRollupBlockBreakPointSettings {
|
|
123
114
|
selectedViewId: string;
|
|
@@ -136,6 +127,7 @@ export interface PageRollupBlockBreakPointSettings {
|
|
|
136
127
|
noResultText: string | MultilingualString;
|
|
137
128
|
pagingType: PagingTypes;
|
|
138
129
|
itemLimit: number;
|
|
130
|
+
currentUserSubscription?: boolean;
|
|
139
131
|
}
|
|
140
132
|
export interface PageRollupBlockProperty {
|
|
141
133
|
pickedPages?: Array<PageItemNode>;
|
|
@@ -162,10 +154,10 @@ export interface PageRollupBlockSettings {
|
|
|
162
154
|
viewSettings: PageRollupViewSettings;
|
|
163
155
|
uiFilters: Array<PageRollupUiFilter>;
|
|
164
156
|
title: MultilingualString;
|
|
165
|
-
likePeriod?:
|
|
166
|
-
commentPeriod?:
|
|
167
|
-
ratingPeriod?:
|
|
168
|
-
feedbackPeriod?:
|
|
157
|
+
likePeriod?: FilterSettingsEnums.DatePeriods;
|
|
158
|
+
commentPeriod?: FilterSettingsEnums.DatePeriods;
|
|
159
|
+
ratingPeriod?: FilterSettingsEnums.DatePeriods;
|
|
160
|
+
feedbackPeriod?: FilterSettingsEnums.DatePeriods;
|
|
169
161
|
sortBy?: string;
|
|
170
162
|
sortDescending?: boolean;
|
|
171
163
|
showCreateButton?: boolean;
|
|
@@ -196,6 +188,7 @@ export interface PageRollupBlockSettings {
|
|
|
196
188
|
useRouter: boolean;
|
|
197
189
|
navigationDepthLevel: number;
|
|
198
190
|
navigationStartNode?: PageItemNode;
|
|
191
|
+
currentUserSubscription?: boolean;
|
|
199
192
|
}
|
|
200
193
|
export interface PageTypeSelection extends Page {
|
|
201
194
|
title: string;
|
|
@@ -2,6 +2,7 @@ import { PropertyIndexedType, GuidValue, SpacingSettings, MultilingualString, Ic
|
|
|
2
2
|
import { AdminInfoScreenEnums } from './AdminInfoScreenEnums';
|
|
3
3
|
import { PageQuery, PageRollupEnums, PageRollupPropertyFilter, PagingTypes, PageRollupUiFilter, PageItemNode, VideoType } from '@omnia/wcm/models';
|
|
4
4
|
import { TargetingFilterProperty } from '@omnia/fx-sp/models';
|
|
5
|
+
import { FilterSettingsEnums } from '..';
|
|
5
6
|
export interface BlockDataWithSettingsAndData<Data, Settings> {
|
|
6
7
|
settings: Settings;
|
|
7
8
|
}
|
|
@@ -91,10 +92,10 @@ export interface AdminInfoScreenBlockSettings {
|
|
|
91
92
|
viewSettings: AdminInfoScreenViewSettings;
|
|
92
93
|
uiFilters: Array<PageRollupUiFilter>;
|
|
93
94
|
title: MultilingualString;
|
|
94
|
-
likePeriod?:
|
|
95
|
-
commentPeriod?:
|
|
96
|
-
ratingPeriod?:
|
|
97
|
-
feedbackPeriod?:
|
|
95
|
+
likePeriod?: FilterSettingsEnums.DatePeriods;
|
|
96
|
+
commentPeriod?: FilterSettingsEnums.DatePeriods;
|
|
97
|
+
ratingPeriod?: FilterSettingsEnums.DatePeriods;
|
|
98
|
+
feedbackPeriod?: FilterSettingsEnums.DatePeriods;
|
|
98
99
|
sortBy?: string;
|
|
99
100
|
sortDescending?: boolean;
|
|
100
101
|
showCreateButton?: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FilterSettingsEnums } from '..';
|
|
2
2
|
import { PageNavigationNode, PageNavigationData } from '../navigation';
|
|
3
3
|
import { VariationId } from '../variations';
|
|
4
4
|
export interface PageDetailsQueryResult {
|
|
@@ -27,7 +27,7 @@ export interface SimplePageQuery {
|
|
|
27
27
|
contentProp: string;
|
|
28
28
|
}
|
|
29
29
|
export interface PageSocialCounting {
|
|
30
|
-
datePeriod:
|
|
30
|
+
datePeriod: FilterSettingsEnums.DatePeriods;
|
|
31
31
|
counting: number;
|
|
32
32
|
rating: number;
|
|
33
33
|
internalName: string;
|
|
@@ -35,8 +35,8 @@ export interface PageSocialCounting {
|
|
|
35
35
|
export interface PageDetailsQuery {
|
|
36
36
|
ids: Array<number>;
|
|
37
37
|
internalNames: Array<string>;
|
|
38
|
-
likePeriod:
|
|
39
|
-
commentPeriod:
|
|
38
|
+
likePeriod: FilterSettingsEnums.DatePeriods;
|
|
39
|
+
commentPeriod: FilterSettingsEnums.DatePeriods;
|
|
40
40
|
contentLimit?: number;
|
|
41
41
|
contentProp?: string;
|
|
42
42
|
}
|
|
@@ -1,25 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* PageRollup specific enums
|
|
3
|
+
* Most of the old enums were moved to the more generic FilterSettingsEnums
|
|
4
|
+
* */
|
|
1
5
|
export declare module PageRollupEnums {
|
|
2
|
-
enum DatePeriods {
|
|
3
|
-
OneWeekFromToday = 1,
|
|
4
|
-
TwoWeeksFromToday = 2,
|
|
5
|
-
OneMonthFromToday = 3,
|
|
6
|
-
LaterThanNow = 4,
|
|
7
|
-
EarlierThanNow = 5
|
|
8
|
-
}
|
|
9
|
-
enum FilterTypes {
|
|
10
|
-
FixedValue = 1,
|
|
11
|
-
CurrentPage = 2,
|
|
12
|
-
User = 3,
|
|
13
|
-
CurrentTerm = 4
|
|
14
|
-
}
|
|
15
|
-
enum DateTimeModes {
|
|
16
|
-
Normal = 1,
|
|
17
|
-
Social = 2
|
|
18
|
-
}
|
|
19
|
-
enum BooleanFilterOptions {
|
|
20
|
-
Yes = 1,
|
|
21
|
-
No = 2
|
|
22
|
-
}
|
|
23
6
|
enum RollupScopes {
|
|
24
7
|
Tenant = 1,
|
|
25
8
|
PublishingApps = 2,
|
|
@@ -1,30 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* PageRollup specific enums
|
|
3
|
+
* Most of the old enums were moved to the more generic FilterSettingsEnums
|
|
4
|
+
* */
|
|
1
5
|
export var PageRollupEnums;
|
|
2
6
|
(function (PageRollupEnums) {
|
|
3
|
-
var DatePeriods;
|
|
4
|
-
(function (DatePeriods) {
|
|
5
|
-
DatePeriods[DatePeriods["OneWeekFromToday"] = 1] = "OneWeekFromToday";
|
|
6
|
-
DatePeriods[DatePeriods["TwoWeeksFromToday"] = 2] = "TwoWeeksFromToday";
|
|
7
|
-
DatePeriods[DatePeriods["OneMonthFromToday"] = 3] = "OneMonthFromToday";
|
|
8
|
-
DatePeriods[DatePeriods["LaterThanNow"] = 4] = "LaterThanNow";
|
|
9
|
-
DatePeriods[DatePeriods["EarlierThanNow"] = 5] = "EarlierThanNow";
|
|
10
|
-
})(DatePeriods = PageRollupEnums.DatePeriods || (PageRollupEnums.DatePeriods = {}));
|
|
11
|
-
var FilterTypes;
|
|
12
|
-
(function (FilterTypes) {
|
|
13
|
-
FilterTypes[FilterTypes["FixedValue"] = 1] = "FixedValue";
|
|
14
|
-
FilterTypes[FilterTypes["CurrentPage"] = 2] = "CurrentPage";
|
|
15
|
-
FilterTypes[FilterTypes["User"] = 3] = "User";
|
|
16
|
-
FilterTypes[FilterTypes["CurrentTerm"] = 4] = "CurrentTerm";
|
|
17
|
-
})(FilterTypes = PageRollupEnums.FilterTypes || (PageRollupEnums.FilterTypes = {}));
|
|
18
|
-
var DateTimeModes;
|
|
19
|
-
(function (DateTimeModes) {
|
|
20
|
-
DateTimeModes[DateTimeModes["Normal"] = 1] = "Normal";
|
|
21
|
-
DateTimeModes[DateTimeModes["Social"] = 2] = "Social";
|
|
22
|
-
})(DateTimeModes = PageRollupEnums.DateTimeModes || (PageRollupEnums.DateTimeModes = {}));
|
|
23
|
-
var BooleanFilterOptions;
|
|
24
|
-
(function (BooleanFilterOptions) {
|
|
25
|
-
BooleanFilterOptions[BooleanFilterOptions["Yes"] = 1] = "Yes";
|
|
26
|
-
BooleanFilterOptions[BooleanFilterOptions["No"] = 2] = "No";
|
|
27
|
-
})(BooleanFilterOptions = PageRollupEnums.BooleanFilterOptions || (PageRollupEnums.BooleanFilterOptions = {}));
|
|
28
7
|
var RollupScopes;
|
|
29
8
|
(function (RollupScopes) {
|
|
30
9
|
RollupScopes[RollupScopes["Tenant"] = 1] = "Tenant";
|
package/internal-do-not-import-from-here/fx/models/pagequery/PageRollupListViewSettings.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PropertyIndexedType, GuidValue } from '@omnia/fx/models';
|
|
2
|
-
import { PageRollupEnums } from '.';
|
|
3
2
|
import { PageRollupViewSettings } from '..';
|
|
3
|
+
import { FilterSettingsEnums } from '..';
|
|
4
4
|
export interface ListViewColumn {
|
|
5
5
|
internalName: string;
|
|
6
6
|
type: PropertyIndexedType;
|
|
@@ -9,7 +9,7 @@ export interface ListViewColumn {
|
|
|
9
9
|
}
|
|
10
10
|
export interface ListViewDateTimeColumn extends ListViewColumn {
|
|
11
11
|
type: PropertyIndexedType.DateTime;
|
|
12
|
-
mode:
|
|
12
|
+
mode: FilterSettingsEnums.DateTimeModes;
|
|
13
13
|
format: string;
|
|
14
14
|
}
|
|
15
15
|
export interface ListViewMediaColumn extends ListViewColumn {
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ItemQuery, PagingTypes, VariationId, VariationQuery } from '..';
|
|
2
|
+
import { FilterSettingsEnums } from '..';
|
|
2
3
|
export interface PageQuery extends ItemQuery {
|
|
3
|
-
likePeriod:
|
|
4
|
-
commentPeriod:
|
|
4
|
+
likePeriod: FilterSettingsEnums.DatePeriods;
|
|
5
|
+
commentPeriod: FilterSettingsEnums.DatePeriods;
|
|
5
6
|
showMyDrafts?: boolean;
|
|
6
7
|
variationIds: Array<VariationId>;
|
|
7
8
|
variationQueries: Array<VariationQuery>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PublishingChannelId } from '../../channels';
|
|
2
|
+
import { Topic, TopicType } from './Topic';
|
|
3
|
+
export declare class PublishingChannelTopic implements Topic {
|
|
4
|
+
readonly topicType: TopicType;
|
|
5
|
+
readonly publishingChannelId: PublishingChannelId;
|
|
6
|
+
constructor(publishingChannelId: PublishingChannelId);
|
|
7
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { TopicType } from './Topic';
|
|
2
|
+
var PublishingChannelTopic = /** @class */ (function () {
|
|
3
|
+
function PublishingChannelTopic(publishingChannelId) {
|
|
4
|
+
if (!publishingChannelId) {
|
|
5
|
+
new Error("Can't create publishing channel topic for publishingChannelId null/undefined");
|
|
6
|
+
}
|
|
7
|
+
this.publishingChannelId = publishingChannelId;
|
|
8
|
+
this.topicType = TopicType.PublishingChannel;
|
|
9
|
+
}
|
|
10
|
+
return PublishingChannelTopic;
|
|
11
|
+
}());
|
|
12
|
+
export { PublishingChannelTopic };
|
|
@@ -6,4 +6,5 @@ export var TopicType;
|
|
|
6
6
|
TopicType[TopicType["PublishingApp"] = 3] = "PublishingApp";
|
|
7
7
|
TopicType[TopicType["Tag"] = 4] = "Tag";
|
|
8
8
|
TopicType[TopicType["Taxonomy"] = 5] = "Taxonomy";
|
|
9
|
+
TopicType[TopicType["PublishingChannel"] = 6] = "PublishingChannel";
|
|
9
10
|
})(TopicType || (TopicType = {}));
|
|
@@ -1,23 +1,24 @@
|
|
|
1
|
+
import { TargetingFilterProperty } from '@omnia/fx-sp/models';
|
|
1
2
|
import { Identity, MediaPickerImage, MultilingualString } from '@omnia/fx/models';
|
|
2
|
-
import {
|
|
3
|
+
import { PublishingChannel, PageId, UserAuthorizedChannelResources, ChannelPage, PublishingStatus, PublishingChannelId } from '../models';
|
|
3
4
|
export declare class ChannelManagementService {
|
|
4
5
|
private httpClient;
|
|
5
6
|
constructor();
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
getSuggestedChannels: () => Promise<
|
|
10
|
-
|
|
7
|
+
createPublishingChannel: (title: MultilingualString, description: MultilingualString, publicUrl: string, owner: Array<Identity>, image: MediaPickerImage, administrator: Array<Identity>, publisher: Array<Identity>, targetingFilter: TargetingFilterProperty) => Promise<PublishingChannel>;
|
|
8
|
+
updatePublishingChannel: (updateData: PublishingChannel) => Promise<PublishingChannel>;
|
|
9
|
+
getPublishingChannels: () => Promise<Array<PublishingChannel>>;
|
|
10
|
+
getSuggestedChannels: () => Promise<PublishingChannel[]>;
|
|
11
|
+
getPublishingChannelById: (channelId: number) => Promise<PublishingChannel>;
|
|
11
12
|
getChannelPages: (pageId: PageId) => Promise<ChannelPage[]>;
|
|
12
13
|
getPublishedChannelsByPageIds: (pageIds: PageId[]) => Promise<{
|
|
13
|
-
[pageId: number]:
|
|
14
|
+
[pageId: number]: PublishingChannel[];
|
|
14
15
|
}>;
|
|
15
|
-
|
|
16
|
+
deletePublishingChannel: (channelId: PublishingChannelId) => Promise<PublishingChannel>;
|
|
16
17
|
getUserPermissions: (userIdentity: string) => Promise<UserAuthorizedChannelResources>;
|
|
17
18
|
getChannelPagesByStatus: (status: PublishingStatus) => Promise<Array<ChannelPage>>;
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
addPageToChannels: (pageId: number, channelToPublishTo: Array<
|
|
19
|
+
approvePublishPageToChannel: (channel: PublishingChannel, pageId: PageId) => Promise<ChannelPage>;
|
|
20
|
+
rejectPublishPageToChannel: (channel: PublishingChannel, pageId: PageId) => Promise<ChannelPage>;
|
|
21
|
+
addPageToChannels: (pageId: number, channelToPublishTo: Array<PublishingChannelId>) => Promise<Array<ChannelPage>>;
|
|
21
22
|
publishAddedPageToChannel: (pageId: PageId) => Promise<Array<ChannelPage>>;
|
|
22
|
-
publishPageToChannels: (pageId: number, channelToPublishTo: Array<
|
|
23
|
+
publishPageToChannels: (pageId: number, channelToPublishTo: Array<PublishingChannelId>) => Promise<Array<ChannelPage>>;
|
|
23
24
|
}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { Identity, IOmniaContext, MediaPickerImage, MultilingualString, ResolvedUser } from '@omnia/fx-models';
|
|
2
|
+
import { TargetingFilterProperty } from '@omnia/fx-sp/models';
|
|
2
3
|
import { MediaPickerService } from '@omnia/fx/services';
|
|
3
4
|
import { MultilingualStore, Store } from '@omnia/fx/stores';
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
5
|
+
import { PublishingChannel, PageId } from '../models';
|
|
6
|
+
import { PublishingChannelId, ChannelPage } from '../models';
|
|
7
|
+
import { TopicsActivityStore } from './TopicsActivityStore';
|
|
6
8
|
interface ChannelIdtoChannelMap {
|
|
7
|
-
[channelId: number]:
|
|
9
|
+
[channelId: number]: PublishingChannel;
|
|
8
10
|
}
|
|
9
11
|
interface ChannelPageGroupMapping {
|
|
10
12
|
[channelId: number]: Array<number>;
|
|
@@ -14,39 +16,45 @@ export declare class ChannelManagementStore extends Store {
|
|
|
14
16
|
protected omniaContext: IOmniaContext;
|
|
15
17
|
mediaPickerService: MediaPickerService;
|
|
16
18
|
multilingualStore: MultilingualStore;
|
|
17
|
-
|
|
19
|
+
private userTargetingStore;
|
|
20
|
+
topicsActivityStore: TopicsActivityStore;
|
|
21
|
+
publishingChannels: import("@omnia/fx/stores").StoreState<ChannelIdtoChannelMap>;
|
|
18
22
|
waitingforApproveList: import("@omnia/fx/stores").StoreState<ChannelPageGroupMapping>;
|
|
19
23
|
resolvedUser: import("@omnia/fx/stores").StoreState<ResolvedUser>;
|
|
20
24
|
private suggestedChannels;
|
|
21
25
|
private publishedChannelsPage;
|
|
26
|
+
private userPublishingChannelSubscripton;
|
|
27
|
+
private ensuredUserPublishingChannelSubscriptonPromise;
|
|
22
28
|
private publishedChannelsOfPageLoadPromise;
|
|
23
|
-
private
|
|
24
|
-
private
|
|
29
|
+
private channelPages;
|
|
30
|
+
private channelPagesLoadPromise;
|
|
25
31
|
private isPublishingPageToChannels;
|
|
26
32
|
private ensuredLoadDataPromise;
|
|
33
|
+
private ensuredGetPublishingChannelsPromise;
|
|
27
34
|
private userAuthorizedChannelResources;
|
|
28
35
|
constructor();
|
|
29
36
|
onActivated(): void;
|
|
30
37
|
onDisposing(): void;
|
|
31
38
|
getters: {
|
|
32
|
-
getSuggestedChannels: () =>
|
|
39
|
+
getSuggestedChannels: () => PublishingChannel[];
|
|
33
40
|
getPublishedChannelsPage: () => {
|
|
34
|
-
[key: string]:
|
|
41
|
+
[key: string]: PublishingChannel[];
|
|
35
42
|
};
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
hasPublisherPermission: (channel:
|
|
43
|
+
getPublishingChannels: () => PublishingChannel[];
|
|
44
|
+
getPublisingChannelbyId: (channelId: PublishingChannelId) => PublishingChannel;
|
|
45
|
+
hasPublisherPermission: (channel: PublishingChannel, userIdentity: string) => boolean;
|
|
39
46
|
getChannelPages: (pageId: PageId) => ChannelPage[];
|
|
40
47
|
isPublishingPageToChannels: (pageId: PageId) => boolean;
|
|
41
|
-
getWaitingforApprovalPages: (channelId:
|
|
42
|
-
|
|
48
|
+
getWaitingforApprovalPages: (channelId: PublishingChannelId) => number[];
|
|
49
|
+
getAllPublishingChannels: () => PublishingChannel[];
|
|
50
|
+
getUserPublishingChannelSubscripton: () => Array<PublishingChannel>;
|
|
43
51
|
};
|
|
44
52
|
/**
|
|
45
53
|
* Implementation of mutations
|
|
46
54
|
*/
|
|
47
55
|
mutations: {
|
|
48
|
-
|
|
49
|
-
|
|
56
|
+
addOrUpdatePublishingChannel: import("@omnia/fx/stores").StoreMutation<(createdChannels: Array<PublishingChannel>) => void, (createdChannels: PublishingChannel[]) => import("@omnia/fx-models").IMessageBusSubscriptionHandler>;
|
|
57
|
+
deletePublishingChannel: import("@omnia/fx/stores").StoreMutation<(deleteChannel: PublishingChannel) => void, (deleteChannel: PublishingChannel) => import("@omnia/fx-models").IMessageBusSubscriptionHandler>;
|
|
50
58
|
updateChannelPages: import("@omnia/fx/stores").StoreMutation<(pageId: PageId, result: Array<ChannelPage>) => void, (pageId: PageId, result: ChannelPage[]) => import("@omnia/fx-models").IMessageBusSubscriptionHandler>;
|
|
51
59
|
updateIsPublishingPageToChannels: import("@omnia/fx/stores").StoreMutation<(pageId: PageId, isPublishing: boolean) => void, (pageId: PageId, isPublishing: boolean) => import("@omnia/fx-models").IMessageBusSubscriptionHandler>;
|
|
52
60
|
updateWaitingforApprovalPages: import("@omnia/fx/stores").StoreMutation<(channelPages: Array<ChannelPage>) => void, (channelPages: ChannelPage[]) => import("@omnia/fx-models").IMessageBusSubscriptionHandler>;
|
|
@@ -56,24 +64,25 @@ export declare class ChannelManagementStore extends Store {
|
|
|
56
64
|
*/
|
|
57
65
|
actions: {
|
|
58
66
|
ensureUserPermission: import("@omnia/fx/stores").StoreAction<unknown, (userIdentity: string) => void, (result: boolean, userIdentity: string) => void, (failureReason: any, userIdentity: string) => void, (userIdentity: string) => Promise<boolean>>;
|
|
59
|
-
|
|
67
|
+
ensurePublishingChannels: import("@omnia/fx/stores").StoreAction<unknown, () => void, (result: PublishingChannel[]) => void, (failureReason: any) => void, () => Promise<Array<PublishingChannel>>>;
|
|
60
68
|
ensureLoadData: import("@omnia/fx/stores").StoreAction<unknown, () => void, (result: boolean) => void, (failureReason: any) => void, () => Promise<boolean>>;
|
|
61
69
|
ensureChannelPages: import("@omnia/fx/stores").StoreAction<unknown, (pageId: PageId) => void, (result: boolean, pageId: PageId) => void, (failureReason: any, pageId: PageId) => void, (pageId: PageId) => Promise<boolean>>;
|
|
62
70
|
ensurePublishedChannelsByPageId: import("@omnia/fx/stores").StoreAction<unknown, (pageId: PageId) => void, (result: boolean, pageId: PageId) => void, (failureReason: any, pageId: PageId) => void, (pageId: PageId) => Promise<boolean>>;
|
|
63
71
|
ensurePublishedChannelsByPageIds: import("@omnia/fx/stores").StoreAction<unknown, (pageIds: PageId[]) => void, (result: boolean, pageIds: PageId[]) => void, (failureReason: any, pageIds: PageId[]) => void, (pageIds: PageId[]) => Promise<boolean>>;
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
72
|
+
ensurePublishingChannel: import("@omnia/fx/stores").StoreAction<unknown, (channelId: number) => void, (result: PublishingChannel, channelId: number) => void, (failureReason: any, channelId: number) => void, (channelId: number) => Promise<PublishingChannel>>;
|
|
73
|
+
createPublishingChannel: import("@omnia/fx/stores").StoreAction<unknown, (title: MultilingualString, description: MultilingualString, publicUrl: string, owner: Identity[], image: MediaPickerImage, administrator: Identity[], publisher: Identity[], targetingFilter: TargetingFilterProperty) => void, (result: PublishingChannel, title: MultilingualString, description: MultilingualString, publicUrl: string, owner: Identity[], image: MediaPickerImage, administrator: Identity[], publisher: Identity[], targetingFilter: TargetingFilterProperty) => void, (failureReason: any, title: MultilingualString, description: MultilingualString, publicUrl: string, owner: Identity[], image: MediaPickerImage, administrator: Identity[], publisher: Identity[], targetingFilter: TargetingFilterProperty) => void, (title: MultilingualString, description: MultilingualString, publicUrl: string, owner: Array<Identity>, image: MediaPickerImage, administrator: Array<Identity>, publisher: Array<Identity>, targetingFilter: TargetingFilterProperty) => Promise<PublishingChannel>>;
|
|
74
|
+
updatePublishingChannel: import("@omnia/fx/stores").StoreAction<unknown, (editRequest: PublishingChannel) => void, (result: PublishingChannel, editRequest: PublishingChannel) => void, (failureReason: any, editRequest: PublishingChannel) => void, (editRequest: PublishingChannel) => Promise<PublishingChannel>>;
|
|
75
|
+
deletePublishingChannel: import("@omnia/fx/stores").StoreAction<unknown, (channelId: PublishingChannelId) => void, (result: PublishingChannel, channelId: PublishingChannelId) => void, (failureReason: any, channelId: PublishingChannelId) => void, (channelId: PublishingChannelId) => Promise<PublishingChannel>>;
|
|
68
76
|
getPageApprovalList: import("@omnia/fx/stores").StoreAction<unknown, () => void, (result: ChannelPage[]) => void, (failureReason: any) => void, () => Promise<Array<ChannelPage>>>;
|
|
69
|
-
|
|
70
|
-
|
|
77
|
+
approvePublishPageToChannelRequest: import("@omnia/fx/stores").StoreAction<unknown, (channel: PublishingChannel, pageId: PageId) => void, (result: ChannelPage, channel: PublishingChannel, pageId: PageId) => void, (failureReason: any, channel: PublishingChannel, pageId: PageId) => void, (channel: PublishingChannel, pageId: PageId) => Promise<ChannelPage>>;
|
|
78
|
+
rejectPublishPageToChannelRequest: import("@omnia/fx/stores").StoreAction<unknown, (channel: PublishingChannel, pageId: PageId) => void, (result: ChannelPage, channel: PublishingChannel, pageId: PageId) => void, (failureReason: any, channel: PublishingChannel, pageId: PageId) => void, (channel: PublishingChannel, pageId: PageId) => Promise<ChannelPage>>;
|
|
71
79
|
addPageToChannels: import("@omnia/fx/stores").StoreAction<unknown, (pageId: number) => void, (result: ChannelPage[], pageId: number) => void, (failureReason: any, pageId: number) => void, (pageId: number) => Promise<Array<ChannelPage>>>;
|
|
72
80
|
publishPageToChannels: import("@omnia/fx/stores").StoreAction<unknown, (pageId: number) => void, (result: ChannelPage[], pageId: number) => void, (failureReason: any, pageId: number) => void, (pageId: number) => Promise<Array<ChannelPage>>>;
|
|
73
81
|
publishAddedPageToChannel: import("@omnia/fx/stores").StoreAction<unknown, (pageId: number) => void, (result: ChannelPage[], pageId: number) => void, (failureReason: any, pageId: number) => void, (pageId: number) => Promise<Array<ChannelPage>>>;
|
|
82
|
+
ensureUserPublishingChannelSubscripton: import("@omnia/fx/stores").StoreAction<unknown, () => void, (result: boolean) => void, (failureReason: any) => void, () => Promise<boolean>>;
|
|
74
83
|
};
|
|
75
84
|
private updateChannelPagesStatus;
|
|
76
|
-
private
|
|
85
|
+
private mappingPublishingChannels;
|
|
77
86
|
private addOrUpdateUserPermissions;
|
|
78
87
|
}
|
|
79
88
|
export {};
|
|
@@ -46,7 +46,7 @@ export declare class PageRollupStore extends Store {
|
|
|
46
46
|
private indexedDbPageRollup;
|
|
47
47
|
private pageTypes;
|
|
48
48
|
private pageTypesLoadPromise;
|
|
49
|
-
private
|
|
49
|
+
private publishingChannelSettings;
|
|
50
50
|
/**
|
|
51
51
|
* Private properties
|
|
52
52
|
*/
|
|
@@ -66,7 +66,7 @@ export declare class PageRollupStore extends Store {
|
|
|
66
66
|
pageContentDataWithLimit: (contentProp: string, contentLimit: number, pageId: number) => string;
|
|
67
67
|
pageTypesTitle: (page: PageDetailsQueryResult) => string;
|
|
68
68
|
pageTypes: (uniqueKey: string) => PageTypeSelection[];
|
|
69
|
-
|
|
69
|
+
publishingChannelSettings: (uniqueKey: string) => string[];
|
|
70
70
|
};
|
|
71
71
|
private generatePageSocialCountingColumn;
|
|
72
72
|
private getPageRollupDataFromIndexedDB;
|
|
@@ -78,7 +78,7 @@ export declare class PageRollupStore extends Store {
|
|
|
78
78
|
addOrUpdateBatchedPages: import("@omnia/fx/stores").StoreMutation<(data: BatchPageRollupQueryResult, clientCaching: boolean) => void, (data: BatchPageRollupQueryResult, clientCaching: boolean) => import("@omnia/fx-models").IMessageBusSubscriptionHandler>;
|
|
79
79
|
addOrUpdateIndexedDBPages: import("@omnia/fx/stores").StoreMutation<(uniqueKey: string, pages: Array<PageDetailsQueryResult>) => void, (uniqueKey: string, pages: PageDetailsQueryResult[]) => import("@omnia/fx-models").IMessageBusSubscriptionHandler>;
|
|
80
80
|
updatePageTypes: import("@omnia/fx/stores").StoreMutation<(uniqueKey: string, pageTypes: Array<PageTypeSelection>) => void, (uniqueKey: string, pageTypes: PageTypeSelection[]) => import("@omnia/fx-models").IMessageBusSubscriptionHandler>;
|
|
81
|
-
|
|
81
|
+
updatePublishingChannelSettings: import("@omnia/fx/stores").StoreMutation<(uniqueKey: string, channelsId: Array<string>) => void, (uniqueKey: string, channelsId: string[]) => import("@omnia/fx-models").IMessageBusSubscriptionHandler>;
|
|
82
82
|
};
|
|
83
83
|
actions: {
|
|
84
84
|
navigate: import("@omnia/fx/stores").StoreAction<unknown, (node: PageNavigationNode<PageNavigationData>, pageId: number, pageUrl: string) => void, (result: void, node: PageNavigationNode<PageNavigationData>, pageId: number, pageUrl: string) => void, (failureReason: any, node: PageNavigationNode<PageNavigationData>, pageId: number, pageUrl: string) => void, (node: PageNavigationNode<PageNavigationData>, pageId: number, pageUrl: string) => Promise<void>>;
|
|
@@ -26,6 +26,7 @@ declare class InternalPageRollupStoreHelper {
|
|
|
26
26
|
private omniaContext;
|
|
27
27
|
private breakpointStore;
|
|
28
28
|
private termNavigationStore;
|
|
29
|
+
private channelManagementStore;
|
|
29
30
|
private resolvablePageRollupInNP;
|
|
30
31
|
private pageRollupInstancesInNP;
|
|
31
32
|
private pageRollupInstances;
|
|
@@ -74,6 +75,7 @@ declare class InternalPageRollupStoreHelper {
|
|
|
74
75
|
private runIsolatedBatchQueryForInstances;
|
|
75
76
|
private buildQueries;
|
|
76
77
|
private ensurePublishingAppsAndPageCollectionsReady;
|
|
78
|
+
private ensureUpdatePublishingChannelsFilterItems;
|
|
77
79
|
private hookupPageRollupsInWcmLayout;
|
|
78
80
|
private ensureMigrateData;
|
|
79
81
|
private mergeDefaultSettings;
|
|
@@ -83,8 +85,8 @@ declare class InternalPageRollupStoreHelper {
|
|
|
83
85
|
private ensureRunLatestBatchQuery;
|
|
84
86
|
private executeBatchQuery;
|
|
85
87
|
private mapToBatchQueryPages;
|
|
86
|
-
private
|
|
87
|
-
private
|
|
88
|
+
private ensureLoadPageTypesOfInstance;
|
|
89
|
+
private ensureLoadPageTypes;
|
|
88
90
|
}
|
|
89
91
|
export declare class PageRollupStoreHelper {
|
|
90
92
|
private internal;
|
|
@@ -106,6 +108,7 @@ export declare class PageRollupStoreHelper {
|
|
|
106
108
|
getPagesDetails(pageIds: number[], selectProps: PageDialogPropertiesMapping, contentLimit?: number, reloadData?: boolean): Promise<PageDialogData>;
|
|
107
109
|
}
|
|
108
110
|
export declare class FilterManager {
|
|
111
|
+
private static targetingPropertyStore;
|
|
109
112
|
static buildSearchQuery(filters: Array<RollupFilter>, searchText: string, enterprisePropertyDefinitions: EnterprisePropertyDefinition[], searchFilter: PageRollupUiSearchboxFilterValue, enableWildcardSearch: boolean): QueryFilter[];
|
|
110
113
|
private static generatSearchFilter;
|
|
111
114
|
static isOPMProcessProperty(enterprisePropertyDefinition: EnterprisePropertyDefinition): boolean;
|
|
@@ -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","ButtonGroupings","CalendarRollupBlockListViewSettingsStyles","CalendarRollupBlockSettingsStyles","CalendarRollupBlockStyles","CalendarRollupEnums","CalendarType","CardTypes","ChannelCardViewStyles","
|
|
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","ButtonGroupings","CalendarRollupBlockListViewSettingsStyles","CalendarRollupBlockSettingsStyles","CalendarRollupBlockStyles","CalendarRollupEnums","CalendarType","CardTypes","ChannelCardViewStyles","ChildStructureType","ColleagueDialogContentStyles","CommentSorting","CommunityAppLayoutDefinition","CommunityPageActivityStyles","CommunityStyles","Constants","ContentBlockModes","ContentBlockStyles","CurrentNavigationBlockSettingsStyles","CurrentNavigationBlockStyles","CurrentNavigationStatus","CurrentPageStatus","DailyRecurrenceTypeEnums","DeletedPageDialogStyles","Directions","DocumentTypes","DynamicRollerSizes","DynamicRollerTypes","EnterpriseGlossaryPageInformationProviderStyles","EnterprisePropertiesBlockDateTimeModes","EnterprisePropertiesRichTextSettings","EnterprisePropertyDataTypeProvider","EnterprisePropertyDocumentProviderProperty","EventAttedeeType","EventCloneDialogContentStyles","EventParticipantCounterBlockStyles","EventParticipantListEnums","EventParticipantListStyles","EventParticipantListViewStyles","FilterSettingsEnums","HtmlScriptBlockStyle","InfoScreenConstants","InfoScreenManifests","InfoScreenViewIdConstants","ItemQueryEnums","LabelPositions","LinkPickerStyle","MediaBlockStyles","MediaPickerStorageProviderPageContext","MediaPickerStorageProviderPageCreationContext","MediaPickerStorageProviderPageReadContext","MediaPickerStorageProviderWCMChannelAdminContext","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","PublishingAppArchiveSettingsRouteProperty","PublishingAppBootRouteProperty","PublishingAppLayoutDefinition","PublishingAppReuseContentSettingsRouteProperty","PublishingAppTopic","PublishingChannelId","PublishingChannelTopic","PublishingStatus","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","WcmExtension","WcmGroupManifests","WcmLayoutProvider","WcmPropertyDefaultBooleanValues","WcmPropertyDefaultValues","WcmResourceManifests","WcmService","WcmWebComponentManifests","WeekOfMonthEnums","WorkplaceService","YammerProperties","layoutItemAction"]}}}
|
|
@@ -3,5 +3,5 @@ export var SubscriptionTypes;
|
|
|
3
3
|
SubscriptionTypes[SubscriptionTypes["publishingApp"] = 0] = "publishingApp";
|
|
4
4
|
SubscriptionTypes[SubscriptionTypes["pageCollection"] = 1] = "pageCollection";
|
|
5
5
|
SubscriptionTypes[SubscriptionTypes["page"] = 2] = "page";
|
|
6
|
-
|
|
6
|
+
SubscriptionTypes[SubscriptionTypes["publishingChannel"] = 3] = "publishingChannel";
|
|
7
7
|
})(SubscriptionTypes || (SubscriptionTypes = {}));
|
package/package.json
CHANGED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { TaxonomyPropertySettings } from "@omnia/fx/models";
|
|
2
|
-
import { VueComponentBase, VueComponentBaseProps } from "@omnia/fx/ux";
|
|
3
|
-
import { PageRollupEnums, PageRollupUiTaxonomyPropFilterValue } from "../../fx/models";
|
|
4
|
-
export interface IFilterTaxonomyValueInputProps extends VueComponentBaseProps {
|
|
5
|
-
valueObj: PageRollupUiTaxonomyPropFilterValue;
|
|
6
|
-
settings: TaxonomyPropertySettings;
|
|
7
|
-
filterSettingsClass: string;
|
|
8
|
-
alignSelfCenterClass: string;
|
|
9
|
-
filterTypes: Array<{
|
|
10
|
-
id: PageRollupEnums.FilterTypes;
|
|
11
|
-
title: string;
|
|
12
|
-
}>;
|
|
13
|
-
updateBlockData: () => void;
|
|
14
|
-
}
|
|
15
|
-
export declare class FilterTaxonomyValueInput extends VueComponentBase<IFilterTaxonomyValueInputProps> {
|
|
16
|
-
valueObj: PageRollupUiTaxonomyPropFilterValue;
|
|
17
|
-
settings: TaxonomyPropertySettings;
|
|
18
|
-
filterSettingsClass: string;
|
|
19
|
-
alignSelfCenterClass: string;
|
|
20
|
-
filterTypes: Array<{
|
|
21
|
-
id: PageRollupEnums.FilterTypes;
|
|
22
|
-
title: string;
|
|
23
|
-
}>;
|
|
24
|
-
updateBlockData: () => void;
|
|
25
|
-
private loc;
|
|
26
|
-
render(): JSX.Element[];
|
|
27
|
-
}
|