@omnia/fx-models 8.0.18-dev → 8.0.19-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.
- package/Enums.d.ts +1 -0
- package/Enums.js +1 -0
- package/admin/AdminModels.d.ts +42 -0
- package/enterprise-properties/EnterprisePropertyItemSettings.d.ts +2 -1
- package/internal-do-not-import-from-here/velcron/core/models/VelcronPropertyEditorDefinitions.d.ts +17 -0
- package/internal-do-not-import-from-here/velcron/core/models/VelcronPropertyEditorDefinitions.js +13 -1
- package/package.json +1 -1
- package/properties/PropertyValue.d.ts +1 -0
- package/properties/PropertyValue.js +3 -0
- package/properties/definitions/TagsPropertyDefinition.d.ts +1 -0
- package/properties/definitions/TermSetPropertyDefinition.d.ts +3 -0
- package/properties/definitions/TermSetPropertyDefinition.js +3 -0
- package/properties/values/BirthdayPropertyValue.d.ts +1 -0
- package/properties/values/BirthdayPropertyValue.js +3 -0
- package/properties/values/BooleanPropertyValue.d.ts +1 -0
- package/properties/values/BooleanPropertyValue.js +3 -0
- package/properties/values/DatePropertyValue.d.ts +4 -0
- package/properties/values/DatePropertyValue.js +3 -0
- package/properties/values/DateTimePropertyValue.d.ts +1 -0
- package/properties/values/DateTimePropertyValue.js +3 -0
- package/properties/values/EmailPropertyValue.d.ts +1 -0
- package/properties/values/EmailPropertyValue.js +3 -0
- package/properties/values/HtmlPropertyValue.d.ts +1 -0
- package/properties/values/HtmlPropertyValue.js +3 -0
- package/properties/values/IdentityPropertyValue.d.ts +1 -0
- package/properties/values/IdentityPropertyValue.js +3 -0
- package/properties/values/ImagePropertyValue.d.ts +1 -0
- package/properties/values/ImagePropertyValue.js +3 -0
- package/properties/values/IntegerPropertyValue.d.ts +1 -0
- package/properties/values/IntegerPropertyValue.js +3 -0
- package/properties/values/LanguagePropertyValue.d.ts +1 -0
- package/properties/values/LanguagePropertyValue.js +3 -0
- package/properties/values/LinkPropertyValue.d.ts +1 -0
- package/properties/values/LinkPropertyValue.js +3 -0
- package/properties/values/TagsPropertyValue.d.ts +1 -0
- package/properties/values/TagsPropertyValue.js +3 -0
- package/properties/values/TextPropertyValue.d.ts +1 -0
- package/properties/values/TextPropertyValue.js +3 -0
- package/ux/AdminApi.d.ts +16 -2
- package/ux/InternalAdminApi.d.ts +22 -3
package/Enums.d.ts
CHANGED
package/Enums.js
CHANGED
|
@@ -566,6 +566,7 @@ var ImageResolution;
|
|
|
566
566
|
})(ImageResolution = exports.ImageResolution || (exports.ImageResolution = {}));
|
|
567
567
|
var BladeSizes;
|
|
568
568
|
(function (BladeSizes) {
|
|
569
|
+
BladeSizes[BladeSizes["extrasmall"] = 4] = "extrasmall";
|
|
569
570
|
BladeSizes[BladeSizes["small"] = 5] = "small";
|
|
570
571
|
BladeSizes[BladeSizes["medium"] = 10] = "medium";
|
|
571
572
|
BladeSizes[BladeSizes["extramedium"] = 12] = "extramedium";
|
package/admin/AdminModels.d.ts
CHANGED
|
@@ -1,5 +1,47 @@
|
|
|
1
1
|
import { AdminNavigationBuiltInCategory, BladeSizes, IIcon } from "../";
|
|
2
2
|
import { GuidValue } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
|
|
3
|
+
export interface AdminNavigationNode {
|
|
4
|
+
/**
|
|
5
|
+
* The id of the navigation node
|
|
6
|
+
*/
|
|
7
|
+
id: GuidValue;
|
|
8
|
+
/**
|
|
9
|
+
* The title of the navigation node
|
|
10
|
+
*/
|
|
11
|
+
title: string;
|
|
12
|
+
/**
|
|
13
|
+
* The icon
|
|
14
|
+
*/
|
|
15
|
+
icon: IIcon;
|
|
16
|
+
/**
|
|
17
|
+
* The component with manifest id that will be rendered when selected
|
|
18
|
+
*/
|
|
19
|
+
componentManifestId: GuidValue;
|
|
20
|
+
/**
|
|
21
|
+
* The url segment will append after manifest id in url.
|
|
22
|
+
*/
|
|
23
|
+
customUrlSegment?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Tooltip to show when hover on element
|
|
26
|
+
*/
|
|
27
|
+
tooltip?: string;
|
|
28
|
+
/**
|
|
29
|
+
* Show or Hide node in Omnia Admin by checking permission with input security role id on current context
|
|
30
|
+
*
|
|
31
|
+
* If SecurityRole is undefined, and the Category is Tenant scope, then it requires Tenant Admin permission in current context.
|
|
32
|
+
* If SecurityRole is undefined, and the Category is Business Profile scope, then it requires Business Profile Admin permission in current context.
|
|
33
|
+
* If SecurityRole is undefined, and the Category is App Instance scope, then it requires App Instance Amin permission in current context.
|
|
34
|
+
* If SecurityRole is undefined, and the Category is not one of the Built-in scopes, then it requires Tenant Admin permission.
|
|
35
|
+
*
|
|
36
|
+
* If SecurityRole is any role, and the Category is Tenant scope, then it requires either Tenant Admin or the role permission in current context.
|
|
37
|
+
* If SecurityRole is any role, and the Category is Business Profile scope, then it requires either Business Profile Admin or the role permission in current context.
|
|
38
|
+
* If SecurityRole is any role, and the Category is App Instance scope, then it requires either App Instance Admin or the role permission in current context.
|
|
39
|
+
* If SecurityRole is any role, and the Category is not one of the Built-in scopes, then it requires the role permission in current context.
|
|
40
|
+
*
|
|
41
|
+
* If securityRole is set to "AlwaysAuthorized", then it does not require any permission.
|
|
42
|
+
*/
|
|
43
|
+
securityRole?: "AlwaysAuthorized" | GuidValue;
|
|
44
|
+
}
|
|
3
45
|
export interface NavigationNodeInitializeMessage {
|
|
4
46
|
readonly key: string;
|
|
5
47
|
state: NavigationNodeReactiveState;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GuidValue, MultilingualString, PropertyIndexedType } from "../";
|
|
1
|
+
import { GuidValue, MultilingualString, PromotedTagOptions, PropertyIndexedType } from "../";
|
|
2
2
|
import { RichTextEditorExtension } from "../../ux/richtexteditor";
|
|
3
3
|
export interface EnterprisePropertyItemSettings {
|
|
4
4
|
type: PropertyIndexedType;
|
|
@@ -36,6 +36,7 @@ export interface EnterprisePropertyLanguageItemSettings extends EnterpriseProper
|
|
|
36
36
|
export interface EnterprisePropertyTagsItemSettings extends EnterprisePropertyItemSettings {
|
|
37
37
|
type: PropertyIndexedType.Tags;
|
|
38
38
|
allowMultipleValues: boolean;
|
|
39
|
+
promotedTagOptions?: PromotedTagOptions;
|
|
39
40
|
}
|
|
40
41
|
export interface EnterprisePropertyPersonItemSettings extends EnterprisePropertyItemSettings {
|
|
41
42
|
type: PropertyIndexedType.Person;
|
package/internal-do-not-import-from-here/velcron/core/models/VelcronPropertyEditorDefinitions.d.ts
CHANGED
|
@@ -83,8 +83,25 @@ export interface VelcronState {
|
|
|
83
83
|
styling?: VelcronStylingState;
|
|
84
84
|
colorSchema?: VelcronColorSchemaState;
|
|
85
85
|
content?: VelcronContentState;
|
|
86
|
+
header?: VelcronHeaderState;
|
|
86
87
|
properties?: VelcronPropertiesState;
|
|
87
88
|
}
|
|
89
|
+
export interface VelcronHeaderState {
|
|
90
|
+
title?: VelcronTextState;
|
|
91
|
+
icon?: string;
|
|
92
|
+
}
|
|
93
|
+
export declare const VelcronHeaderStateBinding: {
|
|
94
|
+
title: {
|
|
95
|
+
text: string;
|
|
96
|
+
typography: {
|
|
97
|
+
editor: any;
|
|
98
|
+
type: any;
|
|
99
|
+
size: any;
|
|
100
|
+
toned: any;
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
icon: string;
|
|
104
|
+
};
|
|
88
105
|
export interface VelcronTextState {
|
|
89
106
|
text: string;
|
|
90
107
|
typography?: VelcronTypographyState;
|
package/internal-do-not-import-from-here/velcron/core/models/VelcronPropertyEditorDefinitions.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.BuiltInPropertyEditorTypes = void 0;
|
|
3
|
+
exports.VelcronHeaderStateBinding = exports.BuiltInPropertyEditorTypes = void 0;
|
|
4
4
|
var BuiltInPropertyEditorTypes;
|
|
5
5
|
(function (BuiltInPropertyEditorTypes) {
|
|
6
6
|
BuiltInPropertyEditorTypes["text"] = "text";
|
|
@@ -14,3 +14,15 @@ var BuiltInPropertyEditorTypes;
|
|
|
14
14
|
BuiltInPropertyEditorTypes["typography"] = "typography";
|
|
15
15
|
BuiltInPropertyEditorTypes["color-schema-type"] = "color-schema-type";
|
|
16
16
|
})(BuiltInPropertyEditorTypes = exports.BuiltInPropertyEditorTypes || (exports.BuiltInPropertyEditorTypes = {}));
|
|
17
|
+
exports.VelcronHeaderStateBinding = {
|
|
18
|
+
title: {
|
|
19
|
+
text: "{{header.title.text}}",
|
|
20
|
+
typography: {
|
|
21
|
+
editor: "header.title.typography",
|
|
22
|
+
type: "{{header.title.typography.type}}",
|
|
23
|
+
size: "{{header.title.typography.size}}",
|
|
24
|
+
toned: "{{header.title.typography.toned}}",
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
icon: "{{header.icon}}"
|
|
28
|
+
};
|
package/package.json
CHANGED
|
@@ -5,6 +5,7 @@ export declare class TagsDisplaySettings extends PropertyDisplaySettingsBase {
|
|
|
5
5
|
inline?: boolean;
|
|
6
6
|
}
|
|
7
7
|
export declare class TagsEditorSettings extends PropertyEditorSettingsBase {
|
|
8
|
+
allowMultipleValues?: boolean;
|
|
8
9
|
}
|
|
9
10
|
export declare class TagsPropertyDefinition extends PropertyDefinition<TagsPropertyValue, TagsDisplaySettings, TagsEditorSettings> {
|
|
10
11
|
id: Guid;
|
|
@@ -13,6 +13,8 @@ export type SharePointTermSetPropertyEditorSettings = {
|
|
|
13
13
|
locks?: PropertyLockStatusType<Omit<SharePointTermSetPropertyEditorSettings, "locks">>;
|
|
14
14
|
multiple?: boolean;
|
|
15
15
|
required?: boolean;
|
|
16
|
+
lcid?: number;
|
|
17
|
+
isEnterpriseKeyword?: boolean;
|
|
16
18
|
};
|
|
17
19
|
export declare const sharePointTermSetPropertyDefinitionId: Guid;
|
|
18
20
|
export declare class SharePointTermSetPropertyValue extends PropertyValue {
|
|
@@ -20,6 +22,7 @@ export declare class SharePointTermSetPropertyValue extends PropertyValue {
|
|
|
20
22
|
constructor(termIds: Guid[]);
|
|
21
23
|
containValue(other: SharePointTermSetPropertyValue): boolean;
|
|
22
24
|
appendValue(other: SharePointTermSetPropertyValue): SharePointTermSetPropertyValue;
|
|
25
|
+
getValue: () => string[];
|
|
23
26
|
}
|
|
24
27
|
export declare class SharePointTermSetPropertyDefinition extends PropertyDefinition<SharePointTermSetPropertyValue, SharePointTermSetPropertyDisplaySettings, SharePointTermSetPropertyEditorSettings, SharePointTermSetPropertySetupSettings> {
|
|
25
28
|
id: Guid;
|
|
@@ -9,6 +9,9 @@ class SharePointTermSetPropertyValue extends PropertyValue_1.PropertyValue {
|
|
|
9
9
|
constructor(termIds) {
|
|
10
10
|
super();
|
|
11
11
|
this.termIds = termIds;
|
|
12
|
+
this.getValue = () => {
|
|
13
|
+
return this.termIds.map(termId => termId.toString());
|
|
14
|
+
};
|
|
12
15
|
}
|
|
13
16
|
containValue(other) {
|
|
14
17
|
if (this?.termIds?.length == 0)
|
|
@@ -5,6 +5,9 @@ const PropertyValue_1 = require("../PropertyValue");
|
|
|
5
5
|
class DatePropertyValue extends PropertyValue_1.PropertyValue {
|
|
6
6
|
constructor(date, timeZoneId) {
|
|
7
7
|
super();
|
|
8
|
+
this.getValue = () => {
|
|
9
|
+
return { date: this.date, timeZoneId: this.timeZoneId };
|
|
10
|
+
};
|
|
8
11
|
this.date = date.toJSON();
|
|
9
12
|
this.timeZoneId = timeZoneId.toString();
|
|
10
13
|
}
|
package/ux/AdminApi.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { Guid, GuidValue } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
|
|
2
|
+
import { AdminNavigationNode, NavigationNode, NavigationNodeInitializeMessage } from "../admin";
|
|
3
|
+
import { ApiPath, IExtendApiManifestWithConfiguration } from "../Extends";
|
|
3
4
|
import { IMessageBusTopicPublishSubscriber, NavigationMenuNode } from "../Messaging";
|
|
4
5
|
export interface IRegisterAdminNavigationNode {
|
|
5
6
|
registerNavigationNode: (nodes: NavigationNode | NavigationNode[]) => void;
|
|
@@ -7,6 +8,10 @@ export interface IRegisterAdminNavigationNode {
|
|
|
7
8
|
export interface IRegisterAdminNavigationMenuNode {
|
|
8
9
|
registerNavigationMenuNode: (nodes: NavigationMenuNode | NavigationMenuNode[]) => void;
|
|
9
10
|
}
|
|
11
|
+
export interface INavigationNodeRegistration {
|
|
12
|
+
registerToCategory(node: AdminNavigationNode, category: string, weight?: number): void;
|
|
13
|
+
registerToParentNode(node: AdminNavigationNode, parentNodeId: Guid, weight?: number): void;
|
|
14
|
+
}
|
|
10
15
|
export interface IAdminApi {
|
|
11
16
|
registration: {
|
|
12
17
|
navigationNode: Promise<IRegisterAdminNavigationNode>;
|
|
@@ -15,6 +20,9 @@ export interface IAdminApi {
|
|
|
15
20
|
events: {
|
|
16
21
|
initializeNavigationNode: Promise<IMessageBusTopicPublishSubscriber<NavigationNodeInitializeMessage>>;
|
|
17
22
|
};
|
|
23
|
+
navigations: {
|
|
24
|
+
registrations: Promise<INavigationNodeRegistration>;
|
|
25
|
+
};
|
|
18
26
|
}
|
|
19
27
|
declare module "./UxApi" {
|
|
20
28
|
interface IOmniaUxApi {
|
|
@@ -29,6 +37,12 @@ declare module "./UxApi" {
|
|
|
29
37
|
events: {
|
|
30
38
|
initializeNavigationNode: ApiPath;
|
|
31
39
|
};
|
|
40
|
+
navigations: {
|
|
41
|
+
registrations: IExtendApiManifestWithConfiguration<{
|
|
42
|
+
category?: string;
|
|
43
|
+
parentNodeId?: GuidValue;
|
|
44
|
+
}>;
|
|
45
|
+
};
|
|
32
46
|
};
|
|
33
47
|
}
|
|
34
48
|
}
|
package/ux/InternalAdminApi.d.ts
CHANGED
|
@@ -1,9 +1,28 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AdminNavigationBuiltInCategory, GuidValue } from "@omnia/fx-models";
|
|
2
|
+
import { AdminNavigationNode, NavigationNode } from "../admin";
|
|
2
3
|
import { NavigationMenuNode, IMessageBusTopicSubscription } from "../Messaging";
|
|
3
|
-
import { IRegisterAdminNavigationNode, IRegisterAdminNavigationMenuNode } from "./AdminApi";
|
|
4
|
-
export interface
|
|
4
|
+
import { IRegisterAdminNavigationNode, IRegisterAdminNavigationMenuNode, INavigationNodeRegistration } from "./AdminApi";
|
|
5
|
+
export interface AdminNavigationNodeRegistration {
|
|
6
|
+
node: AdminNavigationNode;
|
|
7
|
+
/**
|
|
8
|
+
* This influence the order of the navigation nodes, be nice, use ordering with gap -100, 0, 100, 200
|
|
9
|
+
So other extensions etc can inject between
|
|
10
|
+
*/
|
|
11
|
+
weight: number;
|
|
12
|
+
}
|
|
13
|
+
export interface IInternalAdminApi extends IRegisterAdminNavigationNode, IRegisterAdminNavigationMenuNode, INavigationNodeRegistration {
|
|
5
14
|
getNavigationNodes: () => NavigationNode[];
|
|
6
15
|
getNavigationMenuNodes: () => NavigationMenuNode[];
|
|
7
16
|
onNavigationNodesChange: () => IMessageBusTopicSubscription<NavigationNode[]>;
|
|
8
17
|
onNavigationMenuNodesChange: () => IMessageBusTopicSubscription<NavigationMenuNode[]>;
|
|
18
|
+
getNavigationNodeRegistrationsByCategory(category: string | AdminNavigationBuiltInCategory): Promise<AdminNavigationNodeRegistration[]>;
|
|
19
|
+
getNavigationNodeRegistrationsByParentNodeId(parentId: GuidValue): Promise<AdminNavigationNodeRegistration[]>;
|
|
20
|
+
onNavigationNodeRegistrationToParentAdded: () => IMessageBusTopicSubscription<{
|
|
21
|
+
parentNodeId: GuidValue;
|
|
22
|
+
node: AdminNavigationNodeRegistration;
|
|
23
|
+
}>;
|
|
24
|
+
onNavigationNodeRegistrationToCategoryAdded: () => IMessageBusTopicSubscription<{
|
|
25
|
+
category: string;
|
|
26
|
+
node: AdminNavigationNodeRegistration;
|
|
27
|
+
}>;
|
|
9
28
|
}
|