@omnia/fx-sp 7.6.714-preview → 7.6.716-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,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;
@@ -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;
@@ -62,7 +62,9 @@ export declare class TermPicker extends VueComponentBase implements IWebComponen
62
62
  mounted(): void;
63
63
  init(): void;
64
64
  ensureLcid(): void;
65
+ triggerSearchOnValueClear(): void;
65
66
  handlerResizeInMobile(): void;
67
+ handleOpenPickerInMobile(e: any): void;
66
68
  handlerKeyDown(e: any): void;
67
69
  ensureStartWithAndMaxLevel(): Promise<void>;
68
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;
@@ -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.714-preview",
4
+ "version": "7.6.716-preview",
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.714-preview",
23
- "@omnia/fx-sp-models": "7.6.714-preview"
22
+ "@omnia/fx": "7.6.716-preview",
23
+ "@omnia/fx-sp-models": "7.6.716-preview"
24
24
  },
25
25
  "typings": "./index.d.ts",
26
26
  "bugs": {