@aventusjs/cli 0.0.25 → 0.0.26

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.
@@ -7,14 +7,14 @@ declare global {
7
7
  namespace Aventus{
8
8
  @Storybook({
9
9
  prefix: "Webcomponent"
10
- })
10
+ })
11
11
  interface DebuggerConfig {
12
12
  writeCompiled?: boolean;
13
13
  }
14
14
 
15
15
  @Storybook({
16
16
  prefix: "Webcomponent"
17
- })
17
+ })
18
18
  class Style {
19
19
  private static instance;
20
20
  static noAnimation: CSSStyleSheet;
@@ -38,7 +38,7 @@ class Style {
38
38
 
39
39
  @Storybook({
40
40
  prefix: "Webcomponent"
41
- })
41
+ })
42
42
  interface DefaultComponent {
43
43
  [key: string]: any;
44
44
  }
@@ -85,7 +85,7 @@ function setValueToObject(path: string, obj: any, value: any): void;
85
85
  */
86
86
  @Storybook({
87
87
  prefix: "Tools/Mutex"
88
- })
88
+ })
89
89
  class Mutex {
90
90
  /**
91
91
  * Array to store functions waiting for the mutex to become available.
@@ -149,7 +149,7 @@ class Mutex {
149
149
  */
150
150
  @Storybook({
151
151
  prefix: "Tools/Mutex"
152
- })
152
+ })
153
153
  class ActionGuard {
154
154
  /**
155
155
  * Map to store actions that are currently running.
@@ -192,13 +192,13 @@ type KeysObject<Item> = {
192
192
 
193
193
  @Storybook({
194
194
  prefix: "Ram"
195
- })
195
+ })
196
196
  interface IRam {
197
197
  }
198
198
 
199
199
  @Storybook({
200
200
  prefix: "Ram"
201
- })
201
+ })
202
202
  interface IRamData {
203
203
  }
204
204
 
@@ -228,7 +228,7 @@ type UriParams = {
228
228
 
229
229
  @Storybook({
230
230
  prefix: "Lib/ResourceLoader"
231
- })
231
+ })
232
232
  interface ResourceLoaderHeadOptions {
233
233
  url: string;
234
234
  type: 'js' | 'css';
@@ -237,7 +237,7 @@ interface ResourceLoaderHeadOptions {
237
237
 
238
238
  @Storybook({
239
239
  prefix: "Lib/ResourceLoader"
240
- })
240
+ })
241
241
  interface ResourceLoaderOptions {
242
242
  url: string;
243
243
  type?: 'js' | 'css' | 'img' | 'svg';
@@ -246,7 +246,7 @@ interface ResourceLoaderOptions {
246
246
 
247
247
  @Storybook({
248
248
  prefix: "Lib/ResourceLoader"
249
- })
249
+ })
250
250
  class ResourceLoader {
251
251
  private static headerLoaded;
252
252
  private static headerWaiting;
@@ -273,7 +273,7 @@ class ResourceLoader {
273
273
 
274
274
  @Storybook({
275
275
  prefix: "Lib/ResizeObserver"
276
- })
276
+ })
277
277
  interface ResizeObserverOptions {
278
278
  callback: ResizeObserverCallback;
279
279
  fps?: number;
@@ -281,7 +281,7 @@ interface ResizeObserverOptions {
281
281
 
282
282
  @Storybook({
283
283
  prefix: "Lib/PressManager"
284
- })
284
+ })
285
285
  interface Pointer {
286
286
  id: number;
287
287
  constructor(nativePointer: Touch | PointerEvent): Pointer;
@@ -301,7 +301,7 @@ const DragElementLeftTopType: readonly [any, any];
301
301
 
302
302
  @Storybook({
303
303
  prefix: "Lib/PressManager"
304
- })
304
+ })
305
305
  interface PressManagerState {
306
306
  oneActionTriggered: Aventus.PressManager | null;
307
307
  }
@@ -326,7 +326,7 @@ class NormalizedEvent {
326
326
 
327
327
  @Storybook({
328
328
  prefix: "Lib/PressManager"
329
- })
329
+ })
330
330
  interface InternalCustomFunction {
331
331
  src?: Aventus.PressManager;
332
332
  onDrag?: (e: Aventus.NormalizedEvent, self: Aventus.PressManager) => void;
@@ -336,7 +336,7 @@ interface InternalCustomFunction {
336
336
 
337
337
  @Storybook({
338
338
  prefix: "Lib/PressManager"
339
- })
339
+ })
340
340
  interface InternalPointerEvent extends Event {
341
341
  detail: {
342
342
  state: Aventus.PressManagerState;
@@ -350,7 +350,7 @@ interface InternalPointerEvent extends Event {
350
350
  */
351
351
  @Storybook({
352
352
  prefix: "Lib/PressManager"
353
- })
353
+ })
354
354
  interface PressManagerOptions {
355
355
  /**
356
356
  * The element to be managed by PressManager.
@@ -447,7 +447,7 @@ type DragElementXY = InstanceType<typeof DragElementXYType[number]>;
447
447
 
448
448
  @Storybook({
449
449
  prefix: "Lib/Callback"
450
- })
450
+ })
451
451
  class Callback<U extends (...args: any) => T, T = void> {
452
452
  private callbacks;
453
453
  /**
@@ -470,7 +470,7 @@ class Callback<U extends (...args: any) => T, T = void> {
470
470
 
471
471
  @Storybook({
472
472
  prefix: "Lib/Callback"
473
- })
473
+ })
474
474
  class CallbackGroup<U extends (...args: any) => void> {
475
475
  private callbacks;
476
476
  /**
@@ -505,14 +505,14 @@ abstract class Request {
505
505
 
506
506
  @Storybook({
507
507
  prefix: "Http"
508
- })
508
+ })
509
509
  interface RouterOptions {
510
510
  url: string;
511
511
  }
512
512
 
513
513
  @Storybook({
514
514
  prefix: "Http"
515
- })
515
+ })
516
516
  interface HttpRouterOptions {
517
517
  url: string;
518
518
  }
@@ -604,7 +604,7 @@ type ClassCopyOptions = {
604
604
  */
605
605
  @Storybook({
606
606
  prefix: "Data"
607
- })
607
+ })
608
608
  interface IData {
609
609
  /**
610
610
  * Get the unique type for the data. Define it as the fullnamespace + class name
@@ -618,14 +618,14 @@ interface IData {
618
618
 
619
619
  @Storybook({
620
620
  prefix: "Tools/Conveter"
621
- })
621
+ })
622
622
  interface Schema {
623
623
  [key: string]: ___Aventus.SchemaType;
624
624
  }
625
625
 
626
626
  @Storybook({
627
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;
@@ -636,7 +636,7 @@ interface IConverterTransform {
636
636
  */
637
637
  @Storybook({
638
638
  prefix: "Tools/Json"
639
- })
639
+ })
640
640
  class Json {
641
641
  /**
642
642
  * Converts a JavaScript class instance to a JSON object.
@@ -663,7 +663,7 @@ class Json {
663
663
 
664
664
  @Storybook({
665
665
  prefix: "Tools/Conveter"
666
- })
666
+ })
667
667
  class ConverterTransform implements Aventus.IConverterTransform {
668
668
  transform<T = any>(data: any): T;
669
669
  protected createInstance(data: Record<string, any>): (Object & {
@@ -681,7 +681,7 @@ class ConverterTransform implements Aventus.IConverterTransform {
681
681
  */
682
682
  @Storybook({
683
683
  prefix: "Tools/Conveter"
684
- })
684
+ })
685
685
  class Converter {
686
686
  /**
687
687
  * Map storing information about registered types.
@@ -755,7 +755,7 @@ class HttpResponse {
755
755
  */
756
756
  @Storybook({
757
757
  prefix: "Data"
758
- })
758
+ })
759
759
  abstract class Data implements Aventus.IData {
760
760
  private static converter;
761
761
  /**
@@ -808,10 +808,10 @@ class HttpCache {
808
808
  * Represents a generic error with a code, message, and optional details.
809
809
  * @template T - The type of the error code, which extends either number or Enum.
810
810
  */
811
- @Convertible()
811
+ @Convertible()
812
812
  @Storybook({
813
813
  prefix: "Error"
814
- })
814
+ })
815
815
  class GenericError<T extends (number | Aventus.Enum) = any> {
816
816
  private static converter;
817
817
  static get Fullname(): string;
@@ -841,10 +841,10 @@ class GenericError<T extends (number | Aventus.Enum) = any> {
841
841
  * Represents a result of an action that may contain errors.
842
842
  * @template T - The type of error, extending GenericError.
843
843
  */
844
- @Convertible()
844
+ @Convertible()
845
845
  @Storybook({
846
846
  prefix: "Error"
847
- })
847
+ })
848
848
  class VoidWithError<T extends Aventus.GenericError = Aventus.GenericError> {
849
849
  static get Fullname(): string;
850
850
  /**
@@ -880,10 +880,10 @@ class VoidWithError<T extends Aventus.GenericError = Aventus.GenericError> {
880
880
  * @template U The type of the result value.
881
881
  * @template T The type of error, extending GenericError.
882
882
  */
883
- @Convertible()
883
+ @Convertible()
884
884
  @Storybook({
885
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;
889
889
  /**
@@ -912,7 +912,7 @@ type ExtractFromError<T, U = any> = T extends Aventus.ResultWithError<infer U, a
912
912
 
913
913
  @Storybook({
914
914
  prefix: "Http"
915
- })
915
+ })
916
916
  class HttpError extends Aventus.GenericError<Aventus.HttpErrorCode> {
917
917
  }
918
918
 
@@ -932,7 +932,7 @@ type EffectReceiver = {
932
932
  class Signal<T> implements Aventus.EffectReceiver {
933
933
  protected __subscribes: Aventus.WatcherChange[];
934
934
  private _value;
935
- @Internal()
935
+ @Internal()
936
936
  private _onChange?;
937
937
  get value(): T;
938
938
  set value(item: T);
@@ -948,9 +948,9 @@ class Signal<T> implements Aventus.EffectReceiver {
948
948
  */
949
949
  @Storybook({
950
950
  prefix: "Lib/Watcher"
951
- })
951
+ })
952
952
  class Effect {
953
- @InternalProtected()
953
+ @InternalProtected()
954
954
  protected callbacks: {
955
955
  receiver: Aventus.EffectReceiver;
956
956
  path: string;
@@ -959,20 +959,20 @@ class Effect {
959
959
  cb: Aventus.WatcherChange;
960
960
  version: number;
961
961
  }[];
962
- @InternalProtected()
962
+ @InternalProtected()
963
963
  protected isInit: boolean;
964
- @InternalProtected()
964
+ @InternalProtected()
965
965
  protected isDestroy: boolean;
966
966
  protected __subscribes: Aventus.WatcherChange[];
967
967
  protected __allowChanged: ___Aventus.WatcherAllowed[];
968
- @InternalProtected()
968
+ @InternalProtected()
969
969
  protected version: number;
970
970
  protected fct: () => void;
971
971
  constructor(fct: () => void);
972
972
  protected autoInit(): boolean;
973
973
  protected init(): void;
974
974
  protected run(): void;
975
- @InternalProtected()
975
+ @InternalProtected()
976
976
  protected register(receiver: Aventus.EffectReceiver, path: string, version: number, fullPath: string): void;
977
977
  canChange(fct: ___Aventus.WatcherAllowed): void;
978
978
  protected checkCanChange(action: Aventus.WatchAction, changePath: string, value: any, dones: any[]): boolean;
@@ -990,10 +990,10 @@ class Effect {
990
990
  */
991
991
  @Storybook({
992
992
  prefix: "Lib/Watcher"
993
- })
993
+ })
994
994
  class Computed<T = any> extends Aventus.Effect implements Aventus.EffectReceiver {
995
995
  protected _value?: T;
996
- @Internal()
996
+ @Internal()
997
997
  private __path;
998
998
  get value(): T | undefined;
999
999
  protected autoInit(): boolean;
@@ -1005,15 +1005,15 @@ class Computed<T = any> extends Aventus.Effect implements Aventus.EffectReceiver
1005
1005
 
1006
1006
  @Storybook({
1007
1007
  prefix: "Lib/Watcher"
1008
- })
1008
+ })
1009
1009
  class Watcher {
1010
1010
  static isNative(obj: any): boolean;
1011
1011
  private constructor();
1012
1012
  private static __reservedName;
1013
1013
  private static __triggerForced;
1014
- @Internal()
1014
+ @Internal()
1015
1015
  private static _registering;
1016
- @Internal()
1016
+ @Internal()
1017
1017
  private static get _register();
1018
1018
  /**
1019
1019
  * Transform object into a watcher
@@ -1047,7 +1047,7 @@ class Watcher {
1047
1047
  */
1048
1048
  @Storybook({
1049
1049
  prefix: "Lib/Watcher"
1050
- })
1050
+ })
1051
1051
  class ComputedNoRecomputed<T = any> extends Aventus.Computed<T> {
1052
1052
  protected init(): void;
1053
1053
  protected computedValue(): void;
@@ -1060,7 +1060,7 @@ class ComputedNoRecomputed<T = any> extends Aventus.Computed<T> {
1060
1060
  */
1061
1061
  @Storybook({
1062
1062
  prefix: "Lib/Watcher"
1063
- })
1063
+ })
1064
1064
  class EffectNoRecomputed extends Aventus.Effect {
1065
1065
  protected init(): void;
1066
1066
  protected run(): void;
@@ -1068,12 +1068,12 @@ class EffectNoRecomputed extends Aventus.Effect {
1068
1068
 
1069
1069
  @Storybook({
1070
1070
  prefix: "Http"
1071
- })
1071
+ })
1072
1072
  class HttpRouter {
1073
- @InternalProtected()
1073
+ @InternalProtected()
1074
1074
  private static options?;
1075
1075
  static configure(options: Aventus.HttpRouterOptions): void;
1076
- @InternalProtected()
1076
+ @InternalProtected()
1077
1077
  protected options: Aventus.HttpRouterOptions;
1078
1078
  constructor();
1079
1079
  private defaultOptionsValue;
@@ -1097,7 +1097,7 @@ type RouterType = (abstract new (...args: any[]) => Aventus.HttpRouter);
1097
1097
 
1098
1098
  @Storybook({
1099
1099
  prefix: "Http"
1100
- })
1100
+ })
1101
1101
  class HttpRoute {
1102
1102
  protected router: Aventus.HttpRouter;
1103
1103
  constructor(router?: Aventus.HttpRouter);
@@ -1108,7 +1108,7 @@ type RouteType = abstract new (...args: any[]) => Aventus.HttpRoute;
1108
1108
 
1109
1109
  @Storybook({
1110
1110
  prefix: "Http"
1111
- })
1111
+ })
1112
1112
  class HttpRequest {
1113
1113
  private static options?;
1114
1114
  static configure(options: Aventus.HttpRequestOptions): void;
@@ -1147,7 +1147,7 @@ class HttpRequest {
1147
1147
 
1148
1148
  @Storybook({
1149
1149
  prefix: "Http"
1150
- })
1150
+ })
1151
1151
  abstract class StorableRoute<T extends Aventus.IData> extends Aventus.HttpRoute {
1152
1152
  GetAll(): unknown;
1153
1153
  Create(body: {
@@ -1163,7 +1163,7 @@ abstract class StorableRoute<T extends Aventus.IData> extends Aventus.HttpRoute
1163
1163
 
1164
1164
  @Storybook({
1165
1165
  prefix: "Lib/Animation"
1166
- })
1166
+ })
1167
1167
  class Animation {
1168
1168
  /**
1169
1169
  * Default FPS for all Animation if not set inside options
@@ -1206,7 +1206,7 @@ type DragElement = Aventus.DragElementXY | Aventus.DragElementLeftTop;
1206
1206
 
1207
1207
  @Storybook({
1208
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 */
1212
1212
  enable: boolean;
@@ -1222,7 +1222,7 @@ interface DragAndDropOptionsShadow {
1222
1222
 
1223
1223
  @Storybook({
1224
1224
  prefix: "Lib/DragAndDrop"
1225
- })
1225
+ })
1226
1226
  interface DragAndDropOptions {
1227
1227
  /** If set to false, the element won't move */
1228
1228
  applyDrag?: boolean;
@@ -1274,7 +1274,7 @@ interface DragAndDropOptions {
1274
1274
 
1275
1275
  @Storybook({
1276
1276
  prefix: "Lib/PressManager"
1277
- })
1277
+ })
1278
1278
  class PressManager {
1279
1279
  private static globalConfig;
1280
1280
  static configure(options: Partial<Aventus.PressManagerOptions>): void;
@@ -1352,7 +1352,7 @@ class PressManager {
1352
1352
 
1353
1353
  @Storybook({
1354
1354
  prefix: "Lib/DragAndDrop"
1355
- })
1355
+ })
1356
1356
  class DragAndDrop {
1357
1357
  /**
1358
1358
  * Default offset before drag element
@@ -1415,7 +1415,7 @@ class DragAndDrop {
1415
1415
 
1416
1416
  @Storybook({
1417
1417
  prefix: "Lib/Instance"
1418
- })
1418
+ })
1419
1419
  class Instance {
1420
1420
  private static elements;
1421
1421
  static get<X>(type: Aventus.InstanceCst2<X>): X;
@@ -1425,7 +1425,7 @@ class Instance {
1425
1425
 
1426
1426
  @Storybook({
1427
1427
  prefix: "Lib/ResizeObserver"
1428
- })
1428
+ })
1429
1429
  class ResizeObserver {
1430
1430
  private callback;
1431
1431
  private targets;
@@ -1461,7 +1461,7 @@ type PreparedUri = {
1461
1461
 
1462
1462
  @Storybook({
1463
1463
  prefix: "Lib/Uri"
1464
- })
1464
+ })
1465
1465
  class Uri {
1466
1466
  static prepare(uri: string): Aventus.PreparedUri;
1467
1467
  static getParams(from: string | Aventus.PreparedUri, current: string): Aventus.UriParamsValue | null;
@@ -1475,7 +1475,7 @@ class Uri {
1475
1475
  */
1476
1476
  @Storybook({
1477
1477
  prefix: "Ram"
1478
- })
1478
+ })
1479
1479
  class RamError extends Aventus.GenericError<Aventus.RamErrorCode> {
1480
1480
  }
1481
1481
 
@@ -1485,7 +1485,7 @@ class RamError extends Aventus.GenericError<Aventus.RamErrorCode> {
1485
1485
  */
1486
1486
  @Storybook({
1487
1487
  prefix: "Ram"
1488
- })
1488
+ })
1489
1489
  class VoidRamWithError extends Aventus.VoidWithError<Aventus.RamError> {
1490
1490
  }
1491
1491
 
@@ -1496,13 +1496,13 @@ class VoidRamWithError extends Aventus.VoidWithError<Aventus.RamError> {
1496
1496
  */
1497
1497
  @Storybook({
1498
1498
  prefix: "Ram"
1499
- })
1499
+ })
1500
1500
  class ResultRamWithError<T> extends Aventus.ResultWithError<T, Aventus.RamError> {
1501
1501
  }
1502
1502
 
1503
1503
  @Storybook({
1504
1504
  prefix: "Ram"
1505
- })
1505
+ })
1506
1506
  interface IRamAction<Resource, Request> {
1507
1507
  update(newData: Request): Promise<this | undefined>;
1508
1508
  updateWithError(newData: Request): Promise<Aventus.ResultRamWithError<this>>;
@@ -1518,7 +1518,7 @@ type RamItem<Resource extends Aventus.IRamData, Request> = Resource & Aventus.IR
1518
1518
 
1519
1519
  @Storybook({
1520
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>;
1524
1524
  /**
@@ -1536,7 +1536,7 @@ abstract class GenericRam<Index, Item extends Aventus.IRamData, Request extends
1536
1536
  */
1537
1537
  protected records: Map<Index, Aventus.RamItem<ResourceDetails, Request>>;
1538
1538
  protected actionGuard: Aventus.ActionGuard;
1539
- @InternalProtected()
1539
+ @InternalProtected()
1540
1540
  protected ramMapping: {
1541
1541
  [key: string]: {
1542
1542
  ram: Aventus.IRam;
@@ -1552,12 +1552,12 @@ abstract class GenericRam<Index, Item extends Aventus.IRamData, Request extends
1552
1552
  /**
1553
1553
  * Get item id
1554
1554
  */
1555
- @BindThis()
1555
+ @BindThis()
1556
1556
  getIdWithError(item: Aventus.KeysObject<ResourceDetails> | ResourceDetails): Aventus.ResultRamWithError<Index>;
1557
1557
  /**
1558
1558
  * Get item id
1559
1559
  */
1560
- @BindThis()
1560
+ @BindThis()
1561
1561
  getId(item: Aventus.KeysObject<ResourceDetails> | ResourceDetails): Index;
1562
1562
  /**
1563
1563
  * Prevent adding Watch element
@@ -1579,7 +1579,7 @@ abstract class GenericRam<Index, Item extends Aventus.IRamData, Request extends
1579
1579
  /**
1580
1580
  * Define all the types you ram is capable of
1581
1581
  */
1582
- @InternalProtected()
1582
+ @InternalProtected()
1583
1583
  protected ramForTypes(): (new () => ResourceDetails)[];
1584
1584
  /**
1585
1585
  * Transform the object into the object stored inside Ram
@@ -1599,12 +1599,12 @@ abstract class GenericRam<Index, Item extends Aventus.IRamData, Request extends
1599
1599
  /**
1600
1600
  * Create or update the item
1601
1601
  */
1602
- @BindThis()
1602
+ @BindThis()
1603
1603
  save(item: Request, ...args: any[]): Promise<Aventus.RamItem<ResourceDetails, Request> | undefined>;
1604
1604
  /**
1605
1605
  * Create or update the item
1606
1606
  */
1607
- @BindThis()
1607
+ @BindThis()
1608
1608
  saveWithError(item: Request, ...args: any[]): Promise<Aventus.ResultRamWithError<Aventus.RamItem<ResourceDetails, Request>>>;
1609
1609
  protected beforeRecordSet(item: Aventus.RamItem<ResourceDetails, Request>): Promise<Aventus.VoidWithError>;
1610
1610
  protected afterRecordSet(item: Aventus.RamItem<ResourceDetails, Request>): Promise<Aventus.VoidWithError>;
@@ -1616,52 +1616,52 @@ abstract class GenericRam<Index, Item extends Aventus.IRamData, Request extends
1616
1616
  /**
1617
1617
  * Add a callback that ll be triggered when a new item is stored
1618
1618
  */
1619
- @BindThis()
1619
+ @BindThis()
1620
1620
  onCreated(cb: (item: Aventus.RamItem<ResourceDetails, Request>) => void): void;
1621
1621
  /**
1622
1622
  * Remove a created callback
1623
1623
  */
1624
- @BindThis()
1624
+ @BindThis()
1625
1625
  offCreated(cb: (item: Aventus.RamItem<ResourceDetails, Request>) => void): void;
1626
1626
  /**
1627
1627
  * Add a callback that ll be triggered when an item is updated
1628
1628
  */
1629
- @BindThis()
1629
+ @BindThis()
1630
1630
  onUpdated(cb: (item: Aventus.RamItem<ResourceDetails, Request>) => void): void;
1631
1631
  /**
1632
1632
  * Remove an updated callback
1633
1633
  */
1634
- @BindThis()
1634
+ @BindThis()
1635
1635
  offUpdated(cb: (item: Aventus.RamItem<ResourceDetails, Request>) => void): void;
1636
1636
  /**
1637
1637
  * Add a callback that ll be triggered when an item is deleted
1638
1638
  */
1639
- @BindThis()
1639
+ @BindThis()
1640
1640
  onDeleted(cb: (item: Aventus.RamItem<ResourceDetails, Request>) => void): void;
1641
1641
  /**
1642
1642
  * Remove an deleted callback
1643
1643
  */
1644
- @BindThis()
1644
+ @BindThis()
1645
1645
  offDeleted(cb: (item: Aventus.RamItem<ResourceDetails, Request>) => void): void;
1646
1646
  /**
1647
1647
  * Get an item by id if exist (alias for getById)
1648
1648
  */
1649
- @BindThis()
1649
+ @BindThis()
1650
1650
  get(id: Index): Promise<Aventus.RamItem<ResourceDetails, Request> | undefined>;
1651
1651
  /**
1652
1652
  * Get an item by id if exist (alias for getById)
1653
1653
  */
1654
- @BindThis()
1654
+ @BindThis()
1655
1655
  getWithError(id: Index): Promise<Aventus.ResultRamWithError<Aventus.RamItem<ResourceDetails, Request>>>;
1656
1656
  /**
1657
1657
  * Get an item by id if exist
1658
1658
  */
1659
- @BindThis()
1659
+ @BindThis()
1660
1660
  getById(id: Index): Promise<Aventus.RamItem<ResourceDetails, Request> | undefined>;
1661
1661
  /**
1662
1662
  * Get an item by id if exist
1663
1663
  */
1664
- @BindThis()
1664
+ @BindThis()
1665
1665
  getByIdWithError(id: Index): Promise<Aventus.ResultRamWithError<Aventus.RamItem<ResourceDetails, Request>>>;
1666
1666
  /**
1667
1667
  * Trigger before getting an item by id
@@ -1674,12 +1674,12 @@ abstract class GenericRam<Index, Item extends Aventus.IRamData, Request extends
1674
1674
  /**
1675
1675
  * Get multiple items by ids
1676
1676
  */
1677
- @BindThis()
1677
+ @BindThis()
1678
1678
  getByIds(ids: Index[]): Promise<Aventus.RamItem<ResourceDetails, Request>[]>;
1679
1679
  /**
1680
1680
  * Get multiple items by ids
1681
1681
  */
1682
- @BindThis()
1682
+ @BindThis()
1683
1683
  getByIdsWithError(ids: Index[]): Promise<Aventus.ResultRamWithError<Aventus.RamItem<ResourceDetails, Request>[]>>;
1684
1684
  /**
1685
1685
  * Trigger before getting a list of items by id
@@ -1692,12 +1692,12 @@ abstract class GenericRam<Index, Item extends Aventus.IRamData, Request extends
1692
1692
  /**
1693
1693
  * Get all elements inside the Ram
1694
1694
  */
1695
- @BindThis()
1695
+ @BindThis()
1696
1696
  getAll(): Promise<Aventus.RamItem<ResourceSimple, Request>[]>;
1697
1697
  /**
1698
1698
  * Get all elements inside the Ram
1699
1699
  */
1700
- @BindThis()
1700
+ @BindThis()
1701
1701
  getAllWithError(): Promise<Aventus.ResultRamWithError<Aventus.RamItem<ResourceSimple, Request>[]>>;
1702
1702
  /**
1703
1703
  * Trigger before getting all items inside Ram
@@ -1710,42 +1710,42 @@ abstract class GenericRam<Index, Item extends Aventus.IRamData, Request extends
1710
1710
  /**
1711
1711
  * Get all elements inside the Ram
1712
1712
  */
1713
- @BindThis()
1713
+ @BindThis()
1714
1714
  getList(): Promise<Aventus.RamItem<ResourceSimple, Request>[]>;
1715
1715
  /**
1716
1716
  * Get all elements inside the Ram
1717
1717
  */
1718
- @BindThis()
1718
+ @BindThis()
1719
1719
  getListWithError(): Promise<Aventus.ResultRamWithError<Aventus.RamItem<ResourceSimple, Request>[]>>;
1720
1720
  /**
1721
1721
  * Get all elements inside the Ram
1722
1722
  */
1723
- @BindThis()
1723
+ @BindThis()
1724
1724
  getRecords(): Promise<Map<Index, Aventus.RamItem<ResourceSimple, Request>>>;
1725
1725
  /**
1726
1726
  * Get all elements inside the Ram
1727
1727
  */
1728
- @BindThis()
1728
+ @BindThis()
1729
1729
  getRecordsWithError(): Promise<Aventus.ResultRamWithError<Map<Index, Aventus.RamItem<ResourceSimple, Request>>>>;
1730
1730
  /**
1731
1731
  * Create a list of items inside ram
1732
1732
  */
1733
- @BindThis()
1733
+ @BindThis()
1734
1734
  createList(list: Request[]): Promise<Aventus.RamItem<ResourceDetails, Request>[]>;
1735
1735
  /**
1736
1736
  * Create a list of items inside ram
1737
1737
  */
1738
- @BindThis()
1738
+ @BindThis()
1739
1739
  createListWithError(list: Request[]): Promise<Aventus.ResultRamWithError<Aventus.RamItem<ResourceDetails, Request>[]>>;
1740
1740
  /**
1741
1741
  * Create an item inside ram
1742
1742
  */
1743
- @BindThis()
1743
+ @BindThis()
1744
1744
  create(item: Request, ...args: any[]): Promise<Aventus.RamItem<ResourceDetails, Request> | undefined>;
1745
1745
  /**
1746
1746
  * Create an item inside ram
1747
1747
  */
1748
- @BindThis()
1748
+ @BindThis()
1749
1749
  createWithError(item: Request, ...args: any[]): Promise<Aventus.ResultRamWithError<Aventus.RamItem<ResourceDetails, Request>>>;
1750
1750
  /**
1751
1751
  * Transform request to resource item
@@ -1774,22 +1774,22 @@ abstract class GenericRam<Index, Item extends Aventus.IRamData, Request extends
1774
1774
  /**
1775
1775
  * Update a list of items inside ram
1776
1776
  */
1777
- @BindThis()
1777
+ @BindThis()
1778
1778
  updateList(list: Request[]): Promise<Aventus.RamItem<ResourceDetails, Request>[]>;
1779
1779
  /**
1780
1780
  * Update a list of items inside ram
1781
1781
  */
1782
- @BindThis()
1782
+ @BindThis()
1783
1783
  updateListWithError(list: Request[]): Promise<Aventus.ResultRamWithError<Aventus.RamItem<ResourceDetails, Request>[]>>;
1784
1784
  /**
1785
1785
  * Update an item inside ram
1786
1786
  */
1787
- @BindThis()
1787
+ @BindThis()
1788
1788
  update(item: Request, ...args: any[]): Promise<Aventus.RamItem<ResourceDetails, Request> | undefined>;
1789
1789
  /**
1790
1790
  * Update an item inside ram
1791
1791
  */
1792
- @BindThis()
1792
+ @BindThis()
1793
1793
  updateWithError(item: Request, ...args: any[]): Promise<Aventus.ResultRamWithError<Aventus.RamItem<ResourceDetails, Request>>>;
1794
1794
  /**
1795
1795
  * Transform request to resource item
@@ -1818,32 +1818,32 @@ abstract class GenericRam<Index, Item extends Aventus.IRamData, Request extends
1818
1818
  /**
1819
1819
  * Delete a list of items inside ram
1820
1820
  */
1821
- @BindThis()
1821
+ @BindThis()
1822
1822
  deleteList(list: ResourceDetails[]): Promise<Aventus.RamItem<ResourceDetails, Request>[]>;
1823
1823
  /**
1824
1824
  * Delete a list of items inside ram
1825
1825
  */
1826
- @BindThis()
1826
+ @BindThis()
1827
1827
  deleteListWithError(list: ResourceDetails[]): Promise<Aventus.ResultRamWithError<Aventus.RamItem<ResourceDetails, Request>[]>>;
1828
1828
  /**
1829
1829
  * Delete an item inside ram
1830
1830
  */
1831
- @BindThis()
1831
+ @BindThis()
1832
1832
  delete(item: ResourceDetails, ...args: any[]): Promise<Aventus.RamItem<ResourceDetails, Request> | undefined>;
1833
1833
  /**
1834
1834
  * Delete an item inside ram
1835
1835
  */
1836
- @BindThis()
1836
+ @BindThis()
1837
1837
  deleteWithError(item: ResourceDetails, ...args: any[]): Promise<Aventus.ResultRamWithError<Aventus.RamItem<ResourceDetails, Request>>>;
1838
1838
  /**
1839
1839
  * Delete an item by id inside ram
1840
1840
  */
1841
- @BindThis()
1841
+ @BindThis()
1842
1842
  deleteById(id: Index): Promise<Aventus.RamItem<ResourceDetails, Request> | undefined>;
1843
1843
  /**
1844
1844
  * Delete an item by id inside ram
1845
1845
  */
1846
- @BindThis()
1846
+ @BindThis()
1847
1847
  deleteByIdWithError(id: Index): Promise<Aventus.ResultRamWithError<Aventus.RamItem<ResourceDetails, Request>>>;
1848
1848
  private _delete;
1849
1849
  /**
@@ -1869,13 +1869,13 @@ abstract class GenericRam<Index, Item extends Aventus.IRamData, Request extends
1869
1869
  */
1870
1870
  @Storybook({
1871
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
1876
  @Storybook({
1877
1877
  prefix: "State"
1878
- })
1878
+ })
1879
1879
  interface StateAction {
1880
1880
  active?: ___Aventus.StateActivationFct | ___Aventus.StateActivationFct[];
1881
1881
  inactive?: ___Aventus.StateInactivationFct | ___Aventus.StateInactivationFct[];
@@ -1884,7 +1884,7 @@ interface StateAction {
1884
1884
 
1885
1885
  @Storybook({
1886
1886
  prefix: "State"
1887
- })
1887
+ })
1888
1888
  interface IStateManager {
1889
1889
  subscribe(statePatterns: string | string[], callbacks: Aventus.StateAction): void;
1890
1890
  unsubscribe(statePatterns: string | string[], callbacks: Aventus.StateAction): void;
@@ -1898,7 +1898,7 @@ interface IStateManager {
1898
1898
 
1899
1899
  @Storybook({
1900
1900
  prefix: "State"
1901
- })
1901
+ })
1902
1902
  abstract class StateManager implements Aventus.IStateManager {
1903
1903
  protected subscribers: {
1904
1904
  [statePattern: string]: ___Aventus.Subscriber;
@@ -1943,7 +1943,7 @@ abstract class StateManager implements Aventus.IStateManager {
1943
1943
 
1944
1944
  @Storybook({
1945
1945
  prefix: "State"
1946
- })
1946
+ })
1947
1947
  interface IState {
1948
1948
  readonly name: string;
1949
1949
  activate(manager: Aventus.StateManager): Promise<boolean>;
@@ -1954,7 +1954,7 @@ interface IState {
1954
1954
 
1955
1955
  @Storybook({
1956
1956
  prefix: "State"
1957
- })
1957
+ })
1958
1958
  abstract class State implements Aventus.IState {
1959
1959
  /**
1960
1960
  * Activate a custom state inside a specific manager
@@ -1973,7 +1973,7 @@ abstract class State implements Aventus.IState {
1973
1973
 
1974
1974
  @Storybook({
1975
1975
  prefix: "State"
1976
- })
1976
+ })
1977
1977
  class EmptyState extends Aventus.State implements Aventus.IState {
1978
1978
  private localName;
1979
1979
  constructor(stateName: string);
@@ -1985,9 +1985,9 @@ class EmptyState extends Aventus.State implements Aventus.IState {
1985
1985
 
1986
1986
  @Storybook({
1987
1987
  prefix: "Webcomponent"
1988
- })
1988
+ })
1989
1989
  class TemplateInstance {
1990
- @Internal()
1990
+ @Internal()
1991
1991
  private context;
1992
1992
  content: DocumentFragment;
1993
1993
  private actions;
@@ -2030,7 +2030,7 @@ class TemplateInstance {
2030
2030
 
2031
2031
  @Storybook({
2032
2032
  prefix: "Webcomponent"
2033
- })
2033
+ })
2034
2034
  class TemplateContext {
2035
2035
  data: {
2036
2036
  [name: string]: any;
@@ -2059,7 +2059,7 @@ class TemplateContext {
2059
2059
 
2060
2060
  @Storybook({
2061
2061
  prefix: "Webcomponent"
2062
- })
2062
+ })
2063
2063
  class Template {
2064
2064
  static validatePath(path: string, pathToCheck: string): boolean;
2065
2065
  cst: typeof Aventus.WebComponent;
@@ -2085,10 +2085,10 @@ class Template {
2085
2085
  @Dependencies([{
2086
2086
  type: WebComponentInstance,
2087
2087
  strong: true
2088
- }])
2088
+ }])
2089
2089
  @Storybook({
2090
2090
  prefix: "Webcomponent"
2091
- })
2091
+ })
2092
2092
  abstract class WebComponent extends HTMLElement implements Aventus.DefaultComponent {
2093
2093
  /**
2094
2094
  * Add attributes informations
@@ -2128,19 +2128,19 @@ abstract class WebComponent extends HTMLElement implements Aventus.DefaultCompon
2128
2128
  * Get the unique type for the data. Define it as the namespace + class name
2129
2129
  */
2130
2130
  get $type(): string;
2131
- @Internal()
2131
+ @Internal()
2132
2132
  private __onChangeFct;
2133
- @Internal()
2133
+ @Internal()
2134
2134
  private __watch;
2135
- @Internal()
2135
+ @Internal()
2136
2136
  private __watchActions;
2137
2137
  private __watchActionsCb;
2138
2138
  private __watchFunctions;
2139
2139
  private __watchFunctionsComputed;
2140
2140
  private __pressManagers;
2141
- @Internal()
2141
+ @Internal()
2142
2142
  private __signalActions;
2143
- @Internal()
2143
+ @Internal()
2144
2144
  private __signals;
2145
2145
  private __isDefaultState;
2146
2146
  private __defaultActiveState;
@@ -2297,7 +2297,7 @@ abstract class WebComponent extends HTMLElement implements Aventus.DefaultCompon
2297
2297
 
2298
2298
  @Storybook({
2299
2299
  prefix: "Webcomponent"
2300
- })
2300
+ })
2301
2301
  class WebComponentInstance {
2302
2302
  private static __allDefinitions;
2303
2303
  private static __allInstances;
@@ -2323,7 +2323,7 @@ class WebComponentInstance {
2323
2323
 
2324
2324
  @Storybook({
2325
2325
  prefix: "Webcomponent"
2326
- })
2326
+ })
2327
2327
  class ElementExtension {
2328
2328
  /**
2329
2329
  * Find a parent by custom check
@@ -2645,7 +2645,7 @@ type OnlyConstructor<T = any> = (abstract new (...args: any[]) => T);
2645
2645
 
2646
2646
  @Storybook({
2647
2647
  prefix: "Ram"
2648
- })
2648
+ })
2649
2649
  interface RamSubscribers<Item> {
2650
2650
  created: ((item: Item) => void)[];
2651
2651
  updated: ((item: Item) => void)[];
@@ -2660,7 +2660,7 @@ type WindowResizeObserver = globalThis.ResizeObserver;
2660
2660
 
2661
2661
  @Storybook({
2662
2662
  prefix: "Lib/DragAndDrop"
2663
- })
2663
+ })
2664
2664
  interface Coordinate {
2665
2665
  x: number;
2666
2666
  y: number;
@@ -2674,7 +2674,7 @@ type AnyElement = Aventus.TargetableElement | Aventus.ContainerElement;
2674
2674
 
2675
2675
  @Storybook({
2676
2676
  prefix: "Lib/Animation"
2677
- })
2677
+ })
2678
2678
  interface AnimationOptionsInternal {
2679
2679
  animate: Function;
2680
2680
  stopped: Function;