@omnia/fx-models 8.0.20-vnext → 8.0.22-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/Exposes.d.ts CHANGED
@@ -116,6 +116,7 @@ export * from "./auth";
116
116
  export * from "./sidepanel";
117
117
  export * from "./componentproptypes";
118
118
  export * from "./oxide";
119
+ export * from "./docs";
119
120
  export * from "./FilePicker";
120
121
  export * from "./FileIdentifier";
121
122
  export * from "./UserAgent";
package/Exposes.js CHANGED
@@ -128,6 +128,7 @@ tslib_1.__exportStar(require("./auth"), exports);
128
128
  tslib_1.__exportStar(require("./sidepanel"), exports);
129
129
  tslib_1.__exportStar(require("./componentproptypes"), exports);
130
130
  tslib_1.__exportStar(require("./oxide"), exports);
131
+ tslib_1.__exportStar(require("./docs"), exports);
131
132
  //************************************************************************************ */
132
133
  // End of folder exports
133
134
  //************************************************************************************ */
package/Extends.d.ts CHANGED
@@ -3,10 +3,10 @@ export interface IOmniaFxApi {
3
3
  export interface IExtend {
4
4
  fx: IOmniaFxApi;
5
5
  }
6
- export interface IOmniaFxApiManifest {
6
+ export interface IOmniaFxExtendApiManifest {
7
7
  }
8
8
  export interface IExtendApiManifest {
9
- fx: IOmniaFxApiManifest;
9
+ fx: IOmniaFxExtendApiManifest;
10
10
  }
11
11
  export interface ApiPath {
12
12
  path?: string;
@@ -35,7 +35,7 @@ declare module "./Extends" {
35
35
  implementation: Promise<IEnterprisePropertiesImplementationRegistration>;
36
36
  };
37
37
  }
38
- interface IOmniaFxApiManifest {
38
+ interface IOmniaFxExtendApiManifest {
39
39
  properties: {
40
40
  registration: ApiPath;
41
41
  implementation: IExtendApiManifestWithConfiguration<GuidValue>;
package/Layout.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { MultilingualString, ThemeDefinition, IIcon, SpacingSettings, IconPickerModel, WebComponentDefinition, OmniaBlock, GuidValue, RadialGradientShapes, HorizontalAlignments, BlockTitleSettings, LayoutItemActions, LayoutEditorModes, BlockRenderingModes, TabbedDisplayModes, TabbedIconPositions, LayoutDrawerTabs, ILayoutCanvasDefinitionBuilder, MediaPickerImage, IMessageBusTopicSubscription, MediaPickerStorageProviderContext, OmniaBackendRuntimes, OmniaClientRuntimes, LayoutCanvasModes } from ".";
1
+ import { MultilingualString, ThemeDefinition, IIcon, SpacingSettings, IconPickerModel, WebComponentDefinition, OmniaBlock, GuidValue, RadialGradientShapes, HorizontalAlignments, BlockTitleSettings, LayoutItemActions, LayoutEditorModes, BlockRenderingModes, TabbedDisplayModes, TabbedIconPositions, LayoutDrawerTabs, ILayoutCanvasDefinitionBuilder, MediaPickerImage, IMessageBusTopicSubscription, MediaPickerStorageProviderContext, OmniaBackendRuntimes, OmniaClientRuntimes, LayoutCanvasModes, ColorSchemaTypes, BlueprintTypes } from ".";
2
2
  import { MessageBusTopicMediator } from "../";
3
3
  import { TargetingFilterProperty } from "../sp";
4
4
  import { ShapeDividerSettings } from "./ShapeDividerSettingsModel";
@@ -65,6 +65,8 @@ export interface LayoutItemSettings {
65
65
  hidden?: boolean;
66
66
  css: string;
67
67
  customCssClasses: string;
68
+ colorSchemaType?: ColorSchemaTypes;
69
+ blueprintType?: BlueprintTypes;
68
70
  }
69
71
  export interface LinearGradientBackground extends BackgroundSettings {
70
72
  degrees: number;
package/ManifestIds.d.ts CHANGED
@@ -148,6 +148,7 @@ export declare class OmniaWebComponentManifests {
148
148
  static get FxUxInputToken(): Guid;
149
149
  static get FxUxIconpicker(): Guid;
150
150
  static get FxUxJourney(): Guid;
151
+ static get OBtn(): Guid;
151
152
  static get FxUxMenuBlade(): Guid;
152
153
  static get FxUxWizard(): Guid;
153
154
  static get FxUxPeoplePicker(): Guid;
package/ManifestIds.js CHANGED
@@ -460,6 +460,9 @@ class OmniaWebComponentManifests {
460
460
  static get FxUxJourney() {
461
461
  return new models_1.Guid("c362ce2d-88bf-493e-9581-d88a858fcae9");
462
462
  }
463
+ static get OBtn() {
464
+ return new models_1.Guid("678a52a5-101d-4149-8d47-754aeae5f9f6");
465
+ }
463
466
  static get FxUxMenuBlade() {
464
467
  return new models_1.Guid("f3b4f675-c04e-45b1-a767-f98daabc0dc7");
465
468
  }
@@ -47,7 +47,7 @@ declare module "./Extends" {
47
47
  providers: Promise<ITokenProviderRegistration>;
48
48
  };
49
49
  }
50
- interface IOmniaFxApiManifest {
50
+ interface IOmniaFxExtendApiManifest {
51
51
  tokens: {
52
52
  registrations: ApiPath;
53
53
  providers: IExtendApiManifestWithConfiguration<TokenManifestConfiguration>;
@@ -1,4 +1,5 @@
1
1
  export interface ThemeableComponentProps {
2
2
  colorSchemaType?: any;
3
3
  container?: any;
4
+ colors?: any;
4
5
  }
package/docs/Api.d.ts ADDED
@@ -0,0 +1,37 @@
1
+ type Doc = {
2
+ type: string;
3
+ description: string;
4
+ };
5
+ export type ComponentDoc = {
6
+ props?: {
7
+ [name: string]: Doc;
8
+ };
9
+ models?: {
10
+ [name: string]: Doc;
11
+ };
12
+ slots?: {
13
+ [name: string]: Doc;
14
+ };
15
+ emits?: {
16
+ [name: string]: Doc;
17
+ };
18
+ };
19
+ export interface IComponentDocRegistrationApi {
20
+ register(elmentName: string, doc: ComponentDoc): void;
21
+ getComponentRegistrations(): {
22
+ [elmentName: string]: ComponentDoc;
23
+ };
24
+ }
25
+ declare module "../Extends" {
26
+ interface IOmniaFxApi {
27
+ docs: {
28
+ registrations: Promise<IComponentDocRegistrationApi>;
29
+ };
30
+ }
31
+ interface IOmniaFxExtendApiManifest {
32
+ docs: {
33
+ registrations: ApiPath;
34
+ };
35
+ }
36
+ }
37
+ export {};
package/docs/Api.js ADDED
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export * from "./Api";
package/docs/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("./Api"), exports);
@@ -24,7 +24,7 @@ declare module "../Extends" {
24
24
  providers: Promise<IEnterpriseGlossaryInformationApi>;
25
25
  };
26
26
  }
27
- interface IOmniaFxApiManifest {
27
+ interface IOmniaFxExtendApiManifest {
28
28
  enterpriseGlossary: {
29
29
  registrations: ApiPath;
30
30
  providers: IExtendApiManifestWithConfiguration<EnterpriseGlossaryInformationProviderId>;
@@ -1,4 +1,5 @@
1
1
  import { Guid } from "../Guid";
2
+ import { TypographyDefinition } from "./TypographyDefinition";
2
3
  export interface BoxDimensions {
3
4
  top: number;
4
5
  right: number;
@@ -8,8 +9,15 @@ export interface BoxDimensions {
8
9
  export interface BoxBorder extends BoxDimensions {
9
10
  color: string;
10
11
  }
12
+ export interface BluePrintDefinitions {
13
+ default: BlueprintDefinition;
14
+ variant1: BlueprintDefinition;
15
+ variant2: BlueprintDefinition;
16
+ variant3: BlueprintDefinition;
17
+ }
11
18
  export interface BlueprintDefinition {
12
19
  id: Guid;
20
+ typography: TypographyDefinition;
13
21
  button?: {
14
22
  borderRadius?: BoxDimensions;
15
23
  };
@@ -1,6 +1,5 @@
1
1
  import { Guid } from "../Guid";
2
- import { BlueprintDefinition } from "./BlueprintDefinition";
3
- import { TypographyDefinition } from "./TypographyDefinition";
2
+ import { BluePrintDefinitions } from "./BlueprintDefinition";
4
3
  export interface ColorTypeResult<resultType> {
5
4
  base: resultType;
6
5
  baseTone: resultType;
@@ -29,14 +28,7 @@ export interface ColorSchema {
29
28
  container: ColorDefinition;
30
29
  onContainer: ColorDefinition;
31
30
  }
32
- export interface ColorGroup {
33
- dark: ColorSchema;
34
- light: ColorSchema;
35
- }
36
- export interface ThemeDefinitionV2 {
37
- id: Guid;
38
- name: string;
39
- dark: boolean;
31
+ export interface ColorSchemas {
40
32
  primary: ColorSchema;
41
33
  secondary: ColorSchema;
42
34
  accent1: ColorSchema;
@@ -46,10 +38,19 @@ export interface ThemeDefinitionV2 {
46
38
  background: ColorSchema;
47
39
  error: ColorSchema;
48
40
  info: ColorSchema;
49
- typography: TypographyDefinition;
50
- blueprint: BlueprintDefinition;
51
41
  }
52
- export type ColorSchemaType = ColorSchemaTypes.primary | ColorSchemaTypes.secondary | ColorSchemaTypes.accent1 | ColorSchemaTypes.accent2 | ColorSchemaTypes.accent3 | ColorSchemaTypes.neutral | ColorSchemaTypes.background | ColorSchemaTypes.error | ColorSchemaTypes.info;
42
+ export interface ColorGroup {
43
+ dark: ColorSchema;
44
+ light: ColorSchema;
45
+ }
46
+ export interface ThemeDefinitionV2 {
47
+ id: Guid;
48
+ name: string;
49
+ dark: boolean;
50
+ colors: ColorSchemas;
51
+ blueprints: BluePrintDefinitions;
52
+ }
53
+ export type ColorSchemaType = "primary" | "secondary" | "accent1" | "accent2" | "accent3" | "neutral" | "background" | "error" | "info";
53
54
  export declare enum ColorSchemaTypes {
54
55
  primary = "primary",
55
56
  secondary = "secondary",
@@ -61,7 +62,14 @@ export declare enum ColorSchemaTypes {
61
62
  error = "error",
62
63
  info = "info"
63
64
  }
64
- export type ColorType = ColorTypes.base | ColorTypes.onBase | ColorTypes.container | ColorTypes.onContainer;
65
+ export type BlueprintType = "default" | "variant1" | "variant2" | "variant3";
66
+ export declare enum BlueprintTypes {
67
+ default = "default",
68
+ variant1 = "variant1",
69
+ variant2 = "variant2",
70
+ variant3 = "variant3"
71
+ }
72
+ export type ColorType = "base" | "onBase" | "container" | "onContainer";
65
73
  export declare enum ColorTypes {
66
74
  base = "base",
67
75
  onBase = "onBase",
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ColorTypes = exports.ColorSchemaTypes = void 0;
3
+ exports.ColorTypes = exports.BlueprintTypes = exports.ColorSchemaTypes = void 0;
4
4
  var ColorSchemaTypes;
5
5
  (function (ColorSchemaTypes) {
6
6
  ColorSchemaTypes["primary"] = "primary";
@@ -13,14 +13,17 @@ var ColorSchemaTypes;
13
13
  ColorSchemaTypes["error"] = "error";
14
14
  ColorSchemaTypes["info"] = "info";
15
15
  })(ColorSchemaTypes = exports.ColorSchemaTypes || (exports.ColorSchemaTypes = {}));
16
+ var BlueprintTypes;
17
+ (function (BlueprintTypes) {
18
+ BlueprintTypes["default"] = "default";
19
+ BlueprintTypes["variant1"] = "variant1";
20
+ BlueprintTypes["variant2"] = "variant2";
21
+ BlueprintTypes["variant3"] = "variant3";
22
+ })(BlueprintTypes = exports.BlueprintTypes || (exports.BlueprintTypes = {}));
16
23
  var ColorTypes;
17
24
  (function (ColorTypes) {
18
25
  ColorTypes["base"] = "base";
19
- //baseTone = "baseTone",
20
26
  ColorTypes["onBase"] = "onBase";
21
- //onBaseTone = "onBaseTone",
22
27
  ColorTypes["container"] = "container";
23
- //containerTone = "containerTone",
24
28
  ColorTypes["onContainer"] = "onContainer";
25
- //onContainerTone = "onContainerTone",
26
29
  })(ColorTypes = exports.ColorTypes || (exports.ColorTypes = {}));
@@ -19,7 +19,7 @@ export interface TypographyTypeBreakPoint {
19
19
  size: number;
20
20
  lineHeight: number;
21
21
  }
22
- export type TypographyType = TypographyTypes.h1 | TypographyTypes.h2 | TypographyTypes.h3 | TypographyTypes.text | TypographyTypes.caption | TypographyTypes.link;
22
+ export type TypographyType = "h1" | "h2" | "h3" | "text" | "caption" | "link";
23
23
  export declare enum TypographyTypes {
24
24
  h1 = "h1",
25
25
  h2 = "h2",
@@ -1,7 +1,9 @@
1
- import { ColorDefinition, ColorSchemaType, ColorSchemaTypes, ColorType, ColorTypes, ThemeDefinitionV2 } from "./ThemeDefinitionV2";
1
+ import { ThemeDefinitionInstance } from "@omnia/fx/ux";
2
+ import { BlueprintType, BlueprintTypes, ColorDefinition, ColorSchemaType, ColorSchemaTypes, ColorType, ColorTypes } from "./ThemeDefinitionV2";
2
3
  import { TypographyType, TypographyTypeDefinition, TypographyTypes } from "./TypographyDefinition";
3
- export declare const useThemeMethods: (themedefinition: ThemeDefinitionV2) => {
4
+ export declare const useThemeMethods: (getThemeDefinition: () => ThemeDefinitionInstance) => {
4
5
  colorSchema: (colorSchemaType: ColorSchemaTypes | ColorSchemaType) => import("./ThemeDefinitionV2").ColorSchema;
6
+ blueprint: (blueprintType: BlueprintTypes | BlueprintType) => import("./BlueprintDefinition").BlueprintDefinition;
5
7
  typography: (typographyType: TypographyTypes | TypographyType) => TypographyTypeDefinition;
6
8
  color: (colorSchemaType: ColorSchemaTypes | ColorSchemaType, colorType: ColorTypes | ColorType) => string;
7
9
  colorDefinition: (colorSchemaType: ColorSchemaTypes | ColorSchemaType, colorType: ColorTypes | ColorType) => ColorDefinition;
@@ -3,54 +3,69 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.useThemeMethods = void 0;
4
4
  const ThemeDefinitionV2_1 = require("./ThemeDefinitionV2");
5
5
  const TypographyDefinition_1 = require("./TypographyDefinition");
6
- const useThemeMethods = (themedefinition) => {
6
+ const useThemeMethods = (getThemeDefinition) => {
7
7
  const colorSchema = (colorSchemaType) => {
8
8
  if (colorSchemaType === ThemeDefinitionV2_1.ColorSchemaTypes.primary) {
9
- return themedefinition.primary;
9
+ return getThemeDefinition().colors.primary;
10
10
  }
11
11
  else if (colorSchemaType === ThemeDefinitionV2_1.ColorSchemaTypes.secondary) {
12
- return themedefinition.secondary;
12
+ return getThemeDefinition().colors.secondary;
13
13
  }
14
14
  else if (colorSchemaType === ThemeDefinitionV2_1.ColorSchemaTypes.accent1) {
15
- return themedefinition.accent1;
15
+ return getThemeDefinition().colors.accent1;
16
16
  }
17
17
  else if (colorSchemaType === ThemeDefinitionV2_1.ColorSchemaTypes.accent2) {
18
- return themedefinition.accent2;
18
+ return getThemeDefinition().colors.accent2;
19
19
  }
20
20
  else if (colorSchemaType === ThemeDefinitionV2_1.ColorSchemaTypes.accent3) {
21
- return themedefinition.accent3;
21
+ return getThemeDefinition().colors.accent3;
22
22
  }
23
23
  else if (colorSchemaType === ThemeDefinitionV2_1.ColorSchemaTypes.background) {
24
- return themedefinition.background;
24
+ return getThemeDefinition().colors.background;
25
25
  }
26
26
  else if (colorSchemaType === ThemeDefinitionV2_1.ColorSchemaTypes.neutral) {
27
- return themedefinition.neutral;
27
+ return getThemeDefinition().colors.neutral;
28
28
  }
29
29
  else if (colorSchemaType === ThemeDefinitionV2_1.ColorSchemaTypes.error) {
30
- return themedefinition.error;
30
+ return getThemeDefinition().colors.error;
31
31
  }
32
- return themedefinition.background;
32
+ return getThemeDefinition().colors.background;
33
+ };
34
+ const blueprint = (blueprintType) => {
35
+ if (blueprintType === ThemeDefinitionV2_1.BlueprintTypes.default) {
36
+ return getThemeDefinition().blueprints.default;
37
+ }
38
+ else if (blueprintType === ThemeDefinitionV2_1.BlueprintTypes.variant1) {
39
+ return getThemeDefinition().blueprints.variant1;
40
+ }
41
+ else if (blueprintType === ThemeDefinitionV2_1.BlueprintTypes.variant2) {
42
+ return getThemeDefinition().blueprints.variant2;
43
+ }
44
+ else if (blueprintType === ThemeDefinitionV2_1.BlueprintTypes.variant3) {
45
+ return getThemeDefinition().blueprints.variant3;
46
+ }
47
+ return getThemeDefinition().blueprints.default;
33
48
  };
34
49
  const typography = (typographyType) => {
35
50
  if (typographyType === TypographyDefinition_1.TypographyTypes.h1) {
36
- return themedefinition.typography.h1;
51
+ return getThemeDefinition().blueprints.default.typography.h1;
37
52
  }
38
53
  else if (typographyType === TypographyDefinition_1.TypographyTypes.h2) {
39
- return themedefinition.typography.h2;
54
+ return getThemeDefinition().blueprints.default.typography.h2;
40
55
  }
41
56
  else if (typographyType === TypographyDefinition_1.TypographyTypes.h3) {
42
- return themedefinition.typography.h3;
57
+ return getThemeDefinition().blueprints.default.typography.h3;
43
58
  }
44
59
  else if (typographyType === TypographyDefinition_1.TypographyTypes.caption) {
45
- return themedefinition.typography.caption;
60
+ return getThemeDefinition().blueprints.default.typography.caption;
46
61
  }
47
62
  else if (typographyType === TypographyDefinition_1.TypographyTypes.link) {
48
- return themedefinition.typography.link;
63
+ return getThemeDefinition().blueprints.default.typography.link;
49
64
  }
50
65
  else if (typographyType === TypographyDefinition_1.TypographyTypes.text) {
51
- return themedefinition.typography.text;
66
+ return getThemeDefinition().blueprints.default.typography.text;
52
67
  }
53
- return themedefinition.typography.text;
68
+ return getThemeDefinition().blueprints.default.typography.text;
54
69
  };
55
70
  const color = (colorSchemaType, colorType) => {
56
71
  const mappedColorSchema = colorSchema(colorSchemaType);
@@ -109,6 +124,7 @@ const useThemeMethods = (themedefinition) => {
109
124
  };
110
125
  return {
111
126
  colorSchema,
127
+ blueprint,
112
128
  typography,
113
129
  color,
114
130
  colorDefinition,
@@ -148,7 +148,7 @@ export interface VelcronIcon {
148
148
  name: string;
149
149
  }
150
150
  export interface VelcronAppDefinition extends VelcronDefinitionBase {
151
- type: "App";
151
+ type: "Velcron";
152
152
  body?: Array<VelcronDefinition>;
153
153
  events?: VelcronOnLoadEvent & VelcronOnPressEvent;
154
154
  actions?: {
@@ -1,10 +1,10 @@
1
1
  import { IIcon } from "@omnia/fx-models";
2
2
  export interface TreeViewItem<TValue = any> {
3
- id: string;
4
- value: TValue;
3
+ key?: string;
4
+ value?: TValue;
5
5
  title: string;
6
- icon: IIcon;
7
- active: boolean;
8
- expanded: boolean;
9
- children: TreeViewItem[];
6
+ icon?: IIcon;
7
+ active?: boolean;
8
+ expanded?: boolean;
9
+ children?: TreeViewItem[];
10
10
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@omnia/fx-models",
3
3
  "license": "MIT",
4
- "version": "8.0.20-vnext",
4
+ "version": "8.0.22-vnext",
5
5
  "description": "Provide Omnia Fx Models Stuffs.",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -2,7 +2,7 @@ import { ToolbarProperties } from "./ToolbarProperties";
2
2
  import { EditorCommand } from "./EditorCommand";
3
3
  import { EditorMenuBar } from "./EditorMenuBar";
4
4
  export interface BoldCommand extends EditorCommand {
5
- bold?: () => void;
5
+ toggleBold?: () => void;
6
6
  }
7
7
  export interface BoldMenuBar extends EditorMenuBar<BoldCommand> {
8
8
  }
package/ux/UxApi.d.ts CHANGED
@@ -6,7 +6,7 @@ declare module "../Extends" {
6
6
  interface IOmniaFxApi {
7
7
  ux: IOmniaUxApi;
8
8
  }
9
- interface IOmniaFxApiManifest {
9
+ interface IOmniaFxExtendApiManifest {
10
10
  ux: IOmniaUxExtendApiManifest;
11
11
  }
12
12
  }