@omnia/fx-models 8.0.124-dev → 8.0.126-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.
Files changed (67) hide show
  1. package/BlockTitleSettings.d.ts +2 -2
  2. package/Constants.d.ts +1 -0
  3. package/Constants.js +1 -0
  4. package/FilterEngineStyles.d.ts +2 -2
  5. package/Http.d.ts +1 -23
  6. package/Http.js +6 -7
  7. package/Layout.d.ts +13 -13
  8. package/ManifestIds.d.ts +1 -1
  9. package/ManifestIds.js +2 -2
  10. package/PropertiesBlockStyles.d.ts +2 -2
  11. package/ShapeDividerSettingsModel.d.ts +2 -2
  12. package/apps/AppInstanceRollup.d.ts +3 -3
  13. package/enterprise-properties/EnterprisePropertySettings.d.ts +3 -3
  14. package/internal-do-not-import-from-here/shared/models/HttpCommon.d.ts +14 -0
  15. package/internal-do-not-import-from-here/shared/models/HttpCommon.js +7 -0
  16. package/internal-do-not-import-from-here/shared/models/hub/activities/Activity.d.ts +8 -0
  17. package/internal-do-not-import-from-here/shared/models/hub/activities/Activity.js +7 -1
  18. package/internal-do-not-import-from-here/shared/models/hub/activities/ActivitySender.d.ts +1 -0
  19. package/internal-do-not-import-from-here/shared/models/hub/activities/ActivitySubscription.d.ts +16 -0
  20. package/internal-do-not-import-from-here/shared/models/hub/activities/ActivitySubscription.js +5 -0
  21. package/internal-do-not-import-from-here/shared/models/hub/activities/index.d.ts +1 -0
  22. package/internal-do-not-import-from-here/shared/models/hub/activities/index.js +1 -0
  23. package/internal-do-not-import-from-here/shared/models/hub/index.d.ts +1 -0
  24. package/internal-do-not-import-from-here/shared/models/hub/index.js +1 -0
  25. package/internal-do-not-import-from-here/shared/models/hub/targeting/ExternalIdentityProperty.d.ts +10 -0
  26. package/internal-do-not-import-from-here/shared/models/hub/targeting/ExternalIdentityProperty.js +19 -0
  27. package/internal-do-not-import-from-here/shared/models/hub/targeting/HubSource.d.ts +3 -0
  28. package/internal-do-not-import-from-here/shared/models/hub/targeting/HubSource.js +7 -0
  29. package/internal-do-not-import-from-here/shared/models/hub/targeting/index.d.ts +1 -0
  30. package/internal-do-not-import-from-here/shared/models/hub/targeting/index.js +4 -0
  31. package/internal-do-not-import-from-here/shared/models/theming/Blueprints.d.ts +127 -0
  32. package/internal-do-not-import-from-here/shared/models/theming/{ChromeDefinition.d.ts → Chrome.d.ts} +3 -3
  33. package/internal-do-not-import-from-here/shared/models/theming/SharedBlueprintMethods.d.ts +1 -1
  34. package/internal-do-not-import-from-here/shared/models/theming/SharedBlueprintMethods.js +6 -6
  35. package/internal-do-not-import-from-here/shared/models/theming/Spacing.d.ts +22 -0
  36. package/internal-do-not-import-from-here/shared/models/theming/ThemeDefinitionV2.d.ts +2 -3
  37. package/internal-do-not-import-from-here/shared/models/theming/{TypographyDefinition.d.ts → Typography.d.ts} +16 -16
  38. package/internal-do-not-import-from-here/shared/models/theming/UseThemeMethods.d.ts +2 -2
  39. package/internal-do-not-import-from-here/shared/models/theming/index.d.ts +4 -4
  40. package/internal-do-not-import-from-here/shared/models/theming/index.js +4 -4
  41. package/internal-do-not-import-from-here/shared/models/velcron/VelcronReference.d.ts +20 -0
  42. package/internal-do-not-import-from-here/shared/models/velcron/VelcronReference.js +5 -0
  43. package/internal-do-not-import-from-here/shared/models/velcron/index.d.ts +1 -0
  44. package/internal-do-not-import-from-here/shared/models/velcron/index.js +1 -0
  45. package/internal-do-not-import-from-here/velcron/core/models/VelcronDefinitions.d.ts +27 -7
  46. package/media-picker/index.d.ts +1 -0
  47. package/media-picker/index.js +1 -0
  48. package/media-picker/interfaces/IImageTransformHandler.d.ts +16 -0
  49. package/media-picker/interfaces/IImageTransformHandler.js +2 -0
  50. package/media-picker/interfaces/IMediaPickerGalleryHandler.d.ts +10 -0
  51. package/media-picker/interfaces/IMediaPickerGalleryHandler.js +2 -0
  52. package/media-picker/interfaces/IMediaPickerProviderMediaHandler.d.ts +58 -0
  53. package/media-picker/interfaces/IMediaPickerProviderMediaHandler.js +2 -0
  54. package/media-picker/interfaces/index.d.ts +4 -0
  55. package/media-picker/interfaces/index.js +7 -0
  56. package/media-picker/interfaces/types.d.ts +55 -0
  57. package/media-picker/interfaces/types.js +2 -0
  58. package/oxide/SharedSettings.d.ts +6 -0
  59. package/package.json +1 -1
  60. package/properties/definitions/IdentityPropertyDefinition.d.ts +3 -1
  61. package/properties/definitions/IdentityPropertyDefinition.js +2 -2
  62. package/internal-do-not-import-from-here/shared/models/theming/ComponentDefinitions.d.ts +0 -93
  63. package/internal-do-not-import-from-here/shared/models/theming/SpacingSetting.d.ts +0 -30
  64. /package/internal-do-not-import-from-here/shared/models/theming/{ComponentDefinitions.js → Blueprints.js} +0 -0
  65. /package/internal-do-not-import-from-here/shared/models/theming/{ChromeDefinition.js → Chrome.js} +0 -0
  66. /package/internal-do-not-import-from-here/shared/models/theming/{SpacingSetting.js → Spacing.js} +0 -0
  67. /package/internal-do-not-import-from-here/shared/models/theming/{TypographyDefinition.js → Typography.js} +0 -0
@@ -1,5 +1,5 @@
1
1
  import { Guid } from "../Guid";
2
- import { BlueprintDefinition, BoxDimensions } from "./ComponentDefinitions";
2
+ import { Blueprints, BoxDimensions } from "./Blueprints";
3
3
  export interface ColorTypeResult<resultType> {
4
4
  base: resultType;
5
5
  baseTone: resultType;
@@ -44,7 +44,7 @@ export interface ThemeDefinitionV2 {
44
44
  name: string;
45
45
  dark: boolean;
46
46
  colors: ColorSchemas;
47
- blueprints: BlueprintDefinition[];
47
+ blueprints: Blueprints[];
48
48
  }
49
49
  export type ColorSchemaType = keyof typeof ColorSchemaTypes;
50
50
  export declare enum ColorSchemaTypes {
@@ -81,7 +81,6 @@ export interface ColorGradientValue {
81
81
  }
82
82
  /**Background */
83
83
  export interface BackgroundDefinition {
84
- filled?: boolean;
85
84
  fill?: FillDefinition;
86
85
  border?: BorderStylingDefinition;
87
86
  elevation?: number;
@@ -1,33 +1,33 @@
1
1
  import { Guid } from "../Guid";
2
- export interface TypographyDefinition {
3
- id: Guid;
2
+ export interface TypographyBlueprint {
4
3
  name: string;
5
4
  font?: {
5
+ id: Guid;
6
6
  family: string;
7
7
  cdn?: string;
8
8
  };
9
9
  title: {
10
- xl: TypographyTypeDefinition;
11
- l: TypographyTypeDefinition;
12
- m: TypographyTypeDefinition;
13
- s: TypographyTypeDefinition;
14
- xs: TypographyTypeDefinition;
10
+ xl: TypographyDefinition;
11
+ l: TypographyDefinition;
12
+ m: TypographyDefinition;
13
+ s: TypographyDefinition;
14
+ xs: TypographyDefinition;
15
15
  };
16
16
  text: {
17
- l: TypographyTypeDefinition;
18
- m: TypographyTypeDefinition;
19
- s: TypographyTypeDefinition;
20
- xs: TypographyTypeDefinition;
17
+ l: TypographyDefinition;
18
+ m: TypographyDefinition;
19
+ s: TypographyDefinition;
20
+ xs: TypographyDefinition;
21
21
  };
22
22
  navigation: {
23
- l: TypographyTypeDefinition;
24
- m: TypographyTypeDefinition;
23
+ l: TypographyDefinition;
24
+ m: TypographyDefinition;
25
25
  };
26
26
  link: {
27
- m: TypographyTypeDefinition;
27
+ m: TypographyDefinition;
28
28
  };
29
29
  }
30
- export interface TypographyTypeDefinition {
30
+ export interface TypographyDefinition {
31
31
  decoration?: string;
32
32
  large: TypographyTypeBreakPoint;
33
33
  medium?: TypographyTypeBreakPoint;
@@ -48,7 +48,7 @@ export interface ThemedTypographyValue {
48
48
  type: TypographyType;
49
49
  size: TypographySize;
50
50
  }
51
- export type TypographyValue = string | ThemedTypographyValue;
51
+ export type TypographyValue = TypographyDefinition | ThemedTypographyValue;
52
52
  export type TypographySize = keyof typeof TypographySizes;
53
53
  export declare enum TypographySizes {
54
54
  xl = "xl",
@@ -1,8 +1,8 @@
1
1
  import { ColorDefinition, ColorSchema, ColorSchemaType, ColorSchemaTypes, ColorType, ColorTypes } from "./ThemeDefinitionV2";
2
- import { BlueprintDefinition, BlueprintType } from "./ComponentDefinitions";
2
+ import { Blueprints, BlueprintType } from "./Blueprints";
3
3
  export declare function useThemeMethods(getThemeDefinition: () => any): {
4
4
  colorSchema: (colorSchemaType: ColorSchemaTypes | ColorSchemaType) => ColorSchema;
5
- bluePrintbyType: <TType extends BlueprintDefinition>(type: BlueprintType) => TType;
5
+ bluePrintbyType: <TType extends Blueprints>(type: BlueprintType) => TType;
6
6
  color: (colorSchemaType: ColorSchemaTypes | ColorSchemaType, colorType: ColorTypes | ColorType) => string;
7
7
  colorDefinition: (colorSchemaType: ColorSchemaTypes | ColorSchemaType, colorType: ColorTypes | ColorType) => ColorDefinition;
8
8
  complementaryColorType: (colorType: ColorTypes | ColorType) => ColorTypes;
@@ -1,8 +1,8 @@
1
1
  export * from "./ThemeDefinitionV2";
2
- export * from "./TypographyDefinition";
2
+ export * from "./Typography";
3
3
  export * from "./UseThemeMethods";
4
- export * from "./ComponentDefinitions";
5
- export * from "./SpacingSetting";
4
+ export * from "./Spacing";
6
5
  export * from "./SharedBlueprintMethods";
7
6
  export * from "./SharedColorMethods";
8
- export * from "./ChromeDefinition";
7
+ export * from "./Chrome";
8
+ export * from "./Blueprints";
@@ -2,11 +2,11 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  tslib_1.__exportStar(require("./ThemeDefinitionV2"), exports);
5
- tslib_1.__exportStar(require("./TypographyDefinition"), exports);
5
+ tslib_1.__exportStar(require("./Typography"), exports);
6
6
  //export * from "./OmniaThemes";
7
7
  tslib_1.__exportStar(require("./UseThemeMethods"), exports);
8
- tslib_1.__exportStar(require("./ComponentDefinitions"), exports);
9
- tslib_1.__exportStar(require("./SpacingSetting"), exports);
8
+ tslib_1.__exportStar(require("./Spacing"), exports);
10
9
  tslib_1.__exportStar(require("./SharedBlueprintMethods"), exports);
11
10
  tslib_1.__exportStar(require("./SharedColorMethods"), exports);
12
- tslib_1.__exportStar(require("./ChromeDefinition"), exports);
11
+ tslib_1.__exportStar(require("./Chrome"), exports);
12
+ tslib_1.__exportStar(require("./Blueprints"), exports);
@@ -0,0 +1,20 @@
1
+ import { GuidValue } from "../Guid";
2
+ import { StronglyTypedId } from "../StronglyTypedId";
3
+ import { VelcronAppDefinition } from "./VelcronDefinition";
4
+ export type VelcronRendererId = StronglyTypedId<string, "VelcronRendererId">;
5
+ export declare function VelcronRendererId(id: GuidValue): VelcronRendererId;
6
+ export interface VelcronRendererResolverReference {
7
+ id: VelcronRendererId;
8
+ resolver: string;
9
+ version: string;
10
+ }
11
+ export interface VelcronRendererReference {
12
+ id: VelcronRendererId;
13
+ version: string;
14
+ }
15
+ export interface VelcronRendererWithJson extends VelcronRendererReference {
16
+ definition: string;
17
+ }
18
+ export interface VelcronRenderer extends VelcronRendererReference {
19
+ definition: VelcronAppDefinition;
20
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.VelcronRendererId = void 0;
4
+ function VelcronRendererId(id) { return id; }
5
+ exports.VelcronRendererId = VelcronRendererId;
@@ -1,2 +1,3 @@
1
1
  export * from "./VelcronDefinition";
2
2
  export * from "./VelcronEvents";
3
+ export * from "./VelcronReference";
@@ -3,3 +3,4 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  tslib_1.__exportStar(require("./VelcronDefinition"), exports);
5
5
  tslib_1.__exportStar(require("./VelcronEvents"), exports);
6
+ tslib_1.__exportStar(require("./VelcronReference"), exports);
@@ -1,7 +1,7 @@
1
- import { VelcronOnUpdatedEvent, VelcronOnClosedEvent, VelcronOnCloseRequestedEvent, VelcronOnPressEvent, VelcronSpacing, VelcronStyling, VelcronCustomComponentDefinition, VelcronAppDefinition } from "internal/fx/shared/models";
1
+ import { VelcronOnUpdatedEvent, VelcronOnClosedEvent, VelcronOnCloseRequestedEvent, VelcronOnPressEvent, VelcronSpacing, VelcronStyling, VelcronCustomComponentDefinition, VelcronAppDefinition, VelcronRendererResolverReference } from "internal/fx/shared/models";
2
2
  import { VelcroncomponentArrayType, VelcronPrimitiveType } from "./VelcronTypes";
3
3
  import { AssignOperators, VelcronHorizontalAlignments, VelcronIconTypes, VelcronActionTypes, VelcronVerticalAlignments } from "./Enums";
4
- import { ActivityRendererReference, DynamicState, VelcronDefinition, useVelcronThemingStore } from "..";
4
+ import { DynamicState, VelcronDefinition, useVelcronThemingStore } from "..";
5
5
  import { GuidValue, PropertyConfiguration, PropertyValue, PropertyDefinition, PropertySetupBase } from "@omnia/fx/models";
6
6
  import { useVelcronColorSchemaStore } from "../stores/VelcronColorSchema";
7
7
  export interface ResolvedComponentRenderer {
@@ -32,6 +32,8 @@ export interface BuiltInComponentRenderers {
32
32
  "checkbox": unknown;
33
33
  "reference": unknown;
34
34
  "radio": unknown;
35
+ "rive": unknown;
36
+ "lottie": unknown;
35
37
  }
36
38
  export interface ColorSchemaReference {
37
39
  name: string;
@@ -74,7 +76,6 @@ export interface VelcronRenderContextHooks {
74
76
  onItemSelected?: ((item: VelcronDefinition) => void);
75
77
  onItemRendered?: ((item: VelcronDefinition) => OnItemRenderedHookResult);
76
78
  onItemCreatedProps?: ((item: VelcronDefinition) => object);
77
- onLoadReference?: ((reference: ActivityRendererReference) => Promise<VelcronDefinition>);
78
79
  }
79
80
  export interface VelcronContainerRenderer {
80
81
  definition: VelcronDefinition;
@@ -178,7 +179,7 @@ export declare enum VelcronImageRatios {
178
179
  square = "square",
179
180
  landscape = "landscape"
180
181
  }
181
- export interface VelcronImageDefinition extends VelcronDefinition {
182
+ export interface VelcronImageDefinition extends VelcronDefinitionWithEditMode {
182
183
  type: "image";
183
184
  url?: VelcronBindableProp<string>;
184
185
  bind?: VelcronBindableProp<string>;
@@ -236,6 +237,24 @@ export interface VelcronMarkdownDefinition extends VelcronDefinitionWithEditMode
236
237
  type: "markdown";
237
238
  events: VelcronOnUpdatedEvent;
238
239
  }
240
+ export interface VelcronRiveDefinition extends VelcronDefinition {
241
+ type: "rive";
242
+ url: VelcronBindableProp;
243
+ loop?: VelcronBindableProp<boolean>;
244
+ autoplay?: VelcronBindableProp<boolean>;
245
+ count?: VelcronBindableProp<number>;
246
+ direction?: VelcronBindableProp<"normal" | "reverse">;
247
+ hover?: VelcronBindableProp<boolean>;
248
+ }
249
+ export interface VelcronLottieDefinition extends VelcronDefinition {
250
+ type: "lottie";
251
+ url: VelcronBindableProp;
252
+ loop?: VelcronBindableProp<boolean>;
253
+ autoplay?: VelcronBindableProp<boolean>;
254
+ count?: VelcronBindableProp<number>;
255
+ direction?: VelcronBindableProp<"normal" | "reverse">;
256
+ hover?: VelcronBindableProp<boolean>;
257
+ }
239
258
  export interface VelcronDimensions {
240
259
  top: number | string;
241
260
  right: number | string;
@@ -259,11 +278,12 @@ export interface VelcronSlotDefinition extends VelcronDefinition {
259
278
  type: "slot";
260
279
  bind: VelcronBindableProp<string>;
261
280
  }
262
- export interface VelcronReferencefinition extends VelcronDefinition {
281
+ export interface VelcronReferenceDefinition extends VelcronDefinition {
263
282
  type: "reference";
264
- to: ActivityRendererReference;
283
+ to: VelcronRendererResolverReference;
284
+ state: string;
265
285
  }
266
- export interface VelcronPropertyDefinition extends VelcronDefinition {
286
+ export interface VelcronPropertyDefinition extends VelcronDefinitionWithEditMode {
267
287
  type: "property";
268
288
  bind: VelcronBindableProp<string>;
269
289
  }
@@ -13,3 +13,4 @@ export * from "./SharePointVideoResult";
13
13
  export * from "./MediaPickerSearchProvider";
14
14
  export * from "./localize";
15
15
  export * from "./MediaPickerProvider";
16
+ export * from "./interfaces";
@@ -16,3 +16,4 @@ tslib_1.__exportStar(require("./SharePointVideoResult"), exports);
16
16
  tslib_1.__exportStar(require("./MediaPickerSearchProvider"), exports);
17
17
  tslib_1.__exportStar(require("./localize"), exports);
18
18
  tslib_1.__exportStar(require("./MediaPickerProvider"), exports);
19
+ tslib_1.__exportStar(require("./interfaces"), exports);
@@ -0,0 +1,16 @@
1
+ import { MediaPickerTransformation } from "../MediaPickerTransformations";
2
+ /**
3
+ * Interface for image transform handlers
4
+ * Each handler must implement this interface
5
+ */
6
+ export interface IImageTransformHandler {
7
+ /**
8
+ * @param options parameters needed for the transformation
9
+ */
10
+ transform(options: MediaPickerTransformation): Promise<void>;
11
+ /**
12
+ * Update the transformation data in the store
13
+ * @param options parameters needed for the transformation
14
+ */
15
+ updateTransformationData(options: MediaPickerTransformation): Promise<void>;
16
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,10 @@
1
+ import { MediaState } from "./types";
2
+ /**
3
+ * @description interface for the gallery handler
4
+ */
5
+ export interface IMediaPickerGalleryHandler {
6
+ /**
7
+ * @description the handler for when a media is selected, which handles the way the media is updated/transformed
8
+ */
9
+ onSelectMedia: (index: number, media: MediaState) => void;
10
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,58 @@
1
+ import { MediaPickerImageScaling } from "../MediaPickerImageScaling";
2
+ import { MediaPickerVideo } from "../MediaPickerMedia";
3
+ import { MediaItem, ImageInformation } from "../Shared";
4
+ /**
5
+ * @description interface for media picker provider, which contains the logic for **handling the media picker provider** events
6
+ */
7
+ export interface IMediaPickerProviderHandler {
8
+ /**
9
+ * @description handle select media event in the provider
10
+ * @param media the media that gets selected in the provider
11
+ */
12
+ selectMedia: (media: MediaItem | MediaPickerVideo) => Promise<void>;
13
+ /**
14
+ * @param searchKeyword handle the search event in the provider
15
+ * @returns {Promise<Array<MediaItem>>} the result of the search
16
+ */
17
+ search: (searchKeyword: string) => Promise<Array<MediaItem>>;
18
+ /**
19
+ * @description handle the search more event in the provider, when the user scrolls to the bottom of the search result
20
+ * @param searchQueryText search query text
21
+ * @param lastLoadedIndex index of the last loaded item
22
+ * @returns {Promise<Array<MediaItem>>} the result of the search
23
+ */
24
+ searchMore: (searchQueryText: string, lastLoadedIndex: number) => Promise<Array<MediaItem>>;
25
+ }
26
+ export type ProcessImageOptions = {
27
+ needScaling: boolean;
28
+ imageInfo: ImageInformation;
29
+ scalingOptions?: MediaPickerImageScaling;
30
+ };
31
+ export interface IMediaPickerImageProviderHandler extends IMediaPickerProviderHandler {
32
+ /**
33
+ * @description handle the image scaling event in the provider, when the user selects the image scaling option
34
+ * @param imageInfo the image info of the selected image
35
+ * @returns {Promise<boolean>} if the image needs scaling
36
+ */
37
+ handleImageScaling: (imageInfo: ImageInformation) => Promise<boolean>;
38
+ /**
39
+ * @description check if the image supports transformation, This is because we need to handle the event when user selecting scaling options in a provider
40
+ * @param imageInfo the image info of the selected image
41
+ * @returns {boolean} if the image supports transformation
42
+ */
43
+ processImageAndAddToGallery: (options: ProcessImageOptions) => Promise<void>;
44
+ /**
45
+ * @description handle the select image event in the provider, when the provider already process the image.
46
+ * @param imageInfo the image info of the selected image
47
+ */
48
+ selectImageInfo: (imageInfo: ImageInformation) => Promise<void>;
49
+ }
50
+ export interface IMediaPickerVideoProviderHandler extends IMediaPickerProviderHandler {
51
+ /**
52
+ * @description handle the update media event in the provider, when the user updates the media in the gallery
53
+ * @note This will probably be used only for video providers, because in omnia the video provider will update the video, while the image transformer will transform the image **NOT** the provider
54
+ * @param media This will be the media that gets updated in the gallery
55
+ * @param id the id of the media that gets updated in gallery store
56
+ */
57
+ updateMedia: (media: MediaItem | MediaPickerVideo) => Promise<void>;
58
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ export * from "./IImageTransformHandler";
2
+ export * from "./IMediaPickerGalleryHandler";
3
+ export * from "./IMediaPickerProviderMediaHandler";
4
+ export * from "./types";
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./IImageTransformHandler"), exports);
5
+ tslib_1.__exportStar(require("./IMediaPickerGalleryHandler"), exports);
6
+ tslib_1.__exportStar(require("./IMediaPickerProviderMediaHandler"), exports);
7
+ tslib_1.__exportStar(require("./types"), exports);
@@ -0,0 +1,55 @@
1
+ import { GuidValue } from "@omnia/fx/internal-do-not-import-from-here/shared";
2
+ import { MediaPickerRenditionData } from "../MediaPickerImageRendition";
3
+ import { MediaPickerImageTransformationResult } from "../MediaPickerImageTransformationResult";
4
+ import { MediaPickerImage, MediaPickerVideo, MediaPickerMedia } from "../MediaPickerMedia";
5
+ import { MediaPickerProvider } from "../MediaPickerProvider";
6
+ import { MediaPickerTransformedBase64Image } from "../MediaPickerTransformedBase64Image";
7
+ import { IIcon } from "../../Icon";
8
+ export type MediaPickerMediaItem = MediaPickerImage | MediaPickerVideo | MediaPickerMedia;
9
+ export type MediaGallery = Array<MediaPickerMediaItem>;
10
+ export type ImageMetaData = {
11
+ [imageId: string]: {
12
+ renditions: Array<MediaPickerRenditionData>;
13
+ imageTransformationSource: MediaPickerTransformedBase64Image;
14
+ };
15
+ };
16
+ export type MediaPickerActionButton = {
17
+ text: string;
18
+ show: boolean;
19
+ onClick: any;
20
+ icon?: string;
21
+ iconLeft?: boolean;
22
+ loading?: boolean;
23
+ highLighted?: boolean;
24
+ leftAligned?: boolean;
25
+ };
26
+ export type MediaState = {
27
+ id: GuidValue;
28
+ isVideo: boolean;
29
+ isChanged: boolean;
30
+ media?: MediaPickerMediaItem;
31
+ transformerInfo?: MediaPickerImageTransformationResult;
32
+ isNew: boolean;
33
+ convertingFromBase64ToMediaPicker: boolean;
34
+ provider?: MediaPickerProvider;
35
+ index?: number;
36
+ };
37
+ export type MenuItem = {
38
+ menuItemId: GuidValue;
39
+ title?: string;
40
+ icon: IIcon;
41
+ connectedProvider: MediaPickerProvider;
42
+ };
43
+ export type MediaResult = {
44
+ index: number;
45
+ media: MediaPickerMediaItem;
46
+ };
47
+ export type MediaPickerMessage = {
48
+ message: string;
49
+ icon?: IIcon;
50
+ };
51
+ export type ImageRendition = {
52
+ mediaStateId: GuidValue;
53
+ mediaPickerRenditionData: MediaPickerRenditionData[];
54
+ sourceImage: MediaPickerTransformedBase64Image;
55
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +1,13 @@
1
+ import { TabsBlueprint } from "../Exposes";
1
2
  export interface ExpansionPanelSharedSettings {
2
3
  variant?: string;
3
4
  toned?: boolean;
4
5
  }
6
+ export interface TabSharedSettings {
7
+ blueprint?: TabsBlueprint;
8
+ selectedIndex?: number;
9
+ tabRegistrations?: number;
10
+ }
5
11
  export interface ListItemSharedSettings {
6
12
  variant?: string;
7
13
  toned?: boolean;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@omnia/fx-models",
3
3
  "license": "MIT",
4
- "version": "8.0.124-dev",
4
+ "version": "8.0.126-dev",
5
5
  "description": "Provide Omnia Fx Models Stuffs.",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -1,5 +1,6 @@
1
- import { Guid } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
1
+ import { Guid } from "@omnia/fx/internal-do-not-import-from-here/shared";
2
2
  import { LockStatusExcludeChildren, PropertyLockStatusType } from "../../../ux";
3
+ import { PrincipalTypes } from "../../Enums";
3
4
  import { PropertyDefinition, PropertyDisplaySettingsBase, PropertyEditorSettingsBase } from "../PropertyDefinition";
4
5
  import { IdentityPropertyValue } from "../values";
5
6
  export declare class IdentityPropertyDisplaySettings extends PropertyDisplaySettingsBase {
@@ -11,6 +12,7 @@ export declare class IdentityPropertyDisplaySettings extends PropertyDisplaySett
11
12
  export declare class IdentityPropertyEditorSettings extends PropertyEditorSettingsBase {
12
13
  locks?: PropertyLockStatusType<Omit<IdentityPropertyEditorSettings, "locks">>;
13
14
  multiple?: boolean;
15
+ type?: PrincipalTypes;
14
16
  }
15
17
  export declare const identityPropertyDefinitionId: Guid;
16
18
  export declare class IdentityPropertyDefinition extends PropertyDefinition<IdentityPropertyValue, IdentityPropertyDisplaySettings, IdentityPropertyEditorSettings> {
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.IdentityPropertyDefinition = exports.identityPropertyDefinitionId = exports.IdentityPropertyEditorSettings = exports.IdentityPropertyDisplaySettings = void 0;
4
- const models_1 = require("@omnia/fx-models/internal-do-not-import-from-here/shared/models");
4
+ const shared_1 = require("@omnia/fx/internal-do-not-import-from-here/shared");
5
5
  const PropertyDefinition_1 = require("../PropertyDefinition");
6
6
  class IdentityPropertyDisplaySettings extends PropertyDefinition_1.PropertyDisplaySettingsBase {
7
7
  }
@@ -9,7 +9,7 @@ exports.IdentityPropertyDisplaySettings = IdentityPropertyDisplaySettings;
9
9
  class IdentityPropertyEditorSettings extends PropertyDefinition_1.PropertyEditorSettingsBase {
10
10
  }
11
11
  exports.IdentityPropertyEditorSettings = IdentityPropertyEditorSettings;
12
- exports.identityPropertyDefinitionId = new models_1.Guid("4dfc3b66-a203-447d-8f64-171f47e5b63a");
12
+ exports.identityPropertyDefinitionId = new shared_1.Guid("4dfc3b66-a203-447d-8f64-171f47e5b63a");
13
13
  class IdentityPropertyDefinition extends PropertyDefinition_1.PropertyDefinition {
14
14
  constructor() {
15
15
  super(...arguments);
@@ -1,93 +0,0 @@
1
- import { BackgroundDefinition, FillDefinition } from "./ThemeDefinitionV2";
2
- import { ChromeDefinition } from "./ChromeDefinition";
3
- import { SpacingDefinition, SpacingSettings } from "./SpacingSetting";
4
- import { TypographyDefinition, TypographyValue } from "./TypographyDefinition";
5
- export interface BoxDimensions extends SpacingSettings {
6
- }
7
- export interface ChromeBluePrintDefinitions {
8
- default: ChromeDefinition;
9
- variant1: ChromeDefinition;
10
- variant2: ChromeDefinition;
11
- variant3: ChromeDefinition;
12
- }
13
- export type BlueprintType = "chrome" | "typography" | "spacing" | "component";
14
- export type ChromeBlueprintVariants = "default" | "variant1" | "variant2" | "variant3";
15
- export type TypographyBlueprintVariants = "default" | "variant1";
16
- export type SpacingBlueprintVariants = "default";
17
- export interface BlueprintDefinition {
18
- type: BlueprintType;
19
- name: string;
20
- }
21
- export interface ChromeBlueprint extends BlueprintDefinition {
22
- type: "chrome";
23
- default: ChromeDefinition;
24
- variant1?: ChromeDefinition;
25
- variant2?: ChromeDefinition;
26
- variant3?: ChromeDefinition;
27
- }
28
- export interface TypographyBlueprint extends BlueprintDefinition {
29
- type: "typography";
30
- default: TypographyDefinition;
31
- variant1?: TypographyDefinition;
32
- }
33
- export interface SpacingBlueprint extends BlueprintDefinition {
34
- type: "spacing";
35
- default: SpacingItemBluePrintDefinition;
36
- }
37
- export interface ComponentBlueprint extends BlueprintDefinition {
38
- type: "component";
39
- buttons?: {
40
- high: {
41
- regular: ButtonBlueprint;
42
- icon: ButtonBlueprint;
43
- };
44
- medium: {
45
- regular: ButtonBlueprint;
46
- icon: ButtonBlueprint;
47
- };
48
- low: {
49
- regular: ButtonBlueprint;
50
- icon: ButtonBlueprint;
51
- };
52
- };
53
- }
54
- export interface SpacingItemBluePrintDefinition {
55
- layout: SpacingDefinition;
56
- inner: SpacingDefinition;
57
- }
58
- export type SpacingBlueprintTypes = "inner" | "layout";
59
- export type WebBlueprintItemDefintionType = "button" | "searchbox" | "text" | "icon";
60
- export declare enum WebBlueprintItemDefintionTypes {
61
- button = "button",
62
- searchbox = "searchbox"
63
- }
64
- export type VelcronBlueprintDefintionType = "button";
65
- export declare enum VelcronBlueprintDefintionTypes {
66
- button = "button"
67
- }
68
- export interface BlueprintItemDefinition {
69
- type: VelcronBlueprintDefintionType | WebBlueprintItemDefintionType;
70
- }
71
- export interface SearchBoxBlueprint extends BlueprintItemDefinition {
72
- type: "searchbox";
73
- borderRadius?: BoxDimensions;
74
- variant?: "outlined" | "solo" | "regular" | "plain" | "underlined";
75
- }
76
- export interface ButtonBlueprint extends BlueprintItemDefinition {
77
- type: "button";
78
- padding?: SpacingSettings;
79
- background?: BackgroundDefinition;
80
- alterCase?: boolean;
81
- text?: TextBlueprint;
82
- icon?: IconBlueprint;
83
- }
84
- export interface TextBlueprint extends BlueprintItemDefinition {
85
- type: "text";
86
- color?: FillDefinition;
87
- typography?: TypographyValue;
88
- }
89
- export interface IconBlueprint extends BlueprintItemDefinition {
90
- type: "icon";
91
- color?: FillDefinition;
92
- size?: number;
93
- }
@@ -1,30 +0,0 @@
1
- import { Guid } from "../Guid";
2
- export interface Spacing {
3
- top?: number;
4
- right?: number;
5
- bottom?: number;
6
- left?: number;
7
- }
8
- export interface SpacingSettings {
9
- top?: number | SpacingType;
10
- right?: number | SpacingType;
11
- bottom?: number | SpacingType;
12
- left?: number | SpacingType;
13
- }
14
- export interface SpacingDefinition {
15
- name: string;
16
- id: Guid;
17
- xs: number;
18
- s: number;
19
- m: number;
20
- l: number;
21
- xl: number;
22
- }
23
- export type SpacingType = "xs" | "s" | "m" | "l" | "xl";
24
- export declare enum SpacingTypes {
25
- xs = "xs",
26
- s = "s",
27
- m = "m",
28
- l = "l",
29
- xl = "xl"
30
- }