@sankhyalabs/sankhyablocks 9.1.0-dev.1 → 9.1.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 (172) hide show
  1. package/dist/cjs/{ClientSideExporterProvider-0ce2bcd9.js → ClientSideExporterProvider-6a4108c9.js} +4 -4
  2. package/dist/cjs/{ConfigStorage-48ba265b.js → ConfigStorage-34aa43d8.js} +2 -2
  3. package/dist/cjs/{DataFetcher-1afdb18e.js → DataFetcher-e23a263b.js} +6 -1
  4. package/dist/cjs/{ISave-c76e2c51.js → ISave-e0be2362.js} +1 -1
  5. package/dist/cjs/{SnkFormConfigManager-aa4631bd.js → SnkFormConfigManager-61bf3266.js} +2 -2
  6. package/dist/cjs/{SnkMessageBuilder-e3b7850b.js → SnkMessageBuilder-221cc88d.js} +10 -2
  7. package/dist/cjs/{auth-fetcher-1687ac0a.js → auth-fetcher-8670a38f.js} +1 -1
  8. package/dist/cjs/{dataunit-fetcher-a723f0dc.js → dataunit-fetcher-c34a8217.js} +4 -1
  9. package/dist/cjs/field-config_2.cjs.entry.js +1 -1
  10. package/dist/cjs/fields-layout.cjs.entry.js +1 -1
  11. package/dist/cjs/fields-selector.cjs.entry.js +2 -2
  12. package/dist/cjs/{form-config-fetcher-40d3f752.js → form-config-fetcher-d8b78403.js} +1 -1
  13. package/dist/cjs/loader.cjs.js +1 -1
  14. package/dist/cjs/pesquisa-grid_2.cjs.entry.js +5 -5
  15. package/dist/cjs/sankhyablocks.cjs.js +1 -1
  16. package/dist/cjs/snk-actions-button_8.cjs.entry.js +63 -203
  17. package/dist/cjs/snk-application.cjs.entry.js +7 -7
  18. package/dist/cjs/snk-attach.cjs.entry.js +33 -16
  19. package/dist/cjs/snk-crud.cjs.entry.js +6 -5
  20. package/dist/cjs/snk-data-exporter.cjs.entry.js +6 -6
  21. package/dist/cjs/{snk-data-unit-3684c96e.js → snk-data-unit-a4f9287b.js} +2 -2
  22. package/dist/cjs/snk-data-unit.cjs.entry.js +4 -4
  23. package/dist/cjs/snk-detail-view.cjs.entry.js +8 -8
  24. package/dist/cjs/snk-entity-list.cjs.entry.js +20 -14
  25. package/dist/cjs/snk-filter-bar_4.cjs.entry.js +44 -112
  26. package/dist/cjs/snk-filter-detail.cjs.entry.js +3 -1
  27. package/dist/cjs/snk-filter-modal-item.cjs.entry.js +3 -3
  28. package/dist/cjs/snk-form_2.cjs.entry.js +4 -4
  29. package/dist/cjs/snk-grid.cjs.entry.js +9 -8
  30. package/dist/cjs/{snk-guides-viewer-edc0a00a.js → snk-guides-viewer-29298823.js} +5 -5
  31. package/dist/cjs/snk-guides-viewer.cjs.entry.js +7 -7
  32. package/dist/cjs/snk-personalized-filter-editor.cjs.entry.js +6 -4
  33. package/dist/cjs/snk-personalized-filter.cjs.entry.js +3 -3
  34. package/dist/cjs/snk-pesquisa.cjs.entry.js +4 -4
  35. package/dist/cjs/snk-simple-crud.cjs.entry.js +15 -15
  36. package/dist/collection/components/snk-attach/snk-attach.js +45 -11
  37. package/dist/collection/components/snk-crud/snk-crud.js +19 -0
  38. package/dist/collection/components/snk-entity-list/snk-entity-list.js +40 -15
  39. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-personalized-filter-editor/snk-personalized-filter-editor.js +6 -4
  40. package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-detail.js +3 -1
  41. package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-item.css +4 -0
  42. package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-item.js +49 -121
  43. package/dist/collection/components/snk-form-config/field-item/field-item.css +3 -23
  44. package/dist/collection/components/snk-form-config/fields-layout/fields-layout.css +4 -12
  45. package/dist/collection/components/snk-form-config/fields-selector/fields-selector.css +4 -0
  46. package/dist/collection/components/snk-form-config/fields-selector/fields-selector.js +1 -1
  47. package/dist/collection/components/snk-grid/snk-grid.js +37 -2
  48. package/dist/collection/components/snk-grid-config/snk-grid-config.css +7 -41
  49. package/dist/collection/components/snk-grid-config/snk-grid-config.js +58 -193
  50. package/dist/collection/components/snk-grid-config/snk-select-box/snk-select-box.css +1 -0
  51. package/dist/collection/components/snk-grid-config/snk-select-box/snk-select-box.js +20 -1
  52. package/dist/collection/components/snk-pesquisa/pesquisa-grid/pesquisa-grid.js +1 -1
  53. package/dist/collection/components/snk-simple-crud/snk-simple-crud.js +9 -9
  54. package/dist/collection/components/snk-simple-form-config/snk-simple-form-config.css +1 -0
  55. package/dist/collection/components/snk-simple-form-config/snk-simple-form-config.js +1 -1
  56. package/dist/collection/lib/http/data-fetcher/DataFetcher.js +6 -1
  57. package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/loadstrategy/DatasetStrategy.js +3 -0
  58. package/dist/collection/lib/message/resources/snk-grid.msg.js +10 -2
  59. package/dist/components/DataFetcher.js +6 -1
  60. package/dist/components/SnkMessageBuilder.js +10 -2
  61. package/dist/components/dataunit-fetcher.js +3 -0
  62. package/dist/components/field-item2.js +1 -1
  63. package/dist/components/fields-layout2.js +1 -1
  64. package/dist/components/fields-selector2.js +2 -2
  65. package/dist/components/pesquisa-grid2.js +1 -1
  66. package/dist/components/snk-attach2.js +29 -11
  67. package/dist/components/snk-crud.js +1 -0
  68. package/dist/components/snk-entity-list.js +21 -15
  69. package/dist/components/snk-filter-detail2.js +3 -1
  70. package/dist/components/snk-filter-item2.js +43 -111
  71. package/dist/components/snk-grid-config2.js +56 -195
  72. package/dist/components/snk-grid2.js +5 -2
  73. package/dist/components/snk-personalized-filter-editor.js +6 -4
  74. package/dist/components/snk-select-box2.js +5 -3
  75. package/dist/components/snk-simple-crud2.js +8 -8
  76. package/dist/components/snk-simple-form-config2.js +2 -2
  77. package/dist/esm/{ClientSideExporterProvider-3ed744fd.js → ClientSideExporterProvider-09dee1a3.js} +4 -4
  78. package/dist/esm/{ConfigStorage-79b9e180.js → ConfigStorage-89154c4e.js} +2 -2
  79. package/dist/esm/{DataFetcher-88e56266.js → DataFetcher-db08cad0.js} +6 -1
  80. package/dist/esm/{ISave-5efafc97.js → ISave-da565824.js} +1 -1
  81. package/dist/esm/{SnkFormConfigManager-b4b93298.js → SnkFormConfigManager-d64d62d6.js} +2 -2
  82. package/dist/esm/{SnkMessageBuilder-9c269caf.js → SnkMessageBuilder-da87a821.js} +10 -2
  83. package/dist/esm/{auth-fetcher-3510520e.js → auth-fetcher-43c8d76b.js} +1 -1
  84. package/dist/esm/{dataunit-fetcher-0e025732.js → dataunit-fetcher-1b78797a.js} +4 -1
  85. package/dist/esm/field-config_2.entry.js +1 -1
  86. package/dist/esm/fields-layout.entry.js +1 -1
  87. package/dist/esm/fields-selector.entry.js +2 -2
  88. package/dist/esm/{form-config-fetcher-fa208a6c.js → form-config-fetcher-e623539b.js} +1 -1
  89. package/dist/esm/loader.js +1 -1
  90. package/dist/esm/pesquisa-grid_2.entry.js +5 -5
  91. package/dist/esm/sankhyablocks.js +1 -1
  92. package/dist/esm/snk-actions-button_8.entry.js +63 -203
  93. package/dist/esm/snk-application.entry.js +7 -7
  94. package/dist/esm/snk-attach.entry.js +33 -16
  95. package/dist/esm/snk-crud.entry.js +6 -5
  96. package/dist/esm/snk-data-exporter.entry.js +6 -6
  97. package/dist/esm/{snk-data-unit-027bca56.js → snk-data-unit-330db397.js} +2 -2
  98. package/dist/esm/snk-data-unit.entry.js +4 -4
  99. package/dist/esm/snk-detail-view.entry.js +8 -8
  100. package/dist/esm/snk-entity-list.entry.js +20 -14
  101. package/dist/esm/snk-filter-bar_4.entry.js +45 -113
  102. package/dist/esm/snk-filter-detail.entry.js +3 -1
  103. package/dist/esm/snk-filter-modal-item.entry.js +3 -3
  104. package/dist/esm/snk-form_2.entry.js +4 -4
  105. package/dist/esm/snk-grid.entry.js +9 -8
  106. package/dist/esm/{snk-guides-viewer-32f3d3ab.js → snk-guides-viewer-9335318d.js} +5 -5
  107. package/dist/esm/snk-guides-viewer.entry.js +7 -7
  108. package/dist/esm/snk-personalized-filter-editor.entry.js +6 -4
  109. package/dist/esm/snk-personalized-filter.entry.js +3 -3
  110. package/dist/esm/snk-pesquisa.entry.js +4 -4
  111. package/dist/esm/snk-simple-crud.entry.js +15 -15
  112. package/dist/sankhyablocks/p-02480593.entry.js +1 -0
  113. package/dist/sankhyablocks/{p-09e60995.entry.js → p-1079e61b.entry.js} +1 -1
  114. package/dist/sankhyablocks/p-162bddae.entry.js +1 -0
  115. package/dist/sankhyablocks/{p-1456d7cb.entry.js → p-1c69a957.entry.js} +1 -1
  116. package/dist/sankhyablocks/{p-349d1968.entry.js → p-23b20add.entry.js} +1 -1
  117. package/dist/sankhyablocks/p-25209340.entry.js +1 -0
  118. package/dist/sankhyablocks/p-295b83ae.entry.js +1 -0
  119. package/dist/sankhyablocks/{p-a5bb2f93.entry.js → p-2d58f98e.entry.js} +1 -1
  120. package/dist/sankhyablocks/{p-9751c42f.entry.js → p-31193a60.entry.js} +1 -1
  121. package/dist/sankhyablocks/{p-7993b2e3.js → p-37b4f642.js} +1 -1
  122. package/dist/sankhyablocks/{p-2bde486e.js → p-3b1d73f9.js} +1 -1
  123. package/dist/sankhyablocks/{p-a6513fcb.js → p-412e06e9.js} +1 -1
  124. package/dist/sankhyablocks/p-5126b34e.entry.js +1 -0
  125. package/dist/sankhyablocks/{p-e3521eae.entry.js → p-5b31b239.entry.js} +1 -1
  126. package/dist/sankhyablocks/{p-bd665460.entry.js → p-60d3abf6.entry.js} +1 -1
  127. package/dist/sankhyablocks/{p-0cb295c1.entry.js → p-7c9815ea.entry.js} +1 -1
  128. package/dist/sankhyablocks/{p-a06bf7b9.entry.js → p-7ced2cf4.entry.js} +1 -1
  129. package/dist/sankhyablocks/{p-6416975c.js → p-8758404f.js} +1 -1
  130. package/dist/sankhyablocks/{p-65c5d430.entry.js → p-9a6fbf3d.entry.js} +1 -1
  131. package/dist/sankhyablocks/p-a2c6944d.entry.js +1 -0
  132. package/dist/sankhyablocks/{p-601b252b.js → p-b21d32f6.js} +1 -1
  133. package/dist/sankhyablocks/{p-c926cf6b.entry.js → p-b2946adb.entry.js} +1 -1
  134. package/dist/sankhyablocks/{p-6dd38d7b.js → p-c9657baa.js} +1 -1
  135. package/dist/sankhyablocks/p-cb2a4613.entry.js +1 -0
  136. package/dist/sankhyablocks/{p-fbba7e3d.js → p-cd1a5b6a.js} +1 -1
  137. package/dist/sankhyablocks/p-cfc219f6.entry.js +1 -0
  138. package/dist/sankhyablocks/{p-73285a8a.js → p-e25412da.js} +1 -1
  139. package/dist/sankhyablocks/p-e56eb36b.entry.js +1 -0
  140. package/dist/sankhyablocks/p-f442c8f6.entry.js +1 -0
  141. package/dist/sankhyablocks/{p-763b04fa.js → p-fa591f6f.js} +1 -1
  142. package/dist/sankhyablocks/p-fc4eac32.js +1 -0
  143. package/dist/sankhyablocks/{p-fc0b609e.js → p-fc87708a.js} +1 -1
  144. package/dist/sankhyablocks/p-fd571197.entry.js +1 -0
  145. package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
  146. package/dist/types/components/snk-attach/interfaces/ICrudConfig.d.ts +1 -1
  147. package/dist/types/components/snk-attach/snk-attach.d.ts +5 -0
  148. package/dist/types/components/snk-crud/snk-crud.d.ts +1 -0
  149. package/dist/types/components/snk-entity-list/snk-entity-list.d.ts +8 -4
  150. package/dist/types/components/snk-filter-bar/filter-item/snk-filter-detail.d.ts +1 -0
  151. package/dist/types/components/snk-filter-bar/filter-item/snk-filter-item.d.ts +10 -20
  152. package/dist/types/components/snk-grid/snk-grid.d.ts +8 -0
  153. package/dist/types/components/snk-grid-config/snk-grid-config.d.ts +7 -20
  154. package/dist/types/components/snk-grid-config/snk-select-box/snk-select-box.d.ts +4 -0
  155. package/dist/types/components/snk-simple-crud/snk-simple-crud.d.ts +1 -1
  156. package/dist/types/components.d.ts +41 -1
  157. package/dist/types/lib/http/data-fetcher/DataFetcher.d.ts +1 -0
  158. package/package.json +1 -1
  159. package/dist/sankhyablocks/p-19156e59.entry.js +0 -1
  160. package/dist/sankhyablocks/p-3a48bff3.entry.js +0 -1
  161. package/dist/sankhyablocks/p-3f24c9b2.js +0 -1
  162. package/dist/sankhyablocks/p-67d6d0c8.entry.js +0 -1
  163. package/dist/sankhyablocks/p-83c100f2.entry.js +0 -1
  164. package/dist/sankhyablocks/p-90805683.entry.js +0 -1
  165. package/dist/sankhyablocks/p-c3324d79.entry.js +0 -1
  166. package/dist/sankhyablocks/p-cfd0a4c6.entry.js +0 -1
  167. package/dist/sankhyablocks/p-d9491f6f.entry.js +0 -1
  168. package/dist/sankhyablocks/p-e7cccc45.entry.js +0 -1
  169. package/dist/sankhyablocks/p-e824d565.entry.js +0 -1
  170. package/dist/sankhyablocks/p-ff7060bc.entry.js +0 -1
  171. /package/dist/collection/components/snk-simple-crud/{regular-buttons.js → snk-simple-crud.constants.js} +0 -0
  172. /package/dist/types/components/snk-simple-crud/{regular-buttons.d.ts → snk-simple-crud.constants.d.ts} +0 -0
@@ -4,16 +4,16 @@ import { ApplicationUtils, DialogType } from '@sankhyalabs/ezui/dist/collection/
4
4
  import { I as IExportType } from './IFetchDataExporterParams-d73bed3d.js';
5
5
  import { D as DataExporterOption, a as DataExporterType, b as DataExporterFormat } from './index-b40568ff.js';
6
6
  import { R as REPORT_LAUNCHER_RESOURCE_ID } from './constants-7b422de0.js';
7
- import { D as DataFetcher } from './DataFetcher-88e56266.js';
8
- import { S as SnkDataUnit } from './snk-data-unit-027bca56.js';
9
- import './ISave-5efafc97.js';
7
+ import { D as DataFetcher } from './DataFetcher-db08cad0.js';
8
+ import { S as SnkDataUnit } from './snk-data-unit-330db397.js';
9
+ import './ISave-da565824.js';
10
10
  import '@sankhyalabs/ezui/dist/collection/utils/constants';
11
11
  import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
12
- import './dataunit-fetcher-0e025732.js';
12
+ import './dataunit-fetcher-1b78797a.js';
13
13
  import './filter-item-type.enum-d45e026f.js';
14
- import './form-config-fetcher-fa208a6c.js';
14
+ import './form-config-fetcher-e623539b.js';
15
15
  import './PrintUtils-3e4ff0f5.js';
16
- import './SnkMessageBuilder-9c269caf.js';
16
+ import './SnkMessageBuilder-da87a821.js';
17
17
  import '@sankhyalabs/core/dist/dataunit/metadata/DataType';
18
18
  import './GetSelectedRecordsIDsInfo-9fa41508.js';
19
19
  import '@sankhyalabs/ezui/dist/collection/components/ez-grid/utils';
@@ -1,8 +1,8 @@
1
1
  import { r as registerInstance, c as createEvent, h, g as getElement, H as Host } from './index-479e1293.js';
2
2
  import { Action, ObjectUtils, DataUnitAction, StringUtils, ApplicationContext } from '@sankhyalabs/core';
3
3
  import { ApplicationUtils, DialogType } from '@sankhyalabs/ezui/dist/collection/utils';
4
- import { O as OperationMap, S as SnkMessageBuilder } from './SnkMessageBuilder-9c269caf.js';
5
- import { g as getRecordValue, a as DatasetStrategy } from './dataunit-fetcher-0e025732.js';
4
+ import { O as OperationMap, S as SnkMessageBuilder } from './SnkMessageBuilder-da87a821.js';
5
+ import { g as getRecordValue, a as DatasetStrategy } from './dataunit-fetcher-1b78797a.js';
6
6
  import { convertType } from '@sankhyalabs/core/dist/dataunit/metadata/DataType';
7
7
  import { g as getSelectedRecordsIDsInfo } from './GetSelectedRecordsIDsInfo-9fa41508.js';
8
8
 
@@ -1,10 +1,10 @@
1
- export { S as snk_data_unit } from './snk-data-unit-027bca56.js';
1
+ export { S as snk_data_unit } from './snk-data-unit-330db397.js';
2
2
  import './index-479e1293.js';
3
3
  import '@sankhyalabs/core';
4
4
  import '@sankhyalabs/ezui/dist/collection/utils';
5
- import './SnkMessageBuilder-9c269caf.js';
6
- import './dataunit-fetcher-0e025732.js';
7
- import './DataFetcher-88e56266.js';
5
+ import './SnkMessageBuilder-da87a821.js';
6
+ import './dataunit-fetcher-1b78797a.js';
7
+ import './DataFetcher-db08cad0.js';
8
8
  import './PrintUtils-3e4ff0f5.js';
9
9
  import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
10
10
  import '@sankhyalabs/ezui/dist/collection/utils/constants';
@@ -1,21 +1,21 @@
1
1
  import { r as registerInstance, c as createEvent, f as forceUpdate, h, H as Host, g as getElement } from './index-479e1293.js';
2
2
  import { Action, StringUtils, KeyboardManager } from '@sankhyalabs/core';
3
- import { S as SnkFormConfigManager } from './SnkFormConfigManager-b4b93298.js';
3
+ import { S as SnkFormConfigManager } from './SnkFormConfigManager-d64d62d6.js';
4
4
  import { FormMetadata, buildFormMetadata } from '@sankhyalabs/ezui/dist/collection/utils/form';
5
- import './DataFetcher-88e56266.js';
6
- import './ISave-5efafc97.js';
5
+ import './DataFetcher-db08cad0.js';
6
+ import './ISave-da565824.js';
7
7
  import { P as PresentationMode } from './index-b40568ff.js';
8
8
  import '@sankhyalabs/ezui/dist/collection/utils/constants';
9
9
  import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
10
- import './dataunit-fetcher-0e025732.js';
10
+ import './dataunit-fetcher-1b78797a.js';
11
11
  import './filter-item-type.enum-d45e026f.js';
12
- import './form-config-fetcher-fa208a6c.js';
12
+ import './form-config-fetcher-e623539b.js';
13
13
  import { V as VIEW_MODE } from './constants-7b422de0.js';
14
14
  import { T as TaskbarElement } from './taskbar-elements-171476d4.js';
15
- import { S as SnkGuidesViewer } from './snk-guides-viewer-32f3d3ab.js';
16
- import { S as SnkMessageBuilder } from './SnkMessageBuilder-9c269caf.js';
15
+ import { S as SnkGuidesViewer } from './snk-guides-viewer-9335318d.js';
16
+ import { S as SnkMessageBuilder } from './SnkMessageBuilder-da87a821.js';
17
17
  import { buildFieldSearch, SHORTCUT_SEARCH_FIELD, LABEL_SEARCH_FIELD } from '@sankhyalabs/ezui/dist/collection/utils';
18
- import './ConfigStorage-79b9e180.js';
18
+ import './ConfigStorage-89154c4e.js';
19
19
  import './PrintUtils-3e4ff0f5.js';
20
20
  import '@sankhyalabs/ezui/dist/collection/components/ez-grid/utils';
21
21
  import '@sankhyalabs/core/dist/utils/SortingUtils';
@@ -7,11 +7,11 @@ const SnkEntityList = class {
7
7
  constructor(hostRef) {
8
8
  registerInstance(this, hostRef);
9
9
  this.valueChanged = createEvent(this, "valueChanged", 7);
10
- this._searchValue = undefined;
11
10
  this._ezListSource = [];
12
11
  this.config = undefined;
13
12
  this.rightListSlotBuilder = undefined;
14
13
  this.maxHeightList = "";
14
+ this.value = undefined;
15
15
  }
16
16
  async reloadList() {
17
17
  this.loadListSource();
@@ -73,18 +73,22 @@ const SnkEntityList = class {
73
73
  }
74
74
  onEzSearchChange(evt) {
75
75
  var _a, _b, _c, _d;
76
- if (evt.detail != undefined && ((_a = (this.getListConfigValue(this.config))) === null || _a === void 0 ? void 0 : _a.find(i => { var _a; return (i === null || i === void 0 ? void 0 : i.id) == ((_a = evt.detail) === null || _a === void 0 ? void 0 : _a.value); })) === undefined) {
77
- this.config = Object.assign(Object.assign({}, this.config), { value: [
78
- ...((_c = (_b = this.config) === null || _b === void 0 ? void 0 : _b.value) !== null && _c !== void 0 ? _c : []),
79
- {
80
- id: evt.detail.value,
81
- check: true,
82
- label: evt.detail.label
83
- }
84
- ] });
85
- this.loadListSource();
86
- this.valueChanged.emit((_d = this.config) === null || _d === void 0 ? void 0 : _d.value);
76
+ const newValueIsEmpty = ObjectUtils.isEmptySafetyCheck(evt.detail);
77
+ const hasConfingOnList = (_a = this.getListConfigValue(this.config)) === null || _a === void 0 ? void 0 : _a.find((i) => { var _a; return (i === null || i === void 0 ? void 0 : i.id) === ((_a = evt.detail) === null || _a === void 0 ? void 0 : _a.value); });
78
+ if (newValueIsEmpty || hasConfingOnList) {
79
+ return;
87
80
  }
81
+ this.config = Object.assign(Object.assign({}, this.config), { value: [
82
+ ...((_c = (_b = this.config) === null || _b === void 0 ? void 0 : _b.value) !== null && _c !== void 0 ? _c : []),
83
+ {
84
+ id: evt.detail.value,
85
+ check: true,
86
+ label: evt.detail.label
87
+ }
88
+ ] });
89
+ this.loadListSource();
90
+ this.value = this.config.value;
91
+ this.valueChanged.emit((_d = this.config) === null || _d === void 0 ? void 0 : _d.value);
88
92
  }
89
93
  getMessage(key, params) {
90
94
  var _a;
@@ -95,8 +99,10 @@ const SnkEntityList = class {
95
99
  return (_d = (_b = (_a = config.value) === null || _a === void 0 ? void 0 : _a.elements) !== null && _b !== void 0 ? _b : (_c = config === null || config === void 0 ? void 0 : config.value) === null || _c === void 0 ? void 0 : _c.members) !== null && _d !== void 0 ? _d : config === null || config === void 0 ? void 0 : config.value;
96
100
  }
97
101
  render() {
98
- var _a, _b;
99
- return (h(Host, null, h("ez-search", { ref: elem => this._searchElement = elem, optionLoader: argument => this.optionLoader(argument), value: this._searchValue, label: (_a = this.config) === null || _a === void 0 ? void 0 : _a.label, onEzChange: evt => this.onEzSearchChange(evt), suppressEmptyOption: true }), ((_b = this._ezListSource) === null || _b === void 0 ? void 0 : _b.length) > 0 && (h("label", { class: "label" }, this.getMessage("snkEntityList.selected"))), h("div", { style: this.maxHeightList ? { 'max-height': this.maxHeightList } : {}, class: { "snk-entity-list--overflow": !!this.maxHeightList } }, h("ez-list", { ref: (el) => this._ezList = el, id: "snkEntityList", listMode: "check", dataSource: this._ezListSource, hoverFeedback: true, itemSlotBuilder: this.rightListSlotBuilder, onEzCheckChange: evt => this.ezListChangeListener(evt) }))));
102
+ var _a, _b, _c;
103
+ const isSearchPlus = ((_a = this.config.props) === null || _a === void 0 ? void 0 : _a["useSearchPlus"]) == true;
104
+ const TagName = isSearchPlus ? "ez-search-plus" : "ez-search";
105
+ return (h(Host, null, h(TagName, { ref: elem => this._searchElement = elem, optionLoader: argument => this.optionLoader(argument), label: (_b = this.config) === null || _b === void 0 ? void 0 : _b.label, onEzChange: evt => this.onEzSearchChange(evt), suppressEmptyOption: true, stopPropagateEnterKeyEvent: true }), ((_c = this._ezListSource) === null || _c === void 0 ? void 0 : _c.length) > 0 && (h("label", { class: "label" }, this.getMessage("snkEntityList.selected"))), h("div", { style: this.maxHeightList ? { 'max-height': this.maxHeightList } : {}, class: { "snk-entity-list--overflow": !!this.maxHeightList } }, h("ez-list", { ref: (el) => this._ezList = el, id: "snkEntityList", listMode: "check", dataSource: this._ezListSource, hoverFeedback: true, itemSlotBuilder: this.rightListSlotBuilder, onEzCheckChange: evt => this.ezListChangeListener(evt) }))));
100
106
  }
101
107
  static get watchers() { return {
102
108
  "config": ["observeConfig"]
@@ -1,7 +1,7 @@
1
1
  import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-479e1293.js';
2
- import { DataType, StringUtils, ObjectUtils, ElementIDUtils, ErrorException, ApplicationContext, LockManager, LockManagerOperation, FloatingManager, DateUtils, MaskFormatter, ArrayUtils } from '@sankhyalabs/core';
2
+ import { DataType, StringUtils, ObjectUtils, ElementIDUtils, ErrorException, ApplicationContext, LockManager, LockManagerOperation, DateUtils, MaskFormatter, FloatingManager, ArrayUtils } from '@sankhyalabs/core';
3
3
  import { EzScrollDirection } from '@sankhyalabs/ezui/dist/collection/components/ez-scroller/EzScrollDirection';
4
- import { C as ConfigStorage } from './ConfigStorage-79b9e180.js';
4
+ import { C as ConfigStorage } from './ConfigStorage-89154c4e.js';
5
5
  import { toString } from '@sankhyalabs/core/dist/dataunit/metadata/DataType';
6
6
  import { F as FilterItemType } from './filter-item-type.enum-d45e026f.js';
7
7
  import { F as FilterOperand, D as DefaultFilter } from './index-8acbae97.js';
@@ -11,8 +11,8 @@ import { P as PersonalizedFilterUtils } from './PersonalizedFilterUtils-2db38ff2
11
11
  import { ModalAction } from '@sankhyalabs/ezui/dist/collection/components/ez-modal-container';
12
12
  import { F as FilterType } from './filter-type.enum-f6a8fe23.js';
13
13
  import { A as ActionDefaultFilter } from './default-filters-50105e43.js';
14
- import './form-config-fetcher-fa208a6c.js';
15
- import './DataFetcher-88e56266.js';
14
+ import './form-config-fetcher-e623539b.js';
15
+ import './DataFetcher-db08cad0.js';
16
16
  import './PrintUtils-3e4ff0f5.js';
17
17
  import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
18
18
 
@@ -750,18 +750,13 @@ const SnkFilterBar = class {
750
750
  };
751
751
  SnkFilterBar.style = snkFilterBarCss;
752
752
 
753
+ const snkFilterItemCss = "ez-popover-core.sc-snk-filter-item{--ez-popover__box--z-index:var(--elevation--20, 20);--ez-popover__box--overlay-z-index:var(--elevation--16, 16)}";
754
+
753
755
  const SnkFilterItem = class {
754
756
  constructor(hostRef) {
755
757
  registerInstance(this, hostRef);
756
758
  this.visibleChanged = createEvent(this, "visibleChanged", 7);
757
759
  this.filterChange = createEvent(this, "filterChange", 3);
758
- this.innerClickCheck = (_floatingContainer, node) => {
759
- if (node.id != FloatingManager.MODAL_ELEMENT_ID) {
760
- return true;
761
- }
762
- this.detailIsVisible = false;
763
- return false;
764
- };
765
760
  this.detailIsVisible = undefined;
766
761
  this.config = undefined;
767
762
  this.getMessage = undefined;
@@ -770,57 +765,28 @@ const SnkFilterItem = class {
770
765
  observeDetailIsVisible(value) {
771
766
  this.visibleChanged.emit(value);
772
767
  }
768
+ /**
769
+ * Emitido quando o estado do filtro é alterado.
770
+ */
771
+ filterChangeListener() {
772
+ this.hideDetail();
773
+ }
773
774
  /**
774
775
  * Exibe os detalhes de um item da lista.
775
776
  */
776
777
  async showUp(open = false) {
777
- return new Promise(resolve => {
778
- var _a;
779
- this._filterItemElement.scrollIntoView({ behavior: "auto", block: "nearest", inline: "nearest" });
780
- if (open) {
781
- this._closeCallback = resolve;
782
- (_a = this._chipElement) === null || _a === void 0 ? void 0 : _a.blur();
783
- window.requestAnimationFrame(() => {
784
- this._floatingID = FloatingManager.float(this._popover, this._popoverContainer, this.getFloatOptions());
785
- this._popover.show();
786
- this.detailIsVisible = true;
787
- });
788
- }
789
- });
790
- }
791
- updatePosition() {
792
- if (this._floatingID == undefined) {
793
- return;
778
+ var _a;
779
+ this._filterItemElement.scrollIntoView({ behavior: "auto", block: "nearest", inline: "nearest" });
780
+ if (open) {
781
+ await ((_a = this._chipElement) === null || _a === void 0 ? void 0 : _a.setBlur());
782
+ await this._popover.showUnder(this._chipElement);
794
783
  }
795
- FloatingManager.updateFloatPosition(this._popover, this._popoverContainer, this.getFloatOptions());
796
- }
797
- getFloatOptions() {
798
- return {
799
- autoClose: true,
800
- innerClickTest: this.innerClickCheck,
801
- backClickListener: () => this.onDetailCloseCallback(),
802
- left: this.getOffsetLeft(),
803
- top: this.getOffsetTop(),
804
- useOverlay: true,
805
- overlayClassName: 'ez-scrim ez-scrim--light',
806
- isFixed: true
807
- };
808
784
  }
809
- getOffsetLeft() {
810
- const padding = getComputedStyle(this._filterItemElement).getPropertyValue("padding-left");
811
- const rect = this._filterItemElement.getBoundingClientRect();
812
- // Width baseado no conteudo do snk-filter-detail. Nesse momento ele retorna 0px pois ainda não foi criado em tela.
813
- const filterDetailWidth = 430;
814
- const adjustRightPosition = filterDetailWidth - (document.body.clientWidth - rect.left);
815
- return `calc(${rect.x}px + ${padding} - ${adjustRightPosition > 0 ? adjustRightPosition : 0}px)`;
816
- }
817
- getOffsetTop() {
818
- const rect = this._filterItemElement.getBoundingClientRect();
819
- return (rect.y + rect.height) + "px";
820
- }
821
- controlScrollPage() {
822
- window.removeEventListener("scroll", this.updatePosition.bind(this));
823
- window.addEventListener("scroll", this.updatePosition.bind(this));
785
+ /**
786
+ * Oculta os detalhes de um item da lista.
787
+ */
788
+ async hideDetail() {
789
+ await this._popover.hide();
824
790
  }
825
791
  getConfigChanges() {
826
792
  var _a;
@@ -833,51 +799,24 @@ const SnkFilterItem = class {
833
799
  const newValue = hasMultiValues ? configToBeCleared.value.map((valueItem) => (Object.assign(Object.assign({}, valueItem), { check: false }))) : undefined;
834
800
  return Object.assign(Object.assign({}, configToBeCleared), { value: newValue });
835
801
  }
836
- /**
837
- * Oculta os detalhes de um item da lista.
838
- */
839
- async hideDetail() {
840
- if (this.detailIsVisible) {
841
- if (this._floatingID != undefined) {
842
- FloatingManager.close(this._floatingID);
843
- }
802
+ clearFilter(event) {
803
+ event === null || event === void 0 ? void 0 : event.stopPropagation();
804
+ if (this.canClearFilter()) {
805
+ const configChanged = this.getConfigChanges();
806
+ this.filterChange.emit(configChanged);
844
807
  }
845
- }
846
- onDetailCloseCallback() {
847
- this._floatingID = undefined;
848
- this.detailIsVisible = false;
849
- if (this._closeCallback) {
850
- this._closeCallback();
851
- this._closeCallback = undefined;
852
- }
853
- }
854
- //---------------------------------------------
855
- // Event handlers
856
- //---------------------------------------------
857
- clickListener(evt) {
858
- if ([this._chipElement, this._leftIconElement, this._rightIconElement].includes(evt.target)) {
859
- if (evt.target === this._rightIconElement && this.canClearFilter()) {
860
- const configChanged = this.getConfigChanges();
861
- this.filterChange.emit(configChanged);
862
- }
863
- else {
864
- if (this.detailIsVisible) {
865
- this.hideDetail();
866
- }
867
- else {
868
- this.showUp(true);
869
- }
870
- }
871
- evt.preventDefault();
872
- evt.stopImmediatePropagation();
873
- evt.stopPropagation();
808
+ else {
809
+ this.togglePopover();
874
810
  }
875
811
  }
876
- mouseDownListener(evt) {
877
- if (this.detailIsVisible && [this._chipElement, this._leftIconElement, this._rightIconElement].includes(evt.target)) {
878
- evt.preventDefault();
879
- evt.stopImmediatePropagation();
880
- evt.stopPropagation();
812
+ async togglePopover(event) {
813
+ event === null || event === void 0 ? void 0 : event.preventDefault();
814
+ event === null || event === void 0 ? void 0 : event.stopPropagation();
815
+ if (this.detailIsVisible) {
816
+ await this.hideDetail();
817
+ }
818
+ else {
819
+ await this.showUp(true);
881
820
  }
882
821
  }
883
822
  getLabel(isTooltipLabel = false) {
@@ -998,20 +937,6 @@ const SnkFilterItem = class {
998
937
  ElementIDUtils.addIDInfo(this._filterItemElement);
999
938
  this._idSnkFilterDetail = `filterDetail_${this.config.id}`;
1000
939
  }
1001
- this.controlScrollPage();
1002
- }
1003
- componentDidRender() {
1004
- if (this._floatingID == undefined) {
1005
- if (this._popover) {
1006
- this._popover.remove();
1007
- }
1008
- }
1009
- }
1010
- /**
1011
- * Emitido quando o estado do filtro é alterado.
1012
- */
1013
- filterChangeListener() {
1014
- this.hideDetail();
1015
940
  }
1016
941
  canClearFilter() {
1017
942
  const { value, groupedItems = [] } = this.config;
@@ -1042,21 +967,28 @@ const SnkFilterItem = class {
1042
967
  return (config.type !== FilterItemType.MULTI_LIST && config.value !== undefined) || this.hasActiveElements(config.value);
1043
968
  }
1044
969
  getEnabledChip() {
970
+ if (this.detailIsVisible) {
971
+ return true;
972
+ }
1045
973
  if (this.config.type === FilterItemType.PERSONALIZED) {
1046
974
  const { groupedItems = [] } = this.config;
1047
975
  return groupedItems.some(item => item.visible);
1048
976
  }
1049
977
  return this.hasActiveValue(this.config);
1050
978
  }
979
+ handleVisibilityPopover(event) {
980
+ this.detailIsVisible = event.detail;
981
+ }
1051
982
  render() {
1052
983
  const leftIcon = this.getLeftIconName();
1053
- return (h(Host, null, this.showChips && (h("ez-chip", { id: this.config.id, ref: ref => this._chipElement = ref, label: this.getLabel(), value: this.getEnabledChip() }, leftIcon && (h("ez-icon", { ref: ref => this._leftIconElement = ref, iconName: leftIcon, class: "ez-padding-right--small", slot: "leftIcon" })), h("ez-icon", { ref: ref => this._rightIconElement = ref, iconName: this.getRightIconName(), class: "ez-padding-left--small", slot: "rightIcon", id: "removeFilter" }))), h("section", { class: "ez-margin-top--small sc-snk-filter-bar snk-filter__popover-container", ref: elem => this._popoverContainer = elem }, h("snk-filter-detail", { config: this.config, getMessage: this.getMessage, class: "sc-snk-filter-bar snk-filter__popover ez-padding--small ez-elevation--16", ref: elem => this._popover = elem, key: this.config.id, "data-element-id": this._idSnkFilterDetail, showHardFixed: this.showChips }))));
984
+ return (h(Host, null, this.showChips && (h("ez-chip", { id: this.config.id, ref: ref => this._chipElement = ref, label: this.getLabel(), value: this.getEnabledChip(), onClick: (event) => this.togglePopover(event), disableAutoUpdateValue: true }, leftIcon && (h("ez-icon", { ref: ref => this._leftIconElement = ref, iconName: leftIcon, class: "ez-padding-right--small", slot: "leftIcon" })), h("ez-icon", { ref: ref => this._rightIconElement = ref, iconName: this.getRightIconName(), class: "ez-padding-left--small", slot: "rightIcon", id: "removeFilter", onClick: (event) => this.clearFilter(event) }))), h("ez-popover-core", { ref: elem => this._popover = elem, onEzVisibilityChange: (event) => this.handleVisibilityPopover(event) }, h("snk-filter-detail", { key: this.config.id, config: this.config, getMessage: this.getMessage, class: "sc-snk-filter-bar snk-filter__popover ez-padding--small ez-elevation--16", "data-element-id": this._idSnkFilterDetail, showHardFixed: this.showChips }))));
1054
985
  }
1055
986
  get _filterItemElement() { return getElement(this); }
1056
987
  static get watchers() { return {
1057
988
  "detailIsVisible": ["observeDetailIsVisible"]
1058
989
  }; }
1059
990
  };
991
+ SnkFilterItem.style = snkFilterItemCss;
1060
992
 
1061
993
  const SHOW_MORE_ITEM_NAME = "__SHOWMORE__";
1062
994
  const MAX_FILTERS = 5;
@@ -25,6 +25,7 @@ const SnkFilterDetail = class {
25
25
  var _a, _b;
26
26
  this._editor && (this._editor["config"] = newValue);
27
27
  (_b = (_a = this._editor) === null || _a === void 0 ? void 0 : _a["reloadList"]) === null || _b === void 0 ? void 0 : _b.call(_a);
28
+ this._customElementObject = this.getContentEditor();
28
29
  }
29
30
  componentDidLoad() {
30
31
  if (this._element) {
@@ -161,9 +162,10 @@ const SnkFilterDetail = class {
161
162
  }
162
163
  componentWillLoad() {
163
164
  this.originalConfig = ObjectUtils.copy(this.config);
165
+ this._customElementObject = this.getContentEditor();
164
166
  }
165
167
  render() {
166
- const { tag: CustomElement, props } = this.getContentEditor();
168
+ const { tag: CustomElement, props } = this._customElementObject;
167
169
  return (h(Host, null, h("div", { class: "col ez-col--sd-12 ez-align--right ez-padding-medium ez-flex--align-items-center" }, h("div", { class: "ez-text ez-title ez-title--small ez-padding--small sc-snk-filter-bar snk-filter-item__editor-header" }, this.config.detailTitle), this.getPopUpHeaderButtons()), h(CustomElement, Object.assign({ maxHeightList: '240px', ref: ref => this._editor = ref, value: this.config.value, config: this.config, onKeyDown: evt => this.onKeyDonwListener(evt), "data-element-id": this._idContentEditor, getMessage: this.getMessage, rightListSlotBuilder: item => this.buildRightSlot(item) }, props)), h("hr", { class: "sc-snk-filter-bar snk-filter__popover-rule" }), h("div", { class: "ez-col ez-col--sd-12 ez-align--right" }, this.filterCanBeCleared() && (h("ez-button", { label: this.getMessage("snkFilterBar.cleanFilter"), onClick: () => this.clear(), size: "small" })), h("ez-button", { ref: ref => this._applyButton = ref, label: this.getMessage("snkFilterBar.applyFilter"), onClick: () => this.apply(), size: "small", class: "ez-button--primary ez-padding-left--medium" }))));
168
170
  }
169
171
  get _element() { return getElement(this); }
@@ -2,10 +2,10 @@ import { r as registerInstance, c as createEvent, h, H as Host, g as getElement
2
2
  import { ElementIDUtils, ObjectUtils } from '@sankhyalabs/core';
3
3
  import { F as FilterItemType } from './filter-item-type.enum-d45e026f.js';
4
4
  import { E as EPresentationMode } from './presentationMode-783bbf9d.js';
5
- import { C as ConfigStorage } from './ConfigStorage-79b9e180.js';
5
+ import { C as ConfigStorage } from './ConfigStorage-89154c4e.js';
6
6
  import { F as FilterType } from './filter-type.enum-f6a8fe23.js';
7
- import './form-config-fetcher-fa208a6c.js';
8
- import './DataFetcher-88e56266.js';
7
+ import './form-config-fetcher-e623539b.js';
8
+ import './DataFetcher-db08cad0.js';
9
9
  import './PrintUtils-3e4ff0f5.js';
10
10
  import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
11
11
 
@@ -1,15 +1,15 @@
1
1
  import { r as registerInstance, c as createEvent, h, g as getElement, H as Host } from './index-479e1293.js';
2
2
  import { ElementIDUtils, ObjectUtils, ApplicationContext } from '@sankhyalabs/core';
3
- import { S as SnkFormConfigManager } from './SnkFormConfigManager-b4b93298.js';
3
+ import { S as SnkFormConfigManager } from './SnkFormConfigManager-d64d62d6.js';
4
4
  import { R as ResourceIDUtils } from './ResourceIDUtils-a114189a.js';
5
5
  import { buildFormConfigFromDataUnit } from '@sankhyalabs/ezui/dist/collection/utils/form';
6
6
  import { b as buildGuides, a as buildGuidesMap, g as getFieldsToSave, u as updateTabInFieldsFromGroupList, c as buildNewGuideName } from './FormConfigHelper-49fe72ca.js';
7
7
  import { a as TAB_NAMES, G as GROUP_NAMES } from './constants-7b422de0.js';
8
8
  import { ApplicationUtils } from '@sankhyalabs/ezui/dist/collection/utils';
9
- import { U as UserConfigType } from './form-config-fetcher-fa208a6c.js';
10
- import './ConfigStorage-79b9e180.js';
9
+ import { U as UserConfigType } from './form-config-fetcher-e623539b.js';
10
+ import './ConfigStorage-89154c4e.js';
11
11
  import './filter-item-type.enum-d45e026f.js';
12
- import './DataFetcher-88e56266.js';
12
+ import './DataFetcher-db08cad0.js';
13
13
  import './PrintUtils-3e4ff0f5.js';
14
14
  import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
15
15
 
@@ -1,19 +1,19 @@
1
1
  import { r as registerInstance, c as createEvent, h, F as Fragment, g as getElement } from './index-479e1293.js';
2
2
  import { KeyboardManager, Action, ElementIDUtils, ApplicationContext, StringUtils } from '@sankhyalabs/core';
3
3
  import { T as TaskbarElement } from './taskbar-elements-171476d4.js';
4
- import { C as ConfigStorage } from './ConfigStorage-79b9e180.js';
4
+ import { C as ConfigStorage } from './ConfigStorage-89154c4e.js';
5
5
  import { P as PresentationMode, E as ExporterStrategy } from './index-b40568ff.js';
6
6
  import { T as TaskbarProcessor } from './taskbar-processor-3436124c.js';
7
7
  import { s as store } from './index-b72af127.js';
8
- import { C as CommonsExporter, S as SnkMultiSelectionListDataSource, a as CrudUtils, R as RmPrecisionCustomValueFormatter, b as ContinuousInsertUtils, c as ClientSideExporterProvider } from './ClientSideExporterProvider-3ed744fd.js';
8
+ import { C as CommonsExporter, S as SnkMultiSelectionListDataSource, a as CrudUtils, R as RmPrecisionCustomValueFormatter, b as ContinuousInsertUtils, c as ClientSideExporterProvider } from './ClientSideExporterProvider-09dee1a3.js';
9
9
  import { SelectionMode } from '@sankhyalabs/core/dist/dataunit/DataUnit';
10
- import './DataFetcher-88e56266.js';
11
- import './ISave-5efafc97.js';
10
+ import './DataFetcher-db08cad0.js';
11
+ import './ISave-da565824.js';
12
12
  import '@sankhyalabs/ezui/dist/collection/utils/constants';
13
13
  import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
14
- import './dataunit-fetcher-0e025732.js';
14
+ import './dataunit-fetcher-1b78797a.js';
15
15
  import './filter-item-type.enum-d45e026f.js';
16
- import './form-config-fetcher-fa208a6c.js';
16
+ import './form-config-fetcher-e623539b.js';
17
17
  import './constants-7b422de0.js';
18
18
  import { g as getSelectedRecordsIDsInfo } from './GetSelectedRecordsIDsInfo-9fa41508.js';
19
19
  import { buildFieldSearch } from '@sankhyalabs/ezui/dist/collection/utils';
@@ -153,6 +153,8 @@ const SnkGrid = class {
153
153
  this.useSearchColumn = true;
154
154
  this.multipleEditionEnabled = true;
155
155
  this.paginationCounterMode = 'auto';
156
+ this.suppressCheckboxColumn = undefined;
157
+ this.compact = undefined;
156
158
  }
157
159
  getGridHeaderSelectedBtns() {
158
160
  const btns = [
@@ -281,7 +283,6 @@ const SnkGrid = class {
281
283
  this._grid.getColumnsState()
282
284
  .then((gridColumns) => {
283
285
  this._snkGridConfig.columns = gridColumns.filter(c => c.name);
284
- this._snkGridConfig.selectedIndex = 0;
285
286
  this._popUpGridConfig = true;
286
287
  });
287
288
  }
@@ -569,7 +570,7 @@ const SnkGrid = class {
569
570
  return undefined;
570
571
  }
571
572
  return (h("div", { class: "snk-grid__container ez-flex ez-flex--column ez-flex-item--auto ez-padding--large ez-box--no-outline", tabindex: "0" }, h("div", { class: "snk-grid__header ez-margin-bottom--extra-small" }, this._showSnkFilterBar &&
572
- 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 ez-padding-top--extra-small", "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', actionsSettingsList: this.getActionsSettingsList() }, 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, useSearchColumn: this.useSearchColumn, suppressHorizontalScroll: this.suppressHorizontalScroll, 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, actionsSettingsList: this.getActionsSettingsList() }, 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 }))));
573
+ 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 ez-padding-top--extra-small", "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', actionsSettingsList: this.getActionsSettingsList() }, 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, useSearchColumn: this.useSearchColumn, suppressHorizontalScroll: this.suppressHorizontalScroll, paginationCounterMode: this.paginationCounterMode, suppressCheckboxColumn: this.suppressCheckboxColumn, compact: this.compact }, 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, actionsSettingsList: this.getActionsSettingsList() }, h("slot", { name: this.gridHeaderCustomSlotId }))), h("div", { class: "ez-col ez-col--sd-12 snk-grid-container__footer" }, h("slot", { name: "SnkGridFooter" })), h("ez-popup", { size: "medium", heightMode: "auto", useHeader: false, opened: this._popUpGridConfig, onEzClosePopup: () => 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 }))));
573
574
  }
574
575
  get _element() { return getElement(this); }
575
576
  static get watchers() { return {
@@ -1,18 +1,18 @@
1
1
  import { r as registerInstance, c as createEvent, h, F as Fragment, g as getElement } from './index-479e1293.js';
2
2
  import { ObjectUtils, StringUtils, Action, KeyboardManager, ElementIDUtils } from '@sankhyalabs/core';
3
- import { S as SnkFormConfigManager } from './SnkFormConfigManager-b4b93298.js';
3
+ import { S as SnkFormConfigManager } from './SnkFormConfigManager-d64d62d6.js';
4
4
  import { buildFormMetadata, FormMetadata } from '@sankhyalabs/ezui/dist/collection/utils/form';
5
5
  import { T as TaskbarProcessor } from './taskbar-processor-3436124c.js';
6
6
  import { T as TaskbarElement } from './taskbar-elements-171476d4.js';
7
7
  import { V as VIEW_MODE } from './constants-7b422de0.js';
8
- import './DataFetcher-88e56266.js';
9
- import './ISave-5efafc97.js';
8
+ import './DataFetcher-db08cad0.js';
9
+ import './ISave-da565824.js';
10
10
  import { P as PresentationMode } from './index-b40568ff.js';
11
11
  import '@sankhyalabs/ezui/dist/collection/utils/constants';
12
12
  import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
13
- import './dataunit-fetcher-0e025732.js';
13
+ import './dataunit-fetcher-1b78797a.js';
14
14
  import './filter-item-type.enum-d45e026f.js';
15
- import './form-config-fetcher-fa208a6c.js';
15
+ import './form-config-fetcher-e623539b.js';
16
16
  import { SelectionMode } from '@sankhyalabs/core/dist/dataunit/DataUnit';
17
17
  import { buildFieldSearch, SHORTCUT_SEARCH_FIELD, LABEL_SEARCH_FIELD } from '@sankhyalabs/ezui/dist/collection/utils';
18
18
 
@@ -1,10 +1,10 @@
1
- export { S as snk_guides_viewer } from './snk-guides-viewer-32f3d3ab.js';
1
+ export { S as snk_guides_viewer } from './snk-guides-viewer-9335318d.js';
2
2
  import './index-479e1293.js';
3
3
  import '@sankhyalabs/core';
4
- import './SnkFormConfigManager-b4b93298.js';
5
- import './ConfigStorage-79b9e180.js';
6
- import './form-config-fetcher-fa208a6c.js';
7
- import './DataFetcher-88e56266.js';
4
+ import './SnkFormConfigManager-d64d62d6.js';
5
+ import './ConfigStorage-89154c4e.js';
6
+ import './form-config-fetcher-e623539b.js';
7
+ import './DataFetcher-db08cad0.js';
8
8
  import './PrintUtils-3e4ff0f5.js';
9
9
  import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
10
10
  import './filter-item-type.enum-d45e026f.js';
@@ -14,9 +14,9 @@ import './taskbar-processor-3436124c.js';
14
14
  import './taskbar-elements-171476d4.js';
15
15
  import './index-b40568ff.js';
16
16
  import './index-b72af127.js';
17
- import './ISave-5efafc97.js';
17
+ import './ISave-da565824.js';
18
18
  import '@sankhyalabs/ezui/dist/collection/utils/constants';
19
- import './dataunit-fetcher-0e025732.js';
19
+ import './dataunit-fetcher-1b78797a.js';
20
20
  import '@sankhyalabs/ezui/dist/collection/components/ez-grid/utils';
21
21
  import '@sankhyalabs/core/dist/utils/SortingUtils';
22
22
  import './ResourceIDUtils-a114189a.js';
@@ -78,21 +78,23 @@ const SnkFilterPersonalized = class {
78
78
  var _a, _b;
79
79
  const params = (_b = (_a = parentItem === null || parentItem === void 0 ? void 0 : parentItem.props) === null || _a === void 0 ? void 0 : _a.personalizedFilter) === null || _b === void 0 ? void 0 : _b.parameters;
80
80
  return params.map((param, index) => {
81
- var _a, _b, _c;
81
+ var _a, _b, _c, _d;
82
82
  const formProp = Object.assign(Object.assign({}, param), { id: parentItem.id });
83
83
  const value = (_a = parentItem.value) === null || _a === void 0 ? void 0 : _a[index];
84
84
  const elemId = 'param_' + index;
85
85
  switch (param.userInterface) {
86
86
  case UserInterface.SEARCH:
87
- return h("ez-search", { id: elemId, suppressEmptyOption: true, value: value, onEzChange: evt => this.handleFilterItemChange(evt.detail, formProp), label: param.label, optionLoader: ({ mode, argument }) => this.doSearch(mode, argument, param) });
87
+ const isSearchPlus = ((_b = this.config.props) === null || _b === void 0 ? void 0 : _b["useSearchPlus"]) == true;
88
+ const TagName = isSearchPlus ? "ez-search-plus" : "ez-search";
89
+ return h(TagName, { id: elemId, suppressEmptyOption: true, value: value, onEzChange: evt => this.handleFilterItemChange(evt.detail, formProp), label: param.label, optionLoader: ({ mode, argument }) => this.doSearch(mode, argument, param) });
88
90
  case UserInterface.SWITCH:
89
91
  case UserInterface.CHECKBOX:
90
92
  const mode = UserInterface.SWITCH === param.userInterface ? CheckMode.SWITCH : CheckMode.REGULAR;
91
93
  return h("ez-check", { id: elemId, class: "ez-padding-bottom--medium", mode: mode, value: value, label: param.label, onEzChange: evt => this.handleFilterItemChange(evt.detail, formProp) });
92
94
  case UserInterface.DECIMALNUMBER:
93
- return h("ez-number-input", { id: elemId, label: param.label, value: value, precision: ((_b = param.props) === null || _b === void 0 ? void 0 : _b.precision) || 2, onEzChange: evt => this.handleFilterItemChange(evt.detail, formProp) });
95
+ return h("ez-number-input", { id: elemId, label: param.label, value: value, precision: ((_c = param.props) === null || _c === void 0 ? void 0 : _c.precision) || 2, onEzChange: evt => this.handleFilterItemChange(evt.detail, formProp) });
94
96
  case UserInterface.INTEGERNUMBER:
95
- return h("ez-number-input", { id: elemId, label: param.label, value: value, precision: (_c = param.props) === null || _c === void 0 ? void 0 : _c.precision, onEzChange: evt => this.handleFilterItemChange(evt.detail, formProp) });
97
+ return h("ez-number-input", { id: elemId, label: param.label, value: value, precision: (_d = param.props) === null || _d === void 0 ? void 0 : _d.precision, onEzChange: evt => this.handleFilterItemChange(evt.detail, formProp) });
96
98
  case UserInterface.OPTIONSELECTOR:
97
99
  return h("ez-combo-box", { id: elemId, label: param.label, value: value, options: param.options, onEzChange: evt => this.handleFilterItemChange(evt.detail, formProp) });
98
100
  case UserInterface.DATE:
@@ -1,13 +1,13 @@
1
1
  import { r as registerInstance, c as createEvent, h, F as Fragment, H as Host } from './index-479e1293.js';
2
2
  import { StringUtils, ObjectUtils, ApplicationContext, ElementIDUtils } from '@sankhyalabs/core';
3
3
  import { P as PersonalizedFilterUtils } from './PersonalizedFilterUtils-2db38ff2.js';
4
- import { P as PersonalizedFilterFetcher, C as ConfigStorage } from './ConfigStorage-79b9e180.js';
4
+ import { P as PersonalizedFilterFetcher, C as ConfigStorage } from './ConfigStorage-89154c4e.js';
5
5
  import { ApplicationUtils } from '@sankhyalabs/ezui/dist/collection/utils';
6
6
  import { a as FilterGroupCondition, D as DefaultFilter } from './index-8acbae97.js';
7
7
  import { s as store } from './index-b72af127.js';
8
8
  import './filter-item-type.enum-d45e026f.js';
9
- import './form-config-fetcher-fa208a6c.js';
10
- import './DataFetcher-88e56266.js';
9
+ import './form-config-fetcher-e623539b.js';
10
+ import './DataFetcher-db08cad0.js';
11
11
  import './PrintUtils-3e4ff0f5.js';
12
12
  import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
13
13