@omnia/fx-models 8.0.24-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 +39 -30
- 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 -35
- /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,8 +1,9 @@
|
|
|
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,
|
|
5
|
-
import {
|
|
4
|
+
import { AssignOperators, VelcronHorizontalAlignments, VelcronIconTypes, VelcronActionTypes, VelcronVerticalAlignments } from "./Enums";
|
|
5
|
+
import { useVelcronThemingStore } from "..";
|
|
6
|
+
import { useVelcronColorSchemaStore } from "../stores/VelcronColorSchema";
|
|
6
7
|
export interface ResolvedComponentRenderer {
|
|
7
8
|
component: unknown;
|
|
8
9
|
definition: VelcronDefinition;
|
|
@@ -19,9 +20,9 @@ export interface BuiltInComponentRenderers {
|
|
|
19
20
|
"WebView": unknown;
|
|
20
21
|
"CustomComponent": unknown;
|
|
21
22
|
"Dialog": unknown;
|
|
22
|
-
"FlexView": unknown;
|
|
23
23
|
"Icon": unknown;
|
|
24
24
|
"Chip": unknown;
|
|
25
|
+
"Markdown": unknown;
|
|
25
26
|
}
|
|
26
27
|
export interface ColorSchemaReference {
|
|
27
28
|
name: string;
|
|
@@ -41,8 +42,7 @@ export interface VelcronRenderContext {
|
|
|
41
42
|
rootContext: VelcronState;
|
|
42
43
|
currentContext: VelcronState;
|
|
43
44
|
theming?: ReturnType<typeof useVelcronThemingStore>;
|
|
44
|
-
|
|
45
|
-
colorSchema?: ColorSchema;
|
|
45
|
+
colors?: ReturnType<typeof useVelcronColorSchemaStore>;
|
|
46
46
|
actions?: {
|
|
47
47
|
[name: string]: [];
|
|
48
48
|
};
|
|
@@ -67,6 +67,7 @@ export interface VelcronRenderContextHooks {
|
|
|
67
67
|
dialogVisibilityChanged?: ((visible: boolean) => void);
|
|
68
68
|
onItemSelected?: ((item: VelcronDefinition) => void);
|
|
69
69
|
onItemRendered?: ((item: VelcronDefinition) => OnItemRenderedHookResult);
|
|
70
|
+
onItemCreatedProps?: ((item: VelcronDefinition) => object);
|
|
70
71
|
}
|
|
71
72
|
export interface VelcronContainerRenderer {
|
|
72
73
|
definition: VelcronDefinition;
|
|
@@ -108,11 +109,6 @@ export interface VelcronDefinitionBase {
|
|
|
108
109
|
*/
|
|
109
110
|
key?: string;
|
|
110
111
|
}
|
|
111
|
-
export interface VelcronCustomThemeSettings {
|
|
112
|
-
colorSchema?: string;
|
|
113
|
-
color?: string;
|
|
114
|
-
opacity?: number;
|
|
115
|
-
}
|
|
116
112
|
export interface VelcronDefinition extends VelcronDefinitionBase {
|
|
117
113
|
body?: Array<VelcronDefinition>;
|
|
118
114
|
style?: VelcronStyling;
|
|
@@ -120,6 +116,13 @@ export interface VelcronDefinition extends VelcronDefinitionBase {
|
|
|
120
116
|
if?: string;
|
|
121
117
|
events?: VelcronEvent;
|
|
122
118
|
}
|
|
119
|
+
export interface VelcronColorStyling {
|
|
120
|
+
colorSchemaType?: string;
|
|
121
|
+
color?: string;
|
|
122
|
+
filled?: boolean;
|
|
123
|
+
container?: boolean;
|
|
124
|
+
toned?: boolean;
|
|
125
|
+
}
|
|
123
126
|
export interface VelcronStyling {
|
|
124
127
|
margin?: number;
|
|
125
128
|
marginTop?: number;
|
|
@@ -149,6 +152,8 @@ export interface VelcronIcon {
|
|
|
149
152
|
}
|
|
150
153
|
export interface VelcronAppDefinition extends VelcronDefinitionBase {
|
|
151
154
|
type: "Velcron";
|
|
155
|
+
version: string;
|
|
156
|
+
name: string;
|
|
152
157
|
body?: Array<VelcronDefinition>;
|
|
153
158
|
events?: VelcronOnLoadEvent & VelcronOnPressEvent;
|
|
154
159
|
actions?: {
|
|
@@ -167,11 +172,20 @@ export interface VelcronComponentDefinition extends VelcronDefinition {
|
|
|
167
172
|
/*** Built-in Components *********************************************************************/
|
|
168
173
|
export interface VelcronViewDefinition extends VelcronDefinition {
|
|
169
174
|
type: "View";
|
|
170
|
-
|
|
175
|
+
color?: VelcronColorStyling;
|
|
171
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;
|
|
172
185
|
}
|
|
173
|
-
export interface VelcronCardDefinition extends VelcronDefinition
|
|
186
|
+
export interface VelcronCardDefinition extends VelcronDefinition {
|
|
174
187
|
type: "Card";
|
|
188
|
+
color?: VelcronColorStyling;
|
|
175
189
|
style?: VelcronCardStyling;
|
|
176
190
|
footer?: Array<VelcronDefinition>;
|
|
177
191
|
events?: VelcronOnPressEvent;
|
|
@@ -180,8 +194,8 @@ export interface VelcronTextDefinition extends VelcronDefinition {
|
|
|
180
194
|
type: "Text";
|
|
181
195
|
text: string;
|
|
182
196
|
color?: string;
|
|
183
|
-
lineClamp
|
|
184
|
-
noWrap
|
|
197
|
+
lineClamp?: number;
|
|
198
|
+
noWrap?: boolean;
|
|
185
199
|
typography?: string;
|
|
186
200
|
events?: VelcronOnPressEvent;
|
|
187
201
|
}
|
|
@@ -199,7 +213,6 @@ export interface VelcronImageDefinition extends VelcronDefinition {
|
|
|
199
213
|
export interface VelcronButtonDefinition extends VelcronDefinition {
|
|
200
214
|
type: "Button";
|
|
201
215
|
text: string;
|
|
202
|
-
color: string;
|
|
203
216
|
icon?: VelcronIcon;
|
|
204
217
|
disabled?: boolean;
|
|
205
218
|
events?: VelcronOnPressEvent;
|
|
@@ -225,24 +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;
|
|
231
|
-
|
|
244
|
+
color: VelcronColorStyling;
|
|
232
245
|
size?: number;
|
|
233
246
|
events?: VelcronOnPressEvent;
|
|
234
247
|
}
|
|
235
|
-
export interface
|
|
236
|
-
type: "
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
grow?: number;
|
|
243
|
-
border?: VelcronBorder;
|
|
244
|
-
borderRadius?: VelcronDimensions;
|
|
245
|
-
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;
|
|
246
255
|
}
|
|
247
256
|
export interface VelcronDimensions {
|
|
248
257
|
top: number;
|
|
@@ -253,7 +262,7 @@ export interface VelcronDimensions {
|
|
|
253
262
|
export interface VelcronBorder extends VelcronDimensions {
|
|
254
263
|
color: string;
|
|
255
264
|
}
|
|
256
|
-
export interface VelcronChipDefinition extends VelcronDefinition
|
|
265
|
+
export interface VelcronChipDefinition extends VelcronDefinition {
|
|
257
266
|
type: "Chip";
|
|
258
267
|
text: string;
|
|
259
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,35 +0,0 @@
|
|
|
1
|
-
import { VelcronComponentPropertyEditors, VelcronDescriptorTypes, VelcronDataTypes } from "./Enums";
|
|
2
|
-
import { VelcroncomponentArrayType, VelcronPrimitiveType } from "./VelcronTypes";
|
|
3
|
-
export interface VelcronDescriptor {
|
|
4
|
-
descriptorType: VelcronDescriptorTypes;
|
|
5
|
-
icon: string;
|
|
6
|
-
}
|
|
7
|
-
export interface VelcronComponentDescriptor extends VelcronDescriptor {
|
|
8
|
-
descriptorType: VelcronDescriptorTypes.component;
|
|
9
|
-
type: string;
|
|
10
|
-
icon: 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
|
-
icon: string;
|
|
18
|
-
properties?: Array<VelcronComponentPropertyDescriptor | VelcronComponentArrayPropertyDescriptor>;
|
|
19
|
-
events?: Array<VelcronComponentEventDescriptor>;
|
|
20
|
-
}
|
|
21
|
-
export interface VelcronComponentPropertyDescriptor {
|
|
22
|
-
name: string;
|
|
23
|
-
type: VelcronDataTypes;
|
|
24
|
-
editor?: VelcronComponentPropertyEditors;
|
|
25
|
-
required?: boolean;
|
|
26
|
-
defaultValue?: VelcronPrimitiveType | VelcroncomponentArrayType;
|
|
27
|
-
disableRemovePropertyOnEmptyOrFalse?: boolean;
|
|
28
|
-
}
|
|
29
|
-
export interface VelcronComponentArrayPropertyDescriptor extends VelcronComponentPropertyDescriptor {
|
|
30
|
-
type: VelcronDataTypes.componentArray;
|
|
31
|
-
subComponent: VelcronSubComponentDescriptor;
|
|
32
|
-
}
|
|
33
|
-
export interface VelcronComponentEventDescriptor {
|
|
34
|
-
name: string;
|
|
35
|
-
}
|