@omnia/velcron 8.0.288-dev → 8.0.289-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.
|
@@ -75,6 +75,10 @@ export interface ThemeDefinitionV2 extends ThemeDefinitionReference {
|
|
|
75
75
|
spacing: SpacingBlueprints;
|
|
76
76
|
components: ComponentBlueprints;
|
|
77
77
|
}
|
|
78
|
+
export interface ThemingSetting {
|
|
79
|
+
adminThemeId?: guid;
|
|
80
|
+
defaultThemeId?: guid;
|
|
81
|
+
}
|
|
78
82
|
export interface ITemplateRegistration<TTemplateType = any> {
|
|
79
83
|
id: guid;
|
|
80
84
|
template: TTemplateType;
|
|
@@ -175,6 +175,10 @@ export interface VelcronFlexDefinition extends VelcronDefinition, VelcronColorSt
|
|
|
175
175
|
events?: VelcronOnPressEvent;
|
|
176
176
|
border?: VelcronBorder;
|
|
177
177
|
borderRadius?: VelcronDimensions;
|
|
178
|
+
width?: number | string;
|
|
179
|
+
minWidth?: number | string;
|
|
180
|
+
height?: number | string;
|
|
181
|
+
minHeight?: number | string;
|
|
178
182
|
}
|
|
179
183
|
export interface VelcronFlexRowDefinition extends VelcronDefinition, VelcronColorStyling, VelcronDefinitionHasEffects, VelcronDefinitionHasOverflow {
|
|
180
184
|
type: "row";
|
|
@@ -311,6 +315,10 @@ export interface VelcronLottieDefinition extends VelcronDefinition {
|
|
|
311
315
|
direction?: VelcronBindableProp<"normal" | "reverse">;
|
|
312
316
|
hover?: VelcronBindableProp<boolean>;
|
|
313
317
|
}
|
|
318
|
+
export interface VelcronSlidePanelSlidesOptions {
|
|
319
|
+
foreach: string;
|
|
320
|
+
definition: VelcronDefinition;
|
|
321
|
+
}
|
|
314
322
|
export interface VelcronSlidePanelDefinition extends VelcronDefinition {
|
|
315
323
|
type: "slide-panel";
|
|
316
324
|
slidesPerView?: VelcronBindableProp<number>;
|
|
@@ -322,6 +330,7 @@ export interface VelcronSlidePanelDefinition extends VelcronDefinition {
|
|
|
322
330
|
loop?: VelcronBindableProp<boolean>;
|
|
323
331
|
style?: VelcronCardStyling;
|
|
324
332
|
events?: VelcronOnPressEvent;
|
|
333
|
+
slides?: VelcronSlidePanelSlidesOptions;
|
|
325
334
|
}
|
|
326
335
|
export interface VelcronEditorRendererDefinition extends VelcronDefinition {
|
|
327
336
|
type: "editor";
|
|
@@ -36,6 +36,11 @@ export interface VelcronNumberEditorSettings {
|
|
|
36
36
|
max: number;
|
|
37
37
|
step: number;
|
|
38
38
|
}
|
|
39
|
+
export interface VelcronReferencePropertyEditorSettings {
|
|
40
|
+
multiple: boolean;
|
|
41
|
+
min?: number;
|
|
42
|
+
max?: number;
|
|
43
|
+
}
|
|
39
44
|
export interface VelcronPropertyMapping {
|
|
40
45
|
state: string;
|
|
41
46
|
title: string;
|
|
@@ -90,7 +95,7 @@ export interface VelcronImagePropertyEditor extends VelcronEditor<any> {
|
|
|
90
95
|
export interface VelcronSpacingPropertyEditor extends VelcronEditor<VelcronSpacingEditorSettings> {
|
|
91
96
|
type: "spacing";
|
|
92
97
|
}
|
|
93
|
-
export interface VelcronReferencePropertyEditor extends VelcronEditor<
|
|
98
|
+
export interface VelcronReferencePropertyEditor extends VelcronEditor<VelcronReferencePropertyEditorSettings> {
|
|
94
99
|
type: "reference";
|
|
95
100
|
}
|
|
96
101
|
export interface VelcronBlueprintEditor extends VelcronEditor<VelcronBlueprintEditorSettings> {
|
package/package.json
CHANGED
package/parser/VelcronData.js
CHANGED
|
@@ -25,6 +25,9 @@ class VelcronData {
|
|
|
25
25
|
else if (bindTo === VelcronConstants_1.VelcronConstants.context.activeToken) {
|
|
26
26
|
return renderContext.$active;
|
|
27
27
|
}
|
|
28
|
+
else if (bindTo === VelcronConstants_1.VelcronConstants.context.thisToken) {
|
|
29
|
+
return renderContext.currentContext;
|
|
30
|
+
}
|
|
28
31
|
//String interpolation > {{ $state.title }} and {{ $state.description }}
|
|
29
32
|
const tokens = this.getTokens(bindTo, false);
|
|
30
33
|
tokens.forEach((token) => {
|
package/parser/VelcronStyles.js
CHANGED
|
@@ -182,6 +182,15 @@ class VelcronStyles {
|
|
|
182
182
|
styleBase["boxSizing"] = "border-box";
|
|
183
183
|
this.applyOverflow(definition, renderCtx, styleBase);
|
|
184
184
|
this.insertBackgroundColor(styleBase, flexDefinition, renderCtx);
|
|
185
|
+
const width = VelcronData_1.VelcronData.dataBind(renderCtx, flexDefinition.width);
|
|
186
|
+
const minWidth = VelcronData_1.VelcronData.dataBind(renderCtx, flexDefinition.minWidth);
|
|
187
|
+
const height = VelcronData_1.VelcronData.dataBind(renderCtx, flexDefinition.height);
|
|
188
|
+
const minHeight = VelcronData_1.VelcronData.dataBind(renderCtx, flexDefinition.minHeight);
|
|
189
|
+
styleBase["width"] = this.unitProvider.formatDimension(width);
|
|
190
|
+
styleBase["maxWidth"] = this.unitProvider.formatDimension(width);
|
|
191
|
+
styleBase["minWidth"] = this.unitProvider.formatDimension(minWidth);
|
|
192
|
+
styleBase["height"] = this.unitProvider.formatDimension(height);
|
|
193
|
+
styleBase["minHeight"] = this.unitProvider.formatDimension(minHeight);
|
|
185
194
|
}
|
|
186
195
|
else if (definition.type === VelcronConstants_1.VelcronConstants.components.row) {
|
|
187
196
|
const flexDefinition = definition;
|