@omnia/fx-models 8.0.134-dev → 8.0.136-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 (22) hide show
  1. package/ManifestIds.d.ts +1 -0
  2. package/ManifestIds.js +3 -0
  3. package/internal-do-not-import-from-here/shared/events/CreateEventHook.d.ts +5 -0
  4. package/internal-do-not-import-from-here/shared/events/index.d.ts +1 -0
  5. package/internal-do-not-import-from-here/shared/index.d.ts +1 -0
  6. package/internal-do-not-import-from-here/shared/models/EventHook.d.ts +10 -0
  7. package/internal-do-not-import-from-here/shared/models/EventHook.js +2 -0
  8. package/internal-do-not-import-from-here/shared/models/hub/activities/ActorActivity.d.ts +8 -0
  9. package/internal-do-not-import-from-here/shared/models/index.d.ts +1 -0
  10. package/internal-do-not-import-from-here/shared/models/index.js +1 -0
  11. package/internal-do-not-import-from-here/shared/models/theming/Blueprints.d.ts +38 -42
  12. package/internal-do-not-import-from-here/shared/models/theming/ThemeDefinitionV2.d.ts +35 -7
  13. package/internal-do-not-import-from-here/shared/models/velcron/VelcronDefinition.d.ts +2 -2
  14. package/internal-do-not-import-from-here/shared/models/velcron/VelcronEvents.d.ts +2 -2
  15. package/internal-do-not-import-from-here/shared/services/DefineService.d.ts +2 -1
  16. package/internal-do-not-import-from-here/shared/services/ThemingService.d.ts +41 -4
  17. package/internal-do-not-import-from-here/shared/services/tmpUseIndexDb.d.ts +1 -0
  18. package/internal-do-not-import-from-here/velcron/core/models/VelcronDefinitions.d.ts +5 -2
  19. package/oxide/OxideTypeDefinitions.d.ts +2 -2
  20. package/oxide/OxideTypeDefinitions.js +2 -2
  21. package/package.json +1 -1
  22. package/ux/ThemingApi.d.ts +1 -7
package/ManifestIds.d.ts CHANGED
@@ -375,6 +375,7 @@ export declare class OmniaWebComponentManifests {
375
375
  static get FxUxSecurityTrimmer(): Guid;
376
376
  static get FxUxSpacingPicker(): Guid;
377
377
  static get FxUxFilterPicker(): Guid;
378
+ static get FxUxPickerWrapper(): Guid;
378
379
  static get FxUxFilterEngineSettings(): Guid;
379
380
  static get FxUxFilterEngineDialogContent(): Guid;
380
381
  static get FxUxFilterEnginePersonPropertySettings(): Guid;
package/ManifestIds.js CHANGED
@@ -1145,6 +1145,9 @@ class OmniaWebComponentManifests {
1145
1145
  static get FxUxFilterPicker() {
1146
1146
  return new models_1.Guid("46a6c15c-2a0e-446f-bef9-770274409366");
1147
1147
  }
1148
+ static get FxUxPickerWrapper() {
1149
+ return new models_1.Guid("828d6c37-d552-4e7d-9f94-9270c521b6da");
1150
+ }
1148
1151
  static get FxUxFilterEngineSettings() {
1149
1152
  return new models_1.Guid("a91d4cd2-b574-4de3-a672-110cb1cdf7ba");
1150
1153
  }
@@ -0,0 +1,5 @@
1
+ import { EventHook } from "../models";
2
+ /**
3
+ * Utility for creating event hooks on the fly
4
+ */
5
+ export declare function createEventHook<T = any>(): EventHook<T>;
@@ -0,0 +1 @@
1
+ export * from "./CreateEventHook";
@@ -10,3 +10,4 @@ export * from "./services";
10
10
  export * from "./utils";
11
11
  export * from "./factory";
12
12
  export * from "./messaging";
13
+ export * from "./events";
@@ -0,0 +1,10 @@
1
+ export type EventHookOn<T = any> = (fn: (param: T) => void) => {
2
+ off: () => void;
3
+ };
4
+ export type EventHookOff<T = any> = (fn: (param: T) => void) => void;
5
+ export type EventHookTrigger<T = any> = (param: T) => void;
6
+ export interface EventHook<T = any> {
7
+ on: EventHookOn<T>;
8
+ off: EventHookOff<T>;
9
+ trigger: EventHookTrigger<T>;
10
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -14,6 +14,14 @@ export declare enum ActorActivityCategory {
14
14
  snoozed = 3,
15
15
  bookmarked = 4
16
16
  }
17
+ export interface ActivitySettings {
18
+ category: ActorActivityCategory;
19
+ social: ActivitySocialSettings;
20
+ }
21
+ export interface ActivitySocialSettings {
22
+ comments: boolean;
23
+ reactions: boolean;
24
+ }
17
25
  export interface ActorActivityBase {
18
26
  activityId: ActivityId;
19
27
  status: ActorActivityStatus;
@@ -19,3 +19,4 @@ export * from "./hub";
19
19
  export * from "./velcron";
20
20
  export * from "./DependencyInjection";
21
21
  export * from "./Messaging";
22
+ export * from "./EventHook";
@@ -23,3 +23,4 @@ tslib_1.__exportStar(require("./hub"), exports);
23
23
  tslib_1.__exportStar(require("./velcron"), exports);
24
24
  tslib_1.__exportStar(require("./DependencyInjection"), exports);
25
25
  tslib_1.__exportStar(require("./Messaging"), exports);
26
+ tslib_1.__exportStar(require("./EventHook"), exports);
@@ -1,26 +1,25 @@
1
- import { BackgroundDefinition, ColorSchemaType, ColorValue, FillDefinition } from "./ThemeDefinitionV2";
1
+ import { BackgroundDefinition, BlueprintsReference, ColorSchemaType, ColorValue, FillDefinition } from "./ThemeDefinitionV2";
2
2
  import { SpacingDefinition, Spacing } from "./Spacing";
3
3
  import { TypographyValue } from "./Typography";
4
4
  export interface BoxDimensions extends Spacing {
5
5
  }
6
6
  import { TypographyBlueprint } from "./Typography";
7
- import { Guid, GuidValue, VelcronAppDefinition } from "@omnia/fx-models";
7
+ import { GuidValue, VelcronAppDefinition } from "@omnia/fx-models";
8
8
  export interface Blueprints {
9
- id: Guid;
10
9
  name?: string;
11
10
  }
12
11
  export type BlueprintVariant = "primary" | "secondary" | "variant1" | "variant2" | "variant3";
13
12
  export type ButtonBlueprintType = "text" | "icon";
14
- export interface ChromeBlueprints extends Blueprints {
13
+ export interface ChromeBlueprints extends Blueprints, BlueprintsReference {
15
14
  primary: ChromeBlueprint;
16
15
  variant1?: ChromeBlueprint;
17
16
  variant2?: ChromeBlueprint;
18
17
  variant3?: ChromeBlueprint;
19
18
  }
20
- export interface TypographyBlueprints extends Blueprints {
19
+ export interface TypographyBlueprints extends Blueprints, BlueprintsReference {
21
20
  primary: TypographyBlueprint;
22
21
  }
23
- export interface SpacingBlueprints extends Blueprints {
22
+ export interface SpacingBlueprints extends Blueprints, BlueprintsReference {
24
23
  primary: SpacingBlueprint;
25
24
  }
26
25
  export interface ChromeBlueprint {
@@ -36,37 +35,9 @@ export interface ChromeBlueprint {
36
35
  };
37
36
  }
38
37
  export type ButtonTypes = "primary" | "basic" | "accent1" | "warn" | "link" | "variant1" | "variant2" | "variant3" | "variant4";
39
- export interface ComponentBlueprints extends Blueprints {
40
- buttons?: {
41
- text?: {
42
- primary?: ButtonBlueprint;
43
- basic?: ButtonBlueprint;
44
- accent1?: ButtonBlueprint;
45
- warn?: ButtonBlueprint;
46
- link?: ButtonBlueprint;
47
- variant1?: ButtonBlueprint;
48
- variant2?: ButtonBlueprint;
49
- variant3?: ButtonBlueprint;
50
- variant4?: ButtonBlueprint;
51
- };
52
- icon?: {
53
- primary?: ButtonBlueprint;
54
- basic?: ButtonBlueprint;
55
- accent1?: ButtonBlueprint;
56
- warn?: ButtonBlueprint;
57
- link?: ButtonBlueprint;
58
- variant1?: ButtonBlueprint;
59
- variant2?: ButtonBlueprint;
60
- variant3?: ButtonBlueprint;
61
- variant4?: ButtonBlueprint;
62
- };
63
- };
64
- tabs?: {
65
- primary?: TabsBlueprint;
66
- variant1?: TabsBlueprint;
67
- variant2?: TabsBlueprint;
68
- variant3?: TabsBlueprint;
69
- };
38
+ export interface ComponentBlueprints extends Blueprints, BlueprintsReference {
39
+ buttons?: ButtonBlueprints;
40
+ tabs?: TabsBlueprints;
70
41
  blocks?: ChromeBlueprints;
71
42
  }
72
43
  export interface SpacingBlueprint {
@@ -87,20 +58,47 @@ export interface Blueprint {
87
58
  type: VelcronBlueprintDefintionType | WebBlueprintItemDefintionType;
88
59
  }
89
60
  export interface SearchBoxBlueprint extends Blueprint {
90
- type: "searchbox";
91
61
  borderRadius?: BoxDimensions;
92
62
  variant?: "outlined" | "solo" | "regular" | "plain" | "underlined";
93
63
  }
94
64
  export interface ButtonBlueprint extends Blueprint {
95
- type: "button";
96
65
  padding?: Spacing;
97
66
  background?: BackgroundDefinition;
98
67
  alterCase?: boolean;
99
68
  text?: TextBlueprint;
100
69
  icon?: IconBlueprint;
101
70
  }
71
+ export interface ButtonBlueprints extends Blueprints {
72
+ text: {
73
+ primary?: ButtonBlueprint;
74
+ basic?: ButtonBlueprint;
75
+ accent1?: ButtonBlueprint;
76
+ warn?: ButtonBlueprint;
77
+ link?: ButtonBlueprint;
78
+ variant1?: ButtonBlueprint;
79
+ variant2?: ButtonBlueprint;
80
+ variant3?: ButtonBlueprint;
81
+ variant4?: ButtonBlueprint;
82
+ };
83
+ icon: {
84
+ primary?: ButtonBlueprint;
85
+ basic?: ButtonBlueprint;
86
+ accent1?: ButtonBlueprint;
87
+ warn?: ButtonBlueprint;
88
+ link?: ButtonBlueprint;
89
+ variant1?: ButtonBlueprint;
90
+ variant2?: ButtonBlueprint;
91
+ variant3?: ButtonBlueprint;
92
+ variant4?: ButtonBlueprint;
93
+ };
94
+ }
95
+ export interface TabsBlueprints extends Blueprints {
96
+ primary?: TabsBlueprint;
97
+ variant1?: TabsBlueprint;
98
+ variant2?: TabsBlueprint;
99
+ variant3?: TabsBlueprint;
100
+ }
102
101
  export interface TabsBlueprint extends Blueprint {
103
- type: "tab";
104
102
  background?: BackgroundDefinition;
105
103
  padding?: Spacing;
106
104
  margin?: Spacing;
@@ -125,12 +123,10 @@ export interface TabsBlueprint extends Blueprint {
125
123
  };
126
124
  }
127
125
  export interface TextBlueprint extends Blueprint {
128
- type: "text";
129
126
  color?: FillDefinition;
130
127
  typography?: TypographyValue;
131
128
  }
132
129
  export interface IconBlueprint extends Blueprint {
133
- type: "icon";
134
130
  color?: FillDefinition;
135
131
  size?: number;
136
132
  }
@@ -1,5 +1,5 @@
1
1
  import { Guid } from "../Guid";
2
- import { BoxDimensions } from "./Blueprints";
2
+ import { BoxDimensions, ComponentBlueprints, SpacingBlueprints, TypographyBlueprints } from "./Blueprints";
3
3
  export interface ColorTypeResult<resultType> {
4
4
  base: resultType;
5
5
  baseTone: resultType;
@@ -21,14 +21,14 @@ export interface ColorStyles {
21
21
  color: object | string;
22
22
  all: object | string;
23
23
  }
24
- export interface ColorSchema {
24
+ export interface ColorSchema extends BlueprintsReference {
25
25
  name: string;
26
26
  base: ColorDefinition;
27
27
  onBase: ColorDefinition;
28
28
  container: ColorDefinition;
29
29
  onContainer: ColorDefinition;
30
30
  }
31
- export interface ColorSchemas {
31
+ export interface ColorSchemas extends ColorSchemasReference {
32
32
  primary: ColorSchema;
33
33
  secondary: ColorSchema;
34
34
  accent1: ColorSchema;
@@ -41,13 +41,41 @@ export interface ColorSchemas {
41
41
  warning: ColorSchema;
42
42
  notification: ColorSchema;
43
43
  }
44
- export interface ThemeDefinitionV2 {
44
+ export interface BlueprintsReference {
45
+ id: Guid;
46
+ }
47
+ export interface ColorSchemasReference {
48
+ primary: BlueprintsReference;
49
+ secondary: BlueprintsReference;
50
+ accent1: BlueprintsReference;
51
+ accent2: BlueprintsReference;
52
+ accent3: BlueprintsReference;
53
+ neutral: BlueprintsReference;
54
+ background: BlueprintsReference;
55
+ error: BlueprintsReference;
56
+ info: BlueprintsReference;
57
+ warning: BlueprintsReference;
58
+ notification: BlueprintsReference;
59
+ }
60
+ export interface ThemeDefinitionReference {
45
61
  id: Guid;
46
62
  name?: string;
63
+ colors: ColorSchemasReference;
64
+ typography: BlueprintsReference;
65
+ spacing: BlueprintsReference;
66
+ components: BlueprintsReference;
67
+ }
68
+ export interface ThemeDefinitionV2 extends ThemeDefinitionReference {
47
69
  colors: ColorSchemas;
48
- typographyId: Guid;
49
- spacingId: Guid;
50
- componentId: Guid;
70
+ typography: TypographyBlueprints;
71
+ spacing: SpacingBlueprints;
72
+ components: ComponentBlueprints;
73
+ }
74
+ export interface ITemplateRegistration<TTemplateType = any> {
75
+ id: Guid;
76
+ template: TTemplateType;
77
+ hidden?: boolean;
78
+ custom?: boolean;
51
79
  }
52
80
  export type ColorSchemaType = keyof typeof ColorSchemaTypes;
53
81
  export declare enum ColorSchemaTypes {
@@ -1,5 +1,5 @@
1
1
  import { DynamicState } from "../DynamicState";
2
- import { VelcronEvent, VelcronOnEditModeEvent, VelcronOnLoadEvent, VelcronOnSaveEvent } from "./VelcronEvents";
2
+ import { VelcronEvent, VelcronOnEditModeEvent, VelcronOnLoadEvent, VelcronOnSavingEvent } from "./VelcronEvents";
3
3
  /**
4
4
  * Velcron definition base
5
5
  */
@@ -73,7 +73,7 @@ export interface VelcronAppDefinition<TState extends DynamicState = DynamicState
73
73
  version?: string;
74
74
  name?: string;
75
75
  body?: Array<VelcronDefinition>;
76
- events?: VelcronOnLoadEvent & VelcronOnEditModeEvent & VelcronOnSaveEvent;
76
+ events?: VelcronOnLoadEvent & VelcronOnEditModeEvent & VelcronOnSavingEvent;
77
77
  actions?: {
78
78
  [name: string]: Array<string>;
79
79
  };
@@ -4,8 +4,8 @@ export type VelcronOnPressEvent = {
4
4
  export type VelcronOnLoadEvent = {
5
5
  onLoaded?: Array<string>;
6
6
  };
7
- export type VelcronOnSaveEvent = {
8
- onSaved?: Array<string>;
7
+ export type VelcronOnSavingEvent = {
8
+ onSaving?: Array<string>;
9
9
  };
10
10
  export type VelcronOnEditModeEvent = {
11
11
  onEditMode?: Array<string>;
@@ -1,9 +1,10 @@
1
1
  import { SetupFactoryContext } from "../factory";
2
2
  import { http } from "../http";
3
+ import { InstanceLifetimes } from "../models";
3
4
  interface SetupServiceContext extends SetupFactoryContext {
4
5
  http: typeof http;
5
6
  }
6
7
  export declare function defineService<TActions extends {
7
8
  [key: string]: Function;
8
- }, TArgs extends any[]>(setup: (ctx: SetupServiceContext) => TActions): () => TActions;
9
+ }, TArgs extends any[]>(setup: (ctx: SetupServiceContext) => TActions, lifeTime?: InstanceLifetimes): () => TActions;
9
10
  export {};
@@ -1,8 +1,45 @@
1
- import { ButtonBlueprint, Guid, ITemplateRegistration } from "@omnia/fx-models";
1
+ import { ButtonBlueprint, ChromeBlueprint, ColorSchema, ComponentBlueprints, Guid, ITemplateRegistration, SpacingBlueprints, TabsBlueprint, ThemeDefinitionV2, TypographyBlueprints } from "../models";
2
2
  export declare const useThemingService: () => {
3
- buttonBlueprints: () => {
4
- upsert: (blueprint: ITemplateRegistration<ButtonBlueprint>) => Promise<void>;
5
- delete: (id: Guid) => Promise<void>;
3
+ buttons: () => {
4
+ upsert: (item: ITemplateRegistration<ButtonBlueprint>) => Promise<unknown>;
5
+ delete: (id: Guid) => Promise<unknown>;
6
6
  getAll: () => Promise<ITemplateRegistration<ButtonBlueprint>[]>;
7
7
  };
8
+ chrome: () => {
9
+ upsert: (item: ITemplateRegistration<ChromeBlueprint>) => Promise<unknown>;
10
+ delete: (id: Guid) => Promise<unknown>;
11
+ getAll: () => Promise<ITemplateRegistration<ChromeBlueprint>[]>;
12
+ };
13
+ colorSchema: () => {
14
+ upsert: (item: ITemplateRegistration<ColorSchema>) => Promise<unknown>;
15
+ delete: (id: Guid) => Promise<unknown>;
16
+ getAll: () => Promise<ITemplateRegistration<ColorSchema>[]>;
17
+ };
18
+ components: () => {
19
+ upsert: (item: ITemplateRegistration<ComponentBlueprints>) => Promise<unknown>;
20
+ delete: (id: Guid) => Promise<unknown>;
21
+ getAll: () => Promise<ITemplateRegistration<ComponentBlueprints>[]>;
22
+ };
23
+ spacings: () => {
24
+ upsert: (item: ITemplateRegistration<SpacingBlueprints>) => Promise<unknown>;
25
+ delete: (id: Guid) => Promise<unknown>;
26
+ getAll: () => Promise<ITemplateRegistration<SpacingBlueprints>[]>;
27
+ };
28
+ tabs: () => {
29
+ upsert: (item: ITemplateRegistration<TabsBlueprint>) => Promise<unknown>;
30
+ delete: (id: Guid) => Promise<unknown>;
31
+ getAll: () => Promise<ITemplateRegistration<TabsBlueprint>[]>;
32
+ };
33
+ themes: () => {
34
+ upsert: (item: ITemplateRegistration<ThemeDefinitionV2>) => Promise<unknown>;
35
+ delete: (id: Guid) => Promise<unknown>;
36
+ getAll: () => Promise<ITemplateRegistration<ThemeDefinitionV2>[]>;
37
+ saveTheme: (key: string, theme: ThemeDefinitionV2) => void;
38
+ loadTheme: (key: string) => ThemeDefinitionV2;
39
+ };
40
+ typography: () => {
41
+ upsert: (item: ITemplateRegistration<TypographyBlueprints>) => Promise<unknown>;
42
+ delete: (id: Guid) => Promise<unknown>;
43
+ getAll: () => Promise<ITemplateRegistration<TypographyBlueprints>[]>;
44
+ };
8
45
  };
@@ -1,4 +1,4 @@
1
- import { VelcronOnUpdatedEvent, VelcronOnClosedEvent, VelcronOnCloseRequestedEvent, VelcronOnPressEvent, VelcronSpacing, VelcronStyling, VelcronCustomComponentDefinition, VelcronAppDefinition, VelcronRendererResolverReference } from "internal/fx/shared/models";
1
+ import { VelcronOnUpdatedEvent, VelcronOnClosedEvent, VelcronOnCloseRequestedEvent, VelcronOnPressEvent, VelcronSpacing, VelcronStyling, VelcronCustomComponentDefinition, VelcronAppDefinition, VelcronRendererResolverReference, EventHook, Future } from "internal/fx/shared/models";
2
2
  import { VelcroncomponentArrayType, VelcronPrimitiveType } from "./VelcronTypes";
3
3
  import { AssignOperators, VelcronHorizontalAlignments, VelcronIconTypes, VelcronActionTypes, VelcronVerticalAlignments } from "./Enums";
4
4
  import { DynamicState, VelcronDefinition, useVelcronThemingStore } from "..";
@@ -61,7 +61,7 @@ export interface VelcronRenderContext {
61
61
  };
62
62
  parent?: VelcronRenderContext;
63
63
  hooks?: VelcronRenderContextHooks;
64
- eventHandlers?: VelcronRenderContextEventHandlers;
64
+ eventHandlers?: VelcronRenderContextEventHandlersInstance;
65
65
  editMode?: boolean;
66
66
  disposers: Array<() => void>;
67
67
  }
@@ -71,6 +71,9 @@ export interface VelcronRenderContextEventHandlers {
71
71
  };
72
72
  emitting?: <T>(emitter: (i: T) => T) => T;
73
73
  }
74
+ export interface VelcronRenderContextEventHandlersInstance extends VelcronRenderContextEventHandlers {
75
+ emitOnSaved: EventHook<Future<void>>;
76
+ }
74
77
  export interface VelcronRenderContextHooks {
75
78
  dialogVisibilityChanged?: ((visible: boolean) => void);
76
79
  onItemSelected?: ((item: VelcronDefinition) => void);
@@ -41,7 +41,7 @@ export declare const OAlertTypesName = "OAlertTypes";
41
41
  export declare const OButtonPresetDefinitions: readonly ["create", "remove", "delete", "ok", "cancel", "save", "close", "settings", "icon-add", "icon-comment", "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"];
42
42
  export type OOxideButtonPresets = typeof OButtonPresetDefinitions[number];
43
43
  export declare const OButtonPresetsName = "OOxideButtonPresets";
44
- export declare const OButtonVariantDefinitions: readonly ["default", "prominent", "toolbar", "opacity", "dial", "slim", "menu"];
44
+ export declare const OButtonVariantDefinitions: readonly ["prominent", "default", "toolbar", "opacity", "dial", "slim", "menu"];
45
45
  export type OButtonVariants = typeof OButtonVariantDefinitions[number];
46
46
  export declare const OButtonVariantsName = "OButtonVariants";
47
47
  /**Button Group */
@@ -71,7 +71,7 @@ export declare const ODialogTypesName = "ODialogTypes";
71
71
  export declare const ODialogSizeDefinitions: readonly ["x-small", "small", "medium", "large", "full"];
72
72
  export type ODialogSizes = typeof ODialogSizeDefinitions[number];
73
73
  /** Divider */
74
- export declare const OPageDividerTypeDefinitions: readonly ["default", "prominent"];
74
+ export declare const OPageDividerTypeDefinitions: readonly ["default", "prominent", "label"];
75
75
  export type OPageDividerTypes = typeof OPageDividerTypeDefinitions[number];
76
76
  export declare const OPageDividerTypesName = "OPageDividerTypes";
77
77
  /** Expansion Panel */
@@ -31,7 +31,7 @@ exports.OAlertTypesName = "OAlertTypes";
31
31
  /**Button */
32
32
  exports.OButtonPresetDefinitions = ["create", "remove", "delete", "ok", "cancel", "save", "close", "settings", "icon-add", "icon-comment", "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"];
33
33
  exports.OButtonPresetsName = "OOxideButtonPresets";
34
- exports.OButtonVariantDefinitions = ["default", "prominent", "toolbar", "opacity", "dial", "slim", "menu"];
34
+ exports.OButtonVariantDefinitions = ["prominent", "default", "toolbar", "opacity", "dial", "slim", "menu"];
35
35
  exports.OButtonVariantsName = "OButtonVariants";
36
36
  /**Button Group */
37
37
  exports.OButtonGroupTypeDefinitions = ["default", "dial", "settings"];
@@ -51,7 +51,7 @@ exports.ODialogTypeDefinitions = ["save-cancel", "confirm", "ok-cancel", "defaul
51
51
  exports.ODialogTypesName = "ODialogTypes";
52
52
  exports.ODialogSizeDefinitions = ["x-small", "small", "medium", "large", "full"];
53
53
  /** Divider */
54
- exports.OPageDividerTypeDefinitions = ["default", "prominent"];
54
+ exports.OPageDividerTypeDefinitions = ["default", "prominent", "label"];
55
55
  exports.OPageDividerTypesName = "OPageDividerTypes";
56
56
  /** Expansion Panel */
57
57
  exports.OPanelTypeDefinitions = ["default", "navigation", "section"];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@omnia/fx-models",
3
3
  "license": "MIT",
4
- "version": "8.0.134-dev",
4
+ "version": "8.0.136-dev",
5
5
  "description": "Provide Omnia Fx Models Stuffs.",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -1,11 +1,5 @@
1
- import { BorderStylingDefinition, ButtonBlueprint, ChromeBlueprint, ChromeBlueprints, ColorSchema, ComponentBlueprints, FillDefinition, Guid, SpacingBlueprints, SpacingDefinition, TabsBlueprint, ThemeDefinitionV2, TypographyBlueprints } from "@omnia/fx-models";
1
+ import { BorderStylingDefinition, ButtonBlueprint, ChromeBlueprint, ChromeBlueprints, ColorSchema, ComponentBlueprints, FillDefinition, ITemplateRegistration, SpacingBlueprints, SpacingDefinition, TabsBlueprint, ThemeDefinitionV2, TypographyBlueprints } from "@omnia/fx-models";
2
2
  import { ApiPath } from "../Extends";
3
- export interface ITemplateRegistration<TTemplateType = any> {
4
- id: Guid;
5
- template: TTemplateType;
6
- hidden?: boolean;
7
- custom?: boolean;
8
- }
9
3
  export interface IThemeRegistrationApiHandler {
10
4
  getAllThemeRegistrations(): ITemplateRegistration<ThemeDefinitionV2>[];
11
5
  registerTheme(definitions: ITemplateRegistration<ThemeDefinitionV2> | ITemplateRegistration<ThemeDefinitionV2>[]): any;