@aventusjs/cli 0.0.27 → 0.0.29
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/lib/Aventus@I18n.package.avt +10 -10
- package/lib/Aventus@Main.package.avt +424 -424
- package/lib/Aventus@UI.package.avt +159 -159
- package/out/RealServer.js +10 -6
- package/out/cli.js +1 -1
- package/package.json +1 -1
|
@@ -5,15 +5,15 @@
|
|
|
5
5
|
declare global {
|
|
6
6
|
|
|
7
7
|
namespace Aventus{
|
|
8
|
-
@Storybook({
|
|
9
|
-
prefix: "Webcomponent"
|
|
8
|
+
@Storybook({
|
|
9
|
+
prefix: "Webcomponent"
|
|
10
10
|
})
|
|
11
11
|
interface DebuggerConfig {
|
|
12
12
|
writeCompiled?: boolean;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
@Storybook({
|
|
16
|
-
prefix: "Webcomponent"
|
|
15
|
+
@Storybook({
|
|
16
|
+
prefix: "Webcomponent"
|
|
17
17
|
})
|
|
18
18
|
class Style {
|
|
19
19
|
private static instance;
|
|
@@ -36,15 +36,15 @@ class Style {
|
|
|
36
36
|
sheetToString(stylesheet: CSSStyleSheet): string;
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
-
@Storybook({
|
|
40
|
-
prefix: "Webcomponent"
|
|
39
|
+
@Storybook({
|
|
40
|
+
prefix: "Webcomponent"
|
|
41
41
|
})
|
|
42
42
|
interface DefaultComponent {
|
|
43
43
|
[key: string]: any;
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
/**
|
|
47
|
-
* Generate a new UUID
|
|
46
|
+
/**
|
|
47
|
+
* Generate a new UUID
|
|
48
48
|
*/
|
|
49
49
|
function uuidv4(): string;
|
|
50
50
|
|
|
@@ -54,10 +54,10 @@ type NotVoid = {
|
|
|
54
54
|
[key: string]: NotVoid;
|
|
55
55
|
} | object | string | boolean | symbol | number | null | undefined;
|
|
56
56
|
|
|
57
|
-
/**
|
|
58
|
-
* It ll wait the number provided in ms
|
|
59
|
-
* Async setTimeout
|
|
60
|
-
* @param {number} ms Define the time to wait in milliseconds
|
|
57
|
+
/**
|
|
58
|
+
* It ll wait the number provided in ms
|
|
59
|
+
* Async setTimeout
|
|
60
|
+
* @param {number} ms Define the time to wait in milliseconds
|
|
61
61
|
*/
|
|
62
62
|
function sleep(ms: number): Promise<void>;
|
|
63
63
|
|
|
@@ -72,19 +72,19 @@ function isSubclassOf(subClass: Function, superClass: Function): boolean;
|
|
|
72
72
|
|
|
73
73
|
function isClass(v: any): boolean;
|
|
74
74
|
|
|
75
|
-
/**
|
|
76
|
-
* Sets the value in an object based on the provided path.
|
|
77
|
-
* @param {string} path The path where the value should be set, using dot notation. For example, "a.b.c" for obj[a][b][c].
|
|
78
|
-
* @param {*} obj The object in which to set the value.
|
|
79
|
-
* @param {*} value The value to set.
|
|
75
|
+
/**
|
|
76
|
+
* Sets the value in an object based on the provided path.
|
|
77
|
+
* @param {string} path The path where the value should be set, using dot notation. For example, "a.b.c" for obj[a][b][c].
|
|
78
|
+
* @param {*} obj The object in which to set the value.
|
|
79
|
+
* @param {*} value The value to set.
|
|
80
80
|
*/
|
|
81
81
|
function setValueToObject(path: string, obj: any, value: any): void;
|
|
82
82
|
|
|
83
|
-
/**
|
|
84
|
-
* Represents a mutual exclusion (mutex) mechanism for synchronizing access to a shared resource.
|
|
83
|
+
/**
|
|
84
|
+
* Represents a mutual exclusion (mutex) mechanism for synchronizing access to a shared resource.
|
|
85
85
|
*/
|
|
86
|
-
@Storybook({
|
|
87
|
-
prefix: "Tools/Mutex"
|
|
86
|
+
@Storybook({
|
|
87
|
+
prefix: "Tools/Mutex"
|
|
88
88
|
})
|
|
89
89
|
class Mutex {
|
|
90
90
|
/**
|
|
@@ -144,11 +144,11 @@ class Mutex {
|
|
|
144
144
|
safeRunLastAsync<T = void>(cb: () => Promise<T>): Promise<T | undefined>;
|
|
145
145
|
}
|
|
146
146
|
|
|
147
|
-
/**
|
|
148
|
-
* Class that manages unique execution of asynchronous actions based on specified keys.
|
|
147
|
+
/**
|
|
148
|
+
* Class that manages unique execution of asynchronous actions based on specified keys.
|
|
149
149
|
*/
|
|
150
|
-
@Storybook({
|
|
151
|
-
prefix: "Tools/Mutex"
|
|
150
|
+
@Storybook({
|
|
151
|
+
prefix: "Tools/Mutex"
|
|
152
152
|
})
|
|
153
153
|
class ActionGuard {
|
|
154
154
|
/**
|
|
@@ -190,20 +190,20 @@ type KeysObject<Item> = {
|
|
|
190
190
|
[Key in keyof Item]?: any;
|
|
191
191
|
};
|
|
192
192
|
|
|
193
|
-
@Storybook({
|
|
194
|
-
prefix: "Ram"
|
|
193
|
+
@Storybook({
|
|
194
|
+
prefix: "Ram"
|
|
195
195
|
})
|
|
196
196
|
interface IRam {
|
|
197
197
|
}
|
|
198
198
|
|
|
199
|
-
@Storybook({
|
|
200
|
-
prefix: "Ram"
|
|
199
|
+
@Storybook({
|
|
200
|
+
prefix: "Ram"
|
|
201
201
|
})
|
|
202
202
|
interface IRamData {
|
|
203
203
|
}
|
|
204
204
|
|
|
205
|
-
/**
|
|
206
|
-
* Enumeration of error codes for RAM-related errors.
|
|
205
|
+
/**
|
|
206
|
+
* Enumeration of error codes for RAM-related errors.
|
|
207
207
|
*/
|
|
208
208
|
enum RamErrorCode {
|
|
209
209
|
/** Error code for an unknown error */
|
|
@@ -226,8 +226,8 @@ type UriParams = {
|
|
|
226
226
|
position: number;
|
|
227
227
|
};
|
|
228
228
|
|
|
229
|
-
@Storybook({
|
|
230
|
-
prefix: "Lib/ResourceLoader"
|
|
229
|
+
@Storybook({
|
|
230
|
+
prefix: "Lib/ResourceLoader"
|
|
231
231
|
})
|
|
232
232
|
interface ResourceLoaderHeadOptions {
|
|
233
233
|
url: string;
|
|
@@ -235,8 +235,8 @@ interface ResourceLoaderHeadOptions {
|
|
|
235
235
|
nonce?: string;
|
|
236
236
|
}
|
|
237
237
|
|
|
238
|
-
@Storybook({
|
|
239
|
-
prefix: "Lib/ResourceLoader"
|
|
238
|
+
@Storybook({
|
|
239
|
+
prefix: "Lib/ResourceLoader"
|
|
240
240
|
})
|
|
241
241
|
interface ResourceLoaderOptions {
|
|
242
242
|
url: string;
|
|
@@ -244,8 +244,8 @@ interface ResourceLoaderOptions {
|
|
|
244
244
|
nonce?: string;
|
|
245
245
|
}
|
|
246
246
|
|
|
247
|
-
@Storybook({
|
|
248
|
-
prefix: "Lib/ResourceLoader"
|
|
247
|
+
@Storybook({
|
|
248
|
+
prefix: "Lib/ResourceLoader"
|
|
249
249
|
})
|
|
250
250
|
class ResourceLoader {
|
|
251
251
|
private static headerLoaded;
|
|
@@ -271,16 +271,16 @@ class ResourceLoader {
|
|
|
271
271
|
private static prepareOptions;
|
|
272
272
|
}
|
|
273
273
|
|
|
274
|
-
@Storybook({
|
|
275
|
-
prefix: "Lib/ResizeObserver"
|
|
274
|
+
@Storybook({
|
|
275
|
+
prefix: "Lib/ResizeObserver"
|
|
276
276
|
})
|
|
277
277
|
interface ResizeObserverOptions {
|
|
278
278
|
callback: ResizeObserverCallback;
|
|
279
279
|
fps?: number;
|
|
280
280
|
}
|
|
281
281
|
|
|
282
|
-
@Storybook({
|
|
283
|
-
prefix: "Lib/PressManager"
|
|
282
|
+
@Storybook({
|
|
283
|
+
prefix: "Lib/PressManager"
|
|
284
284
|
})
|
|
285
285
|
interface Pointer {
|
|
286
286
|
id: number;
|
|
@@ -299,8 +299,8 @@ const DragElementXYType: readonly [any, any, any, any];
|
|
|
299
299
|
|
|
300
300
|
const DragElementLeftTopType: readonly [any, any];
|
|
301
301
|
|
|
302
|
-
@Storybook({
|
|
303
|
-
prefix: "Lib/PressManager"
|
|
302
|
+
@Storybook({
|
|
303
|
+
prefix: "Lib/PressManager"
|
|
304
304
|
})
|
|
305
305
|
interface PressManagerState {
|
|
306
306
|
oneActionTriggered: Aventus.PressManager | null;
|
|
@@ -324,8 +324,8 @@ class NormalizedEvent {
|
|
|
324
324
|
get isTouch(): boolean;
|
|
325
325
|
}
|
|
326
326
|
|
|
327
|
-
@Storybook({
|
|
328
|
-
prefix: "Lib/PressManager"
|
|
327
|
+
@Storybook({
|
|
328
|
+
prefix: "Lib/PressManager"
|
|
329
329
|
})
|
|
330
330
|
interface InternalCustomFunction {
|
|
331
331
|
src?: Aventus.PressManager;
|
|
@@ -334,8 +334,8 @@ interface InternalCustomFunction {
|
|
|
334
334
|
offsetDrag?: number;
|
|
335
335
|
}
|
|
336
336
|
|
|
337
|
-
@Storybook({
|
|
338
|
-
prefix: "Lib/PressManager"
|
|
337
|
+
@Storybook({
|
|
338
|
+
prefix: "Lib/PressManager"
|
|
339
339
|
})
|
|
340
340
|
interface InternalPointerEvent extends Event {
|
|
341
341
|
detail: {
|
|
@@ -345,11 +345,11 @@ interface InternalPointerEvent extends Event {
|
|
|
345
345
|
};
|
|
346
346
|
}
|
|
347
347
|
|
|
348
|
-
/**
|
|
349
|
-
* Options for configuring the PressManager.
|
|
348
|
+
/**
|
|
349
|
+
* Options for configuring the PressManager.
|
|
350
350
|
*/
|
|
351
|
-
@Storybook({
|
|
352
|
-
prefix: "Lib/PressManager"
|
|
351
|
+
@Storybook({
|
|
352
|
+
prefix: "Lib/PressManager"
|
|
353
353
|
})
|
|
354
354
|
interface PressManagerOptions {
|
|
355
355
|
/**
|
|
@@ -445,8 +445,8 @@ type DragElementLeftTop = InstanceType<typeof DragElementLeftTopType[number]>;
|
|
|
445
445
|
|
|
446
446
|
type DragElementXY = InstanceType<typeof DragElementXYType[number]>;
|
|
447
447
|
|
|
448
|
-
@Storybook({
|
|
449
|
-
prefix: "Lib/Callback"
|
|
448
|
+
@Storybook({
|
|
449
|
+
prefix: "Lib/Callback"
|
|
450
450
|
})
|
|
451
451
|
class Callback<U extends (...args: any) => T, T = void> {
|
|
452
452
|
private callbacks;
|
|
@@ -468,8 +468,8 @@ class Callback<U extends (...args: any) => T, T = void> {
|
|
|
468
468
|
trigger(...args: Parameters<U>): T[];
|
|
469
469
|
}
|
|
470
470
|
|
|
471
|
-
@Storybook({
|
|
472
|
-
prefix: "Lib/Callback"
|
|
471
|
+
@Storybook({
|
|
472
|
+
prefix: "Lib/Callback"
|
|
473
473
|
})
|
|
474
474
|
class CallbackGroup<U extends (...args: any) => void> {
|
|
475
475
|
private callbacks;
|
|
@@ -503,33 +503,33 @@ abstract class Resource {
|
|
|
503
503
|
abstract class Request {
|
|
504
504
|
}
|
|
505
505
|
|
|
506
|
-
@Storybook({
|
|
507
|
-
prefix: "Http"
|
|
506
|
+
@Storybook({
|
|
507
|
+
prefix: "Http"
|
|
508
508
|
})
|
|
509
509
|
interface RouterOptions {
|
|
510
510
|
url: string;
|
|
511
511
|
}
|
|
512
512
|
|
|
513
|
-
@Storybook({
|
|
514
|
-
prefix: "Http"
|
|
513
|
+
@Storybook({
|
|
514
|
+
prefix: "Http"
|
|
515
515
|
})
|
|
516
516
|
interface HttpRouterOptions {
|
|
517
517
|
url: string;
|
|
518
518
|
}
|
|
519
519
|
|
|
520
|
-
/**
|
|
521
|
-
* Compare two objects for equality, recursively checking nested arrays, objects, and dates.
|
|
522
|
-
* @param {*} obj1 The first object to compare.
|
|
523
|
-
* @param {*} obj2 The second object to compare.
|
|
524
|
-
* @returns {boolean} Returns true if the objects are considered equal, otherwise returns false.
|
|
520
|
+
/**
|
|
521
|
+
* Compare two objects for equality, recursively checking nested arrays, objects, and dates.
|
|
522
|
+
* @param {*} obj1 The first object to compare.
|
|
523
|
+
* @param {*} obj2 The second object to compare.
|
|
524
|
+
* @returns {boolean} Returns true if the objects are considered equal, otherwise returns false.
|
|
525
525
|
*/
|
|
526
526
|
function compareObject(obj1: any, obj2: any, tableOrder?: boolean): boolean;
|
|
527
527
|
|
|
528
|
-
/**
|
|
529
|
-
* Retrieves the value from an object based on the provided path.
|
|
530
|
-
* @param {string} path The path to the desired value, using dot notation. For example, "a.b.c" for obj[a][b][c].
|
|
531
|
-
* @param {*} obj The object from which to retrieve the value.
|
|
532
|
-
* @returns {*} Returns the value at the specified path in the object. If the path is invalid or the value does not exist, returns undefined.
|
|
528
|
+
/**
|
|
529
|
+
* Retrieves the value from an object based on the provided path.
|
|
530
|
+
* @param {string} path The path to the desired value, using dot notation. For example, "a.b.c" for obj[a][b][c].
|
|
531
|
+
* @param {*} obj The object from which to retrieve the value.
|
|
532
|
+
* @returns {*} Returns the value at the specified path in the object. If the path is invalid or the value does not exist, returns undefined.
|
|
533
533
|
*/
|
|
534
534
|
function getValueFromObject(path: string, obj: any): any;
|
|
535
535
|
|
|
@@ -545,8 +545,8 @@ type Asyncable<T> = T | Promise<T>;
|
|
|
545
545
|
|
|
546
546
|
function Async<T>(el: Aventus.Asyncable<T>): Promise<T>;
|
|
547
547
|
|
|
548
|
-
/**
|
|
549
|
-
* List of HTTP Method allowed
|
|
548
|
+
/**
|
|
549
|
+
* List of HTTP Method allowed
|
|
550
550
|
*/
|
|
551
551
|
enum HttpMethod {
|
|
552
552
|
GET = "GET",
|
|
@@ -599,11 +599,11 @@ type ClassCopyOptions = {
|
|
|
599
599
|
transformValue?: (key: string, value: any) => any;
|
|
600
600
|
};
|
|
601
601
|
|
|
602
|
-
/**
|
|
603
|
-
* Interface representing data with methods to get its unique type and to clone itself.
|
|
602
|
+
/**
|
|
603
|
+
* Interface representing data with methods to get its unique type and to clone itself.
|
|
604
604
|
*/
|
|
605
|
-
@Storybook({
|
|
606
|
-
prefix: "Data"
|
|
605
|
+
@Storybook({
|
|
606
|
+
prefix: "Data"
|
|
607
607
|
})
|
|
608
608
|
interface IData {
|
|
609
609
|
/**
|
|
@@ -616,26 +616,26 @@ interface IData {
|
|
|
616
616
|
clone(): this;
|
|
617
617
|
}
|
|
618
618
|
|
|
619
|
-
@Storybook({
|
|
620
|
-
prefix: "Tools/Conveter"
|
|
619
|
+
@Storybook({
|
|
620
|
+
prefix: "Tools/Conveter"
|
|
621
621
|
})
|
|
622
622
|
interface Schema {
|
|
623
623
|
[key: string]: ___Aventus.SchemaType;
|
|
624
624
|
}
|
|
625
625
|
|
|
626
|
-
@Storybook({
|
|
627
|
-
prefix: "Tools/Conveter"
|
|
626
|
+
@Storybook({
|
|
627
|
+
prefix: "Tools/Conveter"
|
|
628
628
|
})
|
|
629
629
|
interface IConverterTransform {
|
|
630
630
|
transform<T = any>(data: any): T;
|
|
631
631
|
copyValuesClass<T extends Object>(target: T, src: T, options?: Aventus.ClassCopyOptions): void;
|
|
632
632
|
}
|
|
633
633
|
|
|
634
|
-
/**
|
|
635
|
-
* Utility class for JSON serialization and deserialization of objects.
|
|
634
|
+
/**
|
|
635
|
+
* Utility class for JSON serialization and deserialization of objects.
|
|
636
636
|
*/
|
|
637
|
-
@Storybook({
|
|
638
|
-
prefix: "Tools/Json"
|
|
637
|
+
@Storybook({
|
|
638
|
+
prefix: "Tools/Json"
|
|
639
639
|
})
|
|
640
640
|
class Json {
|
|
641
641
|
/**
|
|
@@ -661,8 +661,8 @@ class Json {
|
|
|
661
661
|
private static __classFromJson;
|
|
662
662
|
}
|
|
663
663
|
|
|
664
|
-
@Storybook({
|
|
665
|
-
prefix: "Tools/Conveter"
|
|
664
|
+
@Storybook({
|
|
665
|
+
prefix: "Tools/Conveter"
|
|
666
666
|
})
|
|
667
667
|
class ConverterTransform implements Aventus.IConverterTransform {
|
|
668
668
|
transform<T = any>(data: any): T;
|
|
@@ -676,11 +676,11 @@ class ConverterTransform implements Aventus.IConverterTransform {
|
|
|
676
676
|
private __classCopyValues;
|
|
677
677
|
}
|
|
678
678
|
|
|
679
|
-
/**
|
|
680
|
-
* Utility class for data conversion and manipulation.
|
|
679
|
+
/**
|
|
680
|
+
* Utility class for data conversion and manipulation.
|
|
681
681
|
*/
|
|
682
|
-
@Storybook({
|
|
683
|
-
prefix: "Tools/Conveter"
|
|
682
|
+
@Storybook({
|
|
683
|
+
prefix: "Tools/Conveter"
|
|
684
684
|
})
|
|
685
685
|
class Converter {
|
|
686
686
|
/**
|
|
@@ -750,11 +750,11 @@ class HttpResponse {
|
|
|
750
750
|
text(): Promise<string>;
|
|
751
751
|
}
|
|
752
752
|
|
|
753
|
-
/**
|
|
754
|
-
* Abstract class implementing IData with additional properties and methods for namespace and JSON handling.
|
|
753
|
+
/**
|
|
754
|
+
* Abstract class implementing IData with additional properties and methods for namespace and JSON handling.
|
|
755
755
|
*/
|
|
756
|
-
@Storybook({
|
|
757
|
-
prefix: "Data"
|
|
756
|
+
@Storybook({
|
|
757
|
+
prefix: "Data"
|
|
758
758
|
})
|
|
759
759
|
abstract class Data implements Aventus.IData {
|
|
760
760
|
private static converter;
|
|
@@ -804,13 +804,13 @@ class HttpCache {
|
|
|
804
804
|
private static hashStringToInt;
|
|
805
805
|
}
|
|
806
806
|
|
|
807
|
-
/**
|
|
808
|
-
* Represents a generic error with a code, message, and optional details.
|
|
809
|
-
* @template T - The type of the error code, which extends either number or Enum.
|
|
807
|
+
/**
|
|
808
|
+
* Represents a generic error with a code, message, and optional details.
|
|
809
|
+
* @template T - The type of the error code, which extends either number or Enum.
|
|
810
810
|
*/
|
|
811
811
|
@Convertible()
|
|
812
|
-
@Storybook({
|
|
813
|
-
prefix: "Error"
|
|
812
|
+
@Storybook({
|
|
813
|
+
prefix: "Error"
|
|
814
814
|
})
|
|
815
815
|
class GenericError<T extends (number | Aventus.Enum) = any> {
|
|
816
816
|
private static converter;
|
|
@@ -837,13 +837,13 @@ class GenericError<T extends (number | Aventus.Enum) = any> {
|
|
|
837
837
|
constructor(code: Aventus.EnumValue<T>, message: string | Error | unknown);
|
|
838
838
|
}
|
|
839
839
|
|
|
840
|
-
/**
|
|
841
|
-
* Represents a result of an action that may contain errors.
|
|
842
|
-
* @template T - The type of error, extending GenericError.
|
|
840
|
+
/**
|
|
841
|
+
* Represents a result of an action that may contain errors.
|
|
842
|
+
* @template T - The type of error, extending GenericError.
|
|
843
843
|
*/
|
|
844
844
|
@Convertible()
|
|
845
|
-
@Storybook({
|
|
846
|
-
prefix: "Error"
|
|
845
|
+
@Storybook({
|
|
846
|
+
prefix: "Error"
|
|
847
847
|
})
|
|
848
848
|
class VoidWithError<T extends Aventus.GenericError = Aventus.GenericError> {
|
|
849
849
|
static get Fullname(): string;
|
|
@@ -875,14 +875,14 @@ class VoidWithError<T extends Aventus.GenericError = Aventus.GenericError> {
|
|
|
875
875
|
extractAsync<X>(fct: (() => Promise<Aventus.ResultWithError<X, T>>)): Promise<X | undefined>;
|
|
876
876
|
}
|
|
877
877
|
|
|
878
|
-
/**
|
|
879
|
-
* Represents a result of an action that may contain errors and includes a result value.
|
|
880
|
-
* @template U The type of the result value.
|
|
881
|
-
* @template T The type of error, extending GenericError.
|
|
878
|
+
/**
|
|
879
|
+
* Represents a result of an action that may contain errors and includes a result value.
|
|
880
|
+
* @template U The type of the result value.
|
|
881
|
+
* @template T The type of error, extending GenericError.
|
|
882
882
|
*/
|
|
883
883
|
@Convertible()
|
|
884
|
-
@Storybook({
|
|
885
|
-
prefix: "Error"
|
|
884
|
+
@Storybook({
|
|
885
|
+
prefix: "Error"
|
|
886
886
|
})
|
|
887
887
|
class ResultWithError<U, T extends Aventus.GenericError = Aventus.GenericError> extends Aventus.VoidWithError<T> {
|
|
888
888
|
static get Fullname(): string;
|
|
@@ -900,18 +900,18 @@ class ResultWithError<U, T extends Aventus.GenericError = Aventus.GenericError>
|
|
|
900
900
|
runAsync(fct: (() => Promise<T[]>) | (() => Promise<Aventus.VoidWithError<T>>) | (() => ResultWithError<U, T>)): Promise<this>;
|
|
901
901
|
}
|
|
902
902
|
|
|
903
|
-
/**
|
|
904
|
-
* Extracts the error or void type from a given result type.
|
|
905
|
-
* If the provided type `T` is `ResultWithError`, it extracts the error type.
|
|
906
|
-
* If `T` is `VoidWithError`, it returns `void`.
|
|
907
|
-
* Otherwise, it returns `T`.
|
|
908
|
-
* @template T The input type to extract the error or void from.
|
|
909
|
-
* @template U The default type if `T` is not a `ResultWithError`.
|
|
903
|
+
/**
|
|
904
|
+
* Extracts the error or void type from a given result type.
|
|
905
|
+
* If the provided type `T` is `ResultWithError`, it extracts the error type.
|
|
906
|
+
* If `T` is `VoidWithError`, it returns `void`.
|
|
907
|
+
* Otherwise, it returns `T`.
|
|
908
|
+
* @template T The input type to extract the error or void from.
|
|
909
|
+
* @template U The default type if `T` is not a `ResultWithError`.
|
|
910
910
|
*/
|
|
911
911
|
type ExtractFromError<T, U = any> = T extends Aventus.ResultWithError<infer U, any> ? U : T extends Aventus.VoidWithError ? boolean : T;
|
|
912
912
|
|
|
913
|
-
@Storybook({
|
|
914
|
-
prefix: "Http"
|
|
913
|
+
@Storybook({
|
|
914
|
+
prefix: "Http"
|
|
915
915
|
})
|
|
916
916
|
class HttpError extends Aventus.GenericError<Aventus.HttpErrorCode> {
|
|
917
917
|
}
|
|
@@ -942,12 +942,12 @@ class Signal<T> implements Aventus.EffectReceiver {
|
|
|
942
942
|
destroy(): void;
|
|
943
943
|
}
|
|
944
944
|
|
|
945
|
-
/**
|
|
946
|
-
* Effect will recomputed each time a watchable variable or effect or computed are changed
|
|
947
|
-
* Each time the function is called, dependencies tree is updated. It's usefull when you have array or conditional inside
|
|
945
|
+
/**
|
|
946
|
+
* Effect will recomputed each time a watchable variable or effect or computed are changed
|
|
947
|
+
* Each time the function is called, dependencies tree is updated. It's usefull when you have array or conditional inside
|
|
948
948
|
*/
|
|
949
|
-
@Storybook({
|
|
950
|
-
prefix: "Lib/Watcher"
|
|
949
|
+
@Storybook({
|
|
950
|
+
prefix: "Lib/Watcher"
|
|
951
951
|
})
|
|
952
952
|
class Effect {
|
|
953
953
|
@InternalProtected()
|
|
@@ -983,13 +983,13 @@ class Effect {
|
|
|
983
983
|
unsubscribe(fct: Aventus.WatcherChange): void;
|
|
984
984
|
}
|
|
985
985
|
|
|
986
|
-
/**
|
|
987
|
-
* Computed will recomputed each time a watchable variable or effect or computed are changed
|
|
988
|
-
* When no change occured you can get the value by calling the value property
|
|
989
|
-
* Each time the function is called, dependencies tree is updated. It's usefull when you have array or conditional inside
|
|
986
|
+
/**
|
|
987
|
+
* Computed will recomputed each time a watchable variable or effect or computed are changed
|
|
988
|
+
* When no change occured you can get the value by calling the value property
|
|
989
|
+
* Each time the function is called, dependencies tree is updated. It's usefull when you have array or conditional inside
|
|
990
990
|
*/
|
|
991
|
-
@Storybook({
|
|
992
|
-
prefix: "Lib/Watcher"
|
|
991
|
+
@Storybook({
|
|
992
|
+
prefix: "Lib/Watcher"
|
|
993
993
|
})
|
|
994
994
|
class Computed<T = any> extends Aventus.Effect implements Aventus.EffectReceiver {
|
|
995
995
|
protected _value?: T;
|
|
@@ -1003,8 +1003,8 @@ class Computed<T = any> extends Aventus.Effect implements Aventus.EffectReceiver
|
|
|
1003
1003
|
protected onChange(action: Aventus.WatchAction, changePath: string, value: any, dones: any[]): void;
|
|
1004
1004
|
}
|
|
1005
1005
|
|
|
1006
|
-
@Storybook({
|
|
1007
|
-
prefix: "Lib/Watcher"
|
|
1006
|
+
@Storybook({
|
|
1007
|
+
prefix: "Lib/Watcher"
|
|
1008
1008
|
})
|
|
1009
1009
|
class Watcher {
|
|
1010
1010
|
static isNative(obj: any): boolean;
|
|
@@ -1040,13 +1040,13 @@ class Watcher {
|
|
|
1040
1040
|
static signal<T>(item: T, onChange?: () => void): Aventus.Signal<T>;
|
|
1041
1041
|
}
|
|
1042
1042
|
|
|
1043
|
-
/**
|
|
1044
|
-
* Computed will recomputed each time a watchable variable or effect or computed are changed
|
|
1045
|
-
* When no change occured you can get the value by calling the value property
|
|
1046
|
-
* The dependencies tree is created only during the first execution
|
|
1043
|
+
/**
|
|
1044
|
+
* Computed will recomputed each time a watchable variable or effect or computed are changed
|
|
1045
|
+
* When no change occured you can get the value by calling the value property
|
|
1046
|
+
* The dependencies tree is created only during the first execution
|
|
1047
1047
|
*/
|
|
1048
|
-
@Storybook({
|
|
1049
|
-
prefix: "Lib/Watcher"
|
|
1048
|
+
@Storybook({
|
|
1049
|
+
prefix: "Lib/Watcher"
|
|
1050
1050
|
})
|
|
1051
1051
|
class ComputedNoRecomputed<T = any> extends Aventus.Computed<T> {
|
|
1052
1052
|
protected init(): void;
|
|
@@ -1054,20 +1054,20 @@ class ComputedNoRecomputed<T = any> extends Aventus.Computed<T> {
|
|
|
1054
1054
|
protected run(): void;
|
|
1055
1055
|
}
|
|
1056
1056
|
|
|
1057
|
-
/**
|
|
1058
|
-
* Effect will recomputed each time a watchable variable or effect or computed are changed
|
|
1059
|
-
* The dependencies tree is created only during the first execution
|
|
1057
|
+
/**
|
|
1058
|
+
* Effect will recomputed each time a watchable variable or effect or computed are changed
|
|
1059
|
+
* The dependencies tree is created only during the first execution
|
|
1060
1060
|
*/
|
|
1061
|
-
@Storybook({
|
|
1062
|
-
prefix: "Lib/Watcher"
|
|
1061
|
+
@Storybook({
|
|
1062
|
+
prefix: "Lib/Watcher"
|
|
1063
1063
|
})
|
|
1064
1064
|
class EffectNoRecomputed extends Aventus.Effect {
|
|
1065
1065
|
protected init(): void;
|
|
1066
1066
|
protected run(): void;
|
|
1067
1067
|
}
|
|
1068
1068
|
|
|
1069
|
-
@Storybook({
|
|
1070
|
-
prefix: "Http"
|
|
1069
|
+
@Storybook({
|
|
1070
|
+
prefix: "Http"
|
|
1071
1071
|
})
|
|
1072
1072
|
class HttpRouter {
|
|
1073
1073
|
@InternalProtected()
|
|
@@ -1095,8 +1095,8 @@ class HttpRouter {
|
|
|
1095
1095
|
|
|
1096
1096
|
type RouterType = (abstract new (...args: any[]) => Aventus.HttpRouter);
|
|
1097
1097
|
|
|
1098
|
-
@Storybook({
|
|
1099
|
-
prefix: "Http"
|
|
1098
|
+
@Storybook({
|
|
1099
|
+
prefix: "Http"
|
|
1100
1100
|
})
|
|
1101
1101
|
class HttpRoute {
|
|
1102
1102
|
protected router: Aventus.HttpRouter;
|
|
@@ -1106,8 +1106,8 @@ class HttpRoute {
|
|
|
1106
1106
|
|
|
1107
1107
|
type RouteType = abstract new (...args: any[]) => Aventus.HttpRoute;
|
|
1108
1108
|
|
|
1109
|
-
@Storybook({
|
|
1110
|
-
prefix: "Http"
|
|
1109
|
+
@Storybook({
|
|
1110
|
+
prefix: "Http"
|
|
1111
1111
|
})
|
|
1112
1112
|
class HttpRequest {
|
|
1113
1113
|
private static options?;
|
|
@@ -1145,8 +1145,8 @@ class HttpRequest {
|
|
|
1145
1145
|
clearCache(router?: Aventus.HttpRouter): void;
|
|
1146
1146
|
}
|
|
1147
1147
|
|
|
1148
|
-
@Storybook({
|
|
1149
|
-
prefix: "Http"
|
|
1148
|
+
@Storybook({
|
|
1149
|
+
prefix: "Http"
|
|
1150
1150
|
})
|
|
1151
1151
|
abstract class StorableRoute<T extends Aventus.IData> extends Aventus.HttpRoute {
|
|
1152
1152
|
GetAll(): unknown;
|
|
@@ -1161,8 +1161,8 @@ abstract class StorableRoute<T extends Aventus.IData> extends Aventus.HttpRoute
|
|
|
1161
1161
|
abstract StorableName(): string;
|
|
1162
1162
|
}
|
|
1163
1163
|
|
|
1164
|
-
@Storybook({
|
|
1165
|
-
prefix: "Lib/Animation"
|
|
1164
|
+
@Storybook({
|
|
1165
|
+
prefix: "Lib/Animation"
|
|
1166
1166
|
})
|
|
1167
1167
|
class Animation {
|
|
1168
1168
|
/**
|
|
@@ -1204,8 +1204,8 @@ class Animation {
|
|
|
1204
1204
|
|
|
1205
1205
|
type DragElement = Aventus.DragElementXY | Aventus.DragElementLeftTop;
|
|
1206
1206
|
|
|
1207
|
-
@Storybook({
|
|
1208
|
-
prefix: "Lib/DragAndDrop"
|
|
1207
|
+
@Storybook({
|
|
1208
|
+
prefix: "Lib/DragAndDrop"
|
|
1209
1209
|
})
|
|
1210
1210
|
interface DragAndDropOptionsShadow {
|
|
1211
1211
|
/** If set to true, the drag and drop will create a shadow element while dragging and removing it on drop. It will not move the original element anymore */
|
|
@@ -1220,8 +1220,8 @@ interface DragAndDropOptionsShadow {
|
|
|
1220
1220
|
delete?: (el: Aventus.DragElement) => void;
|
|
1221
1221
|
}
|
|
1222
1222
|
|
|
1223
|
-
@Storybook({
|
|
1224
|
-
prefix: "Lib/DragAndDrop"
|
|
1223
|
+
@Storybook({
|
|
1224
|
+
prefix: "Lib/DragAndDrop"
|
|
1225
1225
|
})
|
|
1226
1226
|
interface DragAndDropOptions {
|
|
1227
1227
|
/** If set to false, the element won't move */
|
|
@@ -1272,8 +1272,8 @@ interface DragAndDropOptions {
|
|
|
1272
1272
|
correctPosition?: (position: ___Aventus.Coordinate) => ___Aventus.Coordinate;
|
|
1273
1273
|
}
|
|
1274
1274
|
|
|
1275
|
-
@Storybook({
|
|
1276
|
-
prefix: "Lib/PressManager"
|
|
1275
|
+
@Storybook({
|
|
1276
|
+
prefix: "Lib/PressManager"
|
|
1277
1277
|
})
|
|
1278
1278
|
class PressManager {
|
|
1279
1279
|
private static globalConfig;
|
|
@@ -1350,8 +1350,8 @@ class PressManager {
|
|
|
1350
1350
|
destroy(): void;
|
|
1351
1351
|
}
|
|
1352
1352
|
|
|
1353
|
-
@Storybook({
|
|
1354
|
-
prefix: "Lib/DragAndDrop"
|
|
1353
|
+
@Storybook({
|
|
1354
|
+
prefix: "Lib/DragAndDrop"
|
|
1355
1355
|
})
|
|
1356
1356
|
class DragAndDrop {
|
|
1357
1357
|
/**
|
|
@@ -1413,8 +1413,8 @@ class DragAndDrop {
|
|
|
1413
1413
|
private getOffsetParent;
|
|
1414
1414
|
}
|
|
1415
1415
|
|
|
1416
|
-
@Storybook({
|
|
1417
|
-
prefix: "Lib/Instance"
|
|
1416
|
+
@Storybook({
|
|
1417
|
+
prefix: "Lib/Instance"
|
|
1418
1418
|
})
|
|
1419
1419
|
class Instance {
|
|
1420
1420
|
private static elements;
|
|
@@ -1423,8 +1423,8 @@ class Instance {
|
|
|
1423
1423
|
static destroy<X extends Aventus.InstanceCst>(el: X): boolean;
|
|
1424
1424
|
}
|
|
1425
1425
|
|
|
1426
|
-
@Storybook({
|
|
1427
|
-
prefix: "Lib/ResizeObserver"
|
|
1426
|
+
@Storybook({
|
|
1427
|
+
prefix: "Lib/ResizeObserver"
|
|
1428
1428
|
})
|
|
1429
1429
|
class ResizeObserver {
|
|
1430
1430
|
private callback;
|
|
@@ -1459,8 +1459,8 @@ type PreparedUri = {
|
|
|
1459
1459
|
params: Aventus.UriParams[];
|
|
1460
1460
|
};
|
|
1461
1461
|
|
|
1462
|
-
@Storybook({
|
|
1463
|
-
prefix: "Lib/Uri"
|
|
1462
|
+
@Storybook({
|
|
1463
|
+
prefix: "Lib/Uri"
|
|
1464
1464
|
})
|
|
1465
1465
|
class Uri {
|
|
1466
1466
|
static prepare(uri: string): Aventus.PreparedUri;
|
|
@@ -1469,39 +1469,39 @@ class Uri {
|
|
|
1469
1469
|
static normalize(path: string): any;
|
|
1470
1470
|
}
|
|
1471
1471
|
|
|
1472
|
-
/**
|
|
1473
|
-
* Class representing a specific RAM error.
|
|
1474
|
-
* Inherits from GenericError with the error code type RamErrorCode.
|
|
1472
|
+
/**
|
|
1473
|
+
* Class representing a specific RAM error.
|
|
1474
|
+
* Inherits from GenericError with the error code type RamErrorCode.
|
|
1475
1475
|
*/
|
|
1476
|
-
@Storybook({
|
|
1477
|
-
prefix: "Ram"
|
|
1476
|
+
@Storybook({
|
|
1477
|
+
prefix: "Ram"
|
|
1478
1478
|
})
|
|
1479
1479
|
class RamError extends Aventus.GenericError<Aventus.RamErrorCode> {
|
|
1480
1480
|
}
|
|
1481
1481
|
|
|
1482
|
-
/**
|
|
1483
|
-
* Class representing the result of an action that may contain RAM-specific errors without a result.
|
|
1484
|
-
* Inherits from VoidWithError with the error type RamError.
|
|
1482
|
+
/**
|
|
1483
|
+
* Class representing the result of an action that may contain RAM-specific errors without a result.
|
|
1484
|
+
* Inherits from VoidWithError with the error type RamError.
|
|
1485
1485
|
*/
|
|
1486
|
-
@Storybook({
|
|
1487
|
-
prefix: "Ram"
|
|
1486
|
+
@Storybook({
|
|
1487
|
+
prefix: "Ram"
|
|
1488
1488
|
})
|
|
1489
1489
|
class VoidRamWithError extends Aventus.VoidWithError<Aventus.RamError> {
|
|
1490
1490
|
}
|
|
1491
1491
|
|
|
1492
|
-
/**
|
|
1493
|
-
* Class representing the result of an action that may contain RAM-specific errors with a result of a generic type.
|
|
1494
|
-
* @template T - The type of the action result.
|
|
1495
|
-
* Inherits from ResultWithError with the error type RamError.
|
|
1492
|
+
/**
|
|
1493
|
+
* Class representing the result of an action that may contain RAM-specific errors with a result of a generic type.
|
|
1494
|
+
* @template T - The type of the action result.
|
|
1495
|
+
* Inherits from ResultWithError with the error type RamError.
|
|
1496
1496
|
*/
|
|
1497
|
-
@Storybook({
|
|
1498
|
-
prefix: "Ram"
|
|
1497
|
+
@Storybook({
|
|
1498
|
+
prefix: "Ram"
|
|
1499
1499
|
})
|
|
1500
1500
|
class ResultRamWithError<T> extends Aventus.ResultWithError<T, Aventus.RamError> {
|
|
1501
1501
|
}
|
|
1502
1502
|
|
|
1503
|
-
@Storybook({
|
|
1504
|
-
prefix: "Ram"
|
|
1503
|
+
@Storybook({
|
|
1504
|
+
prefix: "Ram"
|
|
1505
1505
|
})
|
|
1506
1506
|
interface IRamAction<Resource, Request> {
|
|
1507
1507
|
update(newData: Request): Promise<this | undefined>;
|
|
@@ -1516,8 +1516,8 @@ interface IRamAction<Resource, Request> {
|
|
|
1516
1516
|
|
|
1517
1517
|
type RamItem<Resource extends Aventus.IRamData, Request> = Resource & Aventus.IRamAction<Resource, Request>;
|
|
1518
1518
|
|
|
1519
|
-
@Storybook({
|
|
1520
|
-
prefix: "Ram"
|
|
1519
|
+
@Storybook({
|
|
1520
|
+
prefix: "Ram"
|
|
1521
1521
|
})
|
|
1522
1522
|
abstract class GenericRam<Index, Item extends Aventus.IRamData, Request extends Aventus.Request | Item = Aventus.KeysObject<Item>, ResourceSimple extends Aventus.Resource | Item = Item, ResourceDetails extends ResourceSimple = ResourceSimple> implements Aventus.IRam {
|
|
1523
1523
|
static readonly info: Map<Aventus.IRam, new () => any>;
|
|
@@ -1864,17 +1864,17 @@ abstract class GenericRam<Index, Item extends Aventus.IRamData, Request extends
|
|
|
1864
1864
|
protected afterDeleteList(result: Aventus.RamItem<ResourceDetails, Request>[]): Promise<Aventus.VoidWithError>;
|
|
1865
1865
|
}
|
|
1866
1866
|
|
|
1867
|
-
/**
|
|
1868
|
-
* Default Ram with number as Index
|
|
1867
|
+
/**
|
|
1868
|
+
* Default Ram with number as Index
|
|
1869
1869
|
*/
|
|
1870
|
-
@Storybook({
|
|
1871
|
-
prefix: "Ram"
|
|
1870
|
+
@Storybook({
|
|
1871
|
+
prefix: "Ram"
|
|
1872
1872
|
})
|
|
1873
1873
|
abstract class Ram<Item extends Aventus.IRamData, Request extends Aventus.Request | Item = Item, ResourceSimple extends Aventus.Resource | Item = Item, ResourceDetails extends ResourceSimple = ResourceSimple> extends Aventus.GenericRam<number, Item, Request, ResourceSimple, ResourceDetails> {
|
|
1874
1874
|
}
|
|
1875
1875
|
|
|
1876
|
-
@Storybook({
|
|
1877
|
-
prefix: "State"
|
|
1876
|
+
@Storybook({
|
|
1877
|
+
prefix: "State"
|
|
1878
1878
|
})
|
|
1879
1879
|
interface StateAction {
|
|
1880
1880
|
active?: ___Aventus.StateActivationFct | ___Aventus.StateActivationFct[];
|
|
@@ -1882,8 +1882,8 @@ interface StateAction {
|
|
|
1882
1882
|
askChange?: ___Aventus.StateAskChangeFct | ___Aventus.StateAskChangeFct[];
|
|
1883
1883
|
}
|
|
1884
1884
|
|
|
1885
|
-
@Storybook({
|
|
1886
|
-
prefix: "State"
|
|
1885
|
+
@Storybook({
|
|
1886
|
+
prefix: "State"
|
|
1887
1887
|
})
|
|
1888
1888
|
interface IStateManager {
|
|
1889
1889
|
subscribe(statePatterns: string | string[], callbacks: Aventus.StateAction): void;
|
|
@@ -1896,8 +1896,8 @@ interface IStateManager {
|
|
|
1896
1896
|
getStateSlugs(statePattern: string): Aventus.UriParamsValue | null;
|
|
1897
1897
|
}
|
|
1898
1898
|
|
|
1899
|
-
@Storybook({
|
|
1900
|
-
prefix: "State"
|
|
1899
|
+
@Storybook({
|
|
1900
|
+
prefix: "State"
|
|
1901
1901
|
})
|
|
1902
1902
|
abstract class StateManager implements Aventus.IStateManager {
|
|
1903
1903
|
protected subscribers: {
|
|
@@ -1941,8 +1941,8 @@ abstract class StateManager implements Aventus.IStateManager {
|
|
|
1941
1941
|
protected _log(msg: string, type: "error" | "warning" | "info"): void;
|
|
1942
1942
|
}
|
|
1943
1943
|
|
|
1944
|
-
@Storybook({
|
|
1945
|
-
prefix: "State"
|
|
1944
|
+
@Storybook({
|
|
1945
|
+
prefix: "State"
|
|
1946
1946
|
})
|
|
1947
1947
|
interface IState {
|
|
1948
1948
|
readonly name: string;
|
|
@@ -1952,8 +1952,8 @@ interface IState {
|
|
|
1952
1952
|
askChange(state: Aventus.State, nextState: Aventus.State): Promise<boolean>;
|
|
1953
1953
|
}
|
|
1954
1954
|
|
|
1955
|
-
@Storybook({
|
|
1956
|
-
prefix: "State"
|
|
1955
|
+
@Storybook({
|
|
1956
|
+
prefix: "State"
|
|
1957
1957
|
})
|
|
1958
1958
|
abstract class State implements Aventus.IState {
|
|
1959
1959
|
/**
|
|
@@ -1971,8 +1971,8 @@ abstract class State implements Aventus.IState {
|
|
|
1971
1971
|
askChange(state: State, nextState: State): Promise<boolean>;
|
|
1972
1972
|
}
|
|
1973
1973
|
|
|
1974
|
-
@Storybook({
|
|
1975
|
-
prefix: "State"
|
|
1974
|
+
@Storybook({
|
|
1975
|
+
prefix: "State"
|
|
1976
1976
|
})
|
|
1977
1977
|
class EmptyState extends Aventus.State implements Aventus.IState {
|
|
1978
1978
|
private localName;
|
|
@@ -1983,8 +1983,8 @@ class EmptyState extends Aventus.State implements Aventus.IState {
|
|
|
1983
1983
|
get name(): string;
|
|
1984
1984
|
}
|
|
1985
1985
|
|
|
1986
|
-
@Storybook({
|
|
1987
|
-
prefix: "Webcomponent"
|
|
1986
|
+
@Storybook({
|
|
1987
|
+
prefix: "Webcomponent"
|
|
1988
1988
|
})
|
|
1989
1989
|
class TemplateInstance {
|
|
1990
1990
|
@Internal()
|
|
@@ -2028,8 +2028,8 @@ class TemplateInstance {
|
|
|
2028
2028
|
private renderIfRecreate;
|
|
2029
2029
|
}
|
|
2030
2030
|
|
|
2031
|
-
@Storybook({
|
|
2032
|
-
prefix: "Webcomponent"
|
|
2031
|
+
@Storybook({
|
|
2032
|
+
prefix: "Webcomponent"
|
|
2033
2033
|
})
|
|
2034
2034
|
class TemplateContext {
|
|
2035
2035
|
data: {
|
|
@@ -2057,8 +2057,8 @@ class TemplateContext {
|
|
|
2057
2057
|
setValueToItem(name: string, value: any): void;
|
|
2058
2058
|
}
|
|
2059
2059
|
|
|
2060
|
-
@Storybook({
|
|
2061
|
-
prefix: "Webcomponent"
|
|
2060
|
+
@Storybook({
|
|
2061
|
+
prefix: "Webcomponent"
|
|
2062
2062
|
})
|
|
2063
2063
|
class Template {
|
|
2064
2064
|
static validatePath(path: string, pathToCheck: string): boolean;
|
|
@@ -2082,12 +2082,12 @@ class Template {
|
|
|
2082
2082
|
createInstance(component: Aventus.WebComponent): any;
|
|
2083
2083
|
}
|
|
2084
2084
|
|
|
2085
|
-
@Dependencies([{
|
|
2086
|
-
type: WebComponentInstance,
|
|
2087
|
-
strong: true
|
|
2085
|
+
@Dependencies([{
|
|
2086
|
+
type: WebComponentInstance,
|
|
2087
|
+
strong: true
|
|
2088
2088
|
}])
|
|
2089
|
-
@Storybook({
|
|
2090
|
-
prefix: "Webcomponent"
|
|
2089
|
+
@Storybook({
|
|
2090
|
+
prefix: "Webcomponent"
|
|
2091
2091
|
})
|
|
2092
2092
|
abstract class WebComponent extends HTMLElement implements Aventus.DefaultComponent {
|
|
2093
2093
|
/**
|
|
@@ -2295,8 +2295,8 @@ abstract class WebComponent extends HTMLElement implements Aventus.DefaultCompon
|
|
|
2295
2295
|
getActiveElement(document?: Document): Element | null;
|
|
2296
2296
|
}
|
|
2297
2297
|
|
|
2298
|
-
@Storybook({
|
|
2299
|
-
prefix: "Webcomponent"
|
|
2298
|
+
@Storybook({
|
|
2299
|
+
prefix: "Webcomponent"
|
|
2300
2300
|
})
|
|
2301
2301
|
class WebComponentInstance {
|
|
2302
2302
|
private static __allDefinitions;
|
|
@@ -2321,8 +2321,8 @@ class WebComponentInstance {
|
|
|
2321
2321
|
static create<T>(type: string): T | null;
|
|
2322
2322
|
}
|
|
2323
2323
|
|
|
2324
|
-
@Storybook({
|
|
2325
|
-
prefix: "Webcomponent"
|
|
2324
|
+
@Storybook({
|
|
2325
|
+
prefix: "Webcomponent"
|
|
2326
2326
|
})
|
|
2327
2327
|
class ElementExtension {
|
|
2328
2328
|
/**
|
|
@@ -2377,207 +2377,207 @@ class ElementExtension {
|
|
|
2377
2377
|
}
|
|
2378
2378
|
|
|
2379
2379
|
}
|
|
2380
|
-
|
|
2381
|
-
var AvInstance: typeof Aventus.Instance;
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
declare namespace Aventus {
|
|
2385
|
-
interface WebComponent extends HTMLElement {
|
|
2386
|
-
shadowRoot: ShadowRoot;
|
|
2387
|
-
}
|
|
2388
|
-
}
|
|
2389
|
-
|
|
2390
|
-
|
|
2391
|
-
type ConstructorConstraint<T> = Function & { prototype: T; };
|
|
2392
|
-
|
|
2393
|
-
type AvClassDecorator = <Class extends Function & { prototype: any; }>(
|
|
2394
|
-
value: Class,
|
|
2395
|
-
context: ClassDecoratorContext<Class>
|
|
2396
|
-
) => Class | void;
|
|
2397
|
-
|
|
2398
|
-
type AvClassComponentDecorator = <Class extends ConstructorConstraint<Aventus.WebComponent>>(
|
|
2399
|
-
value: Class,
|
|
2400
|
-
context: ClassDecoratorContext<Class>
|
|
2401
|
-
) => Class | void;
|
|
2402
|
-
|
|
2403
|
-
type AvGetterDecorator = <This, Return>(
|
|
2404
|
-
value: (this: This) => Return,
|
|
2405
|
-
context: ClassGetterDecoratorContext<This, Return>
|
|
2406
|
-
) => ((this: This) => Return) | void;
|
|
2407
|
-
|
|
2408
|
-
type AvSetterDecorator = <This, Value>(
|
|
2409
|
-
value: (this: This, value: Value) => void,
|
|
2410
|
-
context: ClassSetterDecoratorContext<This, Value>
|
|
2411
|
-
) => ((this: This, value: Value) => void) | void;
|
|
2412
|
-
|
|
2413
|
-
type AvFieldDecorator = <This, Value>(
|
|
2414
|
-
value: undefined,
|
|
2415
|
-
context: ClassFieldDecoratorContext<This, Value>
|
|
2416
|
-
) => ((this: This, initialValue: Value) => Value) | void;
|
|
2417
|
-
|
|
2418
|
-
type AvPropertyDecorator = AvGetterDecorator & AvSetterDecorator & AvFieldDecorator
|
|
2419
|
-
|
|
2420
|
-
type AvAccessorDecorator = <This, Value>(
|
|
2421
|
-
value: ClassAccessorDecoratorTarget<This, Value>,
|
|
2422
|
-
context: ClassAccessorDecoratorContext<This, Value>
|
|
2423
|
-
) => ClassAccessorDecoratorResult<This, Value> | void;
|
|
2424
|
-
|
|
2425
|
-
type AvMethodDecorator = <This, Args extends any[], Return>(
|
|
2426
|
-
target: (this: This, ...args: Args) => Return,
|
|
2427
|
-
context: ClassMethodDecoratorContext<This, (this: This, ...args: Args) => Return>
|
|
2428
|
-
) => ((this: This, ...args: Args) => Return) | void;
|
|
2429
|
-
|
|
2430
|
-
interface DebuggerConfig {
|
|
2431
|
-
/** Write the compiled file inside ./compiled.js */
|
|
2432
|
-
writeCompiled?: boolean,
|
|
2433
|
-
/** Write the view parsed */
|
|
2434
|
-
writeHTML?: boolean;
|
|
2435
|
-
/** Write the ts file for the component with template methods */
|
|
2436
|
-
writeComponentTs?: boolean;
|
|
2437
|
-
/** Enable history for watch property and add a function getWatchHistory on this component*/
|
|
2438
|
-
enableWatchHistory?: boolean,
|
|
2439
|
-
}
|
|
2440
|
-
|
|
2441
|
-
interface OverrideViewConfig {
|
|
2442
|
-
/** if set the component ll do a query selector else the component is the one loaded on first render */
|
|
2443
|
-
removeViewVariables?: string[];
|
|
2444
|
-
}
|
|
2445
|
-
|
|
2446
|
-
interface ViewElementConfig {
|
|
2447
|
-
/** if set the component ll do a query selector else the component is the one loaded on first render */
|
|
2448
|
-
useLive?: boolean;
|
|
2449
|
-
}
|
|
2450
|
-
|
|
2451
|
-
interface DependenciesConfig {
|
|
2452
|
-
/** The type to load */
|
|
2453
|
-
type: any,
|
|
2454
|
-
/** The type must be loaded before the current class */
|
|
2455
|
-
strong?: boolean;
|
|
2456
|
-
}
|
|
2457
|
-
|
|
2458
|
-
/**
|
|
2459
|
-
* Add an attribute inside on your component
|
|
2460
|
-
*/
|
|
2461
|
-
function Attribute(): AvPropertyDecorator;
|
|
2462
|
-
/**
|
|
2463
|
-
* Add an attribute inside on your component with changes analyze
|
|
2464
|
-
*/
|
|
2465
|
-
function Property(): AvPropertyDecorator;
|
|
2466
|
-
/**
|
|
2467
|
-
* Add an attribute inside on your component with changes analyze
|
|
2468
|
-
*/
|
|
2469
|
-
function Property<T>(onChange: (component: T) => void): AvPropertyDecorator;
|
|
2470
|
-
/**
|
|
2471
|
-
* Add an attribute inside on your component with changes analyze
|
|
2472
|
-
*/
|
|
2473
|
-
function Signal(): AvPropertyDecorator;
|
|
2474
|
-
/**
|
|
2475
|
-
* Add an attribute inside on your component with changes analyze
|
|
2476
|
-
*/
|
|
2477
|
-
function Signal<T>(onChange: (component: T) => void): AvPropertyDecorator;
|
|
2478
|
-
/**
|
|
2479
|
-
* Add a property inside a watcher to be notify of changing
|
|
2480
|
-
*/
|
|
2481
|
-
function Watch(): AvPropertyDecorator;
|
|
2482
|
-
/**
|
|
2483
|
-
* Add a property inside a watcher to be notify of changing
|
|
2484
|
-
*/
|
|
2485
|
-
function Watch<T>(onChange: (component: T, action: Aventus.WatchAction, path: string, value: any) => void): AvPropertyDecorator;
|
|
2486
|
-
/**
|
|
2487
|
-
* Allow injection autocompletion
|
|
2488
|
-
*/
|
|
2489
|
-
function Injectable(): AvPropertyDecorator;
|
|
2490
|
-
/**
|
|
2491
|
-
* Add a function inside a watcher to be notify of changing
|
|
2492
|
-
*/
|
|
2493
|
-
function Effect(options?: { autoInit?: boolean; }): AvMethodDecorator;
|
|
2494
|
-
/**
|
|
2495
|
-
* Signal that this variable is a link to your shadowroot
|
|
2496
|
-
*/
|
|
2497
|
-
function ViewElement(config?: ViewElementConfig): AvPropertyDecorator;
|
|
2498
|
-
/**
|
|
2499
|
-
* Add foreign key reference
|
|
2500
|
-
*/
|
|
2501
|
-
function ForeignKey(ref: ConstructorConstraint<Aventus.IData>): AvPropertyDecorator;
|
|
2502
|
-
/**
|
|
2503
|
-
* Define a public property that will be transformed to private once compiled
|
|
2504
|
-
*/
|
|
2505
|
-
function Internal(): AvPropertyDecorator & AvMethodDecorator;
|
|
2506
|
-
/**
|
|
2507
|
-
* Define a public property that will be transformed to protected once compiled
|
|
2508
|
-
*/
|
|
2509
|
-
function InternalProtected(): AvPropertyDecorator & AvMethodDecorator;
|
|
2510
|
-
|
|
2511
|
-
function StateActive(stateName: string, manager: ConstructorConstraint<Aventus.StateManager> | Aventus.StateManager): AvMethodDecorator;
|
|
2512
|
-
function DefaultStateActive(manager: ConstructorConstraint<Aventus.StateManager> | Aventus.StateManager): AvMethodDecorator;
|
|
2513
|
-
function StateInactive(stateName: string, manager: ConstructorConstraint<Aventus.StateManager> | Aventus.StateManager): AvMethodDecorator;
|
|
2514
|
-
function DefaultStateInactive(manager: ConstructorConstraint<Aventus.StateManager> | Aventus.StateManager): AvMethodDecorator;
|
|
2515
|
-
function StateChange(stateName: string, manager: ConstructorConstraint<Aventus.StateManager> | Aventus.StateManager): AvMethodDecorator;
|
|
2516
|
-
|
|
2517
|
-
/**
|
|
2518
|
-
* Clear parent view and use your
|
|
2519
|
-
*/
|
|
2520
|
-
function OverrideView(config?: OverrideViewConfig): AvClassComponentDecorator;
|
|
2521
|
-
/**
|
|
2522
|
-
* use a custom TagName
|
|
2523
|
-
*/
|
|
2524
|
-
function TagName(name: string): AvClassComponentDecorator;
|
|
2525
|
-
/**
|
|
2526
|
-
* Force to be required inside export
|
|
2527
|
-
*/
|
|
2528
|
-
function Required(): AvMethodDecorator;
|
|
2529
|
-
/**
|
|
2530
|
-
* Add debbuger action function for your component
|
|
2531
|
-
*/
|
|
2532
|
-
function Debugger(config: DebuggerConfig): AvClassComponentDecorator;
|
|
2533
|
-
|
|
2534
|
-
|
|
2535
|
-
function Dependencies(info: DependenciesConfig[]): AvClassDecorator;
|
|
2536
|
-
|
|
2537
|
-
/**
|
|
2538
|
-
* Register the element inside the Converter instance
|
|
2539
|
-
* Your object must have a static type named as the parameter
|
|
2540
|
-
*/
|
|
2541
|
-
function Convertible(name: string = "Fullname"): AvClassDecorator;
|
|
2542
|
-
|
|
2543
|
-
function BindThis(): AvMethodDecorator;
|
|
2544
|
-
|
|
2545
|
-
function NoCompile(): AvMethodDecorator;
|
|
2546
|
-
|
|
2547
|
-
interface StorybookConfig {
|
|
2548
|
-
/** Define what must be exported to storybook */
|
|
2549
|
-
export?: 'all' | 'none' | 'public' | 'protected',
|
|
2550
|
-
/** Define a prefix for the group of your stories */
|
|
2551
|
-
prefix?: string,
|
|
2552
|
-
/** Define the group for your element. If not set, the group will be the namespace */
|
|
2553
|
-
group?: string,
|
|
2554
|
-
/** If set to true, only meta will be generated. Usefull to create custom pages */
|
|
2555
|
-
noLive?: boolean;
|
|
2556
|
-
/** If set to true, no default story will be created. This will also prevent the rendering of the live section */
|
|
2557
|
-
noDefaultStory?: boolean;
|
|
2558
|
-
/** Define the configruation for your slots */
|
|
2559
|
-
slots?: {
|
|
2560
|
-
/** Define the slot content base on the name */
|
|
2561
|
-
values?: {
|
|
2562
|
-
[name: string]: string;
|
|
2563
|
-
};
|
|
2564
|
-
/** Inject type */
|
|
2565
|
-
inject?: (new (...args: any[]) => Aventus.WebComponent)[];
|
|
2566
|
-
};
|
|
2567
|
-
}
|
|
2568
|
-
/**
|
|
2569
|
-
* Export a story for this component
|
|
2570
|
-
*/
|
|
2571
|
-
function Storybook(info?: StorybookConfig): AvClassDecorator;
|
|
2572
|
-
|
|
2573
|
-
function NoStory();
|
|
2574
|
-
function AddToStory();
|
|
2575
|
-
function StoryValue(value: any);
|
|
2576
|
-
|
|
2577
|
-
/**
|
|
2578
|
-
* Mark as deprecated
|
|
2579
|
-
*/
|
|
2580
|
-
function Deprecated(msg?: string);
|
|
2380
|
+
|
|
2381
|
+
var AvInstance: typeof Aventus.Instance;
|
|
2382
|
+
|
|
2383
|
+
|
|
2384
|
+
declare namespace Aventus {
|
|
2385
|
+
interface WebComponent extends HTMLElement {
|
|
2386
|
+
shadowRoot: ShadowRoot;
|
|
2387
|
+
}
|
|
2388
|
+
}
|
|
2389
|
+
|
|
2390
|
+
|
|
2391
|
+
type ConstructorConstraint<T> = Function & { prototype: T; };
|
|
2392
|
+
|
|
2393
|
+
type AvClassDecorator = <Class extends Function & { prototype: any; }>(
|
|
2394
|
+
value: Class,
|
|
2395
|
+
context: ClassDecoratorContext<Class>
|
|
2396
|
+
) => Class | void;
|
|
2397
|
+
|
|
2398
|
+
type AvClassComponentDecorator = <Class extends ConstructorConstraint<Aventus.WebComponent>>(
|
|
2399
|
+
value: Class,
|
|
2400
|
+
context: ClassDecoratorContext<Class>
|
|
2401
|
+
) => Class | void;
|
|
2402
|
+
|
|
2403
|
+
type AvGetterDecorator = <This, Return>(
|
|
2404
|
+
value: (this: This) => Return,
|
|
2405
|
+
context: ClassGetterDecoratorContext<This, Return>
|
|
2406
|
+
) => ((this: This) => Return) | void;
|
|
2407
|
+
|
|
2408
|
+
type AvSetterDecorator = <This, Value>(
|
|
2409
|
+
value: (this: This, value: Value) => void,
|
|
2410
|
+
context: ClassSetterDecoratorContext<This, Value>
|
|
2411
|
+
) => ((this: This, value: Value) => void) | void;
|
|
2412
|
+
|
|
2413
|
+
type AvFieldDecorator = <This, Value>(
|
|
2414
|
+
value: undefined,
|
|
2415
|
+
context: ClassFieldDecoratorContext<This, Value>
|
|
2416
|
+
) => ((this: This, initialValue: Value) => Value) | void;
|
|
2417
|
+
|
|
2418
|
+
type AvPropertyDecorator = AvGetterDecorator & AvSetterDecorator & AvFieldDecorator
|
|
2419
|
+
|
|
2420
|
+
type AvAccessorDecorator = <This, Value>(
|
|
2421
|
+
value: ClassAccessorDecoratorTarget<This, Value>,
|
|
2422
|
+
context: ClassAccessorDecoratorContext<This, Value>
|
|
2423
|
+
) => ClassAccessorDecoratorResult<This, Value> | void;
|
|
2424
|
+
|
|
2425
|
+
type AvMethodDecorator = <This, Args extends any[], Return>(
|
|
2426
|
+
target: (this: This, ...args: Args) => Return,
|
|
2427
|
+
context: ClassMethodDecoratorContext<This, (this: This, ...args: Args) => Return>
|
|
2428
|
+
) => ((this: This, ...args: Args) => Return) | void;
|
|
2429
|
+
|
|
2430
|
+
interface DebuggerConfig {
|
|
2431
|
+
/** Write the compiled file inside ./compiled.js */
|
|
2432
|
+
writeCompiled?: boolean,
|
|
2433
|
+
/** Write the view parsed */
|
|
2434
|
+
writeHTML?: boolean;
|
|
2435
|
+
/** Write the ts file for the component with template methods */
|
|
2436
|
+
writeComponentTs?: boolean;
|
|
2437
|
+
/** Enable history for watch property and add a function getWatchHistory on this component*/
|
|
2438
|
+
enableWatchHistory?: boolean,
|
|
2439
|
+
}
|
|
2440
|
+
|
|
2441
|
+
interface OverrideViewConfig {
|
|
2442
|
+
/** if set the component ll do a query selector else the component is the one loaded on first render */
|
|
2443
|
+
removeViewVariables?: string[];
|
|
2444
|
+
}
|
|
2445
|
+
|
|
2446
|
+
interface ViewElementConfig {
|
|
2447
|
+
/** if set the component ll do a query selector else the component is the one loaded on first render */
|
|
2448
|
+
useLive?: boolean;
|
|
2449
|
+
}
|
|
2450
|
+
|
|
2451
|
+
interface DependenciesConfig {
|
|
2452
|
+
/** The type to load */
|
|
2453
|
+
type: any,
|
|
2454
|
+
/** The type must be loaded before the current class */
|
|
2455
|
+
strong?: boolean;
|
|
2456
|
+
}
|
|
2457
|
+
|
|
2458
|
+
/**
|
|
2459
|
+
* Add an attribute inside on your component
|
|
2460
|
+
*/
|
|
2461
|
+
function Attribute(): AvPropertyDecorator;
|
|
2462
|
+
/**
|
|
2463
|
+
* Add an attribute inside on your component with changes analyze
|
|
2464
|
+
*/
|
|
2465
|
+
function Property(): AvPropertyDecorator;
|
|
2466
|
+
/**
|
|
2467
|
+
* Add an attribute inside on your component with changes analyze
|
|
2468
|
+
*/
|
|
2469
|
+
function Property<T>(onChange: (component: T) => void): AvPropertyDecorator;
|
|
2470
|
+
/**
|
|
2471
|
+
* Add an attribute inside on your component with changes analyze
|
|
2472
|
+
*/
|
|
2473
|
+
function Signal(): AvPropertyDecorator;
|
|
2474
|
+
/**
|
|
2475
|
+
* Add an attribute inside on your component with changes analyze
|
|
2476
|
+
*/
|
|
2477
|
+
function Signal<T>(onChange: (component: T) => void): AvPropertyDecorator;
|
|
2478
|
+
/**
|
|
2479
|
+
* Add a property inside a watcher to be notify of changing
|
|
2480
|
+
*/
|
|
2481
|
+
function Watch(): AvPropertyDecorator;
|
|
2482
|
+
/**
|
|
2483
|
+
* Add a property inside a watcher to be notify of changing
|
|
2484
|
+
*/
|
|
2485
|
+
function Watch<T>(onChange: (component: T, action: Aventus.WatchAction, path: string, value: any) => void): AvPropertyDecorator;
|
|
2486
|
+
/**
|
|
2487
|
+
* Allow injection autocompletion
|
|
2488
|
+
*/
|
|
2489
|
+
function Injectable(): AvPropertyDecorator;
|
|
2490
|
+
/**
|
|
2491
|
+
* Add a function inside a watcher to be notify of changing
|
|
2492
|
+
*/
|
|
2493
|
+
function Effect(options?: { autoInit?: boolean; }): AvMethodDecorator;
|
|
2494
|
+
/**
|
|
2495
|
+
* Signal that this variable is a link to your shadowroot
|
|
2496
|
+
*/
|
|
2497
|
+
function ViewElement(config?: ViewElementConfig): AvPropertyDecorator;
|
|
2498
|
+
/**
|
|
2499
|
+
* Add foreign key reference
|
|
2500
|
+
*/
|
|
2501
|
+
function ForeignKey(ref: ConstructorConstraint<Aventus.IData>): AvPropertyDecorator;
|
|
2502
|
+
/**
|
|
2503
|
+
* Define a public property that will be transformed to private once compiled
|
|
2504
|
+
*/
|
|
2505
|
+
function Internal(): AvPropertyDecorator & AvMethodDecorator;
|
|
2506
|
+
/**
|
|
2507
|
+
* Define a public property that will be transformed to protected once compiled
|
|
2508
|
+
*/
|
|
2509
|
+
function InternalProtected(): AvPropertyDecorator & AvMethodDecorator;
|
|
2510
|
+
|
|
2511
|
+
function StateActive(stateName: string, manager: ConstructorConstraint<Aventus.StateManager> | Aventus.StateManager): AvMethodDecorator;
|
|
2512
|
+
function DefaultStateActive(manager: ConstructorConstraint<Aventus.StateManager> | Aventus.StateManager): AvMethodDecorator;
|
|
2513
|
+
function StateInactive(stateName: string, manager: ConstructorConstraint<Aventus.StateManager> | Aventus.StateManager): AvMethodDecorator;
|
|
2514
|
+
function DefaultStateInactive(manager: ConstructorConstraint<Aventus.StateManager> | Aventus.StateManager): AvMethodDecorator;
|
|
2515
|
+
function StateChange(stateName: string, manager: ConstructorConstraint<Aventus.StateManager> | Aventus.StateManager): AvMethodDecorator;
|
|
2516
|
+
|
|
2517
|
+
/**
|
|
2518
|
+
* Clear parent view and use your
|
|
2519
|
+
*/
|
|
2520
|
+
function OverrideView(config?: OverrideViewConfig): AvClassComponentDecorator;
|
|
2521
|
+
/**
|
|
2522
|
+
* use a custom TagName
|
|
2523
|
+
*/
|
|
2524
|
+
function TagName(name: string): AvClassComponentDecorator;
|
|
2525
|
+
/**
|
|
2526
|
+
* Force to be required inside export
|
|
2527
|
+
*/
|
|
2528
|
+
function Required(): AvMethodDecorator;
|
|
2529
|
+
/**
|
|
2530
|
+
* Add debbuger action function for your component
|
|
2531
|
+
*/
|
|
2532
|
+
function Debugger(config: DebuggerConfig): AvClassComponentDecorator;
|
|
2533
|
+
|
|
2534
|
+
|
|
2535
|
+
function Dependencies(info: DependenciesConfig[]): AvClassDecorator;
|
|
2536
|
+
|
|
2537
|
+
/**
|
|
2538
|
+
* Register the element inside the Converter instance
|
|
2539
|
+
* Your object must have a static type named as the parameter
|
|
2540
|
+
*/
|
|
2541
|
+
function Convertible(name: string = "Fullname"): AvClassDecorator;
|
|
2542
|
+
|
|
2543
|
+
function BindThis(): AvMethodDecorator;
|
|
2544
|
+
|
|
2545
|
+
function NoCompile(): AvMethodDecorator;
|
|
2546
|
+
|
|
2547
|
+
interface StorybookConfig {
|
|
2548
|
+
/** Define what must be exported to storybook */
|
|
2549
|
+
export?: 'all' | 'none' | 'public' | 'protected',
|
|
2550
|
+
/** Define a prefix for the group of your stories */
|
|
2551
|
+
prefix?: string,
|
|
2552
|
+
/** Define the group for your element. If not set, the group will be the namespace */
|
|
2553
|
+
group?: string,
|
|
2554
|
+
/** If set to true, only meta will be generated. Usefull to create custom pages */
|
|
2555
|
+
noLive?: boolean;
|
|
2556
|
+
/** If set to true, no default story will be created. This will also prevent the rendering of the live section */
|
|
2557
|
+
noDefaultStory?: boolean;
|
|
2558
|
+
/** Define the configruation for your slots */
|
|
2559
|
+
slots?: {
|
|
2560
|
+
/** Define the slot content base on the name */
|
|
2561
|
+
values?: {
|
|
2562
|
+
[name: string]: string;
|
|
2563
|
+
};
|
|
2564
|
+
/** Inject type */
|
|
2565
|
+
inject?: (new (...args: any[]) => Aventus.WebComponent)[];
|
|
2566
|
+
};
|
|
2567
|
+
}
|
|
2568
|
+
/**
|
|
2569
|
+
* Export a story for this component
|
|
2570
|
+
*/
|
|
2571
|
+
function Storybook(info?: StorybookConfig): AvClassDecorator;
|
|
2572
|
+
|
|
2573
|
+
function NoStory();
|
|
2574
|
+
function AddToStory();
|
|
2575
|
+
function StoryValue(value: any);
|
|
2576
|
+
|
|
2577
|
+
/**
|
|
2578
|
+
* Mark as deprecated
|
|
2579
|
+
*/
|
|
2580
|
+
function Deprecated(msg?: string);
|
|
2581
2581
|
|
|
2582
2582
|
}
|
|
2583
2583
|
declare module ___Aventus {
|
|
@@ -2643,8 +2643,8 @@ type TemplateHTML = {
|
|
|
2643
2643
|
|
|
2644
2644
|
type OnlyConstructor<T = any> = (abstract new (...args: any[]) => T);
|
|
2645
2645
|
|
|
2646
|
-
@Storybook({
|
|
2647
|
-
prefix: "Ram"
|
|
2646
|
+
@Storybook({
|
|
2647
|
+
prefix: "Ram"
|
|
2648
2648
|
})
|
|
2649
2649
|
interface RamSubscribers<Item> {
|
|
2650
2650
|
created: ((item: Item) => void)[];
|
|
@@ -2658,8 +2658,8 @@ type StateInactivationFct = (state: globalThis.Aventus.State, nextState: globalT
|
|
|
2658
2658
|
|
|
2659
2659
|
type WindowResizeObserver = globalThis.ResizeObserver;
|
|
2660
2660
|
|
|
2661
|
-
@Storybook({
|
|
2662
|
-
prefix: "Lib/DragAndDrop"
|
|
2661
|
+
@Storybook({
|
|
2662
|
+
prefix: "Lib/DragAndDrop"
|
|
2663
2663
|
})
|
|
2664
2664
|
interface Coordinate {
|
|
2665
2665
|
x: number;
|
|
@@ -2672,8 +2672,8 @@ type ContainerElement = HTMLElement | SVGSVGElement;
|
|
|
2672
2672
|
|
|
2673
2673
|
type AnyElement = Aventus.TargetableElement | Aventus.ContainerElement;
|
|
2674
2674
|
|
|
2675
|
-
@Storybook({
|
|
2676
|
-
prefix: "Lib/Animation"
|
|
2675
|
+
@Storybook({
|
|
2676
|
+
prefix: "Lib/Animation"
|
|
2677
2677
|
})
|
|
2678
2678
|
interface AnimationOptionsInternal {
|
|
2679
2679
|
animate: Function;
|