@omnia/fx-sp 8.0.196-dev → 8.0.198-dev

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 { guid, PropertyBindingSetting } from "@omnia/fx-models";
2
+ import { TermData } from "..";
2
3
  export interface Term extends TermBase {
3
4
  parentId: guid;
4
5
  termSetId: guid;
@@ -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 { guid, 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: guid, termId?: guid) => Promise<Term[]>;
20
20
  addTerm: (termSetId: guid, termName: string, parentTermId: guid) => Promise<Term>;
21
21
  searchTerm: (termSetId: guid, searchText: string, lcid: number) => Promise<Term[]>;
22
+ searchTermPagination: (termSetId: guid, searchText: string, lcid: number, searchIndex: number) => Promise<TermPaging>;
23
+ searchExactMatchTermLabel: (termSetId: guid, searchText: string, lcid: number) => Promise<Term[]>;
22
24
  getAllTermGroupsWithTermSets: () => Promise<TermGroupWithTermSets<TermSet>[]>;
23
25
  addOrUpdateTermCustomProperties: (termId: guid, customProperties: {
24
26
  [name: string]: string;
@@ -1,7 +1,7 @@
1
1
  import { guid, 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: guid, termIds: guid[], lcid?: number) => void, (result: Term[], termSetId: guid, termIds: guid[], lcid?: number) => void, (failureReason: any, termSetId: guid, termIds: guid[], lcid?: number) => void, (termSetId: guid, termIds: Array<guid>, lcid?: number) => Promise<Term[]>>;
57
57
  addTerm: import("../../../fx/stores").StoreAction<unknown, (termSetId: guid, termName: string, parentTermId: guid) => void, (result: unknown, termSetId: guid, termName: string, parentTermId: guid) => void, (failureReason: any, termSetId: guid, termName: string, parentTermId: guid) => void, (termSetId: guid, termName: string, parentTermId: guid) => Promise<unknown>>;
58
58
  searchTerm: import("../../../fx/stores").StoreAction<unknown, (termSetId: guid, searchText: string, lcid: number) => void, (result: unknown, termSetId: guid, searchText: string, lcid: number) => void, (failureReason: any, termSetId: guid, searchText: string, lcid: number) => void, (termSetId: guid, searchText: string, lcid: number) => Promise<unknown>>;
59
+ searchTermPagination: import("../../../fx/stores").StoreAction<unknown, (termSetId: guid, searchText: string, lcid: number, searchIndex: number) => void, (result: TermPaging, termSetId: guid, searchText: string, lcid: number, searchIndex: number) => void, (failureReason: any, termSetId: guid, searchText: string, lcid: number, searchIndex: number) => void, (termSetId: guid, searchText: string, lcid: number, searchIndex: number) => Promise<TermPaging>>;
60
+ getExactMatchTermsLabel: import("../../../fx/stores").StoreAction<unknown, (termSetId: guid, searchText: string, lcid: number) => void, (result: TermData[], termSetId: guid, searchText: string, lcid: number) => void, (failureReason: any, termSetId: guid, searchText: string, lcid: number) => void, (termSetId: guid, searchText: string, lcid: number) => Promise<Array<TermData>>>;
59
61
  ensureChildTerms: import("../../../fx/stores").StoreAction<unknown, (termSetId: guid, id?: guid) => void, (result: Term[], termSetId: guid, id?: guid) => void, (failureReason: any, termSetId: guid, id?: guid) => void, (termSetId: guid, id?: guid) => 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: guid, customProperties: {
@@ -1,248 +1,50 @@
1
- import { ColorValue, guid, IIcon, IPropertyDisplayRenderer, SharePointTermSetPropertyDefinition, SharePointTermSetPropertyDisplaySettings, SharePointTermSetPropertySetupSettings, SharePointTermSetPropertyValue } from "@omnia/fx-models";
2
- import { Term } from "../../../models";
1
+ import { IPropertyDisplayRenderer, SharePointTermSetPropertyDefinition } from "@omnia/fx-models";
3
2
  import "./TermSetStyles.css";
4
- export type TermSetDisplayProps = IPropertyDisplayRenderer<SharePointTermSetPropertyDefinition> & {
5
- "v-model": SharePointTermSetPropertyValue;
6
- clickHandler?: {
7
- onClick: (term: Term) => void;
8
- clickableIcon?: IIcon;
3
+ export type TermSetDisplayProps = IPropertyDisplayRenderer<SharePointTermSetPropertyDefinition>;
4
+ declare const _default: (props: import("@omnia/fx/ux").ConstructComponentProps<TermSetDisplayProps>) => {
5
+ $: import("vue").ComponentInternalInstance;
6
+ $data: {};
7
+ $props: {};
8
+ $attrs: {
9
+ [x: string]: unknown;
9
10
  };
10
- appendMenuItems?: {
11
- termId: guid;
12
- onClick: (term: Term) => void;
13
- title: string;
14
- }[];
15
- validateRenderTooltip?: (items: Array<{
16
- termId: guid;
17
- onClick: (term: Term) => any;
18
- title: string;
19
- }>) => {
20
- [termId: string]: {
21
- title: string;
22
- icon: IIcon;
23
- };
24
- }[];
25
- appendedElement?: JSX.Element;
26
- contentColor: ColorValue;
27
- separator: string;
28
- };
29
- declare const _default: {
30
- new (...args: any[]): import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
31
- modelValue: import("vue").Prop<SharePointTermSetPropertyValue, SharePointTermSetPropertyValue>;
32
- displaySettings: import("vue").Prop<SharePointTermSetPropertyDisplaySettings, SharePointTermSetPropertyDisplaySettings>;
33
- setupSettings?: import("vue").Prop<SharePointTermSetPropertySetupSettings, SharePointTermSetPropertySetupSettings>;
34
- renderTextOnly?: import("vue").Prop<boolean, boolean>;
35
- "v-model": import("vue").Prop<SharePointTermSetPropertyValue, SharePointTermSetPropertyValue>;
36
- clickHandler?: import("vue").Prop<{
37
- onClick: (term: Term) => void;
38
- clickableIcon?: IIcon;
39
- }, {
40
- onClick: (term: Term) => void;
41
- clickableIcon?: IIcon;
42
- }>;
43
- appendMenuItems?: import("vue").Prop<{
44
- termId: guid;
45
- onClick: (term: Term) => void;
46
- title: string;
47
- }[], {
48
- termId: guid;
49
- onClick: (term: Term) => void;
50
- title: string;
51
- }[]>;
52
- validateRenderTooltip?: import("vue").Prop<(items: {
53
- termId: guid;
54
- onClick: (term: Term) => any;
55
- title: string;
56
- }[]) => {
57
- [termId: string]: {
58
- title: string;
59
- icon: IIcon;
60
- };
61
- }[], (items: {
62
- termId: guid;
63
- onClick: (term: Term) => any;
64
- title: string;
65
- }[]) => {
66
- [termId: string]: {
67
- title: string;
68
- icon: IIcon;
69
- };
70
- }[]>;
71
- appendedElement?: import("vue").Prop<JSX.Element, JSX.Element>;
72
- contentColor: import("vue").Prop<ColorValue, ColorValue>;
73
- separator: import("vue").Prop<string, string>;
74
- }>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
75
- modelValue: import("vue").Prop<SharePointTermSetPropertyValue, SharePointTermSetPropertyValue>;
76
- displaySettings: import("vue").Prop<SharePointTermSetPropertyDisplaySettings, SharePointTermSetPropertyDisplaySettings>;
77
- setupSettings?: import("vue").Prop<SharePointTermSetPropertySetupSettings, SharePointTermSetPropertySetupSettings>;
78
- renderTextOnly?: import("vue").Prop<boolean, boolean>;
79
- "v-model": import("vue").Prop<SharePointTermSetPropertyValue, SharePointTermSetPropertyValue>;
80
- clickHandler?: import("vue").Prop<{
81
- onClick: (term: Term) => void;
82
- clickableIcon?: IIcon;
83
- }, {
84
- onClick: (term: Term) => void;
85
- clickableIcon?: IIcon;
86
- }>;
87
- appendMenuItems?: import("vue").Prop<{
88
- termId: guid;
89
- onClick: (term: Term) => void;
90
- title: string;
91
- }[], {
92
- termId: guid;
93
- onClick: (term: Term) => void;
94
- title: string;
95
- }[]>;
96
- validateRenderTooltip?: import("vue").Prop<(items: {
97
- termId: guid;
98
- onClick: (term: Term) => any;
99
- title: string;
100
- }[]) => {
101
- [termId: string]: {
102
- title: string;
103
- icon: IIcon;
104
- };
105
- }[], (items: {
106
- termId: guid;
107
- onClick: (term: Term) => any;
108
- title: string;
109
- }[]) => {
110
- [termId: string]: {
111
- title: string;
112
- icon: IIcon;
113
- };
114
- }[]>;
115
- appendedElement?: import("vue").Prop<JSX.Element, JSX.Element>;
116
- contentColor: import("vue").Prop<ColorValue, ColorValue>;
117
- separator: import("vue").Prop<string, string>;
118
- }>>, {}, true, {}, {}, {
119
- P: {};
120
- B: {};
121
- D: {};
122
- C: {};
123
- M: {};
124
- Defaults: {};
125
- }, Readonly<import("vue").ExtractPropTypes<{
126
- modelValue: import("vue").Prop<SharePointTermSetPropertyValue, SharePointTermSetPropertyValue>;
127
- displaySettings: import("vue").Prop<SharePointTermSetPropertyDisplaySettings, SharePointTermSetPropertyDisplaySettings>;
128
- setupSettings?: import("vue").Prop<SharePointTermSetPropertySetupSettings, SharePointTermSetPropertySetupSettings>;
129
- renderTextOnly?: import("vue").Prop<boolean, boolean>;
130
- "v-model": import("vue").Prop<SharePointTermSetPropertyValue, SharePointTermSetPropertyValue>;
131
- clickHandler?: import("vue").Prop<{
132
- onClick: (term: Term) => void;
133
- clickableIcon?: IIcon;
134
- }, {
135
- onClick: (term: Term) => void;
136
- clickableIcon?: IIcon;
137
- }>;
138
- appendMenuItems?: import("vue").Prop<{
139
- termId: guid;
140
- onClick: (term: Term) => void;
141
- title: string;
142
- }[], {
143
- termId: guid;
144
- onClick: (term: Term) => void;
145
- title: string;
146
- }[]>;
147
- validateRenderTooltip?: import("vue").Prop<(items: {
148
- termId: guid;
149
- onClick: (term: Term) => any;
150
- title: string;
151
- }[]) => {
152
- [termId: string]: {
153
- title: string;
154
- icon: IIcon;
155
- };
156
- }[], (items: {
157
- termId: guid;
158
- onClick: (term: Term) => any;
159
- title: string;
160
- }[]) => {
161
- [termId: string]: {
162
- title: string;
163
- icon: IIcon;
164
- };
165
- }[]>;
166
- appendedElement?: import("vue").Prop<JSX.Element, JSX.Element>;
167
- contentColor: import("vue").Prop<ColorValue, ColorValue>;
168
- separator: import("vue").Prop<string, string>;
169
- }>>, {}, {}, {}, {}, {}>;
170
- __isFragment?: never;
171
- __isTeleport?: never;
172
- __isSuspense?: never;
173
- } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
174
- modelValue: import("vue").Prop<SharePointTermSetPropertyValue, SharePointTermSetPropertyValue>;
175
- displaySettings: import("vue").Prop<SharePointTermSetPropertyDisplaySettings, SharePointTermSetPropertyDisplaySettings>;
176
- setupSettings?: import("vue").Prop<SharePointTermSetPropertySetupSettings, SharePointTermSetPropertySetupSettings>;
177
- renderTextOnly?: import("vue").Prop<boolean, boolean>;
178
- "v-model": import("vue").Prop<SharePointTermSetPropertyValue, SharePointTermSetPropertyValue>;
179
- clickHandler?: import("vue").Prop<{
180
- onClick: (term: Term) => void;
181
- clickableIcon?: IIcon;
182
- }, {
183
- onClick: (term: Term) => void;
184
- clickableIcon?: IIcon;
11
+ $refs: {
12
+ [x: string]: unknown;
13
+ };
14
+ $slots: Readonly<{
15
+ [name: string]: import("vue").Slot<any>;
185
16
  }>;
186
- appendMenuItems?: import("vue").Prop<{
187
- termId: guid;
188
- onClick: (term: Term) => void;
189
- title: string;
190
- }[], {
191
- termId: guid;
192
- onClick: (term: Term) => void;
193
- title: string;
194
- }[]>;
195
- validateRenderTooltip?: import("vue").Prop<(items: {
196
- termId: guid;
197
- onClick: (term: Term) => any;
198
- title: string;
199
- }[]) => {
200
- [termId: string]: {
201
- title: string;
202
- icon: IIcon;
203
- };
204
- }[], (items: {
205
- termId: guid;
206
- onClick: (term: Term) => any;
207
- title: string;
208
- }[]) => {
209
- [termId: string]: {
210
- title: string;
211
- icon: IIcon;
212
- };
213
- }[]>;
214
- appendedElement?: import("vue").Prop<JSX.Element, JSX.Element>;
215
- contentColor: import("vue").Prop<ColorValue, ColorValue>;
216
- separator: import("vue").Prop<string, string>;
217
- }>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & {
218
- propsDefinition: Omit<Readonly<{} & {
219
- separator?: string;
220
- appendedElement?: JSX.Element;
221
- clickHandler?: {
222
- onClick: (term: Term) => void;
223
- clickableIcon?: IIcon;
224
- };
225
- appendMenuItems?: {
226
- termId: guid;
227
- onClick: (term: Term) => void;
228
- title: string;
229
- }[];
230
- validateRenderTooltip?: (items: {
231
- termId: guid;
232
- onClick: (term: Term) => any;
233
- title: string;
234
- }[]) => {
235
- [termId: string]: {
236
- title: string;
237
- icon: IIcon;
238
- };
239
- }[];
240
- "v-model"?: SharePointTermSetPropertyValue;
241
- modelValue?: SharePointTermSetPropertyValue;
242
- displaySettings?: SharePointTermSetPropertyDisplaySettings;
243
- setupSettings?: SharePointTermSetPropertySetupSettings;
244
- contentColor?: ColorValue;
245
- renderTextOnly?: boolean;
246
- }>, never>;
247
- };
17
+ $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>;
18
+ $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>;
19
+ $emit: (event: string, ...args: any[]) => void;
20
+ $el: any;
21
+ $options: import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}> & {
22
+ beforeCreate?: (() => void) | (() => void)[];
23
+ created?: (() => void) | (() => void)[];
24
+ beforeMount?: (() => void) | (() => void)[];
25
+ mounted?: (() => void) | (() => void)[];
26
+ beforeUpdate?: (() => void) | (() => void)[];
27
+ updated?: (() => void) | (() => void)[];
28
+ activated?: (() => void) | (() => void)[];
29
+ deactivated?: (() => void) | (() => void)[];
30
+ beforeDestroy?: (() => void) | (() => void)[];
31
+ beforeUnmount?: (() => void) | (() => void)[];
32
+ destroyed?: (() => void) | (() => void)[];
33
+ unmounted?: (() => void) | (() => void)[];
34
+ renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
35
+ renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
36
+ errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>, info: string) => boolean | void)[];
37
+ };
38
+ $forceUpdate: () => void;
39
+ $nextTick: typeof import("vue").nextTick;
40
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
41
+ } & Omit<{}, never> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {} & {
42
+ propsDefinition: import("@omnia/fx/ux").ExtractProps<TermSetDisplayProps> & {
43
+ "v-slots"?: {
44
+ default?: import("vue").Slot;
45
+ } & {};
46
+ } & {} & Omit<import("@omnia/fx/ux").VueComponentBaseProps, keyof TermSetDisplayProps>;
47
+ } & import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
48
+ [key: string]: any;
49
+ }>;
248
50
  export default _default;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@omnia/fx-sp",
3
3
  "license": "MIT",
4
- "version": "8.0.196-dev",
4
+ "version": "8.0.198-dev",
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": "8.0.196-dev",
23
- "@omnia/fx-sp-models": "8.0.196-dev"
22
+ "@omnia/fx": "8.0.198-dev",
23
+ "@omnia/fx-sp-models": "8.0.198-dev"
24
24
  },
25
25
  "typings": "./index.d.ts",
26
26
  "bugs": {