@genexus/genexus-ide-ui 3.2.20 → 3.2.22

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.
Files changed (68) hide show
  1. package/dist/cjs/genexus-ide-ui.cjs.js +1 -1
  2. package/dist/cjs/gx-ide-db-properties-configurator.cjs.entry.js +15 -5
  3. package/dist/cjs/gx-ide-db-properties-configurator.cjs.entry.js.map +1 -1
  4. package/dist/cjs/gx-ide-plugin-details.cjs.entry.js +31 -13
  5. package/dist/cjs/gx-ide-plugin-details.cjs.entry.js.map +1 -1
  6. package/dist/cjs/gx-ide-plugin-explorer.cjs.entry.js +97 -48
  7. package/dist/cjs/gx-ide-plugin-explorer.cjs.entry.js.map +1 -1
  8. package/dist/cjs/gx-ide-progress-bar.cjs.entry.js +1 -1
  9. package/dist/cjs/gx-ide-progress-bar.cjs.entry.js.map +1 -1
  10. package/dist/cjs/loader.cjs.js +1 -1
  11. package/dist/collection/components/_helpers/progress-bar/progress-bar.css +10 -0
  12. package/dist/collection/components/db-properties-configurator/db-properties-configurator.css +2 -7
  13. package/dist/collection/components/db-properties-configurator/db-properties-configurator.js +40 -5
  14. package/dist/collection/components/db-properties-configurator/db-properties-configurator.js.map +1 -1
  15. package/dist/collection/components/db-properties-configurator/gx-ide-assets/db-properties-configurator/shortcuts.json +15 -0
  16. package/dist/collection/components/plugin-details/gx-ide-assets/plugin-details/langs/plugin-details.lang.en.json +3 -1
  17. package/dist/collection/components/plugin-details/gx-ide-assets/plugin-details/langs/plugin-details.lang.ja.json +3 -1
  18. package/dist/collection/components/plugin-details/gx-ide-assets/plugin-details/langs/plugin-details.lang.zh.json +3 -1
  19. package/dist/collection/components/plugin-details/plugin-details.css +7 -1
  20. package/dist/collection/components/plugin-details/plugin-details.js +75 -16
  21. package/dist/collection/components/plugin-details/plugin-details.js.map +1 -1
  22. package/dist/collection/components/plugin-explorer/plugin-explorer.css +83 -26
  23. package/dist/collection/components/plugin-explorer/plugin-explorer.js +105 -56
  24. package/dist/collection/components/plugin-explorer/plugin-explorer.js.map +1 -1
  25. package/dist/components/gx-ide-db-properties-configurator.js +18 -7
  26. package/dist/components/gx-ide-db-properties-configurator.js.map +1 -1
  27. package/dist/components/gx-ide-plugin-details.js +40 -14
  28. package/dist/components/gx-ide-plugin-details.js.map +1 -1
  29. package/dist/components/gx-ide-plugin-explorer.js +107 -52
  30. package/dist/components/gx-ide-plugin-explorer.js.map +1 -1
  31. package/dist/components/progress-bar.js +1 -1
  32. package/dist/components/progress-bar.js.map +1 -1
  33. package/dist/esm/genexus-ide-ui.js +1 -1
  34. package/dist/esm/gx-ide-db-properties-configurator.entry.js +16 -6
  35. package/dist/esm/gx-ide-db-properties-configurator.entry.js.map +1 -1
  36. package/dist/esm/gx-ide-plugin-details.entry.js +31 -13
  37. package/dist/esm/gx-ide-plugin-details.entry.js.map +1 -1
  38. package/dist/esm/gx-ide-plugin-explorer.entry.js +97 -48
  39. package/dist/esm/gx-ide-plugin-explorer.entry.js.map +1 -1
  40. package/dist/esm/gx-ide-progress-bar.entry.js +1 -1
  41. package/dist/esm/gx-ide-progress-bar.entry.js.map +1 -1
  42. package/dist/esm/loader.js +1 -1
  43. package/dist/genexus-ide-ui/genexus-ide-ui.esm.js +1 -1
  44. package/dist/genexus-ide-ui/genexus-ide-ui.esm.js.map +1 -1
  45. package/dist/genexus-ide-ui/gx-ide-assets/db-properties-configurator/shortcuts.json +15 -0
  46. package/dist/genexus-ide-ui/gx-ide-assets/plugin-details/langs/plugin-details.lang.en.json +3 -1
  47. package/dist/genexus-ide-ui/gx-ide-assets/plugin-details/langs/plugin-details.lang.ja.json +3 -1
  48. package/dist/genexus-ide-ui/gx-ide-assets/plugin-details/langs/plugin-details.lang.zh.json +3 -1
  49. package/dist/genexus-ide-ui/{p-b3c5c315.entry.js → p-63e41ecd.entry.js} +2 -2
  50. package/dist/genexus-ide-ui/p-63e41ecd.entry.js.map +1 -0
  51. package/dist/genexus-ide-ui/p-9cf62f0a.entry.js +292 -0
  52. package/dist/genexus-ide-ui/p-9cf62f0a.entry.js.map +1 -0
  53. package/dist/genexus-ide-ui/p-e82d9621.entry.js +317 -0
  54. package/dist/genexus-ide-ui/p-e82d9621.entry.js.map +1 -0
  55. package/dist/genexus-ide-ui/p-ef8663dd.entry.js +284 -0
  56. package/dist/genexus-ide-ui/p-ef8663dd.entry.js.map +1 -0
  57. package/dist/types/components/db-properties-configurator/db-properties-configurator.d.ts +4 -0
  58. package/dist/types/components/plugin-details/plugin-details.d.ts +21 -3
  59. package/dist/types/components/plugin-explorer/plugin-explorer.d.ts +31 -4
  60. package/dist/types/components.d.ts +38 -14
  61. package/package.json +1 -1
  62. package/dist/genexus-ide-ui/p-514445ac.entry.js +0 -291
  63. package/dist/genexus-ide-ui/p-514445ac.entry.js.map +0 -1
  64. package/dist/genexus-ide-ui/p-b3c5c315.entry.js.map +0 -1
  65. package/dist/genexus-ide-ui/p-e759cfdb.entry.js +0 -281
  66. package/dist/genexus-ide-ui/p-e759cfdb.entry.js.map +0 -1
  67. package/dist/genexus-ide-ui/p-fc0bc991.entry.js +0 -204
  68. package/dist/genexus-ide-ui/p-fc0bc991.entry.js.map +0 -1
@@ -1,281 +0,0 @@
1
- import { r as e, h as t, H as i, a as o } from "./p-9b9ccd0c.js";
2
-
3
- import { g as a } from "./p-d42e842b.js";
4
-
5
- import "./p-6534555e.js";
6
-
7
- import "lit";
8
-
9
- import "lit/directives/when.js";
10
-
11
- import "lit/directives/if-defined.js";
12
-
13
- import { L as s } from "./p-311eedf3.js";
14
-
15
- import { c as n } from "./p-c5196b3b.js";
16
-
17
- const r = "button.button-secondary{border-color:var(--color-border-neutral-default)}:host{display:grid;block-size:100%;overflow:hidden;grid-template-rows:max-content 1fr max-content;background-color:var(--color-accent-surface-elevation-1);color:var(--color-text-neutral-default)}.section{display:contents}.hero{display:flex;align-items:flex-start;gap:var(--spacing-gap-xl);padding-block:var(--spacing-padding-l);padding-inline:var(--spacing-padding-l);border-block-end:var(--size-1) solid var(--color-border-surface-on-elevation-1)}.hero__text{flex:1;min-inline-size:0}.hero__title{margin:0;color:var(--color-text-neutral-default)}.hero__description{margin-block:var(--spacing-gap-xs) 0;margin-inline:0;color:var(--color-text-neutral-disabled);text-wrap:pretty}.hero__badge{flex:none;display:grid;place-items:center;inline-size:44px;block-size:44px;border-radius:var(--border-radius-m);background-color:var(--color-accent-item-hover);color:var(--color-icon-primary-default)}.main{overflow:auto;display:flex;flex-direction:column;gap:var(--spacing-gap-xxl);padding-block:var(--spacing-padding-l);padding-inline:var(--spacing-padding-l)}.field-section{display:flex;flex-direction:column;gap:var(--spacing-gap-l)}.field-section+.field-section{padding-block-start:var(--spacing-padding-xl);border-block-start:var(--size-1) solid var(--color-border-surface-on-elevation-1)}.field-section__head{display:flex;align-items:baseline;gap:var(--spacing-gap-m)}.field-section__title{font-family:var(--font-family-body);font-weight:var(--font-style-semi-bold);font-size:var(--font-size-caption-m);letter-spacing:0.06em;text-transform:uppercase;color:var(--color-text-neutral-neutral)}.fields{display:grid;grid-template-columns:repeat(2, minmax(0, 1fr));gap:var(--spacing-gap-l)}.field--full{grid-column:1/-1}.field--checkbox{display:flex;flex-direction:column;gap:var(--spacing-gap-xs)}.field--checkbox .field__row{display:flex;align-items:center;gap:var(--spacing-gap-xs)}.field--checkbox .label{margin:0;cursor:pointer}.field--checkbox .field__hint{margin:0;margin-inline-start:calc(var(--spacing-gap-m) + var(--spacing-gap-m));color:var(--color-text-neutral-disabled);text-wrap:pretty}.footer{padding-block:var(--spacing-padding-m);padding-inline:var(--spacing-padding-l)}";
18
-
19
- var l = undefined && undefined.__classPrivateFieldGet || function(e, t, i, o) {
20
- if (i === "a" && !o) throw new TypeError("Private accessor was defined without a getter");
21
- if (typeof t === "function" ? e !== t || !o : !t.has(e)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
22
- return i === "m" ? o : i === "a" ? o.call(e) : o ? o.value : t.get(e);
23
- };
24
-
25
- var c = undefined && undefined.__classPrivateFieldSet || function(e, t, i, o, a) {
26
- if (o === "m") throw new TypeError("Private method is not writable");
27
- if (o === "a" && !a) throw new TypeError("Private accessor was defined without a setter");
28
- if (typeof t === "function" ? e !== t || !a : !t.has(e)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
29
- return o === "a" ? a.call(e, i) : a ? a.value = i : t.set(e, i), i;
30
- };
31
-
32
- var d, p, h, u, f, b, g, v, m, x, w, y;
33
-
34
- const k = [ "resets/box-sizing", "components/button", "components/combo-box", "components/edit", "components/icon", "utils/form", "utils/layout", "utils/typography", "utils/spacing", "chameleon/scrollbar" ];
35
-
36
- const _ = a({
37
- category: "system",
38
- name: "database",
39
- colorType: "primary"
40
- });
41
-
42
- /**
43
- * Name of the property that toggles integrated security. Its presence in
44
- * `properties` is what drives the rendering of the Authentication section.
45
- */ const W = "TRUSTED_CONNECTION";
46
-
47
- const M = "USER_ID";
48
-
49
- const j = "USER_PASSWORD";
50
-
51
- /** Category that groups the authentication-related fields. */ const z = "authentication";
52
-
53
- const C = class {
54
- constructor(i) {
55
- e(this, i);
56
- // eslint-disable-next-line @stencil-community/own-props-must-be-private
57
- d.set(this, void 0);
58
- p.set(this, (e => {
59
- var t;
60
- return (t = e.value) !== null && t !== void 0 ? t : "";
61
- }));
62
- h.set(this, (() => {
63
- var e;
64
- return ((e = this.properties) !== null && e !== void 0 ? e : []).some((e => e.missing && l(this, p, "f").call(this, e).trim() === ""));
65
- }));
66
- u.set(this, (e => {
67
- var t;
68
- return ((t = e.standardValues) !== null && t !== void 0 ? t : []).map((e => ({
69
- value: e,
70
- caption: e
71
- })));
72
- }));
73
- f.set(this, (e => {
74
- var t;
75
- return e.name === W || e.name === M || e.name === j || ((t = e.category) === null || t === void 0 ? void 0 : t.toLowerCase()) === z;
76
- }));
77
- /** Whether the host sent the TRUSTED_CONNECTION property. Only then is the
78
- * Authentication section rendered. */ b.set(this, (() => {
79
- var e;
80
- return ((e = this.properties) !== null && e !== void 0 ? e : []).some((e => e.name === W));
81
- }));
82
- g.set(this, (e => t => {
83
- var i, o;
84
- const a = t.detail;
85
- const s = typeof a === "string" ? a : (o = (i = t.target) === null || i === void 0 ? void 0 : i.value) !== null && o !== void 0 ? o : "";
86
- this.propertyChangeCallback(e, s);
87
- }));
88
- v.set(this, (() => {
89
- var e;
90
- (e = this.cancelCallback) === null || e === void 0 ? void 0 : e.call(this);
91
- }));
92
- m.set(this, (() => {
93
- var e;
94
- (e = this.confirmCallback) === null || e === void 0 ? void 0 : e.call(this);
95
- }));
96
- // #region Renders
97
- x.set(this, (e => {
98
- const i = `field-${e.name}`;
99
- const o = l(this, p, "f").call(this, e);
100
- switch (e.control) {
101
- case "password":
102
- return t("ch-edit", {
103
- id: i,
104
- class: "input",
105
- type: "password",
106
- showPasswordButton: true,
107
- debounce: n.inputDebounce,
108
- value: o,
109
- onInput: l(this, g, "f").call(this, e.name)
110
- });
111
-
112
- case "combo":
113
- return t("ch-combo-box-render", {
114
- id: i,
115
- class: "combo-box",
116
- value: o,
117
- model: l(this, u, "f").call(this, e),
118
- onInput: l(this, g, "f").call(this, e.name),
119
- onChange: l(this, g, "f").call(this, e.name)
120
- });
121
-
122
- case "checkbox":
123
- return t("ch-checkbox", {
124
- id: i,
125
- class: "checkbox",
126
- value: o,
127
- checkedValue: "Yes",
128
- unCheckedValue: "No",
129
- onInput: l(this, g, "f").call(this, e.name)
130
- });
131
-
132
- case "combo-editable":
133
- return t("ch-combo-box-render", {
134
- id: i,
135
- class: "combo-box",
136
- suggest: true,
137
- suggestDebounce: n.inputDebounce,
138
- value: o,
139
- model: l(this, u, "f").call(this, e),
140
- onInput: l(this, g, "f").call(this, e.name),
141
- onChange: l(this, g, "f").call(this, e.name),
142
- part: `combo-box combo-box--editable combo-box--${e.name}`
143
- });
144
-
145
- case "custom":
146
- case "readonly":
147
- return t("ch-edit", {
148
- id: i,
149
- class: "input",
150
- readonly: true,
151
- value: o,
152
- part: `input input--${e.control} input--${e.name}`
153
- });
154
-
155
- // "text"
156
- default:
157
- return t("ch-edit", {
158
- id: i,
159
- class: "input",
160
- debounce: n.inputDebounce,
161
- value: o,
162
- onInput: l(this, g, "f").call(this, e.name),
163
- part: `input input--text input--${e.name}`
164
- });
165
- }
166
- }));
167
- w.set(this, (e => {
168
- const i = `field-${e.name}`;
169
- const o = e.control === "readonly" || e.control === "custom";
170
- const a = e.control === "checkbox";
171
- if (a) {
172
- return t("div", {
173
- class: "field field--checkbox field--full",
174
- key: e.name
175
- }, t("div", {
176
- class: "field__row"
177
- }, l(this, x, "f").call(this, e), t("label", {
178
- class: "label",
179
- htmlFor: i
180
- }, e.label)), e.description && t("p", {
181
- class: "field__hint body-regular-s"
182
- }, e.description));
183
- }
184
- return t("div", {
185
- class: "field field-block",
186
- key: e.name
187
- }, t("label", {
188
- class: {
189
- label: true,
190
- "label--disabled": o
191
- },
192
- htmlFor: i
193
- }, e.label), l(this, x, "f").call(this, e));
194
- }));
195
- y.set(this, ((e, i) => t("section", {
196
- class: "field-section"
197
- }, t("div", {
198
- class: "field-section__head"
199
- }, t("span", {
200
- class: "field-section__title"
201
- }, e)), t("div", {
202
- class: "fields"
203
- }, i.map(l(this, w, "f"))))));
204
- this.properties = [];
205
- this.cancelCallback = undefined;
206
- this.confirmCallback = undefined;
207
- this.propertyChangeCallback = undefined;
208
- }
209
- async componentWillLoad() {
210
- c(this, d, await s.getComponentStrings(this.el), "f");
211
- }
212
- // #endregion Renders
213
- render() {
214
- var e;
215
- const o = l(this, d, "f").header.title;
216
- const a = l(this, d, "f").header.description;
217
- const s = l(this, d, "f").sections;
218
- const n = (e = this.properties) !== null && e !== void 0 ? e : [];
219
- const r = l(this, b, "f").call(this);
220
- // The Authentication section is only rendered when TRUSTED_CONNECTION is
221
- // present; otherwise every field stays in the always-present Connection
222
- // section so nothing is dropped.
223
- const c = r ? n.filter(l(this, f, "f")) : [];
224
- const p = r ? n.filter((e => !l(this, f, "f").call(this, e))) : n;
225
- return t(i, {
226
- class: "widget"
227
- }, t("ch-theme", {
228
- model: k
229
- }), t("section", {
230
- class: "section"
231
- }, t("div", {
232
- class: "hero"
233
- }, t("div", {
234
- class: "hero__text"
235
- }, t("h1", {
236
- class: "hero__title subtitle-semi-bold-l"
237
- }, o), a && t("p", {
238
- class: "hero__description body-regular-s"
239
- }, a)), t("div", {
240
- class: "hero__badge",
241
- "aria-hidden": "true"
242
- }, t("ch-image", {
243
- class: "icon-xl",
244
- src: _
245
- }))), t("div", {
246
- class: "main scrollable"
247
- }, p.length > 0 && l(this, y, "f").call(this, s.connection, p), r && c.length > 0 && l(this, y, "f").call(this, s.authentication, c)), t("footer", {
248
- class: "dialog-footer-with-border footer"
249
- }, t("div", {
250
- class: "buttons-spacer"
251
- }, t("button", {
252
- class: "button-secondary",
253
- id: "button-cancel",
254
- type: "button",
255
- onClick: l(this, v, "f"),
256
- part: "button-cancel"
257
- }, l(this, d, "f").footer.btnCancel), t("button", {
258
- class: "button-primary",
259
- id: "button-confirm",
260
- type: "button",
261
- disabled: l(this, h, "f").call(this),
262
- onClick: l(this, m, "f"),
263
- part: "button-confirm"
264
- }, l(this, d, "f").footer.btnConfirm)))));
265
- }
266
- static get assetsDirs() {
267
- return [ "gx-ide-assets/db-properties-configurator" ];
268
- }
269
- get el() {
270
- return o(this);
271
- }
272
- };
273
-
274
- d = new WeakMap, p = new WeakMap, h = new WeakMap, u = new WeakMap, f = new WeakMap,
275
- b = new WeakMap, g = new WeakMap, v = new WeakMap, m = new WeakMap, x = new WeakMap,
276
- w = new WeakMap, y = new WeakMap;
277
-
278
- C.style = r;
279
-
280
- export { C as gx_ide_db_properties_configurator };
281
- //# sourceMappingURL=p-e759cfdb.entry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["dbPropertiesConfiguratorCss","CSS_BUNDLES","DATABASE_ICON","getIconPath","category","name","colorType","TRUSTED_CONNECTION","USER_ID","USER_PASSWORD","AUTH_CATEGORY","GxIdeDbPropertiesConfigurator","_GxIdeDbPropertiesConfigurator_componentLocale","set","this","_GxIdeDbPropertiesConfigurator_getValue","field","_a","value","_GxIdeDbPropertiesConfigurator_hasPendingRequired","properties","some","missing","__classPrivateFieldGet","call","trim","_GxIdeDbPropertiesConfigurator_buildComboModel","standardValues","map","caption","_GxIdeDbPropertiesConfigurator_isAuthField","toLowerCase","_GxIdeDbPropertiesConfigurator_hasTrustedConnection","_GxIdeDbPropertiesConfigurator_valueChangeHandler","event","detail","_b","target","propertyChangeCallback","_GxIdeDbPropertiesConfigurator_cancelButtonClickedHandler","cancelCallback","_GxIdeDbPropertiesConfigurator_confirmButtonClickedHandler","confirmCallback","_GxIdeDbPropertiesConfigurator_renderControl","fieldId","control","h","id","class","type","showPasswordButton","debounce","config","inputDebounce","onInput","model","onChange","checkedValue","unCheckedValue","suggest","suggestDebounce","part","readonly","_GxIdeDbPropertiesConfigurator_renderField","isReadonly","isCheckbox","key","htmlFor","label","description","_GxIdeDbPropertiesConfigurator_renderSection","title","fields","componentWillLoad","__classPrivateFieldSet","Locale","getComponentStrings","el","render","header","sections","allFields","hasAuthSection","authFields","filter","connectionFields","Host","src","length","connection","authentication","onClick","footer","btnCancel","disabled","btnConfirm"],"sources":["src/components/db-properties-configurator/db-properties-configurator.scss?tag=gx-ide-db-properties-configurator&encapsulation=shadow","src/components/db-properties-configurator/db-properties-configurator.tsx"],"sourcesContent":["@import \"../../global/temporary-mercury-overrides/_button.scss\";\n\n// The component reproduces the Mercury \"Set required properties\" connection\n// dialog. Real Mercury classes (.dialog-header-with-border, .field-group-\n// justified-end, .label, .input, .combo-box, .button-*, typography) come from\n// the loaded bundles; the rules below only add the scaffolding Mercury does\n// not define (hero banner, badge, close button, field help) using DS tokens.\n\n:host {\n display: grid;\n block-size: 100%;\n overflow: hidden;\n grid-template-rows: max-content 1fr max-content;\n background-color: var(--color-accent-surface-elevation-1);\n color: var(--color-text-neutral-default);\n}\n\n.section {\n // section is just for semantics; the host owns the grid.\n display: contents;\n}\n\n// #region Hero\n.hero {\n display: flex;\n align-items: flex-start;\n gap: var(--spacing-gap-xl);\n padding-block: var(--spacing-padding-l);\n padding-inline: var(--spacing-padding-l);\n border-block-end: var(--size-1) solid\n var(--color-border-surface-on-elevation-1);\n}\n\n.hero__text {\n flex: 1;\n min-inline-size: 0;\n}\n\n.hero__title {\n margin: 0;\n color: var(--color-text-neutral-default);\n}\n\n.hero__description {\n margin-block: var(--spacing-gap-xs) 0;\n margin-inline: 0;\n color: var(--color-text-neutral-disabled);\n text-wrap: pretty;\n}\n\n.hero__badge {\n flex: none;\n display: grid;\n place-items: center;\n inline-size: 44px;\n block-size: 44px;\n border-radius: var(--border-radius-m);\n background-color: var(--color-accent-item-hover);\n color: var(--color-icon-primary-default);\n}\n// #endregion Hero\n\n// #region Body\n.main {\n overflow: auto;\n display: flex;\n flex-direction: column;\n gap: var(--spacing-gap-xxl);\n padding-block: var(--spacing-padding-l);\n padding-inline: var(--spacing-padding-l);\n}\n\n// Field section: a quiet uppercase header + its field grid. Sections after\n// the first get a divider so the body reads as structured groups.\n.field-section {\n display: flex;\n flex-direction: column;\n gap: var(--spacing-gap-l);\n}\n\n.field-section + .field-section {\n padding-block-start: var(--spacing-padding-xl);\n border-block-start: var(--size-1) solid\n var(--color-border-surface-on-elevation-1);\n}\n\n.field-section__head {\n display: flex;\n align-items: baseline;\n gap: var(--spacing-gap-m);\n}\n\n.field-section__title {\n font-family: var(--font-family-body);\n font-weight: var(--font-style-semi-bold);\n font-size: var(--font-size-caption-m);\n letter-spacing: 0.06em;\n text-transform: uppercase;\n color: var(--color-text-neutral-neutral);\n}\n\n// Two-column field grid. Each field occupies one column; checkbox fields\n// (and any other field marked as full-width) span the entire row, forcing\n// the following fields to wrap onto the next row.\n.fields {\n display: grid;\n grid-template-columns: repeat(2, minmax(0, 1fr));\n gap: var(--spacing-gap-l);\n}\n\n.field--full {\n grid-column: 1 / -1;\n}\n\n// Inline checkbox field: control + label on the same row, optional help text\n// flows below aligned with the label.\n.field--checkbox {\n display: flex;\n flex-direction: column;\n gap: var(--spacing-gap-xs);\n}\n\n.field--checkbox .field__row {\n display: flex;\n align-items: center;\n gap: var(--spacing-gap-xs);\n}\n\n.field--checkbox .label {\n margin: 0;\n cursor: pointer;\n}\n\n// Help text below a checkbox, indented to align with the label past the box.\n.field--checkbox .field__hint {\n margin: 0;\n margin-inline-start: calc(var(--spacing-gap-m) + var(--spacing-gap-m));\n color: var(--color-text-neutral-disabled);\n text-wrap: pretty;\n}\n// #endregion Body\n\n// #region Footer\n.footer {\n padding-block: var(--spacing-padding-m);\n padding-inline: var(--spacing-padding-l);\n}\n// #endregion Footer\n","import { Component, Host, Prop, Element, h } from \"@stencil/core\";\n\nimport { MercuryBundles, getIconPath } from \"@genexus/mercury\";\nimport { ComboBoxModel } from \"@genexus/chameleon-controls-library\";\n\nimport { Locale } from \"../../common/locale\";\nimport { config } from \"../../common/config\";\n\nconst CSS_BUNDLES: MercuryBundles = [\n \"resets/box-sizing\",\n \"components/button\",\n \"components/combo-box\",\n \"components/edit\",\n \"components/icon\",\n \"utils/form\",\n \"utils/layout\",\n \"utils/typography\",\n \"utils/spacing\",\n \"chameleon/scrollbar\"\n];\n\nconst DATABASE_ICON = getIconPath({\n category: \"system\",\n name: \"database\",\n colorType: \"primary\"\n});\n\n/**\n * Name of the property that toggles integrated security. Its presence in\n * `properties` is what drives the rendering of the Authentication section.\n */\nconst TRUSTED_CONNECTION = \"TRUSTED_CONNECTION\";\nconst USER_ID = \"USER_ID\";\nconst USER_PASSWORD = \"USER_PASSWORD\";\n\n/** Category that groups the authentication-related fields. */\nconst AUTH_CATEGORY = \"authentication\";\n\n@Component({\n tag: \"gx-ide-db-properties-configurator\",\n styleUrl: \"db-properties-configurator.scss\",\n shadow: true,\n assetsDirs: [\"gx-ide-assets/db-properties-configurator\"]\n})\nexport class GxIdeDbPropertiesConfigurator {\n // eslint-disable-next-line @stencil-community/own-props-must-be-private\n #componentLocale: any;\n\n @Element() el: HTMLGxIdeDbPropertiesConfiguratorElement;\n\n /**\n * The list of properties to configure. Acts as the single source of truth:\n * the dialog reads each value from `DSPropertyField.value` and notifies the\n * host of every edit through `propertyChangeCallback`.\n */\n @Prop() readonly properties: DSPropertyField[] = [];\n\n /**\n * Callback invoked when the user cancels the configuration.\n */\n @Prop() readonly cancelCallback!: CancelCallback;\n\n /**\n * Callback invoked when the user confirms the configuration.\n */\n @Prop() readonly confirmCallback!: ConfirmCallback;\n\n /**\n * Callback invoked on every input change. Receives the name of the\n * property that changed and its new value. The host is expected to apply\n * the change and push an updated `properties` array back to the component.\n */\n @Prop() readonly propertyChangeCallback!: PropertyChangeCallback;\n\n async componentWillLoad() {\n this.#componentLocale = await Locale.getComponentStrings(this.el);\n }\n\n #getValue = (field: DSPropertyField): string => field.value ?? \"\";\n\n #hasPendingRequired = (): boolean =>\n (this.properties ?? []).some(\n field => field.missing && this.#getValue(field).trim() === \"\"\n );\n\n #buildComboModel = (field: DSPropertyField): ComboBoxModel =>\n (field.standardValues ?? []).map(value => ({ value, caption: value }));\n\n #isAuthField = (field: DSPropertyField): boolean =>\n field.name === TRUSTED_CONNECTION ||\n field.name === USER_ID ||\n field.name === USER_PASSWORD ||\n field.category?.toLowerCase() === AUTH_CATEGORY;\n\n /** Whether the host sent the TRUSTED_CONNECTION property. Only then is the\n * Authentication section rendered. */\n #hasTrustedConnection = (): boolean =>\n (this.properties ?? []).some(field => field.name === TRUSTED_CONNECTION);\n\n #valueChangeHandler =\n (name: string) => (event: CustomEvent<string> | InputEvent) => {\n const detail = (event as CustomEvent<string>).detail;\n const value =\n typeof detail === \"string\"\n ? detail\n : ((event.target as HTMLChEditElement)?.value ?? \"\");\n this.propertyChangeCallback(name, value);\n };\n\n #cancelButtonClickedHandler = () => {\n this.cancelCallback?.();\n };\n\n #confirmButtonClickedHandler = () => {\n this.confirmCallback?.();\n };\n\n // #region Renders\n\n #renderControl = (field: DSPropertyField) => {\n const fieldId = `field-${field.name}`;\n const value = this.#getValue(field);\n\n switch (field.control) {\n case \"password\":\n return (\n <ch-edit\n id={fieldId}\n class=\"input\"\n type=\"password\"\n showPasswordButton\n debounce={config.inputDebounce}\n value={value}\n onInput={this.#valueChangeHandler(field.name)}\n ></ch-edit>\n );\n\n case \"combo\":\n return (\n <ch-combo-box-render\n id={fieldId}\n class=\"combo-box\"\n value={value}\n model={this.#buildComboModel(field)}\n onInput={this.#valueChangeHandler(field.name)}\n onChange={this.#valueChangeHandler(field.name)}\n ></ch-combo-box-render>\n );\n\n case \"checkbox\":\n return (\n <ch-checkbox\n id={fieldId}\n class=\"checkbox\"\n value={value}\n checkedValue=\"Yes\"\n unCheckedValue=\"No\"\n onInput={this.#valueChangeHandler(field.name)}\n ></ch-checkbox>\n );\n\n case \"combo-editable\":\n return (\n <ch-combo-box-render\n id={fieldId}\n class=\"combo-box\"\n suggest\n suggestDebounce={config.inputDebounce}\n value={value}\n model={this.#buildComboModel(field)}\n onInput={this.#valueChangeHandler(field.name)}\n onChange={this.#valueChangeHandler(field.name)}\n part={`combo-box combo-box--editable combo-box--${field.name}`}\n ></ch-combo-box-render>\n );\n\n case \"custom\":\n case \"readonly\":\n return (\n <ch-edit\n id={fieldId}\n class=\"input\"\n readonly\n value={value}\n part={`input input--${field.control} input--${field.name}`}\n ></ch-edit>\n );\n\n // \"text\"\n default:\n return (\n <ch-edit\n id={fieldId}\n class=\"input\"\n debounce={config.inputDebounce}\n value={value}\n onInput={this.#valueChangeHandler(field.name)}\n part={`input input--text input--${field.name}`}\n ></ch-edit>\n );\n }\n };\n\n #renderField = (field: DSPropertyField) => {\n const fieldId = `field-${field.name}`;\n const isReadonly =\n field.control === \"readonly\" || field.control === \"custom\";\n const isCheckbox = field.control === \"checkbox\";\n\n if (isCheckbox) {\n return (\n <div class=\"field field--checkbox field--full\" key={field.name}>\n <div class=\"field__row\">\n {this.#renderControl(field)}\n <label class=\"label\" htmlFor={fieldId}>\n {field.label}\n </label>\n </div>\n {field.description && (\n <p class=\"field__hint body-regular-s\">{field.description}</p>\n )}\n </div>\n );\n }\n\n return (\n <div class=\"field field-block\" key={field.name}>\n <label\n class={{ \"label\": true, \"label--disabled\": isReadonly }}\n htmlFor={fieldId}\n >\n {field.label}\n </label>\n\n {this.#renderControl(field)}\n </div>\n );\n };\n\n #renderSection = (title: string, fields: DSPropertyField[]) => (\n <section class=\"field-section\">\n <div class=\"field-section__head\">\n <span class=\"field-section__title\">{title}</span>\n </div>\n <div class=\"fields\">{fields.map(this.#renderField)}</div>\n </section>\n );\n\n // #endregion Renders\n\n render() {\n const title = this.#componentLocale.header.title;\n const description = this.#componentLocale.header.description;\n const sections = this.#componentLocale.sections;\n\n const allFields = this.properties ?? [];\n const hasAuthSection = this.#hasTrustedConnection();\n\n // The Authentication section is only rendered when TRUSTED_CONNECTION is\n // present; otherwise every field stays in the always-present Connection\n // section so nothing is dropped.\n const authFields = hasAuthSection\n ? allFields.filter(this.#isAuthField)\n : [];\n const connectionFields = hasAuthSection\n ? allFields.filter(field => !this.#isAuthField(field))\n : allFields;\n\n return (\n <Host class=\"widget\">\n <ch-theme model={CSS_BUNDLES}></ch-theme>\n <section class=\"section\">\n <div class=\"hero\">\n <div class=\"hero__text\">\n <h1 class=\"hero__title subtitle-semi-bold-l\">{title}</h1>\n {description && (\n <p class=\"hero__description body-regular-s\">{description}</p>\n )}\n </div>\n <div class=\"hero__badge\" aria-hidden=\"true\">\n <ch-image class=\"icon-xl\" src={DATABASE_ICON}></ch-image>\n </div>\n </div>\n\n <div class=\"main scrollable\">\n {connectionFields.length > 0 &&\n this.#renderSection(sections.connection, connectionFields)}\n\n {hasAuthSection &&\n authFields.length > 0 &&\n this.#renderSection(sections.authentication, authFields)}\n </div>\n\n <footer class=\"dialog-footer-with-border footer\">\n <div class=\"buttons-spacer\">\n <button\n class=\"button-secondary\"\n id=\"button-cancel\"\n type=\"button\"\n onClick={this.#cancelButtonClickedHandler}\n part=\"button-cancel\"\n >\n {this.#componentLocale.footer.btnCancel}\n </button>\n <button\n class=\"button-primary\"\n id=\"button-confirm\"\n type=\"button\"\n disabled={this.#hasPendingRequired()}\n onClick={this.#confirmButtonClickedHandler}\n part=\"button-confirm\"\n >\n {this.#componentLocale.footer.btnConfirm}\n </button>\n </div>\n </footer>\n </section>\n </Host>\n );\n }\n}\n\nexport type DSControlKind =\n | \"checkbox\"\n | \"text\"\n | \"password\"\n | \"combo\"\n | \"combo-editable\"\n | \"custom\"\n | \"readonly\";\n\nexport interface DSPropertyField {\n /** `PropertyData.name` — key used to set the property value. */\n name: string;\n /** `definition.displayName`. */\n label: string;\n /** `definition.description` (rendered below the control). */\n description?: string;\n /** `definition.category` (optional grouping). */\n category?: string;\n\n /** Control resolved by the host. */\n control: DSControlKind;\n\n /** `PropertyData.value` (masked when password). */\n value: string;\n /** `required && isDefault` (host detection). */\n missing: boolean;\n\n // combos:\n /** `PropertyData.standardValues`. */\n standardValues?: string[];\n /** `PropertyData.isStandardValuesExclusive`. */\n exclusive?: boolean;\n}\n\nexport type CancelCallback = () => void | Promise<void>;\n\nexport type ConfirmCallback = () => void | Promise<void>;\n\nexport type PropertyChangeCallback = (\n name: string,\n value: string\n) => void | Promise<void>;\n"],"mappings":";;;;;;;;;;;;;;;;AAAA,MAAMA,IAA8B;;;;;;;;;;;;;;;;;ACQpC,MAAMC,IAA8B,EAClC,qBACA,qBACA,wBACA,mBACA,mBACA,cACA,gBACA,oBACA,iBACA;;AAGF,MAAMC,IAAgBC,EAAY;EAChCC,UAAU;EACVC,MAAM;EACNC,WAAW;;;;;;GAOb,OAAMC,IAAqB;;AAC3B,MAAMC,IAAU;;AAChB,MAAMC,IAAgB;;8DAGtB,OAAMC,IAAgB;;MAQTC,IAA6B;;;;QAExCC,EAAAC,IAAAC,WAAA;IAgCAC,EAAAF,IAAAC,OAAaE;MAAsB,IAAAC;MAAa,QAAAA,IAAAD,EAAME,WAAK,QAAAD,WAAA,IAAAA,IAAI;AAAE;IAEjEE,EAAAN,IAAAC,OAAsB;;MACpB,SAACG,IAAAH,KAAKM,gBAAU,QAAAH,WAAA,IAAAA,IAAI,IAA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a as n } from "./p-9b9ccd0c.js";
2
-
3
- import { g as s } from "./p-d42e842b.js";
4
-
5
- import "./p-6534555e.js";
6
-
7
- import "lit";
8
-
9
- import "lit/directives/when.js";
10
-
11
- import "lit/directives/if-defined.js";
12
-
13
- import { L as r } from "./p-311eedf3.js";
14
-
15
- import { c as a } from "./p-c5196b3b.js";
16
-
17
- const c = ":host{display:grid;block-size:100%;position:relative}.outer-container{grid-template-rows:max-content 1fr}.inner-container{position:relative}.list-box::part(item){width:100%;min-width:100%}.list-box::part(item__action){gap:var(--spacing-gap-xs)}.list-box::part(item__caption){font-weight:var(--font-style-semi-bold)}.list-box::part(custom-container){display:flex;flex-direction:column;gap:var(--spacing-gap-xs);width:100%}.list-box::part(custom-image){block-size:32px;inline-size:32px;margin-inline-end:12px}.list-box::part(custom-description){font-size:var(--font-size-body-s);margin:0;opacity:0.8;line-height:var(--line-height-relaxed);margin-inline-end:8px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.list-box::part(item__block-end start){width:100%;min-width:100%}.list-box::part(custom-brand){font-weight:var(--font-style-semi-bold);display:flex;gap:var(--spacing-gap-xs);align-items:center}.list-box::part(custom-brand-icon){--icon-path:var(--icon__system_user_neutral--enabled);display:inline-block;background-image:var(--icon-path);background-size:contain;background-repeat:no-repeat;background-position:center center;block-size:16px;inline-size:16px}.list-box::part(custom-button){--button-color:var(--color-text-primary-default);--button-color--enabled:var(--color-text-neutral-on-text);--button-color--active:var(--color-text-neutral-on-pressed);display:inline-grid;grid-auto-flow:column;grid-auto-columns:max-content;justify-content:center;padding-block:var(--control-padding-block);padding-inline:var(--control-padding-inline);box-sizing:border-box;color:var(--button-color);font-weight:var(--font-style-semi-bold);margin-block-end:auto;margin-block-start:auto;text-transform:capitalize}.list-box::part(custom-button):hover{--button-color:var(--color-text-primary-hover)}.list-box::part(custom-button):active{--button-color:var(--color-text-primary-pressed)}";
18
-
19
- var l = undefined && undefined.__classPrivateFieldGet || function(t, e, i, o) {
20
- if (i === "a" && !o) throw new TypeError("Private accessor was defined without a getter");
21
- if (typeof e === "function" ? t !== e || !o : !e.has(t)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
22
- return i === "m" ? o : i === "a" ? o.call(t) : o ? o.value : e.get(t);
23
- };
24
-
25
- var d = undefined && undefined.__classPrivateFieldSet || function(t, e, i, o, n) {
26
- if (o === "m") throw new TypeError("Private method is not writable");
27
- if (o === "a" && !n) throw new TypeError("Private accessor was defined without a setter");
28
- if (typeof e === "function" ? t !== e || !n : !e.has(t)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
29
- return o === "a" ? n.call(t, i) : n ? n.value = i : e.set(t, i), i;
30
- };
31
-
32
- var p, u, h, m, g, b, f, x;
33
-
34
- const v = s({
35
- category: "system",
36
- name: "filters",
37
- colorType: "on-surface"
38
- });
39
-
40
- // plugin icon if no iconUrl was provided
41
- const w = t(`./gx-ide-assets/plugin-manager/images/plugin-icon.svg`);
42
-
43
- const y = [ "resets/box-sizing", "components/list-box", "components/button", "components/edit", "utils/form", "utils/layout", "utils/typography", "utils/spacing", "chameleon/scrollbar" ];
44
-
45
- const k = class {
46
- constructor(t) {
47
- e(this, t);
48
- /**
49
- * The component hard-coded strings translations.
50
- */
51
- // eslint-disable-next-line @stencil-community/own-props-must-be-private
52
- p.set(this, void 0);
53
- u.set(this, false);
54
- h.set(this, ((t, e) => i => {
55
- i.stopPropagation();
56
- this.executeActionCallback(t, e);
57
- }));
58
- m.set(this, (t => {
59
- const e = [];
60
- const o = {
61
- type: "separator"
62
- };
63
- t === null || t === void 0 ? void 0 : t.forEach(((t, n) => {
64
- const s = !!t.action;
65
- const r = {
66
- id: t.id,
67
- caption: t.name,
68
- imgSrc: t.iconUrl,
69
- type: "actionable",
70
- additionalInformation: {
71
- "stretch-start": {
72
- center: [ {
73
- part: "custom-image",
74
- jsx: () => i("img", {
75
- part: "custom-image",
76
- src: t.iconUrl || w,
77
- alt: `${l(this, p, "f").logotype.replace("PLUGIN_NAME_PLACEHOLDER", t.name)}`,
78
- loading: "lazy"
79
- })
80
- } ]
81
- },
82
- "block-end": {
83
- start: [ {
84
- part: "custom-description custom-button custom-container custom-brand custom-brand-icon custom-image item__block-end start",
85
- jsx: () => i("div", {
86
- part: "custom-container",
87
- title: t.description
88
- }, i("p", {
89
- part: "custom-description"
90
- }, t.description), i("small", {
91
- part: "custom-brand"
92
- }, t.publisher))
93
- // {
94
- // slot: "abcd"
95
- // } as ActionListItemAdditionalSlot // slot not working
96
- } ]
97
- },
98
- "stretch-end": s && {
99
- center: [ {
100
- jsx: () => i("button", {
101
- part: "custom-button",
102
- onClick: l(this, h, "f").call(this, t.id, t.action)
103
- }, t.action)
104
- } ]
105
- }
106
- }
107
- };
108
- if (n !== 0) {
109
- e.push(o);
110
- }
111
- e.push(r);
112
- }));
113
- return e;
114
- }));
115
- g.set(this, (async t => {
116
- this.loading = true;
117
- const e = t.detail;
118
- this.plugins = await this.filterCallback(e);
119
- }));
120
- b.set(this, (() => {
121
- const t = this.pluginsActionListModel.length;
122
- return t ? i("ch-action-list-render", {
123
- model: this.pluginsActionListModel,
124
- class: "list-box",
125
- selection: "single",
126
- onSelectedItemsChange: l(this, x, "f")
127
- }) : i("gx-ide-empty-state", {
128
- isAnimated: l(this, u, "f"),
129
- class: "recent-objects__empty-state",
130
- stateIconSrc: v,
131
- stateTitle: l(this, p, "f").emptyStateTitle,
132
- stateDescription: l(this, p, "f").emptyStateDescription
133
- });
134
- }));
135
- f.set(this, (() => {
136
- d(this, u, true, "f");
137
- return i("gx-ide-loader", {
138
- loaderTitle: l(this, p, "f").loaderTitle,
139
- description: l(this, p, "f").loaderDescription,
140
- show: true
141
- });
142
- }));
143
- x.set(this, (t => {
144
- var e;
145
- const i = (e = t.detail[0]) === null || e === void 0 ? void 0 : e.item.type;
146
- if (i === "actionable") {
147
- const e = t.detail[0].item.id;
148
- this.showDetailsCallback(e);
149
- }
150
- }));
151
- this.loading = true;
152
- this.pluginsActionListModel = [];
153
- this.plugins = undefined;
154
- this.filterCallback = undefined;
155
- this.showDetailsCallback = undefined;
156
- this.executeActionCallback = undefined;
157
- }
158
- pluginsChangedHandler(t) {
159
- this.pluginsActionListModel = l(this, m, "f").call(this, t);
160
- this.loading = false;
161
- }
162
- async componentWillLoad() {
163
- d(this, p, await r.getComponentStrings(this.el), "f");
164
- this.pluginsChangedHandler(this.plugins);
165
- }
166
- render() {
167
- return i(o, {
168
- class: "widget"
169
- }, i("ch-theme", {
170
- model: y
171
- }), i("div", {
172
- class: "outer-container field-group"
173
- }, i("ch-edit", {
174
- id: "search-plugins-input",
175
- class: "input",
176
- accessibleName: l(this, p, "f").accessibleName,
177
- placeholder: l(this, p, "f").searchInputPlaceholder,
178
- debounce: a.inputDebounce,
179
- onInput: l(this, g, "f"),
180
- type: "search"
181
- }), i("div", {
182
- class: "inner-container"
183
- }, this.loading ? l(this, f, "f").call(this) : l(this, b, "f").call(this))));
184
- }
185
- static get assetsDirs() {
186
- return [ "gx-ide-assets/plugin-explorer" ];
187
- }
188
- get el() {
189
- return n(this);
190
- }
191
- static get watchers() {
192
- return {
193
- plugins: [ "pluginsChangedHandler" ]
194
- };
195
- }
196
- };
197
-
198
- p = new WeakMap, u = new WeakMap, h = new WeakMap, m = new WeakMap, g = new WeakMap,
199
- b = new WeakMap, f = new WeakMap, x = new WeakMap;
200
-
201
- k.style = c;
202
-
203
- export { k as gx_ide_plugin_explorer };
204
- //# sourceMappingURL=p-fc0bc991.entry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["pluginExplorerCss","FILTER_ICON","getIconPath","category","name","colorType","EXTENSION_ICON_IMG","getAssetPath","CSS_BUNDLES","GxIdePluginManager","_GxIdePluginManager_componentLocale","set","this","_GxIdePluginManager_animateEmptyState","_GxIdePluginManager_actionListButtonClickHandler","pluginId","action","event","stopPropagation","executeActionCallback","_GxIdePluginManager_mapPluginDataToActionListModel","pluginsData","pluginsActionListModel","separatorItem","type","forEach","pluginData","index","hasActionButton","pluginItem","id","caption","imgSrc","iconUrl","additionalInformation","center","part","jsx","h","src","alt","__classPrivateFieldGet","logotype","replace","loading","start","title","description","publisher","onClick","call","push","_GxIdePluginManager_pluginsFilterInputHandler","async","filterValue","detail","plugins","filterCallback","_GxIdePluginManager_evaluateContentToDisplay","pluginsToDisplay","length","model","class","selection","onSelectedItemsChange","_GxIdePluginManager_pluginSelectedHandler","isAnimated","stateIconSrc","stateTitle","emptyStateTitle","stateDescription","emptyStateDescription","_GxIdePluginManager_renderLoader","__classPrivateFieldSet","loaderTitle","loaderDescription","show","eventType","_a","item","showDetailsCallback","pluginsChangedHandler","newPlugins","componentWillLoad","Locale","getComponentStrings","el","render","Host","accessibleName","placeholder","searchInputPlaceholder","debounce","config","inputDebounce","onInput"],"sources":["src/components/plugin-explorer/plugin-explorer.scss?tag=gx-ide-plugin-explorer&encapsulation=shadow","src/components/plugin-explorer/plugin-explorer.tsx"],"sourcesContent":["@import \"../../global/gx-ide-mixins.scss\";\n\n:host {\n display: grid;\n block-size: 100%;\n position: relative;\n}\n\n.outer-container {\n grid-template-rows: max-content 1fr;\n}\n.inner-container {\n position: relative;\n}\n\n.list-box::part(item) {\n width: 100%;\n min-width: 100%;\n}\n.list-box::part(item__action) {\n gap: var(--spacing-gap-xs);\n}\n.list-box::part(item__caption) {\n font-weight: var(--font-style-semi-bold);\n}\n.list-box::part(custom-container) {\n display: flex;\n flex-direction: column;\n gap: var(--spacing-gap-xs);\n width: 100%;\n}\n.list-box::part(custom-image) {\n block-size: 32px;\n inline-size: 32px;\n margin-inline-end: 12px;\n}\n.list-box::part(custom-description) {\n font-size: var(--font-size-body-s);\n margin: 0;\n opacity: 0.8;\n line-height: var(--line-height-relaxed);\n margin-inline-end: 8px;\n @include ellipsis();\n}\n.list-box::part(item__block-end start) {\n width: 100%;\n min-width: 100%;\n}\n.list-box::part(custom-brand) {\n font-weight: var(--font-style-semi-bold);\n display: flex;\n gap: var(--spacing-gap-xs);\n align-items: center;\n}\n.list-box::part(custom-brand-icon) {\n // --icon-path: var(--icon__system_publish_on-elevation--enabled);\n --icon-path: var(--icon__system_user_neutral--enabled);\n display: inline-block;\n background-image: var(--icon-path);\n background-size: contain;\n background-repeat: no-repeat;\n background-position: center center;\n block-size: 16px;\n inline-size: 16px;\n}\n.list-box::part(custom-button) {\n // WA: Style the button like a Mercury primary button\n // \"Slot\" not working apparently.\n --button-color: var(--color-text-primary-default);\n --button-color--enabled: var(--color-text-neutral-on-text);\n --button-color--active: var(--color-text-neutral-on-pressed);\n display: inline-grid;\n grid-auto-flow: column;\n grid-auto-columns: max-content;\n justify-content: center;\n padding-block: var(--control-padding-block);\n padding-inline: var(--control-padding-inline);\n box-sizing: border-box;\n color: var(--button-color);\n font-weight: var(--font-style-semi-bold);\n margin-block-end: auto;\n margin-block-start: auto;\n text-transform: capitalize;\n}\n.list-box::part(custom-button):hover {\n --button-color: var(--color-text-primary-hover);\n}\n.list-box::part(custom-button):active {\n --button-color: var(--color-text-primary-pressed);\n}\n","import {\n Component,\n Host,\n Prop,\n State,\n Element,\n h,\n Watch,\n getAssetPath\n} from \"@stencil/core\";\n\nimport { getIconPath, MercuryBundles } from \"@genexus/mercury\";\nimport { Locale } from \"../../common/locale\";\nimport { config } from \"../../common/config\";\n\nimport { ActionListModel } from \"@genexus/chameleon-controls-library\";\nimport {\n ActionListItemModel,\n ActionListItemModelExtended,\n ActionListItemSeparator\n} from \"@genexus/chameleon-controls-library/dist/types/components/action-list/types\";\n\nconst FILTER_ICON = getIconPath({\n category: \"system\",\n name: \"filters\",\n colorType: \"on-surface\"\n});\n\n// plugin icon if no iconUrl was provided\nconst EXTENSION_ICON_IMG = getAssetPath(\n `./gx-ide-assets/plugin-manager/images/plugin-icon.svg`\n);\n\nconst CSS_BUNDLES: MercuryBundles = [\n \"resets/box-sizing\",\n \"components/list-box\",\n \"components/button\",\n \"components/edit\",\n \"utils/form\",\n \"utils/layout\",\n \"utils/typography\",\n \"utils/spacing\",\n \"chameleon/scrollbar\"\n];\n\n@Component({\n tag: \"gx-ide-plugin-explorer\",\n styleUrl: \"plugin-explorer.scss\",\n shadow: true,\n assetsDirs: [\"gx-ide-assets/plugin-explorer\"]\n})\nexport class GxIdePluginManager {\n /**\n * The component hard-coded strings translations.\n */\n // eslint-disable-next-line @stencil-community/own-props-must-be-private\n #componentLocale: any;\n #animateEmptyState: boolean = false;\n\n @Element() el: HTMLGxIdePluginExplorerElement;\n\n /**\n * If true it will hide the content, and display a loader\n */\n @State() loading: boolean = true;\n\n /**\n * The plugins model as ActionListModel, which is the model the ch-action-list expects\n */\n @State() pluginsActionListModel: ActionListModel = [];\n\n /**\n * List of plugins to display. Usually used to initialize the component.\n */\n @Prop({ mutable: true }) plugins: PluginData[];\n @Watch(\"plugins\")\n pluginsChangedHandler(newPlugins: PluginData[]) {\n this.pluginsActionListModel =\n this.#mapPluginDataToActionListModel(newPlugins);\n this.loading = false;\n }\n\n /**\n * Callback that should be invoked when the user updates the filter.\n * A debounce should be applied before invoking this function.\n */\n @Prop() readonly filterCallback!: (text: string) => Promise<PluginData[]>;\n\n /**\n * Callback that should be invoked when the user clicks or presses Enter\n * on a selected plugin item.\n */\n @Prop() readonly showDetailsCallback!: (pluginId: string) => Promise<void>;\n\n /**\n * Callback that should be invoked when the user clicks on a plugin's action button.\n */\n @Prop() readonly executeActionCallback!: (\n pluginId: string,\n action: PluginAction\n ) => Promise<void>;\n\n async componentWillLoad() {\n this.#componentLocale = await Locale.getComponentStrings(this.el);\n this.pluginsChangedHandler(this.plugins);\n }\n\n #actionListButtonClickHandler =\n (pluginId: string, action: PluginAction) => (event: MouseEvent) => {\n event.stopPropagation();\n this.executeActionCallback(pluginId, action);\n };\n\n #mapPluginDataToActionListModel = (\n pluginsData: PluginData[]\n ): ActionListModel => {\n const pluginsActionListModel: ActionListModel = [];\n const separatorItem: ActionListItemSeparator = { type: \"separator\" };\n\n pluginsData?.forEach((pluginData, index) => {\n const hasActionButton = !!pluginData.action;\n const pluginItem = {\n id: pluginData.id,\n caption: pluginData.name,\n imgSrc: pluginData.iconUrl,\n type: \"actionable\",\n\n additionalInformation: {\n \"stretch-start\": {\n center: [\n {\n part: \"custom-image\",\n jsx: () => (\n <img\n part=\"custom-image\"\n src={pluginData.iconUrl || EXTENSION_ICON_IMG}\n alt={`${this.#componentLocale.logotype.replace(\n \"PLUGIN_NAME_PLACEHOLDER\",\n pluginData.name\n )}`}\n loading=\"lazy\"\n />\n )\n }\n ]\n },\n \"block-end\": {\n start: [\n {\n part: \"custom-description custom-button custom-container custom-brand custom-brand-icon custom-image item__block-end start\",\n jsx: () => (\n <div part=\"custom-container\" title={pluginData.description}>\n <p part=\"custom-description\">{pluginData.description}</p>\n <small part=\"custom-brand\">{pluginData.publisher}</small>\n </div>\n )\n }\n // {\n // slot: \"abcd\"\n // } as ActionListItemAdditionalSlot // slot not working\n ]\n },\n \"stretch-end\": hasActionButton && {\n center: [\n {\n jsx: () => (\n <button\n part=\"custom-button\"\n onClick={this.#actionListButtonClickHandler(\n pluginData.id,\n pluginData.action\n )}\n >\n {pluginData.action}\n </button>\n )\n }\n ]\n }\n }\n } as ActionListItemModel;\n if (index !== 0) {\n pluginsActionListModel.push(separatorItem);\n }\n pluginsActionListModel.push(pluginItem);\n });\n\n return pluginsActionListModel;\n };\n\n #pluginsFilterInputHandler = async (\n event: CustomEvent<string> | InputEvent\n ) => {\n this.loading = true;\n const filterValue = event.detail as string;\n this.plugins = await this.filterCallback(filterValue);\n };\n\n #evaluateContentToDisplay = () => {\n const pluginsToDisplay = this.pluginsActionListModel.length;\n return pluginsToDisplay ? (\n <ch-action-list-render\n model={this.pluginsActionListModel}\n class=\"list-box\"\n selection=\"single\"\n onSelectedItemsChange={this.#pluginSelectedHandler}\n >\n {/* <p slot=\"abcd\">Slot for \"abcd\" id</p> */}\n </ch-action-list-render>\n ) : (\n <gx-ide-empty-state\n isAnimated={this.#animateEmptyState}\n class=\"recent-objects__empty-state\"\n stateIconSrc={FILTER_ICON}\n stateTitle={this.#componentLocale.emptyStateTitle}\n stateDescription={this.#componentLocale.emptyStateDescription}\n ></gx-ide-empty-state>\n );\n };\n\n #renderLoader = () => {\n this.#animateEmptyState = true;\n return (\n <gx-ide-loader\n loaderTitle={this.#componentLocale.loaderTitle}\n description={this.#componentLocale.loaderDescription}\n show\n ></gx-ide-loader>\n );\n };\n\n #pluginSelectedHandler = (\n event: CustomEvent<ActionListItemModelExtended[]>\n ) => {\n const eventType = event.detail[0]?.item.type;\n if (eventType === \"actionable\") {\n const pluginId = event.detail[0].item.id;\n this.showDetailsCallback(pluginId);\n }\n };\n\n render() {\n return (\n <Host class=\"widget\">\n <ch-theme model={CSS_BUNDLES}></ch-theme>\n\n <div class=\"outer-container field-group\">\n <ch-edit\n id=\"search-plugins-input\"\n class=\"input\"\n accessibleName={this.#componentLocale.accessibleName}\n placeholder={this.#componentLocale.searchInputPlaceholder}\n debounce={config.inputDebounce}\n onInput={this.#pluginsFilterInputHandler}\n type=\"search\"\n ></ch-edit>\n <div class=\"inner-container\">\n {this.loading\n ? this.#renderLoader()\n : this.#evaluateContentToDisplay()}\n </div>\n </div>\n </Host>\n );\n }\n}\n\nexport type PluginData = {\n id: string;\n iconUrl: string;\n name: string;\n description: string;\n publisher: string;\n action?: PluginAction;\n};\n\nexport type PluginAction = \"install\" | \"update\";\n"],"mappings":";;;;;;;;;;;;;;;;AAAA,MAAMA,IAAoB;;;;;;;;;;;;;;;;;ACsB1B,MAAMC,IAAcC,EAAY;EAC9BC,UAAU;EACVC,MAAM;EACNC,WAAW;;;yCAIb;MAAMC,IAAqBC,EACzB;;AAGF,MAAMC,IAA8B,EAClC,qBACA,uBACA,qBACA,mBACA,cACA,gBACA,oBACA,iBACA;;MASWC,IAAkB;;;;;;;QAK7BC,EAAAC,IAAAC,WAAA;IACAC,EAAAF,IAAAC,MAA8B;IAkD9BE,EAAAH,IAAAC,OACE,CAACG,GAAkBC,MAA0BC;MAC3CA,EAAMC;MACNN,KAAKO,sBAAsBJ,GAAUC;AAAO;IAGhDI,EAAAT,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