@combeenation/custom-code-sdk 0.0.1-alpha9 → 0.0.1-rc2
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/bundle.cjs.js +1 -1
- package/dist/bundle.es.js +500 -459
- package/dist/index.d.ts +1052 -16
- package/package.json +9 -7
package/dist/bundle.es.js
CHANGED
|
@@ -1,472 +1,513 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
};
|
|
5
|
-
var
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
1
|
+
import { z as e } from "zod";
|
|
2
|
+
//#region \0rolldown/runtime.js
|
|
3
|
+
var t = Object.defineProperty, n = (e, n) => {
|
|
4
|
+
let r = {};
|
|
5
|
+
for (var i in e) t(r, i, {
|
|
6
|
+
get: e[i],
|
|
7
|
+
enumerable: !0
|
|
8
|
+
});
|
|
9
|
+
return n || t(r, Symbol.toStringTag, { value: "Module" }), r;
|
|
10
|
+
}, r = "0.0.1-rc2", i = class {
|
|
11
|
+
id;
|
|
12
|
+
#e = "v1";
|
|
13
|
+
#t = void 0;
|
|
14
|
+
constructor(e) {
|
|
15
|
+
this.id = e;
|
|
16
|
+
let t = window.Cbn?.getCustomCodeSdkBridge?.(this.#e);
|
|
17
|
+
if (this.#t = t?.getButtonSdkBridge(this.id), !this.#t) throw Error(`Cannot access API for Button "${this.id}".`);
|
|
18
|
+
}
|
|
19
|
+
onRendered(e) {
|
|
20
|
+
return this.#t?.addOnRenderedCallback(e) ?? { unsubscribe: () => {} };
|
|
21
|
+
}
|
|
22
|
+
onClick(e) {
|
|
23
|
+
return this.#t?.addOnClickCallback(e) ?? { unsubscribe: () => {} };
|
|
24
|
+
}
|
|
25
|
+
async setVisible(e) {
|
|
26
|
+
await this.#t?.setVisible(e);
|
|
27
|
+
}
|
|
28
|
+
setText(e) {
|
|
29
|
+
this.#t?.setText(e);
|
|
30
|
+
}
|
|
31
|
+
setProperty(e, t) {
|
|
32
|
+
this.#t?.setProperty(e, t);
|
|
33
|
+
}
|
|
34
|
+
}, a = class {
|
|
35
|
+
id;
|
|
36
|
+
#e = "v1";
|
|
37
|
+
#t = void 0;
|
|
38
|
+
constructor(e) {
|
|
39
|
+
this.id = e;
|
|
40
|
+
let t = window.Cbn?.getCustomCodeSdkBridge?.(this.#e);
|
|
41
|
+
if (this.#t = t?.getCheckboxSdkBridge(this.id), !this.#t) throw Error(`Cannot access API for Checkbox "${this.id}".`);
|
|
42
|
+
}
|
|
43
|
+
onRendered(e) {
|
|
44
|
+
return this.#t?.addOnRenderedCallback(e) ?? { unsubscribe: () => {} };
|
|
45
|
+
}
|
|
46
|
+
async setVisible(e) {
|
|
47
|
+
await this.#t?.setVisible(e);
|
|
48
|
+
}
|
|
49
|
+
setChecked(e) {
|
|
50
|
+
this.#t?.setChecked(e);
|
|
51
|
+
}
|
|
52
|
+
onCheckedChange(e) {
|
|
53
|
+
return this.#t?.onCheckedChange(e) ?? { unsubscribe: () => {} };
|
|
54
|
+
}
|
|
55
|
+
setProperty(e, t) {
|
|
56
|
+
this.#t?.setProperty(e, t);
|
|
57
|
+
}
|
|
58
|
+
}, o = class {
|
|
59
|
+
id;
|
|
60
|
+
#e = "v1";
|
|
61
|
+
#t = void 0;
|
|
62
|
+
constructor(e) {
|
|
63
|
+
this.id = e;
|
|
64
|
+
let t = window.Cbn?.getCustomCodeSdkBridge?.(this.#e);
|
|
65
|
+
if (this.#t = t?.getCollapsibleSdkBridge(this.id), !this.#t) throw Error(`Cannot access API for Collapsible "${this.id}".`);
|
|
66
|
+
}
|
|
67
|
+
onRendered(e) {
|
|
68
|
+
return this.#t?.addOnRenderedCallback(e) ?? { unsubscribe: () => {} };
|
|
69
|
+
}
|
|
70
|
+
async setVisible(e) {
|
|
71
|
+
await this.#t?.setVisible(e);
|
|
72
|
+
}
|
|
73
|
+
setProperty(e, t) {
|
|
74
|
+
this.#t?.setProperty(e, t);
|
|
75
|
+
}
|
|
76
|
+
}, s = class {
|
|
77
|
+
id;
|
|
78
|
+
#e = "v1";
|
|
79
|
+
#t = void 0;
|
|
80
|
+
constructor(e) {
|
|
81
|
+
this.id = e;
|
|
82
|
+
let t = window.Cbn?.getCustomCodeSdkBridge?.(this.#e);
|
|
83
|
+
if (this.#t = t?.getComboboxSdkBridge(this.id), !this.#t) throw Error(`Cannot access API for Combobox "${this.id}".`);
|
|
84
|
+
}
|
|
85
|
+
onRendered(e) {
|
|
86
|
+
return this.#t?.addOnRenderedCallback(e) ?? { unsubscribe: () => {} };
|
|
87
|
+
}
|
|
88
|
+
onItemRendered(e) {
|
|
89
|
+
return this.#t?.addOnItemRenderedCallback(e) ?? { unsubscribe: () => {} };
|
|
90
|
+
}
|
|
91
|
+
onValueItemRendered(e) {
|
|
92
|
+
return this.#t?.addOnValueItemRenderedCallback(e) ?? { unsubscribe: () => {} };
|
|
93
|
+
}
|
|
94
|
+
onGroupHeaderRendered(e) {
|
|
95
|
+
return this.#t?.addOnGroupHeaderRenderedCallback(e) ?? { unsubscribe: () => {} };
|
|
96
|
+
}
|
|
97
|
+
onValueChange(e) {
|
|
98
|
+
return this.#t?.addOnValueChangeCallback(e) ?? { unsubscribe: () => {} };
|
|
99
|
+
}
|
|
100
|
+
onItemClicked(e) {
|
|
101
|
+
return this.#t?.addOnItemClickedCallback(e) ?? { unsubscribe: () => {} };
|
|
102
|
+
}
|
|
103
|
+
async setVisible(e) {
|
|
104
|
+
await this.#t?.setVisible(e);
|
|
105
|
+
}
|
|
106
|
+
setEntries(e) {
|
|
107
|
+
this.#t?.setEntries(e);
|
|
108
|
+
}
|
|
109
|
+
setGroupData(e) {
|
|
110
|
+
this.#t?.setGroupData(e);
|
|
111
|
+
}
|
|
112
|
+
setProperty(e, t) {
|
|
113
|
+
this.#t?.setProperty(e, t);
|
|
114
|
+
}
|
|
115
|
+
}, c = class {
|
|
116
|
+
id;
|
|
117
|
+
#e = "v1";
|
|
118
|
+
#t = void 0;
|
|
119
|
+
constructor(e) {
|
|
120
|
+
this.id = e;
|
|
121
|
+
let t = window.Cbn?.getCustomCodeSdkBridge?.(this.#e);
|
|
122
|
+
if (this.#t = t?.getCustomCtrlSdkBridge(this.id), !this.#t) throw Error(`Cannot access API for Custom Control "${this.id}".`);
|
|
123
|
+
}
|
|
124
|
+
set renderFn(e) {
|
|
125
|
+
this.#t?.setRenderFn(e);
|
|
126
|
+
}
|
|
127
|
+
async render(e) {
|
|
128
|
+
typeof e == "function" && (this.renderFn = e), await this.#t?.render();
|
|
129
|
+
}
|
|
130
|
+
onRendered(e) {
|
|
131
|
+
return this.#t?.addOnRenderedCallback(e) ?? { unsubscribe: () => {} };
|
|
132
|
+
}
|
|
133
|
+
getElement() {
|
|
134
|
+
return this.#t?.getElement();
|
|
135
|
+
}
|
|
136
|
+
async setVisible(e) {
|
|
137
|
+
await this.#t?.setVisible(e);
|
|
138
|
+
}
|
|
139
|
+
setProperty(e, t) {
|
|
140
|
+
this.#t?.setProperty(e, t);
|
|
141
|
+
}
|
|
142
|
+
}, l = class {
|
|
143
|
+
id;
|
|
144
|
+
#e = "v1";
|
|
145
|
+
#t = void 0;
|
|
146
|
+
constructor(e) {
|
|
147
|
+
this.id = e;
|
|
148
|
+
let t = window.Cbn?.getCustomCodeSdkBridge?.(this.#e);
|
|
149
|
+
if (this.#t = t?.getDataviewSdkBridge(this.id), !this.#t) throw Error(`Cannot access API for Dataview "${this.id}".`);
|
|
150
|
+
}
|
|
151
|
+
onRendered(e) {
|
|
152
|
+
return this.#t?.addOnRenderedCallback(e) ?? { unsubscribe: () => {} };
|
|
153
|
+
}
|
|
154
|
+
onItemRendered(e) {
|
|
155
|
+
return this.#t?.addOnItemRenderedCallback(e) ?? { unsubscribe: () => {} };
|
|
156
|
+
}
|
|
157
|
+
onGroupHeaderRendered(e) {
|
|
158
|
+
return this.#t?.addOnGroupHeaderRenderedCallback(e) ?? { unsubscribe: () => {} };
|
|
159
|
+
}
|
|
160
|
+
onValueChange(e) {
|
|
161
|
+
return this.#t?.addOnValueChangeCallback(e) ?? { unsubscribe: () => {} };
|
|
162
|
+
}
|
|
163
|
+
onItemClicked(e) {
|
|
164
|
+
return this.#t?.addOnItemClickedCallback(e) ?? { unsubscribe: () => {} };
|
|
165
|
+
}
|
|
166
|
+
async setVisible(e) {
|
|
167
|
+
await this.#t?.setVisible(e);
|
|
168
|
+
}
|
|
169
|
+
setEntries(e) {
|
|
170
|
+
this.#t?.setEntries(e);
|
|
171
|
+
}
|
|
172
|
+
setGroupData(e) {
|
|
173
|
+
this.#t?.setGroupData(e);
|
|
174
|
+
}
|
|
175
|
+
setProperty(e, t) {
|
|
176
|
+
this.#t?.setProperty(e, t);
|
|
177
|
+
}
|
|
178
|
+
}, ee = class {
|
|
179
|
+
id;
|
|
180
|
+
#e = "v1";
|
|
181
|
+
#t = void 0;
|
|
182
|
+
constructor(e) {
|
|
183
|
+
this.id = e;
|
|
184
|
+
let t = window.Cbn?.getCustomCodeSdkBridge?.(this.#e);
|
|
185
|
+
if (this.#t = t?.getInputSdkBridge(this.id), !this.#t) throw Error(`Cannot access API for Input "${this.id}".`);
|
|
186
|
+
}
|
|
187
|
+
onRendered(e) {
|
|
188
|
+
return this.#t?.addOnRenderedCallback(e) ?? { unsubscribe: () => {} };
|
|
189
|
+
}
|
|
190
|
+
async setVisible(e) {
|
|
191
|
+
await this.#t?.setVisible(e);
|
|
192
|
+
}
|
|
193
|
+
setValue(e) {
|
|
194
|
+
this.#t?.setValue(e);
|
|
195
|
+
}
|
|
196
|
+
onValueChange(e) {
|
|
197
|
+
return this.#t?.onValueChange(e) ?? { unsubscribe: () => {} };
|
|
198
|
+
}
|
|
199
|
+
setProperty(e, t) {
|
|
200
|
+
this.#t?.setProperty(e, t);
|
|
201
|
+
}
|
|
202
|
+
}, u = class {
|
|
203
|
+
id;
|
|
204
|
+
#e = "v1";
|
|
205
|
+
#t = void 0;
|
|
206
|
+
constructor(e) {
|
|
207
|
+
this.id = e;
|
|
208
|
+
let t = window.Cbn?.getCustomCodeSdkBridge?.(this.#e);
|
|
209
|
+
if (this.#t = t?.getPanelSdkBridge(this.id), !this.#t) throw Error(`Cannot access API for Panel "${this.id}".`);
|
|
210
|
+
}
|
|
211
|
+
onRendered(e) {
|
|
212
|
+
return this.#t?.addOnRenderedCallback(e) ?? { unsubscribe: () => {} };
|
|
213
|
+
}
|
|
214
|
+
async setVisible(e) {
|
|
215
|
+
await this.#t?.setVisible(e);
|
|
216
|
+
}
|
|
217
|
+
setProperty(e, t) {
|
|
218
|
+
this.#t?.setProperty(e, t);
|
|
219
|
+
}
|
|
220
|
+
}, d = class {
|
|
221
|
+
id;
|
|
222
|
+
#e = "v1";
|
|
223
|
+
#t = void 0;
|
|
224
|
+
constructor(e) {
|
|
225
|
+
this.id = e;
|
|
226
|
+
let t = window.Cbn?.getCustomCodeSdkBridge?.(this.#e);
|
|
227
|
+
if (this.#t = t?.getTextSdkBridge(this.id), !this.#t) throw Error(`Cannot access API for Text "${this.id}".`);
|
|
228
|
+
}
|
|
229
|
+
onRendered(e) {
|
|
230
|
+
return this.#t?.addOnRenderedCallback(e) ?? { unsubscribe: () => {} };
|
|
231
|
+
}
|
|
232
|
+
async setVisible(e) {
|
|
233
|
+
await this.#t?.setVisible(e);
|
|
234
|
+
}
|
|
235
|
+
setText(e) {
|
|
236
|
+
this.#t?.setText(e);
|
|
237
|
+
}
|
|
238
|
+
setProperty(e, t) {
|
|
239
|
+
this.#t?.setProperty(e, t);
|
|
240
|
+
}
|
|
241
|
+
}, f = 1, p = [];
|
|
242
|
+
function te(e, t) {
|
|
243
|
+
if (p.length >= f) throw Error(`Only ${f} \`ConfiguratorClient\` can be created at a time.`);
|
|
244
|
+
p.push({
|
|
245
|
+
client: e,
|
|
246
|
+
internals: t
|
|
247
|
+
});
|
|
40
248
|
}
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
d(this, "id");
|
|
46
|
-
a(this, I, "v1");
|
|
47
|
-
a(this, g);
|
|
48
|
-
var i, r;
|
|
49
|
-
this.id = n;
|
|
50
|
-
const e = (r = (i = window.Cbn) == null ? void 0 : i.getCustomCodeSdkBridge) == null ? void 0 : r.call(i, s(this, I));
|
|
51
|
-
if (C(this, g, e == null ? void 0 : e.getCheckboxSdkBridge(this.id)), !s(this, g))
|
|
52
|
-
throw new Error(`Cannot access API for Checkbox "${this.id}".`);
|
|
53
|
-
}
|
|
54
|
-
onRendered(n) {
|
|
55
|
-
var e;
|
|
56
|
-
return ((e = s(this, g)) == null ? void 0 : e.addOnRenderedCallback(n)) ?? { unsubscribe: () => {
|
|
57
|
-
} };
|
|
58
|
-
}
|
|
59
|
-
async setVisible(n) {
|
|
60
|
-
var e;
|
|
61
|
-
await ((e = s(this, g)) == null ? void 0 : e.setVisible(n));
|
|
62
|
-
}
|
|
249
|
+
function m() {
|
|
250
|
+
let e = p[0];
|
|
251
|
+
if (!e) throw Error("Operation not possible as no `ConfiguratorClient` has been registered yet.");
|
|
252
|
+
return e.client;
|
|
63
253
|
}
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
d(this, "id");
|
|
69
|
-
a(this, T, "v1");
|
|
70
|
-
a(this, h);
|
|
71
|
-
var i, r;
|
|
72
|
-
this.id = n;
|
|
73
|
-
const e = (r = (i = window.Cbn) == null ? void 0 : i.getCustomCodeSdkBridge) == null ? void 0 : r.call(i, s(this, T));
|
|
74
|
-
if (C(this, h, e == null ? void 0 : e.getCollapsibleSdkBridge(this.id)), !s(this, h))
|
|
75
|
-
throw new Error(`Cannot access API for Collapsible "${this.id}".`);
|
|
76
|
-
}
|
|
77
|
-
onRendered(n) {
|
|
78
|
-
var e;
|
|
79
|
-
return ((e = s(this, h)) == null ? void 0 : e.addOnRenderedCallback(n)) ?? { unsubscribe: () => {
|
|
80
|
-
} };
|
|
81
|
-
}
|
|
82
|
-
async setVisible(n) {
|
|
83
|
-
var e;
|
|
84
|
-
await ((e = s(this, h)) == null ? void 0 : e.setVisible(n));
|
|
85
|
-
}
|
|
254
|
+
function ne() {
|
|
255
|
+
let e = p[0];
|
|
256
|
+
if (!e) throw Error("Operation not possible as no `ConfiguratorClient` has been registered yet.");
|
|
257
|
+
return e.internals;
|
|
86
258
|
}
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
* configurator.\
|
|
126
|
-
* Using the {@link renderFn} ensures that your changes are applied in a stable and predictable way.
|
|
127
|
-
*/
|
|
128
|
-
set renderFn(n) {
|
|
129
|
-
var e;
|
|
130
|
-
(e = s(this, c)) == null || e.setRenderFn(n);
|
|
131
|
-
}
|
|
132
|
-
/**
|
|
133
|
-
* Forces a re-render of the control.
|
|
134
|
-
*
|
|
135
|
-
* @param renderFn Convenience param which allows setting the {@link renderFn} and triggering a render in one call.
|
|
136
|
-
* The given `renderFn` will be permanently installed and will override any previously set
|
|
137
|
-
* {@link renderFn}.
|
|
138
|
-
*/
|
|
139
|
-
async render(n) {
|
|
140
|
-
var e;
|
|
141
|
-
typeof n == "function" && (this.renderFn = n), await ((e = s(this, c)) == null ? void 0 : e.render());
|
|
142
|
-
}
|
|
143
|
-
/**
|
|
144
|
-
* This allows custom code to register callbacks in which it can perform certain actions like installing event
|
|
145
|
-
* listeners on DOM nodes or adding CSS classes etc. **after** the control has been rendered.
|
|
146
|
-
*
|
|
147
|
-
* The control can be rendered in the following scenarios:
|
|
148
|
-
* - Everytime the control is being shown. This is on initial show as well as when toggling its visibility.
|
|
149
|
-
* - When forcing a render via the {@link render} method.
|
|
150
|
-
* - When the value of the control's `HTML` property changes e.g. via Hive in controls.
|
|
151
|
-
*
|
|
152
|
-
* !!! Important !!!
|
|
153
|
-
*
|
|
154
|
-
* This is **not** meant to be used for manipulating the rendered content of the control besides simple,
|
|
155
|
-
* non-structural/-behavioral changes like adding CSS classes or data attributes etc.
|
|
156
|
-
*
|
|
157
|
-
* For manipulating/controlling the rendered content, use the {@link renderFn} instead.
|
|
158
|
-
*
|
|
159
|
-
* See {@link renderFn} for more differences between the two.
|
|
160
|
-
*/
|
|
161
|
-
onRendered(n) {
|
|
162
|
-
var e;
|
|
163
|
-
return ((e = s(this, c)) == null ? void 0 : e.addOnRenderedCallback(n)) ?? { unsubscribe: () => {
|
|
164
|
-
} };
|
|
165
|
-
}
|
|
166
|
-
getElement() {
|
|
167
|
-
var e;
|
|
168
|
-
return (e = s(this, c)) == null ? void 0 : e.getElement();
|
|
169
|
-
}
|
|
170
|
-
async setVisible(n) {
|
|
171
|
-
var e;
|
|
172
|
-
await ((e = s(this, c)) == null ? void 0 : e.setVisible(n));
|
|
173
|
-
}
|
|
259
|
+
//#endregion
|
|
260
|
+
//#region src/utils/sdk-bridge.provider.ts
|
|
261
|
+
var h = window.Cbn?.getCustomCodeSdkBridge?.("v1");
|
|
262
|
+
if (!h) throw Error("Cannot access Configurator SDK bridge. Make sure to only use the `custom-code-sdk` inside a Combeenation Configurator.");
|
|
263
|
+
var g = h.createCfgrClient("v1", te);
|
|
264
|
+
if (!g) throw Error("Cannot create Configurator Client. Make sure to only use the `custom-code-sdk` inside a Combeenation Configurator.");
|
|
265
|
+
var _ = h.getParentPageUtilsSdkBridge(), v = h.getCtrlsSdkBridge(), y = h.getCfgrUtilsSdkBridge(), re = h.getViewer3dSdkBridge(), ie = h.getLifecycleSdkBridge(), b = g, x = /* @__PURE__ */ function(e) {
|
|
266
|
+
return e[e.Any = 1] = "Any", e[e.Image = 2] = "Image", e;
|
|
267
|
+
}({}), S = /* @__PURE__ */ function(e) {
|
|
268
|
+
return e[e.PdfAsset = 0] = "PdfAsset", e[e.Asset = 1] = "Asset", e[e.Merge = 2] = "Merge", e[e.OutputToCfgnFile = 4] = "OutputToCfgnFile", e;
|
|
269
|
+
}({}), C = /* @__PURE__ */ function(e) {
|
|
270
|
+
return e[e.PdfAsset = S.PdfAsset] = "PdfAsset", e[e.Asset = S.Asset] = "Asset", e;
|
|
271
|
+
}({}), w = (e) => y.uploadCfgnFiles(e, x.Image), T = (e) => y.uploadCfgnFiles(e, x.Any), E = (e) => y.uploadTempCfgnFiles(e, x.Image), D = (e) => y.uploadTempCfgnFiles(e, x.Any), O = (e) => y.convertDocument(e);
|
|
272
|
+
async function k(e, t, n, r) {
|
|
273
|
+
let i = t.length > 1, a = "MergeTask", o = "Task_", s = t.map((t, n) => t.type === C.PdfAsset ? {
|
|
274
|
+
type: S.PdfAsset,
|
|
275
|
+
name: `${o}${n}`,
|
|
276
|
+
bundleAliasName: e,
|
|
277
|
+
assetPath: t.assetPath,
|
|
278
|
+
context: t.context
|
|
279
|
+
} : {
|
|
280
|
+
type: S.Asset,
|
|
281
|
+
name: `${o}${n}`,
|
|
282
|
+
bundleAliasName: e,
|
|
283
|
+
assetPath: t.assetPath
|
|
284
|
+
});
|
|
285
|
+
return i && s.push({
|
|
286
|
+
type: S.Merge,
|
|
287
|
+
name: a,
|
|
288
|
+
inputTaskNames: s.map((e) => e.name)
|
|
289
|
+
}), s.push({
|
|
290
|
+
type: S.OutputToCfgnFile,
|
|
291
|
+
inputTaskName: i ? a : s[0].name,
|
|
292
|
+
name: "OutputPdfTask",
|
|
293
|
+
cfgnFileExtension: "pdf",
|
|
294
|
+
cfgnFileName: n,
|
|
295
|
+
cfgnFileDisplayName: r
|
|
296
|
+
}), y.convertDocument(s);
|
|
174
297
|
}
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
298
|
+
//#endregion
|
|
299
|
+
//#region ../../packages/be-lib/src/lib/hive-enums.ts
|
|
300
|
+
var A = {
|
|
301
|
+
Text: "Text",
|
|
302
|
+
Number: "Number",
|
|
303
|
+
Logic: "Logic",
|
|
304
|
+
Image: "Image",
|
|
305
|
+
FileUrl: "FileUrl",
|
|
306
|
+
TextAsset: "TextAsset",
|
|
307
|
+
Table: "Table"
|
|
308
|
+
};
|
|
309
|
+
`${A.Text}`, `${A.Number}`;
|
|
310
|
+
var j = {
|
|
311
|
+
ValueComponent: "ValueComponent",
|
|
312
|
+
TableComponent: "TableComponent",
|
|
313
|
+
RecordComponent: "RecordComponent",
|
|
314
|
+
ResourceComponent: "ResourceComponent",
|
|
315
|
+
GraphicComponent: "GraphicComponent",
|
|
316
|
+
CheckoutComponent: "CheckoutComponent"
|
|
317
|
+
};
|
|
318
|
+
j.GraphicComponent, j.CheckoutComponent, j.ResourceComponent, j.RecordComponent;
|
|
319
|
+
var M = {
|
|
320
|
+
ValueEditor: "ValueEditor",
|
|
321
|
+
TableEditor: "TableEditor",
|
|
322
|
+
Fiber: "Fiber",
|
|
323
|
+
FiberEditor: "FiberEditor",
|
|
324
|
+
CfgrField: "CfgrField"
|
|
325
|
+
};
|
|
326
|
+
e.enum([
|
|
327
|
+
M.ValueEditor,
|
|
328
|
+
M.TableEditor,
|
|
329
|
+
M.Fiber,
|
|
330
|
+
M.FiberEditor,
|
|
331
|
+
M.CfgrField
|
|
332
|
+
]), e.union([
|
|
333
|
+
e.string(),
|
|
334
|
+
e.number(),
|
|
335
|
+
e.boolean()
|
|
336
|
+
]);
|
|
337
|
+
var N = (e) => typeof e == "string";
|
|
338
|
+
e.string(), e.enum([
|
|
339
|
+
A.Text,
|
|
340
|
+
A.Number,
|
|
341
|
+
A.Logic
|
|
342
|
+
]), e.string(), e.custom((e) => N(e) && e.toLowerCase() === e);
|
|
343
|
+
var P = (e) => e?.toLowerCase() ?? "";
|
|
344
|
+
e.string();
|
|
345
|
+
var ae = e.custom((e) => N(e) ? RegExp(`^${j.ValueComponent}<.*>$`).test(e) : !1), oe = e.custom((e) => N(e) ? RegExp(`^${j.RecordComponent}<.*>$`).test(e) : !1), se = e.custom((e) => N(e) ? RegExp(`^${j.ResourceComponent}<.*>$`).test(e) : !1), ce = e.custom((e) => N(e) ? RegExp(`^${j.TableComponent}<.*>$`).test(e) : !1);
|
|
346
|
+
e.union([
|
|
347
|
+
ae,
|
|
348
|
+
ce,
|
|
349
|
+
oe,
|
|
350
|
+
se,
|
|
351
|
+
e.literal(j.GraphicComponent),
|
|
352
|
+
e.literal(j.CheckoutComponent)
|
|
353
|
+
]);
|
|
354
|
+
var F = e.union([
|
|
355
|
+
e.string(),
|
|
356
|
+
e.number(),
|
|
357
|
+
e.boolean()
|
|
358
|
+
]), le = e.union([
|
|
359
|
+
F,
|
|
360
|
+
e.array(F),
|
|
361
|
+
e.object({}),
|
|
362
|
+
e.unknown()
|
|
363
|
+
]);
|
|
364
|
+
e.object({
|
|
365
|
+
$typ: e.literal("Error"),
|
|
366
|
+
Id: e.string(),
|
|
367
|
+
Message: e.string(),
|
|
368
|
+
route: e.unknown().optional()
|
|
369
|
+
}).or(le);
|
|
370
|
+
//#endregion
|
|
371
|
+
//#region ../configurator-client/src/cmps-registry.ts
|
|
372
|
+
var I = /* @__PURE__ */ new Map();
|
|
373
|
+
function ue(e) {
|
|
374
|
+
let t = P(e.name);
|
|
375
|
+
I.has(t) || I.set(t, e);
|
|
197
376
|
}
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
class
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
377
|
+
//#endregion
|
|
378
|
+
//#region ../configurator-client/src/cmps/value-component.ts
|
|
379
|
+
var de = class {
|
|
380
|
+
name;
|
|
381
|
+
zodType;
|
|
382
|
+
constructor(e, t) {
|
|
383
|
+
this.name = e, this.zodType = t, ue(this);
|
|
384
|
+
}
|
|
385
|
+
async getValue() {
|
|
386
|
+
return await m().getCmpValue(this.name);
|
|
387
|
+
}
|
|
388
|
+
async setInput(e) {
|
|
389
|
+
let t = P(this.name);
|
|
390
|
+
await ne().setCmpInput(t, e, this.zodType);
|
|
391
|
+
}
|
|
392
|
+
onValueChanged(e, t = !1, n) {
|
|
393
|
+
m().onCmpValueChanged(this.name, e, n, t);
|
|
394
|
+
}
|
|
395
|
+
}, fe = () => y.getAssetPaths(), pe = /* @__PURE__ */ function(e) {
|
|
396
|
+
return e[e.Facebook = 0] = "Facebook", e[e.Pinterest = 1] = "Pinterest", e[e.Twitter = 2] = "Twitter", e[e.LinkedIn = 3] = "LinkedIn", e[e.WhatsApp = 4] = "WhatsApp", e[e.Custom = 5] = "Custom", e[e.NativeShare = 6] = "NativeShare", e;
|
|
397
|
+
}({}), L = b.onAnyCmpValueChanged.bind(b), R = async (e) => {
|
|
398
|
+
if (await b.finishConfiguration(e?.input), e.sendDataToParentPage) {
|
|
399
|
+
let t = e.transformParentPageData();
|
|
400
|
+
await _.sendConfigurationFinished(t);
|
|
401
|
+
}
|
|
402
|
+
}, z = async (e) => {
|
|
403
|
+
let t = pe[e.platform], n = e.imageUrl ?? "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP8/x8AAwMCAO+X2ZkAAAAASUVORK5CYII=", r = {
|
|
404
|
+
...e,
|
|
405
|
+
platform: t,
|
|
406
|
+
imageUrl: n
|
|
407
|
+
}, i = await b.shareConfiguration(r);
|
|
408
|
+
await y.openShareWindow(e.platform, i);
|
|
409
|
+
let { shareUrl: a, shareConfigurationId: o } = i;
|
|
410
|
+
return {
|
|
411
|
+
shareUrl: a,
|
|
412
|
+
shareConfigurationId: o
|
|
413
|
+
};
|
|
414
|
+
};
|
|
415
|
+
async function B(e) {
|
|
416
|
+
return await y.executeIntegration(e);
|
|
220
417
|
}
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
onRendered(n) {
|
|
235
|
-
var e;
|
|
236
|
-
return ((e = s(this, m)) == null ? void 0 : e.addOnRenderedCallback(n)) ?? { unsubscribe: () => {
|
|
237
|
-
} };
|
|
238
|
-
}
|
|
239
|
-
async setVisible(n) {
|
|
240
|
-
var e;
|
|
241
|
-
await ((e = s(this, m)) == null ? void 0 : e.setVisible(n));
|
|
242
|
-
}
|
|
418
|
+
//#endregion
|
|
419
|
+
//#region src/utils/cfgr.utils.ts
|
|
420
|
+
var V = () => _.isInIFrame(), H = (e) => _.setIFrameSize(e), U = (e) => y.navigateToLogin(e), W = async (e) => {
|
|
421
|
+
let { promise: t, resolve: n } = Promise.withResolvers(), r = {};
|
|
422
|
+
for (let [t, i] of Object.entries(e)) i.onValueChanged((i) => {
|
|
423
|
+
r[t] = i, Object.keys(e).every((e) => e in r) && n(r);
|
|
424
|
+
}, !0);
|
|
425
|
+
return t;
|
|
426
|
+
};
|
|
427
|
+
//#endregion
|
|
428
|
+
//#region src/utils/ctrl.utils.ts
|
|
429
|
+
function G(e, t) {
|
|
430
|
+
return new i(v.createCtrl("button", e.id, t));
|
|
243
431
|
}
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
class Pe {
|
|
247
|
-
constructor(n) {
|
|
248
|
-
d(this, "id");
|
|
249
|
-
a(this, O, "v1");
|
|
250
|
-
a(this, u);
|
|
251
|
-
var i, r;
|
|
252
|
-
this.id = n;
|
|
253
|
-
const e = (r = (i = window.Cbn) == null ? void 0 : i.getCustomCodeSdkBridge) == null ? void 0 : r.call(i, s(this, O));
|
|
254
|
-
if (C(this, u, e == null ? void 0 : e.getTextSdkBridge(this.id)), !s(this, u))
|
|
255
|
-
throw new Error(`Cannot access API for Text "${this.id}".`);
|
|
256
|
-
}
|
|
257
|
-
onRendered(n) {
|
|
258
|
-
var e;
|
|
259
|
-
return ((e = s(this, u)) == null ? void 0 : e.addOnRenderedCallback(n)) ?? { unsubscribe: () => {
|
|
260
|
-
} };
|
|
261
|
-
}
|
|
262
|
-
async setVisible(n) {
|
|
263
|
-
var e;
|
|
264
|
-
await ((e = s(this, u)) == null ? void 0 : e.setVisible(n));
|
|
265
|
-
}
|
|
266
|
-
setText(n) {
|
|
267
|
-
var e;
|
|
268
|
-
(e = s(this, u)) == null || e.setText(n);
|
|
269
|
-
}
|
|
432
|
+
function K(e, t) {
|
|
433
|
+
return new a(v.createCtrl("checkbox", e.id, t));
|
|
270
434
|
}
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
435
|
+
function q(e, t) {
|
|
436
|
+
return new l(v.createCtrl("dataview", e.id, {
|
|
437
|
+
position: t.position,
|
|
438
|
+
properties: {
|
|
439
|
+
...t.properties,
|
|
440
|
+
listMode: t.mode,
|
|
441
|
+
valueType: t.mode === "no-selection" ? void 0 : t.valueType
|
|
442
|
+
}
|
|
443
|
+
}));
|
|
277
444
|
}
|
|
278
|
-
function
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
445
|
+
function J(e, t) {
|
|
446
|
+
return new s(v.createCtrl("combobox", e.id, {
|
|
447
|
+
position: t.position,
|
|
448
|
+
properties: {
|
|
449
|
+
...t.properties,
|
|
450
|
+
listMode: t.mode,
|
|
451
|
+
valueType: t.mode === "no-selection" ? void 0 : t.valueType
|
|
452
|
+
}
|
|
453
|
+
}));
|
|
283
454
|
}
|
|
284
|
-
function
|
|
285
|
-
|
|
286
|
-
if (!t)
|
|
287
|
-
throw new Error("Operation not possible as no `ConfiguratorClient` has been registered yet.");
|
|
288
|
-
return t.internals;
|
|
455
|
+
function Y(e, t) {
|
|
456
|
+
return new d(v.createCtrl("text", e.id, t));
|
|
289
457
|
}
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
const $ = (j = (A = window.Cbn) == null ? void 0 : A.getCustomCodeSdkBridge) == null ? void 0 : j.call(A, "v1");
|
|
293
|
-
if (!$)
|
|
294
|
-
throw new Error(
|
|
295
|
-
"Cannot access Configurator SDK bridge. Make sure to only use the `custom-code-sdk` inside a Combeenation Configurator."
|
|
296
|
-
);
|
|
297
|
-
const K = $.createCfgrClient(ee, q);
|
|
298
|
-
if (!K)
|
|
299
|
-
throw new Error(
|
|
300
|
-
"Cannot create Configurator Client. Make sure to only use the `custom-code-sdk` inside a Combeenation Configurator."
|
|
301
|
-
);
|
|
302
|
-
const w = $.getParentPageUtilsSdkBridge(), U = $.getCfgrUtilsSdkBridge(), B = K, L = {
|
|
303
|
-
Text: "Text",
|
|
304
|
-
Number: "Number",
|
|
305
|
-
Logic: "Logic"
|
|
306
|
-
}, f = {
|
|
307
|
-
ValueComponent: "ValueComponent",
|
|
308
|
-
TableComponent: "TableComponent",
|
|
309
|
-
// TODO WTT: We're not actively supporting the following cmp types (yet). Neither in editor v2, nor in the headless
|
|
310
|
-
// cfgr client. However, they're still sent w/ our cspd updates, which is why we still list them in our cspd
|
|
311
|
-
// update Zod typings to not fail at parsing etc.
|
|
312
|
-
//
|
|
313
|
-
// If we decide to not support them at all, neither in editor v2, nor in the headless cfgr client, remove
|
|
314
|
-
// them from here and update our cspd update data to not include them anymore.
|
|
315
|
-
//
|
|
316
|
-
// Also see & update `IgnoredCmpBaseTypes` accordingly.
|
|
317
|
-
RecordComponent: "RecordComponent",
|
|
318
|
-
ResourceComponent: "ResourceComponent",
|
|
319
|
-
GraphicComponent: "GraphicComponent",
|
|
320
|
-
CheckoutComponent: "CheckoutComponent"
|
|
321
|
-
}, k = {
|
|
322
|
-
ValueEditor: "ValueEditor",
|
|
323
|
-
TableEditor: "TableEditor",
|
|
324
|
-
Fiber: "Fiber",
|
|
325
|
-
FiberEditor: "FiberEditor",
|
|
326
|
-
CfgrField: "CfgrField"
|
|
327
|
-
};
|
|
328
|
-
o.enum([
|
|
329
|
-
k.ValueEditor,
|
|
330
|
-
k.TableEditor,
|
|
331
|
-
k.Fiber,
|
|
332
|
-
k.FiberEditor,
|
|
333
|
-
k.CfgrField
|
|
334
|
-
]);
|
|
335
|
-
o.union([o.string(), o.number(), o.boolean()]);
|
|
336
|
-
const V = (t) => typeof t == "string";
|
|
337
|
-
o.string();
|
|
338
|
-
o.enum([L.Text, L.Number, L.Logic]);
|
|
339
|
-
o.string();
|
|
340
|
-
o.custom((t) => V(t) && t.toLowerCase() === t);
|
|
341
|
-
const W = (t) => (t == null ? void 0 : t.toLowerCase()) ?? "";
|
|
342
|
-
o.string();
|
|
343
|
-
const te = o.custom(
|
|
344
|
-
(t) => V(t) ? new RegExp(`^${f.ValueComponent}<.*>$`).test(t) : !1
|
|
345
|
-
), ne = o.custom(
|
|
346
|
-
(t) => V(t) ? new RegExp(`^${f.RecordComponent}<.*>$`).test(t) : !1
|
|
347
|
-
), ie = o.custom(
|
|
348
|
-
(t) => V(t) ? new RegExp(`^${f.ResourceComponent}<.*>$`).test(t) : !1
|
|
349
|
-
), se = o.custom(
|
|
350
|
-
(t) => V(t) ? new RegExp(`^${f.TableComponent}<.*>$`).test(t) : !1
|
|
351
|
-
);
|
|
352
|
-
o.union([
|
|
353
|
-
te,
|
|
354
|
-
se,
|
|
355
|
-
ne,
|
|
356
|
-
ie,
|
|
357
|
-
o.literal(f.GraphicComponent),
|
|
358
|
-
o.literal(f.CheckoutComponent)
|
|
359
|
-
]);
|
|
360
|
-
const Z = o.union([o.string(), o.number(), o.boolean()]), oe = o.union([Z, o.array(Z), o.object({}), o.unknown()]), re = o.object({
|
|
361
|
-
$typ: o.literal("Error"),
|
|
362
|
-
// TODO WTT: Introduce more specific typing here for known error IDs etc.? Maybe in combination w/ some server
|
|
363
|
-
// generated enum?
|
|
364
|
-
Id: o.string(),
|
|
365
|
-
Message: o.string(),
|
|
366
|
-
/**
|
|
367
|
-
* Just adding this here for completeness. Not sure if always there and what data it actually holds etc.
|
|
368
|
-
* I guess this could be used for adding squiggly lines to the Hive rule etc.
|
|
369
|
-
*
|
|
370
|
-
* TODO WTT: Clarify what this is + refine the Zod type etc.
|
|
371
|
-
*/
|
|
372
|
-
route: o.unknown().optional()
|
|
373
|
-
});
|
|
374
|
-
re.or(oe);
|
|
375
|
-
const z = /* @__PURE__ */ new Map();
|
|
376
|
-
function ae(t) {
|
|
377
|
-
const n = W(t.name);
|
|
378
|
-
z.has(n) || z.set(n, t);
|
|
458
|
+
function X(e, t) {
|
|
459
|
+
return new u(v.createCtrl("panel", e.id, t));
|
|
379
460
|
}
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
d(this, "name");
|
|
383
|
-
d(this, "zodType");
|
|
384
|
-
this.name = n, this.zodType = e, ae(this);
|
|
385
|
-
}
|
|
386
|
-
/**
|
|
387
|
-
* Function for receiving the value of a component.
|
|
388
|
-
*/
|
|
389
|
-
async getValue() {
|
|
390
|
-
return await N().getCmpValue(this.name);
|
|
391
|
-
}
|
|
392
|
-
/**
|
|
393
|
-
* Sends the ChangeConfigurationValue request to the server
|
|
394
|
-
*/
|
|
395
|
-
async setInput(n) {
|
|
396
|
-
const e = W(this.name);
|
|
397
|
-
await J().setCmpInput(e, n, this.zodType);
|
|
398
|
-
}
|
|
399
|
-
/**
|
|
400
|
-
* @param listener Called whenever the value of the given cmp has changed
|
|
401
|
-
* @param callImmediately `True:` The listener is immediately called with the current value of the cmp at the
|
|
402
|
-
* time, the listener is added\
|
|
403
|
-
* `False:` The listener will be called for the first time when the value of the cmp
|
|
404
|
-
* actually changes
|
|
405
|
-
* @param condition A predicate function which is given the new cmp value.\
|
|
406
|
-
* The function can decide on whether the listener is called or not by returning true or false.
|
|
407
|
-
*/
|
|
408
|
-
onValueChanged(n, e = !1, i) {
|
|
409
|
-
N().onCmpValueChanged(this.name, n, i, e);
|
|
410
|
-
}
|
|
461
|
+
function Z(e, t) {
|
|
462
|
+
return new ee(v.createCtrl("textbox", e.id, t));
|
|
411
463
|
}
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
ke as fireAnalyticsEvent,
|
|
463
|
-
de as getAssetPaths,
|
|
464
|
-
fe as getParentPageUrl,
|
|
465
|
-
pe as navigateToLogin,
|
|
466
|
-
Ce as onAnyCmpValueChanged,
|
|
467
|
-
we as redirectParentPage,
|
|
468
|
-
me as sendCustomMsgToParentPage,
|
|
469
|
-
be as setConfiguratorIFrameSize,
|
|
470
|
-
ue as shareConfiguration,
|
|
471
|
-
G as version
|
|
472
|
-
};
|
|
464
|
+
function Q(e, t) {
|
|
465
|
+
return new c(v.createCtrl("customctrl", e.id, t));
|
|
466
|
+
}
|
|
467
|
+
function $(e, t) {
|
|
468
|
+
return new o(v.createCtrl("collapsible", e.id, t));
|
|
469
|
+
}
|
|
470
|
+
//#endregion
|
|
471
|
+
//#region src/utils/lifecycle.utils.ts
|
|
472
|
+
var me = "`beforeConfiguratorIsRendered` has no effect because it was called after the configurator was already rendered.\nMake sure to call it synchronously in the top-level code of your entry file before any top-level `await`.", he = "`beforeConfiguratorIsRendered` is ignored because it was called more than once.\nIt must only be called once.", ge = (e) => {
|
|
473
|
+
let t = ie.registerBeforeConfiguratorIsRendered(e);
|
|
474
|
+
t === "called-after-cfgr-render" ? console.error(me) : t === "already-registered" && console.error(he);
|
|
475
|
+
}, _e = (e, t) => _.sendCustomMsg(e, t), ve = (e) => _.redirectParentPage(e), ye = () => _.getParentPageUrl(), be = (e, t) => _.fireAnalyticsEvent(e, t), xe = (e) => _.onParentPageEvent(e), Se = async (e, t) => re.createArPage(e, t), Ce = /* @__PURE__ */ n({
|
|
476
|
+
addButtonControl: () => G,
|
|
477
|
+
addCheckboxControl: () => K,
|
|
478
|
+
addCollapsibleControl: () => $,
|
|
479
|
+
addComboboxControl: () => J,
|
|
480
|
+
addCustomControl: () => Q,
|
|
481
|
+
addDataviewControl: () => q,
|
|
482
|
+
addInputControl: () => Z,
|
|
483
|
+
addPanelControl: () => X,
|
|
484
|
+
addTextControl: () => Y,
|
|
485
|
+
beforeConfiguratorIsRendered: () => ge,
|
|
486
|
+
configuratorIsInIFrame: () => V,
|
|
487
|
+
convertDocument: () => O,
|
|
488
|
+
createArPage: () => Se,
|
|
489
|
+
createPdfFromAssets: () => k,
|
|
490
|
+
createSyncCmpValuesStore: () => W,
|
|
491
|
+
executeIntegration: () => B,
|
|
492
|
+
finishConfiguration: () => R,
|
|
493
|
+
fireAnalyticsEvent: () => be,
|
|
494
|
+
getAssetPaths: () => fe,
|
|
495
|
+
getParentPageUrl: () => ye,
|
|
496
|
+
navigateToLogin: () => U,
|
|
497
|
+
onAnyCmpValueChanged: () => L,
|
|
498
|
+
onParentPageEvent: () => xe,
|
|
499
|
+
redirectParentPage: () => ve,
|
|
500
|
+
sendCustomMsgToParentPage: () => _e,
|
|
501
|
+
setConfiguratorIFrameSize: () => H,
|
|
502
|
+
shareConfiguration: () => z,
|
|
503
|
+
uploadFiles: () => T,
|
|
504
|
+
uploadImages: () => w,
|
|
505
|
+
uploadTempFiles: () => D,
|
|
506
|
+
uploadTempImages: () => E,
|
|
507
|
+
version: () => r
|
|
508
|
+
});
|
|
509
|
+
//#endregion
|
|
510
|
+
//#region src/index.ts
|
|
511
|
+
console.log(`Loading custom code SDK v${r}`);
|
|
512
|
+
//#endregion
|
|
513
|
+
export { i as Button, Ce as CbnSdk, a as Checkbox, o as Collapsible, s as Combobox, C as CreatePdfTaskTypes, c as CustomControl, l as Dataview, S as DocumentConvertTaskTypes, ee as Input, u as Panel, d as Text, de as ValueComponent, G as addButtonControl, K as addCheckboxControl, $ as addCollapsibleControl, J as addComboboxControl, Q as addCustomControl, q as addDataviewControl, Z as addInputControl, X as addPanelControl, Y as addTextControl, ge as beforeConfiguratorIsRendered, V as configuratorIsInIFrame, O as convertDocument, Se as createArPage, k as createPdfFromAssets, W as createSyncCmpValuesStore, B as executeIntegration, R as finishConfiguration, be as fireAnalyticsEvent, fe as getAssetPaths, ye as getParentPageUrl, U as navigateToLogin, L as onAnyCmpValueChanged, xe as onParentPageEvent, ve as redirectParentPage, _e as sendCustomMsgToParentPage, H as setConfiguratorIFrameSize, z as shareConfiguration, T as uploadFiles, w as uploadImages, D as uploadTempFiles, E as uploadTempImages, r as version };
|