@omnia/velcron 8.0.191-dev → 8.0.193-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/internal-do-not-import-from-here/shared/models/Guid.d.ts +55 -10
- package/internal-do-not-import-from-here/shared/models/Guid.js +40 -10
- package/internal-do-not-import-from-here/shared/models/OmniaSharedBootstrapData.d.ts +1 -1
- package/internal-do-not-import-from-here/shared/models/Tenant.d.ts +2 -2
- package/internal-do-not-import-from-here/shared/models/Tokens.d.ts +4 -4
- package/internal-do-not-import-from-here/shared/models/Tooling.d.ts +13 -0
- package/internal-do-not-import-from-here/shared/models/Tooling.js +2 -0
- package/internal-do-not-import-from-here/shared/models/WorkerProxyFuncs.d.ts +2 -2
- package/internal-do-not-import-from-here/shared/models/WorkerProxyFuncs.js +2 -2
- package/internal-do-not-import-from-here/shared/models/Workers.d.ts +4 -4
- package/internal-do-not-import-from-here/shared/models/hub/activities/ActivityRenderer.d.ts +3 -3
- package/internal-do-not-import-from-here/shared/models/hub/fileupload/TemporaryFileId.d.ts +3 -3
- package/internal-do-not-import-from-here/shared/models/hub/targeting/ExternalIdentityProperty.js +1 -2
- package/internal-do-not-import-from-here/shared/models/hub/targeting/HubSource.d.ts +2 -1
- package/internal-do-not-import-from-here/shared/models/hub/targeting/HubSource.js +2 -1
- package/internal-do-not-import-from-here/shared/models/theming/Blueprints.d.ts +2 -2
- package/internal-do-not-import-from-here/shared/models/theming/ThemeDefinitionV2.d.ts +5 -5
- package/internal-do-not-import-from-here/shared/models/theming/Typography.d.ts +6 -6
- package/internal-do-not-import-from-here/shared/models/velcron/VelcronContentSection.d.ts +2 -2
- package/internal-do-not-import-from-here/shared/models/velcron/VelcronReference.d.ts +3 -3
- package/models/VelcronDefinitions.d.ts +3 -3
- package/package.json +1 -1
- package/stores/VelcronColorSchema.d.ts +2 -2
- package/stores/VelcronColorSchema.js +1 -1
|
@@ -1,11 +1,32 @@
|
|
|
1
1
|
import "./Equals";
|
|
2
2
|
import { IEquals } from "./Equals";
|
|
3
3
|
import { Id } from "./Id";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
type VersionChar = "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "a" | "b" | "c" | "d" | "e" | "f";
|
|
5
|
+
type Char = "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "a" | "b" | "c" | "d" | "e" | "f";
|
|
6
|
+
type Prev<X extends number> = [
|
|
7
|
+
never,
|
|
8
|
+
0,
|
|
9
|
+
1,
|
|
10
|
+
2,
|
|
11
|
+
3,
|
|
12
|
+
4,
|
|
13
|
+
5,
|
|
14
|
+
6,
|
|
15
|
+
7,
|
|
16
|
+
8,
|
|
17
|
+
9,
|
|
18
|
+
10,
|
|
19
|
+
11,
|
|
20
|
+
...never[]
|
|
21
|
+
][X];
|
|
22
|
+
type HasLength<S extends string, Len extends number> = [Len] extends [0] ? (S extends "" ? true : never) : (S extends `${infer C}${infer Rest}` ? (Lowercase<C> extends Char ? HasLength<Rest, Prev<Len>> : never) : never);
|
|
23
|
+
type Char4<S extends string> = true extends HasLength<S, 4> ? S : never;
|
|
24
|
+
type Char8<S extends string> = true extends HasLength<S, 8> ? S : never;
|
|
25
|
+
type Char12<S extends string> = true extends HasLength<S, 12> ? S : never;
|
|
26
|
+
type VersionGroup<S extends string> = S extends `${infer Version}${infer Rest}` ? (Version extends VersionChar ? (true extends HasLength<Rest, 3> ? S : never) : never) : never;
|
|
27
|
+
type NilUUID = "00000000-0000-0000-0000-000000000000";
|
|
28
|
+
type GuidValidator<S extends string> = S extends NilUUID ? S : (S extends `${infer S8}-${infer S4_1}-${infer S4_2}-${infer S4_3}-${infer S12}` ? (S8 extends Lowercase<Char8<S8>> ? (S4_1 extends Lowercase<Char4<S4_1>> ? (S4_2 extends Lowercase<VersionGroup<S4_2>> ? (S4_3 extends Lowercase<Char4<S4_3>> ? (S12 extends Lowercase<Char12<S12>> ? S : never) : never) : never) : never) : never) : never);
|
|
29
|
+
export declare const emptyGuid: guid;
|
|
9
30
|
declare const guidSymbol: unique symbol;
|
|
10
31
|
/**
|
|
11
32
|
* Type alias for GUIDs, represented as a string but with nominal typing
|
|
@@ -16,9 +37,10 @@ export type guid = Id<string, [typeof guidSymbol]>;
|
|
|
16
37
|
* Generates a globally unique identifier (GUID) or converts a provided string into a GUID.
|
|
17
38
|
*
|
|
18
39
|
* This function creates a new GUID if no argument is provided. If a string id is provided,
|
|
19
|
-
* it is cast to a GUID
|
|
20
|
-
* which uses random numbers. The format of a version 4 UUID
|
|
21
|
-
* where 'x' is any hexadecimal digit and 'y' is one of 8, 9, A, or B.
|
|
40
|
+
* it is cast to a GUID, assuming the string is a valid, lowercase GUID. The new GUID is generated
|
|
41
|
+
* according to the version 4 UUID standard, which uses random numbers. The format of a version 4 UUID
|
|
42
|
+
* is 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx', where 'x' is any hexadecimal digit and 'y' is one of 8, 9, A, or B.
|
|
43
|
+
* Note: This function enforces that all hexadecimal characters in the GUID are lowercase at build time.
|
|
22
44
|
*
|
|
23
45
|
* @param {string} [id] - Optional. A predefined string to be cast as a guid.
|
|
24
46
|
* @returns {guid} A new GUID if no id is provided, or the provided id cast as a guid.
|
|
@@ -28,10 +50,33 @@ export type guid = Id<string, [typeof guidSymbol]>;
|
|
|
28
50
|
* const newGuid = guid();
|
|
29
51
|
*
|
|
30
52
|
* @example
|
|
31
|
-
* // Casts a given string to a GUID
|
|
53
|
+
* // Casts a given string to a GUID, the string must be lowercase
|
|
32
54
|
* const specificGuid = guid("123e4567-e89b-12d3-a456-426614174000");
|
|
33
55
|
*/
|
|
34
|
-
export declare function guid(id?:
|
|
56
|
+
export declare function guid<S extends string>(id?: GuidValidator<S>): guid;
|
|
57
|
+
/**
|
|
58
|
+
* Casts a provided string to a GUID without enforcing format validation.
|
|
59
|
+
*
|
|
60
|
+
* This function casts any given string to a GUID type without validating
|
|
61
|
+
* its format at build time. It is particularly useful in scenarios where
|
|
62
|
+
* the GUID format is non-standard or where format validation is not necessary.
|
|
63
|
+
* Note that this function does not generate a new GUID; it only casts the provided string.
|
|
64
|
+
* Note: Even without format validation, the string should be in lowercase to comply with GUID standards.
|
|
65
|
+
*
|
|
66
|
+
* @param {string} id - A string to be cast as a guid.
|
|
67
|
+
* @returns {guid} The provided id cast as a guid.
|
|
68
|
+
*
|
|
69
|
+
* @example
|
|
70
|
+
* // Casts a given string to a GUID without validating its format
|
|
71
|
+
* const specificGuid = maybeGuid("123e4567-e89b-12d3-a456-426614174000");
|
|
72
|
+
*/
|
|
73
|
+
export declare function maybeGuid(id: string): guid;
|
|
74
|
+
export declare function isValidGuid(guid: guid): boolean;
|
|
75
|
+
export interface GuidValue extends Partial<IEquals<{
|
|
76
|
+
GUID(value: GuidValue): boolean;
|
|
77
|
+
}>> {
|
|
78
|
+
toString: () => string;
|
|
79
|
+
}
|
|
35
80
|
/**
|
|
36
81
|
* Class to create a guid
|
|
37
82
|
*/
|
|
@@ -1,19 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GUID = exports.Guid = exports.guid = void 0;
|
|
4
|
-
//export interface GuidValue {
|
|
5
|
-
// :string;
|
|
6
|
-
//}
|
|
3
|
+
exports.GUID = exports.Guid = exports.isValidGuid = exports.maybeGuid = exports.guid = exports.emptyGuid = void 0;
|
|
7
4
|
require("./Equals"); // ensure execute code in equals first
|
|
5
|
+
exports.emptyGuid = guid("00000000-0000-0000-0000-000000000000");
|
|
8
6
|
//This is the new modern implementation of guid not requiring a class
|
|
9
7
|
const guidSymbol = Symbol("guid");
|
|
10
8
|
/**
|
|
11
9
|
* Generates a globally unique identifier (GUID) or converts a provided string into a GUID.
|
|
12
10
|
*
|
|
13
11
|
* This function creates a new GUID if no argument is provided. If a string id is provided,
|
|
14
|
-
* it is cast to a GUID
|
|
15
|
-
* which uses random numbers. The format of a version 4 UUID
|
|
16
|
-
* where 'x' is any hexadecimal digit and 'y' is one of 8, 9, A, or B.
|
|
12
|
+
* it is cast to a GUID, assuming the string is a valid, lowercase GUID. The new GUID is generated
|
|
13
|
+
* according to the version 4 UUID standard, which uses random numbers. The format of a version 4 UUID
|
|
14
|
+
* is 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx', where 'x' is any hexadecimal digit and 'y' is one of 8, 9, A, or B.
|
|
15
|
+
* Note: This function enforces that all hexadecimal characters in the GUID are lowercase at build time.
|
|
17
16
|
*
|
|
18
17
|
* @param {string} [id] - Optional. A predefined string to be cast as a guid.
|
|
19
18
|
* @returns {guid} A new GUID if no id is provided, or the provided id cast as a guid.
|
|
@@ -23,10 +22,34 @@ const guidSymbol = Symbol("guid");
|
|
|
23
22
|
* const newGuid = guid();
|
|
24
23
|
*
|
|
25
24
|
* @example
|
|
26
|
-
* // Casts a given string to a GUID
|
|
25
|
+
* // Casts a given string to a GUID, the string must be lowercase
|
|
27
26
|
* const specificGuid = guid("123e4567-e89b-12d3-a456-426614174000");
|
|
28
27
|
*/
|
|
29
28
|
function guid(id) {
|
|
29
|
+
return defineGuid(id);
|
|
30
|
+
}
|
|
31
|
+
exports.guid = guid;
|
|
32
|
+
/**
|
|
33
|
+
* Casts a provided string to a GUID without enforcing format validation.
|
|
34
|
+
*
|
|
35
|
+
* This function casts any given string to a GUID type without validating
|
|
36
|
+
* its format at build time. It is particularly useful in scenarios where
|
|
37
|
+
* the GUID format is non-standard or where format validation is not necessary.
|
|
38
|
+
* Note that this function does not generate a new GUID; it only casts the provided string.
|
|
39
|
+
* Note: Even without format validation, the string should be in lowercase to comply with GUID standards.
|
|
40
|
+
*
|
|
41
|
+
* @param {string} id - A string to be cast as a guid.
|
|
42
|
+
* @returns {guid} The provided id cast as a guid.
|
|
43
|
+
*
|
|
44
|
+
* @example
|
|
45
|
+
* // Casts a given string to a GUID without validating its format
|
|
46
|
+
* const specificGuid = maybeGuid("123e4567-e89b-12d3-a456-426614174000");
|
|
47
|
+
*/
|
|
48
|
+
function maybeGuid(id) {
|
|
49
|
+
return defineGuid(id);
|
|
50
|
+
}
|
|
51
|
+
exports.maybeGuid = maybeGuid;
|
|
52
|
+
function defineGuid(id) {
|
|
30
53
|
if (!id) {
|
|
31
54
|
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, c => {
|
|
32
55
|
const r = Math.random() * 16 | 0;
|
|
@@ -36,12 +59,19 @@ function guid(id) {
|
|
|
36
59
|
}
|
|
37
60
|
return id;
|
|
38
61
|
}
|
|
39
|
-
|
|
62
|
+
function isValidGuid(guid) {
|
|
63
|
+
if (guid === undefined || guid === null) {
|
|
64
|
+
return false;
|
|
65
|
+
}
|
|
66
|
+
const validRegex = /^[{]?[0-9a-fA-F]{8}[-]?([0-9a-fA-F]{4}[-]?){3}[0-9a-fA-F]{12}[}]?$/;
|
|
67
|
+
return validRegex.test(guid.toString());
|
|
68
|
+
}
|
|
69
|
+
exports.isValidGuid = isValidGuid;
|
|
40
70
|
/**
|
|
41
71
|
* Class to create a guid
|
|
42
72
|
*/
|
|
43
73
|
class Guid {
|
|
44
|
-
static { this._empty =
|
|
74
|
+
static { this._empty = guid("00000000-0000-0000-0000-000000000000"); }
|
|
45
75
|
static newGuid() {
|
|
46
76
|
return new Guid("xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, c => {
|
|
47
77
|
const r = Math.random() * 16 | 0;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { guid } from "./Guid";
|
|
2
2
|
export interface OmniaToken {
|
|
3
3
|
tokenKey: string;
|
|
4
|
-
tokenRef:
|
|
4
|
+
tokenRef: guid;
|
|
5
5
|
loginName: string;
|
|
6
6
|
expires: number;
|
|
7
7
|
forDevIntent: boolean;
|
|
8
8
|
}
|
|
9
9
|
export interface OmniaTokenRef {
|
|
10
|
-
tenantId:
|
|
10
|
+
tenantId: guid;
|
|
11
11
|
identityId: string;
|
|
12
12
|
hubIdentityId?: number;
|
|
13
|
-
tokenRef:
|
|
13
|
+
tokenRef: guid;
|
|
14
14
|
localDev: boolean;
|
|
15
15
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { guid } from "./Guid";
|
|
2
|
+
export interface IEnums$ {
|
|
3
|
+
}
|
|
4
|
+
declare global {
|
|
5
|
+
let o$: {
|
|
6
|
+
enums: IEnums$;
|
|
7
|
+
};
|
|
8
|
+
let enum$: <T>(name: string) => {
|
|
9
|
+
value: <T2 extends {
|
|
10
|
+
[name: string]: string | guid | number | boolean;
|
|
11
|
+
}>(value: T2) => Record<keyof T2, T>;
|
|
12
|
+
};
|
|
13
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { HttpResponse } from "./HttpCommon";
|
|
2
|
-
import {
|
|
2
|
+
import { guid } from "./Guid";
|
|
3
3
|
import { WorkerProxyFunction } from "./Workers";
|
|
4
4
|
export declare const WorkerProxyFuncs: {
|
|
5
5
|
ui: {
|
|
6
|
-
loadManifests: WorkerProxyFunction<
|
|
6
|
+
loadManifests: WorkerProxyFunction<guid[], guid[]>;
|
|
7
7
|
};
|
|
8
8
|
worker: {
|
|
9
9
|
httpRequest: WorkerProxyFunction<{
|
|
@@ -6,13 +6,13 @@ exports.WorkerProxyFuncs = {
|
|
|
6
6
|
//Worker to Ui functions
|
|
7
7
|
ui: {
|
|
8
8
|
loadManifests: {
|
|
9
|
-
id:
|
|
9
|
+
id: (0, Guid_1.guid)("8fb843b7-936f-4fec-a462-77c087adb7de")
|
|
10
10
|
}
|
|
11
11
|
},
|
|
12
12
|
//Ui to worker functions
|
|
13
13
|
worker: {
|
|
14
14
|
httpRequest: {
|
|
15
|
-
id:
|
|
15
|
+
id: (0, Guid_1.guid)("c77c5845-4ceb-4fe2-939a-36de94be6f6b")
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
18
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { guid } from "./Guid";
|
|
2
2
|
import { OmniaSharedBootstrapData } from "./OmniaSharedBootstrapData";
|
|
3
3
|
export interface WorkerProxyAction<TParamType> {
|
|
4
|
-
id:
|
|
4
|
+
id: guid;
|
|
5
5
|
}
|
|
6
6
|
export interface WorkerProxyFunction<TParamType, TReturnType> extends WorkerProxyAction<TParamType> {
|
|
7
7
|
}
|
|
8
8
|
export interface WorkerProxyMessage<T> {
|
|
9
|
-
id:
|
|
9
|
+
id: guid;
|
|
10
10
|
data: T;
|
|
11
|
-
handlerId:
|
|
11
|
+
handlerId: guid;
|
|
12
12
|
initiator: WorkerProxyFunctionInitiators;
|
|
13
13
|
}
|
|
14
14
|
export declare enum WorkerProxyFunctionInitiators {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { guid } from "../../Guid";
|
|
2
2
|
import { Id } from "../../Id";
|
|
3
3
|
import { VelcronAppDefinition } from "../../velcron";
|
|
4
|
-
export type ActivityRendererId = Id<
|
|
5
|
-
export declare function ActivityRendererId(id:
|
|
4
|
+
export type ActivityRendererId = Id<guid, "ActivityRendererId">;
|
|
5
|
+
export declare function ActivityRendererId(id: guid): ActivityRendererId;
|
|
6
6
|
export interface ActivityRendererReference {
|
|
7
7
|
id: ActivityRendererId;
|
|
8
8
|
version: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { guid } from "../../Guid";
|
|
2
2
|
import { Id } from "../../Id";
|
|
3
|
-
export type TemporaryFileId = Id<
|
|
4
|
-
export declare function TemporaryFileId(id:
|
|
3
|
+
export type TemporaryFileId = Id<guid, "TemporaryFileId">;
|
|
4
|
+
export declare function TemporaryFileId(id: guid): TemporaryFileId;
|
package/internal-do-not-import-from-here/shared/models/hub/targeting/ExternalIdentityProperty.js
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.HubExternalIdentityProperty = void 0;
|
|
4
|
-
const Guid_1 = require("../../Guid");
|
|
5
4
|
const HubSource_1 = require("./HubSource");
|
|
6
5
|
class HubExternalIdentityProperty {
|
|
7
6
|
constructor(externalIdentityId) {
|
|
8
7
|
this.externalIdentityId = externalIdentityId;
|
|
9
8
|
}
|
|
10
9
|
get propertySourceId() {
|
|
11
|
-
return
|
|
10
|
+
return HubSource_1.HubSource.Id;
|
|
12
11
|
}
|
|
13
12
|
get name() {
|
|
14
13
|
return "identity";
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.HubSource = void 0;
|
|
4
|
+
const Guid_1 = require("../../Guid");
|
|
4
5
|
class HubSource {
|
|
5
|
-
static { this.Id = "eb4fde5f-4f3e-4c70-9893-3d9e048fda0c"; }
|
|
6
|
+
static { this.Id = (0, Guid_1.guid)("eb4fde5f-4f3e-4c70-9893-3d9e048fda0c"); }
|
|
6
7
|
}
|
|
7
8
|
exports.HubSource = HubSource;
|
|
@@ -4,7 +4,7 @@ import { TypographyValue } from "./Typography";
|
|
|
4
4
|
export interface BoxDimensions extends Spacing {
|
|
5
5
|
}
|
|
6
6
|
import { TypographyBlueprint } from "./Typography";
|
|
7
|
-
import {
|
|
7
|
+
import { guid, VelcronAppDefinition, VelcronRendererReference } from "@omnia/fx-models";
|
|
8
8
|
export interface Blueprints {
|
|
9
9
|
name?: string;
|
|
10
10
|
}
|
|
@@ -36,7 +36,7 @@ export interface ChromeBlueprint {
|
|
|
36
36
|
name?: string;
|
|
37
37
|
colorSchemaType?: ColorSchemaType;
|
|
38
38
|
header?: {
|
|
39
|
-
definitionId:
|
|
39
|
+
definitionId: guid;
|
|
40
40
|
definition?: VelcronAppDefinition;
|
|
41
41
|
};
|
|
42
42
|
styles: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { guid } from "../Guid";
|
|
2
2
|
import { BoxDimensions, ButtonBlueprint, ComponentBlueprints, SpacingBlueprints, TypographyBlueprints } from "./Blueprints";
|
|
3
3
|
export type ThemeContextType = "default" | "admin" | "preview" | "color-context" | "designer";
|
|
4
4
|
export interface ColorTypeResult<resultType> {
|
|
@@ -43,7 +43,7 @@ export interface ColorSchemas extends ColorSchemasReference {
|
|
|
43
43
|
notification: ColorSchema;
|
|
44
44
|
}
|
|
45
45
|
export interface BlueprintsReference {
|
|
46
|
-
id:
|
|
46
|
+
id: guid;
|
|
47
47
|
}
|
|
48
48
|
export interface ColorSchemasReference {
|
|
49
49
|
primary: BlueprintsReference;
|
|
@@ -59,7 +59,7 @@ export interface ColorSchemasReference {
|
|
|
59
59
|
notification: BlueprintsReference;
|
|
60
60
|
}
|
|
61
61
|
export interface ThemeDefinitionReference {
|
|
62
|
-
id:
|
|
62
|
+
id: guid;
|
|
63
63
|
name?: string;
|
|
64
64
|
colors: ColorSchemasReference;
|
|
65
65
|
typography: BlueprintsReference;
|
|
@@ -73,7 +73,7 @@ export interface ThemeDefinitionV2 extends ThemeDefinitionReference {
|
|
|
73
73
|
components: ComponentBlueprints;
|
|
74
74
|
}
|
|
75
75
|
export interface ITemplateRegistration<TTemplateType = any> {
|
|
76
|
-
id:
|
|
76
|
+
id: guid;
|
|
77
77
|
template: TTemplateType;
|
|
78
78
|
hidden?: boolean;
|
|
79
79
|
custom?: boolean;
|
|
@@ -81,7 +81,7 @@ export interface ITemplateRegistration<TTemplateType = any> {
|
|
|
81
81
|
export type TemplateRegistrationType = "button" | "fill" | "border" | "tabs" | "chrome" | "chromes" | "components" | "spacings" | "spacing" | "typography" | "icons" | "colorschema" | "theme";
|
|
82
82
|
export interface ITemplateRegistration<TTemplateType = any, TType = TemplateRegistrationType> {
|
|
83
83
|
type: TemplateRegistrationType;
|
|
84
|
-
id:
|
|
84
|
+
id: guid;
|
|
85
85
|
template: TTemplateType;
|
|
86
86
|
hidden?: boolean;
|
|
87
87
|
custom?: boolean;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { guid } from "../Guid";
|
|
2
2
|
import { FillDefinition } from "./ThemeDefinitionV2";
|
|
3
3
|
export interface TypographyBlueprint {
|
|
4
4
|
name: string;
|
|
5
5
|
font?: {
|
|
6
|
-
id:
|
|
6
|
+
id: guid;
|
|
7
7
|
family: string;
|
|
8
8
|
cdn?: string;
|
|
9
9
|
};
|
|
@@ -19,7 +19,7 @@ export interface TypographyBlueprint {
|
|
|
19
19
|
s: TypographyDefinition;
|
|
20
20
|
xs: TypographyDefinition;
|
|
21
21
|
font?: {
|
|
22
|
-
id:
|
|
22
|
+
id: guid;
|
|
23
23
|
family: string;
|
|
24
24
|
cdn?: string;
|
|
25
25
|
};
|
|
@@ -30,7 +30,7 @@ export interface TypographyBlueprint {
|
|
|
30
30
|
s: TypographyDefinition;
|
|
31
31
|
xs: TypographyDefinition;
|
|
32
32
|
font?: {
|
|
33
|
-
id:
|
|
33
|
+
id: guid;
|
|
34
34
|
family: string;
|
|
35
35
|
cdn?: string;
|
|
36
36
|
};
|
|
@@ -39,7 +39,7 @@ export interface TypographyBlueprint {
|
|
|
39
39
|
l: TypographyDefinition;
|
|
40
40
|
m: TypographyDefinition;
|
|
41
41
|
font?: {
|
|
42
|
-
id:
|
|
42
|
+
id: guid;
|
|
43
43
|
family: string;
|
|
44
44
|
cdn?: string;
|
|
45
45
|
};
|
|
@@ -47,7 +47,7 @@ export interface TypographyBlueprint {
|
|
|
47
47
|
link: {
|
|
48
48
|
m: TypographyDefinition;
|
|
49
49
|
font?: {
|
|
50
|
-
id:
|
|
50
|
+
id: guid;
|
|
51
51
|
family: string;
|
|
52
52
|
cdn?: string;
|
|
53
53
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { guid } from "../Guid";
|
|
2
2
|
import { Id } from "../Id";
|
|
3
3
|
import { VelcronAppDefinition } from "./VelcronDefinition";
|
|
4
|
-
export type VelcronRendererId = Id<
|
|
5
|
-
export declare function VelcronRendererId(id:
|
|
4
|
+
export type VelcronRendererId = Id<guid, "VelcronRendererId">;
|
|
5
|
+
export declare function VelcronRendererId(id: guid): VelcronRendererId;
|
|
6
6
|
export interface VelcronRendererResolverReference {
|
|
7
7
|
id: VelcronRendererId;
|
|
8
8
|
resolver: string;
|
|
@@ -2,7 +2,7 @@ import { VelcronOnUpdatedEvent, VelcronOnClosedEvent, VelcronOnCloseRequestedEve
|
|
|
2
2
|
import { VelcroncomponentArrayType, VelcronPrimitiveType } from "./VelcronTypes";
|
|
3
3
|
import { AssignOperators, VelcronHorizontalAlignments, VelcronIconTypes, VelcronActionTypes, VelcronVerticalAlignments } from "./Enums";
|
|
4
4
|
import { DynamicState, VelcronDefinition, VelcronEffects, useVelcronThemingStore } from "..";
|
|
5
|
-
import {
|
|
5
|
+
import { guid, PropertyConfiguration, PropertyValue, PropertyDefinition, PropertySetupBase } from "@omnia/fx/models";
|
|
6
6
|
import { useVelcronColorSchemaStore } from "../stores/VelcronColorSchema";
|
|
7
7
|
export interface ResolvedComponentRenderer {
|
|
8
8
|
component: unknown;
|
|
@@ -69,7 +69,7 @@ export interface VelcronRenderContext {
|
|
|
69
69
|
disposers: Array<() => void>;
|
|
70
70
|
baseDefinition?: VelcronAppDefinition;
|
|
71
71
|
subApp?: boolean;
|
|
72
|
-
subAppreferenceId?:
|
|
72
|
+
subAppreferenceId?: guid;
|
|
73
73
|
}
|
|
74
74
|
export interface VelcronRenderContextEventHandlers {
|
|
75
75
|
receiving?: {
|
|
@@ -366,7 +366,7 @@ export interface VelcronRadioDefinition extends VelcronDefinition {
|
|
|
366
366
|
events: VelcronOnUpdatedEvent;
|
|
367
367
|
}
|
|
368
368
|
export interface VelcronPropertyDefinitionValue {
|
|
369
|
-
definitionId:
|
|
369
|
+
definitionId: guid;
|
|
370
370
|
value: PropertyValue;
|
|
371
371
|
configuration: PropertyConfiguration<PropertyDefinition<any, any, any, PropertySetupBase>>;
|
|
372
372
|
}
|
package/package.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ColorDefinition, ColorSchema, ColorSchemaType, ColorSchemaTypes } from "@omnia/fx-models";
|
|
1
|
+
import { ColorDefinition, ColorSchema, ColorSchemaType, ColorSchemaTypes, guid } from "@omnia/fx-models";
|
|
2
2
|
import { useVelcronThemingStore } from ".";
|
|
3
3
|
export declare const useVelcronColorSchemaStore: (newStateWithName?: string) => {
|
|
4
4
|
state: {
|
|
@@ -9,7 +9,7 @@ export declare const useVelcronColorSchemaStore: (newStateWithName?: string) =>
|
|
|
9
9
|
isContainer: boolean;
|
|
10
10
|
name: string;
|
|
11
11
|
colorSchemaType: "background" | "primary" | "secondary" | ColorSchemaTypes | "accent1" | "accent2" | "accent3" | "neutral" | "warning" | "notification" | "error" | "info" | "dynamic";
|
|
12
|
-
id:
|
|
12
|
+
id: guid;
|
|
13
13
|
};
|
|
14
14
|
get: {
|
|
15
15
|
readonly colorSchema: ColorSchema;
|
|
@@ -14,7 +14,7 @@ exports.useVelcronColorSchemaStore = (0, _1.defineVelcronStore)("ColorSchemaStor
|
|
|
14
14
|
isContainer: false,
|
|
15
15
|
name: (0, fx_models_1.valueOf)(""),
|
|
16
16
|
colorSchemaType: fx_models_1.ColorSchemaTypes.background,
|
|
17
|
-
id: fx_models_1.
|
|
17
|
+
id: (0, fx_models_1.guid)(),
|
|
18
18
|
},
|
|
19
19
|
//The private state is not reactive that means it will not trigger re-rendering of the component
|
|
20
20
|
privateState: {
|