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