@omnia/fx-models 8.0.262-dev → 8.0.264-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.
- package/Constants.d.ts +2 -0
- package/Constants.js +2 -0
- package/Exposes.d.ts +2 -0
- package/Exposes.js +2 -0
- package/StringWithOptions.d.ts +4 -0
- package/StringWithOptions.js +2 -0
- package/Tenant.d.ts +5 -1
- package/Tenant.js +7 -1
- package/internal-do-not-import-from-here/shared/models/theming/Blueprints.d.ts +4 -1
- package/internal-do-not-import-from-here/shared/models/theming/ThemeDefinitionV2.d.ts +1 -1
- package/internal-do-not-import-from-here/shared/models/theming/Typography.d.ts +18 -25
- package/internal-do-not-import-from-here/shared/models/theming/Typography.js +3 -1
- package/internal-do-not-import-from-here/shared/models/velcron/VelcronDefinition.d.ts +1 -1
- package/internal-do-not-import-from-here/velcron/core/models/VelcronDefinitions.d.ts +5 -1
- package/internal-do-not-import-from-here/velcron/core/models/VelcronPropertyEditorDefinitions.d.ts +10 -1
- package/package.json +1 -1
- package/typography/Font.d.ts +5 -0
- package/typography/Font.js +2 -0
- package/typography/index.d.ts +1 -0
- package/typography/index.js +4 -0
- package/ux/FontApi.d.ts +18 -0
- package/ux/FontApi.js +2 -0
- package/ux/index.d.ts +1 -0
- package/ux/index.js +1 -0
package/Constants.d.ts
CHANGED
package/Constants.js
CHANGED
@@ -24,6 +24,8 @@ exports.Constants = {
|
|
24
24
|
markdown: {
|
25
25
|
plugins: {
|
26
26
|
text: (0, models_1.guid)("a9edb1ed-9e97-4c1b-a3ec-9f66d1a97ff9"),
|
27
|
+
bold: (0, models_1.guid)("678ed68f-db27-444a-bc06-f86f8e6c86dc"),
|
28
|
+
italic: (0, models_1.guid)("4d6a3d2b-41c1-484a-ad4d-fe566c8be86e"),
|
27
29
|
color: (0, models_1.guid)("5b6dd221-0d30-4405-95c3-ca637f69d8ca"),
|
28
30
|
typography: (0, models_1.guid)("cfc8e261-fe4b-4449-ab9a-19dfe0293ced"),
|
29
31
|
velcron: (0, models_1.guid)("7c254dea-a4fc-486c-9189-618663e657a2"),
|
package/Exposes.d.ts
CHANGED
@@ -107,6 +107,7 @@ export * from "./media-picker";
|
|
107
107
|
export * from "./user-profile";
|
108
108
|
export * from "./Refiner";
|
109
109
|
export * from "./IUserManagementApi";
|
110
|
+
export * from "./StringWithOptions";
|
110
111
|
export * from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
|
111
112
|
export * from "@omnia/fx-models/internal-do-not-import-from-here/velcron/core/models";
|
112
113
|
export * from "./Shared";
|
@@ -141,6 +142,7 @@ export * from "./markdown";
|
|
141
142
|
export * from "./versionedlayout";
|
142
143
|
export * from "./ScopedPermissionRegistraion";
|
143
144
|
export * from "./action-btn";
|
145
|
+
export * from "./typography";
|
144
146
|
export * from "./FileIdentifier";
|
145
147
|
export * from "./FilePicker";
|
146
148
|
export * from "./LoginLogFilter";
|
package/Exposes.js
CHANGED
@@ -113,6 +113,7 @@ tslib_1.__exportStar(require("./media-picker"), exports);
|
|
113
113
|
tslib_1.__exportStar(require("./user-profile"), exports);
|
114
114
|
tslib_1.__exportStar(require("./Refiner"), exports);
|
115
115
|
tslib_1.__exportStar(require("./IUserManagementApi"), exports);
|
116
|
+
tslib_1.__exportStar(require("./StringWithOptions"), exports);
|
116
117
|
//************************************************************************************ */
|
117
118
|
// End of file exports
|
118
119
|
//************************************************************************************ */
|
@@ -153,6 +154,7 @@ tslib_1.__exportStar(require("./markdown"), exports);
|
|
153
154
|
tslib_1.__exportStar(require("./versionedlayout"), exports);
|
154
155
|
tslib_1.__exportStar(require("./ScopedPermissionRegistraion"), exports);
|
155
156
|
tslib_1.__exportStar(require("./action-btn"), exports);
|
157
|
+
tslib_1.__exportStar(require("./typography"), exports);
|
156
158
|
//************************************************************************************ */
|
157
159
|
// End of folder exports
|
158
160
|
//************************************************************************************ */
|
package/Tenant.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { OmniaNamedModel, IOmniaPropertyBag } from "./NamedProperty";
|
2
|
-
import { TenantIdentifier } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
|
2
|
+
import { TenantIdentifier, TypographyFontDefinition } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
|
3
3
|
import { TimeFormats } from "./Enums";
|
4
4
|
import { LanguageSettings } from "./Language";
|
5
5
|
import { MultilingualString } from "./MultilingualString";
|
@@ -40,6 +40,10 @@ export declare class TenantAuthenticationSettings extends TenantProperty {
|
|
40
40
|
enableITPCompatibility: boolean;
|
41
41
|
constructor();
|
42
42
|
}
|
43
|
+
export declare class TenantTypographyFonts extends TenantProperty {
|
44
|
+
availableFonts: TypographyFontDefinition[];
|
45
|
+
constructor();
|
46
|
+
}
|
43
47
|
export declare class TenantPeopleInformation extends TenantProperty {
|
44
48
|
enablePeopleInformation: boolean;
|
45
49
|
showLinkToDelve: boolean;
|
package/Tenant.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.TenantPreSetup = exports.TenantFaviconSettings = exports.TenantEnterpriseGlossary = exports.AllEnterprisePropertyDataTypesContentHashSettings = exports.AllEnterprisePropertiesContentHashSettings = exports.TenantApiSettings = exports.TenantPeopleInformation = exports.TenantAuthenticationSettings = exports.TenantInfoSettings = exports.TenantErrorInformation = exports.TenantCSOMClientContextFallbackUrl = exports.TenantLanguageSettings = exports.TenantRegionalSettings = exports.TenantProperty = void 0;
|
3
|
+
exports.TenantPreSetup = exports.TenantFaviconSettings = exports.TenantEnterpriseGlossary = exports.AllEnterprisePropertyDataTypesContentHashSettings = exports.AllEnterprisePropertiesContentHashSettings = exports.TenantApiSettings = exports.TenantPeopleInformation = exports.TenantTypographyFonts = exports.TenantAuthenticationSettings = exports.TenantInfoSettings = exports.TenantErrorInformation = exports.TenantCSOMClientContextFallbackUrl = exports.TenantLanguageSettings = exports.TenantRegionalSettings = exports.TenantProperty = void 0;
|
4
4
|
const ManifestIds_1 = require("./ManifestIds");
|
5
5
|
const NamedProperty_1 = require("./NamedProperty");
|
6
6
|
class TenantProperty extends NamedProperty_1.OmniaNamedModel {
|
@@ -47,6 +47,12 @@ class TenantAuthenticationSettings extends TenantProperty {
|
|
47
47
|
}
|
48
48
|
}
|
49
49
|
exports.TenantAuthenticationSettings = TenantAuthenticationSettings;
|
50
|
+
class TenantTypographyFonts extends TenantProperty {
|
51
|
+
constructor() {
|
52
|
+
super(ManifestIds_1.OmniaService.Id, "tenanttypographyfonts");
|
53
|
+
}
|
54
|
+
}
|
55
|
+
exports.TenantTypographyFonts = TenantTypographyFonts;
|
50
56
|
class TenantPeopleInformation extends TenantProperty {
|
51
57
|
constructor() {
|
52
58
|
super(ManifestIds_1.OmniaService.Id, "peopleinformation");
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { BackgroundDefinition, BlueprintsReference, ColorSchemaType, ColorValue, FillDefinitionValue } from "./ThemeDefinitionV2";
|
2
2
|
import { SpacingDefinition, Spacing } from "./Spacing";
|
3
|
-
import { TypographyValue } from "./Typography";
|
3
|
+
import { TypographyFontDefinition, TypographyValue } from "./Typography";
|
4
4
|
export interface BoxDimensions extends Spacing {
|
5
5
|
}
|
6
6
|
import { TypographyBlueprint } from "./Typography";
|
@@ -29,6 +29,9 @@ export interface ContainerBlueprint extends Blueprints, BlueprintsReference {
|
|
29
29
|
export interface TypographyBlueprints extends Blueprints, BlueprintsReference {
|
30
30
|
primary: TypographyBlueprint;
|
31
31
|
}
|
32
|
+
export interface IFontBlueprints extends Blueprints, BlueprintsReference {
|
33
|
+
fonts: Array<TypographyFontDefinition>;
|
34
|
+
}
|
32
35
|
export interface SpacingBlueprints extends Blueprints, BlueprintsReference {
|
33
36
|
primary: SpacingBlueprint;
|
34
37
|
}
|
@@ -81,7 +81,7 @@ export interface ITemplateRegistration<TTemplateType = any> {
|
|
81
81
|
hidden?: boolean;
|
82
82
|
custom?: boolean;
|
83
83
|
}
|
84
|
-
export type TemplateRegistrationType = "button" | "fill" | "border" | "tabs" | "chrome" | "chromes" | "components" | "spacings" | "spacing" | "typography" | "icons" | "colorschema" | "theme";
|
84
|
+
export type TemplateRegistrationType = "button" | "fill" | "border" | "tabs" | "chrome" | "chromes" | "components" | "spacings" | "spacing" | "typography" | "icons" | "colorschema" | "theme" | "availablefonts";
|
85
85
|
export interface ITemplateRegistration<TTemplateType = any, TType = TemplateRegistrationType> {
|
86
86
|
type: TemplateRegistrationType;
|
87
87
|
id: guid;
|
@@ -2,11 +2,7 @@ import { guid } from "../Guid";
|
|
2
2
|
import { FillDefinition } from "./ThemeDefinitionV2";
|
3
3
|
export interface TypographyBlueprint {
|
4
4
|
name: string;
|
5
|
-
font?:
|
6
|
-
id: guid;
|
7
|
-
family: string;
|
8
|
-
cdn?: string;
|
9
|
-
};
|
5
|
+
font?: TypographyFontRef;
|
10
6
|
fills?: {
|
11
7
|
variant1?: FillDefinition;
|
12
8
|
variant2?: FillDefinition;
|
@@ -18,39 +14,23 @@ export interface TypographyBlueprint {
|
|
18
14
|
m: TypographyDefinition;
|
19
15
|
s: TypographyDefinition;
|
20
16
|
xs: TypographyDefinition;
|
21
|
-
font?:
|
22
|
-
id: guid;
|
23
|
-
family: string;
|
24
|
-
cdn?: string;
|
25
|
-
};
|
17
|
+
font?: TypographyFontRef;
|
26
18
|
};
|
27
19
|
text: {
|
28
20
|
l: TypographyDefinition;
|
29
21
|
m: TypographyDefinition;
|
30
22
|
s: TypographyDefinition;
|
31
23
|
xs: TypographyDefinition;
|
32
|
-
font?:
|
33
|
-
id: guid;
|
34
|
-
family: string;
|
35
|
-
cdn?: string;
|
36
|
-
};
|
24
|
+
font?: TypographyFontRef;
|
37
25
|
};
|
38
26
|
navigation: {
|
39
27
|
l: TypographyDefinition;
|
40
28
|
m: TypographyDefinition;
|
41
|
-
font?:
|
42
|
-
id: guid;
|
43
|
-
family: string;
|
44
|
-
cdn?: string;
|
45
|
-
};
|
29
|
+
font?: TypographyFontRef;
|
46
30
|
};
|
47
31
|
link: {
|
48
32
|
m: TypographyDefinition;
|
49
|
-
font?:
|
50
|
-
id: guid;
|
51
|
-
family: string;
|
52
|
-
cdn?: string;
|
53
|
-
};
|
33
|
+
font?: TypographyFontRef;
|
54
34
|
};
|
55
35
|
}
|
56
36
|
export interface TypographyDefinition {
|
@@ -58,12 +38,23 @@ export interface TypographyDefinition {
|
|
58
38
|
lg: TypographyTypeBreakPoint;
|
59
39
|
md?: TypographyTypeBreakPoint;
|
60
40
|
sm?: TypographyTypeBreakPoint;
|
41
|
+
font?: TypographyFontRef;
|
61
42
|
}
|
62
43
|
export interface TypographyTypeBreakPoint {
|
63
44
|
weight: number;
|
64
45
|
size: number;
|
65
46
|
lineHeight: number;
|
66
47
|
}
|
48
|
+
export interface TypographyFontDefinition {
|
49
|
+
id?: guid;
|
50
|
+
name?: string;
|
51
|
+
family: string;
|
52
|
+
cdn?: string;
|
53
|
+
manifestId?: guid;
|
54
|
+
}
|
55
|
+
export interface TypographyFontRef {
|
56
|
+
family: string;
|
57
|
+
}
|
67
58
|
export type TypographyType = keyof typeof TypographyTypes;
|
68
59
|
export declare enum TypographyTypes {
|
69
60
|
title = "title",
|
@@ -83,3 +74,5 @@ export declare enum TypographySizes {
|
|
83
74
|
s = "s",
|
84
75
|
xs = "xs"
|
85
76
|
}
|
77
|
+
/**this reflect TypographySizes for member check*/
|
78
|
+
export declare const AvailableTypographySizes: string[];
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.TypographySizes = exports.TypographyTypes = void 0;
|
3
|
+
exports.AvailableTypographySizes = exports.TypographySizes = exports.TypographyTypes = void 0;
|
4
4
|
var TypographyTypes;
|
5
5
|
(function (TypographyTypes) {
|
6
6
|
TypographyTypes["title"] = "title";
|
@@ -15,3 +15,5 @@ var TypographySizes;
|
|
15
15
|
TypographySizes["s"] = "s";
|
16
16
|
TypographySizes["xs"] = "xs";
|
17
17
|
})(TypographySizes || (exports.TypographySizes = TypographySizes = {}));
|
18
|
+
/**this reflect TypographySizes for member check*/
|
19
|
+
exports.AvailableTypographySizes = ["xl", "l", "m", "s", "xs"];
|
@@ -60,7 +60,7 @@ export interface VelcronComponentDefinition extends VelcronDefinition {
|
|
60
60
|
icon?: any;
|
61
61
|
}
|
62
62
|
export type VelcronCustomComponentDefinition = VelcronComponentDefinition;
|
63
|
-
export type BuiltInPropertyEditorType = "text" | "number" | "slider" | "switch" | "alignment" | "color" | "markdown" | "icon" | "image" | "typography" | "spacing" | "color-schema-type" | "blueprint" | "background" | "grid" | "reference" | "select";
|
63
|
+
export type BuiltInPropertyEditorType = "text" | "number" | "slider" | "switch" | "alignment" | "color" | "markdown" | "icon" | "image" | "typography" | "spacing" | "color-schema-type" | "blueprint" | "background" | "grid" | "reference" | "select" | "property-resolver";
|
64
64
|
export type EditorLocation = "inline " | "pane" | "toolbar";
|
65
65
|
export interface VelcronEditor<TSettings = any> {
|
66
66
|
name?: string;
|
@@ -223,7 +223,6 @@ export declare enum VelcronImageRatios {
|
|
223
223
|
}
|
224
224
|
export interface VelcronImageDefinition extends VelcronDefinitionWithEditMode {
|
225
225
|
type: "image";
|
226
|
-
url?: VelcronBindableProp<string>;
|
227
226
|
value?: VelcronBindableProp<string>;
|
228
227
|
ratio?: VelcronImageRatios | string;
|
229
228
|
width?: number | string;
|
@@ -371,6 +370,11 @@ export interface VelcronPropertyDefinitionValue {
|
|
371
370
|
value: PropertyValue;
|
372
371
|
configuration: PropertyConfiguration<PropertyDefinition<any, any, any, PropertySetupBase>>;
|
373
372
|
}
|
373
|
+
export interface VelcronPropertyDefinitionValueResolver {
|
374
|
+
name: string;
|
375
|
+
provider: string;
|
376
|
+
path: string;
|
377
|
+
}
|
374
378
|
export type VelcronRenderProps<TDefinition> = {
|
375
379
|
definition: TDefinition;
|
376
380
|
renderContext: VelcronRenderContext;
|
package/internal-do-not-import-from-here/velcron/core/models/VelcronPropertyEditorDefinitions.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { BuiltInPropertyEditorType, TypographyType, VelcronEditor } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
|
1
|
+
import { BuiltInPropertyEditorType, guid, TypographyType, VelcronEditor } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
|
2
2
|
export interface ResolvedPropertyEditor {
|
3
3
|
editor: VelcronEditor;
|
4
4
|
}
|
@@ -36,6 +36,12 @@ export interface VelcronNumberEditorSettings {
|
|
36
36
|
max: number;
|
37
37
|
step: number;
|
38
38
|
}
|
39
|
+
export interface VelcronPropertyResolverEditorSettings {
|
40
|
+
properties: Array<{
|
41
|
+
name: string;
|
42
|
+
definitionId: guid;
|
43
|
+
}>;
|
44
|
+
}
|
39
45
|
export interface VelcronBlueprintEditorSettings {
|
40
46
|
type: "container" | "icon";
|
41
47
|
}
|
@@ -96,3 +102,6 @@ export interface VelcronGridEditor extends VelcronEditor<any> {
|
|
96
102
|
export interface VelcronSelectEditor extends VelcronEditor<VelcronSelectEditorSettings> {
|
97
103
|
type: "select";
|
98
104
|
}
|
105
|
+
export interface VelcronPropertyResolverEditor extends VelcronEditor<VelcronPropertyResolverEditorSettings> {
|
106
|
+
type: "property-resolver";
|
107
|
+
}
|
package/package.json
CHANGED
@@ -0,0 +1 @@
|
|
1
|
+
export * from "./Font";
|
package/ux/FontApi.d.ts
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
import { FontDefinition } from "@omnia/fx-models";
|
2
|
+
import { ApiPath } from "../Extends";
|
3
|
+
export interface IFontRegistrationApi {
|
4
|
+
registerFont: (font: FontDefinition) => void;
|
5
|
+
getAllFonts: () => FontDefinition[];
|
6
|
+
}
|
7
|
+
declare module "./UxApi" {
|
8
|
+
interface IOmniaUxApi {
|
9
|
+
typography: {
|
10
|
+
registration: Promise<IFontRegistrationApi>;
|
11
|
+
};
|
12
|
+
}
|
13
|
+
interface IOmniaUxExtendApiManifest {
|
14
|
+
typography: {
|
15
|
+
registration: ApiPath;
|
16
|
+
};
|
17
|
+
}
|
18
|
+
}
|
package/ux/FontApi.js
ADDED
package/ux/index.d.ts
CHANGED
@@ -23,4 +23,5 @@ export * from "./DynamicPlaceholderApi";
|
|
23
23
|
export * from "./RouterApi";
|
24
24
|
export * from "./ScopedPermissionApi";
|
25
25
|
export * from "./MarkdownApi";
|
26
|
+
export * from "./FontApi";
|
26
27
|
export { type Directives, type DirectiveDefinition, type IInternalDirectiveRegistration } from "./Directive";
|
package/ux/index.js
CHANGED
@@ -26,3 +26,4 @@ tslib_1.__exportStar(require("./DynamicPlaceholderApi"), exports);
|
|
26
26
|
tslib_1.__exportStar(require("./RouterApi"), exports);
|
27
27
|
tslib_1.__exportStar(require("./ScopedPermissionApi"), exports);
|
28
28
|
tslib_1.__exportStar(require("./MarkdownApi"), exports);
|
29
|
+
tslib_1.__exportStar(require("./FontApi"), exports);
|