@omnia/velcron 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.
@@ -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 { HorizontalAlignments, VerticalAlignments } from "@omnia/fx-models";
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;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@omnia/velcron",
3
3
  "license": "MIT",
4
- "version": "8.0.462-dev",
4
+ "version": "8.0.464-dev",
5
5
  "description": "Provide Omnia Velcron Stuffs.",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1"