@omnia/fx-models 8.0.462-dev → 8.0.464-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/BusinessProfile.d.ts +1 -1
- package/BusinessProfile.js +3 -3
- package/ClientManifests.d.ts +3 -3
- package/CommentLike.d.ts +1 -1
- package/ComponentComposer.d.ts +1 -3
- package/Contexts.d.ts +2 -10
- package/Enums.d.ts +0 -14
- package/Enums.js +1 -18
- package/Exposes.d.ts +1 -1
- package/Exposes.js +1 -1
- package/Icon.d.ts +1 -1
- package/Language.d.ts +1 -1
- package/Layout.d.ts +7 -4
- package/LocalizationComposer.d.ts +1 -1
- package/LoginLogFilter.d.ts +1 -1
- package/LoginLogItem.d.ts +1 -1
- package/MultilingualString.d.ts +1 -1
- package/OrganizationTree.d.ts +1 -1
- package/PermissionInputSettings.d.ts +1 -1
- package/Post.d.ts +1 -1
- package/Routing.d.ts +1 -1
- package/Routing.js +2 -2
- package/Security.d.ts +1 -1
- package/SocialReaction.d.ts +1 -1
- package/TargetingProperty.d.ts +1 -1
- package/Tenant.d.ts +1 -1
- package/Tenant.js +2 -2
- package/Translation.d.ts +1 -1
- package/VersionedData.d.ts +1 -1
- package/apps/App.d.ts +1 -1
- package/apps/AppNamingPolicy.d.ts +1 -1
- package/bulkimportusers/BulkImportUsersTasks.d.ts +1 -1
- package/connected-tenants/ConnectedTenantUserMapping.d.ts +1 -1
- package/filterengine/Shared.d.ts +1 -1
- package/identities/AnonymousIdentity.d.ts +1 -1
- package/identities/AnonymousIdentity.js +3 -3
- package/identities/DynamicGroupIdentity.d.ts +1 -1
- package/identities/DynamicGroupIdentity.js +3 -3
- package/identities/ExtensionIdentity.d.ts +1 -1
- package/identities/ExtensionIdentity.js +3 -3
- package/identities/IdentityCreationRequest.d.ts +1 -1
- package/identities/IdentityPropertyConfiguration.d.ts +1 -1
- package/identities/IdentityPropertySyncBinding.d.ts +1 -1
- package/identities/InternalIdentity.js +10 -10
- package/identities/RoleIdentity.d.ts +1 -1
- package/identities/RoleIdentity.js +3 -3
- package/identities/UserTypeSettings.d.ts +1 -1
- package/identities/UserTypeSettings.js +10 -10
- package/internal-do-not-import-from-here/shared/aurora/stores/ColorSchemaStore.d.ts +2 -1
- package/internal-do-not-import-from-here/shared/models/Enums.d.ts +20 -0
- package/internal-do-not-import-from-here/shared/models/Enums.js +25 -1
- package/internal-do-not-import-from-here/shared/models/OmniaSharedBootstrapData.d.ts +9 -0
- package/internal-do-not-import-from-here/shared/models/theme/Blueprints.d.ts +30 -6
- package/media-gallery/providers/MediaDialogProviderComponentProps.d.ts +1 -1
- package/media-gallery/providers/MediaDisplayProviderComponentProps.d.ts +1 -1
- package/media-picker/MediaPickerBase64Image.d.ts +1 -1
- package/media-picker/MediaPickerImageScaling.d.ts +1 -1
- package/media-picker/MediaPickerProvider.d.ts +1 -1
- package/media-picker/SharePointVideoResult.d.ts +1 -1
- package/media-picker/interfaces/IMediaPickerProviderMediaHandler.d.ts +1 -1
- package/media-picker/interfaces/types.d.ts +1 -1
- package/package.json +1 -1
- package/properties/definitions/BirthdayPropertyDefinition.d.ts +1 -1
- package/properties/definitions/DateTimePropertyDefinition.d.ts +1 -1
- package/properties/definitions/HtmlPropertyDefinition.d.ts +1 -1
- package/properties/definitions/IdentityPropertyDefinition.d.ts +1 -1
- package/properties/definitions/LinkPropertyDefinition.d.ts +1 -1
- package/properties/definitions/MediaPropertyDefinition.d.ts +1 -1
- package/properties/definitions/PhoneNumberPropertyDefinition.d.ts +1 -1
- package/properties/definitions/TermSetPropertyDefinition.d.ts +1 -1
- package/properties/values/IdentityPropertyValue.d.ts +1 -1
- package/properties/values/MediaPropertyValue.d.ts +1 -1
- package/richtext-editor-extensions/MentionExtension.d.ts +1 -1
- package/shared-mobile/IPagingable.d.ts +5 -0
- package/shared-mobile/IPagingable.js +2 -0
- package/shared-mobile/ItemQuery.d.ts +10 -0
- package/shared-mobile/ItemQuery.js +6 -0
- package/shared-mobile/NamedProperty.d.ts +38 -0
- package/shared-mobile/NamedProperty.js +13 -0
- package/shared-mobile/SharedConstants.d.ts +3 -0
- package/shared-mobile/SharedConstants.js +6 -0
- package/shared-mobile/SharedMobileEnums.d.ts +183 -0
- package/shared-mobile/SharedMobileEnums.js +195 -0
- package/shared-mobile/identities/BuiltInIdentityProvider.d.ts +7 -0
- package/shared-mobile/identities/BuiltInIdentityProvider.js +22 -0
- package/shared-mobile/identities/GroupIdentity.d.ts +54 -0
- package/shared-mobile/identities/GroupIdentity.js +25 -0
- package/shared-mobile/identities/GroupMembers.d.ts +6 -0
- package/shared-mobile/identities/GroupMembers.js +2 -0
- package/shared-mobile/identities/Identity.d.ts +37 -0
- package/shared-mobile/identities/Identity.js +112 -0
- package/shared-mobile/identities/IdentityQuery.d.ts +26 -0
- package/shared-mobile/identities/IdentityQuery.js +27 -0
- package/shared-mobile/identities/IdentityTypes.d.ts +8 -0
- package/shared-mobile/identities/IdentityTypes.js +12 -0
- package/shared-mobile/identities/ScopeTypes.d.ts +5 -0
- package/shared-mobile/identities/ScopeTypes.js +9 -0
- package/shared-mobile/identities/UserIdentity.d.ts +107 -0
- package/shared-mobile/identities/UserIdentity.js +107 -0
- package/shared-mobile/identities/UserIdentityQuery.d.ts +26 -0
- package/shared-mobile/identities/UserIdentityQuery.js +27 -0
- package/shared-mobile/identities/index.d.ts +9 -0
- package/shared-mobile/identities/index.js +12 -0
- package/shared-mobile/index.d.ts +8 -0
- package/shared-mobile/index.js +11 -0
- package/shared-mobile/media-picker/MediaPickerMedia.d.ts +33 -0
- package/shared-mobile/media-picker/MediaPickerMedia.js +2 -0
- package/shared-mobile/media-picker/index.d.ts +1 -0
- package/shared-mobile/media-picker/index.js +4 -0
- package/shared-mobile/oxide/OSizeTypes.d.ts +2 -0
- package/shared-mobile/oxide/OSizeTypes.js +4 -0
- package/shared-mobile/oxide/index.d.ts +1 -0
- package/shared-mobile/oxide/index.js +4 -0
- package/shared-mobile/properties/PropertySettingsLock.d.ts +13 -0
- package/shared-mobile/properties/PropertySettingsLock.js +9 -0
- package/shared-mobile/properties/definitions/EmailPropertyDefinition.d.ts +12 -0
- package/shared-mobile/properties/definitions/EmailPropertyDefinition.js +19 -0
- package/shared-mobile/properties/definitions/ImagePropertyDefinition.d.ts +24 -0
- package/shared-mobile/properties/definitions/ImagePropertyDefinition.js +19 -0
- package/shared-mobile/properties/definitions/LanguagePropertyDefinition.d.ts +14 -0
- package/shared-mobile/properties/definitions/LanguagePropertyDefinition.js +19 -0
- package/shared-mobile/properties/definitions/TextPropertyDefinition.d.ts +16 -0
- package/shared-mobile/properties/definitions/TextPropertyDefinition.js +19 -0
- package/shared-mobile/properties/definitions/index.d.ts +4 -0
- package/shared-mobile/properties/definitions/index.js +7 -0
- package/shared-mobile/properties/index.d.ts +3 -0
- package/shared-mobile/properties/index.js +6 -0
- package/shared-mobile/properties/values/EmailPropertyValue.d.ts +6 -0
- package/shared-mobile/properties/values/EmailPropertyValue.js +14 -0
- package/shared-mobile/properties/values/ImagePropertyValue.d.ts +8 -0
- package/shared-mobile/properties/values/ImagePropertyValue.js +14 -0
- package/shared-mobile/properties/values/LanguagePropertyValue.d.ts +7 -0
- package/shared-mobile/properties/values/LanguagePropertyValue.js +14 -0
- package/shared-mobile/properties/values/PhoneNumberPropertyValue.d.ts +6 -0
- package/shared-mobile/properties/values/PhoneNumberPropertyValue.js +14 -0
- package/shared-mobile/properties/values/TextPropertyValue.d.ts +6 -0
- package/shared-mobile/properties/values/TextPropertyValue.js +14 -0
- package/shared-mobile/properties/values/index.d.ts +5 -0
- package/shared-mobile/properties/values/index.js +8 -0
@@ -1,19 +1,19 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.UserTypeSettingsFactory = exports.builtInPropertyBindings = void 0;
|
4
|
-
const
|
4
|
+
const shared_mobile_1 = require("../shared-mobile");
|
5
5
|
const properties_1 = require("../properties");
|
6
|
-
const
|
6
|
+
const models_1 = require("@omnia/fx-models/internal-do-not-import-from-here/shared/models");
|
7
7
|
exports.builtInPropertyBindings = {
|
8
8
|
user: {
|
9
|
-
displayName: new
|
10
|
-
username: new
|
11
|
-
image: new
|
12
|
-
email: new
|
13
|
-
preferredLanguage: new
|
14
|
-
uiLanguage: new
|
15
|
-
userType: new
|
16
|
-
owner: new
|
9
|
+
displayName: new models_1.PropertyBinding(shared_mobile_1.TextPropertyDefinition, (0, models_1.guid)("44d8238b-97d5-468b-9a4f-4d23d95aa3b9")),
|
10
|
+
username: new models_1.PropertyBinding(shared_mobile_1.TextPropertyDefinition, (0, models_1.guid)("3f89e33a-143d-4b6f-ba58-b05ad6479dce")),
|
11
|
+
image: new models_1.PropertyBinding(shared_mobile_1.ImagePropertyDefinition, (0, models_1.guid)("964db53a-309e-4ace-b269-4637a1dd57ef")),
|
12
|
+
email: new models_1.PropertyBinding(shared_mobile_1.EmailPropertyDefinition, (0, models_1.guid)("143d9a73-ba3d-43ff-9f6b-9808f6ca3d2b")),
|
13
|
+
preferredLanguage: new models_1.PropertyBinding(shared_mobile_1.LanguagePropertyDefinition, (0, models_1.guid)("aea79130-57c9-4a8a-baa4-f2b2865a4fd7")),
|
14
|
+
uiLanguage: new models_1.PropertyBinding(shared_mobile_1.LanguagePropertyDefinition, (0, models_1.guid)("5ba31954-1b4d-4578-a3cd-e62ebddc2a03")),
|
15
|
+
userType: new models_1.PropertyBinding(properties_1.UserTypePropertyDefinition, (0, models_1.guid)("53546e52-3016-4233-bdf0-6ba2a29606c9")),
|
16
|
+
owner: new models_1.PropertyBinding(properties_1.BusinessProfilePropertyDefinition, (0, models_1.guid)("6de8a80c-5880-45f4-b8e8-faf06da97ea1")),
|
17
17
|
},
|
18
18
|
};
|
19
19
|
const buitinUserPropertiesBindingIdList = Object.values(exports.builtInPropertyBindings.user).map(item => item.bindingId);
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { type StoreEvents, type StoreReturnDefineAction } from "internal/fx/shared";
|
2
|
-
import { ColorDefinition, ColorGradientValue, ColorSchema, ColorSchemaType, ColorSchemaTypes, ColorTypes, ColorValue, guid } from "internal/fx/shared/models";
|
2
|
+
import { ColorDefinition, ColorGradientValue, ColorSchema, ColorSchemaType, ColorSchemaTypes, ColorTypes, ColorValue, DynamicColorSettings, guid } from "internal/fx/shared/models";
|
3
3
|
import { useThemeStore } from "./ThemeStore";
|
4
4
|
export type ColorSchemaStoreType = {
|
5
5
|
state: {
|
@@ -29,6 +29,7 @@ export type ColorSchemaStoreType = {
|
|
29
29
|
theme: "dark" | "light";
|
30
30
|
base: ColorDefinition;
|
31
31
|
onBase: ColorDefinition;
|
32
|
+
dynamicColorType(colorSettings: DynamicColorSettings, contextColor: ColorSchemaType): any;
|
32
33
|
};
|
33
34
|
dispose(force?: boolean): void;
|
34
35
|
};
|
@@ -7,3 +7,23 @@ export declare enum TextAlignment {
|
|
7
7
|
center = "center",
|
8
8
|
right = "right"
|
9
9
|
}
|
10
|
+
export declare enum HorizontalAlignments {
|
11
|
+
left = 0,
|
12
|
+
center = 1,
|
13
|
+
right = 2
|
14
|
+
}
|
15
|
+
export declare enum VerticalAlignments {
|
16
|
+
top = 0,
|
17
|
+
center = 1,
|
18
|
+
bottom = 2
|
19
|
+
}
|
20
|
+
export declare enum OmniaBackendRuntimes {
|
21
|
+
/**Omnia server for Sharepoint Online */
|
22
|
+
M365 = "sponline",
|
23
|
+
/**Omnia server for Sharepoint OnPrem */
|
24
|
+
SharePointServer = "sponprem"
|
25
|
+
}
|
26
|
+
export declare enum OmniaClientRuntimes {
|
27
|
+
Spfx = "spfx",
|
28
|
+
OmniaApp = "omniaapp"
|
29
|
+
}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.TextAlignment = exports.ServiceLocatorUrlType = void 0;
|
3
|
+
exports.OmniaClientRuntimes = exports.OmniaBackendRuntimes = exports.VerticalAlignments = exports.HorizontalAlignments = exports.TextAlignment = exports.ServiceLocatorUrlType = void 0;
|
4
4
|
var ServiceLocatorUrlType;
|
5
5
|
(function (ServiceLocatorUrlType) {
|
6
6
|
ServiceLocatorUrlType[ServiceLocatorUrlType["Api"] = 0] = "Api";
|
@@ -12,3 +12,27 @@ var TextAlignment;
|
|
12
12
|
TextAlignment["center"] = "center";
|
13
13
|
TextAlignment["right"] = "right";
|
14
14
|
})(TextAlignment || (exports.TextAlignment = TextAlignment = {}));
|
15
|
+
var HorizontalAlignments;
|
16
|
+
(function (HorizontalAlignments) {
|
17
|
+
HorizontalAlignments[HorizontalAlignments["left"] = 0] = "left";
|
18
|
+
HorizontalAlignments[HorizontalAlignments["center"] = 1] = "center";
|
19
|
+
HorizontalAlignments[HorizontalAlignments["right"] = 2] = "right";
|
20
|
+
})(HorizontalAlignments || (exports.HorizontalAlignments = HorizontalAlignments = {}));
|
21
|
+
var VerticalAlignments;
|
22
|
+
(function (VerticalAlignments) {
|
23
|
+
VerticalAlignments[VerticalAlignments["top"] = 0] = "top";
|
24
|
+
VerticalAlignments[VerticalAlignments["center"] = 1] = "center";
|
25
|
+
VerticalAlignments[VerticalAlignments["bottom"] = 2] = "bottom";
|
26
|
+
})(VerticalAlignments || (exports.VerticalAlignments = VerticalAlignments = {}));
|
27
|
+
var OmniaBackendRuntimes;
|
28
|
+
(function (OmniaBackendRuntimes) {
|
29
|
+
/**Omnia server for Sharepoint Online */
|
30
|
+
OmniaBackendRuntimes["M365"] = "sponline";
|
31
|
+
/**Omnia server for Sharepoint OnPrem */
|
32
|
+
OmniaBackendRuntimes["SharePointServer"] = "sponprem";
|
33
|
+
})(OmniaBackendRuntimes || (exports.OmniaBackendRuntimes = OmniaBackendRuntimes = {}));
|
34
|
+
var OmniaClientRuntimes;
|
35
|
+
(function (OmniaClientRuntimes) {
|
36
|
+
OmniaClientRuntimes["Spfx"] = "spfx";
|
37
|
+
OmniaClientRuntimes["OmniaApp"] = "omniaapp";
|
38
|
+
})(OmniaClientRuntimes || (exports.OmniaClientRuntimes = OmniaClientRuntimes = {}));
|
@@ -2,6 +2,7 @@ import { OmniaToken } from "./Tokens";
|
|
2
2
|
import { guid } from "./Guid";
|
3
3
|
import { TenantIdentifier } from "./Tenant";
|
4
4
|
import { ActorId } from "./OmniaHub";
|
5
|
+
import { OmniaBackendRuntimes, OmniaClientRuntimes } from "./Enums";
|
5
6
|
export interface OmniaSharedBootstrapData {
|
6
7
|
uiThreadId: guid;
|
7
8
|
workerThreadId: guid;
|
@@ -26,6 +27,7 @@ export interface OmniaSharedBootstrapData {
|
|
26
27
|
serviceDnsMapping: OmniaServiceToDnsMapping;
|
27
28
|
authDisabled?: boolean;
|
28
29
|
analytics: OmniaAnalytics;
|
30
|
+
enviroment: OmniaEnvironmentContext;
|
29
31
|
/**
|
30
32
|
* Don't use it, only for test perf
|
31
33
|
*/
|
@@ -38,3 +40,10 @@ export interface OmniaAnalytics {
|
|
38
40
|
export interface OmniaServiceToDnsMapping {
|
39
41
|
[serviceId: guid]: string;
|
40
42
|
}
|
43
|
+
export interface OmniaEnvironmentContext {
|
44
|
+
readonly isOmniaApp: boolean;
|
45
|
+
clientRuntime: OmniaClientRuntimes;
|
46
|
+
backendRuntime: OmniaBackendRuntimes;
|
47
|
+
isBackendSharePointServer: boolean;
|
48
|
+
isBackendM365: boolean;
|
49
|
+
}
|
@@ -3,8 +3,9 @@ import { SpacingDefinition, Spacing, SpacingValue } from "./Spacing";
|
|
3
3
|
import { TypographyFontDefinition, TextStyleValue } from "./Typography";
|
4
4
|
import { ThemeBase } from "./ThemeBase";
|
5
5
|
import { VelcronRendererResolverReference } from "../velcron";
|
6
|
-
import { TextAlignment } from "../Enums";
|
7
|
-
import {
|
6
|
+
import { HorizontalAlignments, TextAlignment, VerticalAlignments } from "../Enums";
|
7
|
+
import { MultilingualString } from "../MultilingualString";
|
8
|
+
import { IIcon } from "../Icon";
|
8
9
|
export interface BlueprintStrategy {
|
9
10
|
buttons: {
|
10
11
|
primary: ButtonBlueprint;
|
@@ -32,6 +33,18 @@ export interface VariantBlueprints<T> extends Blueprints {
|
|
32
33
|
variant7?: T;
|
33
34
|
variant8?: T;
|
34
35
|
}
|
36
|
+
export interface DynamicColorSettings {
|
37
|
+
colorSchemaType?: ColorSchemaType;
|
38
|
+
dynamicColorSchema?: boolean;
|
39
|
+
}
|
40
|
+
export interface HeaderSettings {
|
41
|
+
text?: string | MultilingualString;
|
42
|
+
icon?: IIcon;
|
43
|
+
anchorName?: string;
|
44
|
+
colorSchemaType?: ColorSchemaType;
|
45
|
+
state?: any;
|
46
|
+
blueprint?: HeaderBlueprint | BlueprintVariant;
|
47
|
+
}
|
35
48
|
export interface HeaderIconBlueprint {
|
36
49
|
blueprint?: IconBlueprint;
|
37
50
|
background?: BackgroundDefinition;
|
@@ -40,13 +53,15 @@ export interface HeaderIconBlueprint {
|
|
40
53
|
backgroundHeight?: number;
|
41
54
|
margin?: Spacing;
|
42
55
|
}
|
43
|
-
export interface HeaderBlueprint extends Blueprint {
|
56
|
+
export interface HeaderBlueprint extends Blueprint, DynamicColorSettings {
|
44
57
|
/**velcron */
|
45
58
|
renderer?: VelcronRendererResolverReference;
|
46
59
|
iconMargin?: SpacingValue;
|
47
60
|
noIcon?: boolean;
|
48
61
|
state?: any;
|
49
62
|
/**Settings */
|
63
|
+
colorSchemaType?: ColorSchemaType;
|
64
|
+
dynamicColorSchema?: boolean;
|
50
65
|
background?: BackgroundDefinition;
|
51
66
|
textAlign?: TextAlignment;
|
52
67
|
upperCase?: boolean;
|
@@ -67,9 +82,10 @@ export interface TextFillBlueprint extends Blueprints, BlueprintsReference {
|
|
67
82
|
export interface ContainerFillBlueprints extends VariantBlueprints<ContainerFillBlueprint>, Blueprints, BlueprintsReference {
|
68
83
|
}
|
69
84
|
export type ContainerFillValue = BlueprintVariant | ContainerFillBlueprint;
|
70
|
-
export interface ContainerFillBlueprint extends Blueprints, BlueprintsReference {
|
85
|
+
export interface ContainerFillBlueprint extends Blueprints, BlueprintsReference, DynamicColorSettings {
|
71
86
|
name?: string;
|
72
87
|
colorSchemaType: ColorSchemaType;
|
88
|
+
dynamicColorSchema?: boolean;
|
73
89
|
background?: BackgroundDefinition;
|
74
90
|
}
|
75
91
|
export interface IFontBlueprints extends Blueprints, BlueprintsReference {
|
@@ -120,7 +136,7 @@ export interface ButtonBlueprintVariant {
|
|
120
136
|
type: ButtonVariant;
|
121
137
|
category: ButtonBlueprintType;
|
122
138
|
}
|
123
|
-
export interface ButtonBlueprint extends Blueprint {
|
139
|
+
export interface ButtonBlueprint extends Blueprint, DynamicColorSettings {
|
124
140
|
padding?: Spacing;
|
125
141
|
iconMargin?: SpacingValue;
|
126
142
|
height?: number;
|
@@ -132,6 +148,8 @@ export interface ButtonBlueprint extends Blueprint {
|
|
132
148
|
iconBackground?: BackgroundDefinition;
|
133
149
|
iconBackgroundHeight?: number;
|
134
150
|
viewTemplate?: VelcronRendererResolverReference;
|
151
|
+
colorSchemaType?: ColorSchemaType;
|
152
|
+
dynamicColorSchema?: boolean;
|
135
153
|
}
|
136
154
|
export interface ButtonBlueprints extends Blueprints {
|
137
155
|
text?: {
|
@@ -164,13 +182,15 @@ export interface InputBlueprint extends Blueprint {
|
|
164
182
|
export interface TabsBlueprints extends Blueprints, VariantBlueprints<TabsBlueprint> {
|
165
183
|
primary?: TabsBlueprint;
|
166
184
|
}
|
167
|
-
export interface TabsBlueprint extends Blueprint {
|
185
|
+
export interface TabsBlueprint extends Blueprint, DynamicColorSettings {
|
168
186
|
background?: BackgroundDefinition;
|
169
187
|
padding?: Spacing;
|
170
188
|
iconPadding?: SpacingValue;
|
171
189
|
margin?: Spacing;
|
172
190
|
vertical?: boolean;
|
173
191
|
hideSlider?: boolean;
|
192
|
+
colorSchemaType?: ColorSchemaType;
|
193
|
+
dynamicColorSchema?: boolean;
|
174
194
|
iconPosition?: "left" | "right" | "top";
|
175
195
|
grow?: boolean;
|
176
196
|
minHeight?: number;
|
@@ -179,6 +199,8 @@ export interface TabsBlueprint extends Blueprint {
|
|
179
199
|
sliderColor?: ColorValue;
|
180
200
|
text?: TextBlueprint;
|
181
201
|
icon?: IconBlueprint;
|
202
|
+
iconBackground?: BackgroundDefinition;
|
203
|
+
iconBackgroundHeight?: number;
|
182
204
|
active?: {
|
183
205
|
renderer?: VelcronRendererResolverReference;
|
184
206
|
padding?: Spacing;
|
@@ -186,6 +208,8 @@ export interface TabsBlueprint extends Blueprint {
|
|
186
208
|
background?: BackgroundDefinition;
|
187
209
|
text?: TextBlueprint;
|
188
210
|
icon?: IconBlueprint;
|
211
|
+
iconBackground?: BackgroundDefinition;
|
212
|
+
iconBackgroundHeight?: number;
|
189
213
|
};
|
190
214
|
inactive?: {
|
191
215
|
background?: BackgroundDefinition;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { MediaPickerMedia } from "
|
1
|
+
import { MediaPickerMedia } from "../../shared-mobile";
|
2
2
|
export interface MediaDialogProviderComponentProps {
|
3
3
|
/**Media content to render */
|
4
4
|
media: MediaPickerMedia[];
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { MediaPickerMedia } from "
|
1
|
+
import { MediaPickerMedia } from "../../shared-mobile";
|
2
2
|
export interface MediaDisplayProviderComponentProps {
|
3
3
|
/**Media content to render */
|
4
4
|
media: MediaPickerMedia[];
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { MediaPickerImageMetaData } from "
|
1
|
+
import { MediaPickerImageMetaData } from "../shared-mobile";
|
2
2
|
export interface MediaPickerBase64Image extends MediaPickerImageMetaData {
|
3
3
|
base64: string;
|
4
4
|
}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { guid } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
|
2
2
|
import { MultilingualString } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
|
3
|
-
import { MediaPickerEnums } from "
|
3
|
+
import { MediaPickerEnums } from "../shared-mobile";
|
4
4
|
export declare abstract class MediaPickerImageScalingDefinition {
|
5
5
|
abstract readonly uniqueId: guid;
|
6
6
|
abstract readonly title: MultilingualString;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { guid, IIcon } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
|
2
|
-
import { MediaPickerVideo, MediaPickerEnums } from "
|
2
|
+
import { MediaPickerVideo, MediaPickerEnums } from "../shared-mobile";
|
3
3
|
import { MediaPickerPersistedImage } from "./Shared";
|
4
4
|
export interface MediaPickerProvider {
|
5
5
|
id: guid;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { guid } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
|
2
|
-
import { MediaPickerVideo } from "
|
2
|
+
import { MediaPickerVideo } from "../shared-mobile";
|
3
3
|
export interface MediaPickerSharePointVideo extends MediaPickerVideo {
|
4
4
|
showTitle: boolean;
|
5
5
|
}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { MediaPickerImageScaling } from "../MediaPickerImageScaling";
|
2
|
-
import { MediaPickerVideo } from "
|
2
|
+
import { MediaPickerVideo } from "../../shared-mobile";
|
3
3
|
import { MediaItem, ImageInformation } from "../Shared";
|
4
4
|
/**
|
5
5
|
* @description interface for media picker provider, which contains the logic for **handling the media picker provider** events
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { guid, IIcon } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
|
2
2
|
import { MediaPickerRenditionData } from "../MediaPickerImageRendition";
|
3
3
|
import { MediaPickerImageTransformationResult } from "../MediaPickerImageTransformationResult";
|
4
|
-
import { MediaPickerImage, MediaPickerVideo, MediaPickerMedia } from "
|
4
|
+
import { MediaPickerImage, MediaPickerVideo, MediaPickerMedia } from "../../shared-mobile";
|
5
5
|
import { MediaPickerProvider } from "../MediaPickerProvider";
|
6
6
|
import { MediaPickerTransformedBase64Image } from "../MediaPickerTransformedBase64Image";
|
7
7
|
export type MediaPickerMediaItem = MediaPickerImage | MediaPickerVideo | MediaPickerMedia;
|
package/package.json
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { LockStatusExcludeChildren, PropertyLockStatusType } from "
|
1
|
+
import { LockStatusExcludeChildren, PropertyLockStatusType } from "../../shared-mobile";
|
2
2
|
import { PropertyDefinition, PropertyDisplaySettingsBase, PropertyEditorSettingsBase } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
|
3
3
|
import { BirthdayPropertyValue } from "../values";
|
4
4
|
import { guid } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { LockStatusExcludeChildren, PropertyLockStatusType } from "
|
1
|
+
import { LockStatusExcludeChildren, PropertyLockStatusType } from "../../shared-mobile";
|
2
2
|
import { PropertyDefinition, PropertyDisplaySettingsBase, PropertyEditorSettingsBase } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
|
3
3
|
import { DateTimePropertyValue } from "../values";
|
4
4
|
import { DateRenderOption } from "./DatePropertyDefinition";
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { LockStatusExcludeChildren, PropertyLockStatusType } from "
|
1
|
+
import { LockStatusExcludeChildren, PropertyLockStatusType } from "../../shared-mobile";
|
2
2
|
import { RichTextEditorExtension } from "../../RichTextEditorExtension";
|
3
3
|
import { PropertyDefinition, PropertyDisplaySettingsBase, PropertyEditorSettingsBase } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
|
4
4
|
import { HtmlPropertyValue } from "../values";
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { LockStatusExcludeChildren, PropertyLockStatusType } from "
|
1
|
+
import { LockStatusExcludeChildren, PropertyLockStatusType } from "../../shared-mobile";
|
2
2
|
import { PrincipalTypes } from "../../Enums";
|
3
3
|
import { PropertyDefinition, PropertyDisplaySettingsBase, PropertyEditorSettingsBase } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
|
4
4
|
import { IdentityPropertyValue } from "../values";
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { LockStatusExcludeChildren, PropertyLockStatusType } from "
|
1
|
+
import { LockStatusExcludeChildren, PropertyLockStatusType } from "../../shared-mobile";
|
2
2
|
import { PropertyDefinition, PropertyDisplaySettingsBase, PropertyEditorSettingsBase } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
|
3
3
|
import { LinkPropertyValue } from "../values";
|
4
4
|
import { guid } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { PropertyDefinition, PropertyDisplaySettingsBase, PropertyEditorSettingsBase } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
|
2
2
|
import { MediaPropertyValue } from "../values";
|
3
|
-
import { ImageDisplaySettings, ImageEditorSettings } from "
|
3
|
+
import { ImageDisplaySettings, ImageEditorSettings } from "../../shared-mobile";
|
4
4
|
import { guid } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
|
5
5
|
export type VideoDisplaySettings = {} & PropertyDisplaySettingsBase;
|
6
6
|
export type VideoEditorSettings = {};
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { PropertyDefinition, PropertyDisplaySettingsBase } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
|
2
|
-
import { PhoneNumberPropertyValue, LockStatusExcludeChildren, PropertyLockStatusType } from "
|
2
|
+
import { PhoneNumberPropertyValue, LockStatusExcludeChildren, PropertyLockStatusType } from "../../shared-mobile";
|
3
3
|
import { guid } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
|
4
4
|
export declare class PhoneDisplaySettings extends PropertyDisplaySettingsBase {
|
5
5
|
locks?: PropertyLockStatusType<LockStatusExcludeChildren<Omit<PhoneDisplaySettings, "locks">, "label">>;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { guid } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
|
2
|
-
import { LockStatusExcludeChildren, PropertyLockStatusType } from "
|
2
|
+
import { LockStatusExcludeChildren, PropertyLockStatusType } from "../../shared-mobile";
|
3
3
|
import { PropertyDefinition, PropertyDisplaySettingsBase, PropertyValue } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
|
4
4
|
export type SharePointTermSetPropertySetupSettings = {
|
5
5
|
termSetId: guid;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { Identity } from "
|
1
|
+
import { Identity } from "../../shared-mobile";
|
2
2
|
import { PropertyValue } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
|
3
3
|
export declare class IdentityPropertyValue extends PropertyValue {
|
4
4
|
identities: Identity[];
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { MediaPickerMedia } from "
|
1
|
+
import { MediaPickerMedia } from "../../shared-mobile";
|
2
2
|
import { PropertyValue } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
|
3
3
|
export declare class MediaPropertyValue extends PropertyValue {
|
4
4
|
media: MediaPickerMedia;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { ResolvedUserIdentity } from "
|
1
|
+
import { ResolvedUserIdentity } from "../shared-mobile";
|
2
2
|
import { EditorCommand } from "./EditorCommand";
|
3
3
|
import { EditorMenuBar } from "./EditorMenuBar";
|
4
4
|
import { ToolbarProperties } from "./ToolbarProperties";
|
@@ -0,0 +1,38 @@
|
|
1
|
+
import { guid, IMessageBusTopicSubscription } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
|
2
|
+
export interface NamedPropertyIdentifier {
|
3
|
+
serviceId: string;
|
4
|
+
name: string;
|
5
|
+
}
|
6
|
+
export interface NamedProperty<T> extends NamedPropertyIdentifier {
|
7
|
+
value: T;
|
8
|
+
}
|
9
|
+
export interface TypedNamedProperty<T> extends NamedPropertyIdentifier {
|
10
|
+
}
|
11
|
+
export interface INamedPropertiesOperations {
|
12
|
+
/**
|
13
|
+
* Gets a property or null if not found
|
14
|
+
* */
|
15
|
+
getProperty: <T>(typedPropertyDefinition: TypedNamedProperty<T>) => T;
|
16
|
+
}
|
17
|
+
export type NamedPropertyCollection = Array<NamedProperty<string>>;
|
18
|
+
export interface IOmniaPropertyBag<T extends OmniaNamedModel> {
|
19
|
+
/**
|
20
|
+
* Get a model from current values, i.e. assumes that the propertybag has been either initialized by calling getAllValues or initialized with values
|
21
|
+
* Returns an instance of the the model with model values populated or null if not found (or if no values have been loaded for this bag)
|
22
|
+
* */
|
23
|
+
getModel: <Model extends T>(model: new () => Model) => Model;
|
24
|
+
addOrUpdate: (...args: Array<T>) => Promise<Array<T>>;
|
25
|
+
getAllValues: (forceGetFromServer?: boolean) => Promise<Array<T>>;
|
26
|
+
removeValues: (...args: Array<T>) => Promise<void>;
|
27
|
+
removeAllValues: () => Promise<void>;
|
28
|
+
removeOmniaServiceValues: (omniaServiceId: guid) => Promise<void>;
|
29
|
+
onChanged: () => IMessageBusTopicSubscription<void>;
|
30
|
+
}
|
31
|
+
/**
|
32
|
+
* This is the new base for omnia named typed properties
|
33
|
+
* */
|
34
|
+
export declare abstract class OmniaNamedModel {
|
35
|
+
readonly omniaServiceId: guid;
|
36
|
+
readonly uniqueModelName: string;
|
37
|
+
constructor(omniaServiceId: guid, uniqueModelName: string);
|
38
|
+
}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.OmniaNamedModel = void 0;
|
4
|
+
/**
|
5
|
+
* This is the new base for omnia named typed properties
|
6
|
+
* */
|
7
|
+
class OmniaNamedModel {
|
8
|
+
constructor(omniaServiceId, uniqueModelName) {
|
9
|
+
this.omniaServiceId = omniaServiceId;
|
10
|
+
this.uniqueModelName = uniqueModelName;
|
11
|
+
}
|
12
|
+
}
|
13
|
+
exports.OmniaNamedModel = OmniaNamedModel;
|