@genexus/genexus-ide-ui 1.0.34 → 1.0.36
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/MERCURY_ASSETS-b23e31e2.js +9 -0
- package/dist/cjs/MERCURY_ASSETS-b23e31e2.js.map +1 -0
- package/dist/cjs/genexus-ide-ui.cjs.js +1 -1
- package/dist/cjs/gx-ide-create-kb-from-server.cjs.entry.js +1 -1
- package/dist/cjs/gx-ide-current-user-info.cjs.entry.js +8 -8
- package/dist/cjs/gx-ide-current-user-info.cjs.entry.js.map +1 -1
- package/dist/cjs/gx-ide-dashboard-home.cjs.entry.js +1 -1
- package/dist/cjs/gx-ide-data-selector.cjs.entry.js +1 -1
- package/dist/cjs/gx-ide-design-import.cjs.entry.js +48 -35
- package/dist/cjs/gx-ide-design-import.cjs.entry.js.map +1 -1
- package/dist/cjs/gx-ide-entity-selector.cjs.entry.js +1 -1
- package/dist/cjs/gx-ide-kb-manager-export.cjs.entry.js +1 -1
- package/dist/cjs/gx-ide-kb-manager-import.cjs.entry.js +1 -1
- package/dist/cjs/gx-ide-manage-module-references-v2.cjs.entry.js +1 -1
- package/dist/cjs/gx-ide-manage-module-references.cjs.entry.js +1 -1
- package/dist/cjs/gx-ide-new-kb.cjs.entry.js +1 -1
- package/dist/cjs/gx-ide-object-selector.cjs.entry.js +1 -1
- package/dist/cjs/gx-ide-share-kb.cjs.entry.js +1 -1
- package/dist/cjs/gx-ide-sign-in-team.cjs.entry.js +8 -7
- package/dist/cjs/gx-ide-sign-in-team.cjs.entry.js.map +1 -1
- package/dist/cjs/gx-ide-start-page.cjs.entry.js +1 -1
- package/dist/cjs/gx-ide-welcome-page.cjs.entry.js +15 -10
- package/dist/cjs/gx-ide-welcome-page.cjs.entry.js.map +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/current-user-info/current-user-info.css +7 -5
- package/dist/collection/components/current-user-info/current-user-info.js +6 -6
- package/dist/collection/components/current-user-info/current-user-info.js.map +1 -1
- package/dist/collection/components/current-user-info/gx-ide-assets/current-user-info/langs/current-user-info.lang.en.json +1 -1
- package/dist/collection/components/current-user-info/gx-ide-assets/current-user-info/langs/current-user-info.lang.ja.json +1 -1
- package/dist/collection/components/current-user-info/gx-ide-assets/current-user-info/langs/current-user-info.lang.zh.json +1 -1
- package/dist/collection/components/design-import/design-import.css +8 -0
- package/dist/collection/components/design-import/design-import.js +46 -33
- 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 +2 -1
- package/dist/collection/components/design-import/gx-ide-assets/design-import/langs/design-import.lang.ja.json +2 -1
- package/dist/collection/components/design-import/gx-ide-assets/design-import/langs/design-import.lang.zh.json +2 -1
- package/dist/collection/components/sign-in-team/sign-in-team.js +9 -6
- package/dist/collection/components/sign-in-team/sign-in-team.js.map +1 -1
- package/dist/collection/components/welcome-page/welcome-page.css +1 -1
- package/dist/collection/components/welcome-page/welcome-page.js +13 -8
- package/dist/collection/components/welcome-page/welcome-page.js.map +1 -1
- package/dist/components/MERCURY_ASSETS.js +1 -1
- package/dist/components/MERCURY_ASSETS.js.map +1 -1
- package/dist/components/gx-ide-current-user-info.js +7 -7
- package/dist/components/gx-ide-current-user-info.js.map +1 -1
- package/dist/components/gx-ide-design-import.js +47 -34
- package/dist/components/gx-ide-design-import.js.map +1 -1
- package/dist/components/gx-ide-sign-in-team.js +10 -8
- package/dist/components/gx-ide-sign-in-team.js.map +1 -1
- package/dist/components/gx-ide-welcome-page.js +14 -9
- package/dist/components/gx-ide-welcome-page.js.map +1 -1
- package/dist/esm/MERCURY_ASSETS-7a7c1795.js +7 -0
- package/dist/esm/MERCURY_ASSETS-7a7c1795.js.map +1 -0
- package/dist/esm/genexus-ide-ui.js +1 -1
- package/dist/esm/gx-ide-create-kb-from-server.entry.js +1 -1
- package/dist/esm/gx-ide-current-user-info.entry.js +8 -8
- package/dist/esm/gx-ide-current-user-info.entry.js.map +1 -1
- package/dist/esm/gx-ide-dashboard-home.entry.js +1 -1
- package/dist/esm/gx-ide-data-selector.entry.js +1 -1
- package/dist/esm/gx-ide-design-import.entry.js +48 -35
- package/dist/esm/gx-ide-design-import.entry.js.map +1 -1
- package/dist/esm/gx-ide-entity-selector.entry.js +1 -1
- package/dist/esm/gx-ide-kb-manager-export.entry.js +1 -1
- package/dist/esm/gx-ide-kb-manager-import.entry.js +1 -1
- package/dist/esm/gx-ide-manage-module-references-v2.entry.js +1 -1
- package/dist/esm/gx-ide-manage-module-references.entry.js +1 -1
- package/dist/esm/gx-ide-new-kb.entry.js +1 -1
- package/dist/esm/gx-ide-object-selector.entry.js +1 -1
- package/dist/esm/gx-ide-share-kb.entry.js +1 -1
- package/dist/esm/gx-ide-sign-in-team.entry.js +8 -7
- package/dist/esm/gx-ide-sign-in-team.entry.js.map +1 -1
- package/dist/esm/gx-ide-start-page.entry.js +1 -1
- package/dist/esm/gx-ide-welcome-page.entry.js +15 -10
- package/dist/esm/gx-ide-welcome-page.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/current-user-info/langs/current-user-info.lang.en.json +1 -1
- package/dist/genexus-ide-ui/gx-ide-assets/current-user-info/langs/current-user-info.lang.ja.json +1 -1
- package/dist/genexus-ide-ui/gx-ide-assets/current-user-info/langs/current-user-info.lang.zh.json +1 -1
- package/dist/genexus-ide-ui/gx-ide-assets/design-import/langs/design-import.lang.en.json +2 -1
- package/dist/genexus-ide-ui/gx-ide-assets/design-import/langs/design-import.lang.ja.json +2 -1
- package/dist/genexus-ide-ui/gx-ide-assets/design-import/langs/design-import.lang.zh.json +2 -1
- package/dist/genexus-ide-ui/{p-70a8edd9.entry.js → p-05775d0c.entry.js} +2 -2
- package/dist/genexus-ide-ui/{p-fe063c9e.entry.js → p-0b33d2f9.entry.js} +42 -41
- package/dist/genexus-ide-ui/p-0b33d2f9.entry.js.map +1 -0
- package/dist/genexus-ide-ui/{p-ecd748ba.entry.js → p-0f196406.entry.js} +2 -2
- package/dist/genexus-ide-ui/{p-a1e8b380.entry.js → p-32bd11fa.entry.js} +247 -234
- package/dist/genexus-ide-ui/p-32bd11fa.entry.js.map +1 -0
- package/dist/genexus-ide-ui/{p-390498e4.entry.js → p-764540b3.entry.js} +2 -2
- package/dist/genexus-ide-ui/{p-33a1c48f.entry.js → p-7ba9fb6d.entry.js} +2 -2
- package/dist/genexus-ide-ui/{p-b42dfccc.entry.js → p-7cde7e4f.entry.js} +26 -23
- package/dist/genexus-ide-ui/p-7cde7e4f.entry.js.map +1 -0
- package/dist/genexus-ide-ui/{p-6f3f4f54.entry.js → p-88e16a83.entry.js} +2 -2
- package/dist/genexus-ide-ui/{p-e774109a.entry.js → p-993819d4.entry.js} +2 -2
- package/dist/genexus-ide-ui/{p-ad521974.entry.js → p-a8e43d8e.entry.js} +2 -2
- package/dist/genexus-ide-ui/{p-7d4c5a43.js → p-b81d21d5.js} +8050 -966
- package/dist/genexus-ide-ui/p-b81d21d5.js.map +1 -0
- package/dist/genexus-ide-ui/{p-a0724750.entry.js → p-bd5316a2.entry.js} +11 -11
- package/dist/genexus-ide-ui/{p-fa69428e.entry.js → p-bf1682ff.entry.js} +20 -20
- package/dist/genexus-ide-ui/{p-31511545.entry.js → p-cadec045.entry.js} +2 -2
- package/dist/genexus-ide-ui/{p-edd6ebef.entry.js → p-dd890eed.entry.js} +15 -15
- package/dist/genexus-ide-ui/p-dd890eed.entry.js.map +1 -0
- package/dist/genexus-ide-ui/{p-cc0fbef2.entry.js → p-de6112f9.entry.js} +2 -2
- package/dist/genexus-ide-ui/{p-be0c10de.entry.js → p-f36f9a6d.entry.js} +2 -2
- package/dist/types/components/sign-in-team/sign-in-team.d.ts +1 -0
- package/package.json +3 -3
- package/dist/cjs/MERCURY_ASSETS-56ba4d5e.js +0 -9
- package/dist/cjs/MERCURY_ASSETS-56ba4d5e.js.map +0 -1
- package/dist/esm/MERCURY_ASSETS-827056e0.js +0 -7
- package/dist/esm/MERCURY_ASSETS-827056e0.js.map +0 -1
- package/dist/genexus-ide-ui/p-7d4c5a43.js.map +0 -1
- package/dist/genexus-ide-ui/p-a1e8b380.entry.js.map +0 -1
- package/dist/genexus-ide-ui/p-b42dfccc.entry.js.map +0 -1
- package/dist/genexus-ide-ui/p-edd6ebef.entry.js.map +0 -1
- package/dist/genexus-ide-ui/p-fe063c9e.entry.js.map +0 -1
- /package/dist/genexus-ide-ui/{p-70a8edd9.entry.js.map → p-05775d0c.entry.js.map} +0 -0
- /package/dist/genexus-ide-ui/{p-ecd748ba.entry.js.map → p-0f196406.entry.js.map} +0 -0
- /package/dist/genexus-ide-ui/{p-390498e4.entry.js.map → p-764540b3.entry.js.map} +0 -0
- /package/dist/genexus-ide-ui/{p-33a1c48f.entry.js.map → p-7ba9fb6d.entry.js.map} +0 -0
- /package/dist/genexus-ide-ui/{p-6f3f4f54.entry.js.map → p-88e16a83.entry.js.map} +0 -0
- /package/dist/genexus-ide-ui/{p-e774109a.entry.js.map → p-993819d4.entry.js.map} +0 -0
- /package/dist/genexus-ide-ui/{p-ad521974.entry.js.map → p-a8e43d8e.entry.js.map} +0 -0
- /package/dist/genexus-ide-ui/{p-a0724750.entry.js.map → p-bd5316a2.entry.js.map} +0 -0
- /package/dist/genexus-ide-ui/{p-fa69428e.entry.js.map → p-bf1682ff.entry.js.map} +0 -0
- /package/dist/genexus-ide-ui/{p-31511545.entry.js.map → p-cadec045.entry.js.map} +0 -0
- /package/dist/genexus-ide-ui/{p-cc0fbef2.entry.js.map → p-de6112f9.entry.js.map} +0 -0
- /package/dist/genexus-ide-ui/{p-be0c10de.entry.js.map → p-f36f9a6d.entry.js.map} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as t, h as e, H as s, g as i } from "./p-49712340.js";
|
|
2
2
|
|
|
3
|
-
import { g as a } from "./p-
|
|
3
|
+
import { g as a } from "./p-b81d21d5.js";
|
|
4
4
|
|
|
5
5
|
import { c as o } from "./p-78b90603.js";
|
|
6
6
|
|
|
@@ -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 r = {
|
|
15
15
|
layout: {
|
|
16
16
|
id: "layout",
|
|
17
17
|
caption: "Layout",
|
|
@@ -39,47 +39,47 @@ const l = {
|
|
|
39
39
|
}
|
|
40
40
|
};
|
|
41
41
|
|
|
42
|
-
const
|
|
42
|
+
const l = {
|
|
43
43
|
panels: [ {
|
|
44
|
-
id:
|
|
45
|
-
name:
|
|
44
|
+
id: r.composition.id,
|
|
45
|
+
name: r.composition.caption
|
|
46
46
|
}, {
|
|
47
|
-
id:
|
|
48
|
-
name:
|
|
47
|
+
id: r.layout.id,
|
|
48
|
+
name: r.layout.caption
|
|
49
49
|
}, {
|
|
50
|
-
id:
|
|
51
|
-
name:
|
|
50
|
+
id: r.code.id,
|
|
51
|
+
name: r.code.caption
|
|
52
52
|
} ],
|
|
53
53
|
stencils: [ {
|
|
54
|
-
id:
|
|
55
|
-
name:
|
|
54
|
+
id: r.composition.id,
|
|
55
|
+
name: r.composition.caption
|
|
56
56
|
}, {
|
|
57
|
-
id:
|
|
58
|
-
name:
|
|
57
|
+
id: r.layout.id,
|
|
58
|
+
name: r.layout.caption
|
|
59
59
|
}, {
|
|
60
|
-
id:
|
|
61
|
-
name:
|
|
60
|
+
id: r.code.id,
|
|
61
|
+
name: r.code.caption
|
|
62
62
|
} ],
|
|
63
63
|
images: [ {
|
|
64
|
-
id:
|
|
65
|
-
name:
|
|
64
|
+
id: r.composition.id,
|
|
65
|
+
name: r.composition.caption
|
|
66
66
|
} ],
|
|
67
67
|
fonts: [ {
|
|
68
|
-
id:
|
|
69
|
-
name:
|
|
68
|
+
id: r.composition.id,
|
|
69
|
+
name: r.composition.caption
|
|
70
70
|
} ],
|
|
71
71
|
designSystem: [ {
|
|
72
|
-
id:
|
|
73
|
-
name:
|
|
72
|
+
id: r.tokens.id,
|
|
73
|
+
name: r.tokens.caption
|
|
74
74
|
}, {
|
|
75
|
-
id:
|
|
76
|
-
name:
|
|
75
|
+
id: r.styles.id,
|
|
76
|
+
name: r.styles.caption
|
|
77
77
|
} ]
|
|
78
78
|
};
|
|
79
79
|
|
|
80
|
-
const h = new Map([ [ "panels",
|
|
80
|
+
const h = new Map([ [ "panels", l.panels ], [ "stencils", l.stencils ], [ "images", l.images ], [ "design_system", l.designSystem ], [ "fonts", l.fonts ] ]);
|
|
81
81
|
|
|
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}.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)}';
|
|
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
|
|
|
84
84
|
var d = undefined && undefined.__classPrivateFieldGet || function(t, e, s, i) {
|
|
85
85
|
if (s === "a" && !i) throw new TypeError("Private accessor was defined without a getter");
|
|
@@ -94,43 +94,54 @@ var p = undefined && undefined.__classPrivateFieldSet || function(t, e, s, i, a)
|
|
|
94
94
|
return i === "a" ? a.call(t, s) : a ? a.value = s : e.set(t, s), s;
|
|
95
95
|
};
|
|
96
96
|
|
|
97
|
-
var u, f, m, b, g, k, w, v, y, x, M, W, I,
|
|
97
|
+
var u, f, 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, rt, lt, ht, ct;
|
|
98
98
|
|
|
99
|
-
const
|
|
99
|
+
const dt = "panels";
|
|
100
100
|
|
|
101
|
-
const
|
|
101
|
+
const pt = "stencils";
|
|
102
102
|
|
|
103
|
-
const
|
|
103
|
+
const ut = "images";
|
|
104
104
|
|
|
105
|
-
const
|
|
105
|
+
const ft = "design_system";
|
|
106
106
|
|
|
107
|
-
const
|
|
107
|
+
const mt = "fonts";
|
|
108
108
|
|
|
109
|
-
const
|
|
109
|
+
const bt = "@@@";
|
|
110
110
|
|
|
111
111
|
// ch-checkbox
|
|
112
|
-
const
|
|
112
|
+
const gt = "on";
|
|
113
113
|
|
|
114
114
|
// Icons
|
|
115
|
-
const
|
|
115
|
+
const kt = a({
|
|
116
116
|
category: "menus",
|
|
117
117
|
name: "delete",
|
|
118
118
|
colorType: "primary"
|
|
119
119
|
});
|
|
120
120
|
|
|
121
|
-
const
|
|
121
|
+
const wt = a({
|
|
122
122
|
category: "objects",
|
|
123
123
|
name: "design"
|
|
124
124
|
});
|
|
125
125
|
|
|
126
|
-
const
|
|
126
|
+
const vt = a({
|
|
127
127
|
category: "controls",
|
|
128
128
|
name: "file-upload"
|
|
129
129
|
});
|
|
130
130
|
|
|
131
|
-
|
|
131
|
+
// For empty states
|
|
132
|
+
const yt = a({
|
|
133
|
+
category: "objects",
|
|
134
|
+
name: "webpanel"
|
|
135
|
+
});
|
|
136
|
+
|
|
137
|
+
const xt = a({
|
|
138
|
+
category: "objects",
|
|
139
|
+
name: "panel-for-sd"
|
|
140
|
+
});
|
|
132
141
|
|
|
133
|
-
const
|
|
142
|
+
const Mt = [ "resets/box-sizing", "utils/form", "utils/layout", "utils/typography", "utils/spacing", "components/button", "components/checkbox", "components/edit", "components/tree-view", "components/combo-box", "components/tab", "components/tooltip", "chameleon/scrollbar" ];
|
|
143
|
+
|
|
144
|
+
const Wt = class {
|
|
134
145
|
constructor(s) {
|
|
135
146
|
t(this, s);
|
|
136
147
|
u.add(this);
|
|
@@ -157,18 +168,17 @@ const vt = class {
|
|
|
157
168
|
x.set(this, []);
|
|
158
169
|
M.set(this, []);
|
|
159
170
|
W.set(this, []);
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
this.activeTabs.set("
|
|
166
|
-
this.activeTabs.set("
|
|
167
|
-
this.activeTabs.set("
|
|
168
|
-
this.activeTabs.set("
|
|
169
|
-
this.activeTabs.set("design_system", r.designSystem[0].id);
|
|
171
|
+
_.set(this, []);
|
|
172
|
+
I.set(this, void 0);
|
|
173
|
+
C.set(this, void 0);
|
|
174
|
+
j.set(this, (() => {
|
|
175
|
+
this.activeTabs.set("panels", l.panels[0].id);
|
|
176
|
+
this.activeTabs.set("stencils", l.stencils[0].id);
|
|
177
|
+
this.activeTabs.set("images", l.images[0].id);
|
|
178
|
+
this.activeTabs.set("fonts", l.fonts[0].id);
|
|
179
|
+
this.activeTabs.set("design_system", l.designSystem[0].id);
|
|
170
180
|
}));
|
|
171
|
-
|
|
181
|
+
D.set(this, (async () => {
|
|
172
182
|
this.requiresAccessToken = await this.requiresAccessTokenCallback(this.path);
|
|
173
183
|
// evaluate access token error
|
|
174
184
|
if (this.accessToken.length) {
|
|
@@ -179,25 +189,25 @@ const vt = class {
|
|
|
179
189
|
const t = this.isLoaded && this.reactiveSettings.path && this.pathIsValid && this.path !== this.lastLoadCallbackSettingValues.path;
|
|
180
190
|
const e = !this.requiresAccessToken || this.requiresAccessToken && this.accessToken.length > 0;
|
|
181
191
|
if (t && e) {
|
|
182
|
-
d(this,
|
|
192
|
+
d(this, G, "f").call(this);
|
|
183
193
|
}
|
|
184
194
|
}));
|
|
185
|
-
|
|
195
|
+
z.set(this, (async t => {
|
|
186
196
|
var e;
|
|
187
197
|
if (t.detail.length) {
|
|
188
198
|
const s = (e = t.detail[0]) === null || e === void 0 ? void 0 : e.item;
|
|
189
199
|
const i = s.id;
|
|
190
|
-
const a = i.split(
|
|
200
|
+
const a = i.split(bt);
|
|
191
201
|
const o = a[0];
|
|
192
202
|
const n = a[1];
|
|
193
|
-
const
|
|
194
|
-
const
|
|
195
|
-
if (
|
|
203
|
+
const r = o && o !== "parent";
|
|
204
|
+
const l = n === "design_system";
|
|
205
|
+
if (r || l) {
|
|
196
206
|
this.tabsModel = h.get(n);
|
|
197
207
|
this.selectedDesignType = n;
|
|
198
|
-
const t = d(this,
|
|
208
|
+
const t = d(this, P, "f").call(this, i);
|
|
199
209
|
if (!t) {
|
|
200
|
-
const t = await d(this,
|
|
210
|
+
const t = await d(this, O, "f").call(this, o, this.selectedDesignType);
|
|
201
211
|
d(this, m, "f").set(i, {
|
|
202
212
|
designType: this.selectedDesignType,
|
|
203
213
|
designDataDetail: t
|
|
@@ -206,19 +216,19 @@ const vt = class {
|
|
|
206
216
|
// Item has been queried already. The item content exists already.
|
|
207
217
|
this.selectedDesignType = t.designType;
|
|
208
218
|
this.selectedDesignItem = t.designDataDetail;
|
|
209
|
-
d(this, u, "m",
|
|
210
|
-
d(this, u, "m",
|
|
219
|
+
d(this, u, "m", B).call(this, t.designType);
|
|
220
|
+
d(this, u, "m", st).call(this, t.designType);
|
|
211
221
|
}
|
|
212
222
|
this.renderedTabs.clear();
|
|
213
223
|
this.renderedTabs.add(this.activeTabs.get(this.selectedDesignType));
|
|
214
224
|
}
|
|
215
225
|
}
|
|
216
226
|
}));
|
|
217
|
-
|
|
227
|
+
P.set(this, (t => {
|
|
218
228
|
var e;
|
|
219
229
|
return (e = d(this, m, "f")) === null || e === void 0 ? void 0 : e.get(t);
|
|
220
230
|
}));
|
|
221
|
-
|
|
231
|
+
q.set(this, (t => {
|
|
222
232
|
const e = /^(\/|\.\/|(\w:))[^:*?"<>|]*\.(sketch|gxsketch)$/i;
|
|
223
233
|
// Match valid file paths
|
|
224
234
|
const s = /^https?:\/\/(www\.)?figma\.com/;
|
|
@@ -228,65 +238,65 @@ const vt = class {
|
|
|
228
238
|
const a = e.test(t) || s.test(t) || i.test(t);
|
|
229
239
|
return a;
|
|
230
240
|
}));
|
|
231
|
-
|
|
241
|
+
A.set(this, (t => {
|
|
232
242
|
const e = Array.from(t.detail.values());
|
|
233
243
|
let s = null;
|
|
234
244
|
const i = {};
|
|
235
245
|
for (const t of e) {
|
|
236
|
-
if (t.item.id.startsWith(`parent${
|
|
237
|
-
s = t.item.id.split(
|
|
246
|
+
if (t.item.id.startsWith(`parent${bt}`)) {
|
|
247
|
+
s = t.item.id.split(bt)[1];
|
|
238
248
|
i[s] = [];
|
|
239
249
|
} else if (t.item.checked && s) {
|
|
240
|
-
const e = t.item.id.split(
|
|
250
|
+
const e = t.item.id.split(bt)[1];
|
|
241
251
|
if (e === s) {
|
|
242
|
-
const e = t.item.id.split(
|
|
252
|
+
const e = t.item.id.split(bt)[0];
|
|
243
253
|
i[s].push(e);
|
|
244
254
|
}
|
|
245
255
|
}
|
|
246
256
|
}
|
|
247
257
|
// const { designSystem, fonts, images, panels, stencils } = result;
|
|
248
|
-
const {fonts: a, panels: o, stencils: n, images:
|
|
258
|
+
const {fonts: a, panels: o, stencils: n, images: r} = i;
|
|
249
259
|
// this.designSystemSelected = designSystem;
|
|
250
260
|
p(this, x, o, "f");
|
|
251
261
|
p(this, M, n, "f");
|
|
252
|
-
p(this, W,
|
|
253
|
-
p(this,
|
|
262
|
+
p(this, W, r, "f");
|
|
263
|
+
p(this, _, a, "f");
|
|
254
264
|
}));
|
|
255
|
-
|
|
256
|
-
d(this,
|
|
265
|
+
E.set(this, (() => {
|
|
266
|
+
d(this, I, "f").click();
|
|
257
267
|
}));
|
|
258
|
-
|
|
268
|
+
F.set(this, (t => {
|
|
259
269
|
this.styleValue = t.target.value;
|
|
260
270
|
if (this.reactiveSettings.style && this.styleValue !== this.lastLoadCallbackSettingValues.style) {
|
|
261
|
-
d(this,
|
|
271
|
+
d(this, G, "f").call(this);
|
|
262
272
|
}
|
|
263
273
|
}));
|
|
264
274
|
V.set(this, (t => {
|
|
265
275
|
if (this.reactiveSettings.module && this.defaultModule.id !== t.detail.id && this.pathIsValid) {
|
|
266
|
-
d(this,
|
|
276
|
+
d(this, G, "f").call(this);
|
|
267
277
|
}
|
|
268
278
|
}));
|
|
269
|
-
|
|
279
|
+
G.set(this, (async () => {
|
|
270
280
|
var t, e;
|
|
271
281
|
this.isLoading = true;
|
|
272
282
|
const s = this.selectedFile ? this.selectedFile : this.path;
|
|
273
283
|
const i = d(this, k, "f") ? d(this, k, "f").value : undefined;
|
|
274
284
|
const a = this.styleValue;
|
|
275
|
-
const o = d(this, w, "f").value ===
|
|
285
|
+
const o = d(this, w, "f").value === gt;
|
|
276
286
|
const n = await this.loadCallback(s, a, o, i, d(this, L, "f"));
|
|
277
287
|
// clear
|
|
278
288
|
p(this, x, [], "f");
|
|
279
289
|
p(this, M, [], "f");
|
|
280
|
-
p(this,
|
|
290
|
+
p(this, _, [], "f");
|
|
281
291
|
this.selectedDesignType = undefined;
|
|
282
292
|
this.selectedDesignItem = undefined;
|
|
283
293
|
this.messages = [];
|
|
284
294
|
this.designData = n;
|
|
285
295
|
this.isLoaded = (t = n === null || n === void 0 ? void 0 : n.success) !== null && t !== void 0 ? t : false;
|
|
286
296
|
this.isLoading = false;
|
|
287
|
-
const
|
|
288
|
-
if (
|
|
289
|
-
this.styleValue =
|
|
297
|
+
const r = (e = n.designSystem[0]) === null || e === void 0 ? void 0 : e.name;
|
|
298
|
+
if (r && !this.styleValue) {
|
|
299
|
+
this.styleValue = r;
|
|
290
300
|
}
|
|
291
301
|
// update the settings that were used for the last load
|
|
292
302
|
if (this.reactiveSettings.path && this.pathIsValid) {
|
|
@@ -305,23 +315,23 @@ const vt = class {
|
|
|
305
315
|
L.set(this, (t => {
|
|
306
316
|
this.messages = [ ...this.messages, t ];
|
|
307
317
|
}));
|
|
308
|
-
|
|
318
|
+
O.set(this, (async (t, e) => {
|
|
309
319
|
let s;
|
|
310
320
|
switch (e) {
|
|
311
|
-
case
|
|
321
|
+
case ut:
|
|
312
322
|
s = this.loadImageCallback;
|
|
313
323
|
break;
|
|
314
324
|
|
|
315
|
-
case
|
|
325
|
+
case ft:
|
|
316
326
|
s = this.loadDesignSystemCallback;
|
|
317
327
|
break;
|
|
318
328
|
|
|
319
|
-
case
|
|
329
|
+
case mt:
|
|
320
330
|
s = this.loadFontCallback;
|
|
321
331
|
break;
|
|
322
332
|
|
|
323
|
-
case
|
|
324
|
-
case
|
|
333
|
+
case dt:
|
|
334
|
+
case pt:
|
|
325
335
|
s = this.loadPanelDataCallback;
|
|
326
336
|
break;
|
|
327
337
|
}
|
|
@@ -329,8 +339,8 @@ const vt = class {
|
|
|
329
339
|
await s(t).then((t => {
|
|
330
340
|
this.selectedDesignType = e;
|
|
331
341
|
this.selectedDesignItem = t;
|
|
332
|
-
d(this, u, "m",
|
|
333
|
-
d(this, u, "m",
|
|
342
|
+
d(this, u, "m", B).call(this, e);
|
|
343
|
+
d(this, u, "m", st).call(this, e);
|
|
334
344
|
i = t;
|
|
335
345
|
}));
|
|
336
346
|
return i;
|
|
@@ -340,35 +350,35 @@ const vt = class {
|
|
|
340
350
|
this.confirmCallback({
|
|
341
351
|
panels: d(this, x, "f"),
|
|
342
352
|
stencils: d(this, M, "f"),
|
|
343
|
-
fonts: d(this,
|
|
353
|
+
fonts: d(this, _, "f"),
|
|
344
354
|
images: d(this, W, "f"),
|
|
345
355
|
moduleId: (e = (t = d(this, v, "f")) === null || t === void 0 ? void 0 : t.value) === null || e === void 0 ? void 0 : e.id,
|
|
346
356
|
styleName: this.styleValue,
|
|
347
|
-
importAsWebPanels: d(this, w, "f").value ===
|
|
357
|
+
importAsWebPanels: d(this, w, "f").value === gt
|
|
348
358
|
});
|
|
349
359
|
}));
|
|
350
|
-
|
|
360
|
+
N.set(this, (() => {
|
|
351
361
|
this.cancelCallback();
|
|
352
362
|
this.isLoading = false;
|
|
353
363
|
}));
|
|
354
|
-
|
|
355
|
-
this.fitImages = t.detail ===
|
|
364
|
+
Y.set(this, (t => {
|
|
365
|
+
this.fitImages = t.detail === gt;
|
|
356
366
|
}));
|
|
357
|
-
|
|
358
|
-
|
|
367
|
+
J.set(this, (t => t.reduce(((t, e, s, i) => i[t].name <= e.name ? t : s), 0)));
|
|
368
|
+
K.set(this, (() => {
|
|
359
369
|
const t = this.reactiveSettings.importAsWebPanels && this.pathIsValid;
|
|
360
370
|
if (t) {
|
|
361
|
-
d(this,
|
|
371
|
+
d(this, G, "f").call(this);
|
|
362
372
|
}
|
|
363
373
|
}));
|
|
364
|
-
|
|
374
|
+
Q.set(this, (() => {
|
|
365
375
|
this.selectedFile = null;
|
|
366
376
|
this.path = "";
|
|
367
377
|
this.accessToken = "";
|
|
368
378
|
this.selectedFile = null;
|
|
369
|
-
d(this,
|
|
379
|
+
d(this, I, "f").value = null;
|
|
370
380
|
}));
|
|
371
|
-
|
|
381
|
+
R.set(this, (t => {
|
|
372
382
|
var e;
|
|
373
383
|
const s = t.target;
|
|
374
384
|
if (((e = s.files) === null || e === void 0 ? void 0 : e.length) > 0) {
|
|
@@ -377,40 +387,40 @@ const vt = class {
|
|
|
377
387
|
// we know the path is valid because the extensions are restricted by "extensions" Prop.
|
|
378
388
|
}
|
|
379
389
|
}));
|
|
380
|
-
|
|
390
|
+
U.set(this, (t => {
|
|
381
391
|
const e = t.target;
|
|
382
392
|
e.type = "text";
|
|
383
393
|
// display token on focus
|
|
384
394
|
}));
|
|
385
|
-
|
|
395
|
+
X.set(this, (t => {
|
|
386
396
|
const e = t.target;
|
|
387
397
|
e.type = "password";
|
|
388
398
|
// hide token on blur
|
|
389
399
|
this.accessTokenChanged(e.value);
|
|
390
400
|
}));
|
|
391
|
-
|
|
401
|
+
Z.set(this, (async t => {
|
|
392
402
|
this.path = t.detail;
|
|
393
|
-
d(this,
|
|
403
|
+
d(this, D, "f").call(this);
|
|
394
404
|
this.selectedFile = null;
|
|
395
405
|
if (!this.path.length) {
|
|
396
406
|
this.designData = null;
|
|
397
407
|
}
|
|
398
408
|
}));
|
|
399
|
-
|
|
400
|
-
Z.set(this, (() => {
|
|
409
|
+
tt.set(this, (() => {
|
|
401
410
|
const t = this.isLoading || this.pathIsValid && this.requiresAccessToken && this.accessToken.length === 0;
|
|
402
411
|
const s = this.isLoading || this.path.length === 0;
|
|
403
412
|
const i = this.isLoading;
|
|
404
413
|
const a = this.isLoading;
|
|
405
414
|
const n = !this.pathIsValid && this.path.length > 0;
|
|
406
|
-
const
|
|
407
|
-
|
|
415
|
+
const r = !this.pathIsValid && this.path.length > 0;
|
|
416
|
+
const l = this.isLoading || !this.designDataTreeDataModel.length || this.selectedDesignType === "stencils" || this.selectedDesignType === "design_system";
|
|
417
|
+
let h;
|
|
408
418
|
if (this.pathIsValid && this.path === this.lastLoadCallbackSettingValues.path) {
|
|
409
|
-
|
|
419
|
+
h = d(this, f, "f").header.btnReload;
|
|
410
420
|
} else if (this.pathIsValid) {
|
|
411
|
-
|
|
421
|
+
h = d(this, f, "f").header.btnLoad;
|
|
412
422
|
} else {
|
|
413
|
-
|
|
423
|
+
h = d(this, f, "f").header.selectFileButton;
|
|
414
424
|
}
|
|
415
425
|
return e("header", {
|
|
416
426
|
class: {
|
|
@@ -439,15 +449,15 @@ const vt = class {
|
|
|
439
449
|
part: "option-path",
|
|
440
450
|
type: "text",
|
|
441
451
|
value: this.path,
|
|
442
|
-
onInput: d(this,
|
|
452
|
+
onInput: d(this, Z, "f"),
|
|
443
453
|
onBlur: this.reactiveSettings.path && d(this, S, "f"),
|
|
444
454
|
disabled: this.isLoading,
|
|
445
455
|
placeholder: `${d(this, f, "f").header.pathPlaceholder}`,
|
|
446
|
-
startImgSrc:
|
|
447
|
-
ref: t => p(this,
|
|
448
|
-
}),
|
|
456
|
+
startImgSrc: vt,
|
|
457
|
+
ref: t => p(this, C, t, "f")
|
|
458
|
+
}), r && e("ch-tooltip", {
|
|
449
459
|
class: "tooltip",
|
|
450
|
-
actionElement: d(this,
|
|
460
|
+
actionElement: d(this, C, "f"),
|
|
451
461
|
blockAlign: o.tooltipSettings.blockAlign,
|
|
452
462
|
inlineAlign: o.tooltipSettings.inlineAlign,
|
|
453
463
|
delay: o.tooltipSettings.delay
|
|
@@ -455,8 +465,8 @@ const vt = class {
|
|
|
455
465
|
hidden: true,
|
|
456
466
|
type: "file",
|
|
457
467
|
accept: d(this, g, "f"),
|
|
458
|
-
onChange: d(this,
|
|
459
|
-
ref: t => p(this,
|
|
468
|
+
onChange: d(this, R, "f"),
|
|
469
|
+
ref: t => p(this, I, t, "f")
|
|
460
470
|
}), e("div", {
|
|
461
471
|
class: "buttons-spacer"
|
|
462
472
|
}, e("button", {
|
|
@@ -466,16 +476,16 @@ const vt = class {
|
|
|
466
476
|
class: "button-tertiary button-icon-only",
|
|
467
477
|
part: "reset-all-button",
|
|
468
478
|
disabled: s,
|
|
469
|
-
onClick: !s && d(this,
|
|
479
|
+
onClick: !s && d(this, Q, "f")
|
|
470
480
|
}, e("ch-image", {
|
|
471
481
|
class: "icon-md",
|
|
472
|
-
src:
|
|
482
|
+
src: kt,
|
|
473
483
|
disabled: s
|
|
474
484
|
})), e("button", {
|
|
475
485
|
// load file button
|
|
476
486
|
id: "button-load",
|
|
477
487
|
type: "primary-text-only",
|
|
478
|
-
onClick: this.pathIsValid ? d(this,
|
|
488
|
+
onClick: this.pathIsValid ? d(this, G, "f") : d(this, E, "f"),
|
|
479
489
|
part: "button button--load",
|
|
480
490
|
disabled: t,
|
|
481
491
|
class: {
|
|
@@ -483,7 +493,7 @@ const vt = class {
|
|
|
483
493
|
"button-secondary": !this.pathIsValid,
|
|
484
494
|
"select-load-button": true
|
|
485
495
|
}
|
|
486
|
-
},
|
|
496
|
+
}, h))), this.requiresAccessToken && [ e("label", {
|
|
487
497
|
// access token label
|
|
488
498
|
class: "label access-token-label"
|
|
489
499
|
}, d(this, f, "f").header.accessToken), e("div", null, e("ch-edit", {
|
|
@@ -495,8 +505,8 @@ const vt = class {
|
|
|
495
505
|
ref: t => p(this, k, t, "f"),
|
|
496
506
|
value: this.accessToken,
|
|
497
507
|
placeholder: d(this, f, "f").header.accessTokenPlaceholder,
|
|
498
|
-
onFocus: d(this,
|
|
499
|
-
onBlur: d(this,
|
|
508
|
+
onFocus: d(this, U, "f"),
|
|
509
|
+
onBlur: d(this, X, "f"),
|
|
500
510
|
part: "access-token",
|
|
501
511
|
disabled: this.isLoading,
|
|
502
512
|
type: "password"
|
|
@@ -518,7 +528,7 @@ const vt = class {
|
|
|
518
528
|
disabled: i,
|
|
519
529
|
model: this.stylesAsComboBoxModel,
|
|
520
530
|
value: this.styleValue,
|
|
521
|
-
onInput: d(this,
|
|
531
|
+
onInput: d(this, F, "f"),
|
|
522
532
|
part: "option-style",
|
|
523
533
|
class: "combo-box style"
|
|
524
534
|
}), e("label", {
|
|
@@ -539,13 +549,13 @@ const vt = class {
|
|
|
539
549
|
class: "checkboxes-options field-group"
|
|
540
550
|
}, e("ch-checkbox", {
|
|
541
551
|
caption: d(this, f, "f").header.importAs,
|
|
542
|
-
checkedValue:
|
|
552
|
+
checkedValue: gt,
|
|
543
553
|
class: "checkbox import-as-web-panels",
|
|
544
554
|
ref: t => p(this, w, t, "f"),
|
|
545
|
-
value: this.importAsWebPanels ?
|
|
555
|
+
value: this.importAsWebPanels ? gt : undefined,
|
|
546
556
|
part: "option-import-as-web-panels",
|
|
547
557
|
disabled: this.isLoading,
|
|
548
|
-
onInput: d(this,
|
|
558
|
+
onInput: d(this, K, "f")
|
|
549
559
|
}), e("div", {
|
|
550
560
|
class: {
|
|
551
561
|
"field-group-inline": true,
|
|
@@ -554,27 +564,27 @@ const vt = class {
|
|
|
554
564
|
}, e("ch-checkbox", {
|
|
555
565
|
// fit images
|
|
556
566
|
caption: d(this, f, "f").header.fitImages,
|
|
557
|
-
checkedValue:
|
|
567
|
+
checkedValue: gt,
|
|
558
568
|
class: "checkbox",
|
|
559
569
|
part: "fit-images-checkbox",
|
|
560
|
-
disabled:
|
|
561
|
-
onInput: d(this,
|
|
570
|
+
disabled: l,
|
|
571
|
+
onInput: d(this, Y, "f")
|
|
562
572
|
}))));
|
|
563
573
|
}));
|
|
564
|
-
|
|
574
|
+
et.set(this, (() => this.messages.length > 0 && this.messages.map((t => e("p", {
|
|
565
575
|
class: {
|
|
566
576
|
"text-body-regular-m": true,
|
|
567
577
|
message: true,
|
|
568
578
|
[`message--${t.type}`]: true
|
|
569
579
|
}
|
|
570
580
|
}, t.type, ": ", t.text)))));
|
|
571
|
-
|
|
581
|
+
it.set(this, (() => {
|
|
572
582
|
var t, s;
|
|
573
583
|
if (this.isLoading || ((t = this.designData) === null || t === void 0 ? void 0 : t.success) === false) {
|
|
574
584
|
return e("div", {
|
|
575
585
|
class: "main main--loading scrollable",
|
|
576
586
|
ref: t => p(this, y, t, "f")
|
|
577
|
-
}, d(this,
|
|
587
|
+
}, d(this, et, "f").call(this), e("div", {
|
|
578
588
|
class: "text-body-regular-m spacing-body"
|
|
579
589
|
}, e("slot", {
|
|
580
590
|
name: "messages"
|
|
@@ -583,22 +593,22 @@ const vt = class {
|
|
|
583
593
|
/* #main*/
|
|
584
594
|
return e("div", {
|
|
585
595
|
class: "main"
|
|
586
|
-
}, [ d(this,
|
|
596
|
+
}, [ d(this, at, "f").call(this), d(this, ct, "f").call(this) ]);
|
|
587
597
|
} else {
|
|
588
598
|
return e("gx-ide-empty-state", {
|
|
589
599
|
class: "empty-state scrollable",
|
|
590
|
-
stateIconSrc:
|
|
600
|
+
stateIconSrc: wt,
|
|
591
601
|
isAnimated: d(this, b, "f"),
|
|
592
602
|
stateTitle: d(this, f, "f").messages.noDesignSelected,
|
|
593
603
|
key: "no-objects-empty-state"
|
|
594
604
|
}, e("button", {
|
|
595
605
|
// begin by selecting a file
|
|
596
606
|
class: "button-tertiary empty-state-button",
|
|
597
|
-
onClick: d(this,
|
|
607
|
+
onClick: d(this, E, "f")
|
|
598
608
|
}, d(this, f, "f").messages.selectDesign));
|
|
599
609
|
}
|
|
600
610
|
}));
|
|
601
|
-
|
|
611
|
+
at.set(this, (() => e("ch-tree-view-render", {
|
|
602
612
|
part: "data-tree",
|
|
603
613
|
class: "tree-view",
|
|
604
614
|
id: "data-tree",
|
|
@@ -606,14 +616,15 @@ const vt = class {
|
|
|
606
616
|
model: this.designDataTreeDataModel,
|
|
607
617
|
dragDisabled: true,
|
|
608
618
|
dropDisabled: true,
|
|
619
|
+
expandableButton: "action",
|
|
609
620
|
expandOnClick: false,
|
|
610
621
|
toggleCheckboxes: true,
|
|
611
622
|
checkbox: true,
|
|
612
623
|
checked: true,
|
|
613
|
-
onCheckedItemsChange: d(this,
|
|
614
|
-
onSelectedItemsChange: d(this,
|
|
624
|
+
onCheckedItemsChange: d(this, A, "f"),
|
|
625
|
+
onSelectedItemsChange: d(this, z, "f")
|
|
615
626
|
})));
|
|
616
|
-
|
|
627
|
+
ot.set(this, (() => {
|
|
617
628
|
var t;
|
|
618
629
|
const s = ((t = this.designData) === null || t === void 0 ? void 0 : t.success) !== true || this.isLoading;
|
|
619
630
|
return e("footer", {
|
|
@@ -625,7 +636,7 @@ const vt = class {
|
|
|
625
636
|
id: "button-cancel",
|
|
626
637
|
class: "button-secondary button-cancel",
|
|
627
638
|
type: "outlined",
|
|
628
|
-
onClick: d(this,
|
|
639
|
+
onClick: d(this, N, "f"),
|
|
629
640
|
part: "button button--cancel",
|
|
630
641
|
slot: "footer-end"
|
|
631
642
|
}, d(this, f, "f").footer.btnCancel), e("button", {
|
|
@@ -639,22 +650,32 @@ const vt = class {
|
|
|
639
650
|
slot: "footer-end"
|
|
640
651
|
}, d(this, f, "f").footer.btnOk)));
|
|
641
652
|
}));
|
|
642
|
-
|
|
653
|
+
nt.set(this, (() => {
|
|
643
654
|
var t, s;
|
|
644
|
-
|
|
655
|
+
if (this.selectedDesignType === "panels") {
|
|
656
|
+
return ((s = (t = this.selectedDesignItem) === null || t === void 0 ? void 0 : t.composition) === null || s === void 0 ? void 0 : s.preview) ? e("div", {
|
|
657
|
+
part: "data-panel-composition-preview",
|
|
658
|
+
class: "panel-item scrollable"
|
|
659
|
+
}, e("img", {
|
|
660
|
+
src: this.selectedDesignItem.composition.preview,
|
|
661
|
+
alt: "Preview"
|
|
662
|
+
})) : e("gx-ide-empty-state", {
|
|
663
|
+
class: "panel-tab__empty-state",
|
|
664
|
+
stateTitle: d(this, f, "f").messages.noPanelPreviewAvailable,
|
|
665
|
+
stateIconSrc: d(this, w, "f").value === gt ? yt : xt
|
|
666
|
+
});
|
|
667
|
+
}
|
|
668
|
+
return null;
|
|
669
|
+
}));
|
|
670
|
+
rt.set(this, (() => {
|
|
671
|
+
const t = (this.selectedDesignType === dt || this.selectedDesignType === pt) && this.detailTreeModel.length > 0;
|
|
645
672
|
return e("div", {
|
|
646
673
|
class: {
|
|
647
674
|
"panel-tab": true,
|
|
648
|
-
"panel-tab--controls-tree":
|
|
675
|
+
"panel-tab--controls-tree": t
|
|
649
676
|
},
|
|
650
677
|
part: "data-panel-composition-container"
|
|
651
|
-
}, (
|
|
652
|
-
part: "data-panel-composition-preview",
|
|
653
|
-
class: "panel-item scrollable"
|
|
654
|
-
}, e("img", {
|
|
655
|
-
src: this.selectedDesignItem.composition.preview,
|
|
656
|
-
alt: "Preview"
|
|
657
|
-
})) : null, i ? e("ch-tree-view-render", {
|
|
678
|
+
}, d(this, nt, "f").call(this), t ? e("ch-tree-view-render", {
|
|
658
679
|
part: "data-panel-composition-tree",
|
|
659
680
|
class: "tree-view tree-view-panel-item scrollable",
|
|
660
681
|
showLines: "last",
|
|
@@ -663,7 +684,7 @@ const vt = class {
|
|
|
663
684
|
dropDisabled: true
|
|
664
685
|
}) : null);
|
|
665
686
|
}));
|
|
666
|
-
|
|
687
|
+
lt.set(this, (() => e("div", {
|
|
667
688
|
part: "data-panel-composition-preview",
|
|
668
689
|
class: "data-preview",
|
|
669
690
|
style: {
|
|
@@ -672,15 +693,15 @@ const vt = class {
|
|
|
672
693
|
}, e("img", {
|
|
673
694
|
src: this.selectedDesignItem ? this.selectedDesignItem : undefined,
|
|
674
695
|
alt: "Preview",
|
|
675
|
-
class: this.selectedDesignType ===
|
|
696
|
+
class: this.selectedDesignType === ut ? "checker-board" : undefined
|
|
676
697
|
}))));
|
|
677
|
-
|
|
698
|
+
ht.set(this, (t => {
|
|
678
699
|
this.renderedTabs.clear();
|
|
679
700
|
this.renderedTabs.add(t.detail.newSelectedId);
|
|
680
701
|
this.reRenderCounter++;
|
|
681
702
|
this.activeTabs.set(this.selectedDesignType, t.detail.newSelectedId);
|
|
682
703
|
}));
|
|
683
|
-
|
|
704
|
+
ct.set(this, (() => e("ch-tab-render", {
|
|
684
705
|
// main section
|
|
685
706
|
class: {
|
|
686
707
|
tab: true,
|
|
@@ -692,45 +713,45 @@ const vt = class {
|
|
|
692
713
|
selectedId: this.activeTabs.get(this.selectedDesignType),
|
|
693
714
|
overflow: "auto",
|
|
694
715
|
contain: "size",
|
|
695
|
-
onSelectedItemChange: d(this,
|
|
716
|
+
onSelectedItemChange: d(this, ht, "f")
|
|
696
717
|
}, e("div", {
|
|
697
|
-
slot:
|
|
718
|
+
slot: r.tokens.slot,
|
|
698
719
|
class: "spacing-body",
|
|
699
720
|
style: {
|
|
700
|
-
display: this.renderedTabs.has(
|
|
721
|
+
display: this.renderedTabs.has(r.tokens.id) ? "" : "none"
|
|
701
722
|
}
|
|
702
723
|
}, e("slot", {
|
|
703
|
-
name:
|
|
724
|
+
name: r.tokens.slot
|
|
704
725
|
})), e("div", {
|
|
705
|
-
slot:
|
|
726
|
+
slot: r.styles.slot,
|
|
706
727
|
class: "spacing-body",
|
|
707
728
|
style: {
|
|
708
|
-
display: this.renderedTabs.has(
|
|
729
|
+
display: this.renderedTabs.has(r.styles.id) ? "" : "none"
|
|
709
730
|
}
|
|
710
731
|
}, e("slot", {
|
|
711
|
-
name:
|
|
732
|
+
name: r.styles.slot
|
|
712
733
|
})), e("div", {
|
|
713
734
|
class: "composition-tab-slot scrollable",
|
|
714
|
-
slot:
|
|
735
|
+
slot: r.composition.slot,
|
|
715
736
|
style: {
|
|
716
|
-
display: this.renderedTabs.has(
|
|
737
|
+
display: this.renderedTabs.has(r.composition.id) ? "" : "none"
|
|
717
738
|
}
|
|
718
|
-
}, this.selectedDesignType ===
|
|
719
|
-
slot:
|
|
739
|
+
}, this.selectedDesignType === ut || this.selectedDesignType === mt ? d(this, lt, "f").call(this) : d(this, rt, "f").call(this)), e("div", {
|
|
740
|
+
slot: r.layout.slot,
|
|
720
741
|
class: "spacing-body",
|
|
721
742
|
style: {
|
|
722
|
-
display: this.renderedTabs.has(
|
|
743
|
+
display: this.renderedTabs.has(r.layout.id) ? "" : "none"
|
|
723
744
|
}
|
|
724
745
|
}, e("slot", {
|
|
725
|
-
name:
|
|
746
|
+
name: r.layout.slot
|
|
726
747
|
})), e("div", {
|
|
727
|
-
slot:
|
|
748
|
+
slot: r.code.slot,
|
|
728
749
|
class: "spacing-body",
|
|
729
750
|
style: {
|
|
730
|
-
display: this.renderedTabs.has(
|
|
751
|
+
display: this.renderedTabs.has(r.code.id) ? "" : "none"
|
|
731
752
|
}
|
|
732
753
|
}, e("slot", {
|
|
733
|
-
name:
|
|
754
|
+
name: r.code.slot
|
|
734
755
|
})))));
|
|
735
756
|
this.reRenderCounter = 0;
|
|
736
757
|
this.stylesAsComboBoxModel = undefined;
|
|
@@ -783,7 +804,7 @@ const vt = class {
|
|
|
783
804
|
}
|
|
784
805
|
pathIsValidChanged(t) {
|
|
785
806
|
if (t) {
|
|
786
|
-
d(this,
|
|
807
|
+
d(this, D, "f").call(this);
|
|
787
808
|
} else {
|
|
788
809
|
// hide access token input if path is not valid
|
|
789
810
|
this.requiresAccessToken = false;
|
|
@@ -791,42 +812,21 @@ const vt = class {
|
|
|
791
812
|
}
|
|
792
813
|
designDataChanged(t) {
|
|
793
814
|
if (t) {
|
|
794
|
-
const t = d(this,
|
|
795
|
-
const e = d(this, w, "f").value ===
|
|
815
|
+
const t = d(this, J, "f").call(this, this.designData.panels);
|
|
816
|
+
const e = d(this, w, "f").value === gt ? "objects/webpanel" : "objects/panel-for-sd";
|
|
796
817
|
this.designDataTreeDataModel = [ {
|
|
797
818
|
order: 0,
|
|
798
|
-
id: `parent${
|
|
819
|
+
id: `parent${bt}${dt}`,
|
|
799
820
|
leaf: false,
|
|
800
821
|
caption: d(this, f, "f").tree.panels,
|
|
801
822
|
startImgSrc: e,
|
|
802
823
|
checkbox: true,
|
|
803
824
|
checked: true,
|
|
804
825
|
expanded: true,
|
|
805
|
-
items: this.designData.panels
|
|
806
|
-
var a;
|
|
807
|
-
return {
|
|
808
|
-
id: `${s.id}${ft}${ht}`,
|
|
809
|
-
class: "object tree-view-item",
|
|
810
|
-
leaf: !s.variants,
|
|
811
|
-
caption: s.name,
|
|
812
|
-
startImgSrc: e,
|
|
813
|
-
checkbox: true,
|
|
814
|
-
checked: true,
|
|
815
|
-
expanded: true,
|
|
816
|
-
selected: i === t,
|
|
817
|
-
items: (a = s.variants) === null || a === void 0 ? void 0 : a.map((t => ({
|
|
818
|
-
id: `${t.id}${ft}${ht}`,
|
|
819
|
-
caption: t.name,
|
|
820
|
-
startImgSrc: e,
|
|
821
|
-
leaf: true,
|
|
822
|
-
checkbox: true,
|
|
823
|
-
checked: true
|
|
824
|
-
})))
|
|
825
|
-
};
|
|
826
|
-
}))
|
|
826
|
+
items: d(this, u, "m", $).call(this, this.designData.panels, dt, e, t)
|
|
827
827
|
}, {
|
|
828
828
|
order: 1,
|
|
829
|
-
id: `parent${
|
|
829
|
+
id: `parent${bt}${pt}`,
|
|
830
830
|
leaf: false,
|
|
831
831
|
caption: d(this, f, "f").tree.stencils,
|
|
832
832
|
startImgSrc: "objects/stencil",
|
|
@@ -834,7 +834,7 @@ const vt = class {
|
|
|
834
834
|
checked: true,
|
|
835
835
|
expanded: true,
|
|
836
836
|
items: this.designData.stencils.map((t => ({
|
|
837
|
-
id: `${t.id}${
|
|
837
|
+
id: `${t.id}${bt}${pt}`,
|
|
838
838
|
class: "object tree-view-item",
|
|
839
839
|
leaf: true,
|
|
840
840
|
caption: t.name,
|
|
@@ -844,8 +844,7 @@ const vt = class {
|
|
|
844
844
|
})))
|
|
845
845
|
}, {
|
|
846
846
|
order: 2,
|
|
847
|
-
id: `parent${
|
|
848
|
-
parts: "category tree-view-item",
|
|
847
|
+
id: `parent${bt}${ut}`,
|
|
849
848
|
leaf: false,
|
|
850
849
|
caption: d(this, f, "f").tree.images,
|
|
851
850
|
startImgSrc: "objects/image",
|
|
@@ -853,8 +852,7 @@ const vt = class {
|
|
|
853
852
|
checked: true,
|
|
854
853
|
expanded: true,
|
|
855
854
|
items: this.designData.images.map((t => ({
|
|
856
|
-
id: `${t.id}${
|
|
857
|
-
class: "object tree-view-item",
|
|
855
|
+
id: `${t.id}${bt}${ut}`,
|
|
858
856
|
leaf: true,
|
|
859
857
|
caption: t.name,
|
|
860
858
|
startImgSrc: "objects/image",
|
|
@@ -863,7 +861,7 @@ const vt = class {
|
|
|
863
861
|
})))
|
|
864
862
|
}, {
|
|
865
863
|
order: 3,
|
|
866
|
-
id: `parent${
|
|
864
|
+
id: `parent${bt}${mt}`,
|
|
867
865
|
leaf: false,
|
|
868
866
|
caption: d(this, f, "f").tree.fonts,
|
|
869
867
|
startImgSrc: "controls/font",
|
|
@@ -871,8 +869,7 @@ const vt = class {
|
|
|
871
869
|
checked: true,
|
|
872
870
|
expanded: true,
|
|
873
871
|
items: this.designData.fonts.map((t => ({
|
|
874
|
-
id: `${t.id}${
|
|
875
|
-
class: "object tree-view-item",
|
|
872
|
+
id: `${t.id}${bt}${mt}`,
|
|
876
873
|
leaf: true,
|
|
877
874
|
caption: t.name,
|
|
878
875
|
startImgSrc: "controls/font",
|
|
@@ -881,7 +878,7 @@ const vt = class {
|
|
|
881
878
|
})))
|
|
882
879
|
}, {
|
|
883
880
|
order: 4,
|
|
884
|
-
id: `${this.designData.designSystem.length > 0 ? this.designData.designSystem[0].id : "parent"}${
|
|
881
|
+
id: `${this.designData.designSystem.length > 0 ? this.designData.designSystem[0].id : "parent"}${bt}${ft}`,
|
|
885
882
|
leaf: true,
|
|
886
883
|
caption: d(this, f, "f").tree.designSystem,
|
|
887
884
|
startImgSrc: "objects/dso",
|
|
@@ -893,7 +890,7 @@ const vt = class {
|
|
|
893
890
|
pathChanged(t) {
|
|
894
891
|
var e;
|
|
895
892
|
const s = ((e = this.selectedFile) === null || e === void 0 ? void 0 : e.size) > 0;
|
|
896
|
-
const i = d(this,
|
|
893
|
+
const i = d(this, q, "f").call(this, t) || s;
|
|
897
894
|
this.pathIsValid = i;
|
|
898
895
|
}
|
|
899
896
|
accessTokenChanged(t) {
|
|
@@ -912,7 +909,7 @@ const vt = class {
|
|
|
912
909
|
p(this, f, await n.getComponentStrings(this.el), "f");
|
|
913
910
|
p(this, g, this.extensions.map((t => `.${t}`)).join(", "), "f");
|
|
914
911
|
this.stylesChanged(this.styles);
|
|
915
|
-
d(this,
|
|
912
|
+
d(this, j, "f").call(this);
|
|
916
913
|
this.pathChanged(this.path);
|
|
917
914
|
this.styleValue = ((t = this.stylesAsComboBoxModel) === null || t === void 0 ? void 0 : t.length) > 0 ? (e = this.stylesAsComboBoxModel[0]) === null || e === void 0 ? void 0 : e.value : "";
|
|
918
915
|
}
|
|
@@ -927,10 +924,10 @@ const vt = class {
|
|
|
927
924
|
return e(s, {
|
|
928
925
|
class: "widget"
|
|
929
926
|
}, e("ch-theme", {
|
|
930
|
-
model:
|
|
927
|
+
model: Mt
|
|
931
928
|
}), e("section", {
|
|
932
929
|
class: "section"
|
|
933
|
-
}, d(this,
|
|
930
|
+
}, d(this, tt, "f").call(this), d(this, it, "f").call(this), d(this, ot, "f").call(this)));
|
|
934
931
|
}
|
|
935
932
|
static get assetsDirs() {
|
|
936
933
|
return [ "gx-ide-assets/design-import" ];
|
|
@@ -952,14 +949,30 @@ const vt = class {
|
|
|
952
949
|
|
|
953
950
|
f = new WeakMap, m = new WeakMap, b = new WeakMap, g = new WeakMap, k = new WeakMap,
|
|
954
951
|
w = new WeakMap, v = new WeakMap, y = new WeakMap, x = new WeakMap, M = new WeakMap,
|
|
955
|
-
W = new WeakMap,
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
L = new WeakMap,
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
952
|
+
W = new WeakMap, _ = new WeakMap, I = new WeakMap, C = new WeakMap, j = new WeakMap,
|
|
953
|
+
D = new WeakMap, S = new WeakMap, z = new WeakMap, P = new WeakMap, q = new WeakMap,
|
|
954
|
+
A = new WeakMap, E = new WeakMap, F = new WeakMap, V = new WeakMap, G = new WeakMap,
|
|
955
|
+
L = new WeakMap, O = new WeakMap, H = new WeakMap, N = new WeakMap, Y = new WeakMap,
|
|
956
|
+
J = new WeakMap, K = new WeakMap, Q = new WeakMap, R = new WeakMap, U = new WeakMap,
|
|
957
|
+
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, rt = new WeakMap, lt = new WeakMap,
|
|
959
|
+
ht = new WeakMap, ct = new WeakMap, u = new WeakSet, $ = function _GxIdeImportFromDesign_recursiveDesignTreeItems(t, e, s, i = undefined) {
|
|
960
|
+
return t.map(((t, a) => {
|
|
961
|
+
var o;
|
|
962
|
+
const n = ((o = t.variants) === null || o === void 0 ? void 0 : o.length) > 0;
|
|
963
|
+
return {
|
|
964
|
+
id: `${t.id}${bt}${e}`,
|
|
965
|
+
leaf: !n,
|
|
966
|
+
caption: t.name,
|
|
967
|
+
startImgSrc: s,
|
|
968
|
+
checkbox: true,
|
|
969
|
+
checked: true,
|
|
970
|
+
expanded: n,
|
|
971
|
+
selected: i === a,
|
|
972
|
+
items: n ? d(this, u, "m", _GxIdeImportFromDesign_recursiveDesignTreeItems).call(this, t.variants, e, s) : []
|
|
973
|
+
};
|
|
974
|
+
}));
|
|
975
|
+
}, T = function _GxIdeImportFromDesign_loadTreeItemCompositionModel(t) {
|
|
963
976
|
const e = [];
|
|
964
977
|
for (const s of t) {
|
|
965
978
|
let t = {
|
|
@@ -978,29 +991,29 @@ rt = new WeakMap, u = new WeakSet, D = function _GxIdeImportFromDesign_loadTreeI
|
|
|
978
991
|
e.push(t);
|
|
979
992
|
}
|
|
980
993
|
return e;
|
|
981
|
-
},
|
|
994
|
+
}, B = function _GxIdeImportFromDesign_getCodeFactory(t) {
|
|
982
995
|
switch (t) {
|
|
983
|
-
case
|
|
984
|
-
case
|
|
985
|
-
this.textEditorFactoryCallback("code",
|
|
986
|
-
this.textEditorFactoryCallback("html",
|
|
996
|
+
case dt:
|
|
997
|
+
case pt:
|
|
998
|
+
this.textEditorFactoryCallback("code", r.code.slot, this.selectedDesignItem.code);
|
|
999
|
+
this.textEditorFactoryCallback("html", r.layout.slot, this.selectedDesignItem.layout);
|
|
987
1000
|
break;
|
|
988
1001
|
|
|
989
|
-
case
|
|
990
|
-
this.textEditorFactoryCallback("tokens",
|
|
991
|
-
this.textEditorFactoryCallback("styles",
|
|
1002
|
+
case ft:
|
|
1003
|
+
this.textEditorFactoryCallback("tokens", r.tokens.slot, this.selectedDesignItem.tokens);
|
|
1004
|
+
this.textEditorFactoryCallback("styles", r.styles.slot, this.selectedDesignItem.styles);
|
|
992
1005
|
break;
|
|
993
1006
|
}
|
|
994
|
-
},
|
|
1007
|
+
}, st = function _GxIdeImportFromDesign_renderDetailDataTree(t) {
|
|
995
1008
|
switch (t) {
|
|
996
|
-
case
|
|
997
|
-
case
|
|
998
|
-
this.detailTreeModel = d(this, u, "m",
|
|
1009
|
+
case dt:
|
|
1010
|
+
case pt:
|
|
1011
|
+
this.detailTreeModel = d(this, u, "m", T).call(this, this.selectedDesignItem.composition.controls);
|
|
999
1012
|
break;
|
|
1000
1013
|
}
|
|
1001
1014
|
};
|
|
1002
1015
|
|
|
1003
|
-
|
|
1016
|
+
Wt.style = c;
|
|
1004
1017
|
|
|
1005
|
-
export {
|
|
1006
|
-
//# sourceMappingURL=p-
|
|
1018
|
+
export { Wt as gx_ide_design_import };
|
|
1019
|
+
//# sourceMappingURL=p-32bd11fa.entry.js.map
|