@omnia/fx-sp 8.0.21-dev → 8.0.22-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,7 +1,30 @@
1
- import { IPropertyDisplayRenderer, SharePointTermSetPropertyDefinition, SharePointTermSetPropertyDisplaySettings, SharePointTermSetPropertyValue } from "@omnia/fx-models";
1
+ import { IIcon, IPropertyDisplayRenderer, SharePointTermSetPropertyDefinition, SharePointTermSetPropertyDisplaySettings, SharePointTermSetPropertySetupSettings, SharePointTermSetPropertyValue } from "@omnia/fx-models";
2
+ import { Term } from "../../../models";
2
3
  import "./TermSetStyles.css";
3
4
  export type TermSetDisplayProps = IPropertyDisplayRenderer<SharePointTermSetPropertyDefinition> & {
4
5
  "v-model": SharePointTermSetPropertyValue;
6
+ clickHandler?: {
7
+ onClick: (term: Term) => void;
8
+ clickableIcon?: IIcon;
9
+ };
10
+ appendMenuItems?: {
11
+ termId: string;
12
+ onClick: (term: Term) => void;
13
+ title: string;
14
+ }[];
15
+ validateRenderTooltip?: (items: Array<{
16
+ termId: string;
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: string;
27
+ separator: string;
5
28
  };
6
29
  declare const _default: {
7
30
  new (...args: any[]): {
@@ -11,6 +34,7 @@ declare const _default: {
11
34
  style?: unknown;
12
35
  class?: unknown;
13
36
  key?: string | number | symbol;
37
+ readonly separator?: string;
14
38
  ref?: import("vue").VNodeRef;
15
39
  ref_for?: boolean;
16
40
  ref_key?: string;
@@ -55,7 +79,28 @@ declare const _default: {
55
79
  readonly "v-model"?: SharePointTermSetPropertyValue;
56
80
  readonly modelValue?: SharePointTermSetPropertyValue;
57
81
  readonly displaySettings?: SharePointTermSetPropertyDisplaySettings;
58
- readonly setupSettings?: import("@omnia/fx-models").SharePointTermSetPropertySetupSettings;
82
+ readonly appendedElement?: JSX.Element;
83
+ readonly clickHandler?: {
84
+ onClick: (term: Term) => void;
85
+ clickableIcon?: IIcon;
86
+ };
87
+ readonly appendMenuItems?: {
88
+ termId: string;
89
+ onClick: (term: Term) => void;
90
+ title: string;
91
+ }[];
92
+ readonly validateRenderTooltip?: (items: {
93
+ termId: string;
94
+ onClick: (term: Term) => any;
95
+ title: string;
96
+ }[]) => {
97
+ [termId: string]: {
98
+ title: string;
99
+ icon: IIcon;
100
+ };
101
+ }[];
102
+ readonly setupSettings?: SharePointTermSetPropertySetupSettings;
103
+ readonly contentColor?: string;
59
104
  readonly renderTextOnly?: boolean;
60
105
  };
61
106
  $attrs: {
@@ -74,9 +119,47 @@ declare const _default: {
74
119
  $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
75
120
  modelValue: import("vue").Prop<SharePointTermSetPropertyValue, SharePointTermSetPropertyValue>;
76
121
  displaySettings: import("vue").Prop<SharePointTermSetPropertyDisplaySettings, SharePointTermSetPropertyDisplaySettings>;
77
- setupSettings?: import("vue").Prop<import("@omnia/fx-models").SharePointTermSetPropertySetupSettings, import("@omnia/fx-models").SharePointTermSetPropertySetupSettings>;
122
+ setupSettings?: import("vue").Prop<SharePointTermSetPropertySetupSettings, SharePointTermSetPropertySetupSettings>;
78
123
  renderTextOnly?: import("vue").Prop<boolean, boolean>;
79
124
  "v-model": import("vue").Prop<SharePointTermSetPropertyValue, SharePointTermSetPropertyValue>;
125
+ clickHandler?: import("vue").Prop<{
126
+ onClick: (term: Term) => void;
127
+ clickableIcon?: IIcon;
128
+ }, {
129
+ onClick: (term: Term) => void;
130
+ clickableIcon?: IIcon;
131
+ }>;
132
+ appendMenuItems?: import("vue").Prop<{
133
+ termId: string;
134
+ onClick: (term: Term) => void;
135
+ title: string;
136
+ }[], {
137
+ termId: string;
138
+ onClick: (term: Term) => void;
139
+ title: string;
140
+ }[]>;
141
+ validateRenderTooltip?: import("vue").Prop<(items: {
142
+ termId: string;
143
+ onClick: (term: Term) => any;
144
+ title: string;
145
+ }[]) => {
146
+ [termId: string]: {
147
+ title: string;
148
+ icon: IIcon;
149
+ };
150
+ }[], (items: {
151
+ termId: string;
152
+ onClick: (term: Term) => any;
153
+ title: string;
154
+ }[]) => {
155
+ [termId: string]: {
156
+ title: string;
157
+ icon: IIcon;
158
+ };
159
+ }[]>;
160
+ appendedElement?: import("vue").Prop<JSX.Element, JSX.Element>;
161
+ contentColor: import("vue").Prop<string, string>;
162
+ separator: import("vue").Prop<string, string>;
80
163
  }>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}> & {
81
164
  beforeCreate?: (() => void) | (() => void)[];
82
165
  created?: (() => void) | (() => void)[];
@@ -100,9 +183,47 @@ declare const _default: {
100
183
  } & Readonly<import("vue").ExtractPropTypes<{
101
184
  modelValue: import("vue").Prop<SharePointTermSetPropertyValue, SharePointTermSetPropertyValue>;
102
185
  displaySettings: import("vue").Prop<SharePointTermSetPropertyDisplaySettings, SharePointTermSetPropertyDisplaySettings>;
103
- setupSettings?: import("vue").Prop<import("@omnia/fx-models").SharePointTermSetPropertySetupSettings, import("@omnia/fx-models").SharePointTermSetPropertySetupSettings>;
186
+ setupSettings?: import("vue").Prop<SharePointTermSetPropertySetupSettings, SharePointTermSetPropertySetupSettings>;
104
187
  renderTextOnly?: import("vue").Prop<boolean, boolean>;
105
188
  "v-model": import("vue").Prop<SharePointTermSetPropertyValue, SharePointTermSetPropertyValue>;
189
+ clickHandler?: import("vue").Prop<{
190
+ onClick: (term: Term) => void;
191
+ clickableIcon?: IIcon;
192
+ }, {
193
+ onClick: (term: Term) => void;
194
+ clickableIcon?: IIcon;
195
+ }>;
196
+ appendMenuItems?: import("vue").Prop<{
197
+ termId: string;
198
+ onClick: (term: Term) => void;
199
+ title: string;
200
+ }[], {
201
+ termId: string;
202
+ onClick: (term: Term) => void;
203
+ title: string;
204
+ }[]>;
205
+ validateRenderTooltip?: import("vue").Prop<(items: {
206
+ termId: string;
207
+ onClick: (term: Term) => any;
208
+ title: string;
209
+ }[]) => {
210
+ [termId: string]: {
211
+ title: string;
212
+ icon: IIcon;
213
+ };
214
+ }[], (items: {
215
+ termId: string;
216
+ onClick: (term: Term) => any;
217
+ title: string;
218
+ }[]) => {
219
+ [termId: string]: {
220
+ title: string;
221
+ icon: IIcon;
222
+ };
223
+ }[]>;
224
+ appendedElement?: import("vue").Prop<JSX.Element, JSX.Element>;
225
+ contentColor: import("vue").Prop<string, string>;
226
+ separator: import("vue").Prop<string, string>;
106
227
  }>> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {};
107
228
  __isFragment?: never;
108
229
  __isTeleport?: never;
@@ -110,15 +231,75 @@ declare const _default: {
110
231
  } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
111
232
  modelValue: import("vue").Prop<SharePointTermSetPropertyValue, SharePointTermSetPropertyValue>;
112
233
  displaySettings: import("vue").Prop<SharePointTermSetPropertyDisplaySettings, SharePointTermSetPropertyDisplaySettings>;
113
- setupSettings?: import("vue").Prop<import("@omnia/fx-models").SharePointTermSetPropertySetupSettings, import("@omnia/fx-models").SharePointTermSetPropertySetupSettings>;
234
+ setupSettings?: import("vue").Prop<SharePointTermSetPropertySetupSettings, SharePointTermSetPropertySetupSettings>;
114
235
  renderTextOnly?: import("vue").Prop<boolean, boolean>;
115
236
  "v-model": import("vue").Prop<SharePointTermSetPropertyValue, SharePointTermSetPropertyValue>;
237
+ clickHandler?: import("vue").Prop<{
238
+ onClick: (term: Term) => void;
239
+ clickableIcon?: IIcon;
240
+ }, {
241
+ onClick: (term: Term) => void;
242
+ clickableIcon?: IIcon;
243
+ }>;
244
+ appendMenuItems?: import("vue").Prop<{
245
+ termId: string;
246
+ onClick: (term: Term) => void;
247
+ title: string;
248
+ }[], {
249
+ termId: string;
250
+ onClick: (term: Term) => void;
251
+ title: string;
252
+ }[]>;
253
+ validateRenderTooltip?: import("vue").Prop<(items: {
254
+ termId: string;
255
+ onClick: (term: Term) => any;
256
+ title: string;
257
+ }[]) => {
258
+ [termId: string]: {
259
+ title: string;
260
+ icon: IIcon;
261
+ };
262
+ }[], (items: {
263
+ termId: string;
264
+ onClick: (term: Term) => any;
265
+ title: string;
266
+ }[]) => {
267
+ [termId: string]: {
268
+ title: string;
269
+ icon: IIcon;
270
+ };
271
+ }[]>;
272
+ appendedElement?: import("vue").Prop<JSX.Element, JSX.Element>;
273
+ contentColor: import("vue").Prop<string, string>;
274
+ separator: import("vue").Prop<string, string>;
116
275
  }>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & {
117
276
  propsDefinition: Omit<Readonly<{} & {
277
+ separator?: string;
118
278
  "v-model"?: SharePointTermSetPropertyValue;
119
279
  modelValue?: SharePointTermSetPropertyValue;
120
280
  displaySettings?: SharePointTermSetPropertyDisplaySettings;
121
- setupSettings?: import("@omnia/fx-models").SharePointTermSetPropertySetupSettings;
281
+ appendedElement?: JSX.Element;
282
+ clickHandler?: {
283
+ onClick: (term: Term) => void;
284
+ clickableIcon?: IIcon;
285
+ };
286
+ appendMenuItems?: {
287
+ termId: string;
288
+ onClick: (term: Term) => void;
289
+ title: string;
290
+ }[];
291
+ validateRenderTooltip?: (items: {
292
+ termId: string;
293
+ onClick: (term: Term) => any;
294
+ title: string;
295
+ }[]) => {
296
+ [termId: string]: {
297
+ title: string;
298
+ icon: IIcon;
299
+ };
300
+ }[];
301
+ setupSettings?: SharePointTermSetPropertySetupSettings;
302
+ contentColor?: string;
122
303
  renderTextOnly?: boolean;
123
304
  }>, never>;
124
305
  };
@@ -56,6 +56,7 @@ declare const _default: {
56
56
  [key: string]: any;
57
57
  }>) => void)[];
58
58
  readonly description?: string;
59
+ "onUpdate:modelValue"?: (value: GuidValue[]) => any;
59
60
  readonly "aria-describedby"?: string;
60
61
  readonly "aria-invalid"?: boolean;
61
62
  readonly hideDetails?: boolean;
@@ -98,7 +99,7 @@ declare const _default: {
98
99
  }>;
99
100
  $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>;
100
101
  $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>;
101
- $emit: (event: string, ...args: any[]) => void;
102
+ $emit: (event: "update:modelValue", value: GuidValue[]) => void;
102
103
  $el: any;
103
104
  $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
104
105
  dark: {
@@ -224,7 +225,11 @@ declare const _default: {
224
225
  termSetId: {
225
226
  type: import("vue").PropType<GuidValue>;
226
227
  };
227
- }>>, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}> & {
228
+ }>> & {
229
+ "onUpdate:modelValue"?: (value: GuidValue[]) => any;
230
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
231
+ "update:modelValue": (value: Array<GuidValue>) => boolean;
232
+ }, string, {}, {}, string, {}> & {
228
233
  beforeCreate?: (() => void) | (() => void)[];
229
234
  created?: (() => void) | (() => void)[];
230
235
  beforeMount?: (() => void) | (() => void)[];
@@ -368,7 +373,9 @@ declare const _default: {
368
373
  termSetId: {
369
374
  type: import("vue").PropType<GuidValue>;
370
375
  };
371
- }>> & import("vue").ShallowUnwrapRef<() => JSX.Element> & {} & import("vue").ComponentCustomProperties & {};
376
+ }>> & {
377
+ "onUpdate:modelValue"?: (value: GuidValue[]) => any;
378
+ } & import("vue").ShallowUnwrapRef<() => JSX.Element> & {} & import("vue").ComponentCustomProperties & {};
372
379
  __isFragment?: never;
373
380
  __isTeleport?: never;
374
381
  __isSuspense?: never;
@@ -496,7 +503,11 @@ declare const _default: {
496
503
  termSetId: {
497
504
  type: import("vue").PropType<GuidValue>;
498
505
  };
499
- }>>, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & {
506
+ }>> & {
507
+ "onUpdate:modelValue"?: (value: GuidValue[]) => any;
508
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
509
+ "update:modelValue": (value: Array<GuidValue>) => boolean;
510
+ }, string, {}, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & {
500
511
  propsDefinition: Omit<Readonly<{} & {
501
512
  label?: string;
502
513
  required?: boolean;
@@ -534,6 +545,8 @@ declare const _default: {
534
545
  "include-deprecated"?: boolean;
535
546
  "is-enterprise-keyword"?: boolean;
536
547
  "promoted-tag-options"?: PromotedTagOptions;
537
- }>, never>;
548
+ }>, "onUpdate:modelValue"> & {
549
+ "onUpdate:modelValue"?: (value: GuidValue[]) => any;
550
+ };
538
551
  };
539
552
  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.21-dev",
4
+ "version": "8.0.22-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.21-dev",
23
- "@omnia/fx-sp-models": "8.0.21-dev"
22
+ "@omnia/fx": "8.0.22-dev",
23
+ "@omnia/fx-sp-models": "8.0.22-dev"
24
24
  },
25
25
  "typings": "./index.d.ts",
26
26
  "bugs": {