@sankhyalabs/sankhyablocks 0.0.0-bugfix-dev-KB-81596.1 → 0.0.0-bugfix-dev-KB-83517.0

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 (136) hide show
  1. package/dist/cjs/{ClientSideExporterProvider-5fff8770.js → ClientSideExporterProvider-cc82b68a.js} +24 -20
  2. package/dist/cjs/{ConfigStorage-df09fb78.js → ConfigStorage-2235f35e.js} +2 -2
  3. package/dist/cjs/{DataFetcher-1afdb18e.js → DataFetcher-875371e9.js} +2 -14
  4. package/dist/cjs/{ISave-c76e2c51.js → ISave-62fbb1dd.js} +3 -27
  5. package/dist/cjs/{SnkFormConfigManager-45a8d7b7.js → SnkFormConfigManager-6637cd6b.js} +3 -3
  6. package/dist/cjs/{auth-fetcher-1687ac0a.js → auth-fetcher-abad589f.js} +1 -1
  7. package/dist/cjs/{constants-77c1b8bd.js → constants-241934b3.js} +0 -1
  8. package/dist/cjs/{dataunit-fetcher-4a5d491a.js → dataunit-fetcher-b95768e8.js} +6 -7
  9. package/dist/cjs/{form-config-fetcher-40d3f752.js → form-config-fetcher-db332748.js} +1 -1
  10. package/dist/cjs/loader.cjs.js +1 -1
  11. package/dist/cjs/pesquisa-grid_2.cjs.entry.js +5 -5
  12. package/dist/cjs/sankhyablocks.cjs.js +1 -1
  13. package/dist/cjs/snk-actions-button_7.cjs.entry.js +8 -10
  14. package/dist/cjs/snk-application.cjs.entry.js +12 -132
  15. package/dist/cjs/snk-attach.cjs.entry.js +6 -6
  16. package/dist/cjs/snk-config-options_3.cjs.entry.js +8 -10
  17. package/dist/cjs/snk-configurator.cjs.entry.js +1 -1
  18. package/dist/cjs/snk-crud.cjs.entry.js +6 -6
  19. package/dist/cjs/snk-data-exporter.cjs.entry.js +6 -6
  20. package/dist/cjs/{snk-data-unit-4b510d6e.js → snk-data-unit-33937ffe.js} +1 -1
  21. package/dist/cjs/snk-data-unit.cjs.entry.js +3 -3
  22. package/dist/cjs/snk-detail-view.cjs.entry.js +8 -8
  23. package/dist/cjs/snk-field-config.cjs.entry.js +1 -1
  24. package/dist/cjs/snk-filter-bar_4.cjs.entry.js +3 -3
  25. package/dist/cjs/snk-filter-modal-item.cjs.entry.js +3 -3
  26. package/dist/cjs/snk-filter-search.cjs.entry.js +5 -18
  27. package/dist/cjs/snk-grid.cjs.entry.js +7 -7
  28. package/dist/cjs/{snk-guides-viewer-e8e5f7b4.js → snk-guides-viewer-0e4f3b1a.js} +6 -6
  29. package/dist/cjs/snk-guides-viewer.cjs.entry.js +8 -8
  30. package/dist/cjs/snk-personalized-filter.cjs.entry.js +3 -3
  31. package/dist/cjs/snk-pesquisa.cjs.entry.js +5 -5
  32. package/dist/cjs/snk-simple-crud.cjs.entry.js +8 -8
  33. package/dist/cjs/snk-tab-config.cjs.entry.js +1 -1
  34. package/dist/collection/components/snk-application/errorhandler/snk-error-handler.js +2 -5
  35. package/dist/collection/components/snk-application/snk-application.js +4 -85
  36. package/dist/collection/components/snk-data-exporter/interfaces/IExporterProvider.js +19 -15
  37. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-search.js +5 -18
  38. package/dist/collection/components/snk-form-config/subcomponents/snk-config-options/snk-config-options.js +3 -5
  39. package/dist/collection/components/snk-grid-config/snk-grid-config.js +0 -2
  40. package/dist/collection/components/snk-taskbar/elements/taskbar-actions-button/taskbar-actions-button.css +13 -0
  41. package/dist/collection/components/snk-taskbar/elements/taskbar-actions-button/taskbar-actions-button.js +1 -1
  42. package/dist/collection/lib/http/data-fetcher/DataFetcher.js +2 -14
  43. package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/loadstrategy/DatasetStrategy.js +5 -6
  44. package/dist/collection/lib/http/data-fetcher/fetchers/pesquisa-fetcher.js +2 -26
  45. package/dist/collection/lib/utils/constants.js +0 -1
  46. package/dist/components/ContinuousInsertUtils.js +19 -15
  47. package/dist/components/DataFetcher.js +2 -14
  48. package/dist/components/ISave.js +2 -26
  49. package/dist/components/constants.js +0 -1
  50. package/dist/components/dataunit-fetcher.js +5 -6
  51. package/dist/components/snk-application2.js +6 -129
  52. package/dist/components/snk-config-options2.js +3 -5
  53. package/dist/components/snk-filter-search.js +5 -18
  54. package/dist/components/snk-grid-config2.js +0 -2
  55. package/dist/components/taskbar-actions-button2.js +2 -2
  56. package/dist/esm/{ClientSideExporterProvider-da9935ed.js → ClientSideExporterProvider-8191676b.js} +24 -20
  57. package/dist/esm/{ConfigStorage-71e6766f.js → ConfigStorage-9bd805d6.js} +2 -2
  58. package/dist/esm/{DataFetcher-88e56266.js → DataFetcher-ecf5f903.js} +2 -14
  59. package/dist/esm/{ISave-5efafc97.js → ISave-7d546dce.js} +3 -27
  60. package/dist/esm/{SnkFormConfigManager-be490a33.js → SnkFormConfigManager-fbc6a9a8.js} +3 -3
  61. package/dist/esm/{auth-fetcher-3510520e.js → auth-fetcher-07d33333.js} +1 -1
  62. package/dist/esm/{constants-7db1128a.js → constants-75abb876.js} +0 -1
  63. package/dist/esm/{dataunit-fetcher-1d02ecfc.js → dataunit-fetcher-ed6e65ef.js} +6 -7
  64. package/dist/esm/{form-config-fetcher-fa208a6c.js → form-config-fetcher-ac17cff4.js} +1 -1
  65. package/dist/esm/loader.js +1 -1
  66. package/dist/esm/pesquisa-grid_2.entry.js +5 -5
  67. package/dist/esm/sankhyablocks.js +1 -1
  68. package/dist/esm/snk-actions-button_7.entry.js +8 -10
  69. package/dist/esm/snk-application.entry.js +13 -133
  70. package/dist/esm/snk-attach.entry.js +6 -6
  71. package/dist/esm/snk-config-options_3.entry.js +8 -10
  72. package/dist/esm/snk-configurator.entry.js +1 -1
  73. package/dist/esm/snk-crud.entry.js +6 -6
  74. package/dist/esm/snk-data-exporter.entry.js +6 -6
  75. package/dist/esm/{snk-data-unit-7d0ce406.js → snk-data-unit-6258b8ae.js} +1 -1
  76. package/dist/esm/snk-data-unit.entry.js +3 -3
  77. package/dist/esm/snk-detail-view.entry.js +8 -8
  78. package/dist/esm/snk-field-config.entry.js +1 -1
  79. package/dist/esm/snk-filter-bar_4.entry.js +3 -3
  80. package/dist/esm/snk-filter-modal-item.entry.js +3 -3
  81. package/dist/esm/snk-filter-search.entry.js +5 -18
  82. package/dist/esm/snk-grid.entry.js +7 -7
  83. package/dist/esm/{snk-guides-viewer-c44b3839.js → snk-guides-viewer-80a8709c.js} +6 -6
  84. package/dist/esm/snk-guides-viewer.entry.js +8 -8
  85. package/dist/esm/snk-personalized-filter.entry.js +3 -3
  86. package/dist/esm/snk-pesquisa.entry.js +5 -5
  87. package/dist/esm/snk-simple-crud.entry.js +8 -8
  88. package/dist/esm/snk-tab-config.entry.js +1 -1
  89. package/dist/sankhyablocks/{p-601b252b.js → p-01512409.js} +1 -1
  90. package/dist/sankhyablocks/{p-3b190fb1.entry.js → p-02c6dc9f.entry.js} +1 -1
  91. package/dist/sankhyablocks/p-07afb345.entry.js +1 -0
  92. package/dist/sankhyablocks/{p-490b75b5.entry.js → p-0bcd4757.entry.js} +1 -1
  93. package/dist/sankhyablocks/p-108fee57.js +6 -0
  94. package/dist/sankhyablocks/{p-03b68a74.js → p-13f17dab.js} +1 -1
  95. package/dist/sankhyablocks/{p-9261d8a0.js → p-1d19a5b0.js} +1 -1
  96. package/dist/sankhyablocks/{p-c0eb761b.entry.js → p-23cd6abf.entry.js} +1 -1
  97. package/dist/sankhyablocks/{p-b2a2a83e.entry.js → p-2746d606.entry.js} +1 -1
  98. package/dist/sankhyablocks/{p-3749dffb.entry.js → p-2953c481.entry.js} +1 -1
  99. package/dist/sankhyablocks/{p-165cde3b.entry.js → p-340e2447.entry.js} +1 -1
  100. package/dist/sankhyablocks/p-35fcf37e.js +1 -0
  101. package/dist/sankhyablocks/{p-90684a75.entry.js → p-3a36d4b3.entry.js} +1 -1
  102. package/dist/sankhyablocks/{p-73285a8a.js → p-48729c8c.js} +1 -1
  103. package/dist/sankhyablocks/{p-d9fdb018.entry.js → p-513af002.entry.js} +1 -1
  104. package/dist/sankhyablocks/{p-fbba7e3d.js → p-5a7e18f4.js} +1 -1
  105. package/dist/sankhyablocks/{p-60137b7a.entry.js → p-5fea0816.entry.js} +1 -1
  106. package/dist/sankhyablocks/{p-a8be1d67.js → p-7e0a0aae.js} +1 -1
  107. package/dist/sankhyablocks/{p-ef6f0a1b.entry.js → p-950e3cbe.entry.js} +1 -1
  108. package/dist/sankhyablocks/p-9907cf67.entry.js +1 -0
  109. package/dist/sankhyablocks/{p-6e0a5314.js → p-abd9681c.js} +1 -1
  110. package/dist/sankhyablocks/p-c5acb7ba.entry.js +11 -0
  111. package/dist/sankhyablocks/{p-092078e3.entry.js → p-c7c6eab7.entry.js} +1 -1
  112. package/dist/sankhyablocks/p-c8622597.entry.js +1 -0
  113. package/dist/sankhyablocks/{p-ebdb9d89.js → p-cb9d725a.js} +1 -1
  114. package/dist/sankhyablocks/{p-92778d5a.js → p-d1f04e2c.js} +1 -1
  115. package/dist/sankhyablocks/{p-00796b12.entry.js → p-d2065bb4.entry.js} +1 -1
  116. package/dist/sankhyablocks/{p-35f85998.entry.js → p-dc617b0c.entry.js} +1 -1
  117. package/dist/sankhyablocks/p-e5d8891d.entry.js +1 -0
  118. package/dist/sankhyablocks/{p-5ffa0493.entry.js → p-f467153c.entry.js} +1 -1
  119. package/dist/sankhyablocks/{p-38e3ffda.entry.js → p-f861bfcb.entry.js} +1 -1
  120. package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
  121. package/dist/types/components/snk-application/snk-application.d.ts +2 -7
  122. package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-search.d.ts +3 -5
  123. package/dist/types/components/snk-grid-config/snk-grid-config.d.ts +0 -1
  124. package/dist/types/components.d.ts +0 -6
  125. package/dist/types/lib/http/data-fetcher/fetchers/pesquisa-fetcher.d.ts +1 -4
  126. package/dist/types/lib/utils/constants.d.ts +0 -1
  127. package/package.json +1 -1
  128. package/dist/collection/components/snk-application/search-strategy/exec-prepared-search-plus.js +0 -107
  129. package/dist/sankhyablocks/p-4ad638be.js +0 -1
  130. package/dist/sankhyablocks/p-5503e89f.entry.js +0 -1
  131. package/dist/sankhyablocks/p-5cc206bb.entry.js +0 -1
  132. package/dist/sankhyablocks/p-6293ded9.entry.js +0 -11
  133. package/dist/sankhyablocks/p-6dd38d7b.js +0 -6
  134. package/dist/sankhyablocks/p-893b9483.entry.js +0 -1
  135. package/dist/sankhyablocks/p-b6200d32.entry.js +0 -1
  136. package/dist/types/components/snk-application/search-strategy/exec-prepared-search-plus.d.ts +0 -5
@@ -6716,13 +6716,7 @@ class DataFetcher {
6716
6716
  if (error.length > 0) { //As informações do erro vem no primeiro indice de um array
6717
6717
  const errorInfo = error[POSITION_ERROR_INFO];
6718
6718
  const errorMessage = (errorInfo === null || errorInfo === void 0 ? void 0 : errorInfo.message) ? errorInfo === null || errorInfo === void 0 ? void 0 : errorInfo.message : "Não há mensagem de erro";
6719
- /*
6720
- No HTML5, todos os erros de Troubleshooting são considerados alerta,
6721
- pois a comparação errorLevel == ServiceProxyConstants.LEVEL.ERROR sempre é falsa
6722
- Motivo: - errorLevel é uma string "ERROR" por exemplo
6723
- - ServiceProxyConstants.LEVEL.ERROR é um numero 1, por exemplo
6724
- */
6725
- const errorLevel = ((_a = errorInfo === null || errorInfo === void 0 ? void 0 : errorInfo.extensions) === null || _a === void 0 ? void 0 : _a.level) ? "WARNING" : "ERROR";
6719
+ const errorLevel = ((_a = errorInfo === null || errorInfo === void 0 ? void 0 : errorInfo.extensions) === null || _a === void 0 ? void 0 : _a.level) ? errorInfo.extensions.level : "ERROR";
6726
6720
  const errorCode = ((_b = errorInfo === null || errorInfo === void 0 ? void 0 : errorInfo.extensions) === null || _b === void 0 ? void 0 : _b.code) ? errorInfo.extensions.code : "";
6727
6721
  switch (errorLevel) {
6728
6722
  case "WARNING":
@@ -6744,13 +6738,7 @@ class DataFetcher {
6744
6738
  let tsErrorCode, tsErrorLevel;
6745
6739
  if (tsError) {
6746
6740
  tsErrorCode = tsError.tsErrorCode;
6747
- /*
6748
- No HTML5, todos os erros de Troubleshooting são considerados alerta,
6749
- pois a comparação errorLevel == ServiceProxyConstants.LEVEL.ERROR sempre é falsa
6750
- Motivo: - errorLevel é uma string "ERROR" por exemplo
6751
- - ServiceProxyConstants.LEVEL.ERROR é um numero 1, por exemplo
6752
- */
6753
- tsErrorLevel = "WARNING";
6741
+ tsErrorLevel = tsError.tsErrorLevel;
6754
6742
  }
6755
6743
  if (tsErrorLevel === "WARNING") {
6756
6744
  return new WarningException(title, statusMessage, tsErrorCode);
@@ -148,20 +148,7 @@ class PesquisaFetcher {
148
148
  });
149
149
  });
150
150
  }
151
- buildDescriptionCacheKey(entityName, codeValue) {
152
- return `${entityName}__${codeValue}`;
153
- }
154
- async loadByCode(entityName, codeValue, criteria, searchOptions) {
155
- const cacheKey = this.buildDescriptionCacheKey(entityName, codeValue);
156
- const cachedValue = PesquisaFetcher.DESCRIPTIONS_BY_CODE[cacheKey];
157
- if (cachedValue) {
158
- return Promise.resolve(cachedValue);
159
- }
160
- const result = await this.loadAdvancedSearch(entityName, undefined, criteria, searchOptions, codeValue);
161
- PesquisaFetcher.DESCRIPTIONS_BY_CODE[cacheKey] = result;
162
- return result;
163
- }
164
- loadAdvancedSearch(entityName, argument, criteria, searchOptions, codeValue) {
151
+ loadAdvancedSearch(entityName, argument, criteria, searchOptions) {
165
152
  var _a, _b, _c, _d, _e;
166
153
  const listenerResult = this.applySearchListener(SearchListenerType.beforeSearch, entityName, argument, criteria, searchOptions);
167
154
  const values = {
@@ -205,22 +192,12 @@ class PesquisaFetcher {
205
192
  const reqBody = {
206
193
  "serviceName": serviceName,
207
194
  "requestBody": {
208
- "criteria": Object.assign({ "entityName": entityName, "compacted": false, "ignoreEntityCriteria": (_d = options === null || options === void 0 ? void 0 : options.ignoreEntityCriteria) !== null && _d !== void 0 ? _d : false, "limit": this._defaultPageSize, "orderByDesc": false, "externalCriteria": externalCriteria, "localEntityName": (_e = values.searchOptions) === null || _e === void 0 ? void 0 : _e.rootEntity }, { options }),
195
+ "criteria": Object.assign({ "entityName": entityName, "compacted": false, "ignoreEntityCriteria": (_d = options === null || options === void 0 ? void 0 : options.ignoreEntityCriteria) !== null && _d !== void 0 ? _d : false, "limit": this._defaultPageSize, "query": { "$": values.argument }, "orderByDesc": false, "externalCriteria": externalCriteria, "localEntityName": (_e = values.searchOptions) === null || _e === void 0 ? void 0 : _e.rootEntity }, { options }),
209
196
  "clientEventList": {
210
197
  "clientEvent": []
211
198
  }
212
199
  }
213
200
  };
214
- if (codeValue == undefined) {
215
- reqBody.requestBody.criteria.query = {
216
- "$": argument
217
- };
218
- }
219
- else {
220
- reqBody.requestBody.criteria.pk = {
221
- "$": codeValue
222
- };
223
- }
224
201
  const urlOptions = {
225
202
  urlParams: {
226
203
  "quietMode": true
@@ -330,7 +307,6 @@ class PesquisaFetcher {
330
307
  return params;
331
308
  }
332
309
  }
333
- PesquisaFetcher.DESCRIPTIONS_BY_CODE = {};
334
310
  function buildLoadGridConfigPayload(entityName) {
335
311
  return {
336
312
  'gridConfig': {
@@ -67,7 +67,6 @@ const TAGS_BY_TYPE = {
67
67
  CHECKBOX: "ez-check",
68
68
  OPTIONSELECTOR: "ez-combo-box",
69
69
  SEARCH: "ez-search",
70
- SEARCHPLUS: "ez-search-plus",
71
70
  INTEGERNUMBER: "ez-number-input",
72
71
  DECIMALNUMBER: "ez-number-input"
73
72
  };
@@ -495,12 +495,11 @@ class DatasetStrategy {
495
495
  return InMemoryLoader.getConvertedValue(descriptor, strValue);
496
496
  }
497
497
  getSearchDescriptionField(descriptor) {
498
- if (![UserInterface.SEARCH, UserInterface.SEARCHPLUS].includes(descriptor.userInterface)) {
499
- return undefined;
500
- }
501
- const { ENTITYNAME, mergedFrom, DESCRIPTIONFIELD } = descriptor.properties;
502
- if (!StringUtils.isEmpty(DESCRIPTIONFIELD)) {
503
- return mergedFrom != undefined ? `${mergedFrom}.${ENTITYNAME}.${DESCRIPTIONFIELD}` : `${ENTITYNAME}.${DESCRIPTIONFIELD}`;
498
+ if (descriptor.userInterface === UserInterface.SEARCH) {
499
+ const { ENTITYNAME, mergedFrom, DESCRIPTIONFIELD } = descriptor.properties;
500
+ if (!StringUtils.isEmpty(DESCRIPTIONFIELD)) {
501
+ return mergedFrom != undefined ? `${mergedFrom}.${ENTITYNAME}.${DESCRIPTIONFIELD}` : `${ENTITYNAME}.${DESCRIPTIONFIELD}`;
502
+ }
504
503
  }
505
504
  return undefined;
506
505
  }
@@ -1,5 +1,5 @@
1
1
  import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
2
- import { DateUtils, StringUtils, ObjectUtils, WaitingChangeException, SilentException, WarningException, ErrorException, ElementIDUtils, SearchUtils, ArrayUtils, KeyboardManager, OnboardingUtils, DependencyType, ApplicationContext, DataType, ErrorTracking, UserAgentUtils, LockManager, LockManagerOperation } from '@sankhyalabs/core';
2
+ import { DateUtils, StringUtils, ObjectUtils, WaitingChangeException, WarningException, ErrorException, KeyboardManager, OnboardingUtils, DependencyType, ArrayUtils, SearchUtils, ElementIDUtils, ApplicationContext, DataType, ErrorTracking, UserAgentUtils, LockManager, LockManagerOperation } from '@sankhyalabs/core';
3
3
  import { ApplicationUtils } from '@sankhyalabs/ezui/dist/collection/utils';
4
4
  import { C as ConfigStorage } from './ConfigStorage.js';
5
5
  import { d as dist, D as DataFetcher, U as UrlUtils } from './DataFetcher.js';
@@ -259,10 +259,7 @@ class SnkErrorHandler {
259
259
  if (exception.errorCode) {
260
260
  exception.message += this.buildErrorCodeHTML(exception.errorCode);
261
261
  }
262
- if (exception instanceof SilentException) {
263
- console.warn("SilentException ignorada", exception);
264
- }
265
- else if (exception instanceof WaitingChangeException) {
262
+ if (exception instanceof WaitingChangeException) {
266
263
  this._app.alert(exception.title, exception.message);
267
264
  }
268
265
  else if (exception instanceof WarningException) {
@@ -382,110 +379,6 @@ class RequestListenerFactory {
382
379
  }
383
380
  }
384
381
 
385
- const QTD_DETAIL_FIELDS_PREDICTIVE_SEARCH = 6;
386
- const INVALID_CONTENT_PATTERNS = ['<img', '<svg'];
387
- const executePreparedSearchPlus = async (mode, argument, options, app, pesquisaFetcher) => {
388
- var _a;
389
- const mdByName = {};
390
- const { entity, entityDescription, criteria, searchOptions, isHierarchyEntity, allowsNonAnalytic } = options;
391
- if (mode === "ADVANCED") {
392
- return new Promise((accept, reject) => {
393
- const pesquisaContent = document.createElement("snk-pesquisa");
394
- pesquisaContent[ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME] = `entity_${entity}`;
395
- pesquisaContent.entityName = entity;
396
- pesquisaContent.argument = argument;
397
- pesquisaContent.searchLoader = (text) => pesquisaFetcher.loadAdvancedSearch(entity, text, criteria, searchOptions);
398
- pesquisaContent.isHierarchyEntity = isHierarchyEntity;
399
- if (isHierarchyEntity) {
400
- pesquisaContent.treeLoader = (text) => pesquisaFetcher.loadTree(entity, text, criteria, searchOptions);
401
- pesquisaContent.allowsNonAnalytic = allowsNonAnalytic;
402
- }
403
- pesquisaContent.selectItem = (option) => {
404
- accept(option);
405
- app.clearPopUpTitle();
406
- app.closePopUp();
407
- };
408
- app.setPopUpTitle(entityDescription);
409
- app.showPopUp(pesquisaContent, undefined, undefined, reject);
410
- });
411
- }
412
- else if (mode === "LOAD_DESCRIPTION") {
413
- let result = await pesquisaFetcher.loadByCode(entity, argument, criteria, searchOptions);
414
- result = ObjectUtils.stringToObject(result.json.$);
415
- let descriptionField = result.descriptionField;
416
- const option = (_a = result.data) === null || _a === void 0 ? void 0 : _a[0];
417
- if (!option) {
418
- return {
419
- value: argument,
420
- label: ""
421
- };
422
- }
423
- return {
424
- value: argument,
425
- label: option[descriptionField]
426
- };
427
- }
428
- else {
429
- let codeValue;
430
- let result = await pesquisaFetcher.loadAdvancedSearch(entity, argument, criteria, searchOptions, codeValue);
431
- result = ObjectUtils.stringToObject(result.json.$);
432
- let descriptionField = result.descriptionField;
433
- let pkField = result.pkField;
434
- const list = result.data.map((item) => {
435
- let fieldsMetadata = filterInvalidFields(result, item, mdByName);
436
- let fields = filterMathFields(item['__matchFields'], fieldsMetadata, QTD_DETAIL_FIELDS_PREDICTIVE_SEARCH, mdByName);
437
- return buildOptionItem(argument, item, fields, descriptionField, pkField);
438
- });
439
- return list;
440
- }
441
- };
442
- const buildOptionItem = (argument, item, fields, descriptionField, pkField) => {
443
- var _a;
444
- const matchFields = item['__matchFields'];
445
- const descriptionValue = (_a = item[descriptionField]) !== null && _a !== void 0 ? _a : "";
446
- const pkValue = item[pkField];
447
- let searchOption = {
448
- value: pkValue,
449
- label: descriptionValue,
450
- presentationValue: StringUtils.highlightValue(argument, matchFields, pkValue, fields, true),
451
- presentationLabel: descriptionField ? StringUtils.highlightValue(argument, matchFields, descriptionValue, fields, true) : "",
452
- details: SearchUtils.buildDetails(argument, fields, item)
453
- };
454
- return searchOption;
455
- };
456
- const filterInvalidFields = (resp, item, mdByName) => {
457
- let fieldsMetadata = resp.fieldsMetadata.filter((field) => {
458
- let accept = !StringUtils.isEmpty(item[field.fieldName]) &&
459
- field.visible !== false &&
460
- field.type !== 'B' &&
461
- resp.pkField !== field.fieldName &&
462
- resp.descriptionField !== field.fieldName &&
463
- (field.isPrimaryKey || !field.isLinkField) &&
464
- !(field.type === 'S' && field.presentationType === 'H');
465
- if (accept) {
466
- mdByName[field.fieldName] = field;
467
- }
468
- //Condição que trata o problema de trazer imagem no entityCard na pesquisa de registros
469
- if (typeof item[field.fieldName] === 'string' && INVALID_CONTENT_PATTERNS.some(pattern => item[field.fieldName].includes(pattern))) {
470
- return false;
471
- }
472
- return accept;
473
- });
474
- return fieldsMetadata;
475
- };
476
- const filterMathFields = (matchFields, fields, qtyFields, mdByName) => {
477
- if (matchFields && Array.isArray(matchFields)) {
478
- matchFields.forEach((matchField) => {
479
- let fieldMD = ArrayUtils.removeReference(fields, mdByName[matchField]);
480
- if (fieldMD) {
481
- fields.unshift(fieldMD);
482
- }
483
- });
484
- }
485
- fields = fields.slice(0, qtyFields);
486
- return fields;
487
- };
488
-
489
382
  class LayoutFormConfig {
490
383
  constructor() {
491
384
  this._config = null;
@@ -1146,7 +1039,7 @@ const SnkApplication = /*@__PURE__*/ proxyCustomElement(class extends HTMLElemen
1146
1039
  searchOptions,
1147
1040
  allowsNonAnalytic
1148
1041
  };
1149
- return (ctxOptions === null || ctxOptions === void 0 ? void 0 : ctxOptions.useSearchPlus) ? this.executePreparedSearchPlus(mode, argument, options) : this.executePreparedSearch(mode, argument, options);
1042
+ return this.executePreparedSearch(mode, argument, options);
1150
1043
  }
1151
1044
  }
1152
1045
  filterInvalidFields(resp, item, mdByName) {
@@ -1190,23 +1083,13 @@ const SnkApplication = /*@__PURE__*/ proxyCustomElement(class extends HTMLElemen
1190
1083
  };
1191
1084
  return exibitionItem;
1192
1085
  }
1193
- /**
1194
- * Realiza a pesquisa de registros
1195
- * Ex.: snk-config-options
1196
- */
1197
- async executePreparedSearchPlus(mode, argument, options) {
1198
- return await this.executePreparedSearch(mode, argument, Object.assign(Object.assign({}, options), { useSearchPlus: true }));
1199
- }
1200
1086
  /**
1201
1087
  * Obtém as opções em componentes de pesquisa
1202
1088
  * Ex.: snk-config-options
1203
1089
  */
1204
1090
  async executePreparedSearch(mode, argument, options) {
1205
1091
  const mdByName = {};
1206
- const { entity, entityDescription, criteria, searchOptions, isHierarchyEntity, allowsNonAnalytic, useSearchPlus } = options;
1207
- if (useSearchPlus) {
1208
- return executePreparedSearchPlus(mode, argument, options, this, this.pesquisaFetcher);
1209
- }
1092
+ const { entity, entityDescription, criteria, searchOptions, isHierarchyEntity, allowsNonAnalytic } = options;
1210
1093
  if (mode === "ADVANCED") {
1211
1094
  return new Promise((accept, reject) => {
1212
1095
  const pesquisaContent = document.createElement("snk-pesquisa");
@@ -1356,10 +1239,10 @@ const SnkApplication = /*@__PURE__*/ proxyCustomElement(class extends HTMLElemen
1356
1239
  });
1357
1240
  }
1358
1241
  }
1359
- async clearPopUpTitle() {
1242
+ clearPopUpTitle() {
1360
1243
  this._popUp.ezTitle = "";
1361
1244
  }
1362
- async setPopUpTitle(title) {
1245
+ setPopUpTitle(title) {
1363
1246
  this._popUp.ezTitle = title;
1364
1247
  }
1365
1248
  async pkChangeListener() {
@@ -1529,9 +1412,6 @@ const SnkApplication = /*@__PURE__*/ proxyCustomElement(class extends HTMLElemen
1529
1412
  ApplicationContext.setContextValue("__EZUI__SEARCH__OPTION__LOADER__", (searchArgument, fieldName, dataUnit, ctxOptions) => {
1530
1413
  return this.executeSearch(searchArgument, fieldName, dataUnit, ctxOptions);
1531
1414
  });
1532
- ApplicationContext.setContextValue("__EZUI__SEARCH__PLUS__OPTION__LOADER__", (searchArgument, fieldName, dataUnit, ctxOptions) => {
1533
- return this.executeSearch(searchArgument, fieldName, dataUnit, Object.assign(Object.assign({}, ctxOptions), { useSearchPlus: true }));
1534
- });
1535
1415
  ApplicationContext.setContextValue("__EZUI__GRID_LICENSE__", agGridLicense);
1536
1416
  this.registerPkChangeListener();
1537
1417
  ErrorTracking.init();
@@ -1769,7 +1649,6 @@ const SnkApplication = /*@__PURE__*/ proxyCustomElement(class extends HTMLElemen
1769
1649
  "isLoadedByPk": [64],
1770
1650
  "preloadMangerRemoveRecord": [64],
1771
1651
  "executeSearch": [64],
1772
- "executePreparedSearchPlus": [64],
1773
1652
  "executePreparedSearch": [64],
1774
1653
  "isDebugMode": [64],
1775
1654
  "getAppLabel": [64],
@@ -1780,8 +1659,6 @@ const SnkApplication = /*@__PURE__*/ proxyCustomElement(class extends HTMLElemen
1780
1659
  "getDataFetcher": [64],
1781
1660
  "whenApplicationReady": [64],
1782
1661
  "setSearchFilterContext": [64],
1783
- "clearPopUpTitle": [64],
1784
- "setPopUpTitle": [64],
1785
1662
  "showScrimApp": [64],
1786
1663
  "markToReload": [64],
1787
1664
  "addLoadingLock": [64]
@@ -142,13 +142,11 @@ const SnkConfigOptions = /*@__PURE__*/ proxyCustomElement(class extends HTMLElem
142
142
  return h(TagName, Object.assign({ value: value, enabled: enabled, label: label, "data-field-name": name, key: name, onEzChange: (evt) => this.onChange(evt === null || evt === void 0 ? void 0 : evt.detail) }, (this.getConditionalAttributes(userInterface, required, options, precision, prettyPrecision, mode))));
143
143
  }
144
144
  getConditionalAttributes(userInterface, required, options, precision, prettyPrecision, mode) {
145
- const useSearchPlus = userInterface == UserInterface.SEARCHPLUS;
146
145
  switch (userInterface) {
147
146
  case UserInterface.SEARCH:
148
- case UserInterface.SEARCHPLUS:
149
147
  return {
150
148
  suppressEmptyOption: required,
151
- optionLoader: (searchArgument) => this.onSearch(searchArgument, { useSearchPlus })
149
+ optionLoader: (searchArgument) => this.onSearch(searchArgument)
152
150
  };
153
151
  case UserInterface.OPTIONSELECTOR:
154
152
  return {
@@ -181,9 +179,9 @@ const SnkConfigOptions = /*@__PURE__*/ proxyCustomElement(class extends HTMLElem
181
179
  this.fieldConfig.defaultValue.value = this.getValidatedValue(fieldValue);
182
180
  this.configOptionsChanged.emit(this.fieldConfig);
183
181
  }
184
- onSearch(searchArgument, ctxOptions) {
182
+ onSearch(searchArgument) {
185
183
  if (this._application != undefined && this.fieldConfig != undefined) {
186
- return this._application.executeSearch(searchArgument, this.fieldConfig.name, this.dataUnit, ctxOptions);
184
+ return this._application.executeSearch(searchArgument, this.fieldConfig.name, this.dataUnit);
187
185
  }
188
186
  }
189
187
  buildField(descriptor, config) {
@@ -7,20 +7,14 @@ const SnkFilterSearch$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLEle
7
7
  super();
8
8
  this.__registerHost();
9
9
  this.valueChanged = createEvent(this, "valueChanged", 7);
10
- this._isSearchPlus = false;
11
10
  this.config = undefined;
12
11
  this.value = undefined;
13
12
  }
14
13
  /**
15
14
  * Emitido quando acontece a alteração de valor do componente snk-filter-search
16
15
  */
17
- async ezChangeListener(_evt) {
18
- if (this._isSearchPlus) {
19
- this.value = await this._searchInput.getValueAsync();
20
- }
21
- else {
22
- this.value = this._searchInput.value;
23
- }
16
+ ezChangeListener(_evt) {
17
+ this.value = this._searchInput.value;
24
18
  this.valueChanged.emit(this.value);
25
19
  }
26
20
  componentDidLoad() {
@@ -28,11 +22,10 @@ const SnkFilterSearch$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLEle
28
22
  ElementIDUtils.addIDInfo(this._element, 'filterContentEditor');
29
23
  }
30
24
  }
31
- doSearch(mode, argument, isSearchPlus = false) {
25
+ doSearch(mode, argument) {
32
26
  const application = ApplicationContext.getContextValue("__SNK__APPLICATION__");
33
- const loader = isSearchPlus ? application.executePreparedSearchPlus : application.executePreparedSearch;
34
27
  return new Promise((resolve, reject) => {
35
- loader.bind(application)(mode, argument, this.config.props.searchContext)
28
+ application.executePreparedSearch(mode, argument, this.config.props.searchContext)
36
29
  .then(result => {
37
30
  resolve(result);
38
31
  }).catch(reason => {
@@ -46,17 +39,11 @@ const SnkFilterSearch$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLEle
46
39
  async show() {
47
40
  this._searchInput.setFocus();
48
41
  }
49
- getInputItem() {
50
- var _a;
51
- this._isSearchPlus = ((_a = this.config.props) === null || _a === void 0 ? void 0 : _a["useSearchPlus"]) == true;
52
- const TagName = this._isSearchPlus ? "ez-search-plus" : "ez-search";
53
- return (h(TagName, { id: this.config.id, suppressEmptyOption: true, value: this.config.value, label: this.config.label, ref: ref => this._searchInput = ref, optionLoader: ({ mode, argument }) => this.doSearch(mode, argument, this._isSearchPlus) }));
54
- }
55
42
  render() {
56
43
  if (!this.config || this.config.type !== FilterItemType.SEARCH) {
57
44
  return undefined;
58
45
  }
59
- return this.getInputItem();
46
+ return (h("ez-search", { id: this.config.id, suppressEmptyOption: true, value: this.config.value, label: this.config.label, ref: ref => this._searchInput = ref, optionLoader: ({ mode, argument }) => this.doSearch(mode, argument) }));
60
47
  }
61
48
  get _element() { return this; }
62
49
  }, [0, "snk-filter-search", {
@@ -266,7 +266,6 @@ const SnkGridConfig = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
266
266
  delete _newColumnConfig.ascending;
267
267
  _newColumnConfig.orderIndex = 0;
268
268
  }
269
- _newColumnConfig.configVersion = SnkGridConfig.CURRENT_CONFIG_VERSION;
270
269
  _newColumnConfigList.push(_newColumnConfig);
271
270
  }
272
271
  });
@@ -506,7 +505,6 @@ const SnkGridConfig = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
506
505
  "configName": [1, "config-name"],
507
506
  "resourceID": [1, "resource-i-d"]
508
507
  }]);
509
- SnkGridConfig.CURRENT_CONFIG_VERSION = 1;
510
508
  function defineCustomElement() {
511
509
  if (typeof customElements === "undefined") {
512
510
  return;
@@ -1,6 +1,6 @@
1
1
  import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
2
2
 
3
- const taskbarActionsButtonCss = ".sc-taskbar-actions-button-h{display:flex;width:fit-content;height:fit-content}";
3
+ const taskbarActionsButtonCss = ".sc-taskbar-actions-button-h{--ez-dropdown--min-width:150px;display:flex;width:fit-content;height:fit-content}.ez-dropdown-container.sc-taskbar-actions-button{position:relative;display:inline-block}.ez-dropdown--sticky.sc-taskbar-actions-button{position:absolute;display:block;min-width:var(--ez-dropdown--min-width)}";
4
4
 
5
5
  const TaskbarActionsButton = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
6
6
  constructor() {
@@ -126,7 +126,7 @@ const TaskbarActionsButton = /*@__PURE__*/ proxyCustomElement(class extends HTML
126
126
  this.taskbarActionsButtonDisconnected.emit();
127
127
  }
128
128
  render() {
129
- return (h(Host, null, h("div", { class: `${this.canShowDropdown() ? ' ez-elevation--16' : ''}` }, h("ez-button", { title: this.title, mode: 'icon', iconName: 'dots-vertical', size: 'small', enabled: this.enabled, onClick: () => this.controlDropdown() }), this.canShowDropdown() && h("ez-dropdown", { items: this.loadItems(), onEzClick: (evt) => this.onSelectAction(evt.detail), onEzOutsideClick: () => this._showDropdown = false, itemBuilder: (item, level) => this.dropdownItemBuilder(item, level) }))));
129
+ return (h(Host, null, h("div", { class: `${this.canShowDropdown() ? ' ez-elevation--16' : ''} ez-dropdown-container` }, h("ez-button", { title: this.title, mode: 'icon', iconName: 'dots-vertical', size: 'small', enabled: this.enabled, onClick: () => this.controlDropdown() }), this.canShowDropdown() && h("ez-dropdown", { class: `ez-dropdown--sticky`, items: this.loadItems(), onEzClick: (evt) => this.onSelectAction(evt.detail), onEzOutsideClick: () => this._showDropdown = false, itemBuilder: (item, level) => this.dropdownItemBuilder(item, level) }))));
130
130
  }
131
131
  get _element() { return this; }
132
132
  static get style() { return taskbarActionsButtonCss; }
@@ -1,13 +1,13 @@
1
- import { D as DataFetcher } from './DataFetcher-88e56266.js';
2
- import './ISave-5efafc97.js';
1
+ import { D as DataFetcher } from './DataFetcher-ecf5f903.js';
2
+ import './ISave-7d546dce.js';
3
3
  import { SortMode, ApplicationContext, UserInterface, DateUtils, ObjectUtils, StringUtils, NumberUtils, DataType } from '@sankhyalabs/core';
4
4
  import { D as DataExporterOption } from './index-b40568ff.js';
5
5
  import '@sankhyalabs/ezui/dist/collection/utils/constants';
6
6
  import { UserInterface as UserInterface$1 } from '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
7
- import { P as PreloadManager } from './dataunit-fetcher-1d02ecfc.js';
7
+ import { P as PreloadManager } from './dataunit-fetcher-ed6e65ef.js';
8
8
  import './filter-item-type.enum-d45e026f.js';
9
- import './form-config-fetcher-fa208a6c.js';
10
- import './constants-7db1128a.js';
9
+ import './form-config-fetcher-ac17cff4.js';
10
+ import './constants-75abb876.js';
11
11
  import InMemoryFilterColumnDataSource from '@sankhyalabs/ezui/dist/collection/components/ez-grid/utils/InMemoryFilterColumnDataSource';
12
12
  import { h } from './index-a7d3d3f1.js';
13
13
  import { g as getSelectedRecordsIDsInfo } from './GetSelectedRecordsIDsInfo-9fa41508.js';
@@ -218,21 +218,25 @@ class CommonsExporter {
218
218
  userInterface: fieldData === null || fieldData === void 0 ? void 0 : fieldData.userInterface,
219
219
  customFormatter
220
220
  };
221
- if (isUserInterfaceSEARCH && ((_b = fieldData === null || fieldData === void 0 ? void 0 : fieldData.properties) === null || _b === void 0 ? void 0 : _b.DESCRIPTIONFIELD) != undefined) {
222
- const labelDescription = (_c = fieldData === null || fieldData === void 0 ? void 0 : fieldData.properties) === null || _c === void 0 ? void 0 : _c.DESCRIPTIONENTITY;
223
- const mergedFrom = fieldData.properties.mergedFrom;
224
- const descriptionField = `${fieldData.properties.ENTITYNAME}.${fieldData.properties.DESCRIPTIONFIELD}`;
225
- descriptionColumn = {
226
- id: `${mergedFrom ? (mergedFrom + ".") : ""}${descriptionField}`,
227
- label: labelDescription,
228
- width: isUserInterfaceSEARCH && labelDescription ? (labelDescription.length * this.DEFAULT_FONT_SIZE - widthColumnDefault) : column.width,
229
- type: DataType.TEXT,
230
- userInterface: UserInterface$1.LONGTEXT,
231
- descriptionFrom: fieldData.name
232
- };
233
- const newWidth = this.getWidthByMetaData(column === null || column === void 0 ? void 0 : column.width, columnData === null || columnData === void 0 ? void 0 : columnData.width, descriptionColumn === null || descriptionColumn === void 0 ? void 0 : descriptionColumn.width);
234
- columnData = Object.assign(Object.assign({}, columnData), { width: newWidth === null || newWidth === void 0 ? void 0 : newWidth.codWidth });
235
- descriptionColumn = Object.assign(Object.assign({}, descriptionColumn), { width: newWidth === null || newWidth === void 0 ? void 0 : newWidth.descWidth, label: (descriptionColumn === null || descriptionColumn === void 0 ? void 0 : descriptionColumn.label) || (column === null || column === void 0 ? void 0 : column.label) });
221
+ if (isUserInterfaceSEARCH) {
222
+ if (((_b = fieldData === null || fieldData === void 0 ? void 0 : fieldData.properties) === null || _b === void 0 ? void 0 : _b.DESCRIPTIONFIELD) != undefined) {
223
+ const labelDescription = (_c = fieldData === null || fieldData === void 0 ? void 0 : fieldData.properties) === null || _c === void 0 ? void 0 : _c.DESCRIPTIONENTITY;
224
+ const mergedFrom = fieldData.properties.mergedFrom;
225
+ const descriptionField = `${fieldData.properties.ENTITYNAME}.${fieldData.properties.DESCRIPTIONFIELD}`;
226
+ descriptionColumn = {
227
+ id: `${mergedFrom ? (mergedFrom + ".") : ""}${descriptionField}`,
228
+ label: labelDescription,
229
+ width: isUserInterfaceSEARCH && labelDescription ? (labelDescription.length * this.DEFAULT_FONT_SIZE - widthColumnDefault) : column.width,
230
+ type: DataType.TEXT,
231
+ userInterface: UserInterface$1.LONGTEXT,
232
+ descriptionFrom: fieldData.name
233
+ };
234
+ }
235
+ if (descriptionColumn) {
236
+ const newWidth = this.getWidthByMetaData(column === null || column === void 0 ? void 0 : column.width, columnData === null || columnData === void 0 ? void 0 : columnData.width, descriptionColumn === null || descriptionColumn === void 0 ? void 0 : descriptionColumn.width);
237
+ columnData = Object.assign(Object.assign({}, columnData), { width: newWidth === null || newWidth === void 0 ? void 0 : newWidth.codWidth });
238
+ descriptionColumn = Object.assign(Object.assign({}, descriptionColumn), { width: newWidth === null || newWidth === void 0 ? void 0 : newWidth.descWidth, label: (descriptionColumn === null || descriptionColumn === void 0 ? void 0 : descriptionColumn.label) || (column === null || column === void 0 ? void 0 : column.label) });
239
+ }
236
240
  }
237
241
  columnsMetadata.push(columnData);
238
242
  if (descriptionColumn)
@@ -1,7 +1,7 @@
1
- import { R as ResourceFetcher, F as FormConfigFetcher } from './form-config-fetcher-fa208a6c.js';
1
+ import { R as ResourceFetcher, F as FormConfigFetcher } from './form-config-fetcher-ac17cff4.js';
2
2
  import { F as FilterItemType } from './filter-item-type.enum-d45e026f.js';
3
3
  import { ObjectUtils } from '@sankhyalabs/core';
4
- import { d as dist, D as DataFetcher } from './DataFetcher-88e56266.js';
4
+ import { d as dist, D as DataFetcher } from './DataFetcher-ecf5f903.js';
5
5
 
6
6
  class GridConfigFetcher extends ResourceFetcher {
7
7
  constructor() {
@@ -6716,13 +6716,7 @@ class DataFetcher {
6716
6716
  if (error.length > 0) { //As informações do erro vem no primeiro indice de um array
6717
6717
  const errorInfo = error[POSITION_ERROR_INFO];
6718
6718
  const errorMessage = (errorInfo === null || errorInfo === void 0 ? void 0 : errorInfo.message) ? errorInfo === null || errorInfo === void 0 ? void 0 : errorInfo.message : "Não há mensagem de erro";
6719
- /*
6720
- No HTML5, todos os erros de Troubleshooting são considerados alerta,
6721
- pois a comparação errorLevel == ServiceProxyConstants.LEVEL.ERROR sempre é falsa
6722
- Motivo: - errorLevel é uma string "ERROR" por exemplo
6723
- - ServiceProxyConstants.LEVEL.ERROR é um numero 1, por exemplo
6724
- */
6725
- const errorLevel = ((_a = errorInfo === null || errorInfo === void 0 ? void 0 : errorInfo.extensions) === null || _a === void 0 ? void 0 : _a.level) ? "WARNING" : "ERROR";
6719
+ const errorLevel = ((_a = errorInfo === null || errorInfo === void 0 ? void 0 : errorInfo.extensions) === null || _a === void 0 ? void 0 : _a.level) ? errorInfo.extensions.level : "ERROR";
6726
6720
  const errorCode = ((_b = errorInfo === null || errorInfo === void 0 ? void 0 : errorInfo.extensions) === null || _b === void 0 ? void 0 : _b.code) ? errorInfo.extensions.code : "";
6727
6721
  switch (errorLevel) {
6728
6722
  case "WARNING":
@@ -6744,13 +6738,7 @@ class DataFetcher {
6744
6738
  let tsErrorCode, tsErrorLevel;
6745
6739
  if (tsError) {
6746
6740
  tsErrorCode = tsError.tsErrorCode;
6747
- /*
6748
- No HTML5, todos os erros de Troubleshooting são considerados alerta,
6749
- pois a comparação errorLevel == ServiceProxyConstants.LEVEL.ERROR sempre é falsa
6750
- Motivo: - errorLevel é uma string "ERROR" por exemplo
6751
- - ServiceProxyConstants.LEVEL.ERROR é um numero 1, por exemplo
6752
- */
6753
- tsErrorLevel = "WARNING";
6741
+ tsErrorLevel = tsError.tsErrorLevel;
6754
6742
  }
6755
6743
  if (tsErrorLevel === "WARNING") {
6756
6744
  return new WarningException(title, statusMessage, tsErrorCode);
@@ -1,5 +1,5 @@
1
1
  import { UserInterface, DataType, ApplicationContext, ErrorException } from '@sankhyalabs/core';
2
- import { d as dist, D as DataFetcher } from './DataFetcher-88e56266.js';
2
+ import { d as dist, D as DataFetcher } from './DataFetcher-ecf5f903.js';
3
3
 
4
4
  function buildGridMetadata(rawValue) {
5
5
  const fieldsMetadata = buildFieldsMetadata(rawValue.fieldsMetadata);
@@ -148,20 +148,7 @@ class PesquisaFetcher {
148
148
  });
149
149
  });
150
150
  }
151
- buildDescriptionCacheKey(entityName, codeValue) {
152
- return `${entityName}__${codeValue}`;
153
- }
154
- async loadByCode(entityName, codeValue, criteria, searchOptions) {
155
- const cacheKey = this.buildDescriptionCacheKey(entityName, codeValue);
156
- const cachedValue = PesquisaFetcher.DESCRIPTIONS_BY_CODE[cacheKey];
157
- if (cachedValue) {
158
- return Promise.resolve(cachedValue);
159
- }
160
- const result = await this.loadAdvancedSearch(entityName, undefined, criteria, searchOptions, codeValue);
161
- PesquisaFetcher.DESCRIPTIONS_BY_CODE[cacheKey] = result;
162
- return result;
163
- }
164
- loadAdvancedSearch(entityName, argument, criteria, searchOptions, codeValue) {
151
+ loadAdvancedSearch(entityName, argument, criteria, searchOptions) {
165
152
  var _a, _b, _c, _d, _e;
166
153
  const listenerResult = this.applySearchListener(SearchListenerType.beforeSearch, entityName, argument, criteria, searchOptions);
167
154
  const values = {
@@ -205,22 +192,12 @@ class PesquisaFetcher {
205
192
  const reqBody = {
206
193
  "serviceName": serviceName,
207
194
  "requestBody": {
208
- "criteria": Object.assign({ "entityName": entityName, "compacted": false, "ignoreEntityCriteria": (_d = options === null || options === void 0 ? void 0 : options.ignoreEntityCriteria) !== null && _d !== void 0 ? _d : false, "limit": this._defaultPageSize, "orderByDesc": false, "externalCriteria": externalCriteria, "localEntityName": (_e = values.searchOptions) === null || _e === void 0 ? void 0 : _e.rootEntity }, { options }),
195
+ "criteria": Object.assign({ "entityName": entityName, "compacted": false, "ignoreEntityCriteria": (_d = options === null || options === void 0 ? void 0 : options.ignoreEntityCriteria) !== null && _d !== void 0 ? _d : false, "limit": this._defaultPageSize, "query": { "$": values.argument }, "orderByDesc": false, "externalCriteria": externalCriteria, "localEntityName": (_e = values.searchOptions) === null || _e === void 0 ? void 0 : _e.rootEntity }, { options }),
209
196
  "clientEventList": {
210
197
  "clientEvent": []
211
198
  }
212
199
  }
213
200
  };
214
- if (codeValue == undefined) {
215
- reqBody.requestBody.criteria.query = {
216
- "$": argument
217
- };
218
- }
219
- else {
220
- reqBody.requestBody.criteria.pk = {
221
- "$": codeValue
222
- };
223
- }
224
201
  const urlOptions = {
225
202
  urlParams: {
226
203
  "quietMode": true
@@ -330,7 +307,6 @@ class PesquisaFetcher {
330
307
  return params;
331
308
  }
332
309
  }
333
- PesquisaFetcher.DESCRIPTIONS_BY_CODE = {};
334
310
  function buildLoadGridConfigPayload(entityName) {
335
311
  return {
336
312
  'gridConfig': {
@@ -1,7 +1,7 @@
1
- import { C as ConfigStorage } from './ConfigStorage-71e6766f.js';
1
+ import { C as ConfigStorage } from './ConfigStorage-9bd805d6.js';
2
2
  import { ObjectUtils, StringUtils } from '@sankhyalabs/core';
3
- import { F as FormConfigFetcher } from './form-config-fetcher-fa208a6c.js';
4
- import { c as TAB_NAMES } from './constants-7db1128a.js';
3
+ import { F as FormConfigFetcher } from './form-config-fetcher-ac17cff4.js';
4
+ import { c as TAB_NAMES } from './constants-75abb876.js';
5
5
 
6
6
  class SnkFormConfigManager {
7
7
  constructor(configName, resourceID, onConfigChange, dataUnit) {
@@ -1,5 +1,5 @@
1
1
  import { ObjectUtils } from '@sankhyalabs/core';
2
- import { R as ResourceFetcher } from './form-config-fetcher-fa208a6c.js';
2
+ import { R as ResourceFetcher } from './form-config-fetcher-ac17cff4.js';
3
3
 
4
4
  class AuthFetcher extends ResourceFetcher {
5
5
  getData(resourceID) {
@@ -67,7 +67,6 @@ const TAGS_BY_TYPE = {
67
67
  CHECKBOX: "ez-check",
68
68
  OPTIONSELECTOR: "ez-combo-box",
69
69
  SEARCH: "ez-search",
70
- SEARCHPLUS: "ez-search-plus",
71
70
  INTEGERNUMBER: "ez-number-input",
72
71
  DECIMALNUMBER: "ez-number-input"
73
72
  };