@omnia/velcron 8.0.458-dev → 8.0.459-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/Enums.d.ts +5 -0
- package/internal-do-not-import-from-here/shared/models/Enums.js +7 -1
- package/internal-do-not-import-from-here/shared/models/OxideTypeDefinitions.d.ts +11 -0
- package/internal-do-not-import-from-here/shared/models/OxideTypeDefinitions.js +7 -1
- package/internal-do-not-import-from-here/shared/models/theme/Blueprints.d.ts +1 -1
- package/package.json +1 -1
- package/parser/VelcronRenderers.js +13 -11
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ServiceLocatorUrlType = void 0;
|
|
3
|
+
exports.TextAlignment = exports.ServiceLocatorUrlType = void 0;
|
|
4
4
|
var ServiceLocatorUrlType;
|
|
5
5
|
(function (ServiceLocatorUrlType) {
|
|
6
6
|
ServiceLocatorUrlType[ServiceLocatorUrlType["Api"] = 0] = "Api";
|
|
7
7
|
ServiceLocatorUrlType[ServiceLocatorUrlType["Resource"] = 1] = "Resource";
|
|
8
8
|
})(ServiceLocatorUrlType || (exports.ServiceLocatorUrlType = ServiceLocatorUrlType = {}));
|
|
9
|
+
var TextAlignment;
|
|
10
|
+
(function (TextAlignment) {
|
|
11
|
+
TextAlignment["left"] = "left";
|
|
12
|
+
TextAlignment["center"] = "center";
|
|
13
|
+
TextAlignment["right"] = "right";
|
|
14
|
+
})(TextAlignment || (exports.TextAlignment = TextAlignment = {}));
|
|
@@ -1,3 +1,14 @@
|
|
|
1
1
|
export declare const OIconSizeDefinitions: readonly ["x-large", "large", "default", "x-small", "small"];
|
|
2
2
|
export type OIconSizes = typeof OIconSizeDefinitions[number];
|
|
3
3
|
export declare const OIconSizesName = "OIconSizes";
|
|
4
|
+
export declare const ODividerTypeDefinitions: readonly ["top", "bottom", "left", "right"];
|
|
5
|
+
export type ODividerTypes = typeof ODividerTypeDefinitions[number];
|
|
6
|
+
export declare const ODividerTypesName = "ODividerTypes";
|
|
7
|
+
export type OBorderCombination = `${ODividerTypes}` | `${ODividerTypes} ${ODividerTypes}` | `${ODividerTypes} ${ODividerTypes} ${ODividerTypes}` | `${ODividerTypes} ${ODividerTypes} ${ODividerTypes} ${ODividerTypes}`;
|
|
8
|
+
export declare const DisplayBreakpoints: readonly ["s", "m", "l"];
|
|
9
|
+
export type DisplayBreakpointTypes = typeof DisplayBreakpoints[number];
|
|
10
|
+
export type ContainerBreakpointTypes = "layout" | "column" | "parent";
|
|
11
|
+
/** text */
|
|
12
|
+
export declare const OTextAlignmentDefinitions: readonly ["left", "center", "right"];
|
|
13
|
+
export type OTextAlignmentTypes = typeof OTextAlignmentDefinitions[number];
|
|
14
|
+
export declare const OTextAlignmentTypesName = "OTextAlignmentTypes";
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.OIconSizesName = exports.OIconSizeDefinitions = void 0;
|
|
3
|
+
exports.OTextAlignmentTypesName = exports.OTextAlignmentDefinitions = exports.DisplayBreakpoints = exports.ODividerTypesName = exports.ODividerTypeDefinitions = exports.OIconSizesName = exports.OIconSizeDefinitions = void 0;
|
|
4
4
|
exports.OIconSizeDefinitions = ["x-large", "large", "default", "x-small", "small"];
|
|
5
5
|
exports.OIconSizesName = "OIconSizes";
|
|
6
|
+
exports.ODividerTypeDefinitions = ["top", "bottom", "left", "right"];
|
|
7
|
+
exports.ODividerTypesName = "ODividerTypes";
|
|
8
|
+
exports.DisplayBreakpoints = ["s", "m", "l"];
|
|
9
|
+
/** text */
|
|
10
|
+
exports.OTextAlignmentDefinitions = ["left", "center", "right"];
|
|
11
|
+
exports.OTextAlignmentTypesName = "OTextAlignmentTypes";
|
|
@@ -3,7 +3,7 @@ import { SpacingDefinition, Spacing, SpacingValue } from "./Spacing";
|
|
|
3
3
|
import { TypographyFontDefinition, TextStyleValue } from "./Typography";
|
|
4
4
|
import { ThemeBase } from "./ThemeBase";
|
|
5
5
|
import { VelcronRendererResolverReference } from "../velcron";
|
|
6
|
-
import { TextAlignment } from "
|
|
6
|
+
import { TextAlignment } from "../Enums";
|
|
7
7
|
export interface BlueprintStrategy {
|
|
8
8
|
buttons: {
|
|
9
9
|
primary: ButtonBlueprint;
|
package/package.json
CHANGED
|
@@ -5,6 +5,7 @@ const __1 = require("..");
|
|
|
5
5
|
//import { ColorSchemaType, InternalColorSchemaStoreType, ServiceContainerContext, useColorSchemaStore, useInject, useThemeStore } from "internal/fx/ux/mobile";
|
|
6
6
|
// import { InternalColorSchemaStoreType, useColorSchemaStore, useThemeStore } from "internal/fx/ux/aurora/shared-mobile";
|
|
7
7
|
const stores_1 = require("internal/fx/shared/aurora/stores");
|
|
8
|
+
const shared_1 = require("internal/fx/shared");
|
|
8
9
|
class VelcronRenderers {
|
|
9
10
|
static { this.components = {}; }
|
|
10
11
|
static { this.referenceResolvers = {}; }
|
|
@@ -105,17 +106,18 @@ class VelcronRenderers {
|
|
|
105
106
|
const colorSchemaType = __1.VelcronDataBinder.bind(currentRenderCtx, definition.colorSchemaType);
|
|
106
107
|
if (colorSchemaType && result.colors.state.colorSchemaType !== colorSchemaType) {
|
|
107
108
|
const themeStore = (0, stores_1.useThemeStore)();
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
109
|
+
const { value, setValue } = themeStore.get.getOrSetColorSchema(colorSchemaType);
|
|
110
|
+
let colorSchemaStoreRef;
|
|
111
|
+
if (value) {
|
|
112
|
+
colorSchemaStoreRef = value;
|
|
113
|
+
}
|
|
114
|
+
else {
|
|
115
|
+
colorSchemaStoreRef = (0, shared_1.useInject)(shared_1.ServiceContainerContext).createInstance(stores_1.useColorSchemaStore, null, true);
|
|
116
|
+
colorSchemaStoreRef.actions.disableAutoDispose();
|
|
117
|
+
colorSchemaStoreRef.actions.setColorSchema(colorSchemaType);
|
|
118
|
+
setValue(colorSchemaStoreRef);
|
|
119
|
+
}
|
|
120
|
+
result.colors = colorSchemaStoreRef;
|
|
119
121
|
}
|
|
120
122
|
}
|
|
121
123
|
return result;
|