@omnia/fx-models 8.0.25-vnext → 8.0.26-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/Enums.d.ts +5 -0
- package/Enums.js +7 -1
- package/Exposes.d.ts +1 -0
- package/Exposes.js +1 -0
- package/ManifestIds.d.ts +1 -0
- package/ManifestIds.js +3 -0
- package/componentproptypes/ThemeableComponents.d.ts +2 -0
- package/internal-do-not-import-from-here/shared/models/theming/BlueprintDefinition.d.ts +31 -22
- package/internal-do-not-import-from-here/shared/models/theming/BlueprintDefinition.js +11 -0
- package/internal-do-not-import-from-here/shared/models/theming/UseThemeMethods.d.ts +1 -1
- package/internal-do-not-import-from-here/shared/models/theming/UseThemeMethods.js +9 -8
- package/internal-do-not-import-from-here/shared/models/theming/index.d.ts +1 -0
- package/internal-do-not-import-from-here/shared/models/theming/index.js +1 -0
- package/internal-do-not-import-from-here/velcron/core/models/Enums.d.ts +1 -16
- package/internal-do-not-import-from-here/velcron/core/models/Enums.js +7 -24
- package/internal-do-not-import-from-here/velcron/core/models/VelcronDefinitions.d.ts +37 -27
- package/internal-do-not-import-from-here/velcron/core/models/index.d.ts +0 -1
- package/internal-do-not-import-from-here/velcron/core/models/index.js +0 -1
- package/package.json +1 -1
- package/velcron/VelcronDefinitionRegistration.d.ts +6 -0
- package/velcron/index.d.ts +1 -0
- package/velcron/index.js +4 -0
- package/internal-do-not-import-from-here/velcron/core/models/VelcronDescriptors.d.ts +0 -34
- /package/{internal-do-not-import-from-here/velcron/core/models/VelcronDescriptors.js → velcron/VelcronDefinitionRegistration.js} +0 -0
package/Enums.d.ts
CHANGED
|
@@ -625,6 +625,11 @@ export declare enum HorizontalAlignments {
|
|
|
625
625
|
center = 1,
|
|
626
626
|
right = 2
|
|
627
627
|
}
|
|
628
|
+
export declare enum VerticalAlignments {
|
|
629
|
+
top = 0,
|
|
630
|
+
center = 1,
|
|
631
|
+
bottom = 2
|
|
632
|
+
}
|
|
628
633
|
export declare enum LayoutDrawerTabs {
|
|
629
634
|
settings = 0,
|
|
630
635
|
structure = 1,
|
package/Enums.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ButtonTooltipPosition = exports.RichTextModes = exports.TimePeriodTypes = exports.TargetUser = exports.RedirectRuleType = exports.MultilingualScopes = exports.OmniaRoleTypes = exports.TargetResolverTypes = exports.PermissionRoles = exports.TimeFormats = exports.CompareBusinessProfilePathType = exports.StatusMessageOverlayType = exports.HttpStatusCode = exports.QueueMessageStatus = exports.StaticEndpoint = exports.ThemeType = exports.FeatureInstanceStatus = exports.RoleDefinitions = exports.Parameters = exports.ParamTypes = exports.PropertyIndexedType = exports.UserPickingType = exports.PrincipalTypes = exports.AppInstanceScopedQueryTypes = exports.AppInstanceStatus = exports.VideoRatio = exports.AdminNavigationBuiltInCategory = exports.AdminVisibility = exports.AuthenticationValidationStatuses = exports.IconSources = exports.IconTypes = exports.LocaleNames = exports.LanguageTags = exports.BundleTargetTypes = exports.ServerManifestTypes = exports.ClientManifestTypes = exports.RuleLogicalOperator = exports.ResourceEvaluators = exports.ConsoleStateStorageMessageTypes = exports.ConsoleMessageTypes = exports.LogLevels = exports.ManifestLoadStatus = exports.LogSources = exports.AppTemplatePermissionLevel = exports.SecurityAccessType = exports.SecurityIdentities = exports.SecurityRoleScopes = exports.SecurityProviderTypes = exports.BuiltInAppInstanceInternalNames = exports.BuiltInEnterprisePropertyInternalNames = void 0;
|
|
4
|
-
exports.CookieKeys = exports.LocalServingMessageType = exports.DisplayBreakpointCodes = exports.OmniaMimeType = exports.IdentityUserIdTypeMatch = exports.OmniaClientRuntimes = exports.OmniaBackendRuntimes = exports.PropertyEditModeElementNameType = exports.DirectionRules = exports.MediaPickerEnums = exports.PropertyArchiveType = exports.ImageSources = exports.IconSizes = exports.BlockRenderingModes = exports.LayoutCanvasModes = exports.ChromeTypes = exports.LayoutItemActions = exports.LayoutEditorModes = exports.TabbedDisplayModes = exports.TabbedIconPositions = exports.Positions = exports.BorderPositions = exports.IconPositions = exports.TextAlignment = exports.LayoutItemTypes = exports.RadialGradientShapes = exports.LayoutDrawerTabs = exports.HorizontalAlignments = exports.BladeSizes = exports.ImageResolution = exports.ServiceLocatorUrlType = exports.AppInstanceAction = exports.VDataGridHeaderType = exports.VDataGridHeaderAlign = exports.ButtonSizes = exports.ButtonModes = exports.ButtonIconPosition = void 0;
|
|
4
|
+
exports.CookieKeys = exports.LocalServingMessageType = exports.DisplayBreakpointCodes = exports.OmniaMimeType = exports.IdentityUserIdTypeMatch = exports.OmniaClientRuntimes = exports.OmniaBackendRuntimes = exports.PropertyEditModeElementNameType = exports.DirectionRules = exports.MediaPickerEnums = exports.PropertyArchiveType = exports.ImageSources = exports.IconSizes = exports.BlockRenderingModes = exports.LayoutCanvasModes = exports.ChromeTypes = exports.LayoutItemActions = exports.LayoutEditorModes = exports.TabbedDisplayModes = exports.TabbedIconPositions = exports.Positions = exports.BorderPositions = exports.IconPositions = exports.TextAlignment = exports.LayoutItemTypes = exports.RadialGradientShapes = exports.LayoutDrawerTabs = exports.VerticalAlignments = exports.HorizontalAlignments = exports.BladeSizes = exports.ImageResolution = exports.ServiceLocatorUrlType = exports.AppInstanceAction = exports.VDataGridHeaderType = exports.VDataGridHeaderAlign = exports.ButtonSizes = exports.ButtonModes = exports.ButtonIconPosition = void 0;
|
|
5
5
|
var BuiltInEnterprisePropertyInternalNames;
|
|
6
6
|
(function (BuiltInEnterprisePropertyInternalNames) {
|
|
7
7
|
BuiltInEnterprisePropertyInternalNames["Title"] = "title";
|
|
@@ -558,6 +558,12 @@ var HorizontalAlignments;
|
|
|
558
558
|
HorizontalAlignments[HorizontalAlignments["center"] = 1] = "center";
|
|
559
559
|
HorizontalAlignments[HorizontalAlignments["right"] = 2] = "right";
|
|
560
560
|
})(HorizontalAlignments = exports.HorizontalAlignments || (exports.HorizontalAlignments = {}));
|
|
561
|
+
var VerticalAlignments;
|
|
562
|
+
(function (VerticalAlignments) {
|
|
563
|
+
VerticalAlignments[VerticalAlignments["top"] = 0] = "top";
|
|
564
|
+
VerticalAlignments[VerticalAlignments["center"] = 1] = "center";
|
|
565
|
+
VerticalAlignments[VerticalAlignments["bottom"] = 2] = "bottom";
|
|
566
|
+
})(VerticalAlignments = exports.VerticalAlignments || (exports.VerticalAlignments = {}));
|
|
561
567
|
var LayoutDrawerTabs;
|
|
562
568
|
(function (LayoutDrawerTabs) {
|
|
563
569
|
LayoutDrawerTabs[LayoutDrawerTabs["settings"] = 0] = "settings";
|
package/Exposes.d.ts
CHANGED
|
@@ -117,6 +117,7 @@ export * from "./sidepanel";
|
|
|
117
117
|
export * from "./componentproptypes";
|
|
118
118
|
export * from "./oxide";
|
|
119
119
|
export * from "./docs";
|
|
120
|
+
export * from "./velcron";
|
|
120
121
|
export * from "./FilePicker";
|
|
121
122
|
export * from "./FileIdentifier";
|
|
122
123
|
export * from "./UserAgent";
|
package/Exposes.js
CHANGED
|
@@ -129,6 +129,7 @@ tslib_1.__exportStar(require("./sidepanel"), exports);
|
|
|
129
129
|
tslib_1.__exportStar(require("./componentproptypes"), exports);
|
|
130
130
|
tslib_1.__exportStar(require("./oxide"), exports);
|
|
131
131
|
tslib_1.__exportStar(require("./docs"), exports);
|
|
132
|
+
tslib_1.__exportStar(require("./velcron"), exports);
|
|
132
133
|
//************************************************************************************ */
|
|
133
134
|
// End of folder exports
|
|
134
135
|
//************************************************************************************ */
|
package/ManifestIds.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ export declare class OmniaGroupManifests {
|
|
|
11
11
|
static get LayoutCanvasGroup(): Guid;
|
|
12
12
|
}
|
|
13
13
|
export declare class OmniaResourceManifests {
|
|
14
|
+
static get ProsemirrorPackage(): Guid;
|
|
14
15
|
static get AuthSetupCore(): Guid;
|
|
15
16
|
static get LayoutCanvasShared(): Guid;
|
|
16
17
|
static get AwesomeProFont(): Guid;
|
package/ManifestIds.js
CHANGED
|
@@ -30,6 +30,9 @@ class OmniaGroupManifests {
|
|
|
30
30
|
}
|
|
31
31
|
exports.OmniaGroupManifests = OmniaGroupManifests;
|
|
32
32
|
class OmniaResourceManifests {
|
|
33
|
+
static get ProsemirrorPackage() {
|
|
34
|
+
return new models_1.Guid("3fa51aee-4528-4427-8ad5-376c94724d01");
|
|
35
|
+
}
|
|
33
36
|
static get AuthSetupCore() {
|
|
34
37
|
return new models_1.Guid("c81aa87a-50f1-4eb4-9c9d-0dc6ede5cd91");
|
|
35
38
|
}
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
+
import { SpacingSettings } from "@omnia/fx-models";
|
|
1
2
|
import { Guid } from "../Guid";
|
|
3
|
+
import { ColorSchemaType, ColorSchemaTypes } from "./ThemeDefinitionV2";
|
|
2
4
|
import { TypographyDefinition } from "./TypographyDefinition";
|
|
3
|
-
export interface BoxDimensions {
|
|
4
|
-
top: number;
|
|
5
|
-
right: number;
|
|
6
|
-
bottom: number;
|
|
7
|
-
left: number;
|
|
5
|
+
export interface BoxDimensions extends SpacingSettings {
|
|
8
6
|
}
|
|
9
7
|
export interface BoxBorder extends BoxDimensions {
|
|
10
8
|
color: string;
|
|
@@ -15,24 +13,35 @@ export interface BluePrintDefinitions {
|
|
|
15
13
|
variant2: BlueprintDefinition;
|
|
16
14
|
variant3: BlueprintDefinition;
|
|
17
15
|
}
|
|
18
|
-
export
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
16
|
+
export type WebBlueprintDefintionType = "button" | "block" | "typography";
|
|
17
|
+
export declare enum WebBlueprintDefintionTypes {
|
|
18
|
+
button = "button",
|
|
19
|
+
block = "block",
|
|
20
|
+
typography = "typography"
|
|
21
|
+
}
|
|
22
|
+
export type VelcronBlueprintDefintionType = "button";
|
|
23
|
+
export declare enum VelcronBlueprintDefintionTypes {
|
|
24
|
+
button = "button"
|
|
25
|
+
}
|
|
26
|
+
export interface BlueprintItemDefinition {
|
|
27
|
+
type: any;
|
|
28
|
+
}
|
|
29
|
+
export interface BlockBlueprint extends BlueprintItemDefinition {
|
|
30
|
+
header?: {
|
|
31
|
+
definitionId: Guid;
|
|
30
32
|
};
|
|
31
|
-
|
|
32
|
-
|
|
33
|
+
colors?: {
|
|
34
|
+
colorSchemaType: ColorSchemaTypes | ColorSchemaType;
|
|
33
35
|
};
|
|
34
|
-
|
|
35
|
-
borderRadius
|
|
36
|
-
|
|
36
|
+
styles?: {
|
|
37
|
+
borderRadius: BoxDimensions;
|
|
38
|
+
border: BoxBorder;
|
|
37
39
|
};
|
|
38
40
|
}
|
|
41
|
+
export interface TypographyBlueprint extends BlueprintItemDefinition {
|
|
42
|
+
definition: TypographyDefinition;
|
|
43
|
+
}
|
|
44
|
+
export interface BlueprintDefinition {
|
|
45
|
+
id: Guid;
|
|
46
|
+
definitions: Array<BlueprintItemDefinition>;
|
|
47
|
+
}
|
|
@@ -1,2 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.VelcronBlueprintDefintionTypes = exports.WebBlueprintDefintionTypes = void 0;
|
|
4
|
+
var WebBlueprintDefintionTypes;
|
|
5
|
+
(function (WebBlueprintDefintionTypes) {
|
|
6
|
+
WebBlueprintDefintionTypes["button"] = "button";
|
|
7
|
+
WebBlueprintDefintionTypes["block"] = "block";
|
|
8
|
+
WebBlueprintDefintionTypes["typography"] = "typography";
|
|
9
|
+
})(WebBlueprintDefintionTypes = exports.WebBlueprintDefintionTypes || (exports.WebBlueprintDefintionTypes = {}));
|
|
10
|
+
var VelcronBlueprintDefintionTypes;
|
|
11
|
+
(function (VelcronBlueprintDefintionTypes) {
|
|
12
|
+
VelcronBlueprintDefintionTypes["button"] = "button";
|
|
13
|
+
})(VelcronBlueprintDefintionTypes = exports.VelcronBlueprintDefintionTypes || (exports.VelcronBlueprintDefintionTypes = {}));
|
|
@@ -4,7 +4,7 @@ import { TypographyType, TypographyTypeDefinition, TypographyTypes } from "./Typ
|
|
|
4
4
|
export declare const useThemeMethods: (getThemeDefinition: () => ThemeDefinitionInstance) => {
|
|
5
5
|
colorSchema: (colorSchemaType: ColorSchemaTypes | ColorSchemaType) => import("./ThemeDefinitionV2").ColorSchema;
|
|
6
6
|
blueprint: (blueprintType: BlueprintTypes | BlueprintType) => import("./BlueprintDefinition").BlueprintDefinition;
|
|
7
|
-
typography: (typographyType: TypographyTypes | TypographyType) => TypographyTypeDefinition;
|
|
7
|
+
typography: (blueprintType: BlueprintTypes | BlueprintType, typographyType: TypographyTypes | TypographyType) => TypographyTypeDefinition;
|
|
8
8
|
color: (colorSchemaType: ColorSchemaTypes | ColorSchemaType, colorType: ColorTypes | ColorType) => string;
|
|
9
9
|
colorDefinition: (colorSchemaType: ColorSchemaTypes | ColorSchemaType, colorType: ColorTypes | ColorType) => ColorDefinition;
|
|
10
10
|
complementaryColorType: (colorType: ColorTypes | ColorType) => ColorTypes;
|
|
@@ -46,26 +46,27 @@ const useThemeMethods = (getThemeDefinition) => {
|
|
|
46
46
|
}
|
|
47
47
|
return getThemeDefinition().blueprints.default;
|
|
48
48
|
};
|
|
49
|
-
const typography = (typographyType) => {
|
|
49
|
+
const typography = (blueprintType, typographyType) => {
|
|
50
|
+
const typographyBlueprint = getThemeDefinition().blueprints[blueprintType].definitions.find(d => d.type === "typography");
|
|
50
51
|
if (typographyType === TypographyDefinition_1.TypographyTypes.h1) {
|
|
51
|
-
return
|
|
52
|
+
return typographyBlueprint.definition.h1;
|
|
52
53
|
}
|
|
53
54
|
else if (typographyType === TypographyDefinition_1.TypographyTypes.h2) {
|
|
54
|
-
return
|
|
55
|
+
return typographyBlueprint.definition.h2;
|
|
55
56
|
}
|
|
56
57
|
else if (typographyType === TypographyDefinition_1.TypographyTypes.h3) {
|
|
57
|
-
return
|
|
58
|
+
return typographyBlueprint.definition.h3;
|
|
58
59
|
}
|
|
59
60
|
else if (typographyType === TypographyDefinition_1.TypographyTypes.caption) {
|
|
60
|
-
return
|
|
61
|
+
return typographyBlueprint.definition.caption;
|
|
61
62
|
}
|
|
62
63
|
else if (typographyType === TypographyDefinition_1.TypographyTypes.link) {
|
|
63
|
-
return
|
|
64
|
+
return typographyBlueprint.definition.link;
|
|
64
65
|
}
|
|
65
66
|
else if (typographyType === TypographyDefinition_1.TypographyTypes.text) {
|
|
66
|
-
return
|
|
67
|
+
return typographyBlueprint.definition.text;
|
|
67
68
|
}
|
|
68
|
-
return
|
|
69
|
+
return typographyBlueprint.definition.text;
|
|
69
70
|
};
|
|
70
71
|
const color = (colorSchemaType, colorType) => {
|
|
71
72
|
const mappedColorSchema = colorSchema(colorSchemaType);
|
|
@@ -5,3 +5,4 @@ tslib_1.__exportStar(require("./ThemeDefinitionV2"), exports);
|
|
|
5
5
|
tslib_1.__exportStar(require("./TypographyDefinition"), exports);
|
|
6
6
|
tslib_1.__exportStar(require("./OmniaThemes"), exports);
|
|
7
7
|
tslib_1.__exportStar(require("./UseThemeMethods"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./BlueprintDefinition"), exports);
|
|
@@ -21,26 +21,11 @@ export declare enum VelcronHorizontalAlignments {
|
|
|
21
21
|
center = "center",
|
|
22
22
|
right = "right"
|
|
23
23
|
}
|
|
24
|
-
export declare enum
|
|
24
|
+
export declare enum VelcronVerticalAlignments {
|
|
25
25
|
top = "top",
|
|
26
26
|
center = "center",
|
|
27
27
|
bottom = "bottom"
|
|
28
28
|
}
|
|
29
|
-
export declare enum VelcronDescriptorTypes {
|
|
30
|
-
component = 0,
|
|
31
|
-
subComponent = 1,
|
|
32
|
-
appData = 2,
|
|
33
|
-
dataMember = 3
|
|
34
|
-
}
|
|
35
|
-
export declare enum VelcronComponentPropertyEditors {
|
|
36
|
-
text = 0,
|
|
37
|
-
colorSchemaPicker = 1,
|
|
38
|
-
slider = 2,
|
|
39
|
-
colorPicker = 3,
|
|
40
|
-
typographyPicker = 4,
|
|
41
|
-
ratioPicker = 5,
|
|
42
|
-
booleanPicker = 6
|
|
43
|
-
}
|
|
44
29
|
export declare enum VelcronDataTypes {
|
|
45
30
|
unknown = "unknown",
|
|
46
31
|
object = "object",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.VelcronDataTypes = exports.
|
|
3
|
+
exports.VelcronDataTypes = exports.VelcronVerticalAlignments = exports.VelcronHorizontalAlignments = exports.VelcronIconTypes = exports.VelcronActionTypes = exports.AssignOperators = void 0;
|
|
4
4
|
var AssignOperators;
|
|
5
5
|
(function (AssignOperators) {
|
|
6
6
|
AssignOperators["equals"] = "=";
|
|
@@ -28,29 +28,12 @@ var VelcronHorizontalAlignments;
|
|
|
28
28
|
VelcronHorizontalAlignments["center"] = "center";
|
|
29
29
|
VelcronHorizontalAlignments["right"] = "right";
|
|
30
30
|
})(VelcronHorizontalAlignments = exports.VelcronHorizontalAlignments || (exports.VelcronHorizontalAlignments = {}));
|
|
31
|
-
var
|
|
32
|
-
(function (
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
})(
|
|
37
|
-
var VelcronDescriptorTypes;
|
|
38
|
-
(function (VelcronDescriptorTypes) {
|
|
39
|
-
VelcronDescriptorTypes[VelcronDescriptorTypes["component"] = 0] = "component";
|
|
40
|
-
VelcronDescriptorTypes[VelcronDescriptorTypes["subComponent"] = 1] = "subComponent";
|
|
41
|
-
VelcronDescriptorTypes[VelcronDescriptorTypes["appData"] = 2] = "appData";
|
|
42
|
-
VelcronDescriptorTypes[VelcronDescriptorTypes["dataMember"] = 3] = "dataMember";
|
|
43
|
-
})(VelcronDescriptorTypes = exports.VelcronDescriptorTypes || (exports.VelcronDescriptorTypes = {}));
|
|
44
|
-
var VelcronComponentPropertyEditors;
|
|
45
|
-
(function (VelcronComponentPropertyEditors) {
|
|
46
|
-
VelcronComponentPropertyEditors[VelcronComponentPropertyEditors["text"] = 0] = "text";
|
|
47
|
-
VelcronComponentPropertyEditors[VelcronComponentPropertyEditors["colorSchemaPicker"] = 1] = "colorSchemaPicker";
|
|
48
|
-
VelcronComponentPropertyEditors[VelcronComponentPropertyEditors["slider"] = 2] = "slider";
|
|
49
|
-
VelcronComponentPropertyEditors[VelcronComponentPropertyEditors["colorPicker"] = 3] = "colorPicker";
|
|
50
|
-
VelcronComponentPropertyEditors[VelcronComponentPropertyEditors["typographyPicker"] = 4] = "typographyPicker";
|
|
51
|
-
VelcronComponentPropertyEditors[VelcronComponentPropertyEditors["ratioPicker"] = 5] = "ratioPicker";
|
|
52
|
-
VelcronComponentPropertyEditors[VelcronComponentPropertyEditors["booleanPicker"] = 6] = "booleanPicker";
|
|
53
|
-
})(VelcronComponentPropertyEditors = exports.VelcronComponentPropertyEditors || (exports.VelcronComponentPropertyEditors = {}));
|
|
31
|
+
var VelcronVerticalAlignments;
|
|
32
|
+
(function (VelcronVerticalAlignments) {
|
|
33
|
+
VelcronVerticalAlignments["top"] = "top";
|
|
34
|
+
VelcronVerticalAlignments["center"] = "center";
|
|
35
|
+
VelcronVerticalAlignments["bottom"] = "bottom";
|
|
36
|
+
})(VelcronVerticalAlignments = exports.VelcronVerticalAlignments || (exports.VelcronVerticalAlignments = {}));
|
|
54
37
|
var VelcronDataTypes;
|
|
55
38
|
(function (VelcronDataTypes) {
|
|
56
39
|
//Unknown = null
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { VelcronComponentDescriptor } from "
|
|
1
|
+
import { VelcronComponentDescriptor } from "../../editor/models/VelcronDescriptors";
|
|
2
2
|
import { VelcronEvent, VelcronOnChangedEvent, VelcronOnClosedEvent, VelcronOnCloseRequestedEvent, VelcronOnLoadEvent, VelcronOnPressEvent } from "./VelcronEvents";
|
|
3
3
|
import { VelcroncomponentArrayType, VelcronPrimitiveType } from "./VelcronTypes";
|
|
4
|
-
import { AssignOperators, VelcronHorizontalAlignments, VelcronIconTypes, VelcronActionTypes,
|
|
4
|
+
import { AssignOperators, VelcronHorizontalAlignments, VelcronIconTypes, VelcronActionTypes, VelcronVerticalAlignments } from "./Enums";
|
|
5
5
|
import { useVelcronThemingStore } from "..";
|
|
6
6
|
import { useVelcronColorSchemaStore } from "../stores/VelcronColorSchema";
|
|
7
7
|
export interface ResolvedComponentRenderer {
|
|
@@ -22,6 +22,7 @@ export interface BuiltInComponentRenderers {
|
|
|
22
22
|
"Dialog": unknown;
|
|
23
23
|
"Icon": unknown;
|
|
24
24
|
"Chip": unknown;
|
|
25
|
+
"Markdown": unknown;
|
|
25
26
|
}
|
|
26
27
|
export interface ColorSchemaReference {
|
|
27
28
|
name: string;
|
|
@@ -66,6 +67,7 @@ export interface VelcronRenderContextHooks {
|
|
|
66
67
|
dialogVisibilityChanged?: ((visible: boolean) => void);
|
|
67
68
|
onItemSelected?: ((item: VelcronDefinition) => void);
|
|
68
69
|
onItemRendered?: ((item: VelcronDefinition) => OnItemRenderedHookResult);
|
|
70
|
+
onItemCreatedProps?: ((item: VelcronDefinition) => object);
|
|
69
71
|
}
|
|
70
72
|
export interface VelcronContainerRenderer {
|
|
71
73
|
definition: VelcronDefinition;
|
|
@@ -107,13 +109,6 @@ export interface VelcronDefinitionBase {
|
|
|
107
109
|
*/
|
|
108
110
|
key?: string;
|
|
109
111
|
}
|
|
110
|
-
export interface VelcronColorStyling {
|
|
111
|
-
colorSchemaType?: string;
|
|
112
|
-
color?: string;
|
|
113
|
-
filled?: boolean;
|
|
114
|
-
container?: boolean;
|
|
115
|
-
toned?: boolean;
|
|
116
|
-
}
|
|
117
112
|
export interface VelcronDefinition extends VelcronDefinitionBase {
|
|
118
113
|
body?: Array<VelcronDefinition>;
|
|
119
114
|
style?: VelcronStyling;
|
|
@@ -121,6 +116,13 @@ export interface VelcronDefinition extends VelcronDefinitionBase {
|
|
|
121
116
|
if?: string;
|
|
122
117
|
events?: VelcronEvent;
|
|
123
118
|
}
|
|
119
|
+
export interface VelcronColorStyling {
|
|
120
|
+
colorSchemaType?: string;
|
|
121
|
+
color?: string;
|
|
122
|
+
filled?: boolean;
|
|
123
|
+
container?: boolean;
|
|
124
|
+
toned?: boolean;
|
|
125
|
+
}
|
|
124
126
|
export interface VelcronStyling {
|
|
125
127
|
margin?: number;
|
|
126
128
|
marginTop?: number;
|
|
@@ -150,6 +152,8 @@ export interface VelcronIcon {
|
|
|
150
152
|
}
|
|
151
153
|
export interface VelcronAppDefinition extends VelcronDefinitionBase {
|
|
152
154
|
type: "Velcron";
|
|
155
|
+
version: string;
|
|
156
|
+
name: string;
|
|
153
157
|
body?: Array<VelcronDefinition>;
|
|
154
158
|
events?: VelcronOnLoadEvent & VelcronOnPressEvent;
|
|
155
159
|
actions?: {
|
|
@@ -168,11 +172,20 @@ export interface VelcronComponentDefinition extends VelcronDefinition {
|
|
|
168
172
|
/*** Built-in Components *********************************************************************/
|
|
169
173
|
export interface VelcronViewDefinition extends VelcronDefinition {
|
|
170
174
|
type: "View";
|
|
171
|
-
|
|
175
|
+
color?: VelcronColorStyling;
|
|
172
176
|
events?: VelcronOnPressEvent;
|
|
177
|
+
column?: boolean;
|
|
178
|
+
columnStyle?: object;
|
|
179
|
+
horizontalAlignment?: VelcronHorizontalAlignments;
|
|
180
|
+
verticalAlignment?: VelcronVerticalAlignments;
|
|
181
|
+
grow?: number;
|
|
182
|
+
border?: VelcronBorder;
|
|
183
|
+
borderRadius?: VelcronDimensions;
|
|
184
|
+
width?: string;
|
|
173
185
|
}
|
|
174
|
-
export interface VelcronCardDefinition extends VelcronDefinition
|
|
186
|
+
export interface VelcronCardDefinition extends VelcronDefinition {
|
|
175
187
|
type: "Card";
|
|
188
|
+
color?: VelcronColorStyling;
|
|
176
189
|
style?: VelcronCardStyling;
|
|
177
190
|
footer?: Array<VelcronDefinition>;
|
|
178
191
|
events?: VelcronOnPressEvent;
|
|
@@ -181,8 +194,8 @@ export interface VelcronTextDefinition extends VelcronDefinition {
|
|
|
181
194
|
type: "Text";
|
|
182
195
|
text: string;
|
|
183
196
|
color?: string;
|
|
184
|
-
lineClamp
|
|
185
|
-
noWrap
|
|
197
|
+
lineClamp?: number;
|
|
198
|
+
noWrap?: boolean;
|
|
186
199
|
typography?: string;
|
|
187
200
|
events?: VelcronOnPressEvent;
|
|
188
201
|
}
|
|
@@ -197,7 +210,7 @@ export interface VelcronImageDefinition extends VelcronDefinition {
|
|
|
197
210
|
borderRadius?: VelcronDimensions;
|
|
198
211
|
events?: VelcronOnPressEvent;
|
|
199
212
|
}
|
|
200
|
-
export interface VelcronButtonDefinition extends VelcronDefinition
|
|
213
|
+
export interface VelcronButtonDefinition extends VelcronDefinition {
|
|
201
214
|
type: "Button";
|
|
202
215
|
text: string;
|
|
203
216
|
icon?: VelcronIcon;
|
|
@@ -225,23 +238,20 @@ export interface VelcronDialogDefinition extends VelcronDefinition {
|
|
|
225
238
|
visible: string;
|
|
226
239
|
events?: VelcronOnCloseRequestedEvent & VelcronOnClosedEvent;
|
|
227
240
|
}
|
|
228
|
-
export interface VelcronIconDefinition extends VelcronDefinition
|
|
241
|
+
export interface VelcronIconDefinition extends VelcronDefinition {
|
|
229
242
|
type: "Icon";
|
|
230
243
|
icon: string;
|
|
244
|
+
color: VelcronColorStyling;
|
|
231
245
|
size?: number;
|
|
232
246
|
events?: VelcronOnPressEvent;
|
|
233
247
|
}
|
|
234
|
-
export interface
|
|
235
|
-
type: "
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
grow?: number;
|
|
242
|
-
border?: VelcronBorder;
|
|
243
|
-
borderRadius?: VelcronDimensions;
|
|
244
|
-
width: string;
|
|
248
|
+
export interface VelcronMarkdownDefinition extends VelcronDefinition {
|
|
249
|
+
type: "Markdown";
|
|
250
|
+
text: string;
|
|
251
|
+
initialValue: string;
|
|
252
|
+
bind: string;
|
|
253
|
+
edit?: boolean | string;
|
|
254
|
+
events: VelcronOnChangedEvent;
|
|
245
255
|
}
|
|
246
256
|
export interface VelcronDimensions {
|
|
247
257
|
top: number;
|
|
@@ -252,7 +262,7 @@ export interface VelcronDimensions {
|
|
|
252
262
|
export interface VelcronBorder extends VelcronDimensions {
|
|
253
263
|
color: string;
|
|
254
264
|
}
|
|
255
|
-
export interface VelcronChipDefinition extends VelcronDefinition
|
|
265
|
+
export interface VelcronChipDefinition extends VelcronDefinition {
|
|
256
266
|
type: "Chip";
|
|
257
267
|
text: string;
|
|
258
268
|
icon?: VelcronIcon;
|
|
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
tslib_1.__exportStar(require("./VelcronDefinitions"), exports);
|
|
5
5
|
tslib_1.__exportStar(require("./ViewModelAndContext"), exports);
|
|
6
|
-
tslib_1.__exportStar(require("./VelcronDescriptors"), exports);
|
|
7
6
|
tslib_1.__exportStar(require("./VelcronEvents"), exports);
|
|
8
7
|
tslib_1.__exportStar(require("./VelcronTypes"), exports);
|
|
9
8
|
tslib_1.__exportStar(require("./Enums"), exports);
|
package/package.json
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./VelcronDefinitionRegistration";
|
package/velcron/index.js
ADDED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { FontAwesomeIcon, MaterialIcon } from "@omnia/fx-models";
|
|
2
|
-
import { VelcronComponentPropertyEditors, VelcronDescriptorTypes, VelcronDataTypes } from "./Enums";
|
|
3
|
-
import { VelcroncomponentArrayType, VelcronPrimitiveType } from "./VelcronTypes";
|
|
4
|
-
export interface VelcronDescriptor {
|
|
5
|
-
descriptorType: VelcronDescriptorTypes;
|
|
6
|
-
icon: FontAwesomeIcon | MaterialIcon;
|
|
7
|
-
}
|
|
8
|
-
export interface VelcronComponentDescriptor extends VelcronDescriptor {
|
|
9
|
-
descriptorType: VelcronDescriptorTypes.component;
|
|
10
|
-
type: string;
|
|
11
|
-
properties?: Array<VelcronComponentPropertyDescriptor | VelcronComponentArrayPropertyDescriptor>;
|
|
12
|
-
events?: Array<VelcronComponentEventDescriptor>;
|
|
13
|
-
}
|
|
14
|
-
export interface VelcronSubComponentDescriptor extends VelcronDescriptor {
|
|
15
|
-
descriptorType: VelcronDescriptorTypes.subComponent;
|
|
16
|
-
type: string;
|
|
17
|
-
properties?: Array<VelcronComponentPropertyDescriptor | VelcronComponentArrayPropertyDescriptor>;
|
|
18
|
-
events?: Array<VelcronComponentEventDescriptor>;
|
|
19
|
-
}
|
|
20
|
-
export interface VelcronComponentPropertyDescriptor {
|
|
21
|
-
name: string;
|
|
22
|
-
type: VelcronDataTypes;
|
|
23
|
-
editor?: VelcronComponentPropertyEditors;
|
|
24
|
-
required?: boolean;
|
|
25
|
-
defaultValue?: VelcronPrimitiveType | VelcroncomponentArrayType;
|
|
26
|
-
disableRemovePropertyOnEmptyOrFalse?: boolean;
|
|
27
|
-
}
|
|
28
|
-
export interface VelcronComponentArrayPropertyDescriptor extends VelcronComponentPropertyDescriptor {
|
|
29
|
-
type: VelcronDataTypes.componentArray;
|
|
30
|
-
subComponent: VelcronSubComponentDescriptor;
|
|
31
|
-
}
|
|
32
|
-
export interface VelcronComponentEventDescriptor {
|
|
33
|
-
name: string;
|
|
34
|
-
}
|