@omnia/velcron 8.0.546-dev → 8.0.547-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.
@@ -15,6 +15,7 @@ export * from "./StringExtensions";
15
15
  export * from "./DynamicState";
16
16
  export * from "./Id";
17
17
  export * from "./theme";
18
+ export * from "./media";
18
19
  export * from "./velcron";
19
20
  export * from "./DependencyInjection";
20
21
  export * from "./Messaging";
@@ -19,6 +19,7 @@ tslib_1.__exportStar(require("./StringExtensions"), exports);
19
19
  tslib_1.__exportStar(require("./DynamicState"), exports);
20
20
  tslib_1.__exportStar(require("./Id"), exports);
21
21
  tslib_1.__exportStar(require("./theme"), exports);
22
+ tslib_1.__exportStar(require("./media"), exports);
22
23
  tslib_1.__exportStar(require("./velcron"), exports);
23
24
  tslib_1.__exportStar(require("./DependencyInjection"), exports);
24
25
  tslib_1.__exportStar(require("./Messaging"), exports);
@@ -0,0 +1,63 @@
1
+ import { guid } from "../Guid";
2
+ export declare namespace MediaPickerEnums {
3
+ enum ScalingFormatTypes {
4
+ KeepFormat = 0,
5
+ Jpeg = 1
6
+ }
7
+ enum ImageRatioTypes {
8
+ Landscape = 0,
9
+ Square = 1,
10
+ Portrait = 2,
11
+ Wide = 3
12
+ }
13
+ enum MediaPickerTransformationTypes {
14
+ Crop = 0,
15
+ Flip = 1,
16
+ Filter = 2
17
+ }
18
+ enum OmniaMediaTypes {
19
+ Image = 0,
20
+ Video = 1
21
+ }
22
+ enum LoadingStyle {
23
+ overlay = 0,
24
+ noOverlay = 1
25
+ }
26
+ enum MediaSearchStatus {
27
+ Initial = 0,
28
+ Searching = 1,
29
+ Finish = 2,
30
+ Error = 3
31
+ }
32
+ }
33
+ export interface MediaPickerMedia {
34
+ omniaMediaType: MediaPickerEnums.OmniaMediaTypes;
35
+ }
36
+ export interface MediaPickerImageMetaData extends IMediaMetadata {
37
+ /**
38
+ * File name including file type extension
39
+ * i.e. "name.format" or atleast .filetype for unknown file names
40
+ * */
41
+ fileName: string;
42
+ }
43
+ export interface IMediaMetadata {
44
+ caption?: string;
45
+ altText?: string;
46
+ providerId?: guid;
47
+ }
48
+ export interface IVideoMetadata extends IMediaMetadata {
49
+ }
50
+ export interface MediaPickerImage extends MediaPickerMedia, MediaPickerImageMetaData {
51
+ omniaImageId: number;
52
+ omniaServiceId: guid;
53
+ }
54
+ export interface MediaPickerVideo extends MediaPickerMedia, IVideoMetadata {
55
+ html: string;
56
+ thumbnailUrl?: string;
57
+ videoUrl: string;
58
+ autoPlay: boolean;
59
+ startTime?: string;
60
+ mute: boolean;
61
+ graphDriveId?: string;
62
+ graphDriveItemId?: string;
63
+ }
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MediaPickerEnums = void 0;
4
+ var MediaPickerEnums;
5
+ (function (MediaPickerEnums) {
6
+ let ScalingFormatTypes;
7
+ (function (ScalingFormatTypes) {
8
+ ScalingFormatTypes[ScalingFormatTypes["KeepFormat"] = 0] = "KeepFormat";
9
+ ScalingFormatTypes[ScalingFormatTypes["Jpeg"] = 1] = "Jpeg";
10
+ })(ScalingFormatTypes = MediaPickerEnums.ScalingFormatTypes || (MediaPickerEnums.ScalingFormatTypes = {}));
11
+ let ImageRatioTypes;
12
+ (function (ImageRatioTypes) {
13
+ ImageRatioTypes[ImageRatioTypes["Landscape"] = 0] = "Landscape";
14
+ ImageRatioTypes[ImageRatioTypes["Square"] = 1] = "Square";
15
+ ImageRatioTypes[ImageRatioTypes["Portrait"] = 2] = "Portrait";
16
+ ImageRatioTypes[ImageRatioTypes["Wide"] = 3] = "Wide";
17
+ })(ImageRatioTypes = MediaPickerEnums.ImageRatioTypes || (MediaPickerEnums.ImageRatioTypes = {}));
18
+ let MediaPickerTransformationTypes;
19
+ (function (MediaPickerTransformationTypes) {
20
+ MediaPickerTransformationTypes[MediaPickerTransformationTypes["Crop"] = 0] = "Crop";
21
+ MediaPickerTransformationTypes[MediaPickerTransformationTypes["Flip"] = 1] = "Flip";
22
+ MediaPickerTransformationTypes[MediaPickerTransformationTypes["Filter"] = 2] = "Filter";
23
+ })(MediaPickerTransformationTypes = MediaPickerEnums.MediaPickerTransformationTypes || (MediaPickerEnums.MediaPickerTransformationTypes = {}));
24
+ let OmniaMediaTypes;
25
+ (function (OmniaMediaTypes) {
26
+ OmniaMediaTypes[OmniaMediaTypes["Image"] = 0] = "Image";
27
+ OmniaMediaTypes[OmniaMediaTypes["Video"] = 1] = "Video";
28
+ })(OmniaMediaTypes = MediaPickerEnums.OmniaMediaTypes || (MediaPickerEnums.OmniaMediaTypes = {}));
29
+ let LoadingStyle;
30
+ (function (LoadingStyle) {
31
+ LoadingStyle[LoadingStyle["overlay"] = 0] = "overlay";
32
+ LoadingStyle[LoadingStyle["noOverlay"] = 1] = "noOverlay";
33
+ })(LoadingStyle = MediaPickerEnums.LoadingStyle || (MediaPickerEnums.LoadingStyle = {}));
34
+ let MediaSearchStatus;
35
+ (function (MediaSearchStatus) {
36
+ MediaSearchStatus[MediaSearchStatus["Initial"] = 0] = "Initial";
37
+ MediaSearchStatus[MediaSearchStatus["Searching"] = 1] = "Searching";
38
+ MediaSearchStatus[MediaSearchStatus["Finish"] = 2] = "Finish";
39
+ MediaSearchStatus[MediaSearchStatus["Error"] = 3] = "Error";
40
+ })(MediaSearchStatus = MediaPickerEnums.MediaSearchStatus || (MediaPickerEnums.MediaSearchStatus = {}));
41
+ })(MediaPickerEnums || (exports.MediaPickerEnums = MediaPickerEnums = {}));
@@ -0,0 +1 @@
1
+ export * from "./MediaPickerMedia";
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./MediaPickerMedia"), exports);
@@ -1,5 +1,6 @@
1
1
  import { HorizontalAlignments, TextAlignment, VerticalAlignments } from "../Enums";
2
2
  import { IIcon } from "../Icon";
3
+ import { MediaPickerImage } from "../media";
3
4
  import { MultilingualString } from "../MultilingualString";
4
5
  import { VelcronRendererResolverReference } from "../velcron";
5
6
  import { Spacing, SpacingDefinition, SpacingValue } from "./Spacing";
@@ -89,6 +90,9 @@ export interface ContainerFillBlueprint extends Blueprints, BlueprintsReference,
89
90
  dynamicColorSchema?: boolean;
90
91
  background?: BackgroundDefinition;
91
92
  }
93
+ export interface MediaResources {
94
+ logo?: MediaPickerImage;
95
+ }
92
96
  export interface IFontBlueprints extends Blueprints, BlueprintsReference {
93
97
  fonts: Array<TypographyFontDefinition>;
94
98
  }
@@ -1,6 +1,7 @@
1
1
  import { guid } from "../Guid";
2
+ import { IIcon } from "../Icon";
2
3
  import { Id } from "../Id";
3
- import { BlueprintVariant, BoxDimensions, ButtonBlueprint, ComponentBlueprints, ContainerFillBlueprints, SpacingBlueprint, TextFillBlueprints } from "./Blueprints";
4
+ import { BlueprintVariant, BoxDimensions, ButtonBlueprint, ComponentBlueprints, ContainerFillBlueprints, MediaResources, SpacingBlueprint, TextFillBlueprints } from "./Blueprints";
4
5
  import { Color } from "./Color";
5
6
  import { LegacyBorderDefinition, LegacyThemeDefinition } from "./LegacyThemeDefinition";
6
7
  import { ThemeBase } from "./ThemeBase";
@@ -73,7 +74,9 @@ export interface ThemeDefinitionReference {
73
74
  components: BlueprintsReference;
74
75
  }
75
76
  export interface ThemeSettings {
76
- layoutWrapper?: number;
77
+ layoutWrapper?: {
78
+ width?: number;
79
+ };
77
80
  }
78
81
  export interface ResolvedThemeDefinition extends ThemeDefinition<ColorSchemas> {
79
82
  typography?: TypographyBlueprint;
@@ -82,14 +85,19 @@ export interface ResolvedThemeDefinition extends ThemeDefinition<ColorSchemas> {
82
85
  containerFill?: ContainerFillBlueprints;
83
86
  textFill?: TextFillBlueprints;
84
87
  settings?: ThemeSettings;
88
+ mediaResources?: MediaResources;
85
89
  }
86
- export interface ThemeSelection {
87
- adminThemeId?: guid;
88
- adminAccessibilityThemeId?: guid;
89
- adminAdditionalThemeIds?: Array<guid>;
90
- defaultThemeId?: guid;
90
+ export interface ThemeSelectionValue {
91
+ themeId?: guid;
91
92
  accessibilityThemeId?: guid;
92
93
  additionalThemeIds?: Array<guid>;
94
+ selectIcon?: IIcon;
95
+ switchIcon?: IIcon;
96
+ switchIconAdditional?: IIcon;
97
+ }
98
+ export interface ThemeSelection {
99
+ admin: ThemeSelectionValue;
100
+ default: ThemeSelectionValue;
93
101
  }
94
102
  export interface ITemplateRegistration<TTemplateType = any> {
95
103
  id: guid;
@@ -163,7 +171,7 @@ export interface ColorGradientValue {
163
171
  }
164
172
  /**Background */
165
173
  export interface BackgroundDefinition {
166
- fill?: TextFillDefinitionValue;
174
+ fill?: ContainerFillDefinitionValue;
167
175
  border?: BorderStylingDefinition;
168
176
  elevation?: number;
169
177
  media?: BackgroundMediaDefinition;
@@ -178,6 +186,7 @@ export interface FillDefinition {
178
186
  colors: Array<ColorValue | ColorGradientValue>;
179
187
  acrylic?: boolean;
180
188
  }
189
+ export type ContainerFillDefinitionValue = BlueprintVariant | FillDefinition | ColorValue;
181
190
  export type TextFillDefinitionValue = BlueprintVariant | FillDefinition | ColorValue;
182
191
  export interface LinearGradientFillDefinition extends FillDefinition {
183
192
  degrees: number;
@@ -305,6 +314,8 @@ export interface ThemeDefinition<TColor = ColorSchemasReferenceId> extends Theme
305
314
  */
306
315
  publishedVersionId?: number;
307
316
  };
317
+ mediaResources?: MediaResources;
318
+ settings?: ThemeSettings;
308
319
  }
309
320
  export interface ColorSchema extends ThemeBase {
310
321
  base: ColorDefinition;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@omnia/velcron",
3
3
  "license": "MIT",
4
- "version": "8.0.546-dev",
4
+ "version": "8.0.547-dev",
5
5
  "description": "Provide Omnia Velcron Stuffs.",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1"