@genexus/genexus-ide-ui 1.0.42 → 1.0.44

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.
@@ -11,7 +11,7 @@ const mapStylesToComboBoxItemModel = t => t === null || t === void 0 ? void 0 :
11
11
  caption: t.label || t.name
12
12
  })));
13
13
 
14
- const l = {
14
+ const r = {
15
15
  layout: {
16
16
  id: "layout",
17
17
  caption: "Layout",
@@ -39,45 +39,45 @@ const l = {
39
39
  }
40
40
  };
41
41
 
42
- const r = {
42
+ const h = {
43
43
  panels: [ {
44
- id: l.composition.id,
45
- name: l.composition.caption
44
+ id: r.composition.id,
45
+ name: r.composition.caption
46
46
  }, {
47
- id: l.layout.id,
48
- name: l.layout.caption
47
+ id: r.layout.id,
48
+ name: r.layout.caption
49
49
  }, {
50
- id: l.code.id,
51
- name: l.code.caption
50
+ id: r.code.id,
51
+ name: r.code.caption
52
52
  } ],
53
53
  stencils: [ {
54
- id: l.composition.id,
55
- name: l.composition.caption
54
+ id: r.composition.id,
55
+ name: r.composition.caption
56
56
  }, {
57
- id: l.layout.id,
58
- name: l.layout.caption
57
+ id: r.layout.id,
58
+ name: r.layout.caption
59
59
  }, {
60
- id: l.code.id,
61
- name: l.code.caption
60
+ id: r.code.id,
61
+ name: r.code.caption
62
62
  } ],
63
63
  images: [ {
64
- id: l.composition.id,
65
- name: l.composition.caption
64
+ id: r.composition.id,
65
+ name: r.composition.caption
66
66
  } ],
67
67
  fonts: [ {
68
- id: l.composition.id,
69
- name: l.composition.caption
68
+ id: r.composition.id,
69
+ name: r.composition.caption
70
70
  } ],
71
71
  designSystem: [ {
72
- id: l.tokens.id,
73
- name: l.tokens.caption
72
+ id: r.tokens.id,
73
+ name: r.tokens.caption
74
74
  }, {
75
- id: l.styles.id,
76
- name: l.styles.caption
75
+ id: r.styles.id,
76
+ name: r.styles.caption
77
77
  } ]
78
78
  };
79
79
 
80
- const h = new Map([ [ "panels", r.panels ], [ "stencils", r.stencils ], [ "images", r.images ], [ "design_system", r.designSystem ], [ "fonts", r.fonts ] ]);
80
+ const l = new Map([ [ "panels", h.panels ], [ "stencils", h.stencils ], [ "images", h.images ], [ "design_system", h.designSystem ], [ "fonts", h.fonts ] ]);
81
81
 
82
82
  const c = '@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}:host{display:grid;block-size:100%;overflow:auto;grid-template-rows:max-content 1fr max-content}.section{display:contents}.header{display:grid;grid-auto-rows:max-content;grid-template-columns:minmax(88px, max-content) 1fr !important}.header--show-access-token{grid-template-areas:"path-url-label path-url-wrapper" "access-token-label access-token" "style-label style" "module-label module" "checkboxes-options checkboxes-options"}.header--hide-access-token{grid-template-areas:"path-url-label path-url-wrapper" "style-label style" "module-label module" "checkboxes-options checkboxes-options"}.path-url-wrapper{grid-template-columns:1fr max-content}.path-url-label{grid-area:path-url-label}.path-url-control{flex-grow:1}.select-load-button{min-inline-size:80px}.access-token-label{grid-area:access-token-label}.access-token{grid-area:access-token}.style-label{grid-area:style-label}.style{grid-area:style}.module-label{grid-area:module-label}.module{grid-area:module}.checkboxes-options{grid-area:checkboxes-options;grid-template-columns:max-content max-content;justify-content:space-between}.main{display:grid;grid-template-columns:250px 1fr;block-size:100%;overflow:auto}.main--loading{grid-template-columns:1fr}.panel-tab{block-size:100%;display:grid;grid-template-columns:1fr 300px}.panel-tab .panel-item{overflow:auto}.panel-tab:has(>:only-child){grid-template-columns:1fr}.tree-view{padding-block:var(--mer-spacing--2xs)}.tree-view-panel-item{border-inline-start:var(--section-common-border)}.checker-board{--white-square-color:#fff1;--black-square-color:#0000;background:linear-gradient(45deg, var(--white-square-color) 25%, var(--black-square-color) 25%), linear-gradient(-45deg, var(--white-square-color) 25%, var(--black-square-color) 25%), linear-gradient(45deg, var(--black-square-color) 75%, var(--white-square-color) 75%), linear-gradient(-45deg, var(--black-square-color) 75%, var(--white-square-color) 75%);background-size:20px 20px;background-position:0 0, 0 10px, 10px -10px, -10px 0px}.tab{border-width:0 !important}.tab.fit-images .composition-tab-slot{font-size:0}.tab.fit-images img{object-fit:scale-down;object-position:left top;max-height:100%}.tab--hidden{display:none}.button-cancel,.button-ok{min-inline-size:var(--mer-spacing--4xl)}.messages-slot-container{block-size:100%}.composition-tab-slot{block-size:100%;overflow:auto}.empty-state{overflow:auto}.empty-state-button{transform:translateY(-12px)}.message{animation:fadeIn var(--mer-timing--fast) ease-in-out forwards}.message--info{color:var(--mer-text__on-surface)}.message--warning{color:var(--mer-text__warning)}.message--error{color:var(--mer-text__error)}@keyframes fadeIn{from{opacity:0}to{opacity:1}}.combo-box.ch-disabled{--control__bg-color:var(--control__background-color--disabled);--control__border-color:var(--control__border-color--disabled);--control__color:var(--control__color--disabled);--ch-placeholder-color:var(--control-placeholder__color--disabled)}.tree-view::part(item__header){min-inline-size:var(--tree-view__min-inline-size)}';
83
83
 
@@ -94,54 +94,54 @@ var p = undefined && undefined.__classPrivateFieldSet || function(t, e, s, i, a)
94
94
  return i === "a" ? a.call(t, s) : a ? a.value = s : e.set(t, s), s;
95
95
  };
96
96
 
97
- var f, u, m, b, g, k, w, v, y, x, M, W, _, I, C, $, j, D, S, T, z, P, q, A, E, F, V, G, L, O, B, H, N, Y, J, K, Q, R, U, X, Z, tt, et, st, it, at, ot, nt, lt, rt, ht, ct;
97
+ var f, u, m, b, g, k, w, v, y, x, M, W, _, I, C, $, j, D, S, T, z, P, q, A, E, F, V, G, L, O, B, H, R, N, Y, J, K, Q, U, X, Z, tt, et, st, it, at, ot, nt, rt, ht, lt, ct, dt, pt, ft, ut;
98
98
 
99
- const dt = "panels";
99
+ const mt = "panels";
100
100
 
101
- const pt = "stencils";
101
+ const bt = "stencils";
102
102
 
103
- const ft = "images";
103
+ const gt = "images";
104
104
 
105
- const ut = "design_system";
105
+ const kt = "design_system";
106
106
 
107
- const mt = "fonts";
107
+ const wt = "fonts";
108
108
 
109
- const bt = "@@@";
109
+ const vt = "@@@";
110
110
 
111
111
  // ch-checkbox
112
- const gt = "on";
112
+ const yt = "on";
113
113
 
114
114
  // Icons
115
- const kt = a({
115
+ const xt = a({
116
116
  category: "menus",
117
117
  name: "delete",
118
118
  colorType: "primary"
119
119
  });
120
120
 
121
- const wt = a({
121
+ const Mt = a({
122
122
  category: "objects",
123
123
  name: "design"
124
124
  });
125
125
 
126
- const vt = a({
126
+ const Wt = a({
127
127
  category: "controls",
128
128
  name: "file-upload"
129
129
  });
130
130
 
131
131
  // For empty states
132
- const yt = a({
132
+ const _t = a({
133
133
  category: "objects",
134
134
  name: "webpanel"
135
135
  });
136
136
 
137
- const xt = a({
137
+ const It = a({
138
138
  category: "objects",
139
139
  name: "panel-for-sd"
140
140
  });
141
141
 
142
- const Mt = [ "resets/box-sizing", "utils/form", "utils/layout", "utils/typography", "utils/spacing", "components/button", "components/checkbox", "components/edit", "components/tree-view", "components/combo-box", "components/tab", "components/tooltip", "chameleon/scrollbar" ];
142
+ const Ct = [ "resets/box-sizing", "utils/form", "utils/layout", "utils/typography", "utils/spacing", "components/button", "components/checkbox", "components/edit", "components/tree-view", "components/combo-box", "components/tab", "components/tooltip", "chameleon/scrollbar" ];
143
143
 
144
- const Wt = class {
144
+ const $t = class {
145
145
  constructor(s) {
146
146
  t(this, s);
147
147
  f.add(this);
@@ -161,53 +161,82 @@ const Wt = class {
161
161
  m.set(this, new Map);
162
162
  b.set(this, false);
163
163
  g.set(this, void 0);
164
- /* References needed to collect data */ k.set(this, void 0);
165
- w.set(this, void 0);
164
+ k.set(this, {
165
+ all: [],
166
+ none: [ "-" ]
167
+ });
168
+ /* References needed to collect data */ w.set(this, void 0);
166
169
  v.set(this, void 0);
167
170
  y.set(this, void 0);
168
- x.set(this, []);
171
+ x.set(this, void 0);
169
172
  M.set(this, []);
170
173
  W.set(this, []);
171
174
  _.set(this, []);
172
- I.set(this, void 0);
175
+ I.set(this, []);
173
176
  C.set(this, void 0);
174
- j.set(this, (() => {
175
- this.activeTabs.set("panels", r.panels[0].id);
176
- this.activeTabs.set("stencils", r.stencils[0].id);
177
- this.activeTabs.set("images", r.images[0].id);
178
- this.activeTabs.set("fonts", r.fonts[0].id);
179
- this.activeTabs.set("design_system", r.designSystem[0].id);
177
+ $.set(this, void 0);
178
+ j.set(this, (t => {
179
+ let e = 0;
180
+ function countItemsRecursively(t) {
181
+ for (const s of t) {
182
+ e++;
183
+ if (s.variants && Array.isArray(s.variants)) {
184
+ countItemsRecursively(s.variants);
185
+ }
186
+ }
187
+ }
188
+ countItemsRecursively(t);
189
+ return e;
180
190
  }));
181
- D.set(this, (async () => {
191
+ D.set(this, (t => [ {
192
+ leaf: true,
193
+ caption: `Warning: ${t}`,
194
+ startImgSrc: a({
195
+ category: "system",
196
+ name: "warning",
197
+ colorType: "warning"
198
+ }),
199
+ order: -1,
200
+ checkbox: false,
201
+ disabled: true
202
+ } ]));
203
+ T.set(this, (() => {
204
+ this.activeTabs.set("panels", h.panels[0].id);
205
+ this.activeTabs.set("stencils", h.stencils[0].id);
206
+ this.activeTabs.set("images", h.images[0].id);
207
+ this.activeTabs.set("fonts", h.fonts[0].id);
208
+ this.activeTabs.set("design_system", h.designSystem[0].id);
209
+ }));
210
+ z.set(this, (async () => {
182
211
  this.requiresAccessToken = await this.requiresAccessTokenCallback(this.path);
183
212
  // evaluate access token error
184
213
  if (this.accessToken.length) {
185
214
  this.accessTokenHasError = false;
186
215
  }
187
216
  }));
188
- S.set(this, (async () => {
217
+ P.set(this, (async () => {
189
218
  const t = this.isLoaded && this.reactiveSettings.path && this.pathIsValid && this.path !== this.lastLoadCallbackSettingValues.path;
190
219
  const e = !this.requiresAccessToken || this.requiresAccessToken && this.accessToken.length > 0;
191
220
  if (t && e) {
192
- d(this, G, "f").call(this);
221
+ d(this, B, "f").call(this);
193
222
  }
194
223
  }));
195
- z.set(this, (async t => {
224
+ A.set(this, (async t => {
196
225
  var e;
197
226
  if (t.detail.length) {
198
227
  const s = (e = t.detail[0]) === null || e === void 0 ? void 0 : e.item;
199
228
  const i = s.id;
200
- const a = i.split(bt);
229
+ const a = i.split(vt);
201
230
  const o = a[0];
202
231
  const n = a[1];
203
- const l = o && o !== "parent";
204
- const r = n === "design_system";
205
- if (l || r) {
206
- this.tabsModel = h.get(n);
232
+ const r = o && o !== "parent";
233
+ const h = n === "design_system";
234
+ if (r || h) {
235
+ this.tabsModel = l.get(n);
207
236
  this.selectedDesignType = n;
208
- const t = d(this, P, "f").call(this, i);
237
+ const t = d(this, E, "f").call(this, i);
209
238
  if (!t) {
210
- const t = await d(this, O, "f").call(this, o, this.selectedDesignType);
239
+ const t = await d(this, R, "f").call(this, o, this.selectedDesignType);
211
240
  d(this, m, "f").set(i, {
212
241
  designType: this.selectedDesignType,
213
242
  designDataDetail: t
@@ -216,19 +245,19 @@ const Wt = class {
216
245
  // Item has been queried already. The item content exists already.
217
246
  this.selectedDesignType = t.designType;
218
247
  this.selectedDesignItem = t.designDataDetail;
219
- d(this, f, "m", B).call(this, t.designType);
220
- d(this, f, "m", st).call(this, t.designType);
248
+ d(this, f, "m", N).call(this, t.designType);
249
+ d(this, f, "m", nt).call(this, t.designType);
221
250
  }
222
251
  this.renderedTabs.clear();
223
252
  this.renderedTabs.add(this.activeTabs.get(this.selectedDesignType));
224
253
  }
225
254
  }
226
255
  }));
227
- P.set(this, (t => {
256
+ E.set(this, (t => {
228
257
  var e;
229
258
  return (e = d(this, m, "f")) === null || e === void 0 ? void 0 : e.get(t);
230
259
  }));
231
- q.set(this, (t => {
260
+ F.set(this, (t => {
232
261
  const e = /^(\/|\.\/|(\w:))[^:*?"<>|]*\.(sketch|gxsketch)$/i;
233
262
  // Match valid file paths
234
263
  const s = /^https?:\/\/(www\.)?figma\.com/;
@@ -238,65 +267,65 @@ const Wt = class {
238
267
  const a = e.test(t) || s.test(t) || i.test(t);
239
268
  return a;
240
269
  }));
241
- A.set(this, (t => {
270
+ V.set(this, (t => {
242
271
  const e = Array.from(t.detail.values());
243
272
  let s = null;
244
273
  const i = {};
245
274
  for (const t of e) {
246
- if (t.item.id.startsWith(`parent${bt}`)) {
247
- s = t.item.id.split(bt)[1];
275
+ if (t.item.id.startsWith(`parent${vt}`)) {
276
+ s = t.item.id.split(vt)[1];
248
277
  i[s] = [];
249
278
  } else if (t.item.checked && s) {
250
- const e = t.item.id.split(bt)[1];
279
+ const e = t.item.id.split(vt)[1];
251
280
  if (e === s) {
252
- const e = t.item.id.split(bt)[0];
281
+ const e = t.item.id.split(vt)[0];
253
282
  i[s].push(e);
254
283
  }
255
284
  }
256
285
  }
257
286
  // const { designSystem, fonts, images, panels, stencils } = result;
258
- const {fonts: a, panels: o, stencils: n, images: l} = i;
287
+ const {fonts: a, panels: o, stencils: n, images: r} = i;
259
288
  // this.designSystemSelected = designSystem;
260
- p(this, x, o, "f");
261
- p(this, M, n, "f");
262
- p(this, W, l, "f");
263
- p(this, _, a, "f");
289
+ p(this, M, o, "f");
290
+ p(this, W, n, "f");
291
+ p(this, _, r, "f");
292
+ p(this, I, a, "f");
264
293
  }));
265
- E.set(this, (() => {
266
- d(this, I, "f").click();
294
+ G.set(this, (() => {
295
+ d(this, C, "f").click();
267
296
  }));
268
- F.set(this, (t => {
297
+ L.set(this, (t => {
269
298
  this.styleValue = t.target.value;
270
299
  if (this.reactiveSettings.style && this.styleValue !== this.lastLoadCallbackSettingValues.style) {
271
- d(this, G, "f").call(this);
300
+ d(this, B, "f").call(this);
272
301
  }
273
302
  }));
274
- V.set(this, (t => {
303
+ O.set(this, (t => {
275
304
  if (this.reactiveSettings.module && this.defaultModule.id !== t.detail.id && this.pathIsValid) {
276
- d(this, G, "f").call(this);
305
+ d(this, B, "f").call(this);
277
306
  }
278
307
  }));
279
- G.set(this, (async () => {
308
+ B.set(this, (async () => {
280
309
  var t, e;
281
310
  this.isLoading = true;
282
311
  const s = this.selectedFile ? this.selectedFile : this.path;
283
- const i = d(this, k, "f") ? d(this, k, "f").value : undefined;
312
+ const i = d(this, w, "f") ? d(this, w, "f").value : undefined;
284
313
  const a = this.styleValue;
285
- const o = d(this, w, "f").value === gt;
286
- const n = await this.loadCallback(s, a, o, i, d(this, L, "f"));
314
+ const o = d(this, v, "f").value === yt;
315
+ const n = await this.loadCallback(s, a, o, i, d(this, H, "f"));
287
316
  // clear
288
- p(this, x, [], "f");
289
- p(this, M, [], "f");
290
- p(this, _, [], "f");
317
+ p(this, M, [], "f");
318
+ p(this, W, [], "f");
319
+ p(this, I, [], "f");
291
320
  this.selectedDesignType = undefined;
292
321
  this.selectedDesignItem = undefined;
293
322
  this.messages = [];
294
323
  this.designData = n;
295
324
  this.isLoaded = (t = n === null || n === void 0 ? void 0 : n.success) !== null && t !== void 0 ? t : false;
296
325
  this.isLoading = false;
297
- const l = (e = n.designSystem[0]) === null || e === void 0 ? void 0 : e.name;
298
- if (l && !this.styleValue) {
299
- this.styleValue = l;
326
+ const r = (e = n.designSystem[0]) === null || e === void 0 ? void 0 : e.name;
327
+ if (r && !this.styleValue) {
328
+ this.styleValue = r;
300
329
  }
301
330
  // update the settings that were used for the last load
302
331
  if (this.reactiveSettings.path && this.pathIsValid) {
@@ -306,32 +335,32 @@ const Wt = class {
306
335
  this.lastLoadCallbackSettingValues.style = a;
307
336
  }
308
337
  if (this.reactiveSettings.module) {
309
- this.lastLoadCallbackSettingValues.moduleId = d(this, v, "f").value.id;
338
+ this.lastLoadCallbackSettingValues.moduleId = d(this, y, "f").value.id;
310
339
  }
311
340
  if (this.reactiveSettings.importAsWebPanels) {
312
341
  this.lastLoadCallbackSettingValues.importAsWebPanels = o;
313
342
  }
314
343
  }));
315
- L.set(this, (t => {
344
+ H.set(this, (t => {
316
345
  this.messages = [ ...this.messages, t ];
317
346
  }));
318
- O.set(this, (async (t, e) => {
347
+ R.set(this, (async (t, e) => {
319
348
  let s;
320
349
  switch (e) {
321
- case ft:
350
+ case gt:
322
351
  s = this.loadImageCallback;
323
352
  break;
324
353
 
325
- case ut:
354
+ case kt:
326
355
  s = this.loadDesignSystemCallback;
327
356
  break;
328
357
 
329
- case mt:
358
+ case wt:
330
359
  s = this.loadFontCallback;
331
360
  break;
332
361
 
333
- case dt:
334
- case pt:
362
+ case mt:
363
+ case bt:
335
364
  s = this.loadPanelDataCallback;
336
365
  break;
337
366
  }
@@ -339,46 +368,61 @@ const Wt = class {
339
368
  await s(t).then((t => {
340
369
  this.selectedDesignType = e;
341
370
  this.selectedDesignItem = t;
342
- d(this, f, "m", B).call(this, e);
343
- d(this, f, "m", st).call(this, e);
371
+ d(this, f, "m", N).call(this, e);
372
+ d(this, f, "m", nt).call(this, e);
344
373
  i = t;
345
374
  }));
346
375
  return i;
347
376
  }));
348
- H.set(this, (() => {
377
+ Y.set(this, ((t, e) => {
378
+ let s = e;
379
+ const i = d(this, j, "f").call(this, t);
380
+ const a = e.length;
381
+ if (i === a) {
382
+ s = d(this, k, "f").all;
383
+ } else if (a === 0) {
384
+ s = d(this, k, "f").none;
385
+ }
386
+ return s;
387
+ }));
388
+ J.set(this, (() => {
349
389
  var t, e;
390
+ const s = d(this, Y, "f").call(this, this.designData.panels, d(this, M, "f"));
391
+ const i = d(this, Y, "f").call(this, this.designData.stencils, d(this, W, "f"));
392
+ const a = d(this, Y, "f").call(this, this.designData.images, d(this, _, "f"));
393
+ const o = d(this, Y, "f").call(this, this.designData.fonts, d(this, I, "f"));
350
394
  this.confirmCallback({
351
- panels: d(this, x, "f"),
352
- stencils: d(this, M, "f"),
353
- fonts: d(this, _, "f"),
354
- images: d(this, W, "f"),
355
- moduleId: (e = (t = d(this, v, "f")) === null || t === void 0 ? void 0 : t.value) === null || e === void 0 ? void 0 : e.id,
395
+ panels: s,
396
+ stencils: i,
397
+ images: a,
398
+ fonts: o,
399
+ moduleId: (e = (t = d(this, y, "f")) === null || t === void 0 ? void 0 : t.value) === null || e === void 0 ? void 0 : e.id,
356
400
  styleName: this.styleValue,
357
- importAsWebPanels: d(this, w, "f").value === gt
401
+ importAsWebPanels: d(this, v, "f").value === yt
358
402
  });
359
403
  }));
360
- N.set(this, (() => {
404
+ K.set(this, (() => {
361
405
  this.cancelCallback();
362
406
  this.isLoading = false;
363
407
  }));
364
- Y.set(this, (t => {
365
- this.fitImages = t.detail === gt;
408
+ Q.set(this, (t => {
409
+ this.fitImages = t.detail === yt;
366
410
  }));
367
- J.set(this, (t => t.reduce(((t, e, s, i) => i[t].name <= e.name ? t : s), 0)));
368
- K.set(this, (() => {
411
+ U.set(this, (t => t.reduce(((t, e, s, i) => i[t].name <= e.name ? t : s), 0)));
412
+ X.set(this, (() => {
369
413
  const t = this.reactiveSettings.importAsWebPanels && this.pathIsValid;
370
414
  if (t) {
371
- d(this, G, "f").call(this);
415
+ d(this, B, "f").call(this);
372
416
  }
373
417
  }));
374
- Q.set(this, (() => {
418
+ Z.set(this, (() => {
375
419
  this.selectedFile = null;
376
420
  this.path = "";
377
421
  this.accessToken = "";
378
422
  this.selectedFile = null;
379
- d(this, I, "f").value = null;
423
+ d(this, C, "f").value = null;
380
424
  }));
381
- R.set(this, (t => {
425
+ tt.set(this, (t => {
382
426
  var e;
383
427
  const s = t.target;
384
428
  if (((e = s.files) === null || e === void 0 ? void 0 : e.length) > 0) {
@@ -387,40 +431,40 @@ const Wt = class {
387
431
  // we know the path is valid because the extensions are restricted by "extensions" Prop.
388
432
  }
389
433
  }));
390
- U.set(this, (t => {
434
+ et.set(this, (t => {
391
435
  const e = t.target;
392
436
  e.type = "text";
393
437
  // display token on focus
394
438
  }));
395
- X.set(this, (t => {
439
+ st.set(this, (t => {
396
440
  const e = t.target;
397
441
  e.type = "password";
398
442
  // hide token on blur
399
443
  this.accessTokenChanged(e.value);
400
444
  }));
401
- Z.set(this, (async t => {
445
+ it.set(this, (async t => {
402
446
  this.path = t.detail;
403
- d(this, D, "f").call(this);
447
+ d(this, z, "f").call(this);
404
448
  this.selectedFile = null;
405
449
  if (!this.path.length) {
406
450
  this.designData = null;
407
451
  }
408
452
  }));
409
- tt.set(this, (() => {
453
+ at.set(this, (() => {
410
454
  const t = this.isLoading || this.pathIsValid && this.requiresAccessToken && this.accessToken.length === 0;
411
455
  const s = this.isLoading || this.path.length === 0;
412
456
  const i = this.isLoading;
413
457
  const a = this.isLoading;
414
458
  const n = !this.pathIsValid && this.path.length > 0;
415
- const l = !this.pathIsValid && this.path.length > 0;
416
- const r = this.isLoading || !this.designDataTreeDataModel.length || this.selectedDesignType === "stencils" || this.selectedDesignType === "design_system";
417
- let h;
459
+ const r = !this.pathIsValid && this.path.length > 0;
460
+ const h = this.isLoading || !this.designDataTreeDataModel.length || this.selectedDesignType === "stencils" || this.selectedDesignType === "design_system";
461
+ let l;
418
462
  if (this.pathIsValid && this.path === this.lastLoadCallbackSettingValues.path) {
419
- h = d(this, u, "f").header.btnReload;
463
+ l = d(this, u, "f").header.btnReload;
420
464
  } else if (this.pathIsValid) {
421
- h = d(this, u, "f").header.btnLoad;
465
+ l = d(this, u, "f").header.btnLoad;
422
466
  } else {
423
- h = d(this, u, "f").header.selectFileButton;
467
+ l = d(this, u, "f").header.selectFileButton;
424
468
  }
425
469
  return e("header", {
426
470
  class: {
@@ -449,15 +493,15 @@ const Wt = class {
449
493
  part: "option-path",
450
494
  type: "text",
451
495
  value: this.path,
452
- onInput: d(this, Z, "f"),
453
- onBlur: this.reactiveSettings.path && d(this, S, "f"),
496
+ onInput: d(this, it, "f"),
497
+ onBlur: this.reactiveSettings.path && d(this, P, "f"),
454
498
  disabled: this.isLoading,
455
499
  placeholder: `${d(this, u, "f").header.pathPlaceholder}`,
456
- startImgSrc: vt,
457
- ref: t => p(this, C, t, "f")
458
- }), l && e("ch-tooltip", {
500
+ startImgSrc: Wt,
501
+ ref: t => p(this, $, t, "f")
502
+ }), r && e("ch-tooltip", {
459
503
  class: "tooltip",
460
- actionElement: d(this, C, "f"),
504
+ actionElement: d(this, $, "f"),
461
505
  blockAlign: o.tooltipSettings.blockAlign,
462
506
  inlineAlign: o.tooltipSettings.inlineAlign,
463
507
  delay: o.tooltipSettings.delay
@@ -465,8 +509,8 @@ const Wt = class {
465
509
  hidden: true,
466
510
  type: "file",
467
511
  accept: d(this, g, "f"),
468
- onChange: d(this, R, "f"),
469
- ref: t => p(this, I, t, "f")
512
+ onChange: d(this, tt, "f"),
513
+ ref: t => p(this, C, t, "f")
470
514
  }), e("div", {
471
515
  class: "buttons-spacer"
472
516
  }, e("button", {
@@ -476,16 +520,16 @@ const Wt = class {
476
520
  class: "button-tertiary button-icon-only",
477
521
  part: "reset-all-button",
478
522
  disabled: s,
479
- onClick: !s && d(this, Q, "f")
523
+ onClick: !s && d(this, Z, "f")
480
524
  }, e("ch-image", {
481
525
  class: "icon-md",
482
- src: kt,
526
+ src: xt,
483
527
  disabled: s
484
528
  })), e("button", {
485
529
  // load file button
486
530
  id: "button-load",
487
531
  type: "primary-text-only",
488
- onClick: this.pathIsValid ? d(this, G, "f") : d(this, E, "f"),
532
+ onClick: this.pathIsValid ? d(this, B, "f") : d(this, G, "f"),
489
533
  part: "button button--load",
490
534
  disabled: t,
491
535
  class: {
@@ -493,7 +537,7 @@ const Wt = class {
493
537
  "button-secondary": !this.pathIsValid,
494
538
  "select-load-button": true
495
539
  }
496
- }, h))), this.requiresAccessToken && [ e("label", {
540
+ }, l))), this.requiresAccessToken && [ e("label", {
497
541
  // access token label
498
542
  class: "label access-token-label"
499
543
  }, d(this, u, "f").header.accessToken), e("div", null, e("ch-edit", {
@@ -502,17 +546,17 @@ const Wt = class {
502
546
  "access-token": true,
503
547
  "input-error": this.accessTokenHasError
504
548
  },
505
- ref: t => p(this, k, t, "f"),
549
+ ref: t => p(this, w, t, "f"),
506
550
  value: this.accessToken,
507
551
  placeholder: d(this, u, "f").header.accessTokenPlaceholder,
508
- onFocus: d(this, U, "f"),
509
- onBlur: d(this, X, "f"),
552
+ onFocus: d(this, et, "f"),
553
+ onBlur: d(this, st, "f"),
510
554
  part: "access-token",
511
555
  disabled: this.isLoading,
512
556
  type: "password"
513
557
  }), this.accessTokenHasError && e("ch-tooltip", {
514
558
  class: "tooltip",
515
- actionElement: d(this, k, "f"),
559
+ actionElement: d(this, w, "f"),
516
560
  blockAlign: o.tooltipSettings.blockAlign,
517
561
  inlineAlign: o.tooltipSettings.inlineAlign,
518
562
  delay: o.tooltipSettings.delay
@@ -528,7 +572,7 @@ const Wt = class {
528
572
  disabled: i,
529
573
  model: this.stylesAsComboBoxModel,
530
574
  value: this.styleValue,
531
- onInput: d(this, F, "f"),
575
+ onInput: d(this, L, "f"),
532
576
  part: "option-style",
533
577
  class: "combo-box style"
534
578
  }), e("label", {
@@ -540,8 +584,8 @@ const Wt = class {
540
584
  value: this.defaultModule,
541
585
  defaultValue: this.defaultModule,
542
586
  selectEntityCallback: this.selectModuleCallback,
543
- ref: t => p(this, v, t, "f"),
544
- onValueChanged: this.reactiveSettings.module && d(this, V, "f"),
587
+ ref: t => p(this, y, t, "f"),
588
+ onValueChanged: this.reactiveSettings.module && d(this, O, "f"),
545
589
  disabled: a,
546
590
  class: "module"
547
591
  }), e("div", {
@@ -549,13 +593,13 @@ const Wt = class {
549
593
  class: "checkboxes-options field-group"
550
594
  }, e("ch-checkbox", {
551
595
  caption: d(this, u, "f").header.importAs,
552
- checkedValue: gt,
596
+ checkedValue: yt,
553
597
  class: "checkbox import-as-web-panels",
554
- ref: t => p(this, w, t, "f"),
555
- value: this.importAsWebPanels ? gt : undefined,
598
+ ref: t => p(this, v, t, "f"),
599
+ value: this.importAsWebPanels ? yt : undefined,
556
600
  part: "option-import-as-web-panels",
557
601
  disabled: this.isLoading,
558
- onInput: d(this, K, "f")
602
+ onInput: d(this, X, "f")
559
603
  }), e("div", {
560
604
  class: {
561
605
  "field-group-inline": true,
@@ -564,27 +608,27 @@ const Wt = class {
564
608
  }, e("ch-checkbox", {
565
609
  // fit images
566
610
  caption: d(this, u, "f").header.fitImages,
567
- checkedValue: gt,
611
+ checkedValue: yt,
568
612
  class: "checkbox",
569
613
  part: "fit-images-checkbox",
570
- disabled: r,
571
- onInput: d(this, Y, "f")
614
+ disabled: h,
615
+ onInput: d(this, Q, "f")
572
616
  }))));
573
617
  }));
574
- et.set(this, (() => this.messages.length > 0 && this.messages.map((t => e("p", {
618
+ ot.set(this, (() => this.messages.length > 0 && this.messages.map((t => e("p", {
575
619
  class: {
576
620
  "text-body-regular-m": true,
577
621
  message: true,
578
622
  [`message--${t.type}`]: true
579
623
  }
580
624
  }, t.type, ": ", t.text)))));
581
- it.set(this, (() => {
625
+ rt.set(this, (() => {
582
626
  var t, s;
583
627
  if (this.isLoading || ((t = this.designData) === null || t === void 0 ? void 0 : t.success) === false) {
584
628
  return e("div", {
585
629
  class: "main main--loading scrollable",
586
- ref: t => p(this, y, t, "f")
587
- }, d(this, et, "f").call(this), e("div", {
630
+ ref: t => p(this, x, t, "f")
631
+ }, d(this, ot, "f").call(this), e("div", {
588
632
  class: "text-body-regular-m spacing-body"
589
633
  }, e("slot", {
590
634
  name: "messages"
@@ -593,22 +637,22 @@ const Wt = class {
593
637
  /* #main*/
594
638
  return e("div", {
595
639
  class: "main"
596
- }, [ d(this, at, "f").call(this), d(this, ct, "f").call(this) ]);
640
+ }, [ d(this, ht, "f").call(this), d(this, ut, "f").call(this) ]);
597
641
  } else {
598
642
  return e("gx-ide-empty-state", {
599
643
  class: "empty-state scrollable",
600
- stateIconSrc: wt,
644
+ stateIconSrc: Mt,
601
645
  isAnimated: d(this, b, "f"),
602
646
  stateTitle: d(this, u, "f").messages.noDesignSelected,
603
647
  key: "no-objects-empty-state"
604
648
  }, e("button", {
605
649
  // begin by selecting a file
606
650
  class: "button-tertiary empty-state-button",
607
- onClick: d(this, E, "f")
651
+ onClick: d(this, G, "f")
608
652
  }, d(this, u, "f").messages.selectDesign));
609
653
  }
610
654
  }));
611
- at.set(this, (() => e("ch-tree-view-render", {
655
+ ht.set(this, (() => e("ch-tree-view-render", {
612
656
  part: "data-tree",
613
657
  class: "tree-view",
614
658
  id: "data-tree",
@@ -621,10 +665,10 @@ const Wt = class {
621
665
  toggleCheckboxes: true,
622
666
  checkbox: true,
623
667
  checked: true,
624
- onCheckedItemsChange: d(this, A, "f"),
625
- onSelectedItemsChange: d(this, z, "f")
668
+ onCheckedItemsChange: d(this, V, "f"),
669
+ onSelectedItemsChange: d(this, A, "f")
626
670
  })));
627
- ot.set(this, (() => {
671
+ lt.set(this, (() => {
628
672
  var t;
629
673
  const s = ((t = this.designData) === null || t === void 0 ? void 0 : t.success) !== true || this.isLoading;
630
674
  return e("footer", {
@@ -636,7 +680,7 @@ const Wt = class {
636
680
  id: "button-cancel",
637
681
  class: "button-secondary button-cancel",
638
682
  type: "outlined",
639
- onClick: d(this, N, "f"),
683
+ onClick: d(this, K, "f"),
640
684
  part: "button button--cancel",
641
685
  slot: "footer-end"
642
686
  }, d(this, u, "f").footer.btnCancel), e("button", {
@@ -644,13 +688,13 @@ const Wt = class {
644
688
  id: "button-ok",
645
689
  class: "button-primary button-ok",
646
690
  type: "primary-text-only",
647
- onClick: !s && d(this, H, "f"),
691
+ onClick: !s && d(this, J, "f"),
648
692
  part: "button button--ok",
649
693
  disabled: s,
650
694
  slot: "footer-end"
651
695
  }, d(this, u, "f").footer.btnOk)));
652
696
  }));
653
- nt.set(this, (() => {
697
+ ct.set(this, (() => {
654
698
  var t, s;
655
699
  if (this.selectedDesignType === "panels") {
656
700
  return ((s = (t = this.selectedDesignItem) === null || t === void 0 ? void 0 : t.composition) === null || s === void 0 ? void 0 : s.preview) ? e("div", {
@@ -662,20 +706,20 @@ const Wt = class {
662
706
  })) : e("gx-ide-empty-state", {
663
707
  class: "panel-tab__empty-state",
664
708
  stateTitle: d(this, u, "f").messages.noPanelPreviewAvailable,
665
- stateIconSrc: d(this, w, "f").value === gt ? yt : xt
709
+ stateIconSrc: d(this, v, "f").value === yt ? _t : It
666
710
  });
667
711
  }
668
712
  return null;
669
713
  }));
670
- lt.set(this, (() => {
671
- const t = (this.selectedDesignType === dt || this.selectedDesignType === pt) && this.detailTreeModel.length > 0;
714
+ dt.set(this, (() => {
715
+ const t = (this.selectedDesignType === mt || this.selectedDesignType === bt) && this.detailTreeModel.length > 0;
672
716
  return e("div", {
673
717
  class: {
674
718
  "panel-tab": true,
675
719
  "panel-tab--controls-tree": t
676
720
  },
677
721
  part: "data-panel-composition-container"
678
- }, d(this, nt, "f").call(this), t ? e("ch-tree-view-render", {
722
+ }, d(this, ct, "f").call(this), t ? e("ch-tree-view-render", {
679
723
  part: "data-panel-composition-tree",
680
724
  class: "tree-view tree-view-panel-item scrollable",
681
725
  showLines: "last",
@@ -684,7 +728,7 @@ const Wt = class {
684
728
  dropDisabled: true
685
729
  }) : null);
686
730
  }));
687
- rt.set(this, (() => e("div", {
731
+ pt.set(this, (() => e("div", {
688
732
  part: "data-panel-composition-preview",
689
733
  class: "data-preview",
690
734
  style: {
@@ -693,15 +737,15 @@ const Wt = class {
693
737
  }, e("img", {
694
738
  src: this.selectedDesignItem ? this.selectedDesignItem : undefined,
695
739
  alt: "Preview",
696
- class: this.selectedDesignType === ft ? "checker-board" : undefined
740
+ class: this.selectedDesignType === gt ? "checker-board" : undefined
697
741
  }))));
698
- ht.set(this, (t => {
742
+ ft.set(this, (t => {
699
743
  this.renderedTabs.clear();
700
744
  this.renderedTabs.add(t.detail.newSelectedId);
701
745
  this.reRenderCounter++;
702
746
  this.activeTabs.set(this.selectedDesignType, t.detail.newSelectedId);
703
747
  }));
704
- ct.set(this, (() => e("ch-tab-render", {
748
+ ut.set(this, (() => e("ch-tab-render", {
705
749
  // main section
706
750
  class: {
707
751
  tab: true,
@@ -713,45 +757,45 @@ const Wt = class {
713
757
  selectedId: this.activeTabs.get(this.selectedDesignType),
714
758
  overflow: "auto",
715
759
  contain: "size",
716
- onSelectedItemChange: d(this, ht, "f")
760
+ onSelectedItemChange: d(this, ft, "f")
717
761
  }, e("div", {
718
- slot: l.tokens.slot,
762
+ slot: r.tokens.slot,
719
763
  class: "spacing-body",
720
764
  style: {
721
- display: this.renderedTabs.has(l.tokens.id) ? "" : "none"
765
+ display: this.renderedTabs.has(r.tokens.id) ? "" : "none"
722
766
  }
723
767
  }, e("slot", {
724
- name: l.tokens.slot
768
+ name: r.tokens.slot
725
769
  })), e("div", {
726
- slot: l.styles.slot,
770
+ slot: r.styles.slot,
727
771
  class: "spacing-body",
728
772
  style: {
729
- display: this.renderedTabs.has(l.styles.id) ? "" : "none"
773
+ display: this.renderedTabs.has(r.styles.id) ? "" : "none"
730
774
  }
731
775
  }, e("slot", {
732
- name: l.styles.slot
776
+ name: r.styles.slot
733
777
  })), e("div", {
734
778
  class: "composition-tab-slot scrollable",
735
- slot: l.composition.slot,
779
+ slot: r.composition.slot,
736
780
  style: {
737
- display: this.renderedTabs.has(l.composition.id) ? "" : "none"
781
+ display: this.renderedTabs.has(r.composition.id) ? "" : "none"
738
782
  }
739
- }, this.selectedDesignType === ft || this.selectedDesignType === mt ? d(this, rt, "f").call(this) : d(this, lt, "f").call(this)), e("div", {
740
- slot: l.layout.slot,
783
+ }, this.selectedDesignType === gt || this.selectedDesignType === wt ? d(this, pt, "f").call(this) : d(this, dt, "f").call(this)), e("div", {
784
+ slot: r.layout.slot,
741
785
  class: "spacing-body",
742
786
  style: {
743
- display: this.renderedTabs.has(l.layout.id) ? "" : "none"
787
+ display: this.renderedTabs.has(r.layout.id) ? "" : "none"
744
788
  }
745
789
  }, e("slot", {
746
- name: l.layout.slot
790
+ name: r.layout.slot
747
791
  })), e("div", {
748
- slot: l.code.slot,
792
+ slot: r.code.slot,
749
793
  class: "spacing-body",
750
794
  style: {
751
- display: this.renderedTabs.has(l.code.id) ? "" : "none"
795
+ display: this.renderedTabs.has(r.code.id) ? "" : "none"
752
796
  }
753
797
  }, e("slot", {
754
- name: l.code.slot
798
+ name: r.code.slot
755
799
  })))));
756
800
  this.reRenderCounter = 0;
757
801
  this.stylesAsComboBoxModel = undefined;
@@ -804,7 +848,7 @@ const Wt = class {
804
848
  }
805
849
  pathIsValidChanged(t) {
806
850
  if (t) {
807
- d(this, D, "f").call(this);
851
+ d(this, z, "f").call(this);
808
852
  } else {
809
853
  // hide access token input if path is not valid
810
854
  this.requiresAccessToken = false;
@@ -813,24 +857,24 @@ const Wt = class {
813
857
  designDataChanged(t) {
814
858
  if (t) {
815
859
  // panels
816
- const t = d(this, J, "f").call(this, this.designData.panels);
817
- const e = d(this, w, "f").value === gt;
860
+ const t = d(this, U, "f").call(this, this.designData.panels);
861
+ const e = d(this, v, "f").value === yt;
818
862
  const s = e ? "objects/webpanel" : "objects/panel-for-sd";
819
863
  // images
820
864
  const i = "objects/image";
821
865
  this.designDataTreeDataModel = [ {
822
866
  order: 0,
823
- id: `parent${bt}${dt}`,
867
+ id: `parent${vt}${mt}`,
824
868
  leaf: false,
825
869
  caption: e ? d(this, u, "f").tree.webPanels : d(this, u, "f").tree.panels,
826
870
  startImgSrc: s,
827
871
  checkbox: true,
828
872
  checked: true,
829
873
  expanded: true,
830
- items: d(this, f, "m", $).call(this, this.designData.panels, dt, s, t)
874
+ items: d(this, f, "m", S).call(this, this.designData.panels, mt, s, t)
831
875
  }, {
832
876
  order: 1,
833
- id: `parent${bt}${pt}`,
877
+ id: `parent${vt}${bt}`,
834
878
  leaf: false,
835
879
  caption: d(this, u, "f").tree.stencils,
836
880
  startImgSrc: "objects/stencil",
@@ -838,27 +882,29 @@ const Wt = class {
838
882
  checked: true,
839
883
  expanded: true,
840
884
  items: this.designData.stencils.map((t => ({
841
- id: `${t.id}${bt}${pt}`,
885
+ id: `${t.id}${vt}${bt}`,
842
886
  class: "object tree-view-item",
843
- leaf: true,
887
+ leaf: !t.warning,
844
888
  caption: t.name,
845
889
  startImgSrc: "objects/stencil",
846
890
  checkbox: true,
847
- checked: true
891
+ checked: true,
892
+ expanded: true,
893
+ items: t.warning && d(this, D, "f").call(this, t.warning)
848
894
  })))
849
895
  }, {
850
896
  order: 2,
851
- id: `parent${bt}${ft}`,
897
+ id: `parent${vt}${gt}`,
852
898
  leaf: false,
853
899
  caption: d(this, u, "f").tree.images,
854
900
  startImgSrc: i,
855
901
  checkbox: true,
856
902
  checked: true,
857
903
  expanded: true,
858
- items: d(this, f, "m", $).call(this, this.designData.images, ft, i)
904
+ items: d(this, f, "m", S).call(this, this.designData.images, gt, i)
859
905
  }, {
860
906
  order: 3,
861
- id: `parent${bt}${mt}`,
907
+ id: `parent${vt}${wt}`,
862
908
  leaf: false,
863
909
  caption: d(this, u, "f").tree.fonts,
864
910
  startImgSrc: "controls/font",
@@ -866,16 +912,18 @@ const Wt = class {
866
912
  checked: true,
867
913
  expanded: true,
868
914
  items: this.designData.fonts.map((t => ({
869
- id: `${t.id}${bt}${mt}`,
870
- leaf: true,
915
+ id: `${t.id}${vt}${wt}`,
916
+ leaf: !t.warning,
871
917
  caption: t.name,
872
918
  startImgSrc: "controls/font",
873
919
  checkbox: true,
874
- checked: true
920
+ checked: true,
921
+ expanded: true,
922
+ items: t.warning && d(this, D, "f").call(this, t.warning)
875
923
  })))
876
924
  }, {
877
925
  order: 4,
878
- id: `${this.designData.designSystem.length > 0 ? this.designData.designSystem[0].id : "parent"}${bt}${ut}`,
926
+ id: `${this.designData.designSystem.length > 0 ? this.designData.designSystem[0].id : "parent"}${vt}${kt}`,
879
927
  leaf: true,
880
928
  caption: d(this, u, "f").tree.designSystem,
881
929
  startImgSrc: "objects/dso",
@@ -887,7 +935,7 @@ const Wt = class {
887
935
  pathChanged(t) {
888
936
  var e;
889
937
  const s = ((e = this.selectedFile) === null || e === void 0 ? void 0 : e.size) > 0;
890
- const i = d(this, q, "f").call(this, t) || s;
938
+ const i = d(this, F, "f").call(this, t) || s;
891
939
  this.pathIsValid = i;
892
940
  }
893
941
  accessTokenChanged(t) {
@@ -906,14 +954,14 @@ const Wt = class {
906
954
  p(this, u, await n.getComponentStrings(this.el), "f");
907
955
  p(this, g, this.extensions.map((t => `.${t}`)).join(", "), "f");
908
956
  this.stylesChanged(this.styles);
909
- d(this, j, "f").call(this);
957
+ d(this, T, "f").call(this);
910
958
  this.pathChanged(this.path);
911
959
  this.styleValue = ((t = this.stylesAsComboBoxModel) === null || t === void 0 ? void 0 : t.length) > 0 ? (e = this.stylesAsComboBoxModel[0]) === null || e === void 0 ? void 0 : e.value : "";
912
960
  }
913
961
  watchMessagesHandler(t, e) {
914
962
  if (t !== e) {
915
- if (d(this, y, "f")) {
916
- d(this, y, "f").scrollTop = d(this, y, "f").scrollHeight;
963
+ if (d(this, x, "f")) {
964
+ d(this, x, "f").scrollTop = d(this, x, "f").scrollHeight;
917
965
  }
918
966
  }
919
967
  }
@@ -921,10 +969,10 @@ const Wt = class {
921
969
  return e(s, {
922
970
  class: "widget"
923
971
  }, e("ch-theme", {
924
- model: Mt
972
+ model: Ct
925
973
  }), e("section", {
926
974
  class: "section"
927
- }, d(this, tt, "f").call(this), d(this, it, "f").call(this), d(this, ot, "f").call(this)));
975
+ }, d(this, at, "f").call(this), d(this, rt, "f").call(this), d(this, lt, "f").call(this)));
928
976
  }
929
977
  static get assetsDirs() {
930
978
  return [ "gx-ide-assets/design-import" ];
@@ -946,30 +994,35 @@ const Wt = class {
946
994
 
947
995
  u = new WeakMap, m = new WeakMap, b = new WeakMap, g = new WeakMap, k = new WeakMap,
948
996
  w = new WeakMap, v = new WeakMap, y = new WeakMap, x = new WeakMap, M = new WeakMap,
949
- W = new WeakMap, _ = new WeakMap, I = new WeakMap, C = new WeakMap, j = new WeakMap,
950
- D = new WeakMap, S = new WeakMap, z = new WeakMap, P = new WeakMap, q = new WeakMap,
997
+ W = new WeakMap, _ = new WeakMap, I = new WeakMap, C = new WeakMap, $ = new WeakMap,
998
+ j = new WeakMap, D = new WeakMap, T = new WeakMap, z = new WeakMap, P = new WeakMap,
951
999
  A = new WeakMap, E = new WeakMap, F = new WeakMap, V = new WeakMap, G = new WeakMap,
952
- L = new WeakMap, O = new WeakMap, H = new WeakMap, N = new WeakMap, Y = new WeakMap,
953
- J = new WeakMap, K = new WeakMap, Q = new WeakMap, R = new WeakMap, U = new WeakMap,
954
- X = new WeakMap, Z = new WeakMap, tt = new WeakMap, et = new WeakMap, it = new WeakMap,
955
- at = new WeakMap, ot = new WeakMap, nt = new WeakMap, lt = new WeakMap, rt = new WeakMap,
956
- ht = new WeakMap, ct = new WeakMap, f = new WeakSet, $ = function _GxIdeImportFromDesign_recursiveDesignTreeItems(t, e, s, i = undefined) {
1000
+ L = new WeakMap, O = new WeakMap, B = new WeakMap, H = new WeakMap, R = new WeakMap,
1001
+ Y = new WeakMap, J = new WeakMap, K = new WeakMap, Q = new WeakMap, U = new WeakMap,
1002
+ X = new WeakMap, Z = new WeakMap, tt = new WeakMap, et = new WeakMap, st = new WeakMap,
1003
+ it = new WeakMap, at = new WeakMap, ot = new WeakMap, rt = new WeakMap, ht = new WeakMap,
1004
+ lt = new WeakMap, ct = new WeakMap, dt = new WeakMap, pt = new WeakMap, ft = new WeakMap,
1005
+ ut = new WeakMap, f = new WeakSet, S = function _GxIdeImportFromDesign_recursiveDesignTreeItems(t, e, s, i = undefined) {
957
1006
  return t.map(((t, a) => {
958
1007
  var o;
959
- const n = ((o = t.variants) === null || o === void 0 ? void 0 : o.length) > 0;
1008
+ const n = `${t.id}${vt}${e}`;
1009
+ const r = ((o = t.variants) === null || o === void 0 ? void 0 : o.length) > 0;
1010
+ const h = t.warning ? d(this, D, "f").call(this, t.warning) : [];
1011
+ const l = !r && !t.warning;
960
1012
  return {
961
- id: `${t.id}${bt}${e}`,
962
- leaf: !n,
1013
+ id: n,
1014
+ leaf: l,
963
1015
  caption: t.name,
964
1016
  startImgSrc: s,
965
1017
  checkbox: true,
966
1018
  checked: true,
967
- expanded: n,
1019
+ expanded: !l,
968
1020
  selected: i === a,
969
- items: n ? d(this, f, "m", _GxIdeImportFromDesign_recursiveDesignTreeItems).call(this, t.variants, e, s) : []
1021
+ order: a,
1022
+ items: [ ...h, ...r ? d(this, f, "m", _GxIdeImportFromDesign_recursiveDesignTreeItems).call(this, t.variants, e, s) : [] ]
970
1023
  };
971
1024
  }));
972
- }, T = function _GxIdeImportFromDesign_loadTreeItemCompositionModel(t) {
1025
+ }, q = function _GxIdeImportFromDesign_loadTreeItemCompositionModel(t) {
973
1026
  const e = [];
974
1027
  for (const s of t) {
975
1028
  let t = {
@@ -988,29 +1041,29 @@ ht = new WeakMap, ct = new WeakMap, f = new WeakSet, $ = function _GxIdeImportFr
988
1041
  e.push(t);
989
1042
  }
990
1043
  return e;
991
- }, B = function _GxIdeImportFromDesign_getCodeFactory(t) {
1044
+ }, N = function _GxIdeImportFromDesign_getCodeFactory(t) {
992
1045
  switch (t) {
993
- case dt:
994
- case pt:
995
- this.textEditorFactoryCallback("code", l.code.slot, this.selectedDesignItem.code);
996
- this.textEditorFactoryCallback("html", l.layout.slot, this.selectedDesignItem.layout);
1046
+ case mt:
1047
+ case bt:
1048
+ this.textEditorFactoryCallback("code", r.code.slot, this.selectedDesignItem.code);
1049
+ this.textEditorFactoryCallback("html", r.layout.slot, this.selectedDesignItem.layout);
997
1050
  break;
998
1051
 
999
- case ut:
1000
- this.textEditorFactoryCallback("tokens", l.tokens.slot, this.selectedDesignItem.tokens);
1001
- this.textEditorFactoryCallback("styles", l.styles.slot, this.selectedDesignItem.styles);
1052
+ case kt:
1053
+ this.textEditorFactoryCallback("tokens", r.tokens.slot, this.selectedDesignItem.tokens);
1054
+ this.textEditorFactoryCallback("styles", r.styles.slot, this.selectedDesignItem.styles);
1002
1055
  break;
1003
1056
  }
1004
- }, st = function _GxIdeImportFromDesign_renderDetailDataTree(t) {
1057
+ }, nt = function _GxIdeImportFromDesign_renderDetailDataTree(t) {
1005
1058
  switch (t) {
1006
- case dt:
1007
- case pt:
1008
- this.detailTreeModel = d(this, f, "m", T).call(this, this.selectedDesignItem.composition.controls);
1059
+ case mt:
1060
+ case bt:
1061
+ this.detailTreeModel = d(this, f, "m", q).call(this, this.selectedDesignItem.composition.controls);
1009
1062
  break;
1010
1063
  }
1011
1064
  };
1012
1065
 
1013
- Wt.style = c;
1066
+ $t.style = c;
1014
1067
 
1015
- export { Wt as gx_ide_design_import };
1016
- //# sourceMappingURL=p-877cd71e.entry.js.map
1068
+ export { $t as gx_ide_design_import };
1069
+ //# sourceMappingURL=p-2b4b1dfc.entry.js.map