@omnia/fx-models 8.0.114-vnext → 8.0.115-vnext

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/Icon.d.ts CHANGED
@@ -30,6 +30,9 @@ export declare class FontAwesomeIcon implements IFontAwesomeIcon {
30
30
  iconType: IconTypes;
31
31
  constructor(faClass: string);
32
32
  toString(): string;
33
+ setStyle(style: "solid" | "regular" | "light" | "duotone" | "thin", force?: boolean): this;
34
+ private setDefaultIconStyle;
35
+ private setIconStyle;
33
36
  }
34
37
  export declare class MaterialIcon implements IMaterialIcon {
35
38
  maClass: string;
package/Icon.js CHANGED
@@ -9,10 +9,44 @@ class FontAwesomeIcon {
9
9
  constructor(faClass) {
10
10
  this.faClass = faClass;
11
11
  this.iconType = Enums_1.IconTypes.FontAwesome;
12
+ this.setDefaultIconStyle();
12
13
  }
13
14
  toString() {
14
15
  return this.faClass;
15
16
  }
17
+ //
18
+ setStyle(style, force) {
19
+ if (!force && this.faClass.indexOf(" ") === -1) {
20
+ return;
21
+ }
22
+ if (style === "solid") {
23
+ this.setIconStyle("fas");
24
+ }
25
+ else if (style === "regular") {
26
+ this.setIconStyle("fa");
27
+ }
28
+ else if (style === "light") {
29
+ this.setIconStyle("fal");
30
+ }
31
+ else if (style === "duotone") {
32
+ this.setIconStyle("fa-duotone");
33
+ }
34
+ else if (style === "thin") {
35
+ this.setIconStyle("fat");
36
+ }
37
+ return this;
38
+ }
39
+ setDefaultIconStyle() {
40
+ const split = this.faClass.split(" ");
41
+ if (this.faClass.split(" ").length === 1) {
42
+ this.setIconStyle("fa-duotone");
43
+ }
44
+ }
45
+ setIconStyle(style) {
46
+ const split = this.faClass.split(" ");
47
+ const end = split[split.length - 1];
48
+ this.faClass = style + " " + end;
49
+ }
16
50
  }
17
51
  exports.FontAwesomeIcon = FontAwesomeIcon;
18
52
  class MaterialIcon {
package/ManifestIds.d.ts CHANGED
@@ -28,6 +28,7 @@ export declare class OmniaResourceManifests {
28
28
  static get FxUxVRating(): Guid;
29
29
  static get FxUxVuetifyHover(): Guid;
30
30
  static get FxUxVuetifyStepper(): Guid;
31
+ static get FxUxVuetifyColorPicker(): Guid;
31
32
  static get FxUxVuetifyCombobox(): Guid;
32
33
  static get FxUxVuetifySlider(): Guid;
33
34
  static get FxUxVuetifyChip(): Guid;
@@ -171,6 +172,7 @@ export declare class OmniaWebComponentManifests {
171
172
  static get OMenu(): Guid;
172
173
  static get ONavigationDrawer(): Guid;
173
174
  static get OPanel(): Guid;
175
+ static get OFlex(): Guid;
174
176
  static get OProgress(): Guid;
175
177
  static get ORadio(): Guid;
176
178
  static get ORadioGroup(): Guid;
@@ -190,6 +192,7 @@ export declare class OmniaWebComponentManifests {
190
192
  static get OTextArea(): Guid;
191
193
  static get OTextField(): Guid;
192
194
  static get OToolbar(): Guid;
195
+ static get OColorPicker(): Guid;
193
196
  static get OTooltip(): Guid;
194
197
  static get OTreeView(): Guid;
195
198
  static get OValidation(): Guid;
package/ManifestIds.js CHANGED
@@ -84,6 +84,7 @@ class OmniaResourceManifests {
84
84
  }
85
85
  //public static get FxUxVuetifyBadge(): Guid { return new Guid("42da6bee-8c61-426c-aeb5-b480ecc01f06"); }
86
86
  static get FxUxVuetifyStepper() { return new models_1.Guid("3104db5f-e983-4e06-925e-9b5375276512"); }
87
+ static get FxUxVuetifyColorPicker() { return new models_1.Guid("4f861c0d-75fb-49ce-913e-17cbafad5ed2"); }
87
88
  static get FxUxVuetifyCombobox() {
88
89
  return new models_1.Guid("0EDAD567-65C0-433F-A871-A59E460D70F0");
89
90
  }
@@ -526,6 +527,9 @@ class OmniaWebComponentManifests {
526
527
  static get OPanel() {
527
528
  return new models_1.Guid("1d8d2a23-2824-4f1e-ab96-344841305976");
528
529
  }
530
+ static get OFlex() {
531
+ return new models_1.Guid("1691e25d-9632-43f9-b78a-548fe8d2e8a7");
532
+ }
529
533
  static get OProgress() {
530
534
  return new models_1.Guid("247719ac-6d38-43ec-889f-ace452544a21");
531
535
  }
@@ -583,6 +587,9 @@ class OmniaWebComponentManifests {
583
587
  static get OToolbar() {
584
588
  return new models_1.Guid("575bd9ad-6c0d-4fc9-ab53-fbd1b93786c4");
585
589
  }
590
+ static get OColorPicker() {
591
+ return new models_1.Guid("28370f03-1276-4e82-b4c2-9237f943710a");
592
+ }
586
593
  static get OTooltip() {
587
594
  return new models_1.Guid("19adb199-3860-4f41-b10f-3a00eb3eb534");
588
595
  }
@@ -0,0 +1,3 @@
1
+ export type StronglyTypedId<T, Name extends string> = T & {
2
+ __type: Name;
3
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,15 +1,21 @@
1
- import { DynamicState } from "../..";
1
+ import { DynamicState, GuidValue, StronglyTypedId } from "../..";
2
2
  import { ChannelId } from "./ActivityChannel";
3
3
  import { ActivitySenderId } from "./ActivitySender";
4
- export declare enum ActivityId {
5
- }
6
- export declare enum ActivityTypeId {
7
- }
4
+ export type ActivityId = StronglyTypedId<number, "ActivityId">;
5
+ export declare function ActivityId(id: number): ActivityId;
6
+ export type ActivityTypeId = StronglyTypedId<GuidValue, "ActivityTypeId">;
7
+ export declare function ActivityTypeId(id: GuidValue): ActivityTypeId;
8
8
  export interface Activity<TRenderState = DynamicState> extends ActivityBase {
9
9
  id: ActivityId;
10
10
  state: TRenderState;
11
11
  senderId: ActivitySenderId;
12
12
  }
13
+ export interface ActivityResponse extends ActivityBase {
14
+ id: ActivityId;
15
+ senderId: ActivitySenderId;
16
+ stateJson: string;
17
+ rendererJson: string;
18
+ }
13
19
  export interface ActivityBase {
14
20
  channelId: ChannelId;
15
21
  activityTypeId: ActivityTypeId;
@@ -1,9 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ActivityTypeId = exports.ActivityId = void 0;
4
- var ActivityId;
5
- (function (ActivityId) {
6
- })(ActivityId = exports.ActivityId || (exports.ActivityId = {}));
7
- var ActivityTypeId;
8
- (function (ActivityTypeId) {
9
- })(ActivityTypeId = exports.ActivityTypeId || (exports.ActivityTypeId = {}));
4
+ function ActivityId(id) { return id; }
5
+ exports.ActivityId = ActivityId;
6
+ function ActivityTypeId(id) { return id; }
7
+ exports.ActivityTypeId = ActivityTypeId;
@@ -1,5 +1,6 @@
1
- export declare enum ChannelId {
2
- }
1
+ import { StronglyTypedId } from "../..";
2
+ export type ChannelId = StronglyTypedId<number, "ChannelId">;
3
+ export declare function ChannelId(id: number): ChannelId;
3
4
  export interface ActivityChannel {
4
5
  id: ChannelId;
5
6
  createdAt: Date;
@@ -1,6 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ChannelId = void 0;
4
- var ChannelId;
5
- (function (ChannelId) {
6
- })(ChannelId = exports.ChannelId || (exports.ChannelId = {}));
4
+ function ChannelId(id) { return id; }
5
+ exports.ChannelId = ChannelId;
@@ -1,5 +1,6 @@
1
- export declare enum ActivityRendererId {
2
- }
1
+ import { GuidValue, StronglyTypedId } from "../..";
2
+ export type ActivityRendererId = StronglyTypedId<string, "ActivityRendererId">;
3
+ export declare function ActivityRendererId(id: GuidValue): ActivityRendererId;
3
4
  export interface ActivityRendererReference {
4
5
  id: ActivityRendererId;
5
6
  version: string;
@@ -1,6 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ActivityRendererId = void 0;
4
- var ActivityRendererId;
5
- (function (ActivityRendererId) {
6
- })(ActivityRendererId = exports.ActivityRendererId || (exports.ActivityRendererId = {}));
4
+ function ActivityRendererId(id) { return id; }
5
+ exports.ActivityRendererId = ActivityRendererId;
@@ -1,8 +1,10 @@
1
1
  import { Activity, ActivityId } from "./Activity";
2
- import { ActivityRenderer } from "./ActivityRenderer";
2
+ import { ActivityRenderer, ActivityRendererId } from "./ActivityRenderer";
3
3
  import { IdentityActivity } from "./IdentityActivity";
4
4
  export interface FeedResult {
5
- renderers: Array<ActivityRenderer>;
5
+ renderers: {
6
+ [key: ActivityRendererId]: ActivityRenderer;
7
+ };
6
8
  identityActivities: Array<IdentityActivity>;
7
9
  activities: Array<Activity>;
8
10
  nextStartingFromId: ActivityId;
@@ -13,5 +13,6 @@ export * from "./Realtime";
13
13
  export * from "./OmniaSharedBootstrapData";
14
14
  export * from "./StringExtensions";
15
15
  export * from "./DynamicState";
16
+ export * from "./StronglyTypedId";
16
17
  export * from "./theming";
17
18
  export * from "./hub";
@@ -17,5 +17,6 @@ tslib_1.__exportStar(require("./Realtime"), exports);
17
17
  tslib_1.__exportStar(require("./OmniaSharedBootstrapData"), exports);
18
18
  tslib_1.__exportStar(require("./StringExtensions"), exports);
19
19
  tslib_1.__exportStar(require("./DynamicState"), exports);
20
+ tslib_1.__exportStar(require("./StronglyTypedId"), exports);
20
21
  tslib_1.__exportStar(require("./theming"), exports);
21
22
  tslib_1.__exportStar(require("./hub"), exports);
@@ -17,7 +17,7 @@ class MediaPickerCentralImageLocationProvider {
17
17
  this.id = imageLocationSettings.libraryId;
18
18
  this.category = "image";
19
19
  this.name = providerName;
20
- this.icon = new Icon_1.FontAwesomeIcon("fas fa-images");
20
+ this.icon = new Icon_1.FontAwesomeIcon("fa-duotone fa-images");
21
21
  //this.providerElementName = "omfx-media-picker-central-image-location-provider";
22
22
  this.providerComponentId = ManifestIds_1.OmniaWebComponentManifests.FxUxCentralImageLocationProvider;
23
23
  this.sortOrder = 20;
@@ -13,7 +13,7 @@ class MediaPickerMyComputerProvider {
13
13
  this.id = Constants_1.Constants.ux.components.mediaPicker.providerIds.myComputer;
14
14
  this.category = "image";
15
15
  this.name = "Omnia.Ux.MyComputerProvider.Title";
16
- this.icon = new Icon_1.FontAwesomeIcon("far fa-desktop");
16
+ this.icon = new Icon_1.FontAwesomeIcon("fa-duotone fa-desktop");
17
17
  //this.providerElementName = "omfx-media-picker-mycomputer-provider";
18
18
  this.providerComponentId = ManifestIds_1.OmniaWebComponentManifests.FxUxMyComputerProvider;
19
19
  this.selectableMediaTypes = [Enums_1.MediaPickerEnums.OmniaMediaTypes.Image];
@@ -14,6 +14,7 @@ export interface MediaInformation {
14
14
  export interface ImageInformation extends MediaInformation, MediaPickerBase64Image {
15
15
  sizeInBytes: number;
16
16
  sourceUrl?: string;
17
+ thumbnailUrl?: string;
17
18
  }
18
19
  export interface VideoInformation extends MediaInformation {
19
20
  videoUrl: string;
@@ -24,7 +24,7 @@ export declare const ProgressSizeTypeDefinitions: readonly ["default", "large",
24
24
  export type ProgressSizeTypes = typeof ProgressSizeTypeDefinitions[number];
25
25
  export declare const ProgressSizeTypesName = "ProgressSizeTypes";
26
26
  /**AppBar */
27
- export declare const AppBarTypeDefinitions: readonly ["default", "app"];
27
+ export declare const AppBarTypeDefinitions: readonly ["default", "app", "chrome"];
28
28
  export type AppBarTypes = typeof AppBarTypeDefinitions[number];
29
29
  export declare const AppBarTypesName = "AppBarTypes";
30
30
  /**Button */
@@ -19,7 +19,7 @@ exports.ProgressVariantsName = "ProgressVariants";
19
19
  exports.ProgressSizeTypeDefinitions = ["default", "large", "x-large"];
20
20
  exports.ProgressSizeTypesName = "ProgressSizeTypes";
21
21
  /**AppBar */
22
- exports.AppBarTypeDefinitions = ["default", "app"];
22
+ exports.AppBarTypeDefinitions = ["default", "app", "chrome"];
23
23
  exports.AppBarTypesName = "AppBarTypes";
24
24
  /**Button */
25
25
  exports.ButtonPresetDefinitions = ["create", "remove", "delete", "ok", "cancel", "save", "close", "settings", "icon-add", "icon-delete", "icon-edit", "icon-drag-handle", "icon-copy", "icon-code", "icon-close", "icon-back", "icon-more", "icon-navigate", "icon-settings", "load-more", "retry", "remove", "approve", "copy-to-clipboard", "details", "next", "previous", "select", "view-more", "send-request"];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@omnia/fx-models",
3
3
  "license": "MIT",
4
- "version": "8.0.114-vnext",
4
+ "version": "8.0.115-vnext",
5
5
  "description": "Provide Omnia Fx Models Stuffs.",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1"