@genexus/genexus-ide-ui 0.0.41 → 0.0.43
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-icon.cjs.entry.js +116 -0
- package/dist/cjs/{form-validation-f8e709d0.js → common-facb7f18.js} +0 -19
- package/dist/cjs/constants-e63c0ad9.js +10 -0
- package/dist/cjs/form-validation-b7fb4ca8.js +21 -0
- package/dist/cjs/genexus-ide-ui.cjs.js +1 -1
- package/dist/cjs/gx-ide-create-kb-from-server.cjs.entry.js +4 -3
- package/dist/cjs/{gxg-date-picker.cjs.entry.js → gx-ide-entity-selector_2.cjs.entry.js} +81 -0
- package/dist/cjs/gx-ide-new-environment.cjs.entry.js +3 -2
- package/dist/cjs/gx-ide-new-kb.cjs.entry.js +6 -5
- package/dist/cjs/gx-ide-object-selector.cjs.entry.js +30 -24
- package/dist/cjs/gx-ide-ww-images.cjs.entry.js +230 -0
- package/dist/cjs/{gxg-button.cjs.entry.js → gxg-button_2.cjs.entry.js} +61 -0
- package/dist/cjs/gxg-combo-box_2.cjs.entry.js +705 -0
- package/dist/cjs/{gxg-combo-box_6.cjs.entry.js → gxg-tab_4.cjs.entry.js} +1 -698
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/common/constants.js +6 -0
- package/dist/collection/components/object-selector/gx-ide-assets/object-selector/langs/object-selector.lang.en.json +1 -1
- package/dist/collection/components/object-selector/object-selector.js +33 -26
- package/dist/collection/components/ww-images/gx-ide-assets/ww-images/langs/ww-images.lang.en.json +47 -0
- package/dist/collection/components/ww-images/gx-ide-assets/ww-images/langs/ww-images.lang.ja.json +3 -0
- package/dist/collection/components/ww-images/gx-ide-assets/ww-images/langs/ww-images.lang.zh.json +3 -0
- package/dist/collection/components/ww-images/ww-images.css +229 -0
- package/dist/collection/components/ww-images/ww-images.js +674 -0
- package/dist/collection/pages/assets/common.js +20 -0
- package/dist/components/common.js +46 -0
- package/dist/components/constants.js +8 -0
- package/dist/components/form-validation.js +1 -46
- package/dist/components/gx-ide-create-kb-from-server.js +2 -1
- package/dist/components/gx-ide-new-environment.js +2 -1
- package/dist/components/gx-ide-new-kb.js +2 -1
- package/dist/components/gx-ide-object-selector.js +30 -24
- package/dist/components/gx-ide-ww-images.d.ts +11 -0
- package/dist/components/gx-ide-ww-images.js +422 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +1 -0
- package/dist/esm/ch-icon.entry.js +112 -0
- package/dist/esm/{form-validation-cdb16431.js → common-a3df0966.js} +1 -19
- package/dist/esm/constants-7882d1a8.js +8 -0
- package/dist/esm/form-validation-09bd4504.js +19 -0
- package/dist/esm/genexus-ide-ui.js +1 -1
- package/dist/esm/gx-ide-create-kb-from-server.entry.js +2 -1
- package/dist/esm/{gxg-date-picker.entry.js → gx-ide-entity-selector_2.entry.js} +81 -1
- package/dist/esm/gx-ide-new-environment.entry.js +2 -1
- package/dist/esm/gx-ide-new-kb.entry.js +2 -1
- package/dist/esm/gx-ide-object-selector.entry.js +30 -24
- package/dist/esm/gx-ide-ww-images.entry.js +226 -0
- package/dist/esm/{gxg-button.entry.js → gxg-button_2.entry.js} +62 -2
- package/dist/esm/gxg-combo-box_2.entry.js +700 -0
- package/dist/esm/{gxg-combo-box_6.entry.js → gxg-tab_4.entry.js} +3 -698
- 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/object-selector/langs/object-selector.lang.en.json +1 -1
- package/dist/genexus-ide-ui/gx-ide-assets/ww-images/langs/ww-images.lang.en.json +47 -0
- package/dist/genexus-ide-ui/gx-ide-assets/ww-images/langs/ww-images.lang.ja.json +3 -0
- package/dist/genexus-ide-ui/gx-ide-assets/ww-images/langs/ww-images.lang.zh.json +3 -0
- package/dist/genexus-ide-ui/p-07e89cdd.entry.js +1 -0
- package/dist/genexus-ide-ui/p-35fc1102.entry.js +1 -0
- package/dist/genexus-ide-ui/p-44964acf.js +1 -0
- package/dist/genexus-ide-ui/p-4b7f7425.entry.js +1 -0
- package/dist/genexus-ide-ui/p-4d39c34a.entry.js +1 -0
- package/dist/genexus-ide-ui/p-5ad757f4.entry.js +1 -0
- package/dist/genexus-ide-ui/p-6010dc9d.js +1 -0
- package/dist/genexus-ide-ui/p-7a83018d.entry.js +1 -0
- package/dist/genexus-ide-ui/p-7a90def4.entry.js +1 -0
- package/dist/genexus-ide-ui/p-8bf7f0e1.entry.js +1 -0
- package/dist/genexus-ide-ui/p-a89c699c.entry.js +1 -0
- package/dist/genexus-ide-ui/p-daf4eb69.js +1 -0
- package/dist/genexus-ide-ui/p-fcdcb919.entry.js +1 -0
- package/dist/types/common/constants.d.ts +6 -0
- package/dist/types/components/object-selector/object-selector.d.ts +5 -7
- package/dist/types/components/ww-images/ww-images.d.ts +190 -0
- package/dist/types/components.d.ts +184 -2
- package/package.json +1 -1
- package/dist/cjs/ch-icon_2.cjs.entry.js +0 -177
- package/dist/cjs/gx-ide-entity-selector.cjs.entry.js +0 -87
- package/dist/esm/ch-icon_2.entry.js +0 -172
- package/dist/esm/gx-ide-entity-selector.entry.js +0 -83
- package/dist/genexus-ide-ui/p-2ebd392f.entry.js +0 -1
- package/dist/genexus-ide-ui/p-34721f1c.entry.js +0 -1
- package/dist/genexus-ide-ui/p-5c560dd0.entry.js +0 -1
- package/dist/genexus-ide-ui/p-a708db45.entry.js +0 -1
- package/dist/genexus-ide-ui/p-c304345f.entry.js +0 -1
- package/dist/genexus-ide-ui/p-c38c6957.entry.js +0 -1
- package/dist/genexus-ide-ui/p-cf41f154.entry.js +0 -1
- package/dist/genexus-ide-ui/p-db945a17.js +0 -1
- package/dist/genexus-ide-ui/p-e1fea866.entry.js +0 -1
- package/dist/genexus-ide-ui/p-f9731b7c.entry.js +0 -1
|
@@ -175,6 +175,26 @@ if (responsiveMobileBtn && responsiveTabletBtn && responsiveDesktopBtn) {
|
|
|
175
175
|
});
|
|
176
176
|
}
|
|
177
177
|
|
|
178
|
+
let logNumber = 1;
|
|
179
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
180
|
+
const appendConsoleLog = log => {
|
|
181
|
+
const codeWrapper = document.getElementById("code-wrapper");
|
|
182
|
+
if (codeWrapper) {
|
|
183
|
+
const logNumberEl = document.createElement("span");
|
|
184
|
+
logNumberEl.classList.add("log-number");
|
|
185
|
+
logNumberEl.innerText = logNumber;
|
|
186
|
+
logNumber++;
|
|
187
|
+
const pre = document.createElement("pre");
|
|
188
|
+
const code = document.createElement("code");
|
|
189
|
+
code.classList.add("gx-console", "language-javascript");
|
|
190
|
+
code.textContent = log;
|
|
191
|
+
pre.appendChild(logNumberEl);
|
|
192
|
+
pre.appendChild(code);
|
|
193
|
+
codeWrapper.insertBefore(pre, codeWrapper.children[0]);
|
|
194
|
+
Prism.highlightElement(code);
|
|
195
|
+
}
|
|
196
|
+
};
|
|
197
|
+
|
|
178
198
|
/* Toggle height button */
|
|
179
199
|
/* Set initial height*/
|
|
180
200
|
if (gxIdeComponent) {
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { h } from '@stencil/core/internal/client';
|
|
2
|
+
|
|
3
|
+
/* STENCIL IMPORTS */
|
|
4
|
+
const renderFormItems = (componentType = "gxg-combo-box-item", options, group = "undefined-group", callback) => {
|
|
5
|
+
if (options.length) {
|
|
6
|
+
const items = [];
|
|
7
|
+
options.forEach(option => {
|
|
8
|
+
let item;
|
|
9
|
+
switch (componentType) {
|
|
10
|
+
case "gxg-form-checkbox":
|
|
11
|
+
item = (h("gxg-form-checkbox", { checkboxId: option.id, checked: option.checked, disabled: option.disabled, label: option.label, value: option.value, onChange: callback ? callback : null, iconName: option.iconName, part: `${group}-${option.id}` }));
|
|
12
|
+
items.push(item);
|
|
13
|
+
break;
|
|
14
|
+
case "gxg-combo-box-item":
|
|
15
|
+
item = (h("gxg-combo-box-item", { value: option.id, icon: option.iconName, part: `${group}-${option.id}` }, option.label));
|
|
16
|
+
items.push(item);
|
|
17
|
+
break;
|
|
18
|
+
case "gxg-form-radio":
|
|
19
|
+
item = (h("gxg-form-radio", { "radio-id": option.id, checked: option.checked, disabled: option.disabled, label: option.label, value: option.value, name: group, part: `${group}-${option.id}` }));
|
|
20
|
+
items.push(item);
|
|
21
|
+
break;
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
return items;
|
|
25
|
+
}
|
|
26
|
+
return null;
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @param gxOptions An array of GxOptions's
|
|
31
|
+
* @returns The first option in the array that is 'selected'. If no one found it returns null.
|
|
32
|
+
*/
|
|
33
|
+
const getSelectedGxOption = (gxOptions) => {
|
|
34
|
+
let found;
|
|
35
|
+
if (gxOptions === null || gxOptions === void 0 ? void 0 : gxOptions.length) {
|
|
36
|
+
for (let i = 0; i < gxOptions.length; i++) {
|
|
37
|
+
if (gxOptions[i].selected) {
|
|
38
|
+
found = gxOptions[i];
|
|
39
|
+
break;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
return found;
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
export { getSelectedGxOption as g, renderFormItems as r };
|
|
@@ -1,48 +1,3 @@
|
|
|
1
|
-
import { h } from '@stencil/core/internal/client';
|
|
2
|
-
|
|
3
|
-
/* STENCIL IMPORTS */
|
|
4
|
-
const renderFormItems = (componentType = "gxg-combo-box-item", options, group = "undefined-group", callback) => {
|
|
5
|
-
if (options.length) {
|
|
6
|
-
const items = [];
|
|
7
|
-
options.forEach(option => {
|
|
8
|
-
let item;
|
|
9
|
-
switch (componentType) {
|
|
10
|
-
case "gxg-form-checkbox":
|
|
11
|
-
item = (h("gxg-form-checkbox", { checkboxId: option.id, checked: option.checked, disabled: option.disabled, label: option.label, value: option.value, onChange: callback ? callback : null, iconName: option.iconName, part: `${group}-${option.id}` }));
|
|
12
|
-
items.push(item);
|
|
13
|
-
break;
|
|
14
|
-
case "gxg-combo-box-item":
|
|
15
|
-
item = (h("gxg-combo-box-item", { value: option.id, icon: option.iconName, part: `${group}-${option.id}` }, option.label));
|
|
16
|
-
items.push(item);
|
|
17
|
-
break;
|
|
18
|
-
case "gxg-form-radio":
|
|
19
|
-
item = (h("gxg-form-radio", { "radio-id": option.id, checked: option.checked, disabled: option.disabled, label: option.label, value: option.value, name: group, part: `${group}-${option.id}` }));
|
|
20
|
-
items.push(item);
|
|
21
|
-
break;
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
return items;
|
|
25
|
-
}
|
|
26
|
-
return null;
|
|
27
|
-
};
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* @param gxOptions An array of GxOptions's
|
|
31
|
-
* @returns The first option in the array that is 'selected'. If no one found it returns null.
|
|
32
|
-
*/
|
|
33
|
-
const getSelectedGxOption = (gxOptions) => {
|
|
34
|
-
let found;
|
|
35
|
-
if (gxOptions === null || gxOptions === void 0 ? void 0 : gxOptions.length) {
|
|
36
|
-
for (let i = 0; i < gxOptions.length; i++) {
|
|
37
|
-
if (gxOptions[i].selected) {
|
|
38
|
-
found = gxOptions[i];
|
|
39
|
-
break;
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
return found;
|
|
44
|
-
};
|
|
45
|
-
|
|
46
1
|
const formSubmitValidation = (result, ref) => {
|
|
47
2
|
var _a;
|
|
48
3
|
(_a = result.fieldErrors) === null || _a === void 0 ? void 0 : _a.forEach(element => {
|
|
@@ -61,4 +16,4 @@ const formSubmitValidation = (result, ref) => {
|
|
|
61
16
|
});
|
|
62
17
|
};
|
|
63
18
|
|
|
64
|
-
export { formSubmitValidation as f
|
|
19
|
+
export { formSubmitValidation as f };
|
|
@@ -1,6 +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 {
|
|
3
|
+
import { r as renderFormItems } from './common.js';
|
|
4
|
+
import { f as formSubmitValidation } from './form-validation.js';
|
|
4
5
|
import { d as defineCustomElement$f } from './icon.js';
|
|
5
6
|
import { d as defineCustomElement$e } from './button.js';
|
|
6
7
|
import { d as defineCustomElement$d } from './combo-box.js';
|
|
@@ -1,6 +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 {
|
|
3
|
+
import { r as renderFormItems } from './common.js';
|
|
4
|
+
import { f as formSubmitValidation } from './form-validation.js';
|
|
4
5
|
import { d as defineCustomElement$k } from './icon.js';
|
|
5
6
|
import { d as defineCustomElement$j } from './container.js';
|
|
6
7
|
import { d as defineCustomElement$i } from './top-bar.js';
|
|
@@ -1,6 +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 {
|
|
3
|
+
import { r as renderFormItems, g as getSelectedGxOption } from './common.js';
|
|
4
|
+
import { f as formSubmitValidation } from './form-validation.js';
|
|
4
5
|
import { d as defineCustomElement$i } from './icon.js';
|
|
5
6
|
import { d as defineCustomElement$h } from './container.js';
|
|
6
7
|
import { d as defineCustomElement$g } from './button.js';
|
|
@@ -1,6 +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
3
|
import { r as renderComboItems } from './render-combo-items.js';
|
|
4
|
+
import { F as FILTER_AFTER } from './constants.js';
|
|
4
5
|
import { d as defineCustomElement$p } from './ch-grid2.js';
|
|
5
6
|
import { d as defineCustomElement$o } from './ch-grid-column2.js';
|
|
6
7
|
import { d as defineCustomElement$n } from './ch-grid-column-resize2.js';
|
|
@@ -67,10 +68,6 @@ const gridCommon = {
|
|
|
67
68
|
|
|
68
69
|
const objectSelectorCss = ".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}ch-grid-cell{display:flex}: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)}.filter-grid{grid-template-columns:repeat(2, 1fr)}.filter-grid *:nth-child(5){grid-area:3/1/4/3}.flex{display:flex;flex-direction:row;align-items:center}.with-gap{gap:var(--gx-ide-grid-row-gap)}.hide{display:none}.objects-count{grid-template-columns:repeat(2, 1fr)}.objects-count *:nth-child(2){justify-content:flex-end;align-items:flex-start}.actions{grid-template-columns:repeat(2, 1fr)}.actions>*{display:flex;flex-direction:row;gap:var(--gx-ide-grid-row-gap)}.actions>*:nth-child(2){justify-content:flex-end}";
|
|
69
70
|
|
|
70
|
-
const FILTER_AFTER_NONE = "none";
|
|
71
|
-
const FILTER_AFTER_DATE_TIME = "afterDateTime";
|
|
72
|
-
const FILTER_AFTER_LAST_BUILD = "afterLastBuild";
|
|
73
|
-
const FILTER_AFTER_IMPORT = "afterImport";
|
|
74
71
|
const GxIdeObjectSelector$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
75
72
|
constructor() {
|
|
76
73
|
super();
|
|
@@ -82,33 +79,33 @@ const GxIdeObjectSelector$1 = /*@__PURE__*/ proxyCustomElement(class extends HTM
|
|
|
82
79
|
var _a, _b;
|
|
83
80
|
return (h("gxg-container", { fieldset: true, displayBorderBottom: true, containerTitle: this._componentLocale.filter.title, part: "filters-container" }, h("div", { class: "grid filter-grid" }, h("gxg-form-text", { "label-position": "above", label: this._componentLocale.filter.pattern, ref: (el) => (this.filterPatternEl = el), value: this.patternValue, part: "filter-pattern" }), h("gxg-combo-box", { "disable-filter": true, label: this._componentLocale.filter.type, value: this.defaultType, disabled: !this.types, "display-validation-styles": true, "display-validation-message": true, ref: (el) => (this.filterTypeEl = el), part: "filter-type" }, renderComboItems((_a = this.types) !== null && _a !== void 0 ? _a : [])), h("gxg-combo-box", { "disable-filter": true, label: this._componentLocale.filter.category, value: this.defaultCategory, disabled: !this.categories, "display-validation-styles": true, "display-validation-message": true, ref: (el) => (this.filterCategoryEl = el), part: "filter-category" }, renderComboItems((_b = this.categories) !== null && _b !== void 0 ? _b : [])), h("gx-ide-entity-selector", { label: this._componentLocale.filter.module, "label-position": "above", value: this.defaultModule, defaultValue: this.defaultModule, selectEntityCallback: this.selectModuleCallback, ref: (el) => (this.filterModuleEl = el) }), h("div", { class: "flex with-gap" }, h("gxg-form-checkbox", { label: this._componentLocale.filter.modified, class: "align-center", ref: (el) => (this.filterModifiedEl = el), part: "filter-modified" }), h("gxg-combo-box", { class: { hide: !this.filterModified }, "disable-filter": true, value: this.filterAfterType, "display-validation-styles": true, "display-validation-message": true, ref: (el) => (this.filterAfterTypeEl = el), part: "filter-after-type" }, renderComboItems([
|
|
84
81
|
{
|
|
85
|
-
id:
|
|
86
|
-
label: this._componentLocale.filter.
|
|
87
|
-
value:
|
|
82
|
+
id: FILTER_AFTER.NONE,
|
|
83
|
+
label: this._componentLocale.filter.afterNone,
|
|
84
|
+
value: FILTER_AFTER.NONE
|
|
88
85
|
},
|
|
89
86
|
{
|
|
90
|
-
id:
|
|
91
|
-
label: this._componentLocale.filter[
|
|
92
|
-
value:
|
|
87
|
+
id: FILTER_AFTER.DATE_TIME,
|
|
88
|
+
label: this._componentLocale.filter[FILTER_AFTER.DATE_TIME],
|
|
89
|
+
value: FILTER_AFTER.DATE_TIME
|
|
93
90
|
},
|
|
94
91
|
{
|
|
95
|
-
id:
|
|
96
|
-
label: this._componentLocale.filter[
|
|
97
|
-
value:
|
|
92
|
+
id: FILTER_AFTER.IMPORT,
|
|
93
|
+
label: this._componentLocale.filter[FILTER_AFTER.IMPORT],
|
|
94
|
+
value: FILTER_AFTER.IMPORT
|
|
98
95
|
},
|
|
99
96
|
{
|
|
100
|
-
id:
|
|
101
|
-
label: this._componentLocale.filter[
|
|
102
|
-
value:
|
|
97
|
+
id: FILTER_AFTER.LAST_BUILD,
|
|
98
|
+
label: this._componentLocale.filter[FILTER_AFTER.LAST_BUILD],
|
|
99
|
+
value: FILTER_AFTER.LAST_BUILD
|
|
103
100
|
}
|
|
104
101
|
])), h("gxg-form-text", { class: { hide: !this.filterModified }, "label-position": "start", label: this._componentLocale.filter.user, "max-width": "150px", ref: (el) => (this.filterUserEl = el), part: "filter-user" }), h("div", { class: {
|
|
105
102
|
flex: true,
|
|
106
103
|
hide: !this.filterModified ||
|
|
107
|
-
this.filterAfterType !==
|
|
104
|
+
this.filterAfterType !== FILTER_AFTER.DATE_TIME
|
|
108
105
|
}, part: "filter-datetime" }, h("gxg-label", { "label-position": "start" }, this._componentLocale.filter.dateTime), h("gxg-date-picker", { ref: (el) => (this.filterModifiedDateEl = el) }))))));
|
|
109
106
|
};
|
|
110
107
|
this.renderObjects = () => {
|
|
111
|
-
return (h("gxg-container", null, h("gxg-grid", { "ellipsis-cell-wrapper": true }, h("ch-grid", { "row-selection-mode": this.multiSelection ? "multiple" : "single", ref: (el) => (this.chGridEl = el), part: "ch-grid-objects" }, h("ch-grid-columnset", null, h("ch-grid-column", { "column-name-position": "text", settingable: false, size: gridCommon.colSize.auto }), h("ch-grid-column", { "column-name": this._componentLocale.tableHead.name, "column-name-position": "text", settingable: false, size: gridCommon.colSize.common }), h("ch-grid-column", { "column-name": this._componentLocale.tableHead.type, "column-name-position": "text", settingable: false, size: gridCommon.colSize.common }), h("ch-grid-column", { "column-name": this._componentLocale.tableHead.module, "column-name-position": "text", settingable: false, size: gridCommon.colSize.common }), h("ch-grid-column", { "column-name": this._componentLocale.tableHead.description, "column-name-position": "text", settingable: false, size: gridCommon.colSize.common }), h("ch-grid-column", { "column-name": this._componentLocale.tableHead.modifiedDate, "column-name-position": "text", settingable: false, size: gridCommon.colSize.auto }), h("ch-grid-column", { "column-name": this._componentLocale.tableHead.importDate, "column-name-position": "text", settingable: false, size: gridCommon.colSize.auto })), this.objects.map((obj) => (h("ch-grid-row", { rowid: obj.id, onDblClick: this.openSelectionCallbackHandler }, h("ch-grid-cell", null, h("span", { class: "cell-wrapper" }, h("gxg-icon", { type: obj.icon, color: "auto" }))), h("ch-grid-cell", null, h("span", { class: "cell-wrapper" }, " ", obj.name, " ")), h("ch-grid-cell", null, h("span", { class: "cell-wrapper" }, obj.type)), h("ch-grid-cell", null, h("span", { class: "cell-wrapper" }, obj.module)), h("ch-grid-cell", null, h("span", { class: "cell-wrapper" }, obj.description)), h("ch-grid-cell", null, h("span", { class: "cell-wrapper" }, `${formatDate(obj.modifiedDate, "date-time")}`)), h("ch-grid-cell", null, h("span", { class: "cell-wrapper" }, `${formatDate(obj.importDate, "date")}`)))))))));
|
|
108
|
+
return (h("gxg-container", null, h("gxg-grid", { "ellipsis-cell-wrapper": true }, h("ch-grid", { "row-selection-mode": this.multiSelection ? "multiple" : "single", ref: (el) => (this.chGridEl = el), onKeyDown: this.chGridKeyDownHandler, part: "ch-grid-objects" }, h("ch-grid-columnset", null, h("ch-grid-column", { "column-name-position": "text", settingable: false, size: gridCommon.colSize.auto }), h("ch-grid-column", { "column-name": this._componentLocale.tableHead.name, "column-name-position": "text", settingable: false, size: gridCommon.colSize.common }), h("ch-grid-column", { "column-name": this._componentLocale.tableHead.type, "column-name-position": "text", settingable: false, size: gridCommon.colSize.common }), h("ch-grid-column", { "column-name": this._componentLocale.tableHead.module, "column-name-position": "text", settingable: false, size: gridCommon.colSize.common }), h("ch-grid-column", { "column-name": this._componentLocale.tableHead.description, "column-name-position": "text", settingable: false, size: gridCommon.colSize.common }), h("ch-grid-column", { "column-name": this._componentLocale.tableHead.modifiedDate, "column-name-position": "text", settingable: false, size: gridCommon.colSize.auto }), h("ch-grid-column", { "column-name": this._componentLocale.tableHead.importDate, "column-name-position": "text", settingable: false, size: gridCommon.colSize.auto })), this.objects.map((obj) => (h("ch-grid-row", { rowid: obj.id, onDblClick: this.openSelectionCallbackHandler }, h("ch-grid-cell", null, h("span", { class: "cell-wrapper" }, h("gxg-icon", { type: obj.icon, color: "auto" }))), h("ch-grid-cell", null, h("span", { class: "cell-wrapper" }, " ", obj.name, " ")), h("ch-grid-cell", null, h("span", { class: "cell-wrapper" }, obj.type)), h("ch-grid-cell", null, h("span", { class: "cell-wrapper" }, obj.module)), h("ch-grid-cell", null, h("span", { class: "cell-wrapper" }, obj.description)), h("ch-grid-cell", null, h("span", { class: "cell-wrapper" }, `${formatDate(obj.modifiedDate, "date-time")}`)), h("ch-grid-cell", null, h("span", { class: "cell-wrapper" }, `${formatDate(obj.importDate, "date")}`)))))))));
|
|
112
109
|
};
|
|
113
110
|
this.getObjects = () => {
|
|
114
111
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
@@ -123,7 +120,7 @@ const GxIdeObjectSelector$1 = /*@__PURE__*/ proxyCustomElement(class extends HTM
|
|
|
123
120
|
module: (_g = (_f = this.filterModuleEl) === null || _f === void 0 ? void 0 : _f.value) === null || _g === void 0 ? void 0 : _g.id,
|
|
124
121
|
modifiedAfter: modified && modifiedAfter ? modifiedAfter : null,
|
|
125
122
|
modifiedBy: modified && user ? user : null,
|
|
126
|
-
modifiedDate: modified && modifiedAfter ===
|
|
123
|
+
modifiedDate: modified && modifiedAfter === FILTER_AFTER.DATE_TIME
|
|
127
124
|
? (_h = this.filterModifiedDateEl) === null || _h === void 0 ? void 0 : _h.value
|
|
128
125
|
: null
|
|
129
126
|
};
|
|
@@ -134,7 +131,6 @@ const GxIdeObjectSelector$1 = /*@__PURE__*/ proxyCustomElement(class extends HTM
|
|
|
134
131
|
});
|
|
135
132
|
};
|
|
136
133
|
this.openSelectionCallbackHandler = (e) => {
|
|
137
|
-
console.log("openSelectionCallbackHandler");
|
|
138
134
|
e.stopPropagation();
|
|
139
135
|
this.openSelectionCallback(this.selectedObjectsIds);
|
|
140
136
|
};
|
|
@@ -182,8 +178,7 @@ const GxIdeObjectSelector$1 = /*@__PURE__*/ proxyCustomElement(class extends HTM
|
|
|
182
178
|
this.getObjects();
|
|
183
179
|
});
|
|
184
180
|
/* Date/Time */
|
|
185
|
-
this.filterModifiedDateEl.addEventListener("valueChanged",
|
|
186
|
-
console.log("e", e);
|
|
181
|
+
this.filterModifiedDateEl.addEventListener("valueChanged", () => {
|
|
187
182
|
this.getObjects();
|
|
188
183
|
});
|
|
189
184
|
// for grid selection
|
|
@@ -191,11 +186,22 @@ const GxIdeObjectSelector$1 = /*@__PURE__*/ proxyCustomElement(class extends HTM
|
|
|
191
186
|
this.selectedObjectsIds = ev.detail.rowsId;
|
|
192
187
|
});
|
|
193
188
|
};
|
|
189
|
+
this.chGridKeyDownHandler = (e) => {
|
|
190
|
+
if (e.key === "Enter") {
|
|
191
|
+
this.openSelectionCallbackHandler(e);
|
|
192
|
+
}
|
|
193
|
+
};
|
|
194
|
+
this.hostKeyPressHandler = (e) => {
|
|
195
|
+
// just prevent keypress propagation
|
|
196
|
+
if (e.key === "Enter") {
|
|
197
|
+
e.stopPropagation();
|
|
198
|
+
}
|
|
199
|
+
};
|
|
194
200
|
this.filterAfterType = "";
|
|
195
201
|
this.filterModified = false;
|
|
196
202
|
this.objects = [];
|
|
197
203
|
this.selectedObjectsIds = [];
|
|
198
|
-
this.multiSelection =
|
|
204
|
+
this.multiSelection = true;
|
|
199
205
|
this.patternValue = undefined;
|
|
200
206
|
this.types = undefined;
|
|
201
207
|
this.defaultType = undefined;
|
|
@@ -228,7 +234,7 @@ const GxIdeObjectSelector$1 = /*@__PURE__*/ proxyCustomElement(class extends HTM
|
|
|
228
234
|
}
|
|
229
235
|
// 10.RENDER() FUNCTION //
|
|
230
236
|
render() {
|
|
231
|
-
return (h(Host, { class: "gx-ide-component" }, h("div", { class: "gx-ide-main-wrapper gx-ide-overflow" }, this.renderFilter(), this.renderObjects(), h("gxg-container", null, h("div", { class: "grid objects-count" }, h("gxg-text", { class: "align-end", part: "objects-selected" }, `${this.selectedObjectsIds.length} ${this._componentLocale.objCount.selected}`), h("gxg-text", { class: "align-end", part: "objects-matching" }, `${this.objects.length} ${this._componentLocale.objCount.matching}`))), h("gxg-container", { displayBorderTop: true }, h("div", { class: "grid actions" }, h("div", null, h("gxg-button", { id: "button-select-all", type: "primary-text-only", onClick: this.selectAll, part: "gxg-button gxg-button--select-all" }, this._componentLocale.footer.btnSelectAll), h("gxg-button", { id: "button-new", type: "primary-text-only", onClick: this.newObjectCallbackHandle, part: "gxg-button gxg-button--new" }, this._componentLocale.footer.btnNew)), h("div", null, h("gxg-button", { id: "button-ok", type: "primary-text-only", onClick: this.openSelectionCallbackHandler, part: "gxg-button gxg-button--ok" }, this._componentLocale.footer.btnConfirm), h("gxg-button", { id: "button-cancel", type: "outlined", onClick: this.cancelCallbackHandle, part: "gxg-button gxg-button--cancel" }, this._componentLocale.footer.btnCancel)))))));
|
|
237
|
+
return (h(Host, { class: "gx-ide-component", onKeyPress: this.hostKeyPressHandler }, h("div", { class: "gx-ide-main-wrapper gx-ide-overflow" }, this.renderFilter(), this.renderObjects(), h("gxg-container", null, h("div", { class: "grid objects-count" }, h("gxg-text", { class: "align-end", part: "objects-selected" }, `${this.selectedObjectsIds.length} ${this._componentLocale.objCount.selected}`), h("gxg-text", { class: "align-end", part: "objects-matching" }, `${this.objects.length} ${this._componentLocale.objCount.matching}`))), h("gxg-container", { displayBorderTop: true }, h("div", { class: "grid actions" }, h("div", null, h("gxg-button", { id: "button-select-all", type: "primary-text-only", onClick: this.selectAll, part: "gxg-button gxg-button--select-all" }, this._componentLocale.footer.btnSelectAll), h("gxg-button", { id: "button-new", type: "primary-text-only", onClick: this.newObjectCallbackHandle, part: "gxg-button gxg-button--new" }, this._componentLocale.footer.btnNew)), h("div", null, h("gxg-button", { id: "button-ok", type: "primary-text-only", onClick: this.openSelectionCallbackHandler, part: "gxg-button gxg-button--ok" }, this._componentLocale.footer.btnConfirm), h("gxg-button", { id: "button-cancel", type: "outlined", onClick: this.cancelCallbackHandle, part: "gxg-button gxg-button--cancel" }, this._componentLocale.footer.btnCancel)))))));
|
|
232
238
|
}
|
|
233
239
|
static get assetsDirs() { return ["gx-ide-assets/object-selector"]; }
|
|
234
240
|
get el() { return this; }
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface GxIdeWwImages extends Components.GxIdeWwImages, HTMLElement {}
|
|
4
|
+
export const GxIdeWwImages: {
|
|
5
|
+
prototype: GxIdeWwImages;
|
|
6
|
+
new (): GxIdeWwImages;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|