@omnia/fx-models 8.0.7-vnext → 8.0.9-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.
Files changed (35) hide show
  1. package/Constants.d.ts +0 -2
  2. package/Constants.js +0 -2
  3. package/Enums.d.ts +1 -0
  4. package/Enums.js +1 -0
  5. package/Exposes.d.ts +1 -0
  6. package/Exposes.js +1 -0
  7. package/FilterEngineStyles.d.ts +2 -1
  8. package/Icon.d.ts +8 -0
  9. package/Icon.js +8 -1
  10. package/ManifestIds.d.ts +0 -1
  11. package/ManifestIds.js +0 -3
  12. package/PermissionInputSettings.d.ts +2 -0
  13. package/editor-chrome/IEditorItemPanelsRenderer.d.ts +1 -1
  14. package/identities/Identity.d.ts +8 -0
  15. package/identities/Identity.js +10 -1
  16. package/identities/UserIdentity.d.ts +1 -0
  17. package/identities/UserIdentity.js +1 -0
  18. package/internal-do-not-import-from-here/shared/models/theming/BlueprintDefinition.d.ts +3 -0
  19. package/internal-do-not-import-from-here/shared/models/theming/ThemeDefinitionV2.d.ts +34 -23
  20. package/internal-do-not-import-from-here/shared/models/theming/ThemeDefinitionV2.js +23 -21
  21. package/internal-do-not-import-from-here/shared/models/theming/TypographyDefinition.d.ts +16 -16
  22. package/internal-do-not-import-from-here/shared/models/theming/TypographyDefinition.js +9 -8
  23. package/internal-do-not-import-from-here/shared/models/theming/UseThemeMethods.d.ts +11 -0
  24. package/internal-do-not-import-from-here/shared/models/theming/UseThemeMethods.js +143 -0
  25. package/internal-do-not-import-from-here/shared/models/theming/index.d.ts +1 -0
  26. package/internal-do-not-import-from-here/shared/models/theming/index.js +1 -0
  27. package/internal-do-not-import-from-here/velcron/core/models/VelcronDefinitions.d.ts +2 -2
  28. package/oxide/Componentprops.d.ts +18 -0
  29. package/oxide/Componentprops.js +26 -0
  30. package/oxide/index.d.ts +1 -0
  31. package/oxide/index.js +4 -0
  32. package/package.json +1 -1
  33. package/sidepanel/Shared.d.ts +5 -0
  34. package/sidepanel/Shared.js +6 -1
  35. package/ux/SidePanelApi.d.ts +2 -1
package/Constants.d.ts CHANGED
@@ -80,8 +80,6 @@ export declare const Constants: {
80
80
  omniaContentNav: string;
81
81
  omniaContentBody: string;
82
82
  omniaContentFooter: string;
83
- omniaContentDialogLeft: string;
84
- omniaContentDialogRight: string;
85
83
  omniaLeftSidePanel: string;
86
84
  omniaRightSidePanel: string;
87
85
  };
package/Constants.js CHANGED
@@ -146,8 +146,6 @@ exports.Constants = {
146
146
  omniaContentNav: "omnia-content-nav",
147
147
  omniaContentBody: "omnia-content-body",
148
148
  omniaContentFooter: "omnia-content-footer",
149
- omniaContentDialogLeft: "omnia-content-dialog-left",
150
- omniaContentDialogRight: "omnia-content-dialog-right",
151
149
  omniaLeftSidePanel: "omnia-left-side-panel",
152
150
  omniaRightSidePanel: "omnia-right-side-panel"
153
151
  },
package/Enums.d.ts CHANGED
@@ -375,6 +375,7 @@ export declare enum IconTypes {
375
375
  FontAwesome = "IFontAwesomeIcon",
376
376
  Fabric = "IFabricIcon",
377
377
  Flag = "IFlagIcon",
378
+ Material = "IMaterialIcon",
378
379
  Custom = "ICustomIcon",
379
380
  SVG = "ISVG"
380
381
  }
package/Enums.js CHANGED
@@ -268,6 +268,7 @@ var IconTypes;
268
268
  IconTypes["FontAwesome"] = "IFontAwesomeIcon";
269
269
  IconTypes["Fabric"] = "IFabricIcon";
270
270
  IconTypes["Flag"] = "IFlagIcon";
271
+ IconTypes["Material"] = "IMaterialIcon";
271
272
  IconTypes["Custom"] = "ICustomIcon";
272
273
  IconTypes["SVG"] = "ISVG";
273
274
  })(IconTypes = exports.IconTypes || (exports.IconTypes = {}));
package/Exposes.d.ts CHANGED
@@ -113,6 +113,7 @@ export * from "./filterengine";
113
113
  export * from "@omnia/fx-models/internal-do-not-import-from-here/velcron/core/models";
114
114
  export * from "./auth";
115
115
  export * from "./sidepanel";
116
+ export * from "./oxide";
116
117
  export * from "./FilePicker";
117
118
  export * from "./FileIdentifier";
118
119
  export * from "./UserAgent";
package/Exposes.js CHANGED
@@ -125,6 +125,7 @@ tslib_1.__exportStar(require("./filterengine"), exports);
125
125
  tslib_1.__exportStar(require("@omnia/fx-models/internal-do-not-import-from-here/velcron/core/models"), exports);
126
126
  tslib_1.__exportStar(require("./auth"), exports);
127
127
  tslib_1.__exportStar(require("./sidepanel"), exports);
128
+ tslib_1.__exportStar(require("./oxide"), exports);
128
129
  //************************************************************************************ */
129
130
  // End of folder exports
130
131
  //************************************************************************************ */
@@ -12,12 +12,13 @@ export declare const FilterEngineStyles: {
12
12
  avatarStyle: types.NestedCSSProperties;
13
13
  avatarOptionStyle: types.NestedCSSProperties;
14
14
  searchDefaultStyle: types.NestedCSSProperties;
15
+ searchTextColor: types.NestedCSSProperties;
15
16
  treeNodeText: (isSelected: boolean) => types.NestedCSSProperties;
16
17
  bodyFilterStyle: (open: boolean) => types.NestedCSSProperties;
17
18
  treeNodeResultCount: (theme: ITheming, isSelected: boolean) => types.NestedCSSProperties;
18
19
  dialogContent: (theming: ITheming) => types.NestedCSSProperties;
19
20
  popUpDialogButton: types.NestedCSSProperties;
20
- panelDialogButton: (minWidth: number) => types.NestedCSSProperties;
21
+ panelDialogButton: types.NestedCSSProperties;
21
22
  mainSection: (maxWidth: number) => types.NestedCSSProperties;
22
23
  sideSection: (minWidth: number) => types.NestedCSSProperties;
23
24
  flexFull: types.NestedCSSProperties;
package/Icon.d.ts CHANGED
@@ -7,6 +7,9 @@ export interface IIcon {
7
7
  export interface IFontAwesomeIcon extends IIcon {
8
8
  faClass: string;
9
9
  }
10
+ export interface IMaterialIcon extends IIcon {
11
+ maClass: string;
12
+ }
10
13
  export interface IFabricIcon extends IIcon {
11
14
  fabClass: string;
12
15
  }
@@ -27,6 +30,11 @@ export declare class FontAwesomeIcon implements IFontAwesomeIcon {
27
30
  iconType: IconTypes;
28
31
  constructor(faClass: string);
29
32
  }
33
+ export declare class MaterialIcon implements IMaterialIcon {
34
+ maClass: string;
35
+ iconType: IconTypes;
36
+ constructor(maClass: string);
37
+ }
30
38
  export declare class FabricIcon implements IFabricIcon {
31
39
  fabClass: string;
32
40
  iconType: IconTypes;
package/Icon.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.FlagIcon = exports.SvgIcon = exports.CustomIcon = exports.FabricIcon = exports.FontAwesomeIcon = void 0;
3
+ exports.FlagIcon = exports.SvgIcon = exports.CustomIcon = exports.FabricIcon = exports.MaterialIcon = exports.FontAwesomeIcon = void 0;
4
4
  const Enums_1 = require("./Enums");
5
5
  /**
6
6
  * Class to create a guid
@@ -12,6 +12,13 @@ class FontAwesomeIcon {
12
12
  }
13
13
  }
14
14
  exports.FontAwesomeIcon = FontAwesomeIcon;
15
+ class MaterialIcon {
16
+ constructor(maClass) {
17
+ this.maClass = maClass;
18
+ this.iconType = Enums_1.IconTypes.Material;
19
+ }
20
+ }
21
+ exports.MaterialIcon = MaterialIcon;
15
22
  class FabricIcon {
16
23
  constructor(fabClass) {
17
24
  this.fabClass = fabClass;
package/ManifestIds.d.ts CHANGED
@@ -22,7 +22,6 @@ export declare class OmniaResourceManifests {
22
22
  static get ClientBoot(): Guid;
23
23
  static get FxUxVuetifyBottomnav(): Guid;
24
24
  static get ConsoleCommands(): Guid;
25
- static get HMR(): Guid;
26
25
  static get FxUxVRating(): Guid;
27
26
  static get FxUxVuetifyHover(): Guid;
28
27
  static get FxUxVuetifyCombobox(): Guid;
package/ManifestIds.js CHANGED
@@ -64,9 +64,6 @@ class OmniaResourceManifests {
64
64
  static get ConsoleCommands() {
65
65
  return new models_1.Guid("0d65cbc9-9fca-4960-b9b5-71807a801a9f");
66
66
  }
67
- static get HMR() {
68
- return new models_1.Guid("c45a049c-adb7-46ed-8435-83dbe2ab4256");
69
- }
70
67
  //Moved to Common Components
71
68
  //public static get FxUxVuetifyBtn(): Guid { return new Guid("888135ca-8dcc-46f7-8b7c-874a982e307a"); }
72
69
  //public static get FxUxVuetifySpeedDial(): Guid { return new Guid("8742228e-a540-43ce-8b19-d01da2961845"); }
@@ -1,3 +1,4 @@
1
+ import { GuidValue } from "../shared";
1
2
  import { PrincipalTypes } from "./Enums";
2
3
  export interface PermissionInputSettings {
3
4
  roles: Array<{
@@ -5,6 +6,7 @@ export interface PermissionInputSettings {
5
6
  label: string;
6
7
  principalType?: PrincipalTypes;
7
8
  showSpecialIdentities?: boolean;
9
+ providerIds?: GuidValue[];
8
10
  required?: boolean;
9
11
  }>;
10
12
  }
@@ -1,3 +1,3 @@
1
1
  export interface IEditorItemPanelsRenderer {
2
- generateElement(h: any): JSX.Element;
2
+ generateElement(): JSX.Element;
3
3
  }
@@ -19,3 +19,11 @@ export declare abstract class Identity {
19
19
  private static getGuidValue;
20
20
  private static getIdAsString;
21
21
  }
22
+ export declare enum ArchiveSortColumn {
23
+ DisplayName = 1,
24
+ Email = 2,
25
+ Username = 3,
26
+ IdentityType = 4,
27
+ ProviderId = 5,
28
+ TypeId = 6
29
+ }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Identity = void 0;
3
+ exports.ArchiveSortColumn = exports.Identity = void 0;
4
4
  const models_1 = require("@omnia/fx-models/internal-do-not-import-from-here/shared/models");
5
5
  const IdentityTypes_1 = require("./IdentityTypes");
6
6
  class Identity {
@@ -65,6 +65,15 @@ class Identity {
65
65
  }
66
66
  }
67
67
  exports.Identity = Identity;
68
+ var ArchiveSortColumn;
69
+ (function (ArchiveSortColumn) {
70
+ ArchiveSortColumn[ArchiveSortColumn["DisplayName"] = 1] = "DisplayName";
71
+ ArchiveSortColumn[ArchiveSortColumn["Email"] = 2] = "Email";
72
+ ArchiveSortColumn[ArchiveSortColumn["Username"] = 3] = "Username";
73
+ ArchiveSortColumn[ArchiveSortColumn["IdentityType"] = 4] = "IdentityType";
74
+ ArchiveSortColumn[ArchiveSortColumn["ProviderId"] = 5] = "ProviderId";
75
+ ArchiveSortColumn[ArchiveSortColumn["TypeId"] = 6] = "TypeId";
76
+ })(ArchiveSortColumn = exports.ArchiveSortColumn || (exports.ArchiveSortColumn = {}));
68
77
  // only add extension methods when running in browser, not in node.js
69
78
  if (globalThis.omnia) {
70
79
  Object.defineProperty(Object.prototype, "toIdString", {
@@ -49,6 +49,7 @@ export declare class DocumentDirectionSettings extends UserPropertyBagModel {
49
49
  export declare enum UserSortColumn {
50
50
  DisplayName = 1,
51
51
  Email = 2,
52
+ Username = 3,
52
53
  ProviderId = 4,
53
54
  UserTypeId = 5
54
55
  }
@@ -74,6 +74,7 @@ var UserSortColumn;
74
74
  (function (UserSortColumn) {
75
75
  UserSortColumn[UserSortColumn["DisplayName"] = 1] = "DisplayName";
76
76
  UserSortColumn[UserSortColumn["Email"] = 2] = "Email";
77
+ UserSortColumn[UserSortColumn["Username"] = 3] = "Username";
77
78
  UserSortColumn[UserSortColumn["ProviderId"] = 4] = "ProviderId";
78
79
  UserSortColumn[UserSortColumn["UserTypeId"] = 5] = "UserTypeId";
79
80
  })(UserSortColumn = exports.UserSortColumn || (exports.UserSortColumn = {}));
@@ -10,6 +10,9 @@ export interface BoxBorder extends BoxDimensions {
10
10
  }
11
11
  export interface BlueprintDefinition {
12
12
  id: Guid;
13
+ button?: {
14
+ borderRadius?: BoxDimensions;
15
+ };
13
16
  card?: {
14
17
  border?: BoxBorder;
15
18
  borderRadius?: BoxDimensions;
@@ -1,12 +1,21 @@
1
1
  import { Guid } from "../Guid";
2
2
  import { BlueprintDefinition } from "./BlueprintDefinition";
3
3
  import { TypographyDefinition } from "./TypographyDefinition";
4
+ export interface ColorTypeResult<resultType> {
5
+ base: resultType;
6
+ baseTone: resultType;
7
+ onBase: resultType;
8
+ onBaseTone: resultType;
9
+ container: resultType;
10
+ containerTone: resultType;
11
+ onContainer: resultType;
12
+ onContainerTone: resultType;
13
+ colorType: (colorType: string) => resultType;
14
+ }
4
15
  export interface ColorDefinition {
5
16
  dark: boolean;
6
17
  color: string;
7
18
  colorToned: string;
8
- colorStyles: ColorStyles;
9
- colorTonedStyles: ColorStyles;
10
19
  }
11
20
  export interface ColorStyles {
12
21
  background: object | string;
@@ -40,24 +49,26 @@ export interface ThemeDefinitionV2 {
40
49
  typography: TypographyDefinition;
41
50
  blueprint: BlueprintDefinition;
42
51
  }
43
- export declare const ColorSchemaTypes: {
44
- primary: string;
45
- secondary: string;
46
- accent1: string;
47
- accent2: string;
48
- accent3: string;
49
- neutral: string;
50
- background: string;
51
- error: string;
52
- info: string;
53
- };
54
- export declare const ColorTypes: {
55
- base: string;
56
- baseTone: string;
57
- onBase: string;
58
- onBaseTone: string;
59
- container: string;
60
- containerTone: string;
61
- onContainer: string;
62
- onContainerTone: string;
63
- };
52
+ export type ColorSchemaType = ColorSchemaTypes.primary | ColorSchemaTypes.secondary | ColorSchemaTypes.accent1 | ColorSchemaTypes.accent2 | ColorSchemaTypes.accent3 | ColorSchemaTypes.neutral | ColorSchemaTypes.background | ColorSchemaTypes.error | ColorSchemaTypes.info;
53
+ export declare enum ColorSchemaTypes {
54
+ primary = "primary",
55
+ secondary = "secondary",
56
+ accent1 = "accent1",
57
+ accent2 = "accent2",
58
+ accent3 = "accent3",
59
+ neutral = "neutral",
60
+ background = "background",
61
+ error = "error",
62
+ info = "info"
63
+ }
64
+ export type ColorType = ColorTypes.base | ColorTypes.baseTone | ColorTypes.onBase | ColorTypes.onBaseTone | ColorTypes.container | ColorTypes.containerTone | ColorTypes.onContainer | ColorTypes.onContainerTone;
65
+ export declare enum ColorTypes {
66
+ base = "base",
67
+ baseTone = "baseTone",
68
+ onBase = "onBase",
69
+ onBaseTone = "onBaseTone",
70
+ container = "container",
71
+ containerTone = "containerTone",
72
+ onContainer = "onContainer",
73
+ onContainerTone = "onContainerTone"
74
+ }
@@ -1,24 +1,26 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ColorTypes = exports.ColorSchemaTypes = void 0;
4
- exports.ColorSchemaTypes = {
5
- primary: "primary",
6
- secondary: "secondary",
7
- accent1: "accent1",
8
- accent2: "accent2",
9
- accent3: "accent3",
10
- neutral: "neutral",
11
- background: "background",
12
- error: "error",
13
- info: "info",
14
- };
15
- exports.ColorTypes = {
16
- base: "base",
17
- baseTone: "baseTone",
18
- onBase: "onBase",
19
- onBaseTone: "onBaseTone",
20
- container: "container",
21
- containerTone: "containerTone",
22
- onContainer: "onContainer",
23
- onContainerTone: "onContainerTone",
24
- };
4
+ var ColorSchemaTypes;
5
+ (function (ColorSchemaTypes) {
6
+ ColorSchemaTypes["primary"] = "primary";
7
+ ColorSchemaTypes["secondary"] = "secondary";
8
+ ColorSchemaTypes["accent1"] = "accent1";
9
+ ColorSchemaTypes["accent2"] = "accent2";
10
+ ColorSchemaTypes["accent3"] = "accent3";
11
+ ColorSchemaTypes["neutral"] = "neutral";
12
+ ColorSchemaTypes["background"] = "background";
13
+ ColorSchemaTypes["error"] = "error";
14
+ ColorSchemaTypes["info"] = "info";
15
+ })(ColorSchemaTypes = exports.ColorSchemaTypes || (exports.ColorSchemaTypes = {}));
16
+ var ColorTypes;
17
+ (function (ColorTypes) {
18
+ ColorTypes["base"] = "base";
19
+ ColorTypes["baseTone"] = "baseTone";
20
+ ColorTypes["onBase"] = "onBase";
21
+ ColorTypes["onBaseTone"] = "onBaseTone";
22
+ ColorTypes["container"] = "container";
23
+ ColorTypes["containerTone"] = "containerTone";
24
+ ColorTypes["onContainer"] = "onContainer";
25
+ ColorTypes["onContainerTone"] = "onContainerTone";
26
+ })(ColorTypes = exports.ColorTypes || (exports.ColorTypes = {}));
@@ -1,30 +1,30 @@
1
1
  import { Guid } from "../Guid";
2
2
  export interface TypographyDefinition {
3
3
  id: Guid;
4
- h1: TypographyType;
5
- h2: TypographyType;
6
- h3: TypographyType;
7
- text: TypographyType;
8
- caption: TypographyType;
9
- link: TypographyType;
4
+ h1: TypographyTypeDefinition;
5
+ h2: TypographyTypeDefinition;
6
+ h3: TypographyTypeDefinition;
7
+ text: TypographyTypeDefinition;
8
+ caption: TypographyTypeDefinition;
9
+ link: TypographyTypeDefinition;
10
10
  }
11
- export interface TypographyType {
11
+ export interface TypographyTypeDefinition {
12
12
  decoration?: string;
13
13
  large: TypographyTypeBreakPoint;
14
14
  medium?: TypographyTypeBreakPoint;
15
15
  small?: TypographyTypeBreakPoint;
16
- style: object | string;
17
16
  }
18
17
  export interface TypographyTypeBreakPoint {
19
18
  weight: number;
20
19
  size: number;
21
20
  lineHeight: number;
22
21
  }
23
- export declare const TypographyTypes: {
24
- h1: string;
25
- h2: string;
26
- h3: string;
27
- text: string;
28
- caption: string;
29
- link: string;
30
- };
22
+ export type TypographyType = TypographyTypes.h1 | TypographyTypes.h2 | TypographyTypes.h3 | TypographyTypes.text | TypographyTypes.caption | TypographyTypes.link;
23
+ export declare enum TypographyTypes {
24
+ h1 = "h1",
25
+ h2 = "h2",
26
+ h3 = "h3",
27
+ text = "text",
28
+ caption = "caption",
29
+ link = "link"
30
+ }
@@ -1,11 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.TypographyTypes = void 0;
4
- exports.TypographyTypes = {
5
- h1: "h1",
6
- h2: "h2",
7
- h3: "h3",
8
- text: "text",
9
- caption: "caption",
10
- link: "link",
11
- };
4
+ var TypographyTypes;
5
+ (function (TypographyTypes) {
6
+ TypographyTypes["h1"] = "h1";
7
+ TypographyTypes["h2"] = "h2";
8
+ TypographyTypes["h3"] = "h3";
9
+ TypographyTypes["text"] = "text";
10
+ TypographyTypes["caption"] = "caption";
11
+ TypographyTypes["link"] = "link";
12
+ })(TypographyTypes = exports.TypographyTypes || (exports.TypographyTypes = {}));
@@ -0,0 +1,11 @@
1
+ import { ColorDefinition, ColorSchemaType, ColorSchemaTypes, ColorType, ColorTypes, ThemeDefinitionV2 } from "./ThemeDefinitionV2";
2
+ import { TypographyType, TypographyTypeDefinition, TypographyTypes } from "./TypographyDefinition";
3
+ export declare const useThemeMethods: (themedefinition: ThemeDefinitionV2) => {
4
+ colorSchema: (colorSchemaType: ColorSchemaTypes | ColorSchemaType) => import("./ThemeDefinitionV2").ColorSchema;
5
+ typography: (typographyType: TypographyTypes | TypographyType) => TypographyTypeDefinition;
6
+ color: (colorSchemaType: ColorSchemaTypes | ColorSchemaType, colorType: ColorTypes | ColorType) => string;
7
+ colorDefinition: (colorSchemaType: ColorSchemaTypes | ColorSchemaType, colorType: ColorTypes | ColorType) => ColorDefinition;
8
+ complementaryColorType: (colorType: ColorTypes | ColorType) => ColorTypes.base | ColorTypes.onBase | ColorTypes.container | ColorTypes.onContainer;
9
+ complementaryColor: (colorSchemaType: ColorSchemaTypes | ColorSchemaType, colorType: ColorTypes | ColorType) => string;
10
+ complementaryColorDefinition: (colorSchemaType: ColorSchemaTypes | ColorSchemaType, colorType: ColorTypes | ColorType) => ColorDefinition;
11
+ };
@@ -0,0 +1,143 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.useThemeMethods = void 0;
4
+ const ThemeDefinitionV2_1 = require("./ThemeDefinitionV2");
5
+ const TypographyDefinition_1 = require("./TypographyDefinition");
6
+ const useThemeMethods = (themedefinition) => {
7
+ const colorSchema = (colorSchemaType) => {
8
+ if (colorSchemaType === ThemeDefinitionV2_1.ColorSchemaTypes.primary) {
9
+ return themedefinition.primary;
10
+ }
11
+ else if (colorSchemaType === ThemeDefinitionV2_1.ColorSchemaTypes.secondary) {
12
+ return themedefinition.secondary;
13
+ }
14
+ else if (colorSchemaType === ThemeDefinitionV2_1.ColorSchemaTypes.accent1) {
15
+ return themedefinition.accent1;
16
+ }
17
+ else if (colorSchemaType === ThemeDefinitionV2_1.ColorSchemaTypes.accent2) {
18
+ return themedefinition.accent2;
19
+ }
20
+ else if (colorSchemaType === ThemeDefinitionV2_1.ColorSchemaTypes.accent3) {
21
+ return themedefinition.accent3;
22
+ }
23
+ else if (colorSchemaType === ThemeDefinitionV2_1.ColorSchemaTypes.background) {
24
+ return themedefinition.background;
25
+ }
26
+ else if (colorSchemaType === ThemeDefinitionV2_1.ColorSchemaTypes.neutral) {
27
+ return themedefinition.neutral;
28
+ }
29
+ else if (colorSchemaType === ThemeDefinitionV2_1.ColorSchemaTypes.error) {
30
+ return themedefinition.error;
31
+ }
32
+ return themedefinition.background;
33
+ };
34
+ const typography = (typographyType) => {
35
+ if (typographyType === TypographyDefinition_1.TypographyTypes.h1) {
36
+ return themedefinition.typography.h1;
37
+ }
38
+ else if (typographyType === TypographyDefinition_1.TypographyTypes.h2) {
39
+ return themedefinition.typography.h2;
40
+ }
41
+ else if (typographyType === TypographyDefinition_1.TypographyTypes.h3) {
42
+ return themedefinition.typography.h3;
43
+ }
44
+ else if (typographyType === TypographyDefinition_1.TypographyTypes.caption) {
45
+ return themedefinition.typography.caption;
46
+ }
47
+ else if (typographyType === TypographyDefinition_1.TypographyTypes.link) {
48
+ return themedefinition.typography.link;
49
+ }
50
+ else if (typographyType === TypographyDefinition_1.TypographyTypes.text) {
51
+ return themedefinition.typography.text;
52
+ }
53
+ return themedefinition.typography.text;
54
+ };
55
+ const color = (colorSchemaType, colorType) => {
56
+ const mappedColorSchema = colorSchema(colorSchemaType);
57
+ if (colorType === ThemeDefinitionV2_1.ColorTypes.base) {
58
+ return mappedColorSchema.base.color;
59
+ }
60
+ else if (colorType === ThemeDefinitionV2_1.ColorTypes.baseTone) {
61
+ return mappedColorSchema.base.colorToned;
62
+ }
63
+ else if (colorType === ThemeDefinitionV2_1.ColorTypes.onBase) {
64
+ return mappedColorSchema.onBase.color;
65
+ }
66
+ else if (colorType === ThemeDefinitionV2_1.ColorTypes.onBaseTone) {
67
+ return mappedColorSchema.onBase.colorToned;
68
+ }
69
+ else if (colorType === ThemeDefinitionV2_1.ColorTypes.container) {
70
+ return mappedColorSchema.container.color;
71
+ }
72
+ else if (colorType === ThemeDefinitionV2_1.ColorTypes.containerTone) {
73
+ return mappedColorSchema.container.colorToned;
74
+ }
75
+ else if (colorType === ThemeDefinitionV2_1.ColorTypes.onContainer) {
76
+ return mappedColorSchema.onContainer.color;
77
+ }
78
+ else if (colorType === ThemeDefinitionV2_1.ColorTypes.onContainerTone) {
79
+ return mappedColorSchema.onContainer.colorToned;
80
+ }
81
+ return colorType;
82
+ };
83
+ const colorDefinition = (colorSchemaType, colorType) => {
84
+ const mappedColorSchema = colorSchema(colorSchemaType);
85
+ if (colorType === ThemeDefinitionV2_1.ColorTypes.base
86
+ || colorType === ThemeDefinitionV2_1.ColorTypes.baseTone) {
87
+ return mappedColorSchema.base;
88
+ }
89
+ else if (colorType === ThemeDefinitionV2_1.ColorTypes.onBase
90
+ ||
91
+ colorType === ThemeDefinitionV2_1.ColorTypes.onBaseTone) {
92
+ return mappedColorSchema.onBase;
93
+ }
94
+ else if (colorType === ThemeDefinitionV2_1.ColorTypes.container
95
+ ||
96
+ colorType === ThemeDefinitionV2_1.ColorTypes.containerTone) {
97
+ return mappedColorSchema.container;
98
+ }
99
+ else if (colorType === ThemeDefinitionV2_1.ColorTypes.onContainer
100
+ ||
101
+ colorType === ThemeDefinitionV2_1.ColorTypes.onContainerTone) {
102
+ return mappedColorSchema.onContainer;
103
+ }
104
+ return mappedColorSchema.base;
105
+ };
106
+ const complementaryColorType = (colorType) => {
107
+ if (colorType === ThemeDefinitionV2_1.ColorTypes.base
108
+ || colorType === ThemeDefinitionV2_1.ColorTypes.baseTone) {
109
+ return ThemeDefinitionV2_1.ColorTypes.onBase;
110
+ }
111
+ else if (colorType === ThemeDefinitionV2_1.ColorTypes.onBase
112
+ || colorType === ThemeDefinitionV2_1.ColorTypes.onBaseTone) {
113
+ return ThemeDefinitionV2_1.ColorTypes.base;
114
+ }
115
+ else if (colorType === ThemeDefinitionV2_1.ColorTypes.container
116
+ || colorType === ThemeDefinitionV2_1.ColorTypes.containerTone) {
117
+ return ThemeDefinitionV2_1.ColorTypes.onContainer;
118
+ }
119
+ else if (colorType === ThemeDefinitionV2_1.ColorTypes.onContainer
120
+ || colorType === ThemeDefinitionV2_1.ColorTypes.onContainerTone) {
121
+ return ThemeDefinitionV2_1.ColorTypes.container;
122
+ }
123
+ return colorType;
124
+ };
125
+ const complementaryColor = (colorSchemaType, colorType) => {
126
+ const matchingColorType = complementaryColorType(colorType);
127
+ return color(colorSchemaType, matchingColorType);
128
+ };
129
+ const complementaryColorDefinition = (colorSchemaType, colorType) => {
130
+ const matchingColorType = complementaryColorType(colorType);
131
+ return colorDefinition(colorSchemaType, matchingColorType);
132
+ };
133
+ return {
134
+ colorSchema,
135
+ typography,
136
+ color,
137
+ colorDefinition,
138
+ complementaryColorType,
139
+ complementaryColor,
140
+ complementaryColorDefinition,
141
+ };
142
+ };
143
+ exports.useThemeMethods = useThemeMethods;
@@ -1,3 +1,4 @@
1
1
  export * from "./ThemeDefinitionV2";
2
2
  export * from "./TypographyDefinition";
3
3
  export * from "./OmniaThemes";
4
+ export * from "./UseThemeMethods";
@@ -4,3 +4,4 @@ const tslib_1 = require("tslib");
4
4
  tslib_1.__exportStar(require("./ThemeDefinitionV2"), exports);
5
5
  tslib_1.__exportStar(require("./TypographyDefinition"), exports);
6
6
  tslib_1.__exportStar(require("./OmniaThemes"), exports);
7
+ tslib_1.__exportStar(require("./UseThemeMethods"), exports);
@@ -2,7 +2,7 @@ import { VelcronComponentDescriptor } from "./VelcronDescriptors";
2
2
  import { VelcronEvent, VelcronOnChangedEvent, VelcronOnClosedEvent, VelcronOnCloseRequestedEvent, VelcronOnLoadEvent, VelcronOnPressEvent } from "./VelcronEvents";
3
3
  import { VelcroncomponentArrayType, VelcronPrimitiveType } from "./VelcronTypes";
4
4
  import { AssignOperators, VelcronHorizontalAlignments, VelcronIconTypes, VelcronActionTypes, VerticalAlignments } from "./Enums";
5
- import { ColorSchema, useVelcronThemingStore } from "..";
5
+ import { ColorSchema, ColorSchemaType, ColorSchemaTypes, useVelcronThemingStore } from "..";
6
6
  export interface ResolvedComponentRenderer {
7
7
  component: unknown;
8
8
  definition: VelcronDefinition;
@@ -41,7 +41,7 @@ export interface VelcronRenderContext {
41
41
  rootContext: VelcronState;
42
42
  currentContext: VelcronState;
43
43
  theming?: ReturnType<typeof useVelcronThemingStore>;
44
- colorSchemaName?: string;
44
+ colorSchemaType?: ColorSchemaTypes | ColorSchemaType;
45
45
  colorSchema?: ColorSchema;
46
46
  actions?: {
47
47
  [name: string]: [];
@@ -0,0 +1,18 @@
1
+ import { ColorSchemaTypes, ColorTypes } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
2
+ import { PropType } from "vue";
3
+ export declare const ThemeableComponentProps: {
4
+ colorSchemaType: {
5
+ type: PropType<ColorSchemaTypes>;
6
+ required: boolean;
7
+ };
8
+ colorType: {
9
+ type: PropType<ColorTypes>;
10
+ required: boolean;
11
+ };
12
+ };
13
+ export declare const ComponentStylingProps: {
14
+ class: {
15
+ type: PropType<String | String[]>;
16
+ required: boolean;
17
+ };
18
+ };
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ComponentStylingProps = exports.ThemeableComponentProps = void 0;
4
+ function definePropObjectType() {
5
+ return Object;
6
+ }
7
+ exports.ThemeableComponentProps = {
8
+ colorSchemaType: {
9
+ type: definePropObjectType(),
10
+ required: false
11
+ },
12
+ colorType: {
13
+ type: definePropObjectType(),
14
+ required: false
15
+ },
16
+ };
17
+ exports.ComponentStylingProps = {
18
+ // style: {
19
+ // type: String,
20
+ // required: false
21
+ // },
22
+ class: {
23
+ type: definePropObjectType(),
24
+ required: false
25
+ },
26
+ };
@@ -0,0 +1 @@
1
+ export * from "./Componentprops";
package/oxide/index.js ADDED
@@ -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("./Componentprops"), exports);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@omnia/fx-models",
3
3
  "license": "MIT",
4
- "version": "8.0.7-vnext",
4
+ "version": "8.0.9-vnext",
5
5
  "description": "Provide Omnia Fx Models Stuffs.",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -3,3 +3,8 @@ export declare enum SidePanelPosition {
3
3
  Left = 1
4
4
  }
5
5
  export declare const SmallScreenBreakpoint = 800;
6
+ /**
7
+ * Assuming that we won't have this many instances at the same time
8
+ * No scientific reason for the number, it's just my personal preference
9
+ */
10
+ export declare const InstanceIdLimit = 700;
@@ -1,9 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SmallScreenBreakpoint = exports.SidePanelPosition = void 0;
3
+ exports.InstanceIdLimit = exports.SmallScreenBreakpoint = exports.SidePanelPosition = void 0;
4
4
  var SidePanelPosition;
5
5
  (function (SidePanelPosition) {
6
6
  SidePanelPosition[SidePanelPosition["Right"] = 0] = "Right";
7
7
  SidePanelPosition[SidePanelPosition["Left"] = 1] = "Left";
8
8
  })(SidePanelPosition = exports.SidePanelPosition || (exports.SidePanelPosition = {}));
9
9
  exports.SmallScreenBreakpoint = 800;
10
+ /**
11
+ * Assuming that we won't have this many instances at the same time
12
+ * No scientific reason for the number, it's just my personal preference
13
+ */
14
+ exports.InstanceIdLimit = 700;
@@ -1,7 +1,8 @@
1
1
  import { ApiPath } from "../Extends";
2
2
  import { SidePanelPosition } from "..";
3
3
  export interface ISidePanelElementRegistration {
4
- registerElement: (element: HTMLElement, position?: SidePanelPosition) => void;
4
+ openPanel: (element: HTMLElement, position?: SidePanelPosition) => number;
5
+ closePanel: (instanceId: number) => void;
5
6
  }
6
7
  declare module "./UxApi" {
7
8
  interface IOmniaUxApi {