@hkdigital/lib-core 0.4.30 → 0.4.32
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/auth/jwt/constants.d.ts +1 -1
- package/dist/auth/jwt/errors.d.ts +5 -5
- package/dist/auth/jwt/typedef.d.ts +30 -30
- package/dist/config/generators/imagetools.d.ts +3 -3
- package/dist/config/generators/vite.d.ts +11 -11
- package/dist/config/generators/vite.js +1 -1
- package/dist/design/generators/index.d.ts +9 -9
- package/dist/design/utils/clamp.d.ts +1 -1
- package/dist/design/utils/root-vars.d.ts +1 -1
- package/dist/design/utils/scaling.d.ts +2 -2
- package/dist/generic/data/classes/IterableTree.d.ts +2 -2
- package/dist/generic/data/classes/IterableTree.js +1 -0
- package/dist/generic/data/classes/Selector.d.ts +5 -5
- package/dist/generic/data/classes/Selector.js +53 -60
- package/dist/generic/data/classes/typedef.d.ts +5 -5
- package/dist/generic/errors/generic.d.ts +3 -1
- package/dist/generic/errors/promise.d.ts +2 -2
- package/dist/generic/events/classes/EventEmitter.js +1 -0
- package/dist/generic/promises/classes/HkPromise.js +9 -15
- package/dist/logging/internal/adapters/console.d.ts +5 -5
- package/dist/logging/internal/adapters/pino.d.ts +3 -3
- package/dist/logging/internal/adapters/typedef.d.ts +7 -7
- package/dist/logging/internal/factories/client.d.ts +1 -1
- package/dist/logging/internal/factories/server.d.ts +1 -1
- package/dist/logging/internal/logger/Logger.d.ts +3 -3
- package/dist/logging/internal/transports/pretty-transport.d.ts +3 -3
- package/dist/logging/internal/transports/test-transport.d.ts +5 -5
- package/dist/logging/typedef.d.ts +1 -1
- package/dist/network/cache/IndexedDbCache.d.ts +10 -10
- package/dist/network/cache/MemoryResponseCache.d.ts +3 -3
- package/dist/network/cache/typedef.d.ts +3 -3
- package/dist/network/errors/http.d.ts +2 -2
- package/dist/network/http/caching.d.ts +2 -2
- package/dist/network/http/http-request.d.ts +1 -1
- package/dist/network/http/typedef.d.ts +31 -31
- package/dist/network/loaders/audio/AudioScene.svelte.d.ts +2 -2
- package/dist/network/loaders/base/SceneBase.svelte.d.ts +4 -4
- package/dist/network/loaders/base/SceneBase.svelte.js +1 -1
- package/dist/network/loaders/image/ImageLoader.svelte.d.ts +1 -1
- package/dist/network/loaders/image/ImageVariantsLoader.svelte.d.ts +5 -5
- package/dist/network/loaders/image/utils/index.d.ts +3 -3
- package/dist/services/manager-plugins/ConfigPlugin.d.ts +1 -1
- package/dist/services/service-base/ServiceBase.d.ts +13 -3
- package/dist/services/service-base/ServiceBase.js +27 -9
- package/dist/services/service-base/typedef.d.ts +8 -8
- package/dist/services/service-manager/ServiceManager.d.ts +10 -2
- package/dist/services/service-manager/ServiceManager.js +55 -27
- package/dist/services/service-manager/typedef.d.ts +12 -11
- package/dist/services/service-manager/typedef.js +2 -1
- package/dist/state/machines/finite-state-machine/FiniteStateMachine.svelte.d.ts +1 -1
- package/dist/state/machines/loading-state-machine/LoadingStateMachine.svelte.d.ts +1 -1
- package/dist/state/stores/theme.d.ts +1 -1
- package/dist/ui/components/button-group/ButtonGroup.svelte.d.ts +7 -7
- package/dist/ui/components/button-group/typedef.d.ts +1 -1
- package/dist/ui/components/compare-left-right/CompareLeftRight.svelte.d.ts +5 -5
- package/dist/ui/components/drag-drop/DragController.d.ts +1 -1
- package/dist/ui/components/drag-drop/DragDropContext.svelte.d.ts +3 -3
- package/dist/ui/components/drag-drop/Draggable.svelte.d.ts +20 -20
- package/dist/ui/components/drag-drop/DropZone.svelte.d.ts +27 -27
- package/dist/ui/components/drag-drop/DropZoneArea.svelte.d.ts +26 -26
- package/dist/ui/components/drag-drop/DropZoneList.svelte.d.ts +27 -27
- package/dist/ui/components/drag-drop/drag-state.svelte.d.ts +4 -4
- package/dist/ui/components/drag-drop/typedef/drag.d.ts +1 -1
- package/dist/ui/components/game-box/GameBox.svelte.d.ts +19 -19
- package/dist/ui/components/game-box/gamebox.util.d.ts +2 -2
- package/dist/ui/components/grid-layers/GridLayers.svelte.d.ts +7 -7
- package/dist/ui/components/image-box/ImageBox.svelte.d.ts +14 -14
- package/dist/ui/components/presenter/ImageSlide.svelte.d.ts +8 -8
- package/dist/ui/components/presenter/Presenter.state.svelte.d.ts +1 -1
- package/dist/ui/components/presenter/Presenter.svelte.d.ts +5 -5
- package/dist/ui/components/presenter/typedef.d.ts +13 -13
- package/dist/ui/components/rows/panel-grid-row/PanelGridRow.svelte.d.ts +7 -7
- package/dist/ui/components/rows/panel-row-2/PanelRow2.svelte.d.ts +7 -7
- package/dist/ui/components/tab-bar/HkTabBar.svelte.d.ts +10 -10
- package/dist/ui/components/tab-bar/HkTabBarSelector.state.svelte.d.ts +1 -1
- package/dist/ui/components/tab-bar/HkTabBarSelector.svelte.d.ts +10 -10
- package/dist/ui/components/tab-bar/typedef.d.ts +3 -3
- package/dist/ui/components/virtual-viewport/VirtualViewport.svelte.d.ts +17 -17
- package/dist/ui/dev/blocks/TextBlock.svelte.d.ts +6 -6
- package/dist/ui/dev/buttons/CheckButton.svelte.d.ts +11 -11
- package/dist/ui/primitives/area/HkArea.svelte.d.ts +6 -6
- package/dist/ui/primitives/area/HkGridArea.svelte.d.ts +12 -12
- package/dist/ui/primitives/buttons/button/Button.svelte.d.ts +16 -16
- package/dist/ui/primitives/buttons/button-icon-steeze/SteezeIconButton.svelte.d.ts +2 -2
- package/dist/ui/primitives/buttons/button-submit/SubmitButton.svelte +21 -0
- package/dist/ui/primitives/buttons/button-submit/SubmitButton.svelte.d.ts +12 -0
- package/dist/ui/primitives/buttons/index.d.ts +2 -1
- package/dist/ui/primitives/buttons/index.js +2 -1
- package/dist/ui/primitives/icons/HkIcon.svelte.d.ts +4 -4
- package/dist/ui/primitives/icons/HkTabIcon.svelte.d.ts +13 -13
- package/dist/ui/primitives/icons/SteezeIcon.svelte.d.ts +4 -4
- package/dist/ui/primitives/inputs/text-input/TextInput.svelte.d.ts +22 -22
- package/dist/ui/primitives/inputs/text-input/assets/IconInvalid.svelte.d.ts +1 -1
- package/dist/ui/primitives/inputs/text-input/assets/IconValid.svelte.d.ts +1 -1
- package/dist/ui/primitives/panels/panel/Panel.svelte.d.ts +6 -6
- package/dist/util/array/index.d.ts +17 -17
- package/dist/util/array/index.js +5 -5
- package/dist/util/compare/index.d.ts +2 -1
- package/dist/util/compare/index.js +1 -0
- package/dist/util/exceptions/index.d.ts +3 -2
- package/dist/util/exceptions/index.js +13 -9
- package/dist/util/expect/arrays.d.ts +1 -0
- package/dist/util/expect/arrays.js +1 -0
- package/dist/util/expect/primitives.d.ts +18 -0
- package/dist/util/expect/primitives.js +18 -0
- package/dist/util/function/index.d.ts +14 -1
- package/dist/util/geometry/index.d.ts +2 -2
- package/dist/util/geometry/index.js +1 -1
- package/dist/util/iterate/index.d.ts +7 -7
- package/dist/util/object/index.d.ts +13 -13
- package/dist/util/singleton/index.d.ts +3 -3
- package/dist/util/svelte/loading/loading-tracker.svelte.d.ts +1 -1
- package/dist/util/sveltekit/env/all.d.ts +7 -18
- package/dist/util/sveltekit/env/all.js +4 -22
- package/dist/util/sveltekit/env/parsers.d.ts +23 -37
- package/dist/util/sveltekit/env/parsers.js +15 -15
- package/dist/util/sveltekit/env/private.d.ts +9 -11
- package/dist/util/sveltekit/env/private.js +4 -4
- package/dist/util/sveltekit/env/public.d.ts +9 -11
- package/dist/util/sveltekit/env/public.js +3 -3
- package/dist/util/sveltekit/env-all.d.ts +1 -1
- package/dist/util/sveltekit/env-all.js +2 -4
- package/dist/util/sveltekit/route-folders/index.d.ts +2 -2
- package/dist/util/sveltekit/route-folders.d.ts +1 -0
- package/dist/util/{sveltekit.js → sveltekit/route-folders.js} +1 -1
- package/dist/util/time/index.d.ts +4 -4
- package/dist/valibot/parsers/url.d.ts +3 -3
- package/dist/valibot/parsers/url.js +6 -2
- package/package.json +1 -1
- package/dist/util/sveltekit.d.ts +0 -1
|
@@ -3,49 +3,49 @@ type DropZone = {
|
|
|
3
3
|
$on?(type: string, callback: (e: any) => void): () => void;
|
|
4
4
|
$set?(props: Partial<{
|
|
5
5
|
[key: string]: any;
|
|
6
|
-
zone?: string;
|
|
7
|
-
group?: string;
|
|
8
|
-
disabled?: boolean;
|
|
9
|
-
accepts?: (dragData: any, target: {
|
|
6
|
+
zone?: string | undefined;
|
|
7
|
+
group?: string | undefined;
|
|
8
|
+
disabled?: boolean | undefined;
|
|
9
|
+
accepts?: ((dragData: any, target: {
|
|
10
10
|
zone: string;
|
|
11
11
|
group: string;
|
|
12
|
-
}) => boolean;
|
|
13
|
-
base?: string;
|
|
14
|
-
classes?: string;
|
|
15
|
-
minHeight?: string;
|
|
16
|
-
maxHeight?: string;
|
|
17
|
-
heightMode?: "fill" | "fixed" | "flexible";
|
|
18
|
-
children?: Snippet<[]
|
|
19
|
-
contextKey?: ContextKey;
|
|
20
|
-
dropPreviewSnippet?: Snippet<[DragData]
|
|
21
|
-
isDragOver?: boolean;
|
|
22
|
-
canDrop?: boolean;
|
|
23
|
-
onDragEnter?: (detail: {
|
|
12
|
+
}) => boolean) | undefined;
|
|
13
|
+
base?: string | undefined;
|
|
14
|
+
classes?: string | undefined;
|
|
15
|
+
minHeight?: string | undefined;
|
|
16
|
+
maxHeight?: string | undefined;
|
|
17
|
+
heightMode?: "fill" | "fixed" | "flexible" | undefined;
|
|
18
|
+
children?: Snippet<[]> | undefined;
|
|
19
|
+
contextKey?: ContextKey | undefined;
|
|
20
|
+
dropPreviewSnippet?: Snippet<[DragData]> | undefined;
|
|
21
|
+
isDragOver?: boolean | undefined;
|
|
22
|
+
canDrop?: boolean | undefined;
|
|
23
|
+
onDragEnter?: ((detail: {
|
|
24
24
|
event: DragEvent;
|
|
25
25
|
zone: string;
|
|
26
26
|
canDrop: boolean;
|
|
27
|
-
}) => void;
|
|
28
|
-
onDragOver?: (detail: {
|
|
27
|
+
}) => void) | undefined;
|
|
28
|
+
onDragOver?: ((detail: {
|
|
29
29
|
event: DragEvent;
|
|
30
30
|
zone: string;
|
|
31
|
-
}) => void;
|
|
32
|
-
onDragLeave?: (detail: {
|
|
31
|
+
}) => void) | undefined;
|
|
32
|
+
onDragLeave?: ((detail: {
|
|
33
33
|
event: DragEvent;
|
|
34
34
|
zone: string;
|
|
35
|
-
}) => void;
|
|
36
|
-
onDrop?: (detail: DropData) => any;
|
|
37
|
-
onDropStart?: (detail: {
|
|
35
|
+
}) => void) | undefined;
|
|
36
|
+
onDrop?: ((detail: DropData) => any) | undefined;
|
|
37
|
+
onDropStart?: ((detail: {
|
|
38
38
|
event: DragEvent;
|
|
39
39
|
zone: string;
|
|
40
40
|
data: any;
|
|
41
|
-
}) => void;
|
|
42
|
-
onDropEnd?: (detail: {
|
|
41
|
+
}) => void) | undefined;
|
|
42
|
+
onDropEnd?: ((detail: {
|
|
43
43
|
event: DragEvent;
|
|
44
44
|
zone: string;
|
|
45
45
|
data: any;
|
|
46
46
|
success: boolean;
|
|
47
|
-
error?: Error;
|
|
48
|
-
}) => void;
|
|
47
|
+
error?: Error | undefined;
|
|
48
|
+
}) => void) | undefined;
|
|
49
49
|
}>): void;
|
|
50
50
|
};
|
|
51
51
|
declare const DropZone: import("svelte").Component<{
|
|
@@ -3,46 +3,46 @@ type DropZoneArea = {
|
|
|
3
3
|
$on?(type: string, callback: (e: any) => void): () => void;
|
|
4
4
|
$set?(props: Partial<{
|
|
5
5
|
[key: string]: any;
|
|
6
|
-
zone?: string;
|
|
7
|
-
group?: string;
|
|
8
|
-
disabled?: boolean;
|
|
9
|
-
accepts?: (item: any) => boolean;
|
|
10
|
-
fillContainer?: boolean;
|
|
11
|
-
aspectRatio?: string;
|
|
12
|
-
overflow?: "scroll" | "auto" | "hidden" | "visible";
|
|
13
|
-
base?: string;
|
|
14
|
-
classes?: string;
|
|
15
|
-
children?: Snippet<[]
|
|
16
|
-
contextKey?: ContextKey;
|
|
17
|
-
dropPreviewSnippet?: Snippet<[DragData]
|
|
18
|
-
isDragOver?: boolean;
|
|
19
|
-
canDrop?: boolean;
|
|
20
|
-
onDragEnter?: (detail: {
|
|
6
|
+
zone?: string | undefined;
|
|
7
|
+
group?: string | undefined;
|
|
8
|
+
disabled?: boolean | undefined;
|
|
9
|
+
accepts?: ((item: any) => boolean) | undefined;
|
|
10
|
+
fillContainer?: boolean | undefined;
|
|
11
|
+
aspectRatio?: string | undefined;
|
|
12
|
+
overflow?: "scroll" | "auto" | "hidden" | "visible" | undefined;
|
|
13
|
+
base?: string | undefined;
|
|
14
|
+
classes?: string | undefined;
|
|
15
|
+
children?: Snippet<[]> | undefined;
|
|
16
|
+
contextKey?: ContextKey | undefined;
|
|
17
|
+
dropPreviewSnippet?: Snippet<[DragData]> | undefined;
|
|
18
|
+
isDragOver?: boolean | undefined;
|
|
19
|
+
canDrop?: boolean | undefined;
|
|
20
|
+
onDragEnter?: ((detail: {
|
|
21
21
|
event: DragEvent;
|
|
22
22
|
zone: string;
|
|
23
23
|
canDrop: boolean;
|
|
24
|
-
}) => void;
|
|
25
|
-
onDragOver?: (detail: {
|
|
24
|
+
}) => void) | undefined;
|
|
25
|
+
onDragOver?: ((detail: {
|
|
26
26
|
event: DragEvent;
|
|
27
27
|
zone: string;
|
|
28
|
-
}) => void;
|
|
29
|
-
onDragLeave?: (detail: {
|
|
28
|
+
}) => void) | undefined;
|
|
29
|
+
onDragLeave?: ((detail: {
|
|
30
30
|
event: DragEvent;
|
|
31
31
|
zone: string;
|
|
32
|
-
}) => void;
|
|
33
|
-
onDrop?: (detail: DropData) => any;
|
|
34
|
-
onDropStart?: (detail: {
|
|
32
|
+
}) => void) | undefined;
|
|
33
|
+
onDrop?: ((detail: DropData) => any) | undefined;
|
|
34
|
+
onDropStart?: ((detail: {
|
|
35
35
|
event: DragEvent;
|
|
36
36
|
zone: string;
|
|
37
37
|
data: any;
|
|
38
|
-
}) => void;
|
|
39
|
-
onDropEnd?: (detail: {
|
|
38
|
+
}) => void) | undefined;
|
|
39
|
+
onDropEnd?: ((detail: {
|
|
40
40
|
event: DragEvent;
|
|
41
41
|
zone: string;
|
|
42
42
|
data: any;
|
|
43
43
|
success: boolean;
|
|
44
|
-
error?: Error;
|
|
45
|
-
}) => void;
|
|
44
|
+
error?: Error | undefined;
|
|
45
|
+
}) => void) | undefined;
|
|
46
46
|
}>): void;
|
|
47
47
|
};
|
|
48
48
|
declare const DropZoneArea: import("svelte").Component<{
|
|
@@ -3,47 +3,47 @@ type DropZoneList = {
|
|
|
3
3
|
$on?(type: string, callback: (e: any) => void): () => void;
|
|
4
4
|
$set?(props: Partial<{
|
|
5
5
|
[key: string]: any;
|
|
6
|
-
zone?: string;
|
|
7
|
-
group?: string;
|
|
8
|
-
disabled?: boolean;
|
|
9
|
-
accepts?: (item: any) => boolean;
|
|
10
|
-
minHeight?: string;
|
|
11
|
-
maxHeight?: string;
|
|
12
|
-
gap?: string;
|
|
13
|
-
direction?: "vertical" | "horizontal";
|
|
14
|
-
base?: string;
|
|
15
|
-
classes?: string;
|
|
16
|
-
children?: Snippet<[]
|
|
17
|
-
contextKey?: ContextKey;
|
|
18
|
-
dropPreviewSnippet?: Snippet<[DragData]
|
|
19
|
-
isDragOver?: boolean;
|
|
20
|
-
canDrop?: boolean;
|
|
21
|
-
onDragEnter?: (detail: {
|
|
6
|
+
zone?: string | undefined;
|
|
7
|
+
group?: string | undefined;
|
|
8
|
+
disabled?: boolean | undefined;
|
|
9
|
+
accepts?: ((item: any) => boolean) | undefined;
|
|
10
|
+
minHeight?: string | undefined;
|
|
11
|
+
maxHeight?: string | undefined;
|
|
12
|
+
gap?: string | undefined;
|
|
13
|
+
direction?: "vertical" | "horizontal" | undefined;
|
|
14
|
+
base?: string | undefined;
|
|
15
|
+
classes?: string | undefined;
|
|
16
|
+
children?: Snippet<[]> | undefined;
|
|
17
|
+
contextKey?: ContextKey | undefined;
|
|
18
|
+
dropPreviewSnippet?: Snippet<[DragData]> | undefined;
|
|
19
|
+
isDragOver?: boolean | undefined;
|
|
20
|
+
canDrop?: boolean | undefined;
|
|
21
|
+
onDragEnter?: ((detail: {
|
|
22
22
|
event: DragEvent;
|
|
23
23
|
zone: string;
|
|
24
24
|
canDrop: boolean;
|
|
25
|
-
}) => void;
|
|
26
|
-
onDragOver?: (detail: {
|
|
25
|
+
}) => void) | undefined;
|
|
26
|
+
onDragOver?: ((detail: {
|
|
27
27
|
event: DragEvent;
|
|
28
28
|
zone: string;
|
|
29
|
-
}) => void;
|
|
30
|
-
onDragLeave?: (detail: {
|
|
29
|
+
}) => void) | undefined;
|
|
30
|
+
onDragLeave?: ((detail: {
|
|
31
31
|
event: DragEvent;
|
|
32
32
|
zone: string;
|
|
33
|
-
}) => void;
|
|
34
|
-
onDrop?: (detail: DropData) => any;
|
|
35
|
-
onDropStart?: (detail: {
|
|
33
|
+
}) => void) | undefined;
|
|
34
|
+
onDrop?: ((detail: DropData) => any) | undefined;
|
|
35
|
+
onDropStart?: ((detail: {
|
|
36
36
|
event: DragEvent;
|
|
37
37
|
zone: string;
|
|
38
38
|
data: any;
|
|
39
|
-
}) => void;
|
|
40
|
-
onDropEnd?: (detail: {
|
|
39
|
+
}) => void) | undefined;
|
|
40
|
+
onDropEnd?: ((detail: {
|
|
41
41
|
event: DragEvent;
|
|
42
42
|
zone: string;
|
|
43
43
|
data: any;
|
|
44
44
|
success: boolean;
|
|
45
|
-
error?: Error;
|
|
46
|
-
}) => void;
|
|
45
|
+
error?: Error | undefined;
|
|
46
|
+
}) => void) | undefined;
|
|
47
47
|
}>): void;
|
|
48
48
|
};
|
|
49
49
|
declare const DropZoneList: import("svelte").Component<{
|
|
@@ -7,8 +7,8 @@ declare class DragState {
|
|
|
7
7
|
draggables: Map<any, any>;
|
|
8
8
|
draggableIdCount: number;
|
|
9
9
|
dropZones: Map<any, any>;
|
|
10
|
-
activeDropZone:
|
|
11
|
-
lastActiveDropZone:
|
|
10
|
+
activeDropZone: null;
|
|
11
|
+
lastActiveDropZone: null;
|
|
12
12
|
/**
|
|
13
13
|
* Register a dropzone
|
|
14
14
|
* @param {string} zoneId
|
|
@@ -43,7 +43,7 @@ declare class DragState {
|
|
|
43
43
|
* @param {number} y
|
|
44
44
|
* @returns {Object|null}
|
|
45
45
|
*/
|
|
46
|
-
getDropZoneAtPoint(x: number, y: number):
|
|
46
|
+
getDropZoneAtPoint(x: number, y: number): Object | null;
|
|
47
47
|
/**
|
|
48
48
|
* Update active dropzone based on coordinates
|
|
49
49
|
*
|
|
@@ -83,7 +83,7 @@ declare class DragState {
|
|
|
83
83
|
*
|
|
84
84
|
* @returns {Object|null} The drag data, or null for file drops or not found
|
|
85
85
|
*/
|
|
86
|
-
getDraggable(event: DragEvent | SimulatedDragEvent):
|
|
86
|
+
getDraggable(event: DragEvent | SimulatedDragEvent): Object | null;
|
|
87
87
|
/**
|
|
88
88
|
* Get the most recently started drag operation (convenience method)
|
|
89
89
|
* @returns {import('./typedef.js').DragData|undefined}
|
|
@@ -3,26 +3,26 @@ type GameBox = {
|
|
|
3
3
|
$on?(type: string, callback: (e: any) => void): () => void;
|
|
4
4
|
$set?(props: Partial<{
|
|
5
5
|
[attr: string]: any;
|
|
6
|
-
base?: string;
|
|
7
|
-
bg?: string;
|
|
8
|
-
classes?: string;
|
|
9
|
-
style?: string;
|
|
10
|
-
aspectOnLandscape?: number;
|
|
11
|
-
aspectOnPortrait?: number;
|
|
12
|
-
marginLeft?: number;
|
|
13
|
-
marginRight?: number;
|
|
14
|
-
marginTop?: number;
|
|
15
|
-
marginBottom?: number;
|
|
16
|
-
center?: boolean;
|
|
17
|
-
enableScaling?: boolean;
|
|
6
|
+
base?: string | undefined;
|
|
7
|
+
bg?: string | undefined;
|
|
8
|
+
classes?: string | undefined;
|
|
9
|
+
style?: string | undefined;
|
|
10
|
+
aspectOnLandscape?: number | undefined;
|
|
11
|
+
aspectOnPortrait?: number | undefined;
|
|
12
|
+
marginLeft?: number | undefined;
|
|
13
|
+
marginRight?: number | undefined;
|
|
14
|
+
marginTop?: number | undefined;
|
|
15
|
+
marginBottom?: number | undefined;
|
|
16
|
+
center?: boolean | undefined;
|
|
17
|
+
enableScaling?: boolean | undefined;
|
|
18
18
|
designLandscape?: {
|
|
19
19
|
width: number;
|
|
20
20
|
height: number;
|
|
21
|
-
};
|
|
21
|
+
} | undefined;
|
|
22
22
|
designPortrait?: {
|
|
23
23
|
width: number;
|
|
24
24
|
height: number;
|
|
25
|
-
};
|
|
25
|
+
} | undefined;
|
|
26
26
|
clamping?: {
|
|
27
27
|
ui: {
|
|
28
28
|
min: number;
|
|
@@ -40,11 +40,11 @@ type GameBox = {
|
|
|
40
40
|
min: number;
|
|
41
41
|
max: number;
|
|
42
42
|
};
|
|
43
|
-
};
|
|
44
|
-
snippetLandscape?: Snippet<[SnippetParams]
|
|
45
|
-
snippetPortrait?: Snippet<[SnippetParams]
|
|
46
|
-
snippetRequireFullscreen?: Snippet<[SnippetParams]
|
|
47
|
-
snippetInstallOnHomeScreen?: Snippet<[SnippetParams]
|
|
43
|
+
} | undefined;
|
|
44
|
+
snippetLandscape?: Snippet<[SnippetParams]> | undefined;
|
|
45
|
+
snippetPortrait?: Snippet<[SnippetParams]> | undefined;
|
|
46
|
+
snippetRequireFullscreen?: Snippet<[SnippetParams]> | undefined;
|
|
47
|
+
snippetInstallOnHomeScreen?: Snippet<[SnippetParams]> | undefined;
|
|
48
48
|
}>): void;
|
|
49
49
|
};
|
|
50
50
|
declare const GameBox: import("svelte").Component<{
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
export function getGameWidthOnLandscape({ windowWidth, windowHeight, aspectOnLandscape }: {
|
|
12
12
|
windowWidth: number;
|
|
13
13
|
windowHeight: number;
|
|
14
|
-
aspectOnLandscape?: number;
|
|
14
|
+
aspectOnLandscape?: number | undefined;
|
|
15
15
|
}): number;
|
|
16
16
|
/**
|
|
17
17
|
* Get game width for portrait mode
|
|
@@ -26,7 +26,7 @@ export function getGameWidthOnLandscape({ windowWidth, windowHeight, aspectOnLan
|
|
|
26
26
|
export function getGameWidthOnPortrait({ windowWidth, windowHeight, aspectOnPortrait }: {
|
|
27
27
|
windowWidth: number;
|
|
28
28
|
windowHeight: number;
|
|
29
|
-
aspectOnPortrait?: number;
|
|
29
|
+
aspectOnPortrait?: number | undefined;
|
|
30
30
|
}): number;
|
|
31
31
|
export const ERROR_WINDOW_SIZE_NOT_LANDSCAPE: "Window size is not landsccape";
|
|
32
32
|
export const ERROR_WINDOW_SIZE_NOT_PORTRAIT: "Window size is not portrait";
|
|
@@ -3,13 +3,13 @@ type GridLayers = {
|
|
|
3
3
|
$on?(type: string, callback: (e: any) => void): () => void;
|
|
4
4
|
$set?(props: Partial<{
|
|
5
5
|
[attr: string]: any;
|
|
6
|
-
base?: string;
|
|
7
|
-
bg?: string;
|
|
8
|
-
padding?: string;
|
|
9
|
-
margin?: string;
|
|
10
|
-
classes?: string;
|
|
11
|
-
style?: string;
|
|
12
|
-
overflow?: string;
|
|
6
|
+
base?: string | undefined;
|
|
7
|
+
bg?: string | undefined;
|
|
8
|
+
padding?: string | undefined;
|
|
9
|
+
margin?: string | undefined;
|
|
10
|
+
classes?: string | undefined;
|
|
11
|
+
style?: string | undefined;
|
|
12
|
+
overflow?: string | undefined;
|
|
13
13
|
children: Snippet<[]>;
|
|
14
14
|
}>): void;
|
|
15
15
|
};
|
|
@@ -3,20 +3,20 @@ type ImageBox = {
|
|
|
3
3
|
$on?(type: string, callback: (e: any) => void): () => void;
|
|
4
4
|
$set?(props: Partial<{
|
|
5
5
|
[attr: string]: any;
|
|
6
|
-
base?: string;
|
|
7
|
-
bg?: string;
|
|
8
|
-
classes?: string;
|
|
9
|
-
width?: string;
|
|
10
|
-
height?: string;
|
|
11
|
-
aspect?: string;
|
|
12
|
-
overflow?: string;
|
|
13
|
-
fit?: "fill" | "cover" | "contain";
|
|
14
|
-
position?: string;
|
|
15
|
-
imageSource?: ImageSource;
|
|
16
|
-
imageLoader?: ImageLoader;
|
|
17
|
-
alt?: string;
|
|
18
|
-
id?: string | Symbol;
|
|
19
|
-
onProgress?: (progress: LoadingProgress, id: string | Symbol) => void;
|
|
6
|
+
base?: string | undefined;
|
|
7
|
+
bg?: string | undefined;
|
|
8
|
+
classes?: string | undefined;
|
|
9
|
+
width?: string | undefined;
|
|
10
|
+
height?: string | undefined;
|
|
11
|
+
aspect?: string | undefined;
|
|
12
|
+
overflow?: string | undefined;
|
|
13
|
+
fit?: "fill" | "cover" | "contain" | undefined;
|
|
14
|
+
position?: string | undefined;
|
|
15
|
+
imageSource?: ImageSource | undefined;
|
|
16
|
+
imageLoader?: ImageLoader | undefined;
|
|
17
|
+
alt?: string | undefined;
|
|
18
|
+
id?: string | Symbol | undefined;
|
|
19
|
+
onProgress?: ((progress: LoadingProgress, id: string | Symbol) => void) | undefined;
|
|
20
20
|
}>): void;
|
|
21
21
|
};
|
|
22
22
|
declare const ImageBox: import("svelte").Component<{
|
|
@@ -3,19 +3,19 @@ type ImageSlide = {
|
|
|
3
3
|
$on?(type: string, callback: (e: any) => void): () => void;
|
|
4
4
|
$set?(props: Partial<{
|
|
5
5
|
[attr: string]: any;
|
|
6
|
-
imageMeta?: ImageSource;
|
|
7
|
-
slideDuration?: number;
|
|
8
|
-
nextSlideLabel?: string;
|
|
6
|
+
imageMeta?: ImageSource | undefined;
|
|
7
|
+
slideDuration?: number | undefined;
|
|
8
|
+
nextSlideLabel?: string | undefined;
|
|
9
9
|
presenter?: {
|
|
10
10
|
gotoSlide: (name: string) => void;
|
|
11
11
|
getCurrentSlideName: () => string;
|
|
12
|
-
};
|
|
13
|
-
getLoadingController?: () => {
|
|
12
|
+
} | undefined;
|
|
13
|
+
getLoadingController?: (() => {
|
|
14
14
|
loaded: () => void;
|
|
15
15
|
cancel: () => void;
|
|
16
|
-
};
|
|
17
|
-
fit?: "fill" | "cover" | "contain";
|
|
18
|
-
position?: string;
|
|
16
|
+
}) | undefined;
|
|
17
|
+
fit?: "fill" | "cover" | "contain" | undefined;
|
|
18
|
+
position?: string | undefined;
|
|
19
19
|
}>): void;
|
|
20
20
|
};
|
|
21
21
|
declare const ImageSlide: import("svelte").Component<{
|
|
@@ -42,7 +42,7 @@ export class PresenterState {
|
|
|
42
42
|
* @param {Slide[]} [_.slides] - Array of slides for the presentation
|
|
43
43
|
*/
|
|
44
44
|
configure({ slides }: {
|
|
45
|
-
slides?: Slide[];
|
|
45
|
+
slides?: import("./typedef").Slide[] | undefined;
|
|
46
46
|
}): void;
|
|
47
47
|
/**
|
|
48
48
|
* Configure the presentation slides
|
|
@@ -2,11 +2,11 @@ export default Presenter;
|
|
|
2
2
|
type Presenter = {
|
|
3
3
|
$on?(type: string, callback: (e: any) => void): () => void;
|
|
4
4
|
$set?(props: Partial<{
|
|
5
|
-
classes?: string;
|
|
6
|
-
slides?: Slide[];
|
|
7
|
-
presenterRef?: PresenterRef;
|
|
8
|
-
layoutSnippet: Snippet<[Slide, Layer]>;
|
|
9
|
-
loadingSnippet?: Snippet<[]
|
|
5
|
+
classes?: string | undefined;
|
|
6
|
+
slides?: Slide[] | undefined;
|
|
7
|
+
presenterRef?: PresenterRef | undefined;
|
|
8
|
+
layoutSnippet: Snippet<[Slide | null, Layer]>;
|
|
9
|
+
loadingSnippet?: Snippet<[]> | undefined;
|
|
10
10
|
}>): void;
|
|
11
11
|
};
|
|
12
12
|
declare const Presenter: import("svelte").Component<{
|
|
@@ -72,21 +72,21 @@ export type SlideLayer = {
|
|
|
72
72
|
};
|
|
73
73
|
export type Slide = {
|
|
74
74
|
name: string;
|
|
75
|
-
data?: SlideData;
|
|
76
|
-
layers?: SlideLayer[];
|
|
77
|
-
intro?: Transition[];
|
|
78
|
-
outro?: Transition[];
|
|
79
|
-
duration?: number;
|
|
75
|
+
data?: SlideData | undefined;
|
|
76
|
+
layers?: SlideLayer[] | undefined;
|
|
77
|
+
intro?: Transition[] | undefined;
|
|
78
|
+
outro?: Transition[] | undefined;
|
|
79
|
+
duration?: number | undefined;
|
|
80
80
|
};
|
|
81
81
|
export type Layer = {
|
|
82
82
|
z: number;
|
|
83
83
|
visible: boolean;
|
|
84
|
-
stageIdle?: boolean;
|
|
85
|
-
stageBeforeIn?: boolean;
|
|
86
|
-
stageIn?: boolean;
|
|
87
|
-
stageShow?: boolean;
|
|
88
|
-
stageBeforeOut?: boolean;
|
|
89
|
-
stageOut?: boolean;
|
|
90
|
-
stageAfter?: boolean;
|
|
91
|
-
transitions?: Transition[];
|
|
84
|
+
stageIdle?: boolean | undefined;
|
|
85
|
+
stageBeforeIn?: boolean | undefined;
|
|
86
|
+
stageIn?: boolean | undefined;
|
|
87
|
+
stageShow?: boolean | undefined;
|
|
88
|
+
stageBeforeOut?: boolean | undefined;
|
|
89
|
+
stageOut?: boolean | undefined;
|
|
90
|
+
stageAfter?: boolean | undefined;
|
|
91
|
+
transitions?: Transition[] | undefined;
|
|
92
92
|
};
|
|
@@ -2,13 +2,13 @@ export default PanelGridRow;
|
|
|
2
2
|
type PanelGridRow = {
|
|
3
3
|
$on?(type: string, callback: (e: any) => void): () => void;
|
|
4
4
|
$set?(props: Partial<{
|
|
5
|
-
base?: string;
|
|
6
|
-
bg?: string;
|
|
7
|
-
justify?: "normal" | "center" | "start" | "end" | "between" | "around" | "evenly" | "stretch";
|
|
8
|
-
justifyItems?: "center" | "start" | "end" | "stretch";
|
|
9
|
-
gap?: string;
|
|
10
|
-
classes?: string;
|
|
11
|
-
children?: Snippet<[]
|
|
5
|
+
base?: string | undefined;
|
|
6
|
+
bg?: string | undefined;
|
|
7
|
+
justify?: "normal" | "center" | "start" | "end" | "between" | "around" | "evenly" | "stretch" | undefined;
|
|
8
|
+
justifyItems?: "center" | "start" | "end" | "stretch" | undefined;
|
|
9
|
+
gap?: string | undefined;
|
|
10
|
+
classes?: string | undefined;
|
|
11
|
+
children?: Snippet<[]> | undefined;
|
|
12
12
|
} & {
|
|
13
13
|
[attr: string]: any;
|
|
14
14
|
}>): void;
|
|
@@ -2,13 +2,13 @@ export default PanelRow2;
|
|
|
2
2
|
type PanelRow2 = {
|
|
3
3
|
$on?(type: string, callback: (e: any) => void): () => void;
|
|
4
4
|
$set?(props: Partial<{
|
|
5
|
-
base?: string;
|
|
6
|
-
bg?: string;
|
|
7
|
-
justify?: "normal" | "center" | "start" | "end" | "between" | "around" | "evenly" | "stretch";
|
|
8
|
-
justifyItems?: "center" | "start" | "end" | "stretch";
|
|
9
|
-
gap?: string;
|
|
10
|
-
classes?: string;
|
|
11
|
-
children?: Snippet<[]
|
|
5
|
+
base?: string | undefined;
|
|
6
|
+
bg?: string | undefined;
|
|
7
|
+
justify?: "normal" | "center" | "start" | "end" | "between" | "around" | "evenly" | "stretch" | undefined;
|
|
8
|
+
justifyItems?: "center" | "start" | "end" | "stretch" | undefined;
|
|
9
|
+
gap?: string | undefined;
|
|
10
|
+
classes?: string | undefined;
|
|
11
|
+
children?: Snippet<[]> | undefined;
|
|
12
12
|
} & {
|
|
13
13
|
[attr: string]: any;
|
|
14
14
|
}>): void;
|
|
@@ -2,17 +2,17 @@ export default HkTabBar;
|
|
|
2
2
|
type HkTabBar = {
|
|
3
3
|
$on?(type: string, callback: (e: any) => void): () => void;
|
|
4
4
|
$set?(props: Partial<{
|
|
5
|
-
cols?: number;
|
|
6
|
-
base?: string;
|
|
7
|
-
bg?: string;
|
|
8
|
-
padding?: string;
|
|
9
|
-
margin?: string;
|
|
10
|
-
classes?: string;
|
|
11
|
-
style?: string;
|
|
12
|
-
contextKey?: ContextKey;
|
|
5
|
+
cols?: number | undefined;
|
|
6
|
+
base?: string | undefined;
|
|
7
|
+
bg?: string | undefined;
|
|
8
|
+
padding?: string | undefined;
|
|
9
|
+
margin?: string | undefined;
|
|
10
|
+
classes?: string | undefined;
|
|
11
|
+
style?: string | undefined;
|
|
12
|
+
contextKey?: ContextKey | undefined;
|
|
13
13
|
children: Snippet<[]>;
|
|
14
|
-
onmount?: Function;
|
|
15
|
-
domElem?: HTMLElement;
|
|
14
|
+
onmount?: Function | undefined;
|
|
15
|
+
domElem?: HTMLElement | undefined;
|
|
16
16
|
} & {
|
|
17
17
|
[attr: string]: any;
|
|
18
18
|
}>): void;
|
|
@@ -11,7 +11,7 @@ export class HkTabBarSelectorState {
|
|
|
11
11
|
* @param {import('./HkTabBar.state.svelte.js').HkTabBarState} tabBarState
|
|
12
12
|
*/
|
|
13
13
|
linkToTabBarState(tabBarState: import("./HkTabBar.state.svelte.js").HkTabBarState): void;
|
|
14
|
-
tabBarState: import("./HkTabBar.state.svelte.js").HkTabBarState;
|
|
14
|
+
tabBarState: import("./HkTabBar.state.svelte.js").HkTabBarState | undefined;
|
|
15
15
|
#private;
|
|
16
16
|
}
|
|
17
17
|
export const createOrGetState: (contextKey?: import("../../../state/typedef.js").ContextKey) => HkTabBarSelectorState;
|
|
@@ -2,18 +2,18 @@ export default HkTabBarSelector;
|
|
|
2
2
|
type HkTabBarSelector = {
|
|
3
3
|
$on?(type: string, callback: (e: any) => void): () => void;
|
|
4
4
|
$set?(props: Partial<{
|
|
5
|
-
base?: string;
|
|
6
|
-
bg?: string;
|
|
7
|
-
classes?: string;
|
|
8
|
-
boxBase?: string;
|
|
9
|
-
boxBg?: string;
|
|
10
|
-
boxPadding?: string;
|
|
11
|
-
boxMargin?: string;
|
|
12
|
-
boxClasses?: string;
|
|
5
|
+
base?: string | undefined;
|
|
6
|
+
bg?: string | undefined;
|
|
7
|
+
classes?: string | undefined;
|
|
8
|
+
boxBase?: string | undefined;
|
|
9
|
+
boxBg?: string | undefined;
|
|
10
|
+
boxPadding?: string | undefined;
|
|
11
|
+
boxMargin?: string | undefined;
|
|
12
|
+
boxClasses?: string | undefined;
|
|
13
13
|
boxAttrs?: {
|
|
14
14
|
[attr: string]: any;
|
|
15
|
-
};
|
|
16
|
-
contextKey?: ContextKey;
|
|
15
|
+
} | undefined;
|
|
16
|
+
contextKey?: ContextKey | undefined;
|
|
17
17
|
} & {
|
|
18
18
|
[attr: string]: any;
|
|
19
19
|
}>): void;
|
|
@@ -2,7 +2,7 @@ declare const _default: {};
|
|
|
2
2
|
export default _default;
|
|
3
3
|
export type Tab = {
|
|
4
4
|
icon: import("../../typedef.js").IconSource;
|
|
5
|
-
label?: string;
|
|
6
|
-
route?: string;
|
|
7
|
-
routePrefix?: string;
|
|
5
|
+
label?: string | undefined;
|
|
6
|
+
route?: string | undefined;
|
|
7
|
+
routePrefix?: string | undefined;
|
|
8
8
|
};
|