@omnia/fx-models 8.0.142-dev → 8.0.143-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.
@@ -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>;
|