sldeditor 0.29.0 → 0.31.0
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/OneLineEditor.d.ts +4 -1
- package/dist/OneLineEditor.d.ts.map +1 -1
- package/dist/OneLineViewer.d.ts.map +1 -1
- package/dist/canvas/AnnotationLayer.d.ts +4 -0
- package/dist/canvas/AnnotationLayer.d.ts.map +1 -1
- package/dist/canvas/CanvasSvg.d.ts +3 -2
- package/dist/canvas/CanvasSvg.d.ts.map +1 -1
- package/dist/canvas/ElementHoverLabel.d.ts.map +1 -1
- package/dist/canvas/HealthLayer.d.ts +4 -2
- package/dist/canvas/HealthLayer.d.ts.map +1 -1
- package/dist/canvas/SheetLayer.d.ts +17 -0
- package/dist/canvas/SheetLayer.d.ts.map +1 -0
- package/dist/canvas/fit-to-content.d.ts +17 -0
- package/dist/canvas/fit-to-content.d.ts.map +1 -1
- package/dist/canvas/sheet-hit.d.ts +20 -0
- package/dist/canvas/sheet-hit.d.ts.map +1 -0
- package/dist/canvas/tools/SelectTool.d.ts.map +1 -1
- package/dist/canvas/useKeyboardShortcuts.d.ts.map +1 -1
- package/dist/canvas/wire-drag.d.ts +9 -0
- package/dist/canvas/wire-drag.d.ts.map +1 -1
- package/dist/components/HealthPanel.d.ts +3 -1
- package/dist/components/HealthPanel.d.ts.map +1 -1
- package/dist/components/PropertyPanel.d.ts +27 -0
- package/dist/components/PropertyPanel.d.ts.map +1 -1
- package/dist/components/RightPanel.d.ts.map +1 -1
- package/dist/components/SheetInspector.d.ts +16 -0
- package/dist/components/SheetInspector.d.ts.map +1 -0
- package/dist/components/ui/tooltip.d.ts.map +1 -1
- package/dist/components/ui/upward-popover.d.ts +5 -2
- package/dist/components/ui/upward-popover.d.ts.map +1 -1
- package/dist/health/check.d.ts +6 -0
- package/dist/health/check.d.ts.map +1 -1
- package/dist/health/present.d.ts +8 -2
- package/dist/health/present.d.ts.map +1 -1
- package/dist/hooks/use-host-actions.d.ts +12 -4
- package/dist/hooks/use-host-actions.d.ts.map +1 -1
- package/dist/hooks/use-onboarding.d.ts +7 -0
- package/dist/hooks/use-onboarding.d.ts.map +1 -1
- package/dist/i18n/library.d.ts +3 -0
- package/dist/i18n/library.d.ts.map +1 -1
- package/dist/i18n/locales/ar.d.ts +1 -1
- package/dist/i18n/locales/ar.d.ts.map +1 -1
- package/dist/i18n/locales/de.d.ts +1 -1
- package/dist/i18n/locales/de.d.ts.map +1 -1
- package/dist/i18n/locales/es.d.ts +1 -1
- package/dist/i18n/locales/es.d.ts.map +1 -1
- package/dist/i18n/locales/fa.d.ts +1 -1
- package/dist/i18n/locales/fa.d.ts.map +1 -1
- package/dist/i18n/locales/fr.d.ts +1 -1
- package/dist/i18n/locales/fr.d.ts.map +1 -1
- package/dist/i18n/locales/he.d.ts +1 -1
- package/dist/i18n/locales/he.d.ts.map +1 -1
- package/dist/i18n/locales/index.d.ts +9 -9
- package/dist/i18n/locales/ja.d.ts +1 -1
- package/dist/i18n/locales/ja.d.ts.map +1 -1
- package/dist/i18n/locales/pt.d.ts +1 -1
- package/dist/i18n/locales/pt.d.ts.map +1 -1
- package/dist/i18n/locales/ru.d.ts +1 -1
- package/dist/i18n/locales/ru.d.ts.map +1 -1
- package/dist/i18n/messages.d.ts +197 -45
- package/dist/i18n/messages.d.ts.map +1 -1
- package/dist/i18n/sheet-labels.d.ts +5 -0
- package/dist/i18n/sheet-labels.d.ts.map +1 -0
- package/dist/index.d.ts +6 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/lib/element-labels.d.ts +28 -2
- package/dist/lib/element-labels.d.ts.map +1 -1
- package/dist/lib/export-dxf.d.ts +9 -0
- package/dist/lib/export-dxf.d.ts.map +1 -1
- package/dist/lib/export-image.d.ts +29 -0
- package/dist/lib/export-image.d.ts.map +1 -1
- package/dist/lib/export-sheets.d.ts +39 -0
- package/dist/lib/export-sheets.d.ts.map +1 -0
- package/dist/model/index.d.ts +4 -0
- package/dist/model/index.d.ts.map +1 -1
- package/dist/model/sheet-render.d.ts +47 -0
- package/dist/model/sheet-render.d.ts.map +1 -0
- package/dist/model/sheet.d.ts +136 -0
- package/dist/model/sheet.d.ts.map +1 -0
- package/dist/model/types.d.ts +13 -0
- package/dist/model/types.d.ts.map +1 -1
- package/dist/sldeditor.cjs +59 -59
- package/dist/sldeditor.cjs.map +1 -1
- package/dist/sldeditor.js +13330 -11914
- package/dist/sldeditor.js.map +1 -1
- package/dist/store/store.d.ts +34 -0
- package/dist/store/store.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/OneLineEditor.d.ts
CHANGED
|
@@ -37,6 +37,9 @@ export interface OneLineEditorProps {
|
|
|
37
37
|
/** Health-check interactions (opened an issue, marked one intentional,
|
|
38
38
|
* restored one), for host analytics. */
|
|
39
39
|
onHealthEvent?: (e: HealthEvent) => void;
|
|
40
|
+
/** Export one drawing sheet, offered as "Export this sheet" in the sheet
|
|
41
|
+
* inspector. Omit it and the button is not offered. */
|
|
42
|
+
onExportSheet?: (sheetId: string) => void;
|
|
40
43
|
}
|
|
41
|
-
export declare function OneLineEditor({ className, diagram, readOnly, locale, theme, onCreateComponent, onHealthEvent, }: OneLineEditorProps): import("react/jsx-runtime").JSX.Element;
|
|
44
|
+
export declare function OneLineEditor({ className, diagram, readOnly, locale, theme, onCreateComponent, onHealthEvent, onExportSheet, }: OneLineEditorProps): import("react/jsx-runtime").JSX.Element;
|
|
42
45
|
//# sourceMappingURL=OneLineEditor.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OneLineEditor.d.ts","sourceRoot":"","sources":["../src/OneLineEditor.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE3C,OAAO,EAAa,KAAK,MAAM,EAAE,MAAM,QAAQ,CAAC;AAChD,OAAO,EAAc,KAAK,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC3D,OAAO,EA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AAE,MAAM,KAAK,IAAI,CAAC;CAC3C;AAED,wBAAgB,aAAa,CAAC,EAC5B,SAAS,EACT,OAAO,EACP,QAAQ,EACR,MAAM,EACN,KAAK,EACL,iBAAiB,EACjB,aAAa,EACb,aAAa,GACd,EAAE,kBAAkB,2CA0DpB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OneLineViewer.d.ts","sourceRoot":"","sources":["../src/OneLineViewer.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAOL,KAAK,aAAa,EAClB,KAAK,UAAU,IAAI,eAAe,EAEnC,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"OneLineViewer.d.ts","sourceRoot":"","sources":["../src/OneLineViewer.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAOL,KAAK,aAAa,EAClB,KAAK,UAAU,IAAI,eAAe,EAEnC,MAAM,OAAO,CAAC;AAaf,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAO3C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAItD,MAAM,WAAW,gBAAgB;IAC/B,yEAAyE;IACzE,GAAG,IAAI,IAAI,CAAC;IACZ,4EAA4E;IAC5E,KAAK,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,wEAAwE;IACxE,MAAM,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;CAC7B;AAED,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,WAAW,CAAC;IACrB,iFAAiF;IACjF,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,wEAAwE;IACxE,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,cAAc,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,eAAe,KAAK,IAAI,CAAC;IAC3D,cAAc,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IAC7C,iBAAiB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC/B;;;;OAIG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,+EAA+E;IAC/E,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,OAAO,CAAC,EAAE,CAAC,GAAG,EAAE,gBAAgB,KAAK,IAAI,CAAC;CAC3C;AA6DD,wBAAgB,aAAa,CAAC,EAC5B,OAAO,EACP,IAAI,EACJ,WAAW,EACX,SAAS,EACT,cAAc,EACd,cAAc,EACd,iBAAiB,EACjB,KAAK,EACL,SAAS,EACT,KAAK,EACL,GAAU,EACV,OAAO,GACR,EAAE,kBAAkB,2CAqDpB"}
|
|
@@ -24,6 +24,10 @@
|
|
|
24
24
|
*
|
|
25
25
|
* Wire labels (`Wire.label`, e.g. phase designations L1/L2/L3/N/PE) render
|
|
26
26
|
* here too — anchored mid-wire via `placeWireLabel`, hidden at 'off'.
|
|
27
|
+
*
|
|
28
|
+
* Off-page connectors on a multi-sheet drawing get one derived line, "→ n/N"
|
|
29
|
+
* (the partner's page), when the user typed no target — see
|
|
30
|
+
* `continuationSheetRefs`.
|
|
27
31
|
*/
|
|
28
32
|
export declare function AnnotationLayer(): import("react/jsx-runtime").JSX.Element;
|
|
29
33
|
//# sourceMappingURL=AnnotationLayer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AnnotationLayer.d.ts","sourceRoot":"","sources":["../../src/canvas/AnnotationLayer.tsx"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"AnnotationLayer.d.ts","sourceRoot":"","sources":["../../src/canvas/AnnotationLayer.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AAmBH,wBAAgB,eAAe,4CAyI9B"}
|
|
@@ -4,8 +4,9 @@
|
|
|
4
4
|
* selection, terminals, previews) are children of the viewport so they
|
|
5
5
|
* pan/zoom together.
|
|
6
6
|
*
|
|
7
|
-
* Z-order (back to front): grid →
|
|
8
|
-
* → wire preview → place ghost.
|
|
7
|
+
* Z-order (back to front): grid → drawing sheets → buses → wires →
|
|
8
|
+
* elements → selection → terminals → wire preview → place ghost. Sheets are
|
|
9
|
+
* the bottom-most drawn layer: a frame sits under the drawing, never over it.
|
|
9
10
|
*/
|
|
10
11
|
export declare function CanvasSvg(): import("react/jsx-runtime").JSX.Element;
|
|
11
12
|
//# sourceMappingURL=CanvasSvg.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CanvasSvg.d.ts","sourceRoot":"","sources":["../../src/canvas/CanvasSvg.tsx"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"CanvasSvg.d.ts","sourceRoot":"","sources":["../../src/canvas/CanvasSvg.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAiEH,wBAAgB,SAAS,4CA2TxB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ElementHoverLabel.d.ts","sourceRoot":"","sources":["../../src/canvas/ElementHoverLabel.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAyBH,wBAAgB,iBAAiB,
|
|
1
|
+
{"version":3,"file":"ElementHoverLabel.d.ts","sourceRoot":"","sources":["../../src/canvas/ElementHoverLabel.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAyBH,wBAAgB,iBAAiB,uCAuGhC"}
|
|
@@ -2,8 +2,10 @@
|
|
|
2
2
|
* Health-check markers and load figures on the canvas.
|
|
3
3
|
*
|
|
4
4
|
* A small dot at the top-right of every device, bus or junction a warning is
|
|
5
|
-
* about (red for an error, amber for a warning)
|
|
6
|
-
* the
|
|
5
|
+
* about (red for an error, amber for a warning). Notes get a quiet hollow dot
|
|
6
|
+
* only while the checks panel is open, so the drawing is not peppered with
|
|
7
|
+
* dots for things that are probably fine; the issue picked in the panel gets
|
|
8
|
+
* a ring.
|
|
7
9
|
* Transformers, UPSs and buses with load behind them get a short figure
|
|
8
10
|
* ("320 kW · 64%"). Canvas only: none of this reaches an export.
|
|
9
11
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HealthLayer.d.ts","sourceRoot":"","sources":["../../src/canvas/HealthLayer.tsx"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"HealthLayer.d.ts","sourceRoot":"","sources":["../../src/canvas/HealthLayer.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAmBH,wBAAgB,WAAW,mDAwG1B"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Drawing sheets (图纸页) on the canvas: outer border, inner border, title
|
|
3
|
+
* block and its text, for every sheet in `diagram.sheets`. The bottom-most
|
|
4
|
+
* drawn layer — a frame sits under the drawing, never over it.
|
|
5
|
+
*
|
|
6
|
+
* Geometry comes from `sheetPrimitives` and nothing else, the same function
|
|
7
|
+
* every exporter renders from, so the frame on screen and the page on paper
|
|
8
|
+
* cannot disagree. This layer only decides colour and pointer behaviour.
|
|
9
|
+
*
|
|
10
|
+
* Pointer behaviour (see `sheet-hit.ts` for why): the paper is click-through;
|
|
11
|
+
* only the two border lines (a fat transparent stroke, fixed in SCREEN px so
|
|
12
|
+
* it stays grabbable at any zoom) and the title block take the pointer, and
|
|
13
|
+
* only under the select tool — any other tool, and the read-only viewer
|
|
14
|
+
* (pan only), clicks straight through to the canvas.
|
|
15
|
+
*/
|
|
16
|
+
export declare function SheetLayer(): import("react/jsx-runtime").JSX.Element | null;
|
|
17
|
+
//# sourceMappingURL=SheetLayer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SheetLayer.d.ts","sourceRoot":"","sources":["../../src/canvas/SheetLayer.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAUH,wBAAgB,UAAU,mDAkGzB"}
|
|
@@ -11,6 +11,12 @@ import { ViewportApi } from './useViewport';
|
|
|
11
11
|
* counted labels and annotations (`computeContentBbox` in export-image.ts).
|
|
12
12
|
* A layer that adds a new kind of drawn object must tag it with one of these
|
|
13
13
|
* attributes (or extend this list) for Fit view to see it.
|
|
14
|
+
*
|
|
15
|
+
* Drawing sheets count too: a fit that crops the frame shows a page with its
|
|
16
|
+
* title block cut off. Their `[data-sheet-id]` group holds the paper-sized
|
|
17
|
+
* border plus hit shapes of the same geometry (the border grab band is a
|
|
18
|
+
* few screen px of stroke at most, even in a browser whose client rects
|
|
19
|
+
* count strokes), so it measures the paper, not a padded hit box.
|
|
14
20
|
*/
|
|
15
21
|
export declare const FIT_CONTENT_SELECTOR: string;
|
|
16
22
|
export interface ScreenBounds {
|
|
@@ -49,4 +55,15 @@ export declare function centerOnWorld(world: readonly [number, number]): boolean
|
|
|
49
55
|
* just been swapped and the new DOM nodes aren't yet attached.
|
|
50
56
|
*/
|
|
51
57
|
export declare function fitToContentSoon(): void;
|
|
58
|
+
/**
|
|
59
|
+
* Fit a world rectangle (e.g. one drawing sheet) into the visible part of the
|
|
60
|
+
* canvas with padding, leaving room for docked panels like `fitToContent`.
|
|
61
|
+
* Returns false when the viewport isn't mounted.
|
|
62
|
+
*/
|
|
63
|
+
export declare function fitToWorldRect(rect: {
|
|
64
|
+
x: number;
|
|
65
|
+
y: number;
|
|
66
|
+
w: number;
|
|
67
|
+
h: number;
|
|
68
|
+
}): boolean;
|
|
52
69
|
//# sourceMappingURL=fit-to-content.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fit-to-content.d.ts","sourceRoot":"","sources":["../../src/canvas/fit-to-content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@
|
|
|
1
|
+
import { InternalModel } from '../compiler';
|
|
2
|
+
import { AnnotationId, DiagramFile, ElementId } from '../model';
|
|
3
|
+
import { Sheet } from '../model/sheet';
|
|
4
|
+
/** The sheet whose border / title-block hit area is under the pointer. */
|
|
5
|
+
export declare function hitSheet(target: EventTarget | null): string | null;
|
|
6
|
+
/**
|
|
7
|
+
* Ids a sheet drag carries: devices, buses and junctions whose box centre
|
|
8
|
+
* lies inside the sheet's border, and annotations whose anchor does.
|
|
9
|
+
*
|
|
10
|
+
* This MUST match the store's `sheetContents` (store.ts), which decides what
|
|
11
|
+
* `moveSheet` actually moves — the drag only previews it. SelectTool also
|
|
12
|
+
* re-syncs every previewed element from the post-commit layout, so a drift
|
|
13
|
+
* between the two would show as a preview that snaps back on release rather
|
|
14
|
+
* than as a device left stranded at a stale DOM transform.
|
|
15
|
+
*/
|
|
16
|
+
export declare function sheetContentIds(d: DiagramFile, internal: InternalModel, sheet: Sheet): {
|
|
17
|
+
elements: ElementId[];
|
|
18
|
+
annotations: AnnotationId[];
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=sheet-hit.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sheet-hit.d.ts","sourceRoot":"","sources":["../../src/canvas/sheet-hit.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAEjD,OAAO,KAAK,EAAE,YAAY,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AACrE,OAAO,EAAa,KAAK,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAEvD,0EAA0E;AAC1E,wBAAgB,QAAQ,CAAC,MAAM,EAAE,WAAW,GAAG,IAAI,GAAG,MAAM,GAAG,IAAI,CAQlE;AAED;;;;;;;;;GASG;AACH,wBAAgB,eAAe,CAC7B,CAAC,EAAE,WAAW,EACd,QAAQ,EAAE,aAAa,EACvB,KAAK,EAAE,KAAK,GACX;IAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;IAAC,WAAW,EAAE,YAAY,EAAE,CAAA;CAAE,CAexD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SelectTool.d.ts","sourceRoot":"","sources":["../../../src/canvas/tools/SelectTool.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"SelectTool.d.ts","sourceRoot":"","sources":["../../../src/canvas/tools/SelectTool.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAsCH,OAAO,KAAK,EAAE,IAAI,EAAe,MAAM,SAAS,CAAC;AAkFjD,eAAO,MAAM,UAAU,EAAE,IAqqBxB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useKeyboardShortcuts.d.ts","sourceRoot":"","sources":["../../src/canvas/useKeyboardShortcuts.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAgBH;;;;;GAKG;AACH,wBAAgB,gBAAgB,IAAI,IAAI,
|
|
1
|
+
{"version":3,"file":"useKeyboardShortcuts.d.ts","sourceRoot":"","sources":["../../src/canvas/useKeyboardShortcuts.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAgBH;;;;;GAKG;AACH,wBAAgB,gBAAgB,IAAI,IAAI,CA2CvC;AAGD,wBAAgB,oBAAoB,IAAI,IAAI,CAmJ3C"}
|
|
@@ -25,4 +25,13 @@ export declare function worldTolAt(ctx: {
|
|
|
25
25
|
export declare function toWireTarget(t: DragTarget): WireTarget;
|
|
26
26
|
/** Same landing → the gesture is a no-op and should cancel. */
|
|
27
27
|
export declare function sameLanding(a: DragTarget, b: DragTarget): boolean;
|
|
28
|
+
/**
|
|
29
|
+
* The connection point a dragged junction was dropped on, by geometry (the
|
|
30
|
+
* junction itself is under the cursor, so a DOM hit would only find it): the
|
|
31
|
+
* nearest device pin within `worldTol`, else another junction, else a bus
|
|
32
|
+
* whose axis passes within `worldTol`. Points already on the junction's own
|
|
33
|
+
* node are skipped — dropping a wire's end back onto the pin it comes from
|
|
34
|
+
* is a move, not a join. Null when nothing is close enough.
|
|
35
|
+
*/
|
|
36
|
+
export declare function junctionLanding(jid: string, at: [number, number], worldTol: number): WireEnd | null;
|
|
28
37
|
//# sourceMappingURL=wire-drag.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wire-drag.d.ts","sourceRoot":"","sources":["../../src/canvas/wire-drag.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAGH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAC5C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAGxC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAIpD;iFACiF;AACjF,eAAO,MAAM,cAAc,KAAK,CAAC;AAEjC,iFAAiF;AACjF,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,WAAW,CAAC;IAClB,KAAK,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACxB,GAAG,EAAE,OAAO,GAAG,IAAI,CAAC;IACpB,KAAK,EAAE,OAAO,CAAC;IACf,MAAM,EAAE,OAAO,CAAC;CACjB;AAwBD,wBAAgB,YAAY,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,GAAG,IAAI,CAI7E;AAuBD;+EAC+E;AAC/E,wBAAgB,iBAAiB,CAC/B,KAAK,EAAE,OAAO,GAAG,IAAI,EACrB,MAAM,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,EACxB,QAAQ,EAAE,MAAM,GACf,UAAU,CA0BZ;AAED,8EAA8E;AAC9E,wBAAgB,UAAU,CACxB,GAAG,EAAE;IAAE,QAAQ,EAAE;QAAE,WAAW,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC,MAAM,EAAE,MAAM,CAAC,CA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MAAM,EAAE,MAAM,CAAC,CAAA;KAAE,CAAA;CAAE,EAC9E,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,MAAM,GACd,MAAM,CAIR;AAED,wBAAgB,YAAY,CAAC,CAAC,EAAE,UAAU,GAAG,UAAU,CAOtD;AAED,+DAA+D;AAC/D,wBAAgB,WAAW,CAAC,CAAC,EAAE,UAAU,EAAE,CAAC,EAAE,UAAU,GAAG,OAAO,CAIjE;AAED;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAC7B,GAAG,EAAE,MAAM,EACX,EAAE,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,EACpB,QAAQ,EAAE,MAAM,GACf,OAAO,GAAG,IAAI,CA2BhB"}
|
|
@@ -4,5 +4,7 @@
|
|
|
4
4
|
* open problems) or by clicking a marker on the canvas.
|
|
5
5
|
*/
|
|
6
6
|
export declare function HealthMenuBtn(): import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export declare function HealthControls(
|
|
7
|
+
export declare function HealthControls({ onClose }?: {
|
|
8
|
+
onClose?: () => void;
|
|
9
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
8
10
|
//# sourceMappingURL=HealthPanel.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HealthPanel.d.ts","sourceRoot":"","sources":["../../src/components/HealthPanel.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;
|
|
1
|
+
{"version":3,"file":"HealthPanel.d.ts","sourceRoot":"","sources":["../../src/components/HealthPanel.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AA0CH,wBAAgB,aAAa,4CA2E5B;AA+FD,wBAAgB,cAAc,CAAC,EAAE,OAAO,EAAE,GAAE;IAAE,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;CAAO,2CAyNxE"}
|
|
@@ -5,4 +5,31 @@
|
|
|
5
5
|
* lives in the panel header.
|
|
6
6
|
*/
|
|
7
7
|
export declare function PropertyPanel(): import("react/jsx-runtime").JSX.Element | null;
|
|
8
|
+
export declare function SegRow<T extends string>({ label, value, options, onChange, }: {
|
|
9
|
+
label: string;
|
|
10
|
+
value: T;
|
|
11
|
+
options: {
|
|
12
|
+
value: T;
|
|
13
|
+
label: string;
|
|
14
|
+
glyph?: React.ReactNode;
|
|
15
|
+
}[];
|
|
16
|
+
onChange: (v: T) => void;
|
|
17
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export declare function Field({ label, children, }: {
|
|
19
|
+
label: string;
|
|
20
|
+
children: React.ReactNode;
|
|
21
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
export declare function TextRow({ label, value, placeholder, unit, multiline, onCommit, }: {
|
|
23
|
+
label: string;
|
|
24
|
+
value: string;
|
|
25
|
+
placeholder?: string;
|
|
26
|
+
unit?: string;
|
|
27
|
+
/**
|
|
28
|
+
* Enter inserts a line break instead of committing, and the box grows with
|
|
29
|
+
* the content. Escape (revert) and blur (commit) are unchanged, and
|
|
30
|
+
* ⌘/Ctrl+Enter commits for anyone who reaches for a keyboard "done".
|
|
31
|
+
*/
|
|
32
|
+
multiline?: boolean;
|
|
33
|
+
onCommit: (v: string) => void;
|
|
34
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
8
35
|
//# sourceMappingURL=PropertyPanel.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PropertyPanel.d.ts","sourceRoot":"","sources":["../../src/components/PropertyPanel.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AAwCH,wBAAgB,aAAa,mDA+G5B"}
|
|
1
|
+
{"version":3,"file":"PropertyPanel.d.ts","sourceRoot":"","sources":["../../src/components/PropertyPanel.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AAwCH,wBAAgB,aAAa,mDA+G5B;AAyeD,wBAAgB,MAAM,CAAC,CAAC,SAAS,MAAM,EAAE,EACvC,KAAK,EACL,KAAK,EACL,OAAO,EACP,QAAQ,GACT,EAAE;IACD,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,CAAC,CAAC;IACT,OAAO,EAAE;QAAE,KAAK,EAAE,CAAC,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;KAAE,EAAE,CAAC;IAChE,QAAQ,EAAE,CAAC,CAAC,EAAE,CAAC,KAAK,IAAI,CAAC;CAC1B,2CA0BA;AAwdD,wBAAgB,KAAK,CAAC,EACpB,KAAK,EACL,QAAQ,GACT,EAAE;IACD,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,2CAUA;AAKD,wBAAgB,OAAO,CAAC,EACtB,KAAK,EACL,KAAK,EACL,WAAW,EACX,IAAI,EACJ,SAAS,EACT,QAAQ,GACT,EAAE;IACD,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;CAC/B,2CAgEA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RightPanel.d.ts","sourceRoot":"","sources":["../../src/components/RightPanel.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RightPanel.d.ts","sourceRoot":"","sources":["../../src/components/RightPanel.tsx"],"names":[],"mappings":"AAUA,wBAAgB,UAAU,mDAsGzB"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { InternalModel } from '../compiler/internal-model';
|
|
2
|
+
import { DiagramFile, Sheet } from '../model';
|
|
3
|
+
/**
|
|
4
|
+
* Ids of the devices, buses, junctions and annotations that touch this sheet
|
|
5
|
+
* but are not wholly inside its content area (inside the inner border, above
|
|
6
|
+
* the title-block band) — what would print cut off or under the title block.
|
|
7
|
+
*
|
|
8
|
+
* "Touch" = the box overlaps the sheet's outer border, the same test
|
|
9
|
+
* `fitSheet` uses to decide what to fit, so pressing it clears this list.
|
|
10
|
+
* Things entirely outside the sheet belong to another sheet, or to none.
|
|
11
|
+
*/
|
|
12
|
+
export declare function sheetOverflowIds(d: DiagramFile, internal: InternalModel, sheet: Sheet): string[];
|
|
13
|
+
export declare function SheetInspector({ sheetId }: {
|
|
14
|
+
sheetId: string;
|
|
15
|
+
}): import("react/jsx-runtime").JSX.Element | null;
|
|
16
|
+
//# sourceMappingURL=SheetInspector.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SheetInspector.d.ts","sourceRoot":"","sources":["../../src/components/SheetInspector.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAMhE,OAAO,EAeL,KAAK,WAAW,EAEhB,KAAK,KAAK,EAEX,MAAM,UAAU,CAAC;AAclB;;;;;;;;GAQG;AACH,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,WAAW,EAAE,QAAQ,EAAE,aAAa,EAAE,KAAK,EAAE,KAAK,GAAG,MAAM,EAAE,CAoBhG;AAMD,wBAAgB,cAAc,CAAC,EAAE,OAAO,EAAE,EAAE;IAAE,OAAO,EAAE,MAAM,CAAA;CAAE,kDAwI9D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tooltip.d.ts","sourceRoot":"","sources":["../../../src/components/ui/tooltip.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAOL,KAAK,YAAY,EACjB,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAWf,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE,SAAS,CAAC;IACnB,QAAQ,EAAE,YAAY,CAAC;QACrB,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,WAAW,CA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C;QACvC,kBAAkB,CAAC,EAAE,MAAM,CAAC;KAC7B,CAAC,CAAC;IACH,yDAAyD;IACzD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,8CAA8C;IAC9C,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,wBAAgB,OAAO,CAAC,EACtB,OAAO,EACP,QAAQ,EACR,QAAQ,EACR,OAAuB,GACxB,EAAE,YAAY,2CAkHd"}
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
export declare function UpwardPopover({ open, onOpenChange, trigger, children, }: {
|
|
1
|
+
import { CSSProperties, ReactNode } from 'react';
|
|
2
|
+
export declare function UpwardPopover({ open, onOpenChange, trigger, children, persistent, className, style, }: {
|
|
3
3
|
open: boolean;
|
|
4
4
|
onOpenChange: (next: boolean) => void;
|
|
5
5
|
trigger: ReactNode;
|
|
6
6
|
children: ReactNode;
|
|
7
|
+
persistent?: boolean;
|
|
8
|
+
className?: string;
|
|
9
|
+
style?: CSSProperties;
|
|
7
10
|
}): import("react/jsx-runtime").JSX.Element;
|
|
8
11
|
//# sourceMappingURL=upward-popover.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upward-popover.d.ts","sourceRoot":"","sources":["../../../src/components/ui/upward-popover.tsx"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"upward-popover.d.ts","sourceRoot":"","sources":["../../../src/components/ui/upward-popover.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAqB,KAAK,aAAa,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAG9E,wBAAgB,aAAa,CAAC,EAC5B,IAAI,EACJ,YAAY,EACZ,OAAO,EACP,QAAQ,EACR,UAAkB,EAClB,SAAS,EACT,KAAK,GACN,EAAE;IACD,IAAI,EAAE,OAAO,CAAC;IACd,YAAY,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACtC,OAAO,EAAE,SAAS,CAAC;IACnB,QAAQ,EAAE,SAAS,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,aAAa,CAAC;CACvB,2CAmCA"}
|
package/dist/health/check.d.ts
CHANGED
|
@@ -57,6 +57,12 @@ export interface LoadSummary {
|
|
|
57
57
|
ratingKVA?: number;
|
|
58
58
|
/** knownKVA / ratingKVA × 100, a lower bound when known < total. */
|
|
59
59
|
loadingPct?: number;
|
|
60
|
+
/**
|
|
61
|
+
* Other units (transformers / UPSs) feeding the same loads. The figures
|
|
62
|
+
* above are then this unit's share — by rating, or equal when a rating is
|
|
63
|
+
* missing — and `known` / `total` count the whole shared group.
|
|
64
|
+
*/
|
|
65
|
+
parallelWith?: string[];
|
|
60
66
|
}
|
|
61
67
|
export interface HealthReport {
|
|
62
68
|
issues: HealthIssue[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"check.d.ts","sourceRoot":"","sources":["../../src/health/check.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAc,MAAM,UAAU,CAAC;AACxD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAYhE,MAAM,MAAM,cAAc,GAAG,OAAO,GAAG,SAAS,GAAG,MAAM,CAAC;AAE1D,MAAM,MAAM,UAAU;AACpB,0DAA0D;AACxD,SAAS;AACX,2DAA2D;GACzD,eAAe;AACjB;;qEAEqE;GACnE,cAAc;AAChB;;2BAE2B;GACzB,qBAAqB;AACvB;uDACuD;GACrD,WAAW;AACb,2EAA2E;GACzE,YAAY;AACd,0EAA0E;GACxE,YAAY;AACd,2EAA2E;GACzE,WAAW;AACb,+DAA+D;GAC7D,aAAa;AACf,mEAAmE;GACjE,gBAAgB;AAClB,kEAAkE;GAChE,gBAAgB;AAClB,wDA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E,MAAM,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI,CAkBhE;AAqFD,wBAAgB,WAAW,CAAC,OAAO,EAAE,WAAW,EAAE,CAAC,EAAE,aAAa,GAAG,YAAY,CA8ehF"}
|
package/dist/health/present.d.ts
CHANGED
|
@@ -2,8 +2,14 @@ import { InternalModel } from '../compiler/internal-model';
|
|
|
2
2
|
import { LocaleKey } from '../i18n';
|
|
3
3
|
import { HealthIssue } from './check';
|
|
4
4
|
type T = (key: LocaleKey, params?: Record<string, string | number>) => string;
|
|
5
|
-
/**
|
|
6
|
-
|
|
5
|
+
/**
|
|
6
|
+
* Short display name: the device's own name (first line), else what it is
|
|
7
|
+
* ("Circuit breaker"), else its id. Ids like "e12" mean nothing to the user
|
|
8
|
+
* (10-25 walkthrough), and a click on the issue selects the device anyway.
|
|
9
|
+
*/
|
|
10
|
+
export declare function targetName(internal: InternalModel, id: string, t?: T): string;
|
|
11
|
+
/** Name plus what it is, for messages: "QF3 (Circuit breaker)". */
|
|
12
|
+
export declare function targetLabel(internal: InternalModel, id: string, t?: T): string;
|
|
7
13
|
export declare function issueText(t: T, internal: InternalModel, issue: HealthIssue): string;
|
|
8
14
|
/** World bounding box of an element, bus or junction, or null. */
|
|
9
15
|
export declare function targetBox(internal: InternalModel, id: string): {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"present.d.ts","sourceRoot":"","sources":["../../src/health/present.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAEhE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"present.d.ts","sourceRoot":"","sources":["../../src/health/present.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAEhE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,S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*
|
|
25
|
-
*
|
|
23
|
+
* Told when the user opens a health-check issue, ignores or restores one,
|
|
24
|
+
* or applies its one-click fix (`fix`: Connect on a wire end that only looks
|
|
25
|
+
* joined), so a host can measure whether flagged problems get looked at and
|
|
26
|
+
* fixed. Absent = nobody listening.
|
|
26
27
|
*/
|
|
27
28
|
onHealthEvent: ((e: HealthEvent) => void) | null;
|
|
29
|
+
/**
|
|
30
|
+
* Export one drawing sheet (the sheet inspector's "Export this sheet").
|
|
31
|
+
* Exporting is the host's job — file formats, download, analytics — so the
|
|
32
|
+
* editor only says which sheet. Absent = no export, and the button is not
|
|
33
|
+
* offered.
|
|
34
|
+
*/
|
|
35
|
+
onExportSheet: ((sheetId: string) => void) | null;
|
|
28
36
|
}
|
|
29
37
|
export interface HealthEvent {
|
|
30
|
-
type: 'open' | 'dismiss' | 'restore';
|
|
38
|
+
type: 'open' | 'dismiss' | 'restore' | 'fix';
|
|
31
39
|
issueId: string;
|
|
32
40
|
code: string;
|
|
33
41
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-host-actions.d.ts","sourceRoot":"","sources":["../../src/hooks/use-host-actions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAIH,MAAM,WAAW,WAAW;IAC1B;;;;OAIG;IACH,iBAAiB,EAAE,CAAC,MAAM,IAAI,CAAC,GAAG,IAAI,CAAC;IACvC
|
|
1
|
+
{"version":3,"file":"use-host-actions.d.ts","sourceRoot":"","sources":["../../src/hooks/use-host-actions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAIH,MAAM,WAAW,WAAW;IAC1B;;;;OAIG;IACH,iBAAiB,EAAE,CAAC,MAAM,IAAI,CAAC,GAAG,IAAI,CAAC;IACvC;;;;;OAKG;IACH,aAAa,EAAE,CAAC,CAAC,CAAC,EAAE,WAAW,KAAK,IAAI,CAAC,GAAG,IAAI,CAAC;IACjD;;;;;OAKG;IACH,aAAa,EAAE,CAAC,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC,GAAG,IAAI,CAAC;CACnD;AAED,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,KAAK,CAAC;IAC7C,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,UAAU,gBAAiB,SAAQ,WAAW;IAC5C,cAAc,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC,WAAW,CAAC,KAAK,IAAI,CAAC;CACzD;AAED,eAAO,MAAM,cAAc,+EAKxB,CAAC"}
|
|
@@ -8,6 +8,13 @@
|
|
|
8
8
|
interface OnboardingState {
|
|
9
9
|
dismissed: boolean;
|
|
10
10
|
dismiss: () => void;
|
|
11
|
+
/**
|
|
12
|
+
* Hide the card for this page load only, without remembering it: for a
|
|
13
|
+
* host that opens the editor with a purpose of its own (a ready-made
|
|
14
|
+
* example from a landing page), where "place a component" is beside the
|
|
15
|
+
* point — but a later blank visit should still get the card.
|
|
16
|
+
*/
|
|
17
|
+
hide: () => void;
|
|
11
18
|
reset: () => void;
|
|
12
19
|
}
|
|
13
20
|
export declare const useOnboarding: import('zustand').UseBoundStore<import('zustand').StoreApi<OnboardingState>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-onboarding.d.ts","sourceRoot":"","sources":["../../src/hooks/use-onboarding.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAwBH,UAAU,eAAe;IACvB,SAAS,EAAE,OAAO,CAAC;IACnB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,KAAK,EAAE,MAAM,IAAI,CAAC;CACnB;AAED,eAAO,MAAM,aAAa,
|
|
1
|
+
{"version":3,"file":"use-onboarding.d.ts","sourceRoot":"","sources":["../../src/hooks/use-onboarding.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAwBH,UAAU,eAAe;IACvB,SAAS,EAAE,OAAO,CAAC;IACnB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB;;;;;OAKG;IACH,IAAI,EAAE,MAAM,IAAI,CAAC;IACjB,KAAK,EAAE,MAAM,IAAI,CAAC;CACnB;AAED,eAAO,MAAM,aAAa,8EAWvB,CAAC"}
|
package/dist/i18n/library.d.ts
CHANGED
|
@@ -9,6 +9,9 @@
|
|
|
9
9
|
* Key shape: `<entryId>.name`, `<entryId>.desc`, `<entryId>.state.<name>`,
|
|
10
10
|
* `<entryId>.param.<name>`.
|
|
11
11
|
*/
|
|
12
|
+
/** One-off lookup in the current locale (no re-render subscription): for
|
|
13
|
+
* code that composes text outside a component, e.g. health messages. */
|
|
14
|
+
export declare function libText(key: string, fallback?: string): string;
|
|
12
15
|
/** Returns a translator that re-renders on locale change. */
|
|
13
16
|
export declare function useLibT(): (key: string, fallback?: string) => string;
|
|
14
17
|
//# sourceMappingURL=library.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"library.d.ts","sourceRoot":"","sources":["../../src/i18n/library.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;
|
|
1
|
+
{"version":3,"file":"library.d.ts","sourceRoot":"","sources":["../../src/i18n/library.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AA2aH;yEACyE;AACzE,wBAAgB,OAAO,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAE9D;AAED,6DAA6D;AAC7D,wBAAgB,OAAO,IAAI,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,KAAK,MAAM,CAGpE"}
|
|
@@ -2,7 +2,7 @@ import { UiTable } from '../messages';
|
|
|
2
2
|
export declare const ui: UiTable;
|
|
3
3
|
export declare const library: Record<string, string>;
|
|
4
4
|
declare const _default: {
|
|
5
|
-
ui: Partial<Record<"common.unnamed" | "common.close" | "common.yes" | "common.no" | "topbar.theme.toLight" | "topbar.theme.toDark" | "topbar.theme.currentDark" | "topbar.theme.currentLight" | "topbar.lang.toEnglish" | "topbar.lang.toChinese" | "topbar.lang.currentEnglish" | "topbar.lang.currentChinese" | "topbar.export.label" | "topbar.export.tooltip" | "topbar.export.pngFailed" | "topbar.export.dxfFailed" | "topbar.file.label" | "topbar.file.tooltip" | "topbar.file.current" | "topbar.file.new" | "topbar.file.open" | "topbar.file.save" | "topbar.file.saveAs" | "topbar.file.newConfirm" | "topbar.file.openFailed" | "topbar.file.saveFailed" | "topbar.file.fileDescription" | "outline.title" | "outline.collapse" | "outline.collapseAria" | "outline.empty" | "props.title" | "props.node" | "props.wire" | "props.bus" | "props.junction" | "props.junctionPos" | "props.nSelected" | "props.empty" | "props.multi" | "props.name" | "props.note" | "props.label" | "props.labelPlaceholder" | "props.nodeNotFound" | "props.wireNotFound" | "props.nodeStats" | "props.selectElement" | "props.selectWholeNode" | "props.annText" | "props.annRect" | "props.annEllipse" | "props.annLine" | "props.annTable" | "props.annNotFound" | "props.annLabel" | "props.annLabelPlaceholder" | "props.color" | "props.size" | "props.sizeReset" | "props.labelShown" | "props.labelHidden" | "props.contactType" | "props.direction" | "props.directionOut" | "props.directionIn" | "props.partner" | "props.partnerUnnamed" | "props.partnerNone" | "props.partnerJump" | "health.title" | "health.hint" | "health.markers" | "health.none" | "health.sectionProblems" | "health.sectionNotes" | "health.sectionDismissed" | "health.sectionLoads" | "health.dismiss" | "health.restore" | "health.loadKnown" | "health.loadAll" | "health.label.unwired" | "health.label.looks-joined" | "health.label.dangling-wire" | "health.label.supply-disconnected" | "health.label.unsupplied" | "health.label.no-origin" | "health.label.voltage-mix" | "health.label.ratio-mismatch" | "health.label.label-mismatch" | "health.label.overload" | "health.label.feeder-end" | "health.label.open-side" | "health.
|
|
5
|
+
ui: Partial<Record<"common.unnamed" | "common.close" | "common.yes" | "common.no" | "topbar.theme.toLight" | "topbar.theme.toDark" | "topbar.theme.currentDark" | "topbar.theme.currentLight" | "topbar.lang.toEnglish" | "topbar.lang.toChinese" | "topbar.lang.currentEnglish" | "topbar.lang.currentChinese" | "topbar.export.label" | "topbar.export.tooltip" | "topbar.export.pngFailed" | "topbar.export.dxfFailed" | "topbar.file.label" | "topbar.file.tooltip" | "topbar.file.current" | "topbar.file.new" | "topbar.file.open" | "topbar.file.save" | "topbar.file.saveAs" | "topbar.file.newConfirm" | "topbar.file.openFailed" | "topbar.file.saveFailed" | "topbar.file.fileDescription" | "outline.title" | "outline.collapse" | "outline.collapseAria" | "outline.empty" | "props.title" | "props.node" | "props.wire" | "props.bus" | "props.junction" | "props.junctionPos" | "props.nSelected" | "props.empty" | "props.multi" | "props.name" | "props.defaultHint" | "props.note" | "props.label" | "props.labelPlaceholder" | "props.nodeNotFound" | "props.wireNotFound" | "props.nodeStats" | "props.selectElement" | "props.selectWholeNode" | "props.annText" | "props.annRect" | "props.annEllipse" | "props.annLine" | "props.annTable" | "props.annNotFound" | "props.annLabel" | "props.annLabelPlaceholder" | "props.color" | "props.size" | "props.sizeReset" | "props.labelShown" | "props.labelHidden" | "props.contactType" | "props.direction" | "props.directionOut" | "props.directionIn" | "props.partner" | "props.partnerUnnamed" | "props.partnerNone" | "props.partnerJump" | "health.title" | "health.hint" | "health.markers" | "health.none" | "health.sectionProblems" | "health.sectionNotes" | "health.sectionDismissed" | "health.sectionLoads" | "health.dismiss" | "health.connect" | "sheet.field.project" | "sheet.field.client" | "sheet.field.title" | "sheet.field.number" | "sheet.field.designer" | "sheet.field.checker" | "sheet.field.date" | "sheet.field.scaleText" | "sheet.field.sheetNo" | "sheet.sheetOf" | "sheet.name" | "sheet.nameN" | "sheet.paper" | "sheet.orientation" | "sheet.landscape" | "sheet.portrait" | "sheet.frameScale" | "sheet.fit" | "sheet.overflow" | "sheet.textHeight" | "sheet.textSmall" | "sheet.enlargeLabels" | "sheet.shared" | "sheet.own" | "sheet.delete" | "sheet.export" | "sheet.moveEarlier" | "sheet.moveLater" | "sheet.add" | "sheet.goTo" | "health.restore" | "health.loadKnown" | "health.loadAll" | "health.code.unwired-touching" | "health.bus" | "health.figurePartial" | "health.parallel" | "health.loadNone" | "health.label.unwired" | "health.label.looks-joined" | "health.label.dangling-wire" | "health.label.supply-disconnected" | "health.label.unsupplied" | "health.label.no-origin" | "health.label.voltage-mix" | "health.label.ratio-mismatch" | "health.label.label-mismatch" | "health.label.overload" | "health.label.feeder-end" | "health.label.open-side" | "health.intro" | "health.introShow" | "health.introOk" | "health.loading" | "health.disclaimer" | "health.overloadUnits" | "health.code.unwired" | "health.code.looks-joined" | "health.code.dangling-wire" | "health.code.supply-disconnected" | "health.code.unsupplied" | "health.code.no-origin" | "health.code.voltage-mix" | "health.code.ratio-mismatch" | "health.code.label-mismatch" | "health.code.overload" | "health.code.feeder-end" | "health.code.open-side" | "props.color.default" | "props.color.red" | "props.color.amber" | "props.color.green" | "props.color.blue" | "props.color.gray" | "props.annStroke" | "props.annStrokeSolid" | "props.annStrokeDashed" | "props.annStrokeDotted" | "props.annStrokeWidth" | "props.annWidthThin" | "props.annWidthMedium" | "props.annWidthThick" | "props.annFill" | "props.annFillNone" | "props.annFillTint" | "props.annArrow" | "props.annArrowNone" | "props.annArrowEnd" | "props.annArrowBoth" | "props.annFontSize" | "props.annRows" | "props.annCols" | "view.zoomOut" | "view.zoomOutHint" | "view.reset" | "view.current" | "view.zoomIn" | "view.zoomInHint" | "view.fit" | "view.fitHint" | "view.gridHide" | "view.gridShow" | "view.gridHotkey" | "view.gridHideHint" | "view.gridShowHint" | "view.gridHideAria" | "view.gridShowAria" | "view.label" | "view.labelOff" | "view.labelId" | "view.labelAll" | "view.labelHint" | "view.labelSize" | "view.labelSizeSmaller" | "view.labelSizeLarger" | "view.standard" | "view.standardIec" | "view.standardAnsi" | "view.standardHint" | "view.labelSizeReset" | "library.title" | "tool.draw" | "tool.drawHint" | "library.empty" | "library.customTag" | "library.customHint" | "library.createComponent" | "library.searchPlaceholder" | "library.searchAria" | "library.clearSearch" | "library.itemHint" | "tool.select" | "tool.selectHint" | "tool.pan" | "tool.panHint" | "tool.wire" | "tool.wireHint" | "tool.bus" | "tool.busHint" | "tool.junction" | "tool.junctionHint" | "tool.place" | "tool.placeHint" | "tool.text" | "tool.textHint" | "tool.rect" | "tool.rectHint" | "tool.ellipse" | "tool.ellipseHint" | "tool.line" | "tool.lineHint" | "tool.table" | "tool.tableHint" | "mode.selectWithSel" | "mode.selectEmpty" | "mode.pan" | "mode.wireDragging" | "mode.wireInit" | "mode.busDragging" | "mode.busInit" | "mode.junction" | "mode.placeNoKind" | "mode.placeFromTerm" | "mode.placeNormal" | "mode.text" | "mode.rect" | "mode.ellipse" | "mode.line" | "mode.table" | "mode.annTextSel" | "mode.annTableSel" | "mode.annShapeSel" | "mode.annEditing" | "mode.escSelect" | "mode.escOther" | "tool.placeNoKindTooltip" | "tool.undo" | "tool.undoHint" | "tool.redo" | "tool.redoHint" | "layout.label" | "layout.hint" | "layout.allAuto" | "layout.selAuto" | "layout.allFill" | "layout.selFill" | "tool.more" | "tool.moreHint" | "view.menu" | "view.menuHint" | "ctx.ariaNode" | "ctx.ariaWire" | "ctx.ariaElement" | "ctx.ariaEdit" | "ctx.done" | "ctx.cancel" | "ctx.rotate" | "ctx.rotateHint" | "ctx.mirror" | "ctx.mirrorTitle" | "ctx.mirrorHint" | "ctx.delete" | "ctx.color" | "ctx.colorDefault" | "ctx.colorRed" | "ctx.colorAmber" | "ctx.colorGreen" | "ctx.colorBlue" | "ctx.colorGray" | "ctx.deleteHintNode" | "ctx.deleteHintWire" | "ctx.deleteHintElement" | "ctx.resetWirePath" | "ctx.resetWirePathHint" | "menu.undo" | "menu.redo" | "menu.cut" | "menu.copy" | "menu.paste" | "menu.rotate" | "menu.mirror" | "menu.resetLabel" | "menu.selectAll" | "menu.disconnect" | "menu.delete" | "io.parseFailed" | "io.notObject" | "io.versionMismatch" | "io.elementsMissing" | "compile.duplicateId" | "compile.unknownKind" | "compile.invalidTermRef" | "compile.elementMissing" | "compile.missingPin" | "compile.singleTerminal" | "compile.layoutMissingElement" | "compile.elementUnconnected" | "cat.custom" | "cat.busbar" | "cat.switching" | "cat.protection" | "cat.motor-control" | "cat.transformer" | "cat.instrument-transformer" | "cat.measurement" | "cat.source" | "cat.load" | "cat.storage" | "cat.compensation" | "cat.grounding" | "cat.renewable" | "cat.passive" | "cat.control" | "onboard.title" | "onboard.step1.title" | "onboard.step1.body" | "onboard.step2.title" | "onboard.step2.body" | "onboard.step3.title" | "onboard.step3.body" | "onboard.dismiss", string>>;
|
|
6
6
|
library: Record<string, string>;
|
|
7
7
|
};
|
|
8
8
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ar.d.ts","sourceRoot":"","sources":["../../../src/i18n/locales/ar.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAE3C,eAAO,MAAM,EAAE,EAAE,
|
|
1
|
+
{"version":3,"file":"ar.d.ts","sourceRoot":"","sources":["../../../src/i18n/locales/ar.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAE3C,eAAO,MAAM,EAAE,EAAE,OA0WhB,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CA2P1C,CAAC;;;;;AAEF,wBAA+B"}
|
|
@@ -2,7 +2,7 @@ import { UiTable } from '../messages';
|
|
|
2
2
|
export declare const ui: UiTable;
|
|
3
3
|
export declare const library: Record<string, string>;
|
|
4
4
|
declare const _default: {
|
|
5
|
-
ui: Partial<Record<"common.unnamed" | "common.close" | "common.yes" | "common.no" | "topbar.theme.toLight" | "topbar.theme.toDark" | "topbar.theme.currentDark" | "topbar.theme.currentLight" | "topbar.lang.toEnglish" | "topbar.lang.toChinese" | "topbar.lang.currentEnglish" | "topbar.lang.currentChinese" | "topbar.export.label" | "topbar.export.tooltip" | "topbar.export.pngFailed" | "topbar.export.dxfFailed" | "topbar.file.label" | "topbar.file.tooltip" | "topbar.file.current" | "topbar.file.new" | "topbar.file.open" | "topbar.file.save" | "topbar.file.saveAs" | "topbar.file.newConfirm" | "topbar.file.openFailed" | "topbar.file.saveFailed" | "topbar.file.fileDescription" | "outline.title" | "outline.collapse" | "outline.collapseAria" | "outline.empty" | "props.title" | "props.node" | "props.wire" | "props.bus" | "props.junction" | "props.junctionPos" | "props.nSelected" | "props.empty" | "props.multi" | "props.name" | "props.note" | "props.label" | "props.labelPlaceholder" | "props.nodeNotFound" | "props.wireNotFound" | "props.nodeStats" | "props.selectElement" | "props.selectWholeNode" | "props.annText" | "props.annRect" | "props.annEllipse" | "props.annLine" | "props.annTable" | "props.annNotFound" | "props.annLabel" | "props.annLabelPlaceholder" | "props.color" | "props.size" | "props.sizeReset" | "props.labelShown" | "props.labelHidden" | "props.contactType" | "props.direction" | "props.directionOut" | "props.directionIn" | "props.partner" | "props.partnerUnnamed" | "props.partnerNone" | "props.partnerJump" | "health.title" | "health.hint" | "health.markers" | "health.none" | "health.sectionProblems" | "health.sectionNotes" | "health.sectionDismissed" | "health.sectionLoads" | "health.dismiss" | "health.restore" | "health.loadKnown" | "health.loadAll" | "health.label.unwired" | "health.label.looks-joined" | "health.label.dangling-wire" | "health.label.supply-disconnected" | "health.label.unsupplied" | "health.label.no-origin" | "health.label.voltage-mix" | "health.label.ratio-mismatch" | "health.label.label-mismatch" | "health.label.overload" | "health.label.feeder-end" | "health.label.open-side" | "health.
|
|
5
|
+
ui: Partial<Record<"common.unnamed" | "common.close" | "common.yes" | "common.no" | "topbar.theme.toLight" | "topbar.theme.toDark" | "topbar.theme.currentDark" | "topbar.theme.currentLight" | "topbar.lang.toEnglish" | "topbar.lang.toChinese" | "topbar.lang.currentEnglish" | "topbar.lang.currentChinese" | "topbar.export.label" | "topbar.export.tooltip" | "topbar.export.pngFailed" | "topbar.export.dxfFailed" | "topbar.file.label" | "topbar.file.tooltip" | "topbar.file.current" | "topbar.file.new" | "topbar.file.open" | "topbar.file.save" | "topbar.file.saveAs" | "topbar.file.newConfirm" | "topbar.file.openFailed" | "topbar.file.saveFailed" | "topbar.file.fileDescription" | "outline.title" | "outline.collapse" | "outline.collapseAria" | "outline.empty" | "props.title" | "props.node" | "props.wire" | "props.bus" | "props.junction" | "props.junctionPos" | "props.nSelected" | "props.empty" | "props.multi" | "props.name" | "props.defaultHint" | "props.note" | "props.label" | "props.labelPlaceholder" | "props.nodeNotFound" | "props.wireNotFound" | "props.nodeStats" | "props.selectElement" | "props.selectWholeNode" | "props.annText" | "props.annRect" | "props.annEllipse" | "props.annLine" | "props.annTable" | "props.annNotFound" | "props.annLabel" | "props.annLabelPlaceholder" | "props.color" | "props.size" | "props.sizeReset" | "props.labelShown" | "props.labelHidden" | "props.contactType" | "props.direction" | "props.directionOut" | "props.directionIn" | "props.partner" | "props.partnerUnnamed" | "props.partnerNone" | "props.partnerJump" | "health.title" | "health.hint" | "health.markers" | "health.none" | "health.sectionProblems" | "health.sectionNotes" | "health.sectionDismissed" | "health.sectionLoads" | "health.dismiss" | "health.connect" | "sheet.field.project" | "sheet.field.client" | "sheet.field.title" | "sheet.field.number" | "sheet.field.designer" | "sheet.field.checker" | "sheet.field.date" | "sheet.field.scaleText" | "sheet.field.sheetNo" | "sheet.sheetOf" | "sheet.name" | "sheet.nameN" | "sheet.paper" | "sheet.orientation" | "sheet.landscape" | "sheet.portrait" | "sheet.frameScale" | "sheet.fit" | "sheet.overflow" | "sheet.textHeight" | "sheet.textSmall" | "sheet.enlargeLabels" | "sheet.shared" | "sheet.own" | "sheet.delete" | "sheet.export" | "sheet.moveEarlier" | "sheet.moveLater" | "sheet.add" | "sheet.goTo" | "health.restore" | "health.loadKnown" | "health.loadAll" | "health.code.unwired-touching" | "health.bus" | "health.figurePartial" | "health.parallel" | "health.loadNone" | "health.label.unwired" | "health.label.looks-joined" | "health.label.dangling-wire" | "health.label.supply-disconnected" | "health.label.unsupplied" | "health.label.no-origin" | "health.label.voltage-mix" | "health.label.ratio-mismatch" | "health.label.label-mismatch" | "health.label.overload" | "health.label.feeder-end" | "health.label.open-side" | "health.intro" | "health.introShow" | "health.introOk" | "health.loading" | "health.disclaimer" | "health.overloadUnits" | "health.code.unwired" | "health.code.looks-joined" | "health.code.dangling-wire" | "health.code.supply-disconnected" | "health.code.unsupplied" | "health.code.no-origin" | "health.code.voltage-mix" | "health.code.ratio-mismatch" | "health.code.label-mismatch" | "health.code.overload" | "health.code.feeder-end" | "health.code.open-side" | "props.color.default" | "props.color.red" | "props.color.amber" | "props.color.green" | "props.color.blue" | "props.color.gray" | "props.annStroke" | "props.annStrokeSolid" | "props.annStrokeDashed" | "props.annStrokeDotted" | "props.annStrokeWidth" | "props.annWidthThin" | "props.annWidthMedium" | "props.annWidthThick" | "props.annFill" | "props.annFillNone" | "props.annFillTint" | "props.annArrow" | "props.annArrowNone" | "props.annArrowEnd" | "props.annArrowBoth" | "props.annFontSize" | "props.annRows" | "props.annCols" | "view.zoomOut" | "view.zoomOutHint" | "view.reset" | "view.current" | "view.zoomIn" | "view.zoomInHint" | "view.fit" | "view.fitHint" | "view.gridHide" | "view.gridShow" | "view.gridHotkey" | "view.gridHideHint" | "view.gridShowHint" | "view.gridHideAria" | "view.gridShowAria" | "view.label" | "view.labelOff" | "view.labelId" | "view.labelAll" | "view.labelHint" | "view.labelSize" | "view.labelSizeSmaller" | "view.labelSizeLarger" | "view.standard" | "view.standardIec" | "view.standardAnsi" | "view.standardHint" | "view.labelSizeReset" | "library.title" | "tool.draw" | "tool.drawHint" | "library.empty" | "library.customTag" | "library.customHint" | "library.createComponent" | "library.searchPlaceholder" | "library.searchAria" | "library.clearSearch" | "library.itemHint" | "tool.select" | "tool.selectHint" | "tool.pan" | "tool.panHint" | "tool.wire" | "tool.wireHint" | "tool.bus" | "tool.busHint" | "tool.junction" | "tool.junctionHint" | "tool.place" | "tool.placeHint" | "tool.text" | "tool.textHint" | "tool.rect" | "tool.rectHint" | "tool.ellipse" | "tool.ellipseHint" | "tool.line" | "tool.lineHint" | "tool.table" | "tool.tableHint" | "mode.selectWithSel" | "mode.selectEmpty" | "mode.pan" | "mode.wireDragging" | "mode.wireInit" | "mode.busDragging" | "mode.busInit" | "mode.junction" | "mode.placeNoKind" | "mode.placeFromTerm" | "mode.placeNormal" | "mode.text" | "mode.rect" | "mode.ellipse" | "mode.line" | "mode.table" | "mode.annTextSel" | "mode.annTableSel" | "mode.annShapeSel" | "mode.annEditing" | "mode.escSelect" | "mode.escOther" | "tool.placeNoKindTooltip" | "tool.undo" | "tool.undoHint" | "tool.redo" | "tool.redoHint" | "layout.label" | "layout.hint" | "layout.allAuto" | "layout.selAuto" | "layout.allFill" | "layout.selFill" | "tool.more" | "tool.moreHint" | "view.menu" | "view.menuHint" | "ctx.ariaNode" | "ctx.ariaWire" | "ctx.ariaElement" | "ctx.ariaEdit" | "ctx.done" | "ctx.cancel" | "ctx.rotate" | "ctx.rotateHint" | "ctx.mirror" | "ctx.mirrorTitle" | "ctx.mirrorHint" | "ctx.delete" | "ctx.color" | "ctx.colorDefault" | "ctx.colorRed" | "ctx.colorAmber" | "ctx.colorGreen" | "ctx.colorBlue" | "ctx.colorGray" | "ctx.deleteHintNode" | "ctx.deleteHintWire" | "ctx.deleteHintElement" | "ctx.resetWirePath" | "ctx.resetWirePathHint" | "menu.undo" | "menu.redo" | "menu.cut" | "menu.copy" | "menu.paste" | "menu.rotate" | "menu.mirror" | "menu.resetLabel" | "menu.selectAll" | "menu.disconnect" | "menu.delete" | "io.parseFailed" | "io.notObject" | "io.versionMismatch" | "io.elementsMissing" | "compile.duplicateId" | "compile.unknownKind" | "compile.invalidTermRef" | "compile.elementMissing" | "compile.missingPin" | "compile.singleTerminal" | "compile.layoutMissingElement" | "compile.elementUnconnected" | "cat.custom" | "cat.busbar" | "cat.switching" | "cat.protection" | "cat.motor-control" | "cat.transformer" | "cat.instrument-transformer" | "cat.measurement" | "cat.source" | "cat.load" | "cat.storage" | "cat.compensation" | "cat.grounding" | "cat.renewable" | "cat.passive" | "cat.control" | "onboard.title" | "onboard.step1.title" | "onboard.step1.body" | "onboard.step2.title" | "onboard.step2.body" | "onboard.step3.title" | "onboard.step3.body" | "onboard.dismiss", string>>;
|
|
6
6
|
library: Record<string, string>;
|
|
7
7
|
};
|
|
8
8
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"de.d.ts","sourceRoot":"","sources":["../../../src/i18n/locales/de.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAE3C,eAAO,MAAM,EAAE,EAAE,
|
|
1
|
+
{"version":3,"file":"de.d.ts","sourceRoot":"","sources":["../../../src/i18n/locales/de.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAE3C,eAAO,MAAM,EAAE,EAAE,OA0WhB,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAsP1C,CAAC;;;;;AAEF,wBAA+B"}
|