@genexus/genexus-ide-ui 1.0.36 → 1.0.37
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-design-import.cjs.entry.js +12 -13
- package/dist/cjs/gx-ide-design-import.cjs.entry.js.map +1 -1
- package/dist/cjs/gx-ide-select-user-team.cjs.entry.js +35 -20
- package/dist/cjs/gx-ide-select-user-team.cjs.entry.js.map +1 -1
- package/dist/cjs/gx-ide-sign-in-team.cjs.entry.js +22 -22
- package/dist/cjs/gx-ide-sign-in-team.cjs.entry.js.map +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/design-import/design-import.js +12 -13
- package/dist/collection/components/design-import/design-import.js.map +1 -1
- package/dist/collection/components/design-import/gx-ide-assets/design-import/langs/design-import.lang.en.json +1 -0
- package/dist/collection/components/design-import/gx-ide-assets/design-import/langs/design-import.lang.ja.json +1 -0
- package/dist/collection/components/design-import/gx-ide-assets/design-import/langs/design-import.lang.zh.json +1 -0
- package/dist/collection/components/select-user-team/gx-ide-assets/select-user-team/langs/select-user-team.lang.en.json +4 -8
- package/dist/collection/components/select-user-team/gx-ide-assets/select-user-team/langs/select-user-team.lang.ja.json +2 -6
- package/dist/collection/components/select-user-team/gx-ide-assets/select-user-team/langs/select-user-team.lang.zh.json +2 -6
- package/dist/collection/components/select-user-team/select-user-team.css +47 -19
- package/dist/collection/components/select-user-team/select-user-team.js +64 -26
- package/dist/collection/components/select-user-team/select-user-team.js.map +1 -1
- package/dist/collection/components/sign-in-team/sign-in-team.js +20 -20
- package/dist/collection/components/sign-in-team/sign-in-team.js.map +1 -1
- package/dist/components/gx-ide-design-import.js +12 -13
- package/dist/components/gx-ide-design-import.js.map +1 -1
- package/dist/components/gx-ide-select-user-team.js +40 -22
- package/dist/components/gx-ide-select-user-team.js.map +1 -1
- package/dist/components/gx-ide-sign-in-team.js +22 -22
- package/dist/components/gx-ide-sign-in-team.js.map +1 -1
- package/dist/esm/genexus-ide-ui.js +1 -1
- package/dist/esm/gx-ide-design-import.entry.js +12 -13
- package/dist/esm/gx-ide-design-import.entry.js.map +1 -1
- package/dist/esm/gx-ide-select-user-team.entry.js +35 -20
- package/dist/esm/gx-ide-select-user-team.entry.js.map +1 -1
- package/dist/esm/gx-ide-sign-in-team.entry.js +22 -22
- package/dist/esm/gx-ide-sign-in-team.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/design-import/langs/design-import.lang.en.json +1 -0
- package/dist/genexus-ide-ui/gx-ide-assets/design-import/langs/design-import.lang.ja.json +1 -0
- package/dist/genexus-ide-ui/gx-ide-assets/design-import/langs/design-import.lang.zh.json +1 -0
- package/dist/genexus-ide-ui/gx-ide-assets/select-user-team/langs/select-user-team.lang.en.json +4 -8
- package/dist/genexus-ide-ui/gx-ide-assets/select-user-team/langs/select-user-team.lang.ja.json +2 -6
- package/dist/genexus-ide-ui/gx-ide-assets/select-user-team/langs/select-user-team.lang.zh.json +2 -6
- package/dist/genexus-ide-ui/p-0b33d2f9.entry.js.map +1 -1
- package/dist/genexus-ide-ui/{p-32bd11fa.entry.js → p-5fc133b2.entry.js} +118 -121
- package/dist/genexus-ide-ui/p-5fc133b2.entry.js.map +1 -0
- package/dist/genexus-ide-ui/p-c9b0fd13.entry.js +130 -0
- package/dist/genexus-ide-ui/p-c9b0fd13.entry.js.map +1 -0
- package/dist/types/components/select-user-team/select-user-team.d.ts +10 -5
- package/dist/types/components/sign-in-team/sign-in-team.d.ts +1 -1
- package/dist/types/components.d.ts +12 -4
- package/package.json +1 -1
- package/dist/genexus-ide-ui/p-32bd11fa.entry.js.map +0 -1
- package/dist/genexus-ide-ui/p-b189e45d.entry.js +0 -113
- package/dist/genexus-ide-ui/p-b189e45d.entry.js.map +0 -1
|
@@ -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
|
|
14
|
+
const l = {
|
|
15
15
|
layout: {
|
|
16
16
|
id: "layout",
|
|
17
17
|
caption: "Layout",
|
|
@@ -39,45 +39,45 @@ const r = {
|
|
|
39
39
|
}
|
|
40
40
|
};
|
|
41
41
|
|
|
42
|
-
const
|
|
42
|
+
const r = {
|
|
43
43
|
panels: [ {
|
|
44
|
-
id:
|
|
45
|
-
name:
|
|
44
|
+
id: l.composition.id,
|
|
45
|
+
name: l.composition.caption
|
|
46
46
|
}, {
|
|
47
|
-
id:
|
|
48
|
-
name:
|
|
47
|
+
id: l.layout.id,
|
|
48
|
+
name: l.layout.caption
|
|
49
49
|
}, {
|
|
50
|
-
id:
|
|
51
|
-
name:
|
|
50
|
+
id: l.code.id,
|
|
51
|
+
name: l.code.caption
|
|
52
52
|
} ],
|
|
53
53
|
stencils: [ {
|
|
54
|
-
id:
|
|
55
|
-
name:
|
|
54
|
+
id: l.composition.id,
|
|
55
|
+
name: l.composition.caption
|
|
56
56
|
}, {
|
|
57
|
-
id:
|
|
58
|
-
name:
|
|
57
|
+
id: l.layout.id,
|
|
58
|
+
name: l.layout.caption
|
|
59
59
|
}, {
|
|
60
|
-
id:
|
|
61
|
-
name:
|
|
60
|
+
id: l.code.id,
|
|
61
|
+
name: l.code.caption
|
|
62
62
|
} ],
|
|
63
63
|
images: [ {
|
|
64
|
-
id:
|
|
65
|
-
name:
|
|
64
|
+
id: l.composition.id,
|
|
65
|
+
name: l.composition.caption
|
|
66
66
|
} ],
|
|
67
67
|
fonts: [ {
|
|
68
|
-
id:
|
|
69
|
-
name:
|
|
68
|
+
id: l.composition.id,
|
|
69
|
+
name: l.composition.caption
|
|
70
70
|
} ],
|
|
71
71
|
designSystem: [ {
|
|
72
|
-
id:
|
|
73
|
-
name:
|
|
72
|
+
id: l.tokens.id,
|
|
73
|
+
name: l.tokens.caption
|
|
74
74
|
}, {
|
|
75
|
-
id:
|
|
76
|
-
name:
|
|
75
|
+
id: l.styles.id,
|
|
76
|
+
name: l.styles.caption
|
|
77
77
|
} ]
|
|
78
78
|
};
|
|
79
79
|
|
|
80
|
-
const h = new Map([ [ "panels",
|
|
80
|
+
const h = new Map([ [ "panels", r.panels ], [ "stencils", r.stencils ], [ "images", r.images ], [ "design_system", r.designSystem ], [ "fonts", r.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,15 +94,15 @@ 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
|
|
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;
|
|
98
98
|
|
|
99
99
|
const dt = "panels";
|
|
100
100
|
|
|
101
101
|
const pt = "stencils";
|
|
102
102
|
|
|
103
|
-
const
|
|
103
|
+
const ft = "images";
|
|
104
104
|
|
|
105
|
-
const
|
|
105
|
+
const ut = "design_system";
|
|
106
106
|
|
|
107
107
|
const mt = "fonts";
|
|
108
108
|
|
|
@@ -144,12 +144,12 @@ const Mt = [ "resets/box-sizing", "utils/form", "utils/layout", "utils/typograph
|
|
|
144
144
|
const Wt = class {
|
|
145
145
|
constructor(s) {
|
|
146
146
|
t(this, s);
|
|
147
|
-
|
|
147
|
+
f.add(this);
|
|
148
148
|
/**
|
|
149
149
|
* The component hard-coded strings translations.
|
|
150
150
|
*/
|
|
151
151
|
// eslint-disable-next-line @stencil-community/own-props-must-be-private
|
|
152
|
-
|
|
152
|
+
u.set(this, void 0);
|
|
153
153
|
/**
|
|
154
154
|
* An array that keeps track of the tree items id's (design system data type
|
|
155
155
|
* + item id) along with the content, that will be used to save and retrieve
|
|
@@ -172,11 +172,11 @@ const Wt = class {
|
|
|
172
172
|
I.set(this, void 0);
|
|
173
173
|
C.set(this, void 0);
|
|
174
174
|
j.set(this, (() => {
|
|
175
|
-
this.activeTabs.set("panels",
|
|
176
|
-
this.activeTabs.set("stencils",
|
|
177
|
-
this.activeTabs.set("images",
|
|
178
|
-
this.activeTabs.set("fonts",
|
|
179
|
-
this.activeTabs.set("design_system",
|
|
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);
|
|
180
180
|
}));
|
|
181
181
|
D.set(this, (async () => {
|
|
182
182
|
this.requiresAccessToken = await this.requiresAccessTokenCallback(this.path);
|
|
@@ -200,9 +200,9 @@ const Wt = class {
|
|
|
200
200
|
const a = i.split(bt);
|
|
201
201
|
const o = a[0];
|
|
202
202
|
const n = a[1];
|
|
203
|
-
const
|
|
204
|
-
const
|
|
205
|
-
if (
|
|
203
|
+
const l = o && o !== "parent";
|
|
204
|
+
const r = n === "design_system";
|
|
205
|
+
if (l || r) {
|
|
206
206
|
this.tabsModel = h.get(n);
|
|
207
207
|
this.selectedDesignType = n;
|
|
208
208
|
const t = d(this, P, "f").call(this, i);
|
|
@@ -216,8 +216,8 @@ const Wt = class {
|
|
|
216
216
|
// Item has been queried already. The item content exists already.
|
|
217
217
|
this.selectedDesignType = t.designType;
|
|
218
218
|
this.selectedDesignItem = t.designDataDetail;
|
|
219
|
-
d(this,
|
|
220
|
-
d(this,
|
|
219
|
+
d(this, f, "m", B).call(this, t.designType);
|
|
220
|
+
d(this, f, "m", st).call(this, t.designType);
|
|
221
221
|
}
|
|
222
222
|
this.renderedTabs.clear();
|
|
223
223
|
this.renderedTabs.add(this.activeTabs.get(this.selectedDesignType));
|
|
@@ -255,11 +255,11 @@ const Wt = class {
|
|
|
255
255
|
}
|
|
256
256
|
}
|
|
257
257
|
// const { designSystem, fonts, images, panels, stencils } = result;
|
|
258
|
-
const {fonts: a, panels: o, stencils: n, images:
|
|
258
|
+
const {fonts: a, panels: o, stencils: n, images: l} = i;
|
|
259
259
|
// this.designSystemSelected = designSystem;
|
|
260
260
|
p(this, x, o, "f");
|
|
261
261
|
p(this, M, n, "f");
|
|
262
|
-
p(this, W,
|
|
262
|
+
p(this, W, l, "f");
|
|
263
263
|
p(this, _, a, "f");
|
|
264
264
|
}));
|
|
265
265
|
E.set(this, (() => {
|
|
@@ -294,9 +294,9 @@ const Wt = class {
|
|
|
294
294
|
this.designData = n;
|
|
295
295
|
this.isLoaded = (t = n === null || n === void 0 ? void 0 : n.success) !== null && t !== void 0 ? t : false;
|
|
296
296
|
this.isLoading = false;
|
|
297
|
-
const
|
|
298
|
-
if (
|
|
299
|
-
this.styleValue =
|
|
297
|
+
const l = (e = n.designSystem[0]) === null || e === void 0 ? void 0 : e.name;
|
|
298
|
+
if (l && !this.styleValue) {
|
|
299
|
+
this.styleValue = l;
|
|
300
300
|
}
|
|
301
301
|
// update the settings that were used for the last load
|
|
302
302
|
if (this.reactiveSettings.path && this.pathIsValid) {
|
|
@@ -318,11 +318,11 @@ const Wt = class {
|
|
|
318
318
|
O.set(this, (async (t, e) => {
|
|
319
319
|
let s;
|
|
320
320
|
switch (e) {
|
|
321
|
-
case
|
|
321
|
+
case ft:
|
|
322
322
|
s = this.loadImageCallback;
|
|
323
323
|
break;
|
|
324
324
|
|
|
325
|
-
case
|
|
325
|
+
case ut:
|
|
326
326
|
s = this.loadDesignSystemCallback;
|
|
327
327
|
break;
|
|
328
328
|
|
|
@@ -339,8 +339,8 @@ const Wt = class {
|
|
|
339
339
|
await s(t).then((t => {
|
|
340
340
|
this.selectedDesignType = e;
|
|
341
341
|
this.selectedDesignItem = t;
|
|
342
|
-
d(this,
|
|
343
|
-
d(this,
|
|
342
|
+
d(this, f, "m", B).call(this, e);
|
|
343
|
+
d(this, f, "m", st).call(this, e);
|
|
344
344
|
i = t;
|
|
345
345
|
}));
|
|
346
346
|
return i;
|
|
@@ -412,15 +412,15 @@ const Wt = class {
|
|
|
412
412
|
const i = this.isLoading;
|
|
413
413
|
const a = this.isLoading;
|
|
414
414
|
const n = !this.pathIsValid && this.path.length > 0;
|
|
415
|
-
const
|
|
416
|
-
const
|
|
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
417
|
let h;
|
|
418
418
|
if (this.pathIsValid && this.path === this.lastLoadCallbackSettingValues.path) {
|
|
419
|
-
h = d(this,
|
|
419
|
+
h = d(this, u, "f").header.btnReload;
|
|
420
420
|
} else if (this.pathIsValid) {
|
|
421
|
-
h = d(this,
|
|
421
|
+
h = d(this, u, "f").header.btnLoad;
|
|
422
422
|
} else {
|
|
423
|
-
h = d(this,
|
|
423
|
+
h = d(this, u, "f").header.selectFileButton;
|
|
424
424
|
}
|
|
425
425
|
return e("header", {
|
|
426
426
|
class: {
|
|
@@ -435,7 +435,7 @@ const Wt = class {
|
|
|
435
435
|
}, e("label", {
|
|
436
436
|
// path/url label
|
|
437
437
|
class: "label path-url-label"
|
|
438
|
-
}, d(this,
|
|
438
|
+
}, d(this, u, "f").header.path), e("div", {
|
|
439
439
|
class: "path-url-wrapper buttons-spacer"
|
|
440
440
|
}, e("ch-edit", {
|
|
441
441
|
// path/url/file input
|
|
@@ -452,16 +452,16 @@ const Wt = class {
|
|
|
452
452
|
onInput: d(this, Z, "f"),
|
|
453
453
|
onBlur: this.reactiveSettings.path && d(this, S, "f"),
|
|
454
454
|
disabled: this.isLoading,
|
|
455
|
-
placeholder: `${d(this,
|
|
455
|
+
placeholder: `${d(this, u, "f").header.pathPlaceholder}`,
|
|
456
456
|
startImgSrc: vt,
|
|
457
457
|
ref: t => p(this, C, t, "f")
|
|
458
|
-
}),
|
|
458
|
+
}), l && e("ch-tooltip", {
|
|
459
459
|
class: "tooltip",
|
|
460
460
|
actionElement: d(this, C, "f"),
|
|
461
461
|
blockAlign: o.tooltipSettings.blockAlign,
|
|
462
462
|
inlineAlign: o.tooltipSettings.inlineAlign,
|
|
463
463
|
delay: o.tooltipSettings.delay
|
|
464
|
-
}, d(this,
|
|
464
|
+
}, d(this, u, "f").header.pathErrorMessage, " ", d(this, g, "f")), e("input", {
|
|
465
465
|
hidden: true,
|
|
466
466
|
type: "file",
|
|
467
467
|
accept: d(this, g, "f"),
|
|
@@ -470,8 +470,8 @@ const Wt = class {
|
|
|
470
470
|
}), e("div", {
|
|
471
471
|
class: "buttons-spacer"
|
|
472
472
|
}, e("button", {
|
|
473
|
-
"aria-label": d(this,
|
|
474
|
-
title: d(this,
|
|
473
|
+
"aria-label": d(this, u, "f").header.removeFileSelection,
|
|
474
|
+
title: d(this, u, "f").header.removeFileSelection,
|
|
475
475
|
id: "reset-all-button",
|
|
476
476
|
class: "button-tertiary button-icon-only",
|
|
477
477
|
part: "reset-all-button",
|
|
@@ -496,7 +496,7 @@ const Wt = class {
|
|
|
496
496
|
}, h))), this.requiresAccessToken && [ e("label", {
|
|
497
497
|
// access token label
|
|
498
498
|
class: "label access-token-label"
|
|
499
|
-
}, d(this,
|
|
499
|
+
}, d(this, u, "f").header.accessToken), e("div", null, e("ch-edit", {
|
|
500
500
|
class: {
|
|
501
501
|
input: true,
|
|
502
502
|
"access-token": true,
|
|
@@ -504,7 +504,7 @@ const Wt = class {
|
|
|
504
504
|
},
|
|
505
505
|
ref: t => p(this, k, t, "f"),
|
|
506
506
|
value: this.accessToken,
|
|
507
|
-
placeholder: d(this,
|
|
507
|
+
placeholder: d(this, u, "f").header.accessTokenPlaceholder,
|
|
508
508
|
onFocus: d(this, U, "f"),
|
|
509
509
|
onBlur: d(this, X, "f"),
|
|
510
510
|
part: "access-token",
|
|
@@ -516,10 +516,10 @@ const Wt = class {
|
|
|
516
516
|
blockAlign: o.tooltipSettings.blockAlign,
|
|
517
517
|
inlineAlign: o.tooltipSettings.inlineAlign,
|
|
518
518
|
delay: o.tooltipSettings.delay
|
|
519
|
-
}, d(this,
|
|
519
|
+
}, d(this, u, "f").header.accessTokenErrorMessage)) ], e("label", {
|
|
520
520
|
// style label
|
|
521
521
|
class: "label style-label"
|
|
522
|
-
}, d(this,
|
|
522
|
+
}, d(this, u, "f").header.style), e("ch-combo-box-render", {
|
|
523
523
|
// style combo box
|
|
524
524
|
suggest: true,
|
|
525
525
|
suggestOptions: {
|
|
@@ -534,7 +534,7 @@ const Wt = class {
|
|
|
534
534
|
}), e("label", {
|
|
535
535
|
// module label
|
|
536
536
|
class: "label module-label"
|
|
537
|
-
}, d(this,
|
|
537
|
+
}, d(this, u, "f").header.module), e("gx-ide-entity-selector", {
|
|
538
538
|
// module entity selector
|
|
539
539
|
labelPosition: "none",
|
|
540
540
|
value: this.defaultModule,
|
|
@@ -548,7 +548,7 @@ const Wt = class {
|
|
|
548
548
|
// import as web panels
|
|
549
549
|
class: "checkboxes-options field-group"
|
|
550
550
|
}, e("ch-checkbox", {
|
|
551
|
-
caption: d(this,
|
|
551
|
+
caption: d(this, u, "f").header.importAs,
|
|
552
552
|
checkedValue: gt,
|
|
553
553
|
class: "checkbox import-as-web-panels",
|
|
554
554
|
ref: t => p(this, w, t, "f"),
|
|
@@ -563,11 +563,11 @@ const Wt = class {
|
|
|
563
563
|
}
|
|
564
564
|
}, e("ch-checkbox", {
|
|
565
565
|
// fit images
|
|
566
|
-
caption: d(this,
|
|
566
|
+
caption: d(this, u, "f").header.fitImages,
|
|
567
567
|
checkedValue: gt,
|
|
568
568
|
class: "checkbox",
|
|
569
569
|
part: "fit-images-checkbox",
|
|
570
|
-
disabled:
|
|
570
|
+
disabled: r,
|
|
571
571
|
onInput: d(this, Y, "f")
|
|
572
572
|
}))));
|
|
573
573
|
}));
|
|
@@ -599,13 +599,13 @@ const Wt = class {
|
|
|
599
599
|
class: "empty-state scrollable",
|
|
600
600
|
stateIconSrc: wt,
|
|
601
601
|
isAnimated: d(this, b, "f"),
|
|
602
|
-
stateTitle: d(this,
|
|
602
|
+
stateTitle: d(this, u, "f").messages.noDesignSelected,
|
|
603
603
|
key: "no-objects-empty-state"
|
|
604
604
|
}, e("button", {
|
|
605
605
|
// begin by selecting a file
|
|
606
606
|
class: "button-tertiary empty-state-button",
|
|
607
607
|
onClick: d(this, E, "f")
|
|
608
|
-
}, d(this,
|
|
608
|
+
}, d(this, u, "f").messages.selectDesign));
|
|
609
609
|
}
|
|
610
610
|
}));
|
|
611
611
|
at.set(this, (() => e("ch-tree-view-render", {
|
|
@@ -639,7 +639,7 @@ const Wt = class {
|
|
|
639
639
|
onClick: d(this, N, "f"),
|
|
640
640
|
part: "button button--cancel",
|
|
641
641
|
slot: "footer-end"
|
|
642
|
-
}, d(this,
|
|
642
|
+
}, d(this, u, "f").footer.btnCancel), e("button", {
|
|
643
643
|
// button ok
|
|
644
644
|
id: "button-ok",
|
|
645
645
|
class: "button-primary button-ok",
|
|
@@ -648,7 +648,7 @@ const Wt = class {
|
|
|
648
648
|
part: "button button--ok",
|
|
649
649
|
disabled: s,
|
|
650
650
|
slot: "footer-end"
|
|
651
|
-
}, d(this,
|
|
651
|
+
}, d(this, u, "f").footer.btnOk)));
|
|
652
652
|
}));
|
|
653
653
|
nt.set(this, (() => {
|
|
654
654
|
var t, s;
|
|
@@ -661,13 +661,13 @@ const Wt = class {
|
|
|
661
661
|
alt: "Preview"
|
|
662
662
|
})) : e("gx-ide-empty-state", {
|
|
663
663
|
class: "panel-tab__empty-state",
|
|
664
|
-
stateTitle: d(this,
|
|
664
|
+
stateTitle: d(this, u, "f").messages.noPanelPreviewAvailable,
|
|
665
665
|
stateIconSrc: d(this, w, "f").value === gt ? yt : xt
|
|
666
666
|
});
|
|
667
667
|
}
|
|
668
668
|
return null;
|
|
669
669
|
}));
|
|
670
|
-
|
|
670
|
+
lt.set(this, (() => {
|
|
671
671
|
const t = (this.selectedDesignType === dt || this.selectedDesignType === pt) && this.detailTreeModel.length > 0;
|
|
672
672
|
return e("div", {
|
|
673
673
|
class: {
|
|
@@ -684,7 +684,7 @@ const Wt = class {
|
|
|
684
684
|
dropDisabled: true
|
|
685
685
|
}) : null);
|
|
686
686
|
}));
|
|
687
|
-
|
|
687
|
+
rt.set(this, (() => e("div", {
|
|
688
688
|
part: "data-panel-composition-preview",
|
|
689
689
|
class: "data-preview",
|
|
690
690
|
style: {
|
|
@@ -693,7 +693,7 @@ const Wt = class {
|
|
|
693
693
|
}, e("img", {
|
|
694
694
|
src: this.selectedDesignItem ? this.selectedDesignItem : undefined,
|
|
695
695
|
alt: "Preview",
|
|
696
|
-
class: this.selectedDesignType ===
|
|
696
|
+
class: this.selectedDesignType === ft ? "checker-board" : undefined
|
|
697
697
|
}))));
|
|
698
698
|
ht.set(this, (t => {
|
|
699
699
|
this.renderedTabs.clear();
|
|
@@ -715,43 +715,43 @@ const Wt = class {
|
|
|
715
715
|
contain: "size",
|
|
716
716
|
onSelectedItemChange: d(this, ht, "f")
|
|
717
717
|
}, e("div", {
|
|
718
|
-
slot:
|
|
718
|
+
slot: l.tokens.slot,
|
|
719
719
|
class: "spacing-body",
|
|
720
720
|
style: {
|
|
721
|
-
display: this.renderedTabs.has(
|
|
721
|
+
display: this.renderedTabs.has(l.tokens.id) ? "" : "none"
|
|
722
722
|
}
|
|
723
723
|
}, e("slot", {
|
|
724
|
-
name:
|
|
724
|
+
name: l.tokens.slot
|
|
725
725
|
})), e("div", {
|
|
726
|
-
slot:
|
|
726
|
+
slot: l.styles.slot,
|
|
727
727
|
class: "spacing-body",
|
|
728
728
|
style: {
|
|
729
|
-
display: this.renderedTabs.has(
|
|
729
|
+
display: this.renderedTabs.has(l.styles.id) ? "" : "none"
|
|
730
730
|
}
|
|
731
731
|
}, e("slot", {
|
|
732
|
-
name:
|
|
732
|
+
name: l.styles.slot
|
|
733
733
|
})), e("div", {
|
|
734
734
|
class: "composition-tab-slot scrollable",
|
|
735
|
-
slot:
|
|
735
|
+
slot: l.composition.slot,
|
|
736
736
|
style: {
|
|
737
|
-
display: this.renderedTabs.has(
|
|
737
|
+
display: this.renderedTabs.has(l.composition.id) ? "" : "none"
|
|
738
738
|
}
|
|
739
|
-
}, this.selectedDesignType ===
|
|
740
|
-
slot:
|
|
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,
|
|
741
741
|
class: "spacing-body",
|
|
742
742
|
style: {
|
|
743
|
-
display: this.renderedTabs.has(
|
|
743
|
+
display: this.renderedTabs.has(l.layout.id) ? "" : "none"
|
|
744
744
|
}
|
|
745
745
|
}, e("slot", {
|
|
746
|
-
name:
|
|
746
|
+
name: l.layout.slot
|
|
747
747
|
})), e("div", {
|
|
748
|
-
slot:
|
|
748
|
+
slot: l.code.slot,
|
|
749
749
|
class: "spacing-body",
|
|
750
750
|
style: {
|
|
751
|
-
display: this.renderedTabs.has(
|
|
751
|
+
display: this.renderedTabs.has(l.code.id) ? "" : "none"
|
|
752
752
|
}
|
|
753
753
|
}, e("slot", {
|
|
754
|
-
name:
|
|
754
|
+
name: l.code.slot
|
|
755
755
|
})))));
|
|
756
756
|
this.reRenderCounter = 0;
|
|
757
757
|
this.stylesAsComboBoxModel = undefined;
|
|
@@ -812,23 +812,27 @@ const Wt = class {
|
|
|
812
812
|
}
|
|
813
813
|
designDataChanged(t) {
|
|
814
814
|
if (t) {
|
|
815
|
+
// panels
|
|
815
816
|
const t = d(this, J, "f").call(this, this.designData.panels);
|
|
816
|
-
const e = d(this, w, "f").value === gt
|
|
817
|
+
const e = d(this, w, "f").value === gt;
|
|
818
|
+
const s = e ? "objects/webpanel" : "objects/panel-for-sd";
|
|
819
|
+
// images
|
|
820
|
+
const i = "objects/image";
|
|
817
821
|
this.designDataTreeDataModel = [ {
|
|
818
822
|
order: 0,
|
|
819
823
|
id: `parent${bt}${dt}`,
|
|
820
824
|
leaf: false,
|
|
821
|
-
caption: d(this, f, "f").tree.panels,
|
|
822
|
-
startImgSrc:
|
|
825
|
+
caption: e ? d(this, u, "f").tree.webPanels : d(this, u, "f").tree.panels,
|
|
826
|
+
startImgSrc: s,
|
|
823
827
|
checkbox: true,
|
|
824
828
|
checked: true,
|
|
825
829
|
expanded: true,
|
|
826
|
-
items: d(this,
|
|
830
|
+
items: d(this, f, "m", $).call(this, this.designData.panels, dt, s, t)
|
|
827
831
|
}, {
|
|
828
832
|
order: 1,
|
|
829
833
|
id: `parent${bt}${pt}`,
|
|
830
834
|
leaf: false,
|
|
831
|
-
caption: d(this,
|
|
835
|
+
caption: d(this, u, "f").tree.stencils,
|
|
832
836
|
startImgSrc: "objects/stencil",
|
|
833
837
|
checkbox: true,
|
|
834
838
|
checked: true,
|
|
@@ -844,26 +848,19 @@ const Wt = class {
|
|
|
844
848
|
})))
|
|
845
849
|
}, {
|
|
846
850
|
order: 2,
|
|
847
|
-
id: `parent${bt}${
|
|
851
|
+
id: `parent${bt}${ft}`,
|
|
848
852
|
leaf: false,
|
|
849
|
-
caption: d(this,
|
|
850
|
-
startImgSrc:
|
|
853
|
+
caption: d(this, u, "f").tree.images,
|
|
854
|
+
startImgSrc: i,
|
|
851
855
|
checkbox: true,
|
|
852
856
|
checked: true,
|
|
853
857
|
expanded: true,
|
|
854
|
-
items: this.designData.images
|
|
855
|
-
id: `${t.id}${bt}${ut}`,
|
|
856
|
-
leaf: true,
|
|
857
|
-
caption: t.name,
|
|
858
|
-
startImgSrc: "objects/image",
|
|
859
|
-
checkbox: true,
|
|
860
|
-
checked: true
|
|
861
|
-
})))
|
|
858
|
+
items: d(this, f, "m", $).call(this, this.designData.images, ft, i)
|
|
862
859
|
}, {
|
|
863
860
|
order: 3,
|
|
864
861
|
id: `parent${bt}${mt}`,
|
|
865
862
|
leaf: false,
|
|
866
|
-
caption: d(this,
|
|
863
|
+
caption: d(this, u, "f").tree.fonts,
|
|
867
864
|
startImgSrc: "controls/font",
|
|
868
865
|
checkbox: true,
|
|
869
866
|
checked: true,
|
|
@@ -878,9 +875,9 @@ const Wt = class {
|
|
|
878
875
|
})))
|
|
879
876
|
}, {
|
|
880
877
|
order: 4,
|
|
881
|
-
id: `${this.designData.designSystem.length > 0 ? this.designData.designSystem[0].id : "parent"}${bt}${
|
|
878
|
+
id: `${this.designData.designSystem.length > 0 ? this.designData.designSystem[0].id : "parent"}${bt}${ut}`,
|
|
882
879
|
leaf: true,
|
|
883
|
-
caption: d(this,
|
|
880
|
+
caption: d(this, u, "f").tree.designSystem,
|
|
884
881
|
startImgSrc: "objects/dso",
|
|
885
882
|
checkbox: true,
|
|
886
883
|
checked: true
|
|
@@ -906,7 +903,7 @@ const Wt = class {
|
|
|
906
903
|
}
|
|
907
904
|
async componentWillLoad() {
|
|
908
905
|
var t, e;
|
|
909
|
-
p(this,
|
|
906
|
+
p(this, u, await n.getComponentStrings(this.el), "f");
|
|
910
907
|
p(this, g, this.extensions.map((t => `.${t}`)).join(", "), "f");
|
|
911
908
|
this.stylesChanged(this.styles);
|
|
912
909
|
d(this, j, "f").call(this);
|
|
@@ -947,7 +944,7 @@ const Wt = class {
|
|
|
947
944
|
}
|
|
948
945
|
};
|
|
949
946
|
|
|
950
|
-
|
|
947
|
+
u = new WeakMap, m = new WeakMap, b = new WeakMap, g = new WeakMap, k = new WeakMap,
|
|
951
948
|
w = new WeakMap, v = new WeakMap, y = new WeakMap, x = new WeakMap, M = new WeakMap,
|
|
952
949
|
W = new WeakMap, _ = new WeakMap, I = new WeakMap, C = new WeakMap, j = new WeakMap,
|
|
953
950
|
D = new WeakMap, S = new WeakMap, z = new WeakMap, P = new WeakMap, q = new WeakMap,
|
|
@@ -955,8 +952,8 @@ A = new WeakMap, E = new WeakMap, F = new WeakMap, V = new WeakMap, G = new Weak
|
|
|
955
952
|
L = new WeakMap, O = new WeakMap, H = new WeakMap, N = new WeakMap, Y = new WeakMap,
|
|
956
953
|
J = new WeakMap, K = new WeakMap, Q = new WeakMap, R = new WeakMap, U = new WeakMap,
|
|
957
954
|
X = new WeakMap, Z = new WeakMap, tt = new WeakMap, et = new WeakMap, it = new WeakMap,
|
|
958
|
-
at = new WeakMap, ot = new WeakMap, nt = new WeakMap,
|
|
959
|
-
ht = new WeakMap, ct = 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) {
|
|
960
957
|
return t.map(((t, a) => {
|
|
961
958
|
var o;
|
|
962
959
|
const n = ((o = t.variants) === null || o === void 0 ? void 0 : o.length) > 0;
|
|
@@ -969,7 +966,7 @@ ht = new WeakMap, ct = new WeakMap, u = new WeakSet, $ = function _GxIdeImportFr
|
|
|
969
966
|
checked: true,
|
|
970
967
|
expanded: n,
|
|
971
968
|
selected: i === a,
|
|
972
|
-
items: n ? d(this,
|
|
969
|
+
items: n ? d(this, f, "m", _GxIdeImportFromDesign_recursiveDesignTreeItems).call(this, t.variants, e, s) : []
|
|
973
970
|
};
|
|
974
971
|
}));
|
|
975
972
|
}, T = function _GxIdeImportFromDesign_loadTreeItemCompositionModel(t) {
|
|
@@ -985,7 +982,7 @@ ht = new WeakMap, ct = new WeakMap, u = new WeakSet, $ = function _GxIdeImportFr
|
|
|
985
982
|
};
|
|
986
983
|
if (s.controls) {
|
|
987
984
|
t = Object.assign(Object.assign({}, t), {
|
|
988
|
-
items: d(this,
|
|
985
|
+
items: d(this, f, "m", _GxIdeImportFromDesign_loadTreeItemCompositionModel).call(this, s.controls)
|
|
989
986
|
});
|
|
990
987
|
}
|
|
991
988
|
e.push(t);
|
|
@@ -995,20 +992,20 @@ ht = new WeakMap, ct = new WeakMap, u = new WeakSet, $ = function _GxIdeImportFr
|
|
|
995
992
|
switch (t) {
|
|
996
993
|
case dt:
|
|
997
994
|
case pt:
|
|
998
|
-
this.textEditorFactoryCallback("code",
|
|
999
|
-
this.textEditorFactoryCallback("html",
|
|
995
|
+
this.textEditorFactoryCallback("code", l.code.slot, this.selectedDesignItem.code);
|
|
996
|
+
this.textEditorFactoryCallback("html", l.layout.slot, this.selectedDesignItem.layout);
|
|
1000
997
|
break;
|
|
1001
998
|
|
|
1002
|
-
case
|
|
1003
|
-
this.textEditorFactoryCallback("tokens",
|
|
1004
|
-
this.textEditorFactoryCallback("styles",
|
|
999
|
+
case ut:
|
|
1000
|
+
this.textEditorFactoryCallback("tokens", l.tokens.slot, this.selectedDesignItem.tokens);
|
|
1001
|
+
this.textEditorFactoryCallback("styles", l.styles.slot, this.selectedDesignItem.styles);
|
|
1005
1002
|
break;
|
|
1006
1003
|
}
|
|
1007
1004
|
}, st = function _GxIdeImportFromDesign_renderDetailDataTree(t) {
|
|
1008
1005
|
switch (t) {
|
|
1009
1006
|
case dt:
|
|
1010
1007
|
case pt:
|
|
1011
|
-
this.detailTreeModel = d(this,
|
|
1008
|
+
this.detailTreeModel = d(this, f, "m", T).call(this, this.selectedDesignItem.composition.controls);
|
|
1012
1009
|
break;
|
|
1013
1010
|
}
|
|
1014
1011
|
};
|
|
@@ -1016,4 +1013,4 @@ ht = new WeakMap, ct = new WeakMap, u = new WeakSet, $ = function _GxIdeImportFr
|
|
|
1016
1013
|
Wt.style = c;
|
|
1017
1014
|
|
|
1018
1015
|
export { Wt as gx_ide_design_import };
|
|
1019
|
-
//# sourceMappingURL=p-
|
|
1016
|
+
//# sourceMappingURL=p-5fc133b2.entry.js.map
|