@omnia/fx-models 8.0.288-dev → 8.0.290-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 +5 -1
- package/BusinessProfile.js +7 -1
- package/Constants.d.ts +1 -0
- package/Constants.js +1 -0
- package/Exposes.d.ts +1 -1
- package/Exposes.js +1 -1
- package/Icon.js +5 -3
- package/Tenant.d.ts +5 -1
- package/Tenant.js +7 -1
- package/apps/App.d.ts +6 -1
- package/apps/App.js +9 -1
- package/floweditor/FlowEditorActionRegistration.d.ts +1 -1
- package/floweditor/FlowEditorPluginRegistration.d.ts +2 -1
- package/internal-do-not-import-from-here/shared/models/theming/ThemeDefinitionV2.d.ts +4 -0
- package/internal-do-not-import-from-here/shared/models/velcron/VelcronDefinition.d.ts +1 -1
- package/internal-do-not-import-from-here/velcron/core/models/VelcronDefinitions.d.ts +17 -0
- package/internal-do-not-import-from-here/velcron/core/models/VelcronPropertyEditorDefinitions.d.ts +11 -1
- package/links/LinkItem.d.ts +11 -0
- package/links/LinkStatus.js +2 -0
- package/{linkstatus → links}/index.d.ts +1 -0
- package/{linkstatus → links}/index.js +1 -0
- package/package.json +1 -1
- package/properties/values/LinkPropertyValue.d.ts +3 -2
- package/ux/LinkItemHandlerApi.d.ts +3 -2
- /package/{linkstatus/LinkStatus.js → links/LinkItem.js} +0 -0
- /package/{linkstatus → links}/LinkStatus.d.ts +0 -0
package/BusinessProfile.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { guid } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
|
1
|
+
import { guid, ThemingSetting } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
|
2
2
|
import { types } from "typestyle";
|
3
3
|
import { LanguageSettings, VersionedLayoutId } from ".";
|
4
4
|
import { ThemeType } from "./Enums";
|
@@ -46,6 +46,10 @@ export declare class BusinessProfileTheme extends BusinessProfileProperty implem
|
|
46
46
|
warning: string;
|
47
47
|
type: ThemeType;
|
48
48
|
}
|
49
|
+
export declare class BusinessProfileThemingManager extends BusinessProfileProperty {
|
50
|
+
constructor();
|
51
|
+
businessProfileTheming: ThemingSetting;
|
52
|
+
}
|
49
53
|
export interface CentralImageLocation {
|
50
54
|
webUrl?: string;
|
51
55
|
webTitle?: string;
|
package/BusinessProfile.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.TenantRegionalStyles = exports.OmniaBusinessProfileRelativePathValue = exports.BusinessProfileRelativePathValue = exports.BusinessProfileChromeLayout = exports.BusinessProfileFaviconSettings = exports.BusinessProfileHomeUrlSettings = exports.BusinessProfileLanguageSettings = exports.BusinessProfileMediaPicker = exports.BusinessProfileTheme = exports.BusinessProfilePathProperty = exports.BusinessProfileProperty = void 0;
|
3
|
+
exports.TenantRegionalStyles = exports.OmniaBusinessProfileRelativePathValue = exports.BusinessProfileRelativePathValue = exports.BusinessProfileChromeLayout = exports.BusinessProfileFaviconSettings = exports.BusinessProfileHomeUrlSettings = exports.BusinessProfileLanguageSettings = exports.BusinessProfileMediaPicker = exports.BusinessProfileThemingManager = exports.BusinessProfileTheme = exports.BusinessProfilePathProperty = exports.BusinessProfileProperty = void 0;
|
4
4
|
const ManifestIds_1 = require("./ManifestIds");
|
5
5
|
const NamedProperty_1 = require("./NamedProperty");
|
6
6
|
class BusinessProfileProperty extends NamedProperty_1.OmniaNamedModel {
|
@@ -15,6 +15,12 @@ class BusinessProfileTheme extends BusinessProfileProperty {
|
|
15
15
|
}
|
16
16
|
}
|
17
17
|
exports.BusinessProfileTheme = BusinessProfileTheme;
|
18
|
+
class BusinessProfileThemingManager extends BusinessProfileProperty {
|
19
|
+
constructor() {
|
20
|
+
super(ManifestIds_1.OmniaService.Id, "themingManager");
|
21
|
+
}
|
22
|
+
}
|
23
|
+
exports.BusinessProfileThemingManager = BusinessProfileThemingManager;
|
18
24
|
class BusinessProfileMediaPicker extends BusinessProfileProperty {
|
19
25
|
constructor() {
|
20
26
|
super(ManifestIds_1.OmniaService.Id, "mediapicker");
|
package/Constants.d.ts
CHANGED
package/Constants.js
CHANGED
@@ -36,6 +36,7 @@ exports.Constants = {
|
|
36
36
|
testdata: (0, models_1.guid)("ff9021ea-9a0f-424a-8c38-ae56849013cc"),
|
37
37
|
keyboardEvents: (0, models_1.guid)("97fd7ca7-2c64-473e-b327-5225aeabe54f"),
|
38
38
|
editorEvents: (0, models_1.guid)("6ad1cfa0-7ca1-430e-b381-f3a9a62dad51"),
|
39
|
+
link: (0, models_1.guid)("ffd2b3fb-8590-4030-8aae-c7b78c231bd9")
|
39
40
|
}
|
40
41
|
},
|
41
42
|
filterEngine: {
|
package/Exposes.d.ts
CHANGED
@@ -128,7 +128,7 @@ export * from "./enterprise-glossary";
|
|
128
128
|
export * from "./enterprise-properties";
|
129
129
|
export * from "./filterengine";
|
130
130
|
export * from "./identities";
|
131
|
-
export * from "./
|
131
|
+
export * from "./links";
|
132
132
|
export * from "./media-gallery";
|
133
133
|
export * from "./mediaflow";
|
134
134
|
export * from "./omniasearch";
|
package/Exposes.js
CHANGED
@@ -140,7 +140,7 @@ tslib_1.__exportStar(require("./enterprise-glossary"), exports);
|
|
140
140
|
tslib_1.__exportStar(require("./enterprise-properties"), exports);
|
141
141
|
tslib_1.__exportStar(require("./filterengine"), exports);
|
142
142
|
tslib_1.__exportStar(require("./identities"), exports);
|
143
|
-
tslib_1.__exportStar(require("./
|
143
|
+
tslib_1.__exportStar(require("./links"), exports);
|
144
144
|
tslib_1.__exportStar(require("./media-gallery"), exports);
|
145
145
|
tslib_1.__exportStar(require("./mediaflow"), exports);
|
146
146
|
tslib_1.__exportStar(require("./omniasearch"), exports);
|
package/Icon.js
CHANGED
@@ -37,9 +37,11 @@ class FontAwesomeIcon {
|
|
37
37
|
return this;
|
38
38
|
}
|
39
39
|
setDefaultIconStyle() {
|
40
|
-
|
41
|
-
|
42
|
-
|
40
|
+
if (this.faClass) {
|
41
|
+
const split = this.faClass.split(" ");
|
42
|
+
if (split.length === 1) {
|
43
|
+
this.setIconStyle("fa-duotone");
|
44
|
+
}
|
43
45
|
}
|
44
46
|
}
|
45
47
|
setIconStyle(style) {
|
package/Tenant.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { OmniaNamedModel, IOmniaPropertyBag } from "./NamedProperty";
|
2
|
-
import { TenantIdentifier, TypographyFontDefinition } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
|
2
|
+
import { TenantIdentifier, ThemingSetting, TypographyFontDefinition } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
|
3
3
|
import { TimeFormats } from "./Enums";
|
4
4
|
import { LanguageSettings } from "./Language";
|
5
5
|
import { MultilingualString } from "./MultilingualString";
|
@@ -22,6 +22,10 @@ export declare class TenantLanguageSettings extends TenantProperty {
|
|
22
22
|
excludeCountry?: boolean;
|
23
23
|
constructor();
|
24
24
|
}
|
25
|
+
export declare class TenantThemingManager extends TenantProperty {
|
26
|
+
constructor();
|
27
|
+
tenantTheming: ThemingSetting;
|
28
|
+
}
|
25
29
|
export declare class TenantCSOMClientContextFallbackUrl extends TenantProperty {
|
26
30
|
fallbackUrl: string;
|
27
31
|
constructor();
|
package/Tenant.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.TenantPreSetup = exports.TenantFaviconSettings = exports.TenantEnterpriseGlossary = exports.AllEnterprisePropertyDataTypesContentHashSettings = exports.AllEnterprisePropertiesContentHashSettings = exports.TenantApiSettings = exports.TenantPeopleInformation = exports.TenantTypographyFonts = exports.TenantAuthenticationSettings = exports.TenantInfoSettings = exports.TenantErrorInformation = exports.TenantCSOMClientContextFallbackUrl = exports.TenantLanguageSettings = exports.TenantRegionalSettings = exports.TenantProperty = void 0;
|
3
|
+
exports.TenantPreSetup = exports.TenantFaviconSettings = exports.TenantEnterpriseGlossary = exports.AllEnterprisePropertyDataTypesContentHashSettings = exports.AllEnterprisePropertiesContentHashSettings = exports.TenantApiSettings = exports.TenantPeopleInformation = exports.TenantTypographyFonts = exports.TenantAuthenticationSettings = exports.TenantInfoSettings = exports.TenantErrorInformation = exports.TenantCSOMClientContextFallbackUrl = exports.TenantThemingManager = exports.TenantLanguageSettings = exports.TenantRegionalSettings = exports.TenantProperty = void 0;
|
4
4
|
const ManifestIds_1 = require("./ManifestIds");
|
5
5
|
const NamedProperty_1 = require("./NamedProperty");
|
6
6
|
class TenantProperty extends NamedProperty_1.OmniaNamedModel {
|
@@ -18,6 +18,12 @@ class TenantLanguageSettings extends TenantProperty {
|
|
18
18
|
}
|
19
19
|
}
|
20
20
|
exports.TenantLanguageSettings = TenantLanguageSettings;
|
21
|
+
class TenantThemingManager extends TenantProperty {
|
22
|
+
constructor() {
|
23
|
+
super(ManifestIds_1.OmniaService.Id, "themingManager");
|
24
|
+
}
|
25
|
+
}
|
26
|
+
exports.TenantThemingManager = TenantThemingManager;
|
21
27
|
class TenantCSOMClientContextFallbackUrl extends TenantProperty {
|
22
28
|
constructor() {
|
23
29
|
super(ManifestIds_1.OmniaService.Id, "csomclientcontextfallbackurl");
|
package/apps/App.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { guid } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
|
1
|
+
import { guid, ThemingSetting } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
|
2
2
|
import { TargetingFilterProperty } from "../../sp/models";
|
3
3
|
import { ProvisioningTemplateEnterpriseProperty } from "../enterprise-properties/EnterpriseProperty";
|
4
4
|
import { AppCategories, AppInstanceScopedQueryTypes, AppInstanceStatus, AppTemplatePermissionLevel } from "../Enums";
|
@@ -7,6 +7,7 @@ import { Identity } from "../identities";
|
|
7
7
|
import { MediaPickerImage } from "../media-picker";
|
8
8
|
import { MultilingualString } from "../MultilingualString";
|
9
9
|
import { RollupFilter } from "../RollupQuery";
|
10
|
+
import { AppRoutePropertyBagModel } from "../Routing";
|
10
11
|
import { ServiceParam } from "../ServiceParam";
|
11
12
|
import { AppProvisioningStepInfo } from "./AppProvisioning";
|
12
13
|
export interface AppInstanceIdentities {
|
@@ -267,3 +268,7 @@ export interface AppInstanceActionProgressResult {
|
|
267
268
|
message: string;
|
268
269
|
percentage: number;
|
269
270
|
}
|
271
|
+
export declare class AppThemingManager extends AppRoutePropertyBagModel {
|
272
|
+
constructor();
|
273
|
+
appTheming: ThemingSetting;
|
274
|
+
}
|
package/apps/App.js
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.ShowInPublicListingsMode = exports.UserAppTemplateAvailabilityOptions = void 0;
|
3
|
+
exports.AppThemingManager = exports.ShowInPublicListingsMode = exports.UserAppTemplateAvailabilityOptions = void 0;
|
4
|
+
const ManifestIds_1 = require("../ManifestIds");
|
5
|
+
const Routing_1 = require("../Routing");
|
4
6
|
var UserAppTemplateAvailabilityOptions;
|
5
7
|
(function (UserAppTemplateAvailabilityOptions) {
|
6
8
|
UserAppTemplateAvailabilityOptions[UserAppTemplateAvailabilityOptions["All"] = 0] = "All";
|
@@ -13,3 +15,9 @@ var ShowInPublicListingsMode;
|
|
13
15
|
ShowInPublicListingsMode[ShowInPublicListingsMode["PublicToProfileViewer"] = 1] = "PublicToProfileViewer";
|
14
16
|
ShowInPublicListingsMode[ShowInPublicListingsMode["PublicToAppViewer"] = 2] = "PublicToAppViewer";
|
15
17
|
})(ShowInPublicListingsMode || (exports.ShowInPublicListingsMode = ShowInPublicListingsMode = {}));
|
18
|
+
class AppThemingManager extends Routing_1.AppRoutePropertyBagModel {
|
19
|
+
constructor() {
|
20
|
+
super(ManifestIds_1.OmniaService.Id, "themingManager");
|
21
|
+
}
|
22
|
+
}
|
23
|
+
exports.AppThemingManager = AppThemingManager;
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import { FlowEditorPlugin } from "@omnia/fx/ux";
|
1
2
|
import { guid } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
|
2
3
|
export interface FlowEditorPluginRegistration {
|
3
4
|
id: guid;
|
@@ -5,5 +6,5 @@ export interface FlowEditorPluginRegistration {
|
|
5
6
|
altText?: string;
|
6
7
|
hidden?: boolean;
|
7
8
|
mandatory?: boolean;
|
8
|
-
plugin: (settings: any) =>
|
9
|
+
plugin: (settings: any) => FlowEditorPlugin;
|
9
10
|
}
|
@@ -75,6 +75,10 @@ export interface ThemeDefinitionV2 extends ThemeDefinitionReference {
|
|
75
75
|
spacing: SpacingBlueprints;
|
76
76
|
components: ComponentBlueprints;
|
77
77
|
}
|
78
|
+
export interface ThemingSetting {
|
79
|
+
adminThemeId?: guid;
|
80
|
+
defaultThemeId?: guid;
|
81
|
+
}
|
78
82
|
export interface ITemplateRegistration<TTemplateType = any> {
|
79
83
|
id: guid;
|
80
84
|
template: TTemplateType;
|
@@ -60,7 +60,7 @@ export interface VelcronComponentDefinition extends VelcronDefinition {
|
|
60
60
|
icon?: any;
|
61
61
|
}
|
62
62
|
export type VelcronCustomComponentDefinition = VelcronComponentDefinition;
|
63
|
-
export type BuiltInPropertyEditorType = "text" | "number" | "slider" | "switch" | "alignment" | "color" | "flow" | "icon" | "image" | "typography" | "spacing" | "color-schema-type" | "blueprint" | "background" | "grid" | "reference" | "select" | "property-resolver";
|
63
|
+
export type BuiltInPropertyEditorType = "text" | "number" | "slider" | "switch" | "alignment" | "color" | "flow" | "icon" | "image" | "typography" | "spacing" | "color-schema-type" | "blueprint" | "background" | "grid" | "reference" | "select" | "property-resolver" | "link-resolver";
|
64
64
|
export type EditorLocation = "inline" | "pane" | "toolbar";
|
65
65
|
export interface VelcronEditor<TSettings = any> {
|
66
66
|
name?: string;
|
@@ -13,6 +13,7 @@ export interface BuiltInComponentRenderers {
|
|
13
13
|
"velcron": unknown;
|
14
14
|
"flex": unknown;
|
15
15
|
"row": unknown;
|
16
|
+
"grid": unknown;
|
16
17
|
"column": unknown;
|
17
18
|
"card": unknown;
|
18
19
|
"text": unknown;
|
@@ -175,6 +176,17 @@ export interface VelcronFlexDefinition extends VelcronDefinition, VelcronColorSt
|
|
175
176
|
events?: VelcronOnPressEvent;
|
176
177
|
border?: VelcronBorder;
|
177
178
|
borderRadius?: VelcronDimensions;
|
179
|
+
width?: number | string;
|
180
|
+
minWidth?: number | string;
|
181
|
+
height?: number | string;
|
182
|
+
minHeight?: number | string;
|
183
|
+
}
|
184
|
+
export interface VelcronGridDefinition extends VelcronDefinition {
|
185
|
+
type: "grid";
|
186
|
+
minColumnWidth?: number | string;
|
187
|
+
columns?: number | Array<string>;
|
188
|
+
gapX?: number | string;
|
189
|
+
gapY?: number | string;
|
178
190
|
}
|
179
191
|
export interface VelcronFlexRowDefinition extends VelcronDefinition, VelcronColorStyling, VelcronDefinitionHasEffects, VelcronDefinitionHasOverflow {
|
180
192
|
type: "row";
|
@@ -311,6 +323,10 @@ export interface VelcronLottieDefinition extends VelcronDefinition {
|
|
311
323
|
direction?: VelcronBindableProp<"normal" | "reverse">;
|
312
324
|
hover?: VelcronBindableProp<boolean>;
|
313
325
|
}
|
326
|
+
export interface VelcronSlidePanelSlidesOptions {
|
327
|
+
foreach: string;
|
328
|
+
definition: VelcronDefinition;
|
329
|
+
}
|
314
330
|
export interface VelcronSlidePanelDefinition extends VelcronDefinition {
|
315
331
|
type: "slide-panel";
|
316
332
|
slidesPerView?: VelcronBindableProp<number>;
|
@@ -322,6 +338,7 @@ export interface VelcronSlidePanelDefinition extends VelcronDefinition {
|
|
322
338
|
loop?: VelcronBindableProp<boolean>;
|
323
339
|
style?: VelcronCardStyling;
|
324
340
|
events?: VelcronOnPressEvent;
|
341
|
+
slides?: VelcronSlidePanelSlidesOptions;
|
325
342
|
}
|
326
343
|
export interface VelcronEditorRendererDefinition extends VelcronDefinition {
|
327
344
|
type: "editor";
|
package/internal-do-not-import-from-here/velcron/core/models/VelcronPropertyEditorDefinitions.d.ts
CHANGED
@@ -36,6 +36,11 @@ export interface VelcronNumberEditorSettings {
|
|
36
36
|
max: number;
|
37
37
|
step: number;
|
38
38
|
}
|
39
|
+
export interface VelcronReferencePropertyEditorSettings {
|
40
|
+
multiple: boolean;
|
41
|
+
min?: number;
|
42
|
+
max?: number;
|
43
|
+
}
|
39
44
|
export interface VelcronPropertyMapping {
|
40
45
|
state: string;
|
41
46
|
title: string;
|
@@ -45,6 +50,8 @@ export interface VelcronPropertyMapping {
|
|
45
50
|
export interface VelcronPropertyResolverEditorSettings {
|
46
51
|
properties: Array<VelcronPropertyMapping>;
|
47
52
|
}
|
53
|
+
export interface VelcronLinkResolverEditorSettings {
|
54
|
+
}
|
48
55
|
export interface VelcronBlueprintEditorSettings {
|
49
56
|
type: "container" | "icon" | "button";
|
50
57
|
}
|
@@ -90,7 +97,7 @@ export interface VelcronImagePropertyEditor extends VelcronEditor<any> {
|
|
90
97
|
export interface VelcronSpacingPropertyEditor extends VelcronEditor<VelcronSpacingEditorSettings> {
|
91
98
|
type: "spacing";
|
92
99
|
}
|
93
|
-
export interface VelcronReferencePropertyEditor extends VelcronEditor<
|
100
|
+
export interface VelcronReferencePropertyEditor extends VelcronEditor<VelcronReferencePropertyEditorSettings> {
|
94
101
|
type: "reference";
|
95
102
|
}
|
96
103
|
export interface VelcronBlueprintEditor extends VelcronEditor<VelcronBlueprintEditorSettings> {
|
@@ -108,3 +115,6 @@ export interface VelcronSelectEditor extends VelcronEditor<VelcronSelectEditorSe
|
|
108
115
|
export interface VelcronPropertyResolverEditor extends VelcronEditor<VelcronPropertyResolverEditorSettings> {
|
109
116
|
type: "property-resolver";
|
110
117
|
}
|
118
|
+
export interface VelcronLinkResolverEditor extends VelcronEditor<VelcronLinkResolverEditorSettings> {
|
119
|
+
type: "link-resolver";
|
120
|
+
}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import { guid, Id } from "@omnia/fx-models/internal-do-not-import-from-here/shared";
|
2
|
+
import { IconPickerModel } from "../Icon";
|
3
|
+
export type LinkProviderId = Id<guid, "LinkProviderId">;
|
4
|
+
export interface LinkItem {
|
5
|
+
providerId: LinkProviderId;
|
6
|
+
linkType?: string;
|
7
|
+
title: string;
|
8
|
+
url: string;
|
9
|
+
icon: IconPickerModel;
|
10
|
+
openInNewWindow: boolean;
|
11
|
+
}
|
package/package.json
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
import { PropertyValue } from "../PropertyValue";
|
2
|
+
import { LinkItem } from "../../links";
|
2
3
|
export declare class LinkPropertyValue extends PropertyValue {
|
3
|
-
link:
|
4
|
-
constructor(link:
|
4
|
+
link: LinkItem;
|
5
|
+
constructor(link: LinkItem);
|
5
6
|
isEmpty(): boolean;
|
6
7
|
}
|
@@ -1,5 +1,6 @@
|
|
1
|
-
import {
|
1
|
+
import { IExtendApiManifestWithConfiguration } from "../Extends";
|
2
2
|
import { ILinkItemHandler } from "../../ux/models/linkpicker/LinkItemHandler";
|
3
|
+
import { LinkProviderId } from "../links";
|
3
4
|
export interface ILinkItemHandlerRegistrationApi {
|
4
5
|
registerLinkRenderer: (linkItemHandler: ILinkItemHandler) => boolean;
|
5
6
|
}
|
@@ -11,7 +12,7 @@ declare module "./UxApi" {
|
|
11
12
|
}
|
12
13
|
interface IOmniaUxExtendApiManifest {
|
13
14
|
linkItemHandler: {
|
14
|
-
registration:
|
15
|
+
registration: IExtendApiManifestWithConfiguration<LinkProviderId>;
|
15
16
|
};
|
16
17
|
}
|
17
18
|
}
|
File without changes
|
File without changes
|