@genexus/genexus-ide-ui 1.0.55 → 1.0.56

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 (27) hide show
  1. package/dist/cjs/genexus-ide-ui.cjs.js +1 -1
  2. package/dist/cjs/gx-ide-gam-installation-settings.cjs.entry.js +94 -66
  3. package/dist/cjs/gx-ide-gam-installation-settings.cjs.entry.js.map +1 -1
  4. package/dist/cjs/loader.cjs.js +1 -1
  5. package/dist/collection/components/gam-installation-settings/gam-installation-settings.css +13 -43
  6. package/dist/collection/components/gam-installation-settings/gam-installation-settings.js +139 -150
  7. package/dist/collection/components/gam-installation-settings/gam-installation-settings.js.map +1 -1
  8. package/dist/collection/components/gam-installation-settings/gx-ide-assets/gam-installation-settings/langs/gam-installation-settings.lang.en.json +2 -1
  9. package/dist/collection/components/gam-installation-settings/gx-ide-assets/gam-installation-settings/langs/gam-installation-settings.lang.ja.json +3 -2
  10. package/dist/collection/components/gam-installation-settings/gx-ide-assets/gam-installation-settings/langs/gam-installation-settings.lang.zh.json +2 -1
  11. package/dist/components/gx-ide-gam-installation-settings.js +100 -85
  12. package/dist/components/gx-ide-gam-installation-settings.js.map +1 -1
  13. package/dist/esm/genexus-ide-ui.js +1 -1
  14. package/dist/esm/gx-ide-gam-installation-settings.entry.js +95 -67
  15. package/dist/esm/gx-ide-gam-installation-settings.entry.js.map +1 -1
  16. package/dist/esm/loader.js +1 -1
  17. package/dist/genexus-ide-ui/genexus-ide-ui.esm.js +1 -1
  18. package/dist/genexus-ide-ui/genexus-ide-ui.esm.js.map +1 -1
  19. package/dist/genexus-ide-ui/gx-ide-assets/gam-installation-settings/langs/gam-installation-settings.lang.en.json +2 -1
  20. package/dist/genexus-ide-ui/gx-ide-assets/gam-installation-settings/langs/gam-installation-settings.lang.ja.json +3 -2
  21. package/dist/genexus-ide-ui/gx-ide-assets/gam-installation-settings/langs/gam-installation-settings.lang.zh.json +2 -1
  22. package/dist/genexus-ide-ui/{p-36a97020.entry.js → p-3f44de6a.entry.js} +157 -134
  23. package/dist/genexus-ide-ui/p-3f44de6a.entry.js.map +1 -0
  24. package/dist/types/components/gam-installation-settings/gam-installation-settings.d.ts +14 -38
  25. package/dist/types/components.d.ts +6 -33
  26. package/package.json +1 -1
  27. package/dist/genexus-ide-ui/p-36a97020.entry.js.map +0 -1
@@ -1,97 +1,124 @@
1
+ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
2
+ if (kind === "a" && !f)
3
+ throw new TypeError("Private accessor was defined without a getter");
4
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
5
+ throw new TypeError("Cannot read private member from an object whose class did not declare it");
6
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
7
+ };
8
+ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
9
+ if (kind === "m")
10
+ throw new TypeError("Private method is not writable");
11
+ if (kind === "a" && !f)
12
+ throw new TypeError("Private accessor was defined without a setter");
13
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
14
+ throw new TypeError("Cannot write private member to an object whose class did not declare it");
15
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
16
+ };
17
+ var _GxIdeGamInstallationSettings__componentLocale, _GxIdeGamInstallationSettings_futureUpgradesComboEl, _GxIdeGamInstallationSettings_panelsCheckboxEl, _GxIdeGamInstallationSettings_webPanelsCheckboxEl, _GxIdeGamInstallationSettings_cancelCallbackHandler, _GxIdeGamInstallationSettings_repairCallbackHandler, _GxIdeGamInstallationSettings_renderFilters, _GxIdeGamInstallationSettings_renderDescription, _GxIdeGamInstallationSettings_saveCallbackHandler;
18
+ /* eslint-disable @stencil-community/own-props-must-be-private */
1
19
  /* STENCIL IMPORTS */
2
20
  import { Host, h } from "@stencil/core";
3
- /* OTHER LIBRARIES IMPORTS */
4
- /* CUSTOM IMPORTS */
5
- import { config } from "../../common/config";
6
21
  import { Locale } from "../../common/locale";
22
+ const CSS_BUNDLES = [
23
+ "resets/box-sizing",
24
+ "components/button",
25
+ "components/checkbox",
26
+ "components/combo-box",
27
+ "components/edit",
28
+ "utils/form",
29
+ "utils/layout",
30
+ "utils/typography"
31
+ ];
7
32
  export class GxIdeGamInstallationSettings {
8
33
  constructor() {
9
- this.renderedFirstTime = false;
10
- // 7.LISTENERS //
11
- // 8.PUBLIC METHODS API //
12
- // 9.LOCAL METHODS //
13
- this.repairCallbackHandler = async () => {
34
+ /**
35
+ * The component hard-coded strings translations.
36
+ */
37
+ _GxIdeGamInstallationSettings__componentLocale.set(this, void 0);
38
+ _GxIdeGamInstallationSettings_futureUpgradesComboEl.set(this, void 0);
39
+ _GxIdeGamInstallationSettings_panelsCheckboxEl.set(this, void 0);
40
+ _GxIdeGamInstallationSettings_webPanelsCheckboxEl.set(this, void 0);
41
+ _GxIdeGamInstallationSettings_cancelCallbackHandler.set(this, () => {
42
+ this.cancelCallback();
43
+ });
44
+ _GxIdeGamInstallationSettings_repairCallbackHandler.set(this, async () => {
14
45
  if (this.saveCallback) {
15
46
  const data = {
16
- importWebPanels: this.webPanelsCheckboxEl.checked,
17
- importPanels: this.panelsCheckboxEl.checked,
18
- futureUpgrades: this.futureUpgradesComboEl.value
19
- ? this.futureUpgradesComboEl.value
47
+ importWebPanels: !!__classPrivateFieldGet(this, _GxIdeGamInstallationSettings_webPanelsCheckboxEl, "f").value,
48
+ importPanels: !!__classPrivateFieldGet(this, _GxIdeGamInstallationSettings_panelsCheckboxEl, "f").value,
49
+ futureUpgrades: __classPrivateFieldGet(this, _GxIdeGamInstallationSettings_futureUpgradesComboEl, "f").value
50
+ ? __classPrivateFieldGet(this, _GxIdeGamInstallationSettings_futureUpgradesComboEl, "f").value
20
51
  : null
21
52
  };
22
53
  await this.repairCallback(data);
23
54
  }
24
- };
25
- this.saveCallbackHandler = async () => {
26
- if (this.saveCallback) {
27
- const data = {
28
- importWebPanels: this.webPanelsCheckboxEl.checked,
29
- importPanels: this.panelsCheckboxEl.checked,
30
- futureUpgrades: this.futureUpgradesComboEl.value
31
- ? this.futureUpgradesComboEl.value
32
- : null
33
- };
34
- await this.saveCallback(data);
35
- }
36
- };
37
- this.cancelCallbackHandler = () => {
38
- this.cancelCallback();
39
- };
40
- /* Renders*/
41
- this.renderHeader = () => {
42
- return (h("header", { class: "header", slot: "header" }, this.configurationType === "installation"
55
+ });
56
+ _GxIdeGamInstallationSettings_renderFilters.set(this, () => {
57
+ var _a;
58
+ return (h("div", { class: "field-group", role: "region", "aria-label": __classPrivateFieldGet(this, _GxIdeGamInstallationSettings__componentLocale, "f").filters.filtersHeading }, h("h5", { class: "subtitle-regular-s margin-block-end-s" }, __classPrivateFieldGet(this, _GxIdeGamInstallationSettings__componentLocale, "f").filters.filtersHeading), h("div", { class: "filters__wrapper" }, h("div", { class: "field-group", role: "group", "aria-labelledby": "frontend-objects-label" }, h("div", { class: "field field-block" }, h("label", { id: "frontend-objects-label", class: "label" }, __classPrivateFieldGet(this, _GxIdeGamInstallationSettings__componentLocale, "f").filters.frontEndObjects), h("div", { class: "field-group-inline" }, h("ch-checkbox", { class: "checkbox", checkedValue: "webPanels", value: ((_a = this.defaultConfiguration) === null || _a === void 0 ? void 0 : _a.importWebPanels)
59
+ ? "webPanels"
60
+ : undefined, caption: __classPrivateFieldGet(this, _GxIdeGamInstallationSettings__componentLocale, "f").filters.webPanelsCheckbox, ref: (el) => (__classPrivateFieldSet(this, _GxIdeGamInstallationSettings_webPanelsCheckboxEl, el, "f")), part: "web-panels-checkbox" }), h("ch-checkbox", { class: "checkbox", checkedValue: "panels", value: this.defaultConfiguration.importPanels &&
61
+ this.canSelectPanels
62
+ ? "panels"
63
+ : undefined, caption: __classPrivateFieldGet(this, _GxIdeGamInstallationSettings__componentLocale, "f").filters.panelsCheckbox, disabled: !this.canSelectPanels, ref: (el) => (__classPrivateFieldSet(this, _GxIdeGamInstallationSettings_panelsCheckboxEl, el, "f")), part: "panels-checkbox" }))), h("div", { class: "field field-block" }, h("label", { class: "label", htmlFor: "future-upgrades-combo" }, __classPrivateFieldGet(this, _GxIdeGamInstallationSettings__componentLocale, "f").filters.futureUpgradesComboLabel), h("ch-combo-box-render", { id: "future-upgrades-combo", class: "combo-box", value: this.defaultConfiguration.futureUpgrades, ref: (el) => (__classPrivateFieldSet(this, _GxIdeGamInstallationSettings_futureUpgradesComboEl, el, "f")), model: [
64
+ {
65
+ value: "automatic",
66
+ caption: __classPrivateFieldGet(this, _GxIdeGamInstallationSettings__componentLocale, "f").manageFutureUpgrades
67
+ .installAutomatically
68
+ },
69
+ {
70
+ value: "prompt",
71
+ caption: __classPrivateFieldGet(this, _GxIdeGamInstallationSettings__componentLocale, "f").manageFutureUpgrades.promptMe
72
+ },
73
+ {
74
+ value: "never",
75
+ caption: __classPrivateFieldGet(this, _GxIdeGamInstallationSettings__componentLocale, "f").manageFutureUpgrades.neverUpdate
76
+ }
77
+ ], part: "future-upgrades-combo" }))))));
78
+ });
79
+ _GxIdeGamInstallationSettings_renderDescription.set(this, () => {
80
+ return (h("div", { class: "description" }, this.configurationType === "installation"
43
81
  ? [
44
- h("gxg-text", { type: "text-regular" }, this._componentLocale.header.headerTextInstallation
82
+ h("p", { class: "text-body" }, __classPrivateFieldGet(this, _GxIdeGamInstallationSettings__componentLocale, "f").header.headerTextInstallation
45
83
  .firstSentence),
46
- h("gxg-text", { type: "text-regular" }, this._componentLocale.header.headerTextInstallation
84
+ h("p", { class: "text-body" }, __classPrivateFieldGet(this, _GxIdeGamInstallationSettings__componentLocale, "f").header.headerTextInstallation
47
85
  .secondSentence),
48
- h("gxg-text", { type: "text-regular" }, this._componentLocale.header.headerTextInstallation
86
+ h("p", { class: "text-body" }, __classPrivateFieldGet(this, _GxIdeGamInstallationSettings__componentLocale, "f").header.headerTextInstallation
49
87
  .thirdSentence)
50
88
  ]
51
89
  : [
52
- h("gxg-text", { type: "text-regular" }, this._componentLocale.header.headerTextUpdate.firstSentence),
53
- h("gxg-text", { type: "text-regular" }, this._componentLocale.header.headerTextUpdate.secondSentence)
90
+ h("p", { class: "text-body" }, __classPrivateFieldGet(this, _GxIdeGamInstallationSettings__componentLocale, "f").header.headerTextUpdate.firstSentence),
91
+ h("p", { class: "text-body" }, __classPrivateFieldGet(this, _GxIdeGamInstallationSettings__componentLocale, "f").header.headerTextUpdate.secondSentence)
54
92
  ]));
55
- };
56
- this.renderFilters = () => {
57
- var _a;
58
- return (h("div", { class: "filters" }, h("gxg-title", { type: "title-05" }, this._componentLocale.filters.filtersHeading), h("div", { class: "filters__wrapper" }, h("div", { class: "filters__wrapper-left" }, h("gxg-label", { labelPosition: "above", center: false }, "Frontend Objects"), h("div", { class: "filters__front-end-objects" }, h("gxg-form-checkbox", { label: this._componentLocale.filters.webPanelsCheckbox, part: "web-panels-checkbox", slot: "footer-start", ref: (el) => (this.webPanelsCheckboxEl = el), checked: (_a = this.defaultConfiguration) === null || _a === void 0 ? void 0 : _a.importWebPanels }), h("gxg-form-checkbox", { label: this._componentLocale.filters.panelsCheckbox, part: "panels-checkbox", slot: "footer-start", ref: (el) => (this.panelsCheckboxEl = el), checked: this.defaultConfiguration.importPanels && this.canSelectPanels, disabled: !this.canSelectPanels }))), h("div", { class: "filters__wrapper-right" }, h("gxg-combo-box", { label: this._componentLocale.filters.futureUpgradesComboLabel, disableFilter: true, part: "future-upgrades-combo", ref: (el) => (this.futureUpgradesComboEl = el), value: this.defaultConfiguration.futureUpgrades }, h("gxg-combo-box-item", { value: "automatic" }, this._componentLocale.manageFutureUpgrades
59
- .installAutomatically), h("gxg-combo-box-item", { value: "prompt" }, this._componentLocale.manageFutureUpgrades.promptMe), h("gxg-combo-box-item", { value: "never" }, this._componentLocale.manageFutureUpgrades.neverUpdate))))));
60
- };
61
- this.displayTitle = false;
62
- this.configurationType = "installation";
63
- this.repairCallback = undefined;
64
- this.saveCallback = undefined;
93
+ });
94
+ _GxIdeGamInstallationSettings_saveCallbackHandler.set(this, async () => {
95
+ if (this.saveCallback) {
96
+ const data = {
97
+ importWebPanels: !!__classPrivateFieldGet(this, _GxIdeGamInstallationSettings_webPanelsCheckboxEl, "f").value,
98
+ importPanels: !!__classPrivateFieldGet(this, _GxIdeGamInstallationSettings_panelsCheckboxEl, "f").value,
99
+ futureUpgrades: __classPrivateFieldGet(this, _GxIdeGamInstallationSettings_futureUpgradesComboEl, "f").value
100
+ ? __classPrivateFieldGet(this, _GxIdeGamInstallationSettings_futureUpgradesComboEl, "f").value
101
+ : null
102
+ };
103
+ await this.saveCallback(data);
104
+ }
105
+ });
65
106
  this.cancelCallback = undefined;
107
+ this.canSelectPanels = false;
108
+ this.configurationType = "installation";
66
109
  this.defaultConfiguration = {
67
110
  importWebPanels: true,
68
111
  importPanels: false,
69
112
  futureUpgrades: "prompt"
70
113
  };
71
- this.canSelectPanels = false;
114
+ this.repairCallback = undefined;
115
+ this.saveCallback = undefined;
72
116
  }
73
- // 6.COMPONENT LIFECYCLE METHODS //
74
117
  async componentWillLoad() {
75
- this._componentLocale = await Locale.getComponentStrings(this.el);
118
+ __classPrivateFieldSet(this, _GxIdeGamInstallationSettings__componentLocale, await Locale.getComponentStrings(this.el), "f");
76
119
  }
77
- componentDidRender() {
78
- if (!this.renderedFirstTime) {
79
- this.componentDidRenderFirstTime.emit(this._componentLocale.componentName);
80
- this.renderedFirstTime = true;
81
- }
82
- }
83
- // 10.RENDER() FUNCTION //
84
120
  render() {
85
- return (h(Host, { class: "gx-ide-component" }, h("div", { class: "gx-ide-main-wrapper" }, h("gx-ide-container", { noHeadingPadding: true, headingPaddingTop: true, noContentPadding: true, noContentGap: true, noAboveFooterPadding: true, containerTitle: this.displayTitle ? this._componentLocale.componentName : null, slimmerFooter: config.gxIdeContainer.slimmerFooter }, this.renderHeader(), this.renderFilters(), h("div", { class: "footer-above", slot: "footer-above" }, this.configurationType === "update" ? (h("div", { class: "footer-above__left" }, h("p", null, this._componentLocale.footer.footerRepairText))) : null, h("div", { class: "footer-above__right" }, this.configurationType === "update" ? ([
86
- h("p", null, this._componentLocale.footer.footerSaveText),
87
- h("p", null, this._componentLocale.footer.footerCancelText)
88
- ]) : (
89
- // configurationType is "installation"
90
- h("p", null, this._componentLocale.footer.enableSecurity)))), this.configurationType === "update" ? (h("gxg-button", { type: "outlined", slot: "footer-start", onClick: this.repairCallbackHandler }, this._componentLocale.footer.repairButton)) : null, h("gxg-button", { type: "outlined", slot: "footer-end", onClick: this.cancelCallbackHandler }, this.configurationType === "update"
91
- ? this._componentLocale.footer.cancelButton
92
- : this._componentLocale.footer.no), h("gxg-button", { slot: "footer-end", onClick: this.saveCallbackHandler }, this.configurationType === "update"
93
- ? this._componentLocale.footer.confirmButton
94
- : this._componentLocale.footer.yes)))));
121
+ return (h(Host, { class: "widget spacing-body" }, h("ch-theme", { model: CSS_BUNDLES }), h("div", { class: "control-header control-header-with-border" }, __classPrivateFieldGet(this, _GxIdeGamInstallationSettings_renderDescription, "f").call(this)), h("div", { class: "main-content field-group" }, __classPrivateFieldGet(this, _GxIdeGamInstallationSettings_renderFilters, "f").call(this)), h("div", { class: "footer" }, this.configurationType === "update" && (h("div", { class: "footer-info" }, h("p", null, "Use Repair to import GAM components again"))), h("div", { class: "control-footer-with-border control-footer-space-between" }, this.configurationType === "update" && (h("button", { id: "repair-button", class: "button-secondary", onClick: __classPrivateFieldGet(this, _GxIdeGamInstallationSettings_repairCallbackHandler, "f"), part: "button button--repair" }, "Repair")), h("div", { class: "buttons-spacer" }, h("button", { id: "cancel-button", class: "button-secondary", onClick: __classPrivateFieldGet(this, _GxIdeGamInstallationSettings_cancelCallbackHandler, "f"), part: "button button--cancel" }, "Cancel"), h("button", { id: "confirm-button", class: "button-primary", onClick: __classPrivateFieldGet(this, _GxIdeGamInstallationSettings_saveCallbackHandler, "f"), part: "button button--confirm" }, "Save"))))));
95
122
  }
96
123
  static get is() { return "gx-ide-gam-installation-settings"; }
97
124
  static get encapsulation() { return "shadow"; }
@@ -108,11 +135,32 @@ export class GxIdeGamInstallationSettings {
108
135
  static get assetsDirs() { return ["gx-ide-assets/gam-installation-settings"]; }
109
136
  static get properties() {
110
137
  return {
111
- "displayTitle": {
138
+ "cancelCallback": {
139
+ "type": "unknown",
140
+ "mutable": false,
141
+ "complexType": {
142
+ "original": "CancelCallback",
143
+ "resolved": "() => Promise<void>",
144
+ "references": {
145
+ "CancelCallback": {
146
+ "location": "local",
147
+ "path": "/home/runner/work/genexus-ide-ui/genexus-ide-ui/src/components/gam-installation-settings/gam-installation-settings.tsx",
148
+ "id": "src/components/gam-installation-settings/gam-installation-settings.tsx::CancelCallback"
149
+ }
150
+ }
151
+ },
152
+ "required": false,
153
+ "optional": false,
154
+ "docs": {
155
+ "tags": [],
156
+ "text": "Callback invoked when the user wants to cancel the exportation process"
157
+ }
158
+ },
159
+ "canSelectPanels": {
112
160
  "type": "boolean",
113
161
  "mutable": false,
114
162
  "complexType": {
115
- "original": "false",
163
+ "original": "boolean",
116
164
  "resolved": "boolean",
117
165
  "references": {}
118
166
  },
@@ -120,9 +168,9 @@ export class GxIdeGamInstallationSettings {
120
168
  "optional": false,
121
169
  "docs": {
122
170
  "tags": [],
123
- "text": "If true it displays the component title on the header"
171
+ "text": "Determines 'Panels' checkbox activation, enabled only if an SD generator is in the KB.\nOtherwise, the checkbox is disabled."
124
172
  },
125
- "attribute": "display-title",
173
+ "attribute": "can-select-panels",
126
174
  "reflect": false,
127
175
  "defaultValue": "false"
128
176
  },
@@ -144,17 +192,17 @@ export class GxIdeGamInstallationSettings {
144
192
  "reflect": false,
145
193
  "defaultValue": "\"installation\""
146
194
  },
147
- "repairCallback": {
195
+ "defaultConfiguration": {
148
196
  "type": "unknown",
149
197
  "mutable": false,
150
198
  "complexType": {
151
- "original": "RepairCallback",
152
- "resolved": "(config: GamConfigData) => Promise<void>",
199
+ "original": "GamConfigData | undefined",
200
+ "resolved": "{ importWebPanels: boolean; importPanels: boolean; futureUpgrades: \"prompt\" | \"never\" | \"automatic\"; }",
153
201
  "references": {
154
- "RepairCallback": {
202
+ "GamConfigData": {
155
203
  "location": "local",
156
204
  "path": "/home/runner/work/genexus-ide-ui/genexus-ide-ui/src/components/gam-installation-settings/gam-installation-settings.tsx",
157
- "id": "src/components/gam-installation-settings/gam-installation-settings.tsx::RepairCallback"
205
+ "id": "src/components/gam-installation-settings/gam-installation-settings.tsx::GamConfigData"
158
206
  }
159
207
  }
160
208
  },
@@ -162,41 +210,21 @@ export class GxIdeGamInstallationSettings {
162
210
  "optional": false,
163
211
  "docs": {
164
212
  "tags": [],
165
- "text": "Callback invoked when the user press repair button"
166
- }
167
- },
168
- "saveCallback": {
169
- "type": "unknown",
170
- "mutable": false,
171
- "complexType": {
172
- "original": "SaveCallback",
173
- "resolved": "(data: GamConfigData) => Promise<void>",
174
- "references": {
175
- "SaveCallback": {
176
- "location": "local",
177
- "path": "/home/runner/work/genexus-ide-ui/genexus-ide-ui/src/components/gam-installation-settings/gam-installation-settings.tsx",
178
- "id": "src/components/gam-installation-settings/gam-installation-settings.tsx::SaveCallback"
179
- }
180
- }
213
+ "text": "Defines default config for initializing the dialog with stored gam config data"
181
214
  },
182
- "required": false,
183
- "optional": false,
184
- "docs": {
185
- "tags": [],
186
- "text": "Callback invoked when the user wants to start the exportation process"
187
- }
215
+ "defaultValue": "{\n importWebPanels: true,\n importPanels: false,\n futureUpgrades: \"prompt\"\n }"
188
216
  },
189
- "cancelCallback": {
217
+ "repairCallback": {
190
218
  "type": "unknown",
191
219
  "mutable": false,
192
220
  "complexType": {
193
- "original": "CancelCallback",
194
- "resolved": "() => Promise<void>",
221
+ "original": "RepairCallback",
222
+ "resolved": "(config: GamConfigData) => Promise<void>",
195
223
  "references": {
196
- "CancelCallback": {
224
+ "RepairCallback": {
197
225
  "location": "local",
198
226
  "path": "/home/runner/work/genexus-ide-ui/genexus-ide-ui/src/components/gam-installation-settings/gam-installation-settings.tsx",
199
- "id": "src/components/gam-installation-settings/gam-installation-settings.tsx::CancelCallback"
227
+ "id": "src/components/gam-installation-settings/gam-installation-settings.tsx::RepairCallback"
200
228
  }
201
229
  }
202
230
  },
@@ -204,20 +232,20 @@ export class GxIdeGamInstallationSettings {
204
232
  "optional": false,
205
233
  "docs": {
206
234
  "tags": [],
207
- "text": "Callback invoked when the user wants to cancel the exportation process"
235
+ "text": "Callback invoked when the user press repair button"
208
236
  }
209
237
  },
210
- "defaultConfiguration": {
238
+ "saveCallback": {
211
239
  "type": "unknown",
212
240
  "mutable": false,
213
241
  "complexType": {
214
- "original": "GamConfigData | undefined",
215
- "resolved": "{ importWebPanels: boolean; importPanels: boolean; futureUpgrades: \"prompt\" | \"never\" | \"automatic\"; }",
242
+ "original": "SaveCallback",
243
+ "resolved": "(data: GamConfigData) => Promise<void>",
216
244
  "references": {
217
- "GamConfigData": {
245
+ "SaveCallback": {
218
246
  "location": "local",
219
247
  "path": "/home/runner/work/genexus-ide-ui/genexus-ide-ui/src/components/gam-installation-settings/gam-installation-settings.tsx",
220
- "id": "src/components/gam-installation-settings/gam-installation-settings.tsx::GamConfigData"
248
+ "id": "src/components/gam-installation-settings/gam-installation-settings.tsx::SaveCallback"
221
249
  }
222
250
  }
223
251
  },
@@ -225,51 +253,12 @@ export class GxIdeGamInstallationSettings {
225
253
  "optional": false,
226
254
  "docs": {
227
255
  "tags": [],
228
- "text": "Defines the default configuration property. Necessary for initializing the dialogue\nusing stored 'game config data' from the server. If undefined, default values are\napplied."
229
- },
230
- "defaultValue": "{\n importWebPanels: true,\n importPanels: false,\n futureUpgrades: \"prompt\"\n }"
231
- },
232
- "canSelectPanels": {
233
- "type": "boolean",
234
- "mutable": false,
235
- "complexType": {
236
- "original": "boolean",
237
- "resolved": "boolean",
238
- "references": {}
239
- },
240
- "required": false,
241
- "optional": false,
242
- "docs": {
243
- "tags": [],
244
- "text": "Property determining 'Panels' checkbox activation. Enabled only if an SD generator is\npresent in the KB. If not, checkbox is disabled"
245
- },
246
- "attribute": "can-select-panels",
247
- "reflect": false,
248
- "defaultValue": "false"
256
+ "text": "Callback invoked when the user initiates the export process"
257
+ }
249
258
  }
250
259
  };
251
260
  }
252
- static get events() {
253
- return [{
254
- "method": "componentDidRenderFirstTime",
255
- "name": "componentDidRenderFirstTime",
256
- "bubbles": true,
257
- "cancelable": true,
258
- "composed": true,
259
- "docs": {
260
- "tags": [{
261
- "name": "description",
262
- "text": "Gets fired when the component has rendered for the first time."
263
- }],
264
- "text": ""
265
- },
266
- "complexType": {
267
- "original": "string",
268
- "resolved": "string",
269
- "references": {}
270
- }
271
- }];
272
- }
273
261
  static get elementRef() { return "el"; }
274
262
  }
263
+ _GxIdeGamInstallationSettings__componentLocale = new WeakMap(), _GxIdeGamInstallationSettings_futureUpgradesComboEl = new WeakMap(), _GxIdeGamInstallationSettings_panelsCheckboxEl = new WeakMap(), _GxIdeGamInstallationSettings_webPanelsCheckboxEl = new WeakMap(), _GxIdeGamInstallationSettings_cancelCallbackHandler = new WeakMap(), _GxIdeGamInstallationSettings_repairCallbackHandler = new WeakMap(), _GxIdeGamInstallationSettings_renderFilters = new WeakMap(), _GxIdeGamInstallationSettings_renderDescription = new WeakMap(), _GxIdeGamInstallationSettings_saveCallbackHandler = new WeakMap();
275
264
  //# sourceMappingURL=gam-installation-settings.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"gam-installation-settings.js","sourceRoot":"","sources":["../../../src/components/gam-installation-settings/gam-installation-settings.tsx"],"names":[],"mappings":"AAAA,qBAAqB;AACrB,OAAO,EACL,SAAS,EACT,IAAI,EACJ,CAAC,EACD,IAAI,EACJ,OAAO,EACP,KAAK,EAEN,MAAM,eAAe,CAAC;AACvB,6BAA6B;AAC7B,oBAAoB;AACpB,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAQ7C,MAAM,OAAO,4BAA4B;;QAO/B,sBAAiB,GAAG,KAAK,CAAC;QA+ElC,iBAAiB;QAEjB,0BAA0B;QAE1B,qBAAq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OAAO,EAAE,IAAI,CAAC,qBAAqB,IAElC,IAAI,CAAC,gBAAgB,CAAC,MAAM,CAAC,YAAY,CAC/B,CACd,CAAC,CAAC,CAAC,IAAI;oBAER,kBACE,IAAI,EAAC,UAAU,EACf,IAAI,EAAC,YAAY,EACjB,OAAO,EAAE,IAAI,CAAC,qBAAqB,IAElC,IAAI,CAAC,iBAAiB,KAAK,QAAQ;wBAClC,CAAC,CAAC,IAAI,CAAC,gBAAgB,CAAC,MAAM,CAAC,YAAY;wBAC3C,CAAC,CAAC,IAAI,CAAC,gBAAgB,CAAC,MAAM,CAAC,EAAE,CACxB;oBACb,kBAAY,IAAI,EAAC,YAAY,EAAC,OAAO,EAAE,IAAI,CAAC,mBAAmB,IAC5D,IAAI,CAAC,iBAAiB,KAAK,QAAQ;wBAClC,CAAC,CAAC,IAAI,CAAC,gBAAgB,CAAC,MAAM,CAAC,aAAa;wBAC5C,CAAC,CAAC,IAAI,CAAC,gBAAgB,CAAC,MAAM,CAAC,GAAG,CACzB,CACI,CACf,CACD,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["/* STENCIL IMPORTS */\nimport {\n Component,\n Host,\n h,\n Prop,\n Element,\n Event,\n EventEmitter\n} from \"@stencil/core\";\n/* OTHER LIBRARIES IMPORTS */\n/* CUSTOM IMPORTS */\nimport { config } from \"../../common/config\";\nimport { Locale } from \"../../common/locale\";\n\n@Component({\n tag: \"gx-ide-gam-installation-settings\",\n styleUrl: \"gam-installation-settings.scss\",\n shadow: true,\n assetsDirs: [\"gx-ide-assets/gam-installation-settings\"]\n})\nexport class GxIdeGamInstallationSettings {\n // 1.OWN PROPERTIES //\n\n /**\n * The component hard-coded strings translations.\n */\n private _componentLocale: any;\n private renderedFirstTime = false;\n\n // 2. REFERENCE TO ELEMENTS //\n\n @Element() el: HTMLGxIdeGamInstallationSettingsElement;\n\n private webPanelsCheckboxEl!: HTMLGxgFormCheckboxElement;\n private panelsCheckboxEl!: HTMLGxgFormCheckboxElement;\n private futureUpgradesComboEl!: HTMLGxgComboBoxElement;\n\n // 3.STATE() VARIABLES //\n\n // 4.PUBLIC PROPERTY API | WATCH'S //\n\n /**\n * If true it displays the component title on the header\n */\n @Prop() readonly displayTitle = false;\n\n /**\n * Specifies the configuration type to be used\n */\n @Prop() readonly configurationType: \"installation\" | \"update\" =\n \"installation\";\n\n /**\n * Callback invoked when the user press repair button\n */\n @Prop() readonly repairCallback: RepairCallback;\n\n /**\n * Callback invoked when the user wants to start the exportation process\n */\n @Prop() readonly saveCallback: SaveCallback;\n\n /**\n * Callback invoked when the user wants to cancel the exportation process\n */\n @Prop() readonly cancelCallback: CancelCallback;\n\n /**\n * Defines the default configuration property. Necessary for initializing the dialogue\n * using stored 'game config data' from the server. If undefined, default values are\n * applied.\n */\n @Prop() readonly defaultConfiguration: GamConfigData | undefined = {\n importWebPanels: true,\n importPanels: false,\n futureUpgrades: \"prompt\"\n };\n\n /**\n * Property determining 'Panels' checkbox activation. Enabled only if an SD generator is\n * present in the KB. If not, checkbox is disabled\n */\n @Prop() readonly canSelectPanels: boolean = false;\n\n // 5.EVENTS (EMIT) //\n\n /**\n * @description Gets fired when the component has rendered for the first time.\n */\n @Event() componentDidRenderFirstTime: EventEmitter<string>;\n\n // 6.COMPONENT LIFECYCLE METHODS //\n\n async componentWillLoad() {\n this._componentLocale = await Locale.getComponentStrings(this.el);\n }\n\n componentDidRender() {\n if (!this.renderedFirstTime) {\n this.componentDidRenderFirstTime.emit(\n this._componentLocale.componentName\n );\n this.renderedFirstTime = true;\n }\n }\n\n // 7.LISTENERS //\n\n // 8.PUBLIC METHODS API //\n\n // 9.LOCAL METHODS //\n\n private repairCallbackHandler = async () => {\n if (this.saveCallback) {\n const data: GamConfigData = {\n importWebPanels: this.webPanelsCheckboxEl.checked,\n importPanels: this.panelsCheckboxEl.checked,\n futureUpgrades: this.futureUpgradesComboEl.value\n ? this.futureUpgradesComboEl.value\n : null\n };\n await this.repairCallback(data);\n }\n };\n\n private saveCallbackHandler = async () => {\n if (this.saveCallback) {\n const data: GamConfigData = {\n importWebPanels: this.webPanelsCheckboxEl.checked,\n importPanels: this.panelsCheckboxEl.checked,\n futureUpgrades: this.futureUpgradesComboEl.value\n ? this.futureUpgradesComboEl.value\n : null\n };\n await this.saveCallback(data);\n }\n };\n private cancelCallbackHandler = () => {\n this.cancelCallback();\n };\n\n /* Renders*/\n private renderHeader = () => {\n return (\n <header class=\"header\" slot=\"header\">\n {this.configurationType === \"installation\"\n ? [\n <gxg-text type=\"text-regular\">\n {\n this._componentLocale.header.headerTextInstallation\n .firstSentence\n }\n </gxg-text>,\n <gxg-text type=\"text-regular\">\n {\n this._componentLocale.header.headerTextInstallation\n .secondSentence\n }\n </gxg-text>,\n <gxg-text type=\"text-regular\">\n {\n this._componentLocale.header.headerTextInstallation\n .thirdSentence\n }\n </gxg-text>\n ]\n : [\n <gxg-text type=\"text-regular\">\n {this._componentLocale.header.headerTextUpdate.firstSentence}\n </gxg-text>,\n <gxg-text type=\"text-regular\">\n {this._componentLocale.header.headerTextUpdate.secondSentence}\n </gxg-text>\n ]}\n {/* header text */}\n </header>\n );\n };\n\n private renderFilters = () => {\n return (\n <div class=\"filters\">\n <gxg-title type=\"title-05\">\n {this._componentLocale.filters.filtersHeading}\n </gxg-title>\n\n <div class=\"filters__wrapper\">\n <div class=\"filters__wrapper-left\">\n <gxg-label labelPosition=\"above\" center={false}>\n Frontend Objects\n </gxg-label>\n <div class=\"filters__front-end-objects\">\n <gxg-form-checkbox\n label={this._componentLocale.filters.webPanelsCheckbox}\n part=\"web-panels-checkbox\"\n slot=\"footer-start\"\n ref={(el: HTMLGxgFormCheckboxElement) =>\n (this.webPanelsCheckboxEl = el as HTMLGxgFormCheckboxElement)\n }\n checked={this.defaultConfiguration?.importWebPanels}\n ></gxg-form-checkbox>\n <gxg-form-checkbox\n label={this._componentLocale.filters.panelsCheckbox}\n part=\"panels-checkbox\"\n slot=\"footer-start\"\n ref={(el: HTMLGxgFormCheckboxElement) =>\n (this.panelsCheckboxEl = el as HTMLGxgFormCheckboxElement)\n }\n checked={\n this.defaultConfiguration.importPanels && this.canSelectPanels\n }\n disabled={!this.canSelectPanels}\n ></gxg-form-checkbox>\n </div>\n </div>\n <div class=\"filters__wrapper-right\">\n <gxg-combo-box\n label={this._componentLocale.filters.futureUpgradesComboLabel}\n disableFilter\n part=\"future-upgrades-combo\"\n ref={(el: HTMLGxgComboBoxElement) =>\n (this.futureUpgradesComboEl = el as HTMLGxgComboBoxElement)\n }\n value={this.defaultConfiguration.futureUpgrades}\n >\n <gxg-combo-box-item value=\"automatic\">\n {\n this._componentLocale.manageFutureUpgrades\n .installAutomatically\n }\n </gxg-combo-box-item>\n <gxg-combo-box-item value=\"prompt\">\n {this._componentLocale.manageFutureUpgrades.promptMe}\n </gxg-combo-box-item>\n <gxg-combo-box-item value=\"never\">\n {this._componentLocale.manageFutureUpgrades.neverUpdate}\n </gxg-combo-box-item>\n </gxg-combo-box>\n </div>\n </div>\n </div>\n );\n };\n\n // 10.RENDER() FUNCTION //\n\n render() {\n return (\n <Host class=\"gx-ide-component\">\n <div class=\"gx-ide-main-wrapper\">\n <gx-ide-container\n noHeadingPadding\n headingPaddingTop\n noContentPadding\n noContentGap\n noAboveFooterPadding\n containerTitle={\n this.displayTitle ? this._componentLocale.componentName : null\n }\n slimmerFooter={config.gxIdeContainer.slimmerFooter}\n >\n {this.renderHeader()}\n {this.renderFilters()}\n <div class=\"footer-above\" slot=\"footer-above\">\n {this.configurationType === \"update\" ? (\n <div class=\"footer-above__left\">\n <p>{this._componentLocale.footer.footerRepairText}</p>\n </div>\n ) : null}\n\n <div class=\"footer-above__right\">\n {this.configurationType === \"update\" ? (\n [\n <p>{this._componentLocale.footer.footerSaveText}</p>,\n <p>{this._componentLocale.footer.footerCancelText}</p>\n ]\n ) : (\n // configurationType is \"installation\"\n <p>{this._componentLocale.footer.enableSecurity}</p>\n )}\n </div>\n </div>\n\n {this.configurationType === \"update\" ? (\n <gxg-button\n type=\"outlined\"\n slot=\"footer-start\"\n onClick={this.repairCallbackHandler}\n >\n {this._componentLocale.footer.repairButton}\n </gxg-button>\n ) : null}\n\n <gxg-button\n type=\"outlined\"\n slot=\"footer-end\"\n onClick={this.cancelCallbackHandler}\n >\n {this.configurationType === \"update\"\n ? this._componentLocale.footer.cancelButton\n : this._componentLocale.footer.no}\n </gxg-button>\n <gxg-button slot=\"footer-end\" onClick={this.saveCallbackHandler}>\n {this.configurationType === \"update\"\n ? this._componentLocale.footer.confirmButton\n : this._componentLocale.footer.yes}\n </gxg-button>\n </gx-ide-container>\n </div>\n </Host>\n );\n }\n}\n\nexport type GamConfigData = {\n importWebPanels: boolean;\n importPanels: boolean;\n futureUpgrades: \"never\" | \"prompt\" | \"automatic\";\n};\n\nexport type SaveCallback = (data: GamConfigData) => Promise<void>;\nexport type CancelCallback = () => Promise<void>;\nexport type RepairCallback = (config: GamConfigData) => Promise<void>;\n"]}
1
+ {"version":3,"file":"gam-installation-settings.js","sourceRoot":"","sources":["../../../src/components/gam-installation-settings/gam-installation-settings.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,iEAAiE;AACjE,qBAAqB;AACrB,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAIlE,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAE7C,MAAM,WAAW,GAAmB;IAClC,mBAAmB;IACnB,mBAAmB;IACnB,qBAAqB;IACrB,sBAAsB;IACtB,iBAAiB;IACjB,YAAY;IACZ,cAAc;IACd,kBAAkB;CACnB,CAAC;AAOF,MAAM,OAAO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;wBACT,cACE,EAAE,EAAC,gBAAgB,EACnB,KAAK,EAAC,gBAAgB,EACtB,OAAO,EAAE,uBAAA,IAAI,yDAAqB,EAClC,IAAI,EAAC,wBAAwB,WAGtB,CACL,CACF,CACF,CACD,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["/* eslint-disable @stencil-community/own-props-must-be-private */\n/* STENCIL IMPORTS */\nimport { Component, Host, h, Prop, Element } from \"@stencil/core\";\n/* OTHER LIBRARIES IMPORTS */\n/* CUSTOM IMPORTS */\nimport { MercuryBundles } from \"@genexus/mercury\";\nimport { Locale } from \"../../common/locale\";\n\nconst CSS_BUNDLES: MercuryBundles = [\n \"resets/box-sizing\",\n \"components/button\",\n \"components/checkbox\",\n \"components/combo-box\",\n \"components/edit\",\n \"utils/form\",\n \"utils/layout\",\n \"utils/typography\"\n];\n@Component({\n tag: \"gx-ide-gam-installation-settings\",\n styleUrl: \"gam-installation-settings.scss\",\n shadow: true,\n assetsDirs: [\"gx-ide-assets/gam-installation-settings\"]\n})\nexport class GxIdeGamInstallationSettings {\n /**\n * The component hard-coded strings translations.\n */\n #_componentLocale: any;\n\n @Element() el: HTMLGxIdeGamInstallationSettingsElement;\n\n #futureUpgradesComboEl!: HTMLChComboBoxRenderElement;\n #panelsCheckboxEl!: HTMLChCheckboxElement;\n #webPanelsCheckboxEl!: HTMLChCheckboxElement;\n\n /**\n * Callback invoked when the user wants to cancel the exportation process\n */\n @Prop() readonly cancelCallback: CancelCallback;\n\n /**\n * Determines 'Panels' checkbox activation, enabled only if an SD generator is in the KB.\n * Otherwise, the checkbox is disabled.\n */\n @Prop() readonly canSelectPanels: boolean = false;\n\n /**\n * Specifies the configuration type to be used\n */\n @Prop() readonly configurationType: \"installation\" | \"update\" =\n \"installation\";\n\n /**\n * Defines default config for initializing the dialog with stored gam config data\n */\n @Prop() readonly defaultConfiguration: GamConfigData | undefined = {\n importWebPanels: true,\n importPanels: false,\n futureUpgrades: \"prompt\"\n };\n\n /**\n * Callback invoked when the user press repair button\n */\n @Prop() readonly repairCallback: RepairCallback;\n\n /**\n * Callback invoked when the user initiates the export process\n */\n @Prop() readonly saveCallback: SaveCallback;\n\n async componentWillLoad() {\n this.#_componentLocale = await Locale.getComponentStrings(this.el);\n }\n\n #cancelCallbackHandler = () => {\n this.cancelCallback();\n };\n\n #repairCallbackHandler = async () => {\n if (this.saveCallback) {\n const data: GamConfigData = {\n importWebPanels: !!this.#webPanelsCheckboxEl.value,\n importPanels: !!this.#panelsCheckboxEl.value,\n futureUpgrades: this.#futureUpgradesComboEl.value\n ? (this.#futureUpgradesComboEl.value as ComboValues)\n : null\n };\n await this.repairCallback(data);\n }\n };\n\n #renderFilters = () => {\n return (\n <div\n class=\"field-group\"\n role=\"region\"\n aria-label={this.#_componentLocale.filters.filtersHeading}\n >\n <h5 class=\"subtitle-regular-s margin-block-end-s\">\n {this.#_componentLocale.filters.filtersHeading}\n </h5>\n\n <div class=\"filters__wrapper\">\n <div\n class=\"field-group\"\n role=\"group\"\n aria-labelledby=\"frontend-objects-label\"\n >\n <div class=\"field field-block\">\n <label id=\"frontend-objects-label\" class=\"label\">\n {this.#_componentLocale.filters.frontEndObjects}\n </label>\n\n <div class=\"field-group-inline\">\n <ch-checkbox\n class=\"checkbox\"\n checkedValue=\"webPanels\"\n value={\n this.defaultConfiguration?.importWebPanels\n ? \"webPanels\"\n : undefined\n }\n caption={this.#_componentLocale.filters.webPanelsCheckbox}\n ref={(el: HTMLChCheckboxElement) =>\n (this.#webPanelsCheckboxEl = el as HTMLChCheckboxElement)\n }\n part=\"web-panels-checkbox\"\n ></ch-checkbox>\n\n <ch-checkbox\n class=\"checkbox\"\n checkedValue=\"panels\"\n value={\n this.defaultConfiguration.importPanels &&\n this.canSelectPanels\n ? \"panels\"\n : undefined\n }\n caption={this.#_componentLocale.filters.panelsCheckbox}\n disabled={!this.canSelectPanels}\n ref={(el: HTMLChCheckboxElement) =>\n (this.#panelsCheckboxEl = el as HTMLChCheckboxElement)\n }\n part=\"panels-checkbox\"\n ></ch-checkbox>\n </div>\n </div>\n\n <div class=\"field field-block\">\n <label class=\"label\" htmlFor=\"future-upgrades-combo\">\n {this.#_componentLocale.filters.futureUpgradesComboLabel}\n </label>\n <ch-combo-box-render\n id=\"future-upgrades-combo\"\n class=\"combo-box\"\n value={this.defaultConfiguration.futureUpgrades}\n ref={(el: HTMLChComboBoxRenderElement) =>\n (this.#futureUpgradesComboEl =\n el as HTMLChComboBoxRenderElement)\n }\n model={[\n {\n value: \"automatic\",\n caption:\n this.#_componentLocale.manageFutureUpgrades\n .installAutomatically\n },\n {\n value: \"prompt\",\n caption:\n this.#_componentLocale.manageFutureUpgrades.promptMe\n },\n {\n value: \"never\",\n caption:\n this.#_componentLocale.manageFutureUpgrades.neverUpdate\n }\n ]}\n part=\"future-upgrades-combo\"\n ></ch-combo-box-render>\n </div>\n </div>\n </div>\n </div>\n );\n };\n\n #renderDescription = () => {\n return (\n <div class=\"description\">\n {this.configurationType === \"installation\"\n ? [\n <p class=\"text-body\">\n {\n this.#_componentLocale.header.headerTextInstallation\n .firstSentence\n }\n </p>,\n <p class=\"text-body\">\n {\n this.#_componentLocale.header.headerTextInstallation\n .secondSentence\n }\n </p>,\n <p class=\"text-body\">\n {\n this.#_componentLocale.header.headerTextInstallation\n .thirdSentence\n }\n </p>\n ]\n : [\n <p class=\"text-body\">\n {this.#_componentLocale.header.headerTextUpdate.firstSentence}\n </p>,\n <p class=\"text-body\">\n {this.#_componentLocale.header.headerTextUpdate.secondSentence}\n </p>\n ]}\n {/* header text */}\n </div>\n );\n };\n\n #saveCallbackHandler = async () => {\n if (this.saveCallback) {\n const data: GamConfigData = {\n importWebPanels: !!this.#webPanelsCheckboxEl.value,\n importPanels: !!this.#panelsCheckboxEl.value,\n futureUpgrades: this.#futureUpgradesComboEl.value\n ? (this.#futureUpgradesComboEl.value as ComboValues)\n : null\n };\n await this.saveCallback(data);\n }\n };\n\n render() {\n return (\n <Host class=\"widget spacing-body\">\n <ch-theme model={CSS_BUNDLES}></ch-theme>\n\n <div class=\"control-header control-header-with-border\">\n {this.#renderDescription()}\n </div>\n <div class=\"main-content field-group\">{this.#renderFilters()}</div>\n\n <div class=\"footer\">\n {this.configurationType === \"update\" && (\n <div class=\"footer-info\">\n <p>Use Repair to import GAM components again</p>\n </div>\n )}\n\n <div class=\"control-footer-with-border control-footer-space-between\">\n {this.configurationType === \"update\" && (\n <button\n id=\"repair-button\"\n class=\"button-secondary\"\n onClick={this.#repairCallbackHandler}\n part=\"button button--repair\"\n >\n Repair\n </button>\n )}\n <div class=\"buttons-spacer\">\n <button\n id=\"cancel-button\"\n class=\"button-secondary\"\n onClick={this.#cancelCallbackHandler}\n part=\"button button--cancel\"\n >\n Cancel\n </button>\n <button\n id=\"confirm-button\"\n class=\"button-primary\"\n onClick={this.#saveCallbackHandler}\n part=\"button button--confirm\"\n >\n Save\n </button>\n </div>\n </div>\n </div>\n </Host>\n );\n }\n}\n\nexport type CancelCallback = () => Promise<void>;\ntype ComboValues = \"automatic\" | \"prompt\" | \"never\";\nexport type GamConfigData = {\n importWebPanels: boolean;\n importPanels: boolean;\n futureUpgrades: \"never\" | \"prompt\" | \"automatic\";\n};\n\nexport type RepairCallback = (config: GamConfigData) => Promise<void>;\nexport type SaveCallback = (data: GamConfigData) => Promise<void>;\n"]}
@@ -23,7 +23,8 @@
23
23
  "filtersHeading": "Security Objects : Login, Not Authorized, Change Password, Register, etc",
24
24
  "webPanelsCheckbox": "Web Panels",
25
25
  "panelsCheckbox": "Panels",
26
- "futureUpgradesComboLabel": "Select How to manage the future upgrades:"
26
+ "futureUpgradesComboLabel": "Select How to manage the future upgrades:",
27
+ "frontEndObjects": "Front End Objects"
27
28
  },
28
29
  "footer": {
29
30
  "footerSaveText": "Select Save to Apply your Changes",
@@ -23,7 +23,8 @@
23
23
  "filtersHeading": "セキュリティオブジェクト: ログイン、未承認、パスワード変更、登録など",
24
24
  "webPanelsCheckbox": "Web パネル",
25
25
  "panelsCheckbox": "パネル",
26
- "futureUpgradesComboLabel": "今後のアップグレードの管理方法を選択:"
26
+ "futureUpgradesComboLabel": "今後のアップグレードの管理方法を選択:",
27
+ "frontEndObjects": ""
27
28
  },
28
29
  "footer": {
29
30
  "footerSaveText": "保存を選択して変更を適用",
@@ -40,4 +41,4 @@
40
41
  "title": "ロード中...",
41
42
  "cancelLabel": "キャンセル"
42
43
  }
43
- }
44
+ }
@@ -23,7 +23,8 @@
23
23
  "filtersHeading": "",
24
24
  "webPanelsCheckbox": "",
25
25
  "panelsCheckbox": "",
26
- "futureUpgradesComboLabel": ""
26
+ "futureUpgradesComboLabel": "",
27
+ "frontEndObjects": ""
27
28
  },
28
29
  "footer": {
29
30
  "footerSaveText": "",