@omnia/fx 7.0.502-dev → 7.0.504-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/ux/velcron/core/models/VelcronDefinitions.d.ts +24 -13
- package/internal-do-not-import-from-here/ux/velcron/core/parser/VelcronConstants.d.ts +1 -0
- package/internal-do-not-import-from-here/ux/velcron/core/stores/VelcronTheming.d.ts +13 -0
- package/internal-do-not-import-from-here/ux/velcron/core/stores/index.d.ts +1 -0
- package/internal-do-not-import-from-here/ux/velcron/editor/models/BuiltInDescriptors.d.ts +1 -0
- package/internal-do-not-import-from-here/ux/velcron/renderer/VelcronRenderer.d.ts +5 -0
- package/internal-do-not-import-from-here/ux/velcron/renderer/VelcronStylesProvider.d.ts +1 -14
- package/internal-do-not-import-from-here/ux/velcron/renderer/components/Chip.d.ts +3 -0
- package/package.json +2 -2
|
@@ -2,24 +2,26 @@ import { VelcronComponentDescriptor } from "./VelcronDescriptors";
|
|
|
2
2
|
import { VelcronEvent, VelcronOnChangedEvent, VelcronOnClosedEvent, VelcronOnCloseRequestedEvent, VelcronOnLoadEvent, VelcronOnPressEvent } from "./VelcronEvents";
|
|
3
3
|
import { VelcroncomponentArrayType, VelcronPrimitiveType } from "./VelcronTypes";
|
|
4
4
|
import { AssignOperators, VelcronHorizontalAlignments, VelcronIconTypes, VelcronActionTypes, VelcronSectionColumnWidthTypes, VerticalAlignments } from "./Enums";
|
|
5
|
+
import { VelcronTheming } from "..";
|
|
5
6
|
export interface ResolvedComponentRenderer {
|
|
6
|
-
component:
|
|
7
|
+
component: unknown;
|
|
7
8
|
definition: VelcronDefinition;
|
|
8
9
|
customComponent: boolean;
|
|
9
10
|
}
|
|
10
11
|
export interface BuiltInComponentRenderers {
|
|
11
|
-
"View":
|
|
12
|
-
"Card":
|
|
13
|
-
"Text":
|
|
14
|
-
"Image":
|
|
15
|
-
"Button":
|
|
16
|
-
"TextInput":
|
|
17
|
-
"ProgressCircle":
|
|
18
|
-
"WebView":
|
|
19
|
-
"CustomComponent":
|
|
20
|
-
"Dialog":
|
|
21
|
-
"FlexView":
|
|
22
|
-
"Icon":
|
|
12
|
+
"View": unknown;
|
|
13
|
+
"Card": unknown;
|
|
14
|
+
"Text": unknown;
|
|
15
|
+
"Image": unknown;
|
|
16
|
+
"Button": unknown;
|
|
17
|
+
"TextInput": unknown;
|
|
18
|
+
"ProgressCircle": unknown;
|
|
19
|
+
"WebView": unknown;
|
|
20
|
+
"CustomComponent": unknown;
|
|
21
|
+
"Dialog": unknown;
|
|
22
|
+
"FlexView": unknown;
|
|
23
|
+
"Icon": unknown;
|
|
24
|
+
"Chip": unknown;
|
|
23
25
|
}
|
|
24
26
|
export type DynamicViewModel = object;
|
|
25
27
|
export interface OnItemRenderedHookResult {
|
|
@@ -30,6 +32,7 @@ export interface VelcronRenderContext {
|
|
|
30
32
|
id?: string;
|
|
31
33
|
rootContext: DynamicViewModel;
|
|
32
34
|
currentContext: DynamicViewModel;
|
|
35
|
+
theming?: VelcronTheming;
|
|
33
36
|
actions?: {
|
|
34
37
|
[name: string]: [];
|
|
35
38
|
};
|
|
@@ -213,6 +216,14 @@ export interface VelcronFlexViewDefinition extends VelcronDefinition {
|
|
|
213
216
|
export interface VelcronSectionColumnWidth {
|
|
214
217
|
type: VelcronSectionColumnWidthTypes;
|
|
215
218
|
}
|
|
219
|
+
export interface VelcronChipDefinition extends VelcronDefinition {
|
|
220
|
+
type: "Chip";
|
|
221
|
+
text: string;
|
|
222
|
+
colorSchema: string;
|
|
223
|
+
icon?: VelcronIcon;
|
|
224
|
+
disabled?: boolean;
|
|
225
|
+
events?: VelcronOnPressEvent;
|
|
226
|
+
}
|
|
216
227
|
/*** Custom Components ***********************************************************************/
|
|
217
228
|
export type VelcronCustomComponentDefinition = VelcronComponentDescriptor & VelcronComponentDefinition;
|
|
218
229
|
export type VelcronRenderProps<TDefinition> = {
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ColorSchema, ThemeDefinitionV2, TypographyType } from "..";
|
|
2
|
+
import { VelcronStore } from "./VelcronStore";
|
|
3
|
+
export declare class VelcronTheming extends VelcronStore {
|
|
4
|
+
currentTheme: ThemeDefinitionV2;
|
|
5
|
+
private activeSchemaState;
|
|
6
|
+
typography: (name: string) => TypographyType;
|
|
7
|
+
activeColorSchema: () => ColorSchema;
|
|
8
|
+
getColorFromActiveSchema: (name: any) => string;
|
|
9
|
+
mutations: {
|
|
10
|
+
setActiveSchema: (name: string) => void;
|
|
11
|
+
setTheme: (newTheme: ThemeDefinitionV2) => void;
|
|
12
|
+
};
|
|
13
|
+
}
|
|
@@ -30,3 +30,4 @@ export declare const VelcronViewComponentDescriptor: VelcronComponentDescriptor;
|
|
|
30
30
|
export declare const VelcronDialogComponentDescriptor: VelcronComponentDescriptor;
|
|
31
31
|
export declare const VelcronIconComponentDescriptor: VelcronComponentDescriptor;
|
|
32
32
|
export declare const VelcronSectionComponentDescriptor: VelcronComponentDescriptor;
|
|
33
|
+
export declare const VelcronChipComponentDescriptor: VelcronComponentDescriptor;
|
|
@@ -1,19 +1,24 @@
|
|
|
1
1
|
import { VelcronAppDefinition, VelcronRenderContext } from "@omnia/fx-models";
|
|
2
|
+
import { ThemeDefinitionV2 } from "../core";
|
|
2
3
|
declare const _default: (import("vue").VueConstructor<import("vue-tsx-support")._TsxComponentInstanceV3<import("vue/types/umd"), {}, import("vue-tsx-support").PropsForOutside<{
|
|
3
4
|
definition: VelcronAppDefinition;
|
|
4
5
|
context: VelcronRenderContext;
|
|
6
|
+
themeDefinitionV2: ThemeDefinitionV2;
|
|
5
7
|
}, "definition">, any, any, any>> & {
|
|
6
8
|
propsDefinition: import("vue-tsx-support").PropsForOutside<{
|
|
7
9
|
definition: VelcronAppDefinition;
|
|
8
10
|
context: VelcronRenderContext;
|
|
11
|
+
themeDefinitionV2: ThemeDefinitionV2;
|
|
9
12
|
}, "definition">;
|
|
10
13
|
}) | (import("vue").VueConstructor<import("vue-tsx-support")._TsxComponentInstanceV3<import("vue/types/umd") & import("vue").ShallowUnwrapRef<() => VueTsxSupport.JSX.Element>, {}, import("vue-tsx-support").PropsForOutside<{
|
|
11
14
|
definition: VelcronAppDefinition;
|
|
12
15
|
context: VelcronRenderContext;
|
|
16
|
+
themeDefinitionV2: ThemeDefinitionV2;
|
|
13
17
|
}, "definition">, any, any, any>> & {
|
|
14
18
|
propsDefinition: import("vue-tsx-support").PropsForOutside<{
|
|
15
19
|
definition: VelcronAppDefinition;
|
|
16
20
|
context: VelcronRenderContext;
|
|
21
|
+
themeDefinitionV2: ThemeDefinitionV2;
|
|
17
22
|
}, "definition">;
|
|
18
23
|
});
|
|
19
24
|
export default _default;
|
|
@@ -1,15 +1,2 @@
|
|
|
1
1
|
import { VelcronDefinition, VelcronRenderContext } from "@omnia/fx-models";
|
|
2
|
-
export declare const velcronStylesProvider: (definition: VelcronDefinition, renderCtx: VelcronRenderContext) =>
|
|
3
|
-
margin?: number;
|
|
4
|
-
marginTop?: number;
|
|
5
|
-
marginRight?: number;
|
|
6
|
-
marginBottom?: number;
|
|
7
|
-
marginLeft?: number;
|
|
8
|
-
padding?: number;
|
|
9
|
-
paddingTop?: number;
|
|
10
|
-
paddingRight?: number;
|
|
11
|
-
paddingBottom?: number;
|
|
12
|
-
paddingLeft?: number;
|
|
13
|
-
height?: string | number;
|
|
14
|
-
width?: string | number;
|
|
15
|
-
};
|
|
2
|
+
export declare const velcronStylesProvider: (definition: VelcronDefinition, renderCtx: VelcronRenderContext) => any;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { VelcronRenderProps, VelcronButtonDefinition } from "../../core";
|
|
2
|
+
declare const _default: import("vue-tsx-support")._TsxComponentV3<import("vue").default<Record<string, any>, Record<string, any>, never, never, (event: string, ...args: any[]) => import("vue").default<Record<string, any>, Record<string, any>, never, never, any>>, {}, import("vue-tsx-support").PropsForOutside<VelcronRenderProps<VelcronButtonDefinition>, never>, any, any, any>;
|
|
3
|
+
export default _default;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@omnia/fx",
|
|
3
3
|
"license": "MIT",
|
|
4
|
-
"version": "7.0.
|
|
4
|
+
"version": "7.0.504-dev",
|
|
5
5
|
"description": "Provide Omnia Fx typings and tooling for clientside Omnia development.",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
],
|
|
21
21
|
"author": "Precio Fishbone",
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@omnia/fx-models": "7.0.
|
|
23
|
+
"@omnia/fx-models": "7.0.504-dev",
|
|
24
24
|
"@microsoft/signalr": "6.0.1",
|
|
25
25
|
"broadcast-channel": "4.8.0",
|
|
26
26
|
"dayjs": "1.10.7",
|