@genexus/genexus-ide-ui 0.0.15 → 0.0.17
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_7.cjs.entry.js +73 -27
- package/dist/cjs/genexus-ide-ui.cjs.js +1 -1
- package/dist/cjs/{gx-ide-container_2.cjs.entry.js → gx-ide-container.cjs.entry.js} +0 -31
- package/dist/cjs/gx-ide-directory-selector.cjs.entry.js +0 -1
- package/dist/cjs/gx-ide-entity-selector.cjs.entry.js +12 -2
- package/dist/cjs/gx-ide-new-kb.cjs.entry.js +16 -17
- package/dist/cjs/gx-ide-template.cjs.entry.js +2 -2
- package/dist/cjs/gx-ide-top-bar.cjs.entry.js +37 -0
- package/dist/cjs/gxg-combo-box_8.cjs.entry.js +3 -8
- package/dist/cjs/gxg-menu.cjs.entry.js +2 -2
- package/dist/cjs/gxg-test.cjs.entry.js +4 -23
- package/dist/cjs/gxg-tree_2.cjs.entry.js +386 -281
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/_template/template.js +9 -10
- package/dist/collection/components/directory-selector/directory-selector.js +0 -1
- package/dist/collection/components/entity-selector/entity-selector.js +39 -2
- package/dist/collection/components/new-kb/new-kb.js +16 -35
- package/dist/components/ch-grid2.js +74 -28
- package/dist/components/combo-box.js +4 -3
- package/dist/components/form-radio.js +0 -5
- package/dist/components/gx-ide-directory-selector.js +0 -1
- package/dist/components/gx-ide-entity-selector.js +13 -3
- package/dist/components/gx-ide-new-kb.js +20 -28
- package/dist/components/gx-ide-template.js +7 -13
- package/dist/components/gxg-menu.js +2 -2
- package/dist/components/gxg-test.js +4 -23
- package/dist/components/gxg-tree-item2.js +344 -277
- package/dist/components/gxg-tree2.js +47 -8
- package/dist/esm/ch-grid_7.entry.js +73 -27
- package/dist/esm/genexus-ide-ui.js +1 -1
- package/dist/esm/{gx-ide-container_2.entry.js → gx-ide-container.entry.js} +1 -31
- package/dist/esm/gx-ide-directory-selector.entry.js +0 -1
- package/dist/esm/gx-ide-entity-selector.entry.js +13 -3
- package/dist/esm/gx-ide-new-kb.entry.js +16 -17
- package/dist/esm/gx-ide-template.entry.js +2 -2
- package/dist/esm/gx-ide-top-bar.entry.js +33 -0
- package/dist/esm/gxg-combo-box_8.entry.js +3 -8
- package/dist/esm/gxg-menu.entry.js +2 -2
- package/dist/esm/gxg-test.entry.js +4 -23
- package/dist/esm/gxg-tree_2.entry.js +387 -282
- package/dist/esm/loader.js +1 -1
- package/dist/genexus-ide-ui/genexus-ide-ui.css +1 -1
- package/dist/genexus-ide-ui/genexus-ide-ui.esm.js +1 -1
- package/dist/genexus-ide-ui/p-1042318d.entry.js +1 -0
- package/dist/genexus-ide-ui/p-1d4cf2ae.entry.js +1 -0
- package/dist/genexus-ide-ui/p-48482e25.entry.js +1 -0
- package/dist/genexus-ide-ui/p-49433b58.entry.js +1 -0
- package/dist/genexus-ide-ui/p-79cf24a3.entry.js +1 -0
- package/dist/genexus-ide-ui/p-b196d91d.entry.js +1 -0
- package/dist/genexus-ide-ui/p-c5c6e102.entry.js +1 -0
- package/dist/genexus-ide-ui/p-cd503583.entry.js +1 -0
- package/dist/genexus-ide-ui/p-e4ee28c7.entry.js +1 -0
- package/dist/genexus-ide-ui/{p-1e412d88.entry.js → p-fcc98e20.entry.js} +1 -1
- package/dist/node_modules/@genexus/gemini/dist/collection/components/tree-item/gxg-tree-item.css +2 -2
- package/dist/types/components/_template/template.d.ts +2 -2
- package/dist/types/components/entity-selector/entity-selector.d.ts +10 -0
- package/dist/types/components/new-kb/new-kb.d.ts +0 -4
- package/dist/types/components.d.ts +12 -12
- package/package.json +3 -3
- package/dist/genexus-ide-ui/p-0f5d0ccc.entry.js +0 -1
- package/dist/genexus-ide-ui/p-18936375.entry.js +0 -1
- package/dist/genexus-ide-ui/p-2761a056.entry.js +0 -1
- package/dist/genexus-ide-ui/p-62814082.entry.js +0 -1
- package/dist/genexus-ide-ui/p-97430828.entry.js +0 -1
- package/dist/genexus-ide-ui/p-9e32e006.entry.js +0 -1
- package/dist/genexus-ide-ui/p-eb8e9655.entry.js +0 -1
- package/dist/genexus-ide-ui/p-f58b607d.entry.js +0 -1
|
@@ -319,7 +319,6 @@ var ChGridCellType;
|
|
|
319
319
|
ChGridCellType["Plain"] = "plain";
|
|
320
320
|
ChGridCellType["Rich"] = "rich";
|
|
321
321
|
ChGridCellType["TreeNode"] = "node";
|
|
322
|
-
ChGridCellType["RowAction"] = "action";
|
|
323
322
|
})(ChGridCellType || (ChGridCellType = {}));
|
|
324
323
|
/**
|
|
325
324
|
* The `ch-grid-cell` component represents a grid cell.
|
|
@@ -328,6 +327,29 @@ class HTMLChGridCellElement extends HTMLElement {
|
|
|
328
327
|
constructor() {
|
|
329
328
|
super();
|
|
330
329
|
this.cellType = ChGridCellType.Plain;
|
|
330
|
+
this.defineFocusHandler();
|
|
331
|
+
}
|
|
332
|
+
static get observedAttributes() {
|
|
333
|
+
return ["cell-type", "row-drag", "row-selector", "row-actions"];
|
|
334
|
+
}
|
|
335
|
+
connectedCallback() {
|
|
336
|
+
if (this.cellType !== ChGridCellType.Plain) {
|
|
337
|
+
this.define();
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
attributeChangedCallback(name, _oldValue, value) {
|
|
341
|
+
if (name === "cell-type") {
|
|
342
|
+
this.cellType = value;
|
|
343
|
+
}
|
|
344
|
+
if (name === "row-drag") {
|
|
345
|
+
this.rowDrag = value !== null ? value !== "false" : false;
|
|
346
|
+
}
|
|
347
|
+
if (name === "row-selector") {
|
|
348
|
+
this.rowSelector = value !== null ? value !== "false" : false;
|
|
349
|
+
}
|
|
350
|
+
if (name === "row-actions") {
|
|
351
|
+
this.rowActions = value !== null ? value !== "false" : false;
|
|
352
|
+
}
|
|
331
353
|
}
|
|
332
354
|
/**
|
|
333
355
|
* One of "plain", "rich", or "node", indicating the type of cell.
|
|
@@ -336,16 +358,9 @@ class HTMLChGridCellElement extends HTMLElement {
|
|
|
336
358
|
return this.cellType;
|
|
337
359
|
}
|
|
338
360
|
set type(value) {
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
break;
|
|
343
|
-
case ChGridCellType.Rich:
|
|
344
|
-
this.defineRich();
|
|
345
|
-
break;
|
|
346
|
-
case ChGridCellType.TreeNode:
|
|
347
|
-
this.defineTreeNode();
|
|
348
|
-
break;
|
|
361
|
+
if (this.cellType !== value) {
|
|
362
|
+
this.cellType = value;
|
|
363
|
+
this.define();
|
|
349
364
|
}
|
|
350
365
|
}
|
|
351
366
|
/**
|
|
@@ -412,6 +427,11 @@ class HTMLChGridCellElement extends HTMLElement {
|
|
|
412
427
|
this.selector.setAttribute("part", "selector");
|
|
413
428
|
}
|
|
414
429
|
}
|
|
430
|
+
defineFocusHandler() {
|
|
431
|
+
this.addEventListener("focusin", () => {
|
|
432
|
+
this.dispatchEvent(new CustomEvent("cellFocused", { bubbles: true, composed: true }));
|
|
433
|
+
});
|
|
434
|
+
}
|
|
415
435
|
caretMouseDownHandler(eventInfo) {
|
|
416
436
|
eventInfo.stopPropagation();
|
|
417
437
|
this.dispatchEvent(new CustomEvent("cellCaretClicked", { bubbles: true, composed: true }));
|
|
@@ -449,12 +469,18 @@ class HTMLChGridCellElement extends HTMLElement {
|
|
|
449
469
|
composed: true
|
|
450
470
|
}));
|
|
451
471
|
}
|
|
452
|
-
|
|
453
|
-
this.cellType
|
|
472
|
+
define() {
|
|
473
|
+
switch (this.cellType) {
|
|
474
|
+
case ChGridCellType.Rich:
|
|
475
|
+
this.defineRich();
|
|
476
|
+
break;
|
|
477
|
+
case ChGridCellType.TreeNode:
|
|
478
|
+
this.defineTreeNode();
|
|
479
|
+
break;
|
|
480
|
+
}
|
|
454
481
|
}
|
|
455
482
|
defineRich() {
|
|
456
483
|
let html = "";
|
|
457
|
-
this.cellType = ChGridCellType.Rich;
|
|
458
484
|
if (!this.shadowRoot || this.shadowRoot.innerHTML === "") {
|
|
459
485
|
this.attachShadow({ mode: "open" });
|
|
460
486
|
if (this.rowDrag) {
|
|
@@ -498,7 +524,6 @@ class HTMLChGridCellElement extends HTMLElement {
|
|
|
498
524
|
}
|
|
499
525
|
}
|
|
500
526
|
defineTreeNode() {
|
|
501
|
-
this.cellType = ChGridCellType.TreeNode;
|
|
502
527
|
if (!this.shadowRoot || this.shadowRoot.innerHTML === "") {
|
|
503
528
|
this.attachShadow({ mode: "open" });
|
|
504
529
|
this.shadowRoot.innerHTML = `
|
|
@@ -1003,14 +1028,26 @@ class ChGridManagerSelection {
|
|
|
1003
1028
|
return { rowFocused, rowsSelected, cellSelected };
|
|
1004
1029
|
}
|
|
1005
1030
|
selectSet(state, row, cell, value = true) {
|
|
1031
|
+
let append = true;
|
|
1032
|
+
if (this.manager.grid.rowSelectionMode === "none") {
|
|
1033
|
+
return this.selectionStateNone;
|
|
1034
|
+
}
|
|
1035
|
+
else if (this.manager.grid.rowSelectionMode !== "multiple") {
|
|
1036
|
+
append = false;
|
|
1037
|
+
}
|
|
1006
1038
|
let rowFocused = state.rowFocused;
|
|
1007
1039
|
let rowsSelected = state.rowsSelected;
|
|
1008
1040
|
let cellSelected = state.cellSelected;
|
|
1009
1041
|
rowFocused = row;
|
|
1010
1042
|
if (value) {
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1043
|
+
if (append) {
|
|
1044
|
+
rowsSelected = rowsSelected.includes(row)
|
|
1045
|
+
? rowsSelected
|
|
1046
|
+
: [...rowsSelected, row];
|
|
1047
|
+
}
|
|
1048
|
+
else {
|
|
1049
|
+
rowsSelected = rowsSelected.includes(row) ? rowsSelected : [row];
|
|
1050
|
+
}
|
|
1014
1051
|
cellSelected = cell;
|
|
1015
1052
|
}
|
|
1016
1053
|
else {
|
|
@@ -1918,6 +1955,12 @@ const ChGrid = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement$1 {
|
|
|
1918
1955
|
blurHandler() {
|
|
1919
1956
|
this.rowFocused = null;
|
|
1920
1957
|
}
|
|
1958
|
+
cellFocusedHandler(eventInfo) {
|
|
1959
|
+
const cell = eventInfo.target;
|
|
1960
|
+
if (this.rowSelectionMode !== "none" && !cell.selected) {
|
|
1961
|
+
this.setCellSelected(cell);
|
|
1962
|
+
}
|
|
1963
|
+
}
|
|
1921
1964
|
windowKeyDownHandler(eventInfo) {
|
|
1922
1965
|
if (document.activeElement === this.el &&
|
|
1923
1966
|
[
|
|
@@ -2166,15 +2209,7 @@ const ChGrid = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement$1 {
|
|
|
2166
2209
|
async selectCell(cellId, rowId, columnId, selected = true) {
|
|
2167
2210
|
const cell = this.manager.getCell(cellId, rowId, columnId);
|
|
2168
2211
|
if (cell) {
|
|
2169
|
-
|
|
2170
|
-
rowFocused: this.rowFocused,
|
|
2171
|
-
rowsSelected: this.rowsSelected,
|
|
2172
|
-
cellSelected: this.cellSelected
|
|
2173
|
-
}, cell.row, cell, selected);
|
|
2174
|
-
this.rowFocused = rowFocused;
|
|
2175
|
-
this.rowsSelected = rowsSelected;
|
|
2176
|
-
this.cellSelected = cellSelected;
|
|
2177
|
-
rowFocused === null || rowFocused === void 0 ? void 0 : rowFocused.ensureVisible();
|
|
2212
|
+
this.setCellSelected(cell, selected);
|
|
2178
2213
|
}
|
|
2179
2214
|
}
|
|
2180
2215
|
/**
|
|
@@ -2356,6 +2391,17 @@ const ChGrid = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement$1 {
|
|
|
2356
2391
|
row.collapsed = false;
|
|
2357
2392
|
}
|
|
2358
2393
|
}
|
|
2394
|
+
setCellSelected(cell, selected = true) {
|
|
2395
|
+
const { rowFocused, rowsSelected, cellSelected } = this.manager.selection.selectSet({
|
|
2396
|
+
rowFocused: this.rowFocused,
|
|
2397
|
+
rowsSelected: this.rowsSelected,
|
|
2398
|
+
cellSelected: this.cellSelected
|
|
2399
|
+
}, cell.row, cell, selected);
|
|
2400
|
+
this.rowFocused = rowFocused;
|
|
2401
|
+
this.rowsSelected = rowsSelected;
|
|
2402
|
+
this.cellSelected = cellSelected;
|
|
2403
|
+
rowFocused === null || rowFocused === void 0 ? void 0 : rowFocused.ensureVisible();
|
|
2404
|
+
}
|
|
2359
2405
|
renderSettings() {
|
|
2360
2406
|
return (h("ch-grid-settings", { grid: this.el, ref: el => (this.settingsUI = el), exportparts: "\n mask:settings-mask,\n window:settings-window,\n header:settings-header,\n caption:settings-caption,\n close:settings-close,\n main:settings-main,\n footer:settings-footer\n " }, h("slot", { name: "settings" }, h("ch-grid-settings-columns", { part: "settings-columns", columns: [...this.manager.getColumns()], exportparts: "\n column:settings-columns-item,\n column-label:settings-columns-label,\n column-visible:settings-columns-visible,\n column-visible-checked:settings-columns-visible-checked\n " }))));
|
|
2361
2407
|
}
|
|
@@ -2404,7 +2450,7 @@ const ChGrid = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement$1 {
|
|
|
2404
2450
|
"getNextRow": [64],
|
|
2405
2451
|
"getPreviousCell": [64],
|
|
2406
2452
|
"getNextCell": [64]
|
|
2407
|
-
}, [[1, "focus", "focusHandler"], [1, "blur", "blurHandler"], [8, "keydown", "windowKeyDownHandler"], [1, "keydown", "keyDownHandler"], [1, "mousemove", "mouseMoveHandler"], [1, "mouseleave", "mouseLeaveHandler"], [1, "mousedown", "clickHandler"], [1, "mouseup", "mouseUpHandler"], [1, "dblclick", "dblclickHandler"], [1, "columnSelectorClicked", "columnSelectorClickedHandler"], [1, "cellSelectorClicked", "cellSelectorClickedHandler"], [1, "cellRowActionClicked", "cellRowActionClickedHandler"], [0, "columnHiddenChanged", "columnStyleChangedHandler"], [0, "columnOrderChanged", "columnStyleChangedHandler"], [0, "columnFreezeChanged", "columnStyleChangedHandler"], [0, "columnSizeChanging", "columnStyleChangedHandler"], [0, "columnFreezeChanged", "columnFreezeChangedHandler"], [0, "columnDragStarted", "columnDragStartHandler"], [0, "columnDragging", "columnDraggingHandler"], [0, "columnDragEnded", "columnDragEndHandler"], [0, "rowDragStarted", "rowDragStartHandler"], [0, "rowEnsureVisible", "rowEnsureVisibleHandler"], [0, "cellEnsureVisible", "cellEnsureVisibleHandler"], [0, "settingsShowClicked", "settingsShowClickedHandler"], [0, "settingsCloseClicked", "settingsCloseClickedHandler"]]]);
|
|
2453
|
+
}, [[1, "focus", "focusHandler"], [1, "blur", "blurHandler"], [1, "cellFocused", "cellFocusedHandler"], [8, "keydown", "windowKeyDownHandler"], [1, "keydown", "keyDownHandler"], [1, "mousemove", "mouseMoveHandler"], [1, "mouseleave", "mouseLeaveHandler"], [1, "mousedown", "clickHandler"], [1, "mouseup", "mouseUpHandler"], [1, "dblclick", "dblclickHandler"], [1, "columnSelectorClicked", "columnSelectorClickedHandler"], [1, "cellSelectorClicked", "cellSelectorClickedHandler"], [1, "cellRowActionClicked", "cellRowActionClickedHandler"], [0, "columnHiddenChanged", "columnStyleChangedHandler"], [0, "columnOrderChanged", "columnStyleChangedHandler"], [0, "columnFreezeChanged", "columnStyleChangedHandler"], [0, "columnSizeChanging", "columnStyleChangedHandler"], [0, "columnFreezeChanged", "columnFreezeChangedHandler"], [0, "columnDragStarted", "columnDragStartHandler"], [0, "columnDragging", "columnDraggingHandler"], [0, "columnDragEnded", "columnDragEndHandler"], [0, "rowDragStarted", "rowDragStartHandler"], [0, "rowEnsureVisible", "rowEnsureVisibleHandler"], [0, "cellEnsureVisible", "cellEnsureVisibleHandler"], [0, "settingsShowClicked", "settingsShowClickedHandler"], [0, "settingsCloseClicked", "settingsCloseClickedHandler"]]]);
|
|
2408
2454
|
function defineCustomElement() {
|
|
2409
2455
|
if (typeof customElements === "undefined") {
|
|
2410
2456
|
return;
|
|
@@ -12,7 +12,7 @@ import { d as defineCustomElement$2 } from './gxg-label2.js';
|
|
|
12
12
|
import { d as defineCustomElement$1 } from './tooltip.js';
|
|
13
13
|
|
|
14
14
|
function mutationObserverRemoved(target, ref) {
|
|
15
|
-
const observer = new MutationObserver((mutationsList
|
|
15
|
+
const observer = new MutationObserver((mutationsList) => {
|
|
16
16
|
for (const mutation of mutationsList) {
|
|
17
17
|
if (mutation.type === "childList") {
|
|
18
18
|
const removedNodesArray = Array.from(mutation.removedNodes);
|
|
@@ -446,7 +446,7 @@ const GxgComboBox = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
446
446
|
this.value = event.detail.value;
|
|
447
447
|
this.inputText.focus();
|
|
448
448
|
}
|
|
449
|
-
itemDidLoadHandler(
|
|
449
|
+
itemDidLoadHandler() {
|
|
450
450
|
this.setIndexes();
|
|
451
451
|
this.setInitialValue();
|
|
452
452
|
}
|
|
@@ -599,7 +599,7 @@ const GxgComboBox = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
599
599
|
large: state.large,
|
|
600
600
|
}, style: { maxWidth: this.maxWidth, minWidth: this.minWidth }, exportParts: this.exportparts ? this.exportparts : null }, h("div", { class: {
|
|
601
601
|
"main-container": true,
|
|
602
|
-
}, ref: (el) => (this.mainContainer = el) }, this.label ? (h("gxg-label", { labelPosition: this.labelPosition, center: this.centerLabel, width: this.labelWidth }, this.label)) : null, h("div", { class: "search-and-items-container", ref: (el) => (this.searchItemsContainer = el) }, h("div", { class: { "search-container": true } }, h("gxg-form-text", { placeholder: this.placeholder, onInput: this.inputHandler.bind(this), onKeyDown: this.keyDownHandler, onClick: this.inputTextClickHandler, value: this.text, icon: this.inputTextIcon, iconPosition: this.inputTextIconPosition, readonly: this.disableFilter, ref: (el) => (this.inputText = el), validationStatus: this.validationStatus, disabled: this.disabled, onValueChanged: this.handleValueChangeFormText, cursorEnd: this.cursorEnd, preventValueChangedEmit: true, preventValueChangeOnDisabled: true, class: { "clear-icon": clearIcon }, part: this.parts.input }), h("div", { class: "buttons-wrapper" }, clearIcon ? (h("gxg-button", { class: { "button-icon delete-icon": true }, icon: "menus/delete", type: "tertiary", onClick: () => this.clearCombo(), tabindex: "-1", fit: true, disabled: this.disabled, part: this.parts.clearButton })) : null, h("gxg-button", { class: { "button-icon": true }, icon: "navigation/arrow-down", type: "secondary-icon-only", onClick: this.toggleListButtonClickHandler, fit: true, disabled: this.disabled, tabindex: "-1", part: this.parts.toggleButton }))), h("div", { class: {
|
|
602
|
+
}, ref: (el) => (this.mainContainer = el) }, this.label ? (h("gxg-label", { labelPosition: this.labelPosition, center: this.centerLabel, width: this.labelWidth }, this.label)) : null, h("div", { class: "search-and-items-container", ref: (el) => (this.searchItemsContainer = el) }, h("div", { class: { "search-container": true } }, h("gxg-form-text", { placeholder: this.placeholder, onInput: this.inputHandler.bind(this), onKeyDown: this.keyDownHandler, onClick: this.inputTextClickHandler, value: this.text, icon: this.fixedIcon || this.inputTextIcon, iconPosition: this.fixedIcon ? "start" : this.inputTextIconPosition, readonly: this.disableFilter, ref: (el) => (this.inputText = el), validationStatus: this.validationStatus, disabled: this.disabled, onValueChanged: this.handleValueChangeFormText, cursorEnd: this.cursorEnd, preventValueChangedEmit: true, preventValueChangeOnDisabled: true, class: { "clear-icon": clearIcon }, part: this.parts.input }), h("div", { class: "buttons-wrapper" }, clearIcon ? (h("gxg-button", { class: { "button-icon delete-icon": true }, icon: "menus/delete", type: "tertiary", onClick: () => this.clearCombo(), tabindex: "-1", fit: true, disabled: this.disabled, part: this.parts.clearButton })) : null, h("gxg-button", { class: { "button-icon": true }, icon: "navigation/arrow-down", type: "secondary-icon-only", onClick: this.toggleListButtonClickHandler, fit: true, disabled: this.disabled, tabindex: "-1", part: this.parts.toggleButton }))), h("div", { class: {
|
|
603
603
|
"items-container": true,
|
|
604
604
|
"items-container--show": this.listIsOpen,
|
|
605
605
|
"items-container--no-match": this.noMatch,
|
|
@@ -618,6 +618,7 @@ const GxgComboBox = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
618
618
|
}; }
|
|
619
619
|
static get style() { return comboBoxCss; }
|
|
620
620
|
}, [17, "gxg-combo-box", {
|
|
621
|
+
"fixedIcon": [1, "fixed-icon"],
|
|
621
622
|
"disabled": [4],
|
|
622
623
|
"label": [1],
|
|
623
624
|
"labelPosition": [513, "label-position"],
|
|
@@ -30,11 +30,6 @@ const GxgFormRadio = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
|
30
30
|
/*********************************
|
|
31
31
|
METHODS
|
|
32
32
|
*********************************/
|
|
33
|
-
componentDidLoad() {
|
|
34
|
-
this.radioInput.addEventListener("change", (e) => {
|
|
35
|
-
console.log("changed", e);
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
33
|
checkedHandler(newValue) {
|
|
39
34
|
if (newValue) {
|
|
40
35
|
this.radioChecked.emit({
|
|
@@ -50,7 +50,6 @@ const GxIdeDirectorySelector$1 = /*@__PURE__*/ proxyCustomElement(class extends
|
|
|
50
50
|
// 10.RENDER() FUNCTION //
|
|
51
51
|
render() {
|
|
52
52
|
var _a;
|
|
53
|
-
console.log("centerLabel", this.centerLabel);
|
|
54
53
|
return (h(Host, null, this.label ? (h("gxg-label", { labelPosition: this.labelPosition, center: this.centerLabel }, this.label)) : null, h("div", { class: "wrapper" }, h("gxg-form-text", { part: "input", value: this.value }), h("gxg-button", { part: "button-select", onClick: this.btnSelectClickHandler, "aria-label": (_a = this.accessibilityLabels) === null || _a === void 0 ? void 0 : _a.buttonSelectLabel, type: "secondary-icon-only", icon: "gemini-tools/folder", disabled: !this.selectDirectoryCallback }))));
|
|
55
54
|
}
|
|
56
55
|
static get style() { return directorySelectorCss; }
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
1
|
+
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
2
2
|
import { d as defineCustomElement$6 } from './icon.js';
|
|
3
3
|
import { d as defineCustomElement$5 } from './button.js';
|
|
4
4
|
import { d as defineCustomElement$4 } from './icon2.js';
|
|
@@ -12,8 +12,7 @@ const GxIdeEntitySelector$1 = /*@__PURE__*/ proxyCustomElement(class extends HTM
|
|
|
12
12
|
super();
|
|
13
13
|
this.__registerHost();
|
|
14
14
|
this.__attachShadow();
|
|
15
|
-
|
|
16
|
-
// 5.EVENTS (EMIT) //
|
|
15
|
+
this.valueChanged = createEvent(this, "valueChanged", 7);
|
|
17
16
|
// 6.METHODS //
|
|
18
17
|
// 7.LISTENERS //
|
|
19
18
|
// 8.PUBLIC METHODS API //
|
|
@@ -67,6 +66,14 @@ const GxIdeEntitySelector$1 = /*@__PURE__*/ proxyCustomElement(class extends HTM
|
|
|
67
66
|
this.value = undefined;
|
|
68
67
|
this.buttonHasFocus = false;
|
|
69
68
|
}
|
|
69
|
+
// 4.PUBLIC PROPERTY API | WATCH'S //
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @param newValue the new entity value
|
|
73
|
+
*/
|
|
74
|
+
valueChangedHandler() {
|
|
75
|
+
this.valueChanged.emit(this.value);
|
|
76
|
+
}
|
|
70
77
|
// 10.RENDER() FUNCTION //
|
|
71
78
|
render() {
|
|
72
79
|
var _a, _b, _c, _d;
|
|
@@ -74,6 +81,9 @@ const GxIdeEntitySelector$1 = /*@__PURE__*/ proxyCustomElement(class extends HTM
|
|
|
74
81
|
"gxg-entity-selector--button-has-focus": this.buttonHasFocus
|
|
75
82
|
} }, this.label && (h("gxg-label", { part: "label", labelPosition: this.labelPosition, center: this.centerLabel, width: this.labelWidth }, this.label)), h("div", { part: "wrapper", class: "wrapper" }, this.iconSrc() && (h("gxg-icon", { color: this.iconColor(), type: this.iconSrc(), part: "icon", "aria-hidden": "true" })), h("input", { type: "text", readonly: true, part: "input input-entity", value: ((_a = this.value) === null || _a === void 0 ? void 0 : _a.name) || ((_b = this.defaultValue) === null || _b === void 0 ? void 0 : _b.name) }), h("gxg-button", { part: "button-clear", onClick: this.btnClearClickHandler, "aria-label": (_c = this.accessibilityLabels) === null || _c === void 0 ? void 0 : _c.buttonClearLabel, onFocus: this.buttonFocusHandler, onBlur: this.buttonFocusHandler, type: "secondary-icon-only", icon: "gemini-tools/reset" }), h("gxg-button", { part: "button-select", onClick: this.btnSelectClickHandler, "aria-label": (_d = this.accessibilityLabels) === null || _d === void 0 ? void 0 : _d.buttonSelectLabel, onFocus: this.buttonFocusHandler, onBlur: this.buttonFocusHandler, type: "secondary-icon-only", icon: "gemini-tools/show-more-horizontal", disabled: !this.selectEntityCallback }))));
|
|
76
83
|
}
|
|
84
|
+
static get watchers() { return {
|
|
85
|
+
"value": ["valueChangedHandler"]
|
|
86
|
+
}; }
|
|
77
87
|
static get style() { return entitySelectorCss; }
|
|
78
88
|
}, [1, "gx-ide-entity-selector", {
|
|
79
89
|
"accessibilityLabels": [16],
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
2
2
|
import { L as Locale } from './locale.js';
|
|
3
3
|
import { f as formSubmitValidation, r as renderFormItems, g as getSelectedGxOption } from './form-validation.js';
|
|
4
|
-
import { d as defineCustomElement$
|
|
5
|
-
import { d as defineCustomElement$
|
|
6
|
-
import { d as defineCustomElement$h } from './top-bar.js';
|
|
4
|
+
import { d as defineCustomElement$i } from './icon.js';
|
|
5
|
+
import { d as defineCustomElement$h } from './container.js';
|
|
7
6
|
import { d as defineCustomElement$g } from './button.js';
|
|
8
7
|
import { d as defineCustomElement$f } from './combo-box.js';
|
|
9
8
|
import { d as defineCustomElement$e } from './combo-box-item.js';
|
|
@@ -124,24 +123,24 @@ const GxIdeNewKb$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
|
124
123
|
return gxOptions;
|
|
125
124
|
};
|
|
126
125
|
this.createKbHandler = () => {
|
|
127
|
-
var _a, _b, _c;
|
|
126
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
128
127
|
if (this.createCallback) {
|
|
129
128
|
const createCallbackPromise = this.createCallback({
|
|
130
|
-
kbName: this.kbNameEl.value,
|
|
131
|
-
kbLocation: this.locationEl.value,
|
|
132
|
-
prototypingTarget: this.prototypingTargetEl.value,
|
|
133
|
-
userInterfaceLanguage: this.userInterfaceLanguageEl.value,
|
|
134
|
-
prototypingEnvironment: this.prototypingEnvironmentEl.value,
|
|
135
|
-
dataSource: this.dataSourceEl.value,
|
|
129
|
+
kbName: (_a = this.kbNameEl) === null || _a === void 0 ? void 0 : _a.value,
|
|
130
|
+
kbLocation: (_b = this.locationEl) === null || _b === void 0 ? void 0 : _b.value,
|
|
131
|
+
prototypingTarget: (_c = this.prototypingTargetEl) === null || _c === void 0 ? void 0 : _c.value,
|
|
132
|
+
userInterfaceLanguage: (_d = this.userInterfaceLanguageEl) === null || _d === void 0 ? void 0 : _d.value,
|
|
133
|
+
prototypingEnvironment: (_e = this.prototypingEnvironmentEl) === null || _e === void 0 ? void 0 : _e.value,
|
|
134
|
+
dataSource: (_f = this.dataSourceEl) === null || _f === void 0 ? void 0 : _f.value,
|
|
136
135
|
frontEnds: this.getFrontEndOptionsValues(),
|
|
137
|
-
serverName: this.serverNameEl.value,
|
|
138
|
-
databaseName: this.databaseNameEl.value,
|
|
139
|
-
collation: this.collationEl.value,
|
|
140
|
-
createDataFilesInKBFolder: this.createDataFilesInKBFolderEl.checked,
|
|
141
|
-
authenticationType: this.authenticationTypeEl.value,
|
|
142
|
-
userName: (
|
|
143
|
-
password: (
|
|
144
|
-
savePassword: (
|
|
136
|
+
serverName: (_g = this.serverNameEl) === null || _g === void 0 ? void 0 : _g.value,
|
|
137
|
+
databaseName: (_h = this.databaseNameEl) === null || _h === void 0 ? void 0 : _h.value,
|
|
138
|
+
collation: (_j = this.collationEl) === null || _j === void 0 ? void 0 : _j.value,
|
|
139
|
+
createDataFilesInKBFolder: (_k = this.createDataFilesInKBFolderEl) === null || _k === void 0 ? void 0 : _k.checked,
|
|
140
|
+
authenticationType: (_l = this.authenticationTypeEl) === null || _l === void 0 ? void 0 : _l.value,
|
|
141
|
+
userName: (_m = this.userNameEl) === null || _m === void 0 ? void 0 : _m.value,
|
|
142
|
+
password: (_o = this.passwordEl) === null || _o === void 0 ? void 0 : _o.value,
|
|
143
|
+
savePassword: (_p = this.savePasswordEl) === null || _p === void 0 ? void 0 : _p.checked
|
|
145
144
|
});
|
|
146
145
|
createCallbackPromise.then(formSubmitResult => {
|
|
147
146
|
formSubmitValidation(formSubmitResult, this);
|
|
@@ -171,7 +170,6 @@ const GxIdeNewKb$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
|
171
170
|
this.userNameVisible = true;
|
|
172
171
|
this.passwordVisible = true;
|
|
173
172
|
this.savePasswordVisible = true;
|
|
174
|
-
this.hideTopBar = false;
|
|
175
173
|
this.dataSources = undefined;
|
|
176
174
|
this.frontEnds = undefined;
|
|
177
175
|
this.isAdvanced = false;
|
|
@@ -207,7 +205,7 @@ const GxIdeNewKb$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
|
207
205
|
* 11.RENDER() FUNCTION
|
|
208
206
|
********************************/
|
|
209
207
|
render() {
|
|
210
|
-
return (h(Host, { class: "gx-ide-component" },
|
|
208
|
+
return (h(Host, { class: "gx-ide-component" }, h("div", { class: "gx-ide-main-wrapper gx-ide-overflow" }, h("gx-ide-container", null, h("header", { class: {
|
|
211
209
|
"header": true,
|
|
212
210
|
"grid": true,
|
|
213
211
|
"header--is-advanced": this.isAdvanced
|
|
@@ -223,7 +221,6 @@ const GxIdeNewKb$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
|
223
221
|
get el() { return this; }
|
|
224
222
|
static get style() { return newKbCss; }
|
|
225
223
|
}, [1, "gx-ide-new-kb", {
|
|
226
|
-
"hideTopBar": [4, "hide-top-bar"],
|
|
227
224
|
"dataSources": [16],
|
|
228
225
|
"frontEnds": [16],
|
|
229
226
|
"isAdvanced": [4, "is-advanced"],
|
|
@@ -253,7 +250,7 @@ function defineCustomElement$1() {
|
|
|
253
250
|
if (typeof customElements === "undefined") {
|
|
254
251
|
return;
|
|
255
252
|
}
|
|
256
|
-
const components = ["gx-ide-new-kb", "ch-icon", "gx-ide-container", "
|
|
253
|
+
const components = ["gx-ide-new-kb", "ch-icon", "gx-ide-container", "gxg-button", "gxg-combo-box", "gxg-combo-box-item", "gxg-form-checkbox", "gxg-form-checkbox-group", "gxg-form-radio", "gxg-form-text", "gxg-icon", "gxg-label", "gxg-tab", "gxg-tab-bar", "gxg-tab-button", "gxg-tabs", "gxg-title", "gxg-tooltip"];
|
|
257
254
|
components.forEach(tagName => { switch (tagName) {
|
|
258
255
|
case "gx-ide-new-kb":
|
|
259
256
|
if (!customElements.get(tagName)) {
|
|
@@ -261,16 +258,11 @@ function defineCustomElement$1() {
|
|
|
261
258
|
}
|
|
262
259
|
break;
|
|
263
260
|
case "ch-icon":
|
|
264
|
-
if (!customElements.get(tagName)) {
|
|
265
|
-
defineCustomElement$j();
|
|
266
|
-
}
|
|
267
|
-
break;
|
|
268
|
-
case "gx-ide-container":
|
|
269
261
|
if (!customElements.get(tagName)) {
|
|
270
262
|
defineCustomElement$i();
|
|
271
263
|
}
|
|
272
264
|
break;
|
|
273
|
-
case "gx-ide-
|
|
265
|
+
case "gx-ide-container":
|
|
274
266
|
if (!customElements.get(tagName)) {
|
|
275
267
|
defineCustomElement$h();
|
|
276
268
|
}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
2
2
|
import { L as Locale } from './locale.js';
|
|
3
|
-
import { d as defineCustomElement$
|
|
4
|
-
import { d as defineCustomElement$
|
|
5
|
-
import { d as defineCustomElement$8 } from './top-bar.js';
|
|
3
|
+
import { d as defineCustomElement$9 } from './icon.js';
|
|
4
|
+
import { d as defineCustomElement$8 } from './container.js';
|
|
6
5
|
import { d as defineCustomElement$7 } from './button.js';
|
|
7
6
|
import { d as defineCustomElement$6 } from './form-text.js';
|
|
8
7
|
import { d as defineCustomElement$5 } from './icon2.js';
|
|
@@ -18,7 +17,7 @@ const GxIdeTemplate$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
|
|
|
18
17
|
this.__registerHost();
|
|
19
18
|
this.__attachShadow();
|
|
20
19
|
this.componentDidRenderEvent = createEvent(this, "componentDidRenderEvent", 7);
|
|
21
|
-
this.
|
|
20
|
+
this.mainTile = undefined;
|
|
22
21
|
}
|
|
23
22
|
// 6.COMPONENT LIFECYCLE METHODS //
|
|
24
23
|
async componentWillLoad() {
|
|
@@ -32,19 +31,19 @@ const GxIdeTemplate$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
|
|
|
32
31
|
// 9.LOCAL METHODS //
|
|
33
32
|
// 10.RENDER() FUNCTION //
|
|
34
33
|
render() {
|
|
35
|
-
return (h(Host, { class: "gx-ide-component" },
|
|
34
|
+
return (h(Host, { class: "gx-ide-component" }, h("div", { class: "gx-ide-main-wrapper gx-ide-overflow" }, h("gx-ide-container", { fullHeight: true, "container-title": "Header Title" }, h("p", null, "Lorem ipsum dolor sit amet consectetur adipisicing elit. Facilis natus nam, veritatis aspernatur consequatur omnis blanditiis! Praesentium, ex labore? Odit, officiis eius rerum pariatur ea dicta possimus perferendis molestiae sunt!q"), h("gxg-form-text", { label: "Name", placeholder: "Elon Musk", labelPosition: "start", centerLabel: true }), h("gxg-button", { slot: "footer" }, "Create")))));
|
|
36
35
|
}
|
|
37
36
|
static get assetsDirs() { return ["gx-ide-assets/template"]; }
|
|
38
37
|
get el() { return this; }
|
|
39
38
|
static get style() { return templateCss; }
|
|
40
39
|
}, [1, "gx-ide-template", {
|
|
41
|
-
"
|
|
40
|
+
"mainTile": [1, "main-tile"]
|
|
42
41
|
}]);
|
|
43
42
|
function defineCustomElement$1() {
|
|
44
43
|
if (typeof customElements === "undefined") {
|
|
45
44
|
return;
|
|
46
45
|
}
|
|
47
|
-
const components = ["gx-ide-template", "ch-icon", "gx-ide-container", "
|
|
46
|
+
const components = ["gx-ide-template", "ch-icon", "gx-ide-container", "gxg-button", "gxg-form-text", "gxg-icon", "gxg-label", "gxg-title", "gxg-tooltip"];
|
|
48
47
|
components.forEach(tagName => { switch (tagName) {
|
|
49
48
|
case "gx-ide-template":
|
|
50
49
|
if (!customElements.get(tagName)) {
|
|
@@ -52,16 +51,11 @@ function defineCustomElement$1() {
|
|
|
52
51
|
}
|
|
53
52
|
break;
|
|
54
53
|
case "ch-icon":
|
|
55
|
-
if (!customElements.get(tagName)) {
|
|
56
|
-
defineCustomElement$a();
|
|
57
|
-
}
|
|
58
|
-
break;
|
|
59
|
-
case "gx-ide-container":
|
|
60
54
|
if (!customElements.get(tagName)) {
|
|
61
55
|
defineCustomElement$9();
|
|
62
56
|
}
|
|
63
57
|
break;
|
|
64
|
-
case "gx-ide-
|
|
58
|
+
case "gx-ide-container":
|
|
65
59
|
if (!customElements.get(tagName)) {
|
|
66
60
|
defineCustomElement$8();
|
|
67
61
|
}
|
|
@@ -107,7 +107,7 @@ const GxgMenu$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
107
107
|
this.removeMouseEnter = () => {
|
|
108
108
|
this.el.removeEventListener("mouseenter", this.detectMouseEnter);
|
|
109
109
|
};
|
|
110
|
-
this.detectMouseEnter = (
|
|
110
|
+
this.detectMouseEnter = () => {
|
|
111
111
|
//Mouse enter
|
|
112
112
|
this.clearMouseOutTimeout();
|
|
113
113
|
};
|
|
@@ -185,7 +185,7 @@ const GxgMenu$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
185
185
|
}
|
|
186
186
|
keyboardNavigationHandler(triggeredItem) {
|
|
187
187
|
const triggeringItem = triggeredItem.detail.ref;
|
|
188
|
-
const triggeringItemIndex = this._enabledItems.findIndex((item
|
|
188
|
+
const triggeringItemIndex = this._enabledItems.findIndex((item) => {
|
|
189
189
|
return item === triggeringItem;
|
|
190
190
|
});
|
|
191
191
|
let newFocusedItem;
|
|
@@ -35,7 +35,7 @@ const renderTreeItem = (item) => {
|
|
|
35
35
|
const childrenLength = item.items ? item.items.length : 0;
|
|
36
36
|
const isLeaf = childrenLength === 0 || item.leaf ? true : false;
|
|
37
37
|
const lazy = !item.lazy ? false : true;
|
|
38
|
-
return (h("gxg-tree-item", { checkbox: item.checkbox, checked: item.checked, description: item.description, disabled: item.disabled, icon: item.icon, indeterminate: item.indeterminate, id: item.id,
|
|
38
|
+
return (h("gxg-tree-item", { checkbox: item.checkbox, checked: item.checked, description: item.description, disabled: item.disabled, icon: item.icon, indeterminate: item.indeterminate, id: item.id, label: item.label, leaf: isLeaf && !lazy, numberOfChildren: childrenLength, opened: item.opened, selected: item.selected }, [item.label, ((_a = item.items) === null || _a === void 0 ? void 0 : _a.length) && renderTreeItems(item.items, false)]));
|
|
39
39
|
};
|
|
40
40
|
|
|
41
41
|
const testCss = ".tree-buttons{margin-top:16px;display:flex;gap:8px;flex-wrap:wrap}";
|
|
@@ -75,27 +75,8 @@ const GxgTest$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
75
75
|
this.deleteNodeHandler = () => {
|
|
76
76
|
this.treeItemsModel = [];
|
|
77
77
|
};
|
|
78
|
-
this.getIconState = (state) => {
|
|
79
|
-
let icon = h("gxg-icon", { type: "gx-server/private" });
|
|
80
|
-
switch (state) {
|
|
81
|
-
case "inserted":
|
|
82
|
-
icon = h("gxg-icon", { type: "gx-server/new", color: "success" });
|
|
83
|
-
break;
|
|
84
|
-
case "modified":
|
|
85
|
-
icon = (h("gxg-icon", { type: "gx-server/changes-commit-pending", color: "primary-active" }));
|
|
86
|
-
break;
|
|
87
|
-
case "deleted":
|
|
88
|
-
icon = h("gxg-icon", { type: "gx-server/delete", color: "error" });
|
|
89
|
-
break;
|
|
90
|
-
case "conflicted":
|
|
91
|
-
icon = h("gxg-icon", { type: "gx-server/conflict", color: "warning" });
|
|
92
|
-
break;
|
|
93
|
-
}
|
|
94
|
-
return icon;
|
|
95
|
-
};
|
|
96
78
|
}
|
|
97
79
|
toggleIconClickedHandler(e) {
|
|
98
|
-
console.log("hola");
|
|
99
80
|
const treeItemId = e.detail.id;
|
|
100
81
|
const isLazy = e.detail.lazy;
|
|
101
82
|
if (this.lazyLoadTreeItemsCallback && isLazy) {
|
|
@@ -118,9 +99,9 @@ const GxgTest$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
118
99
|
];
|
|
119
100
|
}
|
|
120
101
|
else if (this.showGrid) {
|
|
121
|
-
return (h("gxg-grid", null, h("ch-grid", { "row-selection-mode": "
|
|
122
|
-
h("ch-grid-row", { rowid: "123" }, h("ch-grid-cell", {
|
|
123
|
-
h("ch-grid-rowset", null, h("ch-grid-rowset-legend", null, "Identidad"), h("ch-grid-row",
|
|
102
|
+
return (h("gxg-grid", null, h("ch-grid", { "row-selection-mode": "multiple", part: "ch-grid-pending-for-updates", class: "no-border" }, h("ch-grid-columnset", null, h("ch-grid-column", { settingable: false, sortable: false, "column-type": "rich", "rich-row-selector": true, "rich-row-selector-mode": "mark" }), h("ch-grid-column", { "column-name": "name", "column-name-position": "text", settingable: false }), h("ch-grid-column", { "column-name": "productos", "column-name-position": "text", settingable: false })), this.showGridData && [
|
|
103
|
+
h("ch-grid-row", { rowid: "123" }, h("ch-grid-cell", { "cell-type": "rich", "row-selector": true }), h("ch-grid-cell", null, "Nombre"), h("ch-grid-cell", null, "Productos")),
|
|
104
|
+
h("ch-grid-rowset", null, h("ch-grid-rowset-legend", null, "Identidad"), h("ch-grid-row", null, h("ch-grid-cell", { "cell-type": "rich", "row-selector": true }), h("ch-grid-cell", null, "Nombre"), h("ch-grid-cell", null, "Productos")), h("ch-grid-row", null, h("ch-grid-cell", { "cell-type": "rich", "row-selector": true }), h("ch-grid-cell", null, "English"), h("ch-grid-cell", null, "Products")), h("ch-grid-row", null, h("ch-grid-cell", { "cell-type": "rich", "row-selector": true }), h("ch-grid-cell", null, "Portugu\u00EAs"), h("ch-grid-cell", null, "Produtos"))),
|
|
124
105
|
])));
|
|
125
106
|
}
|
|
126
107
|
else {
|