@genexus/genexus-ide-ui 3.2.5 → 3.2.7
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/cjs/gx-ide-kb-manager-import.cjs.entry.js +74 -45
- package/dist/cjs/gx-ide-kb-manager-import.cjs.entry.js.map +1 -1
- package/dist/collection/common/types.js.map +1 -1
- package/dist/collection/components/kb-manager-import/helpers.js +7 -4
- package/dist/collection/components/kb-manager-import/helpers.js.map +1 -1
- package/dist/collection/components/kb-manager-import/kb-manager-import.js +68 -42
- package/dist/collection/components/kb-manager-import/kb-manager-import.js.map +1 -1
- package/dist/components/gx-ide-kb-manager-import.js +74 -45
- package/dist/components/gx-ide-kb-manager-import.js.map +1 -1
- package/dist/esm/gx-ide-kb-manager-import.entry.js +74 -45
- package/dist/esm/gx-ide-kb-manager-import.entry.js.map +1 -1
- package/dist/genexus-ide-ui/genexus-ide-ui.esm.js +1 -1
- package/dist/genexus-ide-ui/{p-22aa1d86.entry.js → p-7cd24b82.entry.js} +157 -123
- package/dist/genexus-ide-ui/p-7cd24b82.entry.js.map +1 -0
- package/dist/types/common/types.d.ts +1 -0
- package/dist/types/components/kb-manager-import/helpers.d.ts +2 -2
- package/dist/types/components/kb-manager-import/kb-manager-import.d.ts +14 -13
- package/package.json +1 -1
- package/dist/genexus-ide-ui/p-22aa1d86.entry.js.map +0 -1
|
@@ -16,9 +16,9 @@ const r = 30;
|
|
|
16
16
|
|
|
17
17
|
/* objects in file metadata*/ const c = "object";
|
|
18
18
|
|
|
19
|
-
const
|
|
19
|
+
const l = "category";
|
|
20
20
|
|
|
21
|
-
const
|
|
21
|
+
const d = "status";
|
|
22
22
|
|
|
23
23
|
// - - - - - - - - - - - - - - - - -
|
|
24
24
|
// Objects In File Tree Model
|
|
@@ -26,12 +26,13 @@ const l = "status";
|
|
|
26
26
|
const convertImportCategoryItemToTreeItem = (t, e) => {
|
|
27
27
|
const i = [];
|
|
28
28
|
e.forEach((e => {
|
|
29
|
+
var s;
|
|
29
30
|
i.push({
|
|
30
31
|
id: e.id,
|
|
31
32
|
caption: e.name,
|
|
32
33
|
expanded: true,
|
|
33
34
|
leaf: true,
|
|
34
|
-
startImgSrc: t,
|
|
35
|
+
startImgSrc: (s = e.icon) !== null && s !== void 0 ? s : t,
|
|
35
36
|
metadata: c
|
|
36
37
|
});
|
|
37
38
|
}));
|
|
@@ -51,7 +52,7 @@ const convertImportCategoryDataToTreeView = t => {
|
|
|
51
52
|
lazy: t.items.length > r,
|
|
52
53
|
leaf: false,
|
|
53
54
|
startImgSrc: t.icon,
|
|
54
|
-
metadata:
|
|
55
|
+
metadata: l,
|
|
55
56
|
items: t.items.length <= r ? convertImportCategoryItemToTreeItem(t.icon, t.items) : []
|
|
56
57
|
};
|
|
57
58
|
e.push(i);
|
|
@@ -71,7 +72,7 @@ const createImportResultDataMessages = (t, e, i) => {
|
|
|
71
72
|
startImgSrc: "gemini-tools/list-view/on-surface",
|
|
72
73
|
leaf: true,
|
|
73
74
|
metadata: JSON.stringify({
|
|
74
|
-
[
|
|
75
|
+
[d]: i
|
|
75
76
|
})
|
|
76
77
|
});
|
|
77
78
|
}));
|
|
@@ -88,7 +89,7 @@ const createImportResultItem = (t, e) => {
|
|
|
88
89
|
expanded: true,
|
|
89
90
|
leaf: e.messages.length === 0,
|
|
90
91
|
metadata: JSON.stringify({
|
|
91
|
-
[
|
|
92
|
+
[d]: e.status
|
|
92
93
|
}),
|
|
93
94
|
items: createImportResultDataMessages(i, e.messages, e.status)
|
|
94
95
|
};
|
|
@@ -118,12 +119,12 @@ const addImportItemResultDataItem = (t, e, i, s) => {
|
|
|
118
119
|
const c = createImportResultItem(o, t);
|
|
119
120
|
a[r].items = [ ...a[r].items, c ];
|
|
120
121
|
// update category caption length
|
|
121
|
-
const
|
|
122
|
-
a[r].caption = `${o.name} (${
|
|
122
|
+
const l = a[r].items.length;
|
|
123
|
+
a[r].caption = `${o.name} (${l})`;
|
|
123
124
|
return a;
|
|
124
125
|
};
|
|
125
126
|
|
|
126
|
-
const
|
|
127
|
+
const h = 'button.button-secondary{border-color:var(--color-border-neutral-default)}:host{display:grid;block-size:100%;grid-template:"header header" max-content "objects-in-file import-status" 1fr "footer footer" max-content;grid-template-columns:1fr 1fr}.section{display:contents}.header{grid-template-columns:1fr max-content;grid-area:header}.objects-in-file__section{grid-area:objects-in-file}.objects-in-file__main{border-inline-end:var(--section-common-border);grid-template-rows:1fr max-content}.objects-in-file__footer{display:grid}.import-status__section{grid-area:import-status}.import-status__main{grid-template-rows:1fr max-content}.import-status__footer{display:flex}.import-clear-status-btn{margin-inline-start:auto}.objects-in-file__section,.import-status__section{display:grid;grid-template-rows:max-content 1fr}.dialog-header__objects-in-file,.dialog-header__import-status{padding-block-start:16px}.objects-in-file__main,.import-status__main{grid-auto-rows:max-content;padding-block:12px;overflow:auto}.footer{display:flex;grid-area:footer;border-block-start:var(--section-common-border)}.text-align-center{text-align:center}.tree-view::part(item__action tree-view-item--status){grid-template:"first-img left-img text right-img"/max-content max-content 1fr max-content}.tree-view::part(item__action tree-view-item--status)::before{grid-area:first-img;content:"";width:8px;height:8px;border-radius:50%;background-color:var(--gray-03);margin-inline-end:2px}.tree-view::part(item__action tree-view-item--success):before{background-image:none;background-color:var(--color-success-dark)}.tree-view::part(item__action tree-view-item--warning):before{background-image:none;background-color:var(--color-warning-dark)}.tree-view::part(item__action tree-view-item--error):before{background-image:none;background-color:var(--color-error-dark)}.tree-view-import::part(item){content-visibility:auto;contain-intrinsic-size:auto 22px}';
|
|
127
128
|
|
|
128
129
|
var f = undefined && undefined.__classPrivateFieldGet || function(t, e, i, s) {
|
|
129
130
|
if (i === "a" && !s) throw new TypeError("Private accessor was defined without a getter");
|
|
@@ -138,39 +139,39 @@ var p = undefined && undefined.__classPrivateFieldSet || function(t, e, i, s, a)
|
|
|
138
139
|
return s === "a" ? a.call(t, i) : a ? a.value = i : e.set(t, i), i;
|
|
139
140
|
};
|
|
140
141
|
|
|
141
|
-
var
|
|
142
|
+
var u, m, b, g, w, k, v, y, _, x, M, W, j, C, T, S, I, $, E, D, L, z, F, H, O, R, A, N, P;
|
|
142
143
|
|
|
143
|
-
const
|
|
144
|
+
const J = [ "resets/box-sizing", "components/button", "components/checkbox", "components/edit", "components/icon", "components/tree-view", "utils/form", "utils/layout", "utils/typography", "utils/spacing" ];
|
|
144
145
|
|
|
145
|
-
const
|
|
146
|
+
const V = n({
|
|
146
147
|
category: "gemini-tools",
|
|
147
148
|
name: "notice",
|
|
148
149
|
colorType: "on-surface"
|
|
149
150
|
});
|
|
150
151
|
|
|
151
|
-
const
|
|
152
|
+
const U = n({
|
|
152
153
|
category: "gemini-tools",
|
|
153
154
|
name: "file",
|
|
154
155
|
colorType: "primary"
|
|
155
156
|
});
|
|
156
157
|
|
|
157
|
-
const
|
|
158
|
+
const X = n({
|
|
158
159
|
category: "gemini-tools",
|
|
159
160
|
name: "settings",
|
|
160
161
|
colorType: "primary"
|
|
161
162
|
});
|
|
162
163
|
|
|
163
|
-
const
|
|
164
|
+
const Y = n({
|
|
164
165
|
category: "menus",
|
|
165
166
|
name: "delete",
|
|
166
167
|
colorType: "primary"
|
|
167
168
|
});
|
|
168
169
|
|
|
169
|
-
const
|
|
170
|
+
const q = "allChecked";
|
|
170
171
|
|
|
171
|
-
const
|
|
172
|
+
const B = "allUnchecked";
|
|
172
173
|
|
|
173
|
-
const
|
|
174
|
+
const G = class {
|
|
174
175
|
constructor(i) {
|
|
175
176
|
t(this, i);
|
|
176
177
|
this.componentDidLoadEvent = e(this, "componentDidLoadEvent", 7);
|
|
@@ -179,14 +180,14 @@ const B = class {
|
|
|
179
180
|
* The component hard-coded strings translations.
|
|
180
181
|
*/
|
|
181
182
|
// eslint-disable-next-line @stencil-community/own-props-must-be-private
|
|
182
|
-
|
|
183
|
-
|
|
183
|
+
u.set(this, void 0);
|
|
184
|
+
m.set(this, []);
|
|
184
185
|
b.set(this, void 0);
|
|
185
186
|
g.set(this, void 0);
|
|
186
187
|
w.set(this, void 0);
|
|
187
188
|
k.set(this, new Set);
|
|
188
|
-
y.set(this, new Set);
|
|
189
189
|
v.set(this, new Set);
|
|
190
|
+
y.set(this, new Set);
|
|
190
191
|
// #categoryItemMap maps a category id, with the name and icon.
|
|
191
192
|
// required for the "import status" tree.
|
|
192
193
|
_.set(this, new Map);
|
|
@@ -209,55 +210,88 @@ const B = class {
|
|
|
209
210
|
this.someStatusVisible = this.statusInfo.error.display || this.statusInfo.warning.display || this.statusInfo.success.display;
|
|
210
211
|
}));
|
|
211
212
|
S.set(this, (async () => {
|
|
212
|
-
|
|
213
|
-
|
|
213
|
+
/* first clear imported objects (this clears errors/warnings/success counts as well)*/
|
|
214
|
+
f(this, j, "f").call(this);
|
|
214
215
|
/* then do the import*/ this.importingIsInProcess = true;
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
216
|
+
const t = f(this, I, "f").call(this);
|
|
217
|
+
await this.importCallback(t);
|
|
218
|
+
this.importingIsInProcess = false;
|
|
219
|
+
}));
|
|
220
|
+
/*
|
|
221
|
+
Build the structured ImportSelection from the current tree state.
|
|
222
|
+
|
|
223
|
+
Lazy categories may not have their items loaded yet; in that case the
|
|
224
|
+
category's own `checked` flag represents the user's intent for the whole
|
|
225
|
+
group. Large categories are not expanded by default to keep imports of
|
|
226
|
+
1000+ objects responsive.
|
|
227
|
+
|
|
228
|
+
For each category, the most compact group representation is picked:
|
|
229
|
+
- every item checked → mode: "all"
|
|
230
|
+
- no item checked → group omitted from the partial selection
|
|
231
|
+
- mixed → "include" or "exclude", whichever has fewer ids
|
|
232
|
+
*/ I.set(this, (() => {
|
|
233
|
+
var t, e;
|
|
234
|
+
const i = [];
|
|
235
|
+
let s = true;
|
|
236
|
+
for (const a of f(this, w, "f").model) {
|
|
237
|
+
const n = f(this, M, "f").find((t => t.id === a.id));
|
|
238
|
+
const o = (t = n === null || n === void 0 ? void 0 : n.items.length) !== null && t !== void 0 ? t : 0;
|
|
239
|
+
const r = !!(a.items && a.items.length > 0);
|
|
240
|
+
if (!r && a.lazy) {
|
|
241
|
+
if (a.checked) {
|
|
242
|
+
i.push({
|
|
243
|
+
groupId: a.id,
|
|
244
|
+
mode: "all"
|
|
245
|
+
});
|
|
246
|
+
} else {
|
|
247
|
+
s = false;
|
|
233
248
|
}
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
249
|
+
continue;
|
|
250
|
+
}
|
|
251
|
+
const c = [];
|
|
252
|
+
const l = [];
|
|
253
|
+
for (const t of (e = a.items) !== null && e !== void 0 ? e : []) {
|
|
254
|
+
if (t.checked) {
|
|
255
|
+
c.push(t.id);
|
|
256
|
+
} else {
|
|
257
|
+
l.push(t.id);
|
|
238
258
|
}
|
|
239
259
|
}
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
260
|
+
if (l.length === 0 && c.length === o) {
|
|
261
|
+
i.push({
|
|
262
|
+
groupId: a.id,
|
|
263
|
+
mode: "all"
|
|
264
|
+
});
|
|
265
|
+
} else if (c.length === 0) {
|
|
266
|
+
s = false;
|
|
267
|
+
} else {
|
|
268
|
+
s = false;
|
|
269
|
+
if (c.length <= l.length) {
|
|
270
|
+
i.push({
|
|
271
|
+
groupId: a.id,
|
|
272
|
+
mode: "include",
|
|
273
|
+
ids: c
|
|
274
|
+
});
|
|
275
|
+
} else {
|
|
276
|
+
i.push({
|
|
277
|
+
groupId: a.id,
|
|
278
|
+
mode: "exclude",
|
|
279
|
+
ids: l
|
|
280
|
+
});
|
|
247
281
|
}
|
|
248
282
|
}
|
|
249
283
|
}
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
284
|
+
if (s && i.length === f(this, M, "f").length) {
|
|
285
|
+
return {
|
|
286
|
+
mode: "all"
|
|
287
|
+
};
|
|
288
|
+
}
|
|
289
|
+
return {
|
|
290
|
+
mode: "partial",
|
|
291
|
+
groups: i
|
|
256
292
|
};
|
|
257
|
-
await this.importCallback(n);
|
|
258
|
-
this.importingIsInProcess = false;
|
|
259
293
|
}));
|
|
260
|
-
|
|
294
|
+
$.set(this, (async t => {
|
|
261
295
|
p(this, M, await this.loadCallback(t), "f");
|
|
262
296
|
f(this, _, "f").clear();
|
|
263
297
|
f(this, x, "f").clear();
|
|
@@ -276,11 +310,11 @@ const B = class {
|
|
|
276
310
|
// loaded file starts with everything selected.
|
|
277
311
|
this.hasSelection = e.length > 0;
|
|
278
312
|
}));
|
|
279
|
-
|
|
313
|
+
E.set(this, (async t => {
|
|
280
314
|
const e = f(this, M, "f").find((e => e.id === t));
|
|
281
315
|
return e && e.items.length > 0 ? convertImportCategoryItemToTreeItem(e.icon, e.items) : [];
|
|
282
316
|
}));
|
|
283
|
-
|
|
317
|
+
D.set(this, (t => {
|
|
284
318
|
const e = t.detail;
|
|
285
319
|
const i = [];
|
|
286
320
|
const s = [];
|
|
@@ -298,49 +332,49 @@ const B = class {
|
|
|
298
332
|
}
|
|
299
333
|
// Evaluate "Select All / Unselect All" checkbox state
|
|
300
334
|
if (e.size === i.length) {
|
|
301
|
-
this.selectAllCheckboxValue =
|
|
335
|
+
this.selectAllCheckboxValue = q;
|
|
302
336
|
this.selectAllCheckboxIndeterminate = false;
|
|
303
337
|
} else if (i.length === 0) {
|
|
304
|
-
this.selectAllCheckboxValue =
|
|
338
|
+
this.selectAllCheckboxValue = B;
|
|
305
339
|
this.selectAllCheckboxIndeterminate = false;
|
|
306
340
|
} else {
|
|
307
341
|
this.selectAllCheckboxIndeterminate = true;
|
|
308
342
|
}
|
|
309
343
|
this.hasSelection = i.length > 0;
|
|
310
344
|
}));
|
|
311
|
-
|
|
345
|
+
L.set(this, (t => {
|
|
312
346
|
if (t.detail.metadata === c) {
|
|
313
347
|
this.objectContextMenuCallback("imported", {
|
|
314
|
-
selection: f(this,
|
|
348
|
+
selection: f(this, m, "f"),
|
|
315
349
|
clientX: t.detail.contextmenuEvent.screenX,
|
|
316
350
|
clientY: t.detail.contextmenuEvent.screenY
|
|
317
351
|
});
|
|
318
352
|
}
|
|
319
353
|
}));
|
|
320
|
-
|
|
321
|
-
p(this,
|
|
354
|
+
z.set(this, (t => {
|
|
355
|
+
p(this, m, t.detail.map((t => t.item.id)), "f");
|
|
322
356
|
}));
|
|
323
|
-
|
|
357
|
+
F.set(this, (() => {
|
|
324
358
|
if (this.optionsCallback) {
|
|
325
359
|
this.optionsCallback();
|
|
326
360
|
// returns boolean
|
|
327
361
|
}
|
|
328
362
|
}));
|
|
329
|
-
|
|
363
|
+
H.set(this, (() => {
|
|
330
364
|
this.selectedFile = null;
|
|
331
365
|
f(this, g, "f").value = null;
|
|
332
366
|
}));
|
|
333
367
|
O.set(this, (() => {
|
|
334
368
|
f(this, g, "f").click();
|
|
335
369
|
}));
|
|
336
|
-
|
|
370
|
+
R.set(this, (t => {
|
|
337
371
|
var e;
|
|
338
372
|
const i = t.target;
|
|
339
373
|
if (((e = i.files) === null || e === void 0 ? void 0 : e.length) > 0) {
|
|
340
374
|
this.selectedFile = i.files[0];
|
|
341
375
|
}
|
|
342
376
|
}));
|
|
343
|
-
|
|
377
|
+
A.set(this, (t => {
|
|
344
378
|
const e = t.detail;
|
|
345
379
|
const i = [];
|
|
346
380
|
const s = e.findIndex((t => t.itemId === "errors"));
|
|
@@ -355,10 +389,10 @@ const B = class {
|
|
|
355
389
|
if (n !== -1) {
|
|
356
390
|
i.push("success");
|
|
357
391
|
}
|
|
358
|
-
let o = `"${
|
|
392
|
+
let o = `"${d}":""`;
|
|
359
393
|
if (i.length) {
|
|
360
394
|
const t = i.join("|");
|
|
361
|
-
o = `"${
|
|
395
|
+
o = `"${d}":"(${t})"`;
|
|
362
396
|
}
|
|
363
397
|
this.importedTreeFilterRegExp = new RegExp(o, "i");
|
|
364
398
|
// Update statusInfo for the status-buttons
|
|
@@ -378,9 +412,9 @@ const B = class {
|
|
|
378
412
|
};
|
|
379
413
|
f(this, T, "f").call(this);
|
|
380
414
|
}));
|
|
381
|
-
|
|
415
|
+
N.set(this, (t => {
|
|
382
416
|
if (f(this, w, "f")) {
|
|
383
|
-
const e = t.detail ===
|
|
417
|
+
const e = t.detail === q;
|
|
384
418
|
f(this, w, "f").updateAllItemsProperties({
|
|
385
419
|
checked: e
|
|
386
420
|
});
|
|
@@ -390,18 +424,18 @@ const B = class {
|
|
|
390
424
|
this.hasSelection = e && this.objectsTreeModel.length > 0;
|
|
391
425
|
}
|
|
392
426
|
}));
|
|
393
|
-
|
|
394
|
-
f(this, v, "f").clear();
|
|
427
|
+
P.set(this, (() => {
|
|
395
428
|
f(this, y, "f").clear();
|
|
429
|
+
f(this, v, "f").clear();
|
|
396
430
|
f(this, k, "f").clear();
|
|
397
431
|
this.importTreeState.forEach((t => {
|
|
398
432
|
const e = t.items;
|
|
399
433
|
e.forEach((t => {
|
|
400
434
|
if (t.metadata === "error") {
|
|
401
|
-
f(this,
|
|
435
|
+
f(this, y, "f").add(t.id);
|
|
402
436
|
}
|
|
403
437
|
if (t.metadata === "warning") {
|
|
404
|
-
f(this,
|
|
438
|
+
f(this, v, "f").add(t.id);
|
|
405
439
|
}
|
|
406
440
|
if (t.metadata === "success") {
|
|
407
441
|
f(this, k, "f").add(t.id);
|
|
@@ -450,9 +484,9 @@ const B = class {
|
|
|
450
484
|
watchImportTreeStateHandler() {
|
|
451
485
|
f(this, C, "f").call(this);
|
|
452
486
|
if (this.noImport) {
|
|
453
|
-
this.importStatusMessage = f(this,
|
|
487
|
+
this.importStatusMessage = f(this, u, "f").main.importStatus.noImportedFiles;
|
|
454
488
|
} else {
|
|
455
|
-
this.importStatusMessage = f(this,
|
|
489
|
+
this.importStatusMessage = f(this, u, "f").main.importStatus.importedButHidden;
|
|
456
490
|
}
|
|
457
491
|
}
|
|
458
492
|
watchObjectsTreeModelHandler(t) {
|
|
@@ -460,7 +494,7 @@ const B = class {
|
|
|
460
494
|
}
|
|
461
495
|
selectedFileChanged(t) {
|
|
462
496
|
if (t) {
|
|
463
|
-
f(this,
|
|
497
|
+
f(this, $, "f").call(this, t);
|
|
464
498
|
}
|
|
465
499
|
}
|
|
466
500
|
componentDidLoad() {
|
|
@@ -468,11 +502,11 @@ const B = class {
|
|
|
468
502
|
}
|
|
469
503
|
componentDidRender() {}
|
|
470
504
|
async componentWillLoad() {
|
|
471
|
-
p(this,
|
|
505
|
+
p(this, u, await o.getComponentStrings(this.el), "f");
|
|
472
506
|
this.componentDidLoadEvent.emit(true);
|
|
473
507
|
// this.#evaluateObjects();
|
|
474
508
|
f(this, C, "f").call(this);
|
|
475
|
-
this.importStatusMessage = f(this,
|
|
509
|
+
this.importStatusMessage = f(this, u, "f").main.importStatus.noImportedFiles;
|
|
476
510
|
f(this, T, "f").call(this);
|
|
477
511
|
}
|
|
478
512
|
/**
|
|
@@ -480,14 +514,14 @@ const B = class {
|
|
|
480
514
|
*/ async addResultItem(t) {
|
|
481
515
|
this.importTreeState = addImportItemResultDataItem(t, f(this, _, "f"), f(this, x, "f"), this.importTreeState);
|
|
482
516
|
this.statusInfo[t.status].number++;
|
|
483
|
-
f(this,
|
|
517
|
+
f(this, P, "f").call(this);
|
|
484
518
|
}
|
|
485
519
|
render() {
|
|
486
520
|
var t, e;
|
|
487
521
|
return i(s, {
|
|
488
522
|
class: "widget"
|
|
489
523
|
}, i("ch-theme", {
|
|
490
|
-
model:
|
|
524
|
+
model: J
|
|
491
525
|
}), i("section", {
|
|
492
526
|
class: "section"
|
|
493
527
|
}, i("header", {
|
|
@@ -500,7 +534,7 @@ const B = class {
|
|
|
500
534
|
}, i("label", {
|
|
501
535
|
class: "label",
|
|
502
536
|
htmlFor: "file-name"
|
|
503
|
-
}, f(this,
|
|
537
|
+
}, f(this, u, "f").header.fileNameLabel), i("ch-edit", {
|
|
504
538
|
autoFocus: true,
|
|
505
539
|
id: "file-name",
|
|
506
540
|
class: "input",
|
|
@@ -508,27 +542,27 @@ const B = class {
|
|
|
508
542
|
type: "text",
|
|
509
543
|
readonly: true,
|
|
510
544
|
value: (t = this.selectedFile) === null || t === void 0 ? void 0 : t.name,
|
|
511
|
-
placeholder: f(this,
|
|
512
|
-
startImgSrc:
|
|
545
|
+
placeholder: f(this, u, "f").header.fileNamePlaceholder,
|
|
546
|
+
startImgSrc: U,
|
|
513
547
|
ref: t => p(this, b, t, "f")
|
|
514
548
|
}), i("input", {
|
|
515
549
|
hidden: true,
|
|
516
550
|
type: "file",
|
|
517
551
|
accept: ".xpz, .xml",
|
|
518
|
-
onChange: f(this,
|
|
552
|
+
onChange: f(this, R, "f"),
|
|
519
553
|
ref: t => p(this, g, t, "f")
|
|
520
554
|
})), i("div", {
|
|
521
555
|
class: "buttons-spacer"
|
|
522
556
|
}, i("button", {
|
|
523
|
-
"aria-label": f(this,
|
|
524
|
-
title: f(this,
|
|
557
|
+
"aria-label": f(this, u, "f").header.removeFileSelection,
|
|
558
|
+
title: f(this, u, "f").header.removeFileSelection,
|
|
525
559
|
id: "reset-all-button",
|
|
526
560
|
class: "button-tertiary button-icon-only",
|
|
527
561
|
part: "reset-all-button",
|
|
528
|
-
onClick: f(this,
|
|
562
|
+
onClick: f(this, H, "f")
|
|
529
563
|
}, i("ch-image", {
|
|
530
564
|
class: "icon-m",
|
|
531
|
-
src:
|
|
565
|
+
src: Y
|
|
532
566
|
})), i("button", {
|
|
533
567
|
// select file
|
|
534
568
|
id: "select-file-load-button",
|
|
@@ -536,12 +570,12 @@ const B = class {
|
|
|
536
570
|
part: "select-file-load-button",
|
|
537
571
|
onClick: f(this, O, "f"),
|
|
538
572
|
disabled: this.importingIsInProcess
|
|
539
|
-
}, f(this,
|
|
573
|
+
}, f(this, u, "f").header.selectFileButton))), i("section", {
|
|
540
574
|
// objects in file
|
|
541
575
|
class: "objects-in-file__section"
|
|
542
576
|
}, i("h2", {
|
|
543
577
|
class: "dialog-header dialog-header-with-border dialog-header__objects-in-file subtitle-regular-xs\t text-align-center spacing-body-inline"
|
|
544
|
-
}, f(this,
|
|
578
|
+
}, f(this, u, "f").main.objectsInFile.title), i("div", {
|
|
545
579
|
class: "field-group objects-in-file__main"
|
|
546
580
|
}, !this.noObjects ? i("ch-tree-view-render", {
|
|
547
581
|
// objects in file tree
|
|
@@ -553,30 +587,30 @@ const B = class {
|
|
|
553
587
|
toggleCheckboxes: true,
|
|
554
588
|
checkbox: true,
|
|
555
589
|
checked: true,
|
|
556
|
-
lazyLoadTreeItemsCallback: f(this,
|
|
557
|
-
onCheckedItemsChange: f(this,
|
|
558
|
-
onSelectedItemsChange: f(this,
|
|
559
|
-
onItemContextmenu: f(this,
|
|
590
|
+
lazyLoadTreeItemsCallback: f(this, E, "f"),
|
|
591
|
+
onCheckedItemsChange: f(this, D, "f"),
|
|
592
|
+
onSelectedItemsChange: f(this, z, "f"),
|
|
593
|
+
onItemContextmenu: f(this, L, "f"),
|
|
560
594
|
ref: t => p(this, w, t, "f")
|
|
561
595
|
}) : i("gx-ide-empty-state", {
|
|
562
596
|
isAnimated: false,
|
|
563
|
-
stateTitle: f(this,
|
|
597
|
+
stateTitle: f(this, u, "f").main.objectsInFile.noObjects,
|
|
564
598
|
key: "no-objects-empty-state"
|
|
565
599
|
}, i("button", {
|
|
566
600
|
// begin by selecting a file
|
|
567
601
|
class: "button-secondary",
|
|
568
602
|
onClick: f(this, O, "f")
|
|
569
|
-
}, f(this,
|
|
603
|
+
}, f(this, u, "f").main.objectsInFile.selectFile)), i("footer", {
|
|
570
604
|
class: "field-group objects-in-file__footer spacing-body-inline"
|
|
571
605
|
}, i("ch-checkbox", {
|
|
572
606
|
// select all / unselect all checkbox
|
|
573
607
|
id: "select-all-checkbox",
|
|
574
608
|
class: "checkbox create-data-in-kb",
|
|
575
|
-
checkedValue:
|
|
576
|
-
unCheckedValue:
|
|
577
|
-
caption: f(this,
|
|
609
|
+
checkedValue: q,
|
|
610
|
+
unCheckedValue: B,
|
|
611
|
+
caption: f(this, u, "f").main.objectsInFile.selectUnselect,
|
|
578
612
|
value: this.selectAllCheckboxValue,
|
|
579
|
-
onInput: f(this,
|
|
613
|
+
onInput: f(this, N, "f"),
|
|
580
614
|
disabled: this.importingIsInProcess || this.objectsTreeModel.length === 0,
|
|
581
615
|
part: "select-all-checkbox"
|
|
582
616
|
}), i("div", {
|
|
@@ -587,28 +621,28 @@ const B = class {
|
|
|
587
621
|
class: "button-primary ",
|
|
588
622
|
onClick: f(this, S, "f"),
|
|
589
623
|
disabled: ((e = this.objectsTreeModel) === null || e === void 0 ? void 0 : e.length) === 0 || this.importingIsInProcess || !this.hasSelection
|
|
590
|
-
}, f(this,
|
|
624
|
+
}, f(this, u, "f").main.objectsInFile.importButton), i("button", {
|
|
591
625
|
// cancel-import button
|
|
592
626
|
id: "cancel-import-btn",
|
|
593
627
|
class: "button-secondary ",
|
|
594
628
|
onClick: f(this, W, "f"),
|
|
595
629
|
disabled: !this.importingIsInProcess,
|
|
596
630
|
part: "cancel-import-button"
|
|
597
|
-
}, f(this,
|
|
631
|
+
}, f(this, u, "f").main.objectsInFile.cancelButton), i("button", {
|
|
598
632
|
// settings/options button
|
|
599
633
|
id: "select-kb-btn",
|
|
600
634
|
class: "button-tertiary button-icon-only",
|
|
601
635
|
part: "select-kb-btn",
|
|
602
|
-
onClick: f(this,
|
|
636
|
+
onClick: f(this, F, "f")
|
|
603
637
|
}, i("ch-image", {
|
|
604
638
|
class: "icon-m",
|
|
605
|
-
src:
|
|
639
|
+
src: X
|
|
606
640
|
})))))), i("section", {
|
|
607
641
|
// import status
|
|
608
642
|
class: "import-status__section"
|
|
609
643
|
}, i("h2", {
|
|
610
644
|
class: "dialog-header dialog-header-with-border dialog-header__import-status subtitle-regular-xs\t text-align-center spacing-body-inline"
|
|
611
|
-
}, f(this,
|
|
645
|
+
}, f(this, u, "f").main.importStatus.title), i("div", {
|
|
612
646
|
class: "field-group import-status__main"
|
|
613
647
|
}, !this.noImport && this.someStatusVisible ? i("ch-tree-view-render", {
|
|
614
648
|
// import status tree
|
|
@@ -624,7 +658,7 @@ const B = class {
|
|
|
624
658
|
}
|
|
625
659
|
}) : i("gx-ide-empty-state", {
|
|
626
660
|
isAnimated: false,
|
|
627
|
-
stateIconSrc:
|
|
661
|
+
stateIconSrc: V,
|
|
628
662
|
stateTitle: this.importStatusMessage,
|
|
629
663
|
key: "no-objects-empty-state"
|
|
630
664
|
}), i("footer", {
|
|
@@ -635,7 +669,7 @@ const B = class {
|
|
|
635
669
|
onClick: f(this, j, "f"),
|
|
636
670
|
disabled: this.noImport || this.importingIsInProcess,
|
|
637
671
|
part: "clear-status-btn"
|
|
638
|
-
}, f(this,
|
|
672
|
+
}, f(this, u, "f").main.importStatus.clearButton)))), i("footer", {
|
|
639
673
|
// footer
|
|
640
674
|
class: "footer"
|
|
641
675
|
}, i("gx-ide-status-buttons", {
|
|
@@ -645,7 +679,7 @@ const B = class {
|
|
|
645
679
|
hideMessage: true,
|
|
646
680
|
compact: true,
|
|
647
681
|
minimal: this.statusMinimal,
|
|
648
|
-
onSelectionChanged: f(this,
|
|
682
|
+
onSelectionChanged: f(this, A, "f")
|
|
649
683
|
}))));
|
|
650
684
|
}
|
|
651
685
|
static get assetsDirs() {
|
|
@@ -663,14 +697,14 @@ const B = class {
|
|
|
663
697
|
}
|
|
664
698
|
};
|
|
665
699
|
|
|
666
|
-
|
|
667
|
-
k = new WeakMap,
|
|
700
|
+
u = new WeakMap, m = new WeakMap, b = new WeakMap, g = new WeakMap, w = new WeakMap,
|
|
701
|
+
k = new WeakMap, v = new WeakMap, y = new WeakMap, _ = new WeakMap, x = new WeakMap,
|
|
668
702
|
M = new WeakMap, W = new WeakMap, j = new WeakMap, C = new WeakMap, T = new WeakMap,
|
|
669
703
|
S = new WeakMap, I = new WeakMap, $ = new WeakMap, E = new WeakMap, D = new WeakMap,
|
|
670
|
-
L = new WeakMap, z = new WeakMap, F = new WeakMap,
|
|
671
|
-
|
|
704
|
+
L = new WeakMap, z = new WeakMap, F = new WeakMap, H = new WeakMap, O = new WeakMap,
|
|
705
|
+
R = new WeakMap, A = new WeakMap, N = new WeakMap, P = new WeakMap;
|
|
672
706
|
|
|
673
|
-
|
|
707
|
+
G.style = h;
|
|
674
708
|
|
|
675
|
-
export {
|
|
676
|
-
//# sourceMappingURL=p-
|
|
709
|
+
export { G as gx_ide_kb_manager_import };
|
|
710
|
+
//# sourceMappingURL=p-7cd24b82.entry.js.map
|