@omnia/fx-sp 7.6.38-preview → 7.6.38

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.
@@ -21,7 +21,7 @@ export declare class SharePointContext {
21
21
  * get the load context promise
22
22
  * extension can use it to determine whether the context promise has been resolved/rejected
23
23
  */
24
- get getLoadContextPromise(): Future<void>;
24
+ get loadContextPromise(): Future<void>;
25
25
  /**
26
26
  * Omnia SharePoint Environment
27
27
  */
@@ -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 { 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,15 +1,16 @@
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";
1
+ import { IWebComponentInstance, OmniaContext } from "../../../";
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;
11
11
  private omniaTheming;
12
12
  multilingualStore: MultilingualStore;
13
+ omniaCtx: OmniaContext;
13
14
  termSetId: GuidValue;
14
15
  preSelectedTermIds: Array<GuidValue>;
15
16
  label: string;
@@ -57,10 +58,15 @@ export declare class TermPicker extends VueComponentBase implements IWebComponen
57
58
  private maxLevel;
58
59
  private termClasses;
59
60
  private calculatedMaxHeight;
61
+ private searchTermString;
62
+ private allowCreateNewTermWithIdentityProvider;
60
63
  created(): void;
61
64
  mounted(): void;
62
65
  init(): void;
63
66
  ensureLcid(): void;
67
+ triggerSearchOnValueClear(): void;
68
+ handlerResizeInMobile(): void;
69
+ handleOpenPickerInMobile(e: any): void;
64
70
  handlerKeyDown(e: any): void;
65
71
  ensureStartWithAndMaxLevel(): Promise<void>;
66
72
  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;
@@ -9,5 +9,6 @@ export declare module TermPickerLocalization {
9
9
  IsRequiredMessage: string;
10
10
  DuplicatedErrorMessage: string;
11
11
  MaxLengthErrorMessage: string;
12
+ Search: string;
12
13
  }
13
14
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@omnia/fx-sp",
3
3
  "license": "MIT",
4
- "version": "7.6.38-preview",
4
+ "version": "7.6.38",
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.38-preview",
23
- "@omnia/fx-sp-models": "7.6.38-preview"
22
+ "@omnia/fx": "7.6.38",
23
+ "@omnia/fx-sp-models": "7.6.38"
24
24
  },
25
25
  "typings": "./index.d.ts",
26
26
  "bugs": {