@genexus/genexus-ide-ui 0.0.144 → 0.0.146

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 (35) hide show
  1. package/dist/cjs/genexus-ide-ui.cjs.js +1 -1
  2. package/dist/cjs/gx-ide-create-kb-from-server.cjs.entry.js +102 -60
  3. package/dist/cjs/gx-ide-create-kb-from-server.cjs.entry.js.map +1 -1
  4. package/dist/cjs/gx-ide-gam-installation-settings.cjs.entry.js +8 -1
  5. package/dist/cjs/gx-ide-gam-installation-settings.cjs.entry.js.map +1 -1
  6. package/dist/cjs/loader.cjs.js +1 -1
  7. package/dist/collection/components/create-kb-from-server/create-kb-from-server.css +25 -22
  8. package/dist/collection/components/create-kb-from-server/create-kb-from-server.js +189 -177
  9. package/dist/collection/components/create-kb-from-server/create-kb-from-server.js.map +1 -1
  10. package/dist/collection/components/create-kb-from-server/gx-ide-assets/create-kb-from-server/langs/create-kb-from-server.lang.en.json +13 -14
  11. package/dist/collection/components/gam-installation-settings/gam-installation-settings.js +48 -1
  12. package/dist/collection/components/gam-installation-settings/gam-installation-settings.js.map +1 -1
  13. package/dist/components/gx-ide-create-kb-from-server.js +153 -99
  14. package/dist/components/gx-ide-create-kb-from-server.js.map +1 -1
  15. package/dist/components/gx-ide-gam-installation-settings.js +10 -1
  16. package/dist/components/gx-ide-gam-installation-settings.js.map +1 -1
  17. package/dist/esm/genexus-ide-ui.js +1 -1
  18. package/dist/esm/gx-ide-create-kb-from-server.entry.js +102 -60
  19. package/dist/esm/gx-ide-create-kb-from-server.entry.js.map +1 -1
  20. package/dist/esm/gx-ide-gam-installation-settings.entry.js +8 -1
  21. package/dist/esm/gx-ide-gam-installation-settings.entry.js.map +1 -1
  22. package/dist/esm/loader.js +1 -1
  23. package/dist/genexus-ide-ui/genexus-ide-ui.esm.js +1 -1
  24. package/dist/genexus-ide-ui/genexus-ide-ui.esm.js.map +1 -1
  25. package/dist/genexus-ide-ui/gx-ide-assets/create-kb-from-server/langs/create-kb-from-server.lang.en.json +13 -14
  26. package/dist/genexus-ide-ui/{p-81144669.entry.js → p-0ba8ddf3.entry.js} +51 -38
  27. package/dist/genexus-ide-ui/p-0ba8ddf3.entry.js.map +1 -0
  28. package/dist/genexus-ide-ui/{p-2191d598.entry.js → p-3051fa72.entry.js} +185 -135
  29. package/dist/genexus-ide-ui/p-3051fa72.entry.js.map +1 -0
  30. package/dist/types/components/create-kb-from-server/create-kb-from-server.d.ts +51 -49
  31. package/dist/types/components/gam-installation-settings/gam-installation-settings.d.ts +11 -0
  32. package/dist/types/components.d.ts +61 -69
  33. package/package.json +1 -1
  34. package/dist/genexus-ide-ui/p-2191d598.entry.js.map +0 -1
  35. package/dist/genexus-ide-ui/p-81144669.entry.js.map +0 -1
@@ -1,5 +1,5 @@
1
1
  import { EventEmitter } from "../../stencil-public-runtime";
2
- import { GXServerConnectionDefault } from "../connect-gx-server/connect-gx-server";
2
+ import { FormSubmitResult, GxServerAuthenticationType } from "../../common/types";
3
3
  export declare class GxIdeCreateKbFromServer {
4
4
  [key: string]: any;
5
5
  /**
@@ -8,63 +8,61 @@ export declare class GxIdeCreateKbFromServer {
8
8
  private _componentLocale;
9
9
  private renderedFirstTime;
10
10
  private shortcutsSrc;
11
- private selectedKbId;
12
- private localKBNameEl;
13
- private versionSelectedTypeEl;
14
- private searchKbsEl;
11
+ private authenticationTypeEl;
12
+ private serverUrlsEl;
13
+ private kbNameEl;
14
+ private passwordEl;
15
+ private userNameEl;
16
+ private searchKBEl;
17
+ private listBoxEl;
18
+ private kbIdSelected;
19
+ private authenticationTypes;
15
20
  el: HTMLGxIdeCreateKbFromServerElement;
16
21
  /**
17
- * KBs that return from connect to the server
18
- */
19
- kbsData: KBData[];
20
- /**
21
- * The kb versions returned from selectKBVersionsCallback
22
+ * Disabled or not the part for select and create the KB
22
23
  */
23
- kbVersions: KBVersion[];
24
+ selectionKbDisabled: boolean;
24
25
  /**
25
- * The kb versions ids returned from selectKBVersionsCallback
26
+ * KBs that return from connect to the server
26
27
  */
27
- kbVersionsIds: string[];
28
+ kbs: KBData[];
29
+ watchPropHandler(newKbs: KBData[]): void;
28
30
  /**
29
- * The version selected type
31
+ * KBs search text
30
32
  */
31
- versionSelectedType: VersionOption;
33
+ kbSearchText: string;
32
34
  /**
33
35
  * If true it displays the component title on the header
34
36
  */
35
37
  readonly displayTitle = false;
36
38
  /**
37
- * URL of the GXserver to use, not editable by the user in this instance
39
+ * Callback that will be invoked when the user connect to the kb server (‘Connect’ button)
38
40
  */
39
- readonly serverUrl: string;
41
+ readonly connectCallback: (data: GXServerConnectionData) => Promise<ConnectionResultData>;
40
42
  /**
41
- * Name of the user with whom you connected to the GXserver, it is also not editable
43
+ * Callback that will be invoked when the user confirms KB creation (‘Create’ button)
42
44
  */
43
- readonly userName: string;
44
- /**
45
- * Name of the user with whom you connected to the GXserver. It is necessary to know this information when trying to obtain the KBs using the “getGXserverKBsCallback” callback.
46
- */
47
- readonly userPassword: string;
45
+ readonly createKBCallback: (data: CreateKBData) => Promise<FormSubmitResult>;
48
46
  /**
49
- * Callback that must be invoked when invoking the dialog
47
+ * If is true then the user can specify a server url that don't be in the combo box of server urls.
50
48
  */
51
- readonly getGXserverKBsCallback: (data: GXServerConnectionDefault) => Promise<KBData[]>;
49
+ readonly enableCustomServer: boolean;
52
50
  /**
53
- * The host reopens the gx-ide-connect-server login modal with the previous data, and closes the current modal
51
+ * The knowledge base default suggested name
54
52
  */
55
- readonly changeConnectionCallback: (data: GXServerConnectionDefault) => Promise<void>;
53
+ kbName: string;
56
54
  /**
57
- * Callback that must be invoked when the 'Create KB' button is pressed. Receives the user's parameter selection to create the remote KB locally and ends the dialog.
55
+ * Password for the database connection.
58
56
  */
59
- readonly createKBCallback: (selectedKB: string, versionSelected: VersionOption, localKBName: string, versionList?: string[]) => Promise<void>;
57
+ readonly password: string;
60
58
  /**
61
- * Callback invoked by pressing the ellipsis in the version selector. Receives the KB selected by the user, and displays the version selector dialog. Returns a list of versions chosen by the user.
59
+ * Array of URLs of cataloged servers to be displayed in the combo
62
60
  */
63
- readonly selectKBVersionsCallback: (selectedKB: string) => Promise<KBVersion[]>;
61
+ readonly serverUrls: string[];
64
62
  /**
65
- * Callback that is invoked when the dialog is closed
63
+ * Username for the database connection.
66
64
  */
67
- readonly cancelCallback: () => Promise<void>;
65
+ readonly userName: string;
68
66
  /**
69
67
  * This event is emitted once just after the component is fully loaded and the first render() occurs
70
68
  */
@@ -72,24 +70,28 @@ export declare class GxIdeCreateKbFromServer {
72
70
  componentWillLoad(): Promise<void>;
73
71
  componentDidLoad(): void;
74
72
  componentDidRender(): void;
75
- private init;
76
- private cancelHandler;
77
- private createHandler;
78
- private changeConnectionHandler;
79
- private renderKbs;
80
- private selectionChangedHandler;
81
- private selectedVersionHandler;
82
- private versionsChangedHandler;
73
+ private setAuthenticationTypes;
74
+ private addEventListeners;
75
+ private reset;
76
+ private createKbHandler;
77
+ private connectCallbackHandler;
83
78
  render(): void;
84
79
  }
85
- export type KBData = {
80
+ export interface GXServerConnectionData {
81
+ serverUrl: string;
82
+ authenticationType: GxServerAuthenticationType;
83
+ user: string;
84
+ password: string;
85
+ }
86
+ export type ConnectionResultData = {
87
+ formResult: FormSubmitResult;
88
+ kbs: KBData[];
89
+ };
90
+ export interface KBData {
86
91
  id: string;
87
92
  name: string;
88
- };
89
- export type KBVersion = {
90
- id: number;
93
+ }
94
+ export interface CreateKBData {
95
+ id: string;
91
96
  name: string;
92
- type: VersionType;
93
- };
94
- export type VersionOption = "Trunk" | "All" | "Select";
95
- export type VersionType = "Branch" | "Frozen";
97
+ }
@@ -35,6 +35,17 @@ export declare class GxIdeGamInstallationSettings {
35
35
  * Callback invoked when the user wants to cancel the exportation process
36
36
  */
37
37
  readonly cancelCallback: CancelCallback;
38
+ /**
39
+ * Defines the default configuration property. Necessary for initializing the dialogue
40
+ * using stored 'game config data' from the server. If undefined, default values are
41
+ * applied.
42
+ */
43
+ readonly defaultConfiguration: GamConfigData | undefined;
44
+ /**
45
+ * Property determining 'Panels' checkbox activation. Enabled only if an SD generator is
46
+ * present in the KB. If not, checkbox is disabled
47
+ */
48
+ readonly canSelectPanels: boolean;
38
49
  /**
39
50
  * @description Gets fired when the component has rendered for the first time.
40
51
  */
@@ -17,13 +17,12 @@ import { ImportData as ImportData1 } from "./components/bpm/import-gxpm/import-g
17
17
  import { SelectionData } from "./components/bpm/objects-selector/objects-selector";
18
18
  import { TimerDuration } from "./components/bpm/timer-duration/timer-duration";
19
19
  import { GXServerConnectionData, GXServerConnectionDefault } from "./components/connect-gx-server/connect-gx-server";
20
- import { ConnectionResultData, EntityData, GxOption, ImportItemResultData, ObjectType as ObjectType2 } from "./common/types";
20
+ import { ConnectionResultData, EntityData, FormSubmitResult, GxOption, ImportItemResultData, ObjectType as ObjectType2 } from "./common/types";
21
21
  import { TitleType } from "./components/_helpers/title/title";
22
22
  import { AlignItems, FooterJustify, HeadingJustify, JustifyContent, SectionsPadding } from "./components/_helpers/container/container";
23
23
  import { TitleAlignment } from "@genexus/gemini/dist/types/common/types";
24
- import { GXServerConnectionDefault as GXServerConnectionDefault1 } from "./components/connect-gx-server/connect-gx-server";
25
- import { KBData, KBVersion, VersionOption } from "./components/create-kb-from-server/create-kb-from-server";
26
- import { EditResult, EnvironmentData, KBData as KBData1, recentObjectData } from "./components/dashboard-home/dashboard-home";
24
+ import { ConnectionResultData as ConnectionResultData1, CreateKBData, GXServerConnectionData as GXServerConnectionData1 } from "./components/create-kb-from-server/create-kb-from-server";
25
+ import { EditResult, EnvironmentData, KBData, recentObjectData } from "./components/dashboard-home/dashboard-home";
27
26
  import { CancelCallback as CancelCallback3, ConfirmCallback as ConfirmCallback2, EditCallback, LoadItemsCallback, NewVariableCallback, SelectObjectCallback } from "./components/data-selector/data-selector";
28
27
  import { CancelCallback as CancelCallback4, ConfirmCallback as ConfirmCallback3, LoadCallback, LoadDesignSystemCallback, LoadFontCallback, LoadImageCallback, LoadPanelDataCallback, RequiresAccessTokenCallback, SelectModuleCallback, TextEditorFactoryCallback } from "./components/design-import/design-import";
29
28
  import { DirectorySelectorLabels, LabelPosition } from "./components/_helpers/directory-selector/directory-selector";
@@ -31,7 +30,7 @@ import { ModuleServerData, ModuleServerType } from "./components/modules/types";
31
30
  import { CancelCallback as CancelCallback5, ConfirmCallback as ConfirmCallback4, SelectSourceCallback } from "./components/modules/edit-module-server/edit-module-server";
32
31
  import { EntitySelectorLabels } from "./components/_helpers/entity-selector/entity-selector";
33
32
  import { LabelPosition as LabelPosition1 } from "./components/_helpers/directory-selector/directory-selector";
34
- import { CancelCallback as CancelCallback6, RepairCallback, SaveCallback } from "./components/gam-installation-settings/gam-installation-settings";
33
+ import { CancelCallback as CancelCallback6, GamConfigData, RepairCallback, SaveCallback } from "./components/gam-installation-settings/gam-installation-settings";
35
34
  import { AddObjectsCallback, AddReferencesCallback, CancelCallback as CancelCallback7, ExportCallback as ExportCallback1, ExportFileDirectoryCallback, KBPropertiesCallback, KBPropertyType, ObjectType, OptionsCallback } from "./components/kb-manager-export/kb-manager-export";
36
35
  import { CancelCallback as CancelCallback8, ImportCallback, LoadCallback as LoadCallback1, ObjectContextMenuCallback, OptionsCallback as OptionsCallback1 } from "./components/kb-manager-import/kb-manager-import";
37
36
  import { Color, Size } from "@genexus/gemini/dist/types/components/icon/icon";
@@ -68,13 +67,12 @@ export { ImportData as ImportData1 } from "./components/bpm/import-gxpm/import-g
68
67
  export { SelectionData } from "./components/bpm/objects-selector/objects-selector";
69
68
  export { TimerDuration } from "./components/bpm/timer-duration/timer-duration";
70
69
  export { GXServerConnectionData, GXServerConnectionDefault } from "./components/connect-gx-server/connect-gx-server";
71
- export { ConnectionResultData, EntityData, GxOption, ImportItemResultData, ObjectType as ObjectType2 } from "./common/types";
70
+ export { ConnectionResultData, EntityData, FormSubmitResult, GxOption, ImportItemResultData, ObjectType as ObjectType2 } from "./common/types";
72
71
  export { TitleType } from "./components/_helpers/title/title";
73
72
  export { AlignItems, FooterJustify, HeadingJustify, JustifyContent, SectionsPadding } from "./components/_helpers/container/container";
74
73
  export { TitleAlignment } from "@genexus/gemini/dist/types/common/types";
75
- export { GXServerConnectionDefault as GXServerConnectionDefault1 } from "./components/connect-gx-server/connect-gx-server";
76
- export { KBData, KBVersion, VersionOption } from "./components/create-kb-from-server/create-kb-from-server";
77
- export { EditResult, EnvironmentData, KBData as KBData1, recentObjectData } from "./components/dashboard-home/dashboard-home";
74
+ export { ConnectionResultData as ConnectionResultData1, CreateKBData, GXServerConnectionData as GXServerConnectionData1 } from "./components/create-kb-from-server/create-kb-from-server";
75
+ export { EditResult, EnvironmentData, KBData, recentObjectData } from "./components/dashboard-home/dashboard-home";
78
76
  export { CancelCallback as CancelCallback3, ConfirmCallback as ConfirmCallback2, EditCallback, LoadItemsCallback, NewVariableCallback, SelectObjectCallback } from "./components/data-selector/data-selector";
79
77
  export { CancelCallback as CancelCallback4, ConfirmCallback as ConfirmCallback3, LoadCallback, LoadDesignSystemCallback, LoadFontCallback, LoadImageCallback, LoadPanelDataCallback, RequiresAccessTokenCallback, SelectModuleCallback, TextEditorFactoryCallback } from "./components/design-import/design-import";
80
78
  export { DirectorySelectorLabels, LabelPosition } from "./components/_helpers/directory-selector/directory-selector";
@@ -82,7 +80,7 @@ export { ModuleServerData, ModuleServerType } from "./components/modules/types";
82
80
  export { CancelCallback as CancelCallback5, ConfirmCallback as ConfirmCallback4, SelectSourceCallback } from "./components/modules/edit-module-server/edit-module-server";
83
81
  export { EntitySelectorLabels } from "./components/_helpers/entity-selector/entity-selector";
84
82
  export { LabelPosition as LabelPosition1 } from "./components/_helpers/directory-selector/directory-selector";
85
- export { CancelCallback as CancelCallback6, RepairCallback, SaveCallback } from "./components/gam-installation-settings/gam-installation-settings";
83
+ export { CancelCallback as CancelCallback6, GamConfigData, RepairCallback, SaveCallback } from "./components/gam-installation-settings/gam-installation-settings";
86
84
  export { AddObjectsCallback, AddReferencesCallback, CancelCallback as CancelCallback7, ExportCallback as ExportCallback1, ExportFileDirectoryCallback, KBPropertiesCallback, KBPropertyType, ObjectType, OptionsCallback } from "./components/kb-manager-export/kb-manager-export";
87
85
  export { CancelCallback as CancelCallback8, ImportCallback, LoadCallback as LoadCallback1, ObjectContextMenuCallback, OptionsCallback as OptionsCallback1 } from "./components/kb-manager-import/kb-manager-import";
88
86
  export { Color, Size } from "@genexus/gemini/dist/types/components/icon/icon";
@@ -502,52 +500,41 @@ export namespace Components {
502
500
  }
503
501
  interface GxIdeCreateKbFromServer {
504
502
  /**
505
- * Callback that is invoked when the dialog is closed
503
+ * Callback that will be invoked when the user connect to the kb server (‘Connect’ button)
506
504
  */
507
- "cancelCallback": () => Promise<void>;
508
- /**
509
- * The host reopens the gx-ide-connect-server login modal with the previous data, and closes the current modal
510
- */
511
- "changeConnectionCallback": (
512
- data: GXServerConnectionDefault1
513
- ) => Promise<void>;
505
+ "connectCallback": (
506
+ data: GXServerConnectionData1
507
+ ) => Promise<ConnectionResultData1>;
514
508
  /**
515
- * Callback that must be invoked when the 'Create KB' button is pressed. Receives the user's parameter selection to create the remote KB locally and ends the dialog.
509
+ * Callback that will be invoked when the user confirms KB creation (‘Create’ button)
516
510
  */
517
511
  "createKBCallback": (
518
- selectedKB: string,
519
- versionSelected: VersionOption,
520
- localKBName: string,
521
- versionList?: string[]
522
- ) => Promise<void>;
512
+ data: CreateKBData
513
+ ) => Promise<FormSubmitResult>;
523
514
  /**
524
515
  * If true it displays the component title on the header
525
516
  */
526
517
  "displayTitle": false;
527
518
  /**
528
- * Callback that must be invoked when invoking the dialog
519
+ * If is true then the user can specify a server url that don't be in the combo box of server urls.
529
520
  */
530
- "getGXserverKBsCallback": (
531
- data: GXServerConnectionDefault1
532
- ) => Promise<KBData[]>;
521
+ "enableCustomServer": boolean;
533
522
  /**
534
- * Callback invoked by pressing the ellipsis in the version selector. Receives the KB selected by the user, and displays the version selector dialog. Returns a list of versions chosen by the user.
523
+ * The knowledge base default suggested name
535
524
  */
536
- "selectKBVersionsCallback": (
537
- selectedKB: string
538
- ) => Promise<KBVersion[]>;
525
+ "kbName": string;
539
526
  /**
540
- * URL of the GXserver to use, not editable by the user in this instance
527
+ * Password for the database connection.
541
528
  */
542
- "serverUrl": string;
529
+ "password": string;
543
530
  /**
544
- * Name of the user with whom you connected to the GXserver, it is also not editable
531
+ * Array of URLs of cataloged servers to be displayed in the combo
545
532
  */
546
- "userName": string;
533
+ "serverUrls": string[];
547
534
  /**
548
- * Name of the user with whom you connected to the GXserver. It is necessary to know this information when trying to obtain the KBs using the “getGXserverKBsCallback” callback.
535
+ * Username for the database connection.
549
536
  */
550
- "userPassword": string;
537
+ "userName": string;
551
538
  }
552
539
  interface GxIdeDashboardHome {
553
540
  /**
@@ -573,7 +560,7 @@ export namespace Components {
573
560
  /**
574
561
  * The KB basic properties.
575
562
  */
576
- "kb": KBData1;
563
+ "kb": KBData;
577
564
  /**
578
565
  * Callback invoked when user tries to open one of the listed Recent Objects Receives the internal ID of the object
579
566
  */
@@ -830,6 +817,10 @@ export namespace Components {
830
817
  "value": EntityData | null | undefined;
831
818
  }
832
819
  interface GxIdeGamInstallationSettings {
820
+ /**
821
+ * Property determining 'Panels' checkbox activation. Enabled only if an SD generator is present in the KB. If not, checkbox is disabled
822
+ */
823
+ "canSelectPanels": boolean;
833
824
  /**
834
825
  * Callback invoked when the user wants to cancel the exportation process
835
826
  */
@@ -838,6 +829,10 @@ export namespace Components {
838
829
  * Specifies the configuration type to be used
839
830
  */
840
831
  "configurationType": "installation" | "update";
832
+ /**
833
+ * Defines the default configuration property. Necessary for initializing the dialogue using stored 'game config data' from the server. If undefined, default values are applied.
834
+ */
835
+ "defaultConfiguration": GamConfigData | undefined;
841
836
  /**
842
837
  * If true it displays the component title on the header
843
838
  */
@@ -3227,56 +3222,45 @@ declare namespace LocalJSX {
3227
3222
  }
3228
3223
  interface GxIdeCreateKbFromServer {
3229
3224
  /**
3230
- * Callback that is invoked when the dialog is closed
3231
- */
3232
- "cancelCallback"?: () => Promise<void>;
3233
- /**
3234
- * The host reopens the gx-ide-connect-server login modal with the previous data, and closes the current modal
3225
+ * Callback that will be invoked when the user connect to the kb server (‘Connect’ button)
3235
3226
  */
3236
- "changeConnectionCallback"?: (
3237
- data: GXServerConnectionDefault1
3238
- ) => Promise<void>;
3227
+ "connectCallback"?: (
3228
+ data: GXServerConnectionData1
3229
+ ) => Promise<ConnectionResultData1>;
3239
3230
  /**
3240
- * Callback that must be invoked when the 'Create KB' button is pressed. Receives the user's parameter selection to create the remote KB locally and ends the dialog.
3231
+ * Callback that will be invoked when the user confirms KB creation (‘Create’ button)
3241
3232
  */
3242
3233
  "createKBCallback"?: (
3243
- selectedKB: string,
3244
- versionSelected: VersionOption,
3245
- localKBName: string,
3246
- versionList?: string[]
3247
- ) => Promise<void>;
3234
+ data: CreateKBData
3235
+ ) => Promise<FormSubmitResult>;
3248
3236
  /**
3249
3237
  * If true it displays the component title on the header
3250
3238
  */
3251
3239
  "displayTitle"?: false;
3252
3240
  /**
3253
- * Callback that must be invoked when invoking the dialog
3241
+ * If is true then the user can specify a server url that don't be in the combo box of server urls.
3254
3242
  */
3255
- "getGXserverKBsCallback"?: (
3256
- data: GXServerConnectionDefault1
3257
- ) => Promise<KBData[]>;
3243
+ "enableCustomServer"?: boolean;
3244
+ /**
3245
+ * The knowledge base default suggested name
3246
+ */
3247
+ "kbName"?: string;
3258
3248
  /**
3259
3249
  * This event is emitted once just after the component is fully loaded and the first render() occurs
3260
3250
  */
3261
3251
  "onComponentDidRenderFirstTime"?: (event: GxIdeCreateKbFromServerCustomEvent<boolean>) => void;
3262
3252
  /**
3263
- * Callback invoked by pressing the ellipsis in the version selector. Receives the KB selected by the user, and displays the version selector dialog. Returns a list of versions chosen by the user.
3253
+ * Password for the database connection.
3264
3254
  */
3265
- "selectKBVersionsCallback"?: (
3266
- selectedKB: string
3267
- ) => Promise<KBVersion[]>;
3255
+ "password"?: string;
3268
3256
  /**
3269
- * URL of the GXserver to use, not editable by the user in this instance
3257
+ * Array of URLs of cataloged servers to be displayed in the combo
3270
3258
  */
3271
- "serverUrl"?: string;
3259
+ "serverUrls": string[];
3272
3260
  /**
3273
- * Name of the user with whom you connected to the GXserver, it is also not editable
3261
+ * Username for the database connection.
3274
3262
  */
3275
3263
  "userName"?: string;
3276
- /**
3277
- * Name of the user with whom you connected to the GXserver. It is necessary to know this information when trying to obtain the KBs using the “getGXserverKBsCallback” callback.
3278
- */
3279
- "userPassword"?: string;
3280
3264
  }
3281
3265
  interface GxIdeDashboardHome {
3282
3266
  /**
@@ -3302,7 +3286,7 @@ declare namespace LocalJSX {
3302
3286
  /**
3303
3287
  * The KB basic properties.
3304
3288
  */
3305
- "kb"?: KBData1;
3289
+ "kb"?: KBData;
3306
3290
  /**
3307
3291
  * @description Gets fired when the component has rendered for the first time.
3308
3292
  */
@@ -3571,6 +3555,10 @@ declare namespace LocalJSX {
3571
3555
  "value"?: EntityData | null | undefined;
3572
3556
  }
3573
3557
  interface GxIdeGamInstallationSettings {
3558
+ /**
3559
+ * Property determining 'Panels' checkbox activation. Enabled only if an SD generator is present in the KB. If not, checkbox is disabled
3560
+ */
3561
+ "canSelectPanels"?: boolean;
3574
3562
  /**
3575
3563
  * Callback invoked when the user wants to cancel the exportation process
3576
3564
  */
@@ -3579,6 +3567,10 @@ declare namespace LocalJSX {
3579
3567
  * Specifies the configuration type to be used
3580
3568
  */
3581
3569
  "configurationType"?: "installation" | "update";
3570
+ /**
3571
+ * Defines the default configuration property. Necessary for initializing the dialogue using stored 'game config data' from the server. If undefined, default values are applied.
3572
+ */
3573
+ "defaultConfiguration"?: GamConfigData | undefined;
3582
3574
  /**
3583
3575
  * If true it displays the component title on the header
3584
3576
  */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@genexus/genexus-ide-ui",
3
3
  "license": "Apache-2.0",
4
- "version": "0.0.144",
4
+ "version": "0.0.146",
5
5
  "description": "GeneXus IDE UI components",
6
6
  "main": "dist/index.cjs.js",
7
7
  "module": "dist/index.js",
@@ -1 +0,0 @@
1
- {"version":3,"names":["createKbFromServerCss","GxIdeCreateKbFromServer","this","renderedFirstTime","shortcutsSrc","getAssetPath","init","async","getGXserverKBsCallback","serverUrl","user","userName","password","userPassword","then","result","kbsData","versionSelectedType","versionSelectedTypeEl","value","cancelHandler","cancelCallback","createHandler","createKBCallback","selectedKbId","localKBNameEl","kbVersionsIds","changeConnectionHandler","changeConnectionCallback","renderKbs","map","kb","h","itemId","id","itemValue","name","selectionChangedHandler","event","detail","selectedVersionHandler","selectKBVersionsCallback","length","kbVersions","version","toString","versionsChangedHandler","componentWillLoad","_componentLocale","Locale","getComponentStrings","el","componentDidLoad","searchKbsEl","focus","componentDidRender","componentDidRenderFirstTime","emit","componentName","render","Host","class","slimmerFooter","noContentPadding","noContentGap","containerTitle","displayTitle","labelPosition","header","type","onClick","change","icon","iconPosition","placeholder","main","searchKB","maxWidth","ref","listName","ellipsis","onSelectionChanged","row","onChange","label","trunkVersion","allVersions","selectVersion","readonly","slot","footer","cancel","create","src"],"sources":["src/components/create-kb-from-server/create-kb-from-server.scss?tag=gx-ide-create-kb-from-server&encapsulation=shadow","src/components/create-kb-from-server/create-kb-from-server.tsx"],"sourcesContent":["@import \"../../global/gx-ide-common.scss\";\n@import \"../../global/gx-ide-mixins.scss\";\n\n:host {\n display: block;\n border: 1px solid var(--gxg-border-color--regular);\n background-color: var(--mer-color__surface);\n}\n\n.header {\n display: grid;\n gap: var(--mer-spacing--md);\n grid-template-rows: auto;\n grid-template-columns: 1fr 1fr min-content;\n align-items: center;\n padding: var(--mer-spacing--sm);\n\n &__item {\n display: flex;\n flex-direction: column;\n gap: var(--mer-spacing--xxxs);\n }\n\n border-block-end: 1px solid var(--mer-border-color__on-elevation--01);\n}\n\n.main {\n display: flex;\n flex-direction: column;\n gap: var(--mer-spacing--sm);\n padding: var(--mer-spacing--sm);\n}\n\n.kbs-list {\n max-height: 200px;\n}\n\n.versions-container {\n display: flex;\n flex-direction: column;\n\n &__input {\n display: flex;\n gap: 8px;\n }\n}\n","/* STENCIL IMPORTS */\nimport {\n Component,\n Host,\n h,\n Prop,\n Event,\n EventEmitter,\n Element,\n State,\n getAssetPath\n} from \"@stencil/core\";\n/* OTHER LIBRARIES IMPORTS */\n/* CUSTOM IMPORTS */\nimport { GXServerConnectionDefault } from \"../connect-gx-server/connect-gx-server\";\nimport { Locale } from \"../../common/locale\";\nimport { ItemData } from \"../_helpers/list-selector/list-selector-item/list-selector-item\";\n\n@Component({\n tag: \"gx-ide-create-kb-from-server\",\n styleUrl: \"create-kb-from-server.scss\",\n shadow: true,\n assetsDirs: [\"gx-ide-assets/create-kb-from-server\"]\n})\nexport class GxIdeCreateKbFromServer {\n [key: string]: any;\n\n // 1.OWN PROPERTIES //\n\n /**\n * The component hard-coded strings translations.\n */\n private _componentLocale: any;\n private renderedFirstTime = false;\n private shortcutsSrc = getAssetPath(\n `./gx-ide-assets/create-kb-from-server/shortcuts.json`\n );\n\n private selectedKbId: string;\n private localKBNameEl: HTMLGxgFormTextElement;\n private versionSelectedTypeEl: HTMLGxgFormRadioGroupElement;\n\n /* References */\n\n private searchKbsEl!: HTMLGxgFormTextElement;\n\n // 2. REFERENCE TO ELEMENTS //\n\n @Element() el: HTMLGxIdeCreateKbFromServerElement;\n\n // 3.STATE() VARIABLES //\n\n /**\n * KBs that return from connect to the server\n */\n @State() kbsData: KBData[] = [];\n\n /**\n * The kb versions returned from selectKBVersionsCallback\n */\n @State() kbVersions: KBVersion[] = [];\n\n /**\n * The kb versions ids returned from selectKBVersionsCallback\n */\n @State() kbVersionsIds: string[] = [];\n\n /**\n * The version selected type\n */\n @State() versionSelectedType: VersionOption;\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 * URL of the GXserver to use, not editable by the user in this instance\n */\n @Prop() readonly serverUrl: string;\n\n /**\n * Name of the user with whom you connected to the GXserver, it is also not editable\n */\n @Prop() readonly userName: string;\n\n /**\n * Name of the user with whom you connected to the GXserver. It is necessary to know this information when trying to obtain the KBs using the “getGXserverKBsCallback” callback.\n */\n @Prop() readonly userPassword: string;\n\n /**\n * Callback that must be invoked when invoking the dialog\n */\n @Prop() readonly getGXserverKBsCallback: (\n data: GXServerConnectionDefault\n ) => Promise<KBData[]>;\n\n /**\n * The host reopens the gx-ide-connect-server login modal with the previous data, and closes the current modal\n */\n @Prop() readonly changeConnectionCallback: (\n data: GXServerConnectionDefault\n ) => Promise<void>;\n\n /**\n * Callback that must be invoked when the 'Create KB' button is pressed. Receives the user's parameter selection to create the remote KB locally and ends the dialog.\n */\n @Prop() readonly createKBCallback: (\n selectedKB: string,\n versionSelected: VersionOption,\n localKBName: string,\n versionList?: string[]\n ) => Promise<void>;\n\n /**\n * Callback invoked by pressing the ellipsis in the version selector. Receives the KB selected by the user, and displays the version selector dialog. Returns a list of versions chosen by the user.\n */\n @Prop() readonly selectKBVersionsCallback: (\n selectedKB: string\n ) => Promise<KBVersion[]>;\n\n /**\n * Callback that is invoked when the dialog is closed\n */\n @Prop() readonly cancelCallback: () => Promise<void>;\n\n // 5.EVENTS (EMIT) //\n\n /**\n * This event is emitted once just after the component is fully loaded and the first render() occurs\n */\n @Event() componentDidRenderFirstTime: EventEmitter<boolean>;\n\n // 6.METHODS //\n\n async componentWillLoad() {\n this._componentLocale = await Locale.getComponentStrings(this.el);\n }\n\n componentDidLoad() {\n (this.searchKbsEl as HTMLElement).focus();\n this.init();\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 init = async () => {\n if (this.getGXserverKBsCallback) {\n await this.getGXserverKBsCallback({\n serverUrl: this.serverUrl,\n user: this.userName,\n password: this.userPassword\n }).then(result => {\n this.kbsData = result;\n });\n }\n\n // get version option\n this.versionSelectedType = this.versionSelectedTypeEl\n .value as VersionOption;\n };\n\n private cancelHandler = (): void => {\n if (this.cancelCallback) {\n this.cancelCallback();\n }\n };\n\n private createHandler = async (): Promise<void> => {\n if (this.createKBCallback) {\n this.createKBCallback(\n this.selectedKbId,\n this.versionSelectedType,\n this.localKBNameEl.value,\n this.kbVersionsIds\n );\n }\n };\n\n private changeConnectionHandler = async (): Promise<void> => {\n if (this.changeConnectionCallback) {\n this.changeConnectionCallback({\n serverUrl: this.serverUrl,\n user: this.userName,\n password: this.userPassword\n });\n }\n };\n\n private renderKbs = (): HTMLGxIdeListSelectorItemElement[] => {\n return this.kbsData.map(kb => {\n return (\n <gx-ide-list-selector-item\n itemId={kb.id}\n itemValue={kb.name}\n ></gx-ide-list-selector-item>\n );\n });\n };\n\n private selectionChangedHandler = (event: CustomEvent<ItemData[]>) => {\n this.selectedKbId = event.detail[0].itemId;\n };\n\n private selectedVersionHandler = async () => {\n if (this.selectKBVersionsCallback) {\n await this.selectKBVersionsCallback(this.selectedKbId).then(result => {\n if (result?.length) {\n this.kbVersions = result;\n this.kbVersionsIds = result.map(version => version.id.toString());\n }\n });\n }\n };\n\n private versionsChangedHandler = (\n event: CustomEvent<{ value: string; id?: string }>\n ) => {\n this.versionSelectedType = event.detail.value as VersionOption;\n };\n\n // 11.RENDER() FUNCTION //\n\n render(): void {\n return (\n <Host class=\"gx-ide-component\">\n <div class=\"gx-ide-main-wrapper\">\n <gx-ide-container\n slimmerFooter\n noContentPadding\n noContentGap\n containerTitle={\n this.displayTitle ? this._componentLocale.componentName : null\n }\n >\n <div class=\"header\">\n {/* server url */}\n <div class=\"header__item\">\n <gxg-label labelPosition=\"start\" class=\"kb-label\">\n {this._componentLocale.header.serverUrl}\n </gxg-label>\n <p>{this.serverUrl}</p>\n </div>\n\n {/* user */}\n <div class=\"header__item\">\n <gxg-label labelPosition=\"start\" class=\"kb-label\">\n {this._componentLocale.header.user}\n </gxg-label>\n <p>{this.userName}</p>\n </div>\n\n {/* change */}\n <gxg-button\n type=\"secondary-text-only\"\n class=\"header__button\"\n onClick={this.changeConnectionHandler}\n >\n {this._componentLocale.header.change}\n </gxg-button>\n </div>\n\n <main class=\"main\">\n {/* search kbs */}\n <gxg-form-text\n icon=\"gemini-tools/search\"\n iconPosition=\"start\"\n placeholder={this._componentLocale.main.searchKB}\n maxWidth=\"300px\"\n ref={el => (this.searchKbsEl = el as HTMLGxgFormTextElement)}\n ></gxg-form-text>\n\n {/* kbs list */}\n <gx-ide-list-selector\n listName=\"kbs-list\"\n ellipsis\n onSelectionChanged={this.selectionChangedHandler}\n class=\"kbs-list\"\n >\n {this.renderKbs()}\n </gx-ide-list-selector>\n\n {/* select version */}\n <gxg-form-radio-group\n row\n onChange={this.versionsChangedHandler}\n ref={el =>\n (this.versionSelectedTypeEl =\n el as HTMLGxgFormRadioGroupElement)\n }\n >\n <gxg-form-radio\n label={this._componentLocale.main.trunkVersion}\n id=\"Trunk\"\n value=\"Trunk\"\n ></gxg-form-radio>\n <gxg-form-radio\n label={this._componentLocale.main.allVersions}\n id=\"All\"\n value=\"All\"\n ></gxg-form-radio>\n <gxg-form-radio\n label={this._componentLocale.main.selectVersion}\n id=\"Select\"\n value=\"Select\"\n ></gxg-form-radio>\n </gxg-form-radio-group>\n\n {/* local kb name */}\n <div class=\"versions-container\">\n <gxg-label labelPosition=\"above\">\n {this._componentLocale.main.selectVersion}\n </gxg-label>\n\n <div class=\"versions-container__input\">\n <gxg-form-text\n readonly\n value={`${this.kbVersions.length.toString()} versions selected`}\n ></gxg-form-text>\n <gxg-button\n type=\"secondary-icon-only\"\n icon=\"gemini-tools/show-more-horizontal\"\n onClick={this.selectedVersionHandler}\n ></gxg-button>\n </div>\n </div>\n {/* local kb name */}\n <gxg-form-text\n label=\"Local KB Name\"\n labelPosition=\"above\"\n ref={el => (this.localKBNameEl = el as HTMLGxgFormTextElement)}\n ></gxg-form-text>\n </main>\n\n {/* cancel / create */}\n <gxg-button\n type=\"outlined\"\n slot=\"footer-end\"\n onClick={this.cancelHandler}\n >\n {this._componentLocale.footer.cancel}\n </gxg-button>\n <gxg-button onClick={this.createHandler} slot=\"footer-end\">\n {this._componentLocale.footer.create}\n </gxg-button>\n </gx-ide-container>\n </div>\n <gxg-shortcuts src={this.shortcutsSrc}></gxg-shortcuts>\n </Host>\n );\n }\n}\n\nexport type KBData = {\n id: string;\n name: string;\n};\n\nexport type KBVersion = {\n id: number;\n name: string;\n type: VersionType;\n};\n\nexport type VersionOption = \"Trunk\" | \"All\" | \"Select\";\n\nexport type VersionType = \"Branch\" | \"Frozen\";\n"],"mappings":";;;;AAAA,MAAMA,IAAwB;;MCwBjBC,IAAuB;;;;IAS1BC,KAAAC,oBAAoB;IACpBD,KAAAE,eAAeC,EACrB;;;;QAgIMH,KAAAI,OAAOC;MACb,IAAIL,KAAKM,wBAAwB;cACzBN,KAAKM,uBAAuB;UAChCC,WAAWP,KAAKO;UAChBC,MAAMR,KAAKS;UACXC,UAAUV,KAAKW;WACdC,MAAKC;UACNb,KAAKc,UAAUD;AAAM;;;YAKzBb,KAAKe,sBAAsBf,KAAKgB,sBAC7BC;AAAsB;IAGnBjB,KAAAkB,gBAAgB;MACtB,IAAIlB,KAAKmB,gBAAgB;QACvBnB,KAAKmB;;;IAIDnB,KAAAoB,gBAAgBf;MACtB,IAAIL,KAAKqB,kBAAkB;QACzBrB,KAAKqB,iBACHrB,KAAKsB,cACLtB,KAAKe,qBACLf,KAAKuB,cAAcN,OACnBjB,KAAKwB;;;IAKHxB,KAAAyB,0BAA0BpB;MAChC,IAAIL,KAAK0B,0BAA0B;QACjC1B,KAAK0B,yBAAyB;UAC5BnB,WAAWP,KAAKO;UAChBC,MAAMR,KAAKS;UACXC,UAAUV,KAAKW;;;;IAKbX,KAAA2B,YAAY,MACX3B,KAAKc,QAAQc,KAAIC,KAEpBC,EAAA;MACEC,QAAQF,EAAGG;MACXC,WAAWJ,EAAGK;;IAMdlC,KAAAmC,0BAA2BC;MACjCpC,KAAK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ingsCss","GxIdeGamInstallationSettings","this","renderedFirstTime","repairCallbackHandler","async","saveCallback","data","importWebPanels","webPanelsCheckboxEl","checked","importPanels","panelsCheckboxEl","futureUpgrades","futureUpgradesComboEl","value","repairCallback","saveCallbackHandler","cancelCallbackHandler","cancelCallback","renderHeader","h","class","slot","configurationType","type","_componentLocale","header","headerTextInstallation","firstSentence","secondSentence","thirdSentence","headerTextUpdate","renderFilters","filters","filtersHeading","labelPosition","center","label","webPanelsCheckbox","part","ref","el","panelsCheckbox","futureUpgradesComboLabel","disableFilter","manageFutureUpgrades","installAutomatically","promptMe","neverUpdate","componentWillLoad","Locale","getComponentStrings","componentDidRender","componentDidRenderFirstTime","emit","componentName","render","Host","noHeadingPadding","headingPaddingTop","noContentPadding","noContentGap","noAboveFooterPadding","containerTitle","displayTitle","slimmerFooter","config","gxIdeContainer","footer","footerRepairText","footerSaveText","footerCancelText","enableSecurity","onClick","repairButton","cancelButton","no","confirmButton","yes"],"sources":["src/components/gam-installation-settings/gam-installation-settings.scss?tag=gx-ide-gam-installation-settings&encapsulation=shadow","src/components/gam-installation-settings/gam-installation-settings.tsx"],"sourcesContent":["@import \"../../global/gx-ide-common.scss\";\n@import \"../../global/gx-ide-mixins.scss\";\n\n:host {\n display: block;\n}\n/*Header*/\n.header {\n border-top: 1px solid var(--gx-ide-container-border-color);\n padding: var(--gx-ide-container__padding) var(--gx-ide-container__padding);\n}\n/*Main*/\n.message-checkbox-container {\n padding: 0 var(--gx-ide-container__padding) var(--gx-ide-container__padding)\n var(--gx-ide-container__padding);\n}\n/*Filters*/\n.filters {\n display: grid;\n gap: var(--gx-ide-grid-column-gap);\n padding: var(--gx-ide-container__padding);\n\n &__wrapper {\n display: flex;\n gap: var(--gx-ide-container__padding);\n\n > * {\n flex: 1;\n }\n }\n &__front-end-objects {\n display: flex;\n gap: var(--gx-ide-grid-column-gap);\n }\n}\n.footer-above {\n display: flex;\n gap: var(--gx-ide-container__padding);\n > * {\n flex: 1;\n font-size: var(--mer-font__size--xxs);\n padding: var(--mer-spacing--xs);\n display: flex;\n align-items: center;\n justify-content: center;\n line-height: 1.5em;\n }\n > *:first-child {\n border-inline-end: var(--mer-border__width--sm) solid\n var(--gx-ide-container-border-color);\n }\n &__right {\n display: flex;\n flex-direction: column;\n }\n}\n","/* STENCIL IMPORTS */\nimport {\n Component,\n Host,\n h,\n Prop,\n Element,\n Event,\n EventEmitter,\n State\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 /**\n * Current value for Used in objects\n */\n\n @State() fileName: string = \"\";\n @State() selectedFile: File;\n @State() importingIsInProcess = false;\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 // 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 Front End 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 ></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 ></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 >\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"],"mappings":";;;;;;AAAA,MAAMA,IAA6B;;MCsBtBC,IAA4B;;;;IAO/BC,KAAAC,oBAAoB;;;;QA4EpBD,KAAAE,wBAAwBC;MAC9B,IAAIH,KAAKI,cAAc;QACrB,MAAMC,IAAsB;UAC1BC,iBAAiBN,KAAKO,oBAAoBC;UAC1CC,cAAcT,KAAKU,iBAAiBF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