@studiometa/js-toolkit 2.4.4-alpha.2 → 2.4.4-alpha.3

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/Base/index.cjs CHANGED
@@ -27,7 +27,7 @@ var __publicField = (obj, key, value) => {
27
27
  return value;
28
28
  };
29
29
 
30
- // packages/js-toolkit/Base/index.js
30
+ // packages/js-toolkit/Base/index.ts
31
31
  var Base_exports = {};
32
32
  __export(Base_exports, {
33
33
  default: () => Base
package/Base/index.d.ts CHANGED
@@ -1,207 +1,143 @@
1
- /**
2
- * @typedef {typeof Base} BaseConstructor
3
- * @typedef {(Base) => Promise<BaseConstructor | { default: BaseConstructor }>} BaseAsyncConstructor
4
- * @typedef {{ [name:string]: any }} BaseOptions
5
- * @typedef {{ [name:string]: HTMLElement | HTMLElement[] }} BaseRefs
6
- * @typedef {{ [nameOrSelector:string]: Base[] | Promise<Base>[] }} BaseChildren
7
- * @typedef {{ [nameOrSelector:string]: BaseConstructor | BaseAsyncConstructor }} BaseConfigComponents
8
- * @typedef {import('./managers/OptionsManager').OptionsSchema} BaseConfigOptions
9
- * @typedef {import('./managers/ServicesManager.js').ServiceName} ServiceName
10
- */
11
- /**
12
- * @typedef {Object} BaseConfig
13
- * @property {string} name
14
- * @property {boolean} [debug]
15
- * @property {boolean} [log]
16
- * @property {string[]} [refs]
17
- * @property {string[]} [emits]
18
- * @property {BaseConfigComponents} [components]
19
- * @property {BaseConfigOptions} [options]
20
- */
21
- /**
22
- * @typedef {{
23
- * $el?: HTMLElement,
24
- * $options?: BaseOptions,
25
- * $refs?: BaseRefs,
26
- * $children?: { [name:string]: Base | Promise<Base> },
27
- * }} BaseTypeParameter
28
- */
29
- /**
30
- * @typedef {Object} Managers
31
- * @property {typeof ChildrenManager} ChildrenManager
32
- * @property {typeof EventsManager} EventsManager
33
- * @property {typeof OptionsManager} OptionsManager
34
- * @property {typeof RefsManager} RefsManager
35
- * @property {typeof ServicesManager} ServicesManager
36
- */
1
+ import ChildrenManager from './managers/ChildrenManager.js';
2
+ import RefsManager from './managers/RefsManager.js';
3
+ import ServicesManager from './managers/ServicesManager.js';
4
+ import EventsManager from './managers/EventsManager.js';
5
+ import OptionsManager from './managers/OptionsManager.js';
6
+ export declare type BaseConstructor = typeof Base;
7
+ export declare type BaseAsyncConstructor = (Base: any) => Promise<BaseConstructor | {
8
+ default: BaseConstructor;
9
+ }>;
10
+ export declare type BaseOptions = {
11
+ [name: string]: unknown;
12
+ };
13
+ export declare type BaseRefs = {
14
+ [name: string]: HTMLElement | HTMLElement[];
15
+ };
16
+ export declare type BaseChildren = {
17
+ [nameOrSelector: string]: Base[] | Promise<Base>[];
18
+ };
19
+ export declare type BaseConfigComponents = {
20
+ [nameOrSelector: string]: BaseConstructor | BaseAsyncConstructor;
21
+ };
22
+ export declare type BaseConfig = {
23
+ name: string;
24
+ debug?: boolean;
25
+ log?: boolean;
26
+ refs?: string[];
27
+ emits?: string[];
28
+ components?: BaseConfigComponents;
29
+ options?: import('./managers/OptionsManager').OptionsSchema;
30
+ };
31
+ export declare type BaseTypeParameter = {
32
+ $el?: HTMLElement;
33
+ $options?: BaseOptions;
34
+ $refs?: BaseRefs;
35
+ $children?: {
36
+ [name: string]: Base | Promise<Base>;
37
+ };
38
+ };
39
+ export declare type Managers = {
40
+ ChildrenManager: typeof ChildrenManager;
41
+ EventsManager: typeof EventsManager;
42
+ OptionsManager: typeof OptionsManager;
43
+ RefsManager: typeof RefsManager;
44
+ ServicesManager: typeof ServicesManager;
45
+ };
37
46
  /**
38
47
  * Base class.
39
- * @template {BaseTypeParameter} [T={ $el: HTMLElement, $options: BaseOptions, $refs: BaseRefs, $children: { [name:string]: Base | Promise<Base> } }]
40
48
  */
41
- export default class Base<T extends BaseTypeParameter = {
42
- $el: HTMLElement;
43
- $options: BaseOptions;
44
- $refs: BaseRefs;
45
- $children: {
46
- [name: string]: Base<any> | Promise<Base<any>>;
47
- };
48
- }> extends EventTarget {
49
+ export default class Base<T extends BaseTypeParameter = BaseTypeParameter> extends EventTarget {
49
50
  /**
50
51
  * This is a Base instance.
51
- * @type {boolean}
52
- * @readonly
53
- */
54
- static readonly $isBase: boolean;
55
- /**
56
- * @type {BaseConfig}
57
- */
58
- static config: BaseConfig;
59
- /**
60
- * Factory method to generate multiple instance of the class.
61
- *
62
- * @param {string} nameOrSelector The selector on which to mount each instance.
63
- * @returns {Array<Base>} A list of the created instance.
64
52
  */
65
- static $factory(nameOrSelector: string): Array<Base>;
66
- /**
67
- * Class constructor where all the magic takes place.
68
- *
69
- * @param {HTMLElement} element The component's root element dd.
70
- */
71
- constructor(element: HTMLElement);
53
+ static readonly $isBase: true;
72
54
  /**
73
55
  * The instance parent.
74
- * @type {Base}
75
56
  */
76
57
  $parent: Base;
77
58
  /**
78
59
  * The instance id.
79
- * @type {string}
80
60
  */
81
61
  $id: string;
82
62
  /**
83
63
  * The root element.
84
- * @type {T['$el'] & HTMLElement & { __base__?: WeakMap<BaseConstructor, Base | 'terminated'> }}
85
64
  */
86
65
  $el: T['$el'] & HTMLElement & {
87
66
  __base__?: WeakMap<BaseConstructor, Base | 'terminated'>;
88
67
  };
89
68
  /**
90
69
  * The state of the component.
91
- * @type {boolean}
92
70
  */
93
71
  $isMounted: boolean;
94
72
  /**
95
73
  * Store the event handlers.
96
- *
97
- * @type {Map<string, Set<EventListenerOrEventListenerObject>>}
98
74
  */
99
75
  __eventHandlers: Map<string, Set<EventListenerOrEventListenerObject>>;
100
76
  /**
101
77
  * Get the root instance of the app.
102
- * @returns {Base}
103
78
  */
104
- get $root(): Base<{
105
- $el: HTMLElement;
106
- $options: BaseOptions;
107
- $refs: BaseRefs;
108
- $children: {
109
- [name: string]: Base<any> | Promise<Base<any>>;
110
- };
111
- }>;
79
+ get $root(): Base;
112
80
  /**
113
81
  * Merge configuration with the parents' configurations.
114
- *
115
- * @returns {BaseConfig}
116
82
  */
117
83
  get __config(): BaseConfig;
118
- /**
119
- * @type {ServicesManager}
120
- */
84
+ static config: BaseConfig;
121
85
  __services: ServicesManager;
122
- /**
123
- * @type {ServicesManager}
124
- */
125
86
  get $services(): ServicesManager;
126
- /**
127
- * @type {RefsManager & T['$refs'] & BaseRefs}
128
- */
129
87
  __refs: RefsManager & T['$refs'] & BaseRefs;
130
- /**
131
- * @returns {RefsManager & T['$refs'] & BaseRefs}
132
- */
133
- get $refs(): RefsManager & T["$refs"] & BaseRefs;
134
- /**
135
- * @type {OptionsManager & T['$options'] & BaseOptions}
136
- */
88
+ get $refs(): RefsManager & T['$refs'] & BaseRefs;
137
89
  __options: OptionsManager & T['$options'] & BaseOptions;
138
- /**
139
- * @returns {OptionsManager & T['$options'] & BaseOptions}
140
- */
141
- get $options(): OptionsManager & T["$options"] & BaseOptions;
142
- /**
143
- * @type {ChildrenManager & { [key in keyof T['$children']]: Array<T['$children'][key]> } & BaseChildren}
144
- */
145
- __children: ChildrenManager & (T["$children"] extends infer T_1 ? { [key in keyof T_1]: T["$children"][key][]; } : never) & BaseChildren;
146
- /**
147
- * @returns {ChildrenManager & { [key in keyof T['$children']]: Array<T['$children'][key]> } & BaseChildren}
148
- */
149
- get $children(): ChildrenManager & (T["$children"] extends infer T_2 ? { [key_1 in keyof T_2]: T["$children"][key_1][]; } : never) & BaseChildren;
150
- /**
151
- * @type {EventsManager}
152
- */
90
+ get $options(): OptionsManager & T['$options'] & BaseOptions;
91
+ __children: ChildrenManager & {
92
+ [key in keyof T['$children']]: Array<T['$children'][key]>;
93
+ } & BaseChildren;
94
+ get $children(): ChildrenManager & {
95
+ [key in keyof T['$children']]: Array<T['$children'][key]>;
96
+ } & BaseChildren;
153
97
  __events: EventsManager;
154
98
  /**
155
99
  * Small helper to log stuff.
156
- *
157
- * @returns {(...args: any) => void}
158
100
  */
159
101
  get $log(): (...args: any) => void;
160
102
  /**
161
103
  * Small helper to debug information.
162
- *
163
- * @returns {(...args:any) => void}
164
104
  */
165
105
  get __debug(): (...args: any) => void;
166
106
  /**
167
107
  * Get manager constructors.
168
- *
169
- * @returns {Managers}
170
108
  */
171
109
  get __managers(): Managers;
172
110
  /**
173
111
  * Call an instance method and emit corresponding events.
174
- *
175
- * @param {string} method
176
- * @param {any[]} args
177
- * @returns {any}
178
112
  */
179
- __callMethod(method: string, ...args: any[]): any;
113
+ __callMethod(method: string, ...args: unknown[]): unknown;
180
114
  /**
181
115
  * Test if the given event has been bound to the instance.
182
116
  *
183
- * @param {string} event The event's name.
117
+ * @param {string} event The event's name.
184
118
  * @returns {boolean} Wether the given event has been bound or not.
185
119
  */
186
120
  __hasEvent(event: string): boolean;
121
+ /**
122
+ * Class constructor where all the magic takes place.
123
+ *
124
+ * @param {HTMLElement} element The component's root element dd.
125
+ */
126
+ constructor(element: HTMLElement);
187
127
  /**
188
128
  * Trigger the `mounted` callback.
189
- * @returns {this}
190
129
  */
191
130
  $mount(): this;
192
131
  /**
193
132
  * Update the instance children.
194
- * @returns {this}
195
133
  */
196
134
  $update(): this;
197
135
  /**
198
136
  * Trigger the `destroyed` callback.
199
- * @returns {this}
200
137
  */
201
138
  $destroy(): this;
202
139
  /**
203
140
  * Terminate a child instance when it is not needed anymore.
204
- * @returns {void}
205
141
  */
206
142
  $terminate(): void;
207
143
  /**
@@ -220,10 +156,8 @@ export default class Base<T extends BaseTypeParameter = {
220
156
  __removeEmits(event: string): void;
221
157
  /**
222
158
  * Get the instance constructor.
223
- *
224
- * @returns {BaseConstructor}
225
159
  */
226
- get __ctor(): typeof Base;
160
+ get __ctor(): BaseConstructor;
227
161
  /**
228
162
  * Bind a listener function to an event.
229
163
  *
@@ -252,85 +186,13 @@ export default class Base<T extends BaseTypeParameter = {
252
186
  /**
253
187
  * Emits an event.
254
188
  *
255
- * @param {string} event
256
- * Name of the event.
257
- * @param {any[]} args The arguments to apply to the functions bound to this event.
189
+ * @param {string} event Name of the event.
190
+ * @param {any[]} args The arguments to apply to the functions bound to this event.
258
191
  * @returns {void}
259
192
  */
260
- $emit(event: string, ...args: any[]): void;
193
+ $emit(event: string, ...args: unknown[]): void;
194
+ /**
195
+ * Factory method to generate multiple instance of the class.
196
+ */
197
+ static $factory(nameOrSelector: string): Base[];
261
198
  }
262
- export type BaseConstructor = typeof Base;
263
- export type BaseAsyncConstructor = (Base: any) => Promise<BaseConstructor | {
264
- default: BaseConstructor;
265
- }>;
266
- export type BaseOptions = {
267
- [name: string]: any;
268
- };
269
- export type BaseRefs = {
270
- [name: string]: HTMLElement | HTMLElement[];
271
- };
272
- export type BaseChildren = {
273
- [nameOrSelector: string]: Base<{
274
- $el: HTMLElement;
275
- $options: BaseOptions;
276
- $refs: BaseRefs;
277
- $children: {
278
- [name: string]: Base<any> | Promise<Base<any>>;
279
- };
280
- }>[] | Promise<Base<{
281
- $el: HTMLElement;
282
- $options: BaseOptions;
283
- $refs: BaseRefs;
284
- $children: {
285
- [name: string]: Base<any> | Promise<Base<any>>;
286
- };
287
- }>>[];
288
- };
289
- export type BaseConfigComponents = {
290
- [nameOrSelector: string]: typeof Base | BaseAsyncConstructor;
291
- };
292
- export type BaseConfigOptions = import('./managers/OptionsManager').OptionsSchema;
293
- export type ServiceName = import('./managers/ServicesManager.js').ServiceName;
294
- export type BaseConfig = {
295
- name: string;
296
- debug?: boolean;
297
- log?: boolean;
298
- refs?: string[];
299
- emits?: string[];
300
- components?: BaseConfigComponents;
301
- options?: BaseConfigOptions;
302
- };
303
- export type BaseTypeParameter = {
304
- $el?: HTMLElement;
305
- $options?: BaseOptions;
306
- $refs?: BaseRefs;
307
- $children?: {
308
- [name: string]: Base<{
309
- $el: HTMLElement;
310
- $options: BaseOptions;
311
- $refs: BaseRefs;
312
- $children: {
313
- [name: string]: Base<any> | Promise<Base<any>>;
314
- };
315
- }> | Promise<Base<{
316
- $el: HTMLElement;
317
- $options: BaseOptions;
318
- $refs: BaseRefs;
319
- $children: {
320
- [name: string]: Base<any> | Promise<Base<any>>;
321
- };
322
- }>>;
323
- };
324
- };
325
- export type Managers = {
326
- ChildrenManager: typeof ChildrenManager;
327
- EventsManager: typeof EventsManager;
328
- OptionsManager: typeof OptionsManager;
329
- RefsManager: typeof RefsManager;
330
- ServicesManager: typeof ServicesManager;
331
- };
332
- import ServicesManager from "./managers/ServicesManager.js";
333
- import RefsManager from "./managers/RefsManager.js";
334
- import OptionsManager from "./managers/OptionsManager.js";
335
- import ChildrenManager from "./managers/ChildrenManager.js";
336
- import EventsManager from "./managers/EventsManager.js";
@@ -79,7 +79,7 @@ export type BooleanOption = {
79
79
  };
80
80
  export type OptionObject = ArrayOption | ObjectOption | StringOption | NumberOption | BooleanOption;
81
81
  export type OptionsSchema = {
82
- [name: string]: OptionObject | OptionType;
82
+ [name: string]: OptionType | OptionObject;
83
83
  };
84
84
  export type OptionsInterface = {
85
85
  [optionName: string]: any;
@@ -18,35 +18,14 @@ export default function withBreakpointManager<T extends BaseTypeParameter = Base
18
18
  * @returns {this}
19
19
  */
20
20
  $destroy(): any;
21
- $parent: Base<{
22
- $el: HTMLElement;
23
- $options: import("../Base/index.js").BaseOptions;
24
- $refs: import("../Base/index.js").BaseRefs;
25
- $children: {
26
- [name: string]: Base<any> | Promise<Base<any>>;
27
- };
28
- }>;
21
+ $parent: Base<BaseTypeParameter>;
29
22
  $id: string;
30
23
  $el: (T & U)["$el"] & HTMLElement & {
31
- __base__?: WeakMap<typeof Base, Base<{
32
- $el: HTMLElement;
33
- $options: import("../Base/index.js").BaseOptions;
34
- $refs: import("../Base/index.js").BaseRefs;
35
- $children: {
36
- [name: string]: Base<any> | Promise<Base<any>>;
37
- };
38
- }> | "terminated">;
24
+ __base__?: WeakMap<typeof Base, Base<BaseTypeParameter> | "terminated">;
39
25
  };
40
26
  $isMounted: boolean;
41
27
  __eventHandlers: Map<string, Set<EventListenerOrEventListenerObject>>;
42
- readonly $root: Base<{
43
- $el: HTMLElement;
44
- $options: import("../Base/index.js").BaseOptions;
45
- $refs: import("../Base/index.js").BaseRefs;
46
- $children: {
47
- [name: string]: Base<any> | Promise<Base<any>>;
48
- };
49
- }>;
28
+ readonly $root: Base<BaseTypeParameter>;
50
29
  readonly __config: import("../Base/index.js").BaseConfig;
51
30
  __services: import("../Base/managers/ServicesManager.js").default;
52
31
  readonly $services: import("../Base/managers/ServicesManager.js").default;
@@ -60,7 +39,7 @@ export default function withBreakpointManager<T extends BaseTypeParameter = Base
60
39
  readonly $log: (...args: any) => void;
61
40
  readonly __debug: (...args: any) => void;
62
41
  readonly __managers: import("../Base/index.js").Managers;
63
- __callMethod(method: string, ...args: any[]): any;
42
+ __callMethod(method: string, ...args: unknown[]): unknown;
64
43
  __hasEvent(event: string): boolean;
65
44
  $update(): any;
66
45
  $terminate(): void;
@@ -69,19 +48,12 @@ export default function withBreakpointManager<T extends BaseTypeParameter = Base
69
48
  readonly __ctor: typeof Base;
70
49
  $on(event: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): () => void;
71
50
  $off(event: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
72
- $emit(event: string, ...args: any[]): void;
51
+ $emit(event: string, ...args: unknown[]): void;
73
52
  addEventListener(type: string, callback: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
74
53
  dispatchEvent(event: Event): boolean;
75
54
  removeEventListener(type: string, callback: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
76
55
  };
77
- readonly $isBase: boolean;
56
+ readonly $isBase: true;
78
57
  config: import("../Base/index.js").BaseConfig;
79
- $factory(nameOrSelector: string): Base<{
80
- $el: HTMLElement;
81
- $options: import("../Base/index.js").BaseOptions;
82
- $refs: import("../Base/index.js").BaseRefs;
83
- $children: {
84
- [name: string]: Base<any> | Promise<Base<any>>;
85
- };
86
- }>[];
58
+ $factory(nameOrSelector: string): Base<BaseTypeParameter>[];
87
59
  };
@@ -12,35 +12,14 @@ export default function withBreakpointObserver<T extends BaseTypeParameter = Bas
12
12
  * @returns {this}
13
13
  */
14
14
  $mount(): any;
15
- $parent: Base<{
16
- $el: HTMLElement;
17
- $options: import("../Base/index.js").BaseOptions;
18
- $refs: import("../Base/index.js").BaseRefs;
19
- $children: {
20
- [name: string]: Base<any> | Promise<Base<any>>;
21
- };
22
- }>;
15
+ $parent: Base<BaseTypeParameter>;
23
16
  $id: string;
24
17
  $el: (T & U)["$el"] & HTMLElement & {
25
- __base__?: WeakMap<typeof Base, Base<{
26
- $el: HTMLElement;
27
- $options: import("../Base/index.js").BaseOptions;
28
- $refs: import("../Base/index.js").BaseRefs;
29
- $children: {
30
- [name: string]: Base<any> | Promise<Base<any>>;
31
- };
32
- }> | "terminated">;
18
+ __base__?: WeakMap<typeof Base, Base<BaseTypeParameter> | "terminated">;
33
19
  };
34
20
  $isMounted: boolean;
35
21
  __eventHandlers: Map<string, Set<EventListenerOrEventListenerObject>>;
36
- readonly $root: Base<{
37
- $el: HTMLElement;
38
- $options: import("../Base/index.js").BaseOptions;
39
- $refs: import("../Base/index.js").BaseRefs;
40
- $children: {
41
- [name: string]: Base<any> | Promise<Base<any>>;
42
- };
43
- }>;
22
+ readonly $root: Base<BaseTypeParameter>;
44
23
  readonly __config: import("../Base/index.js").BaseConfig;
45
24
  __services: import("../Base/managers/ServicesManager.js").default;
46
25
  readonly $services: import("../Base/managers/ServicesManager.js").default;
@@ -54,7 +33,7 @@ export default function withBreakpointObserver<T extends BaseTypeParameter = Bas
54
33
  readonly $log: (...args: any) => void;
55
34
  readonly __debug: (...args: any) => void;
56
35
  readonly __managers: import("../Base/index.js").Managers;
57
- __callMethod(method: string, ...args: any[]): any;
36
+ __callMethod(method: string, ...args: unknown[]): unknown;
58
37
  __hasEvent(event: string): boolean;
59
38
  $update(): any;
60
39
  $destroy(): any;
@@ -64,7 +43,7 @@ export default function withBreakpointObserver<T extends BaseTypeParameter = Bas
64
43
  readonly __ctor: typeof Base;
65
44
  $on(event: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): () => void;
66
45
  $off(event: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
67
- $emit(event: string, ...args: any[]): void;
46
+ $emit(event: string, ...args: unknown[]): void;
68
47
  addEventListener(type: string, callback: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
69
48
  dispatchEvent(event: Event): boolean;
70
49
  removeEventListener(type: string, callback: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
@@ -81,13 +60,6 @@ export default function withBreakpointObserver<T extends BaseTypeParameter = Bas
81
60
  emits?: string[];
82
61
  components?: import("../Base/index.js").BaseConfigComponents;
83
62
  };
84
- readonly $isBase: boolean;
85
- $factory(nameOrSelector: string): Base<{
86
- $el: HTMLElement;
87
- $options: import("../Base/index.js").BaseOptions;
88
- $refs: import("../Base/index.js").BaseRefs;
89
- $children: {
90
- [name: string]: Base<any> | Promise<Base<any>>;
91
- };
92
- }>[];
63
+ readonly $isBase: true;
64
+ $factory(nameOrSelector: string): Base<BaseTypeParameter>[];
93
65
  };
@@ -9,35 +9,14 @@ declare type DragDecoratorOptions = DragServiceOptions & {
9
9
  */
10
10
  export default function withDrag<T extends BaseTypeParameter = BaseTypeParameter>(BaseClass: BaseConstructor, { target, ...options }?: DragDecoratorOptions): {
11
11
  new <U extends BaseTypeParameter = BaseTypeParameter>(el: any): {
12
- $parent: Base<{
13
- $el: HTMLElement;
14
- $options: import("../Base/index.js").BaseOptions;
15
- $refs: import("../Base/index.js").BaseRefs;
16
- $children: {
17
- [name: string]: Base<any> | Promise<Base<any>>;
18
- };
19
- }>;
12
+ $parent: Base<BaseTypeParameter>;
20
13
  $id: string;
21
14
  $el: (T & U)["$el"] & HTMLElement & {
22
- __base__?: WeakMap<typeof Base, Base<{
23
- $el: HTMLElement;
24
- $options: import("../Base/index.js").BaseOptions;
25
- $refs: import("../Base/index.js").BaseRefs;
26
- $children: {
27
- [name: string]: Base<any> | Promise<Base<any>>;
28
- };
29
- }> | "terminated">;
15
+ __base__?: WeakMap<typeof Base, Base<BaseTypeParameter> | "terminated">;
30
16
  };
31
17
  $isMounted: boolean;
32
18
  __eventHandlers: Map<string, Set<EventListenerOrEventListenerObject>>;
33
- readonly $root: Base<{
34
- $el: HTMLElement;
35
- $options: import("../Base/index.js").BaseOptions;
36
- $refs: import("../Base/index.js").BaseRefs;
37
- $children: {
38
- [name: string]: Base<any> | Promise<Base<any>>;
39
- };
40
- }>;
19
+ readonly $root: Base<BaseTypeParameter>;
41
20
  readonly __config: import("../Base/index.js").BaseConfig;
42
21
  __services: import("../Base/managers/ServicesManager.js").default;
43
22
  readonly $services: import("../Base/managers/ServicesManager.js").default;
@@ -51,7 +30,7 @@ export default function withDrag<T extends BaseTypeParameter = BaseTypeParameter
51
30
  readonly $log: (...args: any) => void;
52
31
  readonly __debug: (...args: any) => void;
53
32
  readonly __managers: import("../Base/index.js").Managers;
54
- __callMethod(method: string, ...args: any[]): any;
33
+ __callMethod(method: string, ...args: unknown[]): unknown;
55
34
  __hasEvent(event: string): boolean;
56
35
  $mount(): any;
57
36
  $update(): any;
@@ -62,7 +41,7 @@ export default function withDrag<T extends BaseTypeParameter = BaseTypeParameter
62
41
  readonly __ctor: typeof Base;
63
42
  $on(event: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): () => void;
64
43
  $off(event: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
65
- $emit(event: string, ...args: any[]): void;
44
+ $emit(event: string, ...args: unknown[]): void;
66
45
  addEventListener(type: string, callback: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
67
46
  dispatchEvent(event: Event): boolean;
68
47
  removeEventListener(type: string, callback: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
@@ -71,14 +50,7 @@ export default function withDrag<T extends BaseTypeParameter = BaseTypeParameter
71
50
  name: string;
72
51
  emits: string[];
73
52
  };
74
- readonly $isBase: boolean;
75
- $factory(nameOrSelector: string): Base<{
76
- $el: HTMLElement;
77
- $options: import("../Base/index.js").BaseOptions;
78
- $refs: import("../Base/index.js").BaseRefs;
79
- $children: {
80
- [name: string]: Base<any> | Promise<Base<any>>;
81
- };
82
- }>[];
53
+ readonly $isBase: true;
54
+ $factory(nameOrSelector: string): Base<BaseTypeParameter>[];
83
55
  };
84
56
  export {};
@@ -10,35 +10,14 @@ import type { BaseTypeParameter, BaseConstructor, BaseConfig } from '../Base/ind
10
10
  */
11
11
  export default function withExtraConfig<T extends BaseTypeParameter = BaseTypeParameter>(BaseClass: BaseConstructor, config: Partial<BaseConfig>, options?: DeepmergeOptions): {
12
12
  new <U extends BaseTypeParameter = BaseTypeParameter>(element: HTMLElement): {
13
- $parent: import("../Base/index.js").default<{
14
- $el: HTMLElement;
15
- $options: import("../Base/index.js").BaseOptions;
16
- $refs: import("../Base/index.js").BaseRefs;
17
- $children: {
18
- [name: string]: import("../Base/index.js").default<any> | Promise<import("../Base/index.js").default<any>>;
19
- };
20
- }>;
13
+ $parent: import("../Base/index.js").default<BaseTypeParameter>;
21
14
  $id: string;
22
15
  $el: (T & U)["$el"] & HTMLElement & {
23
- __base__?: WeakMap<typeof import("../Base/index.js").default, import("../Base/index.js").default<{
24
- $el: HTMLElement;
25
- $options: import("../Base/index.js").BaseOptions;
26
- $refs: import("../Base/index.js").BaseRefs;
27
- $children: {
28
- [name: string]: import("../Base/index.js").default<any> | Promise<import("../Base/index.js").default<any>>;
29
- };
30
- }> | "terminated">;
16
+ __base__?: WeakMap<typeof import("../Base/index.js").default, import("../Base/index.js").default<BaseTypeParameter> | "terminated">;
31
17
  };
32
18
  $isMounted: boolean;
33
19
  __eventHandlers: Map<string, Set<EventListenerOrEventListenerObject>>;
34
- readonly $root: import("../Base/index.js").default<{
35
- $el: HTMLElement;
36
- $options: import("../Base/index.js").BaseOptions;
37
- $refs: import("../Base/index.js").BaseRefs;
38
- $children: {
39
- [name: string]: import("../Base/index.js").default<any> | Promise<import("../Base/index.js").default<any>>;
40
- };
41
- }>;
20
+ readonly $root: import("../Base/index.js").default<BaseTypeParameter>;
42
21
  readonly __config: BaseConfig;
43
22
  __services: import("../Base/managers/ServicesManager.js").default;
44
23
  readonly $services: import("../Base/managers/ServicesManager.js").default;
@@ -52,7 +31,7 @@ export default function withExtraConfig<T extends BaseTypeParameter = BaseTypePa
52
31
  readonly $log: (...args: any) => void;
53
32
  readonly __debug: (...args: any) => void;
54
33
  readonly __managers: import("../Base/index.js").Managers;
55
- __callMethod(method: string, ...args: any[]): any;
34
+ __callMethod(method: string, ...args: unknown[]): unknown;
56
35
  __hasEvent(event: string): boolean;
57
36
  $mount(): any;
58
37
  $update(): any;
@@ -63,7 +42,7 @@ export default function withExtraConfig<T extends BaseTypeParameter = BaseTypePa
63
42
  readonly __ctor: typeof import("../Base/index.js").default;
64
43
  $on(event: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): () => void;
65
44
  $off(event: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
66
- $emit(event: string, ...args: any[]): void;
45
+ $emit(event: string, ...args: unknown[]): void;
67
46
  addEventListener(type: string, callback: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
68
47
  dispatchEvent(event: Event): boolean;
69
48
  removeEventListener(type: string, callback: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
@@ -73,13 +52,6 @@ export default function withExtraConfig<T extends BaseTypeParameter = BaseTypePa
73
52
  * @type {BaseConfig}
74
53
  */
75
54
  config: BaseConfig;
76
- readonly $isBase: boolean;
77
- $factory(nameOrSelector: string): import("../Base/index.js").default<{
78
- $el: HTMLElement;
79
- $options: import("../Base/index.js").BaseOptions;
80
- $refs: import("../Base/index.js").BaseRefs;
81
- $children: {
82
- [name: string]: import("../Base/index.js").default<any> | Promise<import("../Base/index.js").default<any>>;
83
- };
84
- }>[];
55
+ readonly $isBase: true;
56
+ $factory(nameOrSelector: string): import("../Base/index.js").default<BaseTypeParameter>[];
85
57
  };
@@ -14,35 +14,14 @@ export default function withFreezedOptions<T extends BaseTypeParameter = BaseTyp
14
14
  * @returns {Readonly<this['$options']>}
15
15
  */
16
16
  readonly $options: any;
17
- $parent: import("../Base/index.js").default<{
18
- $el: HTMLElement;
19
- $options: import("../Base/index.js").BaseOptions;
20
- $refs: import("../Base/index.js").BaseRefs;
21
- $children: {
22
- [name: string]: import("../Base/index.js").default<any> | Promise<import("../Base/index.js").default<any>>;
23
- };
24
- }>;
17
+ $parent: import("../Base/index.js").default<BaseTypeParameter>;
25
18
  $id: string;
26
19
  $el: (T & U)["$el"] & HTMLElement & {
27
- __base__?: WeakMap<typeof import("../Base/index.js").default, import("../Base/index.js").default<{
28
- $el: HTMLElement;
29
- $options: import("../Base/index.js").BaseOptions;
30
- $refs: import("../Base/index.js").BaseRefs;
31
- $children: {
32
- [name: string]: import("../Base/index.js").default<any> | Promise<import("../Base/index.js").default<any>>;
33
- };
34
- }> | "terminated">;
20
+ __base__?: WeakMap<typeof import("../Base/index.js").default, import("../Base/index.js").default<BaseTypeParameter> | "terminated">;
35
21
  };
36
22
  $isMounted: boolean;
37
23
  __eventHandlers: Map<string, Set<EventListenerOrEventListenerObject>>;
38
- readonly $root: import("../Base/index.js").default<{
39
- $el: HTMLElement;
40
- $options: import("../Base/index.js").BaseOptions;
41
- $refs: import("../Base/index.js").BaseRefs;
42
- $children: {
43
- [name: string]: import("../Base/index.js").default<any> | Promise<import("../Base/index.js").default<any>>;
44
- };
45
- }>;
24
+ readonly $root: import("../Base/index.js").default<BaseTypeParameter>;
46
25
  readonly __config: import("../Base/index.js").BaseConfig;
47
26
  __services: import("../Base/managers/ServicesManager.js").default;
48
27
  readonly $services: import("../Base/managers/ServicesManager.js").default;
@@ -55,7 +34,7 @@ export default function withFreezedOptions<T extends BaseTypeParameter = BaseTyp
55
34
  readonly $log: (...args: any) => void;
56
35
  readonly __debug: (...args: any) => void;
57
36
  readonly __managers: import("../Base/index.js").Managers;
58
- __callMethod(method: string, ...args: any[]): any;
37
+ __callMethod(method: string, ...args: unknown[]): unknown;
59
38
  __hasEvent(event: string): boolean;
60
39
  $mount(): any;
61
40
  $update(): any;
@@ -66,19 +45,12 @@ export default function withFreezedOptions<T extends BaseTypeParameter = BaseTyp
66
45
  readonly __ctor: typeof import("../Base/index.js").default;
67
46
  $on(event: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): () => void;
68
47
  $off(event: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
69
- $emit(event: string, ...args: any[]): void;
48
+ $emit(event: string, ...args: unknown[]): void;
70
49
  addEventListener(type: string, callback: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
71
50
  dispatchEvent(event: Event): boolean;
72
51
  removeEventListener(type: string, callback: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
73
52
  };
74
- readonly $isBase: boolean;
53
+ readonly $isBase: true;
75
54
  config: import("../Base/index.js").BaseConfig;
76
- $factory(nameOrSelector: string): import("../Base/index.js").default<{
77
- $el: HTMLElement;
78
- $options: import("../Base/index.js").BaseOptions;
79
- $refs: import("../Base/index.js").BaseRefs;
80
- $children: {
81
- [name: string]: import("../Base/index.js").default<any> | Promise<import("../Base/index.js").default<any>>;
82
- };
83
- }>[];
55
+ $factory(nameOrSelector: string): import("../Base/index.js").default<BaseTypeParameter>[];
84
56
  };
@@ -15,35 +15,14 @@ export default function withIntersectionObserver<T extends BaseTypeParameter = B
15
15
  * Intersection observer instance.
16
16
  */
17
17
  $observer: IntersectionObserver;
18
- $parent: import("../Base/index.js").default<{
19
- $el: HTMLElement;
20
- $options: import("../Base/index.js").BaseOptions;
21
- $refs: import("../Base/index.js").BaseRefs;
22
- $children: {
23
- [name: string]: import("../Base/index.js").default<any> | Promise<import("../Base/index.js").default<any>>;
24
- };
25
- }>;
18
+ $parent: import("../Base/index.js").default<BaseTypeParameter>;
26
19
  $id: string;
27
20
  $el: (WithIntersectionObserverInterface & T & U)["$el"] & HTMLElement & {
28
- __base__?: WeakMap<typeof import("../Base/index.js").default, import("../Base/index.js").default<{
29
- $el: HTMLElement;
30
- $options: import("../Base/index.js").BaseOptions;
31
- $refs: import("../Base/index.js").BaseRefs;
32
- $children: {
33
- [name: string]: import("../Base/index.js").default<any> | Promise<import("../Base/index.js").default<any>>;
34
- };
35
- }> | "terminated">;
21
+ __base__?: WeakMap<typeof import("../Base/index.js").default, import("../Base/index.js").default<BaseTypeParameter> | "terminated">;
36
22
  };
37
23
  $isMounted: boolean;
38
24
  __eventHandlers: Map<string, Set<EventListenerOrEventListenerObject>>;
39
- readonly $root: import("../Base/index.js").default<{
40
- $el: HTMLElement;
41
- $options: import("../Base/index.js").BaseOptions;
42
- $refs: import("../Base/index.js").BaseRefs;
43
- $children: {
44
- [name: string]: import("../Base/index.js").default<any> | Promise<import("../Base/index.js").default<any>>;
45
- };
46
- }>;
25
+ readonly $root: import("../Base/index.js").default<BaseTypeParameter>;
47
26
  readonly __config: import("../Base/index.js").BaseConfig;
48
27
  __services: import("../Base/managers/ServicesManager.js").default;
49
28
  readonly $services: import("../Base/managers/ServicesManager.js").default;
@@ -57,7 +36,7 @@ export default function withIntersectionObserver<T extends BaseTypeParameter = B
57
36
  readonly $log: (...args: any) => void;
58
37
  readonly __debug: (...args: any) => void;
59
38
  readonly __managers: import("../Base/index.js").Managers;
60
- __callMethod(method: string, ...args: any[]): any;
39
+ __callMethod(method: string, ...args: unknown[]): unknown;
61
40
  __hasEvent(event: string): boolean;
62
41
  $mount(): any;
63
42
  $update(): any;
@@ -68,7 +47,7 @@ export default function withIntersectionObserver<T extends BaseTypeParameter = B
68
47
  readonly __ctor: typeof import("../Base/index.js").default;
69
48
  $on(event: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): () => void;
70
49
  $off(event: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
71
- $emit(event: string, ...args: any[]): void;
50
+ $emit(event: string, ...args: unknown[]): void;
72
51
  addEventListener(type: string, callback: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
73
52
  dispatchEvent(event: Event): boolean;
74
53
  removeEventListener(type: string, callback: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
@@ -84,14 +63,7 @@ export default function withIntersectionObserver<T extends BaseTypeParameter = B
84
63
  refs?: string[];
85
64
  components?: import("../Base/index.js").BaseConfigComponents;
86
65
  };
87
- readonly $isBase: boolean;
88
- $factory(nameOrSelector: string): import("../Base/index.js").default<{
89
- $el: HTMLElement;
90
- $options: import("../Base/index.js").BaseOptions;
91
- $refs: import("../Base/index.js").BaseRefs;
92
- $children: {
93
- [name: string]: import("../Base/index.js").default<any> | Promise<import("../Base/index.js").default<any>>;
94
- };
95
- }>[];
66
+ readonly $isBase: true;
67
+ $factory(nameOrSelector: string): import("../Base/index.js").default<BaseTypeParameter>[];
96
68
  };
97
69
  export {};
@@ -24,35 +24,14 @@ export default function withMountWhenInView<T extends BaseTypeParameter = BaseTy
24
24
  * Override the mounting of the component.
25
25
  */
26
26
  $mount(): any;
27
- $parent: Base<{
28
- $el: HTMLElement;
29
- $options: import("../Base/index.js").BaseOptions;
30
- $refs: import("../Base/index.js").BaseRefs;
31
- $children: {
32
- [name: string]: Base<any> | Promise<Base<any>>;
33
- };
34
- }>;
27
+ $parent: Base<BaseTypeParameter>;
35
28
  $id: string;
36
29
  $el: (WithMountWhenInViewInterface & T & U)["$el"] & HTMLElement & {
37
- __base__?: WeakMap<typeof Base, Base<{
38
- $el: HTMLElement;
39
- $options: import("../Base/index.js").BaseOptions;
40
- $refs: import("../Base/index.js").BaseRefs;
41
- $children: {
42
- [name: string]: Base<any> | Promise<Base<any>>;
43
- };
44
- }> | "terminated">;
30
+ __base__?: WeakMap<typeof Base, Base<BaseTypeParameter> | "terminated">;
45
31
  };
46
32
  $isMounted: boolean;
47
33
  __eventHandlers: Map<string, Set<EventListenerOrEventListenerObject>>;
48
- readonly $root: Base<{
49
- $el: HTMLElement;
50
- $options: import("../Base/index.js").BaseOptions;
51
- $refs: import("../Base/index.js").BaseRefs;
52
- $children: {
53
- [name: string]: Base<any> | Promise<Base<any>>;
54
- };
55
- }>;
34
+ readonly $root: Base<BaseTypeParameter>;
56
35
  readonly __config: BaseConfig;
57
36
  __services: import("../Base/managers/ServicesManager.js").default;
58
37
  readonly $services: import("../Base/managers/ServicesManager.js").default;
@@ -66,7 +45,7 @@ export default function withMountWhenInView<T extends BaseTypeParameter = BaseTy
66
45
  readonly $log: (...args: any) => void;
67
46
  readonly __debug: (...args: any) => void;
68
47
  readonly __managers: import("../Base/index.js").Managers;
69
- __callMethod(method: string, ...args: any[]): any;
48
+ __callMethod(method: string, ...args: unknown[]): unknown;
70
49
  __hasEvent(event: string): boolean;
71
50
  $update(): any;
72
51
  $destroy(): any;
@@ -76,20 +55,13 @@ export default function withMountWhenInView<T extends BaseTypeParameter = BaseTy
76
55
  readonly __ctor: typeof Base;
77
56
  $on(event: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): () => void;
78
57
  $off(event: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
79
- $emit(event: string, ...args: any[]): void;
58
+ $emit(event: string, ...args: unknown[]): void;
80
59
  addEventListener(type: string, callback: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
81
60
  dispatchEvent(event: Event): boolean;
82
61
  removeEventListener(type: string, callback: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
83
62
  };
84
63
  config: BaseConfig;
85
- readonly $isBase: boolean;
86
- $factory(nameOrSelector: string): Base<{
87
- $el: HTMLElement;
88
- $options: import("../Base/index.js").BaseOptions;
89
- $refs: import("../Base/index.js").BaseRefs;
90
- $children: {
91
- [name: string]: Base<any> | Promise<Base<any>>;
92
- };
93
- }>[];
64
+ readonly $isBase: true;
65
+ $factory(nameOrSelector: string): Base<BaseTypeParameter>[];
94
66
  };
95
67
  export {};
@@ -11,35 +11,14 @@ export default function withResponsiveOptions<T extends BaseTypeParameter = Base
11
11
  readonly __managers: Managers & {
12
12
  OptionsManager: typeof ResponsiveOptionsManager;
13
13
  };
14
- $parent: import("../Base/index.js").default<{
15
- $el: HTMLElement;
16
- $options: import("../Base/index.js").BaseOptions;
17
- $refs: import("../Base/index.js").BaseRefs;
18
- $children: {
19
- [name: string]: import("../Base/index.js").default<any> | Promise<import("../Base/index.js").default<any>>;
20
- };
21
- }>;
14
+ $parent: import("../Base/index.js").default<BaseTypeParameter>;
22
15
  $id: string;
23
16
  $el: (U & T)["$el"] & HTMLElement & {
24
- __base__?: WeakMap<typeof import("../Base/index.js").default, import("../Base/index.js").default<{
25
- $el: HTMLElement;
26
- $options: import("../Base/index.js").BaseOptions;
27
- $refs: import("../Base/index.js").BaseRefs;
28
- $children: {
29
- [name: string]: import("../Base/index.js").default<any> | Promise<import("../Base/index.js").default<any>>;
30
- };
31
- }> | "terminated">;
17
+ __base__?: WeakMap<typeof import("../Base/index.js").default, import("../Base/index.js").default<BaseTypeParameter> | "terminated">;
32
18
  };
33
19
  $isMounted: boolean;
34
20
  __eventHandlers: Map<string, Set<EventListenerOrEventListenerObject>>;
35
- readonly $root: import("../Base/index.js").default<{
36
- $el: HTMLElement;
37
- $options: import("../Base/index.js").BaseOptions;
38
- $refs: import("../Base/index.js").BaseRefs;
39
- $children: {
40
- [name: string]: import("../Base/index.js").default<any> | Promise<import("../Base/index.js").default<any>>;
41
- };
42
- }>;
21
+ readonly $root: import("../Base/index.js").default<BaseTypeParameter>;
43
22
  readonly __config: import("../Base/index.js").BaseConfig;
44
23
  __services: import("../Base/managers/ServicesManager.js").default;
45
24
  readonly $services: import("../Base/managers/ServicesManager.js").default;
@@ -52,7 +31,7 @@ export default function withResponsiveOptions<T extends BaseTypeParameter = Base
52
31
  __events: import("../Base/managers/EventsManager.js").default;
53
32
  readonly $log: (...args: any) => void;
54
33
  readonly __debug: (...args: any) => void;
55
- __callMethod(method: string, ...args: any[]): any;
34
+ __callMethod(method: string, ...args: unknown[]): unknown;
56
35
  __hasEvent(event: string): boolean;
57
36
  $mount(): any;
58
37
  $update(): any;
@@ -63,19 +42,12 @@ export default function withResponsiveOptions<T extends BaseTypeParameter = Base
63
42
  readonly __ctor: typeof import("../Base/index.js").default;
64
43
  $on(event: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): () => void;
65
44
  $off(event: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
66
- $emit(event: string, ...args: any[]): void;
45
+ $emit(event: string, ...args: unknown[]): void;
67
46
  addEventListener(type: string, callback: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
68
47
  dispatchEvent(event: Event): boolean;
69
48
  removeEventListener(type: string, callback: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
70
49
  };
71
- readonly $isBase: boolean;
50
+ readonly $isBase: true;
72
51
  config: import("../Base/index.js").BaseConfig;
73
- $factory(nameOrSelector: string): import("../Base/index.js").default<{
74
- $el: HTMLElement;
75
- $options: import("../Base/index.js").BaseOptions;
76
- $refs: import("../Base/index.js").BaseRefs;
77
- $children: {
78
- [name: string]: import("../Base/index.js").default<any> | Promise<import("../Base/index.js").default<any>>;
79
- };
80
- }>[];
52
+ $factory(nameOrSelector: string): import("../Base/index.js").default<BaseTypeParameter>[];
81
53
  };
@@ -84,39 +84,18 @@ export default function withScrolledInView<T extends BaseTypeParameter = BaseTyp
84
84
  __isVisible: boolean;
85
85
  __observer: IntersectionObserver;
86
86
  $mount(): any;
87
- $parent: import("../Base/index.js").default<{
88
- $el: HTMLElement;
89
- $options: import("../Base/index.js").BaseOptions;
90
- $refs: import("../Base/index.js").BaseRefs;
91
- $children: {
92
- [name: string]: import("../Base/index.js").default<any> | Promise<import("../Base/index.js").default<any>>;
93
- };
94
- }>;
87
+ $parent: import("../Base/index.js").default<BaseTypeParameter>;
95
88
  $id: string;
96
89
  $el: ({
97
90
  $options: {
98
91
  intersectionObserver: IntersectionObserverInit;
99
92
  };
100
93
  } & T & U)["$el"] & HTMLElement & {
101
- __base__?: WeakMap<typeof import("../Base/index.js").default, import("../Base/index.js").default<{
102
- $el: HTMLElement;
103
- $options: import("../Base/index.js").BaseOptions;
104
- $refs: import("../Base/index.js").BaseRefs;
105
- $children: {
106
- [name: string]: import("../Base/index.js").default<any> | Promise<import("../Base/index.js").default<any>>;
107
- };
108
- }> | "terminated">;
94
+ __base__?: WeakMap<typeof import("../Base/index.js").default, import("../Base/index.js").default<BaseTypeParameter> | "terminated">;
109
95
  };
110
96
  $isMounted: boolean;
111
97
  __eventHandlers: Map<string, Set<EventListenerOrEventListenerObject>>;
112
- readonly $root: import("../Base/index.js").default<{
113
- $el: HTMLElement;
114
- $options: import("../Base/index.js").BaseOptions;
115
- $refs: import("../Base/index.js").BaseRefs;
116
- $children: {
117
- [name: string]: import("../Base/index.js").default<any> | Promise<import("../Base/index.js").default<any>>;
118
- };
119
- }>;
98
+ readonly $root: import("../Base/index.js").default<BaseTypeParameter>;
120
99
  readonly __config: BaseConfig;
121
100
  __services: import("../Base/managers/ServicesManager.js").default;
122
101
  readonly $services: import("../Base/managers/ServicesManager.js").default;
@@ -158,11 +137,16 @@ export default function withScrolledInView<T extends BaseTypeParameter = BaseTyp
158
137
  intersectionObserver: IntersectionObserverInit;
159
138
  };
160
139
  } & T & U)["$children"][key_1][]; } : never) & import("../Base/index.js").BaseChildren;
161
- __events: import("../Base/managers/EventsManager.js").default;
140
+ __events: import("../Base/managers/EventsManager.js").default; /**
141
+ * Ticked hook.
142
+ *
143
+ * @param {import('../services/raf').RafServiceProps} props
144
+ * @returns {void}
145
+ */
162
146
  readonly $log: (...args: any) => void;
163
147
  readonly __debug: (...args: any) => void;
164
148
  readonly __managers: import("../Base/index.js").Managers;
165
- __callMethod(method: string, ...args: any[]): any;
149
+ __callMethod(method: string, ...args: unknown[]): unknown;
166
150
  __hasEvent(event: string): boolean;
167
151
  $update(): any;
168
152
  $destroy(): any;
@@ -172,7 +156,7 @@ export default function withScrolledInView<T extends BaseTypeParameter = BaseTyp
172
156
  readonly __ctor: typeof import("../Base/index.js").default;
173
157
  $on(event: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): () => void;
174
158
  $off(event: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
175
- $emit(event: string, ...args: any[]): void;
159
+ $emit(event: string, ...args: unknown[]): void;
176
160
  addEventListener(type: string, callback: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
177
161
  dispatchEvent(event: Event): boolean;
178
162
  removeEventListener(type: string, callback: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
@@ -181,14 +165,7 @@ export default function withScrolledInView<T extends BaseTypeParameter = BaseTyp
181
165
  * Config.
182
166
  */
183
167
  config: BaseConfig;
184
- readonly $isBase: boolean;
185
- $factory(nameOrSelector: string): import("../Base/index.js").default<{
186
- $el: HTMLElement;
187
- $options: import("../Base/index.js").BaseOptions;
188
- $refs: import("../Base/index.js").BaseRefs;
189
- $children: {
190
- [name: string]: import("../Base/index.js").default<any> | Promise<import("../Base/index.js").default<any>>;
191
- };
192
- }>[];
168
+ readonly $isBase: true;
169
+ $factory(nameOrSelector: string): import("../Base/index.js").default<BaseTypeParameter>[];
193
170
  };
194
171
  export {};
@@ -12,35 +12,14 @@ interface WithVue2Interface {
12
12
  export default function withVue2<T extends BaseTypeParameter = BaseTypeParameter, VueTypeParameter extends Vue = Vue>(BaseClass: BaseConstructor, VueCtor: VueConstructor): {
13
13
  new <U extends BaseTypeParameter = BaseTypeParameter>(element: HTMLElement): {
14
14
  $vue: Vue;
15
- $parent: import("../Base/index.js").default<{
16
- $el: HTMLElement;
17
- $options: import("../Base/index.js").BaseOptions;
18
- $refs: import("../Base/index.js").BaseRefs;
19
- $children: {
20
- [name: string]: import("../Base/index.js").default<any> | Promise<import("../Base/index.js").default<any>>;
21
- };
22
- }>;
15
+ $parent: import("../Base/index.js").default<BaseTypeParameter>;
23
16
  $id: string;
24
17
  $el: (WithVue2Interface & T & U)["$el"] & HTMLElement & {
25
- __base__?: WeakMap<typeof import("../Base/index.js").default, import("../Base/index.js").default<{
26
- $el: HTMLElement;
27
- $options: import("../Base/index.js").BaseOptions;
28
- $refs: import("../Base/index.js").BaseRefs;
29
- $children: {
30
- [name: string]: import("../Base/index.js").default<any> | Promise<import("../Base/index.js").default<any>>;
31
- };
32
- }> | "terminated">;
18
+ __base__?: WeakMap<typeof import("../Base/index.js").default, import("../Base/index.js").default<BaseTypeParameter> | "terminated">;
33
19
  };
34
20
  $isMounted: boolean;
35
21
  __eventHandlers: Map<string, Set<EventListenerOrEventListenerObject>>;
36
- readonly $root: import("../Base/index.js").default<{
37
- $el: HTMLElement;
38
- $options: import("../Base/index.js").BaseOptions;
39
- $refs: import("../Base/index.js").BaseRefs;
40
- $children: {
41
- [name: string]: import("../Base/index.js").default<any> | Promise<import("../Base/index.js").default<any>>;
42
- };
43
- }>;
22
+ readonly $root: import("../Base/index.js").default<BaseTypeParameter>;
44
23
  readonly __config: import("../Base/index.js").BaseConfig;
45
24
  __services: import("../Base/managers/ServicesManager.js").default;
46
25
  readonly $services: import("../Base/managers/ServicesManager.js").default;
@@ -54,7 +33,7 @@ export default function withVue2<T extends BaseTypeParameter = BaseTypeParameter
54
33
  readonly $log: (...args: any) => void;
55
34
  readonly __debug: (...args: any) => void;
56
35
  readonly __managers: import("../Base/index.js").Managers;
57
- __callMethod(method: string, ...args: any[]): any;
36
+ __callMethod(method: string, ...args: unknown[]): unknown;
58
37
  __hasEvent(event: string): boolean;
59
38
  $mount(): any;
60
39
  $update(): any;
@@ -65,7 +44,7 @@ export default function withVue2<T extends BaseTypeParameter = BaseTypeParameter
65
44
  readonly __ctor: typeof import("../Base/index.js").default;
66
45
  $on(event: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): () => void;
67
46
  $off(event: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
68
- $emit(event: string, ...args: any[]): void;
47
+ $emit(event: string, ...args: unknown[]): void;
69
48
  addEventListener(type: string, callback: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
70
49
  dispatchEvent(event: Event): boolean;
71
50
  removeEventListener(type: string, callback: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
@@ -85,14 +64,7 @@ export default function withVue2<T extends BaseTypeParameter = BaseTypeParameter
85
64
  vueConfig: ComponentOptions<VueTypeParameter, import("vue/types/options.js").DefaultData<VueTypeParameter>, import("vue/types/options.js").DefaultMethods<VueTypeParameter>, import("vue/types/options.js").DefaultComputed, import("vue/types/options.js").PropsDefinition<import("vue/types/options.js").DefaultProps>, import("vue/types/options.js").DefaultProps> & {
86
65
  render: ComponentOptions<VueTypeParameter>['render'];
87
66
  };
88
- readonly $isBase: boolean;
89
- $factory(nameOrSelector: string): import("../Base/index.js").default<{
90
- $el: HTMLElement;
91
- $options: import("../Base/index.js").BaseOptions;
92
- $refs: import("../Base/index.js").BaseRefs;
93
- $children: {
94
- [name: string]: import("../Base/index.js").default<any> | Promise<import("../Base/index.js").default<any>>;
95
- };
96
- }>[];
67
+ readonly $isBase: true;
68
+ $factory(nameOrSelector: string): import("../Base/index.js").default<BaseTypeParameter>[];
97
69
  };
98
70
  export {};
@@ -10,14 +10,7 @@
10
10
  * @param {string} childrenName
11
11
  * @returns {T[]}
12
12
  */
13
- export function getDirectChildren<T extends import("../Base/index.js").default<{
14
- $el: HTMLElement;
15
- $options: import("../Base/index.js").BaseOptions;
16
- $refs: import("../Base/index.js").BaseRefs;
17
- $children: {
18
- [name: string]: import("../Base/index.js").default<any> | Promise<import("../Base/index.js").default<any>>;
19
- };
20
- }>>(parentInstance: Base, parentName: string, childrenName: string): T[];
13
+ export function getDirectChildren<T extends import("../Base/index.js").default<import("../Base/index.js").BaseTypeParameter>>(parentInstance: Base, parentName: string, childrenName: string): T[];
21
14
  /**
22
15
  * Test if a component instance is a direct child from the given component.
23
16
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@studiometa/js-toolkit",
3
- "version": "2.4.4-alpha.2",
3
+ "version": "2.4.4-alpha.3",
4
4
  "description": "A set of useful little bits of JavaScript to boost your project! 🚀",
5
5
  "publishConfig": {
6
6
  "access": "public"