@omnia/fx-models 8.0.142-dev → 8.0.144-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
CHANGED
@@ -508,7 +508,8 @@ export declare enum FeatureInstanceStatus {
|
|
508
508
|
Deactivating = 3,
|
509
509
|
Error = 4,
|
510
510
|
AdminConsentActivating = 5,
|
511
|
-
AdminConsentUpgrading = 6
|
511
|
+
AdminConsentUpgrading = 6,
|
512
|
+
AdminConsentWaitingActivation = 7
|
512
513
|
}
|
513
514
|
export declare enum ThemeType {
|
514
515
|
Light = "Light",
|
package/Enums.js
CHANGED
@@ -418,6 +418,7 @@ var FeatureInstanceStatus;
|
|
418
418
|
FeatureInstanceStatus[FeatureInstanceStatus["Error"] = 4] = "Error";
|
419
419
|
FeatureInstanceStatus[FeatureInstanceStatus["AdminConsentActivating"] = 5] = "AdminConsentActivating";
|
420
420
|
FeatureInstanceStatus[FeatureInstanceStatus["AdminConsentUpgrading"] = 6] = "AdminConsentUpgrading";
|
421
|
+
FeatureInstanceStatus[FeatureInstanceStatus["AdminConsentWaitingActivation"] = 7] = "AdminConsentWaitingActivation";
|
421
422
|
})(FeatureInstanceStatus || (exports.FeatureInstanceStatus = FeatureInstanceStatus = {}));
|
422
423
|
var ThemeType;
|
423
424
|
(function (ThemeType) {
|
@@ -45,7 +45,7 @@ class ResolvedUserIdentity extends UserIdentity {
|
|
45
45
|
}, options);
|
46
46
|
}
|
47
47
|
static isAzureAdUser(resolvedUser) {
|
48
|
-
return resolvedUser?.providerId == BuiltInIdentityProvider_1.BuiltInIdentityProviderIds.
|
48
|
+
return resolvedUser?.providerId == BuiltInIdentityProvider_1.BuiltInIdentityProviderIds.defaultAd;
|
49
49
|
}
|
50
50
|
static isOmniaUser(resolvedUser) {
|
51
51
|
return resolvedUser?.providerId == BuiltInIdentityProvider_1.BuiltInIdentityProviderIds.omnia;
|
@@ -78,21 +78,15 @@ export interface ITemplateRegistration<TTemplateType = any> {
|
|
78
78
|
hidden?: boolean;
|
79
79
|
custom?: boolean;
|
80
80
|
}
|
81
|
-
export type
|
82
|
-
export interface
|
83
|
-
type:
|
81
|
+
export type TemplateRegistrationType = "button" | "fill" | "border" | "tabs" | "chrome" | "chromes" | "components" | "spacings" | "spacing" | "typography" | "icons" | "colorschema" | "theme";
|
82
|
+
export interface ITemplateRegistration<TTemplateType = any, TType = TemplateRegistrationType> {
|
83
|
+
type: TemplateRegistrationType;
|
84
84
|
id: GuidValue;
|
85
85
|
template: TTemplateType;
|
86
86
|
hidden?: boolean;
|
87
87
|
custom?: boolean;
|
88
88
|
}
|
89
|
-
export interface ITemplateRegistration<
|
90
|
-
id: GuidValue;
|
91
|
-
template: TTemplateType;
|
92
|
-
hidden?: boolean;
|
93
|
-
custom?: boolean;
|
94
|
-
}
|
95
|
-
export interface ButtonBlueprintRegistration extends ITemplateRegistration2<ButtonBlueprint, "button"> {
|
89
|
+
export interface ButtonBlueprintRegistration extends ITemplateRegistration<ButtonBlueprint, "button"> {
|
96
90
|
}
|
97
91
|
export type ColorSchemaType = keyof typeof ColorSchemaTypes;
|
98
92
|
export declare enum ColorSchemaTypes {
|
package/package.json
CHANGED
package/ux/ThemingApi.d.ts
CHANGED
@@ -1,39 +1,9 @@
|
|
1
|
-
import {
|
1
|
+
import { ITemplateRegistration, TemplateRegistrationType } from "@omnia/fx-models";
|
2
2
|
import { ApiPath } from "../Extends";
|
3
3
|
export interface IThemeRegistrationApiHandler {
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
getAllColorSchemaRegistrations(): any;
|
8
|
-
registerTest(definitions: ITemplateRegistration2<any> | ITemplateRegistration2<any>[]): any;
|
9
|
-
templates: {
|
10
|
-
get: {
|
11
|
-
spacingDefinition: () => ITemplateRegistration<SpacingDefinition>[];
|
12
|
-
spacingBlueprints: () => ITemplateRegistration<SpacingBlueprints>[];
|
13
|
-
fillDefinition: () => ITemplateRegistration<FillDefinition>[];
|
14
|
-
borderDefinition: () => ITemplateRegistration<BorderStylingDefinition>[];
|
15
|
-
buttonBlueprint: () => ITemplateRegistration<ButtonBlueprint>[];
|
16
|
-
tabsBlueprint: () => ITemplateRegistration<TabsBlueprint>[];
|
17
|
-
chromeBlueprint: () => ITemplateRegistration<ChromeBlueprint>[];
|
18
|
-
chromeBlueprints: () => ITemplateRegistration<ChromeBlueprints>[];
|
19
|
-
componentBlueprints: () => ITemplateRegistration<ComponentBlueprints>[];
|
20
|
-
typographyBlueprints: () => ITemplateRegistration<TypographyBlueprints>[];
|
21
|
-
iconBlueprints: () => ITemplateRegistration<IconBlueprints>[];
|
22
|
-
};
|
23
|
-
add: {
|
24
|
-
spacingDefinition: (spacing: ITemplateRegistration<SpacingDefinition> | ITemplateRegistration<SpacingDefinition>[]) => void;
|
25
|
-
spacingBlueprints: (spacing: ITemplateRegistration<SpacingBlueprints> | ITemplateRegistration<SpacingBlueprints>[]) => void;
|
26
|
-
fillDefinition: (fill: ITemplateRegistration<FillDefinition> | ITemplateRegistration<FillDefinition>[]) => void;
|
27
|
-
borderDefinition: (border: ITemplateRegistration<BorderStylingDefinition> | ITemplateRegistration<BorderStylingDefinition>[]) => void;
|
28
|
-
buttonBlueprint: (blueprint: ITemplateRegistration<ButtonBlueprint> | ITemplateRegistration<ButtonBlueprint>[]) => void;
|
29
|
-
tabsBlueprint: (blueprint: ITemplateRegistration<TabsBlueprint> | ITemplateRegistration<TabsBlueprint>[]) => void;
|
30
|
-
chromeBlueprint: (blueprint: ITemplateRegistration<ChromeBlueprint> | ITemplateRegistration<ChromeBlueprint>[]) => void;
|
31
|
-
chromeBlueprints: (blueprint: ITemplateRegistration<ChromeBlueprints> | ITemplateRegistration<ChromeBlueprints>[]) => void;
|
32
|
-
componentBlueprints: (blueprint: ITemplateRegistration<ComponentBlueprints> | ITemplateRegistration<ComponentBlueprints>[]) => void;
|
33
|
-
typographyBlueprints: (blueprints: ITemplateRegistration<TypographyBlueprints> | ITemplateRegistration<TypographyBlueprints>[]) => void;
|
34
|
-
iconBlueprints: (blueprints: ITemplateRegistration<IconBlueprints> | ITemplateRegistration<IconBlueprints>[]) => void;
|
35
|
-
};
|
36
|
-
};
|
4
|
+
getAll(): any;
|
5
|
+
add(registration: ITemplateRegistration<any> | ITemplateRegistration<any>[]): any;
|
6
|
+
getByType<TTemplateRegistration extends ITemplateRegistration<any>>(type: TemplateRegistrationType): Array<TTemplateRegistration>;
|
37
7
|
}
|
38
8
|
export interface IThemeRegistrationApi {
|
39
9
|
registration: Promise<IThemeRegistrationApiHandler>;
|