@omnia/fx 8.0.322-dev → 8.0.323-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/InternalDefineComponent.d.ts +3 -3
- package/internal-do-not-import-from-here/ux/aurora/styling/UseStyling.d.ts +1 -0
- package/internal-do-not-import-from-here/ux/aurora/styling/styles/Typography.d.ts +4 -0
- package/internal-do-not-import-from-here/ux/velcron/core/formatters/CapitalizeFormatter.d.ts +2 -0
- package/internal-do-not-import-from-here/ux/velcron/core/formatters/DateFormatter.d.ts +2 -0
- package/internal-do-not-import-from-here/ux/velcron/core/formatters/InterpolationFormatter.d.ts +4 -0
- package/internal-do-not-import-from-here/ux/velcron/core/formatters/JsonFormatter.d.ts +2 -0
- package/internal-do-not-import-from-here/ux/velcron/core/formatters/LengthFormatter.d.ts +2 -0
- package/internal-do-not-import-from-here/ux/velcron/core/formatters/ReplaceFormatter.d.ts +2 -0
- package/internal-do-not-import-from-here/ux/velcron/core/formatters/SubStringFormatter.d.ts +2 -0
- package/internal-do-not-import-from-here/ux/velcron/core/formatters/TrimFormatter.d.ts +2 -0
- package/internal-do-not-import-from-here/ux/velcron/core/formatters/UppercaseFormatter.d.ts +2 -0
- package/internal-do-not-import-from-here/ux/velcron/core/formatters/index.d.ts +9 -0
- package/internal-do-not-import-from-here/ux/velcron/core/index.d.ts +1 -0
- package/internal-do-not-import-from-here/ux/velcron/core/parser/VelcronDataBinder.d.ts +50 -0
- package/internal-do-not-import-from-here/ux/velcron/core/parser/VelcronFormatters.d.ts +6 -0
- package/internal-do-not-import-from-here/ux/velcron/core/parser/index.d.ts +1 -0
- package/internal-do-not-import-from-here/wctypings.d.ts +1 -1
- package/package.json +2 -2
- /package/internal-do-not-import-from-here/ux/enterpriseproperties/renderers/{EnterprisePropertyValue.d.ts → EnterprisePropertyRenderer.d.ts} +0 -0
@@ -1,5 +1,5 @@
|
|
1
1
|
import { SubscriptionHandler } from "@omnia/fx";
|
2
|
-
import { ComponentInjectOptions, ComponentObjectPropsOptions, ComponentOptions, ComponentOptionsBase, ComponentOptionsMixin, ComponentPropsOptions, ComputedOptions, CreateComponentPublicInstance, DefineComponent, EmitsOptions, ExtractDefaultPropTypes, MethodOptions, ObjectEmitsOptions, Prop, PropType, RenderFunction, Slot, SlotsType, VNode, VNodeArrayChildren,
|
2
|
+
import { ComponentInjectOptions, ComponentObjectPropsOptions, ComponentOptions, ComponentOptionsBase, ComponentOptionsMixin, ComponentPropsOptions, ComputedOptions, CreateComponentPublicInstance, DefineComponent, EmitsOptions, ExtractDefaultPropTypes, MethodOptions, ObjectEmitsOptions, Prop, PropType, RenderFunction, Slot, SlotsType, VNode, VNodeArrayChildren, VNodeProps, VNodeTypes, watch, watchEffect } from "vue";
|
3
3
|
import { LooseRequired, Prettify, UnionToIntersection } from "@vue/shared";
|
4
4
|
import { ColorSchemaType, ColorSchemaTypes, ComponentBundleManifest, Directives, guid } from "@omnia/fx-models";
|
5
5
|
import { ColorSchemaStoreType, VueComponentBaseProps } from ".";
|
@@ -297,10 +297,10 @@ export declare function internalDVCByFS(injectOptions: any, options: any, extraO
|
|
297
297
|
export declare function isElement<TElement = typeof omfx>(element: string, cb: (elements: TElement) => any): boolean;
|
298
298
|
declare module "@vue/runtime-dom" {
|
299
299
|
interface HTMLAttributes {
|
300
|
-
$children?:
|
300
|
+
$children?: any;
|
301
301
|
}
|
302
302
|
interface SVGAttributes {
|
303
|
-
$children?:
|
303
|
+
$children?: any;
|
304
304
|
}
|
305
305
|
}
|
306
306
|
declare global {
|
@@ -29,6 +29,7 @@ export declare function useThemeStyling(): {
|
|
29
29
|
valueStylex: typeof typographyStylex.typographyStylexFromValueStylex;
|
30
30
|
typeStylex: typeof typographyStylex.typographyTypeStylex;
|
31
31
|
stylex: typeof typographyStylex.typographyStylex;
|
32
|
+
fontStyling: typeof import("./styles/Typography").fontStyling;
|
32
33
|
typeStyling: (typographyType: import("@omnia/fx-models").TypographyTypes, size: import("@omnia/fx-models").TypographySize, blueprint: import("@omnia/fx-models").TypographyBlueprint) => {
|
33
34
|
baseStyles: {
|
34
35
|
fontFamily: string;
|
@@ -35,6 +35,7 @@ export declare namespace typographyStylex {
|
|
35
35
|
function typographyStylexFromValueStylex(value: TypographyValue, blueprint: TypographyBlueprint): Readonly<import("../../../Styles.stylex").StylexValue>;
|
36
36
|
}
|
37
37
|
export declare const typographyStyles: {
|
38
|
+
fontStyling: typeof fontStyling;
|
38
39
|
typographyTypeStyling: typeof typographyTypeStyling;
|
39
40
|
typographyStyling: typeof typographyStyling;
|
40
41
|
typographyStylingFromValue: typeof typographyStylingByValue;
|
@@ -84,5 +85,8 @@ declare function typographyTypeStyling(typographyType: TypographyTypes, size: Ty
|
|
84
85
|
queryOnSmallScreen: MediaQuery;
|
85
86
|
queryOnMediumScreen: MediaQuery;
|
86
87
|
};
|
88
|
+
export declare function fontStyling(blueprint: TypographyBlueprint): {
|
89
|
+
fontFamily: string;
|
90
|
+
};
|
87
91
|
export declare function typographyStyling(blueprints: ReturnType<typeof useTypographyBlueprintStore>): TypographyTypesResult;
|
88
92
|
export {};
|
@@ -0,0 +1,9 @@
|
|
1
|
+
export * from "./InterpolationFormatter";
|
2
|
+
export * from "./DateFormatter";
|
3
|
+
export * from "./CapitalizeFormatter";
|
4
|
+
export * from "./UppercaseFormatter";
|
5
|
+
export * from "./TrimFormatter";
|
6
|
+
export * from "./JsonFormatter";
|
7
|
+
export * from "./LengthFormatter";
|
8
|
+
export * from "./ReplaceFormatter";
|
9
|
+
export * from "./SubStringFormatter";
|
@@ -1,12 +1,62 @@
|
|
1
1
|
import { VelcronRenderContext } from "../models";
|
2
2
|
import { VelcronBindableProp } from "..";
|
3
3
|
export declare class VelcronDataBinder {
|
4
|
+
/**
|
5
|
+
* Binds a value based on the provided binding expression.
|
6
|
+
* @param renderContext The render context containing state and other data.
|
7
|
+
* @param bindTo The binding expression or value.
|
8
|
+
* @returns The bound value after applying formatters and other logic.
|
9
|
+
*/
|
4
10
|
static bind<T = string>(renderContext: VelcronRenderContext, bindTo: VelcronBindableProp<any>): T;
|
11
|
+
/**
|
12
|
+
* Interpolates tokens within a binding string and applies formatters.
|
13
|
+
* @param bindTo The binding string containing tokens.
|
14
|
+
* @param renderContext The render context.
|
15
|
+
* @returns The interpolated string with formatters applied.
|
16
|
+
*/
|
5
17
|
private static interpolateTokens;
|
18
|
+
/**
|
19
|
+
* Parses an interpolation string to extract the variable and its formatters.
|
20
|
+
* @param match The interpolation string, e.g., "{{ variable | formatter1:'arg1','arg2' | formatter2 }}"
|
21
|
+
* @returns An Interpolation object or null if parsing fails.
|
22
|
+
*/
|
23
|
+
private static parseInterpolation;
|
24
|
+
/**
|
25
|
+
* Processes a token that might represent an action or a state variable.
|
26
|
+
* @param tokenWithoutBrackets The token string without the surrounding {{ }}.
|
27
|
+
* @param renderContext The render context.
|
28
|
+
* @returns The result of processing the token.
|
29
|
+
*/
|
6
30
|
private static processToken;
|
31
|
+
/**
|
32
|
+
* Evaluates a switch expression based on the render context.
|
33
|
+
* @param expression The switch expression object.
|
34
|
+
* @param renderContext The render context.
|
35
|
+
* @returns The result of the switch expression.
|
36
|
+
*/
|
7
37
|
private static evaluateSwitchExpression;
|
38
|
+
/**
|
39
|
+
* Recursively evaluates an expression which can be a string, object, or other types.
|
40
|
+
* @param expr The expression to evaluate.
|
41
|
+
* @param renderContext The render context.
|
42
|
+
* @returns The evaluated result.
|
43
|
+
*/
|
8
44
|
private static evaluateExpression;
|
45
|
+
/**
|
46
|
+
* Attempts to update a bound value in the render context.
|
47
|
+
* @param renderContext The render context.
|
48
|
+
* @param bindPath The binding path string.
|
49
|
+
* @param value The new value to set.
|
50
|
+
*/
|
9
51
|
static tryUpdateBoundValue(renderContext: VelcronRenderContext, bindPath: string, value: unknown): void;
|
52
|
+
/**
|
53
|
+
* Binds multiple properties at once based on the provided definitions.
|
54
|
+
* @param renderContext The render context.
|
55
|
+
* @param definition The binding definitions for each property.
|
56
|
+
* @param propertiesToBind The list of property keys to bind.
|
57
|
+
* @param objectToBindTo The target object where properties will be bound.
|
58
|
+
* @returns The object with bound properties.
|
59
|
+
*/
|
10
60
|
static bindMany<T>(renderContext: VelcronRenderContext, definition: {
|
11
61
|
[P in keyof T]?: VelcronBindableProp<T[P]>;
|
12
62
|
}, propertiesToBind: Array<keyof T>, objectToBindTo: Partial<T>): T;
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import { InterpolationFormatter } from "../formatters";
|
2
|
+
export declare class VelcronFormatters {
|
3
|
+
static _formatters: Record<string, InterpolationFormatter>;
|
4
|
+
static registerFormatter(formatter: InterpolationFormatter): void;
|
5
|
+
static getFormatter(name: string): InterpolationFormatter | undefined;
|
6
|
+
}
|
@@ -215,7 +215,7 @@ import wc1f31fc580b854d19895c1879120a9891 from './ux/docs/chrome/DocsChrome';
|
|
215
215
|
import wc710dc11b823c4a80b2a031395c206325 from './ux/editorchrome/chrome/EditorChrome';
|
216
216
|
import wc72a828731c4e4f1e9753a6a6bfb31e67 from './ux/enterpriseglossary/componentbase/EnterpriseGlossaryTermComponentBase';
|
217
217
|
import wcb94ea0908c7f461085de9d21a61e0826 from './ux/enterpriseproperties/picker/EnterprisePropertyPicker';
|
218
|
-
import wc80899927961f45298421948c395d7f39 from './ux/enterpriseproperties/renderers/
|
218
|
+
import wc80899927961f45298421948c395d7f39 from './ux/enterpriseproperties/renderers/EnterprisePropertyRenderer';
|
219
219
|
import wc22666b255eb64f378edf70d5e9859216 from './ux/enterpriseproperties/renderers/EnterprisePropertyConfiguration';
|
220
220
|
import wc0619d10d541645aaabbdc17d5b867501 from './ux/enterprisepropertysets/picker/EnterprisePropertySetPicker';
|
221
221
|
import wcfaee0b6397494a9abca9c480856e2498 from './ux/flow/editor/FlowEditor';
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@omnia/fx",
|
3
3
|
"license": "MIT",
|
4
|
-
"version": "8.0.
|
4
|
+
"version": "8.0.323-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": "8.0.
|
23
|
+
"@omnia/fx-models": "8.0.323-dev",
|
24
24
|
"@microsoft/signalr": "6.0.1",
|
25
25
|
"broadcast-channel": "4.8.0",
|
26
26
|
"dayjs": "1.11.7",
|