@genexus/genexus-ide-ui 0.0.16 → 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.
Files changed (54) hide show
  1. package/dist/cjs/ch-grid_7.cjs.entry.js +73 -27
  2. package/dist/cjs/genexus-ide-ui.cjs.js +1 -1
  3. package/dist/cjs/{gx-ide-container_2.cjs.entry.js → gx-ide-container.cjs.entry.js} +0 -31
  4. package/dist/cjs/gx-ide-new-kb.cjs.entry.js +16 -17
  5. package/dist/cjs/gx-ide-template.cjs.entry.js +2 -2
  6. package/dist/cjs/gx-ide-top-bar.cjs.entry.js +37 -0
  7. package/dist/cjs/gxg-combo-box_8.cjs.entry.js +3 -8
  8. package/dist/cjs/gxg-menu.cjs.entry.js +2 -2
  9. package/dist/cjs/gxg-test.cjs.entry.js +4 -23
  10. package/dist/cjs/gxg-tree_2.cjs.entry.js +386 -281
  11. package/dist/cjs/loader.cjs.js +1 -1
  12. package/dist/collection/components/_template/template.js +9 -10
  13. package/dist/collection/components/new-kb/new-kb.js +16 -35
  14. package/dist/components/ch-grid2.js +74 -28
  15. package/dist/components/combo-box.js +4 -3
  16. package/dist/components/form-radio.js +0 -5
  17. package/dist/components/gx-ide-new-kb.js +20 -28
  18. package/dist/components/gx-ide-template.js +7 -13
  19. package/dist/components/gxg-menu.js +2 -2
  20. package/dist/components/gxg-test.js +4 -23
  21. package/dist/components/gxg-tree-item2.js +344 -277
  22. package/dist/components/gxg-tree2.js +47 -8
  23. package/dist/esm/ch-grid_7.entry.js +73 -27
  24. package/dist/esm/genexus-ide-ui.js +1 -1
  25. package/dist/esm/{gx-ide-container_2.entry.js → gx-ide-container.entry.js} +1 -31
  26. package/dist/esm/gx-ide-new-kb.entry.js +16 -17
  27. package/dist/esm/gx-ide-template.entry.js +2 -2
  28. package/dist/esm/gx-ide-top-bar.entry.js +33 -0
  29. package/dist/esm/gxg-combo-box_8.entry.js +3 -8
  30. package/dist/esm/gxg-menu.entry.js +2 -2
  31. package/dist/esm/gxg-test.entry.js +4 -23
  32. package/dist/esm/gxg-tree_2.entry.js +387 -282
  33. package/dist/esm/loader.js +1 -1
  34. package/dist/genexus-ide-ui/genexus-ide-ui.css +1 -1
  35. package/dist/genexus-ide-ui/genexus-ide-ui.esm.js +1 -1
  36. package/dist/genexus-ide-ui/p-1042318d.entry.js +1 -0
  37. package/dist/genexus-ide-ui/p-1d4cf2ae.entry.js +1 -0
  38. package/dist/genexus-ide-ui/p-48482e25.entry.js +1 -0
  39. package/dist/genexus-ide-ui/p-49433b58.entry.js +1 -0
  40. package/dist/genexus-ide-ui/p-79cf24a3.entry.js +1 -0
  41. package/dist/genexus-ide-ui/p-c5c6e102.entry.js +1 -0
  42. package/dist/genexus-ide-ui/p-cd503583.entry.js +1 -0
  43. package/dist/genexus-ide-ui/{p-1e412d88.entry.js → p-fcc98e20.entry.js} +1 -1
  44. package/dist/node_modules/@genexus/gemini/dist/collection/components/tree-item/gxg-tree-item.css +2 -2
  45. package/dist/types/components/_template/template.d.ts +2 -2
  46. package/dist/types/components/new-kb/new-kb.d.ts +0 -4
  47. package/dist/types/components.d.ts +4 -12
  48. package/package.json +3 -3
  49. package/dist/genexus-ide-ui/p-0f5d0ccc.entry.js +0 -1
  50. package/dist/genexus-ide-ui/p-2761a056.entry.js +0 -1
  51. package/dist/genexus-ide-ui/p-62814082.entry.js +0 -1
  52. package/dist/genexus-ide-ui/p-97430828.entry.js +0 -1
  53. package/dist/genexus-ide-ui/p-9e32e006.entry.js +0 -1
  54. package/dist/genexus-ide-ui/p-eb8e9655.entry.js +0 -1
@@ -104,24 +104,24 @@ const GxIdeNewKb = class {
104
104
  return gxOptions;
105
105
  };
106
106
  this.createKbHandler = () => {
107
- var _a, _b, _c;
107
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
108
108
  if (this.createCallback) {
109
109
  const createCallbackPromise = this.createCallback({
110
- kbName: this.kbNameEl.value,
111
- kbLocation: this.locationEl.value,
112
- prototypingTarget: this.prototypingTargetEl.value,
113
- userInterfaceLanguage: this.userInterfaceLanguageEl.value,
114
- prototypingEnvironment: this.prototypingEnvironmentEl.value,
115
- dataSource: this.dataSourceEl.value,
110
+ kbName: (_a = this.kbNameEl) === null || _a === void 0 ? void 0 : _a.value,
111
+ kbLocation: (_b = this.locationEl) === null || _b === void 0 ? void 0 : _b.value,
112
+ prototypingTarget: (_c = this.prototypingTargetEl) === null || _c === void 0 ? void 0 : _c.value,
113
+ userInterfaceLanguage: (_d = this.userInterfaceLanguageEl) === null || _d === void 0 ? void 0 : _d.value,
114
+ prototypingEnvironment: (_e = this.prototypingEnvironmentEl) === null || _e === void 0 ? void 0 : _e.value,
115
+ dataSource: (_f = this.dataSourceEl) === null || _f === void 0 ? void 0 : _f.value,
116
116
  frontEnds: this.getFrontEndOptionsValues(),
117
- serverName: this.serverNameEl.value,
118
- databaseName: this.databaseNameEl.value,
119
- collation: this.collationEl.value,
120
- createDataFilesInKBFolder: this.createDataFilesInKBFolderEl.checked,
121
- authenticationType: this.authenticationTypeEl.value,
122
- userName: (_a = this.userNameEl) === null || _a === void 0 ? void 0 : _a.value,
123
- password: (_b = this.passwordEl) === null || _b === void 0 ? void 0 : _b.value,
124
- savePassword: (_c = this.savePasswordEl) === null || _c === void 0 ? void 0 : _c.checked
117
+ serverName: (_g = this.serverNameEl) === null || _g === void 0 ? void 0 : _g.value,
118
+ databaseName: (_h = this.databaseNameEl) === null || _h === void 0 ? void 0 : _h.value,
119
+ collation: (_j = this.collationEl) === null || _j === void 0 ? void 0 : _j.value,
120
+ createDataFilesInKBFolder: (_k = this.createDataFilesInKBFolderEl) === null || _k === void 0 ? void 0 : _k.checked,
121
+ authenticationType: (_l = this.authenticationTypeEl) === null || _l === void 0 ? void 0 : _l.value,
122
+ userName: (_m = this.userNameEl) === null || _m === void 0 ? void 0 : _m.value,
123
+ password: (_o = this.passwordEl) === null || _o === void 0 ? void 0 : _o.value,
124
+ savePassword: (_p = this.savePasswordEl) === null || _p === void 0 ? void 0 : _p.checked
125
125
  });
126
126
  createCallbackPromise.then(formSubmitResult => {
127
127
  formSubmitValidation(formSubmitResult, this);
@@ -151,7 +151,6 @@ const GxIdeNewKb = class {
151
151
  this.userNameVisible = true;
152
152
  this.passwordVisible = true;
153
153
  this.savePasswordVisible = true;
154
- this.hideTopBar = false;
155
154
  this.dataSources = undefined;
156
155
  this.frontEnds = undefined;
157
156
  this.isAdvanced = false;
@@ -187,7 +186,7 @@ const GxIdeNewKb = class {
187
186
  * 11.RENDER() FUNCTION
188
187
  ********************************/
189
188
  render() {
190
- return (h(Host, { class: "gx-ide-component" }, !this.hideTopBar ? (h("gx-ide-top-bar", { topBarTitle: this._componentLocale.componentName })) : null, h("div", { class: "gx-ide-main-wrapper gx-ide-overflow" }, h("gx-ide-container", null, h("header", { class: {
189
+ 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: {
191
190
  "header": true,
192
191
  "grid": true,
193
192
  "header--is-advanced": this.isAdvanced
@@ -7,7 +7,7 @@ const GxIdeTemplate = class {
7
7
  constructor(hostRef) {
8
8
  registerInstance(this, hostRef);
9
9
  this.componentDidRenderEvent = createEvent(this, "componentDidRenderEvent", 7);
10
- this.hideTopBar = false;
10
+ this.mainTile = undefined;
11
11
  }
12
12
  // 6.COMPONENT LIFECYCLE METHODS //
13
13
  async componentWillLoad() {
@@ -21,7 +21,7 @@ const GxIdeTemplate = class {
21
21
  // 9.LOCAL METHODS //
22
22
  // 10.RENDER() FUNCTION //
23
23
  render() {
24
- return (h(Host, { class: "gx-ide-component" }, !this.hideTopBar ? (h("gx-ide-top-bar", { topBarTitle: this._componentLocale.componentName })) : null, 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")))));
24
+ 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")))));
25
25
  }
26
26
  static get assetsDirs() { return ["gx-ide-assets/template"]; }
27
27
  get el() { return getElement(this); }
@@ -0,0 +1,33 @@
1
+ import { r as registerInstance, h, H as Host, g as getElement } from './index-4f0a5746.js';
2
+
3
+ const topBarCss = ":host{display:block;box-sizing:border-box}.wrapper{display:flex;justify-content:space-between;padding:var(--spacing-comp-01) var(--spacing-comp-02);transition:background-color var(--gx-ide-timing-super-fast-ms);background-color:var(--gray-01)}gxg-title::part(title){color:var(--color-on-secondary);transition:color var(--gx-ide-timing-super-fast-ms)}";
4
+
5
+ const GxIdeTopBar = class {
6
+ constructor(hostRef) {
7
+ registerInstance(this, hostRef);
8
+ this.topBarTitle = undefined;
9
+ }
10
+ // 5.EVENTS (EMIT) //
11
+ // 6.METHODS //
12
+ componentWillLoad() {
13
+ this.evaluateSlots();
14
+ }
15
+ // 7.LISTENERS //
16
+ // 8.PUBLIC METHODS API //
17
+ // 9.LOCAL METHODS //
18
+ evaluateSlots() {
19
+ // header
20
+ const menuSlot = this.el.querySelectorAll('[slot="menu"]');
21
+ if (menuSlot.length) {
22
+ this._hasMenuSlot = true;
23
+ }
24
+ }
25
+ // 10.RENDER() FUNCTION //
26
+ render() {
27
+ return (h(Host, null, h("div", { class: "wrapper", part: "wrapper" }, h("div", { class: "wrapper__left", part: "wrapper-left" }, h("gxg-title", { type: "title-04", exportparts: "title: gxg-title" }, this.topBarTitle)), h("div", { class: "wrapper__right", part: "wrapper-right" }, this._hasMenuSlot ? (h("gxg-button", { type: "secondary-icon-only", icon: "gemini-tools/show-more-vertical" }, h("slot", { name: "menu" }))) : null))));
28
+ }
29
+ get el() { return getElement(this); }
30
+ };
31
+ GxIdeTopBar.style = topBarCss;
32
+
33
+ export { GxIdeTopBar as gx_ide_top_bar };
@@ -7,7 +7,7 @@ import { s as state } from './store-75f5d491.js';
7
7
  import { c as commonClassesNames, f as formClasses } from './classesNames-6cd8fadb.js';
8
8
 
9
9
  function mutationObserverRemoved(target, ref) {
10
- const observer = new MutationObserver((mutationsList, observer) => {
10
+ const observer = new MutationObserver((mutationsList) => {
11
11
  for (const mutation of mutationsList) {
12
12
  if (mutation.type === "childList") {
13
13
  const removedNodesArray = Array.from(mutation.removedNodes);
@@ -439,7 +439,7 @@ const GxgComboBox = class {
439
439
  this.value = event.detail.value;
440
440
  this.inputText.focus();
441
441
  }
442
- itemDidLoadHandler(itemLoaded) {
442
+ itemDidLoadHandler() {
443
443
  this.setIndexes();
444
444
  this.setInitialValue();
445
445
  }
@@ -592,7 +592,7 @@ const GxgComboBox = class {
592
592
  large: state.large,
593
593
  }, style: { maxWidth: this.maxWidth, minWidth: this.minWidth }, exportParts: this.exportparts ? this.exportparts : null }, h("div", { class: {
594
594
  "main-container": true,
595
- }, 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: {
595
+ }, 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: {
596
596
  "items-container": true,
597
597
  "items-container--show": this.listIsOpen,
598
598
  "items-container--no-match": this.noMatch,
@@ -799,11 +799,6 @@ const GxgFormRadio = class {
799
799
  /*********************************
800
800
  METHODS
801
801
  *********************************/
802
- componentDidLoad() {
803
- this.radioInput.addEventListener("change", (e) => {
804
- console.log("changed", e);
805
- });
806
- }
807
802
  checkedHandler(newValue) {
808
803
  if (newValue) {
809
804
  this.radioChecked.emit({
@@ -105,7 +105,7 @@ const GxgMenu = class {
105
105
  this.removeMouseEnter = () => {
106
106
  this.el.removeEventListener("mouseenter", this.detectMouseEnter);
107
107
  };
108
- this.detectMouseEnter = (e) => {
108
+ this.detectMouseEnter = () => {
109
109
  //Mouse enter
110
110
  this.clearMouseOutTimeout();
111
111
  };
@@ -183,7 +183,7 @@ const GxgMenu = class {
183
183
  }
184
184
  keyboardNavigationHandler(triggeredItem) {
185
185
  const triggeringItem = triggeredItem.detail.ref;
186
- const triggeringItemIndex = this._enabledItems.findIndex((item, i) => {
186
+ const triggeringItemIndex = this._enabledItems.findIndex((item) => {
187
187
  return item === triggeringItem;
188
188
  });
189
189
  let newFocusedItem;
@@ -20,7 +20,7 @@ const renderTreeItem = (item) => {
20
20
  const childrenLength = item.items ? item.items.length : 0;
21
21
  const isLeaf = childrenLength === 0 || item.leaf ? true : false;
22
22
  const lazy = !item.lazy ? false : true;
23
- 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, key: `tree-item-${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)]));
23
+ 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)]));
24
24
  };
25
25
 
26
26
  const testCss = ".tree-buttons{margin-top:16px;display:flex;gap:8px;flex-wrap:wrap}";
@@ -58,27 +58,8 @@ const GxgTest = class {
58
58
  this.deleteNodeHandler = () => {
59
59
  this.treeItemsModel = [];
60
60
  };
61
- this.getIconState = (state) => {
62
- let icon = h("gxg-icon", { type: "gx-server/private" });
63
- switch (state) {
64
- case "inserted":
65
- icon = h("gxg-icon", { type: "gx-server/new", color: "success" });
66
- break;
67
- case "modified":
68
- icon = (h("gxg-icon", { type: "gx-server/changes-commit-pending", color: "primary-active" }));
69
- break;
70
- case "deleted":
71
- icon = h("gxg-icon", { type: "gx-server/delete", color: "error" });
72
- break;
73
- case "conflicted":
74
- icon = h("gxg-icon", { type: "gx-server/conflict", color: "warning" });
75
- break;
76
- }
77
- return icon;
78
- };
79
61
  }
80
62
  toggleIconClickedHandler(e) {
81
- console.log("hola");
82
63
  const treeItemId = e.detail.id;
83
64
  const isLazy = e.detail.lazy;
84
65
  if (this.lazyLoadTreeItemsCallback && isLazy) {
@@ -101,9 +82,9 @@ const GxgTest = class {
101
82
  ];
102
83
  }
103
84
  else if (this.showGrid) {
104
- return (h("gxg-grid", null, h("ch-grid", { "row-selection-mode": "none", 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 && [
105
- h("ch-grid-row", { rowid: "123" }, h("ch-grid-cell", { ref: (el) => (el.type = "rich") }), h("ch-grid-cell", null, "Nombre"), h("ch-grid-cell", null, "Productos")),
106
- h("ch-grid-rowset", null, h("ch-grid-rowset-legend", null, "Identidad"), h("ch-grid-row", { rowSelector: true }, h("ch-grid-cell", { rowSelector: true }), h("ch-grid-cell", null, "Nombre"), h("ch-grid-cell", null, "Productos")), h("ch-grid-row", null, h("ch-grid-cell", null), h("ch-grid-cell", null, "English"), h("ch-grid-cell", null, "Products")), h("ch-grid-row", null, h("ch-grid-cell", null), h("ch-grid-cell", null, "Portugu\u00EAs"), h("ch-grid-cell", null, "Produtos"))),
85
+ 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 && [
86
+ 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")),
87
+ 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"))),
107
88
  ])));
108
89
  }
109
90
  else {