@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.
Files changed (71) hide show
  1. package/dist/cjs/genexus-ide-ui.cjs.js +1 -1
  2. package/dist/cjs/gx-ide-ai-message.cjs.entry.js +1 -1
  3. package/dist/cjs/gx-ide-dashboard-home.cjs.entry.js +1 -1
  4. package/dist/cjs/gx-ide-kb-manager-import.cjs.entry.js +1 -1
  5. package/dist/cjs/gx-ide-new-environment.cjs.entry.js +1 -1
  6. package/dist/cjs/gx-ide-new-kb.cjs.entry.js +1 -1
  7. package/dist/cjs/gx-ide-object-selector.cjs.entry.js +1 -1
  8. package/dist/cjs/gx-ide-team-dev-commit.cjs.entry.js +1 -1
  9. package/dist/cjs/gx-ide-team-dev-update.cjs.entry.js +1 -1
  10. package/dist/cjs/gx-ide-ww-images.cjs.entry.js +279 -396
  11. package/dist/cjs/gx-ide-ww-images.cjs.entry.js.map +1 -1
  12. package/dist/cjs/{helpers-19194a5a.js → helpers-b5b4a659.js} +7 -1
  13. package/dist/cjs/helpers-b5b4a659.js.map +1 -0
  14. package/dist/cjs/loader.cjs.js +1 -1
  15. package/dist/collection/components/ww-images/gx-ide-assets/ww-images/langs/ww-images.lang.en.json +3 -7
  16. package/dist/collection/components/ww-images/gx-ide-assets/ww-images/langs/ww-images.lang.ja.json +4 -8
  17. package/dist/collection/components/ww-images/ww-images.css +733 -80
  18. package/dist/collection/components/ww-images/ww-images.js +413 -465
  19. package/dist/collection/components/ww-images/ww-images.js.map +1 -1
  20. package/dist/components/gx-ide-ww-images.js +306 -419
  21. package/dist/components/gx-ide-ww-images.js.map +1 -1
  22. package/dist/components/helpers.js +6 -1
  23. package/dist/components/helpers.js.map +1 -1
  24. package/dist/esm/genexus-ide-ui.js +1 -1
  25. package/dist/esm/gx-ide-ai-message.entry.js +1 -1
  26. package/dist/esm/gx-ide-dashboard-home.entry.js +1 -1
  27. package/dist/esm/gx-ide-kb-manager-import.entry.js +1 -1
  28. package/dist/esm/gx-ide-new-environment.entry.js +1 -1
  29. package/dist/esm/gx-ide-new-kb.entry.js +1 -1
  30. package/dist/esm/gx-ide-object-selector.entry.js +1 -1
  31. package/dist/esm/gx-ide-team-dev-commit.entry.js +1 -1
  32. package/dist/esm/gx-ide-team-dev-update.entry.js +1 -1
  33. package/dist/esm/gx-ide-ww-images.entry.js +279 -396
  34. package/dist/esm/gx-ide-ww-images.entry.js.map +1 -1
  35. package/dist/esm/{helpers-9ee6ddce.js → helpers-64e1dd0b.js} +7 -2
  36. package/dist/esm/helpers-64e1dd0b.js.map +1 -0
  37. package/dist/esm/loader.js +1 -1
  38. package/dist/genexus-ide-ui/genexus-ide-ui.esm.js +1 -1
  39. package/dist/genexus-ide-ui/genexus-ide-ui.esm.js.map +1 -1
  40. package/dist/genexus-ide-ui/gx-ide-assets/ww-images/langs/ww-images.lang.en.json +3 -7
  41. package/dist/genexus-ide-ui/gx-ide-assets/ww-images/langs/ww-images.lang.ja.json +4 -8
  42. package/dist/genexus-ide-ui/{p-c4d1d0ce.entry.js → p-39792ac8.entry.js} +2 -2
  43. package/dist/genexus-ide-ui/{p-806fc181.entry.js → p-4a0dab98.entry.js} +2 -2
  44. package/dist/genexus-ide-ui/{p-acf0cbac.entry.js → p-4ce47bcd.entry.js} +2 -2
  45. package/dist/genexus-ide-ui/p-62f4ad99.entry.js +612 -0
  46. package/dist/genexus-ide-ui/p-62f4ad99.entry.js.map +1 -0
  47. package/dist/genexus-ide-ui/{p-278afab1.entry.js → p-6abe5291.entry.js} +2 -2
  48. package/dist/genexus-ide-ui/{p-4ce0a85e.entry.js → p-ac670f62.entry.js} +2 -2
  49. package/dist/genexus-ide-ui/{p-066028bc.js → p-c339f703.js} +14 -8
  50. package/dist/{cjs/helpers-19194a5a.js.map → genexus-ide-ui/p-c339f703.js.map} +1 -1
  51. package/dist/genexus-ide-ui/{p-b785673d.entry.js → p-ca8b0024.entry.js} +2 -2
  52. package/dist/genexus-ide-ui/{p-44d779c9.entry.js → p-e8975ac0.entry.js} +2 -2
  53. package/dist/genexus-ide-ui/{p-8c986256.entry.js → p-f1558097.entry.js} +2 -2
  54. package/dist/types/components/ww-images/ww-images.d.ts +118 -98
  55. package/dist/types/components.d.ts +62 -34
  56. package/package.json +1 -1
  57. package/dist/collection/components/ww-images/helpers.js +0 -11
  58. package/dist/collection/components/ww-images/helpers.js.map +0 -1
  59. package/dist/esm/helpers-9ee6ddce.js.map +0 -1
  60. package/dist/genexus-ide-ui/p-066028bc.js.map +0 -1
  61. package/dist/genexus-ide-ui/p-62efd8f2.entry.js +0 -712
  62. package/dist/genexus-ide-ui/p-62efd8f2.entry.js.map +0 -1
  63. package/dist/types/components/ww-images/helpers.d.ts +0 -3
  64. /package/dist/genexus-ide-ui/{p-c4d1d0ce.entry.js.map → p-39792ac8.entry.js.map} +0 -0
  65. /package/dist/genexus-ide-ui/{p-806fc181.entry.js.map → p-4a0dab98.entry.js.map} +0 -0
  66. /package/dist/genexus-ide-ui/{p-acf0cbac.entry.js.map → p-4ce47bcd.entry.js.map} +0 -0
  67. /package/dist/genexus-ide-ui/{p-278afab1.entry.js.map → p-6abe5291.entry.js.map} +0 -0
  68. /package/dist/genexus-ide-ui/{p-4ce0a85e.entry.js.map → p-ac670f62.entry.js.map} +0 -0
  69. /package/dist/genexus-ide-ui/{p-b785673d.entry.js.map → p-ca8b0024.entry.js.map} +0 -0
  70. /package/dist/genexus-ide-ui/{p-44d779c9.entry.js.map → p-e8975ac0.entry.js.map} +0 -0
  71. /package/dist/genexus-ide-ui/{p-8c986256.entry.js.map → p-f1558097.entry.js.map} +0 -0
@@ -1,712 +0,0 @@
1
- import { r as i, c as e, h as t, H as s, g as a } from "./p-aaed592c.js";
2
-
3
- import { g as n } from "./p-0b0ce806.js";
4
-
5
- import { F as l } from "./p-13feb5cf.js";
6
-
7
- import { c as r } from "./p-78b90603.js";
8
-
9
- import { h as o, f as d } from "./p-066028bc.js";
10
-
11
- import { L as h } from "./p-74d59062.js";
12
-
13
- const mapOptionsToComboBoxItemModel = i => i.map((i => {
14
- var e;
15
- return {
16
- value: i.id,
17
- caption: i.label,
18
- startImgSrc: (e = i.iconName) !== null && e !== void 0 ? e : ""
19
- };
20
- }));
21
-
22
- const c = "/*Gx Ide*/\n/*@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@keyframes spin {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\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-columns: 1fr 1fr 90px;\n align-items: end;\n}\n\n.header__filter {\n display: none !important;\n}\n\n.filters-outer-wrapper {\n grid-area: filter;\n}\n\n.main {\n --sidebar-width: 400px;\n display: grid;\n grid-template-columns: 1fr var(--sidebar-width);\n overflow: auto;\n padding-block-start: var(--mer-spacing--md);\n transition: grid-template-columns var(--mer-timing--fast);\n}\n\n.main__grid {\n overflow: auto;\n}\n\n.main__grid--with-filter {\n grid-template-rows: max-content 1fr;\n}\n\n.tabular-grid-ww-images {\n overflow: auto;\n border-inline-end: var(--section-common-border);\n}\n\n.button-reset {\n inline-size: 100%;\n box-sizing: border-box;\n}\n\n.main__aside {\n overflow: auto;\n display: grid;\n grid-template-rows: max-content 1fr;\n}\n\n.main__filter {\n block-size: 100%;\n inline-size: var(--sidebar-width);\n box-sizing: border-box;\n grid-auto-rows: max-content;\n overflow: auto;\n}\n\n.sidebar-container {\n position: relative;\n overflow: auto;\n}\n\n.sidebar-filter {\n block-size: 100%;\n inline-size: 100%;\n transform-origin: left;\n position: absolute;\n z-index: 2;\n right: 0;\n top: 0;\n}\n\n.main__images-container {\n display: grid;\n grid-template-columns: repeat(4, 1fr);\n gap: var(--mer-spacing--xs);\n position: relative;\n z-index: 1;\n}\n.main__images-container .figure {\n margin: 0;\n background-color: var(--mer-surface__elevation--02);\n display: grid;\n gap: var(--mer-spacing--2xs);\n padding: var(--mer-spacing--xs);\n border-radius: var(--mer-border__radius--sm);\n opacity: 0;\n animation: fadeIn 300ms forwards;\n}\n.main__images-container .figure__picture {\n object-fit: contain;\n}\n.main__images-container .figure__img {\n block-size: auto;\n inline-size: 100%;\n}\n.main__images-container .figure__figcaption {\n text-align: center;\n font-size: var(--mer-font__size--4xs);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n inline-size: 100%;\n}\n\n.hiChar {\n color: var(--mer-color__primary--200);\n filter: brightness(1.3);\n}\n\n.tabular-grid-ww-images ch-tabular-grid-cell:is(:nth-child(4)) {\n padding-block: var(--grid-cell__padding-block);\n padding-inline: var(--grid-cell__padding-inline);\n align-items: start;\n justify-content: start;\n display: inline-block;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n@keyframes fadeIn {\n to {\n opacity: 1;\n }\n}\n@container (max-width: 992px) {\n .main {\n --sidebar-width: 300px;\n }\n\n .main__images-container {\n grid-template-columns: repeat(3, 1fr);\n }\n}";
23
-
24
- var f = undefined && undefined.__classPrivateFieldGet || function(i, e, t, s) {
25
- if (t === "a" && !s) throw new TypeError("Private accessor was defined without a getter");
26
- if (typeof e === "function" ? i !== e || !s : !e.has(i)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
27
- return t === "m" ? s : t === "a" ? s.call(i) : s ? s.value : e.get(i);
28
- };
29
-
30
- var u = undefined && undefined.__classPrivateFieldSet || function(i, e, t, s, a) {
31
- if (s === "m") throw new TypeError("Private method is not writable");
32
- if (s === "a" && !a) throw new TypeError("Private accessor was defined without a setter");
33
- if (typeof e === "function" ? i !== e || !a : !e.has(i)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
34
- return s === "a" ? a.call(i, t) : a ? a.value = t : e.set(i, t), t;
35
- };
36
-
37
- var m, g, p, b, v, w, y, k, _, x, M, W, C, z, F, I, D, N, T, j, H, E, A, $, B, L, P, R, S, V, q, G, U, X, Y;
38
-
39
- const J = [ "resets/box-sizing", "components/accordion", "components/button", "components/checkbox", "components/combo-box", "components/edit", "components/tabular-grid", "components/sidebar", "utils/form", "utils/layout", "utils/typography", "utils/spacing", "chameleon/scrollbar" ];
40
-
41
- let K = null;
42
-
43
- // icons
44
- const O = n({
45
- category: "gemini-tools",
46
- name: "reset",
47
- colorType: "neutral"
48
- });
49
-
50
- const Q = n({
51
- category: "gemini-tools",
52
- name: "search",
53
- colorType: "neutral"
54
- });
55
-
56
- const Z = n({
57
- category: "window-tools",
58
- name: "filter",
59
- colorType: "primary"
60
- });
61
-
62
- const ii = [ {
63
- id: "modified",
64
- caption: "Modified",
65
- expanded: false
66
- } ];
67
-
68
- const ei = class {
69
- constructor(s) {
70
- i(this, s);
71
- this.componentDidLoadEvent = e(this, "componentDidLoadEvent", 7);
72
- this.componentDidRenderFirstTime = e(this, "componentDidRenderFirstTime", 7);
73
- /**
74
- * The component hard-coded strings translations.
75
- */ m.set(this, void 0);
76
- g.set(this, void 0);
77
- p.set(this, false);
78
- b.set(this, new Map);
79
- v.set(this, void 0);
80
- w.set(this, void 0);
81
- y.set(this, void 0);
82
- k.set(this, void 0);
83
- _.set(this, void 0);
84
- x.set(this, void 0);
85
- M.set(this, void 0);
86
- W.set(this, void 0);
87
- C.set(this, void 0);
88
- z.set(this, void 0);
89
- F.set(this, void 0);
90
- I.set(this, void 0);
91
- D.set(this, void 0);
92
- N.set(this, (() => {
93
- this.deleteSelectionCallback(this.selectedObjectsIds);
94
- }));
95
- T.set(this, (() => {
96
- f(this, v, "f").selectAllRows(false);
97
- }));
98
- j.set(this, (i => {
99
- this.afterCurrentValue = i.detail;
100
- f(this, $, "f").call(this);
101
- }));
102
- H.set(this, (() => {
103
- const i = this.filterImagesInputValue.toLocaleLowerCase();
104
- this.filteredImages = this.images.filter((e => {
105
- var t, s, a;
106
- const n = e.name.toLocaleLowerCase().includes(i);
107
- const l = e.module.toLocaleLowerCase().includes(i);
108
- const r = e.description.toLocaleLowerCase().includes(i);
109
- const o = (t = e.modifiedDate) === null || t === void 0 ? void 0 : t.toString().includes(i);
110
- const d = (s = e.lastUser) === null || s === void 0 ? void 0 : s.toLocaleLowerCase().includes(i);
111
- const h = (a = e.importDate) === null || a === void 0 ? void 0 : a.toString().includes(i);
112
- return n || l || r || o || d || h;
113
- }));
114
- }));
115
- E.set(this, (i => {
116
- this.filterImagesInputValue = i.detail.toLowerCase();
117
- f(this, H, "f").call(this);
118
- }));
119
- A.set(this, (() => {
120
- this.toggleFilterButtonActive = !this.toggleFilterButtonActive;
121
- }));
122
- $.set(this, (() => {
123
- var i;
124
- f(this, b, "f").clear();
125
- const e = {
126
- name: f(this, z, "f").value,
127
- searchContents: f(this, F, "f").value,
128
- category: f(this, k, "f").value,
129
- parent: f(this, C, "f").value ? f(this, C, "f").value.id : null,
130
- allDescendants: !!f(this, y, "f").value,
131
- modifiedAfter: f(this, w, "f").value,
132
- modifiedBy: f(this, D, "f").value,
133
- modifiedDate: new Date(f(this, W, "f").value),
134
- style: f(this, I, "f").value,
135
- language: f(this, x, "f").value,
136
- density: f(this, _, "f").value,
137
- layer: (i = f(this, M, "f")) === null || i === void 0 ? void 0 : i.value
138
- };
139
- this.loadCallback(e).then((i => {
140
- this.images = i;
141
- this.selectedObjectsIds = [];
142
- f(this, T, "f").call(this);
143
- f(this, H, "f").call(this);
144
- }));
145
- }));
146
- B.set(this, (() => {
147
- const i = new Date;
148
- const e = i.toISOString().split("T")[0];
149
- const t = i.toISOString().split("T")[1].slice(0, 5);
150
- // Only take 'HH:MM' part
151
- return `${e}T${t}`;
152
- }));
153
- L.set(this, (() => {
154
- /* module/folder */
155
- f(this, C, "f").addEventListener("valueChanged", (() => {
156
- f(this, $, "f").call(this);
157
- }));
158
- // for grid selection
159
- f(this, v, "f").addEventListener("selectionChanged", (i => {
160
- const e = i.detail.rowsId[0];
161
- if (f(this, b, "f").has(e)) {
162
- this.imagesSelectedItems = f(this, b, "f").get(e);
163
- } else {
164
- this.loadImageItemsCallback(e).then((i => {
165
- f(this, b, "f").set(e, i);
166
- this.imagesSelectedItems = i;
167
- }));
168
- }
169
- }));
170
- f(this, v, "f").addEventListener("rowDoubleClicked", (() => {
171
- f(this, R, "f").call(this);
172
- }));
173
- f(this, v, "f").addEventListener("selectionChanged", (i => {
174
- this.selectedObjectsIds = i.detail.rowsId;
175
- this.selectionObjectChangedCallback(this.selectedObjectsIds);
176
- }));
177
- f(this, v, "f").addEventListener("rowContextMenu", (i => {
178
- i.preventDefault();
179
- i.stopPropagation();
180
- this.contextMenuCallback({
181
- selection: i.detail.selectedRowsId,
182
- clientX: i.detail.clientX,
183
- clientY: i.detail.clientY
184
- });
185
- }));
186
- }));
187
- P.set(this, (() => {
188
- this.newObjectCallback();
189
- }));
190
- R.set(this, (() => {
191
- this.openSelectionCallback(this.selectedObjectsIds);
192
- }));
193
- // #removeDetectClickOutsideFilter = () => {
194
- // document.removeEventListener("click", this.#detectClickOutsideFilter);
195
- // };
196
- S.set(this, (() => [ t("div", {
197
- // name
198
- class: "field field-block name"
199
- }, t("label", {
200
- class: "label",
201
- htmlFor: "filter-name"
202
- }, f(this, m, "f").filter.name), t("ch-edit", {
203
- id: "filter-name",
204
- class: "input name",
205
- ref: i => u(this, z, i, "f"),
206
- debounce: r.inputDebounce,
207
- onInput: f(this, $, "f"),
208
- part: "filter-name"
209
- })), t("div", {
210
- class: "field field-block module-folder"
211
- }, t("label", {
212
- class: "label",
213
- htmlFor: "module-folder"
214
- }, f(this, m, "f").filter.moduleFolder), t("gx-ide-entity-selector", {
215
- // module/folder
216
- class: "module-folder",
217
- part: "filter-module-folder",
218
- id: "module/folder",
219
- labelPosition: "none",
220
- value: this.defaultModule,
221
- defaultValue: this.defaultModule,
222
- selectEntityCallback: this.selectModuleCallback,
223
- ref: i => u(this, C, i, "f")
224
- })), t("button", {
225
- // toggle / untoggle filter button
226
- class: "button-secondary button-icon-and-text",
227
- onClick: f(this, A, "f")
228
- }, t("ch-image", {
229
- class: "icon-md",
230
- src: Z
231
- }), this.filterSidebarExpanded ? f(this, m, "f").filter.less : f(this, m, "f").filter.more) ]));
232
- V.set(this, (() => {
233
- var i, e, s, a, n;
234
- return t("div", {
235
- class: "sidebar-container scrollable"
236
- }, t("ch-sidebar", {
237
- class: "sidebar sidebar-collapsed-hidden sidebar-with-motion sidebar-filter",
238
- expanded: this.filterSidebarExpanded
239
- }, t("div", {
240
- class: "main__filter field-group spacing-body-inline spacing-body-block scrollable"
241
- }, t("ch-checkbox", {
242
- class: "checkbox all-descendants",
243
- caption: f(this, m, "f").filter.allDescendants,
244
- checkedValue: "filterAllDescendants",
245
- ref: i => u(this, y, i, "f"),
246
- onInput: f(this, $, "f"),
247
- part: "filter-all-descendants"
248
- }), t("ch-accordion-render", {
249
- // modified
250
- class: "accordion-outlined modified-accordion",
251
- model: ii
252
- }, t("div", {
253
- slot: "modified",
254
- class: "spacing-body"
255
- }, t("div", {
256
- class: "field-group field-group-modified"
257
- }, t("div", {
258
- // after
259
- class: "field field-block after-date-time"
260
- }, t("label", {
261
- class: "label",
262
- htmlFor: "filter-after-type"
263
- }, f(this, m, "f").filter.afterLabel), t("ch-combo-box-render", {
264
- id: "filter-after-type",
265
- class: "combo-box",
266
- value: (i = this.filterAfterOptions[0]) === null || i === void 0 ? void 0 : i.value,
267
- ref: i => u(this, w, i, "f"),
268
- model: this.filterAfterOptions,
269
- part: "filter-after-type",
270
- onInput: f(this, j, "f")
271
- })), t("div", {
272
- // date/time
273
- class: "field field-block date-time"
274
- }, t("label", {
275
- class: {
276
- label: true,
277
- "label--disabled": this.afterCurrentValue !== l.DATE_TIME
278
- },
279
- htmlFor: "modified-date"
280
- }, f(this, m, "f").filter.dateTime), t("input", {
281
- type: "datetime-local",
282
- class: "input ",
283
- id: "modified-date",
284
- name: "modifiedDate",
285
- part: "modified-date",
286
- max: K,
287
- ref: i => u(this, W, i, "f"),
288
- disabled: this.afterCurrentValue !== l.DATE_TIME,
289
- onInput: f(this, $, "f")
290
- })), t("div", {
291
- // user
292
- class: "field field-block user"
293
- }, t("label", {
294
- class: "label",
295
- htmlFor: "filter-user"
296
- }, f(this, m, "f").filter.user), t("ch-edit", {
297
- id: "filter-user",
298
- value: "hey",
299
- class: "input",
300
- ref: i => u(this, D, i, "f"),
301
- debounce: r.inputDebounce,
302
- onInput: f(this, $, "f"),
303
- part: "filter-user"
304
- }))))), t("div", {
305
- // category
306
- class: "field field-block category"
307
- }, t("label", {
308
- class: "label",
309
- htmlFor: "filter-category"
310
- }, f(this, m, "f").filter.category), t("ch-combo-box-render", {
311
- id: "filter-category",
312
- class: "combo-box",
313
- value: this.defaultCategory,
314
- disabled: !this.categories,
315
- ref: i => u(this, k, i, "f"),
316
- model: this.categoriesComboBoxModel,
317
- part: "filter-category",
318
- onInput: f(this, $, "f")
319
- })), t("div", {
320
- // style
321
- class: "field field-block style"
322
- }, t("label", {
323
- class: "label",
324
- htmlFor: "filter-style"
325
- }, f(this, m, "f").filter.style), t("ch-combo-box-render", {
326
- id: "filter-style",
327
- class: "combo-box",
328
- value: (e = this.stylesComboBoxModel[0]) === null || e === void 0 ? void 0 : e.value,
329
- disabled: !this.styles,
330
- ref: i => u(this, I, i, "f"),
331
- model: this.stylesComboBoxModel,
332
- part: "filter-style",
333
- onInput: f(this, $, "f")
334
- })), t("div", {
335
- // language
336
- class: "field field-block language"
337
- }, t("label", {
338
- class: "label",
339
- htmlFor: "filter-language"
340
- }, f(this, m, "f").filter.language), t("ch-combo-box-render", {
341
- id: "filter-language",
342
- class: "combo-box",
343
- value: (s = this.languagesComboBoxModel[0]) === null || s === void 0 ? void 0 : s.value,
344
- disabled: !this.languages,
345
- ref: i => u(this, x, i, "f"),
346
- model: this.languagesComboBoxModel,
347
- part: "filter-language",
348
- onInput: f(this, $, "f")
349
- })), t("div", {
350
- // density
351
- class: "field field-block"
352
- }, t("label", {
353
- class: "label",
354
- htmlFor: "filter-density"
355
- }, f(this, m, "f").filter.density), t("ch-combo-box-render", {
356
- id: "filter-density",
357
- class: "combo-box",
358
- value: (a = this.densitiesComboBoxModel[0]) === null || a === void 0 ? void 0 : a.value,
359
- disabled: !this.densities,
360
- ref: i => u(this, _, i, "f"),
361
- model: this.densitiesComboBoxModel,
362
- part: "filter-density",
363
- onInput: f(this, $, "f")
364
- })), t("div", {
365
- // layer
366
- class: "field field-block"
367
- }, t("label", {
368
- class: "label",
369
- htmlFor: "filter-layer"
370
- }, f(this, m, "f").filter.layer), t("ch-combo-box-render", {
371
- id: "filter-layer",
372
- class: "combo-box",
373
- value: (n = this.layersComboBoxModel[0]) === null || n === void 0 ? void 0 : n.value,
374
- disabled: !this.layers,
375
- ref: i => u(this, M, i, "f"),
376
- model: this.layersComboBoxModel,
377
- part: "filter-layer",
378
- onInput: f(this, $, "f")
379
- })))), f(this, q, "f").call(this));
380
- }));
381
- q.set(this, (() =>
382
- /* tiles */ t("div", {
383
- class: "main__images-container spacing-body-inline"
384
- }, this.imagesSelectedItems.map((i => t("figure", {
385
- class: "figure"
386
- }, t("picture", {
387
- class: "figure__picture"
388
- }, t("img", {
389
- class: "figure__img",
390
- src: i.url,
391
- alt: i.name
392
- })), t("figcaption", {
393
- class: "figure__figcaption"
394
- }, i.name)))))));
395
- G.set(this, (() => t("div", {
396
- class: {
397
- "field-group": true,
398
- main__grid: true,
399
- "main__grid--with-filter": this.secondaryFilter
400
- }
401
- }, this.secondaryFilter ? t("header", {
402
- class: "images-information__header spacing-body-inline-start",
403
- slot: "header"
404
- }, t("div", {
405
- // search contents
406
- class: "field field-inline"
407
- }, t("label", {
408
- class: "label",
409
- htmlFor: "search-input"
410
- }, f(this, m, "f").filter.search), t("ch-edit", {
411
- id: "search-input",
412
- class: "input name",
413
- placeholder: f(this, m, "f").filter.searchByContentPlaceholder,
414
- ref: i => u(this, F, i, "f"),
415
- onInput: f(this, E, "f"),
416
- startImgSrc: Q,
417
- part: "search-input"
418
- }))) : null, t("ch-tabular-grid", {
419
- ref: i => u(this, v, i, "f"),
420
- part: "ch-grid-images",
421
- rowSelectionMode: "multiple",
422
- class: "tabular-grid tabular-grid-ww-images"
423
- }, t("ch-tabular-grid-columnset", {
424
- class: "tabular-grid-column-set"
425
- }, t("ch-tabular-grid-column", {
426
- columnName: "",
427
- columnNameHidden: false,
428
- settingable: false,
429
- size: r.tabularGrid.colSize.maxContent,
430
- class: "tabular-grid-column"
431
- }), t("ch-tabular-grid-column", {
432
- columnName: f(this, m, "f").tableHead.name,
433
- columnNameHidden: false,
434
- settingable: false,
435
- class: "tabular-grid-column",
436
- size: r.tabularGrid.colSize.common
437
- }), t("ch-tabular-grid-column", {
438
- columnName: f(this, m, "f").tableHead.module,
439
- columnNameHidden: false,
440
- settingable: false,
441
- size: r.tabularGrid.colSize.common,
442
- class: "tabular-grid-column"
443
- }), t("ch-tabular-grid-column", {
444
- columnName: f(this, m, "f").tableHead.description,
445
- columnNameHidden: false,
446
- settingable: false,
447
- size: r.tabularGrid.colSize.commonDouble,
448
- class: "tabular-grid-column"
449
- }), t("ch-tabular-grid-column", {
450
- columnName: f(this, m, "f").tableHead.modifiedDate,
451
- columnNameHidden: false,
452
- settingable: false,
453
- size: r.tabularGrid.colSize.maxContent,
454
- class: "tabular-grid-column"
455
- }), t("ch-tabular-grid-column", {
456
- columnName: f(this, m, "f").tableHead.lastUser,
457
- columnNameHidden: false,
458
- settingable: false,
459
- size: r.tabularGrid.colSize.maxContent,
460
- class: "tabular-grid-column"
461
- }), t("ch-tabular-grid-column", {
462
- columnName: f(this, m, "f").tableHead.importDate,
463
- columnNameHidden: false,
464
- settingable: false,
465
- size: r.tabularGrid.colSize.maxContent,
466
- class: "tabular-grid-column"
467
- })), this.filteredImages.length ? t("ch-tabular-grid-rowset", {
468
- class: "tabular-grid-rowset"
469
- }, this.filteredImages.map((i => t("ch-tabular-grid-row", {
470
- rowid: i.id,
471
- class: "tabular-grid-row"
472
- }, t("ch-tabular-grid-cell", {
473
- class: "tabular-grid-cell"
474
- }, t("ch-image", {
475
- src: i.icon
476
- })), t("ch-tabular-grid-cell", {
477
- class: "tabular-grid-cell"
478
- }, o(i.name.toLowerCase(), this.filterImagesInputValue)), t("ch-tabular-grid-cell", {
479
- class: "tabular-grid-cell"
480
- }, o(i.module.toLowerCase(), this.filterImagesInputValue)), t("ch-tabular-grid-cell", {
481
- class: "tabular-grid-cell"
482
- }, o(i.description.toLowerCase(), this.filterImagesInputValue)), t("ch-tabular-grid-cell", {
483
- class: "tabular-grid-cell"
484
- }, o(`${d(i.modifiedDate)}`, this.filterImagesInputValue)), t("ch-tabular-grid-cell", {
485
- class: "tabular-grid-cell"
486
- }, o(i.lastUser.toLowerCase(), this.filterImagesInputValue)), t("ch-tabular-grid-cell", {
487
- class: "tabular-grid-cell"
488
- }, o(`${d(i.importDate)}`, this.filterImagesInputValue)))))) : null))));
489
- U.set(this, (() => {
490
- if (f(this, g, "f")) {
491
- f(this, z, "f").value = f(this, g, "f").name;
492
- f(this, C, "f").value = f(this, g, "f").module;
493
- f(this, F, "f").value = f(this, g, "f").searchContents;
494
- f(this, k, "f").value = f(this, g, "f").category;
495
- f(this, y, "f").value = f(this, g, "f").allDescendants;
496
- f(this, w, "f").value = f(this, g, "f").modifiedAfter;
497
- f(this, W, "f").value = f(this, g, "f").modifiedDateTime;
498
- f(this, D, "f").value = f(this, g, "f").modifiedUser;
499
- f(this, I, "f").value = f(this, g, "f").style;
500
- f(this, x, "f").value = f(this, g, "f").language;
501
- f(this, _, "f").value = f(this, g, "f").density;
502
- f(this, M, "f").value = f(this, g, "f").layer;
503
- f(this, $, "f").call(this);
504
- this.afterCurrentValue = f(this, k, "f").value;
505
- // this value has to be evaluated on a re-render
506
- }
507
- }));
508
- X.set(this, (() => {
509
- var i, e, t;
510
- u(this, g, {
511
- name: f(this, z, "f").value,
512
- module: f(this, C, "f").value,
513
- searchContents: f(this, F, "f").value,
514
- category: f(this, k, "f").value,
515
- allDescendants: f(this, y, "f").value,
516
- modifiedAfter: (i = f(this, w, "f")) === null || i === void 0 ? void 0 : i.value,
517
- modifiedDateTime: (e = f(this, W, "f")) === null || e === void 0 ? void 0 : e.value,
518
- modifiedUser: (t = f(this, D, "f")) === null || t === void 0 ? void 0 : t.value,
519
- style: f(this, I, "f").value,
520
- language: f(this, x, "f").value,
521
- density: f(this, _, "f").value,
522
- layer: f(this, M, "f").value
523
- }, "f");
524
- }));
525
- Y.set(this, (() => {
526
- f(this, v, "f").selectAllRows();
527
- }));
528
- this.categoriesComboBoxModel = [];
529
- this.densitiesComboBoxModel = [];
530
- this.languagesComboBoxModel = [];
531
- this.layersComboBoxModel = [];
532
- this.stylesComboBoxModel = [];
533
- this.filterSidebarExpanded = false;
534
- this.afterCurrentValue = undefined;
535
- this.filterAfterOptions = undefined;
536
- this.filterImagesInputValue = "";
537
- this.filterModified = false;
538
- this.filteredImages = [];
539
- this.images = [];
540
- this.imagesSelectedItems = [];
541
- this.selectedObjectsIds = [];
542
- this.toggleFilterButtonActive = false;
543
- this.categories = undefined;
544
- this.contextMenuCallback = undefined;
545
- this.defaultCategory = undefined;
546
- this.defaultModule = undefined;
547
- this.deleteSelectionCallback = undefined;
548
- this.densities = undefined;
549
- this.languages = undefined;
550
- this.layers = undefined;
551
- this.loadCallback = undefined;
552
- this.loadImageItemsCallback = undefined;
553
- this.newObjectCallback = undefined;
554
- this.openSelectionCallback = undefined;
555
- this.selectModuleCallback = undefined;
556
- this.selectionObjectChangedCallback = undefined;
557
- this.secondaryFilter = false;
558
- this.shadow = false;
559
- this.styles = undefined;
560
- this.types = undefined;
561
- }
562
- toggleFilterButtonActiveChanged(i) {
563
- this.filterSidebarExpanded = i;
564
- }
565
- categoriesChanged(i) {
566
- this.categoriesComboBoxModel = mapOptionsToComboBoxItemModel(i);
567
- }
568
- densitiesChanged(i) {
569
- this.densitiesComboBoxModel = mapOptionsToComboBoxItemModel(i);
570
- }
571
- languagesChanged(i) {
572
- this.languagesComboBoxModel = mapOptionsToComboBoxItemModel(i);
573
- }
574
- layersChanged(i) {
575
- this.layersComboBoxModel = mapOptionsToComboBoxItemModel(i);
576
- }
577
- stylesChanged(i) {
578
- this.stylesComboBoxModel = mapOptionsToComboBoxItemModel(i);
579
- }
580
- async connectedCallback() {
581
- K = f(this, B, "f").call(this);
582
- }
583
- componentDidLoad() {
584
- f(this, L, "f").call(this);
585
- f(this, $, "f").call(this);
586
- f(this, X, "f").call(this);
587
- f(this, z, "f").focus();
588
- }
589
- componentDidRender() {
590
- if (!f(this, p, "f")) {
591
- this.componentDidRenderFirstTime.emit(f(this, m, "f").componentName);
592
- u(this, p, true, "f");
593
- }
594
- }
595
- async componentWillLoad() {
596
- u(this, m, await h.getComponentStrings(this.el), "f");
597
- this.componentDidLoadEvent.emit(true);
598
- // initialize combo-box models
599
- this.categoriesChanged(this.categories);
600
- this.densitiesChanged(this.densities);
601
- this.languagesChanged(this.languages);
602
- this.layersChanged(this.layers);
603
- this.stylesChanged(this.styles);
604
- // initialize "After" combo-box options
605
- this.filterAfterOptions = [ {
606
- caption: f(this, m, "f").filter.afterNone,
607
- value: l.NONE
608
- }, {
609
- caption: f(this, m, "f").filter[l.DATE_TIME],
610
- value: l.DATE_TIME
611
- }, {
612
- caption: f(this, m, "f").filter[l.IMPORT],
613
- value: l.IMPORT
614
- }, {
615
- caption: f(this, m, "f").filter[l.LAST_BUILD],
616
- value: l.LAST_BUILD
617
- } ];
618
- this.afterCurrentValue = this.filterAfterOptions[0].value;
619
- }
620
- keyDownHandler(i) {
621
- if (document.activeElement === this.el) {
622
- switch (i.key) {
623
- case "Enter":
624
- f(this, R, "f").call(this);
625
- break;
626
-
627
- case "Delete":
628
- f(this, N, "f").call(this);
629
- break;
630
- }
631
- }
632
- }
633
- /**
634
- * Reloads the view, refreshing the filters and the images table.
635
- */ async reload() {
636
- f(this, N, "f").call(this);
637
- f(this, $, "f").call(this);
638
- }
639
- render() {
640
- return t(s, {
641
- class: "widget"
642
- }, t("ch-theme", {
643
- model: J
644
- }), t("section", {
645
- class: "section"
646
- }, t("header", {
647
- class: "header control-header-with-border spacing-body-inline spacing-body-block-start field-group"
648
- }, f(this, S, "f").call(this)), t("div", {
649
- class: "main"
650
- }, f(this, G, "f").call(this), t("div", {
651
- class: "main__aside field-group"
652
- }, t("div", {
653
- class: "spacing-body-inline"
654
- }, t("button", {
655
- // reset filter button
656
- class: "button-secondary button-icon-and-text button-reset",
657
- onClick: f(this, U, "f")
658
- }, t("ch-image", {
659
- class: "icon-sm",
660
- src: O
661
- }), "Reset")), f(this, V, "f").call(this))), t("footer", {
662
- class: "control-footer-with-border control-footer-space-between spacing-body"
663
- }, t("p", {
664
- // matching objects
665
- class: "text-body",
666
- part: "objects-matching"
667
- }, `${this.filteredImages.length} ${f(this, m, "f").objCount.matching}`), t("div", {
668
- class: "buttons-spacer"
669
- }, t("button", {
670
- // select all button
671
- id: "button-select-all",
672
- class: "button-secondary",
673
- onClick: f(this, Y, "f"),
674
- part: "button button--select-all"
675
- }, f(this, m, "f").footer.btnSelectAll), t("button", {
676
- // new image button
677
- id: "button-new-file",
678
- class: "button-primary button-icon-and-text",
679
- onClick: f(this, P, "f"),
680
- part: "button button--new-file"
681
- }, f(this, m, "f").footer.btnNew)))));
682
- }
683
- static get assetsDirs() {
684
- return [ "gx-ide-assets/ww-images" ];
685
- }
686
- get el() {
687
- return a(this);
688
- }
689
- static get watchers() {
690
- return {
691
- toggleFilterButtonActive: [ "toggleFilterButtonActiveChanged" ],
692
- categories: [ "categoriesChanged" ],
693
- densities: [ "densitiesChanged" ],
694
- languages: [ "languagesChanged" ],
695
- layers: [ "layersChanged" ],
696
- styles: [ "stylesChanged" ]
697
- };
698
- }
699
- };
700
-
701
- m = new WeakMap, g = new WeakMap, p = new WeakMap, b = new WeakMap, v = new WeakMap,
702
- w = new WeakMap, y = new WeakMap, k = new WeakMap, _ = new WeakMap, x = new WeakMap,
703
- M = new WeakMap, W = new WeakMap, C = new WeakMap, z = new WeakMap, F = new WeakMap,
704
- I = new WeakMap, D = new WeakMap, N = new WeakMap, T = new WeakMap, j = new WeakMap,
705
- H = new WeakMap, E = new WeakMap, A = new WeakMap, $ = new WeakMap, B = new WeakMap,
706
- L = new WeakMap, P = new WeakMap, R = new WeakMap, S = new WeakMap, V = new WeakMap,
707
- q = new WeakMap, G = new WeakMap, U = new WeakMap, X = new WeakMap, Y = new WeakMap;
708
-
709
- ei.style = c;
710
-
711
- export { ei as gx_ide_ww_images };
712
- //# sourceMappingURL=p-62efd8f2.entry.js.map