@genexus/genexus-ide-ui 0.0.85 → 0.0.87

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 (116) hide show
  1. package/dist/cjs/ch-action-group-render.cjs.entry.js +112 -0
  2. package/dist/cjs/ch-checkbox_3.cjs.entry.js +21 -10
  3. package/dist/cjs/ch-dropdown-item.cjs.entry.js +1 -1
  4. package/dist/cjs/ch-dropdown-render.cjs.entry.js +73 -0
  5. package/dist/cjs/ch-shortcuts_2.cjs.entry.js +99 -20
  6. package/dist/cjs/ch-tree-view-render_2.cjs.entry.js +49 -92
  7. package/dist/cjs/genexus-ide-ui.cjs.js +1 -1
  8. package/dist/cjs/genexus-implementation-664b13f0.js +76 -0
  9. package/dist/cjs/gx-ide-kb-manager-import.cjs.entry.js +2 -5
  10. package/dist/cjs/gx-ide-new-environment.cjs.entry.js +16 -9
  11. package/dist/cjs/gx-ide-new-kb.cjs.entry.js +15 -4
  12. package/dist/cjs/gx-ide-new-object.cjs.entry.js +21 -3
  13. package/dist/cjs/gx-ide-object-selector.cjs.entry.js +87 -59
  14. package/dist/cjs/gx-ide-recent-news.cjs.entry.js +2 -3
  15. package/dist/cjs/gx-ide-references.cjs.entry.js +2 -7
  16. package/dist/cjs/gxg-combo-box_2.cjs.entry.js +2 -8
  17. package/dist/cjs/loader.cjs.js +1 -1
  18. package/dist/collection/collection-manifest.json +2 -2
  19. package/dist/collection/components/kb-manager-import/kb-manager-import.js +2 -5
  20. package/dist/collection/components/new-environment/new-environment.js +39 -9
  21. package/dist/collection/components/new-kb/gx-ide-assets/new-kb/shortcuts.json +1 -4
  22. package/dist/collection/components/new-kb/new-kb.css +1 -9
  23. package/dist/collection/components/new-kb/new-kb.js +37 -3
  24. package/dist/collection/components/new-object/gx-ide-assets/new-object/shortcuts.json +1 -4
  25. package/dist/collection/components/new-object/new-object.js +44 -3
  26. package/dist/collection/components/object-selector/gx-ide-assets/object-selector/langs/object-selector.lang.en.json +4 -0
  27. package/dist/collection/components/object-selector/object-selector.css +4 -0
  28. package/dist/collection/components/object-selector/object-selector.js +123 -58
  29. package/dist/collection/components/references/references.js +3 -10
  30. package/dist/collection/components/start-page/recent-news.js +2 -3
  31. package/dist/components/ch-action-group-render.js +175 -0
  32. package/dist/components/ch-dropdown-item-separator.js +28 -1
  33. package/dist/components/ch-dropdown-render.js +121 -0
  34. package/dist/components/ch-shortcuts2.js +97 -19
  35. package/dist/components/combo-box.js +2 -9
  36. package/dist/components/dropdown-item.js +1 -1
  37. package/dist/components/genexus-implementation.js +74 -0
  38. package/dist/components/gx-ide-kb-manager-import.js +2 -5
  39. package/dist/components/gx-ide-new-environment.js +18 -10
  40. package/dist/components/gx-ide-new-kb.js +17 -5
  41. package/dist/components/gx-ide-new-object.js +24 -5
  42. package/dist/components/gx-ide-object-selector.js +140 -104
  43. package/dist/components/gx-ide-references.js +3 -10
  44. package/dist/components/index.js +2 -2
  45. package/dist/components/recent-news.js +2 -3
  46. package/dist/components/shortcuts.js +4 -1
  47. package/dist/components/tree-view-item.js +21 -10
  48. package/dist/components/tree-view-render.js +49 -91
  49. package/dist/esm/ch-action-group-render.entry.js +108 -0
  50. package/dist/esm/ch-checkbox_3.entry.js +21 -10
  51. package/dist/esm/ch-dropdown-item.entry.js +1 -1
  52. package/dist/esm/ch-dropdown-render.entry.js +69 -0
  53. package/dist/esm/ch-shortcuts_2.entry.js +99 -20
  54. package/dist/esm/ch-tree-view-render_2.entry.js +48 -91
  55. package/dist/esm/genexus-ide-ui.js +1 -1
  56. package/dist/esm/genexus-implementation-3b347d88.js +74 -0
  57. package/dist/esm/gx-ide-kb-manager-import.entry.js +2 -5
  58. package/dist/esm/gx-ide-new-environment.entry.js +16 -9
  59. package/dist/esm/gx-ide-new-kb.entry.js +15 -4
  60. package/dist/esm/gx-ide-new-object.entry.js +21 -3
  61. package/dist/esm/gx-ide-object-selector.entry.js +87 -59
  62. package/dist/esm/gx-ide-recent-news.entry.js +2 -3
  63. package/dist/esm/gx-ide-references.entry.js +2 -7
  64. package/dist/esm/gxg-combo-box_2.entry.js +2 -8
  65. package/dist/esm/loader.js +1 -1
  66. package/dist/genexus-ide-ui/genexus-ide-ui.esm.js +1 -1
  67. package/dist/genexus-ide-ui/gx-ide-assets/new-kb/shortcuts.json +1 -4
  68. package/dist/genexus-ide-ui/gx-ide-assets/new-object/shortcuts.json +1 -4
  69. package/dist/genexus-ide-ui/gx-ide-assets/object-selector/langs/object-selector.lang.en.json +4 -0
  70. package/dist/genexus-ide-ui/p-021e21a0.entry.js +1 -0
  71. package/dist/genexus-ide-ui/p-068b6b8d.entry.js +1 -0
  72. package/dist/genexus-ide-ui/p-06d9d6ff.entry.js +1 -0
  73. package/dist/genexus-ide-ui/p-1cf2d35f.entry.js +1 -0
  74. package/dist/genexus-ide-ui/p-356ee19a.js +1 -0
  75. package/dist/genexus-ide-ui/p-49333316.entry.js +1 -0
  76. package/dist/genexus-ide-ui/p-4bd7c59a.entry.js +1 -0
  77. package/dist/genexus-ide-ui/p-54b5628c.entry.js +1 -0
  78. package/dist/genexus-ide-ui/p-65b5622e.entry.js +1 -0
  79. package/dist/genexus-ide-ui/p-8a18798d.entry.js +1 -0
  80. package/dist/genexus-ide-ui/p-8f022c0e.entry.js +1 -0
  81. package/dist/genexus-ide-ui/p-c224911a.entry.js +1 -0
  82. package/dist/genexus-ide-ui/p-cadcd655.entry.js +1 -0
  83. package/dist/genexus-ide-ui/p-cfbd5a0e.entry.js +1 -0
  84. package/dist/genexus-ide-ui/{p-005970ac.entry.js → p-eaae6676.entry.js} +1 -1
  85. package/dist/node_modules/@genexus/chameleon-controls-library/dist/collection/components/renders/action-group/action-group-render.css +3 -0
  86. package/dist/node_modules/@genexus/chameleon-controls-library/dist/collection/components/renders/dropdown/dropdown-render.css +3 -0
  87. package/dist/types/components/new-environment/new-environment.d.ts +5 -1
  88. package/dist/types/components/new-kb/new-kb.d.ts +5 -0
  89. package/dist/types/components/new-object/new-object.d.ts +6 -0
  90. package/dist/types/components/object-selector/object-selector.d.ts +14 -3
  91. package/dist/types/components/references/references.d.ts +0 -9
  92. package/dist/types/components/start-page/recent-news.d.ts +1 -1
  93. package/dist/types/components.d.ts +24 -0
  94. package/package.json +3 -3
  95. package/dist/cjs/ch-test-action-group.cjs.entry.js +0 -79
  96. package/dist/cjs/ch-test-dropdown.cjs.entry.js +0 -54
  97. package/dist/components/ch-test-action-group.js +0 -137
  98. package/dist/components/ch-test-dropdown.js +0 -104
  99. package/dist/components/dropdown-item-separator.js +0 -30
  100. package/dist/esm/ch-test-action-group.entry.js +0 -75
  101. package/dist/esm/ch-test-dropdown.entry.js +0 -50
  102. package/dist/genexus-ide-ui/p-20fab805.entry.js +0 -1
  103. package/dist/genexus-ide-ui/p-2d77e2a3.entry.js +0 -1
  104. package/dist/genexus-ide-ui/p-5757e203.entry.js +0 -1
  105. package/dist/genexus-ide-ui/p-7a03aa05.entry.js +0 -1
  106. package/dist/genexus-ide-ui/p-7ae11b35.entry.js +0 -1
  107. package/dist/genexus-ide-ui/p-85b78e25.entry.js +0 -1
  108. package/dist/genexus-ide-ui/p-9f08b2a4.entry.js +0 -1
  109. package/dist/genexus-ide-ui/p-a2c7dc8a.entry.js +0 -1
  110. package/dist/genexus-ide-ui/p-a69aaabc.entry.js +0 -1
  111. package/dist/genexus-ide-ui/p-c00aa636.entry.js +0 -1
  112. package/dist/genexus-ide-ui/p-d3428456.entry.js +0 -1
  113. package/dist/genexus-ide-ui/p-d9910218.entry.js +0 -1
  114. package/dist/genexus-ide-ui/p-da8ad725.entry.js +0 -1
  115. package/dist/node_modules/@genexus/chameleon-controls-library/dist/collection/components/test/test-action-group/test-action-group.css +0 -52
  116. package/dist/node_modules/@genexus/chameleon-controls-library/dist/collection/components/test/test-dropdown/test-dropdown.css +0 -36
@@ -8,7 +8,7 @@ const config = require('./config-8cf5ba3b.js');
8
8
  const common = require('./common-fbd24d42.js');
9
9
  const formValidation = require('./form-validation-b7fb4ca8.js');
10
10
 
11
- const newKbCss = "/*Gemini*/\n/*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/* Helper Classes */\n.gxi-hidden {\n display: none !important;\n}\n\n.gxi-full-height {\n height: 100%;\n}\n\n.gxi-overflow-auto {\n overflow: auto;\n}\n\n.gxi-display-flex {\n display: flex;\n}\n\n.align-start {\n display: flex;\n align-items: start;\n}\n\n.align-center {\n display: flex;\n align-items: center;\n}\n\n.align-end {\n display: flex;\n align-items: end;\n}\n\n.overflow-auto {\n overflow: auto;\n}\n\n.justify-start {\n display: flex;\n justify-content: start;\n}\n\n.justify-center {\n display: flex;\n justify-content: center;\n}\n\n.justify-end {\n display: flex;\n justify-content: end;\n}\n\n/* Grids */\n.grid {\n display: grid;\n grid-row-gap: var(--gx-ide-grid-row-gap);\n grid-column-gap: var(--gx-ide-grid-column-gap);\n grid-template-rows: auto;\n}\n\nch-grid-cell {\n display: flex;\n}\n\nch-grid {\n overflow: auto;\n height: 100%;\n}\n\nch-grid-column {\n /*to be removed when this works inside a component with shadow: true*/\n z-index: 99;\n border-bottom: 1px solid var(--gray-01);\n}\n\nch-grid-column:first-child {\n padding-inline-start: var(--gxg-container--padding) !important;\n}\n\nch-grid-column:last-child {\n padding-inline-end: var(--gxg-container--padding) !important;\n}\n\nch-grid-cell {\n --spacing-comp-02: var(--gxg-container--padding);\n}\n\n/*--- Layout ---*/\n.layout {\n display: grid;\n gap: var(--spacing-comp-05);\n box-sizing: border-box;\n}\n.layout--two-cols {\n grid-template-columns: 1fr 1fr;\n}\n.layout--space-above {\n padding-block-start: var(--spacing-comp-05);\n}\n\n/*Gxg Tabs*/\ngxg-tabs {\n box-shadow: none;\n}\n\n/*All components Host should have this class set. !important is set on every rule, since this styles could be overridden by the host user, since they are applied on the host component*/\n:host(.gx-ide-component) {\n box-shadow: var(--box-shadow-01);\n height: 100% !important;\n display: flex !important;\n flex-direction: column !important;\n}\n\n/*stylize the top bar*/\n:host(:focus-within) gx-ide-top-bar::part(wrapper) {\n background-color: var(--color-secondary-enabled);\n}\n\n/* Main wrapper (should be the first element inside the host. Everything should be inside .gx-ide-main-wrapper) */\n.gx-ide-main-wrapper {\n color: var(--gx-ide-component-text-color);\n font-weight: var(--font-weight-regular);\n font-size: var(--font-size-lg);\n font-family: var(--font-family-primary);\n line-height: 1.6em;\n height: 100%;\n background-color: var(--gx-ide-component-background-color);\n display: flex;\n flex-direction: column;\n flex-grow: 1;\n box-sizing: border-box;\n}\n\n/*This is the main element. This is the one that take the remaining vertical space*/\n.gx-ide-main {\n flex-grow: 1;\n overflow-y: auto;\n /* Track */\n /* Handle */\n /* Handle on hover */\n}\n.gx-ide-main::-webkit-scrollbar {\n width: 6px;\n height: 6px;\n}\n.gx-ide-main::-webkit-scrollbar-track {\n background-color: var(--gray-02);\n border-radius: 10px;\n}\n.gx-ide-main::-webkit-scrollbar-thumb {\n background: var(--gray-05);\n border-radius: 10px;\n}\n.gx-ide-main::-webkit-scrollbar-thumb:hover {\n background: var(--gray-04);\n cursor: pointer;\n}\n.gx-ide-main .gxg-scroll {\n display: block;\n overflow-y: auto;\n padding-inline-end: 2px;\n}\n\n.gx-ide-overflow {\n overflow-y: auto;\n /* Track */\n /* Handle */\n /* Handle on hover */\n}\n.gx-ide-overflow::-webkit-scrollbar {\n width: 6px;\n height: 6px;\n}\n.gx-ide-overflow::-webkit-scrollbar-track {\n background-color: var(--gray-02);\n border-radius: 10px;\n}\n.gx-ide-overflow::-webkit-scrollbar-thumb {\n background: var(--gray-05);\n border-radius: 10px;\n}\n.gx-ide-overflow::-webkit-scrollbar-thumb:hover {\n background: var(--gray-04);\n cursor: pointer;\n}\n.gx-ide-overflow .gxg-scroll {\n display: block;\n overflow-y: auto;\n padding-inline-end: 2px;\n}\n\n/*gxg-tree-view*/\n.tree-container {\n display: flex;\n height: 100%;\n width: 100%;\n box-sizing: border-box;\n}\n\n/*Gemini*/\n/*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 display: block;\n border: 1px solid var(--gxg-border-color--regular);\n background-color: var(--color-background);\n}\n\n/*HEADER*/\n.header {\n grid-template-columns: auto 1fr;\n grid-template-areas: \"kb-name-label kb-input\";\n}\n.header--is-advanced {\n grid-template-columns: auto 1fr min-content;\n grid-template-areas: \"kb-name-label kb-input .\" \"location-label location-input location-icon\";\n}\n.header .kb-input {\n grid-area: kb-input;\n}\n.header .kb-name-label {\n grid-area: kb-label;\n}\n.header .location-label {\n grid-area: location-label;\n}\n.header .location-input {\n grid-area: location-input;\n}\n.header .location-icon {\n grid-area: location-icon;\n}\n\n/*GXG-TABS*/\n.gxg-tabs {\n margin-top: 0;\n box-shadow: none;\n}\n\n/*Basic*/\n.basic-row-first {\n container-name: basic-row-first;\n container-type: inline-size;\n}\n.basic-row-first__container {\n display: grid;\n gap: var(--gx-ide-grid-column-gap);\n padding: var(--gxg-container--padding);\n border-bottom: 1px solid var(--gx-ide-container-border-color);\n grid-template-columns: repeat(2, 1fr);\n}\n@container (max-width: 640px) {\n .basic-row-first {\n /* this will work but you will see the vs-code complaining about some syntax error, so just ignore it */\n }\n .basic-row-first .basic-row-first__container {\n grid-template-columns: 1fr;\n }\n}\n\n.basic-row-second {\n grid-template-columns: repeat(2, 1fr);\n grid-column-gap: 0;\n grid-row-gap: 0;\n flex-grow: 1;\n}\n\n/*Advanced*/\n.knowledge-base-storage {\n display: grid;\n grid-template-areas: \"knowledge-base-storage__col-left knowledge-base-storage__col-right\";\n grid-template-columns: repeat(2, 1fr);\n flex-grow: 1;\n gap: 0;\n}\n.knowledge-base-storage > *:first-child {\n border-right: 1px solid var(--gx-ide-container-border-color);\n}\n.knowledge-base-storage__col-left {\n display: grid;\n gap: var(--gx-ide-grid-row-gap);\n padding: var(--gxg-container--padding);\n grid-area: knowledge-base-storage__col-left;\n grid-template-columns: 1fr auto;\n grid-template-rows: repeat(4, min-content);\n grid-template-areas: \"server-name-combo-box server-name-button\" \"database-name .\" \"collation-combo-box collation-button\" \"create-data-in-kb .\";\n}\n.knowledge-base-storage__col-left .server-name-combo-box {\n grid-area: server-name-combo-box;\n}\n.knowledge-base-storage__col-left .server-name-button {\n grid-area: server-name-button;\n align-self: end;\n}\n.knowledge-base-storage__col-left .database-name {\n grid-area: database-name;\n}\n.knowledge-base-storage__col-left .collation-combo-box {\n grid-area: collation-combo-box;\n}\n.knowledge-base-storage__col-left .collation-button {\n grid-area: collation-button;\n align-self: end;\n}\n.knowledge-base-storage__col-left .create-data-in-kb {\n grid-area: create-data-in-kb;\n}\n.knowledge-base-storage__col-right {\n display: grid;\n padding: var(--gxg-container--padding);\n gap: var(--gx-ide-grid-row-gap);\n grid-area: knowledge-base-storage__col-right;\n grid-template-columns: 1fr;\n grid-template-rows: repeat(4, min-content);\n grid-template-areas: \"authentication-type\" \"user-name\" \"password\" \"save-password\";\n}\n.knowledge-base-storage__col-right .authentication-type {\n grid-area: authentication-type;\n}\n.knowledge-base-storage__col-right .user-name {\n grid-area: user-name;\n}\n.knowledge-base-storage__col-right .password {\n grid-area: password;\n}\n.knowledge-base-storage__col-right .save-password {\n grid-area: save-password;\n}\n.knowledge-base-storage__col-right--windows-authentication {\n grid-template-areas: \"authentication-type\";\n}";
11
+ const newKbCss = ".gxi-hidden{display:none !important}.gxi-full-height{height:100%}.gxi-overflow-auto{overflow:auto}.gxi-display-flex{display:flex}.align-start{display:flex;align-items:start}.align-center{display:flex;align-items:center}.align-end{display:flex;align-items:end}.overflow-auto{overflow:auto}.justify-start{display:flex;justify-content:start}.justify-center{display:flex;justify-content:center}.justify-end{display:flex;justify-content:end}.grid{display:grid;grid-row-gap:var(--gx-ide-grid-row-gap);grid-column-gap:var(--gx-ide-grid-column-gap);grid-template-rows:auto}ch-grid-cell{display:flex}ch-grid{overflow:auto;height:100%}ch-grid-column{z-index:99;border-bottom:1px solid var(--gray-01)}ch-grid-column:first-child{padding-inline-start:var(--gxg-container--padding) !important}ch-grid-column:last-child{padding-inline-end:var(--gxg-container--padding) !important}ch-grid-cell{--spacing-comp-02:var(--gxg-container--padding)}.layout{display:grid;gap:var(--spacing-comp-05);box-sizing:border-box}.layout--two-cols{grid-template-columns:1fr 1fr}.layout--space-above{padding-block-start:var(--spacing-comp-05)}gxg-tabs{box-shadow:none}:host(.gx-ide-component){box-shadow:var(--box-shadow-01);height:100% !important;display:flex !important;flex-direction:column !important}:host(:focus-within) gx-ide-top-bar::part(wrapper){background-color:var(--color-secondary-enabled)}.gx-ide-main-wrapper{color:var(--gx-ide-component-text-color);font-weight:var(--font-weight-regular);font-size:var(--font-size-lg);font-family:var(--font-family-primary);line-height:1.6em;height:100%;background-color:var(--gx-ide-component-background-color);display:flex;flex-direction:column;flex-grow:1;box-sizing:border-box}.gx-ide-main{flex-grow:1;overflow-y:auto;}.gx-ide-main::-webkit-scrollbar{width:6px;height:6px}.gx-ide-main::-webkit-scrollbar-track{background-color:var(--gray-02);border-radius:10px}.gx-ide-main::-webkit-scrollbar-thumb{background:var(--gray-05);border-radius:10px}.gx-ide-main::-webkit-scrollbar-thumb:hover{background:var(--gray-04);cursor:pointer}.gx-ide-main .gxg-scroll{display:block;overflow-y:auto;padding-inline-end:2px}.gx-ide-overflow{overflow-y:auto;}.gx-ide-overflow::-webkit-scrollbar{width:6px;height:6px}.gx-ide-overflow::-webkit-scrollbar-track{background-color:var(--gray-02);border-radius:10px}.gx-ide-overflow::-webkit-scrollbar-thumb{background:var(--gray-05);border-radius:10px}.gx-ide-overflow::-webkit-scrollbar-thumb:hover{background:var(--gray-04);cursor:pointer}.gx-ide-overflow .gxg-scroll{display:block;overflow-y:auto;padding-inline-end:2px}.tree-container{display:flex;height:100%;width:100%;box-sizing:border-box}:host{display:block;border:1px solid var(--gxg-border-color--regular);background-color:var(--color-background)}.header{grid-template-columns:auto 1fr;grid-template-areas:\"kb-name-label kb-input\"}.header--is-advanced{grid-template-columns:auto 1fr min-content;grid-template-areas:\"kb-name-label kb-input .\" \"location-label location-input location-icon\"}.header .kb-input{grid-area:kb-input}.header .kb-name-label{grid-area:kb-label}.header .location-label{grid-area:location-label}.header .location-input{grid-area:location-input}.header .location-icon{grid-area:location-icon}.gxg-tabs{margin-top:0;box-shadow:none}.basic-row-first{container-name:basic-row-first;}.basic-row-first__container{display:grid;gap:var(--gx-ide-grid-column-gap);padding:var(--gxg-container--padding);border-bottom:1px solid var(--gx-ide-container-border-color);grid-template-columns:repeat(2, 1fr)}.basic-row-second{grid-template-columns:repeat(2, 1fr);grid-column-gap:0;grid-row-gap:0;flex-grow:1}.knowledge-base-storage{display:grid;grid-template-areas:\"knowledge-base-storage__col-left knowledge-base-storage__col-right\";grid-template-columns:repeat(2, 1fr);flex-grow:1;gap:0}.knowledge-base-storage>*:first-child{border-right:1px solid var(--gx-ide-container-border-color)}.knowledge-base-storage__col-left{display:grid;gap:var(--gx-ide-grid-row-gap);padding:var(--gxg-container--padding);grid-area:knowledge-base-storage__col-left;grid-template-columns:1fr auto;grid-template-rows:repeat(4, min-content);grid-template-areas:\"server-name-combo-box server-name-button\" \"database-name .\" \"collation-combo-box collation-button\" \"create-data-in-kb .\"}.knowledge-base-storage__col-left .server-name-combo-box{grid-area:server-name-combo-box}.knowledge-base-storage__col-left .server-name-button{grid-area:server-name-button;align-self:end}.knowledge-base-storage__col-left .database-name{grid-area:database-name}.knowledge-base-storage__col-left .collation-combo-box{grid-area:collation-combo-box}.knowledge-base-storage__col-left .collation-button{grid-area:collation-button;align-self:end}.knowledge-base-storage__col-left .create-data-in-kb{grid-area:create-data-in-kb}.knowledge-base-storage__col-right{display:grid;padding:var(--gxg-container--padding);gap:var(--gx-ide-grid-row-gap);grid-area:knowledge-base-storage__col-right;grid-template-columns:1fr;grid-template-rows:repeat(4, min-content);grid-template-areas:\"authentication-type\" \"user-name\" \"password\" \"save-password\"}.knowledge-base-storage__col-right .authentication-type{grid-area:authentication-type}.knowledge-base-storage__col-right .user-name{grid-area:user-name}.knowledge-base-storage__col-right .password{grid-area:password}.knowledge-base-storage__col-right .save-password{grid-area:save-password}.knowledge-base-storage__col-right--windows-authentication{grid-template-areas:\"authentication-type\"}";
12
12
 
13
13
  const GxIdeNewKb = class {
14
14
  constructor(hostRef) {
@@ -17,8 +17,6 @@ const GxIdeNewKb = class {
17
17
  this.renderedFirstTime = false;
18
18
  this.selectedFrontEndsIds = [];
19
19
  this.shortcutsSrc = index.getAssetPath(`./gx-ide-assets/new-kb/shortcuts.json`);
20
- // 7.LISTENERS //
21
- // 8.PUBLIC METHODS API //
22
20
  // 9.LOCAL METHODS //
23
21
  // 9.LOCAL METHODS -> Helpers //
24
22
  this.initialSetup = () => {
@@ -246,6 +244,19 @@ const GxIdeNewKb = class {
246
244
  this.renderedFirstTime = true;
247
245
  }
248
246
  }
247
+ // 7.LISTENERS //
248
+ // 8.PUBLIC METHODS API //
249
+ /**
250
+ * Suspends or reactivates the shortcuts
251
+ */
252
+ async suspendShortcuts(suspendShortcuts) {
253
+ if (suspendShortcuts) {
254
+ this.gxgShortcutsEl.suspend = true;
255
+ }
256
+ else {
257
+ this.gxgShortcutsEl.suspend = false;
258
+ }
259
+ }
249
260
  /** *****************************
250
261
  * 11.RENDER() FUNCTION
251
262
  ********************************/
@@ -260,7 +271,7 @@ const GxIdeNewKb = class {
260
271
  index.h("gxg-form-text", { labelPosition: "start", placeholder: "C:\\Models", maxWidth: "100%", value: this.kbLocation, ref: (el) => (this.locationEl = el), disabled: !this.isAdvanced, part: "kb-location", class: "location-input" }),
261
272
  index.h("gxg-button", { type: "secondary-icon-only", icon: "gemini-tools/folder", onClick: this.selectLocationHandler, part: "button-select-location", class: "location-icon" })
262
273
  ]
263
- : null), index.h("main", { class: "gxi-full-height" }, index.h("gxg-tabs", { class: "gxg-tabs" }, this.isAdvanced ? (index.h("gxg-tab-bar", { slot: "tab-bar-container", part: "tab-bar", displayBorder: true }, index.h("gxg-tab-button", { slot: "tab-bar", tabLabel: this._componentLocale.tabBasic.tabLabel, tab: "basic", "is-selected": true, hidden: !this.isAdvanced, part: "tab-button-basic" }), index.h("gxg-tab-button", { slot: "tab-bar", tabLabel: this._componentLocale.tabAdvanced.tabLabel, tab: "advanced", hidden: !this.isAdvanced, part: "tab-button-advanced" }))) : null, this.renderTabBasic(), this.isAdvanced && this.renderTabAdvanced())), index.h("gxg-button", { id: "button-cancel", type: "outlined", onClick: this.cancelKbHandler, part: "button-cancel", slot: "footer-end" }, this._componentLocale.footer.btnCancel), index.h("gxg-button", { id: "button-create", type: "primary-text-only", onClick: this.createKbHandler, part: "button-create", slot: "footer-end" }, this._componentLocale.footer.btnCreate))), index.h("gxg-shortcuts", { src: this.shortcutsSrc })));
274
+ : null), index.h("main", { class: "gxi-full-height" }, index.h("gxg-tabs", { class: "gxg-tabs" }, this.isAdvanced ? (index.h("gxg-tab-bar", { slot: "tab-bar-container", part: "tab-bar", displayBorder: true }, index.h("gxg-tab-button", { slot: "tab-bar", tabLabel: this._componentLocale.tabBasic.tabLabel, tab: "basic", "is-selected": true, hidden: !this.isAdvanced, part: "tab-button-basic" }), index.h("gxg-tab-button", { slot: "tab-bar", tabLabel: this._componentLocale.tabAdvanced.tabLabel, tab: "advanced", hidden: !this.isAdvanced, part: "tab-button-advanced" }))) : null, this.renderTabBasic(), this.isAdvanced && this.renderTabAdvanced())), index.h("gxg-button", { id: "button-cancel", type: "outlined", onClick: this.cancelKbHandler, part: "button-cancel", slot: "footer-end" }, this._componentLocale.footer.btnCancel), index.h("gxg-button", { id: "button-create", type: "primary-text-only", onClick: this.createKbHandler, part: "button-create", slot: "footer-end" }, this._componentLocale.footer.btnCreate))), index.h("gxg-shortcuts", { src: this.shortcutsSrc, ref: (el) => (this.gxgShortcutsEl = el) })));
264
275
  }
265
276
  static get assetsDirs() { return ["gx-ide-assets/new-kb"]; }
266
277
  get el() { return index.getElement(this); }
@@ -19,9 +19,12 @@ const GxIdeNewObject = class {
19
19
  this.renderedFirstTime = false;
20
20
  this.shortcutsSrc = index.getAssetPath(`./gx-ide-assets/new-object/shortcuts.json`);
21
21
  this.descriptionModifiedByUser = false;
22
- // 7.LISTENERS //
23
- // 8.PUBLIC METHODS API //
24
22
  // 9.LOCAL METHODS //
23
+ this.setFirstFocusableElement = () => {
24
+ this.el.addEventListener("focus", () => {
25
+ this.nameEl.focus();
26
+ });
27
+ };
25
28
  this.validateInitialName = async () => {
26
29
  const result = await this.validateNameCallback(this.name);
27
30
  this.validateNameHandler(result);
@@ -150,6 +153,7 @@ const GxIdeNewObject = class {
150
153
  }
151
154
  componentDidLoad() {
152
155
  this.nameEl.focus();
156
+ this.setFirstFocusableElement();
153
157
  this.validateInitialName();
154
158
  this.componentDidLoadEvent.emit(true);
155
159
  }
@@ -159,14 +163,28 @@ const GxIdeNewObject = class {
159
163
  this.renderedFirstTime = true;
160
164
  }
161
165
  }
166
+ // 7.LISTENERS //
167
+ // 8.PUBLIC METHODS API //
168
+ /**
169
+ * Suspends or reactivates the shortcuts
170
+ */
171
+ async suspendShortcuts(suspendShortcuts) {
172
+ if (suspendShortcuts) {
173
+ this.gxgShortcutsEl.suspend = true;
174
+ }
175
+ else {
176
+ this.gxgShortcutsEl.suspend = false;
177
+ }
178
+ }
162
179
  // 10.LOCAL METHODS (RENDER) //
163
180
  // 11.RENDER() FUNCTION //
164
181
  render() {
165
182
  var _a;
166
183
  return (index.h(index.Host, { class: "gx-ide-component" }, index.h("div", { class: "gx-ide-main-wrapper" }, index.h("gx-ide-container", { noContentPadding: true, noContentGap: true, slimmerFooter: config.config.gxIdeContainer.slimmerFooter, containerTitle: this.displayTitle ? this._componentLocale.componentName : null, noHeadingBorder: true }, index.h("main", { class: "main" }, index.h("div", { class: "categories-types-container" }, index.h("div", { class: "categories" }, this.typeCategories.length > 0 ? (index.h("gxg-list-box", { class: "category", "single-selection": true, noBorder: true, borderEnd: true, "the-title": this._componentLocale.categorySelectionTitle, onSelectionChanged: this.categoryOnSelectionChangedHandler }, this.typeCategories.map(category => (index.h("gxg-list-box-item", { key: category.id, value: category.id, icon: category.icon, part: `category-${category.id}` }, category.name))))) : null), index.h("div", { class: "types" }, this.selectedCategory.types.length > 0 ? (index.h("gxg-list-box", { class: "types", "single-selection": true, noBorder: true, theTitle: this.selectedCategory.name
167
184
  ? `${this.selectedCategory.name} ${this._componentLocale.typeSelectionTitleSuffix}`
168
- : this._componentLocale.typeSelectionTitle, key: this.selectedCategory.id, onSelectionChanged: this.typeOnSelectionChangedHandler }, this.selectedCategory.types.map(type => (index.h("gxg-list-box-item", { key: `${this.selectedCategory.id}-${type.id}`, icon: type.icon, part: `type-${this.selectedCategory.id}-${type.id}` }, type.name))))) : (index.h("p", null, "No Categories to display")))), index.h("div", { class: "api-description" }, index.h("gxg-title", { type: "title-05" }, (_a = this.selectedType) === null || _a === void 0 ? void 0 : _a.description), index.h("div", { class: "form" }, index.h("gxg-label", { labelPosition: "start" }, this._componentLocale.objectName), index.h("gxg-form-text", { "label-position": "start", placeholder: "Name", "max-width": "100%", value: this.selectedType.name, toolTip: config.config.tooltip, ref: (el) => (this.nameEl = el), onInput: this.onInputNameHandler, onBlur: this.onBlurNameHandler, onValueChanged: this.onNameValueChangedHandler, debounce: true, part: "name", "display-validation-styles": true, "display-validation-message": true }), index.h("gxg-label", { labelPosition: "start" }, this._componentLocale.objectDescription), index.h("gxg-form-text", { "label-position": "start", placeholder: "Description", "max-width": "100%", value: this.selectedType.name, ref: (el) => (this.descriptionEl = el), onInput: this.onInputDescriptionHandler, part: "description", "display-validation-styles": true, "display-validation-message": true }), this.renderModuleFolder()))), index.h("gxg-button", { id: "button-cancel", slot: "footer-end", type: "outlined", onClick: this.cancelCallbackHandler, part: "gxg-button gxg-button--cancel" }, this._componentLocale.footer.btnCancel), index.h("gxg-button", { id: "button-create", slot: "footer-end", type: "primary-text-only", onClick: this.createCallbackHandler, disabled: !this.nameIsValid, part: "gxg-button gxg-button--create" }, this._componentLocale.footer.btnCreate))), index.h("gxg-shortcuts", { src: this.shortcutsSrc })));
185
+ : this._componentLocale.typeSelectionTitle, key: this.selectedCategory.id, onSelectionChanged: this.typeOnSelectionChangedHandler }, this.selectedCategory.types.map(type => (index.h("gxg-list-box-item", { key: `${this.selectedCategory.id}-${type.id}`, icon: type.icon, part: `type-${this.selectedCategory.id}-${type.id}` }, type.name))))) : (index.h("p", null, "No Categories to display")))), index.h("div", { class: "api-description" }, index.h("gxg-title", { type: "title-05" }, (_a = this.selectedType) === null || _a === void 0 ? void 0 : _a.description), index.h("div", { class: "form" }, index.h("gxg-label", { labelPosition: "start" }, this._componentLocale.objectName), index.h("gxg-form-text", { "label-position": "start", placeholder: "Name", "max-width": "100%", value: this.selectedType.name, toolTip: config.config.tooltip, ref: (el) => (this.nameEl = el), onInput: this.onInputNameHandler, onBlur: this.onBlurNameHandler, onValueChanged: this.onNameValueChangedHandler, debounce: true, part: "name", "display-validation-styles": true, "display-validation-message": true }), index.h("gxg-label", { labelPosition: "start" }, this._componentLocale.objectDescription), index.h("gxg-form-text", { "label-position": "start", placeholder: "Description", "max-width": "100%", value: this.selectedType.name, ref: (el) => (this.descriptionEl = el), onInput: this.onInputDescriptionHandler, part: "description", "display-validation-styles": true, "display-validation-message": true }), this.renderModuleFolder()))), index.h("gxg-button", { id: "button-cancel", slot: "footer-end", type: "outlined", onClick: this.cancelCallbackHandler, part: "gxg-button gxg-button--cancel" }, this._componentLocale.footer.btnCancel), index.h("gxg-button", { id: "button-create", slot: "footer-end", type: "primary-text-only", onClick: this.createCallbackHandler, disabled: !this.nameIsValid, part: "gxg-button gxg-button--create" }, this._componentLocale.footer.btnCreate))), index.h("gxg-shortcuts", { src: this.shortcutsSrc, ref: (el) => (this.gxgShortcutsEl = el) })));
169
186
  }
187
+ static get delegatesFocus() { return true; }
170
188
  static get assetsDirs() { return ["gx-ide-assets/new-object"]; }
171
189
  get el() { return index.getElement(this); }
172
190
  static get watchers() { return {
@@ -10,7 +10,7 @@ const helpers = require('./helpers-cd8bd90a.js');
10
10
  const grid = require('./grid-d12c16c7.js');
11
11
  const constants = require('./constants-e63c0ad9.js');
12
12
 
13
- const objectSelectorCss = ".gxi-hidden{display:none !important}.gxi-full-height{height:100%}.gxi-overflow-auto{overflow:auto}.gxi-display-flex{display:flex}.align-start{display:flex;align-items:start}.align-center{display:flex;align-items:center}.align-end{display:flex;align-items:end}.overflow-auto{overflow:auto}.justify-start{display:flex;justify-content:start}.justify-center{display:flex;justify-content:center}.justify-end{display:flex;justify-content:end}.grid{display:grid;grid-row-gap:var(--gx-ide-grid-row-gap);grid-column-gap:var(--gx-ide-grid-column-gap);grid-template-rows:auto}ch-grid-cell{display:flex}ch-grid{overflow:auto;height:100%}ch-grid-column{z-index:99;border-bottom:1px solid var(--gray-01)}ch-grid-column:first-child{padding-inline-start:var(--gxg-container--padding) !important}ch-grid-column:last-child{padding-inline-end:var(--gxg-container--padding) !important}ch-grid-cell{--spacing-comp-02:var(--gxg-container--padding)}.layout{display:grid;gap:var(--spacing-comp-05);box-sizing:border-box}.layout--two-cols{grid-template-columns:1fr 1fr}.layout--space-above{padding-block-start:var(--spacing-comp-05)}gxg-tabs{box-shadow:none}:host(.gx-ide-component){box-shadow:var(--box-shadow-01);height:100% !important;display:flex !important;flex-direction:column !important}:host(:focus-within) gx-ide-top-bar::part(wrapper){background-color:var(--color-secondary-enabled)}.gx-ide-main-wrapper{color:var(--gx-ide-component-text-color);font-weight:var(--font-weight-regular);font-size:var(--font-size-lg);font-family:var(--font-family-primary);line-height:1.6em;height:100%;background-color:var(--gx-ide-component-background-color);display:flex;flex-direction:column;flex-grow:1;box-sizing:border-box}.gx-ide-main{flex-grow:1;overflow-y:auto;}.gx-ide-main::-webkit-scrollbar{width:6px;height:6px}.gx-ide-main::-webkit-scrollbar-track{background-color:var(--gray-02);border-radius:10px}.gx-ide-main::-webkit-scrollbar-thumb{background:var(--gray-05);border-radius:10px}.gx-ide-main::-webkit-scrollbar-thumb:hover{background:var(--gray-04);cursor:pointer}.gx-ide-main .gxg-scroll{display:block;overflow-y:auto;padding-inline-end:2px}.gx-ide-overflow{overflow-y:auto;}.gx-ide-overflow::-webkit-scrollbar{width:6px;height:6px}.gx-ide-overflow::-webkit-scrollbar-track{background-color:var(--gray-02);border-radius:10px}.gx-ide-overflow::-webkit-scrollbar-thumb{background:var(--gray-05);border-radius:10px}.gx-ide-overflow::-webkit-scrollbar-thumb:hover{background:var(--gray-04);cursor:pointer}.gx-ide-overflow .gxg-scroll{display:block;overflow-y:auto;padding-inline-end:2px}.tree-container{display:flex;height:100%;width:100%;box-sizing:border-box}:host{display:block;border:1px solid var(--gxg-border-color--regular);background-color:var(--color-background)}.filter-grid{display:grid;padding:var(--spacing-comp-03);row-gap:var(--gx-ide-grid-row-gap);column-gap:var(--gx-ide-grid-column-gap);border-block-start:1px solid var(--gx-ide-container-border-color);border-block-end:1px solid var(--gx-ide-container-border-color);grid-template-columns:1fr 1fr;grid-template-areas:\"pattern type\" \"category module-folder\" \"modified-row modified-row\"}.filter-grid .pattern{grid-area:pattern}.filter-grid .type{grid-area:type}.filter-grid .category{grid-area:category}.filter-grid .module-folder{grid-area:module-folder}.filter-grid .modified-row{grid-area:modified-row}.filter-grid--no-title{border-top:0}.modified-row{min-height:24px;display:flex;align-items:center;gap:var(--gx-ide-grid-column-gap);flex:1}.modified-row__inner-wrapper{display:flex;align-items:center;gap:var(--gx-ide-grid-column-gap);flex:1}.modified-row__inner-wrapper .date-time{display:flex;align-items:center}.modified-row .user{max-width:205px !important}.modified-row .date-time{flex:1}ch-grid-cell{--spacing-comp-02:var(--spacing-comp-03)}.objects-count{display:flex;justify-content:space-around}.objects-count>*{flex:1;padding:var(--spacing-comp-01)}.objects-count>:not(:last-child){border-inline-end:1px solid var(--gx-ide-container-border-color)}";
13
+ const objectSelectorCss = ".gxi-hidden{display:none !important}.gxi-full-height{height:100%}.gxi-overflow-auto{overflow:auto}.gxi-display-flex{display:flex}.align-start{display:flex;align-items:start}.align-center{display:flex;align-items:center}.align-end{display:flex;align-items:end}.overflow-auto{overflow:auto}.justify-start{display:flex;justify-content:start}.justify-center{display:flex;justify-content:center}.justify-end{display:flex;justify-content:end}.grid{display:grid;grid-row-gap:var(--gx-ide-grid-row-gap);grid-column-gap:var(--gx-ide-grid-column-gap);grid-template-rows:auto}ch-grid-cell{display:flex}ch-grid{overflow:auto;height:100%}ch-grid-column{z-index:99;border-bottom:1px solid var(--gray-01)}ch-grid-column:first-child{padding-inline-start:var(--gxg-container--padding) !important}ch-grid-column:last-child{padding-inline-end:var(--gxg-container--padding) !important}ch-grid-cell{--spacing-comp-02:var(--gxg-container--padding)}.layout{display:grid;gap:var(--spacing-comp-05);box-sizing:border-box}.layout--two-cols{grid-template-columns:1fr 1fr}.layout--space-above{padding-block-start:var(--spacing-comp-05)}gxg-tabs{box-shadow:none}:host(.gx-ide-component){box-shadow:var(--box-shadow-01);height:100% !important;display:flex !important;flex-direction:column !important}:host(:focus-within) gx-ide-top-bar::part(wrapper){background-color:var(--color-secondary-enabled)}.gx-ide-main-wrapper{color:var(--gx-ide-component-text-color);font-weight:var(--font-weight-regular);font-size:var(--font-size-lg);font-family:var(--font-family-primary);line-height:1.6em;height:100%;background-color:var(--gx-ide-component-background-color);display:flex;flex-direction:column;flex-grow:1;box-sizing:border-box}.gx-ide-main{flex-grow:1;overflow-y:auto;}.gx-ide-main::-webkit-scrollbar{width:6px;height:6px}.gx-ide-main::-webkit-scrollbar-track{background-color:var(--gray-02);border-radius:10px}.gx-ide-main::-webkit-scrollbar-thumb{background:var(--gray-05);border-radius:10px}.gx-ide-main::-webkit-scrollbar-thumb:hover{background:var(--gray-04);cursor:pointer}.gx-ide-main .gxg-scroll{display:block;overflow-y:auto;padding-inline-end:2px}.gx-ide-overflow{overflow-y:auto;}.gx-ide-overflow::-webkit-scrollbar{width:6px;height:6px}.gx-ide-overflow::-webkit-scrollbar-track{background-color:var(--gray-02);border-radius:10px}.gx-ide-overflow::-webkit-scrollbar-thumb{background:var(--gray-05);border-radius:10px}.gx-ide-overflow::-webkit-scrollbar-thumb:hover{background:var(--gray-04);cursor:pointer}.gx-ide-overflow .gxg-scroll{display:block;overflow-y:auto;padding-inline-end:2px}.tree-container{display:flex;height:100%;width:100%;box-sizing:border-box}:host{display:block;border:1px solid var(--gxg-border-color--regular);background-color:var(--color-background)}.filter-grid{display:grid;padding:var(--spacing-comp-03);row-gap:var(--gx-ide-grid-row-gap);column-gap:var(--gx-ide-grid-column-gap);border-block-start:1px solid var(--gx-ide-container-border-color);border-block-end:1px solid var(--gx-ide-container-border-color);grid-template-columns:1fr 1fr;grid-template-areas:\"pattern type\" \"category module-folder\" \"modified-row modified-row\"}.filter-grid .pattern{grid-area:pattern}.filter-grid .type{grid-area:type}.filter-grid .category{grid-area:category}.filter-grid .module-folder{grid-area:module-folder}.filter-grid .modified-row{grid-area:modified-row}.filter-grid--no-title{border-top:0}.modified-row{min-height:24px;display:flex;align-items:center;gap:var(--gx-ide-grid-column-gap);flex:1}.modified-row__inner-wrapper{display:flex;align-items:center;gap:var(--gx-ide-grid-column-gap);flex:1}.modified-row__inner-wrapper .date-time{display:flex;align-items:center}.modified-row .user{max-width:205px !important}.modified-row .date-time{flex:1}.grid-container{height:100%}ch-grid-cell{--spacing-comp-02:var(--spacing-comp-03)}.objects-count{display:flex;justify-content:space-around}.objects-count>*{flex:1;padding:var(--spacing-comp-01)}.objects-count>:not(:last-child){border-inline-end:1px solid var(--gx-ide-container-border-color)}";
14
14
 
15
15
  const GxIdeObjectSelector = class {
16
16
  constructor(hostRef) {
@@ -20,57 +20,8 @@ const GxIdeObjectSelector = class {
20
20
  this.renderedFirstTime = false;
21
21
  this.shortcutsSrc = index.getAssetPath(`./gx-ide-assets/object-selector/shortcuts.json`);
22
22
  // 9.LOCAL METHODS //
23
- this.renderFilter = () => {
24
- var _a, _b;
25
- return (index.h("div", { part: "filters-container", class: {
26
- "filter-grid": true,
27
- "filter-grid--no-title": !this.displayTitle
28
- }, slot: "header" }, index.h("gxg-form-text", { "label-position": "above", label: this._componentLocale.filter.pattern, ref: (el) => (this.filterPatternEl = el), value: this.patternValue, class: "pattern", part: "filter-pattern" }), index.h("gxg-combo-box", { "disable-filter": true, label: this._componentLocale.filter.type, value: this.defaultType, disabled: !this.types, "display-validation-styles": true, "display-validation-message": true, ref: (el) => (this.filterTypeEl = el), class: "type", part: "filter-type" }, renderComboItems.renderComboItems((_a = this.types) !== null && _a !== void 0 ? _a : [])), index.h("gxg-combo-box", { "disable-filter": true, label: this._componentLocale.filter.category, value: this.defaultCategory, disabled: !this.categories, "display-validation-styles": true, "display-validation-message": true, ref: (el) => (this.filterCategoryEl = el), class: "category", part: "filter-category" }, renderComboItems.renderComboItems((_b = this.categories) !== null && _b !== void 0 ? _b : [])), index.h("gx-ide-entity-selector", { label: this._componentLocale.filter.module, "label-position": "above", value: this.defaultModule, defaultValue: this.defaultModule, selectEntityCallback: this.selectModuleCallback, ref: (el) => (this.filterModuleEl = el), class: "module-folder" }), index.h("div", { class: "modified-row" }, index.h("gxg-form-checkbox", { label: this._componentLocale.filter.modified, class: "align-center", ref: (el) => (this.filterModifiedEl = el), part: "filter-modified" }), index.h("div", { class: "modified-row__inner-wrapper" }, index.h("gxg-combo-box", { class: {
29
- "gxi-hidden": !this.filterModified,
30
- "combo-modified": true
31
- }, "disable-filter": true, value: this.filterAfterType, "display-validation-styles": true, "display-validation-message": true, ref: (el) => (this.filterAfterTypeEl = el), part: "filter-after-type" }, renderComboItems.renderComboItems([
32
- {
33
- id: constants.FILTER_AFTER.NONE,
34
- label: this._componentLocale.filter.afterNone,
35
- value: constants.FILTER_AFTER.NONE
36
- },
37
- {
38
- id: constants.FILTER_AFTER.DATE_TIME,
39
- label: this._componentLocale.filter[constants.FILTER_AFTER.DATE_TIME],
40
- value: constants.FILTER_AFTER.DATE_TIME
41
- },
42
- {
43
- id: constants.FILTER_AFTER.IMPORT,
44
- label: this._componentLocale.filter[constants.FILTER_AFTER.IMPORT],
45
- value: constants.FILTER_AFTER.IMPORT
46
- },
47
- {
48
- id: constants.FILTER_AFTER.LAST_BUILD,
49
- label: this._componentLocale.filter[constants.FILTER_AFTER.LAST_BUILD],
50
- value: constants.FILTER_AFTER.LAST_BUILD
51
- }
52
- ])), index.h("gxg-form-text", { class: {
53
- "gxi-hidden": !this.filterModified,
54
- "user": true
55
- }, "label-position": "start", label: this._componentLocale.filter.user, "max-width": "150px", ref: (el) => (this.filterUserEl = el), part: "filter-user" }), index.h("div", { class: {
56
- "date-time": true,
57
- "gxi-hidden": !this.filterModified ||
58
- this.filterAfterType !== constants.FILTER_AFTER.DATE_TIME
59
- }, part: "filter-datetime" }, index.h("gxg-label", { "label-position": "start" }, this._componentLocale.filter.dateTime), index.h("gxg-date-picker", { ref: (el) => (this.filterModifiedDateEl = el), class: "date-time" }))))));
60
- };
61
- this.renderObjects = () => {
62
- return (index.h("gxg-grid", { "ellipsis-cell-wrapper": true, noBorder: true }, index.h("ch-grid", { rowSelectionMode: this.multiSelection ? "multiple" : "single", ref: (el) => (this.chGridEl = el), onKeyDown: this.chGridKeyDownHandler, part: "ch-grid-objects" }, index.h("ch-grid-columnset", null, index.h("ch-grid-column", { "column-name-position": "text", settingable: false, size: grid.gridCommon.colSize.auto }), index.h("ch-grid-column", { "column-name": this._componentLocale.tableHead.name, "column-name-position": "text", settingable: false, size: grid.gridCommon.colSize.auto }), index.h("ch-grid-column", { "column-name": this._componentLocale.tableHead.type, "column-name-position": "text", settingable: false, size: grid.gridCommon.colSize.auto }), index.h("ch-grid-column", { "column-name": this._componentLocale.tableHead.module, "column-name-position": "text", settingable: false, size: grid.gridCommon.colSize.auto }), index.h("ch-grid-column", { "column-name": this._componentLocale.tableHead.description, "column-name-position": "text", settingable: false, size: grid.gridCommon.colSize.common }), index.h("ch-grid-column", { "column-name": this._componentLocale.tableHead.modifiedDate, "column-name-position": "text", settingable: false, size: grid.gridCommon.colSize.auto }), index.h("ch-grid-column", { "column-name": this._componentLocale.tableHead.importDate, "column-name-position": "text", settingable: false, size: grid.gridCommon.colSize.auto })), this.objects
63
- .sort((a, b) => {
64
- const nameA = a.name.toLowerCase(), nameB = b.name.toLowerCase();
65
- if (nameA < nameB) {
66
- return -1;
67
- }
68
- if (nameA > nameB) {
69
- return 1;
70
- }
71
- return 0;
72
- })
73
- .map((obj) => (index.h("ch-grid-row", { rowid: obj.id, onDblClick: this.openSelectionCallbackHandler }, index.h("ch-grid-cell", null, index.h("span", { class: "cell-wrapper" }, index.h("gxg-icon", { type: obj.icon, color: "auto" }))), index.h("ch-grid-cell", null, index.h("span", { class: "cell-wrapper" }, " ", obj.name, " ")), index.h("ch-grid-cell", null, index.h("span", { class: "cell-wrapper" }, obj.type)), index.h("ch-grid-cell", null, index.h("span", { class: "cell-wrapper" }, obj.module)), index.h("ch-grid-cell", null, index.h("span", { class: "cell-wrapper" }, obj.description)), index.h("ch-grid-cell", null, index.h("span", { class: "cell-wrapper" }, `${helpers.formatDate(obj.modifiedDate, "date-time")}`)), index.h("ch-grid-cell", null, index.h("span", { class: "cell-wrapper" }, `${helpers.formatDate(obj.importDate, "date-time")}`))))))));
23
+ this.loaderCancelCallbackHandler = async () => {
24
+ this.cancelCallbackHandler();
74
25
  };
75
26
  this.getObjects = () => {
76
27
  var _a, _b, _c, _d, _e, _f, _g, _h;
@@ -89,17 +40,27 @@ const GxIdeObjectSelector = class {
89
40
  ? (_h = this.filterModifiedDateEl) === null || _h === void 0 ? void 0 : _h.value
90
41
  : null
91
42
  };
92
- this.loadCallback(filters).then((items) => {
93
- this.objects = items;
94
- this.selectedObjectsIds = [];
95
- this.deselectAll();
96
- });
43
+ if (this.loadCallback) {
44
+ if (this.loader) {
45
+ this.loaderEl.show = true;
46
+ }
47
+ this.loadCallback(filters).then((items) => {
48
+ if (items) {
49
+ this.objects = items;
50
+ }
51
+ this.selectedObjectsIds = [];
52
+ this.deselectAll();
53
+ if (this.loader) {
54
+ this.loaderEl.show = false;
55
+ }
56
+ });
57
+ }
97
58
  };
98
59
  this.openSelectionCallbackHandler = (e) => {
99
60
  e.stopPropagation();
100
61
  this.openSelectionCallback(this.selectedObjectsIds);
101
62
  };
102
- this.cancelCallbackHandle = () => {
63
+ this.cancelCallbackHandler = () => {
103
64
  this.cancelCallback();
104
65
  };
105
66
  this.selectAll = () => {
@@ -183,11 +144,65 @@ const GxIdeObjectSelector = class {
183
144
  return `${this.objects.length} ${this._componentLocale.objCount.matching.many}`;
184
145
  }
185
146
  };
147
+ // 9.LOCAL METHODS -> RENDER//
148
+ this.renderFilter = () => {
149
+ var _a, _b;
150
+ return (index.h("div", { part: "filters-container", class: {
151
+ "filter-grid": true,
152
+ "filter-grid--no-title": !this.displayTitle
153
+ }, slot: "header" }, index.h("gxg-form-text", { "label-position": "above", label: this._componentLocale.filter.pattern, ref: (el) => (this.filterPatternEl = el), value: this.patternValue, class: "pattern", part: "filter-pattern" }), index.h("gxg-combo-box", { "disable-filter": true, label: this._componentLocale.filter.type, value: this.defaultType, disabled: !this.types, "display-validation-styles": true, "display-validation-message": true, ref: (el) => (this.filterTypeEl = el), class: "type", part: "filter-type" }, renderComboItems.renderComboItems((_a = this.types) !== null && _a !== void 0 ? _a : [])), index.h("gxg-combo-box", { "disable-filter": true, label: this._componentLocale.filter.category, value: this.defaultCategory, disabled: !this.categories, "display-validation-styles": true, "display-validation-message": true, ref: (el) => (this.filterCategoryEl = el), class: "category", part: "filter-category" }, renderComboItems.renderComboItems((_b = this.categories) !== null && _b !== void 0 ? _b : [])), index.h("gx-ide-entity-selector", { label: this._componentLocale.filter.module, "label-position": "above", value: this.defaultModule, defaultValue: this.defaultModule, selectEntityCallback: this.selectModuleCallback, ref: (el) => (this.filterModuleEl = el), class: "module-folder" }), index.h("div", { class: "modified-row" }, index.h("gxg-form-checkbox", { label: this._componentLocale.filter.modified, class: "align-center", ref: (el) => (this.filterModifiedEl = el), part: "filter-modified" }), index.h("div", { class: "modified-row__inner-wrapper" }, index.h("gxg-combo-box", { class: {
154
+ "gxi-hidden": !this.filterModified,
155
+ "combo-modified": true
156
+ }, "disable-filter": true, value: this.filterAfterType, "display-validation-styles": true, "display-validation-message": true, ref: (el) => (this.filterAfterTypeEl = el), part: "filter-after-type" }, renderComboItems.renderComboItems([
157
+ {
158
+ id: constants.FILTER_AFTER.NONE,
159
+ label: this._componentLocale.filter.afterNone,
160
+ value: constants.FILTER_AFTER.NONE
161
+ },
162
+ {
163
+ id: constants.FILTER_AFTER.DATE_TIME,
164
+ label: this._componentLocale.filter[constants.FILTER_AFTER.DATE_TIME],
165
+ value: constants.FILTER_AFTER.DATE_TIME
166
+ },
167
+ {
168
+ id: constants.FILTER_AFTER.IMPORT,
169
+ label: this._componentLocale.filter[constants.FILTER_AFTER.IMPORT],
170
+ value: constants.FILTER_AFTER.IMPORT
171
+ },
172
+ {
173
+ id: constants.FILTER_AFTER.LAST_BUILD,
174
+ label: this._componentLocale.filter[constants.FILTER_AFTER.LAST_BUILD],
175
+ value: constants.FILTER_AFTER.LAST_BUILD
176
+ }
177
+ ])), index.h("gxg-form-text", { class: {
178
+ "gxi-hidden": !this.filterModified,
179
+ "user": true
180
+ }, "label-position": "start", label: this._componentLocale.filter.user, "max-width": "150px", ref: (el) => (this.filterUserEl = el), part: "filter-user" }), index.h("div", { class: {
181
+ "date-time": true,
182
+ "gxi-hidden": !this.filterModified ||
183
+ this.filterAfterType !== constants.FILTER_AFTER.DATE_TIME
184
+ }, part: "filter-datetime" }, index.h("gxg-label", { "label-position": "start" }, this._componentLocale.filter.dateTime), index.h("gxg-date-picker", { ref: (el) => (this.filterModifiedDateEl = el), class: "date-time" }))))));
185
+ };
186
+ this.renderObjects = () => {
187
+ return (index.h("gxg-grid", { "ellipsis-cell-wrapper": true, noBorder: true }, index.h("ch-grid", { rowSelectionMode: this.multiSelection ? "multiple" : "single", ref: (el) => (this.chGridEl = el), onKeyDown: this.chGridKeyDownHandler, part: "ch-grid-objects" }, index.h("ch-grid-columnset", null, index.h("ch-grid-column", { "column-name-position": "text", settingable: false, size: grid.gridCommon.colSize.auto }), index.h("ch-grid-column", { "column-name": this._componentLocale.tableHead.name, "column-name-position": "text", settingable: false, size: grid.gridCommon.colSize.auto }), index.h("ch-grid-column", { "column-name": this._componentLocale.tableHead.type, "column-name-position": "text", settingable: false, size: grid.gridCommon.colSize.auto }), index.h("ch-grid-column", { "column-name": this._componentLocale.tableHead.module, "column-name-position": "text", settingable: false, size: grid.gridCommon.colSize.auto }), index.h("ch-grid-column", { "column-name": this._componentLocale.tableHead.description, "column-name-position": "text", settingable: false, size: grid.gridCommon.colSize.common }), index.h("ch-grid-column", { "column-name": this._componentLocale.tableHead.modifiedDate, "column-name-position": "text", settingable: false, size: grid.gridCommon.colSize.auto }), index.h("ch-grid-column", { "column-name": this._componentLocale.tableHead.importDate, "column-name-position": "text", settingable: false, size: grid.gridCommon.colSize.auto })), this.objects
188
+ .sort((a, b) => {
189
+ const nameA = a.name.toLowerCase(), nameB = b.name.toLowerCase();
190
+ if (nameA < nameB) {
191
+ return -1;
192
+ }
193
+ if (nameA > nameB) {
194
+ return 1;
195
+ }
196
+ return 0;
197
+ })
198
+ .map((obj) => (index.h("ch-grid-row", { rowid: obj.id, onDblClick: this.openSelectionCallbackHandler }, index.h("ch-grid-cell", null, index.h("span", { class: "cell-wrapper" }, index.h("gxg-icon", { type: obj.icon, color: "auto" }))), index.h("ch-grid-cell", null, index.h("span", { class: "cell-wrapper" }, " ", obj.name, " ")), index.h("ch-grid-cell", null, index.h("span", { class: "cell-wrapper" }, obj.type)), index.h("ch-grid-cell", null, index.h("span", { class: "cell-wrapper" }, obj.module)), index.h("ch-grid-cell", null, index.h("span", { class: "cell-wrapper" }, obj.description)), index.h("ch-grid-cell", null, index.h("span", { class: "cell-wrapper" }, `${helpers.formatDate(obj.modifiedDate, "date-time")}`)), index.h("ch-grid-cell", null, index.h("span", { class: "cell-wrapper" }, `${helpers.formatDate(obj.importDate, "date-time")}`))))))));
199
+ };
186
200
  this.filterAfterType = "";
187
201
  this.filterModified = false;
188
202
  this.objects = [];
189
203
  this.selectedObjectsIds = [];
190
204
  this.displayTitle = false;
205
+ this.loader = false;
191
206
  this.multiSelection = true;
192
207
  this.patternValue = undefined;
193
208
  this.types = undefined;
@@ -208,6 +223,7 @@ const GxIdeObjectSelector = class {
208
223
  }
209
224
  componentDidLoad() {
210
225
  this.listenChanges();
226
+ this.loaderEl.container = this.chGridEl;
211
227
  this.getObjects();
212
228
  this.filterPatternEl.focus();
213
229
  }
@@ -219,6 +235,17 @@ const GxIdeObjectSelector = class {
219
235
  }
220
236
  // 7.LISTENERS //
221
237
  // 8.PUBLIC METHODS API //
238
+ /**
239
+ * Suspends or reactivates the shortcuts
240
+ */
241
+ async suspendShortcuts(suspendShortcuts) {
242
+ if (suspendShortcuts) {
243
+ this.gxgShortcutsEl.suspend = true;
244
+ }
245
+ else {
246
+ this.gxgShortcutsEl.suspend = false;
247
+ }
248
+ }
222
249
  /**
223
250
  * Validate necessary data input
224
251
  */
@@ -228,8 +255,9 @@ const GxIdeObjectSelector = class {
228
255
  }
229
256
  // 10.RENDER() FUNCTION //
230
257
  render() {
231
- return (index.h(index.Host, { class: "gx-ide-component", onKeyPress: this.hostKeyPressHandler }, index.h("div", { class: "gx-ide-main-wrapper" }, index.h("gx-ide-container", { containerTitle: this.displayTitle ? this._componentLocale.componentName : null, noContentPadding: true, noAboveFooterPadding: true, noHeadingPadding: true, headingPaddingTop: true, noHeadingBorder: true, slimmerFooter: config.config.gxIdeContainer.slimmerFooter }, this.renderFilter(), this.renderObjects(), index.h("div", { class: "objects-count", slot: "footer-above" }, index.h("gxg-text", { class: "align-end", part: "objects-selected", textAlign: "center" }, this.evaluateObjectsCount("selected")), index.h("gxg-text", { class: "align-end", part: "objects-matching", textAlign: "center" }, this.evaluateObjectsCount("matching"))), index.h("gxg-button", { type: "outlined", onClick: this.cancelCallbackHandle, part: "gxg-button gxg-button--cancel", slot: "footer-end" }, this._componentLocale.footer.btnCancel), index.h("gxg-button", { type: "primary-text-only", onClick: this.openSelectionCallbackHandler, part: "gxg-button gxg-button--ok", slot: "footer-end" }, this._componentLocale.footer.btnConfirm), index.h("gxg-button", { type: "primary-text-icon", icon: "menus/new-object", onClick: this.newObjectCallbackHandler, part: "gxg-button gxg-button--new", slot: "footer-start" }, this._componentLocale.footer.btnNew), this.multiSelection ? (index.h("gxg-button", { type: "secondary-text-only", onClick: this.selectAll, part: "gxg-button gxg-button--select-all", slot: "footer-start" }, this._componentLocale.footer.btnSelectAll)) : null)), index.h("gxg-shortcuts", { src: this.shortcutsSrc })));
258
+ return (index.h(index.Host, { class: "gx-ide-component", onKeyPress: this.hostKeyPressHandler }, index.h("div", { class: "gx-ide-main-wrapper" }, index.h("gx-ide-container", { containerTitle: this.displayTitle ? this._componentLocale.componentName : null, noContentPadding: true, noAboveFooterPadding: true, noHeadingPadding: true, headingPaddingTop: true, noHeadingBorder: true, slimmerFooter: config.config.gxIdeContainer.slimmerFooter }, this.renderFilter(), this.renderObjects(), index.h("div", { class: "objects-count", slot: "footer-above" }, index.h("gxg-text", { class: "align-end", part: "objects-selected", textAlign: "center" }, this.evaluateObjectsCount("selected")), index.h("gxg-text", { class: "align-end", part: "objects-matching", textAlign: "center" }, this.evaluateObjectsCount("matching"))), index.h("gxg-button", { type: "outlined", onClick: this.cancelCallbackHandler, part: "gxg-button gxg-button--cancel", slot: "footer-end" }, this._componentLocale.footer.btnCancel), index.h("gxg-button", { type: "primary-text-only", onClick: this.openSelectionCallbackHandler, part: "gxg-button gxg-button--ok", slot: "footer-end" }, this._componentLocale.footer.btnConfirm), index.h("gxg-button", { type: "primary-text-icon", icon: "menus/new-object", onClick: this.newObjectCallbackHandler, part: "gxg-button gxg-button--new", slot: "footer-start" }, this._componentLocale.footer.btnNew), this.multiSelection ? (index.h("gxg-button", { type: "secondary-text-only", onClick: this.selectAll, part: "gxg-button gxg-button--select-all", slot: "footer-start" }, this._componentLocale.footer.btnSelectAll)) : null)), index.h("gxg-shortcuts", { src: this.shortcutsSrc, ref: (el) => (this.gxgShortcutsEl = el) }), this.loader ? (index.h("gxg-ide-loader", { cancelLabel: this._componentLocale.loader.cancelLabel, loaderTitle: this._componentLocale.loader.title, ref: el => (this.loaderEl = el), cancelCallback: this.loaderCancelCallbackHandler })) : null));
232
259
  }
260
+ static get delegatesFocus() { return true; }
233
261
  static get assetsDirs() { return ["gx-ide-assets/object-selector"]; }
234
262
  get el() { return index.getElement(this); }
235
263
  };
@@ -58,8 +58,7 @@ const GxIdeRecentNews = class {
58
58
  }
59
59
  }
60
60
  };
61
- this.NewsClickHandler = async (e) => {
62
- const newsId = e.target.id;
61
+ this.openNewsHandler = (newsId) => async () => {
63
62
  if (this.openNewsCallback) {
64
63
  await this.openNewsCallback(newsId);
65
64
  }
@@ -67,7 +66,7 @@ const GxIdeRecentNews = class {
67
66
  // 9.LOCAL METHODS -> RENDERS //
68
67
  this.renderNews = (news) => {
69
68
  if (news.id && news.title) {
70
- return (index.h("gxg-card", { id: news.id, key: news.id, cardType: "article", cardTitle: news.title, icon: "gx-test/test-results", iconColor: "auto", actionable: true, onClick: this.NewsClickHandler, titleSemibold: true, noHeaderBorder: true, class: "news-article" }, news.body ? index.h("p", null, news.body) : null));
69
+ return (index.h("gxg-card", { id: news.id, key: news.id, cardType: "article", cardTitle: news.title, icon: "gx-test/test-results", iconColor: "auto", actionable: true, onClick: this.openNewsHandler(news.id), titleSemibold: true, noHeaderBorder: true, class: "news-article" }, news.body ? index.h("p", null, news.body) : null));
71
70
  }
72
71
  return null;
73
72
  };
@@ -158,12 +158,9 @@ const GxIdeReferences = class {
158
158
  resolve([]);
159
159
  });
160
160
  };
161
- this.referenceSelectedHandler = (selectedItem) => {
161
+ this.referenceSelectedHandler = (event) => {
162
162
  if (this.selectReferenceCallback) {
163
- const selectedItems = [];
164
- selectedItem.detail.forEach(item => {
165
- selectedItems.push(item.id);
166
- });
163
+ const selectedItems = event.detail.map(item => item.item.id);
167
164
  this.selectReferenceCallback(selectedItems[0]);
168
165
  // returns void
169
166
  }
@@ -179,8 +176,6 @@ const GxIdeReferences = class {
179
176
  this.referencesToTreeData = undefined;
180
177
  this.barHidden = false;
181
178
  this.objectsSuggestions = undefined;
182
- this.referencedBy = undefined;
183
- this.referencesTo = undefined;
184
179
  this.displayTitle = false;
185
180
  this.selectedObject = undefined;
186
181
  this.selectorSourceCallback = undefined;
@@ -45,15 +45,11 @@ const GxgComboBox = class {
45
45
  /**
46
46
  * The presence of this attribute applies the popover attribute to the list of items. This is useful if the combo-box is wrapped inside a "@container" responsive container, since at the time of writing, fixed positioned elements that are inside a "@container" container, are relative to the container, not the viewport.
47
47
  */
48
- this.popOver = true;
48
+ this.popOver = false;
49
49
  /**
50
50
  * The presence of this attribute displays a tooltip message, instead of a block message below the control
51
51
  */
52
52
  this.toolTip = false;
53
- /**
54
- * If true, it will prevent Enter key propagation only when the list is open. This prop. was created to prevent issues with ch-shortcuts, when an Enter key has to fire a callback on another element (such as a button) but it has to be ignored when the list is open, since an Enter key on a list-box-item, has to select the item only.
55
- */
56
- this.preventEnterPropagation = false;
57
53
  /**
58
54
  * The presence of this attribute makes the input disabled
59
55
  */
@@ -173,9 +169,6 @@ const GxgComboBox = class {
173
169
  repositionScroll.repositionScroll(this.itemsContainer, this.selectedItem, types.KeyboardKeys.ARROW_UP);
174
170
  }
175
171
  else if (e.code === types.KeyboardKeys.ENTER) {
176
- if (this.preventEnterPropagation && this.listIsOpen) {
177
- e.stopPropagation();
178
- }
179
172
  this.hideList();
180
173
  this.showAllItems();
181
174
  }
@@ -613,6 +606,7 @@ const GxgComboBox = class {
613
606
  render() {
614
607
  const clearIcon = this.value && !this.disableFilter && !this.disableClear;
615
608
  return (index.h(index.Host, { class: {
609
+ "list-is-opem": this.listIsOpen,
616
610
  "gxg-combo-box--disabled": this.disableFilter,
617
611
  tooltip: this.toolTip,
618
612
  large: store.state.large,