@sankhyalabs/sankhyablocks 8.14.11 → 8.15.0-dev.10

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 (201) hide show
  1. package/dist/cjs/{ConfigStorage-8009ecb2.js → ConfigStorage-302bbbd4.js} +24 -14
  2. package/dist/cjs/{ISave-d68ce3cd.js → ISave-e91b70a7.js} +1 -0
  3. package/dist/cjs/{SnkFormConfigManager-7d850fbc.js → SnkFormConfigManager-71c4768e.js} +1 -1
  4. package/dist/cjs/{SnkMessageBuilder-7293d0ad.js → SnkMessageBuilder-e7dcf408.js} +13 -0
  5. package/dist/cjs/{field-search-ca27041a.js → field-search-f56aa7d6.js} +29 -1
  6. package/dist/cjs/{index-0e663819.js → index-0922807b.js} +1 -0
  7. package/dist/cjs/index-f9e81701.js +2 -2
  8. package/dist/cjs/loader.cjs.js +1 -1
  9. package/dist/cjs/{dataunit-fetcher-d839c5d7.js → pesquisa-fetcher-7a08d110.js} +173 -6
  10. package/dist/cjs/sankhyablocks.cjs.js +1 -1
  11. package/dist/cjs/{snk-actions-button.cjs.entry.js → snk-actions-button_2.cjs.entry.js} +133 -4
  12. package/dist/cjs/snk-application.cjs.entry.js +65 -6
  13. package/dist/cjs/snk-attach.cjs.entry.js +389 -58
  14. package/dist/cjs/snk-crud.cjs.entry.js +8 -9
  15. package/dist/cjs/snk-data-exporter.cjs.entry.js +3 -3
  16. package/dist/cjs/{snk-data-unit-1bc69073.js → snk-data-unit-82c08a8c.js} +1 -1
  17. package/dist/cjs/snk-data-unit.cjs.entry.js +2 -2
  18. package/dist/cjs/snk-detail-view.cjs.entry.js +9 -10
  19. package/dist/cjs/snk-filter-bar.cjs.entry.js +6 -3
  20. package/dist/cjs/snk-filter-item.cjs.entry.js +47 -1
  21. package/dist/cjs/snk-filter-modal-item.cjs.entry.js +1 -1
  22. package/dist/cjs/snk-form.cjs.entry.js +2 -2
  23. package/dist/cjs/snk-grid-config.cjs.entry.js +1 -1
  24. package/dist/cjs/snk-grid.cjs.entry.js +51 -42
  25. package/dist/cjs/{snk-guides-viewer-88a7f880.js → snk-guides-viewer-546509df.js} +10 -21
  26. package/dist/cjs/snk-guides-viewer.cjs.entry.js +8 -9
  27. package/dist/cjs/snk-personalized-filter.cjs.entry.js +1 -1
  28. package/dist/cjs/snk-simple-crud.cjs.entry.js +20 -42
  29. package/dist/cjs/snk-taskbar.cjs.entry.js +2 -2
  30. package/dist/cjs/{taskbar-elements-39949c7a.js → taskbar-elements-01b85b99.js} +4 -4
  31. package/dist/collection/collection-manifest.json +2 -1
  32. package/dist/collection/components/snk-application/snk-application.js +65 -5
  33. package/dist/collection/components/snk-attach/snk-attach.js +188 -39
  34. package/dist/collection/components/snk-attach/structure/{crud-config-builder.js → builder/anexo-sistema-crud-config.builder.js} +1 -1
  35. package/dist/collection/components/snk-attach/structure/builder/attach-crud-config.builder.js +62 -0
  36. package/dist/collection/components/snk-attach/structure/{taskbar-builder.js → builder/taskbar-builder.js} +1 -1
  37. package/dist/collection/components/snk-attach/structure/fetcher/facade/fetcher.facade.js +1 -0
  38. package/dist/collection/components/snk-attach/structure/{data-unit-builder.js → fetcher/factory/anexo-sistema-data-unit.factory.js} +14 -11
  39. package/dist/collection/components/snk-attach/structure/fetcher/factory/attach-fetcher-data-unit.factory.js +111 -0
  40. package/dist/collection/components/snk-attach/structure/index.js +6 -3
  41. package/dist/collection/components/snk-crud/snk-crud.js +5 -5
  42. package/dist/collection/components/snk-crud/subcomponents/snk-guides-viewer.js +6 -19
  43. package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-item.js +47 -1
  44. package/dist/collection/components/snk-filter-bar/snk-filter-bar.js +5 -2
  45. package/dist/collection/components/snk-grid/snk-grid.js +59 -53
  46. package/dist/collection/components/snk-simple-crud/snk-simple-crud.js +15 -36
  47. package/dist/collection/components/snk-taskbar/elements/taskbar-actions-button/taskbar-actions-button.css +6 -0
  48. package/dist/collection/components/snk-taskbar/elements/taskbar-actions-button/taskbar-actions-button.js +324 -0
  49. package/dist/collection/components/snk-taskbar/elements/taskbar-elements.js +3 -3
  50. package/dist/collection/components/snk-taskbar/snk-taskbar.js +1 -2
  51. package/dist/collection/components/snk-taskbar/subcomponents/field-search.js +28 -1
  52. package/dist/collection/lib/@types/index.js +1 -0
  53. package/dist/collection/lib/configs/ConfigStorage.js +24 -14
  54. package/dist/collection/lib/http/data-fetcher/fetchers/{attach-fetcher.js → AttachFetcher/anexo-sistema-fetcher.js} +16 -15
  55. package/dist/collection/lib/http/data-fetcher/fetchers/AttachFetcher/attach-fetcher.js +90 -0
  56. package/dist/collection/lib/http/data-fetcher/fetchers/AttachFetcher/facade/attach-fetcher.facade.js +1 -0
  57. package/dist/collection/lib/http/data-fetcher/fetchers/AttachFetcher/index.js +2 -0
  58. package/dist/collection/lib/http/data-fetcher/fetchers/AttachFetcher/interfaces/IDelete.js +1 -0
  59. package/dist/collection/lib/http/data-fetcher/fetchers/AttachFetcher/interfaces/IDownloadKey.js +1 -0
  60. package/dist/collection/lib/http/data-fetcher/fetchers/{fecthAttach → AttachFetcher}/interfaces/ISave.js +1 -0
  61. package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/loadstrategy/DatasetStrategy.js +11 -6
  62. package/dist/collection/lib/index.js +1 -1
  63. package/dist/collection/lib/message/resources/snk-attach.msg.js +13 -0
  64. package/dist/components/ConfigStorage.js +24 -14
  65. package/dist/components/SnkMessageBuilder.js +13 -0
  66. package/dist/components/dataunit-fetcher.js +11 -6
  67. package/dist/components/field-search.js +29 -2
  68. package/dist/components/index.d.ts +1 -0
  69. package/dist/components/index.js +1 -0
  70. package/dist/components/index2.js +1 -0
  71. package/dist/components/snk-actions-button2.js +1 -0
  72. package/dist/components/snk-application2.js +62 -2
  73. package/dist/components/snk-attach2.js +414 -71
  74. package/dist/components/snk-crud.js +69 -63
  75. package/dist/components/snk-detail-view2.js +95 -94
  76. package/dist/components/snk-filter-bar2.js +5 -2
  77. package/dist/components/snk-filter-item2.js +47 -1
  78. package/dist/components/snk-grid2.js +91 -76
  79. package/dist/components/snk-simple-crud2.js +31 -46
  80. package/dist/components/snk-taskbar2.js +15 -9
  81. package/dist/components/taskbar-actions-button.d.ts +11 -0
  82. package/dist/components/taskbar-actions-button.js +6 -0
  83. package/dist/components/taskbar-actions-button2.js +154 -0
  84. package/dist/esm/{ConfigStorage-1244b8b0.js → ConfigStorage-4151acc8.js} +24 -14
  85. package/dist/esm/{ISave-4412b20c.js → ISave-d8c8bc59.js} +1 -0
  86. package/dist/esm/{SnkFormConfigManager-9be0e7d4.js → SnkFormConfigManager-5c7d3771.js} +1 -1
  87. package/dist/esm/{SnkMessageBuilder-ca843d1b.js → SnkMessageBuilder-0fb796b9.js} +13 -0
  88. package/dist/esm/{field-search-c6938ee4.js → field-search-efbe307f.js} +29 -2
  89. package/dist/esm/{index-1564817d.js → index-0ece87a6.js} +1 -0
  90. package/dist/esm/index-a7d3d3f1.js +2 -2
  91. package/dist/esm/loader.js +1 -1
  92. package/dist/esm/{dataunit-fetcher-cf01a8f4.js → pesquisa-fetcher-d6ff9386.js} +173 -7
  93. package/dist/esm/sankhyablocks.js +1 -1
  94. package/dist/esm/{snk-actions-button.entry.js → snk-actions-button_2.entry.js} +134 -6
  95. package/dist/esm/snk-application.entry.js +65 -6
  96. package/dist/esm/snk-attach.entry.js +390 -59
  97. package/dist/esm/snk-crud.entry.js +8 -9
  98. package/dist/esm/snk-data-exporter.entry.js +3 -3
  99. package/dist/esm/{snk-data-unit-6208ebf0.js → snk-data-unit-5d201fb3.js} +1 -1
  100. package/dist/esm/snk-data-unit.entry.js +2 -2
  101. package/dist/esm/snk-detail-view.entry.js +9 -10
  102. package/dist/esm/snk-filter-bar.entry.js +6 -3
  103. package/dist/esm/snk-filter-item.entry.js +47 -1
  104. package/dist/esm/snk-filter-modal-item.entry.js +1 -1
  105. package/dist/esm/snk-form.entry.js +2 -2
  106. package/dist/esm/snk-grid-config.entry.js +1 -1
  107. package/dist/esm/snk-grid.entry.js +52 -43
  108. package/dist/esm/{snk-guides-viewer-fde509bf.js → snk-guides-viewer-4e56a2e0.js} +10 -21
  109. package/dist/esm/snk-guides-viewer.entry.js +8 -9
  110. package/dist/esm/snk-personalized-filter.entry.js +1 -1
  111. package/dist/esm/snk-simple-crud.entry.js +19 -41
  112. package/dist/esm/snk-taskbar.entry.js +2 -2
  113. package/dist/esm/{taskbar-elements-0a6b8b95.js → taskbar-elements-d4d0b424.js} +4 -4
  114. package/dist/sankhyablocks/{p-ff6064e7.js → p-05243555.js} +1 -1
  115. package/dist/sankhyablocks/{p-fd8814b9.entry.js → p-1d75d9f9.entry.js} +1 -1
  116. package/dist/sankhyablocks/{p-9e7d65a4.js → p-21749402.js} +1 -1
  117. package/dist/sankhyablocks/p-32460e98.entry.js +11 -0
  118. package/dist/sankhyablocks/p-374d03f6.js +1 -0
  119. package/dist/sankhyablocks/p-38289a55.js +1 -0
  120. package/dist/sankhyablocks/{p-35fe6e61.entry.js → p-3963b9c1.entry.js} +1 -1
  121. package/dist/sankhyablocks/p-42af1bbf.js +65 -0
  122. package/dist/sankhyablocks/{p-776ee8e3.js → p-573a07c5.js} +1 -1
  123. package/dist/sankhyablocks/{p-d4fb9642.entry.js → p-69efa80d.entry.js} +1 -1
  124. package/dist/sankhyablocks/{p-6977a26c.entry.js → p-71439fd9.entry.js} +1 -1
  125. package/dist/sankhyablocks/{p-11081798.entry.js → p-761ed32f.entry.js} +1 -1
  126. package/dist/sankhyablocks/p-7d8d7fe9.entry.js +1 -0
  127. package/dist/sankhyablocks/{p-f514913b.entry.js → p-7f3c7b09.entry.js} +1 -1
  128. package/dist/sankhyablocks/p-8c74258e.entry.js +1 -0
  129. package/dist/sankhyablocks/p-8f0488b8.entry.js +1 -0
  130. package/dist/sankhyablocks/p-9ebcfeb6.entry.js +1 -0
  131. package/dist/sankhyablocks/p-aa95fb2c.js +56 -0
  132. package/dist/sankhyablocks/p-b05ab13d.entry.js +1 -0
  133. package/dist/sankhyablocks/p-c2137023.entry.js +1 -0
  134. package/dist/sankhyablocks/p-c2495304.js +1 -0
  135. package/dist/sankhyablocks/p-c4874327.entry.js +1 -0
  136. package/dist/sankhyablocks/p-d82f6eda.entry.js +1 -0
  137. package/dist/sankhyablocks/p-dcb6aad1.entry.js +1 -0
  138. package/dist/sankhyablocks/{p-3520c088.entry.js → p-e0fd9555.entry.js} +1 -1
  139. package/dist/sankhyablocks/p-e8812d8a.js +1 -0
  140. package/dist/sankhyablocks/{p-32f0935f.js → p-f3d1c48e.js} +1 -1
  141. package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
  142. package/dist/types/components/snk-actions-button/subcomponents/snk-actions-form.d.ts +1 -1
  143. package/dist/types/components/snk-application/snk-application.d.ts +4 -1
  144. package/dist/types/components/snk-attach/{structure/crud-config-builder.d.ts → interfaces/ICrudConfig.d.ts} +1 -2
  145. package/dist/types/components/snk-attach/interfaces/TFetcherType.d.ts +1 -0
  146. package/dist/types/components/snk-attach/snk-attach.d.ts +27 -6
  147. package/dist/types/components/snk-attach/structure/builder/anexo-sistema-crud-config.builder.d.ts +2 -0
  148. package/dist/types/components/snk-attach/structure/builder/attach-crud-config.builder.d.ts +31 -0
  149. package/dist/types/components/snk-attach/structure/{taskbar-builder.d.ts → builder/taskbar-builder.d.ts} +1 -1
  150. package/dist/types/components/snk-attach/structure/fetcher/facade/fetcher.facade.d.ts +11 -0
  151. package/dist/types/components/snk-attach/structure/fetcher/factory/anexo-sistema-data-unit.factory.d.ts +17 -0
  152. package/dist/types/components/snk-attach/structure/fetcher/factory/attach-fetcher-data-unit.factory.d.ts +15 -0
  153. package/dist/types/components/snk-attach/structure/index.d.ts +6 -3
  154. package/dist/types/components/snk-crud/snk-crud.d.ts +1 -1
  155. package/dist/types/components/snk-filter-bar/filter-item/snk-filter-item.d.ts +1 -0
  156. package/dist/types/components/snk-grid/snk-grid.d.ts +5 -4
  157. package/dist/types/components/snk-simple-crud/snk-simple-crud.d.ts +6 -5
  158. package/dist/types/components/snk-taskbar/elements/taskbar-actions-button/taskbar-actions-button.d.ts +60 -0
  159. package/dist/types/components/snk-taskbar/snk-taskbar.d.ts +16 -0
  160. package/dist/types/components/snk-taskbar/subcomponents/field-search.d.ts +2 -0
  161. package/dist/types/components.d.ts +111 -11
  162. package/dist/types/lib/@types/index.d.ts +2 -1
  163. package/dist/types/lib/configs/ConfigStorage.d.ts +4 -0
  164. package/dist/types/lib/http/data-fetcher/DataFetcher.d.ts +1 -1
  165. package/dist/types/lib/http/data-fetcher/fetchers/{attach-fetcher.d.ts → AttachFetcher/anexo-sistema-fetcher.d.ts} +3 -2
  166. package/dist/types/lib/http/data-fetcher/fetchers/AttachFetcher/attach-fetcher.d.ts +11 -0
  167. package/dist/types/lib/http/data-fetcher/fetchers/AttachFetcher/facade/attach-fetcher.facade.d.ts +8 -0
  168. package/dist/types/lib/http/data-fetcher/fetchers/AttachFetcher/index.d.ts +3 -0
  169. package/dist/types/lib/http/data-fetcher/fetchers/{fecthAttach → AttachFetcher}/interfaces/ISave.d.ts +2 -1
  170. package/dist/types/lib/http/data-fetcher/fetchers/data-unit/loadstrategy/DatasetStrategy.d.ts +1 -0
  171. package/dist/types/lib/index.d.ts +1 -1
  172. package/package.json +8 -6
  173. package/react/components.d.ts +1 -0
  174. package/react/components.js +1 -0
  175. package/react/components.js.map +1 -1
  176. package/dist/cjs/pesquisa-fetcher-ef050a47.js +0 -167
  177. package/dist/esm/pesquisa-fetcher-dd3ca0a5.js +0 -165
  178. package/dist/sankhyablocks/p-08ced1fd.entry.js +0 -1
  179. package/dist/sankhyablocks/p-3160fa64.js +0 -60
  180. package/dist/sankhyablocks/p-34774923.entry.js +0 -1
  181. package/dist/sankhyablocks/p-38ab8a3b.entry.js +0 -1
  182. package/dist/sankhyablocks/p-3ab540cc.entry.js +0 -11
  183. package/dist/sankhyablocks/p-3ecd72a4.js +0 -1
  184. package/dist/sankhyablocks/p-4775a293.entry.js +0 -1
  185. package/dist/sankhyablocks/p-5534e08c.js +0 -1
  186. package/dist/sankhyablocks/p-585294ee.js +0 -56
  187. package/dist/sankhyablocks/p-6ea96bb1.entry.js +0 -1
  188. package/dist/sankhyablocks/p-936addf1.js +0 -1
  189. package/dist/sankhyablocks/p-c53926eb.entry.js +0 -1
  190. package/dist/sankhyablocks/p-c9841939.js +0 -1
  191. package/dist/sankhyablocks/p-cfbebb49.entry.js +0 -1
  192. package/dist/sankhyablocks/p-d2923a2a.entry.js +0 -1
  193. package/dist/sankhyablocks/p-d9bb09b3.js +0 -6
  194. package/dist/sankhyablocks/p-f2056f66.entry.js +0 -1
  195. package/dist/types/components/snk-attach/structure/data-unit-builder.d.ts +0 -15
  196. /package/dist/collection/{lib/http/data-fetcher/fetchers/fecthAttach/interfaces/IDelete.js → components/snk-attach/interfaces/ICrudConfig.js} +0 -0
  197. /package/dist/collection/{lib/http/data-fetcher/fetchers/fecthAttach/interfaces/IDownloadKey.js → components/snk-attach/interfaces/TFetcherType.js} +0 -0
  198. /package/dist/collection/lib/http/data-fetcher/fetchers/{fecthAttach → AttachFetcher}/interfaces/index.js +0 -0
  199. /package/dist/types/lib/http/data-fetcher/fetchers/{fecthAttach → AttachFetcher}/interfaces/IDelete.d.ts +0 -0
  200. /package/dist/types/lib/http/data-fetcher/fetchers/{fecthAttach → AttachFetcher}/interfaces/IDownloadKey.d.ts +0 -0
  201. /package/dist/types/lib/http/data-fetcher/fetchers/{fecthAttach → AttachFetcher}/interfaces/index.d.ts +0 -0
@@ -1,28 +1,29 @@
1
1
  import { proxyCustomElement, HTMLElement, createEvent, h, Fragment } from '@stencil/core/internal/client';
2
- import { ElementIDUtils, ApplicationContext, DataType } from '@sankhyalabs/core';
2
+ import { ElementIDUtils, ApplicationContext, StringUtils, DataType } from '@sankhyalabs/core';
3
3
  import { SortMode, UserInterface } from '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
4
- import { d as defineCustomElement$1, T as TaskbarElement } from './snk-taskbar2.js';
4
+ import { d as defineCustomElement$2, T as TaskbarElement } from './snk-taskbar2.js';
5
5
  import { C as ConfigStorage } from './ConfigStorage.js';
6
6
  import { P as PresentationMode } from './index2.js';
7
- import { T as TaskbarProcessor, S as SnkMultiSelectionListDataSource, b as buildFieldSearch } from './field-search.js';
7
+ import { T as TaskbarProcessor, S as SnkMultiSelectionListDataSource, o as openFieldSearch, b as buildFieldSearch } from './field-search.js';
8
8
  import { s as store } from './index3.js';
9
9
  import { SelectionMode } from '@sankhyalabs/core/dist/dataunit/DataUnit';
10
- import { d as defineCustomElement$h } from './snk-actions-button2.js';
11
- import { d as defineCustomElement$g } from './snk-data-exporter2.js';
12
- import { d as defineCustomElement$f } from './snk-exporter-email-sender2.js';
13
- import { d as defineCustomElement$e } from './snk-expression-group2.js';
14
- import { d as defineCustomElement$d } from './snk-expression-item2.js';
15
- import { d as defineCustomElement$c } from './snk-filter-advanced-mode2.js';
16
- import { d as defineCustomElement$b } from './snk-filter-assistent-mode2.js';
17
- import { d as defineCustomElement$a } from './snk-filter-bar2.js';
18
- import { d as defineCustomElement$9 } from './snk-filter-detail2.js';
19
- import { d as defineCustomElement$8 } from './snk-filter-field-search2.js';
20
- import { d as defineCustomElement$7 } from './snk-filter-item2.js';
21
- import { d as defineCustomElement$6 } from './snk-filter-param-config2.js';
22
- import { d as defineCustomElement$5 } from './snk-grid-config2.js';
23
- import { d as defineCustomElement$4 } from './snk-personalized-filter2.js';
24
- import { d as defineCustomElement$3 } from './snk-select-box2.js';
25
- import { d as defineCustomElement$2 } from './snk-simple-bar2.js';
10
+ import { d as defineCustomElement$i } from './snk-actions-button2.js';
11
+ import { d as defineCustomElement$h } from './snk-data-exporter2.js';
12
+ import { d as defineCustomElement$g } from './snk-exporter-email-sender2.js';
13
+ import { d as defineCustomElement$f } from './snk-expression-group2.js';
14
+ import { d as defineCustomElement$e } from './snk-expression-item2.js';
15
+ import { d as defineCustomElement$d } from './snk-filter-advanced-mode2.js';
16
+ import { d as defineCustomElement$c } from './snk-filter-assistent-mode2.js';
17
+ import { d as defineCustomElement$b } from './snk-filter-bar2.js';
18
+ import { d as defineCustomElement$a } from './snk-filter-detail2.js';
19
+ import { d as defineCustomElement$9 } from './snk-filter-field-search2.js';
20
+ import { d as defineCustomElement$8 } from './snk-filter-item2.js';
21
+ import { d as defineCustomElement$7 } from './snk-filter-param-config2.js';
22
+ import { d as defineCustomElement$6 } from './snk-grid-config2.js';
23
+ import { d as defineCustomElement$5 } from './snk-personalized-filter2.js';
24
+ import { d as defineCustomElement$4 } from './snk-select-box2.js';
25
+ import { d as defineCustomElement$3 } from './snk-simple-bar2.js';
26
+ import { d as defineCustomElement$1 } from './taskbar-actions-button2.js';
26
27
 
27
28
  const snkGridCss = ".sc-snk-grid-h{--snk-grid-min-height:300px}.snk-grid__container.sc-snk-grid{display:flex;height:100%;width:100%}.snk-grid__header.sc-snk-grid{width:100%;display:flex;flex-wrap:nowrap;justify-content:flex-end}.snk-grid__filter-bar.sc-snk-grid{width:100%}.snk-grid__header-divider.sc-snk-grid{margin-bottom:var(--space--medium)}.snk-grid__table.sc-snk-grid{min-height:var(--snk-grid-min-height)}.snk-grid-container__without-shadow.sc-snk-grid{--ezgrid__container--shadow:unset}";
28
29
 
@@ -35,14 +36,21 @@ const SnkGrid = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
35
36
  this._topTaskbarProcessor = new TaskbarProcessor({
36
37
  "snkGridTopTaskbar.regular": ["FORM_MODE", "CONFIGURATOR", "INSERT"],
37
38
  "snkGridTopTaskbar.regular.secondary": ["FORM_MODE", "CONFIGURATOR", "INSERT"],
39
+ "snkGridTopTaskbar.regular.singleTaskbar": [],
38
40
  "snkGridTopTaskbar.finish_edition": ["CANCEL", "SAVE"],
39
- "snkGridTopTaskbar.finish_edition.secondary": []
41
+ "snkGridTopTaskbar.finish_edition.secondary": [],
42
+ "snkGridTopTaskbar.finish_edition.singleTaskbar": [],
40
43
  });
41
44
  this._headerTaskbarProcessor = new TaskbarProcessor({
42
45
  "snkGridHeaderTaskbar.unselected": ["REFRESH", "DATA_EXPORTER", "ACTIONS_BUTTON", "MORE_OPTIONS"],
43
46
  "snkGridHeaderTaskbar.selected": ["UPDATE", "CLONE", "REMOVE", "MORE_OPTIONS", "DIVIDER", "ATTACH", "REFRESH", "DATA_EXPORTER", "ACTIONS_BUTTON"],
44
47
  "snkGridHeaderTaskbar.detail.unselected": ["REFRESH", "MORE_OPTIONS"],
45
- "snkGridHeaderTaskbar.detail.selected": ["UPDATE", "ATTACH", "CLONE", "REMOVE", "MORE_OPTIONS", "DIVIDER", "REFRESH"]
48
+ "snkGridHeaderTaskbar.detail.selected": ["UPDATE", "ATTACH", "CLONE", "REMOVE", "MORE_OPTIONS", "DIVIDER", "REFRESH"],
49
+ "snkGridHeaderTaskbar.singleTaskbar.unselected": ["INSERT", "FORM_MODE", "CONFIGURATOR", "REFRESH", "DATA_EXPORTER", "ACTIONS_BUTTON", "MORE_OPTIONS"],
50
+ "snkGridHeaderTaskbar.singleTaskbar.selected": ["UPDATE", "CLONE", "REMOVE", "MORE_OPTIONS", "DIVIDER", "ATTACH", "FORM_MODE", "CONFIGURATOR", "REFRESH", "DATA_EXPORTER", "ACTIONS_BUTTON"],
51
+ "snkGridHeaderTaskbar.singleTaskbar.detail.unselected": ["INSERT", "FORM_MODE", "CONFIGURATOR", "REFRESH", "MORE_OPTIONS"],
52
+ "snkGridHeaderTaskbar.singleTaskbar.detail.selected": ["UPDATE", "ATTACH", "CLONE", "REMOVE", "MORE_OPTIONS", "DIVIDER", "FORM_MODE", "CONFIGURATOR", "REFRESH"],
53
+ "snkGridHeaderTaskbar.singleTaskbar.finish_edition": ["CANCEL", "SAVE"]
46
54
  });
47
55
  this._dataUnit = undefined;
48
56
  this._dataState = undefined;
@@ -98,28 +106,18 @@ const SnkGrid = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
98
106
  var _a;
99
107
  (_a = this._snkFilterBar) === null || _a === void 0 ? void 0 : _a.reload();
100
108
  }
101
- /**
102
- * Abre o localizador de colunas
103
- */
104
- async findColumn() {
105
- if (!this._moreOptions) {
106
- return;
107
- }
108
- if (!(await this._moreOptions.isOpened())) {
109
- this._moreOptions.showActions();
110
- }
111
- if (this._columnSearch) {
112
- const realElement = this._columnSearch["$elm$"];
113
- realElement.value = null;
114
- requestAnimationFrame(() => realElement.setFocus());
115
- }
116
- }
117
109
  /**
118
110
  * Retorna o elemento da filter-bar da grade.
119
111
  */
120
112
  async getFilterBar() {
121
113
  return this._snkFilterBar;
122
114
  }
115
+ /**
116
+ * Abre o localizador de colunas
117
+ */
118
+ async findColumn() {
119
+ await openFieldSearch(this._moreOptions, this._columnSearch);
120
+ }
123
121
  openGridConfig() {
124
122
  this._grid.getColumnsState()
125
123
  .then((gridColumns) => {
@@ -333,41 +331,51 @@ const SnkGrid = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
333
331
  return invisibleButtons;
334
332
  }
335
333
  componentWillRender() {
336
- var _a;
337
334
  const invisibleButtons = this.getInvisibleButtons();
338
- const hasSelectedRecord = this._dataState && !!((_a = this._dataState.selectionInfo) === null || _a === void 0 ? void 0 : _a.length);
339
- let headerTaskbarId;
340
- if (hasSelectedRecord) {
341
- headerTaskbarId = this.isDetail ? "snkGridHeaderTaskbar.detail.selected" : "snkGridHeaderTaskbar.selected";
342
- }
343
- else {
344
- headerTaskbarId = this.isDetail ? "snkGridHeaderTaskbar.detail.unselected" : "snkGridHeaderTaskbar.unselected";
345
- }
346
- this._headerTaskbarProcessor.process(headerTaskbarId, this.taskbarManager, this._dataState, this.getHeaderDisabledButtons(), invisibleButtons);
335
+ this._headerTaskbarProcessor.process(this.getHeaderTaskbarId(), this.taskbarManager, this._dataState, this.getHeaderDisabledButtons(), invisibleButtons);
347
336
  this._topTaskbarProcessor.process(this.getTopTaskBarId(), this.taskbarManager, this._dataState, undefined, invisibleButtons);
348
337
  this.dataExporterProviderStore();
349
338
  }
339
+ getHeaderTaskbarId() {
340
+ var _a, _b;
341
+ const hasSelectedRecord = this._dataState && !!((_a = this._dataState.selectionInfo) === null || _a === void 0 ? void 0 : _a.length);
342
+ const taskbarIdPrefixLookup = {
343
+ primary: this.isDetail ? "snkGridHeaderTaskbar.detail" : "snkGridHeaderTaskbar",
344
+ secondary: this.isDetail ? "snkGridHeaderTaskbar.detail" : "snkGridHeaderTaskbar",
345
+ singleTaskbar: this.isDetail ? "snkGridHeaderTaskbar.singleTaskbar.detail" : "snkGridHeaderTaskbar.singleTaskbar"
346
+ };
347
+ const taskbarIdPrefix = taskbarIdPrefixLookup[this.presentationMode];
348
+ let headerTaskbarId = hasSelectedRecord ? `${taskbarIdPrefix}.selected` : `${taskbarIdPrefix}.unselected`;
349
+ if (((_b = this._dataState) === null || _b === void 0 ? void 0 : _b.isDirty) && this.presentationMode === PresentationMode.SINGLE_TASKBAR) {
350
+ headerTaskbarId = "snkGridHeaderTaskbar.singleTaskbar.finish_edition";
351
+ }
352
+ return headerTaskbarId;
353
+ }
350
354
  getTopTaskBarId() {
351
355
  var _a;
352
- const sufix = this.presentationMode === PresentationMode.SECONDARY ? ".secondary" : "";
356
+ const suffixLookup = {
357
+ primary: "",
358
+ secondary: ".secondary",
359
+ singleTaskbar: ".singleTaskbar"
360
+ };
361
+ const sufix = suffixLookup[this.presentationMode];
353
362
  if ((_a = this._dataState) === null || _a === void 0 ? void 0 : _a.isDirty) {
354
363
  return `snkGridTopTaskbar.finish_edition${sufix}`;
355
364
  }
356
365
  return `snkGridTopTaskbar.regular${sufix}`;
357
366
  }
358
367
  getPrimaryButton() {
359
- return this.presentationMode === PresentationMode.PRIMARY ? "INSERT" : "";
368
+ const primaryButtonLookup = {
369
+ primary: "INSERT",
370
+ secondary: "",
371
+ singleTaskbar: "INSERT"
372
+ };
373
+ return primaryButtonLookup[this.presentationMode];
360
374
  }
361
375
  getColumnSearch(actionButton, item) {
362
376
  if (this._columnSearch != undefined) {
363
377
  return this._columnSearch;
364
378
  }
365
- actionButton.addEventListener("ezPopoverOpen", () => {
366
- if (this._columnSearch) {
367
- const realElement = this._columnSearch["$elm$"];
368
- realElement.value = null;
369
- }
370
- });
371
379
  this._moreOptions = actionButton;
372
380
  this._columnSearch = buildFieldSearch(item, ({ argument }) => new Promise(accept => {
373
381
  this._grid.filterColumns(argument).then((columns) => {
@@ -385,8 +393,10 @@ const SnkGrid = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
385
393
  }
386
394
  getActionsList() {
387
395
  const hardList = [{
388
- value: "",
396
+ value: StringUtils.generateUUID(),
389
397
  label: this.messagesBuilder.getMessage("snkGrid.findColumn", {}),
398
+ disableCloseOnSelect: true,
399
+ eagerInitialize: true,
390
400
  itemBuilder: (actionButton, item) => this.getColumnSearch(actionButton, item)
391
401
  }];
392
402
  if (this.taskbarManager != undefined && this.taskbarManager.getMoreOptions != undefined) {
@@ -411,7 +421,7 @@ const SnkGrid = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
411
421
  return undefined;
412
422
  }
413
423
  return (h("div", { class: "snk-grid__container ez-flex ez-flex--column ez-flex-item--auto ez-padding--large" }, h("div", { class: "snk-grid__header ez-margin-bottom--medium" }, this._showSnkFilterBar &&
414
- h(Fragment, null, h("snk-filter-bar", { ref: (ref) => this._snkFilterBar = ref, dataUnit: this._dataUnit, "data-element-id": "gridFilter", class: "snk-grid__filter-bar ez-align--top", configName: this.configName, messagesBuilder: this.messagesBuilder, resourceID: this.resourceID, onConfigUpdated: evt => this.handleFilterConfigUpdated(evt.detail) }), h("hr", { class: "ez-divider-vertical ez-divider--dark ez-margin-left--medium snk-grid__header-divider" })), h("snk-taskbar", { class: "ez-padding-left--medium", "data-element-id": "grid_top", key: "topTaskbar", configName: this.configName, dataUnit: this._dataUnit, messagesBuilder: this.messagesBuilder, buttons: this._topTaskbarProcessor.buttons, disabledButtons: this._topTaskbarProcessor.disabledButtons, customButtons: this._topTaskbarProcessor.customButtons, primaryButton: this.getPrimaryButton(), resourceID: this.resourceID, customContainerId: this.taskbarCustomContainerId, customSlotId: this.topTaskbarCustomSlotId }, h("slot", { name: this.topTaskbarCustomSlotId }))), h("ez-grid", { ref: ref => this._grid = ref, class: (this.presentationMode === PresentationMode.SECONDARY ? "snk-grid-container__without-shadow " : "") + "snk-grid__table", "data-element-id": "embedded", dataUnit: this._dataUnit, key: "grid-" + this._snkDataUnit.entityName, config: this._gridConfig, onConfigChange: (evt) => { this.gridConfigChangeHandler(evt); }, onEzDoubleClick: (evt) => this.gridDoubleClick.emit(evt.detail), statusResolver: this.statusResolver, multipleSelection: this.multipleSelection, columnfilterDataSource: this.columnFilterDataSource, selectionToastConfig: this.selectionToastConfig, useEnterLikeTab: this.useEnterLikeTab, recordsValidator: this.recordsValidator, canEdit: this.canEdit }, h("snk-taskbar", { dataUnit: this._dataUnit, configName: this.configName, messagesBuilder: this.messagesBuilder, "data-element-id": "grid_left", buttons: this._headerTaskbarProcessor.buttons, disabledButtons: this._headerTaskbarProcessor.disabledButtons, customButtons: this._headerTaskbarProcessor.customButtons, slot: "leftButtons", actionsList: this.getActionsList(), resourceID: this.resourceID, customContainerId: this.taskbarCustomContainerId, customSlotId: this.gridHeaderCustomSlotId }, h("slot", { name: this.gridHeaderCustomSlotId }))), h("div", { class: "ez-col ez-col--sd-12" }, h("slot", { name: "SnkGridFooter" })), h("ez-modal", { modalSize: "small", closeEsc: false, closeOutsideClick: false, opened: this._popUpGridConfig, onEzCloseModal: () => this.closeGridConfig() }, h("snk-grid-config", { ref: ref => this._snkGridConfig = ref, config: this._gridConfig, "data-element-id": this._element.getAttribute(ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME), application: this._application, selectedIndex: 0, configName: this.configName, onConfigChange: (evt) => this.modalConfigChangeHandler(evt), onConfigCancel: () => this.closeGridConfig(), resourceID: this.resourceID }))));
424
+ h(Fragment, null, h("snk-filter-bar", { ref: (ref) => this._snkFilterBar = ref, dataUnit: this._dataUnit, "data-element-id": "gridFilter", class: "snk-grid__filter-bar ez-align--top", configName: this.configName, messagesBuilder: this.messagesBuilder, resourceID: this.resourceID, onConfigUpdated: evt => this.handleFilterConfigUpdated(evt.detail) }), h("hr", { class: "ez-divider-vertical ez-divider--dark ez-margin-left--medium snk-grid__header-divider" })), h("snk-taskbar", { class: "ez-padding-left--medium", "data-element-id": "grid_top", key: "topTaskbar", configName: this.configName, dataUnit: this._dataUnit, messagesBuilder: this.messagesBuilder, buttons: this._topTaskbarProcessor.buttons, disabledButtons: this._topTaskbarProcessor.disabledButtons, customButtons: this._topTaskbarProcessor.customButtons, primaryButton: this.getPrimaryButton(), resourceID: this.resourceID, customContainerId: this.taskbarCustomContainerId, customSlotId: this.topTaskbarCustomSlotId }, h("slot", { name: this.topTaskbarCustomSlotId }))), h("ez-grid", { ref: ref => this._grid = ref, class: (this.presentationMode === PresentationMode.SECONDARY ? "snk-grid-container__without-shadow " : "") + "snk-grid__table", "data-element-id": "embedded", dataUnit: this._dataUnit, key: "grid-" + this._snkDataUnit.entityName, config: this._gridConfig, onConfigChange: (evt) => { this.gridConfigChangeHandler(evt); }, onEzDoubleClick: (evt) => this.gridDoubleClick.emit(evt.detail), statusResolver: this.statusResolver, multipleSelection: this.multipleSelection, columnfilterDataSource: this.columnFilterDataSource, selectionToastConfig: this.selectionToastConfig, useEnterLikeTab: this.useEnterLikeTab, recordsValidator: this.recordsValidator, canEdit: this.canEdit }, h("snk-taskbar", { dataUnit: this._dataUnit, configName: this.configName, messagesBuilder: this.messagesBuilder, "data-element-id": "grid_left", buttons: this._headerTaskbarProcessor.buttons, presentationMode: this.presentationMode, disabledButtons: this._headerTaskbarProcessor.disabledButtons, customButtons: this._headerTaskbarProcessor.customButtons, slot: "leftButtons", actionsList: this.getActionsList(), primaryButton: this.getPrimaryButton(), resourceID: this.resourceID, customContainerId: this.taskbarCustomContainerId, customSlotId: this.gridHeaderCustomSlotId }, h("slot", { name: this.gridHeaderCustomSlotId }))), h("div", { class: "ez-col ez-col--sd-12" }, h("slot", { name: "SnkGridFooter" })), h("ez-modal", { modalSize: "small", closeEsc: false, closeOutsideClick: false, opened: this._popUpGridConfig, onEzCloseModal: () => this.closeGridConfig() }, h("snk-grid-config", { ref: ref => this._snkGridConfig = ref, config: this._gridConfig, "data-element-id": this._element.getAttribute(ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME), application: this._application, selectedIndex: 0, configName: this.configName, onConfigChange: (evt) => this.modalConfigChangeHandler(evt), onConfigCancel: () => this.closeGridConfig(), resourceID: this.resourceID }))));
415
425
  }
416
426
  get _element() { return this; }
417
427
  static get style() { return snkGridCss; }
@@ -442,14 +452,14 @@ const SnkGrid = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
442
452
  "hideConfig": [64],
443
453
  "setConfig": [64],
444
454
  "reloadFilterBar": [64],
445
- "findColumn": [64],
446
- "getFilterBar": [64]
455
+ "getFilterBar": [64],
456
+ "findColumn": [64]
447
457
  }]);
448
458
  function defineCustomElement() {
449
459
  if (typeof customElements === "undefined") {
450
460
  return;
451
461
  }
452
- const components = ["snk-grid", "snk-actions-button", "snk-data-exporter", "snk-exporter-email-sender", "snk-expression-group", "snk-expression-item", "snk-filter-advanced-mode", "snk-filter-assistent-mode", "snk-filter-bar", "snk-filter-detail", "snk-filter-field-search", "snk-filter-item", "snk-filter-param-config", "snk-grid-config", "snk-personalized-filter", "snk-select-box", "snk-simple-bar", "snk-taskbar"];
462
+ const components = ["snk-grid", "snk-actions-button", "snk-data-exporter", "snk-exporter-email-sender", "snk-expression-group", "snk-expression-item", "snk-filter-advanced-mode", "snk-filter-assistent-mode", "snk-filter-bar", "snk-filter-detail", "snk-filter-field-search", "snk-filter-item", "snk-filter-param-config", "snk-grid-config", "snk-personalized-filter", "snk-select-box", "snk-simple-bar", "snk-taskbar", "taskbar-actions-button"];
453
463
  components.forEach(tagName => { switch (tagName) {
454
464
  case "snk-grid":
455
465
  if (!customElements.get(tagName)) {
@@ -458,85 +468,90 @@ function defineCustomElement() {
458
468
  break;
459
469
  case "snk-actions-button":
460
470
  if (!customElements.get(tagName)) {
461
- defineCustomElement$h();
471
+ defineCustomElement$i();
462
472
  }
463
473
  break;
464
474
  case "snk-data-exporter":
465
475
  if (!customElements.get(tagName)) {
466
- defineCustomElement$g();
476
+ defineCustomElement$h();
467
477
  }
468
478
  break;
469
479
  case "snk-exporter-email-sender":
470
480
  if (!customElements.get(tagName)) {
471
- defineCustomElement$f();
481
+ defineCustomElement$g();
472
482
  }
473
483
  break;
474
484
  case "snk-expression-group":
475
485
  if (!customElements.get(tagName)) {
476
- defineCustomElement$e();
486
+ defineCustomElement$f();
477
487
  }
478
488
  break;
479
489
  case "snk-expression-item":
480
490
  if (!customElements.get(tagName)) {
481
- defineCustomElement$d();
491
+ defineCustomElement$e();
482
492
  }
483
493
  break;
484
494
  case "snk-filter-advanced-mode":
485
495
  if (!customElements.get(tagName)) {
486
- defineCustomElement$c();
496
+ defineCustomElement$d();
487
497
  }
488
498
  break;
489
499
  case "snk-filter-assistent-mode":
490
500
  if (!customElements.get(tagName)) {
491
- defineCustomElement$b();
501
+ defineCustomElement$c();
492
502
  }
493
503
  break;
494
504
  case "snk-filter-bar":
495
505
  if (!customElements.get(tagName)) {
496
- defineCustomElement$a();
506
+ defineCustomElement$b();
497
507
  }
498
508
  break;
499
509
  case "snk-filter-detail":
500
510
  if (!customElements.get(tagName)) {
501
- defineCustomElement$9();
511
+ defineCustomElement$a();
502
512
  }
503
513
  break;
504
514
  case "snk-filter-field-search":
505
515
  if (!customElements.get(tagName)) {
506
- defineCustomElement$8();
516
+ defineCustomElement$9();
507
517
  }
508
518
  break;
509
519
  case "snk-filter-item":
510
520
  if (!customElements.get(tagName)) {
511
- defineCustomElement$7();
521
+ defineCustomElement$8();
512
522
  }
513
523
  break;
514
524
  case "snk-filter-param-config":
515
525
  if (!customElements.get(tagName)) {
516
- defineCustomElement$6();
526
+ defineCustomElement$7();
517
527
  }
518
528
  break;
519
529
  case "snk-grid-config":
520
530
  if (!customElements.get(tagName)) {
521
- defineCustomElement$5();
531
+ defineCustomElement$6();
522
532
  }
523
533
  break;
524
534
  case "snk-personalized-filter":
525
535
  if (!customElements.get(tagName)) {
526
- defineCustomElement$4();
536
+ defineCustomElement$5();
527
537
  }
528
538
  break;
529
539
  case "snk-select-box":
530
540
  if (!customElements.get(tagName)) {
531
- defineCustomElement$3();
541
+ defineCustomElement$4();
532
542
  }
533
543
  break;
534
544
  case "snk-simple-bar":
535
545
  if (!customElements.get(tagName)) {
536
- defineCustomElement$2();
546
+ defineCustomElement$3();
537
547
  }
538
548
  break;
539
549
  case "snk-taskbar":
550
+ if (!customElements.get(tagName)) {
551
+ defineCustomElement$2();
552
+ }
553
+ break;
554
+ case "taskbar-actions-button":
540
555
  if (!customElements.get(tagName)) {
541
556
  defineCustomElement$1();
542
557
  }
@@ -1,19 +1,20 @@
1
1
  import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
2
- import { ObjectUtils, ApplicationContext, DataType, UserInterface, JSUtils, FloatingManager } from '@sankhyalabs/core';
2
+ import { ObjectUtils, ApplicationContext, DataType, UserInterface, StringUtils, JSUtils, FloatingManager } from '@sankhyalabs/core';
3
3
  import { V as VIEW_MODE, S as SIMPLE_CRUD_MODE } from './constants.js';
4
- import { T as TaskbarElement, d as defineCustomElement$1 } from './snk-taskbar2.js';
4
+ import { T as TaskbarElement, d as defineCustomElement$2 } from './snk-taskbar2.js';
5
5
  import './DataFetcher.js';
6
6
  import { I as InMemoryLoader } from './dataunit-fetcher.js';
7
7
  import { P as PresentationMode } from './index2.js';
8
- import { d as defineCustomElement$5 } from './snk-actions-button2.js';
8
+ import { d as defineCustomElement$6 } from './snk-actions-button2.js';
9
9
  import '@sankhyalabs/ezui/dist/collection/utils/constants';
10
10
  import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
11
11
  import './filter-item-type.enum.js';
12
12
  import './form-config-fetcher.js';
13
- import { S as SnkMultiSelectionListDataSource, T as TaskbarProcessor, b as buildFieldSearch } from './field-search.js';
14
- import { d as defineCustomElement$4 } from './snk-data-exporter2.js';
15
- import { d as defineCustomElement$3 } from './snk-data-unit2.js';
16
- import { d as defineCustomElement$2 } from './snk-exporter-email-sender2.js';
13
+ import { S as SnkMultiSelectionListDataSource, T as TaskbarProcessor, b as buildFieldSearch, o as openFieldSearch } from './field-search.js';
14
+ import { d as defineCustomElement$5 } from './snk-data-exporter2.js';
15
+ import { d as defineCustomElement$4 } from './snk-data-unit2.js';
16
+ import { d as defineCustomElement$3 } from './snk-exporter-email-sender2.js';
17
+ import { d as defineCustomElement$1 } from './taskbar-actions-button2.js';
17
18
 
18
19
  const snkSimpleCrudCss = ".sc-snk-simple-crud-h{display:flex;height:100%;width:100%}.simple-crud__container.sc-snk-simple-crud{display:grid;grid-template-rows:max-content;row-gap:12px;height:100%;width:100%}.simple-crud__container-section.sc-snk-simple-crud{flex-wrap:unset;flex-direction:column}ez-grid.sc-snk-simple-crud{--ez-grid__container--shadow:none;min-height:300px}ez-form.sc-snk-simple-crud{min-height:300px}";
19
20
 
@@ -196,12 +197,6 @@ const SnkSimpleCrud = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
196
197
  if (this._columnSearch != undefined) {
197
198
  return this._columnSearch;
198
199
  }
199
- actionButton.addEventListener("ezPopoverOpen", () => {
200
- if (this._columnSearch) {
201
- const realElement = this._columnSearch["$elm$"];
202
- realElement.value = null;
203
- }
204
- });
205
200
  this._moreOptions = actionButton;
206
201
  this._columnSearch = buildFieldSearch(item, ({ argument }) => new Promise(accept => {
207
202
  this._grid.filterColumns(argument).then((columns) => {
@@ -210,9 +205,10 @@ const SnkSimpleCrud = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
210
205
  .map(column => ({ label: column.label, value: column.name })));
211
206
  });
212
207
  }), (option) => {
208
+ var _a;
213
209
  if (option != undefined) {
214
210
  this._grid.locateColumn(option.value);
215
- actionButton.hideActions();
211
+ (_a = actionButton["hideActions"]) === null || _a === void 0 ? void 0 : _a.call(actionButton);
216
212
  }
217
213
  });
218
214
  return this._columnSearch;
@@ -254,14 +250,16 @@ const SnkSimpleCrud = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
254
250
  getActionsList() {
255
251
  var _a, _b;
256
252
  return [{
257
- value: "",
253
+ value: StringUtils.generateUUID(),
258
254
  label: (_b = (_a = this.messagesBuilder) === null || _a === void 0 ? void 0 : _a.getMessage("snkSimpleCrud.findColumn", undefined)) !== null && _b !== void 0 ? _b : "Buscar",
255
+ disableCloseOnSelect: true,
256
+ eagerInitialize: true,
259
257
  itemBuilder: (actionButton, item) => (this._currentViewMode === VIEW_MODE.GRID)
260
258
  ? this.getColumnSearch(actionButton, item)
261
259
  : this.getFieldSearch(actionButton, item)
262
260
  }];
263
261
  }
264
- keyDownListener(event) {
262
+ async keyDownListener(event) {
265
263
  if (!event.ctrlKey || event.key == undefined || event.key.toUpperCase() !== "F") {
266
264
  return;
267
265
  }
@@ -273,39 +271,21 @@ const SnkSimpleCrud = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
273
271
  }
274
272
  FloatingManager.closeAll();
275
273
  if (this._currentViewMode === VIEW_MODE.GRID) {
276
- this.findColumn();
274
+ await this.findColumn();
277
275
  }
278
276
  else {
279
- this.findField();
277
+ await this.findField();
280
278
  }
281
279
  event.preventDefault();
282
280
  }
283
281
  async findField() {
284
- if (!this._moreOptions) {
285
- return;
286
- }
287
- if (!(await this._moreOptions.isOpened())) {
288
- this._moreOptions.showActions();
289
- return;
290
- }
291
- if (this._fieldSearch) {
292
- const realElement = this._fieldSearch["$elm$"];
293
- realElement.value = null;
294
- requestAnimationFrame(() => realElement.setFocus());
295
- }
282
+ await this.openSeach(this._fieldSearch);
296
283
  }
297
284
  async findColumn() {
298
- if (!this._moreOptions) {
299
- return;
300
- }
301
- if (!(await this._moreOptions.isOpened())) {
302
- this._moreOptions.showActions();
303
- }
304
- if (this._columnSearch) {
305
- const realElement = this._columnSearch["$elm$"];
306
- realElement.value = null;
307
- requestAnimationFrame(() => realElement.setFocus());
308
- }
285
+ await this.openSeach(this._columnSearch);
286
+ }
287
+ async openSeach(fieldSearch) {
288
+ await openFieldSearch(this._moreOptions, fieldSearch);
309
289
  }
310
290
  clearFieldToFocusHandler() {
311
291
  this._fieldToGetFocus = undefined;
@@ -352,7 +332,7 @@ function defineCustomElement() {
352
332
  if (typeof customElements === "undefined") {
353
333
  return;
354
334
  }
355
- const components = ["snk-simple-crud", "snk-actions-button", "snk-data-exporter", "snk-data-unit", "snk-exporter-email-sender", "snk-taskbar"];
335
+ const components = ["snk-simple-crud", "snk-actions-button", "snk-data-exporter", "snk-data-unit", "snk-exporter-email-sender", "snk-taskbar", "taskbar-actions-button"];
356
336
  components.forEach(tagName => { switch (tagName) {
357
337
  case "snk-simple-crud":
358
338
  if (!customElements.get(tagName)) {
@@ -361,25 +341,30 @@ function defineCustomElement() {
361
341
  break;
362
342
  case "snk-actions-button":
363
343
  if (!customElements.get(tagName)) {
364
- defineCustomElement$5();
344
+ defineCustomElement$6();
365
345
  }
366
346
  break;
367
347
  case "snk-data-exporter":
368
348
  if (!customElements.get(tagName)) {
369
- defineCustomElement$4();
349
+ defineCustomElement$5();
370
350
  }
371
351
  break;
372
352
  case "snk-data-unit":
373
353
  if (!customElements.get(tagName)) {
374
- defineCustomElement$3();
354
+ defineCustomElement$4();
375
355
  }
376
356
  break;
377
357
  case "snk-exporter-email-sender":
378
358
  if (!customElements.get(tagName)) {
379
- defineCustomElement$2();
359
+ defineCustomElement$3();
380
360
  }
381
361
  break;
382
362
  case "snk-taskbar":
363
+ if (!customElements.get(tagName)) {
364
+ defineCustomElement$2();
365
+ }
366
+ break;
367
+ case "taskbar-actions-button":
383
368
  if (!customElements.get(tagName)) {
384
369
  defineCustomElement$1();
385
370
  }
@@ -3,9 +3,10 @@ import { StringUtils, ApplicationContext, ElementIDUtils } from '@sankhyalabs/co
3
3
  import { A as AuthorizationConfig } from './AuthorizationConfig.js';
4
4
  import { P as PresentationMode } from './index2.js';
5
5
  import { s as store } from './index3.js';
6
- import { d as defineCustomElement$3 } from './snk-actions-button2.js';
7
- import { d as defineCustomElement$2 } from './snk-data-exporter2.js';
8
- import { d as defineCustomElement$1 } from './snk-exporter-email-sender2.js';
6
+ import { d as defineCustomElement$4 } from './snk-actions-button2.js';
7
+ import { d as defineCustomElement$3 } from './snk-data-exporter2.js';
8
+ import { d as defineCustomElement$2 } from './snk-exporter-email-sender2.js';
9
+ import { d as defineCustomElement$1 } from './taskbar-actions-button2.js';
9
10
 
10
11
  var TaskbarElement;
11
12
  (function (TaskbarElement) {
@@ -92,7 +93,7 @@ const buildElem = (element, className, dataElementId, getTitle, action, isEnable
92
93
  case TaskbarElement.CONFIGURATOR:
93
94
  return iconButton("settings-inverted", element, className, dataElementId, title, action, isEnabled);
94
95
  case TaskbarElement.MORE_OPTIONS:
95
- return actionButton(element, className, dataElementId, title, action, isEnabled, actions);
96
+ return actionButton(element, dataElementId, title, isEnabled, actions, action);
96
97
  case TaskbarElement.DIVIDER:
97
98
  return h("hr", { class: "ez-divider-vertical ez-divider--dark ez-margin-horizontal--medium", "data-taskbar-divider": true });
98
99
  case TaskbarElement.DATA_EXPORTER:
@@ -114,9 +115,9 @@ function iconTextButton(iconName, name, className, dataElementId, text, title, a
114
115
  return h("ez-button", { key: dataElementId, title: title, label: text, size: "small", class: className, "data-element-id": dataElementId, enabled: isEnabled(name), onClick: () => action(name) },
115
116
  h("ez-icon", { class: "ez-padding-right--small", slot: "leftIcon", iconName: iconName }));
116
117
  }
117
- function actionButton(element, className, dataElementId, title, action, isEnabled, actions) {
118
+ function actionButton(element, dataElementId, title, isEnabled, actions, action) {
118
119
  return actions && actions.length > 0
119
- ? h("ez-actions-button", { key: dataElementId, title: title, size: "small", "data-element-id": dataElementId, arrowActive: true, class: className, enabled: isEnabled(element), onEzAction: (evt) => action(evt.detail.value), actions: actions })
120
+ ? h("taskbar-actions-button", { key: dataElementId, title: title, "data-element-id": dataElementId, enabled: isEnabled(element), actions: actions, onTaskbarActionSelected: (evt) => action(evt.detail.value) })
120
121
  : undefined;
121
122
  }
122
123
 
@@ -416,7 +417,7 @@ function defineCustomElement() {
416
417
  if (typeof customElements === "undefined") {
417
418
  return;
418
419
  }
419
- const components = ["snk-taskbar", "snk-actions-button", "snk-data-exporter", "snk-exporter-email-sender"];
420
+ const components = ["snk-taskbar", "snk-actions-button", "snk-data-exporter", "snk-exporter-email-sender", "taskbar-actions-button"];
420
421
  components.forEach(tagName => { switch (tagName) {
421
422
  case "snk-taskbar":
422
423
  if (!customElements.get(tagName)) {
@@ -425,15 +426,20 @@ function defineCustomElement() {
425
426
  break;
426
427
  case "snk-actions-button":
427
428
  if (!customElements.get(tagName)) {
428
- defineCustomElement$3();
429
+ defineCustomElement$4();
429
430
  }
430
431
  break;
431
432
  case "snk-data-exporter":
432
433
  if (!customElements.get(tagName)) {
433
- defineCustomElement$2();
434
+ defineCustomElement$3();
434
435
  }
435
436
  break;
436
437
  case "snk-exporter-email-sender":
438
+ if (!customElements.get(tagName)) {
439
+ defineCustomElement$2();
440
+ }
441
+ break;
442
+ case "taskbar-actions-button":
437
443
  if (!customElements.get(tagName)) {
438
444
  defineCustomElement$1();
439
445
  }
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface TaskbarActionsButton extends Components.TaskbarActionsButton, HTMLElement {}
4
+ export const TaskbarActionsButton: {
5
+ prototype: TaskbarActionsButton;
6
+ new (): TaskbarActionsButton;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1,6 @@
1
+ import { T as TaskbarActionsButton$1, d as defineCustomElement$1 } from './taskbar-actions-button2.js';
2
+
3
+ const TaskbarActionsButton = TaskbarActionsButton$1;
4
+ const defineCustomElement = defineCustomElement$1;
5
+
6
+ export { TaskbarActionsButton, defineCustomElement };