@genexus/genexus-ide-ui 1.0.20 → 1.0.21
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/genexus-ide-ui.cjs.js +1 -1
- package/dist/cjs/gx-ide-ai-message.cjs.entry.js +1 -1
- package/dist/cjs/gx-ide-dashboard-home.cjs.entry.js +1 -1
- package/dist/cjs/gx-ide-kb-manager-import.cjs.entry.js +1 -1
- package/dist/cjs/gx-ide-new-environment.cjs.entry.js +1 -1
- package/dist/cjs/gx-ide-new-kb.cjs.entry.js +1 -1
- package/dist/cjs/gx-ide-object-selector.cjs.entry.js +1 -1
- package/dist/cjs/gx-ide-team-dev-commit.cjs.entry.js +1 -1
- package/dist/cjs/gx-ide-team-dev-update.cjs.entry.js +1 -1
- package/dist/cjs/gx-ide-ww-images.cjs.entry.js +279 -396
- package/dist/cjs/gx-ide-ww-images.cjs.entry.js.map +1 -1
- package/dist/cjs/{helpers-19194a5a.js → helpers-b5b4a659.js} +7 -1
- package/dist/cjs/helpers-b5b4a659.js.map +1 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/ww-images/gx-ide-assets/ww-images/langs/ww-images.lang.en.json +3 -7
- package/dist/collection/components/ww-images/gx-ide-assets/ww-images/langs/ww-images.lang.ja.json +4 -8
- package/dist/collection/components/ww-images/ww-images.css +733 -80
- package/dist/collection/components/ww-images/ww-images.js +413 -465
- package/dist/collection/components/ww-images/ww-images.js.map +1 -1
- package/dist/components/gx-ide-ww-images.js +306 -419
- package/dist/components/gx-ide-ww-images.js.map +1 -1
- package/dist/components/helpers.js +6 -1
- package/dist/components/helpers.js.map +1 -1
- package/dist/esm/genexus-ide-ui.js +1 -1
- package/dist/esm/gx-ide-ai-message.entry.js +1 -1
- package/dist/esm/gx-ide-dashboard-home.entry.js +1 -1
- package/dist/esm/gx-ide-kb-manager-import.entry.js +1 -1
- package/dist/esm/gx-ide-new-environment.entry.js +1 -1
- package/dist/esm/gx-ide-new-kb.entry.js +1 -1
- package/dist/esm/gx-ide-object-selector.entry.js +1 -1
- package/dist/esm/gx-ide-team-dev-commit.entry.js +1 -1
- package/dist/esm/gx-ide-team-dev-update.entry.js +1 -1
- package/dist/esm/gx-ide-ww-images.entry.js +279 -396
- package/dist/esm/gx-ide-ww-images.entry.js.map +1 -1
- package/dist/esm/{helpers-9ee6ddce.js → helpers-64e1dd0b.js} +7 -2
- package/dist/esm/helpers-64e1dd0b.js.map +1 -0
- package/dist/esm/loader.js +1 -1
- package/dist/genexus-ide-ui/genexus-ide-ui.esm.js +1 -1
- package/dist/genexus-ide-ui/genexus-ide-ui.esm.js.map +1 -1
- package/dist/genexus-ide-ui/gx-ide-assets/ww-images/langs/ww-images.lang.en.json +3 -7
- package/dist/genexus-ide-ui/gx-ide-assets/ww-images/langs/ww-images.lang.ja.json +4 -8
- package/dist/genexus-ide-ui/{p-c4d1d0ce.entry.js → p-39792ac8.entry.js} +2 -2
- package/dist/genexus-ide-ui/{p-806fc181.entry.js → p-4a0dab98.entry.js} +2 -2
- package/dist/genexus-ide-ui/{p-acf0cbac.entry.js → p-4ce47bcd.entry.js} +2 -2
- package/dist/genexus-ide-ui/p-62f4ad99.entry.js +612 -0
- package/dist/genexus-ide-ui/p-62f4ad99.entry.js.map +1 -0
- package/dist/genexus-ide-ui/{p-278afab1.entry.js → p-6abe5291.entry.js} +2 -2
- package/dist/genexus-ide-ui/{p-4ce0a85e.entry.js → p-ac670f62.entry.js} +2 -2
- package/dist/genexus-ide-ui/{p-066028bc.js → p-c339f703.js} +14 -8
- package/dist/{cjs/helpers-19194a5a.js.map → genexus-ide-ui/p-c339f703.js.map} +1 -1
- package/dist/genexus-ide-ui/{p-b785673d.entry.js → p-ca8b0024.entry.js} +2 -2
- package/dist/genexus-ide-ui/{p-44d779c9.entry.js → p-e8975ac0.entry.js} +2 -2
- package/dist/genexus-ide-ui/{p-8c986256.entry.js → p-f1558097.entry.js} +2 -2
- package/dist/types/components/ww-images/ww-images.d.ts +118 -98
- package/dist/types/components.d.ts +62 -34
- package/package.json +1 -1
- package/dist/collection/components/ww-images/helpers.js +0 -11
- package/dist/collection/components/ww-images/helpers.js.map +0 -1
- package/dist/esm/helpers-9ee6ddce.js.map +0 -1
- package/dist/genexus-ide-ui/p-066028bc.js.map +0 -1
- package/dist/genexus-ide-ui/p-62efd8f2.entry.js +0 -712
- package/dist/genexus-ide-ui/p-62efd8f2.entry.js.map +0 -1
- package/dist/types/components/ww-images/helpers.d.ts +0 -3
- /package/dist/genexus-ide-ui/{p-c4d1d0ce.entry.js.map → p-39792ac8.entry.js.map} +0 -0
- /package/dist/genexus-ide-ui/{p-806fc181.entry.js.map → p-4a0dab98.entry.js.map} +0 -0
- /package/dist/genexus-ide-ui/{p-acf0cbac.entry.js.map → p-4ce47bcd.entry.js.map} +0 -0
- /package/dist/genexus-ide-ui/{p-278afab1.entry.js.map → p-6abe5291.entry.js.map} +0 -0
- /package/dist/genexus-ide-ui/{p-4ce0a85e.entry.js.map → p-ac670f62.entry.js.map} +0 -0
- /package/dist/genexus-ide-ui/{p-b785673d.entry.js.map → p-ca8b0024.entry.js.map} +0 -0
- /package/dist/genexus-ide-ui/{p-44d779c9.entry.js.map → p-e8975ac0.entry.js.map} +0 -0
- /package/dist/genexus-ide-ui/{p-8c986256.entry.js.map → p-f1558097.entry.js.map} +0 -0
|
@@ -1,186 +1,231 @@
|
|
|
1
|
-
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
2
|
-
if (kind === "a" && !f)
|
|
3
|
-
throw new TypeError("Private accessor was defined without a getter");
|
|
4
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
5
|
-
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
6
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
7
|
-
};
|
|
8
|
-
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
9
|
-
if (kind === "m")
|
|
10
|
-
throw new TypeError("Private method is not writable");
|
|
11
|
-
if (kind === "a" && !f)
|
|
12
|
-
throw new TypeError("Private accessor was defined without a setter");
|
|
13
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
14
|
-
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
15
|
-
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
16
|
-
};
|
|
17
|
-
var _GxIdeWWImages__componentLocale, _GxIdeWWImages_filterInitialData, _GxIdeWWImages_renderedFirstTime, _GxIdeWWImages_imagesMap, _GxIdeWWImages_chGridEl, _GxIdeWWImages_filterAfterTypeEl, _GxIdeWWImages_filterAllDescendantsEl, _GxIdeWWImages_filterCategoryEl, _GxIdeWWImages_filterDensityEl, _GxIdeWWImages_filterLanguageEl, _GxIdeWWImages_filterLayerEl, _GxIdeWWImages_filterModifiedDateEl, _GxIdeWWImages_filterModuleEl, _GxIdeWWImages_filterNameEl, _GxIdeWWImages_filterSearchContentsEl, _GxIdeWWImages_filterStyleEl, _GxIdeWWImages_filterUserEl, _GxIdeWWImages_deleteSelectionCallbackHandler, _GxIdeWWImages_deselectAll, _GxIdeWWImages_filterAfterTypeChangeHandler, _GxIdeWWImages_filterImagesInformationHandler, _GxIdeWWImages_filterInputHandler, _GxIdeWWImages_toggleFilterButtonClickedHandler, _GxIdeWWImages_getImages, _GxIdeWWImages_getToday, _GxIdeWWImages_listenChanges, _GxIdeWWImages_newObjectCallbackHandler, _GxIdeWWImages_openSelectionCallBackHandler, _GxIdeWWImages_renderHeader, _GxIdeWWImages_renderFilter, _GxIdeWWImages_renderImages, _GxIdeWWImages_renderImagesData, _GxIdeWWImages_resetFilterHandler, _GxIdeWWImages_saveInitialFilterData, _GxIdeWWImages_selectAll;
|
|
18
|
-
/* eslint-disable @stencil-community/own-props-must-be-private */
|
|
19
1
|
/* STENCIL IMPORTS */
|
|
20
2
|
import { Host, h } from "@stencil/core";
|
|
21
|
-
import { getIconPath } from "@genexus/mercury";
|
|
22
3
|
/* CUSTOM IMPORTS */
|
|
23
|
-
import { FILTER_AFTER } from "../../common/constants";
|
|
24
|
-
import { config } from "../../common/config";
|
|
25
|
-
import { formatDate, hiChar } from "../../common/helpers";
|
|
26
4
|
import { Locale } from "../../common/locale";
|
|
27
|
-
import {
|
|
5
|
+
import { config } from "../../common/config";
|
|
6
|
+
import { renderFormItems } from "../../common/common";
|
|
7
|
+
import { FILTER_AFTER } from "../../common/constants";
|
|
8
|
+
import { formatDate, hiChar, closeOnOutsideClickHandler } from "../../common/helpers";
|
|
28
9
|
const CSS_BUNDLES = [
|
|
29
10
|
"resets/box-sizing",
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"components/
|
|
34
|
-
"components/
|
|
35
|
-
"components/
|
|
36
|
-
"components/
|
|
37
|
-
"utils/form",
|
|
38
|
-
"utils/layout",
|
|
39
|
-
"utils/typography",
|
|
40
|
-
"utils/spacing",
|
|
41
|
-
"chameleon/scrollbar"
|
|
42
|
-
];
|
|
43
|
-
let TODAY = null;
|
|
44
|
-
// icons
|
|
45
|
-
const RESET_ICON = getIconPath({
|
|
46
|
-
category: "gemini-tools",
|
|
47
|
-
name: "reset",
|
|
48
|
-
colorType: "neutral"
|
|
49
|
-
});
|
|
50
|
-
const SEARCH_ICON = getIconPath({
|
|
51
|
-
category: "gemini-tools",
|
|
52
|
-
name: "search",
|
|
53
|
-
colorType: "neutral"
|
|
54
|
-
});
|
|
55
|
-
const FILTER_ICON = getIconPath({
|
|
56
|
-
category: "window-tools",
|
|
57
|
-
name: "filter",
|
|
58
|
-
colorType: "primary"
|
|
59
|
-
});
|
|
60
|
-
const MODIFIED_ACCORDION_MODEL = [
|
|
61
|
-
{
|
|
62
|
-
id: "modified",
|
|
63
|
-
caption: "Modified",
|
|
64
|
-
expanded: false
|
|
65
|
-
}
|
|
11
|
+
// "utils/form",
|
|
12
|
+
// "utils/layout",
|
|
13
|
+
// "utils/typography",
|
|
14
|
+
// "components/button",
|
|
15
|
+
// "components/checkbox",
|
|
16
|
+
// "components/edit",
|
|
17
|
+
"components/tabular-grid"
|
|
66
18
|
];
|
|
67
19
|
export class GxIdeWWImages {
|
|
68
20
|
constructor() {
|
|
21
|
+
this.renderedFirstTime = false;
|
|
22
|
+
// 9.LOCAL METHODS //
|
|
23
|
+
this.attachDetectClickOutsideFilter = () => {
|
|
24
|
+
document.addEventListener("click", this.detectClickOutsideFilter);
|
|
25
|
+
};
|
|
26
|
+
this.removeDetectClickOutsideFilter = () => {
|
|
27
|
+
document.removeEventListener("click", this.detectClickOutsideFilter);
|
|
28
|
+
};
|
|
29
|
+
this.detectClickOutsideFilter = (e) => {
|
|
30
|
+
const clickedOutside = closeOnOutsideClickHandler(e, this.filterEl);
|
|
31
|
+
if (clickedOutside) {
|
|
32
|
+
this.filtersHidden = true;
|
|
33
|
+
}
|
|
34
|
+
else {
|
|
35
|
+
this.filtersHidden = false;
|
|
36
|
+
}
|
|
37
|
+
};
|
|
69
38
|
/**
|
|
70
|
-
*
|
|
39
|
+
* @description This is needed for resetting the filter. When the user resets the filter, all the filter controls values have to be restored to the value they had on componentDidLoad.
|
|
71
40
|
*/
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
.
|
|
107
|
-
|
|
108
|
-
.
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
density: __classPrivateFieldGet(this, _GxIdeWWImages_filterDensityEl, "f").value,
|
|
143
|
-
layer: (_a = __classPrivateFieldGet(this, _GxIdeWWImages_filterLayerEl, "f")) === null || _a === void 0 ? void 0 : _a.value
|
|
41
|
+
this.saveInitialFilterData = () => {
|
|
42
|
+
this.filterInitialData = {
|
|
43
|
+
name: this.filterNameEl.value,
|
|
44
|
+
module: this.filterModuleEl.value,
|
|
45
|
+
searchContents: this.filterSearchContentsEl.value,
|
|
46
|
+
category: this.filterCategoryEl.value,
|
|
47
|
+
allDescendants: this.filterAllDescendantsEl.checked,
|
|
48
|
+
modified: this.filterModifiedEl.checked,
|
|
49
|
+
dateTime: this.filterModifiedDateEl.value,
|
|
50
|
+
after: this.filterAfterTypeEl.value,
|
|
51
|
+
user: this.filterUserEl.value,
|
|
52
|
+
style: this.filterStyleEl.value,
|
|
53
|
+
language: this.filterLanguageEl.value,
|
|
54
|
+
density: this.filterDensityEl.value,
|
|
55
|
+
layer: this.filterLayerEl.value
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
// 9.LOCAL METHODS -> Renders //
|
|
59
|
+
this.renderFilter = () => {
|
|
60
|
+
var _a, _b, _c, _d, _e;
|
|
61
|
+
return (h("div", { class: "filter filter--padding", ref: (el) => (this.filterEl = el) }, h("div", { class: "filter__first-row" }, h("gxg-form-text", { "label-position": "above", label: this._componentLocale.filter.name, ref: (el) => (this.filterNameEl = el), part: "filter-name", class: "name" }), h("div", { class: "second-column" }, h("gx-ide-entity-selector", { "label-position": "above", value: this.defaultModule, defaultValue: this.defaultModule, selectEntityCallback: this.selectModuleCallback, ref: (el) => (this.filterModuleEl = el), class: "module-folder", part: "filter-module-folder" }), h("gxg-button", { onClick: this.resetFilterHandler, part: "gxg-button-reset-filter", type: "secondary-icon-only", icon: "gemini-tools/reset", class: "reset-filter-btn" }), h("gxg-button", { onClick: this.toggleFiltersHandler, part: "gxg-button gxg-button--more-less", type: "secondary-icon-only", icon: true ? "window-tools/filter-conditions" : "window-tools/filter", class: "filter-btn" }))), h("div", { class: {
|
|
62
|
+
"filters-outer-wrapper": true,
|
|
63
|
+
"filters-outer-wrapper--hidden": this.filtersHidden
|
|
64
|
+
} }, h("div", { class: {
|
|
65
|
+
"filter": true,
|
|
66
|
+
"filter--gap": true,
|
|
67
|
+
"filters-inner-wrapper": true
|
|
68
|
+
} }, h("gxg-form-text", { "label-position": "above", label: this._componentLocale.filter.search, ref: (el) => (this.filterSearchContentsEl = el), class: { "search-contents": true }, part: "filter-search" }), h("gxg-combo-box", { "disable-filter": true, label: this._componentLocale.filter.category, value: this.defaultCategory, disabled: !this.categories, ref: (el) => (this.filterCategoryEl = el), class: "category", part: "filter-category" }, renderFormItems("gxg-combo-box-item", (_a = this.categories) !== null && _a !== void 0 ? _a : [])), h("div", { class: "options" }, h("gxg-label", { labelPosition: "above", center: false }, "Options:"), h("div", { class: "checkboxes-wrapper" }, h("gxg-form-checkbox", { label: this._componentLocale.filter.allDescendants, ref: (el) => (this.filterAllDescendantsEl =
|
|
69
|
+
el), class: "all-descendants", part: "filter-all-descendants" }), h("gxg-form-checkbox", { label: this._componentLocale.filter.modified, ref: (el) => (this.filterModifiedEl = el), class: "modified", part: "filter-modified" }))), h("div", { class: {
|
|
70
|
+
"hide": !this.filterModified ||
|
|
71
|
+
this.filterAfterType !== FILTER_AFTER.DATE_TIME,
|
|
72
|
+
"date-time": true
|
|
73
|
+
}, part: "filter-datetime" }, h("div", { class: "date-time-wrapper" }, h("gxg-label", { "label-position": "above" }, this._componentLocale.filter.dateTime), h("gxg-date-picker", { class: "date-picker", disabled: !this.filterModified, ref: (el) => (this.filterModifiedDateEl = el) }))), h("gxg-combo-box", { class: "after-date-time", disabled: !this.filterModified, label: this._componentLocale.filter.afterLabel, "disable-filter": true, value: this.filterAfterType, ref: (el) => (this.filterAfterTypeEl = el), part: "filter-after-type" }, renderFormItems("gxg-combo-box-item", [
|
|
74
|
+
{
|
|
75
|
+
id: FILTER_AFTER.NONE,
|
|
76
|
+
label: this._componentLocale.filter.afterNone,
|
|
77
|
+
value: FILTER_AFTER.NONE
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
id: FILTER_AFTER.DATE_TIME,
|
|
81
|
+
label: this._componentLocale.filter[FILTER_AFTER.DATE_TIME],
|
|
82
|
+
value: FILTER_AFTER.DATE_TIME
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
id: FILTER_AFTER.IMPORT,
|
|
86
|
+
label: this._componentLocale.filter[FILTER_AFTER.IMPORT],
|
|
87
|
+
value: FILTER_AFTER.IMPORT
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
id: FILTER_AFTER.LAST_BUILD,
|
|
91
|
+
label: this._componentLocale.filter[FILTER_AFTER.LAST_BUILD],
|
|
92
|
+
value: FILTER_AFTER.LAST_BUILD
|
|
93
|
+
}
|
|
94
|
+
])), h("gxg-form-text", { disabled: !this.filterModified, labelPosition: "above", label: this._componentLocale.filter.user, ref: (el) => (this.filterUserEl = el), value: "hey", centerLabel: false, class: "user", part: "filter-user" }), h("gxg-combo-box", { "disable-filter": true, label: this._componentLocale.filter.style, disabled: !this.styles, ref: (el) => (this.filterStyleEl = el), class: "style", part: "filter-style" }, renderFormItems("gxg-combo-box-item", (_b = this.styles) !== null && _b !== void 0 ? _b : [])), h("gxg-combo-box", { "disable-filter": true, label: this._componentLocale.filter.language, disabled: !this.languages, ref: (el) => (this.filterLanguageEl = el), class: "language", part: "filter-language" }, renderFormItems("gxg-combo-box-item", (_c = this.languages) !== null && _c !== void 0 ? _c : [])), h("gxg-combo-box", { "disable-filter": true, label: this._componentLocale.filter.density, disabled: !this.densities, ref: (el) => (this.filterDensityEl = el), class: "density", part: "filter-density" }, renderFormItems("gxg-combo-box-item", (_d = this.densities) !== null && _d !== void 0 ? _d : [])), h("gxg-combo-box", { "disable-filter": true, label: this._componentLocale.filter.layer, disabled: !this.layers, ref: (el) => (this.filterLayerEl = el), class: "layer", part: "filter-layer" }, renderFormItems("gxg-combo-box-item", (_e = this.layers) !== null && _e !== void 0 ? _e : []))))));
|
|
95
|
+
};
|
|
96
|
+
this.renderImagesData = () => {
|
|
97
|
+
return (
|
|
98
|
+
/* images information*/
|
|
99
|
+
h("gx-ide-container", { contentBorderEnd: true, noContentPadding: true, titleType: "secondary", containerTitle: !this.secondaryFilter ? this._componentLocale.imagesDataTitle : null, class: { "images-information": true, "overflow-auto": true }, part: "grid-container" }, this.secondaryFilter ? (h("header", { class: "images-information__header", slot: "header" }, h("gx-ide-title", { type: "secondary", class: "images-information__header-title" }, this._componentLocale.imagesDataTitle), h("gxg-form-text", { icon: "gemini-tools/search", "icon-position": "start", placeholder: "Search by any field", onInput: this.filterInputHandler }))) : null, h("ch-tabular-grid", { ref: (el) => (this.chGridEl = el), part: "ch-grid-images", rowSelectionMode: "single", class: "tabular-grid tabular-grid-ww-images" }, h("ch-tabular-grid-columnset", { class: "tabular-grid-column-set" }, h("ch-tabular-grid-column", { columnName: "", columnNameHidden: false, settingable: false, size: config.tabularGrid.colSize.maxContent, class: "tabular-grid-column" }), h("ch-tabular-grid-column", { columnName: this._componentLocale.tableHead.name, columnNameHidden: false, settingable: false, class: "tabular-grid-column", size: config.tabularGrid.colSize.common }), h("ch-tabular-grid-column", { columnName: this._componentLocale.tableHead.module, columnNameHidden: false, settingable: false, size: config.tabularGrid.colSize.common, class: "tabular-grid-column" }), h("ch-tabular-grid-column", { columnName: this._componentLocale.tableHead.description, columnNameHidden: false, settingable: false, size: config.tabularGrid.colSize.commonDouble, class: "tabular-grid-column" }), h("ch-tabular-grid-column", { columnName: this._componentLocale.tableHead.modifiedDate, columnNameHidden: false, settingable: false, size: config.tabularGrid.colSize.maxContent, class: "tabular-grid-column" }), h("ch-tabular-grid-column", { columnName: this._componentLocale.tableHead.lastUser, columnNameHidden: false, settingable: false, size: config.tabularGrid.colSize.maxContent, class: "tabular-grid-column" }), h("ch-tabular-grid-column", { columnName: this._componentLocale.tableHead.importDate, columnNameHidden: false, settingable: false, size: config.tabularGrid.colSize.maxContent, class: "tabular-grid-column" })), this.filteredImages.map((obj) => (h("ch-tabular-grid-row", { rowid: obj.id, class: "tabular-grid-row" }, h("ch-tabular-grid-cell", { class: "tabular-grid-cell" }, h("ch-image", { src: obj.icon })), h("ch-tabular-grid-cell", { class: "tabular-grid-cell" }, hiChar(obj.name, this.filterImagesInputValue)), h("ch-tabular-grid-cell", { class: "tabular-grid-cell" }, hiChar(obj.module, this.filterImagesInputValue)), h("ch-tabular-grid-cell", { class: "tabular-grid-cell" }, hiChar(obj.description, this.filterImagesInputValue)), h("ch-tabular-grid-cell", { class: "tabular-grid-cell" }, hiChar(`${formatDate(obj.modifiedDate)}`, this.filterImagesInputValue)), h("ch-tabular-grid-cell", { class: "tabular-grid-cell" }, hiChar(obj.lastUser, this.filterImagesInputValue)), h("ch-tabular-grid-cell", { class: "tabular-grid-cell" }, hiChar(`${formatDate(obj.importDate)}`, this.filterImagesInputValue))))))));
|
|
100
|
+
};
|
|
101
|
+
this.renderImages = () => {
|
|
102
|
+
return (
|
|
103
|
+
/* tiles */
|
|
104
|
+
h("gx-ide-container", { containerTitle: this._componentLocale.imagesTitle, noContentPadding: true, titleType: "secondary", class: "overflow-auto", titleHeightAsInput: this.secondaryFilter ? this._componentLocale.imagesDataTitle : null, part: "image-data-container" }, h("div", { class: "images-container" }, this.imagesSelectedItems.map(item => (h("div", { class: "image-item" }, h("div", { class: "image-item__container" }, h("div", { class: "img" }, h("img", { src: item.url, alt: item.id }))), h("span", { class: "image-item__name" }, item.name)))))));
|
|
105
|
+
};
|
|
106
|
+
// 9.LOCAL METHODS -> Other //
|
|
107
|
+
this.getImages = () => {
|
|
108
|
+
let filters = {
|
|
109
|
+
name: this.filterNameEl.value,
|
|
110
|
+
parent: this.filterModuleEl.value ? this.filterModuleEl.value.id : null
|
|
144
111
|
};
|
|
112
|
+
const modified = this.filterModifiedEl.checked;
|
|
113
|
+
const modifiedAfter = this.filterAfterTypeEl.value;
|
|
114
|
+
filters = Object.assign(Object.assign({}, filters), { searchContents: this.filterSearchContentsEl.value, category: this.filterCategoryEl.value, allDescendants: this.filterAllDescendantsEl.checked, modifiedAfter: modified ? modifiedAfter : null, modifiedBy: modified ? this.filterUserEl.value : null, modifiedDate: modified && modifiedAfter === FILTER_AFTER.DATE_TIME
|
|
115
|
+
? this.filterModifiedDateEl.value
|
|
116
|
+
: null, style: this.filterStyleEl.value, language: this.filterLanguageEl.value, density: this.filterDensityEl.value, layer: this.filterLayerEl.value });
|
|
145
117
|
this.loadCallback(filters).then((items) => {
|
|
146
118
|
this.images = items;
|
|
147
119
|
this.selectedObjectsIds = [];
|
|
148
|
-
|
|
149
|
-
|
|
120
|
+
this.deselectAll();
|
|
121
|
+
this.filterImagesInformationHandler();
|
|
122
|
+
});
|
|
123
|
+
};
|
|
124
|
+
this.newObjectCallbackHandler = () => {
|
|
125
|
+
this.newObjectCallback();
|
|
126
|
+
};
|
|
127
|
+
this.openSelectionCallBackHandler = () => {
|
|
128
|
+
this.openSelectionCallback(this.selectedObjectsIds);
|
|
129
|
+
};
|
|
130
|
+
this.deleteSelectionCallbackHandler = () => {
|
|
131
|
+
this.deleteSelectionCallback(this.selectedObjectsIds);
|
|
132
|
+
};
|
|
133
|
+
this.resetFilterHandler = () => {
|
|
134
|
+
if (this.filterInitialData) {
|
|
135
|
+
this.filterNameEl.value = this.filterInitialData.name;
|
|
136
|
+
this.filterModuleEl.value = this.filterInitialData.module;
|
|
137
|
+
this.filterSearchContentsEl.value = this.filterInitialData.searchContents;
|
|
138
|
+
this.filterCategoryEl.value = this.filterInitialData.category;
|
|
139
|
+
this.filterAllDescendantsEl.checked =
|
|
140
|
+
this.filterInitialData.allDescendants;
|
|
141
|
+
this.filterModifiedEl.checked = this.filterInitialData.modified;
|
|
142
|
+
this.filterModifiedDateEl.value = this.filterInitialData.dateTime;
|
|
143
|
+
this.filterAfterTypeEl.value = this.filterInitialData.after;
|
|
144
|
+
this.filterUserEl.value = this.filterInitialData.user;
|
|
145
|
+
this.filterStyleEl.value = this.filterInitialData.style;
|
|
146
|
+
this.filterLanguageEl.value = this.filterInitialData.language;
|
|
147
|
+
this.filterDensityEl.value = this.filterInitialData.density;
|
|
148
|
+
this.filterLayerEl.value = this.filterInitialData.layer;
|
|
149
|
+
}
|
|
150
|
+
};
|
|
151
|
+
this.toggleFiltersHandler = () => {
|
|
152
|
+
this.filtersHidden = !this.filtersHidden;
|
|
153
|
+
};
|
|
154
|
+
this.selectAll = () => {
|
|
155
|
+
this.chGridEl.selectAllRows();
|
|
156
|
+
};
|
|
157
|
+
this.deselectAll = () => {
|
|
158
|
+
this.chGridEl.selectAllRows(false);
|
|
159
|
+
};
|
|
160
|
+
this.listenChanges = () => {
|
|
161
|
+
/* name */
|
|
162
|
+
this.filterNameEl.addEventListener("change", () => {
|
|
163
|
+
this.getImages();
|
|
150
164
|
});
|
|
151
|
-
});
|
|
152
|
-
_GxIdeWWImages_getToday.set(this, () => {
|
|
153
|
-
const now = new Date();
|
|
154
|
-
const date = now.toISOString().split("T")[0];
|
|
155
|
-
const time = now.toISOString().split("T")[1].slice(0, 5); // Only take 'HH:MM' part
|
|
156
|
-
return `${date}T${time}`;
|
|
157
|
-
});
|
|
158
|
-
_GxIdeWWImages_listenChanges.set(this, () => {
|
|
159
165
|
/* module/folder */
|
|
160
|
-
|
|
161
|
-
|
|
166
|
+
this.filterModuleEl.addEventListener("valueChanged", () => {
|
|
167
|
+
this.getImages();
|
|
168
|
+
});
|
|
169
|
+
/* search contents*/
|
|
170
|
+
this.filterSearchContentsEl.addEventListener("change", () => {
|
|
171
|
+
this.getImages();
|
|
172
|
+
});
|
|
173
|
+
/* category */
|
|
174
|
+
this.filterCategoryEl.addEventListener("valueChanged", () => {
|
|
175
|
+
this.getImages();
|
|
176
|
+
});
|
|
177
|
+
/* (options) -> all descendants */
|
|
178
|
+
this.filterAllDescendantsEl.addEventListener("change", () => {
|
|
179
|
+
this.getImages();
|
|
180
|
+
});
|
|
181
|
+
/* (options) -> modified */
|
|
182
|
+
this.filterModifiedEl.addEventListener("change", (e) => {
|
|
183
|
+
this.filterModified = e.detail.value;
|
|
184
|
+
this.getImages();
|
|
185
|
+
});
|
|
186
|
+
/* date/time */
|
|
187
|
+
this.filterModifiedDateEl.addEventListener("valueChanged", () => {
|
|
188
|
+
this.getImages();
|
|
189
|
+
});
|
|
190
|
+
/* after */
|
|
191
|
+
this.filterAfterTypeEl.addEventListener("valueChanged", () => {
|
|
192
|
+
this.filterAfterType = this.filterAfterTypeEl.value;
|
|
193
|
+
this.getImages();
|
|
194
|
+
});
|
|
195
|
+
/* user */
|
|
196
|
+
this.filterUserEl.addEventListener("change", () => {
|
|
197
|
+
this.getImages();
|
|
198
|
+
});
|
|
199
|
+
/* style */
|
|
200
|
+
this.filterStyleEl.addEventListener("valueChanged", () => {
|
|
201
|
+
this.getImages();
|
|
202
|
+
});
|
|
203
|
+
/* language */
|
|
204
|
+
this.filterLanguageEl.addEventListener("valueChanged", () => {
|
|
205
|
+
this.getImages();
|
|
206
|
+
});
|
|
207
|
+
/* density */
|
|
208
|
+
this.filterDensityEl.addEventListener("valueChanged", () => {
|
|
209
|
+
this.getImages();
|
|
210
|
+
});
|
|
211
|
+
/* layer */
|
|
212
|
+
this.filterLayerEl.addEventListener("valueChanged", () => {
|
|
213
|
+
this.getImages();
|
|
162
214
|
});
|
|
163
215
|
// for grid selection
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
}
|
|
169
|
-
else {
|
|
170
|
-
this.loadImageItemsCallback(selectedId).then((items) => {
|
|
171
|
-
__classPrivateFieldGet(this, _GxIdeWWImages_imagesMap, "f").set(selectedId, items);
|
|
172
|
-
this.imagesSelectedItems = items;
|
|
173
|
-
});
|
|
174
|
-
}
|
|
216
|
+
this.chGridEl.addEventListener("selectionChanged", (ev) => {
|
|
217
|
+
this.loadImageItemsCallback(ev.detail.rowsId[0]).then((items) => {
|
|
218
|
+
this.imagesSelectedItems = items;
|
|
219
|
+
});
|
|
175
220
|
});
|
|
176
|
-
|
|
177
|
-
|
|
221
|
+
this.chGridEl.addEventListener("rowDoubleClicked", () => {
|
|
222
|
+
this.openSelectionCallBackHandler();
|
|
178
223
|
});
|
|
179
|
-
|
|
224
|
+
this.chGridEl.addEventListener("selectionChanged", (ev) => {
|
|
180
225
|
this.selectedObjectsIds = ev.detail.rowsId;
|
|
181
226
|
this.selectionObjectChangedCallback(this.selectedObjectsIds);
|
|
182
227
|
});
|
|
183
|
-
|
|
228
|
+
this.chGridEl.addEventListener("rowContextMenu", (ev) => {
|
|
184
229
|
ev.preventDefault();
|
|
185
230
|
ev.stopPropagation();
|
|
186
231
|
this.contextMenuCallback({
|
|
@@ -189,267 +234,120 @@ export class GxIdeWWImages {
|
|
|
189
234
|
clientY: ev.detail.clientY
|
|
190
235
|
});
|
|
191
236
|
});
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
this.
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
// ? this.#_componentLocale.filter.btnUntoggleFilter
|
|
223
|
-
// : this.#_componentLocale.filter.btnToggleFilter
|
|
224
|
-
// }
|
|
225
|
-
// onClick={this.#toggleFilterButtonClickedHandler}
|
|
226
|
-
// >
|
|
227
|
-
// <ch-image class="icon-md" src={FILTER_ICON}></ch-image>
|
|
228
|
-
// </button>
|
|
229
|
-
];
|
|
230
|
-
});
|
|
231
|
-
_GxIdeWWImages_renderFilter.set(this, () => {
|
|
232
|
-
var _a, _b, _c, _d, _e;
|
|
233
|
-
return (h("div", { class: "sidebar-container scrollable" }, h("ch-sidebar", { class: "sidebar sidebar-collapsed-hidden sidebar-with-motion sidebar-filter", expanded: this.filterSidebarExpanded }, h("div", { class: "main__filter field-group spacing-body-inline spacing-body-block scrollable" }, h("ch-checkbox", { class: "checkbox all-descendants", caption: __classPrivateFieldGet(this, _GxIdeWWImages__componentLocale, "f").filter.allDescendants, checkedValue: "filterAllDescendants", ref: (el) => (__classPrivateFieldSet(this, _GxIdeWWImages_filterAllDescendantsEl, el, "f")), onInput: __classPrivateFieldGet(this, _GxIdeWWImages_getImages, "f"), part: "filter-all-descendants" }), h("ch-accordion-render", {
|
|
234
|
-
// modified
|
|
235
|
-
class: "accordion-outlined modified-accordion", model: MODIFIED_ACCORDION_MODEL
|
|
236
|
-
}, h("div", { slot: "modified", class: "spacing-body" }, h("div", { class: "field-group field-group-modified" }, h("div", {
|
|
237
|
-
// after
|
|
238
|
-
class: "field field-block after-date-time"
|
|
239
|
-
}, h("label", { class: "label", htmlFor: "filter-after-type" }, __classPrivateFieldGet(this, _GxIdeWWImages__componentLocale, "f").filter.afterLabel), h("ch-combo-box-render", { id: "filter-after-type", class: "combo-box", value: (_a = this.filterAfterOptions[0]) === null || _a === void 0 ? void 0 : _a.value, ref: (el) => (__classPrivateFieldSet(this, _GxIdeWWImages_filterAfterTypeEl, el, "f")), model: this.filterAfterOptions, part: "filter-after-type", onInput: __classPrivateFieldGet(this, _GxIdeWWImages_filterAfterTypeChangeHandler, "f") })), h("div", {
|
|
240
|
-
// date/time
|
|
241
|
-
class: "field field-block date-time"
|
|
242
|
-
}, h("label", { class: {
|
|
243
|
-
"label": true,
|
|
244
|
-
"label--disabled": this.afterCurrentValue !== FILTER_AFTER.DATE_TIME
|
|
245
|
-
}, htmlFor: "modified-date" }, __classPrivateFieldGet(this, _GxIdeWWImages__componentLocale, "f").filter.dateTime), h("input", { type: "datetime-local", class: "input ", id: "modified-date", name: "modifiedDate", part: "modified-date", max: TODAY, ref: (el) => (__classPrivateFieldSet(this, _GxIdeWWImages_filterModifiedDateEl, el, "f")), disabled: this.afterCurrentValue !== FILTER_AFTER.DATE_TIME, onInput: __classPrivateFieldGet(this, _GxIdeWWImages_getImages, "f") })), h("div", {
|
|
246
|
-
// user
|
|
247
|
-
class: "field field-block user"
|
|
248
|
-
}, h("label", { class: "label", htmlFor: "filter-user" }, __classPrivateFieldGet(this, _GxIdeWWImages__componentLocale, "f").filter.user), h("ch-edit", { id: "filter-user", value: "hey", class: "input", ref: (el) => (__classPrivateFieldSet(this, _GxIdeWWImages_filterUserEl, el, "f")), debounce: config.inputDebounce, onInput: __classPrivateFieldGet(this, _GxIdeWWImages_getImages, "f"), part: "filter-user" }))))), h("div", {
|
|
249
|
-
// category
|
|
250
|
-
class: "field field-block category"
|
|
251
|
-
}, h("label", { class: "label", htmlFor: "filter-category" }, __classPrivateFieldGet(this, _GxIdeWWImages__componentLocale, "f").filter.category), h("ch-combo-box-render", { id: "filter-category", class: "combo-box", value: this.defaultCategory, disabled: !this.categories, ref: (el) => (__classPrivateFieldSet(this, _GxIdeWWImages_filterCategoryEl, el, "f")), model: this.categoriesComboBoxModel, part: "filter-category", onInput: __classPrivateFieldGet(this, _GxIdeWWImages_getImages, "f") })), h("div", {
|
|
252
|
-
// style
|
|
253
|
-
class: "field field-block style"
|
|
254
|
-
}, h("label", { class: "label", htmlFor: "filter-style" }, __classPrivateFieldGet(this, _GxIdeWWImages__componentLocale, "f").filter.style), h("ch-combo-box-render", { id: "filter-style", class: "combo-box", value: (_b = this.stylesComboBoxModel[0]) === null || _b === void 0 ? void 0 : _b.value, disabled: !this.styles, ref: (el) => (__classPrivateFieldSet(this, _GxIdeWWImages_filterStyleEl, el, "f")), model: this.stylesComboBoxModel, part: "filter-style", onInput: __classPrivateFieldGet(this, _GxIdeWWImages_getImages, "f") })), h("div", {
|
|
255
|
-
// language
|
|
256
|
-
class: "field field-block language"
|
|
257
|
-
}, h("label", { class: "label", htmlFor: "filter-language" }, __classPrivateFieldGet(this, _GxIdeWWImages__componentLocale, "f").filter.language), h("ch-combo-box-render", { id: "filter-language", class: "combo-box", value: (_c = this.languagesComboBoxModel[0]) === null || _c === void 0 ? void 0 : _c.value, disabled: !this.languages, ref: (el) => (__classPrivateFieldSet(this, _GxIdeWWImages_filterLanguageEl, el, "f")), model: this.languagesComboBoxModel, part: "filter-language", onInput: __classPrivateFieldGet(this, _GxIdeWWImages_getImages, "f") })), h("div", {
|
|
258
|
-
// density
|
|
259
|
-
class: "field field-block"
|
|
260
|
-
}, h("label", { class: "label", htmlFor: "filter-density" }, __classPrivateFieldGet(this, _GxIdeWWImages__componentLocale, "f").filter.density), h("ch-combo-box-render", { id: "filter-density", class: "combo-box", value: (_d = this.densitiesComboBoxModel[0]) === null || _d === void 0 ? void 0 : _d.value, disabled: !this.densities, ref: (el) => (__classPrivateFieldSet(this, _GxIdeWWImages_filterDensityEl, el, "f")), model: this.densitiesComboBoxModel, part: "filter-density", onInput: __classPrivateFieldGet(this, _GxIdeWWImages_getImages, "f") })), h("div", {
|
|
261
|
-
// layer
|
|
262
|
-
class: "field field-block"
|
|
263
|
-
}, h("label", { class: "label", htmlFor: "filter-layer" }, __classPrivateFieldGet(this, _GxIdeWWImages__componentLocale, "f").filter.layer), h("ch-combo-box-render", { id: "filter-layer", class: "combo-box", value: (_e = this.layersComboBoxModel[0]) === null || _e === void 0 ? void 0 : _e.value, disabled: !this.layers, ref: (el) => (__classPrivateFieldSet(this, _GxIdeWWImages_filterLayerEl, el, "f")), model: this.layersComboBoxModel, part: "filter-layer", onInput: __classPrivateFieldGet(this, _GxIdeWWImages_getImages, "f") })))), __classPrivateFieldGet(this, _GxIdeWWImages_renderImages, "f").call(this)));
|
|
264
|
-
});
|
|
265
|
-
_GxIdeWWImages_renderImages.set(this, () => {
|
|
266
|
-
return (
|
|
267
|
-
/* tiles */
|
|
268
|
-
h("div", { class: "main__images-container spacing-body-inline" }, this.imagesSelectedItems.map(item => (h("figure", { class: "figure" }, h("picture", { class: "figure__picture" }, h("img", { class: "figure__img", src: item.url, alt: item.name })), h("figcaption", { class: "figure__figcaption" }, item.name))))));
|
|
269
|
-
});
|
|
270
|
-
_GxIdeWWImages_renderImagesData.set(this, () => {
|
|
271
|
-
return (h("div", { class: {
|
|
272
|
-
"field-group": true,
|
|
273
|
-
"main__grid": true,
|
|
274
|
-
"main__grid--with-filter": this.secondaryFilter
|
|
275
|
-
} }, this.secondaryFilter ? (h("header", { class: "images-information__header spacing-body-inline-start", slot: "header" }, h("div", {
|
|
276
|
-
// search contents
|
|
277
|
-
class: "field field-inline"
|
|
278
|
-
}, h("label", { class: "label", htmlFor: "search-input" }, __classPrivateFieldGet(this, _GxIdeWWImages__componentLocale, "f").filter.search), h("ch-edit", { id: "search-input", class: "input name", placeholder: __classPrivateFieldGet(this, _GxIdeWWImages__componentLocale, "f").filter.searchByContentPlaceholder, ref: (el) => (__classPrivateFieldSet(this, _GxIdeWWImages_filterSearchContentsEl, el, "f")), onInput: __classPrivateFieldGet(this, _GxIdeWWImages_filterInputHandler, "f"), startImgSrc: SEARCH_ICON, part: "search-input" })))) : null, h("ch-tabular-grid", { ref: (el) => (__classPrivateFieldSet(this, _GxIdeWWImages_chGridEl, el, "f")), part: "ch-grid-images", rowSelectionMode: "multiple", class: "tabular-grid tabular-grid-ww-images" }, h("ch-tabular-grid-columnset", { class: "tabular-grid-column-set" }, h("ch-tabular-grid-column", { columnName: "", columnNameHidden: false, settingable: false, size: config.tabularGrid.colSize.maxContent, class: "tabular-grid-column" }), h("ch-tabular-grid-column", { columnName: __classPrivateFieldGet(this, _GxIdeWWImages__componentLocale, "f").tableHead.name, columnNameHidden: false, settingable: false, class: "tabular-grid-column", size: config.tabularGrid.colSize.common }), h("ch-tabular-grid-column", { columnName: __classPrivateFieldGet(this, _GxIdeWWImages__componentLocale, "f").tableHead.module, columnNameHidden: false, settingable: false, size: config.tabularGrid.colSize.common, class: "tabular-grid-column" }), h("ch-tabular-grid-column", { columnName: __classPrivateFieldGet(this, _GxIdeWWImages__componentLocale, "f").tableHead.description, columnNameHidden: false, settingable: false, size: config.tabularGrid.colSize.commonDouble, class: "tabular-grid-column" }), h("ch-tabular-grid-column", { columnName: __classPrivateFieldGet(this, _GxIdeWWImages__componentLocale, "f").tableHead.modifiedDate, columnNameHidden: false, settingable: false, size: config.tabularGrid.colSize.maxContent, class: "tabular-grid-column" }), h("ch-tabular-grid-column", { columnName: __classPrivateFieldGet(this, _GxIdeWWImages__componentLocale, "f").tableHead.lastUser, columnNameHidden: false, settingable: false, size: config.tabularGrid.colSize.maxContent, class: "tabular-grid-column" }), h("ch-tabular-grid-column", { columnName: __classPrivateFieldGet(this, _GxIdeWWImages__componentLocale, "f").tableHead.importDate, columnNameHidden: false, settingable: false, size: config.tabularGrid.colSize.maxContent, class: "tabular-grid-column" })), this.filteredImages.length ? (h("ch-tabular-grid-rowset", { class: "tabular-grid-rowset" }, this.filteredImages.map((obj) => (h("ch-tabular-grid-row", { rowid: obj.id, class: "tabular-grid-row" }, h("ch-tabular-grid-cell", { class: "tabular-grid-cell" }, h("ch-image", { src: obj.icon })), h("ch-tabular-grid-cell", { class: "tabular-grid-cell" }, hiChar(obj.name.toLowerCase(), this.filterImagesInputValue)), h("ch-tabular-grid-cell", { class: "tabular-grid-cell" }, hiChar(obj.module.toLowerCase(), this.filterImagesInputValue)), h("ch-tabular-grid-cell", { class: "tabular-grid-cell" }, hiChar(obj.description.toLowerCase(), this.filterImagesInputValue)), h("ch-tabular-grid-cell", { class: "tabular-grid-cell" }, hiChar(`${formatDate(obj.modifiedDate)}`, this.filterImagesInputValue)), h("ch-tabular-grid-cell", { class: "tabular-grid-cell" }, hiChar(obj.lastUser.toLowerCase(), this.filterImagesInputValue)), h("ch-tabular-grid-cell", { class: "tabular-grid-cell" }, hiChar(`${formatDate(obj.importDate)}`, this.filterImagesInputValue))))))) : null
|
|
279
|
-
// TODO (Add empty state)
|
|
280
|
-
)));
|
|
281
|
-
});
|
|
282
|
-
_GxIdeWWImages_resetFilterHandler.set(this, () => {
|
|
283
|
-
if (__classPrivateFieldGet(this, _GxIdeWWImages_filterInitialData, "f")) {
|
|
284
|
-
__classPrivateFieldGet(this, _GxIdeWWImages_filterNameEl, "f").value = __classPrivateFieldGet(this, _GxIdeWWImages_filterInitialData, "f").name;
|
|
285
|
-
__classPrivateFieldGet(this, _GxIdeWWImages_filterModuleEl, "f").value = __classPrivateFieldGet(this, _GxIdeWWImages_filterInitialData, "f").module;
|
|
286
|
-
__classPrivateFieldGet(this, _GxIdeWWImages_filterSearchContentsEl, "f").value =
|
|
287
|
-
__classPrivateFieldGet(this, _GxIdeWWImages_filterInitialData, "f").searchContents;
|
|
288
|
-
__classPrivateFieldGet(this, _GxIdeWWImages_filterCategoryEl, "f").value = __classPrivateFieldGet(this, _GxIdeWWImages_filterInitialData, "f").category;
|
|
289
|
-
__classPrivateFieldGet(this, _GxIdeWWImages_filterAllDescendantsEl, "f").value =
|
|
290
|
-
__classPrivateFieldGet(this, _GxIdeWWImages_filterInitialData, "f").allDescendants;
|
|
291
|
-
__classPrivateFieldGet(this, _GxIdeWWImages_filterAfterTypeEl, "f").value = __classPrivateFieldGet(this, _GxIdeWWImages_filterInitialData, "f").modifiedAfter;
|
|
292
|
-
__classPrivateFieldGet(this, _GxIdeWWImages_filterModifiedDateEl, "f").value =
|
|
293
|
-
__classPrivateFieldGet(this, _GxIdeWWImages_filterInitialData, "f").modifiedDateTime;
|
|
294
|
-
__classPrivateFieldGet(this, _GxIdeWWImages_filterUserEl, "f").value = __classPrivateFieldGet(this, _GxIdeWWImages_filterInitialData, "f").modifiedUser;
|
|
295
|
-
__classPrivateFieldGet(this, _GxIdeWWImages_filterStyleEl, "f").value = __classPrivateFieldGet(this, _GxIdeWWImages_filterInitialData, "f").style;
|
|
296
|
-
__classPrivateFieldGet(this, _GxIdeWWImages_filterLanguageEl, "f").value = __classPrivateFieldGet(this, _GxIdeWWImages_filterInitialData, "f").language;
|
|
297
|
-
__classPrivateFieldGet(this, _GxIdeWWImages_filterDensityEl, "f").value = __classPrivateFieldGet(this, _GxIdeWWImages_filterInitialData, "f").density;
|
|
298
|
-
__classPrivateFieldGet(this, _GxIdeWWImages_filterLayerEl, "f").value = __classPrivateFieldGet(this, _GxIdeWWImages_filterInitialData, "f").layer;
|
|
299
|
-
__classPrivateFieldGet(this, _GxIdeWWImages_getImages, "f").call(this);
|
|
300
|
-
this.afterCurrentValue = __classPrivateFieldGet(this, _GxIdeWWImages_filterCategoryEl, "f").value; // this value has to be evaluated on a re-render
|
|
301
|
-
}
|
|
302
|
-
});
|
|
303
|
-
_GxIdeWWImages_saveInitialFilterData.set(this, () => {
|
|
304
|
-
var _a, _b, _c;
|
|
305
|
-
__classPrivateFieldSet(this, _GxIdeWWImages_filterInitialData, {
|
|
306
|
-
name: __classPrivateFieldGet(this, _GxIdeWWImages_filterNameEl, "f").value,
|
|
307
|
-
module: __classPrivateFieldGet(this, _GxIdeWWImages_filterModuleEl, "f").value,
|
|
308
|
-
searchContents: __classPrivateFieldGet(this, _GxIdeWWImages_filterSearchContentsEl, "f").value,
|
|
309
|
-
category: __classPrivateFieldGet(this, _GxIdeWWImages_filterCategoryEl, "f").value,
|
|
310
|
-
allDescendants: __classPrivateFieldGet(this, _GxIdeWWImages_filterAllDescendantsEl, "f").value,
|
|
311
|
-
modifiedAfter: (_a = __classPrivateFieldGet(this, _GxIdeWWImages_filterAfterTypeEl, "f")) === null || _a === void 0 ? void 0 : _a.value,
|
|
312
|
-
modifiedDateTime: (_b = __classPrivateFieldGet(this, _GxIdeWWImages_filterModifiedDateEl, "f")) === null || _b === void 0 ? void 0 : _b.value,
|
|
313
|
-
modifiedUser: (_c = __classPrivateFieldGet(this, _GxIdeWWImages_filterUserEl, "f")) === null || _c === void 0 ? void 0 : _c.value,
|
|
314
|
-
style: __classPrivateFieldGet(this, _GxIdeWWImages_filterStyleEl, "f").value,
|
|
315
|
-
language: __classPrivateFieldGet(this, _GxIdeWWImages_filterLanguageEl, "f").value,
|
|
316
|
-
density: __classPrivateFieldGet(this, _GxIdeWWImages_filterDensityEl, "f").value,
|
|
317
|
-
layer: __classPrivateFieldGet(this, _GxIdeWWImages_filterLayerEl, "f").value
|
|
318
|
-
}, "f");
|
|
319
|
-
});
|
|
320
|
-
_GxIdeWWImages_selectAll.set(this, () => {
|
|
321
|
-
__classPrivateFieldGet(this, _GxIdeWWImages_chGridEl, "f").selectAllRows();
|
|
322
|
-
});
|
|
323
|
-
this.categoriesComboBoxModel = [];
|
|
324
|
-
this.densitiesComboBoxModel = [];
|
|
325
|
-
this.languagesComboBoxModel = [];
|
|
326
|
-
this.layersComboBoxModel = [];
|
|
327
|
-
this.stylesComboBoxModel = [];
|
|
328
|
-
this.filterSidebarExpanded = false;
|
|
329
|
-
this.afterCurrentValue = undefined;
|
|
330
|
-
this.filterAfterOptions = undefined;
|
|
331
|
-
this.filterImagesInputValue = "";
|
|
237
|
+
};
|
|
238
|
+
this.filterInputHandler = (e) => {
|
|
239
|
+
this.filterImagesInputValue = e.detail;
|
|
240
|
+
this.filterImagesInformationHandler();
|
|
241
|
+
};
|
|
242
|
+
this.filterImagesInformationHandler = () => {
|
|
243
|
+
const filterValue = this.filterImagesInputValue.toLocaleLowerCase();
|
|
244
|
+
this.filteredImages = this.images.filter(image => {
|
|
245
|
+
const nameMatch = image.name.toLocaleLowerCase().includes(filterValue);
|
|
246
|
+
const moduleMatch = image.module
|
|
247
|
+
.toLocaleLowerCase()
|
|
248
|
+
.includes(filterValue);
|
|
249
|
+
const descriptionMatch = image.description
|
|
250
|
+
.toLocaleLowerCase()
|
|
251
|
+
.includes(filterValue);
|
|
252
|
+
const modifiedDateMatch = image.modifiedDate
|
|
253
|
+
.toString()
|
|
254
|
+
.includes(filterValue);
|
|
255
|
+
const lastUser = image.lastUser.toLocaleLowerCase().includes(filterValue);
|
|
256
|
+
const importDateMatch = image.importDate && image.importDate.toString().includes(filterValue);
|
|
257
|
+
return (nameMatch ||
|
|
258
|
+
moduleMatch ||
|
|
259
|
+
descriptionMatch ||
|
|
260
|
+
modifiedDateMatch ||
|
|
261
|
+
lastUser ||
|
|
262
|
+
importDateMatch);
|
|
263
|
+
});
|
|
264
|
+
};
|
|
265
|
+
this.filtersHidden = true;
|
|
266
|
+
this.filterAfterType = "";
|
|
332
267
|
this.filterModified = false;
|
|
333
|
-
this.filteredImages = [];
|
|
334
268
|
this.images = [];
|
|
269
|
+
this.filteredImages = [];
|
|
335
270
|
this.imagesSelectedItems = [];
|
|
336
271
|
this.selectedObjectsIds = [];
|
|
337
|
-
this.
|
|
272
|
+
this.filterImagesInputValue = "";
|
|
273
|
+
this.displayTitle = false;
|
|
274
|
+
this.secondaryFilter = false;
|
|
338
275
|
this.categories = undefined;
|
|
339
|
-
this.
|
|
276
|
+
this.densities = undefined;
|
|
340
277
|
this.defaultCategory = undefined;
|
|
341
278
|
this.defaultModule = undefined;
|
|
342
|
-
this.
|
|
343
|
-
this.
|
|
279
|
+
this.defaultType = undefined;
|
|
280
|
+
this.filterModules = undefined;
|
|
344
281
|
this.languages = undefined;
|
|
345
282
|
this.layers = undefined;
|
|
283
|
+
this.contextMenuCallback = undefined;
|
|
284
|
+
this.deleteSelectionCallback = undefined;
|
|
346
285
|
this.loadCallback = undefined;
|
|
347
286
|
this.loadImageItemsCallback = undefined;
|
|
348
287
|
this.newObjectCallback = undefined;
|
|
349
288
|
this.openSelectionCallback = undefined;
|
|
350
289
|
this.selectModuleCallback = undefined;
|
|
351
290
|
this.selectionObjectChangedCallback = undefined;
|
|
352
|
-
this.secondaryFilter = false;
|
|
353
291
|
this.shadow = false;
|
|
354
292
|
this.styles = undefined;
|
|
355
293
|
this.types = undefined;
|
|
356
294
|
}
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
this.densitiesComboBoxModel = mapOptionsToComboBoxItemModel(newDensities);
|
|
365
|
-
}
|
|
366
|
-
languagesChanged(newLanguages) {
|
|
367
|
-
this.languagesComboBoxModel = mapOptionsToComboBoxItemModel(newLanguages);
|
|
368
|
-
}
|
|
369
|
-
layersChanged(newLayers) {
|
|
370
|
-
this.layersComboBoxModel = mapOptionsToComboBoxItemModel(newLayers);
|
|
371
|
-
}
|
|
372
|
-
stylesChanged(newStyles) {
|
|
373
|
-
this.stylesComboBoxModel = mapOptionsToComboBoxItemModel(newStyles);
|
|
295
|
+
filtersHiddenHandler(hidden) {
|
|
296
|
+
if (hidden) {
|
|
297
|
+
this.removeDetectClickOutsideFilter();
|
|
298
|
+
}
|
|
299
|
+
else {
|
|
300
|
+
this.attachDetectClickOutsideFilter();
|
|
301
|
+
}
|
|
374
302
|
}
|
|
375
|
-
|
|
376
|
-
|
|
303
|
+
// 6.COMPONENT LIFECYCLE EVENTS //
|
|
304
|
+
async componentWillLoad() {
|
|
305
|
+
this._componentLocale = await Locale.getComponentStrings(this.el);
|
|
306
|
+
this.componentDidLoadEvent.emit(true);
|
|
377
307
|
}
|
|
378
308
|
componentDidLoad() {
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
309
|
+
this.listenChanges();
|
|
310
|
+
this.getImages();
|
|
311
|
+
this.saveInitialFilterData();
|
|
312
|
+
this.filterNameEl.focus();
|
|
383
313
|
}
|
|
384
314
|
componentDidRender() {
|
|
385
|
-
if (!
|
|
386
|
-
this.componentDidRenderFirstTime.emit(
|
|
387
|
-
|
|
315
|
+
if (!this.renderedFirstTime) {
|
|
316
|
+
this.componentDidRenderFirstTime.emit(this._componentLocale.componentName);
|
|
317
|
+
this.renderedFirstTime = true;
|
|
388
318
|
}
|
|
389
319
|
}
|
|
390
|
-
|
|
391
|
-
__classPrivateFieldSet(this, _GxIdeWWImages__componentLocale, await Locale.getComponentStrings(this.el), "f");
|
|
392
|
-
this.componentDidLoadEvent.emit(true);
|
|
393
|
-
// initialize combo-box models
|
|
394
|
-
this.categoriesChanged(this.categories);
|
|
395
|
-
this.densitiesChanged(this.densities);
|
|
396
|
-
this.languagesChanged(this.languages);
|
|
397
|
-
this.layersChanged(this.layers);
|
|
398
|
-
this.stylesChanged(this.styles);
|
|
399
|
-
// initialize "After" combo-box options
|
|
400
|
-
this.filterAfterOptions = [
|
|
401
|
-
{
|
|
402
|
-
caption: __classPrivateFieldGet(this, _GxIdeWWImages__componentLocale, "f").filter.afterNone,
|
|
403
|
-
value: FILTER_AFTER.NONE
|
|
404
|
-
},
|
|
405
|
-
{
|
|
406
|
-
caption: __classPrivateFieldGet(this, _GxIdeWWImages__componentLocale, "f").filter[FILTER_AFTER.DATE_TIME],
|
|
407
|
-
value: FILTER_AFTER.DATE_TIME
|
|
408
|
-
},
|
|
409
|
-
{
|
|
410
|
-
caption: __classPrivateFieldGet(this, _GxIdeWWImages__componentLocale, "f").filter[FILTER_AFTER.IMPORT],
|
|
411
|
-
value: FILTER_AFTER.IMPORT
|
|
412
|
-
},
|
|
413
|
-
{
|
|
414
|
-
caption: __classPrivateFieldGet(this, _GxIdeWWImages__componentLocale, "f").filter[FILTER_AFTER.LAST_BUILD],
|
|
415
|
-
value: FILTER_AFTER.LAST_BUILD
|
|
416
|
-
}
|
|
417
|
-
];
|
|
418
|
-
this.afterCurrentValue = this.filterAfterOptions[0].value;
|
|
419
|
-
}
|
|
320
|
+
// 7.LISTENERS //
|
|
420
321
|
keyDownHandler(eventInfo) {
|
|
421
322
|
if (document.activeElement === this.el) {
|
|
422
323
|
switch (eventInfo.key) {
|
|
423
324
|
case "Enter":
|
|
424
|
-
|
|
325
|
+
this.openSelectionCallBackHandler();
|
|
425
326
|
break;
|
|
426
327
|
case "Delete":
|
|
427
|
-
|
|
328
|
+
this.deleteSelectionCallbackHandler();
|
|
428
329
|
break;
|
|
429
330
|
}
|
|
430
331
|
}
|
|
431
332
|
}
|
|
333
|
+
// 8.PUBLIC METHODS API //
|
|
432
334
|
/**
|
|
433
|
-
*
|
|
335
|
+
* Validate necessary data input
|
|
336
|
+
*/
|
|
337
|
+
async validate() {
|
|
338
|
+
const isValid = true;
|
|
339
|
+
return isValid;
|
|
340
|
+
}
|
|
341
|
+
/**
|
|
342
|
+
* This method reload the view, refreshing the filters and the table of images.
|
|
434
343
|
*/
|
|
435
344
|
async reload() {
|
|
436
|
-
|
|
437
|
-
|
|
345
|
+
this.deleteSelectionCallbackHandler();
|
|
346
|
+
this.getImages();
|
|
438
347
|
}
|
|
348
|
+
// 10.RENDER() FUNCTION //
|
|
439
349
|
render() {
|
|
440
|
-
return (h(Host, { class: "
|
|
441
|
-
// reset filter button
|
|
442
|
-
class: "button-secondary button-icon-and-text button-reset", onClick: __classPrivateFieldGet(this, _GxIdeWWImages_resetFilterHandler, "f")
|
|
443
|
-
}, h("ch-image", { class: "icon-sm", src: RESET_ICON }), "Reset")), __classPrivateFieldGet(this, _GxIdeWWImages_renderFilter, "f").call(this))), h("footer", { class: "control-footer-with-border control-footer-space-between spacing-body" }, h("p", {
|
|
444
|
-
// matching objects
|
|
445
|
-
class: "text-body", part: "objects-matching"
|
|
446
|
-
}, `${this.filteredImages.length} ${__classPrivateFieldGet(this, _GxIdeWWImages__componentLocale, "f").objCount.matching}`), h("div", { class: "buttons-spacer" }, h("button", {
|
|
447
|
-
// select all button
|
|
448
|
-
id: "button-select-all", class: "button-secondary", onClick: __classPrivateFieldGet(this, _GxIdeWWImages_selectAll, "f"), part: "button button--select-all"
|
|
449
|
-
}, __classPrivateFieldGet(this, _GxIdeWWImages__componentLocale, "f").footer.btnSelectAll), h("button", {
|
|
450
|
-
// new image button
|
|
451
|
-
id: "button-new-file", class: "button-primary button-icon-and-text", onClick: __classPrivateFieldGet(this, _GxIdeWWImages_newObjectCallbackHandler, "f"), part: "button button--new-file"
|
|
452
|
-
}, __classPrivateFieldGet(this, _GxIdeWWImages__componentLocale, "f").footer.btnNew))))));
|
|
350
|
+
return (h(Host, { class: "gx-ide-component" }, h("ch-theme", { model: CSS_BUNDLES }), h("div", { class: "gx-ide-main-wrapper" }, h("gx-ide-container", { noContentPadding: true, noContentGap: true, containerTitle: this.displayTitle ? this._componentLocale.componentName : null, slimmerFooter: config.gxIdeContainer.slimmerFooter }, h("div", { class: "master-wrapper" }, this.renderFilter(), h("div", { class: "grid-images-container" }, this.renderImagesData(), this.renderImages())), h("gxg-button", { id: "button-select-all", type: "outlined", onClick: this.selectAll, part: "gxg-button gxg-button--select-all", slot: "footer-end" }, this._componentLocale.footer.btnSelectAll), h("gxg-button", { id: "button-new-file", type: "primary-text-icon", icon: "objects/image", onClick: this.newObjectCallbackHandler, part: "gxg-button gxg-button--new-file", slot: "footer-end" }, this._componentLocale.footer.btnNew), h("gxg-text", { class: "align-end", part: "objects-matching", slot: "footer-start" }, `${this.filteredImages.length} ${this._componentLocale.objCount.matching}`)))));
|
|
453
351
|
}
|
|
454
352
|
static get is() { return "gx-ide-ww-images"; }
|
|
455
353
|
static get encapsulation() { return "shadow"; }
|
|
@@ -466,6 +364,42 @@ export class GxIdeWWImages {
|
|
|
466
364
|
static get assetsDirs() { return ["gx-ide-assets/ww-images"]; }
|
|
467
365
|
static get properties() {
|
|
468
366
|
return {
|
|
367
|
+
"displayTitle": {
|
|
368
|
+
"type": "boolean",
|
|
369
|
+
"mutable": false,
|
|
370
|
+
"complexType": {
|
|
371
|
+
"original": "false",
|
|
372
|
+
"resolved": "boolean",
|
|
373
|
+
"references": {}
|
|
374
|
+
},
|
|
375
|
+
"required": false,
|
|
376
|
+
"optional": false,
|
|
377
|
+
"docs": {
|
|
378
|
+
"tags": [],
|
|
379
|
+
"text": "If true it displays the component title on the header"
|
|
380
|
+
},
|
|
381
|
+
"attribute": "display-title",
|
|
382
|
+
"reflect": false,
|
|
383
|
+
"defaultValue": "false"
|
|
384
|
+
},
|
|
385
|
+
"secondaryFilter": {
|
|
386
|
+
"type": "boolean",
|
|
387
|
+
"mutable": false,
|
|
388
|
+
"complexType": {
|
|
389
|
+
"original": "false",
|
|
390
|
+
"resolved": "boolean",
|
|
391
|
+
"references": {}
|
|
392
|
+
},
|
|
393
|
+
"required": false,
|
|
394
|
+
"optional": false,
|
|
395
|
+
"docs": {
|
|
396
|
+
"tags": [],
|
|
397
|
+
"text": "Displays a secondary filter, used to filter over the filtered images"
|
|
398
|
+
},
|
|
399
|
+
"attribute": "secondary-filter",
|
|
400
|
+
"reflect": false,
|
|
401
|
+
"defaultValue": "false"
|
|
402
|
+
},
|
|
469
403
|
"categories": {
|
|
470
404
|
"type": "unknown",
|
|
471
405
|
"mutable": false,
|
|
@@ -484,20 +418,20 @@ export class GxIdeWWImages {
|
|
|
484
418
|
"optional": false,
|
|
485
419
|
"docs": {
|
|
486
420
|
"tags": [],
|
|
487
|
-
"text": "
|
|
421
|
+
"text": "The categories render in the filter category selector"
|
|
488
422
|
}
|
|
489
423
|
},
|
|
490
|
-
"
|
|
424
|
+
"densities": {
|
|
491
425
|
"type": "unknown",
|
|
492
426
|
"mutable": false,
|
|
493
427
|
"complexType": {
|
|
494
|
-
"original": "
|
|
495
|
-
"resolved": "
|
|
428
|
+
"original": "GxOption[]",
|
|
429
|
+
"resolved": "GxOption[]",
|
|
496
430
|
"references": {
|
|
497
|
-
"
|
|
498
|
-
"location": "
|
|
499
|
-
"path": "/
|
|
500
|
-
"id": "src/
|
|
431
|
+
"GxOption": {
|
|
432
|
+
"location": "import",
|
|
433
|
+
"path": "../../common/types",
|
|
434
|
+
"id": "src/common/types.ts::GxOption"
|
|
501
435
|
}
|
|
502
436
|
}
|
|
503
437
|
},
|
|
@@ -505,7 +439,7 @@ export class GxIdeWWImages {
|
|
|
505
439
|
"optional": false,
|
|
506
440
|
"docs": {
|
|
507
441
|
"tags": [],
|
|
508
|
-
"text": "
|
|
442
|
+
"text": "The densities render in the filter density selector"
|
|
509
443
|
}
|
|
510
444
|
},
|
|
511
445
|
"defaultCategory": {
|
|
@@ -520,7 +454,7 @@ export class GxIdeWWImages {
|
|
|
520
454
|
"optional": false,
|
|
521
455
|
"docs": {
|
|
522
456
|
"tags": [],
|
|
523
|
-
"text": "
|
|
457
|
+
"text": "The default value for the 'categories' filter"
|
|
524
458
|
},
|
|
525
459
|
"attribute": "default-category",
|
|
526
460
|
"reflect": false
|
|
@@ -543,31 +477,27 @@ export class GxIdeWWImages {
|
|
|
543
477
|
"optional": false,
|
|
544
478
|
"docs": {
|
|
545
479
|
"tags": [],
|
|
546
|
-
"text": "
|
|
480
|
+
"text": "The default value for the module/folder filter"
|
|
547
481
|
}
|
|
548
482
|
},
|
|
549
|
-
"
|
|
550
|
-
"type": "
|
|
483
|
+
"defaultType": {
|
|
484
|
+
"type": "string",
|
|
551
485
|
"mutable": false,
|
|
552
486
|
"complexType": {
|
|
553
|
-
"original": "
|
|
554
|
-
"resolved": "
|
|
555
|
-
"references": {
|
|
556
|
-
"DeleteSelectionCallback": {
|
|
557
|
-
"location": "local",
|
|
558
|
-
"path": "/home/runner/work/genexus-ide-ui/genexus-ide-ui/src/components/ww-images/ww-images.tsx",
|
|
559
|
-
"id": "src/components/ww-images/ww-images.tsx::DeleteSelectionCallback"
|
|
560
|
-
}
|
|
561
|
-
}
|
|
487
|
+
"original": "string",
|
|
488
|
+
"resolved": "string",
|
|
489
|
+
"references": {}
|
|
562
490
|
},
|
|
563
|
-
"required":
|
|
491
|
+
"required": false,
|
|
564
492
|
"optional": false,
|
|
565
493
|
"docs": {
|
|
566
494
|
"tags": [],
|
|
567
|
-
"text": "
|
|
568
|
-
}
|
|
495
|
+
"text": "The default value for the type filter"
|
|
496
|
+
},
|
|
497
|
+
"attribute": "default-type",
|
|
498
|
+
"reflect": false
|
|
569
499
|
},
|
|
570
|
-
"
|
|
500
|
+
"filterModules": {
|
|
571
501
|
"type": "unknown",
|
|
572
502
|
"mutable": false,
|
|
573
503
|
"complexType": {
|
|
@@ -585,7 +515,7 @@ export class GxIdeWWImages {
|
|
|
585
515
|
"optional": false,
|
|
586
516
|
"docs": {
|
|
587
517
|
"tags": [],
|
|
588
|
-
"text": "
|
|
518
|
+
"text": "The modules/folders render in the module/folder selector"
|
|
589
519
|
}
|
|
590
520
|
},
|
|
591
521
|
"languages": {
|
|
@@ -606,7 +536,7 @@ export class GxIdeWWImages {
|
|
|
606
536
|
"optional": false,
|
|
607
537
|
"docs": {
|
|
608
538
|
"tags": [],
|
|
609
|
-
"text": "
|
|
539
|
+
"text": "The languages render in the filter language selector"
|
|
610
540
|
}
|
|
611
541
|
},
|
|
612
542
|
"layers": {
|
|
@@ -627,7 +557,49 @@ export class GxIdeWWImages {
|
|
|
627
557
|
"optional": false,
|
|
628
558
|
"docs": {
|
|
629
559
|
"tags": [],
|
|
630
|
-
"text": "
|
|
560
|
+
"text": "The layers render in the filter layer selector"
|
|
561
|
+
}
|
|
562
|
+
},
|
|
563
|
+
"contextMenuCallback": {
|
|
564
|
+
"type": "unknown",
|
|
565
|
+
"mutable": false,
|
|
566
|
+
"complexType": {
|
|
567
|
+
"original": "ContextMenuCallback",
|
|
568
|
+
"resolved": "(contextMenuInfo: ContextMenuInfo) => Promise<void>",
|
|
569
|
+
"references": {
|
|
570
|
+
"ContextMenuCallback": {
|
|
571
|
+
"location": "local",
|
|
572
|
+
"path": "/home/runner/work/genexus-ide-ui/genexus-ide-ui/src/components/ww-images/ww-images.tsx",
|
|
573
|
+
"id": "src/components/ww-images/ww-images.tsx::ContextMenuCallback"
|
|
574
|
+
}
|
|
575
|
+
}
|
|
576
|
+
},
|
|
577
|
+
"required": true,
|
|
578
|
+
"optional": false,
|
|
579
|
+
"docs": {
|
|
580
|
+
"tags": [],
|
|
581
|
+
"text": "This is a function provided by the developer for expanded the data of images that is double-clicked or entered."
|
|
582
|
+
}
|
|
583
|
+
},
|
|
584
|
+
"deleteSelectionCallback": {
|
|
585
|
+
"type": "unknown",
|
|
586
|
+
"mutable": false,
|
|
587
|
+
"complexType": {
|
|
588
|
+
"original": "DeleteSelectionCallback",
|
|
589
|
+
"resolved": "(ids: string[]) => Promise<void>",
|
|
590
|
+
"references": {
|
|
591
|
+
"DeleteSelectionCallback": {
|
|
592
|
+
"location": "local",
|
|
593
|
+
"path": "/home/runner/work/genexus-ide-ui/genexus-ide-ui/src/components/ww-images/ww-images.tsx",
|
|
594
|
+
"id": "src/components/ww-images/ww-images.tsx::DeleteSelectionCallback"
|
|
595
|
+
}
|
|
596
|
+
}
|
|
597
|
+
},
|
|
598
|
+
"required": true,
|
|
599
|
+
"optional": false,
|
|
600
|
+
"docs": {
|
|
601
|
+
"tags": [],
|
|
602
|
+
"text": "This is a function provided by the developer for expanded the data of images that is double-clicked or entered."
|
|
631
603
|
}
|
|
632
604
|
},
|
|
633
605
|
"loadCallback": {
|
|
@@ -648,7 +620,7 @@ export class GxIdeWWImages {
|
|
|
648
620
|
"optional": false,
|
|
649
621
|
"docs": {
|
|
650
622
|
"tags": [],
|
|
651
|
-
"text": "
|
|
623
|
+
"text": "This is a function provided by the developer that return a list of images to populate the table of images."
|
|
652
624
|
}
|
|
653
625
|
},
|
|
654
626
|
"loadImageItemsCallback": {
|
|
@@ -669,7 +641,7 @@ export class GxIdeWWImages {
|
|
|
669
641
|
"optional": false,
|
|
670
642
|
"docs": {
|
|
671
643
|
"tags": [],
|
|
672
|
-
"text": "
|
|
644
|
+
"text": "This is a function provided by the developer that return a list of items of the image selected."
|
|
673
645
|
}
|
|
674
646
|
},
|
|
675
647
|
"newObjectCallback": {
|
|
@@ -690,7 +662,7 @@ export class GxIdeWWImages {
|
|
|
690
662
|
"optional": false,
|
|
691
663
|
"docs": {
|
|
692
664
|
"tags": [],
|
|
693
|
-
"text": "
|
|
665
|
+
"text": "This is a function provided by the developer for expanded the data of images that is double-clicked or entered."
|
|
694
666
|
}
|
|
695
667
|
},
|
|
696
668
|
"openSelectionCallback": {
|
|
@@ -711,7 +683,7 @@ export class GxIdeWWImages {
|
|
|
711
683
|
"optional": false,
|
|
712
684
|
"docs": {
|
|
713
685
|
"tags": [],
|
|
714
|
-
"text": "
|
|
686
|
+
"text": "This is a function provided by the developer for expanded the data of images that is double-clicked or entered."
|
|
715
687
|
}
|
|
716
688
|
},
|
|
717
689
|
"selectModuleCallback": {
|
|
@@ -732,7 +704,7 @@ export class GxIdeWWImages {
|
|
|
732
704
|
"optional": false,
|
|
733
705
|
"docs": {
|
|
734
706
|
"tags": [],
|
|
735
|
-
"text": "Callback invoked when
|
|
707
|
+
"text": "Callback invoked when the action is executed on the Module/Folder filter (button '...'). It returns the information of the selected object (id and name) or 'undefined' if it was canceled."
|
|
736
708
|
}
|
|
737
709
|
},
|
|
738
710
|
"selectionObjectChangedCallback": {
|
|
@@ -753,27 +725,9 @@ export class GxIdeWWImages {
|
|
|
753
725
|
"optional": false,
|
|
754
726
|
"docs": {
|
|
755
727
|
"tags": [],
|
|
756
|
-
"text": "
|
|
728
|
+
"text": "This is a function provided by the developer for expanded the data of images that is double-clicked or entered."
|
|
757
729
|
}
|
|
758
730
|
},
|
|
759
|
-
"secondaryFilter": {
|
|
760
|
-
"type": "boolean",
|
|
761
|
-
"mutable": false,
|
|
762
|
-
"complexType": {
|
|
763
|
-
"original": "false",
|
|
764
|
-
"resolved": "boolean",
|
|
765
|
-
"references": {}
|
|
766
|
-
},
|
|
767
|
-
"required": false,
|
|
768
|
-
"optional": false,
|
|
769
|
-
"docs": {
|
|
770
|
-
"tags": [],
|
|
771
|
-
"text": "Displays a secondary filter, used to filter over the filtered images"
|
|
772
|
-
},
|
|
773
|
-
"attribute": "secondary-filter",
|
|
774
|
-
"reflect": false,
|
|
775
|
-
"defaultValue": "false"
|
|
776
|
-
},
|
|
777
731
|
"shadow": {
|
|
778
732
|
"type": "boolean",
|
|
779
733
|
"mutable": false,
|
|
@@ -810,7 +764,7 @@ export class GxIdeWWImages {
|
|
|
810
764
|
"optional": false,
|
|
811
765
|
"docs": {
|
|
812
766
|
"tags": [],
|
|
813
|
-
"text": "
|
|
767
|
+
"text": "The styles render in the filter style selector"
|
|
814
768
|
}
|
|
815
769
|
},
|
|
816
770
|
"types": {
|
|
@@ -831,28 +785,21 @@ export class GxIdeWWImages {
|
|
|
831
785
|
"optional": false,
|
|
832
786
|
"docs": {
|
|
833
787
|
"tags": [],
|
|
834
|
-
"text": "
|
|
788
|
+
"text": "The types render in the filter type selector"
|
|
835
789
|
}
|
|
836
790
|
}
|
|
837
791
|
};
|
|
838
792
|
}
|
|
839
793
|
static get states() {
|
|
840
794
|
return {
|
|
841
|
-
"
|
|
842
|
-
"
|
|
843
|
-
"languagesComboBoxModel": {},
|
|
844
|
-
"layersComboBoxModel": {},
|
|
845
|
-
"stylesComboBoxModel": {},
|
|
846
|
-
"filterSidebarExpanded": {},
|
|
847
|
-
"afterCurrentValue": {},
|
|
848
|
-
"filterAfterOptions": {},
|
|
849
|
-
"filterImagesInputValue": {},
|
|
795
|
+
"filtersHidden": {},
|
|
796
|
+
"filterAfterType": {},
|
|
850
797
|
"filterModified": {},
|
|
851
|
-
"filteredImages": {},
|
|
852
798
|
"images": {},
|
|
799
|
+
"filteredImages": {},
|
|
853
800
|
"imagesSelectedItems": {},
|
|
854
801
|
"selectedObjectsIds": {},
|
|
855
|
-
"
|
|
802
|
+
"filterImagesInputValue": {}
|
|
856
803
|
};
|
|
857
804
|
}
|
|
858
805
|
static get events() {
|
|
@@ -864,7 +811,7 @@ export class GxIdeWWImages {
|
|
|
864
811
|
"composed": true,
|
|
865
812
|
"docs": {
|
|
866
813
|
"tags": [],
|
|
867
|
-
"text": "
|
|
814
|
+
"text": "This event is emitted once just after the component is fully loaded and the first render() occurs."
|
|
868
815
|
},
|
|
869
816
|
"complexType": {
|
|
870
817
|
"original": "boolean",
|
|
@@ -893,6 +840,23 @@ export class GxIdeWWImages {
|
|
|
893
840
|
}
|
|
894
841
|
static get methods() {
|
|
895
842
|
return {
|
|
843
|
+
"validate": {
|
|
844
|
+
"complexType": {
|
|
845
|
+
"signature": "() => Promise<boolean>",
|
|
846
|
+
"parameters": [],
|
|
847
|
+
"references": {
|
|
848
|
+
"Promise": {
|
|
849
|
+
"location": "global",
|
|
850
|
+
"id": "global::Promise"
|
|
851
|
+
}
|
|
852
|
+
},
|
|
853
|
+
"return": "Promise<boolean>"
|
|
854
|
+
},
|
|
855
|
+
"docs": {
|
|
856
|
+
"text": "Validate necessary data input",
|
|
857
|
+
"tags": []
|
|
858
|
+
}
|
|
859
|
+
},
|
|
896
860
|
"reload": {
|
|
897
861
|
"complexType": {
|
|
898
862
|
"signature": "() => Promise<void>",
|
|
@@ -906,7 +870,7 @@ export class GxIdeWWImages {
|
|
|
906
870
|
"return": "Promise<void>"
|
|
907
871
|
},
|
|
908
872
|
"docs": {
|
|
909
|
-
"text": "
|
|
873
|
+
"text": "This method reload the view, refreshing the filters and the table of images.",
|
|
910
874
|
"tags": []
|
|
911
875
|
}
|
|
912
876
|
}
|
|
@@ -915,23 +879,8 @@ export class GxIdeWWImages {
|
|
|
915
879
|
static get elementRef() { return "el"; }
|
|
916
880
|
static get watchers() {
|
|
917
881
|
return [{
|
|
918
|
-
"propName": "
|
|
919
|
-
"methodName": "
|
|
920
|
-
}, {
|
|
921
|
-
"propName": "categories",
|
|
922
|
-
"methodName": "categoriesChanged"
|
|
923
|
-
}, {
|
|
924
|
-
"propName": "densities",
|
|
925
|
-
"methodName": "densitiesChanged"
|
|
926
|
-
}, {
|
|
927
|
-
"propName": "languages",
|
|
928
|
-
"methodName": "languagesChanged"
|
|
929
|
-
}, {
|
|
930
|
-
"propName": "layers",
|
|
931
|
-
"methodName": "layersChanged"
|
|
932
|
-
}, {
|
|
933
|
-
"propName": "styles",
|
|
934
|
-
"methodName": "stylesChanged"
|
|
882
|
+
"propName": "filtersHidden",
|
|
883
|
+
"methodName": "filtersHiddenHandler"
|
|
935
884
|
}];
|
|
936
885
|
}
|
|
937
886
|
static get listeners() {
|
|
@@ -944,5 +893,4 @@ export class GxIdeWWImages {
|
|
|
944
893
|
}];
|
|
945
894
|
}
|
|
946
895
|
}
|
|
947
|
-
_GxIdeWWImages__componentLocale = new WeakMap(), _GxIdeWWImages_filterInitialData = new WeakMap(), _GxIdeWWImages_renderedFirstTime = new WeakMap(), _GxIdeWWImages_imagesMap = new WeakMap(), _GxIdeWWImages_chGridEl = new WeakMap(), _GxIdeWWImages_filterAfterTypeEl = new WeakMap(), _GxIdeWWImages_filterAllDescendantsEl = new WeakMap(), _GxIdeWWImages_filterCategoryEl = new WeakMap(), _GxIdeWWImages_filterDensityEl = new WeakMap(), _GxIdeWWImages_filterLanguageEl = new WeakMap(), _GxIdeWWImages_filterLayerEl = new WeakMap(), _GxIdeWWImages_filterModifiedDateEl = new WeakMap(), _GxIdeWWImages_filterModuleEl = new WeakMap(), _GxIdeWWImages_filterNameEl = new WeakMap(), _GxIdeWWImages_filterSearchContentsEl = new WeakMap(), _GxIdeWWImages_filterStyleEl = new WeakMap(), _GxIdeWWImages_filterUserEl = new WeakMap(), _GxIdeWWImages_deleteSelectionCallbackHandler = new WeakMap(), _GxIdeWWImages_deselectAll = new WeakMap(), _GxIdeWWImages_filterAfterTypeChangeHandler = new WeakMap(), _GxIdeWWImages_filterImagesInformationHandler = new WeakMap(), _GxIdeWWImages_filterInputHandler = new WeakMap(), _GxIdeWWImages_toggleFilterButtonClickedHandler = new WeakMap(), _GxIdeWWImages_getImages = new WeakMap(), _GxIdeWWImages_getToday = new WeakMap(), _GxIdeWWImages_listenChanges = new WeakMap(), _GxIdeWWImages_newObjectCallbackHandler = new WeakMap(), _GxIdeWWImages_openSelectionCallBackHandler = new WeakMap(), _GxIdeWWImages_renderHeader = new WeakMap(), _GxIdeWWImages_renderFilter = new WeakMap(), _GxIdeWWImages_renderImages = new WeakMap(), _GxIdeWWImages_renderImagesData = new WeakMap(), _GxIdeWWImages_resetFilterHandler = new WeakMap(), _GxIdeWWImages_saveInitialFilterData = new WeakMap(), _GxIdeWWImages_selectAll = new WeakMap();
|
|
948
896
|
//# sourceMappingURL=ww-images.js.map
|