@genexus/genexus-ide-ui 0.0.43 → 0.0.45
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/ch-grid_8.cjs.entry.js +2 -1
- package/dist/cjs/ch-icon_2.cjs.entry.js +177 -0
- package/dist/cjs/genexus-ide-ui.cjs.js +1 -1
- package/dist/cjs/grid-be8c3413.js +11 -0
- package/dist/cjs/{gxg-tab_4.cjs.entry.js → gx-ide-container_5.cjs.entry.js} +136 -2
- package/dist/cjs/gx-ide-create-kb-from-server.cjs.entry.js +1 -1
- package/dist/cjs/gx-ide-new-environment.cjs.entry.js +4 -5
- package/dist/cjs/gx-ide-new-kb.cjs.entry.js +70 -8
- package/dist/cjs/gx-ide-new-object.cjs.entry.js +3 -3
- package/dist/cjs/gx-ide-object-selector.cjs.entry.js +9 -12
- package/dist/cjs/gx-ide-references.cjs.entry.js +4 -4
- package/dist/cjs/gx-ide-team-dev-commit.cjs.entry.js +8 -5
- package/dist/cjs/gx-ide-team-dev-select-recent-comment.cjs.entry.js +1 -1
- package/dist/cjs/gx-ide-team-dev-update-partial-selection.cjs.entry.js +1 -1
- package/dist/cjs/gx-ide-team-dev-update-to-revision.cjs.entry.js +1 -1
- package/dist/cjs/gx-ide-team-dev-update.cjs.entry.js +11 -9
- package/dist/cjs/gx-ide-template.cjs.entry.js +1 -1
- package/dist/cjs/gx-ide-ww-images.cjs.entry.js +3 -3
- package/dist/cjs/{gxg-button_2.cjs.entry.js → gxg-button.cjs.entry.js} +0 -61
- package/dist/cjs/gxg-menu-item.cjs.entry.js +11 -59
- package/dist/cjs/gxg-menu-slim-item.cjs.entry.js +78 -0
- package/dist/cjs/gxg-menu-slim-list.cjs.entry.js +28 -0
- package/dist/cjs/gxg-menu-slim.cjs.entry.js +251 -0
- package/dist/cjs/gxg-menu.cjs.entry.js +12 -228
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +3 -1
- package/dist/collection/components/_template/template.css +24 -0
- package/dist/collection/components/container/container.css +7 -11
- package/dist/collection/components/container/container.js +45 -40
- package/dist/collection/components/create-kb-from-server/create-kb-from-server.css +24 -0
- package/dist/collection/components/new-environment/new-environment.css +25 -0
- package/dist/collection/components/new-environment/new-environment.js +3 -22
- package/dist/collection/components/new-kb/new-kb.css +24 -0
- package/dist/collection/components/new-kb/new-kb.js +110 -10
- package/dist/collection/components/new-object/new-object.css +24 -0
- package/dist/collection/components/new-object/new-object.js +2 -2
- package/dist/collection/components/object-selector/object-selector.css +24 -0
- package/dist/collection/components/object-selector/object-selector.js +21 -3
- package/dist/collection/components/references/references.css +24 -0
- package/dist/collection/components/references/references.js +3 -3
- package/dist/collection/components/team-dev-commit/team-dev-commit.css +33 -10
- package/dist/collection/components/team-dev-commit/team-dev-commit.js +21 -4
- package/dist/collection/components/team-dev-select-recent-comment/team-dev-select-recent-comment.css +24 -0
- package/dist/collection/components/team-dev-update/team-dev-update.css +24 -0
- package/dist/collection/components/team-dev-update/team-dev-update.js +24 -8
- package/dist/collection/components/team-dev-update-partial-selection/team-dev-update-partial-selection.css +24 -0
- package/dist/collection/components/team-dev-update-to-revision/team-dev-update-to-revision.css +24 -0
- package/dist/collection/components/ww-images/ww-images.css +24 -0
- package/dist/collection/components/ww-images/ww-images.js +2 -2
- package/dist/collection/pages/assets/common.js +21 -21
- package/dist/components/container.js +12 -24
- package/dist/components/grid.js +9 -0
- package/dist/components/gx-ide-create-kb-from-server.js +1 -1
- package/dist/components/gx-ide-new-environment.js +8 -16
- package/dist/components/gx-ide-new-kb.js +74 -10
- package/dist/components/gx-ide-new-object.js +3 -3
- package/dist/components/gx-ide-object-selector.js +9 -12
- package/dist/components/gx-ide-references.js +4 -4
- package/dist/components/gx-ide-team-dev-commit.js +17 -14
- package/dist/components/gx-ide-team-dev-select-recent-comment.js +1 -1
- package/dist/components/gx-ide-team-dev-update-partial-selection.js +1 -1
- package/dist/components/gx-ide-team-dev-update-to-revision.js +1 -1
- package/dist/components/gx-ide-team-dev-update.js +20 -18
- package/dist/components/gx-ide-template.js +1 -1
- package/dist/components/gx-ide-top-bar.js +72 -1
- package/dist/components/gx-ide-ww-images.js +3 -3
- package/dist/components/gxg-grid2.js +4 -2
- package/dist/components/gxg-menu-item.js +14 -65
- package/dist/components/gxg-menu-slim-item.js +111 -0
- package/dist/components/gxg-menu-slim-list.js +50 -0
- package/dist/components/gxg-menu-slim.js +271 -0
- package/dist/components/gxg-menu.js +14 -233
- package/dist/components/index.js +3 -1
- package/dist/components/tab-bar.js +7 -1
- package/dist/components/tab.js +13 -1
- package/dist/components/tabs.js +2 -0
- package/dist/esm/ch-grid_8.entry.js +2 -1
- package/dist/esm/ch-icon_2.entry.js +172 -0
- package/dist/esm/genexus-ide-ui.js +1 -1
- package/dist/esm/grid-1354bf8f.js +9 -0
- package/dist/esm/{gxg-tab_4.entry.js → gx-ide-container_5.entry.js} +136 -3
- package/dist/esm/gx-ide-create-kb-from-server.entry.js +1 -1
- package/dist/esm/gx-ide-new-environment.entry.js +4 -5
- package/dist/esm/gx-ide-new-kb.entry.js +70 -8
- package/dist/esm/gx-ide-new-object.entry.js +3 -3
- package/dist/esm/gx-ide-object-selector.entry.js +9 -12
- package/dist/esm/gx-ide-references.entry.js +4 -4
- package/dist/esm/gx-ide-team-dev-commit.entry.js +8 -5
- package/dist/esm/gx-ide-team-dev-select-recent-comment.entry.js +1 -1
- package/dist/esm/gx-ide-team-dev-update-partial-selection.entry.js +1 -1
- package/dist/esm/gx-ide-team-dev-update-to-revision.entry.js +1 -1
- package/dist/esm/gx-ide-team-dev-update.entry.js +11 -9
- package/dist/esm/gx-ide-template.entry.js +1 -1
- package/dist/esm/gx-ide-ww-images.entry.js +3 -3
- package/dist/esm/{gxg-button_2.entry.js → gxg-button.entry.js} +2 -62
- package/dist/esm/gxg-menu-item.entry.js +12 -60
- package/dist/esm/gxg-menu-slim-item.entry.js +74 -0
- package/dist/esm/gxg-menu-slim-list.entry.js +24 -0
- package/dist/esm/gxg-menu-slim.entry.js +247 -0
- package/dist/esm/gxg-menu.entry.js +12 -228
- package/dist/esm/loader.js +1 -1
- package/dist/genexus-ide-ui/genexus-ide-ui.esm.js +1 -1
- package/dist/genexus-ide-ui/p-04f69ecc.entry.js +1 -0
- package/dist/genexus-ide-ui/p-098a1397.entry.js +1 -0
- package/dist/genexus-ide-ui/p-0f85cf00.entry.js +1 -0
- package/dist/genexus-ide-ui/{p-38fa6211.entry.js → p-19d9c08c.entry.js} +1 -1
- package/dist/genexus-ide-ui/p-1bcabe1c.entry.js +1 -0
- package/dist/genexus-ide-ui/{p-fcdcb919.entry.js → p-1ccf523f.entry.js} +1 -1
- package/dist/genexus-ide-ui/p-2bd01c9e.entry.js +1 -0
- package/dist/genexus-ide-ui/p-42901fd7.entry.js +1 -0
- package/dist/genexus-ide-ui/p-597a1d43.entry.js +1 -0
- package/dist/genexus-ide-ui/p-6afc6187.entry.js +1 -0
- package/dist/genexus-ide-ui/p-73f61127.entry.js +1 -0
- package/dist/genexus-ide-ui/p-9014609e.entry.js +1 -0
- package/dist/genexus-ide-ui/{p-508cf8b0.entry.js → p-917c5696.entry.js} +1 -1
- package/dist/genexus-ide-ui/p-a708db45.entry.js +1 -0
- package/dist/genexus-ide-ui/p-b456483d.entry.js +1 -0
- package/dist/genexus-ide-ui/p-b74dd891.entry.js +1 -0
- package/dist/genexus-ide-ui/p-c38c6957.entry.js +1 -0
- package/dist/genexus-ide-ui/p-c61bf417.entry.js +1 -0
- package/dist/genexus-ide-ui/p-c6a7b93c.js +1 -0
- package/dist/genexus-ide-ui/p-e1cd9135.entry.js +1 -0
- package/dist/genexus-ide-ui/{p-22e142e8.entry.js → p-e4eb3828.entry.js} +1 -1
- package/dist/genexus-ide-ui/p-e5a3e3b9.entry.js +1 -0
- package/dist/genexus-ide-ui/{p-6073c264.entry.js → p-f1116ac5.entry.js} +1 -1
- package/dist/node_modules/@genexus/gemini/dist/collection/components/grid/gxg-grid.css +1 -5
- package/dist/node_modules/@genexus/gemini/dist/collection/components/menu/menu/menu.css +724 -0
- package/dist/node_modules/@genexus/gemini/dist/collection/components/menu/menu-item/menu-item.css +711 -0
- package/dist/node_modules/@genexus/gemini/dist/collection/components/tab/tab.css +8 -0
- package/dist/node_modules/@genexus/gemini/dist/collection/components/tab-bar/tab-bar.css +3 -0
- package/dist/types/components/container/container.d.ts +8 -5
- package/dist/types/components/new-environment/new-environment.d.ts +0 -4
- package/dist/types/components/new-kb/new-kb.d.ts +20 -2
- package/dist/types/components/object-selector/object-selector.d.ts +10 -6
- package/dist/types/components/team-dev-commit/team-dev-commit.d.ts +4 -0
- package/dist/types/components/team-dev-update/team-dev-update.d.ts +4 -0
- package/dist/types/components.d.ts +49 -21
- package/package.json +3 -3
- package/dist/cjs/ch-icon.cjs.entry.js +0 -116
- package/dist/cjs/gx-ide-container.cjs.entry.js +0 -137
- package/dist/cjs/gxg-menu-list.cjs.entry.js +0 -28
- package/dist/components/gxg-menu-list.js +0 -50
- package/dist/components/top-bar.js +0 -74
- package/dist/esm/ch-icon.entry.js +0 -112
- package/dist/esm/gx-ide-container.entry.js +0 -133
- package/dist/esm/gxg-menu-list.entry.js +0 -24
- package/dist/genexus-ide-ui/p-07e89cdd.entry.js +0 -1
- package/dist/genexus-ide-ui/p-1770fa36.entry.js +0 -1
- package/dist/genexus-ide-ui/p-179713ef.entry.js +0 -1
- package/dist/genexus-ide-ui/p-181ee8a8.entry.js +0 -1
- package/dist/genexus-ide-ui/p-35fc1102.entry.js +0 -1
- package/dist/genexus-ide-ui/p-4d39c34a.entry.js +0 -1
- package/dist/genexus-ide-ui/p-55d98662.entry.js +0 -1
- package/dist/genexus-ide-ui/p-5ad757f4.entry.js +0 -1
- package/dist/genexus-ide-ui/p-7a83018d.entry.js +0 -1
- package/dist/genexus-ide-ui/p-7a90def4.entry.js +0 -1
- package/dist/genexus-ide-ui/p-7c38776f.entry.js +0 -1
- package/dist/genexus-ide-ui/p-82228c39.entry.js +0 -1
- package/dist/genexus-ide-ui/p-8afbdbc9.entry.js +0 -1
- package/dist/genexus-ide-ui/p-a89c699c.entry.js +0 -1
- package/dist/genexus-ide-ui/p-cab184a7.entry.js +0 -1
- package/dist/genexus-ide-ui/p-d376dada.entry.js +0 -1
- /package/dist/node_modules/@genexus/gemini/dist/collection/components/{menu-item/menu-item.css → menu-slim/item/item.css} +0 -0
- /package/dist/node_modules/@genexus/gemini/dist/collection/components/{menu-list/menu-list.css → menu-slim/list/list.css} +0 -0
- /package/dist/node_modules/@genexus/gemini/dist/collection/components/{menu → menu-slim/menu}/menu.css +0 -0
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
import { TitleAlignment } from "@genexus/gemini/dist/types/common/types";
|
|
2
2
|
export declare class GxIdeContainer {
|
|
3
|
-
/**
|
|
4
|
-
* Makes this component content act as a fieldset
|
|
5
|
-
*/
|
|
6
|
-
fieldset: boolean;
|
|
7
3
|
/**
|
|
8
4
|
* The title of the container
|
|
9
5
|
*/
|
|
@@ -52,6 +48,14 @@ export declare class GxIdeContainer {
|
|
|
52
48
|
* The heading justification
|
|
53
49
|
*/
|
|
54
50
|
readonly headingJustify: HeadingJustify;
|
|
51
|
+
/**
|
|
52
|
+
* Makes the content a flex container
|
|
53
|
+
*/
|
|
54
|
+
readonly flexContent: boolean;
|
|
55
|
+
/**
|
|
56
|
+
* Removes the border-top from the content
|
|
57
|
+
*/
|
|
58
|
+
readonly noContentBorderTop: boolean;
|
|
55
59
|
/**
|
|
56
60
|
* Removes the padding from the content
|
|
57
61
|
*/
|
|
@@ -103,7 +107,6 @@ export declare class GxIdeContainer {
|
|
|
103
107
|
hasOnlyFooter: boolean;
|
|
104
108
|
componentWillLoad(): void;
|
|
105
109
|
private evaluateSlots;
|
|
106
|
-
private evaluateFullHeight;
|
|
107
110
|
private evaluateSections;
|
|
108
111
|
private headingClasses;
|
|
109
112
|
private contentClasses;
|
|
@@ -13,10 +13,6 @@ export declare class GxIdeNewEnvironment {
|
|
|
13
13
|
private dataStoreEl;
|
|
14
14
|
private frontEndsEl;
|
|
15
15
|
private runtimeEl;
|
|
16
|
-
/**
|
|
17
|
-
* If true, will hide the top-bar
|
|
18
|
-
*/
|
|
19
|
-
readonly hideTopBar = false;
|
|
20
16
|
/**
|
|
21
17
|
* It allows defining the DBMS that will be used in the solution
|
|
22
18
|
*/
|
|
@@ -11,6 +11,7 @@ export declare class GxIdeNewKb {
|
|
|
11
11
|
* An object with the initial value for each multi-option element.
|
|
12
12
|
*/
|
|
13
13
|
private _initialComboValue;
|
|
14
|
+
private previousFrontEndsState;
|
|
14
15
|
el: HTMLGxIdeNewKbElement;
|
|
15
16
|
private authenticationTypeEl;
|
|
16
17
|
private collationEl;
|
|
@@ -34,11 +35,11 @@ export declare class GxIdeNewKb {
|
|
|
34
35
|
/**
|
|
35
36
|
* It allows defining the DBMS that will be used in the solution
|
|
36
37
|
*/
|
|
37
|
-
|
|
38
|
+
defaultDataSources: GxOption[];
|
|
38
39
|
/**
|
|
39
40
|
* It allows selecting multiple generators for the front end
|
|
40
41
|
*/
|
|
41
|
-
|
|
42
|
+
frontEnds: GxOption[];
|
|
42
43
|
/**
|
|
43
44
|
* Specify whether it is feasible to display information related to local configuration parameters
|
|
44
45
|
*/
|
|
@@ -111,6 +112,14 @@ export declare class GxIdeNewKb {
|
|
|
111
112
|
* Callback invoked when the user wants to cancel KB creation (‘Cancel’ button)
|
|
112
113
|
*/
|
|
113
114
|
readonly cancelCallback: CancelCallback;
|
|
115
|
+
/**
|
|
116
|
+
* Callback invoked when the user wants to cancel KB creation (‘Cancel’ button)
|
|
117
|
+
*/
|
|
118
|
+
readonly getDataSourcesCallback: GetDataSourcesCallback;
|
|
119
|
+
/**
|
|
120
|
+
* Callback invoked when the user changes the prototyping environment, allowing for the modification of the list of front ends
|
|
121
|
+
*/
|
|
122
|
+
readonly getFrontEndsCallback: GetFrontEndsCallback;
|
|
114
123
|
/**
|
|
115
124
|
* This event is emitted once just after the component is fully loaded and the first render() occurs
|
|
116
125
|
*/
|
|
@@ -134,6 +143,13 @@ export declare class GxIdeNewKb {
|
|
|
134
143
|
*/
|
|
135
144
|
private selectLocationHandler;
|
|
136
145
|
private getFrontEndOptionsValues;
|
|
146
|
+
/**
|
|
147
|
+
* @description it evaluates what front end options need to be updated on 'getFrontEndsCallback', by comparing the new state (getFrontEndsCallback promise result) and the previous state (previousFrontEndsState)
|
|
148
|
+
*/
|
|
149
|
+
private updateFrontEnds;
|
|
150
|
+
private getDataSources;
|
|
151
|
+
private prototypingEnvironmentValueChangedHandler;
|
|
152
|
+
private prototypingTargetValueChangedHandler;
|
|
137
153
|
private createKbHandler;
|
|
138
154
|
private cancelKbHandler;
|
|
139
155
|
private renderTabBasic;
|
|
@@ -162,4 +178,6 @@ export interface NewKBData {
|
|
|
162
178
|
}
|
|
163
179
|
export type CreateCallback = (data: NewKBData) => Promise<FormSubmitResult>;
|
|
164
180
|
export type CancelCallback = () => Promise<void>;
|
|
181
|
+
export type GetDataSourcesCallback = (selectedPrototypingEnvironmentId: string, selectedPrototypingTargetId: string) => Promise<GxOption[]>;
|
|
182
|
+
export type GetFrontEndsCallback = (selectedPrototypingEnvironmentId: string) => Promise<GxOption[]>;
|
|
165
183
|
export type SelectLocationCallback = () => Promise<string>;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { EventEmitter } from "../../stencil-public-runtime";
|
|
2
|
-
import { GxOption } from "../../common/types";
|
|
3
|
-
import { EntityData } from "../../common/types";
|
|
2
|
+
import { EntityData, GxOption } from "../../common/types";
|
|
4
3
|
import { FILTER_AFTER } from "../../common/constants";
|
|
5
4
|
export declare class GxIdeObjectSelector {
|
|
6
5
|
/**
|
|
@@ -81,12 +80,17 @@ export declare class GxIdeObjectSelector {
|
|
|
81
80
|
* This is a function provided by the developer for expanded the data of object that is double-clicked or entered.
|
|
82
81
|
*/
|
|
83
82
|
readonly openSelectionCallback: OpenSelectionCallback;
|
|
83
|
+
/**
|
|
84
|
+
* This event is emitted once just after the component is fully loaded and the first render() occurs
|
|
85
|
+
*/
|
|
86
|
+
componentDidRenderEvent: EventEmitter<boolean>;
|
|
84
87
|
/**
|
|
85
88
|
* This event is emitted once just after the component is fully loaded and the first render() occurs.
|
|
86
89
|
*/
|
|
87
90
|
componentDidLoadEvent: EventEmitter<boolean>;
|
|
88
91
|
componentWillLoad(): Promise<void>;
|
|
89
92
|
componentDidLoad(): void;
|
|
93
|
+
componentDidRender(): void;
|
|
90
94
|
/**
|
|
91
95
|
* Validate necessary data input
|
|
92
96
|
*/
|
|
@@ -114,7 +118,7 @@ export type CancelCallback = () => Promise<void>;
|
|
|
114
118
|
export type SelectModuleCallback = () => Promise<EntityData | undefined>;
|
|
115
119
|
export type OpenSelectionCallback = (ids: string[]) => Promise<void>;
|
|
116
120
|
export type LoadCallback = (filters: ObjectFiltersData) => Promise<ObjectData[]>;
|
|
117
|
-
export
|
|
121
|
+
export type ObjectFiltersData = {
|
|
118
122
|
pattern?: string;
|
|
119
123
|
type: string;
|
|
120
124
|
category?: string;
|
|
@@ -122,8 +126,8 @@ export interface ObjectFiltersData {
|
|
|
122
126
|
modifiedAfter?: string;
|
|
123
127
|
modifiedBy?: string;
|
|
124
128
|
modifiedDate?: Date;
|
|
125
|
-
}
|
|
126
|
-
export
|
|
129
|
+
};
|
|
130
|
+
export type ObjectData = {
|
|
127
131
|
id: string;
|
|
128
132
|
icon: string;
|
|
129
133
|
name: string;
|
|
@@ -132,5 +136,5 @@ export interface ObjectData {
|
|
|
132
136
|
module: string;
|
|
133
137
|
modifiedDate?: Date;
|
|
134
138
|
importDate?: Date;
|
|
135
|
-
}
|
|
139
|
+
};
|
|
136
140
|
export type ObjectSelectorFilterAfter = typeof FILTER_AFTER.NONE | typeof FILTER_AFTER.DATE_TIME | typeof FILTER_AFTER.LAST_BUILD | typeof FILTER_AFTER.IMPORT;
|
|
@@ -60,6 +60,10 @@ export declare class GxIdeTeamDevCommit {
|
|
|
60
60
|
* Callback that must be invoked when user activate the context menu in any of the grids
|
|
61
61
|
*/
|
|
62
62
|
readonly objectsContextMenuCallback: ObjectsContextMenuCallback;
|
|
63
|
+
/**
|
|
64
|
+
* This event is emitted once just after the component is fully loaded and the first render() occurs
|
|
65
|
+
*/
|
|
66
|
+
componentDidRenderEvent: EventEmitter<boolean>;
|
|
63
67
|
/**
|
|
64
68
|
* This event is emitted once just after the component is fully loaded and the first render() occurs.
|
|
65
69
|
*/
|
|
@@ -93,6 +93,10 @@ export declare class GxIdeTeamDevUpdate {
|
|
|
93
93
|
* This event is emitted once just after the component is fully loaded and the first render() occurs.
|
|
94
94
|
*/
|
|
95
95
|
componentDidLoadEvent: EventEmitter<boolean>;
|
|
96
|
+
/**
|
|
97
|
+
* This event is emitted once just after the component is fully loaded and the first render() occurs
|
|
98
|
+
*/
|
|
99
|
+
componentDidRenderEvent: EventEmitter<boolean>;
|
|
96
100
|
componentWillLoad(): Promise<void>;
|
|
97
101
|
componentDidLoad(): Promise<void>;
|
|
98
102
|
componentDidRender(): Promise<void>;
|
|
@@ -14,7 +14,7 @@ import { EntitySelectorLabels } from "./components/entity-selector/entity-select
|
|
|
14
14
|
import { LabelPosition as LabelPosition1 } from "./components/directory-selector/directory-selector";
|
|
15
15
|
import { ItemData } from "./components/list-selector/list-selector-item/list-selector-item";
|
|
16
16
|
import { CancelCallback, ChangedCallback, CreateCallback } from "./components/new-environment/new-environment";
|
|
17
|
-
import { CancelCallback as CancelCallback1, CreateCallback as CreateCallback1, SelectLocationCallback } from "./components/new-kb/new-kb";
|
|
17
|
+
import { CancelCallback as CancelCallback1, CreateCallback as CreateCallback1, GetDataSourcesCallback, GetFrontEndsCallback, SelectLocationCallback } from "./components/new-kb/new-kb";
|
|
18
18
|
import { CancelCallback as CancelCallback2, CreateCallback as CreateCallback2, NewObjectData, SelectModuleCallback, TypeCategoryData, ValidateNameCallback } from "./components/new-object/new-object";
|
|
19
19
|
import { CancelCallback as CancelCallback3, LoadCallback, NewObjectCallback, ObjectType, OpenSelectionCallback, SelectModuleCallback as SelectModuleCallback1 } from "./components/object-selector/object-selector";
|
|
20
20
|
import { LoadReferencesCallback, ObjectData, OpenObjectCallback, OpenSelectorDialogCallback, SelectorSourceCallback, SelectReferenceCallback } from "./components/references/references";
|
|
@@ -56,9 +56,9 @@ export namespace Components {
|
|
|
56
56
|
*/
|
|
57
57
|
"displayBorderTop": boolean;
|
|
58
58
|
/**
|
|
59
|
-
* Makes
|
|
59
|
+
* Makes the content a flex container
|
|
60
60
|
*/
|
|
61
|
-
"
|
|
61
|
+
"flexContent": boolean;
|
|
62
62
|
/**
|
|
63
63
|
* The footer justification
|
|
64
64
|
*/
|
|
@@ -79,6 +79,10 @@ export namespace Components {
|
|
|
79
79
|
* Removes the border top from the footer
|
|
80
80
|
*/
|
|
81
81
|
"noBorderFooter": boolean;
|
|
82
|
+
/**
|
|
83
|
+
* Removes the border-top from the content
|
|
84
|
+
*/
|
|
85
|
+
"noContentBorderTop": boolean;
|
|
82
86
|
/**
|
|
83
87
|
* Removes the gap from the content
|
|
84
88
|
*/
|
|
@@ -283,10 +287,6 @@ export namespace Components {
|
|
|
283
287
|
* It allows selecting multiple generators for the front end
|
|
284
288
|
*/
|
|
285
289
|
"frontEnds": GxOption[];
|
|
286
|
-
/**
|
|
287
|
-
* If true, will hide the top-bar
|
|
288
|
-
*/
|
|
289
|
-
"hideTopBar": false;
|
|
290
290
|
/**
|
|
291
291
|
* Possible values for 'Language' combo
|
|
292
292
|
*/
|
|
@@ -321,18 +321,26 @@ export namespace Components {
|
|
|
321
321
|
* Disabled if the first item of the 'Server Name' combo is selected
|
|
322
322
|
*/
|
|
323
323
|
"createDataFilesInKBFolder": boolean;
|
|
324
|
-
/**
|
|
325
|
-
* It allows defining the DBMS that will be used in the solution
|
|
326
|
-
*/
|
|
327
|
-
"dataSources": GxOption[];
|
|
328
324
|
/**
|
|
329
325
|
* Name of the database where we are going to persist the information of our KB
|
|
330
326
|
*/
|
|
331
327
|
"databaseName": string;
|
|
328
|
+
/**
|
|
329
|
+
* It allows defining the DBMS that will be used in the solution
|
|
330
|
+
*/
|
|
331
|
+
"defaultDataSources": GxOption[];
|
|
332
332
|
/**
|
|
333
333
|
* It allows selecting multiple generators for the front end
|
|
334
334
|
*/
|
|
335
335
|
"frontEnds": GxOption[];
|
|
336
|
+
/**
|
|
337
|
+
* Callback invoked when the user wants to cancel KB creation (‘Cancel’ button)
|
|
338
|
+
*/
|
|
339
|
+
"getDataSourcesCallback": GetDataSourcesCallback;
|
|
340
|
+
/**
|
|
341
|
+
* Callback invoked when the user changes the prototyping environment, allowing for the modification of the list of front ends
|
|
342
|
+
*/
|
|
343
|
+
"getFrontEndsCallback": GetFrontEndsCallback;
|
|
336
344
|
/**
|
|
337
345
|
* Specify whether it is feasible to display information related to local configuration parameters
|
|
338
346
|
*/
|
|
@@ -1014,9 +1022,9 @@ declare namespace LocalJSX {
|
|
|
1014
1022
|
*/
|
|
1015
1023
|
"displayBorderTop"?: boolean;
|
|
1016
1024
|
/**
|
|
1017
|
-
* Makes
|
|
1025
|
+
* Makes the content a flex container
|
|
1018
1026
|
*/
|
|
1019
|
-
"
|
|
1027
|
+
"flexContent"?: boolean;
|
|
1020
1028
|
/**
|
|
1021
1029
|
* The footer justification
|
|
1022
1030
|
*/
|
|
@@ -1037,6 +1045,10 @@ declare namespace LocalJSX {
|
|
|
1037
1045
|
* Removes the border top from the footer
|
|
1038
1046
|
*/
|
|
1039
1047
|
"noBorderFooter"?: boolean;
|
|
1048
|
+
/**
|
|
1049
|
+
* Removes the border-top from the content
|
|
1050
|
+
*/
|
|
1051
|
+
"noContentBorderTop"?: boolean;
|
|
1040
1052
|
/**
|
|
1041
1053
|
* Removes the gap from the content
|
|
1042
1054
|
*/
|
|
@@ -1253,10 +1265,6 @@ declare namespace LocalJSX {
|
|
|
1253
1265
|
* It allows selecting multiple generators for the front end
|
|
1254
1266
|
*/
|
|
1255
1267
|
"frontEnds": GxOption[];
|
|
1256
|
-
/**
|
|
1257
|
-
* If true, will hide the top-bar
|
|
1258
|
-
*/
|
|
1259
|
-
"hideTopBar"?: false;
|
|
1260
1268
|
/**
|
|
1261
1269
|
* Possible values for 'Language' combo
|
|
1262
1270
|
*/
|
|
@@ -1295,18 +1303,26 @@ declare namespace LocalJSX {
|
|
|
1295
1303
|
* Disabled if the first item of the 'Server Name' combo is selected
|
|
1296
1304
|
*/
|
|
1297
1305
|
"createDataFilesInKBFolder"?: boolean;
|
|
1298
|
-
/**
|
|
1299
|
-
* It allows defining the DBMS that will be used in the solution
|
|
1300
|
-
*/
|
|
1301
|
-
"dataSources": GxOption[];
|
|
1302
1306
|
/**
|
|
1303
1307
|
* Name of the database where we are going to persist the information of our KB
|
|
1304
1308
|
*/
|
|
1305
1309
|
"databaseName"?: string;
|
|
1310
|
+
/**
|
|
1311
|
+
* It allows defining the DBMS that will be used in the solution
|
|
1312
|
+
*/
|
|
1313
|
+
"defaultDataSources": GxOption[];
|
|
1306
1314
|
/**
|
|
1307
1315
|
* It allows selecting multiple generators for the front end
|
|
1308
1316
|
*/
|
|
1309
1317
|
"frontEnds": GxOption[];
|
|
1318
|
+
/**
|
|
1319
|
+
* Callback invoked when the user wants to cancel KB creation (‘Cancel’ button)
|
|
1320
|
+
*/
|
|
1321
|
+
"getDataSourcesCallback"?: GetDataSourcesCallback;
|
|
1322
|
+
/**
|
|
1323
|
+
* Callback invoked when the user changes the prototyping environment, allowing for the modification of the list of front ends
|
|
1324
|
+
*/
|
|
1325
|
+
"getFrontEndsCallback"?: GetFrontEndsCallback;
|
|
1310
1326
|
/**
|
|
1311
1327
|
* Specify whether it is feasible to display information related to local configuration parameters
|
|
1312
1328
|
*/
|
|
@@ -1447,6 +1463,10 @@ declare namespace LocalJSX {
|
|
|
1447
1463
|
* This event is emitted once just after the component is fully loaded and the first render() occurs.
|
|
1448
1464
|
*/
|
|
1449
1465
|
"onComponentDidLoadEvent"?: (event: GxIdeObjectSelectorCustomEvent<boolean>) => void;
|
|
1466
|
+
/**
|
|
1467
|
+
* This event is emitted once just after the component is fully loaded and the first render() occurs
|
|
1468
|
+
*/
|
|
1469
|
+
"onComponentDidRenderEvent"?: (event: GxIdeObjectSelectorCustomEvent<boolean>) => void;
|
|
1450
1470
|
/**
|
|
1451
1471
|
* This is a function provided by the developer for expanded the data of object that is double-clicked or entered.
|
|
1452
1472
|
*/
|
|
@@ -1527,6 +1547,10 @@ declare namespace LocalJSX {
|
|
|
1527
1547
|
* This event is emitted once just after the component is fully loaded and the first render() occurs.
|
|
1528
1548
|
*/
|
|
1529
1549
|
"onComponentDidLoadEvent"?: (event: GxIdeTeamDevCommitCustomEvent<boolean>) => void;
|
|
1550
|
+
/**
|
|
1551
|
+
* This event is emitted once just after the component is fully loaded and the first render() occurs
|
|
1552
|
+
*/
|
|
1553
|
+
"onComponentDidRenderEvent"?: (event: GxIdeTeamDevCommitCustomEvent<boolean>) => void;
|
|
1530
1554
|
/**
|
|
1531
1555
|
* Callback invoked when user check/uncheck any item from the 'Pending to Commit' grid
|
|
1532
1556
|
*/
|
|
@@ -1583,6 +1607,10 @@ declare namespace LocalJSX {
|
|
|
1583
1607
|
* This event is emitted once just after the component is fully loaded and the first render() occurs.
|
|
1584
1608
|
*/
|
|
1585
1609
|
"onComponentDidLoadEvent"?: (event: GxIdeTeamDevUpdateCustomEvent<boolean>) => void;
|
|
1610
|
+
/**
|
|
1611
|
+
* This event is emitted once just after the component is fully loaded and the first render() occurs
|
|
1612
|
+
*/
|
|
1613
|
+
"onComponentDidRenderEvent"?: (event: GxIdeTeamDevUpdateCustomEvent<boolean>) => void;
|
|
1586
1614
|
/**
|
|
1587
1615
|
* This is a function provided by the developer to call when the user clicked in server url of Update From group.
|
|
1588
1616
|
*/
|
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.
|
|
4
|
+
"version": "0.0.45",
|
|
5
5
|
"description": "GeneXus IDE UI components",
|
|
6
6
|
"main": "dist/index.cjs.js",
|
|
7
7
|
"module": "dist/index.js",
|
|
@@ -36,10 +36,10 @@
|
|
|
36
36
|
"@types/react": "^18.2.8"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
|
-
"@genexus/gemini": "*0.1.
|
|
39
|
+
"@genexus/gemini": "*0.1.471"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@genexus/gemini": "*0.1.
|
|
42
|
+
"@genexus/gemini": "*0.1.471",
|
|
43
43
|
"@stencil-community/eslint-plugin": "^0.5.0",
|
|
44
44
|
"@stencil/core": "^2.17.0",
|
|
45
45
|
"@stencil/sass": "^2.0.1",
|
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
const index = require('./index-5a32426a.js');
|
|
6
|
-
|
|
7
|
-
const iconContent = new Map();
|
|
8
|
-
const requests = new Map();
|
|
9
|
-
function getSvgContent(url) {
|
|
10
|
-
// see if we already have a request for this url
|
|
11
|
-
let request = requests.get(url);
|
|
12
|
-
if (!request) {
|
|
13
|
-
// we don't already have a request
|
|
14
|
-
request = fetch(url).then(response => {
|
|
15
|
-
if (response.ok) {
|
|
16
|
-
return response.text().then(svgContent => {
|
|
17
|
-
iconContent.set(url, svgContent);
|
|
18
|
-
return svgContent;
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
iconContent.set(url, "");
|
|
22
|
-
});
|
|
23
|
-
// cache for the same requests
|
|
24
|
-
requests.set(url, request);
|
|
25
|
-
}
|
|
26
|
-
return request;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
const iconCss = ":host(:not([auto-color])){}:host(:not([auto-color])) svg *{fill:var(--icon-color) !important}:host(:not([auto-color])) path.icons01{fill:var(--icons01-enabled)}:host(:not([auto-color])) path.icons02{fill:var(--icons02-enabled)}:host(:not([auto-color])) path.icons03{fill:var(--icons03-enabled)}:host(:not([auto-color])) path.icons04{fill:var(--icons04-enabled)}:host(:not([auto-color])) path.icons05{fill:var(--icons05-enabled)}:host(:not([auto-color])) path.icons06{fill:var(--icons06-enabled)}:host(:not([auto-color])) path.icons07{fill:var(--icons07-enabled)}:host(:not([auto-color])) path.icons08{fill:var(--icons08-enabled)}:host(:not([auto-color])) path.icons09{fill:var(--icons09-enabled)}:host{display:inline-flex;line-height:0}:host svg{width:var(--icon-size);height:var(--icon-size)}";
|
|
30
|
-
|
|
31
|
-
const ChIcon = class {
|
|
32
|
-
constructor(hostRef) {
|
|
33
|
-
index.registerInstance(this, hostRef);
|
|
34
|
-
/**
|
|
35
|
-
* If enabled, the icon will be loaded lazily when it's visible in the viewport.
|
|
36
|
-
*/
|
|
37
|
-
this.lazy = false;
|
|
38
|
-
/**
|
|
39
|
-
* If enabled, the icon will display its inherent/natural color
|
|
40
|
-
*/
|
|
41
|
-
this.autoColor = false;
|
|
42
|
-
/**
|
|
43
|
-
* The URL of the icon.
|
|
44
|
-
*/
|
|
45
|
-
this.src = "";
|
|
46
|
-
/**
|
|
47
|
-
* The size of the icon. Possible values: regular, small.
|
|
48
|
-
*/
|
|
49
|
-
this.size = "regular";
|
|
50
|
-
this.isVisible = false;
|
|
51
|
-
}
|
|
52
|
-
/** *******************************
|
|
53
|
-
METHODS
|
|
54
|
-
*********************************/
|
|
55
|
-
connectedCallback() {
|
|
56
|
-
// purposely do not return the promise here because loading
|
|
57
|
-
// the svg file should not hold up loading the app
|
|
58
|
-
// only load the svg if it's visible
|
|
59
|
-
this.waitUntilVisible(this.element, "50px", () => {
|
|
60
|
-
this.isVisible = true;
|
|
61
|
-
this.getIcon();
|
|
62
|
-
});
|
|
63
|
-
}
|
|
64
|
-
disconnectedCallback() {
|
|
65
|
-
if (this.io !== undefined) {
|
|
66
|
-
this.io.disconnect();
|
|
67
|
-
this.io = undefined;
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
waitUntilVisible(el, rootMargin, callback) {
|
|
71
|
-
if (this.lazy &&
|
|
72
|
-
typeof window !== "undefined" &&
|
|
73
|
-
window.IntersectionObserver) {
|
|
74
|
-
const io = (this.io = new window.IntersectionObserver((data) => {
|
|
75
|
-
if (data[0].isIntersecting) {
|
|
76
|
-
io.disconnect();
|
|
77
|
-
this.io = undefined;
|
|
78
|
-
callback();
|
|
79
|
-
}
|
|
80
|
-
}, { rootMargin }));
|
|
81
|
-
io.observe(el);
|
|
82
|
-
}
|
|
83
|
-
else {
|
|
84
|
-
// browser doesn't support IntersectionObserver
|
|
85
|
-
// so just fallback to always show it
|
|
86
|
-
callback();
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
async getIcon() {
|
|
90
|
-
if (this.isVisible) {
|
|
91
|
-
if (this.src) {
|
|
92
|
-
if (iconContent.has(this.src)) {
|
|
93
|
-
this.svgContent = iconContent.get(this.src);
|
|
94
|
-
}
|
|
95
|
-
else {
|
|
96
|
-
this.svgContent = await getSvgContent(this.src);
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
else {
|
|
100
|
-
this.svgContent = "";
|
|
101
|
-
return;
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
render() {
|
|
106
|
-
return index.h("div", { innerHTML: this.svgContent });
|
|
107
|
-
}
|
|
108
|
-
static get assetsDirs() { return ["ch-icon-assets"]; }
|
|
109
|
-
get element() { return index.getElement(this); }
|
|
110
|
-
static get watchers() { return {
|
|
111
|
-
"src": ["getIcon"]
|
|
112
|
-
}; }
|
|
113
|
-
};
|
|
114
|
-
ChIcon.style = iconCss;
|
|
115
|
-
|
|
116
|
-
exports.ch_icon = ChIcon;
|
|
@@ -1,137 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
const index = require('./index-5a32426a.js');
|
|
6
|
-
|
|
7
|
-
const containerCss = ":root{--ui-animaton-speed:0.2s}.gxg-title-01{font-family:var(--font-family-primary);font-weight:var(--font-weight-bold);font-size:var(--font-size-md);letter-spacing:var(--letter-spacing-md);color:var(--color-on-background);text-align:start;line-height:1.455em}.gxg-title-01--negative{font-family:var(--font-family-primary);font-weight:var(--font-weight-bold);font-size:var(--font-size-md);letter-spacing:var(--letter-spacing-md);color:var(--color-on-background);text-align:start;line-height:1.455em;color:var(--color-on-primary)}.gxg-title-02{font-family:var(--font-family-primary);font-weight:var(--font-weight-bold);font-size:var(--font-size-sm);letter-spacing:var(--letter-spacing-sm);color:var(--color-on-background);text-align:start;text-transform:uppercase;line-height:1.556em}.gxg-title-02--negative{font-family:var(--font-family-primary);font-weight:var(--font-weight-bold);font-size:var(--font-size-sm);letter-spacing:var(--letter-spacing-sm);color:var(--color-on-background);text-align:start;text-transform:uppercase;line-height:1.556em;color:var(--color-on-primary)}.gxg-title-03{font-family:var(--font-family-primary);font-weight:var(--font-weight-regular);font-size:var(--font-size-xs);letter-spacing:var(--letter-spacing-sm);color:var(--color-on-background);text-align:start;text-transform:uppercase;line-height:1.556em}.gxg-title-03--negative{font-family:var(--font-family-primary);font-weight:var(--font-weight-regular);font-size:var(--font-size-xs);letter-spacing:var(--letter-spacing-sm);color:var(--color-on-background);text-align:start;text-transform:uppercase;line-height:1.556em;color:var(--color-on-primary)}.gxg-title-04{font-family:var(--font-family-primary);font-weight:var(--font-weight-semibold);font-size:var(--font-size-md);letter-spacing:var(--letter-spacing-md);color:var(--color-on-background);text-align:start;line-height:1.455em}.gxg-title-04--negative{font-family:var(--font-family-primary);font-weight:var(--font-weight-semibold);font-size:var(--font-size-md);letter-spacing:var(--letter-spacing-md);color:var(--color-on-background);text-align:start;line-height:1.455em;color:var(--color-on-primary)}.gxg-title-05{font-family:var(--font-family-primary);font-weight:var(--font-weight-semibold);font-size:var(--font-size-sm);letter-spacing:var(--letter-spacing-sm);color:var(--color-on-background);text-align:start;line-height:1.556em}.gxg-title-05--negative{font-family:var(--font-family-primary);font-weight:var(--font-weight-semibold);font-size:var(--font-size-sm);letter-spacing:var(--letter-spacing-sm);color:var(--color-on-background);text-align:start;line-height:1.556em;color:var(--color-on-primary)}.gxg-text{font-family:var(--font-family-primary);font-weight:var(--font-weight-regular);font-size:var(--font-size-sm);letter-spacing:var(--letter-spacing-xs);color:var(--color-on-background);text-align:start;line-height:1.455em}.gxg-text--negative{font-family:var(--font-family-primary);font-weight:var(--font-weight-regular);font-size:var(--font-size-sm);letter-spacing:var(--letter-spacing-xs);color:var(--color-on-background);text-align:start;line-height:1.455em;color:var(--color-on-primary)}.gxg-text--gray{font-family:var(--font-family-primary);font-weight:var(--font-weight-regular);font-size:var(--font-size-sm);letter-spacing:var(--letter-spacing-xs);color:var(--color-on-background);text-align:start;line-height:1.455em;color:var(--gray-05)}.gxg-quote{font-family:var(--font-family-primary);font-weight:var(--font-weight-regular);font-size:var(--font-size-sm);letter-spacing:var(--letter-spacing-xs);color:var(--color-on-background);text-align:start;line-height:1.455em;font-style:italic}.gxg-quote--negative{color:var(--color-on-primary)}.gxg-link{font-family:var(--font-family-primary);font-weight:var(--font-weight-regular);font-size:var(--font-size-sm);letter-spacing:var(--letter-spacing-xs);color:var(--color-on-background);text-align:start;line-height:1.455em;color:var(--color-primary);text-decoration:underline;cursor:pointer;display:inline-block}.gxg-link:hover{color:var(--color-primary-hover)}.gxg-link:active{color:var(--color-primary-active)}.gxg-link-gray{font-family:var(--font-family-primary);font-weight:var(--font-weight-regular);font-size:var(--font-size-sm);letter-spacing:var(--letter-spacing-xs);color:var(--color-on-background);text-align:start;line-height:1.455em;color:var(--color-primary);text-decoration:underline;cursor:pointer;display:inline-block;color:var(--gray-04)}.gxg-link-gray:hover{font-family:var(--font-family-primary);font-weight:var(--font-weight-regular);font-size:var(--font-size-sm);letter-spacing:var(--letter-spacing-xs);color:var(--color-on-background);text-align:start;line-height:1.455em;color:var(--color-primary);text-decoration:underline;cursor:pointer;display:inline-block;color:var(--gray-04);color:var(--gray-06)}.gxg-alert-error{font-family:var(--font-family-primary);font-weight:var(--font-weight-regular);font-size:var(--font-size-sm);letter-spacing:var(--letter-spacing-xs);color:var(--color-on-background);text-align:start;line-height:1.455em;color:var(--color-error-dark);display:inline-block}.gxg-alert-warning{font-family:var(--font-family-primary);font-weight:var(--font-weight-regular);font-size:var(--font-size-sm);letter-spacing:var(--letter-spacing-xs);color:var(--color-on-background);text-align:start;line-height:1.455em;color:var(--color-warning-dark);display:inline-block}.gxg-alert-success{font-family:var(--font-family-primary);font-weight:var(--font-weight-regular);font-size:var(--font-size-sm);letter-spacing:var(--letter-spacing-xs);color:var(--color-on-background);text-align:start;line-height:1.455em;color:var(--color-success-dark);display:inline-block}.gxg-tab--disabled{color:var(--color-primary-disabled);pointer-events:none}.gxg-tab--disabled[disabled]{color:var(--color-primary-disabled);pointer-events:none}.gxg-label{font-family:var(--font-family-primary) !important;font-weight:var(--font-weight-semibold);font-size:var(--font-size-sm) !important;letter-spacing:var(--letter-spacing-xs);color:var(--color-primary-enabled);text-align:center;line-height:1.455em}.gxg-label:hover{color:var(--color-primary-hover)}.gxg-label:focus{color:var(--color-primary-active)}.gxg-label:active{color:var(--color-primary-active)}.gxg-label[disabled]{color:var(--color-primary-disabled)}.gxg-label--negative{color:var(--color-on-primary)}.gxg-label--negative[disabled]{color:var(--color-on-disabled)}.gxg-button-styles{font-family:var(--font-family-primary) !important;font-weight:var(--font-weight-semibold);font-size:var(--font-size-sm) !important;letter-spacing:var(--letter-spacing-xs);color:var(--color-primary-enabled);text-align:center;line-height:1.455em}.gxg-scrollbar{}.gxg-scrollbar::-webkit-scrollbar{width:6px;height:6px}.gxg-scrollbar::-webkit-scrollbar-track{background-color:var(--gray-02);border-radius:10px}.gxg-scrollbar::-webkit-scrollbar-thumb{background:var(--gray-05);border-radius:10px}.gxg-scrollbar::-webkit-scrollbar-thumb:hover{background:var(--gray-04);cursor:pointer}:host{--gxg-container-elements-spacing:var(--spacing-comp-03);display:block}:host([full-height]){height:100%}:host([full-height]) .container{height:100%;display:flex;flex-direction:column}:host([full-height]) .content{flex-grow:1}fieldset{padding:0;margin-inline-start:0;margin-inline-end:0;border:none}.heading,.content,.footer{padding:var(--gxg-container--padding)}.container--padding-s{--gxg-container--padding:var(--spacing-comp-02)}.container--padding-m{--gxg-container--padding:var(--spacing-comp-03)}.container--padding-l{--gxg-container--padding:var(--spacing-comp-04)}.container--display-border{border:1px solid var(--gx-ide-container-border-color)}.container--display-border-top{border-top:1px solid var(--gx-ide-container-border-color)}.container--display-border-end{border-inline-end:1px solid var(--gx-ide-container-border-color)}.container--display-border-bottom{border-bottom:1px solid var(--gx-ide-container-border-color)}.container--display-border-start{border-inline-start:1px solid var(--gx-ide-container-border-color)}.heading{display:flex;flex-direction:column;gap:var(--gxg-container--padding);width:100%;box-sizing:border-box;border-bottom:1px solid var(--gx-ide-container-border-color)}.heading--no-border{border-bottom:0}.heading--no-padding{padding:0}.content{display:flex;flex-direction:column;gap:var(--gxg-container-elements-spacing);overflow-x:auto;}.content::-webkit-scrollbar{width:6px;height:6px}.content::-webkit-scrollbar-track{background-color:var(--gray-02);border-radius:10px}.content::-webkit-scrollbar-thumb{background:var(--gray-05);border-radius:10px}.content::-webkit-scrollbar-thumb:hover{background:var(--gray-04);cursor:pointer}.content--no-padding{padding:0}.content--no-gap{gap:0}.content--align-items-start{align-items:start}.content--align-items-center{align-items:center}.content--align-items-end{align-items:end}.content--justify-content-start{justify-content:start}.content--justify-content-center{justify-content:center}.content--justify-content-end{justify-content:end}.footer{display:flex;gap:var(--gxg-container-elements-spacing);flex-wrap:wrap;justify-content:space-between;align-items:center;border-top:1px solid var(--gx-ide-container-border-color)}.footer__start,.footer__end{display:flex;gap:var(--gxg-container-elements-spacing)}.footer--no-border{border-top:0}.footer--no-padding{padding:0}";
|
|
8
|
-
|
|
9
|
-
const GxIdeContainer = class {
|
|
10
|
-
constructor(hostRef) {
|
|
11
|
-
index.registerInstance(this, hostRef);
|
|
12
|
-
this.headingClasses = () => {
|
|
13
|
-
return {
|
|
14
|
-
"heading": true,
|
|
15
|
-
"heading--no-border": this.noHeadingBorder || this.hasOnlyHeading,
|
|
16
|
-
[`heading--justify-${this.headingJustify}`]: true,
|
|
17
|
-
["heading--no-padding"]: this.noHeadingPadding
|
|
18
|
-
};
|
|
19
|
-
};
|
|
20
|
-
this.contentClasses = () => {
|
|
21
|
-
return {
|
|
22
|
-
"content": true,
|
|
23
|
-
"content--no-padding": this.noContentPadding,
|
|
24
|
-
"content--no-gap": this.noContentGap,
|
|
25
|
-
[`content--align-items-${this.alignItems}`]: this.alignItems !== undefined,
|
|
26
|
-
[`content--justify-content-${this.justifyContent}`]: this.justifyContent !== undefined
|
|
27
|
-
};
|
|
28
|
-
};
|
|
29
|
-
this.footer = () => {
|
|
30
|
-
return this.hasFooterSlot ? (index.h("footer", { class: {
|
|
31
|
-
"footer": true,
|
|
32
|
-
"footer--no-border": this.hasOnlyFooter || !this.hasSlottedContent,
|
|
33
|
-
[`footer--justify-${this.footerJustify}`]: true,
|
|
34
|
-
[`footer--justify-${this.footerJustify}`]: true,
|
|
35
|
-
["footer--no-padding"]: this.noFooterPadding
|
|
36
|
-
} }, index.h("div", { class: "footer__start" }, index.h("slot", { name: "footer-start" })), index.h("div", { class: "footer__end" }, index.h("slot", { name: "footer-end" })))) : null;
|
|
37
|
-
};
|
|
38
|
-
this.fieldset = false;
|
|
39
|
-
this.containerTitle = undefined;
|
|
40
|
-
this.displayBorder = false;
|
|
41
|
-
this.displayBorderTop = false;
|
|
42
|
-
this.displayBorderEnd = false;
|
|
43
|
-
this.displayBorderBottom = false;
|
|
44
|
-
this.displayBorderStart = false;
|
|
45
|
-
this.sectionsPadding = "m";
|
|
46
|
-
this.fullHeight = false;
|
|
47
|
-
this.titleAlignment = "center";
|
|
48
|
-
this.noHeadingBorder = false;
|
|
49
|
-
this.noHeadingPadding = false;
|
|
50
|
-
this.headingJustify = "center";
|
|
51
|
-
this.noContentPadding = false;
|
|
52
|
-
this.noContentGap = false;
|
|
53
|
-
this.alignItems = undefined;
|
|
54
|
-
this.justifyContent = undefined;
|
|
55
|
-
this.noFooterPadding = false;
|
|
56
|
-
this.footerJustify = "end";
|
|
57
|
-
this.noBorderFooter = false;
|
|
58
|
-
this.hasHeaderSlot = false;
|
|
59
|
-
this.hasSlottedContent = false;
|
|
60
|
-
this.hasFooterSlot = false;
|
|
61
|
-
this.hasOnlyHeading = false;
|
|
62
|
-
this.hasOnlyFooter = false;
|
|
63
|
-
}
|
|
64
|
-
// 4.PUBLIC PROPERTY API /
|
|
65
|
-
// 5.EVENTS (EMIT) //
|
|
66
|
-
// 6.COMPONENT LIFECYCLE EVENTS //
|
|
67
|
-
componentWillLoad() {
|
|
68
|
-
this.evaluateSlots();
|
|
69
|
-
this.evaluateFullHeight();
|
|
70
|
-
}
|
|
71
|
-
// 7.LISTENERS //
|
|
72
|
-
// 8.PUBLIC METHODS API //
|
|
73
|
-
// 9.LOCAL METHODS //
|
|
74
|
-
evaluateSlots() {
|
|
75
|
-
// header
|
|
76
|
-
const headerSlot = this.el.querySelectorAll(':scope > [slot="header"]');
|
|
77
|
-
if (headerSlot.length) {
|
|
78
|
-
this.hasHeaderSlot = true;
|
|
79
|
-
}
|
|
80
|
-
// content
|
|
81
|
-
const slottedContent = this.el.querySelectorAll(":scope > :not([slot])");
|
|
82
|
-
if (slottedContent.length) {
|
|
83
|
-
this.hasSlottedContent = true;
|
|
84
|
-
}
|
|
85
|
-
// footer
|
|
86
|
-
const footerStartSlot = this.el.querySelectorAll(':scope > [slot="footer-start"]');
|
|
87
|
-
const footerEndSlot = this.el.querySelectorAll(':scope > [slot="footer-end"]');
|
|
88
|
-
if (footerStartSlot.length || footerEndSlot.length) {
|
|
89
|
-
this.hasFooterSlot = true;
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
evaluateFullHeight() {
|
|
93
|
-
if (this.fullHeight && this.fieldset) {
|
|
94
|
-
/* If full-height, fieldset has to be false*/
|
|
95
|
-
this.fieldset = false;
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
evaluateSections() {
|
|
99
|
-
if (!this.hasSlottedContent && !this.hasFooterSlot) {
|
|
100
|
-
this.hasOnlyHeading = true;
|
|
101
|
-
}
|
|
102
|
-
if (!this.hasSlottedContent && !this.containerTitle) {
|
|
103
|
-
this.hasOnlyFooter = true;
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
// 10.RENDER() FUNCTION //
|
|
107
|
-
render() {
|
|
108
|
-
this.evaluateSections();
|
|
109
|
-
let result;
|
|
110
|
-
if (this.fieldset) {
|
|
111
|
-
result = [
|
|
112
|
-
index.h("fieldset", null, this.containerTitle || this.hasHeaderSlot ? (index.h("legend", { class: this.headingClasses() }, this.containerTitle ? (index.h("gxg-title", { type: "title-04", alignment: this.titleAlignment }, this.containerTitle)) : null, this.hasHeaderSlot ? (index.h("div", { class: "heading__inner-wrapper" }, index.h("slot", { name: "header" }))) : null)) : null, this.hasSlottedContent ? (index.h("div", { class: this.contentClasses() }, index.h("slot", null))) : null),
|
|
113
|
-
this.footer()
|
|
114
|
-
];
|
|
115
|
-
}
|
|
116
|
-
else {
|
|
117
|
-
result = [
|
|
118
|
-
this.containerTitle || this.hasHeaderSlot ? (index.h("header", { class: this.headingClasses() }, this.containerTitle ? (index.h("gxg-title", { type: "title-04", alignment: this.titleAlignment }, this.containerTitle)) : null, this.hasHeaderSlot ? (index.h("div", { class: "heading__inner-wrapper" }, index.h("slot", { name: "header" }))) : null)) : null,
|
|
119
|
-
this.hasSlottedContent ? (index.h("div", { class: this.contentClasses() }, index.h("slot", null))) : null,
|
|
120
|
-
this.footer()
|
|
121
|
-
];
|
|
122
|
-
}
|
|
123
|
-
return (index.h(index.Host, null, index.h("div", { class: {
|
|
124
|
-
"container": true,
|
|
125
|
-
[`container--padding-${this.sectionsPadding}`]: true,
|
|
126
|
-
"container--display-border": this.displayBorder,
|
|
127
|
-
"container--display-border-top": this.displayBorderTop,
|
|
128
|
-
"container--display-border-end": this.displayBorderEnd,
|
|
129
|
-
"container--display-border-bottom": this.displayBorderBottom,
|
|
130
|
-
"container--display-border-start": this.displayBorderStart
|
|
131
|
-
} }, result)));
|
|
132
|
-
}
|
|
133
|
-
get el() { return index.getElement(this); }
|
|
134
|
-
};
|
|
135
|
-
GxIdeContainer.style = containerCss;
|
|
136
|
-
|
|
137
|
-
exports.gx_ide_container = GxIdeContainer;
|