@arcgis/lumina 4.33.0-next.94 → 4.33.0-next.95
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/dist/ControllerManager-B2comd8J.js +310 -0
- package/dist/LitElement.d.ts +3 -3
- package/dist/context.d.ts +1 -1
- package/dist/controllers/ComponentInternals.d.ts +92 -0
- package/dist/controllers/Controller.d.ts +152 -0
- package/dist/controllers/ControllerInternals.d.ts +52 -0
- package/dist/controllers/ControllerManager.d.ts +63 -0
- package/dist/controllers/accessor/index.d.ts +2 -0
- package/dist/controllers/accessor/index.js +1045 -0
- package/dist/controllers/accessor/reEmitEvent.d.ts +14 -0
- package/dist/controllers/accessor/useAccessor.d.ts +75 -0
- package/dist/controllers/framework.d.ts +45 -0
- package/dist/controllers/functional.d.ts +19 -0
- package/dist/controllers/getSet.d.ts +116 -0
- package/dist/controllers/index.d.ts +23 -0
- package/dist/controllers/index.js +283 -0
- package/dist/controllers/load.d.ts +6 -0
- package/dist/controllers/proxyExports.d.ts +27 -0
- package/dist/controllers/readonly.d.ts +29 -0
- package/dist/controllers/tests/autoDestroyMock.d.ts +5 -0
- package/dist/controllers/tests/utils.d.ts +1 -0
- package/dist/controllers/toFunction.d.ts +8 -0
- package/dist/controllers/trackKey.d.ts +8 -0
- package/dist/controllers/trackPropKey.d.ts +21 -0
- package/dist/controllers/trackPropertyKey.d.ts +28 -0
- package/dist/controllers/types.d.ts +182 -0
- package/dist/controllers/useDirection.d.ts +11 -0
- package/dist/controllers/useMedia.d.ts +8 -0
- package/dist/controllers/usePropertyChange.d.ts +11 -0
- package/dist/controllers/useT9n.d.ts +48 -0
- package/dist/controllers/useWatch.d.ts +27 -0
- package/dist/controllers/useWatchAttributes.d.ts +7 -0
- package/dist/controllers/utils.d.ts +15 -0
- package/dist/createEvent.d.ts +1 -1
- package/dist/decorators.d.ts +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +5 -42
- package/dist/lazyLoad.d.ts +2 -2
- package/dist/makeRuntime.d.ts +109 -0
- package/dist/proxyExports-Dl5CHmHQ.js +150 -0
- package/dist/runtime.d.ts +4 -107
- package/dist/useWatch-CFtSpNnN.js +925 -0
- package/package.json +4 -3
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { BaseComponent } from './types';
|
|
2
|
+
import { GenericController } from './Controller';
|
|
3
|
+
import { ComponentInternals } from './ComponentInternals';
|
|
4
|
+
/**
|
|
5
|
+
* Using "new ControllerManager(this)" inside a component causes this TypeScript
|
|
6
|
+
* error:
|
|
7
|
+
* 'manager' implicitly has type 'any' because it does not have a type
|
|
8
|
+
* annotation and is referenced directly or indirectly in its own initializer.
|
|
9
|
+
*
|
|
10
|
+
* This function fixes that, and it's also a bit shorter to type
|
|
11
|
+
*
|
|
12
|
+
* @deprecated Lumina packages should not need to call this directly
|
|
13
|
+
*/
|
|
14
|
+
export declare const useControllerManager: (component: BaseComponent) => ControllerManager;
|
|
15
|
+
/**
|
|
16
|
+
* A manager for all other controllers. It finds all controllers on the
|
|
17
|
+
* component, loads them, and forwards lifecycle events to them.
|
|
18
|
+
*/
|
|
19
|
+
export declare class ControllerManager extends GenericController<undefined> {
|
|
20
|
+
private readonly _controllers;
|
|
21
|
+
/** @internal */
|
|
22
|
+
readonly internals: ComponentInternals;
|
|
23
|
+
hasDestroy: boolean;
|
|
24
|
+
destroyed: boolean;
|
|
25
|
+
private _updatePromise;
|
|
26
|
+
private _autoDestroyTimeout?;
|
|
27
|
+
/**
|
|
28
|
+
* If true, indicates that ControllerManager is running against a Lit component.
|
|
29
|
+
* Otherwise, means we are running against a Stencil component.
|
|
30
|
+
*/
|
|
31
|
+
readonly isLit: boolean;
|
|
32
|
+
constructor(component: BaseComponent);
|
|
33
|
+
private _originalLifecycles;
|
|
34
|
+
private _bindLifecycleMethods;
|
|
35
|
+
/**
|
|
36
|
+
* Throws an error if component does not implement destroy() lifecycle, but
|
|
37
|
+
* tries to use it. This check is only present in development mode
|
|
38
|
+
*/
|
|
39
|
+
ensureHasDestroy?: () => void;
|
|
40
|
+
/**
|
|
41
|
+
* Private because this is not supposed to be called by Component directly.
|
|
42
|
+
* Instead, _bindLifecycleMethods will take care of that. Otherwise, you risk
|
|
43
|
+
* calling lifecycle methods twice.
|
|
44
|
+
*
|
|
45
|
+
* @internal
|
|
46
|
+
*/
|
|
47
|
+
_connectedCallback(): void;
|
|
48
|
+
/** @internal */
|
|
49
|
+
_disconnectedCallback(): void;
|
|
50
|
+
/** @internal */
|
|
51
|
+
_load(): Promise<void>;
|
|
52
|
+
/** @internal */
|
|
53
|
+
_loaded(): void;
|
|
54
|
+
private _update;
|
|
55
|
+
private _updated;
|
|
56
|
+
destroy(): Promise<void>;
|
|
57
|
+
private _setAutoDestroyTimeout;
|
|
58
|
+
}
|
|
59
|
+
export declare let autoDestroyOnDisconnectTimeout: number;
|
|
60
|
+
export declare const exportsForTests: {
|
|
61
|
+
setAutoDestroyOnDisconnectTimeout: (timeout: number) => void;
|
|
62
|
+
} | undefined;
|
|
63
|
+
export declare const defaultGetterSetter: (value: unknown) => unknown;
|