@roomle/embedding-lib 5.25.0-alpha.1 → 5.25.0-alpha.10
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/docs/md/web/embedding/CHANGELOG.md +2 -28
- package/drag-in-DTA1FCDc.mjs +1 -0
- package/drag-in-DuufO5eB.mjs +138 -0
- package/from-custom-view-BdnViEhf.mjs +163 -0
- package/from-custom-view-DIYHP31u.mjs +1 -0
- package/from-website-CcDHgCCy.mjs +1 -0
- package/from-website-CktA6Icy.mjs +201 -0
- package/package.json +1 -1
- package/packages/embedding-lib/src/examples/homag-intelligence-example.d.ts +9 -0
- package/packages/embedding-lib/src/examples/utils/homag-intelligence/create-catalog.d.ts +1 -0
- package/packages/embedding-lib/src/examples/utils/homag-intelligence/default-api-options.d.ts +43 -0
- package/packages/embedding-lib/src/examples/utils/homag-intelligence/dom-helper.d.ts +13 -0
- package/packages/embedding-lib/src/examples/utils/homag-intelligence/drag-in.d.ts +3 -0
- package/packages/embedding-lib/src/examples/utils/homag-intelligence/overlay.d.ts +2 -0
- package/packages/embedding-lib/src/examples/utils/homag-intelligence/state.d.ts +14 -0
- package/packages/embedding-lib/src/examples/utils/homag-intelligence/util.d.ts +19 -0
- package/packages/embedding-lib/src/plugins/strategy/from-custom-view.d.ts +1 -0
- package/packages/web-sdk/packages/common-core/src/input/input-manager.d.ts +1 -0
- package/packages/web-sdk/packages/common-core/src/main.d.ts +2 -2
- package/packages/web-sdk/packages/common-core/src/static-files/environment-maps.d.ts +6 -7
- package/packages/web-sdk/packages/common-core/src/static-files/libs.d.ts +3 -1
- package/packages/web-sdk/packages/common-core/src/static-files/light-settings.d.ts +8 -6
- package/packages/web-sdk/packages/common-core/src/static-files/luts.d.ts +11 -9
- package/packages/web-sdk/packages/common-core/src/static-files/roomle-core.d.ts +8 -6
- package/packages/web-sdk/packages/common-core/src/utils/common-utils.d.ts +0 -1
- package/packages/web-sdk/packages/common-core/src/utils/init-data.d.ts +2 -0
- package/packages/web-sdk/packages/common-core/src/utils/shims.d.ts +6 -0
- package/packages/web-sdk/packages/common-core/src/webgl/renderer/pass/gbuffer-render-pass.d.ts +1 -1
- package/packages/web-sdk/packages/configurator-core/src/configurator.d.ts +1 -1
- package/packages/web-sdk/packages/configurator-core/src/roomle-configurator.d.ts +13 -0
- package/packages/web-sdk/packages/configurator-core/src/static-files/fonts.d.ts +4 -2
- package/packages/web-sdk/packages/configurator-core/src/static-files/geometries.d.ts +3 -1
- package/packages/web-sdk/packages/configurator-core/src/static-files/settings.d.ts +3 -1
- package/packages/web-sdk/packages/configurator-core/src/static-files/textures.d.ts +3 -1
- package/packages/web-sdk/packages/configurator-core/src/utils/animation/animation-value-map.d.ts +1 -0
- package/packages/web-sdk/packages/configurator-core/src/utils/component-dimensioning-helper.d.ts +3 -3
- package/packages/web-sdk/packages/configurator-core/src/utils/component-raycast-helper.d.ts +1 -1
- package/packages/web-sdk/packages/configurator-core/src/utils/dimensioning-helper.d.ts +1 -0
- package/packages/web-sdk/packages/configurator-core/src/utils/test-helpers/utils.d.ts +2 -2
- package/packages/web-sdk/packages/configurator-core/src/webgl/configurator-scene-manager.d.ts +4 -0
- package/packages/web-sdk/packages/glb-viewer-core/src/glb-viewer.d.ts +1 -1
- package/packages/web-sdk/packages/homag-intelligence/src/api.d.ts +22 -0
- package/packages/web-sdk/packages/homag-intelligence/src/callbacks.d.ts +37 -0
- package/packages/web-sdk/packages/homag-intelligence/src/emulator.d.ts +101 -0
- package/packages/web-sdk/packages/homag-intelligence/src/homag-intelligence.d.ts +28 -0
- package/packages/web-sdk/packages/homag-intelligence/src/loader.d.ts +24 -0
- package/packages/web-sdk/packages/homag-intelligence/src/model/oc-scripts-domain.model.d.ts +312 -0
- package/packages/web-sdk/packages/homag-intelligence/src/orders.d.ts +39 -0
- package/packages/web-sdk/packages/homag-intelligence/src/rml-plugin.d.ts +3 -0
- package/packages/web-sdk/packages/homag-intelligence/src/util.d.ts +5 -0
- package/packages/web-sdk/packages/material-viewer/src/material-viewer.d.ts +1 -1
- package/packages/web-sdk/packages/planner-core/src/planner.d.ts +1 -1
- package/packages/web-sdk/packages/planner-core/src/roomle-planner.d.ts +13 -1
- package/packages/web-sdk/packages/planner-core/src/webgl/planner-scene-manager.d.ts +1 -0
- package/packages/web-sdk/packages/test-helpers/unit/global-setup.d.ts +1 -1
- package/packages/web-sdk/packages/tools-core/src/tools-core.d.ts +1 -1
- package/packages/web-sdk/packages/typings/external-objects.d.ts +8 -0
- package/packages/web-sdk/packages/typings/planner.d.ts +1 -1
- package/packages/web-sdk/packages/workers/src/static-files/workers.d.ts +4 -2
- package/roomle-embedding-lib.es.js +306 -316
- package/roomle-embedding-lib.es.min.js +1 -1
- package/roomle-embedding-lib.umd.js +17 -17
- package/roomle-embedding-lib.umd.min.js +1 -1
- package/src/common/components/collection-view/-utils/collection-view-dynamic-components.d.ts +1 -1
- package/src/common/composables/use-configurator-api.d.ts +1 -1
- package/src/common/composables/use-core-instances.d.ts +1 -1
- package/src/common/composables/use-static-item-parameters.d.ts +1 -1
- package/src/common/utils/helper.d.ts +1 -1
- package/src/common/utils/parameters.d.ts +0 -1
- package/src/common/utils/types.d.ts +0 -7
- package/src/configurator/business-logic/roomle-sdk-wrapper.d.ts +2 -1
- package/src/configurator/embedding/exposed-api.d.ts +7 -1
- package/src/planner/components/overlays/ProductSettings.vue.d.ts +2 -2
- package/src/planner/components/overlays/product-settings/ProductPositions.vue.d.ts +2 -2
- package/src/planner/components/overlays/product-settings/ProductRotation.vue.d.ts +2 -2
- package/src/planner/components/overlays/product-settings/ProductSettingsInfos.vue.d.ts +2 -2
- package/src/planner/components/overlays/product-settings/ProductSize.vue.d.ts +2 -2
- package/src/planner/components/overlays/product-settings/ProductXYZChanger.vue.d.ts +2 -2
- package/src/planner/components/overlays/rooms/ConstructionVariants.vue.d.ts +2 -2
- package/src/planner/components/overlays/rooms/DoorParametersSetting.vue.d.ts +7 -7
- package/src/planner/components/overlays/rooms/ElementLengthScaling.vue.d.ts +1 -1
- package/src/planner/components/overlays/rooms/WindowParametersSetting.vue.d.ts +2 -2
- package/src/planner/components/utils/AssureConfiguratorHandlers.vue.d.ts +1 -1
- package/src/planner/components/utils/AssureSdkHandlers.vue.d.ts +1 -1
- package/src/planner/utils/planner-sidebar.d.ts +1 -1
- package/touch-drag-B5zCf87J.mjs +1 -0
- package/touch-drag-DXJTOrk5.mjs +146 -0
- package/drag-in-BWioG4OL.mjs +0 -1
- package/drag-in-D5QSQ86J.mjs +0 -141
- package/from-custom-view-BcXfK7VI.mjs +0 -163
- package/from-custom-view-DRAqJ-yY.mjs +0 -1
- package/from-website-B3kPg18n.mjs +0 -207
- package/from-website-DR93OSJD.mjs +0 -1
- package/packages/web-sdk/packages/acceptance-tests/src/utils/async-acceptance-test.d.ts +0 -3
- package/packages/web-sdk/packages/configurator-core/__acceptance__/boot.d.ts +0 -1
- package/packages/web-sdk/packages/vite-plugins/vite-plugin-auto-workers.d.ts +0 -8
- package/packages/web-sdk/packages/vite-plugins/vite-plugin-bundle-sw.d.ts +0 -10
- package/touch-drag-BEct6jbW.mjs +0 -1
- package/touch-drag-DNDPwZ-_.mjs +0 -149
|
@@ -0,0 +1,312 @@
|
|
|
1
|
+
export declare const enum PosUserRight {
|
|
2
|
+
Simple = "Simple",
|
|
3
|
+
Advanced = "Advanced",
|
|
4
|
+
Master = "Master"
|
|
5
|
+
}
|
|
6
|
+
export declare const enum UserRightLevel {
|
|
7
|
+
Simple = 0,
|
|
8
|
+
Advanced = 1,
|
|
9
|
+
Master = 2
|
|
10
|
+
}
|
|
11
|
+
export declare const getUserRightLevel: (right?: PosUserRight | null) => UserRightLevel;
|
|
12
|
+
export interface PosArticleInfo {
|
|
13
|
+
/**
|
|
14
|
+
* Defined the library that is used / must match the MasterData
|
|
15
|
+
*/
|
|
16
|
+
libraryId: string;
|
|
17
|
+
/**
|
|
18
|
+
* Defined the library that is used / must match the MasterData
|
|
19
|
+
*/
|
|
20
|
+
catalog: string;
|
|
21
|
+
/**
|
|
22
|
+
* The id of the initial article
|
|
23
|
+
*/
|
|
24
|
+
articleId: string;
|
|
25
|
+
/**
|
|
26
|
+
* The name of the initial article
|
|
27
|
+
*/
|
|
28
|
+
articleName?: string;
|
|
29
|
+
desc?: string;
|
|
30
|
+
imageUrl?: string;
|
|
31
|
+
category?: string;
|
|
32
|
+
}
|
|
33
|
+
export interface PosPartData {
|
|
34
|
+
id: string;
|
|
35
|
+
hidden?: boolean;
|
|
36
|
+
relPos: number[];
|
|
37
|
+
dim: number[];
|
|
38
|
+
fullMatrix: number[];
|
|
39
|
+
openfullMatrix?: number[];
|
|
40
|
+
name: string;
|
|
41
|
+
material?: PosFaceMaterial[] | string;
|
|
42
|
+
extrude?: PosPartExtrudeInfo;
|
|
43
|
+
model?: PosPartModelInfo;
|
|
44
|
+
hideModelWhenOpen?: boolean;
|
|
45
|
+
modelOpen?: PosPartModelInfo;
|
|
46
|
+
}
|
|
47
|
+
export interface PosPartExtrudeInfo {
|
|
48
|
+
svg: string;
|
|
49
|
+
direction: string;
|
|
50
|
+
}
|
|
51
|
+
export interface PosFaceMaterial {
|
|
52
|
+
materialId: string;
|
|
53
|
+
faceKey?: PosFaceKey;
|
|
54
|
+
uvRotation?: number;
|
|
55
|
+
uvOffset?: number[];
|
|
56
|
+
uvScale?: number[];
|
|
57
|
+
}
|
|
58
|
+
export declare enum PosFaceKey {
|
|
59
|
+
Default = "default",
|
|
60
|
+
Bottom = "bottom",
|
|
61
|
+
Top = "top",
|
|
62
|
+
Left = "left",
|
|
63
|
+
Right = "right",
|
|
64
|
+
Front = "front",
|
|
65
|
+
Back = "back",
|
|
66
|
+
Side = "side"
|
|
67
|
+
}
|
|
68
|
+
export interface PosPartModelInfo {
|
|
69
|
+
url: string;
|
|
70
|
+
params?: string;
|
|
71
|
+
}
|
|
72
|
+
export interface PosModuleAttribute {
|
|
73
|
+
id: string;
|
|
74
|
+
value?: number | string | boolean;
|
|
75
|
+
isInput?: boolean;
|
|
76
|
+
}
|
|
77
|
+
export interface PosModuleData {
|
|
78
|
+
id: string;
|
|
79
|
+
name: string;
|
|
80
|
+
modules?: PosModuleData[];
|
|
81
|
+
parts?: PosPartData[];
|
|
82
|
+
imageUrl?: string;
|
|
83
|
+
attributes?: PosModuleAttribute[];
|
|
84
|
+
canBeDeleted?: boolean;
|
|
85
|
+
isGenerated?: boolean;
|
|
86
|
+
checkAttributes?: Map<string, string | number | boolean | undefined>;
|
|
87
|
+
}
|
|
88
|
+
export interface PosModuleRootData extends PosModuleData, PosArticleInfo {
|
|
89
|
+
/**
|
|
90
|
+
* Additional text for this root module
|
|
91
|
+
*/
|
|
92
|
+
additionalText?: string;
|
|
93
|
+
/**
|
|
94
|
+
* Position of this article; if not set it is always 0,0,0 (x/y/z)
|
|
95
|
+
*/
|
|
96
|
+
articlePos?: number[];
|
|
97
|
+
/**
|
|
98
|
+
* Rotation on the vertical axis in degree (0-359)
|
|
99
|
+
*/
|
|
100
|
+
rotationY?: number;
|
|
101
|
+
logMessages: PosErrorMsg[];
|
|
102
|
+
dockInfos: PosDockInfo[];
|
|
103
|
+
insertLevelInfos?: PosInsertLevelInfo[];
|
|
104
|
+
insertLevelFixed?: boolean;
|
|
105
|
+
}
|
|
106
|
+
export interface PosInsertLevelInfo {
|
|
107
|
+
height: number;
|
|
108
|
+
isDefault?: boolean;
|
|
109
|
+
}
|
|
110
|
+
export interface PosDockInfo {
|
|
111
|
+
id: PosDock;
|
|
112
|
+
start: number[];
|
|
113
|
+
end: number[];
|
|
114
|
+
}
|
|
115
|
+
export declare const enum PosDock {
|
|
116
|
+
RightTop = "RightTop",
|
|
117
|
+
BackTop = "BackTop",
|
|
118
|
+
LeftTop = "LeftTop",
|
|
119
|
+
RightBottom = "RightBottom",
|
|
120
|
+
BackBottom = "BackBottom",
|
|
121
|
+
LeftBottom = "LeftBottom",
|
|
122
|
+
LeftBackTop = "LeftBackTop",
|
|
123
|
+
RightBackTop = "RightBackTop",
|
|
124
|
+
LeftBackBottom = "LeftBackBottom",
|
|
125
|
+
RightBackBottom = "RightBackBottom"
|
|
126
|
+
}
|
|
127
|
+
export interface PosErrorMsg {
|
|
128
|
+
category: LogMessageCategoryType;
|
|
129
|
+
msg: string;
|
|
130
|
+
seqNo: number;
|
|
131
|
+
timestamp: string;
|
|
132
|
+
scope?: LogMessageScope;
|
|
133
|
+
}
|
|
134
|
+
export interface LogMessageScope {
|
|
135
|
+
moduleUniqueId?: string;
|
|
136
|
+
attrId?: string;
|
|
137
|
+
}
|
|
138
|
+
export declare const enum LogMessageCategoryType {
|
|
139
|
+
Fatal = "Fatal",
|
|
140
|
+
Error = "Error",
|
|
141
|
+
Warning = "Warning",
|
|
142
|
+
Info = "Info",
|
|
143
|
+
Debug = "Debug"
|
|
144
|
+
}
|
|
145
|
+
export interface PosContourSegment {
|
|
146
|
+
cmd: string;
|
|
147
|
+
x: number;
|
|
148
|
+
y: number;
|
|
149
|
+
angle: number;
|
|
150
|
+
type?: string;
|
|
151
|
+
}
|
|
152
|
+
export interface PosContour {
|
|
153
|
+
level: number;
|
|
154
|
+
segments: PosContourSegment[];
|
|
155
|
+
}
|
|
156
|
+
export interface PosGroup {
|
|
157
|
+
/**
|
|
158
|
+
* The unique id of the Group
|
|
159
|
+
*/
|
|
160
|
+
id: string;
|
|
161
|
+
/**
|
|
162
|
+
* One or multiple roots for this article group
|
|
163
|
+
*/
|
|
164
|
+
roots: PosModuleRootData[];
|
|
165
|
+
/**
|
|
166
|
+
* Global (error) messages
|
|
167
|
+
*/
|
|
168
|
+
logMessages: PosErrorMsg[];
|
|
169
|
+
/**
|
|
170
|
+
* Position/Orientation inside the room
|
|
171
|
+
*/
|
|
172
|
+
/**
|
|
173
|
+
* Optional a position of this group
|
|
174
|
+
*/
|
|
175
|
+
pos?: number[];
|
|
176
|
+
/**
|
|
177
|
+
* The rotation on the vertical axis in degree (0-360)
|
|
178
|
+
*/
|
|
179
|
+
rotationY?: number;
|
|
180
|
+
/**
|
|
181
|
+
* Optional a contour list of the surrounding elements
|
|
182
|
+
*/
|
|
183
|
+
contours?: PosContour[];
|
|
184
|
+
/**
|
|
185
|
+
* The version used for this data structure
|
|
186
|
+
*/
|
|
187
|
+
ver?: number;
|
|
188
|
+
}
|
|
189
|
+
export interface PosArticle extends PosArticleInfo {
|
|
190
|
+
roots: PosModuleRootData[];
|
|
191
|
+
}
|
|
192
|
+
export interface PosSaveData {
|
|
193
|
+
groups: PosGroup[];
|
|
194
|
+
roomlePlannerId?: string;
|
|
195
|
+
perspectiveImageLink?: string;
|
|
196
|
+
topImageLink?: string;
|
|
197
|
+
room3dLink?: string;
|
|
198
|
+
room3dFullLink?: string;
|
|
199
|
+
}
|
|
200
|
+
export interface PosPriceData {
|
|
201
|
+
Groups: PosPriceGroup[];
|
|
202
|
+
LogMessages: PosErrorMsg[];
|
|
203
|
+
}
|
|
204
|
+
export interface PosPriceGroup {
|
|
205
|
+
Id: string;
|
|
206
|
+
Roots: PosRootPrice[];
|
|
207
|
+
}
|
|
208
|
+
export interface PosRootPrice {
|
|
209
|
+
Id: string;
|
|
210
|
+
TotalPrice?: number;
|
|
211
|
+
Currency?: string;
|
|
212
|
+
}
|
|
213
|
+
export interface PosArticleCalculation {
|
|
214
|
+
/**
|
|
215
|
+
* Calculates the article group
|
|
216
|
+
* @param article
|
|
217
|
+
* @returns calc
|
|
218
|
+
*/
|
|
219
|
+
calc(article: PosGroup): PosGroup;
|
|
220
|
+
}
|
|
221
|
+
export type MDAttributeSelection = MDBoolAttributeSelection | MDTextAttributeSelection | MDIntegerAttributeSelection | MDRealAttributeSelection | MDDimAttributeSelection;
|
|
222
|
+
interface BaseAttributeSelection {
|
|
223
|
+
imageUrl?: string;
|
|
224
|
+
desc?: string;
|
|
225
|
+
name?: string;
|
|
226
|
+
}
|
|
227
|
+
export interface MDBoolAttributeSelection extends BaseAttributeSelection {
|
|
228
|
+
value?: boolean;
|
|
229
|
+
}
|
|
230
|
+
export interface MDTextAttributeSelection extends BaseAttributeSelection {
|
|
231
|
+
value?: string;
|
|
232
|
+
}
|
|
233
|
+
export interface MDIntegerAttributeSelection extends BaseAttributeSelection {
|
|
234
|
+
value?: number;
|
|
235
|
+
}
|
|
236
|
+
export interface MDRealAttributeSelection extends BaseAttributeSelection {
|
|
237
|
+
value?: number;
|
|
238
|
+
}
|
|
239
|
+
export interface MDDimAttributeSelection extends BaseAttributeSelection {
|
|
240
|
+
value?: number;
|
|
241
|
+
}
|
|
242
|
+
export interface MDNumberMinMaxAttributeSelection {
|
|
243
|
+
min?: number;
|
|
244
|
+
max?: string;
|
|
245
|
+
desc?: string;
|
|
246
|
+
}
|
|
247
|
+
export declare const enum MDType {
|
|
248
|
+
Dim = "Dim",
|
|
249
|
+
Integer = "Integer",
|
|
250
|
+
Real = "Real",
|
|
251
|
+
Bool = "Bool",
|
|
252
|
+
Text = "Text"
|
|
253
|
+
}
|
|
254
|
+
export type MDAttributeInfo = MDBoolAttributeInfo | MDTextAttributeInfo | MDIntegerAttributeInfo | MDRealAttributeInfo | MDDimAttributeInfo;
|
|
255
|
+
interface BaseMDAttributeInfo {
|
|
256
|
+
id: string;
|
|
257
|
+
name: string;
|
|
258
|
+
isMain?: boolean;
|
|
259
|
+
desc?: string;
|
|
260
|
+
group?: string;
|
|
261
|
+
imageUrl?: string;
|
|
262
|
+
type: MDType;
|
|
263
|
+
userRight?: PosUserRight | null;
|
|
264
|
+
userView?: string | null;
|
|
265
|
+
implicitRelevant?: boolean;
|
|
266
|
+
sorting?: number;
|
|
267
|
+
}
|
|
268
|
+
export interface MDBoolAttributeInfo extends BaseMDAttributeInfo {
|
|
269
|
+
selections?: MDBoolAttributeSelection[];
|
|
270
|
+
type: MDType.Bool;
|
|
271
|
+
}
|
|
272
|
+
export interface MDTextAttributeInfo extends BaseMDAttributeInfo {
|
|
273
|
+
selections?: MDTextAttributeSelection[];
|
|
274
|
+
type: MDType.Text;
|
|
275
|
+
}
|
|
276
|
+
export interface MDIntegerAttributeInfo extends BaseMDAttributeInfo {
|
|
277
|
+
selections?: (MDIntegerAttributeSelection | MDNumberMinMaxAttributeSelection)[];
|
|
278
|
+
type: MDType.Integer;
|
|
279
|
+
}
|
|
280
|
+
export interface MDRealAttributeInfo extends BaseMDAttributeInfo {
|
|
281
|
+
selections?: (MDRealAttributeSelection | MDNumberMinMaxAttributeSelection)[];
|
|
282
|
+
type: MDType.Real;
|
|
283
|
+
}
|
|
284
|
+
export interface MDDimAttributeInfo extends BaseMDAttributeInfo {
|
|
285
|
+
selections?: (MDDimAttributeSelection | MDNumberMinMaxAttributeSelection)[];
|
|
286
|
+
type: MDType.Dim;
|
|
287
|
+
}
|
|
288
|
+
export interface MDModuleInfo {
|
|
289
|
+
id: string;
|
|
290
|
+
name: string;
|
|
291
|
+
desc?: string;
|
|
292
|
+
group?: string;
|
|
293
|
+
imageUrl?: string;
|
|
294
|
+
assignedAttributes: string[];
|
|
295
|
+
}
|
|
296
|
+
export interface MasterData {
|
|
297
|
+
libraryId: string;
|
|
298
|
+
modules: MDModuleInfo[];
|
|
299
|
+
attributes: MDAttributeInfo[];
|
|
300
|
+
}
|
|
301
|
+
export interface CheckResult {
|
|
302
|
+
calcResult: CheckDropDownEntry[];
|
|
303
|
+
}
|
|
304
|
+
export interface CheckDropDownEntry {
|
|
305
|
+
value: string | number | boolean;
|
|
306
|
+
kind: CheckDropDownEntryKind;
|
|
307
|
+
}
|
|
308
|
+
export declare enum CheckDropDownEntryKind {
|
|
309
|
+
Normal = 0,
|
|
310
|
+
Conflicting = 1
|
|
311
|
+
}
|
|
312
|
+
export {};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { default as RoomlePlanner } from '../../planner-core/src/roomle-planner';
|
|
2
|
+
import { GlueLogic } from './emulator';
|
|
3
|
+
import { ApiOptions } from './loader';
|
|
4
|
+
|
|
5
|
+
export declare const createEmptyOrder: () => {
|
|
6
|
+
id: any;
|
|
7
|
+
state: string;
|
|
8
|
+
orderNumber: string;
|
|
9
|
+
orderName: string;
|
|
10
|
+
orderDescription: string;
|
|
11
|
+
project: string;
|
|
12
|
+
personInCharge: string;
|
|
13
|
+
orderDate: string;
|
|
14
|
+
deliveryDatePlanned: string;
|
|
15
|
+
addresses: {
|
|
16
|
+
type: string;
|
|
17
|
+
street: string;
|
|
18
|
+
houseNumber: string;
|
|
19
|
+
postalCode: string;
|
|
20
|
+
city: string;
|
|
21
|
+
country: string;
|
|
22
|
+
}[];
|
|
23
|
+
customerName: string;
|
|
24
|
+
customerNumber: string;
|
|
25
|
+
createdAt: string;
|
|
26
|
+
changedAt: string;
|
|
27
|
+
changedBy: string;
|
|
28
|
+
items: any[];
|
|
29
|
+
};
|
|
30
|
+
export declare const sendToOM: (apiOptions: ApiOptions, roomlePlanner: RoomlePlanner, gluLogic: GlueLogic, withPrice?: boolean) => Promise<void>;
|
|
31
|
+
export declare const fetchPrice: (apiOptions: ApiOptions, gluLogic: GlueLogic, planId?: string) => Promise<any>;
|
|
32
|
+
export default class Orders {
|
|
33
|
+
private _roomlePlanner;
|
|
34
|
+
private _gluLogic;
|
|
35
|
+
private _apiOptions;
|
|
36
|
+
constructor(roomlePlanner: RoomlePlanner, gluLogic: GlueLogic, apiOptions: ApiOptions);
|
|
37
|
+
sendToOM(withPrice?: boolean): Promise<void>;
|
|
38
|
+
fetchPrice(planId?: string): Promise<any>;
|
|
39
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
type Logable = string | number | boolean | object | null | undefined;
|
|
2
|
+
export declare const logApiCallback: (...args: Logable[]) => void;
|
|
3
|
+
export declare const logMessage: (...args: Logable[]) => void;
|
|
4
|
+
export declare const logApiCall: (...args: Logable[]) => void;
|
|
5
|
+
export {};
|
|
@@ -7,7 +7,7 @@ export declare class MaterialViewer extends Main {
|
|
|
7
7
|
protected setupDependencies(): void;
|
|
8
8
|
protected cleanUpGlobals(): void;
|
|
9
9
|
protected cleanUpDependencies(): void;
|
|
10
|
-
protected bootFinished(): void
|
|
10
|
+
protected bootFinished(): Promise<void>;
|
|
11
11
|
getApi(): RoomleMaterialViewer;
|
|
12
12
|
protected getContextName(): string;
|
|
13
13
|
}
|
|
@@ -10,7 +10,7 @@ export declare class Planner<P extends readonly PluginName[] = readonly []> exte
|
|
|
10
10
|
protected setupDependencies(): void;
|
|
11
11
|
protected cleanUpGlobals(): void;
|
|
12
12
|
protected cleanUpDependencies(): void;
|
|
13
|
-
protected bootFinished(): void
|
|
13
|
+
protected bootFinished(): Promise<void>;
|
|
14
14
|
getApi(): RoomlePlanner<P>;
|
|
15
15
|
protected getContextName(): string;
|
|
16
16
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { default as RapiAccess } from '../../common-core/src/rapi-access';
|
|
1
2
|
import { default as RoomlePlannerUiCallback } from './roomle-planner-ui-callback';
|
|
2
3
|
import { GlbViewer } from '../../glb-viewer-core/src/glb-viewer';
|
|
3
4
|
import { ExternalEmbeddable, GlobalAPI, KernelUtilityForUi, RubensAPI, default as Main } from '../../common-core/src/main';
|
|
@@ -26,6 +27,7 @@ import { ExternalGroupData, ExternalObject, ExtObjId } from '../../typings/exter
|
|
|
26
27
|
import { PluginName } from '../../configurator-core/src/utils/plugin-types';
|
|
27
28
|
import { Nullable } from '../../typings/helper';
|
|
28
29
|
import { MaybePromise } from '../../common-core/src/utils/common-utils';
|
|
30
|
+
import { HomagIntelligence } from '../../homag-intelligence/src/homag-intelligence';
|
|
29
31
|
|
|
30
32
|
export type ID_TYPE = 'rml_id' | 'tc_id' | 'rml_serialized' | 'tc_serialized';
|
|
31
33
|
export declare const EXT_OBJ_EXCEPTION = "Could not retrieve configuration for external object! Did you implement onGetConfigurationForExternalObject?";
|
|
@@ -75,9 +77,9 @@ export interface InsertItemResult {
|
|
|
75
77
|
export default class RoomlePlanner<P extends readonly PluginName[] = readonly []> implements KernelAccessCallbackI, RoomlePlannerCallback, GlobalAPI, Context, KernelUtilityForUi, ExternalEmbeddable<RoomlePlannerUiCallback>, RubensAPI, ExternalObjectAPI {
|
|
76
78
|
_creator_: string;
|
|
77
79
|
private _activePlugins;
|
|
80
|
+
private _homagIntelligence;
|
|
78
81
|
private _configuratorContext;
|
|
79
82
|
private _domHelper;
|
|
80
|
-
private _scriptLoader;
|
|
81
83
|
private _kernelAccessCallback;
|
|
82
84
|
private _plannerKernelAccess;
|
|
83
85
|
private _rapiAccess;
|
|
@@ -263,6 +265,11 @@ export default class RoomlePlanner<P extends readonly PluginName[] = readonly []
|
|
|
263
265
|
disableMultiselect(): void;
|
|
264
266
|
private _insertExternalObject;
|
|
265
267
|
dragInObject(idOrSerializedConfigString: string, dragEvent: DragEvent, type?: ID_TYPE): Promise<RuntimeId>;
|
|
268
|
+
/**
|
|
269
|
+
* Will remove an element that was dragged into the scene while still dragging it.
|
|
270
|
+
* This is mainly used in the context of pressing ESC while dragging or dragging the element away from the scene again.
|
|
271
|
+
*/
|
|
272
|
+
cancelDragIn(): void;
|
|
266
273
|
/**
|
|
267
274
|
* enable snapping of object to object and object to wall
|
|
268
275
|
*/
|
|
@@ -513,4 +520,9 @@ export default class RoomlePlanner<P extends readonly PluginName[] = readonly []
|
|
|
513
520
|
* only possible if undo was called before
|
|
514
521
|
*/
|
|
515
522
|
redo(): Promise<void>;
|
|
523
|
+
setHomagIntelligence(homagIntelligence: HomagIntelligence): void;
|
|
524
|
+
newPosDataFromId(id: string): any;
|
|
525
|
+
sendToOM(withPrice?: boolean): Promise<void>;
|
|
526
|
+
fetchPrice(planId?: string): Promise<any>;
|
|
527
|
+
getRapiAccess(): RapiAccess;
|
|
516
528
|
}
|
|
@@ -184,6 +184,7 @@ export default class PlannerSceneManager extends ConfiguratorSceneManager implem
|
|
|
184
184
|
enableWallDrawing(): void;
|
|
185
185
|
disableWallDrawing(): void;
|
|
186
186
|
escapeDrawing(cancelDrawing: boolean): void;
|
|
187
|
+
cancelDragIn(): void;
|
|
187
188
|
setSceneEvents(sceneEvents: SceneEvents): void;
|
|
188
189
|
/**
|
|
189
190
|
* called by kernel
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
@@ -7,7 +7,7 @@ export declare class ToolsCore extends Main {
|
|
|
7
7
|
protected setupDependencies(): void;
|
|
8
8
|
protected cleanUpGlobals(): void;
|
|
9
9
|
protected cleanUpDependencies(): void;
|
|
10
|
-
protected bootFinished(): void
|
|
10
|
+
protected bootFinished(): Promise<void>;
|
|
11
11
|
getApi(): RoomleToolsCore;
|
|
12
12
|
protected getContextName(): string;
|
|
13
13
|
}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { RapiItem, RapiConfigurationEnhanced, Element, RapiTag } from './rapi-types';
|
|
2
|
+
import { default as RoomlePlanner } from '../planner-core/src/roomle-planner';
|
|
3
|
+
import { default as RoomleConfigurator } from '../configurator-core/src/roomle-configurator';
|
|
2
4
|
|
|
3
5
|
export declare const EXTERNAL_ID_PREFIX = "__ext__obj__#";
|
|
4
6
|
export type ExtObjId = `${typeof EXTERNAL_ID_PREFIX}${string}`;
|
|
@@ -17,4 +19,10 @@ export type ExternalTag = Partial<RapiTag> & Pick<RapiTag, 'label'> & {
|
|
|
17
19
|
id: ExtObjId;
|
|
18
20
|
};
|
|
19
21
|
export type ExternalGroupData = object | string | string[];
|
|
22
|
+
export type RoomlePlannerWithExtObjs = RoomlePlanner<['external-objects']>;
|
|
23
|
+
export type RoomlePlannerType = RoomlePlanner | RoomlePlannerWithExtObjs;
|
|
24
|
+
export type RoomleConfiguratorWithExtObjs = RoomleConfigurator<[
|
|
25
|
+
'external-objects'
|
|
26
|
+
]>;
|
|
27
|
+
export type RoomleConfiguratorType = RoomleConfigurator | RoomleConfiguratorWithExtObjs;
|
|
20
28
|
export {};
|
|
@@ -284,7 +284,7 @@ export interface KernelObjectConfiguration {
|
|
|
284
284
|
serializedDefinition: string;
|
|
285
285
|
uniqueId: string;
|
|
286
286
|
}
|
|
287
|
-
declare class KernelObjectConfigurationArray extends EmsArray<KernelObjectConfiguration> {
|
|
287
|
+
export declare class KernelObjectConfigurationArray extends EmsArray<KernelObjectConfiguration> {
|
|
288
288
|
}
|
|
289
289
|
export interface LightSourceConfiguration {
|
|
290
290
|
lightSourceAreaInSquareMeters: number;
|
|
@@ -1,2 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { default as BUDGETEER_FILE_NAME } from '../../generated/budgeteer.sw.js?no-inline?url';
|
|
2
|
+
import { default as ASSET_LOADER_FILE_NAME } from '../../generated/asset-loader.worker.js?no-inline?url';
|
|
3
|
+
|
|
4
|
+
export { BUDGETEER_FILE_NAME, ASSET_LOADER_FILE_NAME };
|