@omnia/fx-sp 7.6.2-preview → 7.6.2
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/contexts/SharePointContext.d.ts +6 -1
- package/internal-do-not-import-from-here/contexts/SharePointContextProvider.d.ts +5 -2
- package/internal-do-not-import-from-here/models/FilterEngine.d.ts +1 -0
- package/internal-do-not-import-from-here/models/Site.d.ts +4 -0
- package/internal-do-not-import-from-here/models/Term.d.ts +5 -0
- package/internal-do-not-import-from-here/services/SiteService.d.ts +2 -1
- package/internal-do-not-import-from-here/services/TermService.d.ts +3 -1
- package/internal-do-not-import-from-here/stores/SharePointUserStore.d.ts +2 -0
- package/internal-do-not-import-from-here/stores/TermStore.d.ts +3 -1
- package/internal-do-not-import-from-here/ux/termpicker/TermPicker.d.ts +8 -4
- package/internal-do-not-import-from-here/ux/termpicker/TermPickerSearch.d.ts +10 -3
- package/internal-do-not-import-from-here/ux/termpicker/loc/localize.d.ts +1 -0
- package/package.json +3 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IMessageBusTopicSubscription } from "@omnia/fx/models";
|
|
1
|
+
import { Future, IMessageBusTopicSubscription } from "@omnia/fx/models";
|
|
2
2
|
import { SharePointEnvironmentContext, SharePointPageContext } from "../models";
|
|
3
3
|
/**
|
|
4
4
|
* Provides SharePoint related contexts, this context works in SharePoint legacy and SPFx.
|
|
@@ -17,6 +17,11 @@ export declare class SharePointContext {
|
|
|
17
17
|
* In the other hand when running in OmniaApp, this is for getting SP context connecting to the current app instance asynchronous
|
|
18
18
|
*/
|
|
19
19
|
get onContextLoadedOrChanged(): IMessageBusTopicSubscription<SharePointPageContext>;
|
|
20
|
+
/**
|
|
21
|
+
* get the load context promise
|
|
22
|
+
* extension can use it to determine whether the context promise has been resolved/rejected
|
|
23
|
+
*/
|
|
24
|
+
get loadContextPromise(): Future<void>;
|
|
20
25
|
/**
|
|
21
26
|
* Omnia SharePoint Environment
|
|
22
27
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AxiosResponse } from "axios";
|
|
2
|
-
import { HttpHeaders, IContextProvider, IMessageBusTopicSubscription } from "../../models";
|
|
2
|
+
import { Future, HttpHeaders, IContextProvider, IMessageBusTopicSubscription } from "../../models";
|
|
3
3
|
import { SharePointPageContext } from "../models";
|
|
4
4
|
/**
|
|
5
5
|
* Provides context for context aware objects such as SharepointContext
|
|
@@ -24,15 +24,18 @@ export declare class SharePointCtxProvider {
|
|
|
24
24
|
private httpContextProviderCollection;
|
|
25
25
|
private omniaContext;
|
|
26
26
|
private httpClient;
|
|
27
|
+
private interalAppContext;
|
|
27
28
|
instance: InternalSharePointCtxProvider;
|
|
28
29
|
constructor();
|
|
29
30
|
private static loadingSPPageContextPromises;
|
|
30
31
|
private _contextChangedPublishSubscriber;
|
|
31
32
|
private _omniaContextChangedSubscriptionHandler;
|
|
33
|
+
private _appContextChangedSubscriptionHandler;
|
|
32
34
|
private _currentAppId;
|
|
33
35
|
private _loadContextPromise;
|
|
34
36
|
onContextLoadedOrChanged(): IMessageBusTopicSubscription<SharePointPageContext>;
|
|
35
|
-
|
|
37
|
+
getLoadContextPromise(): Future<void>;
|
|
38
|
+
getSharePointPageContext: (spUrl: string) => Promise<SharePointPageContext>;
|
|
36
39
|
dispose(): void;
|
|
37
40
|
}
|
|
38
41
|
export {};
|
|
@@ -14,6 +14,7 @@ export interface TaxonomyFilterEngineProperty extends BaseFilterEngineProperty {
|
|
|
14
14
|
defaultValueType: DefaultValueType;
|
|
15
15
|
showDeprecatedTerms: boolean;
|
|
16
16
|
showChipsPropertyLabel: boolean;
|
|
17
|
+
selectChildTerms: boolean;
|
|
17
18
|
}
|
|
18
19
|
export declare enum FilterEngineTaxonomyValueSortOrder {
|
|
19
20
|
TermsetOrder = 0,
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { GuidValue, PropertyBindingSetting } from "@omnia/fx-models";
|
|
2
|
+
import { TermData } from "..";
|
|
2
3
|
export interface Term extends TermBase {
|
|
3
4
|
parentId: GuidValue;
|
|
4
5
|
termSetId: GuidValue;
|
|
@@ -8,6 +9,10 @@ export interface Term extends TermBase {
|
|
|
8
9
|
isReused: boolean;
|
|
9
10
|
isDeprecated: boolean;
|
|
10
11
|
}
|
|
12
|
+
export interface TermPaging extends Term {
|
|
13
|
+
searchIndex: number;
|
|
14
|
+
terms: TermData[];
|
|
15
|
+
}
|
|
11
16
|
export interface TermLabel {
|
|
12
17
|
lcid: number;
|
|
13
18
|
label: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HttpStatusCode } from "../../models";
|
|
2
|
-
import { M365GroupNamingPolicyValidationRequest, M365GroupNamingPolicyValidationResult, SharePointPageContext, SiteAliasValidationRequest, SiteAliasValidationResult } from "../models";
|
|
2
|
+
import { M365GroupNamingPolicyValidationRequest, M365GroupNamingPolicyValidationResult, EnsureSPSiteSelectedPermissionResult, SharePointPageContext, SiteAliasValidationRequest, SiteAliasValidationResult } from "../models";
|
|
3
3
|
export declare class SiteService {
|
|
4
4
|
private omniaContext;
|
|
5
5
|
private httpClient;
|
|
@@ -8,4 +8,5 @@ export declare class SiteService {
|
|
|
8
8
|
checkSiteCollectionStatus: (siteUrl: string) => Promise<HttpStatusCode>;
|
|
9
9
|
validateSiteAlias: (request: SiteAliasValidationRequest) => Promise<SiteAliasValidationResult>;
|
|
10
10
|
validateM365GroupNamingPolicy: (request: M365GroupNamingPolicyValidationRequest) => Promise<M365GroupNamingPolicyValidationResult>;
|
|
11
|
+
ensureSiteSelectedPermission: (spUrl: string) => Promise<EnsureSPSiteSelectedPermissionResult>;
|
|
11
12
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { GuidValue, Language } from "../../models";
|
|
2
|
-
import { Term, TermSet, TermGroupWithTermSets, TermSetWithTerms, TermQuery, TermQueryResult } from "../models";
|
|
2
|
+
import { Term, TermSet, TermGroupWithTermSets, TermSetWithTerms, TermQuery, TermQueryResult, TermPaging } from "../models";
|
|
3
3
|
export declare enum StringMatchOption {
|
|
4
4
|
StartsWith = 0,
|
|
5
5
|
ExactMatch = 1
|
|
@@ -19,6 +19,8 @@ export declare class TermService {
|
|
|
19
19
|
getChildTermsInTermSet: (termSetId: GuidValue, termId?: GuidValue) => Promise<Term[]>;
|
|
20
20
|
addTerm: (termSetId: GuidValue, termName: string, parentTermId: GuidValue) => Promise<Term>;
|
|
21
21
|
searchTerm: (termSetId: GuidValue, searchText: string, lcid: number) => Promise<Term[]>;
|
|
22
|
+
searchTermPagination: (termSetId: GuidValue, searchText: string, lcid: number, searchIndex: number) => Promise<TermPaging>;
|
|
23
|
+
searchExactMatchTermLabel: (termSetId: GuidValue, searchText: string, lcid: number) => Promise<Term[]>;
|
|
22
24
|
getAllTermGroupsWithTermSets: () => Promise<TermGroupWithTermSets<TermSet>[]>;
|
|
23
25
|
addOrUpdateTermCustomProperties: (termId: GuidValue, customProperties: {
|
|
24
26
|
[name: string]: string;
|
|
@@ -7,6 +7,7 @@ export declare class SharePointUserStore extends Store {
|
|
|
7
7
|
sharePointUserService: SharePointUserService;
|
|
8
8
|
omniaContext: OmniaContext;
|
|
9
9
|
private resolveUserPropertiesValuePromises;
|
|
10
|
+
private defaultLCID;
|
|
10
11
|
actions: {
|
|
11
12
|
updateUserProfilePropertiesValues: import("@omnia/../../fx/stores").StoreAction<unknown, (properties: {
|
|
12
13
|
[propertyName: string]: SharePointUserProfilePropertyValueBase;
|
|
@@ -23,6 +24,7 @@ export declare class SharePointUserStore extends Store {
|
|
|
23
24
|
}, user: UserIdentity) => void, (failureReason: any, user: UserIdentity) => void, (user: UserIdentity) => Promise<{
|
|
24
25
|
[name: string]: string;
|
|
25
26
|
}>>;
|
|
27
|
+
getUserLCID: import("@omnia/../../fx/stores").StoreAction<unknown, () => void, (result: string) => void, (failureReason: any) => void, () => Promise<string>>;
|
|
26
28
|
};
|
|
27
29
|
protected onActivated(): void;
|
|
28
30
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { GuidValue, Language } from "../../models";
|
|
2
2
|
import { Store, MultilingualStore } from "../../../fx/stores";
|
|
3
3
|
import { TermService } from "../services/TermService";
|
|
4
|
-
import { Term, TermSet, TermGroupWithTermSets, TermQuery, TermQueryResult } from "../models";
|
|
4
|
+
import { Term, TermSet, TermGroupWithTermSets, TermQuery, TermQueryResult, TermPaging } from "../models";
|
|
5
5
|
import { OmniaContext } from "../../contexts";
|
|
6
6
|
export interface TermData extends Term {
|
|
7
7
|
}
|
|
@@ -56,6 +56,8 @@ export declare class TermStore extends Store {
|
|
|
56
56
|
ensureTermByIds: import("../../../fx/stores").StoreAction<unknown, (termSetId: GuidValue, termIds: GuidValue[], lcid?: number) => void, (result: TermData[], termSetId: GuidValue, termIds: GuidValue[], lcid?: number) => void, (failureReason: any, termSetId: GuidValue, termIds: GuidValue[], lcid?: number) => void, (termSetId: GuidValue, termIds: Array<GuidValue>, lcid?: number) => Promise<TermData[]>>;
|
|
57
57
|
addTerm: import("../../../fx/stores").StoreAction<unknown, (termSetId: GuidValue, termName: string, parentTermId: GuidValue) => void, (result: TermData, termSetId: GuidValue, termName: string, parentTermId: GuidValue) => void, (failureReason: any, termSetId: GuidValue, termName: string, parentTermId: GuidValue) => void, (termSetId: GuidValue, termName: string, parentTermId: GuidValue) => Promise<TermData>>;
|
|
58
58
|
searchTerm: import("../../../fx/stores").StoreAction<unknown, (termSetId: GuidValue, searchText: string, lcid: number) => void, (result: TermData[], termSetId: GuidValue, searchText: string, lcid: number) => void, (failureReason: any, termSetId: GuidValue, searchText: string, lcid: number) => void, (termSetId: GuidValue, searchText: string, lcid: number) => Promise<TermData[]>>;
|
|
59
|
+
searchTermPagination: import("../../../fx/stores").StoreAction<unknown, (termSetId: GuidValue, searchText: string, lcid: number, searchIndex: number) => void, (result: TermPaging, termSetId: GuidValue, searchText: string, lcid: number, searchIndex: number) => void, (failureReason: any, termSetId: GuidValue, searchText: string, lcid: number, searchIndex: number) => void, (termSetId: GuidValue, searchText: string, lcid: number, searchIndex: number) => Promise<TermPaging>>;
|
|
60
|
+
getExactMatchTermsLabel: import("../../../fx/stores").StoreAction<unknown, (termSetId: GuidValue, searchText: string, lcid: number) => void, (result: TermData[], termSetId: GuidValue, searchText: string, lcid: number) => void, (failureReason: any, termSetId: GuidValue, searchText: string, lcid: number) => void, (termSetId: GuidValue, searchText: string, lcid: number) => Promise<Array<TermData>>>;
|
|
59
61
|
ensureChildTerms: import("../../../fx/stores").StoreAction<unknown, (termSetId: GuidValue, id?: GuidValue) => void, (result: Term[], termSetId: GuidValue, id?: GuidValue) => void, (failureReason: any, termSetId: GuidValue, id?: GuidValue) => void, (termSetId: GuidValue, id?: GuidValue) => Promise<Term[]>>;
|
|
60
62
|
ensureAllTermGroups: import("../../../fx/stores").StoreAction<unknown, () => void, (result: void) => void, (failureReason: any) => void, () => Promise<void>>;
|
|
61
63
|
addOrUpdateTermCustomProperties: import("../../../fx/stores").StoreAction<unknown, (termId: GuidValue, customProperties: {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { IWebComponentInstance } from "../../../";
|
|
2
|
-
import { ITermPicker } from "./ITermPicker";
|
|
3
|
-
import { Term, FilterOption } from "../../models";
|
|
4
|
-
import "./TermPicker.css";
|
|
5
|
-
import { IValidator, VueComponentBase } from "../../../ux";
|
|
6
2
|
import { GuidValue, PromotedTagOptions } from "../../../models";
|
|
7
3
|
import { MultilingualStore } from "../../../../fx/stores";
|
|
4
|
+
import { IValidator, VueComponentBase } from "../../../ux";
|
|
5
|
+
import { FilterOption, Term } from "../../models";
|
|
6
|
+
import { ITermPicker } from "./ITermPicker";
|
|
7
|
+
import "./TermPicker.css";
|
|
8
8
|
export declare class TermPicker extends VueComponentBase implements IWebComponentInstance, ITermPicker {
|
|
9
9
|
private loc;
|
|
10
10
|
private termStore;
|
|
@@ -57,10 +57,14 @@ export declare class TermPicker extends VueComponentBase implements IWebComponen
|
|
|
57
57
|
private maxLevel;
|
|
58
58
|
private termClasses;
|
|
59
59
|
private calculatedMaxHeight;
|
|
60
|
+
private searchTermString;
|
|
60
61
|
created(): void;
|
|
61
62
|
mounted(): void;
|
|
62
63
|
init(): void;
|
|
63
64
|
ensureLcid(): void;
|
|
65
|
+
triggerSearchOnValueClear(): void;
|
|
66
|
+
handlerResizeInMobile(): void;
|
|
67
|
+
handleOpenPickerInMobile(e: any): void;
|
|
64
68
|
handlerKeyDown(e: any): void;
|
|
65
69
|
ensureStartWithAndMaxLevel(): Promise<void>;
|
|
66
70
|
searchTerm(searchText: string): void;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as tsx from "vue-tsx-support";
|
|
2
2
|
import { IWebComponentInstance } from "../../../";
|
|
3
|
-
import { TermPickerLocalization } from "./loc/localize";
|
|
4
|
-
import { TermStore, TermData } from "../../../fx/stores";
|
|
5
|
-
import { Term, FilterOption } from "../../models";
|
|
6
3
|
import { GuidValue } from "../../../models";
|
|
4
|
+
import { FilterOption, Term } from "../../models";
|
|
5
|
+
import { TermData, TermStore } from "../../../fx/stores";
|
|
7
6
|
import { ITermPickerSearch } from "./ITermPickerSearch";
|
|
8
7
|
import "./TermPicker.css";
|
|
8
|
+
import { TermPickerLocalization } from "./loc/localize";
|
|
9
9
|
interface TermSearchNode extends Term {
|
|
10
10
|
selected?: boolean;
|
|
11
11
|
}
|
|
@@ -30,16 +30,23 @@ export declare class TermPickerSearch extends tsx.Component<ITermPickerSearch> i
|
|
|
30
30
|
searchTextChange(model: any): void;
|
|
31
31
|
private UIConfig;
|
|
32
32
|
private displayTerms;
|
|
33
|
+
private termsDataResult;
|
|
34
|
+
private exactMatchTermsCount;
|
|
35
|
+
private nextSearchIndex;
|
|
33
36
|
created(): void;
|
|
34
37
|
mounted(): void;
|
|
35
38
|
init(): void;
|
|
36
39
|
beforeDestroy(): void;
|
|
40
|
+
searchExactMatchTermLabel(): Promise<void>;
|
|
41
|
+
searchTerm(): Promise<void>;
|
|
42
|
+
initDisplayTerms(termResults: TermData[]): void;
|
|
37
43
|
applyFilter(term: Term): boolean;
|
|
38
44
|
onCreateTermClicked(): void;
|
|
39
45
|
onTermSelecting(term: TermSearchNode): void;
|
|
40
46
|
mapToTermSearch(node: Term): TermSearchNode;
|
|
41
47
|
createNewTerm(parentTermId: string, termName: string): void;
|
|
42
48
|
getDisplayLabel(term: Term): string;
|
|
49
|
+
renderTerms(terms: TermSearchNode[]): VueTsxSupport.JSX.Element | VueTsxSupport.JSX.Element[];
|
|
43
50
|
render(): VueTsxSupport.JSX.Element;
|
|
44
51
|
renderSearchBox(): VueTsxSupport.JSX.Element;
|
|
45
52
|
renderNoResult(): VueTsxSupport.JSX.Element;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@omnia/fx-sp",
|
|
3
3
|
"license": "MIT",
|
|
4
|
-
"version": "7.6.2
|
|
4
|
+
"version": "7.6.2",
|
|
5
5
|
"description": "Provide Omnia Fx Sharepoint Stuffs.",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
],
|
|
20
20
|
"author": "Precio Fishbone",
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@omnia/fx": "7.6.2
|
|
23
|
-
"@omnia/fx-sp-models": "7.6.2
|
|
22
|
+
"@omnia/fx": "7.6.2",
|
|
23
|
+
"@omnia/fx-sp-models": "7.6.2"
|
|
24
24
|
},
|
|
25
25
|
"typings": "./index.d.ts",
|
|
26
26
|
"bugs": {
|