@sankhyalabs/sankhyablocks 8.16.0-dev.99 → 8.16.0-ms.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 (172) hide show
  1. package/dist/cjs/{ClientSideExporterProvider-cc82b68a.js → ClientSideExporterProvider-fe52f7cf.js} +11 -4
  2. package/dist/cjs/{ConfigStorage-2235f35e.js → ConfigStorage-6b633b10.js} +1 -1
  3. package/dist/cjs/ISave-e91b70a7.js +9 -0
  4. package/dist/cjs/{SnkFormConfigManager-6637cd6b.js → SnkFormConfigManager-d680be08.js} +2 -2
  5. package/dist/cjs/{auth-fetcher-abad589f.js → auth-fetcher-24ba4135.js} +1 -1
  6. package/dist/cjs/{form-config-fetcher-db332748.js → form-config-fetcher-e0a512c3.js} +0 -14
  7. package/dist/cjs/{index-102ba62d.js → index-ab1cfb44.js} +3 -4
  8. package/dist/cjs/index-f9e81701.js +2 -2
  9. package/dist/cjs/loader.cjs.js +1 -1
  10. package/dist/cjs/{ISave-62fbb1dd.js → pesquisa-fetcher-30cab386.js} +0 -8
  11. package/dist/cjs/pesquisa-grid_2.cjs.entry.js +5 -4
  12. package/dist/cjs/sankhyablocks.cjs.js +1 -1
  13. package/dist/cjs/{snk-actions-button_7.cjs.entry.js → snk-actions-button_5.cjs.entry.js} +4 -63
  14. package/dist/cjs/snk-application.cjs.entry.js +5 -48
  15. package/dist/cjs/snk-attach.cjs.entry.js +49 -19
  16. package/dist/cjs/snk-config-options_3.cjs.entry.js +3 -3
  17. package/dist/cjs/snk-configurator.cjs.entry.js +1 -8
  18. package/dist/cjs/snk-crud.cjs.entry.js +8 -7
  19. package/dist/cjs/snk-data-exporter.cjs.entry.js +3 -2
  20. package/dist/cjs/snk-detail-view.cjs.entry.js +10 -10
  21. package/dist/cjs/snk-expression-group_2.cjs.entry.js +1 -1
  22. package/dist/cjs/snk-filter-bar_4.cjs.entry.js +3 -3
  23. package/dist/cjs/snk-filter-modal-item.cjs.entry.js +2 -2
  24. package/dist/cjs/snk-grid.cjs.entry.js +10 -8
  25. package/dist/cjs/{snk-guides-viewer-0e4f3b1a.js → snk-guides-viewer-b6002ea7.js} +6 -5
  26. package/dist/cjs/snk-guides-viewer.cjs.entry.js +8 -7
  27. package/dist/cjs/snk-personalized-filter.cjs.entry.js +3 -3
  28. package/dist/cjs/snk-pesquisa.cjs.entry.js +16 -9
  29. package/dist/cjs/snk-simple-crud.cjs.entry.js +11 -10
  30. package/dist/cjs/snk-taskbar.cjs.entry.js +6 -3
  31. package/dist/cjs/{taskbar-elements-7e19882d.js → taskbar-elements-ebddaef4.js} +1 -1
  32. package/dist/collection/collection-manifest.json +0 -2
  33. package/dist/collection/components/snk-application/snk-application.js +0 -41
  34. package/dist/collection/components/snk-attach/snk-attach.js +27 -1
  35. package/dist/collection/components/snk-attach/structure/fetcher/factory/attach-fetcher-data-unit.factory.js +17 -13
  36. package/dist/collection/components/snk-configurator/snk-configurator.js +1 -26
  37. package/dist/collection/components/snk-crud/snk-crud.js +10 -10
  38. package/dist/collection/components/snk-crud/subcomponents/snk-detail-view/snk-detail-view.css +1 -10
  39. package/dist/collection/components/snk-crud/subcomponents/snk-detail-view/snk-detail-view.js +1 -25
  40. package/dist/collection/components/snk-crud/subcomponents/snk-guides-viewer.js +1 -1
  41. package/dist/collection/components/snk-filter-bar/snk-filter-bar.css +1 -0
  42. package/dist/collection/components/snk-grid/snk-grid.css +1 -0
  43. package/dist/collection/components/snk-grid/snk-grid.js +20 -1
  44. package/dist/collection/components/snk-pesquisa/pesquisa-grid/pesquisa-grid.js +1 -1
  45. package/dist/collection/components/snk-pesquisa/snk-pesquisa.js +9 -2
  46. package/dist/collection/components/snk-simple-crud/snk-simple-crud.js +21 -21
  47. package/dist/collection/components/snk-taskbar/snk-taskbar.js +4 -1
  48. package/dist/collection/lib/DefaultCustomFormatters/RmPrecisionCustomValueFormatter.js +8 -2
  49. package/dist/collection/lib/http/data-fetcher/fetchers/form-config-fetcher.js +0 -14
  50. package/dist/components/ContinuousInsertUtils.js +8 -2
  51. package/dist/components/form-config-fetcher.js +0 -14
  52. package/dist/components/index.d.ts +0 -2
  53. package/dist/components/index.js +0 -2
  54. package/dist/components/index2.js +3 -4
  55. package/dist/components/pesquisa-grid2.js +1 -1
  56. package/dist/components/snk-application2.js +0 -45
  57. package/dist/components/snk-attach2.js +65 -48
  58. package/dist/components/snk-configurator2.js +2 -22
  59. package/dist/components/snk-crud.js +64 -76
  60. package/dist/components/snk-detail-view2.js +86 -110
  61. package/dist/components/snk-filter-bar2.js +1 -1
  62. package/dist/components/snk-grid2.js +4 -2
  63. package/dist/components/snk-pesquisa2.js +9 -2
  64. package/dist/components/snk-simple-crud2.js +22 -34
  65. package/dist/components/snk-taskbar2.js +4 -1
  66. package/dist/esm/{ClientSideExporterProvider-8191676b.js → ClientSideExporterProvider-bd24a4b3.js} +11 -4
  67. package/dist/esm/{ConfigStorage-9bd805d6.js → ConfigStorage-e5c1f4c0.js} +1 -1
  68. package/dist/esm/ISave-d8c8bc59.js +9 -0
  69. package/dist/esm/{SnkFormConfigManager-fbc6a9a8.js → SnkFormConfigManager-1efd102b.js} +2 -2
  70. package/dist/esm/{auth-fetcher-07d33333.js → auth-fetcher-9987c66e.js} +1 -1
  71. package/dist/esm/{form-config-fetcher-ac17cff4.js → form-config-fetcher-34becd23.js} +0 -14
  72. package/dist/esm/index-a7d3d3f1.js +2 -2
  73. package/dist/esm/{index-bdf75557.js → index-c57e49af.js} +3 -4
  74. package/dist/esm/loader.js +1 -1
  75. package/dist/esm/{ISave-7d546dce.js → pesquisa-fetcher-e26c3295.js} +1 -9
  76. package/dist/esm/pesquisa-grid_2.entry.js +4 -3
  77. package/dist/esm/sankhyablocks.js +1 -1
  78. package/dist/esm/{snk-actions-button_7.entry.js → snk-actions-button_5.entry.js} +6 -63
  79. package/dist/esm/snk-application.entry.js +4 -47
  80. package/dist/esm/snk-attach.entry.js +49 -19
  81. package/dist/esm/snk-config-options_3.entry.js +3 -3
  82. package/dist/esm/snk-configurator.entry.js +1 -8
  83. package/dist/esm/snk-crud.entry.js +8 -7
  84. package/dist/esm/snk-data-exporter.entry.js +3 -2
  85. package/dist/esm/snk-detail-view.entry.js +10 -10
  86. package/dist/esm/snk-expression-group_2.entry.js +1 -1
  87. package/dist/esm/snk-filter-bar_4.entry.js +3 -3
  88. package/dist/esm/snk-filter-modal-item.entry.js +2 -2
  89. package/dist/esm/snk-grid.entry.js +10 -8
  90. package/dist/esm/{snk-guides-viewer-80a8709c.js → snk-guides-viewer-39fae8d5.js} +6 -5
  91. package/dist/esm/snk-guides-viewer.entry.js +8 -7
  92. package/dist/esm/snk-personalized-filter.entry.js +3 -3
  93. package/dist/esm/snk-pesquisa.entry.js +10 -3
  94. package/dist/esm/snk-simple-crud.entry.js +11 -10
  95. package/dist/esm/snk-taskbar.entry.js +6 -3
  96. package/dist/esm/{taskbar-elements-d2353c64.js → taskbar-elements-ed51e143.js} +1 -1
  97. package/dist/sankhyablocks/p-11afea24.entry.js +1 -0
  98. package/dist/sankhyablocks/p-18389343.entry.js +1 -0
  99. package/dist/sankhyablocks/p-21749402.js +1 -0
  100. package/dist/sankhyablocks/p-22ddc147.js +26 -0
  101. package/dist/sankhyablocks/p-240ac47f.entry.js +1 -0
  102. package/dist/sankhyablocks/{p-cb9d725a.js → p-3ce68be5.js} +1 -1
  103. package/dist/sankhyablocks/{p-13f17dab.js → p-3fcb90d6.js} +1 -1
  104. package/dist/sankhyablocks/p-43769aa9.js +1 -0
  105. package/dist/sankhyablocks/p-4b01cbad.entry.js +11 -0
  106. package/dist/sankhyablocks/p-4c9adf1c.entry.js +1 -0
  107. package/dist/sankhyablocks/{p-3fc82614.js → p-517efc93.js} +1 -1
  108. package/dist/sankhyablocks/p-5e9fbd76.js +1 -0
  109. package/dist/sankhyablocks/p-6b898a51.entry.js +1 -0
  110. package/dist/sankhyablocks/p-77168ab4.entry.js +1 -0
  111. package/dist/sankhyablocks/p-91708c3d.entry.js +1 -0
  112. package/dist/sankhyablocks/p-9523fc40.entry.js +1 -0
  113. package/dist/sankhyablocks/p-9887a437.entry.js +1 -0
  114. package/dist/sankhyablocks/p-9ebc3f3b.entry.js +1 -0
  115. package/dist/sankhyablocks/p-a5bdcb3f.entry.js +1 -0
  116. package/dist/sankhyablocks/{p-0bcd4757.entry.js → p-a61bbe18.entry.js} +1 -1
  117. package/dist/sankhyablocks/{p-48729c8c.js → p-a77bdadc.js} +1 -1
  118. package/dist/sankhyablocks/{p-9d3a025a.entry.js → p-bfdf92e9.entry.js} +1 -1
  119. package/dist/sankhyablocks/p-cb1e77e0.entry.js +1 -0
  120. package/dist/sankhyablocks/{p-340e2447.entry.js → p-d3b9b377.entry.js} +1 -1
  121. package/dist/sankhyablocks/p-e289826a.js +1 -0
  122. package/dist/sankhyablocks/p-e51c52cf.entry.js +1 -0
  123. package/dist/sankhyablocks/{p-f467153c.entry.js → p-e66bcb5c.entry.js} +1 -1
  124. package/dist/sankhyablocks/{p-108fee57.js → p-ef076eea.js} +2 -2
  125. package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
  126. package/dist/types/components/snk-application/snk-application.d.ts +0 -10
  127. package/dist/types/components/snk-attach/snk-attach.d.ts +1 -0
  128. package/dist/types/components/snk-configurator/snk-configurator.d.ts +0 -6
  129. package/dist/types/components/snk-crud/snk-crud.d.ts +2 -2
  130. package/dist/types/components/snk-crud/subcomponents/snk-detail-view/snk-detail-view.d.ts +0 -5
  131. package/dist/types/components/snk-grid/snk-grid.d.ts +4 -0
  132. package/dist/types/components/snk-pesquisa/snk-pesquisa.d.ts +1 -0
  133. package/dist/types/components/snk-simple-crud/snk-simple-crud.d.ts +4 -4
  134. package/dist/types/components/snk-taskbar/snk-taskbar.d.ts +1 -0
  135. package/dist/types/components.d.ts +25 -77
  136. package/dist/types/lib/http/data-fetcher/fetchers/form-config-fetcher.d.ts +0 -6
  137. package/package.json +1 -1
  138. package/react/components.d.ts +0 -2
  139. package/react/components.js +0 -2
  140. package/react/components.js.map +1 -1
  141. package/dist/collection/components/snk-layout-form-config/snk-layout-form-config.css +0 -3
  142. package/dist/collection/components/snk-layout-form-config/snk-layout-form-config.js +0 -73
  143. package/dist/collection/components/snk-layout-form-config/snk-view-representation/snk-view-representation.css +0 -78
  144. package/dist/collection/components/snk-layout-form-config/snk-view-representation/snk-view-representation.js +0 -57
  145. package/dist/collection/lib/configs/LayoutFormConfig.js +0 -25
  146. package/dist/components/snk-layout-form-config.d.ts +0 -11
  147. package/dist/components/snk-layout-form-config.js +0 -6
  148. package/dist/components/snk-layout-form-config2.js +0 -73
  149. package/dist/components/snk-view-representation.d.ts +0 -11
  150. package/dist/components/snk-view-representation.js +0 -6
  151. package/dist/components/snk-view-representation2.js +0 -41
  152. package/dist/sankhyablocks/p-01512409.js +0 -26
  153. package/dist/sankhyablocks/p-02c6dc9f.entry.js +0 -1
  154. package/dist/sankhyablocks/p-35fcf37e.js +0 -1
  155. package/dist/sankhyablocks/p-3a36d4b3.entry.js +0 -1
  156. package/dist/sankhyablocks/p-513af002.entry.js +0 -1
  157. package/dist/sankhyablocks/p-5fea0816.entry.js +0 -1
  158. package/dist/sankhyablocks/p-6dc031de.js +0 -1
  159. package/dist/sankhyablocks/p-950e3cbe.entry.js +0 -1
  160. package/dist/sankhyablocks/p-9907cf67.entry.js +0 -1
  161. package/dist/sankhyablocks/p-a962a3e4.entry.js +0 -1
  162. package/dist/sankhyablocks/p-af58c9d7.entry.js +0 -1
  163. package/dist/sankhyablocks/p-c5acb7ba.entry.js +0 -11
  164. package/dist/sankhyablocks/p-c7c6eab7.entry.js +0 -1
  165. package/dist/sankhyablocks/p-d1f04e2c.js +0 -1
  166. package/dist/sankhyablocks/p-d2065bb4.entry.js +0 -1
  167. package/dist/sankhyablocks/p-dc617b0c.entry.js +0 -1
  168. package/dist/sankhyablocks/p-e5d8891d.entry.js +0 -1
  169. package/dist/sankhyablocks/p-f861bfcb.entry.js +0 -1
  170. package/dist/types/components/snk-layout-form-config/snk-layout-form-config.d.ts +0 -15
  171. package/dist/types/components/snk-layout-form-config/snk-view-representation/snk-view-representation.d.ts +0 -10
  172. package/dist/types/lib/configs/LayoutFormConfig.d.ts +0 -11
@@ -10,41 +10,39 @@ import './dataunit-fetcher.js';
10
10
  import './filter-item-type.enum.js';
11
11
  import './form-config-fetcher.js';
12
12
  import { V as VIEW_MODE } from './constants.js';
13
- import { T as TaskbarElement, d as defineCustomElement$4 } from './snk-taskbar2.js';
13
+ import { T as TaskbarElement, d as defineCustomElement$3 } from './snk-taskbar2.js';
14
14
  import { o as openFieldSearch, T as TaskbarProcessor, b as buildFieldSearch } from './ContinuousInsertUtils.js';
15
15
  import { SelectionMode } from '@sankhyalabs/core/dist/dataunit/DataUnit';
16
- import { d as defineCustomElement$x } from './snk-actions-button2.js';
17
- import { d as defineCustomElement$w } from './snk-attach2.js';
18
- import { d as defineCustomElement$v } from './snk-config-options2.js';
19
- import { d as defineCustomElement$u } from './snk-configurator2.js';
20
- import { d as defineCustomElement$t } from './snk-data-exporter2.js';
21
- import { d as defineCustomElement$s } from './snk-data-unit2.js';
16
+ import { d as defineCustomElement$v } from './snk-actions-button2.js';
17
+ import { d as defineCustomElement$u } from './snk-attach2.js';
18
+ import { d as defineCustomElement$t } from './snk-config-options2.js';
19
+ import { d as defineCustomElement$s } from './snk-configurator2.js';
20
+ import { d as defineCustomElement$r } from './snk-data-exporter2.js';
21
+ import { d as defineCustomElement$q } from './snk-data-unit2.js';
22
22
  import { S as SnkMessageBuilder } from './SnkMessageBuilder.js';
23
- import { d as defineCustomElement$r } from './snk-exporter-email-sender2.js';
24
- import { d as defineCustomElement$q } from './snk-expression-group2.js';
25
- import { d as defineCustomElement$p } from './snk-expression-item2.js';
26
- import { d as defineCustomElement$n } from './snk-filter-advanced-mode2.js';
27
- import { d as defineCustomElement$m } from './snk-filter-assistent-mode2.js';
28
- import { d as defineCustomElement$l } from './snk-filter-bar2.js';
29
- import { d as defineCustomElement$k } from './snk-filter-detail2.js';
30
- import { d as defineCustomElement$j } from './snk-filter-field-search2.js';
31
- import { d as defineCustomElement$i } from './snk-filter-item2.js';
32
- import { d as defineCustomElement$h } from './snk-filter-param-config2.js';
33
- import { d as defineCustomElement$f } from './snk-form-summary2.js';
34
- import { d as defineCustomElement$e } from './snk-form-view2.js';
35
- import { d as defineCustomElement$d } from './snk-grid2.js';
36
- import { d as defineCustomElement$c } from './snk-grid-config2.js';
37
- import { d as defineCustomElement$b } from './snk-layout-form-config2.js';
38
- import { d as defineCustomElement$a } from './snk-personalized-filter2.js';
39
- import { d as defineCustomElement$9 } from './snk-select-box2.js';
40
- import { d as defineCustomElement$8 } from './snk-simple-bar2.js';
41
- import { d as defineCustomElement$7 } from './snk-simple-crud2.js';
42
- import { d as defineCustomElement$6 } from './snk-simple-form-config2.js';
43
- import { d as defineCustomElement$3 } from './snk-view-representation2.js';
23
+ import { d as defineCustomElement$p } from './snk-exporter-email-sender2.js';
24
+ import { d as defineCustomElement$o } from './snk-expression-group2.js';
25
+ import { d as defineCustomElement$n } from './snk-expression-item2.js';
26
+ import { d as defineCustomElement$l } from './snk-filter-advanced-mode2.js';
27
+ import { d as defineCustomElement$k } from './snk-filter-assistent-mode2.js';
28
+ import { d as defineCustomElement$j } from './snk-filter-bar2.js';
29
+ import { d as defineCustomElement$i } from './snk-filter-detail2.js';
30
+ import { d as defineCustomElement$h } from './snk-filter-field-search2.js';
31
+ import { d as defineCustomElement$g } from './snk-filter-item2.js';
32
+ import { d as defineCustomElement$f } from './snk-filter-param-config2.js';
33
+ import { d as defineCustomElement$d } from './snk-form-summary2.js';
34
+ import { d as defineCustomElement$c } from './snk-form-view2.js';
35
+ import { d as defineCustomElement$b } from './snk-grid2.js';
36
+ import { d as defineCustomElement$a } from './snk-grid-config2.js';
37
+ import { d as defineCustomElement$9 } from './snk-personalized-filter2.js';
38
+ import { d as defineCustomElement$8 } from './snk-select-box2.js';
39
+ import { d as defineCustomElement$7 } from './snk-simple-bar2.js';
40
+ import { d as defineCustomElement$6 } from './snk-simple-crud2.js';
41
+ import { d as defineCustomElement$5 } from './snk-simple-form-config2.js';
44
42
  import { d as defineCustomElement$2 } from './taskbar-actions-button2.js';
45
- import { d as defineCustomElement$o } from './snk-field-config2.js';
46
- import { d as defineCustomElement$g } from './snk-form-config2.js';
47
- import { d as defineCustomElement$5 } from './snk-tab-config2.js';
43
+ import { d as defineCustomElement$m } from './snk-field-config2.js';
44
+ import { d as defineCustomElement$e } from './snk-form-config2.js';
45
+ import { d as defineCustomElement$4 } from './snk-tab-config2.js';
48
46
 
49
47
  const snkGuidesViewerCss = ".sc-snk-guides-viewer-h{--snk-guides-viewer--space-large:var(--space--large, 24px);--snk-guides-viewer--space-small:var(--space--2xs, 8px);--snk-guides-viewer__header--min-height:68px;--snk-guides-viewer__header--z-index:var(--more-visible, 2);--snk-guides-viewer__header--background-color:var(--background--body, #fafcff);--snk-guides-viewer__guide-navigator--width:340px;display:block}snk-form-view.sc-snk-guides-viewer{width:100%}.snk-guides-viewer.sc-snk-guides-viewer{position:relative;padding-left:0px;padding-top:0px;padding-right:var(--snk-guides-viewer--space-large);padding-bottom:var(--snk-guides-viewer--space-large)}.snk-guides-viewer__detail-container.sc-snk-guides-viewer{display:flex;row-gap:24px;flex-direction:column}.snk-guides-viewer__header.sc-snk-guides-viewer{position:sticky;align-items:center;top:0;z-index:var(--snk-guides-viewer__header--z-index);background-color:var(--snk-guides-viewer__header--background-color);min-height:var(--snk-guides-viewer__header--min-height);width:calc(100% + (var(--snk-guides-viewer--space-large) * 2));padding-left:var(--snk-guides-viewer--space-large);padding-right:var(--snk-guides-viewer--space-large);padding-top:var(--snk-guides-viewer--space-large);padding-bottom:var(--snk-guides-viewer--space-small);margin-left:calc(var(--snk-guides-viewer--space-large) * -1);margin-right:calc(var(--snk-guides-viewer--space-large) * -1);margin-bottom:var(--snk-guides-viewer--space-small)}.snk-guides-viewer__header-breadcrumb.sc-snk-guides-viewer{width:25%;display:flex}.snk-guides-viewer__header-taskbar.sc-snk-guides-viewer{width:75%}.snk-guides-viewer__container.sc-snk-guides-viewer{display:grid;grid-template-columns:minmax(0, auto) minmax(0, 100%);height:100%;column-gap:var(--snk-guides-viewer--space-large)}.snk-guides-viewer__guide-navigator.sc-snk-guides-viewer{position:sticky;top:calc(var(--snk-guides-viewer__header--min-height) + var(--snk-guides-viewer--space-small));height:calc(100vh - var(--snk-guides-viewer__header--min-height) - var(--snk-guides-viewer--space-large) - var(--snk-guides-viewer--space-small))}.snk-guides-viewer__guide-navigator[open].sc-snk-guides-viewer{width:var(--snk-guides-viewer__guide-navigator--width);max-width:var(--snk-guides-viewer__guide-navigator--width);min-width:var(--snk-guides-viewer__guide-navigator--width)}.snk-guides-viewer__detail-content.sc-snk-guides-viewer{min-height:100%;align-items:flex-start;align-content:flex-start}";
50
48
 
@@ -329,7 +327,7 @@ const SnkGuidesViewer = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
329
327
  else {
330
328
  detailBranch = this.selectedGuide;
331
329
  }
332
- content = this.wrapDetail(levels, h("snk-detail-view", { ref: (ref) => this._currentDetail = ref, dataUnitName: this.getDataUnitName(levels, childEntityName), onSnkDetailGuidesChange: (evt) => this.updateGuide(evt.detail), entityName: childEntityName, selectedForm: formName, branchGuide: detailBranch, guideItemPath: this._breadcrumbItems, key: `detail${detailId}`, canEdit: this.canEdit, onSnkSwitchGuide: evt => this._guideNavigator.selectGuide(evt.detail), resourceID: this.resourceID, taskbarCustomContainerId: this.detailTaskbarCustomContainerId, customEditors: this._customEditors, customRenders: this._customRenders, presentationMode: this.presentationMode }));
330
+ content = this.wrapDetail(levels, h("snk-detail-view", { ref: (ref) => this._currentDetail = ref, dataUnitName: this.getDataUnitName(levels, childEntityName), onSnkDetailGuidesChange: (evt) => this.updateGuide(evt.detail), entityName: childEntityName, selectedForm: formName, branchGuide: detailBranch, guideItemPath: this._breadcrumbItems, key: `detail${detailId}`, canEdit: this.canEdit, onSnkSwitchGuide: evt => this._guideNavigator.selectGuide(evt.detail), resourceID: this.resourceID, taskbarCustomContainerId: this.detailTaskbarCustomContainerId, customEditors: this._customEditors, customRenders: this._customRenders }));
333
331
  }
334
332
  else {
335
333
  const cardId = this.selectedGuide.id;
@@ -599,7 +597,7 @@ function defineCustomElement$1() {
599
597
  if (typeof customElements === "undefined") {
600
598
  return;
601
599
  }
602
- const components = ["snk-guides-viewer", "snk-actions-button", "snk-attach", "snk-config-options", "snk-configurator", "snk-data-exporter", "snk-data-unit", "snk-detail-view", "snk-exporter-email-sender", "snk-expression-group", "snk-expression-item", "snk-field-config", "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-form-config", "snk-form-summary", "snk-form-view", "snk-grid", "snk-grid-config", "snk-layout-form-config", "snk-personalized-filter", "snk-select-box", "snk-simple-bar", "snk-simple-crud", "snk-simple-form-config", "snk-tab-config", "snk-taskbar", "snk-view-representation", "taskbar-actions-button"];
600
+ const components = ["snk-guides-viewer", "snk-actions-button", "snk-attach", "snk-config-options", "snk-configurator", "snk-data-exporter", "snk-data-unit", "snk-detail-view", "snk-exporter-email-sender", "snk-expression-group", "snk-expression-item", "snk-field-config", "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-form-config", "snk-form-summary", "snk-form-view", "snk-grid", "snk-grid-config", "snk-personalized-filter", "snk-select-box", "snk-simple-bar", "snk-simple-crud", "snk-simple-form-config", "snk-tab-config", "snk-taskbar", "taskbar-actions-button"];
603
601
  components.forEach(tagName => { switch (tagName) {
604
602
  case "snk-guides-viewer":
605
603
  if (!customElements.get(tagName)) {
@@ -608,32 +606,32 @@ function defineCustomElement$1() {
608
606
  break;
609
607
  case "snk-actions-button":
610
608
  if (!customElements.get(tagName)) {
611
- defineCustomElement$x();
609
+ defineCustomElement$v();
612
610
  }
613
611
  break;
614
612
  case "snk-attach":
615
613
  if (!customElements.get(tagName)) {
616
- defineCustomElement$w();
614
+ defineCustomElement$u();
617
615
  }
618
616
  break;
619
617
  case "snk-config-options":
620
618
  if (!customElements.get(tagName)) {
621
- defineCustomElement$v();
619
+ defineCustomElement$t();
622
620
  }
623
621
  break;
624
622
  case "snk-configurator":
625
623
  if (!customElements.get(tagName)) {
626
- defineCustomElement$u();
624
+ defineCustomElement$s();
627
625
  }
628
626
  break;
629
627
  case "snk-data-exporter":
630
628
  if (!customElements.get(tagName)) {
631
- defineCustomElement$t();
629
+ defineCustomElement$r();
632
630
  }
633
631
  break;
634
632
  case "snk-data-unit":
635
633
  if (!customElements.get(tagName)) {
636
- defineCustomElement$s();
634
+ defineCustomElement$q();
637
635
  }
638
636
  break;
639
637
  case "snk-detail-view":
@@ -642,126 +640,116 @@ function defineCustomElement$1() {
642
640
  }
643
641
  break;
644
642
  case "snk-exporter-email-sender":
645
- if (!customElements.get(tagName)) {
646
- defineCustomElement$r();
647
- }
648
- break;
649
- case "snk-expression-group":
650
- if (!customElements.get(tagName)) {
651
- defineCustomElement$q();
652
- }
653
- break;
654
- case "snk-expression-item":
655
643
  if (!customElements.get(tagName)) {
656
644
  defineCustomElement$p();
657
645
  }
658
646
  break;
659
- case "snk-field-config":
647
+ case "snk-expression-group":
660
648
  if (!customElements.get(tagName)) {
661
649
  defineCustomElement$o();
662
650
  }
663
651
  break;
664
- case "snk-filter-advanced-mode":
652
+ case "snk-expression-item":
665
653
  if (!customElements.get(tagName)) {
666
654
  defineCustomElement$n();
667
655
  }
668
656
  break;
669
- case "snk-filter-assistent-mode":
657
+ case "snk-field-config":
670
658
  if (!customElements.get(tagName)) {
671
659
  defineCustomElement$m();
672
660
  }
673
661
  break;
674
- case "snk-filter-bar":
662
+ case "snk-filter-advanced-mode":
675
663
  if (!customElements.get(tagName)) {
676
664
  defineCustomElement$l();
677
665
  }
678
666
  break;
679
- case "snk-filter-detail":
667
+ case "snk-filter-assistent-mode":
680
668
  if (!customElements.get(tagName)) {
681
669
  defineCustomElement$k();
682
670
  }
683
671
  break;
684
- case "snk-filter-field-search":
672
+ case "snk-filter-bar":
685
673
  if (!customElements.get(tagName)) {
686
674
  defineCustomElement$j();
687
675
  }
688
676
  break;
689
- case "snk-filter-item":
677
+ case "snk-filter-detail":
690
678
  if (!customElements.get(tagName)) {
691
679
  defineCustomElement$i();
692
680
  }
693
681
  break;
694
- case "snk-filter-param-config":
682
+ case "snk-filter-field-search":
695
683
  if (!customElements.get(tagName)) {
696
684
  defineCustomElement$h();
697
685
  }
698
686
  break;
699
- case "snk-form-config":
687
+ case "snk-filter-item":
700
688
  if (!customElements.get(tagName)) {
701
689
  defineCustomElement$g();
702
690
  }
703
691
  break;
704
- case "snk-form-summary":
692
+ case "snk-filter-param-config":
705
693
  if (!customElements.get(tagName)) {
706
694
  defineCustomElement$f();
707
695
  }
708
696
  break;
709
- case "snk-form-view":
697
+ case "snk-form-config":
710
698
  if (!customElements.get(tagName)) {
711
699
  defineCustomElement$e();
712
700
  }
713
701
  break;
714
- case "snk-grid":
702
+ case "snk-form-summary":
715
703
  if (!customElements.get(tagName)) {
716
704
  defineCustomElement$d();
717
705
  }
718
706
  break;
719
- case "snk-grid-config":
707
+ case "snk-form-view":
720
708
  if (!customElements.get(tagName)) {
721
709
  defineCustomElement$c();
722
710
  }
723
711
  break;
724
- case "snk-layout-form-config":
712
+ case "snk-grid":
725
713
  if (!customElements.get(tagName)) {
726
714
  defineCustomElement$b();
727
715
  }
728
716
  break;
729
- case "snk-personalized-filter":
717
+ case "snk-grid-config":
730
718
  if (!customElements.get(tagName)) {
731
719
  defineCustomElement$a();
732
720
  }
733
721
  break;
734
- case "snk-select-box":
722
+ case "snk-personalized-filter":
735
723
  if (!customElements.get(tagName)) {
736
724
  defineCustomElement$9();
737
725
  }
738
726
  break;
739
- case "snk-simple-bar":
727
+ case "snk-select-box":
740
728
  if (!customElements.get(tagName)) {
741
729
  defineCustomElement$8();
742
730
  }
743
731
  break;
744
- case "snk-simple-crud":
732
+ case "snk-simple-bar":
745
733
  if (!customElements.get(tagName)) {
746
734
  defineCustomElement$7();
747
735
  }
748
736
  break;
749
- case "snk-simple-form-config":
737
+ case "snk-simple-crud":
750
738
  if (!customElements.get(tagName)) {
751
739
  defineCustomElement$6();
752
740
  }
753
741
  break;
754
- case "snk-tab-config":
742
+ case "snk-simple-form-config":
755
743
  if (!customElements.get(tagName)) {
756
744
  defineCustomElement$5();
757
745
  }
758
746
  break;
759
- case "snk-taskbar":
747
+ case "snk-tab-config":
760
748
  if (!customElements.get(tagName)) {
761
749
  defineCustomElement$4();
762
750
  }
763
751
  break;
764
- case "snk-view-representation":
752
+ case "snk-taskbar":
765
753
  if (!customElements.get(tagName)) {
766
754
  defineCustomElement$3();
767
755
  }
@@ -817,7 +805,7 @@ class GuideBuilder {
817
805
  }
818
806
  }
819
807
 
820
- const snkDetailViewCss = ".sc-snk-detail-view-h{display:flex;row-gap:24px;flex-direction:column;width:100%;height:100%}.level-path.sc-snk-detail-view{color:var(--color--title-primary, #2B3A54);font-weight:var(--text-weight--medium, 400);padding-right:3px}.form-taskbar.sc-snk-detail-view{padding-bottom:var(--space--medium)}.grid-container.sc-snk-detail-view{background-color:#FFF;min-height:100px;height:100%}.detail-header.sc-snk-detail-view{padding-bottom:0}snk-data-unit.sc-snk-detail-view{flex:1}snk-grid.sc-snk-detail-view{height:calc(100% - 43px)}";
808
+ const snkDetailViewCss = ".sc-snk-detail-view-h{display:flex;row-gap:24px;flex-direction:column;width:100%;height:100%}.level-path.sc-snk-detail-view{color:var(--color--title-primary, #2B3A54);font-weight:var(--text-weight--medium, 400);padding-right:3px}.form-taskbar.sc-snk-detail-view{padding-bottom:var(--space--medium)}.grid-container.sc-snk-detail-view{background-color:#FFF;min-height:100px}.detail-header.sc-snk-detail-view{padding-bottom:0}";
821
809
 
822
810
  const SnkDetailView = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
823
811
  constructor() {
@@ -844,7 +832,6 @@ const SnkDetailView = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
844
832
  this.taskbarCustomContainerId = undefined;
845
833
  this.customEditors = undefined;
846
834
  this.customRenders = undefined;
847
- this.presentationMode = PresentationMode.SECONDARY;
848
835
  }
849
836
  observeDataUnit(newDataUnit, oldDataUnit) {
850
837
  newDataUnit === null || newDataUnit === void 0 ? void 0 : newDataUnit.subscribe(this.dataUnitActionHandler.bind(this));
@@ -1064,7 +1051,7 @@ const SnkDetailView = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
1064
1051
  render() {
1065
1052
  this.updateLabel();
1066
1053
  //const cardConfig: IFormCardConfig = this._cardsState?.get(this.selectedForm);
1067
- return (h(Host, null, h("snk-data-unit", { ref: (el) => this._snkDataUnit = el, dataUnitName: `${this.dataUnitName}`, onDataUnitReady: evt => this.dataUnitReadyHandler(evt), entityName: this.entityName, onDataStateChange: this.handleDataStateChange.bind(this), ignoreSaveMessage: this._currentView === VIEW_MODE.GRID, messagesBuilder: this.messagesBuilder, configName: this._configName }, h("ez-view-stack", { ref: (ref) => this.updateViewStack(ref) }, h("stack-item", null, h("div", { class: "ez-box ez-box--shadow grid-container" }, h("div", { class: "ez-title--primary ez-size-width--full ez-padding--large detail-header" }, h("div", { class: "ez-flex ez-text ez-text--bold ez-flex--justify-start ez-flex--align-items-center" }, this._levelPath ? h("span", { class: "level-path" }, this._levelPath + " /") : undefined, this.label)), h("snk-grid", { class: "ez-size-width--full", ref: (ref) => this._snkGrid = ref, configName: this._configName, messagesBuilder: this.messagesBuilder, onGridDoubleClick: () => this.emitSwitchEvent(VIEW_MODE.FORM), onActionClick: (evt) => this.executeActionHandler(evt), presentationMode: this.presentationMode, canEdit: this.canEdit, isDetail: true, taskbarCustomContainerId: this.taskbarCustomContainerId, gridHeaderCustomSlotId: "DETAIL_GRID_HEADER_CUSTOM_ELEMENTS", topTaskbarCustomSlotId: "DETAIL_GRID_TASKBAR_CUSTOM_ELEMENTS", outlineMode: false }))), h("stack-item", null, h("snk-form-view", { ref: (ref) => this._snkFormView = ref, canExpand: false, canFix: false, name: this.selectedForm, formMetadata: this._formMetadata, dataUnit: this.dataUnit, fields: this.getFormFields(), label: this.label, levelPath: this._levelPath, onFormItemsReady: ({ detail: formItems }) => this.formItemsReady.emit(formItems) }, h("snk-taskbar", { key: "guideViewerTaskbar", class: "form-taskbar", "data-element-id": "guideViewer", configName: this._configName, messagesBuilder: this.messagesBuilder, disabledButtons: this._disabledButtons, buttons: "INSERT,PREVIOUS,NEXT,DIVIDER,CLONE,REMOVE,MORE_OPTIONS,DIVIDER,GRID_MODE,CONFIGURATOR", primaryButton: "INSERT", presentationMode: this.presentationMode, onActionClick: evt => this.executeActionHandler(evt), dataUnit: this.dataUnit, resourceID: this.resourceID, customContainerId: this.taskbarCustomContainerId, customSlotId: "DETAIL_TASKBAR_CUSTOM_ELEMENTS" }, h("slot", { name: "DETAIL_TASKBAR_CUSTOM_ELEMENTS" })))), h("stack-item", null, h("snk-attach", { registerKey: this.attachmentRegisterKey, messagesBuilder: this.messagesBuilder, entityName: this.entityName, onBack: this.handleAttachBack.bind(this) }))))));
1054
+ return (h(Host, null, h("snk-data-unit", { ref: (el) => this._snkDataUnit = el, dataUnitName: `${this.dataUnitName}`, onDataUnitReady: evt => this.dataUnitReadyHandler(evt), entityName: this.entityName, onDataStateChange: this.handleDataStateChange.bind(this), ignoreSaveMessage: this._currentView === VIEW_MODE.GRID, messagesBuilder: this.messagesBuilder, configName: this._configName }, h("ez-view-stack", { ref: (ref) => this.updateViewStack(ref) }, h("stack-item", null, h("div", { class: "ez-box ez-box--shadow grid-container" }, h("div", { class: "ez-flex ez-title--primary ez-size-width--full ez-padding--large detail-header" }, h("div", { class: "ez-flex ez-text ez-text--bold ez-flex--justify-start ez-flex--align-items-center" }, this._levelPath ? h("span", { class: "level-path" }, this._levelPath + " /") : undefined, this.label)), h("snk-grid", { class: "ez-size-width--full ez-size-height--full", ref: (ref) => this._snkGrid = ref, configName: this._configName, messagesBuilder: this.messagesBuilder, onGridDoubleClick: () => this.emitSwitchEvent(VIEW_MODE.FORM), onActionClick: (evt) => this.executeActionHandler(evt), presentationMode: PresentationMode.SECONDARY, canEdit: this.canEdit, isDetail: true, taskbarCustomContainerId: this.taskbarCustomContainerId, gridHeaderCustomSlotId: "DETAIL_GRID_HEADER_CUSTOM_ELEMENTS", topTaskbarCustomSlotId: "DETAIL_GRID_TASKBAR_CUSTOM_ELEMENTS", outlineMode: false }))), h("stack-item", null, h("snk-form-view", { ref: (ref) => this._snkFormView = ref, canExpand: false, canFix: false, name: this.selectedForm, formMetadata: this._formMetadata, dataUnit: this.dataUnit, fields: this.getFormFields(), label: this.label, levelPath: this._levelPath, onFormItemsReady: ({ detail: formItems }) => this.formItemsReady.emit(formItems) }, h("snk-taskbar", { key: "guideViewerTaskbar", class: "form-taskbar", "data-element-id": "guideViewer", configName: this._configName, messagesBuilder: this.messagesBuilder, disabledButtons: this._disabledButtons, buttons: "INSERT,PREVIOUS,NEXT,DIVIDER,CLONE,REMOVE,MORE_OPTIONS,DIVIDER,GRID_MODE,CONFIGURATOR", primaryButton: "INSERT", presentationMode: PresentationMode.SECONDARY, onActionClick: evt => this.executeActionHandler(evt), dataUnit: this.dataUnit, resourceID: this.resourceID, customContainerId: this.taskbarCustomContainerId, customSlotId: "DETAIL_TASKBAR_CUSTOM_ELEMENTS" }, h("slot", { name: "DETAIL_TASKBAR_CUSTOM_ELEMENTS" })))), h("stack-item", null, h("snk-attach", { registerKey: this.attachmentRegisterKey, messagesBuilder: this.messagesBuilder, entityName: this.entityName, onBack: this.handleAttachBack.bind(this) }))))));
1068
1055
  }
1069
1056
  static get watchers() { return {
1070
1057
  "dataUnit": ["observeDataUnit"],
@@ -1089,7 +1076,6 @@ const SnkDetailView = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
1089
1076
  "taskbarCustomContainerId": [1, "taskbar-custom-container-id"],
1090
1077
  "customEditors": [16],
1091
1078
  "customRenders": [16],
1092
- "presentationMode": [1, "presentation-mode"],
1093
1079
  "_disabledButtons": [32],
1094
1080
  "_currentView": [32],
1095
1081
  "attachmentRegisterKey": [32],
@@ -1104,7 +1090,7 @@ function defineCustomElement() {
1104
1090
  if (typeof customElements === "undefined") {
1105
1091
  return;
1106
1092
  }
1107
- const components = ["snk-detail-view", "snk-actions-button", "snk-attach", "snk-configurator", "snk-data-exporter", "snk-data-unit", "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-form-summary", "snk-form-view", "snk-grid", "snk-grid-config", "snk-layout-form-config", "snk-personalized-filter", "snk-select-box", "snk-simple-bar", "snk-simple-crud", "snk-simple-form-config", "snk-taskbar", "snk-view-representation", "taskbar-actions-button"];
1093
+ const components = ["snk-detail-view", "snk-actions-button", "snk-attach", "snk-configurator", "snk-data-exporter", "snk-data-unit", "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-form-summary", "snk-form-view", "snk-grid", "snk-grid-config", "snk-personalized-filter", "snk-select-box", "snk-simple-bar", "snk-simple-crud", "snk-simple-form-config", "snk-taskbar", "taskbar-actions-button"];
1108
1094
  components.forEach(tagName => { switch (tagName) {
1109
1095
  case "snk-detail-view":
1110
1096
  if (!customElements.get(tagName)) {
@@ -1113,135 +1099,125 @@ function defineCustomElement() {
1113
1099
  break;
1114
1100
  case "snk-actions-button":
1115
1101
  if (!customElements.get(tagName)) {
1116
- defineCustomElement$x();
1102
+ defineCustomElement$v();
1117
1103
  }
1118
1104
  break;
1119
1105
  case "snk-attach":
1120
1106
  if (!customElements.get(tagName)) {
1121
- defineCustomElement$w();
1107
+ defineCustomElement$u();
1122
1108
  }
1123
1109
  break;
1124
1110
  case "snk-configurator":
1125
1111
  if (!customElements.get(tagName)) {
1126
- defineCustomElement$u();
1112
+ defineCustomElement$s();
1127
1113
  }
1128
1114
  break;
1129
1115
  case "snk-data-exporter":
1130
1116
  if (!customElements.get(tagName)) {
1131
- defineCustomElement$t();
1117
+ defineCustomElement$r();
1132
1118
  }
1133
1119
  break;
1134
1120
  case "snk-data-unit":
1135
1121
  if (!customElements.get(tagName)) {
1136
- defineCustomElement$s();
1122
+ defineCustomElement$q();
1137
1123
  }
1138
1124
  break;
1139
1125
  case "snk-exporter-email-sender":
1140
1126
  if (!customElements.get(tagName)) {
1141
- defineCustomElement$r();
1127
+ defineCustomElement$p();
1142
1128
  }
1143
1129
  break;
1144
1130
  case "snk-expression-group":
1145
1131
  if (!customElements.get(tagName)) {
1146
- defineCustomElement$q();
1132
+ defineCustomElement$o();
1147
1133
  }
1148
1134
  break;
1149
1135
  case "snk-expression-item":
1150
1136
  if (!customElements.get(tagName)) {
1151
- defineCustomElement$p();
1137
+ defineCustomElement$n();
1152
1138
  }
1153
1139
  break;
1154
1140
  case "snk-filter-advanced-mode":
1155
1141
  if (!customElements.get(tagName)) {
1156
- defineCustomElement$n();
1142
+ defineCustomElement$l();
1157
1143
  }
1158
1144
  break;
1159
1145
  case "snk-filter-assistent-mode":
1160
1146
  if (!customElements.get(tagName)) {
1161
- defineCustomElement$m();
1147
+ defineCustomElement$k();
1162
1148
  }
1163
1149
  break;
1164
1150
  case "snk-filter-bar":
1165
1151
  if (!customElements.get(tagName)) {
1166
- defineCustomElement$l();
1152
+ defineCustomElement$j();
1167
1153
  }
1168
1154
  break;
1169
1155
  case "snk-filter-detail":
1170
1156
  if (!customElements.get(tagName)) {
1171
- defineCustomElement$k();
1157
+ defineCustomElement$i();
1172
1158
  }
1173
1159
  break;
1174
1160
  case "snk-filter-field-search":
1175
1161
  if (!customElements.get(tagName)) {
1176
- defineCustomElement$j();
1162
+ defineCustomElement$h();
1177
1163
  }
1178
1164
  break;
1179
1165
  case "snk-filter-item":
1180
1166
  if (!customElements.get(tagName)) {
1181
- defineCustomElement$i();
1167
+ defineCustomElement$g();
1182
1168
  }
1183
1169
  break;
1184
1170
  case "snk-filter-param-config":
1185
1171
  if (!customElements.get(tagName)) {
1186
- defineCustomElement$h();
1172
+ defineCustomElement$f();
1187
1173
  }
1188
1174
  break;
1189
1175
  case "snk-form-summary":
1190
1176
  if (!customElements.get(tagName)) {
1191
- defineCustomElement$f();
1177
+ defineCustomElement$d();
1192
1178
  }
1193
1179
  break;
1194
1180
  case "snk-form-view":
1195
1181
  if (!customElements.get(tagName)) {
1196
- defineCustomElement$e();
1182
+ defineCustomElement$c();
1197
1183
  }
1198
1184
  break;
1199
1185
  case "snk-grid":
1200
1186
  if (!customElements.get(tagName)) {
1201
- defineCustomElement$d();
1187
+ defineCustomElement$b();
1202
1188
  }
1203
1189
  break;
1204
1190
  case "snk-grid-config":
1205
1191
  if (!customElements.get(tagName)) {
1206
- defineCustomElement$c();
1207
- }
1208
- break;
1209
- case "snk-layout-form-config":
1210
- if (!customElements.get(tagName)) {
1211
- defineCustomElement$b();
1192
+ defineCustomElement$a();
1212
1193
  }
1213
1194
  break;
1214
1195
  case "snk-personalized-filter":
1215
1196
  if (!customElements.get(tagName)) {
1216
- defineCustomElement$a();
1197
+ defineCustomElement$9();
1217
1198
  }
1218
1199
  break;
1219
1200
  case "snk-select-box":
1220
1201
  if (!customElements.get(tagName)) {
1221
- defineCustomElement$9();
1202
+ defineCustomElement$8();
1222
1203
  }
1223
1204
  break;
1224
1205
  case "snk-simple-bar":
1225
1206
  if (!customElements.get(tagName)) {
1226
- defineCustomElement$8();
1207
+ defineCustomElement$7();
1227
1208
  }
1228
1209
  break;
1229
1210
  case "snk-simple-crud":
1230
1211
  if (!customElements.get(tagName)) {
1231
- defineCustomElement$7();
1212
+ defineCustomElement$6();
1232
1213
  }
1233
1214
  break;
1234
1215
  case "snk-simple-form-config":
1235
1216
  if (!customElements.get(tagName)) {
1236
- defineCustomElement$6();
1217
+ defineCustomElement$5();
1237
1218
  }
1238
1219
  break;
1239
1220
  case "snk-taskbar":
1240
- if (!customElements.get(tagName)) {
1241
- defineCustomElement$4();
1242
- }
1243
- break;
1244
- case "snk-view-representation":
1245
1221
  if (!customElements.get(tagName)) {
1246
1222
  defineCustomElement$3();
1247
1223
  }
@@ -253,7 +253,7 @@ class SnkFilterModalFactory {
253
253
  }
254
254
  }
255
255
 
256
- const snkFilterBarCss = ".sc-snk-filter-bar-h{display:grid;grid-template-columns:1fr minmax(100px, 100%) 1fr 1fr;--snk-personalized-filter--z-index:var(--elevation--20, 20);--snk-personalized-filter--background-color:var(--background--xlight, #fff)}.snk-filter-bar__title.sc-snk-filter-bar{max-width:260px;display:inline-block;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;font-size:16px;font-family:var(--font-pattern, Arial);font-weight:var(--text-weight--large, 600);color:var(--color--title-primary, #2B3A54);margin-top:12px}[data-mode=\"hidden\"].sc-snk-filter-bar-h{width:0px;height:0px}[data-mode=\"button\"].sc-snk-filter-bar-h{grid-template-columns:1fr;width:fit-content}.snk-filter__popover-container.sc-snk-filter-bar{display:flex;cursor:auto}.filter-bar__personalized-filter.sc-snk-filter-bar{display:flex;flex-direction:column;position:fixed;top:0;left:0;width:100%;height:100%;overflow:auto;z-index:var(--snk-personalized-filter--z-index);background-color:var(--snk-personalized-filter--background-color)}.snk-filter__popover.sc-snk-filter-bar{display:flex;flex-direction:column;position:absolute;width:fit-content;height:fit-content;min-width:265px;background-color:var(--background--xlight, #fff);border-radius:var(--border--radius-medium, 12px);box-shadow:var(--shadow, 0px 0px 16px 0px #000)}.snk-filter-item__editor-header.sc-snk-filter-bar{flex-grow:1;font-weight:var(--text-weight--medium, 400);color:var(--color--title-primary, #2B3A54)}.snk-filter__popover-rule.sc-snk-filter-bar{border-style:solid;border-color:var(--color--disable-secondary, #F2F5F8);border-radius:1px;border-width:1px;width:100%}.editor__ez-check.sc-snk-filter-bar{--ez-check__label--padding-left:0}.snk-filter-item__editor-header-button.sc-snk-filter-bar{cursor:pointer;background-color:transparent;border:none;padding:3px;outline-color:var(--color--primary)}.snk-filter-bar__divider.sc-snk-filter-bar{margin-bottom:var(--space--small)}.snk-filter-bar__filter-item-container.sc-snk-filter-bar{display:flex;align-items:start}.snk-filter-bar__scroller.sc-snk-filter-bar .sc-snk-filter-bar:first-child{margin-left:var(--space-extra-small, 3px)}.snk-filter-bar__filter-list-items-container.sc-snk-filter-bar{overflow-y:auto;max-height:360px;margin-top:var(--space--small, 6px)}.snk-filter-bar__filter-list-item.sc-snk-filter-bar{cursor:pointer;border-radius:var(--border--radius-small, 6px);border:none;background-color:transparent}.snk-filter-bar__filter-list-item__label.sc-snk-filter-bar{color:var(--title--primary)}.snk-filter-bar__filter-list-item__label--secondary.sc-snk-filter-bar{color:var(--text--primary)}.snk-filter-bar__filter-list-item__icon.sc-snk-filter-bar{--ez-icon--color:var(--title--primary)}.snk-filter-bar__filter-list-item__icon--secondary.sc-snk-filter-bar{--ez-icon--color:var(--text--secondary)}.snk-filter-bar__filter-list-item.sc-snk-filter-bar:focus-visible{outline:none;background-color:var(--background--medium)}.snk-filter-bar__filter-list-item.sc-snk-filter-bar:hover{background-color:var(--background--medium)}.snk-filter-bar__filter-list-items-container--empty.sc-snk-filter-bar{width:100%;height:100px;display:flex;justify-content:center;align-self:center;align-items:center}.snk-filter-bar__filter-list-items-button--active.sc-snk-filter-bar{position:relative}.snk-filter-bar__filter-list-items-button--active.sc-snk-filter-bar::after{display:flex;position:absolute;content:\"\";width:8px;height:8px;top:7px;left:17px;background-color:var(--icon--alert--color, #008561);border-radius:50%}.snk-filter-bar__filter-modal-item.sc-snk-filter-bar{--modal-item-border-width:2px;display:flex;flex-direction:row;margin-left:var(--modal-item-border-width);border-radius:var(--border--radius-medium, 12px);background-color:var(--background--medium, #f0f3f7);border:none;width:100%}.snk-filter-bar__filter-modal-item.sc-snk-filter-bar:focus-visible{outline:var(--color--primary) solid var(--modal-item-border-width)}.snk-filter-bar__filter-modal-item__check.sc-snk-filter-bar{width:auto}.snk-filter-bar__filter-modal-item__label.sc-snk-filter-bar{font-weight:var(--text-weight--medium)}.snk-filter-bar__filter-modal-content.sc-snk-filter-bar{display:grid;grid-template-rows:auto auto 1fr auto;width:99%;height:100%}";
256
+ const snkFilterBarCss = ".sc-snk-filter-bar-h{display:grid;grid-template-columns:1fr minmax(100px, 100%) 1fr 1fr;--snk-personalized-filter--z-index:var(--elevation--20, 20);--snk-personalized-filter--background-color:var(--background--xlight, #fff)}.snk-filter-bar__title.sc-snk-filter-bar{max-width:260px;display:inline-block;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;font-size:16px;font-family:var(--font-pattern, Arial);font-weight:var(--text-weight--large, 600);color:var(--color--title-primary, #2B3A54);margin-top:12px}[data-mode=\"hidden\"].sc-snk-filter-bar-h{width:0px;height:0px}[data-mode=\"button\"].sc-snk-filter-bar-h{grid-template-columns:1fr;width:fit-content}.snk-filter__popover-container.sc-snk-filter-bar{display:flex;cursor:auto}.filter-bar__personalized-filter.sc-snk-filter-bar{display:flex;flex-direction:column;position:fixed;top:0;left:0;width:100%;height:100%;overflow:auto;z-index:var(--snk-personalized-filter--z-index);background-color:var(--snk-personalized-filter--background-color)}.snk-filter__popover.sc-snk-filter-bar{display:flex;flex-direction:column;position:absolute;width:fit-content;height:fit-content;min-width:265px;background-color:var(--background--xlight, #fff);border-radius:var(--border--radius-medium, 12px);box-shadow:var(--shadow, 0px 0px 16px 0px #000)}.snk-filter-item__editor-header.sc-snk-filter-bar{flex-grow:1;font-weight:var(--text-weight--medium, 400);color:var(--color--title-primary, #2B3A54)}.snk-filter__popover-rule.sc-snk-filter-bar{border-style:solid;border-color:var(--color--disable-secondary, #F2F5F8);border-radius:1px;border-width:1px;width:100%}.editor__ez-check.sc-snk-filter-bar{--ez-check__label--padding-left:0}.snk-filter-item__editor-header-button.sc-snk-filter-bar{cursor:pointer;background-color:transparent;border:none;padding:3px;outline-color:var(--color--primary)}.snk-filter-bar__divider.sc-snk-filter-bar{margin-bottom:var(--space--small);height:80%}.snk-filter-bar__filter-item-container.sc-snk-filter-bar{display:flex;align-items:start}.snk-filter-bar__scroller.sc-snk-filter-bar .sc-snk-filter-bar:first-child{margin-left:var(--space-extra-small, 3px)}.snk-filter-bar__filter-list-items-container.sc-snk-filter-bar{overflow-y:auto;max-height:360px;margin-top:var(--space--small, 6px)}.snk-filter-bar__filter-list-item.sc-snk-filter-bar{cursor:pointer;border-radius:var(--border--radius-small, 6px);border:none;background-color:transparent}.snk-filter-bar__filter-list-item__label.sc-snk-filter-bar{color:var(--title--primary)}.snk-filter-bar__filter-list-item__label--secondary.sc-snk-filter-bar{color:var(--text--primary)}.snk-filter-bar__filter-list-item__icon.sc-snk-filter-bar{--ez-icon--color:var(--title--primary)}.snk-filter-bar__filter-list-item__icon--secondary.sc-snk-filter-bar{--ez-icon--color:var(--text--secondary)}.snk-filter-bar__filter-list-item.sc-snk-filter-bar:focus-visible{outline:none;background-color:var(--background--medium)}.snk-filter-bar__filter-list-item.sc-snk-filter-bar:hover{background-color:var(--background--medium)}.snk-filter-bar__filter-list-items-container--empty.sc-snk-filter-bar{width:100%;height:100px;display:flex;justify-content:center;align-self:center;align-items:center}.snk-filter-bar__filter-list-items-button--active.sc-snk-filter-bar{position:relative}.snk-filter-bar__filter-list-items-button--active.sc-snk-filter-bar::after{display:flex;position:absolute;content:\"\";width:8px;height:8px;top:7px;left:17px;background-color:var(--icon--alert--color, #008561);border-radius:50%}.snk-filter-bar__filter-modal-item.sc-snk-filter-bar{--modal-item-border-width:2px;display:flex;flex-direction:row;margin-left:var(--modal-item-border-width);border-radius:var(--border--radius-medium, 12px);background-color:var(--background--medium, #f0f3f7);border:none;width:100%}.snk-filter-bar__filter-modal-item.sc-snk-filter-bar:focus-visible{outline:var(--color--primary) solid var(--modal-item-border-width)}.snk-filter-bar__filter-modal-item__check.sc-snk-filter-bar{width:auto}.snk-filter-bar__filter-modal-item__label.sc-snk-filter-bar{font-weight:var(--text-weight--medium)}.snk-filter-bar__filter-modal-content.sc-snk-filter-bar{display:grid;grid-template-rows:auto auto 1fr auto;width:99%;height:100%}";
257
257
 
258
258
  const SnkFilterBar = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
259
259
  constructor() {
@@ -86,7 +86,7 @@ class ServerSideExporterProvider extends CommonsExporter {
86
86
  }
87
87
  }
88
88
 
89
- const snkGridCss = ".sc-snk-grid-h{--snk-grid-min-height:300px;--snk-grid-padding:var(--space--small)}.snk-grid__container.sc-snk-grid{display:flex;height:100%;width:100%;padding:var(--snk-grid-padding)}.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}.snk-grid-container__footer.sc-snk-grid{background-color:var(--background--xlight, #FFF);border-radius:0 0 var(--border--radius-medium) var(--border--radius-medium);box-shadow:var(--shadow--small)}";
89
+ const snkGridCss = ".sc-snk-grid-h{--snk-grid-min-height:300px;--snk-grid-padding:var(--space--small)}.snk-grid__container.sc-snk-grid{display:flex;height:100%;width:100%;padding:var(--snk-grid-padding);outline:none}.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}.snk-grid-container__footer.sc-snk-grid{background-color:var(--background--xlight, #FFF);border-radius:0 0 var(--border--radius-medium) var(--border--radius-medium);box-shadow:var(--shadow--small)}";
90
90
 
91
91
  const SnkGrid = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
92
92
  constructor() {
@@ -157,6 +157,7 @@ const SnkGrid = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
157
157
  this.enableGridInsert = false;
158
158
  this.outlineMode = false;
159
159
  this.strategyExporter = ExporterStrategy.SERVER_SIDE;
160
+ this.paginationCounterMode = 'auto';
160
161
  }
161
162
  reloadConfig() {
162
163
  this.loadConfig();
@@ -564,7 +565,7 @@ const SnkGrid = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
564
565
  return undefined;
565
566
  }
566
567
  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--extra-small" }, this._showSnkFilterBar &&
567
- h(Fragment, null, h("snk-filter-bar", { ref: (ref) => this._snkFilterBar = ref, title: this.filterBarTitle, 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), disablePersonalizedFilter: this.disablePersonalizedFilter, filterBarLegacyConfigName: this.filterBarLegacyConfigName, autoLoad: this.autoLoad, enableLockManagerLoadingComp: this.enableLockManagerLoadingComp }), 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, overflowStrategy: 'none' }, 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, autoFocus: this.autoFocus, enableGridInsert: this.enableGridInsert, enableContinuousInsert: this._enableContinuousInsert, enableLockManagerTaskbarClick: this.enableLockManagerTaskbarClick, enableLockManagerLoadingComp: this.enableLockManagerLoadingComp, outlineMode: this.outlineMode }, h("snk-taskbar", { id: 'teste', dataUnit: this._dataUnit, configName: this.configName, messagesBuilder: this.messagesBuilder, "data-element-id": "grid_left", buttons: this.getGridHeaderButtons(), 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 snk-grid-container__footer" }, 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), selectedIndex: 0, configName: this.configName, onConfigChange: (evt) => this.modalConfigChangeHandler(evt), onConfigCancel: () => this.closeGridConfig(), resourceID: this.resourceID }))));
568
+ h(Fragment, null, h("snk-filter-bar", { ref: (ref) => this._snkFilterBar = ref, title: this.filterBarTitle, 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), disablePersonalizedFilter: this.disablePersonalizedFilter, filterBarLegacyConfigName: this.filterBarLegacyConfigName, autoLoad: this.autoLoad, enableLockManagerLoadingComp: this.enableLockManagerLoadingComp }), 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, overflowStrategy: 'none' }, 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, autoFocus: this.autoFocus, enableGridInsert: this.enableGridInsert, enableContinuousInsert: this._enableContinuousInsert, enableLockManagerTaskbarClick: this.enableLockManagerTaskbarClick, enableLockManagerLoadingComp: this.enableLockManagerLoadingComp, outlineMode: this.outlineMode, paginationCounterMode: this.paginationCounterMode }, h("snk-taskbar", { id: 'teste', dataUnit: this._dataUnit, configName: this.configName, messagesBuilder: this.messagesBuilder, "data-element-id": "grid_left", buttons: this.getGridHeaderButtons(), 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 snk-grid-container__footer" }, 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), selectedIndex: 0, configName: this.configName, onConfigChange: (evt) => this.modalConfigChangeHandler(evt), onConfigCancel: () => this.closeGridConfig(), resourceID: this.resourceID }))));
568
569
  }
569
570
  get _element() { return this; }
570
571
  static get watchers() { return {
@@ -600,6 +601,7 @@ const SnkGrid = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
600
601
  "enableGridInsert": [4, "enable-grid-insert"],
601
602
  "outlineMode": [4, "outline-mode"],
602
603
  "strategyExporter": [1025, "strategy-exporter"],
604
+ "paginationCounterMode": [1, "pagination-counter-mode"],
603
605
  "_dataUnit": [32],
604
606
  "_dataState": [32],
605
607
  "_gridConfig": [32],
@@ -32,6 +32,7 @@ const SnkPesquisa = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
32
32
  this._startLoading = false;
33
33
  this._presentationMode = "list";
34
34
  this._currentView = undefined;
35
+ this._valideDataSource = false;
35
36
  this.searchLoader = undefined;
36
37
  this.treeLoader = undefined;
37
38
  this.selectItem = undefined;
@@ -302,10 +303,13 @@ const SnkPesquisa = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
302
303
  if (this.argument && (!isNaN(argumentNumber) || this.argument.length >= this._limitCharsToSearch)) {
303
304
  this._changeDeboucingTimeout = setTimeout(() => {
304
305
  this.doSearch(isNaN(argumentNumber) ? this.argument : argumentNumber.toString());
306
+ this._valideDataSource = true;
305
307
  }, this._deboucingTime);
306
308
  }
307
309
  else {
308
310
  this._itemList = undefined;
311
+ this._gridDataSource = [];
312
+ this._valideDataSource = false;
309
313
  }
310
314
  }
311
315
  clearDeboucingTimeout() {
@@ -316,6 +320,7 @@ const SnkPesquisa = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
316
320
  }
317
321
  onClickSearch() {
318
322
  this.doSearch((this.argument || "").trim());
323
+ this._valideDataSource = true;
319
324
  }
320
325
  getMessageView() {
321
326
  return this._startLoading
@@ -383,7 +388,8 @@ const SnkPesquisa = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
383
388
  var _a, _b;
384
389
  return (h(Host, null, h("div", { class: "snk-pesquisa" }, h("div", { class: "snk-pesquisa__input" }, h("ez-text-input", { label: "Buscar", class: "ez-margin-right--medium", canShowError: false, ref: (ref) => this._textInput = ref, onEzChange: (event) => this.onChangeValue(event), value: this.argument, "data-element-id": "searchInput" }, h("ez-icon", { slot: "leftIcon", iconName: "search" }), this.argument && ((_a = this._textInput) === null || _a === void 0 ? void 0 : _a.value)
385
390
  ? h("button", { slot: "rightIcon", class: "snk-pesquisa__btn", onClick: () => this.clearSearch() }, h("ez-icon", { iconName: "close" }))
386
- : undefined), h("ez-button", { class: "ez-button--primary", label: "Pesquisar", onClick: () => this.onClickSearch() }), h("ez-button", { class: "ez-margin-left--medium", mode: "icon", iconName: this.getButtonModeInfo().iconName, title: this.getButtonModeInfo().title, onClick: async () => await this.handleChangeViewMode() })), h("div", { class: `snk-pesquisa__records-label ${this._currentView === PESQUISA_VIEW_MODE.TREE ? 'hidden' : ''}` }, h("label", { class: `snk-pesquisa__records ${this.hideRecordsMessage() ? "hidden" : ""}` }, this.getMessageView()), h("label", { class: `snk-pesquisa__records-limit ${this.hideLimitMessage() ? "hidden" : ""}` }, "Essa pesquisa foi limitada, existem mais resultados.")), h("div", { class: "snk-pesquisa__content" }, h("ez-view-stack", { ref: (ref) => this._viewStack = ref, "data-element-id": "simple-crud" }, h("stack-item", null, h("pesquisa-grid", { metadata: this._gridMetadata, dataSource: this._gridDataSource, pkField: this._pkField, descriptionField: this._descriptionField, entityName: this.entityName, shouldLoadConfig: this._currentView === PESQUISA_VIEW_MODE.GRID, onPesquisaGridSelectItem: ({ detail }) => this.selectItem(detail) })), h("stack-item", null, h("div", { class: 'snk-pesquisa__cards-container' }, (_b = this._itemList) === null || _b === void 0 ? void 0 : _b.map((item) => {
391
+ : undefined), h("ez-button", { class: "ez-button--primary", label: "Pesquisar", onClick: () => this.onClickSearch() }), h("ez-button", { class: "ez-margin-left--medium", mode: "icon", iconName: this.getButtonModeInfo().iconName, title: this.getButtonModeInfo().title, onClick: async () => await this.handleChangeViewMode() })), h("div", { class: `snk-pesquisa__records-label ${this._currentView === PESQUISA_VIEW_MODE.TREE ? 'hidden' : ''}` }, h("label", { class: `snk-pesquisa__records ${this.hideRecordsMessage() ? "hidden" : ""}` }, this.getMessageView()), h("label", { class: `snk-pesquisa__records-limit ${this.hideLimitMessage() ? "hidden" : ""}` }, "Essa pesquisa foi limitada, existem mais resultados.")), h("div", { class: "snk-pesquisa__content" }, h("ez-view-stack", { ref: (ref) => this._viewStack = ref, "data-element-id": "simple-crud" }, h("stack-item", null, this._valideDataSource &&
392
+ h("pesquisa-grid", { metadata: this._gridMetadata, dataSource: this._gridDataSource, pkField: this._pkField, descriptionField: this._descriptionField, entityName: this.entityName, shouldLoadConfig: this._currentView === PESQUISA_VIEW_MODE.GRID, onPesquisaGridSelectItem: ({ detail }) => this.selectItem(detail) })), h("stack-item", null, h("div", { class: 'snk-pesquisa__cards-container' }, (_b = this._itemList) === null || _b === void 0 ? void 0 : _b.map((item) => {
387
393
  return (h("ez-card-item", { onEzClick: (event) => this.createOption(event.detail), item: item }));
388
394
  }))), h("stack-item", null, h("pesquisa-tree", { ref: (element) => this._pesquisaTree = element, argument: this.argument, treeLoader: this.treeLoader, allowsNonAnalytic: this.allowsNonAnalytic, shouldLoadTree: this._currentView === PESQUISA_VIEW_MODE.TREE, onPesquisaTreeSelectItem: ({ detail }) => this.selectItem(detail) })))))));
389
395
  }
@@ -403,7 +409,8 @@ const SnkPesquisa = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
403
409
  "_itemList": [32],
404
410
  "_startLoading": [32],
405
411
  "_presentationMode": [32],
406
- "_currentView": [32]
412
+ "_currentView": [32],
413
+ "_valideDataSource": [32]
407
414
  }]);
408
415
  function defineCustomElement() {
409
416
  if (typeof customElements === "undefined") {