@genexus/genexus-ide-ui 1.1.24 → 1.1.25

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 (31) hide show
  1. package/dist/cjs/genexus-ide-ui.cjs.js +1 -1
  2. package/dist/cjs/gx-ide-ww-files.cjs.entry.js +235 -211
  3. package/dist/cjs/gx-ide-ww-files.cjs.entry.js.map +1 -1
  4. package/dist/cjs/loader.cjs.js +1 -1
  5. package/dist/collection/components/ww-files/gx-ide-assets/ww-files/langs/ww-files.lang.en.json +10 -1
  6. package/dist/collection/components/ww-files/gx-ide-assets/ww-files/langs/ww-files.lang.ja.json +9 -0
  7. package/dist/collection/components/ww-files/gx-ide-assets/ww-files/langs/ww-files.lang.zh.json +9 -0
  8. package/dist/collection/components/ww-files/helpers.js +12 -0
  9. package/dist/collection/components/ww-files/helpers.js.map +1 -1
  10. package/dist/collection/components/ww-files/ww-files.css +49 -63
  11. package/dist/collection/components/ww-files/ww-files.js +270 -421
  12. package/dist/collection/components/ww-files/ww-files.js.map +1 -1
  13. package/dist/components/gx-ide-ww-files.js +258 -233
  14. package/dist/components/gx-ide-ww-files.js.map +1 -1
  15. package/dist/esm/genexus-ide-ui.js +1 -1
  16. package/dist/esm/gx-ide-ww-files.entry.js +236 -212
  17. package/dist/esm/gx-ide-ww-files.entry.js.map +1 -1
  18. package/dist/esm/loader.js +1 -1
  19. package/dist/genexus-ide-ui/genexus-ide-ui.esm.js +1 -1
  20. package/dist/genexus-ide-ui/genexus-ide-ui.esm.js.map +1 -1
  21. package/dist/genexus-ide-ui/gx-ide-assets/ww-files/langs/ww-files.lang.en.json +10 -1
  22. package/dist/genexus-ide-ui/gx-ide-assets/ww-files/langs/ww-files.lang.ja.json +9 -0
  23. package/dist/genexus-ide-ui/gx-ide-assets/ww-files/langs/ww-files.lang.zh.json +9 -0
  24. package/dist/genexus-ide-ui/p-163bfc6a.entry.js +611 -0
  25. package/dist/genexus-ide-ui/p-163bfc6a.entry.js.map +1 -0
  26. package/dist/types/components/ww-files/helpers.d.ts +1 -0
  27. package/dist/types/components/ww-files/ww-files.d.ts +36 -76
  28. package/dist/types/components.d.ts +10 -89
  29. package/package.json +1 -1
  30. package/dist/genexus-ide-ui/p-385c9544.entry.js +0 -564
  31. package/dist/genexus-ide-ui/p-385c9544.entry.js.map +0 -1
@@ -1,7 +1,11 @@
1
- import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
1
+ import { h, proxyCustomElement, HTMLElement, Host } from '@stencil/core/internal/client';
2
+ import { g as getIconPath } from './MERCURY_ASSETS.js';
2
3
  import { L as Locale } from './locale.js';
3
4
  import { c as config } from './config.js';
4
- import { d as defineCustomElement$2 } from './entity-selector.js';
5
+ import { f as formatDate } from './helpers.js';
6
+ import { d as defineCustomElement$4 } from './gx-ide-empty-state2.js';
7
+ import { d as defineCustomElement$3 } from './entity-selector.js';
8
+ import { d as defineCustomElement$2 } from './ide-loader.js';
5
9
 
6
10
  const mapOptionsToComboBoxItemModel = (options) => {
7
11
  return options.map(option => {
@@ -13,16 +17,20 @@ const mapOptionsToComboBoxItemModel = (options) => {
13
17
  };
14
18
  });
15
19
  };
20
+ const escapeRegExp = (string) => {
21
+ return string.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
22
+ };
23
+ const hiChar = (text, search) => {
24
+ if (!search) {
25
+ return text;
26
+ }
27
+ const escapedSearch = escapeRegExp(search);
28
+ const parts = text.split(new RegExp(`(${escapedSearch})`, "gi"));
29
+ return parts.map((part, i) => part.toLowerCase() === search.toLowerCase() ? (h("span", { key: i, class: "hiChar" }, part)) : (part));
30
+ };
16
31
 
17
- const wwFilesCss = "/*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: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.hide {\n display: none !important;\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 display: grid;\n grid-template-columns: 1fr auto;\n gap: var(--mer-spacing--md);\n overflow: auto;\n padding-block-start: var(--mer-spacing--md);\n}\n\n.main__grid {\n display: grid;\n grid-template-rows: max-content 1fr;\n gap: var(--mer-spacing--md);\n overflow: auto;\n}\n\n.main__filter {\n display: grid;\n grid-auto-rows: max-content;\n gap: var(--mer-spacing--sm);\n overflow: auto;\n}\n\n.search-content {\n inline-size: 100%;\n}\n\n.filter-row {\n display: grid;\n grid-template-columns: 1fr 2fr;\n gap: var(--mer-spacing--md);\n}\n\n.category-column {\n grid-column: 1;\n}\n\n.checkboxes-column {\n grid-column: 2;\n display: flex;\n flex-direction: row;\n gap: var(--mer-spacing--md);\n align-items: center;\n min-block-size: 100%;\n justify-content: flex-start;\n padding-block-start: 1.75rem;\n}\n\n.modified-inputs {\n display: grid;\n grid-template-columns: repeat(3, 1fr);\n gap: var(--mer-spacing--md);\n margin-block-start: var(--mer-spacing--sm);\n}\n.modified-inputs .field {\n display: flex;\n flex-direction: column;\n gap: var(--mer-spacing--sm);\n}\n.modified-inputs .field.hide {\n display: none;\n}\n.modified-inputs .field .input,\n.modified-inputs .field .combo-box {\n width: 100%;\n}\n\n.tabular-grid-ww-files {\n overflow: auto;\n inline-size: 100%;\n border-inline-end: var(--section-common-border);\n}\n\n.main__files-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\n.hiChar {\n color: var(--mer-color__primary--200);\n filter: brightness(1.3);\n}\n\n.tabular-grid-ww-files 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 min-inline-size: 0;\n}\n@container (max-width: 992px) {\n .main__files-container {\n grid-template-columns: repeat(3, 1fr);\n }\n}";
32
+ const wwFilesCss = ":host{container-type:inline-size;display:grid;block-size:100%;overflow:auto;grid-template-rows:max-content 1fr max-content}.section{display:contents}.header{grid-template-areas:\"name module-folder\" \"advanced-filter advanced-filter\";grid-template-columns:1fr 1fr;grid-auto-rows:max-content max-content}.name{grid-area:name}.module-folder{grid-area:module-folder}.advanced-filter{grid-area:advanced-filter}.advanced-filter__container{display:grid;grid-auto-rows:max-content}.advanced-filter__first-row{grid-template-columns:1fr 1fr}.advanced-filter__second-row{grid-template-columns:1fr 1fr 1fr}.advanced-filter .all-descendants__modified{display:flex;flex-direction:row;align-items:center;block-size:32px;gap:16px;align-self:self-end}.field-date{grid-template-areas:\"label-date-time label-date-time\" \"input-date-time icon-clear-date-time\";grid-template-columns:1fr max-content;column-gap:var(--mer-spacing--2xs)}.label-date-time{display:flex;align-items:center;gap:6px;grid-area:label-date-time}.label-date-time .icon-md{--mer-icon__box--md:16.8px}.input-date-time{block-size:31.98px;grid-area:input-date-time}.icon-clear-date-time{grid-area:icon-clear-date-time}.tabular-grid{overflow:auto;inline-size:100%;border-inline-end:var(--section-common-border)}.tabular-grid.empty::part(main),.tabular-grid.loading::part(main){overflow:hidden}ch-tabular-grid-rowset-empty{position:relative}.main__files-container{display:grid;grid-template-columns:repeat(4, 1fr);gap:var(--mer-spacing--xs);position:relative;z-index:1}.hiChar{color:var(--mer-color__primary--200);filter:brightness(1.3)}.tabular-grid ch-tabular-grid-cell:is(:nth-child(4)){padding-block:var(--grid-cell__padding-block);padding-inline:var(--grid-cell__padding-inline);align-items:start;justify-content:start;display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-inline-size:0}.tabular-grid-cell-description{min-inline-size:max-content !important}.hiChar{color:var(--mer-color__primary--200);filter:brightness(1.3)}";
18
33
 
19
- var __classPrivateFieldGet = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
20
- if (kind === "a" && !f)
21
- throw new TypeError("Private accessor was defined without a getter");
22
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
23
- throw new TypeError("Cannot read private member from an object whose class did not declare it");
24
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
25
- };
26
34
  var __classPrivateFieldSet = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
27
35
  if (kind === "m")
28
36
  throw new TypeError("Private method is not writable");
@@ -32,7 +40,14 @@ var __classPrivateFieldSet = (undefined && undefined.__classPrivateFieldSet) ||
32
40
  throw new TypeError("Cannot write private member to an object whose class did not declare it");
33
41
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
34
42
  };
35
- var _GxIdeWWFiles_componentLocale, _GxIdeWWFiles_ACCORDION_FILTER_ID, _GxIdeWWFiles_ACCORDION_MODEL, _GxIdeWWFiles_chGridEl, _GxIdeWWFiles_filterAfterTypeEl, _GxIdeWWFiles_filterAllDescendantsEl, _GxIdeWWFiles_filterCategoryEl, _GxIdeWWFiles_filterModifiedDateEl, _GxIdeWWFiles_filterModuleEl, _GxIdeWWFiles_filterModifiedEl, _GxIdeWWFiles_filterNameEl, _GxIdeWWFiles_filterSearchContentsEl, _GxIdeWWFiles_filterUserEl, _GxIdeWWFiles_renderHeader, _GxIdeWWFiles_renderObjects, _GxIdeWWFiles_hiChar, _GxIdeWWFiles_formatDate, _GxIdeWWFiles_getObjects, _GxIdeWWFiles_filterFiles, _GxIdeWWFiles_handleFilterInput, _GxIdeWWFiles_handleSearchContentsInput, _GxIdeWWFiles_deleteSelectionCallbackHandle, _GxIdeWWFiles_deselectAll, _GxIdeWWFiles_expandedHandler, _GxIdeWWFiles_filterModifiedCallbackHandle, _GxIdeWWFiles_filterAfterTypeCallbackHandle, _GxIdeWWFiles_listenChanges, _GxIdeWWFiles_newFileCallbackHandle, _GxIdeWWFiles_openSelectionCallbackHandle, _GxIdeWWFiles_selectAll;
43
+ var __classPrivateFieldGet = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
44
+ if (kind === "a" && !f)
45
+ throw new TypeError("Private accessor was defined without a getter");
46
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
47
+ throw new TypeError("Cannot read private member from an object whose class did not declare it");
48
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
49
+ };
50
+ var _GxIdeWWFiles_componentLocale, _GxIdeWWFiles_ACCORDION_MODEL, _GxIdeWWFiles_nameValue, _GxIdeWWFiles_moduleValue, _GxIdeWWFiles_searchContentsValue, _GxIdeWWFiles_categoryValue, _GxIdeWWFiles_allDescendants, _GxIdeWWFiles_userValue, _GxIdeWWFiles_selectedObjectsIds, _GxIdeWWFiles_chGridEl, _GxIdeWWFiles_filterModuleEl, _GxIdeWWFiles_setFilterDefaultValues, _GxIdeWWFiles_allDescendantsCheckboxHandler, _GxIdeWWFiles_attachGridListeners, _GxIdeWWFiles_categoryInputHandler, _GxIdeWWFiles_clearDateTimeValue, _GxIdeWWFiles_dateTimeInputHandler, _GxIdeWWFiles_deleteSelectionCallbackHandler, _GxIdeWWFiles_deselectAll, _GxIdeWWFiles_evaluateModifiedDates, _GxIdeWWFiles_filterAfterTypeCallbackHandler, _GxIdeWWFiles_formatDate, _GxIdeWWFiles_getObjects, _GxIdeWWFiles_renderHeader, _GxIdeWWFiles_renderObjects, _GxIdeWWFiles_moduleValueChangedHandler, _GxIdeWWFiles_nameInputHandler, _GxIdeWWFiles_newFileCallbackHandler, _GxIdeWWFiles_openSelectionCallbackHandler, _GxIdeWWFiles_searchContentsInputHandler, _GxIdeWWFiles_setLoadingState, _GxIdeWWFiles_userInputHandler, _GxIdeWWFiles_showModifiedCheckboxHandler, _GxIdeWWFiles_selectAll;
36
51
  const CSS_BUNDLES = [
37
52
  "resets/box-sizing",
38
53
  "components/button",
@@ -40,239 +55,268 @@ const CSS_BUNDLES = [
40
55
  "components/combo-box",
41
56
  "components/accordion",
42
57
  "components/edit",
58
+ "components/icon",
59
+ "components/tooltip",
43
60
  "components/tabular-grid",
44
61
  "utils/form",
45
62
  "utils/layout",
46
63
  "utils/typography",
47
64
  "utils/spacing"
48
65
  ];
66
+ const CLEAR_ICON = getIconPath({
67
+ category: "system",
68
+ name: "close",
69
+ colorType: "neutral"
70
+ });
71
+ const FILTER_ICON = getIconPath({
72
+ category: "window-tools",
73
+ name: "filter",
74
+ colorType: "on-elevation"
75
+ });
76
+ const INFO_ICON = getIconPath({
77
+ category: "system",
78
+ name: "information",
79
+ colorType: "on-elevation"
80
+ });
81
+ const ACCORDION_FILTER_ID = "advanced-filter";
49
82
  const FILTER_AFTER_DATE_TIME = "afterDateTime";
50
83
  const FILTER_AFTER_LAST_BUILD = "afterLastBuild";
51
84
  const FILTER_AFTER_IMPORT = "afterImport";
85
+ const CHECKBOX_CHECKED_VALUE = "checked";
86
+ const CHECKBOX_UNCHECKED_VALUE = "unchecked";
52
87
  const GxIdeWWFiles = /*@__PURE__*/ proxyCustomElement(class GxIdeWWFiles extends HTMLElement {
53
88
  constructor() {
54
89
  super();
55
90
  this.__registerHost();
56
91
  this.__attachShadow();
57
- this.componentDidLoadEvent = createEvent(this, "componentDidLoadEvent", 7);
58
92
  _GxIdeWWFiles_componentLocale.set(this, void 0);
59
- _GxIdeWWFiles_ACCORDION_FILTER_ID.set(this, "advanced-filter");
60
93
  _GxIdeWWFiles_ACCORDION_MODEL.set(this, []);
94
+ // Filter Values
95
+ _GxIdeWWFiles_nameValue.set(this, void 0);
96
+ _GxIdeWWFiles_moduleValue.set(this, void 0);
97
+ // Advanced Filter Values
98
+ _GxIdeWWFiles_searchContentsValue.set(this, void 0);
99
+ _GxIdeWWFiles_categoryValue.set(this, void 0);
100
+ _GxIdeWWFiles_allDescendants.set(this, void 0);
101
+ _GxIdeWWFiles_userValue.set(this, void 0);
102
+ // Other
103
+ _GxIdeWWFiles_selectedObjectsIds.set(this, []);
61
104
  _GxIdeWWFiles_chGridEl.set(this, void 0);
62
- _GxIdeWWFiles_filterAfterTypeEl.set(this, void 0);
63
- _GxIdeWWFiles_filterAllDescendantsEl.set(this, void 0);
64
- _GxIdeWWFiles_filterCategoryEl.set(this, void 0);
65
- _GxIdeWWFiles_filterModifiedDateEl.set(this, void 0);
66
105
  _GxIdeWWFiles_filterModuleEl.set(this, void 0);
67
- _GxIdeWWFiles_filterModifiedEl.set(this, void 0);
68
- _GxIdeWWFiles_filterNameEl.set(this, void 0);
69
- _GxIdeWWFiles_filterSearchContentsEl.set(this, void 0);
70
- _GxIdeWWFiles_filterUserEl.set(this, void 0);
71
- _GxIdeWWFiles_renderHeader.set(this, () => {
72
- return [
73
- h("div", { class: "field field-block name" }, h("label", { class: "label", htmlFor: "filter-files" }, __classPrivateFieldGet(this, _GxIdeWWFiles_componentLocale, "f").filter.name), h("ch-edit", { id: "filter-files", class: "input", ref: (el) => (__classPrivateFieldSet(this, _GxIdeWWFiles_filterNameEl, el, "f")), value: this.filterFilesInputValue, onInput: __classPrivateFieldGet(this, _GxIdeWWFiles_handleFilterInput, "f"), part: "filter-files" })),
74
- h("div", { class: "field field-block module-folder" }, h("label", { class: "label", htmlFor: "module-folder" }, __classPrivateFieldGet(this, _GxIdeWWFiles_componentLocale, "f").filter.moduleFolder), h("gx-ide-entity-selector", { part: "filter-module-folder", id: "module/folder", labelPosition: "none", value: this.defaultModule, defaultValue: this.defaultModule, selectEntityCallback: this.selectModuleCallback, ref: (el) => (__classPrivateFieldSet(this, _GxIdeWWFiles_filterModuleEl, el, "f")) })),
75
- h("ch-accordion-render", { class: "accordion-outlined advanced-filter-accordion", model: __classPrivateFieldGet(this, _GxIdeWWFiles_ACCORDION_MODEL, "f"), onExpandedChange: __classPrivateFieldGet(this, _GxIdeWWFiles_expandedHandler, "f") }, h("div", { slot: __classPrivateFieldGet(this, _GxIdeWWFiles_ACCORDION_FILTER_ID, "f"), class: "spacing-body" }, h("div", { class: "main__filter" }, this.showSearchContents && (h("div", { class: "search-content" }, h("div", { class: "field field-block" }, h("label", { class: "label", htmlFor: "filter-content" }, __classPrivateFieldGet(this, _GxIdeWWFiles_componentLocale, "f").filter.content), h("ch-edit", { id: "filter-content", class: "input", ref: (el) => (__classPrivateFieldSet(this, _GxIdeWWFiles_filterSearchContentsEl, el, "f")), onInput: __classPrivateFieldGet(this, _GxIdeWWFiles_handleSearchContentsInput, "f"), part: "filter-content" })))), h("div", { class: "filter-row" }, h("div", { class: "category-column" }, h("div", { class: "field field-block" }, h("label", { class: "label", htmlFor: "filter-category" }, __classPrivateFieldGet(this, _GxIdeWWFiles_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, _GxIdeWWFiles_filterCategoryEl, el, "f")), model: this.categoriesComboBoxModel, part: "filter-category", onInput: __classPrivateFieldGet(this, _GxIdeWWFiles_getObjects, "f") }))), h("div", { class: "checkboxes-column" }, h("ch-checkbox", { class: "checkbox", caption: __classPrivateFieldGet(this, _GxIdeWWFiles_componentLocale, "f").filter.allDescendants, checkedValue: "filterAllDescendants", ref: (el) => (__classPrivateFieldSet(this, _GxIdeWWFiles_filterAllDescendantsEl, el, "f")), onInput: __classPrivateFieldGet(this, _GxIdeWWFiles_getObjects, "f"), part: "filter-all-descendants" }), h("ch-checkbox", { class: "checkbox align-center", caption: __classPrivateFieldGet(this, _GxIdeWWFiles_componentLocale, "f").filter.modified, checkedValue: "filterModified", ref: (el) => (__classPrivateFieldSet(this, _GxIdeWWFiles_filterModifiedEl, el, "f")), onInput: __classPrivateFieldGet(this, _GxIdeWWFiles_filterModifiedCallbackHandle, "f"), part: "filter-modified" })), h("div", { class: "empty-column" })), h("div", { class: { "modified-inputs": true, "hide": !this.filterModified } }, h("div", { class: "field field-block" }, h("label", { class: "label", htmlFor: "filter-after-type" }, __classPrivateFieldGet(this, _GxIdeWWFiles_componentLocale, "f").filter.after), h("ch-combo-box-render", { id: "filter-after-type", class: "combo-box", value: this.afterCurrentValue, ref: (el) => (__classPrivateFieldSet(this, _GxIdeWWFiles_filterAfterTypeEl, el, "f")), model: this.filterAfterOptions, onInput: __classPrivateFieldGet(this, _GxIdeWWFiles_filterAfterTypeCallbackHandle, "f"), part: "filter-after-type" })), h("div", { class: "field field-block" }, h("label", { class: "label", htmlFor: "filter-user" }, __classPrivateFieldGet(this, _GxIdeWWFiles_componentLocale, "f").filter.user), h("ch-edit", { id: "filter-user", class: "input", ref: (el) => (__classPrivateFieldSet(this, _GxIdeWWFiles_filterUserEl, el, "f")), onInput: __classPrivateFieldGet(this, _GxIdeWWFiles_getObjects, "f"), part: "filter-user" })), h("div", { class: {
76
- "field field-block": true,
77
- "hide": this.afterCurrentValue !== FILTER_AFTER_DATE_TIME
78
- } }, h("label", { class: "label", htmlFor: "filter-modified-date" }, __classPrivateFieldGet(this, _GxIdeWWFiles_componentLocale, "f").filter.dateTime), h("ch-edit", { id: "filter-modified-date", type: "date", class: "input", ref: (el) => (__classPrivateFieldSet(this, _GxIdeWWFiles_filterModifiedDateEl, el, "f")), onInput: __classPrivateFieldGet(this, _GxIdeWWFiles_getObjects, "f"), part: "filter-modified-date" }))))))
79
- ];
106
+ _GxIdeWWFiles_setFilterDefaultValues.set(this, () => {
107
+ __classPrivateFieldSet(this, _GxIdeWWFiles_nameValue, "", "f");
108
+ __classPrivateFieldSet(this, _GxIdeWWFiles_moduleValue, Object.assign({}, this.defaultModule), "f");
109
+ __classPrivateFieldSet(this, _GxIdeWWFiles_searchContentsValue, "", "f");
110
+ __classPrivateFieldSet(this, _GxIdeWWFiles_categoryValue, this.defaultCategory || this.categoriesComboBoxModel[0].value, "f");
111
+ __classPrivateFieldSet(this, _GxIdeWWFiles_allDescendants, CHECKBOX_UNCHECKED_VALUE, "f");
112
+ this.afterValue = this.filterAfterComboBoxModel[0].value;
113
+ __classPrivateFieldSet(this, _GxIdeWWFiles_userValue, "", "f");
114
+ this.dateTimeValue = undefined;
80
115
  });
81
- _GxIdeWWFiles_renderObjects.set(this, () => {
82
- return (h("div", { class: "field-group main__grid" }, h("ch-tabular-grid", { ref: (el) => (__classPrivateFieldSet(this, _GxIdeWWFiles_chGridEl, el, "f")), class: "tabular-grid tabular-grid-ww-files", rowSelectionMode: "multiple", part: "ch-grid-files" }, 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, _GxIdeWWFiles_componentLocale, "f").tableHead.name, columnNameHidden: false, settingable: false, size: config.tabularGrid.colSize.common, class: "tabular-grid-column" }), this.showType && (h("ch-tabular-grid-column", { columnName: __classPrivateFieldGet(this, _GxIdeWWFiles_componentLocale, "f").tableHead.type, columnNameHidden: false, settingable: false, size: config.tabularGrid.colSize.common, class: "tabular-grid-column" })), h("ch-tabular-grid-column", { columnName: __classPrivateFieldGet(this, _GxIdeWWFiles_componentLocale, "f").tableHead.module, columnNameHidden: false, settingable: false, size: config.tabularGrid.colSize.common, class: "tabular-grid-column" }), this.showDescription && (h("ch-tabular-grid-column", { columnName: __classPrivateFieldGet(this, _GxIdeWWFiles_componentLocale, "f").tableHead.description, columnNameHidden: false, settingable: false, size: config.tabularGrid.colSize.commonDouble, class: "tabular-grid-column" })), this.showModifiedDate && (h("ch-tabular-grid-column", { columnName: __classPrivateFieldGet(this, _GxIdeWWFiles_componentLocale, "f").tableHead.modifiedDate, columnNameHidden: false, settingable: false, size: config.tabularGrid.colSize.maxContent, class: "tabular-grid-column" })), this.showLastUser && (h("ch-tabular-grid-column", { columnName: __classPrivateFieldGet(this, _GxIdeWWFiles_componentLocale, "f").tableHead.lastUser, columnNameHidden: false, settingable: false, size: config.tabularGrid.colSize.maxContent, class: "tabular-grid-column" })), this.showImportDate && (h("ch-tabular-grid-column", { columnName: __classPrivateFieldGet(this, _GxIdeWWFiles_componentLocale, "f").tableHead.importDate, columnNameHidden: false, settingable: false, size: config.tabularGrid.colSize.maxContent, class: "tabular-grid-column" })), this.showLastBuildDate && (h("ch-tabular-grid-column", { columnName: __classPrivateFieldGet(this, _GxIdeWWFiles_componentLocale, "f").tableHead.lastBuildDate, columnNameHidden: false, settingable: false, size: config.tabularGrid.colSize.maxContent, class: "tabular-grid-column" }))), this.filteredFiles.length ? (h("ch-tabular-grid-rowset", { class: "tabular-grid-rowset" }, this.filteredFiles.map((obj) => {
83
- var _a;
84
- return (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" }, __classPrivateFieldGet(this, _GxIdeWWFiles_hiChar, "f").call(this, obj.name.toLowerCase(), this.filterFilesInputValue)), this.showType && (h("ch-tabular-grid-cell", { class: "tabular-grid-cell" }, __classPrivateFieldGet(this, _GxIdeWWFiles_hiChar, "f").call(this, obj.type.toLowerCase(), this.filterFilesInputValue))), h("ch-tabular-grid-cell", { class: "tabular-grid-cell" }, __classPrivateFieldGet(this, _GxIdeWWFiles_hiChar, "f").call(this, obj.module.toLowerCase(), this.filterFilesInputValue)), this.showDescription && (h("ch-tabular-grid-cell", { class: "tabular-grid-cell" }, __classPrivateFieldGet(this, _GxIdeWWFiles_hiChar, "f").call(this, obj.description.toLowerCase(), this.filterFilesInputValue))), this.showModifiedDate && (h("ch-tabular-grid-cell", { class: "tabular-grid-cell" }, __classPrivateFieldGet(this, _GxIdeWWFiles_hiChar, "f").call(this, obj.modifiedDate
85
- ? __classPrivateFieldGet(this, _GxIdeWWFiles_formatDate, "f").call(this, obj.modifiedDate)
86
- : "", this.filterFilesInputValue))), this.showLastUser && (h("ch-tabular-grid-cell", { class: "tabular-grid-cell" }, __classPrivateFieldGet(this, _GxIdeWWFiles_hiChar, "f").call(this, ((_a = obj.lastUser) === null || _a === void 0 ? void 0 : _a.toLowerCase()) || "", this.filterFilesInputValue))), this.showImportDate && (h("ch-tabular-grid-cell", { class: "tabular-grid-cell" }, __classPrivateFieldGet(this, _GxIdeWWFiles_hiChar, "f").call(this, obj.importDate ? __classPrivateFieldGet(this, _GxIdeWWFiles_formatDate, "f").call(this, obj.importDate) : "", this.filterFilesInputValue))), this.showLastBuildDate && (h("ch-tabular-grid-cell", { class: "tabular-grid-cell" }, __classPrivateFieldGet(this, _GxIdeWWFiles_hiChar, "f").call(this, obj.lastBuildDate
87
- ? __classPrivateFieldGet(this, _GxIdeWWFiles_formatDate, "f").call(this, obj.lastBuildDate)
88
- : "", this.filterFilesInputValue)))));
89
- }))) : null)));
90
- });
91
- _GxIdeWWFiles_hiChar.set(this, (text, search) => {
92
- if (!search)
93
- return text;
94
- const parts = text.split(new RegExp(`(${search})`, "gi"));
95
- return parts.map((part, i) => part.toLowerCase() === search.toLowerCase() ? (h("span", { key: i, class: "highlight" }, part)) : (part));
96
- });
97
- _GxIdeWWFiles_formatDate.set(this, (date) => {
98
- return date.toISOString().slice(0, 10);
116
+ _GxIdeWWFiles_allDescendantsCheckboxHandler.set(this, (event) => {
117
+ __classPrivateFieldSet(this, _GxIdeWWFiles_allDescendants, event.detail === CHECKBOX_CHECKED_VALUE
118
+ ? CHECKBOX_CHECKED_VALUE
119
+ : CHECKBOX_UNCHECKED_VALUE, "f");
120
+ __classPrivateFieldGet(this, _GxIdeWWFiles_getObjects, "f").call(this);
99
121
  });
100
- _GxIdeWWFiles_getObjects.set(this, () => {
101
- var _a;
102
- const filters = {
103
- name: __classPrivateFieldGet(this, _GxIdeWWFiles_filterNameEl, "f").value,
104
- searchContents: this.showSearchContents
105
- ? (_a = __classPrivateFieldGet(this, _GxIdeWWFiles_filterSearchContentsEl, "f")) === null || _a === void 0 ? void 0 : _a.value
106
- : null,
107
- category: __classPrivateFieldGet(this, _GxIdeWWFiles_filterCategoryEl, "f").value,
108
- parent: __classPrivateFieldGet(this, _GxIdeWWFiles_filterModuleEl, "f").value ? __classPrivateFieldGet(this, _GxIdeWWFiles_filterModuleEl, "f").value.id : null,
109
- allDescendants: !!__classPrivateFieldGet(this, _GxIdeWWFiles_filterAllDescendantsEl, "f").value,
110
- modifiedAfter: this.filterModified ? this.afterCurrentValue : null,
111
- modifiedBy: this.filterModified ? __classPrivateFieldGet(this, _GxIdeWWFiles_filterUserEl, "f").value : null,
112
- modifiedDate: this.filterModified && this.afterCurrentValue === FILTER_AFTER_DATE_TIME
113
- ? new Date(__classPrivateFieldGet(this, _GxIdeWWFiles_filterModifiedDateEl, "f").value)
114
- : null
115
- };
116
- this.loadCallback(filters).then((items) => {
117
- this.objects = items;
118
- __classPrivateFieldGet(this, _GxIdeWWFiles_filterFiles, "f").call(this);
119
- this.selectedObjectsIds = [];
120
- __classPrivateFieldGet(this, _GxIdeWWFiles_deselectAll, "f").call(this);
122
+ _GxIdeWWFiles_attachGridListeners.set(this, () => {
123
+ __classPrivateFieldGet(this, _GxIdeWWFiles_chGridEl, "f").addEventListener("selectionChanged", (ev) => {
124
+ __classPrivateFieldSet(this, _GxIdeWWFiles_selectedObjectsIds, ev.detail.rowsId, "f");
125
+ this.selectionChangeCallback(__classPrivateFieldGet(this, _GxIdeWWFiles_selectedObjectsIds, "f"));
121
126
  });
122
- });
123
- _GxIdeWWFiles_filterFiles.set(this, () => {
124
- var _a, _b;
125
- const filterValue = this.filterFilesInputValue.toLowerCase();
126
- const searchContents = this.showSearchContents
127
- ? ((_b = (_a = __classPrivateFieldGet(this, _GxIdeWWFiles_filterSearchContentsEl, "f")) === null || _a === void 0 ? void 0 : _a.value) === null || _b === void 0 ? void 0 : _b.toLowerCase()) || ""
128
- : "";
129
- this.filteredFiles = this.objects.filter(file => {
130
- var _a, _b, _c, _d, _e;
131
- const nameMatch = file.name.toLowerCase().includes(filterValue);
132
- const typeMatch = file.type.toLowerCase().includes(filterValue);
133
- const moduleMatch = file.module.toLowerCase().includes(filterValue);
134
- const descriptionMatch = (_a = file.description) === null || _a === void 0 ? void 0 : _a.toLowerCase().includes(filterValue);
135
- const modifiedDateMatch = (_b = file.modifiedDate) === null || _b === void 0 ? void 0 : _b.toString().includes(filterValue);
136
- const lastUserMatch = (_c = file.lastUser) === null || _c === void 0 ? void 0 : _c.toLowerCase().includes(filterValue);
137
- const importDateMatch = (_d = file.importDate) === null || _d === void 0 ? void 0 : _d.toString().includes(filterValue);
138
- const contentsMatch = searchContents
139
- ? (_e = file.description) === null || _e === void 0 ? void 0 : _e.toLowerCase().includes(searchContents)
140
- : true;
141
- return ((nameMatch ||
142
- typeMatch ||
143
- moduleMatch ||
144
- descriptionMatch ||
145
- modifiedDateMatch ||
146
- lastUserMatch ||
147
- importDateMatch) &&
148
- contentsMatch);
127
+ __classPrivateFieldGet(this, _GxIdeWWFiles_chGridEl, "f").addEventListener("rowDoubleClicked", () => {
128
+ __classPrivateFieldGet(this, _GxIdeWWFiles_openSelectionCallbackHandler, "f").call(this);
129
+ });
130
+ __classPrivateFieldGet(this, _GxIdeWWFiles_chGridEl, "f").addEventListener("rowContextMenu", (ev) => {
131
+ ev.preventDefault();
132
+ ev.stopPropagation();
133
+ this.contextMenuCallback({
134
+ selection: ev.detail.selectedRowsId,
135
+ clientX: ev.detail.clientX,
136
+ clientY: ev.detail.clientY
137
+ });
149
138
  });
150
139
  });
151
- _GxIdeWWFiles_handleFilterInput.set(this, (event) => {
152
- this.filterFilesInputValue = event.detail.toLowerCase();
153
- __classPrivateFieldGet(this, _GxIdeWWFiles_filterFiles, "f").call(this);
140
+ _GxIdeWWFiles_categoryInputHandler.set(this, async (event) => {
141
+ __classPrivateFieldSet(this, _GxIdeWWFiles_categoryValue, event.detail, "f");
142
+ __classPrivateFieldGet(this, _GxIdeWWFiles_getObjects, "f").call(this);
154
143
  });
155
- _GxIdeWWFiles_handleSearchContentsInput.set(this, () => {
156
- __classPrivateFieldGet(this, _GxIdeWWFiles_filterFiles, "f").call(this);
144
+ _GxIdeWWFiles_clearDateTimeValue.set(this, () => {
145
+ this.dateTimeValue = undefined;
157
146
  });
158
- _GxIdeWWFiles_deleteSelectionCallbackHandle.set(this, () => {
159
- this.deleteSelectionCallback(this.selectedObjectsIds);
147
+ _GxIdeWWFiles_dateTimeInputHandler.set(this, (event) => {
148
+ this.dateTimeValue = event.detail;
149
+ __classPrivateFieldGet(this, _GxIdeWWFiles_getObjects, "f").call(this);
150
+ });
151
+ _GxIdeWWFiles_deleteSelectionCallbackHandler.set(this, () => {
152
+ this.deleteSelectionCallback(__classPrivateFieldGet(this, _GxIdeWWFiles_selectedObjectsIds, "f"));
160
153
  });
161
154
  _GxIdeWWFiles_deselectAll.set(this, () => {
162
155
  __classPrivateFieldGet(this, _GxIdeWWFiles_chGridEl, "f").selectAllRows(false);
163
156
  });
164
- _GxIdeWWFiles_expandedHandler.set(this, (e) => {
165
- if (e.detail.id === __classPrivateFieldGet(this, _GxIdeWWFiles_ACCORDION_FILTER_ID, "f")) {
166
- this.advancedFilterAccordionExpanded = e.detail.expanded;
167
- this.filterMore = e.detail.expanded;
168
- }
169
- });
170
- _GxIdeWWFiles_filterModifiedCallbackHandle.set(this, () => {
171
- this.filterModified = !!__classPrivateFieldGet(this, _GxIdeWWFiles_filterModifiedEl, "f").value;
172
- this.enabledModifiedControls = this.filterModified;
173
- if (!this.filterModified) {
174
- // Reset related fields when unchecking Modified
175
- __classPrivateFieldGet(this, _GxIdeWWFiles_filterUserEl, "f").value = null;
176
- __classPrivateFieldGet(this, _GxIdeWWFiles_filterAfterTypeEl, "f").value = null;
177
- this.afterCurrentValue = null;
178
- __classPrivateFieldGet(this, _GxIdeWWFiles_filterModifiedDateEl, "f").value = null;
157
+ _GxIdeWWFiles_evaluateModifiedDates.set(this, (objectModifiedDate, filterSelectedModifiedDate) => {
158
+ const filterSelectedModifiedDateAsDate = new Date(filterSelectedModifiedDate);
159
+ if (filterSelectedModifiedDateAsDate >= objectModifiedDate) {
160
+ // Object modifed date matches with filter date, or was modified after that date.
161
+ // Highlight to show that it matches.
162
+ return h("span", { class: "hiChar" }, __classPrivateFieldGet(this, _GxIdeWWFiles_formatDate, "f").call(this, objectModifiedDate));
179
163
  }
180
164
  else {
181
- // Restore default values when checking Modified
182
- this.afterCurrentValue = FILTER_AFTER_DATE_TIME;
183
- __classPrivateFieldGet(this, _GxIdeWWFiles_filterAfterTypeEl, "f").value = FILTER_AFTER_DATE_TIME;
165
+ return __classPrivateFieldGet(this, _GxIdeWWFiles_formatDate, "f").call(this, objectModifiedDate);
184
166
  }
185
- __classPrivateFieldGet(this, _GxIdeWWFiles_getObjects, "f").call(this);
186
167
  });
187
- _GxIdeWWFiles_filterAfterTypeCallbackHandle.set(this, () => {
188
- const newValue = __classPrivateFieldGet(this, _GxIdeWWFiles_filterAfterTypeEl, "f").value;
189
- // Validar que el valor sea uno de los permitidos
190
- if ([
191
- FILTER_AFTER_DATE_TIME,
192
- FILTER_AFTER_LAST_BUILD,
193
- FILTER_AFTER_IMPORT
194
- ].includes(newValue)) {
195
- this.afterCurrentValue = newValue;
196
- }
197
- else {
198
- // Si no es un valor válido, establecer el valor por defecto
199
- this.afterCurrentValue = FILTER_AFTER_DATE_TIME;
200
- __classPrivateFieldGet(this, _GxIdeWWFiles_filterAfterTypeEl, "f").value = FILTER_AFTER_DATE_TIME;
201
- }
168
+ _GxIdeWWFiles_filterAfterTypeCallbackHandler.set(this, (event) => {
169
+ this.afterValue = event.detail;
202
170
  __classPrivateFieldGet(this, _GxIdeWWFiles_getObjects, "f").call(this);
203
171
  });
204
- _GxIdeWWFiles_listenChanges.set(this, () => {
205
- /* module/folder */
206
- __classPrivateFieldGet(this, _GxIdeWWFiles_filterModuleEl, "f").addEventListener("valueChanged", () => {
207
- __classPrivateFieldGet(this, _GxIdeWWFiles_getObjects, "f").call(this);
208
- });
209
- // for grid selection
210
- __classPrivateFieldGet(this, _GxIdeWWFiles_chGridEl, "f").addEventListener("selectionChanged", (ev) => {
211
- this.selectedObjectsIds = ev.detail.rowsId;
212
- this.selectionChangeCallback(this.selectedObjectsIds);
213
- });
214
- __classPrivateFieldGet(this, _GxIdeWWFiles_chGridEl, "f").addEventListener("rowDoubleClicked", () => {
215
- __classPrivateFieldGet(this, _GxIdeWWFiles_openSelectionCallbackHandle, "f").call(this);
216
- });
217
- __classPrivateFieldGet(this, _GxIdeWWFiles_chGridEl, "f").addEventListener("rowContextMenu", (ev) => {
218
- ev.preventDefault();
219
- ev.stopPropagation();
220
- this.contextMenuCallback({
221
- selection: ev.detail.selectedRowsId,
222
- clientX: ev.detail.clientX,
223
- clientY: ev.detail.clientY
224
- });
172
+ _GxIdeWWFiles_formatDate.set(this, (date) => {
173
+ return formatDate(date, "date-time-short");
174
+ });
175
+ _GxIdeWWFiles_getObjects.set(this, () => {
176
+ __classPrivateFieldGet(this, _GxIdeWWFiles_setLoadingState, "f").call(this);
177
+ const filtersValues = {
178
+ name: __classPrivateFieldGet(this, _GxIdeWWFiles_nameValue, "f"),
179
+ searchContents: __classPrivateFieldGet(this, _GxIdeWWFiles_searchContentsValue, "f"),
180
+ category: __classPrivateFieldGet(this, _GxIdeWWFiles_categoryValue, "f"),
181
+ parent: __classPrivateFieldGet(this, _GxIdeWWFiles_filterModuleEl, "f").value.id,
182
+ allDescendants: __classPrivateFieldGet(this, _GxIdeWWFiles_allDescendants, "f") === CHECKBOX_CHECKED_VALUE,
183
+ modifiedAfter: this.showModified ? this.afterValue : undefined,
184
+ modifiedBy: this.showModified ? __classPrivateFieldGet(this, _GxIdeWWFiles_userValue, "f") : undefined,
185
+ modifiedDate: this.showModified ? new Date(this.dateTimeValue) : undefined
186
+ };
187
+ this.loadCallback(filtersValues).then((items) => {
188
+ this.objects = items;
189
+ __classPrivateFieldSet(this, _GxIdeWWFiles_selectedObjectsIds, [], "f");
190
+ __classPrivateFieldGet(this, _GxIdeWWFiles_deselectAll, "f").call(this);
191
+ this.isLoading = false;
225
192
  });
226
193
  });
227
- _GxIdeWWFiles_newFileCallbackHandle.set(this, () => {
194
+ _GxIdeWWFiles_renderHeader.set(this, () => {
195
+ return [
196
+ h("div", {
197
+ // Name
198
+ class: "field field-block field-name"
199
+ }, h("label", { class: "label", htmlFor: "name" }, __classPrivateFieldGet(this, _GxIdeWWFiles_componentLocale, "f").filter.name), h("ch-edit", { id: "name", class: "input", value: __classPrivateFieldGet(this, _GxIdeWWFiles_nameValue, "f"), onInput: __classPrivateFieldGet(this, _GxIdeWWFiles_nameInputHandler, "f"), part: "filter-files", debounce: config.inputDebounce, disabled: this.isLoading })),
200
+ h("div", {
201
+ // Module
202
+ class: "field field-block field-module-folder"
203
+ }, h("label", { class: "label", htmlFor: "module-folder" }, __classPrivateFieldGet(this, _GxIdeWWFiles_componentLocale, "f").filter.moduleFolder), h("gx-ide-entity-selector", { part: "filter-module-folder", id: "module/folder", labelPosition: "none", value: __classPrivateFieldGet(this, _GxIdeWWFiles_moduleValue, "f"), defaultValue: this.defaultModule, selectEntityCallback: this.selectModuleCallback, ref: (el) => (__classPrivateFieldSet(this, _GxIdeWWFiles_filterModuleEl, el, "f")), onValueChanged: __classPrivateFieldGet(this, _GxIdeWWFiles_moduleValueChangedHandler, "f"), disabled: this.isLoading })),
204
+ h("ch-accordion-render", { class: "accordion-outlined advanced-filter", model: __classPrivateFieldGet(this, _GxIdeWWFiles_ACCORDION_MODEL, "f") }, h("div", { slot: ACCORDION_FILTER_ID, class: "spacing-body field-group advanced-filter__container" }, this.showSearchContents && (h("div", {
205
+ // Search contents
206
+ class: "field field-block field-search-contents"
207
+ }, h("label", { class: "label", htmlFor: "filter-content" }, __classPrivateFieldGet(this, _GxIdeWWFiles_componentLocale, "f").filter.content), h("ch-edit", { id: "filter-content", class: "input", onInput: __classPrivateFieldGet(this, _GxIdeWWFiles_searchContentsInputHandler, "f"), part: "filter-content" }))), h("div", { class: "field-group advanced-filter__first-row" }, h("div", {
208
+ // Category
209
+ class: "field field-block field-category"
210
+ }, h("label", { class: "label", htmlFor: "filter-category" }, __classPrivateFieldGet(this, _GxIdeWWFiles_componentLocale, "f").filter.category), h("ch-combo-box-render", { id: "filter-category", class: "combo-box disabled", value: __classPrivateFieldGet(this, _GxIdeWWFiles_categoryValue, "f"), disabled: !this.categories || this.isLoading, model: this.categoriesComboBoxModel, part: "filter-category", onInput: __classPrivateFieldGet(this, _GxIdeWWFiles_categoryInputHandler, "f") })), h("div", {
211
+ // All descendants / Modified
212
+ class: "all-descendants__modified field field-inline"
213
+ }, h("ch-checkbox", {
214
+ // All descendants
215
+ class: "checkbox", caption: __classPrivateFieldGet(this, _GxIdeWWFiles_componentLocale, "f").filter.allDescendants, checkedValue: CHECKBOX_CHECKED_VALUE, unCheckedValue: CHECKBOX_UNCHECKED_VALUE, value: __classPrivateFieldGet(this, _GxIdeWWFiles_allDescendants, "f"), onInput: __classPrivateFieldGet(this, _GxIdeWWFiles_allDescendantsCheckboxHandler, "f"), part: "filter-all-descendants", disabled: this.isLoading
216
+ }), h("ch-checkbox", {
217
+ // Modified
218
+ class: "checkbox align-center", caption: __classPrivateFieldGet(this, _GxIdeWWFiles_componentLocale, "f").filter.modified, checkedValue: CHECKBOX_CHECKED_VALUE, unCheckedValue: CHECKBOX_UNCHECKED_VALUE, value: this.showModified, onInput: __classPrivateFieldGet(this, _GxIdeWWFiles_showModifiedCheckboxHandler, "f"), part: "filter-modified"
219
+ }))), this.showModified === CHECKBOX_CHECKED_VALUE && (h("div", { class: "field-group advanced-filter__second-row" }, h("div", {
220
+ // After
221
+ class: "field field-block field-after"
222
+ }, h("label", { class: "label", htmlFor: "filter-after-type" }, __classPrivateFieldGet(this, _GxIdeWWFiles_componentLocale, "f").filter.after), h("ch-combo-box-render", { id: "filter-after-type", class: "combo-box", value: this.afterValue, model: this.filterAfterComboBoxModel, onInput: __classPrivateFieldGet(this, _GxIdeWWFiles_filterAfterTypeCallbackHandler, "f"), part: "filter-after-type", disabled: this.isLoading })), h("div", {
223
+ // User
224
+ class: "field field-block field-user"
225
+ }, h("label", { class: "label", htmlFor: "filter-user" }, __classPrivateFieldGet(this, _GxIdeWWFiles_componentLocale, "f").filter.user), h("ch-edit", { id: "filter-user", class: "input", value: __classPrivateFieldGet(this, _GxIdeWWFiles_userValue, "f"), onInput: __classPrivateFieldGet(this, _GxIdeWWFiles_userInputHandler, "f"), part: "filter-user", debounce: config.inputDebounce, disabled: this.isLoading })), this.afterValue === FILTER_AFTER_DATE_TIME && (h("div", {
226
+ // Date/Time
227
+ class: {
228
+ "field field-block field-date": true,
229
+ "hide": this.afterValue !== FILTER_AFTER_DATE_TIME
230
+ }
231
+ }, h("label", { class: "label label-date-time", htmlFor: "filter-date-time" }, __classPrivateFieldGet(this, _GxIdeWWFiles_componentLocale, "f").filter.dateTime, h("ch-image", { class: "icon-md icon-clear-date-time", src: INFO_ICON }), h("ch-tooltip", { class: "tooltip", actionElement: null, blockAlign: "outside-start", inlineAlign: "inside-start", delay: config.tooltipSettings.delay }, __classPrivateFieldGet(this, _GxIdeWWFiles_componentLocale, "f").filter.dateTimeTooltip)), h("ch-edit", { id: "filter-date-time", type: "datetime-local", class: "input input-date-time", value: this.dateTimeValue, onInput: __classPrivateFieldGet(this, _GxIdeWWFiles_dateTimeInputHandler, "f"), part: "filter-date-time", disabled: this.isLoading }), h("button", { class: "button-tertiary button-icon-only", onClick: __classPrivateFieldGet(this, _GxIdeWWFiles_clearDateTimeValue, "f"), disabled: this.isLoading }, h("ch-image", { class: "icon-md", src: CLEAR_ICON, type: "mask" }))))))))
232
+ ];
233
+ });
234
+ _GxIdeWWFiles_renderObjects.set(this, () => {
235
+ var _a;
236
+ const gridIsEmpty = !this.objects.length;
237
+ return (h("ch-tabular-grid", { ref: (el) => (__classPrivateFieldSet(this, _GxIdeWWFiles_chGridEl, el, "f")), class: {
238
+ "tabular-grid": true,
239
+ "loading": this.isLoading,
240
+ "empty": this.objects.length === 0
241
+ }, rowSelectionMode: "multiple", part: "ch-grid-files" }, 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, _GxIdeWWFiles_componentLocale, "f").tableHead.name, columnNameHidden: false, settingable: false, size: config.tabularGrid.colSize.maxContent, class: "tabular-grid-column" }), h("ch-tabular-grid-column", { columnName: __classPrivateFieldGet(this, _GxIdeWWFiles_componentLocale, "f").tableHead.module, columnNameHidden: false, settingable: false, size: config.tabularGrid.colSize.maxContent, class: "tabular-grid-column" }), this.gridColumnsVisibility.description && (h("ch-tabular-grid-column", { columnName: __classPrivateFieldGet(this, _GxIdeWWFiles_componentLocale, "f").tableHead.description, columnNameHidden: false, settingable: false, size: config.tabularGrid.colSize.auto, class: "tabular-grid-column" })), this.gridColumnsVisibility.modifiedDate && (h("ch-tabular-grid-column", { columnName: __classPrivateFieldGet(this, _GxIdeWWFiles_componentLocale, "f").tableHead.modifiedDate, columnNameHidden: false, settingable: false, size: config.tabularGrid.colSize.maxContent, class: "tabular-grid-column" })), this.gridColumnsVisibility.lastUser && (h("ch-tabular-grid-column", { columnName: __classPrivateFieldGet(this, _GxIdeWWFiles_componentLocale, "f").tableHead.lastUser, columnNameHidden: false, settingable: false, size: config.tabularGrid.colSize.maxContent, class: "tabular-grid-column" })), this.gridColumnsVisibility.importDate && (h("ch-tabular-grid-column", { columnName: __classPrivateFieldGet(this, _GxIdeWWFiles_componentLocale, "f").tableHead.importDate, columnNameHidden: false, settingable: false, size: config.tabularGrid.colSize.maxContent, class: "tabular-grid-column" })), this.gridColumnsVisibility.lastBuildDate && (h("ch-tabular-grid-column", { columnName: __classPrivateFieldGet(this, _GxIdeWWFiles_componentLocale, "f").tableHead.lastBuildDate, columnNameHidden: false, settingable: false, size: config.tabularGrid.colSize.maxContent, class: "tabular-grid-column" }))), !gridIsEmpty ? (h("ch-tabular-grid-rowset", { class: "tabular-grid-rowset" }, (_a = this.objects) === null || _a === void 0 ? void 0 : _a.map((object) => {
242
+ var _a;
243
+ return (h("ch-tabular-grid-row", { rowid: object.id, class: "tabular-grid-row" }, h("ch-tabular-grid-cell", { class: "tabular-grid-cell" }, h("ch-image", { src: object.icon })), h("ch-tabular-grid-cell", { class: "tabular-grid-cell" }, hiChar(object.name.toLowerCase(), __classPrivateFieldGet(this, _GxIdeWWFiles_nameValue, "f").toLowerCase())), h("ch-tabular-grid-cell", { class: "tabular-grid-cell" }, hiChar(object.parent, __classPrivateFieldGet(this, _GxIdeWWFiles_moduleValue, "f").name)), this.gridColumnsVisibility.description && (h("ch-tabular-grid-cell", { class: "tabular-grid-cell tabular-grid-cell-description" }, object.description)), this.gridColumnsVisibility.modifiedDate && (h("ch-tabular-grid-cell", { class: "tabular-grid-cell" }, __classPrivateFieldGet(this, _GxIdeWWFiles_evaluateModifiedDates, "f").call(this, object.modifiedDate, this.dateTimeValue))), this.gridColumnsVisibility.lastUser && (h("ch-tabular-grid-cell", { class: "tabular-grid-cell" }, hiChar((_a = object.lastUser) === null || _a === void 0 ? void 0 : _a.toLowerCase(), __classPrivateFieldGet(this, _GxIdeWWFiles_userValue, "f")))), this.gridColumnsVisibility.importDate && (h("ch-tabular-grid-cell", { class: "tabular-grid-cell" }, hiChar(object.importDate
244
+ ? __classPrivateFieldGet(this, _GxIdeWWFiles_formatDate, "f").call(this, object.importDate)
245
+ : "", __classPrivateFieldGet(this, _GxIdeWWFiles_nameValue, "f")))), this.gridColumnsVisibility.lastBuildDate && (h("ch-tabular-grid-cell", { class: "tabular-grid-cell" }, hiChar(object.lastBuildDate
246
+ ? __classPrivateFieldGet(this, _GxIdeWWFiles_formatDate, "f").call(this, object.lastBuildDate)
247
+ : "", __classPrivateFieldGet(this, _GxIdeWWFiles_nameValue, "f"))))));
248
+ }))) : (h("ch-tabular-grid-rowset", { class: "tabular-grid-rowset" }, h("ch-tabular-grid-rowset-empty", null, this.isLoading ? (h("gx-ide-loader", { loaderTitle: __classPrivateFieldGet(this, _GxIdeWWFiles_componentLocale, "f").loader.title, description: __classPrivateFieldGet(this, _GxIdeWWFiles_componentLocale, "f").loader.description, show: true })) : (h("gx-ide-empty-state", { isAnimated: true, stateIconSrc: FILTER_ICON, stateTitle: __classPrivateFieldGet(this, _GxIdeWWFiles_componentLocale, "f").emptyState.title })))))));
249
+ });
250
+ _GxIdeWWFiles_moduleValueChangedHandler.set(this, (event) => {
251
+ __classPrivateFieldSet(this, _GxIdeWWFiles_moduleValue, event.detail, "f");
252
+ __classPrivateFieldGet(this, _GxIdeWWFiles_getObjects, "f").call(this);
253
+ });
254
+ _GxIdeWWFiles_nameInputHandler.set(this, (event) => {
255
+ __classPrivateFieldSet(this, _GxIdeWWFiles_nameValue, event.detail, "f");
256
+ __classPrivateFieldGet(this, _GxIdeWWFiles_getObjects, "f").call(this);
257
+ });
258
+ _GxIdeWWFiles_newFileCallbackHandler.set(this, () => {
228
259
  this.newFileCallback();
229
260
  });
230
- _GxIdeWWFiles_openSelectionCallbackHandle.set(this, () => {
231
- this.openSelectionCallback(this.selectedObjectsIds);
261
+ _GxIdeWWFiles_openSelectionCallbackHandler.set(this, () => {
262
+ this.openSelectionCallback(__classPrivateFieldGet(this, _GxIdeWWFiles_selectedObjectsIds, "f"));
263
+ });
264
+ _GxIdeWWFiles_searchContentsInputHandler.set(this, (event) => {
265
+ __classPrivateFieldSet(this, _GxIdeWWFiles_searchContentsValue, event.detail, "f");
266
+ __classPrivateFieldGet(this, _GxIdeWWFiles_getObjects, "f").call(this);
267
+ });
268
+ _GxIdeWWFiles_setLoadingState.set(this, () => {
269
+ this.objects = [];
270
+ this.isLoading = true;
271
+ });
272
+ _GxIdeWWFiles_userInputHandler.set(this, (event) => {
273
+ __classPrivateFieldSet(this, _GxIdeWWFiles_userValue, event.detail, "f");
274
+ __classPrivateFieldGet(this, _GxIdeWWFiles_getObjects, "f").call(this);
275
+ });
276
+ _GxIdeWWFiles_showModifiedCheckboxHandler.set(this, (event) => {
277
+ this.showModified = event.detail;
232
278
  });
233
279
  _GxIdeWWFiles_selectAll.set(this, () => {
234
280
  __classPrivateFieldGet(this, _GxIdeWWFiles_chGridEl, "f").selectAllRows();
235
281
  });
282
+ this.afterValue = undefined;
236
283
  this.categoriesComboBoxModel = [];
237
- this.afterCurrentValue = FILTER_AFTER_DATE_TIME;
238
- this.filterAfterOptions = undefined;
239
- this.enabledModifiedControls = false;
240
- this.filterModified = false;
241
- this.filterMore = false;
284
+ this.dateTimeValue = undefined;
285
+ this.isLoading = true;
286
+ this.filterAfterComboBoxModel = undefined;
287
+ this.showModified = CHECKBOX_CHECKED_VALUE;
242
288
  this.objects = [];
243
- this.filterFilesInputValue = "";
244
- this.filteredFiles = [];
245
- this.selectedObjectsIds = [];
246
- this.advancedFilterAccordionExpanded = false;
247
289
  this.categories = undefined;
290
+ this.contextMenuCallback = undefined;
248
291
  this.defaultCategory = undefined;
249
292
  this.defaultModule = undefined;
250
- this.filterModules = undefined;
251
- this.types = undefined;
252
- this.contextMenuCallback = undefined;
253
293
  this.deleteSelectionCallback = undefined;
294
+ this.gridColumnsVisibility = {
295
+ description: true,
296
+ importDate: true,
297
+ lastBuildDate: true,
298
+ lastUser: true,
299
+ modifiedDate: true
300
+ };
254
301
  this.loadCallback = undefined;
255
302
  this.newFileCallback = undefined;
256
303
  this.openSelectionCallback = undefined;
257
304
  this.selectModuleCallback = undefined;
258
305
  this.selectionChangeCallback = undefined;
259
306
  this.showSearchContents = false;
260
- this.showDescription = false;
261
- this.showModifiedDate = false;
262
- this.showLastUser = false;
263
- this.showImportDate = false;
264
- this.showType = false;
265
- this.showLastBuildDate = false;
307
+ }
308
+ dateTimeValueChanged() {
309
+ __classPrivateFieldGet(this, _GxIdeWWFiles_getObjects, "f").call(this);
266
310
  }
267
311
  categoriesChanged(newCategories) {
268
312
  this.categoriesComboBoxModel = mapOptionsToComboBoxItemModel(newCategories);
269
313
  }
270
314
  async componentWillLoad() {
271
315
  __classPrivateFieldSet(this, _GxIdeWWFiles_componentLocale, await Locale.getComponentStrings(this.el), "f");
272
- // initialize combo-box models
316
+ // initialize combo-box models
273
317
  this.categoriesChanged(this.categories);
274
318
  // initialize "After" combo-box options
275
- this.filterAfterOptions = [
319
+ this.filterAfterComboBoxModel = [
276
320
  {
277
321
  caption: __classPrivateFieldGet(this, _GxIdeWWFiles_componentLocale, "f").filter[FILTER_AFTER_DATE_TIME],
278
322
  value: FILTER_AFTER_DATE_TIME
@@ -286,21 +330,18 @@ const GxIdeWWFiles = /*@__PURE__*/ proxyCustomElement(class GxIdeWWFiles extends
286
330
  value: FILTER_AFTER_IMPORT
287
331
  }
288
332
  ];
289
- this.afterCurrentValue = FILTER_AFTER_DATE_TIME;
290
333
  // initialize accordion model with proper configuration
291
334
  __classPrivateFieldSet(this, _GxIdeWWFiles_ACCORDION_MODEL, [
292
335
  {
293
- id: __classPrivateFieldGet(this, _GxIdeWWFiles_ACCORDION_FILTER_ID, "f"),
336
+ id: ACCORDION_FILTER_ID,
294
337
  caption: __classPrivateFieldGet(this, _GxIdeWWFiles_componentLocale, "f").filter.accordionCaption,
295
- expanded: this.advancedFilterAccordionExpanded
338
+ expanded: false
296
339
  }
297
340
  ], "f");
298
- // initialize filtered files
299
- this.filteredFiles = this.objects;
300
- this.componentDidLoadEvent.emit(true);
341
+ __classPrivateFieldGet(this, _GxIdeWWFiles_setFilterDefaultValues, "f").call(this);
301
342
  }
302
343
  componentDidLoad() {
303
- __classPrivateFieldGet(this, _GxIdeWWFiles_listenChanges, "f").call(this);
344
+ __classPrivateFieldGet(this, _GxIdeWWFiles_attachGridListeners, "f").call(this);
304
345
  __classPrivateFieldGet(this, _GxIdeWWFiles_getObjects, "f").call(this);
305
346
  }
306
347
  keyDownHandler(eventInfo) {
@@ -308,11 +349,11 @@ const GxIdeWWFiles = /*@__PURE__*/ proxyCustomElement(class GxIdeWWFiles extends
308
349
  switch (eventInfo.key) {
309
350
  case "Enter":
310
351
  eventInfo.preventDefault();
311
- __classPrivateFieldGet(this, _GxIdeWWFiles_openSelectionCallbackHandle, "f").call(this);
352
+ __classPrivateFieldGet(this, _GxIdeWWFiles_openSelectionCallbackHandler, "f").call(this);
312
353
  break;
313
354
  case "Delete":
314
355
  eventInfo.preventDefault();
315
- __classPrivateFieldGet(this, _GxIdeWWFiles_deleteSelectionCallbackHandle, "f").call(this);
356
+ __classPrivateFieldGet(this, _GxIdeWWFiles_deleteSelectionCallbackHandler, "f").call(this);
316
357
  break;
317
358
  case "Escape":
318
359
  eventInfo.preventDefault();
@@ -321,97 +362,81 @@ const GxIdeWWFiles = /*@__PURE__*/ proxyCustomElement(class GxIdeWWFiles extends
321
362
  }
322
363
  }
323
364
  }
324
- /**
325
- * Validate necessary data input
326
- */
327
- async validate() {
328
- const isValid = true;
329
- return isValid;
330
- }
331
365
  /**
332
366
  * This method reload the view, refreshing the filters and the table of files.
333
367
  */
334
368
  async reload() {
335
- this.filterFilesInputValue = "";
336
- __classPrivateFieldGet(this, _GxIdeWWFiles_filterUserEl, "f").value = null;
337
- __classPrivateFieldGet(this, _GxIdeWWFiles_filterAfterTypeEl, "f").value = null;
338
- this.afterCurrentValue = null;
339
- __classPrivateFieldGet(this, _GxIdeWWFiles_filterModifiedEl, "f").value = undefined;
340
- __classPrivateFieldGet(this, _GxIdeWWFiles_filterAllDescendantsEl, "f").value = undefined;
341
- __classPrivateFieldGet(this, _GxIdeWWFiles_filterModuleEl, "f").value = this.defaultModule;
342
- __classPrivateFieldGet(this, _GxIdeWWFiles_filterCategoryEl, "f").value = null;
343
- __classPrivateFieldGet(this, _GxIdeWWFiles_filterSearchContentsEl, "f").value = null;
344
- __classPrivateFieldGet(this, _GxIdeWWFiles_filterNameEl, "f").value = null;
345
- this.filterMore = false;
369
+ __classPrivateFieldGet(this, _GxIdeWWFiles_setFilterDefaultValues, "f").call(this);
346
370
  __classPrivateFieldGet(this, _GxIdeWWFiles_getObjects, "f").call(this);
347
371
  }
348
372
  render() {
349
- return (h(Host, { class: "widget" }, h("ch-theme", { model: CSS_BUNDLES }), h("section", { class: "section" }, h("header", { class: "header control-header-with-border spacing-body-inline spacing-body-block-start field-group" }, __classPrivateFieldGet(this, _GxIdeWWFiles_renderHeader, "f").call(this)), h("div", { class: "main" }, __classPrivateFieldGet(this, _GxIdeWWFiles_renderObjects, "f").call(this)), h("footer", { class: "control-footer-with-border control-footer-space-between spacing-body" }, h("p", {
373
+ var _a;
374
+ return (h(Host, { class: "widget" }, h("ch-theme", { model: CSS_BUNDLES }), h("section", { class: "section" }, h("header", { class: "header control-header-with-border spacing-body-inline spacing-body-block-start field-group" }, __classPrivateFieldGet(this, _GxIdeWWFiles_renderHeader, "f").call(this)), __classPrivateFieldGet(this, _GxIdeWWFiles_renderObjects, "f").call(this), h("footer", { class: "control-footer-with-border control-footer-space-between spacing-body" }, h("p", {
350
375
  // matching objects
351
376
  class: "text-body", part: "objects-matching"
352
- }, `${this.filteredFiles.length} ${__classPrivateFieldGet(this, _GxIdeWWFiles_componentLocale, "f").objCount.matching}`), h("div", { class: "buttons-spacer" }, h("button", {
377
+ }, `${(_a = this.objects) === null || _a === void 0 ? void 0 : _a.length} ${__classPrivateFieldGet(this, _GxIdeWWFiles_componentLocale, "f").objCount.matching}`), h("div", { class: "buttons-spacer" }, h("button", {
353
378
  // select all button
354
- id: "button-select-all", class: "button-secondary", onClick: __classPrivateFieldGet(this, _GxIdeWWFiles_selectAll, "f"), part: "button button--select-all"
379
+ id: "button-select-all", class: "button-secondary", onClick: __classPrivateFieldGet(this, _GxIdeWWFiles_selectAll, "f"), part: "button button--select-all", disabled: this.isLoading
355
380
  }, __classPrivateFieldGet(this, _GxIdeWWFiles_componentLocale, "f").footer.btnSelectAll), h("button", {
356
381
  // new file button
357
- id: "button-new-file", class: "button-primary button-icon-and-text", onClick: __classPrivateFieldGet(this, _GxIdeWWFiles_newFileCallbackHandle, "f"), part: "button button--new-file"
382
+ id: "button-new-file", class: "button-primary button-icon-and-text", onClick: __classPrivateFieldGet(this, _GxIdeWWFiles_newFileCallbackHandler, "f"), part: "button button--new-file", disabled: this.isLoading
358
383
  }, __classPrivateFieldGet(this, _GxIdeWWFiles_componentLocale, "f").footer.btnNew))))));
359
384
  }
360
385
  static get assetsDirs() { return ["gx-ide-assets/ww-files"]; }
361
386
  get el() { return this; }
362
387
  static get watchers() { return {
388
+ "dateTimeValue": ["dateTimeValueChanged"],
363
389
  "categories": ["categoriesChanged"]
364
390
  }; }
365
391
  static get style() { return wwFilesCss; }
366
392
  }, [1, "gx-ide-ww-files", {
367
393
  "categories": [16],
394
+ "contextMenuCallback": [16],
368
395
  "defaultCategory": [1, "default-category"],
369
396
  "defaultModule": [16],
370
- "filterModules": [16],
371
- "types": [16],
372
- "contextMenuCallback": [16],
373
397
  "deleteSelectionCallback": [16],
398
+ "gridColumnsVisibility": [16],
374
399
  "loadCallback": [16],
375
400
  "newFileCallback": [16],
376
401
  "openSelectionCallback": [16],
377
402
  "selectModuleCallback": [16],
378
403
  "selectionChangeCallback": [16],
379
404
  "showSearchContents": [4, "show-search-contents"],
380
- "showDescription": [4, "show-description"],
381
- "showModifiedDate": [4, "show-modified-date"],
382
- "showLastUser": [4, "show-last-user"],
383
- "showImportDate": [4, "show-import-date"],
384
- "showType": [4, "show-type"],
385
- "showLastBuildDate": [4, "show-last-build-date"],
405
+ "afterValue": [32],
386
406
  "categoriesComboBoxModel": [32],
387
- "afterCurrentValue": [32],
388
- "filterAfterOptions": [32],
389
- "enabledModifiedControls": [32],
390
- "filterModified": [32],
391
- "filterMore": [32],
407
+ "dateTimeValue": [32],
408
+ "isLoading": [32],
409
+ "filterAfterComboBoxModel": [32],
410
+ "showModified": [32],
392
411
  "objects": [32],
393
- "filterFilesInputValue": [32],
394
- "filteredFiles": [32],
395
- "selectedObjectsIds": [32],
396
- "advancedFilterAccordionExpanded": [32],
397
- "validate": [64],
398
412
  "reload": [64]
399
413
  }, [[1, "keydown", "keyDownHandler"]], {
414
+ "dateTimeValue": ["dateTimeValueChanged"],
400
415
  "categories": ["categoriesChanged"]
401
416
  }]);
402
- _GxIdeWWFiles_componentLocale = new WeakMap(), _GxIdeWWFiles_ACCORDION_FILTER_ID = new WeakMap(), _GxIdeWWFiles_ACCORDION_MODEL = new WeakMap(), _GxIdeWWFiles_chGridEl = new WeakMap(), _GxIdeWWFiles_filterAfterTypeEl = new WeakMap(), _GxIdeWWFiles_filterAllDescendantsEl = new WeakMap(), _GxIdeWWFiles_filterCategoryEl = new WeakMap(), _GxIdeWWFiles_filterModifiedDateEl = new WeakMap(), _GxIdeWWFiles_filterModuleEl = new WeakMap(), _GxIdeWWFiles_filterModifiedEl = new WeakMap(), _GxIdeWWFiles_filterNameEl = new WeakMap(), _GxIdeWWFiles_filterSearchContentsEl = new WeakMap(), _GxIdeWWFiles_filterUserEl = new WeakMap(), _GxIdeWWFiles_renderHeader = new WeakMap(), _GxIdeWWFiles_renderObjects = new WeakMap(), _GxIdeWWFiles_hiChar = new WeakMap(), _GxIdeWWFiles_formatDate = new WeakMap(), _GxIdeWWFiles_getObjects = new WeakMap(), _GxIdeWWFiles_filterFiles = new WeakMap(), _GxIdeWWFiles_handleFilterInput = new WeakMap(), _GxIdeWWFiles_handleSearchContentsInput = new WeakMap(), _GxIdeWWFiles_deleteSelectionCallbackHandle = new WeakMap(), _GxIdeWWFiles_deselectAll = new WeakMap(), _GxIdeWWFiles_expandedHandler = new WeakMap(), _GxIdeWWFiles_filterModifiedCallbackHandle = new WeakMap(), _GxIdeWWFiles_filterAfterTypeCallbackHandle = new WeakMap(), _GxIdeWWFiles_listenChanges = new WeakMap(), _GxIdeWWFiles_newFileCallbackHandle = new WeakMap(), _GxIdeWWFiles_openSelectionCallbackHandle = new WeakMap(), _GxIdeWWFiles_selectAll = new WeakMap();
417
+ _GxIdeWWFiles_componentLocale = new WeakMap(), _GxIdeWWFiles_ACCORDION_MODEL = new WeakMap(), _GxIdeWWFiles_nameValue = new WeakMap(), _GxIdeWWFiles_moduleValue = new WeakMap(), _GxIdeWWFiles_searchContentsValue = new WeakMap(), _GxIdeWWFiles_categoryValue = new WeakMap(), _GxIdeWWFiles_allDescendants = new WeakMap(), _GxIdeWWFiles_userValue = new WeakMap(), _GxIdeWWFiles_selectedObjectsIds = new WeakMap(), _GxIdeWWFiles_chGridEl = new WeakMap(), _GxIdeWWFiles_filterModuleEl = new WeakMap(), _GxIdeWWFiles_setFilterDefaultValues = new WeakMap(), _GxIdeWWFiles_allDescendantsCheckboxHandler = new WeakMap(), _GxIdeWWFiles_attachGridListeners = new WeakMap(), _GxIdeWWFiles_categoryInputHandler = new WeakMap(), _GxIdeWWFiles_clearDateTimeValue = new WeakMap(), _GxIdeWWFiles_dateTimeInputHandler = new WeakMap(), _GxIdeWWFiles_deleteSelectionCallbackHandler = new WeakMap(), _GxIdeWWFiles_deselectAll = new WeakMap(), _GxIdeWWFiles_evaluateModifiedDates = new WeakMap(), _GxIdeWWFiles_filterAfterTypeCallbackHandler = new WeakMap(), _GxIdeWWFiles_formatDate = new WeakMap(), _GxIdeWWFiles_getObjects = new WeakMap(), _GxIdeWWFiles_renderHeader = new WeakMap(), _GxIdeWWFiles_renderObjects = new WeakMap(), _GxIdeWWFiles_moduleValueChangedHandler = new WeakMap(), _GxIdeWWFiles_nameInputHandler = new WeakMap(), _GxIdeWWFiles_newFileCallbackHandler = new WeakMap(), _GxIdeWWFiles_openSelectionCallbackHandler = new WeakMap(), _GxIdeWWFiles_searchContentsInputHandler = new WeakMap(), _GxIdeWWFiles_setLoadingState = new WeakMap(), _GxIdeWWFiles_userInputHandler = new WeakMap(), _GxIdeWWFiles_showModifiedCheckboxHandler = new WeakMap(), _GxIdeWWFiles_selectAll = new WeakMap();
403
418
  function defineCustomElement$1() {
404
419
  if (typeof customElements === "undefined") {
405
420
  return;
406
421
  }
407
- const components = ["gx-ide-ww-files", "gx-ide-entity-selector"];
422
+ const components = ["gx-ide-ww-files", "gx-ide-empty-state", "gx-ide-entity-selector", "gx-ide-loader"];
408
423
  components.forEach(tagName => { switch (tagName) {
409
424
  case "gx-ide-ww-files":
410
425
  if (!customElements.get(tagName)) {
411
426
  customElements.define(tagName, GxIdeWWFiles);
412
427
  }
413
428
  break;
429
+ case "gx-ide-empty-state":
430
+ if (!customElements.get(tagName)) {
431
+ defineCustomElement$4();
432
+ }
433
+ break;
414
434
  case "gx-ide-entity-selector":
435
+ if (!customElements.get(tagName)) {
436
+ defineCustomElement$3();
437
+ }
438
+ break;
439
+ case "gx-ide-loader":
415
440
  if (!customElements.get(tagName)) {
416
441
  defineCustomElement$2();
417
442
  }