@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,69 +1,12 @@
1
1
  import { ChildrenDimsResult, DimensionProps, PositionHelperResult } from '../types/zone.types';
2
2
  import { DividerMode } from '../types/divider.types';
3
3
  import { AnglZone } from '../types/data.types';
4
- export declare function useZoneElemHelpers(TREEID: string): {
4
+ export declare function useZoneElemHelpers(articleName: string, TREEID: string): {
5
5
  front: {
6
6
  TREEID: string;
7
- sidePanel: {
8
- kms: {
9
- name: string;
10
- material: {
11
- renderInfo: {
12
- textureId: undefined;
13
- isValid: boolean;
14
- } | {
15
- textureId: string;
16
- isValid: boolean;
17
- };
18
- NAME: string;
19
- TEXT: string;
20
- THK: number;
21
- MATCAT: string;
22
- GRAIN: number;
23
- RENDER: string;
24
- } | undefined;
25
- surfaceTop: {
26
- renderInfo: {
27
- textureId: undefined;
28
- isValid: boolean;
29
- } | {
30
- textureId: string;
31
- isValid: boolean;
32
- };
33
- NAME: string;
34
- TEXT: string;
35
- THK: number;
36
- SURFCAT: string;
37
- GRAIN: number;
38
- RENDER: string;
39
- } | undefined;
40
- surfaceBot: {
41
- renderInfo: {
42
- textureId: undefined;
43
- isValid: boolean;
44
- } | {
45
- textureId: string;
46
- isValid: boolean;
47
- };
48
- NAME: string;
49
- TEXT: string;
50
- THK: number;
51
- SURFCAT: string;
52
- GRAIN: number;
53
- RENDER: string;
54
- } | undefined;
55
- render: string | undefined;
56
- thk: number;
57
- } | undefined;
58
- NAME: string;
59
- KMS: string;
60
- } | undefined;
7
+ constPrinciple: import('../construction_principle/dto/cp.types.ts').CpDispatcherResult | null | undefined;
61
8
  thk: number;
62
9
  inset: number;
63
- color: string;
64
- CPNAME: string;
65
- topThk: number;
66
- bottomThk: number;
67
10
  oversize: {
68
11
  start: number;
69
12
  end: number;
@@ -83,66 +26,9 @@ export declare function useZoneElemHelpers(TREEID: string): {
83
26
  } | null;
84
27
  left: {
85
28
  TREEID: string;
86
- sidePanel: {
87
- kms: {
88
- name: string;
89
- material: {
90
- renderInfo: {
91
- textureId: undefined;
92
- isValid: boolean;
93
- } | {
94
- textureId: string;
95
- isValid: boolean;
96
- };
97
- NAME: string;
98
- TEXT: string;
99
- THK: number;
100
- MATCAT: string;
101
- GRAIN: number;
102
- RENDER: string;
103
- } | undefined;
104
- surfaceTop: {
105
- renderInfo: {
106
- textureId: undefined;
107
- isValid: boolean;
108
- } | {
109
- textureId: string;
110
- isValid: boolean;
111
- };
112
- NAME: string;
113
- TEXT: string;
114
- THK: number;
115
- SURFCAT: string;
116
- GRAIN: number;
117
- RENDER: string;
118
- } | undefined;
119
- surfaceBot: {
120
- renderInfo: {
121
- textureId: undefined;
122
- isValid: boolean;
123
- } | {
124
- textureId: string;
125
- isValid: boolean;
126
- };
127
- NAME: string;
128
- TEXT: string;
129
- THK: number;
130
- SURFCAT: string;
131
- GRAIN: number;
132
- RENDER: string;
133
- } | undefined;
134
- render: string | undefined;
135
- thk: number;
136
- } | undefined;
137
- NAME: string;
138
- KMS: string;
139
- } | undefined;
29
+ constPrinciple: import('../construction_principle/dto/cp.types.ts').CpDispatcherResult | null | undefined;
140
30
  thk: number;
141
31
  inset: number;
142
- color: string;
143
- CPNAME: string;
144
- topThk: number;
145
- bottomThk: number;
146
32
  oversize: {
147
33
  start: number;
148
34
  end: number;
@@ -162,66 +48,9 @@ export declare function useZoneElemHelpers(TREEID: string): {
162
48
  } | null;
163
49
  right: {
164
50
  TREEID: string;
165
- sidePanel: {
166
- kms: {
167
- name: string;
168
- material: {
169
- renderInfo: {
170
- textureId: undefined;
171
- isValid: boolean;
172
- } | {
173
- textureId: string;
174
- isValid: boolean;
175
- };
176
- NAME: string;
177
- TEXT: string;
178
- THK: number;
179
- MATCAT: string;
180
- GRAIN: number;
181
- RENDER: string;
182
- } | undefined;
183
- surfaceTop: {
184
- renderInfo: {
185
- textureId: undefined;
186
- isValid: boolean;
187
- } | {
188
- textureId: string;
189
- isValid: boolean;
190
- };
191
- NAME: string;
192
- TEXT: string;
193
- THK: number;
194
- SURFCAT: string;
195
- GRAIN: number;
196
- RENDER: string;
197
- } | undefined;
198
- surfaceBot: {
199
- renderInfo: {
200
- textureId: undefined;
201
- isValid: boolean;
202
- } | {
203
- textureId: string;
204
- isValid: boolean;
205
- };
206
- NAME: string;
207
- TEXT: string;
208
- THK: number;
209
- SURFCAT: string;
210
- GRAIN: number;
211
- RENDER: string;
212
- } | undefined;
213
- render: string | undefined;
214
- thk: number;
215
- } | undefined;
216
- NAME: string;
217
- KMS: string;
218
- } | undefined;
51
+ constPrinciple: import('../construction_principle/dto/cp.types.ts').CpDispatcherResult | null | undefined;
219
52
  thk: number;
220
53
  inset: number;
221
- color: string;
222
- CPNAME: string;
223
- topThk: number;
224
- bottomThk: number;
225
54
  oversize: {
226
55
  start: number;
227
56
  end: number;
@@ -241,66 +70,9 @@ export declare function useZoneElemHelpers(TREEID: string): {
241
70
  } | null;
242
71
  back: {
243
72
  TREEID: string;
244
- sidePanel: {
245
- kms: {
246
- name: string;
247
- material: {
248
- renderInfo: {
249
- textureId: undefined;
250
- isValid: boolean;
251
- } | {
252
- textureId: string;
253
- isValid: boolean;
254
- };
255
- NAME: string;
256
- TEXT: string;
257
- THK: number;
258
- MATCAT: string;
259
- GRAIN: number;
260
- RENDER: string;
261
- } | undefined;
262
- surfaceTop: {
263
- renderInfo: {
264
- textureId: undefined;
265
- isValid: boolean;
266
- } | {
267
- textureId: string;
268
- isValid: boolean;
269
- };
270
- NAME: string;
271
- TEXT: string;
272
- THK: number;
273
- SURFCAT: string;
274
- GRAIN: number;
275
- RENDER: string;
276
- } | undefined;
277
- surfaceBot: {
278
- renderInfo: {
279
- textureId: undefined;
280
- isValid: boolean;
281
- } | {
282
- textureId: string;
283
- isValid: boolean;
284
- };
285
- NAME: string;
286
- TEXT: string;
287
- THK: number;
288
- SURFCAT: string;
289
- GRAIN: number;
290
- RENDER: string;
291
- } | undefined;
292
- render: string | undefined;
293
- thk: number;
294
- } | undefined;
295
- NAME: string;
296
- KMS: string;
297
- } | undefined;
73
+ constPrinciple: import('../construction_principle/dto/cp.types.ts').CpDispatcherResult | null | undefined;
298
74
  thk: number;
299
75
  inset: number;
300
- color: string;
301
- CPNAME: string;
302
- topThk: number;
303
- bottomThk: number;
304
76
  oversize: {
305
77
  start: number;
306
78
  end: number;
@@ -413,13 +185,3 @@ export interface ZoneCalculationParams {
413
185
  children: AnglZone[];
414
186
  elemHelpers: ReturnType<typeof useZoneElemHelpers>;
415
187
  }
416
- export interface ZoneCalculationResult {
417
- elemHelpers: ReturnType<typeof useZoneElemHelpers>;
418
- bordersThk: ReturnType<typeof getZoneBorders>['bordersThk'];
419
- topTrimThk: ReturnType<typeof getZoneBorders>['topTrimThk'];
420
- bottomTrimThk: ReturnType<typeof getZoneBorders>['bottomTrimThk'];
421
- borderInset: ReturnType<typeof getBorderInset>;
422
- zoneGeometry: ReturnType<typeof calculateZoneGeometry>;
423
- remainingZone: ReturnType<typeof calculateRemainingZoneGeometry>;
424
- childPositions?: PositionHelperResult;
425
- }
@@ -1,3 +1,3 @@
1
- export default function useClieHelper(TREEID: string, TAG: string, DATATYPE: number): {
1
+ export default function useClieHelper(articleName: string, TREEID: string, TAG: string, DATATYPE: number): {
2
2
  thickness: number;
3
3
  } | null;
@@ -1,65 +1,8 @@
1
- export declare function useElemHelper(TREEID: string): {
1
+ export declare function useElemHelper(articleName: string, TREEID: string): {
2
2
  TREEID: string;
3
- sidePanel: {
4
- kms: {
5
- name: string;
6
- material: {
7
- renderInfo: {
8
- textureId: undefined;
9
- isValid: boolean;
10
- } | {
11
- textureId: string;
12
- isValid: boolean;
13
- };
14
- NAME: string;
15
- TEXT: string;
16
- THK: number;
17
- MATCAT: string;
18
- GRAIN: number;
19
- RENDER: string;
20
- } | undefined;
21
- surfaceTop: {
22
- renderInfo: {
23
- textureId: undefined;
24
- isValid: boolean;
25
- } | {
26
- textureId: string;
27
- isValid: boolean;
28
- };
29
- NAME: string;
30
- TEXT: string;
31
- THK: number;
32
- SURFCAT: string;
33
- GRAIN: number;
34
- RENDER: string;
35
- } | undefined;
36
- surfaceBot: {
37
- renderInfo: {
38
- textureId: undefined;
39
- isValid: boolean;
40
- } | {
41
- textureId: string;
42
- isValid: boolean;
43
- };
44
- NAME: string;
45
- TEXT: string;
46
- THK: number;
47
- SURFCAT: string;
48
- GRAIN: number;
49
- RENDER: string;
50
- } | undefined;
51
- render: string | undefined;
52
- thk: number;
53
- } | undefined;
54
- NAME: string;
55
- KMS: string;
56
- } | undefined;
3
+ constPrinciple: import('../../construction_principle/dto/cp.types.ts').CpDispatcherResult | null | undefined;
57
4
  thk: number;
58
5
  inset: number;
59
- color: string;
60
- CPNAME: string;
61
- topThk: number;
62
- bottomThk: number;
63
6
  oversize: {
64
7
  start: number;
65
8
  end: number;
@@ -1,3 +1,3 @@
1
- export default function useGrtxHelper(TREEID: string): {
1
+ export default function useGrtxHelper(articleName: string, TREEID: string): {
2
2
  zoneInfo: Map<string, string>;
3
3
  } | null;
@@ -1,8 +1,10 @@
1
- export default function usePrimHelper(): {
2
- current_prim: import('../../types/data.types.js').AnglPrim;
1
+ import { DimensionProps } from '../../types/zone.types';
2
+ export default function usePrimHelper(articleName: string, dimensionOverrides?: DimensionProps): {
3
+ articleName: string;
4
+ current_prim: import('../../types/data.types.tsx').AnglPrim;
3
5
  prim_dims: {
4
6
  width: number;
5
7
  height: number;
6
8
  depth: number;
7
9
  };
8
- };
10
+ } | undefined;
@@ -1,116 +1,9 @@
1
- /**
2
- * ZoneHelper - Provides zone data and thickness calculations
3
- *
4
- * Note: Calculation logic has been moved to ZoneCalculations.tsx
5
- * This helper now focuses on data retrieval and thickness lookups only
6
- */
7
- export declare function useZoneHelper(TREEID: string): {
8
- currentZone: import('../../types/data.types.js').AnglZone;
9
- children: import('../../types/data.types.js').AnglZone[];
10
- readonly topShelfCP: {
11
- kms: {
12
- name: string;
13
- material: {
14
- renderInfo: {
15
- textureId: undefined;
16
- isValid: boolean;
17
- } | {
18
- textureId: string;
19
- isValid: boolean;
20
- };
21
- NAME: string;
22
- TEXT: string;
23
- THK: number;
24
- MATCAT: string;
25
- GRAIN: number;
26
- RENDER: string;
27
- } | undefined;
28
- surfaceTop: {
29
- renderInfo: {
30
- textureId: undefined;
31
- isValid: boolean;
32
- } | {
33
- textureId: string;
34
- isValid: boolean;
35
- };
36
- NAME: string;
37
- TEXT: string;
38
- THK: number;
39
- SURFCAT: string;
40
- GRAIN: number;
41
- RENDER: string;
42
- } | undefined;
43
- surfaceBot: {
44
- renderInfo: {
45
- textureId: undefined;
46
- isValid: boolean;
47
- } | {
48
- textureId: string;
49
- isValid: boolean;
50
- };
51
- NAME: string;
52
- TEXT: string;
53
- THK: number;
54
- SURFCAT: string;
55
- GRAIN: number;
56
- RENDER: string;
57
- } | undefined;
58
- render: string | undefined;
59
- thk: number;
60
- } | undefined;
61
- } | undefined;
62
- readonly bottomShelfCP: {
63
- kms: {
64
- name: string;
65
- material: {
66
- renderInfo: {
67
- textureId: undefined;
68
- isValid: boolean;
69
- } | {
70
- textureId: string;
71
- isValid: boolean;
72
- };
73
- NAME: string;
74
- TEXT: string;
75
- THK: number;
76
- MATCAT: string;
77
- GRAIN: number;
78
- RENDER: string;
79
- } | undefined;
80
- surfaceTop: {
81
- renderInfo: {
82
- textureId: undefined;
83
- isValid: boolean;
84
- } | {
85
- textureId: string;
86
- isValid: boolean;
87
- };
88
- NAME: string;
89
- TEXT: string;
90
- THK: number;
91
- SURFCAT: string;
92
- GRAIN: number;
93
- RENDER: string;
94
- } | undefined;
95
- surfaceBot: {
96
- renderInfo: {
97
- textureId: undefined;
98
- isValid: boolean;
99
- } | {
100
- textureId: string;
101
- isValid: boolean;
102
- };
103
- NAME: string;
104
- TEXT: string;
105
- THK: number;
106
- SURFCAT: string;
107
- GRAIN: number;
108
- RENDER: string;
109
- } | undefined;
110
- render: string | undefined;
111
- thk: number;
112
- } | undefined;
113
- } | undefined;
1
+ export declare function useZoneHelper(articleName: string, TREEID: string): {
2
+ currentZone: import('../../types/data.types.tsx').AnglZone;
3
+ children: import('../../types/data.types.tsx').AnglZone[];
4
+ readonly topShelfCP: import('../../construction_principle/dto/cp.types.ts').CpDispatcherResult | null;
5
+ readonly bottomShelfCP: import('../../construction_principle/dto/cp.types.ts').CpDispatcherResult | null;
6
+ readonly DividerCP: import('../../construction_principle/dto/cp.types.ts').CpDispatcherResult | null;
114
7
  zoneInfo(): Map<string, string> | undefined;
115
8
  getThk(TREEID: string, TAGNAME: string, CPNAME: string): number;
116
9
  readonly topShelfThk: number;
@@ -0,0 +1,13 @@
1
+ import { DividerMode } from '../types/divider.types';
2
+ import { DescriptorManager } from '../descriptor/services/DescriptorManager';
3
+ import { VariableTree } from '../variables/VariableResolver';
4
+ export interface UseZoneDescriptorOptions {
5
+ inputData: Record<string, unknown>;
6
+ divider: DividerMode;
7
+ descriptorManager: DescriptorManager;
8
+ variableTree: VariableTree;
9
+ resolveVarRecursive: (str: string) => string;
10
+ }
11
+ export declare function ZoneDivider({ divider, inputData, descriptorManager, variableTree, resolveVarRecursive }: UseZoneDescriptorOptions): {
12
+ updatedDivider: DividerMode;
13
+ };