@genexus/genexus-ide-ui 1.1.24 → 1.1.26

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