@processandtools/rp-article-designer 1.0.38 → 1.0.40
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/components/article_designer/VariableBridge.d.ts +4 -0
- package/dist/components/article_designer/Zone.d.ts +2 -1
- package/dist/components/article_designer/helpers/DoorSensor.d.ts +1 -1
- package/dist/components/article_designer/helpers/DrawerAnimator.d.ts +14 -0
- package/dist/components/article_designer/helpers/DrawerSensor.d.ts +10 -0
- package/dist/components/article_designer/helpers/ScanNeighbors.d.ts +5 -2
- package/dist/components/article_designer/helpers/ScanNeighbors.old.d.ts +19 -0
- package/dist/components/article_designer/helpers/calculateHitOversize.d.ts +3 -0
- package/dist/components/article_designer/zoneElems/Back.d.ts +2 -1
- package/dist/components/article_designer/zoneElems/Bottom.d.ts +5 -1
- package/dist/components/article_designer/zoneElems/Divider.d.ts +2 -2
- package/dist/components/article_designer/zoneElems/Drawer.d.ts +10 -0
- package/dist/components/article_designer/zoneElems/Left.d.ts +2 -1
- package/dist/components/article_designer/zoneElems/Right.d.ts +2 -1
- package/dist/components/article_designer/zoneElems/Top.d.ts +5 -1
- package/dist/components/article_designer/zoneElems/drawerElems/DrBack.d.ts +2 -0
- package/dist/components/article_designer/zoneElems/drawerElems/DrBottom.d.ts +2 -0
- package/dist/components/article_designer/zoneElems/drawerElems/DrFront.d.ts +2 -0
- package/dist/components/article_designer/zoneElems/drawerElems/DrLeft.d.ts +2 -0
- package/dist/components/article_designer/zoneElems/drawerElems/DrRight.d.ts +2 -0
- package/dist/components/article_designer/zoneElems/drawerElems/DrZone.d.ts +2 -0
- package/dist/components/article_designer/zoneElems/drawerElems/types/drawer-elem.types.d.ts +10 -0
- package/dist/components/article_designer/zoneElems/sub_construction/DrawerItem.d.ts +15 -0
- package/dist/components/article_designer/zoneElems/sub_construction/LinearDividerRender.d.ts +1 -1
- package/dist/components/elements_manager/PD_3D.d.ts +7 -3
- package/dist/components/ui/Canvas3D.d.ts +1 -1
- package/dist/components/ui/CanvasManager.d.ts +1 -1
- package/dist/components/ui/VariablePanel.d.ts +5 -0
- package/dist/components/ui/VisibilityPanel.d.ts +1 -0
- package/dist/components/ui/controls/Configurator.d.ts +7 -0
- package/dist/components/ui/controls/VariablePanel.d.ts +2 -5
- package/dist/components/ui/controls/configurator-components/MCombo.d.ts +7 -0
- package/dist/components/ui/controls/configurator-components/MSlider.d.ts +8 -0
- package/dist/components/ui/controls/configurator-components/MSwitch.d.ts +8 -0
- package/dist/conditions/helpers/ConditionTreeEvaluator.d.ts +2 -3
- package/dist/construction_principle/cabBack/CabBackHelper.d.ts +2 -1
- package/dist/construction_principle/cabin/CabinHelper.d.ts +2 -1
- package/dist/construction_principle/door/DoorHelper.d.ts +2 -1
- package/dist/construction_principle/drawer/DrawerHelper.d.ts +16 -0
- package/dist/construction_principle/drawer/dto/drawer.types.d.ts +3 -0
- package/dist/construction_principle/dto/angl-type-config.d.ts +7 -5
- package/dist/construction_principle/dto/cp-dispatcher.types.d.ts +15 -0
- package/dist/construction_principle/kms/KmsHelper.d.ts +2 -1
- package/dist/construction_principle/material/MatHelper.d.ts +2 -1
- package/dist/construction_principle/side_panel/CSideHelper.d.ts +2 -1
- package/dist/construction_principle/surface/SurfHelper.d.ts +2 -1
- package/dist/contexts/article-hover/ArticleHoverContext.d.ts +6 -0
- package/dist/contexts/article-hover/ArticleHoverProvider.d.ts +6 -0
- package/dist/contexts/article-hover/useArticleHover.d.ts +2 -0
- package/dist/contexts/descriptor/useDescriptor.d.ts +2 -3
- package/dist/data/configurator-data/configuratorFields.d.ts +17 -0
- package/dist/data/configurator-data/options.d.ts +2 -0
- package/dist/debug/PerformanceMonitor.d.ts +77 -0
- package/dist/debug/RerenderTracker.d.ts +85 -0
- package/dist/debug/index.d.ts +9 -0
- package/dist/debug/trackComponent.d.ts +39 -0
- package/dist/descriptor/helper/DescriptorEvaluator.d.ts +2 -3
- package/dist/descriptor/services/DescriptorManager.d.ts +3 -4
- package/dist/helpers/GroupWrapper.d.ts +6 -0
- package/dist/helpers/ZoneCalculations.d.ts +2 -2
- package/dist/helpers/row_data/UseDrawerZoneHelper.d.ts +2 -0
- package/dist/helpers/{angls → row_data}/UseElemHelper.d.ts +2 -1
- package/dist/helpers/row_data/UseZoneHelper.d.ts +86 -0
- package/dist/helpers/tools/computeTrimTool.d.ts +2 -1
- package/dist/helpers/useCpDispatcher.d.ts +8 -0
- package/dist/hooks/zoneDivider.d.ts +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/stores/variableStore.d.ts +30 -0
- package/dist/stores/visibilityStore.d.ts +23 -0
- package/dist/types/canvas.types.d.ts +1 -0
- package/dist/types/configurator.types.d.ts +10 -0
- package/dist/types/data.types.d.ts +41 -0
- package/dist/types/divider.types.d.ts +5 -2
- package/dist/types/helper.types.d.ts +2 -2
- package/dist/types/zone.types.d.ts +3 -2
- package/dist/variables/VariableProvider.d.ts +1 -1
- package/dist/variables/VariableResolver.d.ts +1 -1
- package/dist/variables/useVariables.d.ts +1 -1
- package/package.json +5 -1
- package/dist/components/ui/PerformanceMonitor.d.ts +0 -1
- package/dist/components/ui/controls/ControlPanel.d.ts +0 -8
- package/dist/components/ui/controls/ControlPanel2D.d.ts +0 -2
- package/dist/components/ui/controls/ControlPanel3D.d.ts +0 -2
- package/dist/components/ui/controls/VariableController.d.ts +0 -7
- package/dist/components/ui/controls/VariableControllerWrapper.d.ts +0 -12
- package/dist/components/ui/controls/VariablePanel2D.d.ts +0 -2
- package/dist/components/ui/controls/VariablePanel3D.d.ts +0 -2
- package/dist/components/ui/controls/ZoomControls.d.ts +0 -8
- package/dist/components/ui/test/LevaVariableController.d.ts +0 -7
- package/dist/components/ui/test/LevaVisibilityController.d.ts +0 -11
- package/dist/helpers/CpDispatcher.d.ts +0 -6
- package/dist/helpers/angls/UseZoneHelper.d.ts +0 -10
- package/dist/rp-article-designer.css +0 -1
- /package/dist/helpers/{angls → row_data}/UseClieHelper.d.ts +0 -0
- /package/dist/helpers/{angls → row_data}/UseGrtxHelper.d.ts +0 -0
- /package/dist/helpers/{angls → row_data}/UsePrimHelper.d.ts +0 -0
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
import { ZoneProps } from '../../types/zone.types';
|
|
2
|
-
|
|
2
|
+
declare const Zone: import('react').NamedExoticComponent<ZoneProps>;
|
|
3
|
+
export default Zone;
|
|
@@ -8,5 +8,5 @@ interface DoorSensorProps {
|
|
|
8
8
|
doorCp?: DoorResult;
|
|
9
9
|
ddHingePosition?: 'left' | 'right';
|
|
10
10
|
}
|
|
11
|
-
export default function DoorSensor({ panelWidth, panelHeight, panelThk, renderMat, treeId, doorCp, ddHingePosition }: DoorSensorProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export default function DoorSensor({ panelWidth, panelHeight, panelThk, renderMat, treeId, doorCp, ddHingePosition }: DoorSensorProps): import("react/jsx-runtime").JSX.Element | undefined;
|
|
12
12
|
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { DimensionProps } from '../../../types/zone.types';
|
|
2
|
+
import { DrawerHelperResult } from '../../../construction_principle/drawer/DrawerHelper';
|
|
3
|
+
import { VIEW } from '../../../types/view.types';
|
|
4
|
+
interface DrawerAnimatorProps {
|
|
5
|
+
dimension: DimensionProps;
|
|
6
|
+
drElems: DrawerHelperResult;
|
|
7
|
+
onset: boolean;
|
|
8
|
+
view: VIEW;
|
|
9
|
+
treeId: string;
|
|
10
|
+
drawerIndex: number;
|
|
11
|
+
slideDistance?: number;
|
|
12
|
+
}
|
|
13
|
+
export default function DrawerAnimator({ dimension, drElems, onset, view, treeId, drawerIndex, slideDistance }: DrawerAnimatorProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
interface DrawerSensorProps {
|
|
2
|
+
panelWidth: number;
|
|
3
|
+
panelHeight: number;
|
|
4
|
+
panelThk: number;
|
|
5
|
+
renderMat?: string;
|
|
6
|
+
treeId: string;
|
|
7
|
+
onset: boolean;
|
|
8
|
+
}
|
|
9
|
+
export default function DrawerSensor({ panelWidth, panelHeight, panelThk, renderMat, treeId, onset, }: DrawerSensorProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { Object3D, Scene } from 'three';
|
|
2
|
+
import { ElemPartType } from '../../../types/Elem.types';
|
|
3
|
+
import { DividerType } from '../../../types/divider.types';
|
|
2
4
|
export interface NeighborHit {
|
|
3
|
-
|
|
5
|
+
source: ElemPartType | DividerType;
|
|
6
|
+
elemType: ElemPartType | DividerType;
|
|
4
7
|
thk: number;
|
|
5
8
|
treeId: string;
|
|
6
9
|
}
|
|
@@ -16,4 +19,4 @@ export interface ScanResult {
|
|
|
16
19
|
* Works for doors in ANY position (Front, Back, Left, Right).
|
|
17
20
|
* Rotation-agnostic — operates in world space.
|
|
18
21
|
*/
|
|
19
|
-
export declare function scanNeighbors(
|
|
22
|
+
export declare function scanNeighbors(panelMesh: Object3D, scene: Scene): ScanResult;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Object3D, Scene } from 'three';
|
|
2
|
+
export interface NeighborHit {
|
|
3
|
+
elemType: string;
|
|
4
|
+
thk: number;
|
|
5
|
+
treeId: string;
|
|
6
|
+
}
|
|
7
|
+
export interface ScanResult {
|
|
8
|
+
left: NeighborHit | null;
|
|
9
|
+
right: NeighborHit | null;
|
|
10
|
+
top: NeighborHit | null;
|
|
11
|
+
bottom: NeighborHit | null;
|
|
12
|
+
debugHelpers?: Object3D[];
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Scan for neighbors using Box3 intersection.
|
|
16
|
+
* Works for doors in ANY position (Front, Back, Left, Right).
|
|
17
|
+
* Rotation-agnostic — operates in world space.
|
|
18
|
+
*/
|
|
19
|
+
export declare function scanNeighbors(panelMesh: Object3D, scene: Scene): ScanResult;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
import { ElemProps } from '../../../types/Elem.types';
|
|
2
|
-
|
|
2
|
+
declare const Back: import('react').NamedExoticComponent<ElemProps>;
|
|
3
|
+
export default Back;
|
|
@@ -1,2 +1,6 @@
|
|
|
1
1
|
import { ElemProps } from '../../../types/Elem.types';
|
|
2
|
-
|
|
2
|
+
import { CpDispatcherResult } from '../../../construction_principle/dto/cp-dispatcher.types';
|
|
3
|
+
declare const Bottom: import('react').NamedExoticComponent<ElemProps & {
|
|
4
|
+
bottomShelfCP?: CpDispatcherResult;
|
|
5
|
+
}>;
|
|
6
|
+
export default Bottom;
|
|
@@ -10,5 +10,5 @@ interface DividerProps {
|
|
|
10
10
|
view: VIEW;
|
|
11
11
|
remainingZone: ReturnType<typeof calculateRemainingZoneGeometry>;
|
|
12
12
|
}
|
|
13
|
-
|
|
14
|
-
export
|
|
13
|
+
declare const Divider: import('react').NamedExoticComponent<DividerProps>;
|
|
14
|
+
export default Divider;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { DimensionProps } from '../../../types/zone.types';
|
|
2
|
+
import { VIEW } from '../../../types/view.types';
|
|
3
|
+
import { DrawerZoneDataTypes } from '../../../types/data.types';
|
|
4
|
+
interface DrawerProps {
|
|
5
|
+
drawerZoneHelper: DrawerZoneDataTypes;
|
|
6
|
+
dimension: DimensionProps;
|
|
7
|
+
view: VIEW;
|
|
8
|
+
}
|
|
9
|
+
export default function Drawer({ drawerZoneHelper, dimension, view }: DrawerProps): import("react/jsx-runtime").JSX.Element[] | null;
|
|
10
|
+
export {};
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
import { ElemProps } from '../../../types/Elem.types';
|
|
2
|
-
|
|
2
|
+
declare const Left: import('react').NamedExoticComponent<ElemProps>;
|
|
3
|
+
export default Left;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
import { ElemProps } from '../../../types/Elem.types';
|
|
2
|
-
|
|
2
|
+
declare const Right: import('react').NamedExoticComponent<ElemProps>;
|
|
3
|
+
export default Right;
|
|
@@ -1,2 +1,6 @@
|
|
|
1
1
|
import { ElemProps } from '../../../types/Elem.types';
|
|
2
|
-
|
|
2
|
+
import { CpDispatcherResult } from '../../../construction_principle/dto/cp-dispatcher.types';
|
|
3
|
+
declare const Top: import('react').NamedExoticComponent<ElemProps & {
|
|
4
|
+
topShelfCP?: CpDispatcherResult;
|
|
5
|
+
}>;
|
|
6
|
+
export default Top;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { DimensionProps } from '../../../../../types/zone.types';
|
|
2
|
+
import { DrawerHelperResult } from '../../../../../construction_principle/drawer/DrawerHelper';
|
|
3
|
+
import { VIEW } from '../../../../../types/view.types';
|
|
4
|
+
export interface DrawerElem {
|
|
5
|
+
treeId: string;
|
|
6
|
+
dimension: DimensionProps;
|
|
7
|
+
drElems: DrawerHelperResult;
|
|
8
|
+
onset: boolean;
|
|
9
|
+
view: VIEW;
|
|
10
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { VIEW } from '../../../../types/view.types';
|
|
2
|
+
import { DataContextType, DrawerZoneDataTypes } from '../../../../types/data.types';
|
|
3
|
+
import { PositionedChild } from '../../../../types/zone.types';
|
|
4
|
+
interface DrawerItemProps {
|
|
5
|
+
child: PositionedChild;
|
|
6
|
+
index: number;
|
|
7
|
+
drawerZoneHelper: DrawerZoneDataTypes;
|
|
8
|
+
articleData: DataContextType;
|
|
9
|
+
view: VIEW;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Single drawer item component - handles hooks properly per drawer instance
|
|
13
|
+
*/
|
|
14
|
+
export default function DrawerItem({ child, index, drawerZoneHelper, articleData, view }: DrawerItemProps): import("react/jsx-runtime").JSX.Element | null | undefined;
|
|
15
|
+
export {};
|
package/dist/components/article_designer/zoneElems/sub_construction/LinearDividerRender.d.ts
CHANGED
|
@@ -10,5 +10,5 @@ interface DividerProps {
|
|
|
10
10
|
view: VIEW;
|
|
11
11
|
remainingZone: ReturnType<typeof calculateRemainingZoneGeometry>;
|
|
12
12
|
}
|
|
13
|
-
export declare
|
|
13
|
+
export declare const LinearDividerRender: import('react').NamedExoticComponent<DividerProps>;
|
|
14
14
|
export {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { RefObject } from 'react';
|
|
2
2
|
import { PDProps } from '../../types/pd.types';
|
|
3
|
+
import { PartTypeSource } from '../../construction_principle/dto/angl-type-config';
|
|
3
4
|
interface PD3DExtendedProps extends PDProps {
|
|
4
5
|
treeId?: string;
|
|
5
6
|
isSelected?: boolean;
|
|
@@ -11,7 +12,10 @@ interface PD3DExtendedProps extends PDProps {
|
|
|
11
12
|
endPanelThk?: number;
|
|
12
13
|
render_mat?: string;
|
|
13
14
|
meshRef?: RefObject<any>;
|
|
14
|
-
elemInfo?:
|
|
15
|
+
elemInfo?: {
|
|
16
|
+
source: PartTypeSource;
|
|
17
|
+
[key: string]: unknown;
|
|
18
|
+
};
|
|
15
19
|
}
|
|
16
|
-
|
|
17
|
-
export
|
|
20
|
+
export default function PD_3D({ length, width, thk, material, opacity, isSelected, isHovered, onClick, onPointerEnter, onPointerLeave, startPanelThk, endPanelThk, render_mat, meshRef, elemInfo }: PD3DExtendedProps): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { CanvasProps } from '../../types/canvas.types';
|
|
2
|
-
export default function Canvas3D({ data, articleList, debugMode, selectedIndex, onArticleSelect }: CanvasProps): import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export default function Canvas3D({ data, articleList, selectedArticleId, debugMode, selectedIndex, onArticleSelect }: CanvasProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { CanvasProps } from '../../types/canvas.types';
|
|
2
|
-
export default function CanvasManager({ data, articleList, debugMode, selectedIndex, onArticleSelect }: CanvasProps): import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export default function CanvasManager({ data, articleList, debugMode, selectedIndex, onArticleSelect, view }: CanvasProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function VisibilityPanel(): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ControlConfig } from '../../../types/configurator.types';
|
|
2
|
+
interface ConfiguratorProps {
|
|
3
|
+
controls: ControlConfig[];
|
|
4
|
+
selectedArticleId: string | null;
|
|
5
|
+
}
|
|
6
|
+
export default function Configurator({ controls, selectedArticleId }: ConfiguratorProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { CSSProperties } from 'react';
|
|
2
1
|
import { VAR_TYPE } from '../../../variables/variable.types';
|
|
3
2
|
export interface VariableGroup {
|
|
4
3
|
name: string;
|
|
5
4
|
variables: Array<{
|
|
6
5
|
name: string;
|
|
7
|
-
value: string | number;
|
|
6
|
+
value: string | number | boolean;
|
|
8
7
|
type: VAR_TYPE;
|
|
9
8
|
}>;
|
|
10
9
|
}
|
|
@@ -13,7 +12,5 @@ export interface VariablePanelProps {
|
|
|
13
12
|
groups: VariableGroup[];
|
|
14
13
|
onVariableChange: (name: string, value: string | number) => void;
|
|
15
14
|
onArticleNameChange?: (name: string) => void;
|
|
16
|
-
position?: 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
|
|
17
|
-
style?: CSSProperties;
|
|
18
15
|
}
|
|
19
|
-
export declare function VariablePanel({ articleName, groups, onVariableChange, onArticleNameChange,
|
|
16
|
+
export declare function VariablePanel({ articleName, groups, onVariableChange, onArticleNameChange, }: VariablePanelProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ControlConfig } from '../../../../types/configurator.types';
|
|
2
|
+
export interface MComboProps {
|
|
3
|
+
control: ControlConfig;
|
|
4
|
+
selectedArticleId: string;
|
|
5
|
+
currentValue: string | number | boolean;
|
|
6
|
+
}
|
|
7
|
+
export default function MCombo({ control, selectedArticleId, currentValue }: MComboProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ControlConfig } from '../../../../types/configurator.types';
|
|
2
|
+
interface MSliderProps {
|
|
3
|
+
control: ControlConfig;
|
|
4
|
+
selectedArticleId: string;
|
|
5
|
+
currentValue: number;
|
|
6
|
+
}
|
|
7
|
+
export default function MSlider({ control, selectedArticleId, currentValue }: MSliderProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ControlConfig } from '../../../../types/configurator.types';
|
|
2
|
+
interface MSwitchProps {
|
|
3
|
+
control: ControlConfig;
|
|
4
|
+
selectedArticleId: string;
|
|
5
|
+
currentValue: string | number | boolean;
|
|
6
|
+
}
|
|
7
|
+
export default function MSwitch({ control, selectedArticleId, currentValue }: MSwitchProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ConditionTreeResponse, TreeNode } from '../types/condition.types';
|
|
2
|
-
import { VariableTree } from '../../variables/VariableResolver';
|
|
3
2
|
export declare class ConditionTreeEvaluator {
|
|
4
|
-
static evaluateTree: (tree: ConditionTreeResponse, data: Record<string, unknown>,
|
|
5
|
-
static evaluateNode: (node: TreeNode, data: Record<string, unknown>,
|
|
3
|
+
static evaluateTree: (tree: ConditionTreeResponse, data: Record<string, unknown>, resolveVarRecursive: (str: string) => string) => boolean;
|
|
4
|
+
static evaluateNode: (node: TreeNode, data: Record<string, unknown>, resolveVarRecursive: (str: string) => string) => boolean;
|
|
6
5
|
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { KmsResult } from '../kms/KmsHelper';
|
|
2
2
|
import { DataContextType } from '../../types/data.types';
|
|
3
|
+
import { MatSurfContextValue } from '../../contexts/mat-surf/MatSurfContext';
|
|
3
4
|
export interface BackPanelResult {
|
|
4
5
|
kms: KmsResult | undefined;
|
|
5
6
|
inset: string;
|
|
6
7
|
}
|
|
7
|
-
export declare function CabBackHelper(articleData: DataContextType, NAME: string): BackPanelResult | undefined;
|
|
8
|
+
export declare function CabBackHelper(resolveVarRecursive: (str: string) => string, matSurfContext: MatSurfContextValue, articleData: DataContextType, NAME: string): BackPanelResult | undefined;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { KmsResult } from '../kms/KmsHelper';
|
|
2
2
|
import { DataContextType } from '../../types/data.types';
|
|
3
|
+
import { MatSurfContextValue } from '../../contexts/mat-surf/MatSurfContext';
|
|
3
4
|
export interface ShelfResult {
|
|
4
5
|
kms: KmsResult | undefined;
|
|
5
6
|
}
|
|
6
|
-
export default function CabinHelper(articleData: DataContextType, NAME: string): ShelfResult | undefined;
|
|
7
|
+
export default function CabinHelper(resolveVarRecursive: (str: string) => string, matSurfContext: MatSurfContextValue, articleData: DataContextType, NAME: string): ShelfResult | undefined;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { KmsResult } from '../kms/KmsHelper';
|
|
2
2
|
import { DataContextType } from '../../types/data.types';
|
|
3
3
|
import { DoorTypes } from './door.types';
|
|
4
|
+
import { MatSurfContextValue } from '../../contexts/mat-surf/MatSurfContext';
|
|
4
5
|
export interface DoorResult extends Omit<DoorTypes, 'kmsLeft' | 'kmsRight'> {
|
|
5
6
|
kmsL: KmsResult | undefined;
|
|
6
7
|
kmsR: KmsResult | undefined;
|
|
7
8
|
}
|
|
8
|
-
export default function DoorHelper(articleData: DataContextType, NAME: string): DoorResult | undefined;
|
|
9
|
+
export default function DoorHelper(resolveVarRecursive: (str: string) => string, matSurfContext: MatSurfContextValue, articleData: DataContextType, NAME: string): DoorResult | undefined;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { DataContextType } from '../../types/data.types';
|
|
2
|
+
import { KmsResult } from '../kms/KmsHelper';
|
|
3
|
+
import { MatSurfContextValue } from '../../contexts/mat-surf/MatSurfContext';
|
|
4
|
+
interface DrCpResult {
|
|
5
|
+
kms?: KmsResult;
|
|
6
|
+
inset: number;
|
|
7
|
+
}
|
|
8
|
+
export interface DrawerHelperResult {
|
|
9
|
+
bottom: DrCpResult;
|
|
10
|
+
front: DrCpResult;
|
|
11
|
+
left: DrCpResult;
|
|
12
|
+
back: DrCpResult;
|
|
13
|
+
right: DrCpResult;
|
|
14
|
+
}
|
|
15
|
+
export default function DrawerHelper(resolveVarRecursive: (str: string) => string, matSurfContext: MatSurfContextValue, articleData: DataContextType, NAME: string): DrawerHelperResult | undefined;
|
|
16
|
+
export {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { DividerType } from '../../types/divider.types';
|
|
2
2
|
import { ElemPartType } from '../../types/Elem.types';
|
|
3
|
-
|
|
3
|
+
import { DrawerType } from '../drawer/dto/drawer.types';
|
|
4
|
+
export type PartTypeSource = 'elem' | 'divider' | 'drawer';
|
|
4
5
|
export declare const ElemCabinTypes: Set<ElemPartType>;
|
|
5
6
|
export declare const ElemCSideTypes: Set<ElemPartType>;
|
|
6
7
|
export declare const ElemCabBackTypes: Set<ElemPartType>;
|
|
@@ -8,7 +9,8 @@ export declare const ElemDoorTypes: Set<ElemPartType>;
|
|
|
8
9
|
export declare const DividerCabinTypes: Set<DividerType>;
|
|
9
10
|
export declare const DividerCSideTypes: Set<DividerType>;
|
|
10
11
|
export declare const DividerCabBackTypes: Set<DividerType>;
|
|
11
|
-
export declare const isCabinType: (type: ElemPartType | DividerType, source: PartTypeSource) => boolean;
|
|
12
|
-
export declare const isCSideType: (type: ElemPartType | DividerType, source: PartTypeSource) => boolean;
|
|
13
|
-
export declare const isCabBackType: (type: ElemPartType | DividerType, source: PartTypeSource) => boolean;
|
|
14
|
-
export declare const isDoorType: (type: ElemPartType | DividerType, source: PartTypeSource) => boolean;
|
|
12
|
+
export declare const isCabinType: (type: ElemPartType | DividerType | DrawerType, source: PartTypeSource) => boolean;
|
|
13
|
+
export declare const isCSideType: (type: ElemPartType | DividerType | DrawerType, source: PartTypeSource) => boolean;
|
|
14
|
+
export declare const isCabBackType: (type: ElemPartType | DividerType | DrawerType, source: PartTypeSource) => boolean;
|
|
15
|
+
export declare const isDoorType: (type: ElemPartType | DividerType | DrawerType, source: PartTypeSource) => boolean;
|
|
16
|
+
export declare const isDrawerType: (source: PartTypeSource) => boolean;
|
|
@@ -3,6 +3,8 @@ import { SidePanelResult } from '../side_panel/CSideHelper';
|
|
|
3
3
|
import { BackPanelResult } from '../cabBack/CabBackHelper';
|
|
4
4
|
import { DoorResult } from '../door/DoorHelper';
|
|
5
5
|
import { ShelfResult } from '../cabin/CabinHelper';
|
|
6
|
+
import { DrawerHelperResult } from '../drawer/DrawerHelper';
|
|
7
|
+
import { DrawerType } from '../drawer/dto/drawer.types';
|
|
6
8
|
export type CpDispatcherResult = {
|
|
7
9
|
name: string;
|
|
8
10
|
type: ElemPartType.SidePanel;
|
|
@@ -23,7 +25,14 @@ export type CpDispatcherResult = {
|
|
|
23
25
|
type: ElemPartType.Shelf;
|
|
24
26
|
props: ShelfResult | undefined;
|
|
25
27
|
thk: number;
|
|
28
|
+
} | {
|
|
29
|
+
name: string;
|
|
30
|
+
type: DrawerType.Drawer;
|
|
31
|
+
props: DrawerHelperResult | undefined;
|
|
32
|
+
thk: number;
|
|
26
33
|
};
|
|
34
|
+
export declare function isCpDescriptor(cpName: string): boolean;
|
|
35
|
+
export declare function isCpVariable(cpName: string): boolean;
|
|
27
36
|
export declare function isSidePanel(cp: CpDispatcherResult | undefined): cp is {
|
|
28
37
|
name: string;
|
|
29
38
|
type: ElemPartType.SidePanel;
|
|
@@ -48,3 +57,9 @@ export declare function isShelf(cp: CpDispatcherResult | undefined): cp is {
|
|
|
48
57
|
props: ShelfResult;
|
|
49
58
|
thk: number;
|
|
50
59
|
};
|
|
60
|
+
export declare function isDrawer(cp: CpDispatcherResult | undefined): cp is {
|
|
61
|
+
name: string;
|
|
62
|
+
type: DrawerType.Drawer;
|
|
63
|
+
props: DrawerHelperResult;
|
|
64
|
+
thk: number;
|
|
65
|
+
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { MatResult } from '../material/MatHelper';
|
|
2
2
|
import { SurfResult } from '../surface/SurfHelper';
|
|
3
3
|
import { DataContextType } from '../../types/data.types';
|
|
4
|
+
import { MatSurfContextValue } from '../../contexts/mat-surf/MatSurfContext';
|
|
4
5
|
export interface KmsResult {
|
|
5
6
|
name: string;
|
|
6
7
|
material: MatResult | undefined;
|
|
@@ -9,4 +10,4 @@ export interface KmsResult {
|
|
|
9
10
|
render: string | undefined;
|
|
10
11
|
thk: number;
|
|
11
12
|
}
|
|
12
|
-
export default function
|
|
13
|
+
export default function KmsHelper(resolveVarRecursive: (str: string) => string, matSurfContext: MatSurfContextValue, articleData: DataContextType, NAME: string): KmsResult | undefined;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { RenderResult } from '../render/RenderHelper';
|
|
2
|
+
import { MatSurfContextValue } from '../../contexts/mat-surf/MatSurfContext';
|
|
2
3
|
import { MaterialTypes } from './material.types';
|
|
3
4
|
export interface MatResult extends MaterialTypes {
|
|
4
5
|
renderInfo: RenderResult;
|
|
5
6
|
}
|
|
6
|
-
export default function MatHelper(materialName: string): MatResult | undefined;
|
|
7
|
+
export default function MatHelper(resolveVarRecursive: (str: string) => string, matSurfContext: MatSurfContextValue, materialName: string): MatResult | undefined;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { KmsResult } from '../kms/KmsHelper';
|
|
2
2
|
import { DataContextType } from '../../types/data.types';
|
|
3
|
+
import { MatSurfContextValue } from '../../contexts/mat-surf/MatSurfContext';
|
|
3
4
|
export interface SidePanelResult {
|
|
4
5
|
kms: KmsResult | undefined;
|
|
5
6
|
}
|
|
6
|
-
export default function CSideHelper(articleData: DataContextType, NAME: string): SidePanelResult | undefined;
|
|
7
|
+
export default function CSideHelper(resolveVarRecursive: (str: string) => string, matSurfContext: MatSurfContextValue, articleData: DataContextType, NAME: string): SidePanelResult | undefined;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { RenderResult } from '../render/RenderHelper';
|
|
2
|
+
import { MatSurfContextValue } from '../../contexts/mat-surf/MatSurfContext';
|
|
2
3
|
import { SurfaceTypes } from './surface.types';
|
|
3
4
|
export interface SurfResult extends SurfaceTypes {
|
|
4
5
|
renderInfo: RenderResult;
|
|
5
6
|
}
|
|
6
|
-
export default function SurfHelper(surfaceName: string): SurfResult | undefined;
|
|
7
|
+
export default function SurfHelper(resolveVarRecursive: (str: string) => string, matSurfContext: MatSurfContextValue, surfaceName: string): SurfResult | undefined;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { DescriptorManager } from '../../descriptor/services/DescriptorManager';
|
|
2
2
|
import { DescriptorEvaluationResult, DescriptorNode } from '../../descriptor/types/descriptor.types';
|
|
3
3
|
import { DescriptorTypeValue } from '../../descriptor/types/descriptor-data.types';
|
|
4
|
-
import { VariableTree } from '../../variables/VariableResolver';
|
|
5
4
|
export interface UseDescriptorOptions {
|
|
6
5
|
/** Throw error if descriptor not found (default: false) */
|
|
7
6
|
throwOnError?: boolean;
|
|
@@ -14,7 +13,7 @@ export interface UseDescriptorResult<T extends DescriptorTypeValue> {
|
|
|
14
13
|
/** Whether evaluation was successful */
|
|
15
14
|
success: boolean;
|
|
16
15
|
}
|
|
17
|
-
export declare function useDescriptorEvaluation<T extends DescriptorTypeValue = DescriptorTypeValue>(manager: DescriptorManager, descriptorName: string | undefined, inputData: Record<string, unknown>, options: UseDescriptorOptions | undefined,
|
|
16
|
+
export declare function useDescriptorEvaluation<T extends DescriptorTypeValue = DescriptorTypeValue>(manager: DescriptorManager, descriptorName: string | undefined, inputData: Record<string, unknown>, options: UseDescriptorOptions | undefined, resolveVarRecursive: (str: string) => string): UseDescriptorResult<T>;
|
|
18
17
|
export interface UseDescriptorMatchesResult {
|
|
19
18
|
/** All matching nodes */
|
|
20
19
|
matches: DescriptorNode[];
|
|
@@ -23,7 +22,7 @@ export interface UseDescriptorMatchesResult {
|
|
|
23
22
|
/** Number of matches found */
|
|
24
23
|
count: number;
|
|
25
24
|
}
|
|
26
|
-
export declare function useDescriptorMatches(manager: DescriptorManager, descriptorName: string, inputData: Record<string, unknown>,
|
|
25
|
+
export declare function useDescriptorMatches(manager: DescriptorManager, descriptorName: string | undefined, inputData: Record<string, unknown>, resolveVarRecursive: (str: string) => string): UseDescriptorMatchesResult;
|
|
27
26
|
export declare function useDescriptorExists(manager: DescriptorManager, descriptorName: string): boolean;
|
|
28
27
|
export interface UseDescriptorListOptions {
|
|
29
28
|
/** Filter by descriptor type */
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare const configuratorFields: ({
|
|
2
|
+
label: string;
|
|
3
|
+
fieldType: string;
|
|
4
|
+
varName: string[];
|
|
5
|
+
checked: number;
|
|
6
|
+
unchecked: number;
|
|
7
|
+
min?: undefined;
|
|
8
|
+
max?: undefined;
|
|
9
|
+
} | {
|
|
10
|
+
label: string;
|
|
11
|
+
fieldType: string;
|
|
12
|
+
varName: string[];
|
|
13
|
+
min: number;
|
|
14
|
+
max: number;
|
|
15
|
+
checked?: undefined;
|
|
16
|
+
unchecked?: undefined;
|
|
17
|
+
})[];
|