@omnia/fx-models 7.0.533-dev → 8.0.1-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.
@@ -1,4 +1,3 @@
1
- import { GuidValue } from "../shared";
2
1
  import { PrincipalTypes } from "./Enums";
3
2
  export interface PermissionInputSettings {
4
3
  roles: Array<{
@@ -6,7 +5,6 @@ export interface PermissionInputSettings {
6
5
  label: string;
7
6
  principalType?: PrincipalTypes;
8
7
  showSpecialIdentities?: boolean;
9
- providerIds?: GuidValue[];
10
8
  required?: boolean;
11
9
  }>;
12
10
  }
@@ -1,5 +1,4 @@
1
- import { ConfirmDialogOptions } from "@omnia/fx/ux";
2
- import Vue from "vue";
1
+ import { ConfirmDialogOptions, Vue } from "@omnia/fx/ux";
3
2
  export declare enum ActionItemType {
4
3
  Button = 0,
5
4
  GroupButtons = 1,
@@ -19,11 +19,3 @@ 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.ArchiveSortColumn = exports.Identity = void 0;
3
+ 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,15 +65,6 @@ 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 = {}));
77
68
  // only add extension methods when running in browser, not in node.js
78
69
  if (globalThis.omnia) {
79
70
  Object.defineProperty(Object.prototype, "toIdString", {
@@ -49,7 +49,6 @@ export declare class DocumentDirectionSettings extends UserPropertyBagModel {
49
49
  export declare enum UserSortColumn {
50
50
  DisplayName = 1,
51
51
  Email = 2,
52
- Username = 3,
53
52
  ProviderId = 4,
54
53
  UserTypeId = 5
55
54
  }
@@ -74,7 +74,6 @@ 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";
78
77
  UserSortColumn[UserSortColumn["ProviderId"] = 4] = "ProviderId";
79
78
  UserSortColumn[UserSortColumn["UserTypeId"] = 5] = "UserTypeId";
80
79
  })(UserSortColumn = exports.UserSortColumn || (exports.UserSortColumn = {}));
@@ -5,6 +5,8 @@ export interface ColorDefinition {
5
5
  dark: boolean;
6
6
  color: string;
7
7
  colorToned: string;
8
+ colorStyles: ColorStyles;
9
+ colorTonedStyles: ColorStyles;
8
10
  }
9
11
  export interface ColorStyles {
10
12
  background: object | string;
@@ -13,6 +13,7 @@ export interface TypographyType {
13
13
  large: TypographyTypeBreakPoint;
14
14
  medium?: TypographyTypeBreakPoint;
15
15
  small?: TypographyTypeBreakPoint;
16
+ style: object | string;
16
17
  }
17
18
  export interface TypographyTypeBreakPoint {
18
19
  weight: number;
@@ -1,4 +1,3 @@
1
1
  export * from "./ThemeDefinitionV2";
2
2
  export * from "./TypographyDefinition";
3
3
  export * from "./OmniaThemes";
4
- export * from "./ThemeMethods";
@@ -4,4 +4,3 @@ 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);
@@ -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
+ colorSchemaName?: string;
45
45
  colorSchema?: ColorSchema;
46
46
  actions?: {
47
47
  [name: string]: [];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@omnia/fx-models",
3
3
  "license": "MIT",
4
- "version": "7.0.533-dev",
4
+ "version": "8.0.1-vnext",
5
5
  "description": "Provide Omnia Fx Models Stuffs.",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -3,8 +3,3 @@ 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,14 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.InstanceIdLimit = exports.SmallScreenBreakpoint = exports.SidePanelPosition = void 0;
3
+ 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,8 +1,7 @@
1
1
  import { ApiPath } from "../Extends";
2
2
  import { SidePanelPosition } from "..";
3
3
  export interface ISidePanelElementRegistration {
4
- openPanel: (element: HTMLElement, position?: SidePanelPosition) => number;
5
- closePanel: (instanceId: number) => void;
4
+ registerElement: (element: HTMLElement, position?: SidePanelPosition) => void;
6
5
  }
7
6
  declare module "./UxApi" {
8
7
  interface IOmniaUxApi {
package/VueInject.d.ts DELETED
@@ -1,5 +0,0 @@
1
- import Vue from "vue";
2
- export interface VueInject {
3
- instance: Vue;
4
- object: any;
5
- }
package/VueInject.js DELETED
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -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
- };
@@ -1,143 +0,0 @@
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;