inspector-ng 0.0.11 → 0.0.13
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/README.md +4 -14
- package/esm2022/lib/checkpoints.mjs +4 -2
- package/esm2022/lib/inspector.component.mjs +137 -92
- package/esm2022/lib/runcat.mjs +7 -0
- package/esm2022/lib/utils.mjs +9 -9
- package/fesm2022/inspector-ng.mjs +153 -100
- package/fesm2022/inspector-ng.mjs.map +1 -1
- package/lib/inspector.component.d.ts +20 -4
- package/lib/runcat.d.ts +6 -0
- package/lib/utils.d.ts +1 -1
- package/package.json +1 -1
|
@@ -2,8 +2,16 @@ import { ElementRef, OnDestroy } from '@angular/core';
|
|
|
2
2
|
import { DistanceOverlay, Guide, GuideOrientation, InspectMeasurement, Rect, TextBlockAnnotation, ToolMode } from './types';
|
|
3
3
|
import { checkpointActivityAt, InspectorCheckpointRecord, InspectorCheckpointService } from './checkpoints';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
+
type InspectorCommandActionId = 'select' | 'type' | 'save' | 'vertical' | 'horizontal' | 'off';
|
|
6
|
+
interface InspectorCommandAction {
|
|
7
|
+
readonly id: InspectorCommandActionId;
|
|
8
|
+
readonly label: string;
|
|
9
|
+
readonly ariaLabel: string;
|
|
10
|
+
readonly keywords: string;
|
|
11
|
+
}
|
|
5
12
|
export declare class inspectorComponent implements OnDestroy {
|
|
6
13
|
readonly Math: Math;
|
|
14
|
+
readonly runcatSpriteSrc = "data:image/webp;base64,UklGRhoEAABXRUJQVlA4TA4EAAAvn8AHEAUcSZLDNvP/T3cA4ADJduQkggKy/YvjiK9uK/WGMPWQyvld3Xvu7rrGEdaou67W3d1dV4cQQl1Xpu6pexvCSlgZ3glI//ZNYyW7wPl3yfF98symzxgCPrOcU2DQnyUNxsnyyLLPuCjBBrA88OlHtFYhJjli1sYyFQCvv79MS70+YpCLvlcGRfwfMUjAGqgCeBmLXtLkuOqibRI0v+B0W4kxFgjZtr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04tQzvTTDOp2SI+B/k/wOaJ1+dQ6D0plDCHLSe70Axpsk0VU9f7e5XoJeaPou+dUiLR/9ywY=";
|
|
7
15
|
readonly checkpointActivityAt: typeof checkpointActivityAt;
|
|
8
16
|
readonly formatValue: (value: number) => number;
|
|
9
17
|
readonly formatRelativeTime: (iso: string, now?: number) => string;
|
|
@@ -18,13 +26,16 @@ export declare class inspectorComponent implements OnDestroy {
|
|
|
18
26
|
readonly checkpointService: InspectorCheckpointService | null;
|
|
19
27
|
readonly commandBarOpen: import("@angular/core").WritableSignal<boolean>;
|
|
20
28
|
readonly checkpointQuery: import("@angular/core").WritableSignal<string>;
|
|
21
|
-
readonly
|
|
29
|
+
readonly activeCommandIndex: import("@angular/core").WritableSignal<number>;
|
|
22
30
|
readonly editingCheckpointId: import("@angular/core").WritableSignal<string | null>;
|
|
23
31
|
readonly deletingCheckpointId: import("@angular/core").WritableSignal<string | null>;
|
|
24
32
|
readonly renameDraft: import("@angular/core").WritableSignal<string>;
|
|
25
33
|
readonly checkpointToast: import("@angular/core").WritableSignal<string | null>;
|
|
26
34
|
readonly checkpointToastIsError: import("@angular/core").WritableSignal<boolean>;
|
|
27
35
|
readonly filteredCheckpoints: import("@angular/core").Signal<InspectorCheckpointRecord[]>;
|
|
36
|
+
readonly filteredInspectorActions: import("@angular/core").Signal<readonly InspectorCommandAction[]>;
|
|
37
|
+
readonly commandResultCount: import("@angular/core").Signal<number>;
|
|
38
|
+
readonly activeCommandResultId: import("@angular/core").Signal<string | null>;
|
|
28
39
|
readonly enabled: import("@angular/core").WritableSignal<boolean>;
|
|
29
40
|
readonly toolMode: import("@angular/core").WritableSignal<ToolMode>;
|
|
30
41
|
readonly guideOrientation: import("@angular/core").WritableSignal<GuideOrientation>;
|
|
@@ -62,6 +73,9 @@ export declare class inspectorComponent implements OnDestroy {
|
|
|
62
73
|
closeCheckpointCommandBar(): void;
|
|
63
74
|
updateCheckpointQuery(event: Event): void;
|
|
64
75
|
setActiveCheckpoint(index: number): void;
|
|
76
|
+
shouldShowCheckpointRoute(checkpoint: InspectorCheckpointRecord): boolean;
|
|
77
|
+
setActiveInspectorAction(index: number): void;
|
|
78
|
+
executeInspectorAction(action: InspectorCommandAction): Promise<void>;
|
|
65
79
|
restoreCheckpoint(checkpoint: InspectorCheckpointRecord): Promise<void>;
|
|
66
80
|
beginRename(checkpoint: InspectorCheckpointRecord, event?: Event): void;
|
|
67
81
|
updateRenameDraft(event: Event): void;
|
|
@@ -79,7 +93,8 @@ export declare class inspectorComponent implements OnDestroy {
|
|
|
79
93
|
formatEdges(edges: InspectMeasurement['padding']): string;
|
|
80
94
|
formatGap(selected: InspectMeasurement): string;
|
|
81
95
|
handleKeydown(event: KeyboardEvent): void;
|
|
82
|
-
|
|
96
|
+
private clearInspectorCanvas;
|
|
97
|
+
private normalizeCheckpointLabel;
|
|
83
98
|
handlePointerMove(event: PointerEvent): void;
|
|
84
99
|
handlePointerUp(): void;
|
|
85
100
|
handleClick(event: MouseEvent): void;
|
|
@@ -87,8 +102,8 @@ export declare class inspectorComponent implements OnDestroy {
|
|
|
87
102
|
private canInspectClick;
|
|
88
103
|
private setInspectorEnabled;
|
|
89
104
|
private handleCommandBarKeydown;
|
|
90
|
-
private
|
|
91
|
-
private
|
|
105
|
+
private clampActiveCommand;
|
|
106
|
+
private scrollActiveCommandIntoView;
|
|
92
107
|
private showCheckpointToast;
|
|
93
108
|
private selectElementAtPoint;
|
|
94
109
|
private updateDistanceOverlay;
|
|
@@ -105,3 +120,4 @@ export declare class inspectorComponent implements OnDestroy {
|
|
|
105
120
|
static ɵfac: i0.ɵɵFactoryDeclaration<inspectorComponent, never>;
|
|
106
121
|
static ɵcmp: i0.ɵɵComponentDeclaration<inspectorComponent, "inspector-overlay", never, { "highlightColor": { "alias": "highlightColor"; "required": false; }; "guideColor": { "alias": "guideColor"; "required": false; }; "hoverHighlightEnabled": { "alias": "hoverHighlightEnabled"; "required": false; }; "persistOnReload": { "alias": "persistOnReload"; "required": false; }; }, {}, never, never, true, never>;
|
|
107
122
|
}
|
|
123
|
+
export {};
|
package/lib/runcat.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* RunCat frames from Jas0nG/RunCat_for_Linux, licensed under Apache-2.0.
|
|
3
|
+
* The original ICO frames were converted into a WebP sprite sheet.
|
|
4
|
+
* See the packaged THIRD_PARTY_NOTICES.md for attribution.
|
|
5
|
+
*/
|
|
6
|
+
export declare const RUNCAT_SPRITE_SRC = "data:image/webp;base64,UklGRhoEAABXRUJQVlA4TA4EAAAvn8AHEAUcSZLDNvP/T3cA4ADJduQkggKy/YvjiK9uK/WGMPWQyvld3Xvu7rrGEdaou67W3d1dV4cQQl1Xpu6pexvCSlgZ3glI//ZNYyW7wPl3yfF98symzxgCPrOcU2DQnyUNxsnyyLLPuCjBBrA88OlHtFYhJjli1sYyFQCvv79MS70+YpCLvlcGRfwfMUjAGqgCeBmLXtLkuOqibRI0v+B0W4kxFgjZtrHJK/cEAWVivokbViQ5tr2zj88GAJD4CX5AQfLMIhF2pZSkYc+WpvmI3zIJEHbEiM3KJVEQZl0wTFD/nZ4CDphlkaAjzzRXBhjhY3Dx8DzTQRYAJodHjolBSsnn0nzNLYJhiHmAVwYkUb4X4+3Fl3AMwoASdU8pJVtg3IgHHiRT5OhwwfCjRB8urltmFMBv3DN7AOiXYJgVrAdc0phKnGCxcfYsTXXiA+R5AcBFHh18C0BR4mWJ8/8o8cMIWfZI1Hgj1XXJNtgm4JV+E83FMNkAFPEYZAsE4BEbLj/wrwMuOmaVUwAg6AkAc3Ya+tgUW+xRwLRHlm9Nwy3b+6OULMBcCcNVG5ITMx9idc+AlJIfYYMcgGmG+idvWiaEsV1JkeuWiBkxfG+EZGdwydIwpaSTGDl4zrKIO13adrF1ZMa3AXjU9yUANpMNm5KfXTWHI2lskC24dcqHQjIS78CHfLhXYZG6KaUkFWBZIdXP+umnF7fLV7akuQ7GsfBQgHPka5w9AgB/JmETjPC9fwF4IAyA1yz2CIBHgg4s6id1DWMCTKkyLtzkTFt1ddEy7XX36AqKvDnxszAeCng7jbV1e7DlMwe6iLEteVMeAJYR3k5J+AbgSikJCAsAsM+7KXFemJJuOWRg7BnfAvj6JBVPVfGJG0nAUx+mlLTl4kirDTO2mzZxp5SSI4CAWbqnlBKnqpnkG32UYajGKVM0Tz5nLqYdjMDZK0VesVWxhTYAZEx0f2JMGmvp8sQsRjqK0jgdmTs5pvED0OtCT2HsLZMo2YecaWsAyyNd0tEquGiGRGFAjWQRSQSDg6G57nYslojRZyJiccQuVQPL/KxLuuQeCKSn9mxMSUkUG46kObcawCovAFX+TnNN01mUASkZATjBlYZ+dw+wL81tAkxLicOPZinwaCMrXXtzIO8NCx4oA3ybkgTAoAsJUMDNLQzXdUofBRxIc41lKYNRM20B76etpkILBM240ZpX6GDNG5PAEuEMPFM3SXXd3+lSfY6UHIInotJPdxk8u2QSoMo9wJmblDQXA3giRhkseqMhYECywzn102OXoXv68fZAn0NyGap04tQzvTTDOp2SI+B/k/wOaJ1+dQ6D0plDCHLSe70Axpsk0VU9f7e5XoJeaPou+dUiLR/9ywY=";
|
package/lib/utils.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export declare const createId: () => string;
|
|
2
2
|
export declare const formatValue: (value: number) => number;
|
|
3
|
-
/**
|
|
3
|
+
/** Ultra-compact relative time for dense command-palette metadata. */
|
|
4
4
|
export declare const formatRelativeTime: (iso: string, now?: number) => string;
|