@omnia/fx-models 8.0.8-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.
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
  //************************************************************************************ */
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,3 @@
1
1
  export interface IEditorItemPanelsRenderer {
2
- generateElement(h: any): JSX.Element;
2
+ generateElement(): JSX.Element;
3
3
  }
@@ -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,6 +1,17 @@
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;
@@ -38,24 +49,26 @@ export interface ThemeDefinitionV2 {
38
49
  typography: TypographyDefinition;
39
50
  blueprint: BlueprintDefinition;
40
51
  }
41
- export declare const ColorSchemaTypes: {
42
- primary: string;
43
- secondary: string;
44
- accent1: string;
45
- accent2: string;
46
- accent3: string;
47
- neutral: string;
48
- background: string;
49
- error: string;
50
- info: string;
51
- };
52
- export declare const ColorTypes: {
53
- base: string;
54
- baseTone: string;
55
- onBase: string;
56
- onBaseTone: string;
57
- container: string;
58
- containerTone: string;
59
- onContainer: string;
60
- onContainerTone: string;
61
- };
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,14 +1,14 @@
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;
@@ -19,11 +19,12 @@ export interface TypographyTypeBreakPoint {
19
19
  size: number;
20
20
  lineHeight: number;
21
21
  }
22
- export declare const TypographyTypes: {
23
- h1: string;
24
- h2: string;
25
- h3: string;
26
- text: string;
27
- caption: string;
28
- link: string;
29
- };
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
+ };
@@ -137,7 +137,7 @@ const useThemeMethods = (themedefinition) => {
137
137
  colorDefinition,
138
138
  complementaryColorType,
139
139
  complementaryColor,
140
- complementaryColorDefinition
140
+ complementaryColorDefinition,
141
141
  };
142
142
  };
143
143
  exports.useThemeMethods = useThemeMethods;
@@ -1,4 +1,4 @@
1
1
  export * from "./ThemeDefinitionV2";
2
2
  export * from "./TypographyDefinition";
3
3
  export * from "./OmniaThemes";
4
- export * from "./ThemeMethods";
4
+ export * from "./UseThemeMethods";
@@ -4,4 +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("./ThemeMethods"), 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
- colorSchemaType?: 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.8-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"
@@ -1,11 +0,0 @@
1
- import { ColorDefinition, ThemeDefinitionV2 } from "./ThemeDefinitionV2";
2
- import { TypographyType } from "./TypographyDefinition";
3
- export declare const useThemeMethods: (themedefinition: ThemeDefinitionV2) => {
4
- colorSchema: (colorSchemaType: string) => import("./ThemeDefinitionV2").ColorSchema;
5
- typography: (typographyType: string) => TypographyType;
6
- color: (colorSchemaType: string, colorType: string) => string;
7
- colorDefinition: (colorSchemaType: string, colorType: string) => ColorDefinition;
8
- complementaryColorType: (colorType: string) => string;
9
- complementaryColor: (colorSchemaType: string, colorType: string) => string;
10
- complementaryColorDefinition: (colorSchemaType: string, colorType: string) => ColorDefinition;
11
- };