@processandtools/rp-article-designer 1.0.33 → 1.0.35

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.
Files changed (84) hide show
  1. package/README.md +0 -0
  2. package/dist/components/article_designer/ArticleDesigner.d.ts +2 -2
  3. package/dist/components/article_designer/ArticleGroupLayout.d.ts +1 -1
  4. package/dist/components/article_designer/Designer.d.ts +4 -2
  5. package/dist/components/article_designer/Zone.d.ts +1 -1
  6. package/dist/components/article_designer/zoneElems/Back.d.ts +1 -1
  7. package/dist/components/article_designer/zoneElems/Bottom.d.ts +1 -1
  8. package/dist/components/article_designer/zoneElems/Divider.d.ts +2 -1
  9. package/dist/components/article_designer/zoneElems/Front.d.ts +1 -1
  10. package/dist/components/article_designer/zoneElems/Left.d.ts +1 -1
  11. package/dist/components/article_designer/zoneElems/Right.d.ts +1 -1
  12. package/dist/components/article_designer/zoneElems/Top.d.ts +1 -1
  13. package/dist/components/article_designer/zoneElems/sub_construction/LinearDividerRender.d.ts +2 -1
  14. package/dist/components/elements_manager/PD_2D.d.ts +2 -3
  15. package/dist/components/ui/Canvas2D.d.ts +1 -1
  16. package/dist/components/ui/DimensionControl.d.ts +1 -1
  17. package/dist/components/ui/controls/ControlPanel.d.ts +8 -0
  18. package/dist/components/ui/controls/ControlPanel2D.d.ts +2 -0
  19. package/dist/components/ui/controls/ControlPanel3D.d.ts +2 -0
  20. package/dist/components/ui/controls/VariableController.d.ts +7 -0
  21. package/dist/components/ui/controls/VariableControllerWrapper.d.ts +12 -0
  22. package/dist/components/ui/controls/VariablePanel.d.ts +19 -0
  23. package/dist/components/ui/controls/VariablePanel2D.d.ts +2 -0
  24. package/dist/components/ui/controls/VariablePanel3D.d.ts +2 -0
  25. package/dist/components/ui/controls/ZoomControls.d.ts +8 -0
  26. package/dist/components/ui/test/LevaVariableController.d.ts +7 -1
  27. package/dist/components/ui/test/LevaVisibilityController.d.ts +11 -0
  28. package/dist/construction_principle/back_panel/BackPanelHelper.d.ts +7 -0
  29. package/dist/construction_principle/back_panel/cabback.types.d.ts +5 -0
  30. package/dist/construction_principle/cabin/ShelfHelper.d.ts +6 -0
  31. package/dist/construction_principle/door/DoorHelper.d.ts +8 -0
  32. package/dist/construction_principle/door/door.types.d.ts +9 -0
  33. package/dist/construction_principle/dto/cp.types.d.ts +55 -0
  34. package/dist/construction_principle/kms/KmsHelper.d.ts +9 -47
  35. package/dist/construction_principle/material/MatHelper.d.ts +6 -15
  36. package/dist/construction_principle/render/RenderHelper.d.ts +4 -6
  37. package/dist/construction_principle/side_panel/CSideHelper.d.ts +6 -54
  38. package/dist/construction_principle/surface/SurfHelper.d.ts +6 -15
  39. package/dist/contexts/article-data/useData.d.ts +1 -0
  40. package/dist/{hooks → contexts/descriptor}/useDescriptor.d.ts +5 -5
  41. package/dist/contexts/descriptor/useDescriptorManager.d.ts +2 -0
  42. package/dist/contexts/dimension/DimensionContext.d.ts +6 -0
  43. package/dist/contexts/dimension/DimensionProvider.d.ts +6 -0
  44. package/dist/contexts/dimension/useDimensions.d.ts +1 -0
  45. package/dist/data/articles.d.ts +14 -0
  46. package/dist/helpers/CpDispatcher.d.ts +3 -55
  47. package/dist/helpers/ZoneCalculations.d.ts +5 -243
  48. package/dist/helpers/angls/UseClieHelper.d.ts +1 -1
  49. package/dist/helpers/angls/UseElemHelper.d.ts +2 -59
  50. package/dist/helpers/angls/UseGrtxHelper.d.ts +1 -1
  51. package/dist/helpers/angls/UsePrimHelper.d.ts +5 -3
  52. package/dist/helpers/angls/UseZoneHelper.d.ts +6 -113
  53. package/dist/hooks/zoneDivider.d.ts +13 -0
  54. package/dist/index.cjs +1 -1
  55. package/dist/index.cjs.map +1 -1
  56. package/dist/index.d.ts +7 -8
  57. package/dist/index.js +1 -1
  58. package/dist/index.js.map +1 -1
  59. package/dist/rp-article-designer.css +1 -1
  60. package/dist/services/GenericApi.d.ts +1 -0
  61. package/dist/types/article-group.types.d.ts +2 -1
  62. package/dist/types/data.types.d.ts +15 -5
  63. package/dist/types/divider.types.d.ts +7 -19
  64. package/dist/types/zone.types.d.ts +1 -0
  65. package/dist/variables/VariableResolver.d.ts +1 -0
  66. package/dist/variables/useVariables.d.ts +2 -1
  67. package/dist/vite.svg +0 -0
  68. package/package.json +4 -1
  69. package/dist/components/ui/controls/VarController.d.ts +0 -1
  70. package/dist/components/ui/test/DataFieldsViewer.d.ts +0 -8
  71. package/dist/components/ui/test/GeneralTester.d.ts +0 -1
  72. package/dist/components/ui/test/MyParser.d.ts +0 -1
  73. package/dist/components/ui/test/PropertiesPanel.d.ts +0 -1
  74. package/dist/components/ui/test/TestImageRender.d.ts +0 -1
  75. package/dist/construction_principle/cabin/CabinHelper.d.ts +0 -52
  76. package/dist/contexts/article/ArticleContext.d.ts +0 -7
  77. package/dist/contexts/article/ArticleProvider.d.ts +0 -7
  78. package/dist/hooks/useArticle.d.ts +0 -1
  79. package/dist/hooks/useData.d.ts +0 -1
  80. package/dist/hooks/useDescriptorManager.d.ts +0 -2
  81. package/dist/hooks/useZoneSelection.d.ts +0 -12
  82. package/dist/hooks/zoneDescriptor.d.ts +0 -92
  83. package/dist/types/cp.types.d.ts +0 -13
  84. /package/dist/{hooks → contexts/mat-surf}/useMaterialLoader.d.ts +0 -0
@@ -1 +1 @@
1
- .leva-c-kWgxhW{width:450px!important;max-height:80vh!important;font-size:12px!important}.leva-c-kWgxhW{position:fixed!important;top:20px!important;right:20px!important}.leva-c-lfSEqC{font-size:13px!important;font-weight:600!important;padding:8px 10px!important}.leva-c-guFiPV{min-width:60px!important}.leva-c-kJFgFS{min-width:150px!important}.leva-c-bXZCSs{width:100px!important}.leva-c-jUkAsD{min-height:28px!important}.leva-c-kWgxhW{background:#000000d9!important;-webkit-backdrop-filter:blur(10px)!important;backdrop-filter:blur(10px)!important}.leva-c-kWgxhW::-webkit-scrollbar{width:8px}.leva-c-kWgxhW::-webkit-scrollbar-track{background:#ffffff1a}.leva-c-kWgxhW::-webkit-scrollbar-thumb{background:#ffffff4d;border-radius:4px}.leva-c-kWgxhW::-webkit-scrollbar-thumb:hover{background:#ffffff80}.var-controller__range-info{font-size:11px;color:#666;margin-top:2px}.var-controller__numeric-control{display:flex;align-items:center;gap:10px}.var-controller__number-input{padding:4px 8px;border:1px solid #ddd;border-radius:4px;width:80px}.var-controller{padding:20px;font-family:monospace;max-width:1200px;margin:0 auto}.var-controller__header{color:#666;margin-bottom:20px}.var-controller__section{margin-bottom:30px;border:2px solid #333;border-radius:8px;padding:15px;background-color:#f9f9f9}.var-controller__section-title{margin-top:0;border-bottom:1px solid #ccc;padding-bottom:10px}.var-controller__table{width:100%;border-collapse:collapse}.var-controller__table thead tr{background-color:#e0e0e0}.var-controller__table th{padding:8px;text-align:left}.var-controller__table th.center{text-align:center}.var-controller__table tbody tr{border-bottom:1px solid #ddd}.var-controller__table tbody tr:nth-child(2n){background-color:#f5f5f5}.var-controller__table tbody tr:nth-child(odd){background-color:#fff}.var-controller__table td{padding:8px}.var-controller__var-name{font-weight:700}.var-controller__value--reference{color:#007bff}.var-controller__reference{color:#666;font-size:.9em}.var-controller__type-badge{padding:2px 8px;border-radius:4px;background-color:#e0e0e0;font-size:.85em}.var-controller__slider-container{display:flex;align-items:center;gap:10px}.var-controller__slider{flex:1;height:6px;border-radius:3px;background:#d3d3d3;outline:none;-webkit-appearance:none}.var-controller__slider::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:18px;height:18px;border-radius:50%;background:#007bff;cursor:pointer}.var-controller__slider::-moz-range-thumb{width:18px;height:18px;border-radius:50%;background:#007bff;cursor:pointer;border:none}.var-controller__slider-value{min-width:60px;text-align:right;font-weight:700;color:#007bff}.var-controller__text-input{width:100%;padding:4px;border:2px solid #007bff;border-radius:4px}.var-controller__btn{padding:4px 12px;border:none;border-radius:4px;cursor:pointer;font-size:.9em}.var-controller__btn--edit{background-color:#007bff;color:#fff}.var-controller__btn--save{background-color:#28a745;color:#fff;margin-right:4px}.var-controller__btn--cancel{background-color:#dc3545;color:#fff}.var-controller__btn:hover{opacity:.9}.var-controller__stats{padding:15px;background-color:#e8f4f8;border-radius:8px;margin-top:20px}.var-controller__stats h4{margin-top:0}.var-controller__stats ul{margin:0;padding-left:20px}
1
+ .leva-c-kWgxhW{width:450px!important;max-height:80vh!important;font-size:12px!important}.leva-c-kWgxhW{position:fixed!important;top:20px!important;right:20px!important}.leva-c-lfSEqC{font-size:13px!important;font-weight:600!important;padding:8px 10px!important}.leva-c-guFiPV{min-width:60px!important}.leva-c-kJFgFS{min-width:150px!important}.leva-c-bXZCSs{width:100px!important}.leva-c-jUkAsD{min-height:28px!important}.leva-c-kWgxhW{background:#000000d9!important;-webkit-backdrop-filter:blur(10px)!important;backdrop-filter:blur(10px)!important}.leva-c-kWgxhW::-webkit-scrollbar{width:8px}.leva-c-kWgxhW::-webkit-scrollbar-track{background:#ffffff1a}.leva-c-kWgxhW::-webkit-scrollbar-thumb{background:#ffffff4d;border-radius:4px}.leva-c-kWgxhW::-webkit-scrollbar-thumb:hover{background:#ffffff80}
@@ -10,4 +10,5 @@ export declare class GenericAPI<T> {
10
10
  * Fetch bulk data by values array (POST)
11
11
  */
12
12
  fetchBulk(values: string[]): Promise<T | undefined>;
13
+ private parseResponse;
13
14
  }
@@ -2,5 +2,6 @@ import { DimensionProps } from './zone.types';
2
2
  export interface ArticleGroupTypes {
3
3
  name: string;
4
4
  dimensions: DimensionProps;
5
- variables: Record<string, string | number>;
5
+ visibility?: boolean;
6
+ variables?: Record<string, string | number>;
6
7
  }
@@ -6,7 +6,9 @@ import { KmsTypes } from '../construction_principle/kms/kms.types';
6
6
  import { MaterialTypes } from '../construction_principle/material/material.types';
7
7
  import { SurfaceTypes } from '../construction_principle/surface/surface.types';
8
8
  import { CabinTypes } from '../construction_principle/cabin/cabin.types';
9
- import { CPTypeCode } from './cp.types';
9
+ import { DoorTypes } from '../construction_principle/door/door.types';
10
+ import { CabbackTypes } from '../construction_principle/back_panel/cabback.types';
11
+ import { CPTypeCode } from '../construction_principle/dto/cp.types';
10
12
  export interface AngleElem {
11
13
  NAME: string;
12
14
  TREEID: string;
@@ -71,9 +73,11 @@ export interface DataContextType {
71
73
  anglPrims: AnglPrim[];
72
74
  anglClies: AnglClie[];
73
75
  anglGrtxs: AnglGrtx[];
76
+ cabins: CabinTypes[];
74
77
  csides: CsideTypes[];
78
+ doors: DoorTypes[];
79
+ cabbacks: CabbackTypes[];
75
80
  kmsList: KmsTypes[];
76
- cabins: CabinTypes[];
77
81
  variables: ImosVariable[];
78
82
  selectedElem: string | null;
79
83
  setSelectedElem: (elemId: string | null) => void;
@@ -90,8 +94,10 @@ export interface DataContextType {
90
94
  anglPrims: AnglPrim[];
91
95
  anglClies: AnglClie[];
92
96
  anglGrtxs: AnglGrtx[];
93
- csides: CsideTypes[];
94
97
  cabins: CabinTypes[];
98
+ csides: CsideTypes[];
99
+ doors: DoorTypes[];
100
+ cabbacks: CabbackTypes[];
95
101
  variables: ImosVariable[];
96
102
  };
97
103
  allData: {
@@ -100,9 +106,11 @@ export interface DataContextType {
100
106
  anglprim: AnglPrim[];
101
107
  anglclie: AnglClie[];
102
108
  anglgrtx: AnglGrtx[];
109
+ cabin: CabinTypes[];
103
110
  cside: CsideTypes[];
111
+ door: DoorTypes[];
112
+ cabback: CabbackTypes[];
104
113
  kms: KmsTypes[];
105
- cabin: CabinTypes[];
106
114
  };
107
115
  }
108
116
  export interface ArticleData {
@@ -113,9 +121,11 @@ export interface ArticleData {
113
121
  anglgrtx: AnglGrtx[];
114
122
  descriptors: DescriptorResponse[];
115
123
  variables: ImosVariable[];
124
+ cabin?: CabinTypes[];
116
125
  cside?: CsideTypes[];
126
+ door?: DoorTypes[];
127
+ cabback?: CabbackTypes[];
117
128
  kms?: KmsTypes[];
118
- cabin?: CabinTypes[];
119
129
  materials?: MaterialTypes[];
120
130
  surfaces?: SurfaceTypes[];
121
131
  }
@@ -3,7 +3,7 @@ import { DimensionProps } from './zone.types';
3
3
  export type DivisionDirection = 'A' | 'D' | 'H' | 'I' | 'V';
4
4
  export type HorizontalDefType = '2' | 'A' | 'D' | 'P' | 'W';
5
5
  export type DividerType = 'A' | 'B' | 'C' | 'D' | 'F' | 'P' | 'S' | 'T' | 'V';
6
- type DividerProps = Pick<AnglZone, 'TREEID' | 'DIVDIR' | 'DIVTYPE' | 'HORDEFTYPE' | 'LINDIV1' | 'DIVELEM1' | 'DIVIDER'>;
6
+ type DividerProps = Pick<AnglZone, 'NAME' | 'TREEID' | 'DIVDIR' | 'DIVTYPE' | 'HORDEFTYPE' | 'LINDIV1' | 'DIVELEM1' | 'DIVIDER'>;
7
7
  export declare const DividerTypeConst: {
8
8
  readonly LINEAR_DIVISION: "linear-division";
9
9
  readonly ARTICLE: "article";
@@ -13,39 +13,33 @@ export declare const ValueSourceConst: {
13
13
  readonly DESCRIPTOR: "descriptor";
14
14
  };
15
15
  interface BaseDivider {
16
+ NAME: string;
16
17
  TREEID: string;
17
18
  DIVDIR: DivisionDirection;
18
19
  DIVTYPE: DividerType;
19
20
  HORDEFTYPE: HorizontalDefType;
20
21
  LINDIV1: string;
21
22
  DIVELEM1: number;
23
+ DIVIDER: string;
22
24
  }
23
25
  export interface LinearDivisionString extends BaseDivider {
24
26
  type: typeof DividerTypeConst.LINEAR_DIVISION;
25
27
  valueSource: typeof ValueSourceConst.STRING;
26
- DIVIDER: '';
27
- formula: string;
28
28
  thickness: number;
29
29
  }
30
30
  export interface LinearDivisionDescriptor extends BaseDivider {
31
31
  type: typeof DividerTypeConst.LINEAR_DIVISION;
32
32
  valueSource: typeof ValueSourceConst.DESCRIPTOR;
33
- DIVIDER: '';
34
- descriptorName: string;
35
33
  thickness: number;
36
34
  }
37
35
  export type LinearDivisionMode = LinearDivisionString | LinearDivisionDescriptor;
38
36
  export interface ArticleString extends BaseDivider {
39
37
  type: typeof DividerTypeConst.ARTICLE;
40
38
  valueSource: typeof ValueSourceConst.STRING;
41
- DIVIDER: string;
42
- articleName: string;
43
39
  }
44
40
  export interface ArticleDescriptor extends BaseDivider {
45
41
  type: typeof DividerTypeConst.ARTICLE;
46
42
  valueSource: typeof ValueSourceConst.DESCRIPTOR;
47
- DIVIDER: string;
48
- descriptorName: string;
49
43
  }
50
44
  export type ArticleMode = ArticleString | ArticleDescriptor;
51
45
  export type DividerMode = LinearDivisionMode | ArticleMode;
@@ -62,18 +56,12 @@ export declare const isArticle: {
62
56
  descriptor: (divider: DividerMode) => divider is ArticleDescriptor;
63
57
  };
64
58
  export declare const createDivider: {
65
- linearDivisionString(TREEID: string, DIVDIR: DivisionDirection, DIVTYPE: DividerType, HORDEFTYPE: HorizontalDefType, LINDIV1: string, DIVELEM1: number, formula: string, thickness: number): LinearDivisionString;
66
- linearDivisionDescriptor(TREEID: string, DIVDIR: DivisionDirection, DIVTYPE: DividerType, HORDEFTYPE: HorizontalDefType, LINDIV1: string, DIVELEM1: number, descriptorName: string, thickness: number): LinearDivisionDescriptor;
67
- articleString(TREEID: string, DIVDIR: DivisionDirection, DIVTYPE: DividerType, HORDEFTYPE: HorizontalDefType, LINDIV1: string, DIVELEM1: number, articleName: string): ArticleString;
68
- articleDescriptor(TREEID: string, DIVDIR: DivisionDirection, DIVTYPE: DividerType, HORDEFTYPE: HorizontalDefType, LINDIV1: string, DIVELEM1: number, descriptorName: string): ArticleDescriptor;
59
+ linearDivisionString(NAME: string, TREEID: string, DIVDIR: DivisionDirection, DIVTYPE: DividerType, HORDEFTYPE: HorizontalDefType, LINDIV1: string, DIVELEM1: number, DIVIDER: string, thickness: number): LinearDivisionString;
60
+ linearDivisionDescriptor(NAME: string, TREEID: string, DIVDIR: DivisionDirection, DIVTYPE: DividerType, HORDEFTYPE: HorizontalDefType, LINDIV1: string, DIVELEM1: number, DIVIDER: string, thickness: number): LinearDivisionDescriptor;
61
+ articleString(NAME: string, TREEID: string, DIVDIR: DivisionDirection, DIVTYPE: DividerType, HORDEFTYPE: HorizontalDefType, LINDIV1: string, DIVIDER: string, DIVELEM1: number): ArticleString;
62
+ articleDescriptor(NAME: string, TREEID: string, DIVDIR: DivisionDirection, DIVTYPE: DividerType, HORDEFTYPE: HorizontalDefType, LINDIV1: string, DIVIDER: string, DIVELEM1: number): ArticleDescriptor;
69
63
  fromZoneData(divProps: DividerProps, thickness: number): DividerMode;
70
64
  };
71
- export declare function getArticleName(divider: DividerMode): string | undefined;
72
- export declare function getArticleDescriptorName(divider: DividerMode): string | undefined;
73
- export declare function getFormula(divider: DividerMode): string | undefined;
74
- export declare function getLinearDescriptorName(divider: DividerMode): string | undefined;
75
- export declare function needsDescriptorEvaluation(divider: DividerMode): boolean;
76
- export declare function getDescriptorName(divider: DividerMode): string | undefined;
77
65
  export declare function getDividedAxis(divider?: DividerMode): 'width' | 'depth' | 'height';
78
66
  export declare function getDividedLength(axis: 'width' | 'depth' | 'height', dimensions?: DimensionProps): number;
79
67
  export declare function isHorizontalDivision(divider: DividerMode): boolean;
@@ -1,5 +1,6 @@
1
1
  import { VIEW } from './view.types';
2
2
  export interface ZoneProps {
3
+ articleName: string;
3
4
  view?: VIEW;
4
5
  TREEID: string;
5
6
  dimension: {
@@ -17,6 +17,7 @@ export declare function setValue(varName: string, newValue: string | number, tre
17
17
  * Resolve variables in a string (e.g., "1:$VAR_M1 mm" → "1:300 mm")
18
18
  */
19
19
  export declare function resolveString(str: string, tree: VariableTree): string;
20
+ export declare function resolveRecursive(str: string, tree: VariableTree, maxDepth?: number): string;
20
21
  /**
21
22
  * Check if a string contains variable references
22
23
  */
@@ -5,7 +5,8 @@
5
5
  export declare function useVariables(): {
6
6
  tree: import('./VariableResolver.ts').VariableTree;
7
7
  getValue: (name: string) => string | number | undefined;
8
- resolveString: (str: string) => string;
8
+ resolveVar: (str: string) => string;
9
+ resolveVarRecursive: (str: string) => string;
9
10
  hasVariables: (str: string) => boolean;
10
11
  setVarValue: (name: string, value: string | number) => void;
11
12
  };
package/dist/vite.svg CHANGED
File without changes
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@processandtools/rp-article-designer",
3
3
  "private": false,
4
- "version": "1.0.33",
4
+ "version": "1.0.35",
5
5
  "author": "Otman Abid Lmerabetine",
6
6
  "license": "MIT",
7
7
  "type": "module",
@@ -36,6 +36,8 @@
36
36
  "dev": "vite",
37
37
  "build": "tsc -b && vite build",
38
38
  "build:lib": "vite build --mode production",
39
+ "build:app": "vite build --mode app",
40
+ "build:app:protected": "vite build --mode app && npx javascript-obfuscator dist --output dist --disable-console-output false",
39
41
  "build:protected": "vite build --mode production && npx javascript-obfuscator dist --output dist --disable-console-output false",
40
42
  "lint": "eslint .",
41
43
  "preview": "vite preview",
@@ -60,6 +62,7 @@
60
62
  "react": ">=16.0.0",
61
63
  "react-dom": ">=16.0.0",
62
64
  "react-use": "^17.6.0",
65
+ "react-zoom-pan-pinch": "^3.7.0",
63
66
  "three": ">=0.150.0"
64
67
  },
65
68
  "devDependencies": {
@@ -1 +0,0 @@
1
- export default function VarController(): import("react/jsx-runtime").JSX.Element;
@@ -1,8 +0,0 @@
1
- import { ConditionTreeResponse } from '../../../conditions/types/condition.types';
2
- interface DataFieldsViewerProps {
3
- data: Record<string, any>;
4
- onDataChange: (newData: Record<string, any>) => void;
5
- tree?: ConditionTreeResponse | null;
6
- }
7
- export declare function DataFieldsViewer({ data, onDataChange, tree }: DataFieldsViewerProps): import("react/jsx-runtime").JSX.Element;
8
- export {};
@@ -1 +0,0 @@
1
- export default function GeneralTester(): import("react/jsx-runtime").JSX.Element;
@@ -1 +0,0 @@
1
- export default function MyParser(): import("react/jsx-runtime").JSX.Element;
@@ -1 +0,0 @@
1
- export default function PropertiesPanel(): import("react/jsx-runtime").JSX.Element | null;
@@ -1 +0,0 @@
1
- export default function TestImageRender(): import("react/jsx-runtime").JSX.Element;
@@ -1,52 +0,0 @@
1
- export default function CabinHelper(NAME: string): {
2
- kms: {
3
- name: string;
4
- material: {
5
- renderInfo: {
6
- textureId: undefined;
7
- isValid: boolean;
8
- } | {
9
- textureId: string;
10
- isValid: boolean;
11
- };
12
- NAME: string;
13
- TEXT: string;
14
- THK: number;
15
- MATCAT: string;
16
- GRAIN: number;
17
- RENDER: string;
18
- } | undefined;
19
- surfaceTop: {
20
- renderInfo: {
21
- textureId: undefined;
22
- isValid: boolean;
23
- } | {
24
- textureId: string;
25
- isValid: boolean;
26
- };
27
- NAME: string;
28
- TEXT: string;
29
- THK: number;
30
- SURFCAT: string;
31
- GRAIN: number;
32
- RENDER: string;
33
- } | undefined;
34
- surfaceBot: {
35
- renderInfo: {
36
- textureId: undefined;
37
- isValid: boolean;
38
- } | {
39
- textureId: string;
40
- isValid: boolean;
41
- };
42
- NAME: string;
43
- TEXT: string;
44
- THK: number;
45
- SURFCAT: string;
46
- GRAIN: number;
47
- RENDER: string;
48
- } | undefined;
49
- render: string | undefined;
50
- thk: number;
51
- } | undefined;
52
- } | undefined;
@@ -1,7 +0,0 @@
1
- import { DimensionProps } from '../../types/zone.types';
2
- export interface ArticleContextType {
3
- articleName: string;
4
- articleId?: string;
5
- dimensionOverrides?: Partial<DimensionProps>;
6
- }
7
- export declare const ArticleContext: import('react').Context<ArticleContextType | null>;
@@ -1,7 +0,0 @@
1
- import { ReactNode } from 'react';
2
- import { ArticleContextType } from './ArticleContext';
3
- interface ArticleProviderProps extends ArticleContextType {
4
- children: ReactNode;
5
- }
6
- export declare function ArticleProvider({ children, articleName, articleId, dimensionOverrides }: ArticleProviderProps): import("react/jsx-runtime").JSX.Element;
7
- export {};
@@ -1 +0,0 @@
1
- export declare function useArticle(): import('../contexts/article/ArticleContext.ts').ArticleContextType;
@@ -1 +0,0 @@
1
- export declare function useData(): import('../types/data.types.js').DataContextType;
@@ -1,2 +0,0 @@
1
- import { DescriptorManager } from '../descriptor/services/DescriptorManager';
2
- export declare function useDescriptorManager(): DescriptorManager;
@@ -1,12 +0,0 @@
1
- /**
2
- * Custom hook for managing zone element selection and hover states
3
- * @param TREEID - Unique identifier for the zone element
4
- * @returns Selection state and event handlers
5
- */
6
- export declare function useZoneSelection(TREEID: string): {
7
- isSelected: boolean;
8
- isHovered: boolean;
9
- handleClick: () => void;
10
- handleMouseEnter: () => void;
11
- handleMouseLeave: () => void;
12
- };
@@ -1,92 +0,0 @@
1
- import { DividerMode } from '../types/divider.types';
2
- export interface UseZoneDescriptorOptions {
3
- inputData: Record<string, unknown>;
4
- divider?: DividerMode;
5
- }
6
- export declare function ZoneDescriptor({ divider, inputData }: UseZoneDescriptorOptions): {
7
- updatedDivider: {
8
- LINDIV1: string;
9
- articleName: string;
10
- type: "linear-division";
11
- valueSource: "string";
12
- DIVIDER: "";
13
- formula: string;
14
- thickness: number;
15
- TREEID: string;
16
- DIVDIR: import('../types/divider.types').DivisionDirection;
17
- DIVTYPE: import('../types/divider.types').DividerType;
18
- HORDEFTYPE: import('../types/divider.types').HorizontalDefType;
19
- DIVELEM1: number;
20
- } | {
21
- LINDIV1: string;
22
- articleName: string;
23
- type: "linear-division";
24
- valueSource: "descriptor";
25
- DIVIDER: "";
26
- descriptorName: string;
27
- thickness: number;
28
- TREEID: string;
29
- DIVDIR: import('../types/divider.types').DivisionDirection;
30
- DIVTYPE: import('../types/divider.types').DividerType;
31
- HORDEFTYPE: import('../types/divider.types').HorizontalDefType;
32
- DIVELEM1: number;
33
- } | {
34
- LINDIV1: string;
35
- articleName: string;
36
- type: "article";
37
- valueSource: "string";
38
- DIVIDER: string;
39
- TREEID: string;
40
- DIVDIR: import('../types/divider.types').DivisionDirection;
41
- DIVTYPE: import('../types/divider.types').DividerType;
42
- HORDEFTYPE: import('../types/divider.types').HorizontalDefType;
43
- DIVELEM1: number;
44
- } | {
45
- LINDIV1: string;
46
- articleName: string;
47
- type: "article";
48
- valueSource: "descriptor";
49
- DIVIDER: string;
50
- descriptorName: string;
51
- TREEID: string;
52
- DIVDIR: import('../types/divider.types').DivisionDirection;
53
- DIVTYPE: import('../types/divider.types').DividerType;
54
- HORDEFTYPE: import('../types/divider.types').HorizontalDefType;
55
- DIVELEM1: number;
56
- } | {
57
- LINDIV1: string;
58
- type: "linear-division";
59
- valueSource: "string";
60
- DIVIDER: "";
61
- formula: string;
62
- thickness: number;
63
- TREEID: string;
64
- DIVDIR: import('../types/divider.types').DivisionDirection;
65
- DIVTYPE: import('../types/divider.types').DividerType;
66
- HORDEFTYPE: import('../types/divider.types').HorizontalDefType;
67
- DIVELEM1: number;
68
- } | {
69
- LINDIV1: string;
70
- type: "linear-division";
71
- valueSource: "descriptor";
72
- DIVIDER: "";
73
- descriptorName: string;
74
- thickness: number;
75
- TREEID: string;
76
- DIVDIR: import('../types/divider.types').DivisionDirection;
77
- DIVTYPE: import('../types/divider.types').DividerType;
78
- HORDEFTYPE: import('../types/divider.types').HorizontalDefType;
79
- DIVELEM1: number;
80
- } | {
81
- LINDIV1: string;
82
- type: "article";
83
- valueSource: "descriptor";
84
- DIVIDER: string;
85
- descriptorName: string;
86
- TREEID: string;
87
- DIVDIR: import('../types/divider.types').DivisionDirection;
88
- DIVTYPE: import('../types/divider.types').DividerType;
89
- HORDEFTYPE: import('../types/divider.types').HorizontalDefType;
90
- DIVELEM1: number;
91
- } | undefined;
92
- };
@@ -1,13 +0,0 @@
1
- export declare enum CPTypeCode {
2
- SidePanel = "S",
3
- Door = "D",
4
- Back = "B",
5
- Shelf = "H"
6
- }
7
- export declare enum CPTypeName {
8
- SidePanel = "side_panel",
9
- Door = "door",
10
- Back = "back",
11
- Shelf = "shelf"
12
- }
13
- export declare const CP_TYPE_MAP: Record<CPTypeCode, CPTypeName>;