@genexus/genexus-ide-ui 1.0.35 → 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/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 +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 +59 -47
- 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-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-share-kb.cjs.entry.js +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/gx-ide-start-page.cjs.entry.js +1 -1
- package/dist/cjs/gx-ide-welcome-page.cjs.entry.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/design-import/design-import.css +8 -0
- package/dist/collection/components/design-import/design-import.js +57 -45
- 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 +3 -1
- package/dist/collection/components/design-import/gx-ide-assets/design-import/langs/design-import.lang.ja.json +3 -1
- package/dist/collection/components/design-import/gx-ide-assets/design-import/langs/design-import.lang.zh.json +3 -1
- 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/MERCURY_ASSETS.js +1 -1
- package/dist/components/MERCURY_ASSETS.js.map +1 -1
- package/dist/components/gx-ide-design-import.js +58 -46
- 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/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 +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 +59 -47
- 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-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-share-kb.entry.js +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/gx-ide-start-page.entry.js +1 -1
- package/dist/esm/gx-ide-welcome-page.entry.js +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 +3 -1
- package/dist/genexus-ide-ui/gx-ide-assets/design-import/langs/design-import.lang.ja.json +3 -1
- package/dist/genexus-ide-ui/gx-ide-assets/design-import/langs/design-import.lang.zh.json +3 -1
- 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-70a8edd9.entry.js → p-05775d0c.entry.js} +2 -2
- package/dist/genexus-ide-ui/p-0b33d2f9.entry.js.map +1 -1
- 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-5fc133b2.entry.js} +223 -213
- package/dist/genexus-ide-ui/p-5fc133b2.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-3d6140e6.entry.js → p-7cde7e4f.entry.js} +2 -2
- 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-c9b0fd13.entry.js +130 -0
- package/dist/genexus-ide-ui/p-c9b0fd13.entry.js.map +1 -0
- package/dist/genexus-ide-ui/{p-31511545.entry.js → p-cadec045.entry.js} +2 -2
- package/dist/genexus-ide-ui/{p-e36d53f0.entry.js → p-dd890eed.entry.js} +2 -2
- 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/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 +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-b189e45d.entry.js +0 -113
- package/dist/genexus-ide-ui/p-b189e45d.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-3d6140e6.entry.js.map → p-7cde7e4f.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-e36d53f0.entry.js.map → p-dd890eed.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
|
|
|
@@ -79,7 +79,7 @@ const r = {
|
|
|
79
79
|
|
|
80
80
|
const h = new Map([ [ "panels", r.panels ], [ "stencils", r.stencils ], [ "images", r.images ], [ "design_system", r.designSystem ], [ "fonts", r.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,51 +94,62 @@ 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
|
-
const
|
|
99
|
+
const dt = "panels";
|
|
100
100
|
|
|
101
|
-
const
|
|
101
|
+
const pt = "stencils";
|
|
102
102
|
|
|
103
|
-
const
|
|
103
|
+
const ft = "images";
|
|
104
104
|
|
|
105
|
-
const
|
|
105
|
+
const ut = "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
|
+
});
|
|
132
136
|
|
|
133
|
-
const
|
|
137
|
+
const xt = a({
|
|
138
|
+
category: "objects",
|
|
139
|
+
name: "panel-for-sd"
|
|
140
|
+
});
|
|
141
|
+
|
|
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
|
+
f.add(this);
|
|
137
148
|
/**
|
|
138
149
|
* The component hard-coded strings translations.
|
|
139
150
|
*/
|
|
140
151
|
// eslint-disable-next-line @stencil-community/own-props-must-be-private
|
|
141
|
-
|
|
152
|
+
u.set(this, void 0);
|
|
142
153
|
/**
|
|
143
154
|
* An array that keeps track of the tree items id's (design system data type
|
|
144
155
|
* + item id) along with the content, that will be used to save and retrieve
|
|
@@ -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
|
-
C.set(this, (() => {
|
|
171
|
+
_.set(this, []);
|
|
172
|
+
I.set(this, void 0);
|
|
173
|
+
C.set(this, void 0);
|
|
174
|
+
j.set(this, (() => {
|
|
165
175
|
this.activeTabs.set("panels", r.panels[0].id);
|
|
166
176
|
this.activeTabs.set("stencils", r.stencils[0].id);
|
|
167
177
|
this.activeTabs.set("images", r.images[0].id);
|
|
168
178
|
this.activeTabs.set("fonts", r.fonts[0].id);
|
|
169
179
|
this.activeTabs.set("design_system", r.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,15 +189,15 @@ 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
203
|
const l = o && o !== "parent";
|
|
@@ -195,9 +205,9 @@ const vt = class {
|
|
|
195
205
|
if (l || r) {
|
|
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,
|
|
210
|
-
d(this,
|
|
219
|
+
d(this, f, "m", B).call(this, t.designType);
|
|
220
|
+
d(this, f, "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,18 +238,18 @@ 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
|
}
|
|
@@ -250,34 +260,34 @@ const vt = class {
|
|
|
250
260
|
p(this, x, o, "f");
|
|
251
261
|
p(this, M, n, "f");
|
|
252
262
|
p(this, W, l, "f");
|
|
253
|
-
p(this,
|
|
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 = [];
|
|
@@ -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 ft:
|
|
312
322
|
s = this.loadImageCallback;
|
|
313
323
|
break;
|
|
314
324
|
|
|
315
|
-
case
|
|
325
|
+
case ut:
|
|
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,
|
|
333
|
-
d(this,
|
|
342
|
+
d(this, f, "m", B).call(this, e);
|
|
343
|
+
d(this, f, "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
415
|
const l = !this.pathIsValid && this.path.length > 0;
|
|
407
|
-
|
|
416
|
+
const r = 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, u, "f").header.btnReload;
|
|
410
420
|
} else if (this.pathIsValid) {
|
|
411
|
-
|
|
421
|
+
h = d(this, u, "f").header.btnLoad;
|
|
412
422
|
} else {
|
|
413
|
-
|
|
423
|
+
h = d(this, u, "f").header.selectFileButton;
|
|
414
424
|
}
|
|
415
425
|
return e("header", {
|
|
416
426
|
class: {
|
|
@@ -425,7 +435,7 @@ const vt = class {
|
|
|
425
435
|
}, e("label", {
|
|
426
436
|
// path/url label
|
|
427
437
|
class: "label path-url-label"
|
|
428
|
-
}, d(this,
|
|
438
|
+
}, d(this, u, "f").header.path), e("div", {
|
|
429
439
|
class: "path-url-wrapper buttons-spacer"
|
|
430
440
|
}, e("ch-edit", {
|
|
431
441
|
// path/url/file input
|
|
@@ -439,43 +449,43 @@ 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
|
-
placeholder: `${d(this,
|
|
446
|
-
startImgSrc:
|
|
447
|
-
ref: t => p(this,
|
|
455
|
+
placeholder: `${d(this, u, "f").header.pathPlaceholder}`,
|
|
456
|
+
startImgSrc: vt,
|
|
457
|
+
ref: t => p(this, C, t, "f")
|
|
448
458
|
}), l && 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
|
|
454
|
-
}, d(this,
|
|
464
|
+
}, d(this, u, "f").header.pathErrorMessage, " ", d(this, g, "f")), e("input", {
|
|
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", {
|
|
463
|
-
"aria-label": d(this,
|
|
464
|
-
title: d(this,
|
|
473
|
+
"aria-label": d(this, u, "f").header.removeFileSelection,
|
|
474
|
+
title: d(this, u, "f").header.removeFileSelection,
|
|
465
475
|
id: "reset-all-button",
|
|
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,10 +493,10 @@ 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
|
-
}, d(this,
|
|
499
|
+
}, d(this, u, "f").header.accessToken), e("div", null, e("ch-edit", {
|
|
490
500
|
class: {
|
|
491
501
|
input: true,
|
|
492
502
|
"access-token": true,
|
|
@@ -494,9 +504,9 @@ const vt = class {
|
|
|
494
504
|
},
|
|
495
505
|
ref: t => p(this, k, t, "f"),
|
|
496
506
|
value: this.accessToken,
|
|
497
|
-
placeholder: d(this,
|
|
498
|
-
onFocus: d(this,
|
|
499
|
-
onBlur: d(this,
|
|
507
|
+
placeholder: d(this, u, "f").header.accessTokenPlaceholder,
|
|
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"
|
|
@@ -506,10 +516,10 @@ const vt = class {
|
|
|
506
516
|
blockAlign: o.tooltipSettings.blockAlign,
|
|
507
517
|
inlineAlign: o.tooltipSettings.inlineAlign,
|
|
508
518
|
delay: o.tooltipSettings.delay
|
|
509
|
-
}, d(this,
|
|
519
|
+
}, d(this, u, "f").header.accessTokenErrorMessage)) ], e("label", {
|
|
510
520
|
// style label
|
|
511
521
|
class: "label style-label"
|
|
512
|
-
}, d(this,
|
|
522
|
+
}, d(this, u, "f").header.style), e("ch-combo-box-render", {
|
|
513
523
|
// style combo box
|
|
514
524
|
suggest: true,
|
|
515
525
|
suggestOptions: {
|
|
@@ -518,13 +528,13 @@ 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", {
|
|
525
535
|
// module label
|
|
526
536
|
class: "label module-label"
|
|
527
|
-
}, d(this,
|
|
537
|
+
}, d(this, u, "f").header.module), e("gx-ide-entity-selector", {
|
|
528
538
|
// module entity selector
|
|
529
539
|
labelPosition: "none",
|
|
530
540
|
value: this.defaultModule,
|
|
@@ -538,14 +548,14 @@ const vt = class {
|
|
|
538
548
|
// import as web panels
|
|
539
549
|
class: "checkboxes-options field-group"
|
|
540
550
|
}, e("ch-checkbox", {
|
|
541
|
-
caption: d(this,
|
|
542
|
-
checkedValue:
|
|
551
|
+
caption: d(this, u, "f").header.importAs,
|
|
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,
|
|
@@ -553,28 +563,28 @@ const vt = class {
|
|
|
553
563
|
}
|
|
554
564
|
}, e("ch-checkbox", {
|
|
555
565
|
// fit images
|
|
556
|
-
caption: d(this,
|
|
557
|
-
checkedValue:
|
|
566
|
+
caption: d(this, u, "f").header.fitImages,
|
|
567
|
+
checkedValue: gt,
|
|
558
568
|
class: "checkbox",
|
|
559
569
|
part: "fit-images-checkbox",
|
|
560
|
-
disabled:
|
|
561
|
-
onInput: d(this,
|
|
570
|
+
disabled: r,
|
|
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
|
-
stateTitle: d(this,
|
|
602
|
+
stateTitle: d(this, u, "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,
|
|
598
|
-
}, d(this,
|
|
607
|
+
onClick: d(this, E, "f")
|
|
608
|
+
}, d(this, u, "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,10 +636,10 @@ 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
|
-
}, d(this,
|
|
642
|
+
}, d(this, u, "f").footer.btnCancel), e("button", {
|
|
632
643
|
// button ok
|
|
633
644
|
id: "button-ok",
|
|
634
645
|
class: "button-primary button-ok",
|
|
@@ -637,24 +648,34 @@ const vt = class {
|
|
|
637
648
|
part: "button button--ok",
|
|
638
649
|
disabled: s,
|
|
639
650
|
slot: "footer-end"
|
|
640
|
-
}, d(this,
|
|
651
|
+
}, d(this, u, "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, u, "f").messages.noPanelPreviewAvailable,
|
|
665
|
+
stateIconSrc: d(this, w, "f").value === gt ? yt : xt
|
|
666
|
+
});
|
|
667
|
+
}
|
|
668
|
+
return null;
|
|
669
|
+
}));
|
|
670
|
+
lt.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
|
+
rt.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 === ft ? "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,7 +713,7 @@ 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
718
|
slot: l.tokens.slot,
|
|
698
719
|
class: "spacing-body",
|
|
@@ -715,7 +736,7 @@ const vt = class {
|
|
|
715
736
|
style: {
|
|
716
737
|
display: this.renderedTabs.has(l.composition.id) ? "" : "none"
|
|
717
738
|
}
|
|
718
|
-
}, this.selectedDesignType ===
|
|
739
|
+
}, this.selectedDesignType === ft || this.selectedDesignType === mt ? d(this, rt, "f").call(this) : d(this, lt, "f").call(this)), e("div", {
|
|
719
740
|
slot: l.layout.slot,
|
|
720
741
|
class: "spacing-body",
|
|
721
742
|
style: {
|
|
@@ -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,50 +812,33 @@ const vt = class {
|
|
|
791
812
|
}
|
|
792
813
|
designDataChanged(t) {
|
|
793
814
|
if (t) {
|
|
794
|
-
|
|
795
|
-
const
|
|
815
|
+
// panels
|
|
816
|
+
const t = d(this, J, "f").call(this, this.designData.panels);
|
|
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";
|
|
796
821
|
this.designDataTreeDataModel = [ {
|
|
797
822
|
order: 0,
|
|
798
|
-
id: `parent${
|
|
823
|
+
id: `parent${bt}${dt}`,
|
|
799
824
|
leaf: false,
|
|
800
|
-
caption: d(this, f, "f").tree.panels,
|
|
801
|
-
startImgSrc:
|
|
825
|
+
caption: e ? d(this, u, "f").tree.webPanels : d(this, u, "f").tree.panels,
|
|
826
|
+
startImgSrc: s,
|
|
802
827
|
checkbox: true,
|
|
803
828
|
checked: true,
|
|
804
829
|
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
|
-
}))
|
|
830
|
+
items: d(this, f, "m", $).call(this, this.designData.panels, dt, s, t)
|
|
827
831
|
}, {
|
|
828
832
|
order: 1,
|
|
829
|
-
id: `parent${
|
|
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,
|
|
835
839
|
expanded: true,
|
|
836
840
|
items: this.designData.stencils.map((t => ({
|
|
837
|
-
id: `${t.id}${
|
|
841
|
+
id: `${t.id}${bt}${pt}`,
|
|
838
842
|
class: "object tree-view-item",
|
|
839
843
|
leaf: true,
|
|
840
844
|
caption: t.name,
|
|
@@ -844,35 +848,25 @@ const vt = class {
|
|
|
844
848
|
})))
|
|
845
849
|
}, {
|
|
846
850
|
order: 2,
|
|
847
|
-
id: `parent${
|
|
848
|
-
parts: "category tree-view-item",
|
|
851
|
+
id: `parent${bt}${ft}`,
|
|
849
852
|
leaf: false,
|
|
850
|
-
caption: d(this,
|
|
851
|
-
startImgSrc:
|
|
853
|
+
caption: d(this, u, "f").tree.images,
|
|
854
|
+
startImgSrc: i,
|
|
852
855
|
checkbox: true,
|
|
853
856
|
checked: true,
|
|
854
857
|
expanded: true,
|
|
855
|
-
items: this.designData.images
|
|
856
|
-
id: `${t.id}${ft}${dt}`,
|
|
857
|
-
class: "object tree-view-item",
|
|
858
|
-
leaf: true,
|
|
859
|
-
caption: t.name,
|
|
860
|
-
startImgSrc: "objects/image",
|
|
861
|
-
checkbox: true,
|
|
862
|
-
checked: true
|
|
863
|
-
})))
|
|
858
|
+
items: d(this, f, "m", $).call(this, this.designData.images, ft, i)
|
|
864
859
|
}, {
|
|
865
860
|
order: 3,
|
|
866
|
-
id: `parent${
|
|
861
|
+
id: `parent${bt}${mt}`,
|
|
867
862
|
leaf: false,
|
|
868
|
-
caption: d(this,
|
|
863
|
+
caption: d(this, u, "f").tree.fonts,
|
|
869
864
|
startImgSrc: "controls/font",
|
|
870
865
|
checkbox: true,
|
|
871
866
|
checked: true,
|
|
872
867
|
expanded: true,
|
|
873
868
|
items: this.designData.fonts.map((t => ({
|
|
874
|
-
id: `${t.id}${
|
|
875
|
-
class: "object tree-view-item",
|
|
869
|
+
id: `${t.id}${bt}${mt}`,
|
|
876
870
|
leaf: true,
|
|
877
871
|
caption: t.name,
|
|
878
872
|
startImgSrc: "controls/font",
|
|
@@ -881,9 +875,9 @@ const vt = class {
|
|
|
881
875
|
})))
|
|
882
876
|
}, {
|
|
883
877
|
order: 4,
|
|
884
|
-
id: `${this.designData.designSystem.length > 0 ? this.designData.designSystem[0].id : "parent"}${
|
|
878
|
+
id: `${this.designData.designSystem.length > 0 ? this.designData.designSystem[0].id : "parent"}${bt}${ut}`,
|
|
885
879
|
leaf: true,
|
|
886
|
-
caption: d(this,
|
|
880
|
+
caption: d(this, u, "f").tree.designSystem,
|
|
887
881
|
startImgSrc: "objects/dso",
|
|
888
882
|
checkbox: true,
|
|
889
883
|
checked: true
|
|
@@ -893,7 +887,7 @@ const vt = class {
|
|
|
893
887
|
pathChanged(t) {
|
|
894
888
|
var e;
|
|
895
889
|
const s = ((e = this.selectedFile) === null || e === void 0 ? void 0 : e.size) > 0;
|
|
896
|
-
const i = d(this,
|
|
890
|
+
const i = d(this, q, "f").call(this, t) || s;
|
|
897
891
|
this.pathIsValid = i;
|
|
898
892
|
}
|
|
899
893
|
accessTokenChanged(t) {
|
|
@@ -909,10 +903,10 @@ const vt = class {
|
|
|
909
903
|
}
|
|
910
904
|
async componentWillLoad() {
|
|
911
905
|
var t, e;
|
|
912
|
-
p(this,
|
|
906
|
+
p(this, u, await n.getComponentStrings(this.el), "f");
|
|
913
907
|
p(this, g, this.extensions.map((t => `.${t}`)).join(", "), "f");
|
|
914
908
|
this.stylesChanged(this.styles);
|
|
915
|
-
d(this,
|
|
909
|
+
d(this, j, "f").call(this);
|
|
916
910
|
this.pathChanged(this.path);
|
|
917
911
|
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
912
|
}
|
|
@@ -927,10 +921,10 @@ const vt = class {
|
|
|
927
921
|
return e(s, {
|
|
928
922
|
class: "widget"
|
|
929
923
|
}, e("ch-theme", {
|
|
930
|
-
model:
|
|
924
|
+
model: Mt
|
|
931
925
|
}), e("section", {
|
|
932
926
|
class: "section"
|
|
933
|
-
}, d(this,
|
|
927
|
+
}, d(this, tt, "f").call(this), d(this, it, "f").call(this), d(this, ot, "f").call(this)));
|
|
934
928
|
}
|
|
935
929
|
static get assetsDirs() {
|
|
936
930
|
return [ "gx-ide-assets/design-import" ];
|
|
@@ -950,16 +944,32 @@ const vt = class {
|
|
|
950
944
|
}
|
|
951
945
|
};
|
|
952
946
|
|
|
953
|
-
|
|
947
|
+
u = new WeakMap, m = new WeakMap, b = new WeakMap, g = new WeakMap, k = new WeakMap,
|
|
954
948
|
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
|
-
|
|
949
|
+
W = new WeakMap, _ = new WeakMap, I = new WeakMap, C = new WeakMap, j = new WeakMap,
|
|
950
|
+
D = new WeakMap, S = new WeakMap, z = new WeakMap, P = new WeakMap, q = new WeakMap,
|
|
951
|
+
A = new WeakMap, E = new WeakMap, F = new WeakMap, V = new WeakMap, G = new WeakMap,
|
|
952
|
+
L = new WeakMap, O = new WeakMap, H = new WeakMap, N = new WeakMap, Y = new WeakMap,
|
|
953
|
+
J = new WeakMap, K = new WeakMap, Q = new WeakMap, R = new WeakMap, U = new WeakMap,
|
|
954
|
+
X = new WeakMap, Z = new WeakMap, tt = new WeakMap, et = new WeakMap, it = 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) {
|
|
957
|
+
return t.map(((t, a) => {
|
|
958
|
+
var o;
|
|
959
|
+
const n = ((o = t.variants) === null || o === void 0 ? void 0 : o.length) > 0;
|
|
960
|
+
return {
|
|
961
|
+
id: `${t.id}${bt}${e}`,
|
|
962
|
+
leaf: !n,
|
|
963
|
+
caption: t.name,
|
|
964
|
+
startImgSrc: s,
|
|
965
|
+
checkbox: true,
|
|
966
|
+
checked: true,
|
|
967
|
+
expanded: n,
|
|
968
|
+
selected: i === a,
|
|
969
|
+
items: n ? d(this, f, "m", _GxIdeImportFromDesign_recursiveDesignTreeItems).call(this, t.variants, e, s) : []
|
|
970
|
+
};
|
|
971
|
+
}));
|
|
972
|
+
}, T = function _GxIdeImportFromDesign_loadTreeItemCompositionModel(t) {
|
|
963
973
|
const e = [];
|
|
964
974
|
for (const s of t) {
|
|
965
975
|
let t = {
|
|
@@ -972,35 +982,35 @@ rt = new WeakMap, u = new WeakSet, D = function _GxIdeImportFromDesign_loadTreeI
|
|
|
972
982
|
};
|
|
973
983
|
if (s.controls) {
|
|
974
984
|
t = Object.assign(Object.assign({}, t), {
|
|
975
|
-
items: d(this,
|
|
985
|
+
items: d(this, f, "m", _GxIdeImportFromDesign_loadTreeItemCompositionModel).call(this, s.controls)
|
|
976
986
|
});
|
|
977
987
|
}
|
|
978
988
|
e.push(t);
|
|
979
989
|
}
|
|
980
990
|
return e;
|
|
981
|
-
},
|
|
991
|
+
}, B = function _GxIdeImportFromDesign_getCodeFactory(t) {
|
|
982
992
|
switch (t) {
|
|
983
|
-
case
|
|
984
|
-
case
|
|
993
|
+
case dt:
|
|
994
|
+
case pt:
|
|
985
995
|
this.textEditorFactoryCallback("code", l.code.slot, this.selectedDesignItem.code);
|
|
986
996
|
this.textEditorFactoryCallback("html", l.layout.slot, this.selectedDesignItem.layout);
|
|
987
997
|
break;
|
|
988
998
|
|
|
989
|
-
case
|
|
999
|
+
case ut:
|
|
990
1000
|
this.textEditorFactoryCallback("tokens", l.tokens.slot, this.selectedDesignItem.tokens);
|
|
991
1001
|
this.textEditorFactoryCallback("styles", l.styles.slot, this.selectedDesignItem.styles);
|
|
992
1002
|
break;
|
|
993
1003
|
}
|
|
994
|
-
},
|
|
1004
|
+
}, st = function _GxIdeImportFromDesign_renderDetailDataTree(t) {
|
|
995
1005
|
switch (t) {
|
|
996
|
-
case
|
|
997
|
-
case
|
|
998
|
-
this.detailTreeModel = d(this,
|
|
1006
|
+
case dt:
|
|
1007
|
+
case pt:
|
|
1008
|
+
this.detailTreeModel = d(this, f, "m", T).call(this, this.selectedDesignItem.composition.controls);
|
|
999
1009
|
break;
|
|
1000
1010
|
}
|
|
1001
1011
|
};
|
|
1002
1012
|
|
|
1003
|
-
|
|
1013
|
+
Wt.style = c;
|
|
1004
1014
|
|
|
1005
|
-
export {
|
|
1006
|
-
//# sourceMappingURL=p-
|
|
1015
|
+
export { Wt as gx_ide_design_import };
|
|
1016
|
+
//# sourceMappingURL=p-5fc133b2.entry.js.map
|