@genexus/genexus-ide-ui 1.1.36 → 1.1.38
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/genexus-ide-ui.cjs.js +1 -1
- package/dist/cjs/gx-ide-create-kb-from-server.cjs.entry.js +9 -3
- package/dist/cjs/gx-ide-create-kb-from-server.cjs.entry.js.map +1 -1
- package/dist/cjs/gx-ide-details-acknowledgements.cjs.entry.js +19 -34
- package/dist/cjs/gx-ide-details-acknowledgements.cjs.entry.js.map +1 -1
- package/dist/cjs/gx-ide-kb-manager-import.cjs.entry.js +59 -17
- package/dist/cjs/gx-ide-kb-manager-import.cjs.entry.js.map +1 -1
- package/dist/cjs/gx-ide-server-selector.cjs.entry.js +12 -4
- package/dist/cjs/gx-ide-server-selector.cjs.entry.js.map +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/details-acknowledgements/details-acknowledgements.js +19 -34
- package/dist/collection/components/details-acknowledgements/details-acknowledgements.js.map +1 -1
- package/dist/collection/components/details-acknowledgements/gx-ide-assets/details-acknowledgements/langs/details-acknowledgements.lang.en.json +3 -1
- package/dist/collection/components/details-acknowledgements/gx-ide-assets/details-acknowledgements/langs/details-acknowledgements.lang.ja.json +3 -1
- package/dist/collection/components/details-acknowledgements/gx-ide-assets/details-acknowledgements/langs/details-acknowledgements.lang.zh.json +3 -1
- package/dist/collection/components/kb-manager-import/helpers.js +6 -3
- package/dist/collection/components/kb-manager-import/helpers.js.map +1 -1
- package/dist/collection/components/kb-manager-import/kb-manager-import.css +5 -0
- package/dist/collection/components/kb-manager-import/kb-manager-import.js +56 -12
- package/dist/collection/components/kb-manager-import/kb-manager-import.js.map +1 -1
- package/dist/collection/components/team-dev/create-kb-from-server/create-kb-from-server.js +9 -3
- package/dist/collection/components/team-dev/create-kb-from-server/create-kb-from-server.js.map +1 -1
- package/dist/collection/components/team-dev/server-selector/server-selector.js +12 -4
- package/dist/collection/components/team-dev/server-selector/server-selector.js.map +1 -1
- package/dist/components/gx-ide-create-kb-from-server.js +9 -3
- package/dist/components/gx-ide-create-kb-from-server.js.map +1 -1
- package/dist/components/gx-ide-details-acknowledgements.js +19 -34
- package/dist/components/gx-ide-details-acknowledgements.js.map +1 -1
- package/dist/components/gx-ide-kb-manager-import.js +59 -18
- package/dist/components/gx-ide-kb-manager-import.js.map +1 -1
- package/dist/components/gx-ide-server-selector.js +12 -4
- package/dist/components/gx-ide-server-selector.js.map +1 -1
- package/dist/esm/genexus-ide-ui.js +1 -1
- package/dist/esm/gx-ide-create-kb-from-server.entry.js +9 -3
- package/dist/esm/gx-ide-create-kb-from-server.entry.js.map +1 -1
- package/dist/esm/gx-ide-details-acknowledgements.entry.js +19 -34
- package/dist/esm/gx-ide-details-acknowledgements.entry.js.map +1 -1
- package/dist/esm/gx-ide-kb-manager-import.entry.js +59 -17
- package/dist/esm/gx-ide-kb-manager-import.entry.js.map +1 -1
- package/dist/esm/gx-ide-server-selector.entry.js +12 -4
- package/dist/esm/gx-ide-server-selector.entry.js.map +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/genexus-ide-ui/genexus-ide-ui.esm.js +1 -1
- package/dist/genexus-ide-ui/genexus-ide-ui.esm.js.map +1 -1
- package/dist/genexus-ide-ui/gx-ide-assets/details-acknowledgements/langs/details-acknowledgements.lang.en.json +3 -1
- package/dist/genexus-ide-ui/gx-ide-assets/details-acknowledgements/langs/details-acknowledgements.lang.ja.json +3 -1
- package/dist/genexus-ide-ui/gx-ide-assets/details-acknowledgements/langs/details-acknowledgements.lang.zh.json +3 -1
- package/dist/genexus-ide-ui/{p-56c0c556.entry.js → p-48e87e4f.entry.js} +180 -145
- package/dist/genexus-ide-ui/p-48e87e4f.entry.js.map +1 -0
- package/dist/genexus-ide-ui/{p-bee71b20.entry.js → p-970e89ac.entry.js} +55 -45
- package/dist/genexus-ide-ui/p-970e89ac.entry.js.map +1 -0
- package/dist/genexus-ide-ui/{p-9ad85231.entry.js → p-b34ecbdc.entry.js} +35 -28
- package/dist/genexus-ide-ui/p-b34ecbdc.entry.js.map +1 -0
- package/dist/genexus-ide-ui/{p-5e2f9545.entry.js → p-bd0ffc08.entry.js} +56 -72
- package/dist/genexus-ide-ui/p-bd0ffc08.entry.js.map +1 -0
- package/dist/types/components/details-acknowledgements/types.d.ts +1 -1
- package/dist/types/components/kb-manager-import/helpers.d.ts +2 -1
- package/dist/types/components/kb-manager-import/kb-manager-import.d.ts +0 -1
- package/package.json +1 -1
- package/dist/genexus-ide-ui/p-56c0c556.entry.js.map +0 -1
- package/dist/genexus-ide-ui/p-5e2f9545.entry.js.map +0 -1
- package/dist/genexus-ide-ui/p-9ad85231.entry.js.map +0 -1
- package/dist/genexus-ide-ui/p-bee71b20.entry.js.map +0 -1
|
@@ -2,11 +2,13 @@ import { r as t, c as e, h as i, H as s, a } from "./p-97107ecc.js";
|
|
|
2
2
|
|
|
3
3
|
import { g as n } from "./p-401bfc97.js";
|
|
4
4
|
|
|
5
|
-
import { L as
|
|
5
|
+
import { L as o } from "./p-311eedf3.js";
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
const r = 30;
|
|
8
8
|
|
|
9
|
-
const c = "
|
|
9
|
+
/* objects in file metadata*/ const c = "object";
|
|
10
|
+
|
|
11
|
+
const l = "category";
|
|
10
12
|
|
|
11
13
|
const h = "status";
|
|
12
14
|
|
|
@@ -22,7 +24,7 @@ const convertImportCategoryItemToTreeItem = (t, e) => {
|
|
|
22
24
|
expanded: true,
|
|
23
25
|
leaf: true,
|
|
24
26
|
startImgSrc: t,
|
|
25
|
-
metadata:
|
|
27
|
+
metadata: c
|
|
26
28
|
});
|
|
27
29
|
}));
|
|
28
30
|
return i;
|
|
@@ -37,11 +39,12 @@ const convertImportCategoryDataToTreeView = t => {
|
|
|
37
39
|
const i = {
|
|
38
40
|
id: t.id,
|
|
39
41
|
caption: `${t.name} (${t.items.length})`,
|
|
40
|
-
expanded:
|
|
42
|
+
expanded: t.items.length <= r,
|
|
43
|
+
lazy: t.items.length > r,
|
|
41
44
|
leaf: false,
|
|
42
45
|
startImgSrc: t.icon,
|
|
43
|
-
metadata:
|
|
44
|
-
items: convertImportCategoryItemToTreeItem(t.icon, t.items)
|
|
46
|
+
metadata: l,
|
|
47
|
+
items: t.items.length <= r ? convertImportCategoryItemToTreeItem(t.icon, t.items) : []
|
|
45
48
|
};
|
|
46
49
|
e.push(i);
|
|
47
50
|
}));
|
|
@@ -89,77 +92,77 @@ const addImportItemResultDataItem = (t, e, i, s) => {
|
|
|
89
92
|
const a = [ ...s ];
|
|
90
93
|
// Use the resultItem.id to find the corresponding category in the categoryMap
|
|
91
94
|
const n = i.get(t.id);
|
|
92
|
-
const
|
|
93
|
-
const
|
|
94
|
-
if (
|
|
95
|
+
const o = e.get(n);
|
|
96
|
+
const r = a.findIndex((t => t.id === n));
|
|
97
|
+
if (r === -1) {
|
|
95
98
|
// category does not exists yet.
|
|
96
99
|
const e = {
|
|
97
100
|
id: n,
|
|
98
|
-
caption: `${
|
|
99
|
-
startImgSrc: `${
|
|
101
|
+
caption: `${o.name} (1)`,
|
|
102
|
+
startImgSrc: `${o.icon}`,
|
|
100
103
|
expanded: true,
|
|
101
|
-
items: [ createImportResultItem(
|
|
104
|
+
items: [ createImportResultItem(o, t) ]
|
|
102
105
|
};
|
|
103
106
|
a.push(e);
|
|
104
107
|
return a;
|
|
105
108
|
}
|
|
106
109
|
// else category already exists. Just insert the result item in the category.
|
|
107
|
-
const c = createImportResultItem(
|
|
108
|
-
a[
|
|
110
|
+
const c = createImportResultItem(o, t);
|
|
111
|
+
a[r].items = [ ...a[r].items, c ];
|
|
109
112
|
// update category caption length
|
|
110
|
-
const
|
|
111
|
-
a[
|
|
113
|
+
const l = a[r].items.length;
|
|
114
|
+
a[r].caption = `${o.name} (${l})`;
|
|
112
115
|
return a;
|
|
113
116
|
};
|
|
114
117
|
|
|
115
|
-
const
|
|
118
|
+
const d = ':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}.control-header__objects-in-file,.control-header__import-status{padding-block-start:var(--mer-spacing--md)}.objects-in-file__main,.import-status__main{grid-auto-rows:max-content;padding-block:var(--content-block-spacing);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:var(--mer-spacing--xs);height:var(--mer-spacing--xs);border-radius:50%;background-color:var(--gray-03);margin-inline-end:var(--mer-spacing--xxs)}.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}';
|
|
116
119
|
|
|
117
|
-
var
|
|
120
|
+
var f = undefined && undefined.__classPrivateFieldGet || function(t, e, i, s) {
|
|
118
121
|
if (i === "a" && !s) throw new TypeError("Private accessor was defined without a getter");
|
|
119
122
|
if (typeof e === "function" ? t !== e || !s : !e.has(t)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
120
123
|
return i === "m" ? s : i === "a" ? s.call(t) : s ? s.value : e.get(t);
|
|
121
124
|
};
|
|
122
125
|
|
|
123
|
-
var
|
|
126
|
+
var m = undefined && undefined.__classPrivateFieldSet || function(t, e, i, s, a) {
|
|
124
127
|
if (s === "m") throw new TypeError("Private method is not writable");
|
|
125
128
|
if (s === "a" && !a) throw new TypeError("Private accessor was defined without a setter");
|
|
126
129
|
if (typeof e === "function" ? t !== e || !a : !e.has(t)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
127
130
|
return s === "a" ? a.call(t, i) : a ? a.value = i : e.set(t, i), i;
|
|
128
131
|
};
|
|
129
132
|
|
|
130
|
-
var
|
|
133
|
+
var p, u, b, g, w, k, v, y, _, x, M, W, C, j, T, S, I, $, E, D, L, z, F, H, O, R, A, N;
|
|
131
134
|
|
|
132
|
-
const
|
|
135
|
+
const P = [ "resets/box-sizing", "components/button", "components/checkbox", "components/edit", "components/icon", "components/tree-view", "utils/form", "utils/layout", "utils/typography", "utils/spacing" ];
|
|
133
136
|
|
|
134
|
-
const
|
|
137
|
+
const J = n({
|
|
135
138
|
category: "gemini-tools",
|
|
136
139
|
name: "notice",
|
|
137
140
|
colorType: "on-elevation"
|
|
138
141
|
});
|
|
139
142
|
|
|
140
|
-
const
|
|
143
|
+
const V = n({
|
|
141
144
|
category: "gemini-tools",
|
|
142
145
|
name: "file",
|
|
143
146
|
colorType: "primary"
|
|
144
147
|
});
|
|
145
148
|
|
|
146
|
-
const
|
|
149
|
+
const U = n({
|
|
147
150
|
category: "gemini-tools",
|
|
148
151
|
name: "settings",
|
|
149
152
|
colorType: "primary"
|
|
150
153
|
});
|
|
151
154
|
|
|
152
|
-
const
|
|
155
|
+
const X = n({
|
|
153
156
|
category: "menus",
|
|
154
157
|
name: "delete",
|
|
155
158
|
colorType: "primary"
|
|
156
159
|
});
|
|
157
160
|
|
|
158
|
-
const
|
|
161
|
+
const Y = "allChecked";
|
|
159
162
|
|
|
160
|
-
const
|
|
163
|
+
const q = "allUnchecked";
|
|
161
164
|
|
|
162
|
-
const
|
|
165
|
+
const B = class {
|
|
163
166
|
constructor(i) {
|
|
164
167
|
t(this, i);
|
|
165
168
|
this.componentDidLoadEvent = e(this, "componentDidLoadEvent", 7);
|
|
@@ -168,115 +171,147 @@ const X = class {
|
|
|
168
171
|
* The component hard-coded strings translations.
|
|
169
172
|
*/
|
|
170
173
|
// eslint-disable-next-line @stencil-community/own-props-must-be-private
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
u.set(this, void 0);
|
|
174
|
+
p.set(this, void 0);
|
|
175
|
+
u.set(this, []);
|
|
174
176
|
b.set(this, void 0);
|
|
175
177
|
g.set(this, void 0);
|
|
176
|
-
w.set(this,
|
|
178
|
+
w.set(this, void 0);
|
|
177
179
|
k.set(this, new Set);
|
|
180
|
+
v.set(this, new Set);
|
|
178
181
|
y.set(this, new Set);
|
|
179
182
|
// #categoryItemMap maps a category id, with the name and icon.
|
|
180
183
|
// required for the "import status" tree.
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
+
_.set(this, new Map);
|
|
185
|
+
x.set(this, new Map);
|
|
186
|
+
M.set(this, void 0);
|
|
187
|
+
W.set(this, (() => {
|
|
184
188
|
this.cancelCallback();
|
|
185
189
|
}));
|
|
186
|
-
|
|
190
|
+
C.set(this, (() => {
|
|
187
191
|
this.importTreeState = [];
|
|
188
192
|
this.statusInfo.error.number = 0;
|
|
189
193
|
this.statusInfo.warning.number = 0;
|
|
190
194
|
this.statusInfo.success.number = 0;
|
|
191
195
|
}));
|
|
192
|
-
|
|
196
|
+
j.set(this, (() => {
|
|
193
197
|
var t;
|
|
194
198
|
this.noImport = !!(((t = this.importTreeState) === null || t === void 0 ? void 0 : t.length) === 0 || !this.importTreeState);
|
|
195
199
|
}));
|
|
196
|
-
|
|
200
|
+
T.set(this, (() => {
|
|
197
201
|
this.someStatusVisible = this.statusInfo.error.display || this.statusInfo.warning.display || this.statusInfo.success.display;
|
|
198
202
|
}));
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
203
|
+
S.set(this, (async () => {
|
|
204
|
+
var t;
|
|
205
|
+
/* first clear imported objects (this clears errors/warnings/success counts as well)*/ f(this, C, "f").call(this);
|
|
202
206
|
/* then do the import*/ this.importingIsInProcess = true;
|
|
203
|
-
|
|
207
|
+
/*
|
|
208
|
+
Process checked objects manually, considering lazy loading.
|
|
209
|
+
Example:
|
|
210
|
+
1. The "Attributes" category is lazy-loaded and marked as checked.
|
|
211
|
+
2. The user runs the import without expanding the node.
|
|
212
|
+
3. No attribute objects appear as checked, since lazy load was not triggered.
|
|
213
|
+
4. Still, all attribute objects must be included, because the category itself is checked.
|
|
214
|
+
|
|
215
|
+
This avoids forcing users to expand nodes just to select objects.
|
|
216
|
+
Large categories are not expanded by default to improve performance, which is crucial
|
|
217
|
+
for very large imports (1000+ objects).
|
|
218
|
+
*/ const e = [];
|
|
219
|
+
for (let i of f(this, w, "f").model) {
|
|
220
|
+
if (((t = i.items) === null || t === void 0 ? void 0 : t.length) > 0) {
|
|
221
|
+
for (let t of i.items) {
|
|
222
|
+
if (t.checked) e.push(t.id);
|
|
223
|
+
}
|
|
224
|
+
} else if (i.lazy && i.checked) {
|
|
225
|
+
const t = f(this, M, "f").find((t => t.id == i.id));
|
|
226
|
+
for (let i of t.items) {
|
|
227
|
+
e.push(i.id);
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
this.importCallback(e).then((() => {
|
|
204
232
|
this.importingIsInProcess = false;
|
|
205
233
|
}));
|
|
206
234
|
}));
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
235
|
+
I.set(this, (async t => {
|
|
236
|
+
m(this, M, await this.loadCallback(t), "f");
|
|
237
|
+
f(this, _, "f").clear();
|
|
238
|
+
f(this, x, "f").clear();
|
|
239
|
+
f(this, M, "f").forEach((t => {
|
|
240
|
+
f(this, _, "f").set(t.id, {
|
|
213
241
|
name: t.name,
|
|
214
242
|
icon: t.icon
|
|
215
243
|
});
|
|
216
244
|
t.items.forEach((e => {
|
|
217
|
-
|
|
245
|
+
f(this, x, "f").set(e.id, t.id);
|
|
218
246
|
}));
|
|
219
247
|
}));
|
|
220
|
-
const
|
|
221
|
-
this.objectsTreeModel =
|
|
248
|
+
const e = convertImportCategoryDataToTreeView(f(this, M, "f"));
|
|
249
|
+
this.objectsTreeModel = e;
|
|
250
|
+
}));
|
|
251
|
+
$.set(this, (async t => {
|
|
252
|
+
const e = f(this, M, "f").find((e => e.id === t));
|
|
253
|
+
return e && e.items.length > 0 ? convertImportCategoryItemToTreeItem(e.icon, e.items) : [];
|
|
222
254
|
}));
|
|
223
|
-
|
|
255
|
+
E.set(this, (t => {
|
|
224
256
|
const e = t.detail;
|
|
225
257
|
const i = [];
|
|
226
258
|
const s = [];
|
|
227
259
|
e.forEach((t => {
|
|
228
260
|
if (t.item.checked) {
|
|
229
261
|
i.push(t.item.id);
|
|
230
|
-
|
|
231
|
-
if (t.item.checked && t.item.metadata === o) {
|
|
232
|
-
s.push(t.item.id);
|
|
262
|
+
if (t.item.lazy && !t.item.items) s.push(t.item.id);
|
|
233
263
|
}
|
|
234
264
|
}));
|
|
235
|
-
|
|
265
|
+
for (let t of s) {
|
|
266
|
+
const e = f(this, M, "f").find((e => e.id === t));
|
|
267
|
+
if (e) {
|
|
268
|
+
for (let t of e.items) {}
|
|
269
|
+
}
|
|
270
|
+
}
|
|
236
271
|
// Evaluate "Select All / Unselect All" checkbox state
|
|
237
272
|
if (e.size === i.length) {
|
|
238
|
-
this.selectAllCheckboxValue =
|
|
273
|
+
this.selectAllCheckboxValue = Y;
|
|
239
274
|
this.selectAllCheckboxIndeterminate = false;
|
|
240
275
|
} else if (i.length === 0) {
|
|
241
|
-
this.selectAllCheckboxValue =
|
|
276
|
+
this.selectAllCheckboxValue = q;
|
|
242
277
|
this.selectAllCheckboxIndeterminate = false;
|
|
243
278
|
} else {
|
|
244
279
|
this.selectAllCheckboxIndeterminate = true;
|
|
245
280
|
}
|
|
246
281
|
}));
|
|
247
|
-
|
|
248
|
-
if (t.detail.metadata ===
|
|
282
|
+
D.set(this, (t => {
|
|
283
|
+
if (t.detail.metadata === c) {
|
|
249
284
|
this.objectContextMenuCallback("imported", {
|
|
250
|
-
selection:
|
|
285
|
+
selection: f(this, u, "f"),
|
|
251
286
|
clientX: t.detail.contextmenuEvent.screenX,
|
|
252
287
|
clientY: t.detail.contextmenuEvent.screenY
|
|
253
288
|
});
|
|
254
289
|
}
|
|
255
290
|
}));
|
|
256
|
-
|
|
257
|
-
|
|
291
|
+
L.set(this, (t => {
|
|
292
|
+
m(this, u, t.detail.map((t => t.item.id)), "f");
|
|
258
293
|
}));
|
|
259
|
-
|
|
294
|
+
z.set(this, (() => {
|
|
260
295
|
if (this.optionsCallback) {
|
|
261
296
|
this.optionsCallback();
|
|
262
297
|
// returns boolean
|
|
263
298
|
}
|
|
264
299
|
}));
|
|
265
|
-
|
|
300
|
+
F.set(this, (() => {
|
|
266
301
|
this.selectedFile = null;
|
|
267
|
-
|
|
302
|
+
f(this, g, "f").value = null;
|
|
268
303
|
}));
|
|
269
|
-
|
|
270
|
-
|
|
304
|
+
H.set(this, (() => {
|
|
305
|
+
f(this, g, "f").click();
|
|
271
306
|
}));
|
|
272
|
-
|
|
307
|
+
O.set(this, (t => {
|
|
273
308
|
var e;
|
|
274
309
|
const i = t.target;
|
|
275
310
|
if (((e = i.files) === null || e === void 0 ? void 0 : e.length) > 0) {
|
|
276
311
|
this.selectedFile = i.files[0];
|
|
277
312
|
}
|
|
278
313
|
}));
|
|
279
|
-
|
|
314
|
+
R.set(this, (t => {
|
|
280
315
|
const e = t.detail;
|
|
281
316
|
const i = [];
|
|
282
317
|
const s = e.findIndex((t => t.itemId === "errors"));
|
|
@@ -291,12 +326,12 @@ const X = class {
|
|
|
291
326
|
if (n !== -1) {
|
|
292
327
|
i.push("success");
|
|
293
328
|
}
|
|
294
|
-
let
|
|
329
|
+
let o = `"${h}":""`;
|
|
295
330
|
if (i.length) {
|
|
296
331
|
const t = i.join("|");
|
|
297
|
-
|
|
332
|
+
o = `"${h}":"(${t})"`;
|
|
298
333
|
}
|
|
299
|
-
this.importedTreeFilterRegExp = new RegExp(
|
|
334
|
+
this.importedTreeFilterRegExp = new RegExp(o, "i");
|
|
300
335
|
// Update statusInfo for the status-buttons
|
|
301
336
|
this.statusInfo = {
|
|
302
337
|
error: {
|
|
@@ -312,36 +347,35 @@ const X = class {
|
|
|
312
347
|
number: this.statusInfo.success.number
|
|
313
348
|
}
|
|
314
349
|
};
|
|
315
|
-
|
|
350
|
+
f(this, T, "f").call(this);
|
|
316
351
|
}));
|
|
317
|
-
|
|
318
|
-
if (
|
|
319
|
-
const e = t.detail ===
|
|
320
|
-
|
|
352
|
+
A.set(this, (t => {
|
|
353
|
+
if (f(this, w, "f")) {
|
|
354
|
+
const e = t.detail === Y;
|
|
355
|
+
f(this, w, "f").updateAllItemsProperties({
|
|
321
356
|
checked: e
|
|
322
357
|
});
|
|
323
358
|
}
|
|
324
359
|
}));
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
360
|
+
N.set(this, (() => {
|
|
361
|
+
f(this, y, "f").clear();
|
|
362
|
+
f(this, v, "f").clear();
|
|
363
|
+
f(this, k, "f").clear();
|
|
329
364
|
this.importTreeState.forEach((t => {
|
|
330
365
|
const e = t.items;
|
|
331
366
|
e.forEach((t => {
|
|
332
367
|
if (t.metadata === "error") {
|
|
333
|
-
|
|
368
|
+
f(this, y, "f").add(t.id);
|
|
334
369
|
}
|
|
335
370
|
if (t.metadata === "warning") {
|
|
336
|
-
|
|
371
|
+
f(this, v, "f").add(t.id);
|
|
337
372
|
}
|
|
338
373
|
if (t.metadata === "success") {
|
|
339
|
-
|
|
374
|
+
f(this, k, "f").add(t.id);
|
|
340
375
|
}
|
|
341
376
|
}));
|
|
342
377
|
}));
|
|
343
378
|
}));
|
|
344
|
-
this.checkedObjectsIds = [];
|
|
345
379
|
this.selectAllCheckboxValue = undefined;
|
|
346
380
|
this.selectAllCheckboxIndeterminate = false;
|
|
347
381
|
this.importStatusMessage = undefined;
|
|
@@ -380,11 +414,11 @@ const X = class {
|
|
|
380
414
|
// this.#filterImportedHandler();
|
|
381
415
|
}
|
|
382
416
|
watchImportTreeStateHandler() {
|
|
383
|
-
|
|
417
|
+
f(this, j, "f").call(this);
|
|
384
418
|
if (this.noImport) {
|
|
385
|
-
this.importStatusMessage =
|
|
419
|
+
this.importStatusMessage = f(this, p, "f").main.importStatus.noImportedFiles;
|
|
386
420
|
} else {
|
|
387
|
-
this.importStatusMessage =
|
|
421
|
+
this.importStatusMessage = f(this, p, "f").main.importStatus.importedButHidden;
|
|
388
422
|
}
|
|
389
423
|
}
|
|
390
424
|
watchObjectsTreeModelHandler(t) {
|
|
@@ -392,34 +426,34 @@ const X = class {
|
|
|
392
426
|
}
|
|
393
427
|
selectedFileChanged(t) {
|
|
394
428
|
if (t) {
|
|
395
|
-
|
|
429
|
+
f(this, I, "f").call(this, t);
|
|
396
430
|
}
|
|
397
431
|
}
|
|
398
432
|
componentDidLoad() {
|
|
399
|
-
|
|
433
|
+
f(this, b, "f").focus();
|
|
400
434
|
}
|
|
401
435
|
componentDidRender() {}
|
|
402
436
|
async componentWillLoad() {
|
|
403
|
-
|
|
437
|
+
m(this, p, await o.getComponentStrings(this.el), "f");
|
|
404
438
|
this.componentDidLoadEvent.emit(true);
|
|
405
439
|
// this.#evaluateObjects();
|
|
406
|
-
|
|
407
|
-
this.importStatusMessage =
|
|
408
|
-
|
|
440
|
+
f(this, j, "f").call(this);
|
|
441
|
+
this.importStatusMessage = f(this, p, "f").main.importStatus.noImportedFiles;
|
|
442
|
+
f(this, T, "f").call(this);
|
|
409
443
|
}
|
|
410
444
|
/**
|
|
411
445
|
* Add the result of importing an item
|
|
412
446
|
*/ async addResultItem(t) {
|
|
413
|
-
this.importTreeState = addImportItemResultDataItem(t,
|
|
447
|
+
this.importTreeState = addImportItemResultDataItem(t, f(this, _, "f"), f(this, x, "f"), this.importTreeState);
|
|
414
448
|
this.statusInfo[t.status].number++;
|
|
415
|
-
|
|
449
|
+
f(this, N, "f").call(this);
|
|
416
450
|
}
|
|
417
451
|
render() {
|
|
418
452
|
var t, e;
|
|
419
453
|
return i(s, {
|
|
420
454
|
class: "widget"
|
|
421
455
|
}, i("ch-theme", {
|
|
422
|
-
model:
|
|
456
|
+
model: P
|
|
423
457
|
}), i("section", {
|
|
424
458
|
class: "section"
|
|
425
459
|
}, i("header", {
|
|
@@ -432,7 +466,7 @@ const X = class {
|
|
|
432
466
|
}, i("label", {
|
|
433
467
|
class: "label",
|
|
434
468
|
htmlFor: "file-name"
|
|
435
|
-
},
|
|
469
|
+
}, f(this, p, "f").header.fileNameLabel), i("ch-edit", {
|
|
436
470
|
autoFocus: true,
|
|
437
471
|
id: "file-name",
|
|
438
472
|
class: "input",
|
|
@@ -440,74 +474,75 @@ const X = class {
|
|
|
440
474
|
type: "text",
|
|
441
475
|
readonly: true,
|
|
442
476
|
value: (t = this.selectedFile) === null || t === void 0 ? void 0 : t.name,
|
|
443
|
-
placeholder:
|
|
444
|
-
startImgSrc:
|
|
445
|
-
ref: t =>
|
|
477
|
+
placeholder: f(this, p, "f").header.fileNamePlaceholder,
|
|
478
|
+
startImgSrc: V,
|
|
479
|
+
ref: t => m(this, b, t, "f")
|
|
446
480
|
}), i("input", {
|
|
447
481
|
hidden: true,
|
|
448
482
|
type: "file",
|
|
449
483
|
accept: ".xpz, .xml",
|
|
450
|
-
onChange:
|
|
451
|
-
ref: t =>
|
|
484
|
+
onChange: f(this, O, "f"),
|
|
485
|
+
ref: t => m(this, g, t, "f")
|
|
452
486
|
})), i("div", {
|
|
453
487
|
class: "buttons-spacer"
|
|
454
488
|
}, i("button", {
|
|
455
|
-
"aria-label":
|
|
456
|
-
title:
|
|
489
|
+
"aria-label": f(this, p, "f").header.removeFileSelection,
|
|
490
|
+
title: f(this, p, "f").header.removeFileSelection,
|
|
457
491
|
id: "reset-all-button",
|
|
458
492
|
class: "button-tertiary button-icon-only",
|
|
459
493
|
part: "reset-all-button",
|
|
460
|
-
onClick:
|
|
494
|
+
onClick: f(this, F, "f")
|
|
461
495
|
}, i("ch-image", {
|
|
462
496
|
class: "icon-md",
|
|
463
|
-
src:
|
|
497
|
+
src: X
|
|
464
498
|
})), i("button", {
|
|
465
499
|
// select file
|
|
466
500
|
id: "select-file-load-button",
|
|
467
501
|
class: "button-primary",
|
|
468
502
|
part: "select-file-load-button",
|
|
469
|
-
onClick:
|
|
503
|
+
onClick: f(this, H, "f"),
|
|
470
504
|
disabled: this.importingIsInProcess
|
|
471
|
-
},
|
|
505
|
+
}, f(this, p, "f").header.selectFileButton))), i("section", {
|
|
472
506
|
// objects in file
|
|
473
507
|
class: "objects-in-file__section"
|
|
474
508
|
}, i("h2", {
|
|
475
509
|
class: "control-header control-header-with-border control-header__objects-in-file subtitle-regular-xs\t text-align-center spacing-body-inline"
|
|
476
|
-
},
|
|
510
|
+
}, f(this, p, "f").main.objectsInFile.title), i("div", {
|
|
477
511
|
class: "field-group objects-in-file__main"
|
|
478
512
|
}, !this.noObjects ? i("ch-tree-view-render", {
|
|
479
513
|
// objects in file tree
|
|
480
514
|
showLines: "last",
|
|
481
|
-
class: "tree-view",
|
|
515
|
+
class: "tree-view tree-view-import",
|
|
482
516
|
model: this.objectsTreeModel,
|
|
483
517
|
dragDisabled: true,
|
|
484
518
|
dropDisabled: true,
|
|
485
519
|
toggleCheckboxes: true,
|
|
486
520
|
checkbox: true,
|
|
487
521
|
checked: true,
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
522
|
+
lazyLoadTreeItemsCallback: f(this, $, "f"),
|
|
523
|
+
onCheckedItemsChange: f(this, E, "f"),
|
|
524
|
+
onSelectedItemsChange: f(this, L, "f"),
|
|
525
|
+
onItemContextmenu: f(this, D, "f"),
|
|
526
|
+
ref: t => m(this, w, t, "f")
|
|
492
527
|
}) : i("gx-ide-empty-state", {
|
|
493
528
|
isAnimated: false,
|
|
494
|
-
stateTitle:
|
|
529
|
+
stateTitle: f(this, p, "f").main.objectsInFile.noObjects,
|
|
495
530
|
key: "no-objects-empty-state"
|
|
496
531
|
}, i("button", {
|
|
497
532
|
// begin by selecting a file
|
|
498
533
|
class: "button-secondary",
|
|
499
|
-
onClick:
|
|
500
|
-
},
|
|
534
|
+
onClick: f(this, H, "f")
|
|
535
|
+
}, f(this, p, "f").main.objectsInFile.selectFile)), i("footer", {
|
|
501
536
|
class: "field-group objects-in-file__footer spacing-body-inline"
|
|
502
537
|
}, i("ch-checkbox", {
|
|
503
538
|
// select all / unselect all checkbox
|
|
504
539
|
id: "select-all-checkbox",
|
|
505
540
|
class: "checkbox create-data-in-kb",
|
|
506
|
-
checkedValue:
|
|
507
|
-
unCheckedValue:
|
|
508
|
-
caption:
|
|
541
|
+
checkedValue: Y,
|
|
542
|
+
unCheckedValue: q,
|
|
543
|
+
caption: f(this, p, "f").main.objectsInFile.selectUnselect,
|
|
509
544
|
value: this.selectAllCheckboxValue,
|
|
510
|
-
onInput:
|
|
545
|
+
onInput: f(this, A, "f"),
|
|
511
546
|
disabled: this.importingIsInProcess || this.objectsTreeModel.length === 0,
|
|
512
547
|
part: "select-all-checkbox"
|
|
513
548
|
}), i("div", {
|
|
@@ -516,37 +551,37 @@ const X = class {
|
|
|
516
551
|
// import objects button
|
|
517
552
|
id: "import-btn",
|
|
518
553
|
class: "button-primary ",
|
|
519
|
-
onClick:
|
|
554
|
+
onClick: f(this, S, "f"),
|
|
520
555
|
disabled: ((e = this.objectsTreeModel) === null || e === void 0 ? void 0 : e.length) === 0 || this.importingIsInProcess
|
|
521
|
-
},
|
|
556
|
+
}, f(this, p, "f").main.objectsInFile.importButton), i("button", {
|
|
522
557
|
// cancel-import button
|
|
523
558
|
id: "cancel-import-btn",
|
|
524
559
|
class: "button-secondary ",
|
|
525
|
-
onClick:
|
|
560
|
+
onClick: f(this, W, "f"),
|
|
526
561
|
disabled: !this.importingIsInProcess,
|
|
527
562
|
part: "cancel-import-button"
|
|
528
|
-
},
|
|
563
|
+
}, f(this, p, "f").main.objectsInFile.cancelButton), i("button", {
|
|
529
564
|
// settings/options button
|
|
530
565
|
id: "select-kb-btn",
|
|
531
566
|
class: "button-tertiary button-icon-only",
|
|
532
567
|
part: "select-kb-btn",
|
|
533
|
-
onClick:
|
|
568
|
+
onClick: f(this, z, "f")
|
|
534
569
|
}, i("ch-image", {
|
|
535
570
|
class: "icon-md",
|
|
536
|
-
src:
|
|
571
|
+
src: U
|
|
537
572
|
})))))), i("section", {
|
|
538
573
|
// import status
|
|
539
574
|
class: "import-status__section"
|
|
540
575
|
}, i("h2", {
|
|
541
576
|
class: "control-header control-header-with-border control-header__import-status subtitle-regular-xs\t text-align-center spacing-body-inline"
|
|
542
|
-
},
|
|
577
|
+
}, f(this, p, "f").main.importStatus.title), i("div", {
|
|
543
578
|
class: "field-group import-status__main"
|
|
544
579
|
}, !this.noImport && this.someStatusVisible ? i("ch-tree-view-render", {
|
|
545
580
|
// import status tree
|
|
546
581
|
model: this.importTreeState,
|
|
547
582
|
toggleCheckboxes: true,
|
|
548
583
|
showLines: "last",
|
|
549
|
-
class: "tree-view",
|
|
584
|
+
class: "tree-view tree-view-import",
|
|
550
585
|
filter: this.importedTreeFilterRegExp,
|
|
551
586
|
filterType: "metadata",
|
|
552
587
|
filterOptions: {
|
|
@@ -555,7 +590,7 @@ const X = class {
|
|
|
555
590
|
}
|
|
556
591
|
}) : i("gx-ide-empty-state", {
|
|
557
592
|
isAnimated: false,
|
|
558
|
-
stateIconSrc:
|
|
593
|
+
stateIconSrc: J,
|
|
559
594
|
stateTitle: this.importStatusMessage,
|
|
560
595
|
key: "no-objects-empty-state"
|
|
561
596
|
}), i("footer", {
|
|
@@ -563,10 +598,10 @@ const X = class {
|
|
|
563
598
|
}, i("button", {
|
|
564
599
|
// clear status button
|
|
565
600
|
class: "button-secondary import-clear-status-btn",
|
|
566
|
-
onClick:
|
|
601
|
+
onClick: f(this, C, "f"),
|
|
567
602
|
disabled: this.noImport || this.importingIsInProcess,
|
|
568
603
|
part: "clear-status-btn"
|
|
569
|
-
},
|
|
604
|
+
}, f(this, p, "f").main.importStatus.clearButton)))), i("footer", {
|
|
570
605
|
// footer
|
|
571
606
|
class: "footer"
|
|
572
607
|
}, i("gx-ide-status-buttons", {
|
|
@@ -576,7 +611,7 @@ const X = class {
|
|
|
576
611
|
hideMessage: true,
|
|
577
612
|
compact: true,
|
|
578
613
|
minimal: this.statusMinimal,
|
|
579
|
-
onSelectionChanged:
|
|
614
|
+
onSelectionChanged: f(this, R, "f")
|
|
580
615
|
}))));
|
|
581
616
|
}
|
|
582
617
|
static get assetsDirs() {
|
|
@@ -594,14 +629,14 @@ const X = class {
|
|
|
594
629
|
}
|
|
595
630
|
};
|
|
596
631
|
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
R = new WeakMap;
|
|
632
|
+
p = new WeakMap, u = new WeakMap, b = new WeakMap, g = new WeakMap, w = new WeakMap,
|
|
633
|
+
k = new WeakMap, v = new WeakMap, y = new WeakMap, _ = new WeakMap, x = new WeakMap,
|
|
634
|
+
M = new WeakMap, W = new WeakMap, C = new WeakMap, j = new WeakMap, T = new WeakMap,
|
|
635
|
+
S = new WeakMap, I = new WeakMap, $ = new WeakMap, E = new WeakMap, D = new WeakMap,
|
|
636
|
+
L = new WeakMap, z = new WeakMap, F = new WeakMap, H = new WeakMap, O = new WeakMap,
|
|
637
|
+
R = new WeakMap, A = new WeakMap, N = new WeakMap;
|
|
603
638
|
|
|
604
|
-
|
|
639
|
+
B.style = d;
|
|
605
640
|
|
|
606
|
-
export {
|
|
607
|
-
//# sourceMappingURL=p-
|
|
641
|
+
export { B as gx_ide_kb_manager_import };
|
|
642
|
+
//# sourceMappingURL=p-48e87e4f.entry.js.map
|