@genexus/genexus-ide-ui 0.0.36 → 0.0.38
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-alert.cjs.entry.js +120 -0
- package/dist/cjs/ch-suggest_4.cjs.entry.js +46 -11
- package/dist/cjs/ch-timer.cjs.entry.js +45 -0
- package/dist/cjs/genexus-ide-ui.cjs.js +1 -1
- package/dist/cjs/gx-ide-entity-selector.cjs.entry.js +87 -0
- package/dist/cjs/gx-ide-new-environment.cjs.entry.js +3 -2
- package/dist/cjs/gx-ide-new-object.cjs.entry.js +147 -0
- package/dist/cjs/gx-ide-references.cjs.entry.js +15 -35
- package/dist/cjs/gx-ide-team-dev-update-partial-selection.cjs.entry.js +5 -7
- package/dist/cjs/{gx-ide-entity-selector_2.cjs.entry.js → gxg-date-picker.cjs.entry.js} +0 -81
- package/dist/cjs/gxg-list-box_2.cjs.entry.js +2 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +3 -0
- package/dist/collection/common/render-suggest.js +4 -1
- package/dist/collection/components/new-environment/new-environment.js +24 -3
- package/dist/collection/components/new-object/gx-ide-assets/new-object/langs/new-object.lang.en.json +13 -0
- package/dist/collection/components/new-object/gx-ide-assets/new-object/langs/new-object.lang.ja.json +11 -0
- package/dist/collection/components/new-object/gx-ide-assets/new-object/langs/new-object.lang.zh.json +11 -0
- package/dist/collection/components/new-object/new-object.css +143 -0
- package/dist/collection/components/new-object/new-object.js +380 -0
- package/dist/collection/components/references/helpers.js +0 -22
- package/dist/collection/components/references/references.js +12 -13
- package/dist/collection/components/team-dev-update-partial-selection/gx-ide-assets/team-dev-update-partial-selection/langs/team-dev-update-partial-selection.lang.en.json +3 -3
- package/dist/collection/components/team-dev-update-partial-selection/team-dev-update-partial-selection.js +5 -7
- package/dist/components/ch-alert.js +150 -0
- package/dist/components/ch-suggest-list-item2.js +41 -4
- package/dist/components/ch-suggest2.js +5 -9
- package/dist/components/ch-timer.js +6 -0
- package/dist/components/gx-ide-new-environment.js +4 -2
- package/dist/components/gx-ide-new-object.d.ts +11 -0
- package/dist/components/gx-ide-new-object.js +247 -0
- package/dist/components/gx-ide-references.js +15 -35
- package/dist/components/gx-ide-team-dev-update-partial-selection.js +5 -7
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +3 -0
- package/dist/components/list-box-item.js +2 -2
- package/dist/components/timer.js +61 -0
- package/dist/esm/ch-alert.entry.js +116 -0
- package/dist/esm/ch-suggest_4.entry.js +46 -11
- package/dist/esm/ch-timer.entry.js +41 -0
- package/dist/esm/genexus-ide-ui.js +1 -1
- package/dist/esm/gx-ide-entity-selector.entry.js +83 -0
- package/dist/esm/gx-ide-new-environment.entry.js +3 -2
- package/dist/esm/gx-ide-new-object.entry.js +143 -0
- package/dist/esm/gx-ide-references.entry.js +15 -35
- package/dist/esm/gx-ide-team-dev-update-partial-selection.entry.js +5 -7
- package/dist/esm/{gx-ide-entity-selector_2.entry.js → gxg-date-picker.entry.js} +1 -81
- package/dist/esm/gxg-list-box_2.entry.js +2 -2
- package/dist/esm/loader.js +1 -1
- package/dist/genexus-ide-ui/genexus-ide-ui.esm.js +1 -1
- package/dist/genexus-ide-ui/gx-ide-assets/new-object/langs/new-object.lang.en.json +13 -0
- package/dist/genexus-ide-ui/gx-ide-assets/new-object/langs/new-object.lang.ja.json +11 -0
- package/dist/genexus-ide-ui/gx-ide-assets/new-object/langs/new-object.lang.zh.json +11 -0
- package/dist/genexus-ide-ui/gx-ide-assets/team-dev-update-partial-selection/langs/team-dev-update-partial-selection.lang.en.json +3 -3
- package/dist/genexus-ide-ui/p-04df38d0.entry.js +1 -0
- package/dist/genexus-ide-ui/{p-06ddf2a3.entry.js → p-37ecffdc.entry.js} +1 -1
- package/dist/genexus-ide-ui/p-48412811.entry.js +1 -0
- package/dist/genexus-ide-ui/p-4f02b7bf.entry.js +1 -0
- package/dist/genexus-ide-ui/p-532bf5cb.entry.js +1 -0
- package/dist/genexus-ide-ui/p-5fe59458.entry.js +1 -0
- package/dist/genexus-ide-ui/p-6be805a0.entry.js +1 -0
- package/dist/genexus-ide-ui/p-9be97571.entry.js +1 -0
- package/dist/genexus-ide-ui/p-a82042ee.entry.js +1 -0
- package/dist/genexus-ide-ui/p-db4f2732.entry.js +1 -0
- package/dist/node_modules/@genexus/chameleon-controls-library/dist/collection/components/alert/alert.css +46 -0
- package/dist/node_modules/@genexus/chameleon-controls-library/dist/collection/components/alert/timer/timer.css +13 -0
- package/dist/node_modules/@genexus/gemini/dist/collection/components/list-box-item/list-box-item.css +13 -5
- package/dist/types/common/render-suggest.d.ts +1 -1
- package/dist/types/components/new-environment/new-environment.d.ts +5 -1
- package/dist/types/components/new-object/new-object.d.ts +107 -0
- package/dist/types/components/references/helpers.d.ts +1 -6
- package/dist/types/components/references/references.d.ts +6 -6
- package/dist/types/components/team-dev-update-partial-selection/team-dev-update-partial-selection.d.ts +2 -2
- package/dist/types/components.d.ts +110 -4
- package/package.json +3 -3
- package/dist/genexus-ide-ui/p-1b6b11e1.entry.js +0 -1
- package/dist/genexus-ide-ui/p-35bc6e3a.entry.js +0 -1
- package/dist/genexus-ide-ui/p-4aa2885b.entry.js +0 -1
- package/dist/genexus-ide-ui/p-714bd8ea.entry.js +0 -1
- package/dist/genexus-ide-ui/p-74a88934.entry.js +0 -1
|
@@ -7,21 +7,19 @@ export class GxIdeTeamDevUpdatePartialSelection {
|
|
|
7
7
|
constructor() {
|
|
8
8
|
// 9.LOCAL METHODS //
|
|
9
9
|
this.renderObjects = () => {
|
|
10
|
-
return (h("gxg-grid", null, h("ch-grid", { "row-selection-mode": "multiple", ref: (el) => (this.chGridEl = el), part: "ch-grid-objects" }, h("ch-grid-columnset", null, h("ch-grid-column", { columnName: "", settingable: false, sortable: false }), h("ch-grid-column", { columnName: this._componentLocale.tableHead.name, settingable: false }), h("ch-grid-column", { columnName: this._componentLocale.tableHead.type, settingable: false }), h("ch-grid-column", { columnName: this._componentLocale.tableHead.description, settingable: false }), h("ch-grid-column", { columnName: this._componentLocale.tableHead.modifiedOn, settingable: false })), this.selection.map((obj) => (h("ch-grid-row", { rowid: obj.id }, h("ch-grid-cell", null, h("gxg-icon", { type: obj.typeIcon, color: "auto" })), h("ch-grid-cell", null, " ", obj.name, " "), h("ch-grid-cell", null, " ", obj.type, " "), h("ch-grid-cell", null, " ", obj.description, " "), h("ch-grid-cell", null, `${obj.modifiedOn.toISOString().slice(0, 10)}`)))))));
|
|
10
|
+
return (h("gxg-grid", null, h("ch-grid", { "row-selection-mode": "multiple", ref: (el) => (this.chGridEl = el), part: "ch-grid-objects" }, h("ch-grid-columnset", null, h("ch-grid-column", { columnName: "", settingable: false, sortable: false }), h("ch-grid-column", { columnName: this._componentLocale.tableHead.name, settingable: false }), h("ch-grid-column", { columnName: this._componentLocale.tableHead.type, settingable: false }), h("ch-grid-column", { columnName: this._componentLocale.tableHead.description, settingable: false }), h("ch-grid-column", { columnName: this._componentLocale.tableHead.modifiedOn, settingable: false })), this.selection.map((obj) => (h("ch-grid-row", { rowid: obj.id, key: obj.id }, h("ch-grid-cell", null, h("gxg-icon", { type: obj.typeIcon, color: "auto" })), h("ch-grid-cell", null, " ", obj.name, " "), h("ch-grid-cell", null, " ", obj.type, " "), h("ch-grid-cell", null, " ", obj.description, " "), h("ch-grid-cell", null, `${obj.modifiedOn.toISOString().slice(0, 10)}`)))))));
|
|
11
11
|
};
|
|
12
12
|
this.getObjectsHandler = () => {
|
|
13
13
|
this.addCallback().then((items) => {
|
|
14
14
|
if ((items === null || items === void 0 ? void 0 : items.length) > 0) {
|
|
15
15
|
this.selection = [...this.selection, ...items];
|
|
16
16
|
this.selectedObjectsIds = [];
|
|
17
|
-
this.deselectAllHandler();
|
|
18
17
|
}
|
|
19
18
|
});
|
|
20
19
|
};
|
|
21
|
-
this.
|
|
20
|
+
this.removeSelectedObjectsHandler = () => {
|
|
22
21
|
this.selection = this.selection.filter(item => !this.selectedObjectsIds.includes(item.id));
|
|
23
22
|
this.selectedObjectsIds = [];
|
|
24
|
-
this.deselectAllHandler();
|
|
25
23
|
};
|
|
26
24
|
this.confirmHandler = () => {
|
|
27
25
|
if (this.confirmCallback) {
|
|
@@ -35,8 +33,8 @@ export class GxIdeTeamDevUpdatePartialSelection {
|
|
|
35
33
|
this.cancelHandler = () => {
|
|
36
34
|
this.cancelCallback();
|
|
37
35
|
};
|
|
38
|
-
this.
|
|
39
|
-
this.
|
|
36
|
+
this.removeAllHandler = () => {
|
|
37
|
+
this.selection = [];
|
|
40
38
|
};
|
|
41
39
|
this.listenChanges = () => {
|
|
42
40
|
// for grid selection
|
|
@@ -71,7 +69,7 @@ export class GxIdeTeamDevUpdatePartialSelection {
|
|
|
71
69
|
render() {
|
|
72
70
|
return (h(Host, { class: {
|
|
73
71
|
"gxi-team-dev-update-partial-selection": true
|
|
74
|
-
} }, h("div", { class: `main-wrapper` }, h("gxg-container", { containerTitle: this._componentLocale.title }, h("div", { class: "top-actions" }, h("gxg-button", { id: "button-add", type: "outlined", onClick: this.getObjectsHandler, part: "add" }, this._componentLocale.
|
|
72
|
+
} }, h("div", { class: `main-wrapper` }, h("gxg-container", { containerTitle: this._componentLocale.title }, h("div", { class: "top-actions" }, h("gxg-button", { id: "button-add", type: "outlined", onClick: this.getObjectsHandler, part: "add" }, this._componentLocale.btnAddObject), h("gxg-button", { id: "button-remove", type: "outlined", onClick: this.removeSelectedObjectsHandler, part: "remove", disabled: !(this.selectedObjectsIds.length > 0) }, this._componentLocale.btnRemoveSelectedObjects)), this.renderObjects(), h("gxg-container", { displayBorderTop: true }, h("div", { class: "grid actions" }, h("div", null, h("gxg-button", { id: "button-clear", type: "outlined", onClick: this.removeAllHandler, disabled: !(this.selection.length > 0), part: "clear" }, this._componentLocale.footer.btnRemoveAll)), h("div", null, h("gxg-button", { id: "button-ok", type: "primary-text-only", onClick: this.confirmHandler, part: "confirm" }, this._componentLocale.footer.btnConfirm), h("gxg-button", { id: "button-cancel", type: "outlined", onClick: this.cancelHandler, part: "cancel" }, this._componentLocale.footer.btnCancel))))))));
|
|
75
73
|
}
|
|
76
74
|
static get is() { return "gx-ide-team-dev-update-partial-selection"; }
|
|
77
75
|
static get encapsulation() { return "shadow"; }
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
2
|
+
import { d as defineCustomElement$2 } from './timer.js';
|
|
3
|
+
|
|
4
|
+
const alertCss = ":host{display:grid;width:100%;height:100%;grid-template:\"img content button\" 1fr \"progress-bar progress-bar progress-bar\" min-content/min-content 1fr min-content}:host(.pause-on-hover:hover) ::part(indicator){animation-play-state:paused}::slotted([slot=button]){pointer-events:none}.image{max-width:40px;height:40px;grid-area:img;align-self:center}.content{grid-area:content}.close-button{grid-area:button}.close-button .close-button-img{-webkit-mask:url(\"data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7.875 18L6.75 16.875L11.25 12.375L6.75 7.875L7.875 6.75L12.375 11.25L16.875 6.75L18 7.875L13.5 12.375L18 16.875L16.875 18L12.375 13.5L7.875 18Z'/%3E%3C/svg%3E\") 50% 50%/24px 24px no-repeat;width:24px;height:24px;background-color:currentColor}.indicator-container{grid-area:progress-bar}:where(button){all:unset;display:flex;align-items:center;cursor:pointer}";
|
|
5
|
+
|
|
6
|
+
const ChAlert$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
7
|
+
constructor() {
|
|
8
|
+
super();
|
|
9
|
+
this.__registerHost();
|
|
10
|
+
this.__attachShadow();
|
|
11
|
+
this.close = createEvent(this, "close", 7);
|
|
12
|
+
/** Sets the timer id */
|
|
13
|
+
this.timerId = null;
|
|
14
|
+
/** Sets the desired interval */
|
|
15
|
+
this.timerInterval = 50;
|
|
16
|
+
/**
|
|
17
|
+
* Determine the accessible name of the close button.
|
|
18
|
+
* Important for accessibility.
|
|
19
|
+
*/
|
|
20
|
+
this.closeButtonAccessibleName = "Close";
|
|
21
|
+
/**
|
|
22
|
+
* Specifies the time (ms) for the alert to be displayed.
|
|
23
|
+
* if `dismissTimeout = 0`, the alert will be always visible
|
|
24
|
+
* (unless is dismissed by the closeButton).
|
|
25
|
+
*/
|
|
26
|
+
this.dismissTimeout = 0;
|
|
27
|
+
/**
|
|
28
|
+
* Determine src of the left image.
|
|
29
|
+
*/
|
|
30
|
+
this.leftImgSrc = "";
|
|
31
|
+
/**
|
|
32
|
+
* Determine if the element is displayed or not.
|
|
33
|
+
*/
|
|
34
|
+
this.presented = false;
|
|
35
|
+
/**
|
|
36
|
+
* Determine if the closeButton is displayed or not.
|
|
37
|
+
*/
|
|
38
|
+
this.showCloseButton = false;
|
|
39
|
+
/**
|
|
40
|
+
* If dismissTimeout > 0, a progress bar is displayed at the bottom of the element
|
|
41
|
+
* showing the time left for the alert to show.
|
|
42
|
+
* The progress stops when the element is hovered.
|
|
43
|
+
*/
|
|
44
|
+
this.showTimeoutBar = false;
|
|
45
|
+
/** Toggles the Pause on Hover functionality */
|
|
46
|
+
this.pauseOnHover = true;
|
|
47
|
+
/** Closes the alert when the close button is clicked.
|
|
48
|
+
* Also restarts the counter and sets its value to match dismissTimeout.
|
|
49
|
+
*/
|
|
50
|
+
this.handleAlertClose = () => {
|
|
51
|
+
clearInterval(this.timerId);
|
|
52
|
+
this.presented = false;
|
|
53
|
+
this.close.emit();
|
|
54
|
+
this.countdown = this.dismissTimeout;
|
|
55
|
+
};
|
|
56
|
+
/** Countdown which initial state is dismissTimeout ms. */
|
|
57
|
+
this.countdown = this.dismissTimeout;
|
|
58
|
+
/** Counter decremental function */
|
|
59
|
+
this.counter = () => {
|
|
60
|
+
this.countdown -= this.timerInterval;
|
|
61
|
+
};
|
|
62
|
+
/** Starts a new countdown which interval is set in timerInterval,
|
|
63
|
+
* Only if is presented, dismissTimeout is greater than 0,
|
|
64
|
+
* and countdown is still running.
|
|
65
|
+
*/
|
|
66
|
+
this.start = () => {
|
|
67
|
+
clearInterval(this.timerId);
|
|
68
|
+
if (this.presented && this.dismissTimeout !== 0 && this.countdown >= 0) {
|
|
69
|
+
this.timerId = setInterval(this.counter, this.timerInterval);
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
/** Pauses the countdown */
|
|
73
|
+
this.handleMouseEnter = () => {
|
|
74
|
+
clearInterval(this.timerId);
|
|
75
|
+
};
|
|
76
|
+
/** Resumes the countdown */
|
|
77
|
+
this.handleMouseLeave = () => {
|
|
78
|
+
this.start();
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
timeoutWatcher(newValue) {
|
|
82
|
+
if (newValue) {
|
|
83
|
+
this.countdown = newValue;
|
|
84
|
+
this.start();
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
presentedWatcher(newValue) {
|
|
88
|
+
if (newValue) {
|
|
89
|
+
this.start();
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
/** Countdown watcher that hides the alert if dismissTimeout is reached
|
|
93
|
+
* and stops the countdown.
|
|
94
|
+
* See handleAlertClose for more details. */
|
|
95
|
+
countdownWatcher(newValue) {
|
|
96
|
+
if (newValue <= 0) {
|
|
97
|
+
this.handleAlertClose();
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
componentDidLoad() {
|
|
101
|
+
this.start();
|
|
102
|
+
}
|
|
103
|
+
render() {
|
|
104
|
+
return (h(Host, { role: "alert", onMouseEnter: this.pauseOnHover && this.handleMouseEnter, onMouseLeave: this.pauseOnHover && this.handleMouseLeave, "aria-hidden": !this.presented ? "true" : "false", class: this.pauseOnHover && "pause-on-hover" }, this.presented && [
|
|
105
|
+
this.leftImgSrc && (h("img", { part: "image", class: "image", src: this.leftImgSrc, alt: "", "aria-hidden": "true", loading: "lazy" })),
|
|
106
|
+
h("div", { part: "content", class: "content" }, h("slot", { name: "content" })),
|
|
107
|
+
this.showCloseButton && (h("button", { part: "close-button", class: "close-button", type: "button", "aria-label": this.closeButtonAccessibleName, onClick: this.handleAlertClose }, h("slot", { name: "button", "aria-hidden": "true" }, h("div", { "aria-hidden": "true", class: "close-button-img" })))),
|
|
108
|
+
this.showTimeoutBar && (h("ch-timer", { part: "indicator-container", class: "indicator-container", exportparts: "indicator", progress: (this.countdown * 100) / this.dismissTimeout, accessibleName: `${this.countdown / 1000} seconds left`, "animation-time": this.dismissTimeout, presented: this.presented }))
|
|
109
|
+
]));
|
|
110
|
+
}
|
|
111
|
+
static get watchers() { return {
|
|
112
|
+
"dismissTimeout": ["timeoutWatcher"],
|
|
113
|
+
"presented": ["presentedWatcher"],
|
|
114
|
+
"countdown": ["countdownWatcher"]
|
|
115
|
+
}; }
|
|
116
|
+
static get style() { return alertCss; }
|
|
117
|
+
}, [1, "ch-alert", {
|
|
118
|
+
"timerInterval": [2, "timer-interval"],
|
|
119
|
+
"closeButtonAccessibleName": [1, "close-button-accessible-name"],
|
|
120
|
+
"dismissTimeout": [2, "dismiss-timeout"],
|
|
121
|
+
"leftImgSrc": [1, "left-img-src"],
|
|
122
|
+
"presented": [1540],
|
|
123
|
+
"showCloseButton": [4, "show-close-button"],
|
|
124
|
+
"showTimeoutBar": [4, "show-timeout-bar"],
|
|
125
|
+
"pauseOnHover": [4, "pause-on-hover"],
|
|
126
|
+
"countdown": [1026]
|
|
127
|
+
}]);
|
|
128
|
+
function defineCustomElement$1() {
|
|
129
|
+
if (typeof customElements === "undefined") {
|
|
130
|
+
return;
|
|
131
|
+
}
|
|
132
|
+
const components = ["ch-alert", "ch-timer"];
|
|
133
|
+
components.forEach(tagName => { switch (tagName) {
|
|
134
|
+
case "ch-alert":
|
|
135
|
+
if (!customElements.get(tagName)) {
|
|
136
|
+
customElements.define(tagName, ChAlert$1);
|
|
137
|
+
}
|
|
138
|
+
break;
|
|
139
|
+
case "ch-timer":
|
|
140
|
+
if (!customElements.get(tagName)) {
|
|
141
|
+
defineCustomElement$2();
|
|
142
|
+
}
|
|
143
|
+
break;
|
|
144
|
+
} });
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
const ChAlert = ChAlert$1;
|
|
148
|
+
const defineCustomElement = defineCustomElement$1;
|
|
149
|
+
|
|
150
|
+
export { ChAlert, defineCustomElement };
|
|
@@ -15,11 +15,49 @@ const ChSuggestListItem = /*@__PURE__*/ proxyCustomElement(class extends HTMLEle
|
|
|
15
15
|
// 7.LISTENERS //
|
|
16
16
|
// 8.PUBLIC METHODS API //
|
|
17
17
|
// 9.LOCAL METHODS //
|
|
18
|
+
this.getItemIndexes = () => {
|
|
19
|
+
const parentElement = this.el.parentElement;
|
|
20
|
+
if (parentElement.nodeName === "CH-SUGGEST") {
|
|
21
|
+
const chSuggest = parentElement;
|
|
22
|
+
let itemIndex = -1;
|
|
23
|
+
const suggestListItemsArray = Array.from(chSuggest.querySelectorAll(":scope > ch-suggest-list-item"));
|
|
24
|
+
for (let index = 0; index < suggestListItemsArray.length; index++) {
|
|
25
|
+
// Then get the item index
|
|
26
|
+
if (suggestListItemsArray[index] === this.el) {
|
|
27
|
+
itemIndex = index;
|
|
28
|
+
break;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
return {
|
|
32
|
+
itemIndex: itemIndex,
|
|
33
|
+
listIndex: undefined // the items does not belongs to a list
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
else if (parentElement.nodeName === "CH-SUGGEST-LIST") {
|
|
37
|
+
const chSuggestList = parentElement;
|
|
38
|
+
const chSuggestListsArray = Array.from(chSuggestList.parentElement.querySelectorAll(":scope > ch-suggest-list"));
|
|
39
|
+
const listIndex = chSuggestListsArray.findIndex(list => {
|
|
40
|
+
return list === chSuggestList;
|
|
41
|
+
});
|
|
42
|
+
if (listIndex !== -1) {
|
|
43
|
+
const listItemsArray = Array.from(chSuggestList.querySelectorAll("ch-suggest-list-item"));
|
|
44
|
+
const itemIndex = listItemsArray.findIndex(item => {
|
|
45
|
+
return item === this.el;
|
|
46
|
+
});
|
|
47
|
+
return {
|
|
48
|
+
itemIndex: itemIndex,
|
|
49
|
+
listIndex: listIndex
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
};
|
|
18
54
|
this.handleClick = () => {
|
|
55
|
+
const indexes = this.getItemIndexes();
|
|
19
56
|
this.itemSelected.emit({
|
|
20
57
|
value: this.value || this.el.innerText,
|
|
21
|
-
|
|
22
|
-
|
|
58
|
+
description: this.el.innerText,
|
|
59
|
+
icon: this.iconSrc,
|
|
60
|
+
indexes: indexes
|
|
23
61
|
});
|
|
24
62
|
};
|
|
25
63
|
this.handleKeyDown = (e) => {
|
|
@@ -34,14 +72,13 @@ const ChSuggestListItem = /*@__PURE__*/ proxyCustomElement(class extends HTMLEle
|
|
|
34
72
|
}
|
|
35
73
|
// 10.RENDER() FUNCTION //
|
|
36
74
|
render() {
|
|
37
|
-
return (h(Host, { role: "listitem", onKeyDown: this.handleKeyDown }, h("button", { part: "button", onClick: this.handleClick }, h("slot", { name: "icon" }), h("div", { class: "content-wrapper", part: "content-wrapper" }, h("slot", null)
|
|
75
|
+
return (h(Host, { role: "listitem", onKeyDown: this.handleKeyDown }, h("button", { part: "button", onClick: this.handleClick }, h("slot", { name: "icon" }), h("div", { class: "content-wrapper", part: "content-wrapper" }, h("slot", null)))));
|
|
38
76
|
}
|
|
39
77
|
static get delegatesFocus() { return true; }
|
|
40
78
|
get el() { return this; }
|
|
41
79
|
static get style() { return chSuggestListItemCss; }
|
|
42
80
|
}, [17, "ch-suggest-list-item", {
|
|
43
81
|
"iconSrc": [1, "icon-src"],
|
|
44
|
-
"description": [1],
|
|
45
82
|
"value": [8]
|
|
46
83
|
}]);
|
|
47
84
|
function defineCustomElement() {
|
|
@@ -11,7 +11,7 @@ const ChSuggest = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
11
11
|
super();
|
|
12
12
|
this.__registerHost();
|
|
13
13
|
this.__attachShadow();
|
|
14
|
-
this.
|
|
14
|
+
this.valueChanged = createEvent(this, "valueChanged", 7);
|
|
15
15
|
this.keyEventsDictionary = {
|
|
16
16
|
ArrowDown: (e) => {
|
|
17
17
|
const newFocusedItem = this.getNewFocusedItem(e.currentFocusedItem, ARROW_DOWN);
|
|
@@ -38,7 +38,7 @@ const ChSuggest = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
38
38
|
/**
|
|
39
39
|
* The debounce amount in milliseconds (This is the time the suggest waits after the user has finished typing, to show the suggestions).
|
|
40
40
|
*/
|
|
41
|
-
this.debounce =
|
|
41
|
+
this.debounce = 300;
|
|
42
42
|
/**
|
|
43
43
|
* The label position
|
|
44
44
|
*/
|
|
@@ -126,7 +126,7 @@ const ChSuggest = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
126
126
|
*/
|
|
127
127
|
this.handleInput = (e) => {
|
|
128
128
|
const inputValue = e.target.value;
|
|
129
|
-
this.
|
|
129
|
+
this.value = inputValue;
|
|
130
130
|
if (this.timeoutReference) {
|
|
131
131
|
clearTimeout(this.timeoutReference);
|
|
132
132
|
}
|
|
@@ -157,9 +157,7 @@ const ChSuggest = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
157
157
|
partWindow.scrollTop = partWindow.scrollHeight;
|
|
158
158
|
};
|
|
159
159
|
this.processInputEvent = (inputValue) => {
|
|
160
|
-
this.
|
|
161
|
-
this.caption = inputValue;
|
|
162
|
-
this.value = undefined;
|
|
160
|
+
this.valueChanged.emit(inputValue);
|
|
163
161
|
this.evaluateWindowMaxHeight();
|
|
164
162
|
};
|
|
165
163
|
this.closeWindow = () => {
|
|
@@ -175,7 +173,6 @@ const ChSuggest = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
175
173
|
// 7.LISTENERS //
|
|
176
174
|
itemSelectedHandler(event) {
|
|
177
175
|
this.value = event.detail.value;
|
|
178
|
-
this.caption = event.detail.caption;
|
|
179
176
|
this.closeWindow();
|
|
180
177
|
}
|
|
181
178
|
focusChangeAttemptHandler(event) {
|
|
@@ -210,7 +207,7 @@ const ChSuggest = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
210
207
|
}
|
|
211
208
|
// 10.RENDER() FUNCTION //
|
|
212
209
|
render() {
|
|
213
|
-
return (h(Host, null, h("div", { class: "main-wrapper", part: "main-wrapper" }, h("div", { class: "label-input-wrapper", part: "label-input-wrapper" }, this.showLabel && this.label && (h("label", { id: "label", htmlFor: "input", part: "label" }, this.label)), h("input", { type: "text", id: "input", part: "input", class: "input", ref: el => (this.textInput = el), onInput: this.handleInput, onKeyDown: this.handleKeyDown, onFocus: this.onFocusHandler, value: this.
|
|
210
|
+
return (h(Host, null, h("div", { class: "main-wrapper", part: "main-wrapper" }, h("div", { class: "label-input-wrapper", part: "label-input-wrapper" }, this.showLabel && this.label && (h("label", { id: "label", htmlFor: "input", part: "label" }, this.label)), h("input", { type: "text", id: "input", part: "input", class: "input", ref: el => (this.textInput = el), onInput: this.handleInput, onKeyDown: this.handleKeyDown, onFocus: this.onFocusHandler, value: this.value, autocomplete: "off", "aria-controls": "ch-window", "aria-label": !this.showLabel && this.label ? this.label : undefined, "aria-labelledby": this.showLabel && this.label ? "label" : undefined, "aria-expanded": this.windowHidden.toString() })), h("ch-window", { id: "ch-window", container: this.textInput, "close-on-outside-click": true, "close-on-escape": true, xAlign: "inside-start", yAlign: "outside-end", ref: el => (this.chWindow = el), showHeader: this.showHeader, caption: this.suggestTitle, exportparts: "\n header:header, \n caption:title, \n close:close-button,\n window:dropdown" }, h("slot", { onSlotchange: this.evaluateSlotIsEmpty })))));
|
|
214
211
|
}
|
|
215
212
|
static get delegatesFocus() { return true; }
|
|
216
213
|
get el() { return this; }
|
|
@@ -221,7 +218,6 @@ const ChSuggest = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
221
218
|
"labelPosition": [513, "label-position"],
|
|
222
219
|
"showLabel": [4, "show-label"],
|
|
223
220
|
"value": [1025],
|
|
224
|
-
"caption": [1025],
|
|
225
221
|
"showHeader": [4, "show-header"],
|
|
226
222
|
"suggestTitle": [1, "suggest-title"],
|
|
227
223
|
"cursorEnd": [4, "cursor-end"],
|
|
@@ -36,7 +36,7 @@ const GxIdeNewEnvironment$1 = /*@__PURE__*/ proxyCustomElement(class extends HTM
|
|
|
36
36
|
const gxOptions = [];
|
|
37
37
|
const frontEndValues = this.frontEndsEl.getValues();
|
|
38
38
|
frontEndValues.then(result => {
|
|
39
|
-
result.forEach(checkbox => {
|
|
39
|
+
result.forEach((checkbox) => {
|
|
40
40
|
gxOptions.push({
|
|
41
41
|
id: checkbox.id,
|
|
42
42
|
checked: checkbox.value,
|
|
@@ -99,13 +99,14 @@ const GxIdeNewEnvironment$1 = /*@__PURE__*/ proxyCustomElement(class extends HTM
|
|
|
99
99
|
this.changedCallback(newEnvData);
|
|
100
100
|
};
|
|
101
101
|
this.renderTabBasic = () => {
|
|
102
|
-
return (h("gxg-tab", { tab: "basic", "no-padding": true
|
|
102
|
+
return (h("gxg-tab", { tab: "basic", "no-padding": true }, h("gx-ide-container", { containerTitle: this._componentLocale.runtime, fieldset: true, displayBorderTop: true, displayBorderBottom: true }, h("gxg-form-radio-group", { ref: (el) => (this.runtimeGroup = el), row: true, onChange: this.runtimeEnvironmentChangedHandler, slot: "header" }, renderFormItems("gxg-form-radio", this.runtimes, "runtime-environment"))), h("div", { class: "grid grid--no-gap grid--basic" }, h("gx-ide-container", { fieldset: true, noHeadingBorder: true, "container-title": this._componentLocale.tabBasic.backEnd.backEndLabel }, h("gxg-combo-box", { "disable-filter": true, label: this._componentLocale.tabBasic.backEnd.language, value: this.languages[0]["id"], ref: (el) => (this.languageEl = el), onValueChanged: this.languageValueChangedHandler, part: "language" }, renderFormItems("gxg-combo-box-item", this.languages)), h("gxg-combo-box", { "disable-filter": true, label: this._componentLocale.tabBasic.backEnd.dataStores, value: this.dataStores[0]["id"], ref: (el) => (this.dataStoreEl = el), onValueChanged: this.dataStoreValueChangedHandler, part: "data-store" }, renderFormItems("gxg-combo-box-item", this.dataStores))), h("gx-ide-container", { fieldset: true, noHeadingBorder: true, "container-title": this._componentLocale.tabBasic.frontEnd.frontEndLabel }, h("gxg-form-checkbox-group", { ref: (el) => (this.frontEndsEl = el) }, renderFormItems("gxg-form-checkbox", this.frontEnds))))));
|
|
103
103
|
};
|
|
104
104
|
this.renderTabAdvanced = () => {
|
|
105
105
|
return (h("gxg-tab", { tab: "advanced", "no-padding": true }, h("gx-ide-container", { displayBorderTop: true }, h("slot", { name: "property-grid" }))));
|
|
106
106
|
};
|
|
107
107
|
this.hideTopBar = false;
|
|
108
108
|
this.dataStores = undefined;
|
|
109
|
+
this.frontEnd = undefined;
|
|
109
110
|
this.frontEnds = undefined;
|
|
110
111
|
this.disableAdvanced = false;
|
|
111
112
|
this.setAsTarget = true;
|
|
@@ -133,6 +134,7 @@ const GxIdeNewEnvironment$1 = /*@__PURE__*/ proxyCustomElement(class extends HTM
|
|
|
133
134
|
}, [1, "gx-ide-new-environment", {
|
|
134
135
|
"hideTopBar": [4, "hide-top-bar"],
|
|
135
136
|
"dataStores": [16],
|
|
137
|
+
"frontEnd": [16],
|
|
136
138
|
"frontEnds": [16],
|
|
137
139
|
"disableAdvanced": [4, "disable-advanced"],
|
|
138
140
|
"setAsTarget": [4, "set-as-target"],
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface GxIdeNewObject extends Components.GxIdeNewObject, HTMLElement {}
|
|
4
|
+
export const GxIdeNewObject: {
|
|
5
|
+
prototype: GxIdeNewObject;
|
|
6
|
+
new (): GxIdeNewObject;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1,247 @@
|
|
|
1
|
+
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
2
|
+
import { L as Locale } from './locale.js';
|
|
3
|
+
import { d as defineCustomElement$d } from './icon.js';
|
|
4
|
+
import { d as defineCustomElement$c } from './entity-selector.js';
|
|
5
|
+
import { d as defineCustomElement$b } from './button.js';
|
|
6
|
+
import { d as defineCustomElement$a } from './container2.js';
|
|
7
|
+
import { d as defineCustomElement$9 } from './form-checkbox.js';
|
|
8
|
+
import { d as defineCustomElement$8 } from './form-text.js';
|
|
9
|
+
import { d as defineCustomElement$7 } from './icon2.js';
|
|
10
|
+
import { d as defineCustomElement$6 } from './gxg-label2.js';
|
|
11
|
+
import { d as defineCustomElement$5 } from './list-box.js';
|
|
12
|
+
import { d as defineCustomElement$4 } from './list-box-item.js';
|
|
13
|
+
import { d as defineCustomElement$3 } from './title.js';
|
|
14
|
+
import { d as defineCustomElement$2 } from './tooltip.js';
|
|
15
|
+
|
|
16
|
+
const newObjectCss = ".gxi-hidden{display:none !important}.gxi-full-height{height:100%}.align-start{display:flex;align-items:start}.align-center{display:flex;align-items:center}.align-end{display:flex;align-items:end}.grid{display:grid;grid-row-gap:var(--gx-ide-grid-row-gap);grid-column-gap:var(--gx-ide-grid-column-gap);grid-template-rows:auto}:host(.gx-ide-component){box-shadow:var(--box-shadow-01) !important;height:100% !important;display:flex !important;flex-direction:column !important}:host(:focus-within) gx-ide-top-bar::part(wrapper){background-color:var(--color-secondary-enabled)}.gx-ide-main-wrapper{color:var(--gx-ide-component-text-color);font-weight:var(--font-weight-regular);font-size:var(--font-size-lg);line-height:1.6em;height:100%;background-color:var(--gx-ide-component-background-color);display:flex;flex-direction:column;flex-grow:1}.gx-ide-main{flex-grow:1;overflow-y:auto;}.gx-ide-main::-webkit-scrollbar{width:6px;height:6px}.gx-ide-main::-webkit-scrollbar-track{background-color:var(--gray-02);border-radius:10px}.gx-ide-main::-webkit-scrollbar-thumb{background:var(--gray-05);border-radius:10px}.gx-ide-main::-webkit-scrollbar-thumb:hover{background:var(--gray-04);cursor:pointer}.gx-ide-main .gxg-scroll{display:block;overflow-y:auto;padding-inline-end:2px}.gx-ide-overflow{overflow-y:auto;}.gx-ide-overflow::-webkit-scrollbar{width:6px;height:6px}.gx-ide-overflow::-webkit-scrollbar-track{background-color:var(--gray-02);border-radius:10px}.gx-ide-overflow::-webkit-scrollbar-thumb{background:var(--gray-05);border-radius:10px}.gx-ide-overflow::-webkit-scrollbar-thumb:hover{background:var(--gray-04);cursor:pointer}.gx-ide-overflow .gxg-scroll{display:block;overflow-y:auto;padding-inline-end:2px}:host{display:block;border:1px solid var(--gxg-border-color--regular);background-color:var(--color-background)}:host(.gxi-new-object--shadow){border:none;box-shadow:var(--box-shadow-01)}.header{grid-template-columns:auto 1fr}.first-row{grid-template-columns:1fr 3fr;grid-template-rows:1fr}.first-row *:nth-child(3){grid-column:1/3}";
|
|
17
|
+
|
|
18
|
+
const GxIdeNewObject$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
19
|
+
constructor() {
|
|
20
|
+
super();
|
|
21
|
+
this.__registerHost();
|
|
22
|
+
this.__attachShadow();
|
|
23
|
+
this.create = createEvent(this, "create", 7);
|
|
24
|
+
this.validateName = createEvent(this, "validateName", 7);
|
|
25
|
+
this.cancel = createEvent(this, "cancel", 7);
|
|
26
|
+
this.componentDidLoadEvent = createEvent(this, "componentDidLoadEvent", 7);
|
|
27
|
+
this.descriptionModifiedByUser = false;
|
|
28
|
+
// 7.LISTENERS //
|
|
29
|
+
// 8.PUBLIC METHODS API //
|
|
30
|
+
// 9.LOCAL METHODS //
|
|
31
|
+
this.renderModuleFolder = () => {
|
|
32
|
+
if (this.selectedType.hasModule || this.selectedType.hasFolder) {
|
|
33
|
+
let labelDescription = this._componentLocale.moduleFolder;
|
|
34
|
+
if (!this.selectedType.hasFolder) {
|
|
35
|
+
labelDescription = this._componentLocale.moduleOnly;
|
|
36
|
+
}
|
|
37
|
+
else if (!this.selectedType.hasModule) {
|
|
38
|
+
labelDescription = this._componentLocale.folderOnly;
|
|
39
|
+
}
|
|
40
|
+
return [
|
|
41
|
+
h("gxg-label", { labelPosition: "start" }, labelDescription),
|
|
42
|
+
h("gx-ide-entity-selector", { value: this.parent, defaultValue: this.defaultParent, selectEntityCallback: this.selectModuleCallback, ref: (el) => (this.parentEl = el), part: "module" })
|
|
43
|
+
];
|
|
44
|
+
}
|
|
45
|
+
return null;
|
|
46
|
+
};
|
|
47
|
+
/**
|
|
48
|
+
* This method initializes tha name value. It depends on 'this.selectedType'
|
|
49
|
+
*/
|
|
50
|
+
this.init = () => {
|
|
51
|
+
if (this.selectedType && this.selectedType.name.length > 0) {
|
|
52
|
+
this.name = this.selectedType.name;
|
|
53
|
+
this.description = this.selectedType.name;
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
this.onInputNameHandler = (e) => {
|
|
57
|
+
const name = e.detail;
|
|
58
|
+
if (!this.descriptionModifiedByUser) {
|
|
59
|
+
// description should be equal to name, unless the description was already modified by the user.
|
|
60
|
+
this.descriptionEl.value = name;
|
|
61
|
+
}
|
|
62
|
+
this.processName(name);
|
|
63
|
+
};
|
|
64
|
+
this.onBlurNameHandler = () => {
|
|
65
|
+
this.validateNameHandler(this.nameEl.value);
|
|
66
|
+
};
|
|
67
|
+
this.onInputDescriptionHandler = (e) => {
|
|
68
|
+
this.description = e.detail;
|
|
69
|
+
this.descriptionModifiedByUser = true;
|
|
70
|
+
};
|
|
71
|
+
this.processName = (name) => {
|
|
72
|
+
if (this.validateNameTimeoutRef) {
|
|
73
|
+
clearTimeout(this.validateNameTimeoutRef);
|
|
74
|
+
}
|
|
75
|
+
this.validateNameTimeoutRef = setTimeout(() => {
|
|
76
|
+
this.validateNameHandler(name);
|
|
77
|
+
}, 300);
|
|
78
|
+
};
|
|
79
|
+
this.validateNameHandler = async (name) => {
|
|
80
|
+
const result = await this.validateNameCallback(name);
|
|
81
|
+
if (result !== undefined) {
|
|
82
|
+
// the name is not valid. display message
|
|
83
|
+
this.nameEl.validationMessage = result;
|
|
84
|
+
this.nameEl.validationStatus = "error";
|
|
85
|
+
this.nameIsValid = false;
|
|
86
|
+
}
|
|
87
|
+
else {
|
|
88
|
+
// valid name
|
|
89
|
+
this.nameEl.validationMessage = null;
|
|
90
|
+
this.nameEl.validationStatus = "indeterminate";
|
|
91
|
+
this.nameIsValid = true;
|
|
92
|
+
}
|
|
93
|
+
};
|
|
94
|
+
this.createCallbackHandler = async () => {
|
|
95
|
+
var _a;
|
|
96
|
+
const data = {
|
|
97
|
+
typeId: (_a = this.selectedType) === null || _a === void 0 ? void 0 : _a.id,
|
|
98
|
+
name: this.nameEl.value,
|
|
99
|
+
description: this.descriptionEl.value,
|
|
100
|
+
moduleId: this.parentEl.value.id
|
|
101
|
+
};
|
|
102
|
+
await this.createCallback(data);
|
|
103
|
+
};
|
|
104
|
+
this.cancelCallbackHandler = async () => {
|
|
105
|
+
await this.cancelCallback();
|
|
106
|
+
};
|
|
107
|
+
this.categoryOnClickHandler = (category) => {
|
|
108
|
+
this.selectedCategory = category;
|
|
109
|
+
if (category.types[0]) {
|
|
110
|
+
this.selectedType = category.types[0];
|
|
111
|
+
}
|
|
112
|
+
};
|
|
113
|
+
this.typeOnClickHandler = (type) => {
|
|
114
|
+
this.selectedType = type;
|
|
115
|
+
};
|
|
116
|
+
this.selectedCategory = undefined;
|
|
117
|
+
this.selectedType = undefined;
|
|
118
|
+
this.nameIsValid = false;
|
|
119
|
+
this.name = undefined;
|
|
120
|
+
this.description = undefined;
|
|
121
|
+
this.shadow = false;
|
|
122
|
+
this.typeCategories = undefined;
|
|
123
|
+
this.parent = undefined;
|
|
124
|
+
this.defaultParent = undefined;
|
|
125
|
+
this.selectModuleCallback = undefined;
|
|
126
|
+
this.validateNameCallback = undefined;
|
|
127
|
+
this.createCallback = undefined;
|
|
128
|
+
this.cancelCallback = undefined;
|
|
129
|
+
}
|
|
130
|
+
// 6.COMPONENT LIFECYCLE EVENTS //
|
|
131
|
+
async componentWillLoad() {
|
|
132
|
+
this.selectedCategory = this.typeCategories[0];
|
|
133
|
+
this.selectedType = this.typeCategories[0].types[0];
|
|
134
|
+
this.init();
|
|
135
|
+
this._componentLocale = await Locale.getComponentStrings(this.el);
|
|
136
|
+
}
|
|
137
|
+
componentDidLoad() {
|
|
138
|
+
this.nameEl.focus();
|
|
139
|
+
this.validateNameHandler(this.name);
|
|
140
|
+
this.componentDidLoadEvent.emit(true);
|
|
141
|
+
}
|
|
142
|
+
// 10.LOCAL METHODS (RENDER) //
|
|
143
|
+
// 11.RENDER() FUNCTION //
|
|
144
|
+
render() {
|
|
145
|
+
return (h(Host, { class: {
|
|
146
|
+
"gxi-new-kb": true,
|
|
147
|
+
"gxi-new-object--shadow": this.shadow
|
|
148
|
+
} }, h("div", { class: "gx-ide-main-wrapper gx-ide-overflow" }, h("main", { class: "main" }, h("gxg-container", { fieldset: true, displayBorderBottom: true }, h("div", { class: "grid first-row" }, this.typeCategories.length > 1 ? (h("gxg-list-box", { "single-selection": true, id: "list-box-category", "the-title": this._componentLocale.categorySelection, height: "100%" }, this.typeCategories.map(category => (h("gxg-list-box-item", { index: Number(category.id), icon: category.icon, part: `${category}-${category.id}`, onClick: () => this.categoryOnClickHandler(category) }, category.name))))) : null, h("gxg-list-box", { "single-selection": true, id: "list-box-type", "the-title": this._componentLocale.typeSelection, height: "100%" }, this.selectedCategory.types
|
|
149
|
+
? this.selectedCategory.types.map(type => (h("gxg-list-box-item", { index: Number(type.id), icon: type.icon, selected: this.selectedType.id === type.id, part: `${type}-${type.id}`, onClick: () => this.typeOnClickHandler(type) }, type.name)))
|
|
150
|
+
: null), h("gxg-title", { type: "title-05" }, "Text about the ", this.selectedType.name))), h("gxg-container", { fieldset: true }, h("div", { class: "grid" }, h("header", { class: "header grid" }, h("gxg-label", { labelPosition: "start" }, this._componentLocale.name), h("gxg-form-text", { "label-position": "start", placeholder: "Name", "max-width": "100%", value: this.name, ref: (el) => (this.nameEl = el), onInput: this.onInputNameHandler, onBlur: this.onBlurNameHandler, part: "name", "display-validation-styles": true, "display-validation-message": true }), h("gxg-label", { labelPosition: "start" }, this._componentLocale.description), h("gxg-form-text", { "label-position": "start", placeholder: "Description", "max-width": "100%", value: this.description, ref: (el) => (this.descriptionEl = el), onInput: this.onInputDescriptionHandler, part: "description", "display-validation-styles": true, "display-validation-message": true }), this.renderModuleFolder()))), h("gxg-container", { fieldset: true, displayBorderTop: true }, h("gxg-button", { id: "button-create", slot: "footer", type: "primary-text-only", onClick: this.createCallbackHandler, disabled: !this.nameIsValid, part: "gxg-button gxg-button--create" }, this._componentLocale.footer.btnCreate), h("gxg-button", { id: "button-cancel", slot: "footer", type: "outlined", onClick: this.cancelCallbackHandler, part: "gxg-button gxg-button--cancel" }, this._componentLocale.footer.btnCancel))))));
|
|
151
|
+
}
|
|
152
|
+
static get assetsDirs() { return ["gx-ide-assets/new-object"]; }
|
|
153
|
+
get el() { return this; }
|
|
154
|
+
static get style() { return newObjectCss; }
|
|
155
|
+
}, [1, "gx-ide-new-object", {
|
|
156
|
+
"shadow": [4],
|
|
157
|
+
"typeCategories": [16],
|
|
158
|
+
"parent": [16],
|
|
159
|
+
"defaultParent": [16],
|
|
160
|
+
"selectModuleCallback": [16],
|
|
161
|
+
"validateNameCallback": [16],
|
|
162
|
+
"createCallback": [16],
|
|
163
|
+
"cancelCallback": [16],
|
|
164
|
+
"selectedCategory": [32],
|
|
165
|
+
"selectedType": [32],
|
|
166
|
+
"nameIsValid": [32],
|
|
167
|
+
"name": [32],
|
|
168
|
+
"description": [32]
|
|
169
|
+
}]);
|
|
170
|
+
function defineCustomElement$1() {
|
|
171
|
+
if (typeof customElements === "undefined") {
|
|
172
|
+
return;
|
|
173
|
+
}
|
|
174
|
+
const components = ["gx-ide-new-object", "ch-icon", "gx-ide-entity-selector", "gxg-button", "gxg-container", "gxg-form-checkbox", "gxg-form-text", "gxg-icon", "gxg-label", "gxg-list-box", "gxg-list-box-item", "gxg-title", "gxg-tooltip"];
|
|
175
|
+
components.forEach(tagName => { switch (tagName) {
|
|
176
|
+
case "gx-ide-new-object":
|
|
177
|
+
if (!customElements.get(tagName)) {
|
|
178
|
+
customElements.define(tagName, GxIdeNewObject$1);
|
|
179
|
+
}
|
|
180
|
+
break;
|
|
181
|
+
case "ch-icon":
|
|
182
|
+
if (!customElements.get(tagName)) {
|
|
183
|
+
defineCustomElement$d();
|
|
184
|
+
}
|
|
185
|
+
break;
|
|
186
|
+
case "gx-ide-entity-selector":
|
|
187
|
+
if (!customElements.get(tagName)) {
|
|
188
|
+
defineCustomElement$c();
|
|
189
|
+
}
|
|
190
|
+
break;
|
|
191
|
+
case "gxg-button":
|
|
192
|
+
if (!customElements.get(tagName)) {
|
|
193
|
+
defineCustomElement$b();
|
|
194
|
+
}
|
|
195
|
+
break;
|
|
196
|
+
case "gxg-container":
|
|
197
|
+
if (!customElements.get(tagName)) {
|
|
198
|
+
defineCustomElement$a();
|
|
199
|
+
}
|
|
200
|
+
break;
|
|
201
|
+
case "gxg-form-checkbox":
|
|
202
|
+
if (!customElements.get(tagName)) {
|
|
203
|
+
defineCustomElement$9();
|
|
204
|
+
}
|
|
205
|
+
break;
|
|
206
|
+
case "gxg-form-text":
|
|
207
|
+
if (!customElements.get(tagName)) {
|
|
208
|
+
defineCustomElement$8();
|
|
209
|
+
}
|
|
210
|
+
break;
|
|
211
|
+
case "gxg-icon":
|
|
212
|
+
if (!customElements.get(tagName)) {
|
|
213
|
+
defineCustomElement$7();
|
|
214
|
+
}
|
|
215
|
+
break;
|
|
216
|
+
case "gxg-label":
|
|
217
|
+
if (!customElements.get(tagName)) {
|
|
218
|
+
defineCustomElement$6();
|
|
219
|
+
}
|
|
220
|
+
break;
|
|
221
|
+
case "gxg-list-box":
|
|
222
|
+
if (!customElements.get(tagName)) {
|
|
223
|
+
defineCustomElement$5();
|
|
224
|
+
}
|
|
225
|
+
break;
|
|
226
|
+
case "gxg-list-box-item":
|
|
227
|
+
if (!customElements.get(tagName)) {
|
|
228
|
+
defineCustomElement$4();
|
|
229
|
+
}
|
|
230
|
+
break;
|
|
231
|
+
case "gxg-title":
|
|
232
|
+
if (!customElements.get(tagName)) {
|
|
233
|
+
defineCustomElement$3();
|
|
234
|
+
}
|
|
235
|
+
break;
|
|
236
|
+
case "gxg-tooltip":
|
|
237
|
+
if (!customElements.get(tagName)) {
|
|
238
|
+
defineCustomElement$2();
|
|
239
|
+
}
|
|
240
|
+
break;
|
|
241
|
+
} });
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
const GxIdeNewObject = GxIdeNewObject$1;
|
|
245
|
+
const defineCustomElement = defineCustomElement$1;
|
|
246
|
+
|
|
247
|
+
export { GxIdeNewObject, defineCustomElement };
|