@omnia/fx 8.0.174-dev → 8.0.175-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/core/services/ServiceLocator.d.ts +1 -0
- package/internal-do-not-import-from-here/manifests/omnia.fx.ux.libs.manifest.json +1 -1
- package/internal-do-not-import-from-here/services/FileStorageService.d.ts +5 -1
- package/internal-do-not-import-from-here/ux/aurora/components/colorpickerV2/ColorPicker.d.ts +45 -24
- package/internal-do-not-import-from-here/ux/aurora/store/SpacingBlueprintStore.d.ts +341 -0
- package/internal-do-not-import-from-here/ux/aurora/store/TypographyBlueprintStore.d.ts +341 -0
- package/internal-do-not-import-from-here/ux/oxide/btn/Button.d.ts +9 -9
- package/internal-do-not-import-from-here/ux/oxide/icon/Icon.d.ts +9 -9
- package/internal-do-not-import-from-here/ux/oxide/inputfield/InputField.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/oxide/slidepanel/SlidePanel.d.ts +2 -2
- package/internal-do-not-import-from-here/ux/velcron/blocks/velcron/useVelcronStateManager.d.ts +4 -1
- package/internal-do-not-import-from-here/ux/velcron/core/models/Effects.d.ts +324 -0
- package/internal-do-not-import-from-here/ux/velcron/core/models/VelcronDefinitions.d.ts +1 -3
- package/internal-do-not-import-from-here/ux/velcron/core/models/VelcronState.d.ts +15 -23
- package/internal-do-not-import-from-here/ux/velcron/core/models/index.d.ts +1 -0
- package/internal-do-not-import-from-here/ux/velcron/core/templatebuilder/VelcronEditorBuilder.d.ts +3 -1
- package/internal-do-not-import-from-here/ux/velcron/core/templatebuilder/old/state/VelcronColorSchemaBuilder.d.ts +2 -2
- package/internal-do-not-import-from-here/ux/velcron/renderer/editors/BlueprintEditor.d.ts +1 -22
- package/internal-do-not-import-from-here/ux/velcron/stores/useVelcronStateManager.d.ts +4 -1
- package/package.json +2 -2
@@ -16,9 +16,9 @@ declare const _default: {
|
|
16
16
|
type: import("vue").PropType<ButtonBlueprint>;
|
17
17
|
};
|
18
18
|
animation: {
|
19
|
-
type: import("vue").PropType<"flip" | "
|
19
|
+
type: import("vue").PropType<"flip" | "bounce" | "spin" | "beat">;
|
20
20
|
} & {
|
21
|
-
type: import("vue").PropType<"flip" | "
|
21
|
+
type: import("vue").PropType<"flip" | "bounce" | "spin" | "beat">;
|
22
22
|
};
|
23
23
|
stacked: {
|
24
24
|
type: import("vue").PropType<boolean>;
|
@@ -147,9 +147,9 @@ declare const _default: {
|
|
147
147
|
type: import("vue").PropType<ButtonBlueprint>;
|
148
148
|
};
|
149
149
|
animation: {
|
150
|
-
type: import("vue").PropType<"flip" | "
|
150
|
+
type: import("vue").PropType<"flip" | "bounce" | "spin" | "beat">;
|
151
151
|
} & {
|
152
|
-
type: import("vue").PropType<"flip" | "
|
152
|
+
type: import("vue").PropType<"flip" | "bounce" | "spin" | "beat">;
|
153
153
|
};
|
154
154
|
stacked: {
|
155
155
|
type: import("vue").PropType<boolean>;
|
@@ -287,9 +287,9 @@ declare const _default: {
|
|
287
287
|
type: import("vue").PropType<ButtonBlueprint>;
|
288
288
|
};
|
289
289
|
animation: {
|
290
|
-
type: import("vue").PropType<"flip" | "
|
290
|
+
type: import("vue").PropType<"flip" | "bounce" | "spin" | "beat">;
|
291
291
|
} & {
|
292
|
-
type: import("vue").PropType<"flip" | "
|
292
|
+
type: import("vue").PropType<"flip" | "bounce" | "spin" | "beat">;
|
293
293
|
};
|
294
294
|
stacked: {
|
295
295
|
type: import("vue").PropType<boolean>;
|
@@ -424,9 +424,9 @@ declare const _default: {
|
|
424
424
|
type: import("vue").PropType<ButtonBlueprint>;
|
425
425
|
};
|
426
426
|
animation: {
|
427
|
-
type: import("vue").PropType<"flip" | "
|
427
|
+
type: import("vue").PropType<"flip" | "bounce" | "spin" | "beat">;
|
428
428
|
} & {
|
429
|
-
type: import("vue").PropType<"flip" | "
|
429
|
+
type: import("vue").PropType<"flip" | "bounce" | "spin" | "beat">;
|
430
430
|
};
|
431
431
|
stacked: {
|
432
432
|
type: import("vue").PropType<boolean>;
|
@@ -553,7 +553,7 @@ declare const _default: {
|
|
553
553
|
target?: "_blank" | "_self" | "_parent" | "_top" | "framename";
|
554
554
|
href?: string;
|
555
555
|
size?: "small" | "default" | "large" | "x-large" | "x-small";
|
556
|
-
animation?: "flip" | "
|
556
|
+
animation?: "flip" | "bounce" | "spin" | "beat";
|
557
557
|
tooltip?: ButtonTooltipOptions;
|
558
558
|
active?: boolean;
|
559
559
|
disabled?: boolean;
|
@@ -20,9 +20,9 @@ declare const _default: {
|
|
20
20
|
type: import("vue").PropType<number>;
|
21
21
|
};
|
22
22
|
animation: {
|
23
|
-
type: import("vue").PropType<"flip" | "
|
23
|
+
type: import("vue").PropType<"flip" | "bounce" | "spin" | "beat">;
|
24
24
|
} & {
|
25
|
-
type: import("vue").PropType<"flip" | "
|
25
|
+
type: import("vue").PropType<"flip" | "bounce" | "spin" | "beat">;
|
26
26
|
};
|
27
27
|
size: {
|
28
28
|
type: import("vue").PropType<"small" | "default" | "large" | "x-large" | "x-small">;
|
@@ -86,9 +86,9 @@ declare const _default: {
|
|
86
86
|
type: import("vue").PropType<number>;
|
87
87
|
};
|
88
88
|
animation: {
|
89
|
-
type: import("vue").PropType<"flip" | "
|
89
|
+
type: import("vue").PropType<"flip" | "bounce" | "spin" | "beat">;
|
90
90
|
} & {
|
91
|
-
type: import("vue").PropType<"flip" | "
|
91
|
+
type: import("vue").PropType<"flip" | "bounce" | "spin" | "beat">;
|
92
92
|
};
|
93
93
|
size: {
|
94
94
|
type: import("vue").PropType<"small" | "default" | "large" | "x-large" | "x-small">;
|
@@ -161,9 +161,9 @@ declare const _default: {
|
|
161
161
|
type: import("vue").PropType<number>;
|
162
162
|
};
|
163
163
|
animation: {
|
164
|
-
type: import("vue").PropType<"flip" | "
|
164
|
+
type: import("vue").PropType<"flip" | "bounce" | "spin" | "beat">;
|
165
165
|
} & {
|
166
|
-
type: import("vue").PropType<"flip" | "
|
166
|
+
type: import("vue").PropType<"flip" | "bounce" | "spin" | "beat">;
|
167
167
|
};
|
168
168
|
size: {
|
169
169
|
type: import("vue").PropType<"small" | "default" | "large" | "x-large" | "x-small">;
|
@@ -233,9 +233,9 @@ declare const _default: {
|
|
233
233
|
type: import("vue").PropType<number>;
|
234
234
|
};
|
235
235
|
animation: {
|
236
|
-
type: import("vue").PropType<"flip" | "
|
236
|
+
type: import("vue").PropType<"flip" | "bounce" | "spin" | "beat">;
|
237
237
|
} & {
|
238
|
-
type: import("vue").PropType<"flip" | "
|
238
|
+
type: import("vue").PropType<"flip" | "bounce" | "spin" | "beat">;
|
239
239
|
};
|
240
240
|
size: {
|
241
241
|
type: import("vue").PropType<"small" | "default" | "large" | "x-large" | "x-small">;
|
@@ -288,7 +288,7 @@ declare const _default: {
|
|
288
288
|
container?: boolean;
|
289
289
|
class?: String | String[];
|
290
290
|
size?: "small" | "default" | "large" | "x-large" | "x-small";
|
291
|
-
animation?: "flip" | "
|
291
|
+
animation?: "flip" | "bounce" | "spin" | "beat";
|
292
292
|
disabled?: boolean;
|
293
293
|
colorSchemaType?: "background" | "primary" | "secondary" | import("@omnia/fx-models").ColorSchemaTypes | "accent1" | "accent2" | "accent3" | "neutral" | "warning" | "notification" | "error" | "info" | "dynamic";
|
294
294
|
colorType?: "base" | "onBase" | "container" | "onContainer";
|
@@ -6,7 +6,7 @@ export type OTextBoxVariantTypes = typeof OTextBoxVariantTypeDefinitions[number]
|
|
6
6
|
export declare const InputTypeDefinitions: readonly ["text", "password", "number"];
|
7
7
|
export type InputTypes = typeof InputTypeDefinitions[number];
|
8
8
|
type BaseProps = DefineProp<"variant", OTextBoxVariantTypes, false, null, "Applies a distinct style to the component."> & DefineProp<"color", ColorValue, false, null, "Define the custom color for text field."> & DefineProp<"readonly", boolean, false, null, "Makes the text field readonly."> & DefineProp<"persistentHint", boolean, false, null, "Forces hint to always be visible."> & DefineProp<"hint", string, false, null, "Sets the hint of the text field. Hint will be displayed below the input when focused."> & DefineProp<"errorMessages", string | string[], false, null, "Puts the input in an error state and passes through custom error messages. Will be combined with any validations that occur from the rules prop. This field will not trigger validation."> & DefineProp<"rules", ValidationRule[], false, null, "Accepts a mixed array of types function. Functions pass an input value as an argument and must return either true / false or a string containing an error message."> & DefineProp<"toned", boolean, false, null, ""> & DefineProp<"label", string, false, null, "The label of the input field."> & DefineProp<"loading", boolean, false, false, "Displays linear progress bar."> & DefineProp<"disabled", boolean, false, false, "Removes the ability to click or target the input."> & DefineSlot<"append", () => VNodeChild, "Adds an item inside the input and after input content."> & DefineSlot<"append-inner", () => VNodeChild, "Adds an item inside the input content."> & DefineSlot<"prepend", () => VNodeChild, "Adds an item outside the input and before input content."> & DefineSlot<"prepend-inner", () => VNodeChild, "Slot that is prepended to the input."> & DefineSlot<"message", () => VNodeChild, "Slot used to customize the message content."> & DefineEmit<"update:focused", (value: boolean) => void, "Emit when search input field is focused."> & DefineEmit<"click:button", () => void, "Emit when click on icon."> & DefineEmit<"click:clear", () => void, "Emit when search input field is cleared.">;
|
9
|
-
type NumberInputProps = DefineVModel<"", number, false, null, "The v-model value of the component."> & DefineProp<"max", number, false, null, "The max value."> & DefineProp<"min", number, false, null, "The min value."> & DefinePropTheming & DefinePropClass & BaseProps;
|
9
|
+
type NumberInputProps = DefineVModel<"", number, false, null, "The v-model value of the component."> & DefineProp<"max", number, false, null, "The max value."> & DefineProp<"min", number, false, null, "The min value."> & DefineProp<"step", number, false, null, "incremental steps for adjusting the numeric value."> & DefinePropTheming & DefinePropClass & BaseProps;
|
10
10
|
type TextInputProps = DefineVModel<"", string, false, null, "The v-model value of the component."> & DefineProp<"suffix", string, false, null, "The suffix text of the text field."> & DefineProp<"prefix", string, false, null, "The prefix text of the text field."> & DefineProp<"clearable", boolean, false, false, "Adds a clear button when the text field is not empty."> & DefineProp<"autofocus", boolean, false, false, "Enables autofocus."> & DefineProp<"placeholder", string, false, null, "Sets the input’s placeholder text."> & DefinePropTheming & DefinePropClass & BaseProps;
|
11
11
|
declare const _default: <TType extends "number" | "text" | "password" = "text">(props: ExtractProps<{
|
12
12
|
type?: TType;
|
@@ -369,13 +369,13 @@ declare const _default: {
|
|
369
369
|
class?: String | String[];
|
370
370
|
scrollbar?: boolean;
|
371
371
|
colorSchemaType?: "background" | "primary" | "secondary" | import("@omnia/fx-models").ColorSchemaTypes | "accent1" | "accent2" | "accent3" | "neutral" | "warning" | "notification" | "error" | "info" | "dynamic";
|
372
|
+
loop?: boolean;
|
373
|
+
delay?: number;
|
372
374
|
colors?: import("@omnia/fx/ux").ColorSchemaStoreType;
|
373
375
|
variant?: "default" | "custom-navigation";
|
374
376
|
getApi?: (store: ReturnType<typeof useSlidePanelStore>) => void;
|
375
377
|
"get-api"?: (store: ReturnType<typeof useSlidePanelStore>) => void;
|
376
378
|
autoplay?: boolean;
|
377
|
-
delay?: number;
|
378
|
-
loop?: boolean;
|
379
379
|
pagination?: boolean;
|
380
380
|
slidesPerView?: number;
|
381
381
|
"slides-per-view"?: number;
|
package/internal-do-not-import-from-here/ux/velcron/blocks/velcron/useVelcronStateManager.d.ts
CHANGED
@@ -4,13 +4,16 @@ export declare function useVelcronStateManager(): {
|
|
4
4
|
copyState: (fromState: VelcronState, toState: VelcronState) => {
|
5
5
|
images?: import("../../core").VelcronImagesState;
|
6
6
|
container?: {
|
7
|
+
maxWidth?: number;
|
8
|
+
minHeight?: number;
|
9
|
+
alignX?: string;
|
10
|
+
alignY?: string;
|
7
11
|
colorSchemaType?: string;
|
8
12
|
spacing?: import("../../core").VelcronSpacing;
|
9
13
|
blueprint?: import("../../core").ContainerVariant | import("../../core").ContainerBlueprint;
|
10
14
|
background?: import("../../core").BackgroundDefinition;
|
11
15
|
};
|
12
16
|
grid?: import("../../core").VelcronGridState;
|
13
|
-
colorSchemas?: import("../../core").VelcronColorSchemasState;
|
14
17
|
content?: import("../../core").VelcronContentState;
|
15
18
|
header?: import("../../core").VelcronHeaderState;
|
16
19
|
properties?: import("../../core").VelcronPropertiesState;
|
@@ -0,0 +1,324 @@
|
|
1
|
+
export type VelcronEffects = {
|
2
|
+
initial?: Variant;
|
3
|
+
enter?: Variant;
|
4
|
+
leave?: Variant;
|
5
|
+
visible?: Variant;
|
6
|
+
visibleOnce?: Variant;
|
7
|
+
hovered?: Variant;
|
8
|
+
tapped?: Variant;
|
9
|
+
focused?: Variant;
|
10
|
+
};
|
11
|
+
type Variant = {
|
12
|
+
transition?: Transition;
|
13
|
+
} & MotionProperties;
|
14
|
+
type Transition = (Orchestration & Repeat & TransitionDefinition) | (Orchestration & Repeat & TransitionMap);
|
15
|
+
type Easing = [number, number, number, number] | "linear" | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
|
16
|
+
type ResolvedKeyframesTarget = [null, ...number[]] | number[] | [null, ...string[]] | string[];
|
17
|
+
type KeyframesTarget = ResolvedKeyframesTarget;
|
18
|
+
type ResolvedSingleTarget = string | number;
|
19
|
+
type SingleTarget = ResolvedSingleTarget;
|
20
|
+
type ValueTarget = SingleTarget | KeyframesTarget;
|
21
|
+
type TransitionMap = Orchestration & Record<string, TransitionDefinition>;
|
22
|
+
/**
|
23
|
+
* Transform properties
|
24
|
+
*/
|
25
|
+
type TransformValue = string | number;
|
26
|
+
interface TransformProperties {
|
27
|
+
x?: TransformValue | TransformValue[];
|
28
|
+
y?: TransformValue | TransformValue[];
|
29
|
+
z?: TransformValue | TransformValue[];
|
30
|
+
translateX?: TransformValue | TransformValue[];
|
31
|
+
translateY?: TransformValue | TransformValue[];
|
32
|
+
translateZ?: TransformValue | TransformValue[];
|
33
|
+
rotate?: TransformValue | TransformValue[];
|
34
|
+
rotateX?: TransformValue | TransformValue[];
|
35
|
+
rotateY?: TransformValue | TransformValue[];
|
36
|
+
rotateZ?: TransformValue | TransformValue[];
|
37
|
+
scale?: TransformValue | TransformValue[];
|
38
|
+
scaleX?: TransformValue | TransformValue[];
|
39
|
+
scaleY?: TransformValue | TransformValue[];
|
40
|
+
scaleZ?: TransformValue | TransformValue[];
|
41
|
+
skew?: TransformValue | TransformValue[];
|
42
|
+
skewX?: TransformValue | TransformValue[];
|
43
|
+
skewY?: TransformValue | TransformValue[];
|
44
|
+
originX?: TransformValue | TransformValue[];
|
45
|
+
originY?: TransformValue | TransformValue[];
|
46
|
+
originZ?: TransformValue | TransformValue[];
|
47
|
+
perspective?: TransformValue | TransformValue[];
|
48
|
+
transformPerspective?: TransformValue | TransformValue[];
|
49
|
+
}
|
50
|
+
/**
|
51
|
+
* Relevant styling properties
|
52
|
+
*/
|
53
|
+
type StyleProperties = {
|
54
|
+
color: string;
|
55
|
+
};
|
56
|
+
/**
|
57
|
+
* Available properties for useMotion variants
|
58
|
+
*/
|
59
|
+
type MotionProperties = StyleProperties | TransformProperties;
|
60
|
+
interface Orchestration {
|
61
|
+
/**
|
62
|
+
* Delay the animation by this duration (in seconds). Defaults to `0`.
|
63
|
+
*/
|
64
|
+
delay?: number;
|
65
|
+
/**
|
66
|
+
* Callback triggered on animation complete.
|
67
|
+
*/
|
68
|
+
onComplete?: () => void;
|
69
|
+
/**
|
70
|
+
* Should the value be set imediately
|
71
|
+
*/
|
72
|
+
immediate?: boolean;
|
73
|
+
}
|
74
|
+
interface Repeat {
|
75
|
+
/**
|
76
|
+
* The number of times to repeat the transition. Set to `Infinity` for perpetual repeating.
|
77
|
+
*
|
78
|
+
* Without setting `repeatType`, this will loop the animation.
|
79
|
+
*/
|
80
|
+
repeat?: number;
|
81
|
+
/**
|
82
|
+
* How to repeat the animation. This can be either:
|
83
|
+
*
|
84
|
+
* "loop": Repeats the animation from the start
|
85
|
+
*
|
86
|
+
* "reverse": Alternates between forward and backwards playback
|
87
|
+
*
|
88
|
+
* "mirror": Switchs `from` and `to` alternately
|
89
|
+
*/
|
90
|
+
repeatType?: "loop" | "reverse" | "mirror";
|
91
|
+
/**
|
92
|
+
* When repeating an animation, `repeatDelay` will set the
|
93
|
+
* duration of the time to wait, in seconds, between each repetition.
|
94
|
+
*/
|
95
|
+
repeatDelay?: number;
|
96
|
+
}
|
97
|
+
type PermissiveTransitionDefinition = Record<string, any>;
|
98
|
+
type TransitionDefinition = Tween | Spring | Keyframes | Inertia | PermissiveTransitionDefinition;
|
99
|
+
interface Tween extends Repeat {
|
100
|
+
/**
|
101
|
+
* Set `type` to `"tween"` to use a duration-based tween animation.
|
102
|
+
* If any non-orchestration `transition` values are set without a `type` property,
|
103
|
+
* this is used as the default animation.
|
104
|
+
*/
|
105
|
+
type?: "tween";
|
106
|
+
/**
|
107
|
+
* The duration of the tween animation. Set to `0.3` by default, 0r `0.8` if animating a series of keyframes.
|
108
|
+
*/
|
109
|
+
duration?: number;
|
110
|
+
/**
|
111
|
+
* The easing function to use. Set as one of the below.
|
112
|
+
*
|
113
|
+
* - The name of an existing easing function.
|
114
|
+
* - An array of four numbers to define a cubic bezier curve.
|
115
|
+
* - An easing function, that accepts and returns a value `0-1`.
|
116
|
+
*
|
117
|
+
* If the animating value is set as an array of multiple values for a keyframes
|
118
|
+
* animation, `ease` can be set as an array of easing functions to set different easings between
|
119
|
+
* each of those values.
|
120
|
+
*/
|
121
|
+
ease?: Easing | Easing[];
|
122
|
+
/**
|
123
|
+
* The duration of time already elapsed in the animation. Set to `0` by
|
124
|
+
* default.
|
125
|
+
*/
|
126
|
+
elapsed?: number;
|
127
|
+
/**
|
128
|
+
* When animating keyframes, `times` can be used to determine where in the animation each keyframe is reached.
|
129
|
+
* Each value in `times` is a value between `0` and `1`, representing `duration`.
|
130
|
+
*
|
131
|
+
* There must be the same number of `times` as there are keyframes.
|
132
|
+
* Defaults to an array of evenly-spread durations.
|
133
|
+
*/
|
134
|
+
times?: number[];
|
135
|
+
/**
|
136
|
+
* When animating keyframes, `easings` can be used to define easing functions between each keyframe. This array should be one item fewer than the number of keyframes, as these easings apply to the transitions between the keyframes.
|
137
|
+
*/
|
138
|
+
easings?: Easing[];
|
139
|
+
/**
|
140
|
+
* The value to animate from.
|
141
|
+
* By default, this is the current state of the animating value.
|
142
|
+
*/
|
143
|
+
from?: number | string;
|
144
|
+
to?: number | string | ValueTarget;
|
145
|
+
velocity?: number;
|
146
|
+
delay?: number;
|
147
|
+
}
|
148
|
+
interface Spring extends Repeat {
|
149
|
+
/**
|
150
|
+
* Set `type` to `"spring"` to animate using spring physics for natural
|
151
|
+
* movement. Type is set to `"spring"` by default.
|
152
|
+
*/
|
153
|
+
type: "spring";
|
154
|
+
/**
|
155
|
+
* Stiffness of the spring. Higher values will create more sudden movement.
|
156
|
+
* Set to `100` by default.
|
157
|
+
*/
|
158
|
+
stiffness?: number;
|
159
|
+
/**
|
160
|
+
* Strength of opposing force. If set to 0, spring will oscillate
|
161
|
+
* indefinitely. Set to `10` by default.
|
162
|
+
*/
|
163
|
+
damping?: number;
|
164
|
+
/**
|
165
|
+
* Mass of the moving object. Higher values will result in more lethargic
|
166
|
+
* movement. Set to `1` by default.
|
167
|
+
*/
|
168
|
+
mass?: number;
|
169
|
+
/**
|
170
|
+
* The duration of the animation, defined in seconds. Spring animations can be a maximum of 10 seconds.
|
171
|
+
*
|
172
|
+
* If `bounce` is set, this defaults to `0.8`.
|
173
|
+
*
|
174
|
+
* Note: `duration` and `bounce` will be overridden if `stiffness`, `damping` or `mass` are set.
|
175
|
+
*/
|
176
|
+
duration?: number;
|
177
|
+
/**
|
178
|
+
* `bounce` determines the "bounciness" of a spring animation.
|
179
|
+
*
|
180
|
+
* `0` is no bounce, and `1` is extremely bouncy.
|
181
|
+
*
|
182
|
+
* If `duration` is set, this defaults to `0.25`.
|
183
|
+
*
|
184
|
+
* Note: `bounce` and `duration` will be overridden if `stiffness`, `damping` or `mass` are set.
|
185
|
+
*/
|
186
|
+
bounce?: number;
|
187
|
+
/**
|
188
|
+
* End animation if absolute speed (in units per second) drops below this
|
189
|
+
* value and delta is smaller than `restDelta`. Set to `0.01` by default.
|
190
|
+
*/
|
191
|
+
restSpeed?: number;
|
192
|
+
/**
|
193
|
+
* End animation if distance is below this value and speed is below
|
194
|
+
* `restSpeed`. When animation ends, spring gets “snapped” to. Set to
|
195
|
+
* `0.01` by default.
|
196
|
+
*/
|
197
|
+
restDelta?: number;
|
198
|
+
/**
|
199
|
+
* The value to animate from.
|
200
|
+
* By default, this is the initial state of the animating value.
|
201
|
+
*/
|
202
|
+
from?: number | string;
|
203
|
+
to?: number | string | ValueTarget;
|
204
|
+
/**
|
205
|
+
* The initial velocity of the spring. By default this is the current velocity of the component.
|
206
|
+
*/
|
207
|
+
velocity?: number;
|
208
|
+
delay?: number;
|
209
|
+
}
|
210
|
+
/**
|
211
|
+
* Keyframes tweens between multiple `values`.
|
212
|
+
*
|
213
|
+
* These tweens can be arranged using the `duration`, `easings`, and `times` properties.
|
214
|
+
*/
|
215
|
+
interface Keyframes {
|
216
|
+
/**
|
217
|
+
* Set `type` to `"keyframes"` to animate using the keyframes animation.
|
218
|
+
* Set to `"tween"` by default. This can be used to animate between a series of values.
|
219
|
+
*/
|
220
|
+
type: "keyframes";
|
221
|
+
/**
|
222
|
+
* An array of values to animate between.
|
223
|
+
*/
|
224
|
+
values: KeyframesTarget;
|
225
|
+
/**
|
226
|
+
* An array of numbers between 0 and 1, where `1` represents the `total` duration.
|
227
|
+
*
|
228
|
+
* Each value represents at which point during the animation each item in the animation target should be hit, so the array should be the same length as `values`.
|
229
|
+
*
|
230
|
+
* Defaults to an array of evenly-spread durations.
|
231
|
+
*/
|
232
|
+
times?: number[];
|
233
|
+
/**
|
234
|
+
* An array of easing functions for each generated tween, or a single easing function applied to all tweens.
|
235
|
+
*
|
236
|
+
* This array should be one item less than `values`, as these easings apply to the transitions *between* the `values`.
|
237
|
+
*/
|
238
|
+
ease?: Easing | Easing[];
|
239
|
+
/**
|
240
|
+
* Popmotion's easing prop to define individual easings. `ease` will be mapped to this prop in keyframes animations.
|
241
|
+
*/
|
242
|
+
easings?: Easing | Easing[];
|
243
|
+
elapsed?: number;
|
244
|
+
/**
|
245
|
+
* The total duration of the animation. Set to `0.3` by default.
|
246
|
+
*/
|
247
|
+
duration?: number;
|
248
|
+
repeatDelay?: number;
|
249
|
+
from?: number | string;
|
250
|
+
to?: number | string | ValueTarget;
|
251
|
+
velocity?: number;
|
252
|
+
delay?: number;
|
253
|
+
}
|
254
|
+
/**
|
255
|
+
* An animation that decelerates a value based on its initial velocity,
|
256
|
+
* usually used to implement inertial scrolling.
|
257
|
+
*
|
258
|
+
* Optionally, `min` and `max` boundaries can be defined, and inertia
|
259
|
+
* will snap to these with a spring animation.
|
260
|
+
*
|
261
|
+
* This animation will automatically precalculate a target value,
|
262
|
+
* which can be modified with the `modifyTarget` property.
|
263
|
+
*
|
264
|
+
* This allows you to add snap-to-grid or similar functionality.
|
265
|
+
*
|
266
|
+
* Inertia is also the animation used for `dragTransition`, and can be configured via that prop.
|
267
|
+
*/
|
268
|
+
interface Inertia {
|
269
|
+
/**
|
270
|
+
* Set `type` to animate using the inertia animation. Set to `"tween"` by
|
271
|
+
* default. This can be used for natural deceleration, like momentum scrolling.
|
272
|
+
*/
|
273
|
+
type: "inertia";
|
274
|
+
/**
|
275
|
+
* A function that receives the automatically-calculated target and returns a new one. Useful for snapping the target to a grid.
|
276
|
+
*/
|
277
|
+
modifyTarget?(v: number): number;
|
278
|
+
/**
|
279
|
+
* If `min` or `max` is set, this affects the stiffness of the bounce
|
280
|
+
* spring. Higher values will create more sudden movement. Set to `500` by
|
281
|
+
* default.
|
282
|
+
*/
|
283
|
+
bounceStiffness?: number;
|
284
|
+
/**
|
285
|
+
* If `min` or `max` is set, this affects the damping of the bounce spring.
|
286
|
+
* If set to `0`, spring will oscillate indefinitely. Set to `10` by
|
287
|
+
* default.
|
288
|
+
*/
|
289
|
+
bounceDamping?: number;
|
290
|
+
/**
|
291
|
+
* A higher power value equals a further target. Set to `0.8` by default.
|
292
|
+
*/
|
293
|
+
power?: number;
|
294
|
+
/**
|
295
|
+
* Adjusting the time constant will change the duration of the
|
296
|
+
* deceleration, thereby affecting its feel. Set to `700` by default.
|
297
|
+
*/
|
298
|
+
timeConstant?: number;
|
299
|
+
/**
|
300
|
+
* End the animation if the distance to the animation target is below this value, and the absolute speed is below `restSpeed`.
|
301
|
+
* When the animation ends, the value gets snapped to the animation target. Set to `0.01` by default.
|
302
|
+
* Generally the default values provide smooth animation endings, only in rare cases should you need to customize these.
|
303
|
+
*/
|
304
|
+
restDelta?: number;
|
305
|
+
/**
|
306
|
+
* Minimum constraint. If set, the value will "bump" against this value (or immediately spring to it if the animation starts as less than this value).
|
307
|
+
*/
|
308
|
+
min?: number;
|
309
|
+
/**
|
310
|
+
* Maximum constraint. If set, the value will "bump" against this value (or immediately snap to it, if the initial animation value exceeds this value).
|
311
|
+
*/
|
312
|
+
max?: number;
|
313
|
+
/**
|
314
|
+
* The value to animate from. By default, this is the current state of the animating value.
|
315
|
+
*/
|
316
|
+
from?: number | string;
|
317
|
+
/**
|
318
|
+
* The initial velocity of the animation.
|
319
|
+
* By default this is the current velocity of the component.
|
320
|
+
*/
|
321
|
+
velocity?: number;
|
322
|
+
delay?: number;
|
323
|
+
}
|
324
|
+
export {};
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { VelcronOnUpdatedEvent, VelcronOnClosedEvent, VelcronOnCloseRequestedEvent, VelcronOnPressEvent, VelcronSpacing, VelcronStyling, VelcronCustomComponentDefinition, VelcronAppDefinition, VelcronRendererResolverReference, EventHook, Future, TextBlueprint, VelcronBindableProp, VelcronEditor, ContainerBlueprint, BackgroundDefinition, ContainerVariant } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
|
2
2
|
import { VelcroncomponentArrayType, VelcronPrimitiveType } from "./VelcronTypes";
|
3
3
|
import { AssignOperators, VelcronHorizontalAlignments, VelcronIconTypes, VelcronActionTypes, VelcronVerticalAlignments } from "./Enums";
|
4
|
-
import { DynamicState, VelcronDefinition, useVelcronThemingStore } from "..";
|
4
|
+
import { DynamicState, VelcronDefinition, VelcronEffects, useVelcronThemingStore } from "..";
|
5
5
|
import { GuidValue, PropertyConfiguration, PropertyValue, PropertyDefinition, PropertySetupBase } from "@omnia/fx/models";
|
6
6
|
import { useVelcronColorSchemaStore } from "../stores/VelcronColorSchema";
|
7
7
|
export interface ResolvedComponentRenderer {
|
@@ -158,8 +158,6 @@ export interface VelcronFlexDefinition extends VelcronDefinition, VelcronColorSt
|
|
158
158
|
border?: VelcronBorder;
|
159
159
|
borderRadius?: VelcronDimensions;
|
160
160
|
}
|
161
|
-
export interface VelcronEffects {
|
162
|
-
}
|
163
161
|
export interface VelcronFlexRowDefinition extends VelcronDefinition, VelcronColorStyling {
|
164
162
|
type: "row";
|
165
163
|
events?: VelcronOnPressEvent;
|
@@ -3,13 +3,16 @@ import { VelcronImageRatios } from "./VelcronDefinitions";
|
|
3
3
|
export interface VelcronState {
|
4
4
|
images?: VelcronImagesState;
|
5
5
|
container?: {
|
6
|
+
maxWidth?: number;
|
7
|
+
minHeight?: number;
|
8
|
+
alignX?: string;
|
9
|
+
alignY?: string;
|
6
10
|
colorSchemaType?: string;
|
7
11
|
spacing?: VelcronSpacing;
|
8
12
|
blueprint?: ContainerBlueprint | ContainerVariant;
|
9
13
|
background?: BackgroundDefinition;
|
10
14
|
};
|
11
15
|
grid?: VelcronGridState;
|
12
|
-
colorSchemas?: VelcronColorSchemasState;
|
13
16
|
content?: VelcronContentState;
|
14
17
|
header?: VelcronHeaderState;
|
15
18
|
properties?: VelcronPropertiesState;
|
@@ -59,11 +62,6 @@ export interface VelcronImageState {
|
|
59
62
|
width?: number;
|
60
63
|
height?: number;
|
61
64
|
}
|
62
|
-
export interface VelcronStylingState {
|
63
|
-
}
|
64
|
-
export interface VelcronColorSchemasState {
|
65
|
-
main: string;
|
66
|
-
}
|
67
65
|
export declare const VelcronImagesStateBinding: {
|
68
66
|
main: {
|
69
67
|
editor: string;
|
@@ -96,16 +94,19 @@ export declare const VelcronStateMapping: {
|
|
96
94
|
};
|
97
95
|
};
|
98
96
|
export declare const VelcronStateBinding: {
|
99
|
-
colorSchemas: {
|
100
|
-
main_depricated: {
|
101
|
-
value: string;
|
102
|
-
type: string;
|
103
|
-
filled: string;
|
104
|
-
};
|
105
|
-
};
|
106
97
|
container: {
|
98
|
+
maxWidth: string;
|
99
|
+
minHeight: string;
|
100
|
+
alignX: string;
|
101
|
+
alignY: string;
|
107
102
|
colorSchemaType: string;
|
108
|
-
spacing:
|
103
|
+
spacing: {
|
104
|
+
value: string;
|
105
|
+
top: string;
|
106
|
+
right: string;
|
107
|
+
bottom: string;
|
108
|
+
left: string;
|
109
|
+
};
|
109
110
|
blueprint: string;
|
110
111
|
background: {
|
111
112
|
value: string;
|
@@ -174,13 +175,4 @@ export declare const VelcronStateBinding: {
|
|
174
175
|
};
|
175
176
|
icon: string;
|
176
177
|
};
|
177
|
-
spacing: {
|
178
|
-
container: {
|
179
|
-
value: string;
|
180
|
-
top: string;
|
181
|
-
right: string;
|
182
|
-
bottom: string;
|
183
|
-
left: string;
|
184
|
-
};
|
185
|
-
};
|
186
178
|
};
|
package/internal-do-not-import-from-here/ux/velcron/core/templatebuilder/VelcronEditorBuilder.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { TypographyType, VelcronEditor, VelcronTypographyEditorSettings } from "@omnia/fx-models";
|
1
|
+
import { TypographyType, VelcronEditor, VelcronTypographyEditorSettings, VelcronSliderPropertyEditorSettings } from "@omnia/fx-models";
|
2
2
|
export declare class VelcronEditorBuilder {
|
3
3
|
private editors;
|
4
4
|
private formatStateMapping;
|
@@ -12,7 +12,9 @@ export declare class VelcronEditorBuilder {
|
|
12
12
|
blockHeaderEditor: () => VelcronEditorBuilder;
|
13
13
|
typographyEditor: (stateMapping: string, settings: VelcronTypographyEditorSettings) => VelcronEditorBuilder;
|
14
14
|
backgroundEditor: (name: string, stateMapping: string, type: "image" | "video") => VelcronEditorBuilder;
|
15
|
+
sliderEditor: (name: string, stateMapping: string, settings: VelcronSliderPropertyEditorSettings) => VelcronEditorBuilder;
|
15
16
|
gridEditor: (name: string, stateMapping: string) => VelcronEditorBuilder;
|
17
|
+
widthEditor: (name: string, stateMapping: string) => VelcronEditorBuilder;
|
16
18
|
};
|
17
19
|
build(): VelcronEditor<any>[];
|
18
20
|
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { ColorSchemaType
|
1
|
+
import { ColorSchemaType } from "@omnia/fx-models";
|
2
2
|
import { VelcronStateBuilderBase } from "./VelcronStateBuilderBase";
|
3
3
|
export declare class VelcronColorSchemaStateBuilder extends VelcronStateBuilderBase {
|
4
4
|
private colorSchema;
|
@@ -12,5 +12,5 @@ export declare class VelcronColorSchemaStateBuilder extends VelcronStateBuilderB
|
|
12
12
|
add(filled: boolean): VelcronColorSchemaStateBuilder;
|
13
13
|
bind: any;
|
14
14
|
};
|
15
|
-
protected internalBuild():
|
15
|
+
protected internalBuild(): void;
|
16
16
|
}
|