@genexus/genexus-ide-ui 2.0.0 → 2.1.1
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/{common-9020d675.js → common-82ec668f.js} +1 -26
- package/dist/cjs/common-82ec668f.js.map +1 -0
- package/dist/cjs/genexus-ide-ui.cjs.js +1 -1
- package/dist/cjs/gx-ide-comments-viewer.cjs.entry.js +1 -1
- package/dist/cjs/gx-ide-manage-module-references.cjs.entry.js +1 -1
- package/dist/cjs/gx-ide-new-environment.cjs.entry.js +2 -2
- package/dist/cjs/gx-ide-new-kb.cjs.entry.js +2 -2
- package/dist/cjs/gx-ide-object-selector.cjs.entry.js +1 -1
- package/dist/cjs/gx-ide-splash.cjs.entry.js +1 -1
- package/dist/cjs/gx-ide-start-page.cjs.entry.js +1 -1
- package/dist/cjs/gx-ide-team-dev-bring-changes.cjs.entry.js +2 -2
- package/dist/cjs/gx-ide-team-dev-commit.cjs.entry.js +2 -2
- package/dist/cjs/gx-ide-team-dev-history.cjs.entry.js +1 -1
- package/dist/cjs/gx-ide-team-dev-update-partial-selection.cjs.entry.js +1 -1
- package/dist/cjs/gx-ide-team-dev-update.cjs.entry.js +2 -2
- package/dist/cjs/gx-ide-ww-files.cjs.entry.js +1 -1
- package/dist/cjs/gx-ide-ww-images.cjs.entry.js +604 -283
- package/dist/cjs/gx-ide-ww-images.cjs.entry.js.map +1 -1
- package/dist/cjs/{helpers-b1b58657.js → helpers-bb6622f5.js} +1 -7
- package/dist/cjs/helpers-bb6622f5.js.map +1 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{tabular-grid-render-80aa5fd2.js → tabular-grid-render-96542933.js} +2 -2
- package/dist/cjs/{tabular-grid-render-80aa5fd2.js.map → tabular-grid-render-96542933.js.map} +1 -1
- package/dist/collection/components/ww-images/gx-ide-assets/ww-images/langs/ww-images.lang.en.json +11 -4
- package/dist/collection/components/ww-images/gx-ide-assets/ww-images/langs/ww-images.lang.ja.json +11 -4
- package/dist/collection/components/ww-images/gx-ide-assets/ww-images/langs/ww-images.lang.zh.json +45 -38
- package/dist/collection/components/ww-images/helpers.js +14 -0
- package/dist/collection/components/ww-images/helpers.js.map +1 -0
- package/dist/collection/components/ww-images/ww-images.css +134 -247
- package/dist/collection/components/ww-images/ww-images.js +682 -490
- package/dist/collection/components/ww-images/ww-images.js.map +1 -1
- package/dist/components/common.js +1 -25
- package/dist/components/common.js.map +1 -1
- package/dist/components/gx-ide-ww-images.js +650 -303
- package/dist/components/gx-ide-ww-images.js.map +1 -1
- package/dist/components/helpers.js +1 -6
- package/dist/components/helpers.js.map +1 -1
- package/dist/esm/{common-074a209e.js → common-ceaf354a.js} +2 -26
- package/dist/esm/common-ceaf354a.js.map +1 -0
- package/dist/esm/genexus-ide-ui.js +1 -1
- package/dist/esm/gx-ide-comments-viewer.entry.js +1 -1
- package/dist/esm/gx-ide-manage-module-references.entry.js +1 -1
- package/dist/esm/gx-ide-new-environment.entry.js +2 -2
- package/dist/esm/gx-ide-new-kb.entry.js +2 -2
- package/dist/esm/gx-ide-object-selector.entry.js +1 -1
- package/dist/esm/gx-ide-splash.entry.js +1 -1
- package/dist/esm/gx-ide-start-page.entry.js +1 -1
- package/dist/esm/gx-ide-team-dev-bring-changes.entry.js +2 -2
- package/dist/esm/gx-ide-team-dev-commit.entry.js +2 -2
- package/dist/esm/gx-ide-team-dev-history.entry.js +1 -1
- package/dist/esm/gx-ide-team-dev-update-partial-selection.entry.js +1 -1
- package/dist/esm/gx-ide-team-dev-update.entry.js +2 -2
- package/dist/esm/gx-ide-ww-files.entry.js +1 -1
- package/dist/esm/gx-ide-ww-images.entry.js +605 -284
- package/dist/esm/gx-ide-ww-images.entry.js.map +1 -1
- package/dist/esm/{helpers-7800bea2.js → helpers-b443f9e9.js} +2 -7
- package/dist/esm/helpers-b443f9e9.js.map +1 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{tabular-grid-render-12c1cc4b.js → tabular-grid-render-adb3f7e5.js} +2 -2
- package/dist/esm/{tabular-grid-render-12c1cc4b.js.map → tabular-grid-render-adb3f7e5.js.map} +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 +11 -4
- package/dist/genexus-ide-ui/gx-ide-assets/ww-images/langs/ww-images.lang.ja.json +11 -4
- package/dist/genexus-ide-ui/gx-ide-assets/ww-images/langs/ww-images.lang.zh.json +45 -38
- package/dist/genexus-ide-ui/{p-dc399624.entry.js → p-1356ec09.entry.js} +3 -3
- package/dist/genexus-ide-ui/{p-c51f87fb.entry.js → p-18c3c961.entry.js} +2 -2
- package/dist/genexus-ide-ui/{p-c583252c.entry.js → p-1d3da80d.entry.js} +3 -3
- package/dist/genexus-ide-ui/{p-57c550b7.entry.js → p-21775439.entry.js} +2 -2
- package/dist/genexus-ide-ui/{p-d08fc16d.entry.js → p-27786355.entry.js} +6 -6
- package/dist/genexus-ide-ui/{p-c1f4458c.entry.js → p-2a59b523.entry.js} +2 -2
- package/dist/genexus-ide-ui/{p-5bab65ea.js → p-4d330836.js} +13 -19
- package/dist/genexus-ide-ui/p-4d330836.js.map +1 -0
- package/dist/genexus-ide-ui/p-520c3763.entry.js +936 -0
- package/dist/genexus-ide-ui/p-520c3763.entry.js.map +1 -0
- package/dist/genexus-ide-ui/{p-e5e38589.entry.js → p-5929f575.entry.js} +2 -2
- package/dist/genexus-ide-ui/{p-e8cd797d.entry.js → p-6b430ac1.entry.js} +3 -3
- package/dist/genexus-ide-ui/{p-70707166.entry.js → p-70cd77bc.entry.js} +3 -3
- package/dist/genexus-ide-ui/{p-401989bf.entry.js → p-750eb88a.entry.js} +2 -2
- package/dist/genexus-ide-ui/{p-ddfba1c8.entry.js → p-885e5d1c.entry.js} +2 -2
- package/dist/genexus-ide-ui/p-91e2ebb0.js +86 -0
- package/dist/genexus-ide-ui/p-91e2ebb0.js.map +1 -0
- package/dist/genexus-ide-ui/{p-2eec8e65.entry.js → p-b44a875d.entry.js} +3 -3
- package/dist/genexus-ide-ui/{p-532c2e0f.entry.js → p-ca47bb29.entry.js} +2 -2
- package/dist/genexus-ide-ui/{p-528ba8bb.js → p-e2b6d62b.js} +2 -2
- package/dist/types/components/ww-images/helpers.d.ts +3 -0
- package/dist/types/components/ww-images/ww-images.d.ts +116 -134
- package/dist/types/components.d.ts +31 -107
- package/package.json +1 -1
- package/dist/cjs/common-9020d675.js.map +0 -1
- package/dist/cjs/helpers-b1b58657.js.map +0 -1
- package/dist/esm/common-074a209e.js.map +0 -1
- package/dist/esm/helpers-7800bea2.js.map +0 -1
- package/dist/genexus-ide-ui/p-3f89ddf4.js +0 -133
- package/dist/genexus-ide-ui/p-3f89ddf4.js.map +0 -1
- package/dist/genexus-ide-ui/p-5bab65ea.js.map +0 -1
- package/dist/genexus-ide-ui/p-80c25124.entry.js +0 -610
- package/dist/genexus-ide-ui/p-80c25124.entry.js.map +0 -1
- /package/dist/genexus-ide-ui/{p-dc399624.entry.js.map → p-1356ec09.entry.js.map} +0 -0
- /package/dist/genexus-ide-ui/{p-c51f87fb.entry.js.map → p-18c3c961.entry.js.map} +0 -0
- /package/dist/genexus-ide-ui/{p-c583252c.entry.js.map → p-1d3da80d.entry.js.map} +0 -0
- /package/dist/genexus-ide-ui/{p-57c550b7.entry.js.map → p-21775439.entry.js.map} +0 -0
- /package/dist/genexus-ide-ui/{p-d08fc16d.entry.js.map → p-27786355.entry.js.map} +0 -0
- /package/dist/genexus-ide-ui/{p-c1f4458c.entry.js.map → p-2a59b523.entry.js.map} +0 -0
- /package/dist/genexus-ide-ui/{p-e5e38589.entry.js.map → p-5929f575.entry.js.map} +0 -0
- /package/dist/genexus-ide-ui/{p-e8cd797d.entry.js.map → p-6b430ac1.entry.js.map} +0 -0
- /package/dist/genexus-ide-ui/{p-70707166.entry.js.map → p-70cd77bc.entry.js.map} +0 -0
- /package/dist/genexus-ide-ui/{p-401989bf.entry.js.map → p-750eb88a.entry.js.map} +0 -0
- /package/dist/genexus-ide-ui/{p-ddfba1c8.entry.js.map → p-885e5d1c.entry.js.map} +0 -0
- /package/dist/genexus-ide-ui/{p-2eec8e65.entry.js.map → p-b44a875d.entry.js.map} +0 -0
- /package/dist/genexus-ide-ui/{p-532c2e0f.entry.js.map → p-ca47bb29.entry.js.map} +0 -0
- /package/dist/genexus-ide-ui/{p-528ba8bb.js.map → p-e2b6d62b.js.map} +0 -0
|
@@ -0,0 +1,936 @@
|
|
|
1
|
+
import { r as e, h as t, H as i, a as s } from "./p-9b9ccd0c.js";
|
|
2
|
+
|
|
3
|
+
import { g as a } from "./p-d42e842b.js";
|
|
4
|
+
|
|
5
|
+
import "./p-6534555e.js";
|
|
6
|
+
|
|
7
|
+
import "lit";
|
|
8
|
+
|
|
9
|
+
import "lit/directives/when.js";
|
|
10
|
+
|
|
11
|
+
import "lit/directives/if-defined.js";
|
|
12
|
+
|
|
13
|
+
import { F as n } from "./p-13feb5cf.js";
|
|
14
|
+
|
|
15
|
+
import { c as l } from "./p-c5196b3b.js";
|
|
16
|
+
|
|
17
|
+
import { f as r } from "./p-4d330836.js";
|
|
18
|
+
|
|
19
|
+
import { L as o } from "./p-311eedf3.js";
|
|
20
|
+
|
|
21
|
+
const mapOptionsToComboBoxItemModel = e => {
|
|
22
|
+
if (!e) {
|
|
23
|
+
return [];
|
|
24
|
+
}
|
|
25
|
+
return e.map((e => {
|
|
26
|
+
var t;
|
|
27
|
+
return {
|
|
28
|
+
value: e.id,
|
|
29
|
+
caption: e.label,
|
|
30
|
+
startImgSrc: (t = e.iconName) !== null && t !== void 0 ? t : ""
|
|
31
|
+
};
|
|
32
|
+
}));
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
const h = '/*@container queries*/\n/* hiChar styles\nFound on /common/helpers.tsx hiChar function is used to add a span/class to every character that matches a search value. It is used to help the user see why the filter results are filtered. The span/class on the characters are useless without proper styling.\n*/\n:host {\n container-type: inline-size;\n display: grid;\n block-size: 100%;\n overflow: auto;\n grid-template-rows: max-content 1fr max-content;\n}\n\n.section {\n display: contents;\n}\n\n.header {\n grid-template-areas: "name module-folder" "advanced-filter-accordion advanced-filter-accordion";\n grid-template-columns: 1fr 1fr;\n grid-auto-rows: max-content max-content;\n}\n\n.name {\n grid-area: name;\n}\n\n.module-folder {\n grid-area: module-folder;\n}\n\n.advanced-filter-accordion {\n grid-area: advanced-filter-accordion;\n}\n\n.main {\n --sidebar-width: 376px;\n display: grid;\n grid-template-columns: 1fr var(--sidebar-width);\n overflow: auto;\n padding-block-start: var(--size-16);\n}\n\n.main__grid {\n overflow: auto;\n position: relative;\n}\n\n.tabular-grid-ww-images {\n overflow: auto;\n border-inline-end: var(--section-common-border);\n}\n\nch-tabular-grid-rowset-empty {\n position: absolute;\n inset: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n inline-size: 100%;\n z-index: 1;\n}\n\n.main__aside {\n overflow: auto;\n display: grid;\n grid-template-rows: max-content 1fr;\n}\n\n.main__filter {\n display: grid;\n grid-auto-rows: max-content;\n grid-template-columns: 1fr 1fr 1fr;\n grid-template-areas: "category options after" "style language user" "density layer date-time" "search-by-contents search-by-contents button-reset";\n overflow: auto;\n}\n\n.category {\n grid-area: category;\n}\n\n.options {\n grid-area: options;\n}\n\n.after-date-time {\n grid-area: after;\n}\n\n.user {\n grid-area: user;\n}\n\n.date-time {\n grid-area: date-time;\n}\n\n.style {\n grid-area: style;\n}\n\n.language {\n grid-area: language;\n}\n\n.density {\n grid-area: density;\n}\n\n.layer {\n grid-area: layer;\n}\n\n.search-by-contents {\n grid-area: search-by-contents;\n}\n\n.button-reset {\n grid-area: button-reset;\n align-self: end;\n justify-self: end;\n}\n\n.main__images-container {\n display: grid;\n grid-template-columns: repeat(4, 1fr);\n gap: var(--size-8);\n position: relative;\n z-index: 1;\n}\n.main__images-container .figure {\n margin: 0;\n background-color: var(--color-accent-surface-elevation-2);\n display: grid;\n grid-template-rows: minmax(0, 1fr) max-content;\n gap: var(--size-4);\n padding: var(--size-8);\n border-radius: var(--size-4);\n opacity: 0;\n animation: fadeIn 300ms forwards;\n aspect-ratio: 1/1;\n}\n.main__images-container .figure__picture {\n display: flex;\n align-items: center;\n justify-content: center;\n min-block-size: 0;\n}\n.main__images-container .figure__img {\n display: block;\n max-inline-size: 100%;\n max-block-size: 100%;\n inline-size: auto;\n block-size: auto;\n object-fit: contain;\n}\n.main__images-container .figure__figcaption {\n text-align: center;\n font-size: var(--font-size-body-xs);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n inline-size: 100%;\n}\n\n.tabular-grid-ww-images ch-tabular-grid-cell:is(:nth-child(1), :nth-child(2), :nth-child(3), :nth-child(4), :nth-child(5), :nth-child(6), :nth-child(7)) {\n align-items: start;\n justify-content: start;\n display: inline-block;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n min-inline-size: 0;\n}\n@keyframes fadeIn {\n to {\n opacity: 1;\n }\n}\n@container (max-width: 992px) {\n .main {\n --sidebar-width: 288px;\n }\n\n .main__images-container {\n grid-template-columns: repeat(3, 1fr);\n }\n}\n@container (max-width: 768px) {\n .main {\n --sidebar-width: 200px;\n }\n\n .main__images-container {\n grid-template-columns: repeat(2, 1fr);\n }\n}\n@container (max-width: 640px) {\n .main {\n --sidebar-width: 112px;\n }\n\n .main__images-container {\n grid-template-columns: 1fr;\n }\n}';
|
|
36
|
+
|
|
37
|
+
var d = undefined && undefined.__classPrivateFieldGet || function(e, t, i, s) {
|
|
38
|
+
if (i === "a" && !s) throw new TypeError("Private accessor was defined without a getter");
|
|
39
|
+
if (typeof t === "function" ? e !== t || !s : !t.has(e)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
40
|
+
return i === "m" ? s : i === "a" ? s.call(e) : s ? s.value : t.get(e);
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
var c = undefined && undefined.__classPrivateFieldSet || function(e, t, i, s, a) {
|
|
44
|
+
if (s === "m") throw new TypeError("Private method is not writable");
|
|
45
|
+
if (s === "a" && !a) throw new TypeError("Private accessor was defined without a setter");
|
|
46
|
+
if (typeof t === "function" ? e !== t || !a : !t.has(e)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
47
|
+
return s === "a" ? a.call(e, i) : a ? a.value = i : t.set(e, i), i;
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
var f, u, m, g, b, p, y, w, v, k, C, x, M, _, W, V, z, I, D, T, j, S, F, N, A, L, E, U, P, $, H, q, B, G, R, X, Y, J, K, O, Q;
|
|
51
|
+
|
|
52
|
+
const Z = [ "resets/box-sizing", "components/accordion", "components/button", "components/checkbox", "components/combo-box", "components/edit", "components/icon", "components/tabular-grid", "components/sidebar", "utils/form", "utils/layout", "utils/typography", "utils/spacing", "chameleon/scrollbar" ];
|
|
53
|
+
|
|
54
|
+
const ee = "all-descendants";
|
|
55
|
+
|
|
56
|
+
const te = "modified";
|
|
57
|
+
|
|
58
|
+
let ie = null;
|
|
59
|
+
|
|
60
|
+
// icons
|
|
61
|
+
const se = a({
|
|
62
|
+
category: "gemini-tools",
|
|
63
|
+
name: "reset",
|
|
64
|
+
colorType: "interactive"
|
|
65
|
+
});
|
|
66
|
+
|
|
67
|
+
const ae = a({
|
|
68
|
+
category: "gemini-tools",
|
|
69
|
+
name: "search",
|
|
70
|
+
colorType: "neutral"
|
|
71
|
+
});
|
|
72
|
+
|
|
73
|
+
const ne = a({
|
|
74
|
+
category: "gemini-tools",
|
|
75
|
+
name: "notice",
|
|
76
|
+
colorType: "on-elevation"
|
|
77
|
+
});
|
|
78
|
+
|
|
79
|
+
const le = class {
|
|
80
|
+
constructor(i) {
|
|
81
|
+
e(this, i);
|
|
82
|
+
f.add(this);
|
|
83
|
+
/**
|
|
84
|
+
* The component hard-coded strings translations.
|
|
85
|
+
*/ u.set(this, void 0);
|
|
86
|
+
m.set(this, void 0);
|
|
87
|
+
g.set(this, []);
|
|
88
|
+
b.set(this, "advanced-filter");
|
|
89
|
+
p.set(this, new Map);
|
|
90
|
+
y.set(this, void 0);
|
|
91
|
+
// Only keep refs that are actually needed for operations (event listeners)
|
|
92
|
+
w.set(this, void 0);
|
|
93
|
+
/**
|
|
94
|
+
* Flag to prevent triggering #getImages on initial load
|
|
95
|
+
*/ v.set(this, true);
|
|
96
|
+
k.set(this, (() => {
|
|
97
|
+
this.deleteSelectionCallback(this.selectedObjectsIds);
|
|
98
|
+
}));
|
|
99
|
+
C.set(this, (() => {
|
|
100
|
+
d(this, y, "f").selectAllRows(false);
|
|
101
|
+
}));
|
|
102
|
+
/**
|
|
103
|
+
* Individual handler functions for each filter control
|
|
104
|
+
*/ x.set(this, (e => {
|
|
105
|
+
this.filterNameValue = e.detail || e.target.value;
|
|
106
|
+
}));
|
|
107
|
+
M.set(this, (e => {
|
|
108
|
+
this.filterSearchContentsValue = e.detail || e.target.value;
|
|
109
|
+
}));
|
|
110
|
+
_.set(this, (() => {
|
|
111
|
+
if (this.defaultCategory && this.categoriesComboBoxModel.length > 0) {
|
|
112
|
+
const e = this.categoriesComboBoxModel.some((e => e.value === this.defaultCategory));
|
|
113
|
+
if (e) {
|
|
114
|
+
this.filterCategoryValue = this.defaultCategory;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
}));
|
|
118
|
+
W.set(this, (e => {
|
|
119
|
+
this.filterCategoryValue = e.detail;
|
|
120
|
+
}));
|
|
121
|
+
V.set(this, (e => {
|
|
122
|
+
this.filterAllDescendantsValue = e.detail === ee;
|
|
123
|
+
}));
|
|
124
|
+
z.set(this, (e => {
|
|
125
|
+
this.filterAfterTypeValue = e.detail;
|
|
126
|
+
this.afterCurrentValue = e.detail;
|
|
127
|
+
}));
|
|
128
|
+
I.set(this, (e => {
|
|
129
|
+
this.filterUserValue = e.detail || e.target.value;
|
|
130
|
+
}));
|
|
131
|
+
D.set(this, (e => {
|
|
132
|
+
this.filterModifiedDateValue = e.target.value;
|
|
133
|
+
}));
|
|
134
|
+
T.set(this, (e => {
|
|
135
|
+
this.filterStyleValue = e.detail;
|
|
136
|
+
}));
|
|
137
|
+
j.set(this, (e => {
|
|
138
|
+
this.filterLanguageValue = e.detail;
|
|
139
|
+
}));
|
|
140
|
+
S.set(this, (e => {
|
|
141
|
+
this.filterDensityValue = e.detail;
|
|
142
|
+
}));
|
|
143
|
+
F.set(this, (e => {
|
|
144
|
+
this.filterLayerValue = e.detail;
|
|
145
|
+
}));
|
|
146
|
+
N.set(this, (() => {
|
|
147
|
+
// Module change is handled via event listener, but we update state
|
|
148
|
+
if (d(this, w, "f")) {
|
|
149
|
+
this.filterModuleValue = d(this, w, "f").value;
|
|
150
|
+
}
|
|
151
|
+
}));
|
|
152
|
+
A.set(this, (() => {
|
|
153
|
+
// Copy images from server to tabularGridData (will be sorted before rendering)
|
|
154
|
+
this.tabularGridData = [ ...this.images ];
|
|
155
|
+
}));
|
|
156
|
+
L.set(this, (() => {
|
|
157
|
+
d(this, p, "f").clear();
|
|
158
|
+
const e = {
|
|
159
|
+
name: this.filterNameValue,
|
|
160
|
+
searchContents: this.filterSearchContentsValue,
|
|
161
|
+
category: this.filterCategoryValue,
|
|
162
|
+
parent: this.filterModuleValue ? this.filterModuleValue.id : null,
|
|
163
|
+
allDescendants: this.filterAllDescendantsValue,
|
|
164
|
+
modifiedAfter: this.filterAfterTypeValue,
|
|
165
|
+
modifiedBy: this.filterUserValue,
|
|
166
|
+
modifiedDate: this.filterModifiedDateValue ? new Date(this.filterModifiedDateValue) : undefined,
|
|
167
|
+
style: this.filterStyleValue,
|
|
168
|
+
language: this.filterLanguageValue,
|
|
169
|
+
density: this.filterDensityValue,
|
|
170
|
+
layer: this.filterLayerValue
|
|
171
|
+
};
|
|
172
|
+
this.loadCallback(e).then((e => {
|
|
173
|
+
this.images = e;
|
|
174
|
+
this.selectedObjectsIds = [];
|
|
175
|
+
d(this, C, "f").call(this);
|
|
176
|
+
d(this, A, "f").call(this);
|
|
177
|
+
}));
|
|
178
|
+
}));
|
|
179
|
+
E.set(this, (() => {
|
|
180
|
+
const e = new Date;
|
|
181
|
+
const t = e.toISOString().split("T")[0];
|
|
182
|
+
const i = e.toISOString().split("T")[1].slice(0, 5);
|
|
183
|
+
// Only take 'HH:MM' part
|
|
184
|
+
return `${t}T${i}`;
|
|
185
|
+
}));
|
|
186
|
+
U.set(this, (() => {
|
|
187
|
+
/* module/folder */
|
|
188
|
+
d(this, w, "f").addEventListener("valueChanged", (() => {
|
|
189
|
+
d(this, N, "f").call(this);
|
|
190
|
+
}));
|
|
191
|
+
// for grid selection
|
|
192
|
+
d(this, y, "f").addEventListener("selectionChanged", (e => {
|
|
193
|
+
this.selectedObjectsIds = e.detail.rowsId;
|
|
194
|
+
this.selectionObjectChangedCallback(this.selectedObjectsIds);
|
|
195
|
+
if (this.selectedObjectsIds.length === 0) {
|
|
196
|
+
this.imagesSelectedItems = [];
|
|
197
|
+
return;
|
|
198
|
+
}
|
|
199
|
+
// Collect cached items immediately
|
|
200
|
+
const t = [];
|
|
201
|
+
const i = [];
|
|
202
|
+
this.selectedObjectsIds.forEach((e => {
|
|
203
|
+
if (d(this, p, "f").has(e)) {
|
|
204
|
+
const i = d(this, p, "f").get(e);
|
|
205
|
+
if (i) {
|
|
206
|
+
t.push(...i);
|
|
207
|
+
}
|
|
208
|
+
} else {
|
|
209
|
+
i.push(e);
|
|
210
|
+
}
|
|
211
|
+
}));
|
|
212
|
+
// If all items were cached, update immediately
|
|
213
|
+
if (i.length === 0) {
|
|
214
|
+
this.imagesSelectedItems = t;
|
|
215
|
+
return;
|
|
216
|
+
}
|
|
217
|
+
// Store current selection to verify later (prevents race conditions)
|
|
218
|
+
const s = [ ...this.selectedObjectsIds ].sort().join(",");
|
|
219
|
+
// Load missing items and combine with cached ones
|
|
220
|
+
// loadImageItemsCallback must be invoked the first time a user selects an image
|
|
221
|
+
const a = i.map((e => this.loadImageItemsCallback(e).then((t => {
|
|
222
|
+
// Cache the items for future use
|
|
223
|
+
d(this, p, "f").set(e, t);
|
|
224
|
+
return t;
|
|
225
|
+
}))));
|
|
226
|
+
Promise.all(a).then((e => {
|
|
227
|
+
// Verify that selection hasn't changed while loading
|
|
228
|
+
const i = [ ...this.selectedObjectsIds ].sort().join(",");
|
|
229
|
+
if (s !== i) {
|
|
230
|
+
// Selection changed, ignore this result
|
|
231
|
+
return;
|
|
232
|
+
}
|
|
233
|
+
// Combine cached items with newly loaded items
|
|
234
|
+
const a = [ ...t ];
|
|
235
|
+
e.forEach((e => {
|
|
236
|
+
a.push(...e);
|
|
237
|
+
}));
|
|
238
|
+
this.imagesSelectedItems = a;
|
|
239
|
+
}));
|
|
240
|
+
}));
|
|
241
|
+
d(this, y, "f").addEventListener("rowDoubleClicked", (() => {
|
|
242
|
+
d(this, B, "f").call(this);
|
|
243
|
+
}));
|
|
244
|
+
d(this, y, "f").addEventListener("rowContextMenu", (e => {
|
|
245
|
+
e.preventDefault();
|
|
246
|
+
e.stopPropagation();
|
|
247
|
+
this.contextMenuCallback({
|
|
248
|
+
selection: e.detail.selectedRowsId,
|
|
249
|
+
clientX: e.detail.clientX,
|
|
250
|
+
clientY: e.detail.clientY
|
|
251
|
+
});
|
|
252
|
+
}));
|
|
253
|
+
}));
|
|
254
|
+
/**
|
|
255
|
+
* Sorts images based on the current order criteria
|
|
256
|
+
*/ $.set(this, ((e, t) => {
|
|
257
|
+
if (this.order.orderCriteria) {
|
|
258
|
+
const i = d(this, f, "m", P).call(this, e, this.order.orderCriteria).toUpperCase();
|
|
259
|
+
const s = d(this, f, "m", P).call(this, t, this.order.orderCriteria).toUpperCase();
|
|
260
|
+
if (i < s) {
|
|
261
|
+
return this.order.ascending ? -1 : 1;
|
|
262
|
+
}
|
|
263
|
+
if (i > s) {
|
|
264
|
+
return this.order.ascending ? 1 : -1;
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
return 0;
|
|
268
|
+
}));
|
|
269
|
+
/**
|
|
270
|
+
* Handles column sort changes
|
|
271
|
+
*/ H.set(this, (e => {
|
|
272
|
+
const {columnId: t, sortDirection: i} = e.detail;
|
|
273
|
+
this.order = {
|
|
274
|
+
orderCriteria: t,
|
|
275
|
+
ascending: i === "asc"
|
|
276
|
+
};
|
|
277
|
+
}));
|
|
278
|
+
q.set(this, (() => {
|
|
279
|
+
this.newObjectCallback();
|
|
280
|
+
}));
|
|
281
|
+
B.set(this, (() => {
|
|
282
|
+
this.openSelectionCallback(this.selectedObjectsIds);
|
|
283
|
+
}));
|
|
284
|
+
G.set(this, (e => {
|
|
285
|
+
this.enabledModifiedControls = e.detail === te;
|
|
286
|
+
}));
|
|
287
|
+
R.set(this, (() => [ t("div", {
|
|
288
|
+
// name
|
|
289
|
+
class: "field field-block name"
|
|
290
|
+
}, t("label", {
|
|
291
|
+
class: "label",
|
|
292
|
+
htmlFor: "filter-name"
|
|
293
|
+
}, d(this, u, "f").filter.name), t("ch-edit", {
|
|
294
|
+
id: "filter-name",
|
|
295
|
+
class: "input",
|
|
296
|
+
autoFocus: true,
|
|
297
|
+
value: this.filterNameValue,
|
|
298
|
+
debounce: l.inputDebounce,
|
|
299
|
+
onInput: d(this, x, "f")
|
|
300
|
+
})), t("div", {
|
|
301
|
+
class: "field field-block module-folder"
|
|
302
|
+
}, t("label", {
|
|
303
|
+
class: "label",
|
|
304
|
+
htmlFor: "module-folder"
|
|
305
|
+
}, d(this, u, "f").filter.moduleFolder), t("gx-ide-entity-selector", {
|
|
306
|
+
// module/folder
|
|
307
|
+
id: "module/folder",
|
|
308
|
+
labelPosition: "none",
|
|
309
|
+
value: this.filterModuleValue,
|
|
310
|
+
defaultValue: this.defaultModule,
|
|
311
|
+
selectEntityCallback: this.selectModuleCallback,
|
|
312
|
+
ref: e => c(this, w, e, "f")
|
|
313
|
+
})), t("ch-accordion-render", {
|
|
314
|
+
// modified
|
|
315
|
+
class: "accordion-outlined advanced-filter-accordion",
|
|
316
|
+
model: d(this, g, "f")
|
|
317
|
+
}, t("div", {
|
|
318
|
+
slot: d(this, b, "f"),
|
|
319
|
+
class: "spacing-body"
|
|
320
|
+
}, t("div", {
|
|
321
|
+
class: "main__filter field-group scrollable"
|
|
322
|
+
}, t("div", {
|
|
323
|
+
// category
|
|
324
|
+
class: "field field-block category"
|
|
325
|
+
}, t("label", {
|
|
326
|
+
class: "label",
|
|
327
|
+
htmlFor: "filter-category"
|
|
328
|
+
}, d(this, u, "f").filter.category), t("ch-combo-box-render", {
|
|
329
|
+
id: "filter-category",
|
|
330
|
+
class: "combo-box",
|
|
331
|
+
value: this.filterCategoryValue,
|
|
332
|
+
disabled: !this.categories,
|
|
333
|
+
model: this.categoriesComboBoxModel,
|
|
334
|
+
onInput: d(this, W, "f")
|
|
335
|
+
})), t("div", {
|
|
336
|
+
// category
|
|
337
|
+
class: "field-group options"
|
|
338
|
+
}, t("label", {
|
|
339
|
+
class: "label",
|
|
340
|
+
htmlFor: "filter-category"
|
|
341
|
+
}, d(this, u, "f").filter.options), t("div", {
|
|
342
|
+
// options
|
|
343
|
+
class: "field field-inline"
|
|
344
|
+
}, t("ch-checkbox", {
|
|
345
|
+
class: "checkbox all-descendants",
|
|
346
|
+
caption: d(this, u, "f").filter.allDescendants,
|
|
347
|
+
checkedValue: ee,
|
|
348
|
+
value: this.filterAllDescendantsValue ? ee : undefined,
|
|
349
|
+
onInput: d(this, V, "f")
|
|
350
|
+
}), t("ch-checkbox", {
|
|
351
|
+
class: "checkbox modified",
|
|
352
|
+
caption: d(this, u, "f").filter.modified,
|
|
353
|
+
checkedValue: te,
|
|
354
|
+
onInput: d(this, G, "f")
|
|
355
|
+
}))), t("div", {
|
|
356
|
+
// after
|
|
357
|
+
class: "field field-block after-date-time"
|
|
358
|
+
}, t("label", {
|
|
359
|
+
class: {
|
|
360
|
+
label: true,
|
|
361
|
+
"label--disabled": !this.enabledModifiedControls
|
|
362
|
+
},
|
|
363
|
+
htmlFor: "filter-after-type"
|
|
364
|
+
}, d(this, u, "f").filter.afterLabel), t("ch-combo-box-render", {
|
|
365
|
+
id: "filter-after-type",
|
|
366
|
+
class: "combo-box",
|
|
367
|
+
value: this.filterAfterTypeValue,
|
|
368
|
+
disabled: !this.enabledModifiedControls,
|
|
369
|
+
model: this.filterAfterOptions,
|
|
370
|
+
onInput: d(this, z, "f")
|
|
371
|
+
})), t("div", {
|
|
372
|
+
// user
|
|
373
|
+
class: "field field-block user"
|
|
374
|
+
}, t("label", {
|
|
375
|
+
class: {
|
|
376
|
+
label: true,
|
|
377
|
+
"label--disabled": !this.enabledModifiedControls
|
|
378
|
+
},
|
|
379
|
+
htmlFor: "filter-user"
|
|
380
|
+
}, d(this, u, "f").filter.user), t("ch-edit", {
|
|
381
|
+
id: "filter-user",
|
|
382
|
+
value: this.filterUserValue,
|
|
383
|
+
class: "input",
|
|
384
|
+
disabled: !this.enabledModifiedControls,
|
|
385
|
+
debounce: l.inputDebounce,
|
|
386
|
+
onInput: d(this, I, "f")
|
|
387
|
+
})), t("div", {
|
|
388
|
+
// date/time
|
|
389
|
+
class: "field field-block date-time"
|
|
390
|
+
}, t("label", {
|
|
391
|
+
class: {
|
|
392
|
+
label: true,
|
|
393
|
+
"label--disabled": this.afterCurrentValue !== n.DATE_TIME
|
|
394
|
+
},
|
|
395
|
+
htmlFor: "modified-date"
|
|
396
|
+
}, d(this, u, "f").filter.dateTime), t("input", {
|
|
397
|
+
type: "datetime-local",
|
|
398
|
+
class: "input ",
|
|
399
|
+
id: "modified-date",
|
|
400
|
+
name: "modifiedDate",
|
|
401
|
+
value: this.filterModifiedDateValue,
|
|
402
|
+
max: ie,
|
|
403
|
+
disabled: this.afterCurrentValue !== n.DATE_TIME,
|
|
404
|
+
onInput: d(this, D, "f")
|
|
405
|
+
})), t("div", {
|
|
406
|
+
// style
|
|
407
|
+
class: "field field-block style"
|
|
408
|
+
}, t("label", {
|
|
409
|
+
class: "label",
|
|
410
|
+
htmlFor: "filter-style"
|
|
411
|
+
}, d(this, u, "f").filter.style), t("ch-combo-box-render", {
|
|
412
|
+
id: "filter-style",
|
|
413
|
+
class: "combo-box",
|
|
414
|
+
value: this.filterStyleValue,
|
|
415
|
+
disabled: !this.styles,
|
|
416
|
+
model: this.stylesComboBoxModel,
|
|
417
|
+
onInput: d(this, T, "f")
|
|
418
|
+
})), t("div", {
|
|
419
|
+
// language
|
|
420
|
+
class: "field field-block language"
|
|
421
|
+
}, t("label", {
|
|
422
|
+
class: "label",
|
|
423
|
+
htmlFor: "filter-language"
|
|
424
|
+
}, d(this, u, "f").filter.language), t("ch-combo-box-render", {
|
|
425
|
+
id: "filter-language",
|
|
426
|
+
class: "combo-box",
|
|
427
|
+
value: this.filterLanguageValue,
|
|
428
|
+
disabled: !this.languages,
|
|
429
|
+
model: this.languagesComboBoxModel,
|
|
430
|
+
onInput: d(this, j, "f")
|
|
431
|
+
})), t("div", {
|
|
432
|
+
// density
|
|
433
|
+
class: "field field-block"
|
|
434
|
+
}, t("label", {
|
|
435
|
+
class: "label",
|
|
436
|
+
htmlFor: "filter-density"
|
|
437
|
+
}, d(this, u, "f").filter.density), t("ch-combo-box-render", {
|
|
438
|
+
id: "filter-density",
|
|
439
|
+
class: "combo-box",
|
|
440
|
+
value: this.filterDensityValue,
|
|
441
|
+
disabled: !this.densities,
|
|
442
|
+
model: this.densitiesComboBoxModel,
|
|
443
|
+
onInput: d(this, S, "f")
|
|
444
|
+
})), t("div", {
|
|
445
|
+
// layer
|
|
446
|
+
class: "field field-block"
|
|
447
|
+
}, t("label", {
|
|
448
|
+
class: "label",
|
|
449
|
+
htmlFor: "filter-layer"
|
|
450
|
+
}, d(this, u, "f").filter.layer), t("ch-combo-box-render", {
|
|
451
|
+
id: "filter-layer",
|
|
452
|
+
class: "combo-box",
|
|
453
|
+
value: this.filterLayerValue,
|
|
454
|
+
disabled: !this.layers,
|
|
455
|
+
model: this.layersComboBoxModel,
|
|
456
|
+
onInput: d(this, F, "f")
|
|
457
|
+
})), t("div", {
|
|
458
|
+
// search contents
|
|
459
|
+
class: "field field-block search-by-contents"
|
|
460
|
+
}, t("label", {
|
|
461
|
+
class: "label",
|
|
462
|
+
htmlFor: "search-input"
|
|
463
|
+
}, d(this, u, "f").filter.search), t("ch-edit", {
|
|
464
|
+
id: "search-input",
|
|
465
|
+
debounce: l.inputDebounce,
|
|
466
|
+
class: "input",
|
|
467
|
+
value: this.filterSearchContentsValue,
|
|
468
|
+
placeholder: d(this, u, "f").filter.searchContentsPlaceholder,
|
|
469
|
+
onInput: d(this, M, "f"),
|
|
470
|
+
startImgSrc: ae,
|
|
471
|
+
type: "search"
|
|
472
|
+
})), t("button", {
|
|
473
|
+
// reset filter button
|
|
474
|
+
class: "button-secondary button-icon-and-text button-reset",
|
|
475
|
+
onClick: d(this, K, "f")
|
|
476
|
+
}, t("ch-image", {
|
|
477
|
+
class: "icon-sm",
|
|
478
|
+
src: se,
|
|
479
|
+
type: "mask"
|
|
480
|
+
}), d(this, u, "f").filter.resetFilters)))) ]));
|
|
481
|
+
X.set(this, (() => t("div", {
|
|
482
|
+
class: "sidebar-container scrollable"
|
|
483
|
+
}, d(this, Y, "f").call(this))));
|
|
484
|
+
Y.set(this, (() =>
|
|
485
|
+
/* tiles */ t("div", {
|
|
486
|
+
class: "main__images-container spacing-body-inline"
|
|
487
|
+
}, this.imagesSelectedItems.map((e => t("figure", {
|
|
488
|
+
class: "figure"
|
|
489
|
+
}, t("picture", {
|
|
490
|
+
class: "figure__picture"
|
|
491
|
+
}, t("img", {
|
|
492
|
+
class: "figure__img",
|
|
493
|
+
src: e.url,
|
|
494
|
+
alt: e.name
|
|
495
|
+
})), t("figcaption", {
|
|
496
|
+
class: "figure__figcaption"
|
|
497
|
+
}, e.name)))))));
|
|
498
|
+
J.set(this, (() => {
|
|
499
|
+
const e = "minmax(max-content, auto)";
|
|
500
|
+
return t("div", {
|
|
501
|
+
class: {
|
|
502
|
+
"field-group": true,
|
|
503
|
+
main__grid: true
|
|
504
|
+
}
|
|
505
|
+
}, t("ch-tabular-grid", {
|
|
506
|
+
ref: e => c(this, y, e, "f"),
|
|
507
|
+
rowSelectionMode: "multiple",
|
|
508
|
+
class: "tabular-grid tabular-grid-ww-images",
|
|
509
|
+
columnResizeMode: "splitter"
|
|
510
|
+
}, t("ch-tabular-grid-columnset", {
|
|
511
|
+
class: "tabular-grid-column-set"
|
|
512
|
+
}, t("ch-tabular-grid-column", {
|
|
513
|
+
columnId: "icon",
|
|
514
|
+
columnName: "",
|
|
515
|
+
settingable: false,
|
|
516
|
+
size: l.tabularGrid.colSize.maxContent,
|
|
517
|
+
class: "tabular-grid-column",
|
|
518
|
+
resizable: true,
|
|
519
|
+
sortable: false
|
|
520
|
+
}), t("ch-tabular-grid-column", {
|
|
521
|
+
columnId: "name",
|
|
522
|
+
columnName: d(this, u, "f").tableHead.name,
|
|
523
|
+
settingable: false,
|
|
524
|
+
class: "tabular-grid-column",
|
|
525
|
+
"column-name-position": "text",
|
|
526
|
+
size: e,
|
|
527
|
+
resizable: true,
|
|
528
|
+
sortable: true,
|
|
529
|
+
onColumnSortChanged: d(this, H, "f")
|
|
530
|
+
}), t("ch-tabular-grid-column", {
|
|
531
|
+
columnId: "module",
|
|
532
|
+
columnName: d(this, u, "f").tableHead.module,
|
|
533
|
+
settingable: false,
|
|
534
|
+
size: e,
|
|
535
|
+
class: "tabular-grid-column",
|
|
536
|
+
resizable: true,
|
|
537
|
+
sortable: true,
|
|
538
|
+
onColumnSortChanged: d(this, H, "f")
|
|
539
|
+
}), t("ch-tabular-grid-column", {
|
|
540
|
+
columnId: "description",
|
|
541
|
+
columnName: d(this, u, "f").tableHead.description,
|
|
542
|
+
settingable: false,
|
|
543
|
+
size: "minmax(300px, 1fr)",
|
|
544
|
+
class: "tabular-grid-column",
|
|
545
|
+
resizable: false,
|
|
546
|
+
sortable: false
|
|
547
|
+
}), t("ch-tabular-grid-column", {
|
|
548
|
+
columnId: "modifiedDate",
|
|
549
|
+
columnName: d(this, u, "f").tableHead.modifiedDate,
|
|
550
|
+
settingable: false,
|
|
551
|
+
size: e,
|
|
552
|
+
class: "tabular-grid-column",
|
|
553
|
+
resizable: true,
|
|
554
|
+
sortable: true,
|
|
555
|
+
onColumnSortChanged: d(this, H, "f")
|
|
556
|
+
}), t("ch-tabular-grid-column", {
|
|
557
|
+
columnId: "lastUser",
|
|
558
|
+
columnName: d(this, u, "f").tableHead.lastUser,
|
|
559
|
+
settingable: false,
|
|
560
|
+
size: e,
|
|
561
|
+
class: "tabular-grid-column",
|
|
562
|
+
resizable: true,
|
|
563
|
+
sortable: true,
|
|
564
|
+
onColumnSortChanged: d(this, H, "f")
|
|
565
|
+
}), t("ch-tabular-grid-column", {
|
|
566
|
+
columnId: "importDate",
|
|
567
|
+
columnName: d(this, u, "f").tableHead.importDate,
|
|
568
|
+
settingable: false,
|
|
569
|
+
size: e,
|
|
570
|
+
class: "tabular-grid-column",
|
|
571
|
+
resizable: true,
|
|
572
|
+
sortable: true,
|
|
573
|
+
onColumnSortChanged: d(this, H, "f")
|
|
574
|
+
})), this.tabularGridData.length ? t("ch-tabular-grid-rowset", {
|
|
575
|
+
class: "tabular-grid-rowset"
|
|
576
|
+
}, [ ...this.tabularGridData ].sort(d(this, $, "f")).map((e => t("ch-tabular-grid-row", {
|
|
577
|
+
rowid: e.id,
|
|
578
|
+
class: "tabular-grid-row"
|
|
579
|
+
}, t("ch-tabular-grid-cell", {
|
|
580
|
+
class: "tabular-grid-cell"
|
|
581
|
+
}, t("ch-image", {
|
|
582
|
+
src: e.icon
|
|
583
|
+
})), t("ch-tabular-grid-cell", {
|
|
584
|
+
class: "tabular-grid-cell"
|
|
585
|
+
}, e.name), t("ch-tabular-grid-cell", {
|
|
586
|
+
class: "tabular-grid-cell"
|
|
587
|
+
}, e.module), t("ch-tabular-grid-cell", {
|
|
588
|
+
class: "tabular-grid-cell tabular-grid-cell-description"
|
|
589
|
+
}, e.description), t("ch-tabular-grid-cell", {
|
|
590
|
+
class: "tabular-grid-cell"
|
|
591
|
+
}, r(e.modifiedDate)), t("ch-tabular-grid-cell", {
|
|
592
|
+
class: "tabular-grid-cell"
|
|
593
|
+
}, e.lastUser), t("ch-tabular-grid-cell", {
|
|
594
|
+
class: "tabular-grid-cell"
|
|
595
|
+
}, r(e.importDate)))))) : t("ch-tabular-grid-rowset", {
|
|
596
|
+
class: "tabular-grid-rowset"
|
|
597
|
+
}, t("ch-tabular-grid-rowset-empty", null, t("gx-ide-empty-state", {
|
|
598
|
+
isAnimated: false,
|
|
599
|
+
stateIconSrc: ne,
|
|
600
|
+
stateTitle: d(this, u, "f").emptyState.title,
|
|
601
|
+
key: "no-images-empty-state"
|
|
602
|
+
})))));
|
|
603
|
+
}));
|
|
604
|
+
K.set(this, (() => {
|
|
605
|
+
if (d(this, m, "f")) {
|
|
606
|
+
this.filterNameValue = d(this, m, "f").name;
|
|
607
|
+
this.filterModuleValue = d(this, m, "f").module;
|
|
608
|
+
this.filterSearchContentsValue = d(this, m, "f").searchContents;
|
|
609
|
+
this.filterCategoryValue = d(this, m, "f").category;
|
|
610
|
+
this.filterAllDescendantsValue = d(this, m, "f").allDescendants === ee;
|
|
611
|
+
this.filterAfterTypeValue = d(this, m, "f").modifiedAfter;
|
|
612
|
+
this.filterModifiedDateValue = d(this, m, "f").modifiedDateTime;
|
|
613
|
+
this.filterUserValue = d(this, m, "f").modifiedUser;
|
|
614
|
+
this.filterStyleValue = d(this, m, "f").style;
|
|
615
|
+
this.filterLanguageValue = d(this, m, "f").language;
|
|
616
|
+
this.filterDensityValue = d(this, m, "f").density;
|
|
617
|
+
this.filterLayerValue = d(this, m, "f").layer;
|
|
618
|
+
this.afterCurrentValue = this.filterAfterTypeValue;
|
|
619
|
+
}
|
|
620
|
+
}));
|
|
621
|
+
O.set(this, (() => {
|
|
622
|
+
c(this, m, {
|
|
623
|
+
name: this.filterNameValue,
|
|
624
|
+
module: this.filterModuleValue,
|
|
625
|
+
searchContents: this.filterSearchContentsValue,
|
|
626
|
+
category: this.filterCategoryValue,
|
|
627
|
+
allDescendants: this.filterAllDescendantsValue ? ee : "",
|
|
628
|
+
modifiedAfter: this.filterAfterTypeValue,
|
|
629
|
+
modifiedDateTime: this.filterModifiedDateValue,
|
|
630
|
+
modifiedUser: this.filterUserValue,
|
|
631
|
+
style: this.filterStyleValue,
|
|
632
|
+
language: this.filterLanguageValue,
|
|
633
|
+
density: this.filterDensityValue,
|
|
634
|
+
layer: this.filterLayerValue
|
|
635
|
+
}, "f");
|
|
636
|
+
}));
|
|
637
|
+
Q.set(this, (() => {
|
|
638
|
+
d(this, y, "f").selectAllRows();
|
|
639
|
+
}));
|
|
640
|
+
this.categoriesComboBoxModel = [];
|
|
641
|
+
this.densitiesComboBoxModel = [];
|
|
642
|
+
this.languagesComboBoxModel = [];
|
|
643
|
+
this.layersComboBoxModel = [];
|
|
644
|
+
this.stylesComboBoxModel = [];
|
|
645
|
+
this.afterCurrentValue = undefined;
|
|
646
|
+
this.filterAfterOptions = undefined;
|
|
647
|
+
this.tabularGridData = [];
|
|
648
|
+
this.images = [];
|
|
649
|
+
this.imagesSelectedItems = [];
|
|
650
|
+
this.selectedObjectsIds = [];
|
|
651
|
+
this.enabledModifiedControls = false;
|
|
652
|
+
this.order = {
|
|
653
|
+
orderCriteria: null,
|
|
654
|
+
ascending: null
|
|
655
|
+
};
|
|
656
|
+
this.filterNameValue = "";
|
|
657
|
+
this.filterSearchContentsValue = "";
|
|
658
|
+
this.filterCategoryValue = undefined;
|
|
659
|
+
this.filterAllDescendantsValue = false;
|
|
660
|
+
this.filterAfterTypeValue = undefined;
|
|
661
|
+
this.filterUserValue = "";
|
|
662
|
+
this.filterModifiedDateValue = "";
|
|
663
|
+
this.filterStyleValue = undefined;
|
|
664
|
+
this.filterLanguageValue = undefined;
|
|
665
|
+
this.filterDensityValue = undefined;
|
|
666
|
+
this.filterLayerValue = undefined;
|
|
667
|
+
this.filterModuleValue = undefined;
|
|
668
|
+
this.categories = undefined;
|
|
669
|
+
this.contextMenuCallback = undefined;
|
|
670
|
+
this.defaultCategory = undefined;
|
|
671
|
+
this.defaultModule = undefined;
|
|
672
|
+
this.deleteSelectionCallback = undefined;
|
|
673
|
+
this.densities = undefined;
|
|
674
|
+
this.languages = undefined;
|
|
675
|
+
this.layers = undefined;
|
|
676
|
+
this.loadCallback = undefined;
|
|
677
|
+
this.loadImageItemsCallback = undefined;
|
|
678
|
+
this.newObjectCallback = undefined;
|
|
679
|
+
this.openSelectionCallback = undefined;
|
|
680
|
+
this.selectModuleCallback = undefined;
|
|
681
|
+
this.selectionObjectChangedCallback = undefined;
|
|
682
|
+
this.styles = undefined;
|
|
683
|
+
}
|
|
684
|
+
categoriesChanged(e) {
|
|
685
|
+
this.categoriesComboBoxModel = mapOptionsToComboBoxItemModel(e);
|
|
686
|
+
d(this, _, "f").call(this);
|
|
687
|
+
}
|
|
688
|
+
defaultCategoryChanged() {
|
|
689
|
+
d(this, _, "f").call(this);
|
|
690
|
+
}
|
|
691
|
+
densitiesChanged(e) {
|
|
692
|
+
this.densitiesComboBoxModel = mapOptionsToComboBoxItemModel(e);
|
|
693
|
+
}
|
|
694
|
+
languagesChanged(e) {
|
|
695
|
+
this.languagesComboBoxModel = mapOptionsToComboBoxItemModel(e);
|
|
696
|
+
}
|
|
697
|
+
layersChanged(e) {
|
|
698
|
+
this.layersComboBoxModel = mapOptionsToComboBoxItemModel(e);
|
|
699
|
+
}
|
|
700
|
+
stylesChanged(e) {
|
|
701
|
+
this.stylesComboBoxModel = mapOptionsToComboBoxItemModel(e);
|
|
702
|
+
}
|
|
703
|
+
async connectedCallback() {
|
|
704
|
+
ie = d(this, E, "f").call(this);
|
|
705
|
+
}
|
|
706
|
+
componentDidLoad() {
|
|
707
|
+
d(this, U, "f").call(this);
|
|
708
|
+
d(this, L, "f").call(this);
|
|
709
|
+
d(this, O, "f").call(this);
|
|
710
|
+
c(this, v, false, "f");
|
|
711
|
+
}
|
|
712
|
+
async componentWillLoad() {
|
|
713
|
+
c(this, u, await o.getComponentStrings(this.el), "f");
|
|
714
|
+
// initialize combo-box models
|
|
715
|
+
this.categoriesChanged(this.categories);
|
|
716
|
+
this.densitiesChanged(this.densities);
|
|
717
|
+
this.languagesChanged(this.languages);
|
|
718
|
+
this.layersChanged(this.layers);
|
|
719
|
+
this.stylesChanged(this.styles);
|
|
720
|
+
// initialize "After" combo-box options
|
|
721
|
+
this.filterAfterOptions = [ {
|
|
722
|
+
caption: d(this, u, "f").filter.afterNone,
|
|
723
|
+
value: n.NONE
|
|
724
|
+
}, {
|
|
725
|
+
caption: d(this, u, "f").filter[n.DATE_TIME],
|
|
726
|
+
value: n.DATE_TIME
|
|
727
|
+
}, {
|
|
728
|
+
caption: d(this, u, "f").filter[n.IMPORT],
|
|
729
|
+
value: n.IMPORT
|
|
730
|
+
}, {
|
|
731
|
+
caption: d(this, u, "f").filter[n.LAST_BUILD],
|
|
732
|
+
value: n.LAST_BUILD
|
|
733
|
+
} ];
|
|
734
|
+
this.afterCurrentValue = this.filterAfterOptions[0].value;
|
|
735
|
+
this.filterAfterTypeValue = this.filterAfterOptions[0].value;
|
|
736
|
+
// Initialize filter state values
|
|
737
|
+
d(this, _, "f").call(this);
|
|
738
|
+
this.filterModuleValue = this.defaultModule;
|
|
739
|
+
if (this.stylesComboBoxModel.length > 0) {
|
|
740
|
+
this.filterStyleValue = this.stylesComboBoxModel[0].value;
|
|
741
|
+
}
|
|
742
|
+
if (this.languagesComboBoxModel.length > 0) {
|
|
743
|
+
this.filterLanguageValue = this.languagesComboBoxModel[0].value;
|
|
744
|
+
}
|
|
745
|
+
if (this.densitiesComboBoxModel.length > 0) {
|
|
746
|
+
this.filterDensityValue = this.densitiesComboBoxModel[0].value;
|
|
747
|
+
}
|
|
748
|
+
if (this.layersComboBoxModel.length > 0) {
|
|
749
|
+
this.filterLayerValue = this.layersComboBoxModel[0].value;
|
|
750
|
+
}
|
|
751
|
+
c(this, g, [ {
|
|
752
|
+
id: d(this, b, "f"),
|
|
753
|
+
caption: d(this, u, "f").filter.accordionCaption,
|
|
754
|
+
expanded: false
|
|
755
|
+
} ], "f");
|
|
756
|
+
}
|
|
757
|
+
keyDownHandler(e) {
|
|
758
|
+
if (document.activeElement === this.el) {
|
|
759
|
+
switch (e.key) {
|
|
760
|
+
case "Enter":
|
|
761
|
+
d(this, B, "f").call(this);
|
|
762
|
+
break;
|
|
763
|
+
|
|
764
|
+
case "Delete":
|
|
765
|
+
d(this, k, "f").call(this);
|
|
766
|
+
break;
|
|
767
|
+
}
|
|
768
|
+
}
|
|
769
|
+
}
|
|
770
|
+
/**
|
|
771
|
+
* Reloads the view, refreshing the filters and the images table.
|
|
772
|
+
*/ async reload() {
|
|
773
|
+
d(this, L, "f").call(this);
|
|
774
|
+
}
|
|
775
|
+
/**
|
|
776
|
+
* Watch filter state variables and trigger #getImages when they change
|
|
777
|
+
*/ filterNameValueChanged() {
|
|
778
|
+
if (!d(this, v, "f")) {
|
|
779
|
+
d(this, L, "f").call(this);
|
|
780
|
+
}
|
|
781
|
+
}
|
|
782
|
+
filterSearchContentsValueChanged() {
|
|
783
|
+
if (!d(this, v, "f")) {
|
|
784
|
+
d(this, L, "f").call(this);
|
|
785
|
+
}
|
|
786
|
+
}
|
|
787
|
+
filterCategoryValueChanged() {
|
|
788
|
+
if (!d(this, v, "f")) {
|
|
789
|
+
d(this, L, "f").call(this);
|
|
790
|
+
}
|
|
791
|
+
}
|
|
792
|
+
filterAllDescendantsValueChanged() {
|
|
793
|
+
if (!d(this, v, "f")) {
|
|
794
|
+
d(this, L, "f").call(this);
|
|
795
|
+
}
|
|
796
|
+
}
|
|
797
|
+
filterAfterTypeValueChanged() {
|
|
798
|
+
if (!d(this, v, "f")) {
|
|
799
|
+
d(this, L, "f").call(this);
|
|
800
|
+
}
|
|
801
|
+
}
|
|
802
|
+
filterUserValueChanged() {
|
|
803
|
+
if (!d(this, v, "f")) {
|
|
804
|
+
d(this, L, "f").call(this);
|
|
805
|
+
}
|
|
806
|
+
}
|
|
807
|
+
filterModifiedDateValueChanged() {
|
|
808
|
+
if (!d(this, v, "f")) {
|
|
809
|
+
d(this, L, "f").call(this);
|
|
810
|
+
}
|
|
811
|
+
}
|
|
812
|
+
filterStyleValueChanged() {
|
|
813
|
+
if (!d(this, v, "f")) {
|
|
814
|
+
d(this, L, "f").call(this);
|
|
815
|
+
}
|
|
816
|
+
}
|
|
817
|
+
filterLanguageValueChanged() {
|
|
818
|
+
if (!d(this, v, "f")) {
|
|
819
|
+
d(this, L, "f").call(this);
|
|
820
|
+
}
|
|
821
|
+
}
|
|
822
|
+
filterDensityValueChanged() {
|
|
823
|
+
if (!d(this, v, "f")) {
|
|
824
|
+
d(this, L, "f").call(this);
|
|
825
|
+
}
|
|
826
|
+
}
|
|
827
|
+
filterLayerValueChanged() {
|
|
828
|
+
if (!d(this, v, "f")) {
|
|
829
|
+
d(this, L, "f").call(this);
|
|
830
|
+
}
|
|
831
|
+
}
|
|
832
|
+
filterModuleValueChanged() {
|
|
833
|
+
if (!d(this, v, "f")) {
|
|
834
|
+
d(this, L, "f").call(this);
|
|
835
|
+
}
|
|
836
|
+
}
|
|
837
|
+
render() {
|
|
838
|
+
return t(i, {
|
|
839
|
+
class: "widget"
|
|
840
|
+
}, t("ch-theme", {
|
|
841
|
+
model: Z
|
|
842
|
+
}), t("section", {
|
|
843
|
+
class: "section"
|
|
844
|
+
}, t("header", {
|
|
845
|
+
class: "header control-header-with-border spacing-body-inline spacing-body-block-start field-group"
|
|
846
|
+
}, d(this, R, "f").call(this)), t("div", {
|
|
847
|
+
class: "main"
|
|
848
|
+
}, d(this, J, "f").call(this), t("div", {
|
|
849
|
+
class: "main__aside field-group"
|
|
850
|
+
}, d(this, X, "f").call(this))), t("footer", {
|
|
851
|
+
class: "dialog-footer-with-border dialog-footer-space-between spacing-body"
|
|
852
|
+
}, t("p", {
|
|
853
|
+
// matching objects
|
|
854
|
+
class: "text-body"
|
|
855
|
+
}, `${this.tabularGridData.length} ${d(this, u, "f").objCount.matching}`), t("div", {
|
|
856
|
+
class: "buttons-spacer"
|
|
857
|
+
}, t("button", {
|
|
858
|
+
// select all button
|
|
859
|
+
id: "button-select-all",
|
|
860
|
+
class: "button-secondary",
|
|
861
|
+
onClick: d(this, Q, "f")
|
|
862
|
+
}, d(this, u, "f").footer.btnSelectAll), t("button", {
|
|
863
|
+
// new image button
|
|
864
|
+
id: "button-new-file",
|
|
865
|
+
class: "button-primary button-icon-and-text",
|
|
866
|
+
onClick: d(this, q, "f")
|
|
867
|
+
}, d(this, u, "f").footer.btnNew)))));
|
|
868
|
+
}
|
|
869
|
+
static get assetsDirs() {
|
|
870
|
+
return [ "gx-ide-assets/ww-images" ];
|
|
871
|
+
}
|
|
872
|
+
get el() {
|
|
873
|
+
return s(this);
|
|
874
|
+
}
|
|
875
|
+
static get watchers() {
|
|
876
|
+
return {
|
|
877
|
+
categories: [ "categoriesChanged" ],
|
|
878
|
+
defaultCategory: [ "defaultCategoryChanged" ],
|
|
879
|
+
densities: [ "densitiesChanged" ],
|
|
880
|
+
languages: [ "languagesChanged" ],
|
|
881
|
+
layers: [ "layersChanged" ],
|
|
882
|
+
styles: [ "stylesChanged" ],
|
|
883
|
+
filterNameValue: [ "filterNameValueChanged" ],
|
|
884
|
+
filterSearchContentsValue: [ "filterSearchContentsValueChanged" ],
|
|
885
|
+
filterCategoryValue: [ "filterCategoryValueChanged" ],
|
|
886
|
+
filterAllDescendantsValue: [ "filterAllDescendantsValueChanged" ],
|
|
887
|
+
filterAfterTypeValue: [ "filterAfterTypeValueChanged" ],
|
|
888
|
+
filterUserValue: [ "filterUserValueChanged" ],
|
|
889
|
+
filterModifiedDateValue: [ "filterModifiedDateValueChanged" ],
|
|
890
|
+
filterStyleValue: [ "filterStyleValueChanged" ],
|
|
891
|
+
filterLanguageValue: [ "filterLanguageValueChanged" ],
|
|
892
|
+
filterDensityValue: [ "filterDensityValueChanged" ],
|
|
893
|
+
filterLayerValue: [ "filterLayerValueChanged" ],
|
|
894
|
+
filterModuleValue: [ "filterModuleValueChanged" ]
|
|
895
|
+
};
|
|
896
|
+
}
|
|
897
|
+
};
|
|
898
|
+
|
|
899
|
+
u = new WeakMap, m = new WeakMap, g = new WeakMap, b = new WeakMap, p = new WeakMap,
|
|
900
|
+
y = new WeakMap, w = new WeakMap, v = new WeakMap, k = new WeakMap, C = new WeakMap,
|
|
901
|
+
x = new WeakMap, M = new WeakMap, _ = new WeakMap, W = new WeakMap, V = new WeakMap,
|
|
902
|
+
z = new WeakMap, I = new WeakMap, D = new WeakMap, T = new WeakMap, j = new WeakMap,
|
|
903
|
+
S = new WeakMap, F = new WeakMap, N = new WeakMap, A = new WeakMap, L = new WeakMap,
|
|
904
|
+
E = new WeakMap, U = new WeakMap, $ = new WeakMap, H = new WeakMap, q = new WeakMap,
|
|
905
|
+
B = new WeakMap, G = new WeakMap, R = new WeakMap, X = new WeakMap, Y = new WeakMap,
|
|
906
|
+
J = new WeakMap, K = new WeakMap, O = new WeakMap, Q = new WeakMap, f = new WeakSet,
|
|
907
|
+
P = function _GxIdeWWImages_getImageValue(e, t) {
|
|
908
|
+
var i;
|
|
909
|
+
switch (t) {
|
|
910
|
+
case "name":
|
|
911
|
+
return e.name || "";
|
|
912
|
+
|
|
913
|
+
case "module":
|
|
914
|
+
return e.module || "";
|
|
915
|
+
|
|
916
|
+
case "description":
|
|
917
|
+
return e.description || "";
|
|
918
|
+
|
|
919
|
+
case "modifiedDate":
|
|
920
|
+
return e.modifiedDate ? r(e.modifiedDate).toLowerCase() : "";
|
|
921
|
+
|
|
922
|
+
case "lastUser":
|
|
923
|
+
return ((i = e.lastUser) === null || i === void 0 ? void 0 : i.toLowerCase()) || "";
|
|
924
|
+
|
|
925
|
+
case "importDate":
|
|
926
|
+
return e.importDate ? r(e.importDate).toLowerCase() : "";
|
|
927
|
+
|
|
928
|
+
default:
|
|
929
|
+
return "";
|
|
930
|
+
}
|
|
931
|
+
};
|
|
932
|
+
|
|
933
|
+
le.style = h;
|
|
934
|
+
|
|
935
|
+
export { le as gx_ide_ww_images };
|
|
936
|
+
//# sourceMappingURL=p-520c3763.entry.js.map
|