@sankhyalabs/sankhyablocks 8.15.0-dev.8 → 8.15.0-rc.1

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 (159) hide show
  1. package/dist/cjs/{ISave-d68ce3cd.js → ISave-e91b70a7.js} +1 -0
  2. package/dist/cjs/{SnkMessageBuilder-7293d0ad.js → SnkMessageBuilder-e7dcf408.js} +13 -0
  3. package/dist/cjs/loader.cjs.js +1 -1
  4. package/dist/cjs/{dataunit-fetcher-14108bec.js → pesquisa-fetcher-e4a7c4c3.js} +235 -26
  5. package/dist/cjs/sankhyablocks.cjs.js +1 -1
  6. package/dist/cjs/snk-actions-button_2.cjs.entry.js +5 -4
  7. package/dist/cjs/snk-application.cjs.entry.js +12 -4
  8. package/dist/cjs/snk-attach.cjs.entry.js +388 -57
  9. package/dist/cjs/snk-crud.cjs.entry.js +3 -4
  10. package/dist/cjs/snk-data-exporter.cjs.entry.js +3 -3
  11. package/dist/cjs/{snk-data-unit-1bc69073.js → snk-data-unit-82c08a8c.js} +1 -1
  12. package/dist/cjs/snk-data-unit.cjs.entry.js +2 -2
  13. package/dist/cjs/snk-detail-view.cjs.entry.js +4 -5
  14. package/dist/cjs/snk-filter-bar.cjs.entry.js +8 -1
  15. package/dist/cjs/snk-filter-item.cjs.entry.js +3 -0
  16. package/dist/cjs/snk-filter-modal.cjs.entry.js +2 -1
  17. package/dist/cjs/snk-filter-multi-select.cjs.entry.js +2 -1
  18. package/dist/cjs/{snk-guides-viewer-c8b9374f.js → snk-guides-viewer-d32c096f.js} +2 -3
  19. package/dist/cjs/snk-guides-viewer.cjs.entry.js +3 -4
  20. package/dist/cjs/snk-pesquisa.cjs.entry.js +1 -1
  21. package/dist/cjs/snk-simple-crud.cjs.entry.js +17 -6
  22. package/dist/collection/collection-manifest.json +1 -1
  23. package/dist/collection/components/snk-application/snk-application.js +52 -9
  24. package/dist/collection/components/snk-attach/snk-attach.js +188 -39
  25. package/dist/collection/components/snk-attach/structure/{crud-config-builder.js → builder/anexo-sistema-crud-config.builder.js} +1 -1
  26. package/dist/collection/components/snk-attach/structure/builder/attach-crud-config.builder.js +62 -0
  27. package/dist/collection/components/snk-attach/structure/{taskbar-builder.js → builder/taskbar-builder.js} +1 -1
  28. package/dist/collection/components/snk-attach/structure/fetcher/facade/fetcher.facade.js +1 -0
  29. package/dist/collection/components/snk-attach/structure/{data-unit-builder.js → fetcher/factory/anexo-sistema-data-unit.factory.js} +14 -11
  30. package/dist/collection/components/snk-attach/structure/fetcher/factory/attach-fetcher-data-unit.factory.js +111 -0
  31. package/dist/collection/components/snk-attach/structure/index.js +6 -3
  32. package/dist/collection/components/snk-crud/snk-crud.js +1 -1
  33. package/dist/collection/components/snk-data-exporter/snk-data-exporter.js +1 -1
  34. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-multi-select.js +2 -1
  35. package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-item.js +3 -0
  36. package/dist/collection/components/snk-filter-bar/filter-modal/snk-filter-modal.js +19 -1
  37. package/dist/collection/components/snk-filter-bar/snk-filter-bar.js +22 -0
  38. package/dist/collection/components/snk-filter-bar/utils/SnkFilterModalFactory.js +3 -1
  39. package/dist/collection/components/snk-pesquisa/snk-pesquisa.css +2 -4
  40. package/dist/collection/components/snk-simple-crud/snk-simple-crud.js +53 -1
  41. package/dist/collection/components/snk-taskbar/elements/taskbar-actions-button/taskbar-actions-button.js +3 -1
  42. package/dist/collection/lib/dataUnit/InMemoryLoader.js +1 -1
  43. package/dist/collection/lib/http/data-fetcher/fetchers/{attach-fetcher.js → AttachFetcher/anexo-sistema-fetcher.js} +16 -15
  44. package/dist/collection/lib/http/data-fetcher/fetchers/AttachFetcher/attach-fetcher.js +90 -0
  45. package/dist/collection/lib/http/data-fetcher/fetchers/AttachFetcher/facade/attach-fetcher.facade.js +1 -0
  46. package/dist/collection/lib/http/data-fetcher/fetchers/AttachFetcher/index.js +2 -0
  47. package/dist/collection/lib/http/data-fetcher/fetchers/AttachFetcher/interfaces/IDelete.js +1 -0
  48. package/dist/collection/lib/http/data-fetcher/fetchers/AttachFetcher/interfaces/IDownloadKey.js +1 -0
  49. package/dist/collection/lib/http/data-fetcher/fetchers/{fecthAttach → AttachFetcher}/interfaces/ISave.js +1 -0
  50. package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/dataunit-fetcher.js +29 -2
  51. package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/loadstrategy/DatasetStrategy.js +37 -23
  52. package/dist/collection/lib/http/data-fetcher/fetchers/pesquisa-fetcher.js +7 -1
  53. package/dist/collection/lib/index.js +1 -1
  54. package/dist/collection/lib/message/resources/snk-attach.msg.js +13 -0
  55. package/dist/components/SnkMessageBuilder.js +13 -0
  56. package/dist/components/dataunit-fetcher.js +74 -27
  57. package/dist/components/snk-actions-button2.js +1 -0
  58. package/dist/components/snk-application2.js +11 -1
  59. package/dist/components/snk-attach2.js +394 -57
  60. package/dist/components/snk-crud.js +1 -1
  61. package/dist/components/snk-data-exporter2.js +1 -1
  62. package/dist/components/snk-filter-bar2.js +9 -1
  63. package/dist/components/snk-filter-item2.js +3 -0
  64. package/dist/components/snk-filter-modal.js +4 -2
  65. package/dist/components/snk-filter-multi-select.js +2 -1
  66. package/dist/components/snk-pesquisa2.js +1 -1
  67. package/dist/components/snk-simple-crud2.js +15 -1
  68. package/dist/components/taskbar-actions-button2.js +3 -1
  69. package/dist/esm/{ISave-4412b20c.js → ISave-d8c8bc59.js} +1 -0
  70. package/dist/esm/{SnkMessageBuilder-ca843d1b.js → SnkMessageBuilder-0fb796b9.js} +13 -0
  71. package/dist/esm/loader.js +1 -1
  72. package/dist/esm/{dataunit-fetcher-cbec1594.js → pesquisa-fetcher-fa0c2540.js} +235 -27
  73. package/dist/esm/sankhyablocks.js +1 -1
  74. package/dist/esm/snk-actions-button_2.entry.js +5 -4
  75. package/dist/esm/snk-application.entry.js +11 -3
  76. package/dist/esm/snk-attach.entry.js +389 -58
  77. package/dist/esm/snk-crud.entry.js +3 -4
  78. package/dist/esm/snk-data-exporter.entry.js +3 -3
  79. package/dist/esm/{snk-data-unit-6208ebf0.js → snk-data-unit-5d201fb3.js} +1 -1
  80. package/dist/esm/snk-data-unit.entry.js +2 -2
  81. package/dist/esm/snk-detail-view.entry.js +4 -5
  82. package/dist/esm/snk-filter-bar.entry.js +8 -1
  83. package/dist/esm/snk-filter-item.entry.js +3 -0
  84. package/dist/esm/snk-filter-modal.entry.js +2 -1
  85. package/dist/esm/snk-filter-multi-select.entry.js +2 -1
  86. package/dist/esm/{snk-guides-viewer-8da24475.js → snk-guides-viewer-f49613c6.js} +2 -3
  87. package/dist/esm/snk-guides-viewer.entry.js +3 -4
  88. package/dist/esm/snk-pesquisa.entry.js +1 -1
  89. package/dist/esm/snk-simple-crud.entry.js +15 -4
  90. package/dist/sankhyablocks/p-02e3a45b.entry.js +1 -0
  91. package/dist/sankhyablocks/{p-ff6064e7.js → p-05243555.js} +1 -1
  92. package/dist/sankhyablocks/p-0ec5b2e5.js +1 -0
  93. package/dist/sankhyablocks/{p-9e7d65a4.js → p-21749402.js} +1 -1
  94. package/dist/sankhyablocks/p-2582537c.entry.js +1 -0
  95. package/dist/sankhyablocks/p-282789a6.entry.js +1 -0
  96. package/dist/sankhyablocks/p-3b0e4e08.js +65 -0
  97. package/dist/sankhyablocks/{p-0874adb5.entry.js → p-40915359.entry.js} +1 -1
  98. package/dist/sankhyablocks/p-62896624.entry.js +1 -0
  99. package/dist/sankhyablocks/p-70a4af56.entry.js +1 -0
  100. package/dist/sankhyablocks/{p-6977a26c.entry.js → p-86801b08.entry.js} +1 -1
  101. package/dist/sankhyablocks/p-9b5944a4.entry.js +1 -0
  102. package/dist/sankhyablocks/p-9bdbc7d8.entry.js +1 -0
  103. package/dist/sankhyablocks/p-ac384baf.entry.js +1 -0
  104. package/dist/sankhyablocks/p-bf2acf72.entry.js +1 -0
  105. package/dist/sankhyablocks/p-c4874327.entry.js +1 -0
  106. package/dist/sankhyablocks/{p-247a8b36.entry.js → p-d1791da2.entry.js} +1 -1
  107. package/dist/sankhyablocks/{p-ba3d3fa9.entry.js → p-e817f254.entry.js} +3 -3
  108. package/dist/sankhyablocks/{p-32f0935f.js → p-f3d1c48e.js} +1 -1
  109. package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
  110. package/dist/types/components/snk-actions-button/subcomponents/snk-actions-form.d.ts +1 -1
  111. package/dist/types/components/snk-application/snk-application.d.ts +7 -0
  112. package/dist/types/components/snk-attach/{structure/crud-config-builder.d.ts → interfaces/ICrudConfig.d.ts} +1 -2
  113. package/dist/types/components/snk-attach/interfaces/TFetcherType.d.ts +1 -0
  114. package/dist/types/components/snk-attach/snk-attach.d.ts +27 -6
  115. package/dist/types/components/snk-attach/structure/builder/anexo-sistema-crud-config.builder.d.ts +2 -0
  116. package/dist/types/components/snk-attach/structure/builder/attach-crud-config.builder.d.ts +31 -0
  117. package/dist/types/components/snk-attach/structure/{taskbar-builder.d.ts → builder/taskbar-builder.d.ts} +1 -1
  118. package/dist/types/components/snk-attach/structure/fetcher/facade/fetcher.facade.d.ts +11 -0
  119. package/dist/types/components/snk-attach/structure/fetcher/factory/anexo-sistema-data-unit.factory.d.ts +17 -0
  120. package/dist/types/components/snk-attach/structure/fetcher/factory/attach-fetcher-data-unit.factory.d.ts +15 -0
  121. package/dist/types/components/snk-attach/structure/index.d.ts +6 -3
  122. package/dist/types/components/snk-filter-bar/filter-item/snk-filter-item.d.ts +1 -1
  123. package/dist/types/components/snk-filter-bar/filter-modal/snk-filter-modal.d.ts +5 -0
  124. package/dist/types/components/snk-filter-bar/snk-filter-bar.d.ts +5 -0
  125. package/dist/types/components/snk-filter-bar/utils/SnkFilterModalFactory.d.ts +3 -1
  126. package/dist/types/components/snk-simple-crud/snk-simple-crud.d.ts +10 -1
  127. package/dist/types/components.d.ts +74 -2
  128. package/dist/types/lib/http/data-fetcher/DataFetcher.d.ts +1 -1
  129. package/dist/types/lib/http/data-fetcher/fetchers/{attach-fetcher.d.ts → AttachFetcher/anexo-sistema-fetcher.d.ts} +3 -2
  130. package/dist/types/lib/http/data-fetcher/fetchers/AttachFetcher/attach-fetcher.d.ts +11 -0
  131. package/dist/types/lib/http/data-fetcher/fetchers/AttachFetcher/facade/attach-fetcher.facade.d.ts +8 -0
  132. package/dist/types/lib/http/data-fetcher/fetchers/AttachFetcher/index.d.ts +3 -0
  133. package/dist/types/lib/http/data-fetcher/fetchers/{fecthAttach → AttachFetcher}/interfaces/ISave.d.ts +2 -1
  134. package/dist/types/lib/http/data-fetcher/fetchers/data-unit/dataunit-fetcher.d.ts +2 -0
  135. package/dist/types/lib/http/data-fetcher/fetchers/data-unit/loadstrategy/DatasetStrategy.d.ts +1 -0
  136. package/dist/types/lib/index.d.ts +1 -1
  137. package/package.json +7 -5
  138. package/dist/cjs/pesquisa-fetcher-ef050a47.js +0 -167
  139. package/dist/esm/pesquisa-fetcher-dd3ca0a5.js +0 -165
  140. package/dist/sankhyablocks/p-20726710.entry.js +0 -1
  141. package/dist/sankhyablocks/p-25927311.entry.js +0 -1
  142. package/dist/sankhyablocks/p-3891ae6f.js +0 -60
  143. package/dist/sankhyablocks/p-4775a293.entry.js +0 -1
  144. package/dist/sankhyablocks/p-7d8d7fe9.entry.js +0 -1
  145. package/dist/sankhyablocks/p-8d70b5d5.entry.js +0 -1
  146. package/dist/sankhyablocks/p-a9e4bb55.entry.js +0 -1
  147. package/dist/sankhyablocks/p-a9e5b094.entry.js +0 -1
  148. package/dist/sankhyablocks/p-aa0ae6bc.entry.js +0 -1
  149. package/dist/sankhyablocks/p-c4d19840.entry.js +0 -1
  150. package/dist/sankhyablocks/p-c6e477ff.js +0 -1
  151. package/dist/sankhyablocks/p-d81f20c4.entry.js +0 -1
  152. package/dist/sankhyablocks/p-d9bb09b3.js +0 -6
  153. package/dist/types/components/snk-attach/structure/data-unit-builder.d.ts +0 -15
  154. /package/dist/collection/{lib/http/data-fetcher/fetchers/fecthAttach/interfaces/IDelete.js → components/snk-attach/interfaces/ICrudConfig.js} +0 -0
  155. /package/dist/collection/{lib/http/data-fetcher/fetchers/fecthAttach/interfaces/IDownloadKey.js → components/snk-attach/interfaces/TFetcherType.js} +0 -0
  156. /package/dist/collection/lib/http/data-fetcher/fetchers/{fecthAttach → AttachFetcher}/interfaces/index.js +0 -0
  157. /package/dist/types/lib/http/data-fetcher/fetchers/{fecthAttach → AttachFetcher}/interfaces/IDelete.d.ts +0 -0
  158. /package/dist/types/lib/http/data-fetcher/fetchers/{fecthAttach → AttachFetcher}/interfaces/IDownloadKey.d.ts +0 -0
  159. /package/dist/types/lib/http/data-fetcher/fetchers/{fecthAttach → AttachFetcher}/interfaces/index.d.ts +0 -0
@@ -6,12 +6,11 @@ const index = require('./index-f9e81701.js');
6
6
  const core = require('@sankhyalabs/core');
7
7
  const taskbarElements = require('./taskbar-elements-01b85b99.js');
8
8
  require('./DataFetcher-ba94ed5b.js');
9
- require('./pesquisa-fetcher-ef050a47.js');
9
+ require('./pesquisa-fetcher-e4a7c4c3.js');
10
10
  const index$1 = require('./index-0922807b.js');
11
- require('./ISave-d68ce3cd.js');
11
+ require('./ISave-e91b70a7.js');
12
12
  require('@sankhyalabs/ezui/dist/collection/utils/constants');
13
13
  require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
14
- require('./dataunit-fetcher-14108bec.js');
15
14
  require('./PreloadManager-84466da6.js');
16
15
  require('./filter-item-type.enum-a7ffdaa6.js');
17
16
  require('./form-config-fetcher-df043d3d.js');
@@ -298,7 +297,7 @@ const SnkCrud = class {
298
297
  return;
299
298
  }
300
299
  this._snkDataUnit.ignoreSaveMessage = this._currentViewMode === constants.VIEW_MODE.GRID;
301
- return (index.h(index.Host, null, index.h("ez-view-stack", { ref: (ref) => this._viewStack = ref, "data-element-id": "crud" }, index.h("stack-item", null, index.h("snk-grid", { ref: (ref) => this._snkGrid = ref, "data-element-id": "crud_grid", configName: this.configName, onGridDoubleClick: () => this.gridToForm(true), taskbarManager: this.taskbarManager, onActionClick: evt => this.executeAction(evt.detail), messagesBuilder: this.messagesBuilder, actionsList: this.actionsList, statusResolver: this.statusResolver, multipleSelection: this.multipleSelection, presentationMode: this.presentationMode, selectionToastConfig: this.selectionToastConfig, useEnterLikeTab: this.useEnterLikeTab, canEdit: this._canEdit, resourceID: this._resourceID }, index.h("slot", { name: "GRID_TASKBAR_CUSTOM_ELEMENTS" }), index.h("slot", { name: "GRID_HEADER_CUSTOM_ELEMENTS" }), index.h("slot", { name: "SnkGridHeader" }), index.h("slot", { name: "SnkGridFooter" }), index.h("slot", { name: "SnkGridTaskBar" }))), index.h("stack-item", null, index.h("snk-guides-viewer", { ref: ref => this._guidesViewer = ref, entityPath: this._snkDataUnit.entityName, messagesBuilder: this.messagesBuilder, onExit: () => this.setViewMode(constants.VIEW_MODE.GRID), dataState: this._dataState, dataUnit: this._dataUnit, actionsList: this.actionsList, taskbarManager: this.taskbarManager, configName: this.configName, onActionClick: evt => this.executeAction(evt.detail), presentationMode: this.presentationMode, "data-element-id": "crud_form", canEdit: this._canEdit, resourceID: this._resourceID, detailTaskbarCustomContainerId: this.customContainerId }, index.h("slot", { name: "GUIDES_VIEWER_TASKBAR_CUSTOM_ELEMENTS" }), index.h("slot", { name: "SnkFormTaskBar" }))), index.h("stack-item", null, index.h("snk-attach", { registerKey: this.attachmentRegisterKey, messagesBuilder: this.messagesBuilder, entityName: this._snkDataUnit.entityName, onBack: this.backView.bind(this) })), index.h("snk-configurator", { ref: (ref) => this._snkConfigurator = ref, viewMode: this._currentViewMode, messagesBuilder: this.messagesBuilder, onConfigSelected: (evt) => this.setViewMode(evt.detail), onOpenConfig: (evt) => this.openConfig(evt.detail), showActionButtons: this.showActionButtons, onSave: evt => this.handleConfiguratorEvent(evt, 'SAVE'), onCancel: evt => this.handleConfiguratorEvent(evt, 'CANCEL'), resourceID: this._resourceID, customContainerId: this.customContainerId })), index.h("div", { id: `${this.customContainerId}` }, index.h("slot", { name: "SnkConfigContainerSlot" }), index.h("slot", { name: "DETAIL_GRID_HEADER_CUSTOM_ELEMENTS" }), index.h("slot", { name: "DETAIL_GRID_TASKBAR_CUSTOM_ELEMENTS" }), index.h("slot", { name: "DETAIL_TASKBAR_CUSTOM_ELEMENTS" }))));
300
+ return (index.h(index.Host, null, index.h("ez-view-stack", { ref: (ref) => this._viewStack = ref, "data-element-id": "crud" }, index.h("stack-item", null, index.h("snk-grid", { ref: (ref) => this._snkGrid = ref, "data-element-id": "crud_grid", configName: this.configName, onGridDoubleClick: () => this.gridToForm(true), taskbarManager: this.taskbarManager, onActionClick: evt => this.executeAction(evt.detail), messagesBuilder: this.messagesBuilder, actionsList: this.actionsList, statusResolver: this.statusResolver, multipleSelection: this.multipleSelection, presentationMode: this.presentationMode, recordsValidator: this.recordsValidator, selectionToastConfig: this.selectionToastConfig, useEnterLikeTab: this.useEnterLikeTab, canEdit: this._canEdit, resourceID: this._resourceID }, index.h("slot", { name: "GRID_TASKBAR_CUSTOM_ELEMENTS" }), index.h("slot", { name: "GRID_HEADER_CUSTOM_ELEMENTS" }), index.h("slot", { name: "SnkGridHeader" }), index.h("slot", { name: "SnkGridFooter" }), index.h("slot", { name: "SnkGridTaskBar" }))), index.h("stack-item", null, index.h("snk-guides-viewer", { ref: ref => this._guidesViewer = ref, entityPath: this._snkDataUnit.entityName, messagesBuilder: this.messagesBuilder, onExit: () => this.setViewMode(constants.VIEW_MODE.GRID), dataState: this._dataState, dataUnit: this._dataUnit, actionsList: this.actionsList, taskbarManager: this.taskbarManager, configName: this.configName, onActionClick: evt => this.executeAction(evt.detail), presentationMode: this.presentationMode, "data-element-id": "crud_form", canEdit: this._canEdit, recordsValidator: this.recordsValidator, resourceID: this._resourceID, detailTaskbarCustomContainerId: this.customContainerId }, index.h("slot", { name: "GUIDES_VIEWER_TASKBAR_CUSTOM_ELEMENTS" }), index.h("slot", { name: "SnkFormTaskBar" }))), index.h("stack-item", null, index.h("snk-attach", { registerKey: this.attachmentRegisterKey, messagesBuilder: this.messagesBuilder, entityName: this._snkDataUnit.entityName, onBack: this.backView.bind(this) })), index.h("snk-configurator", { ref: (ref) => this._snkConfigurator = ref, viewMode: this._currentViewMode, messagesBuilder: this.messagesBuilder, onConfigSelected: (evt) => this.setViewMode(evt.detail), onOpenConfig: (evt) => this.openConfig(evt.detail), showActionButtons: this.showActionButtons, onSave: evt => this.handleConfiguratorEvent(evt, 'SAVE'), onCancel: evt => this.handleConfiguratorEvent(evt, 'CANCEL'), resourceID: this._resourceID, customContainerId: this.customContainerId })), index.h("div", { id: `${this.customContainerId}` }, index.h("slot", { name: "SnkConfigContainerSlot" }), index.h("slot", { name: "DETAIL_GRID_HEADER_CUSTOM_ELEMENTS" }), index.h("slot", { name: "DETAIL_GRID_TASKBAR_CUSTOM_ELEMENTS" }), index.h("slot", { name: "DETAIL_TASKBAR_CUSTOM_ELEMENTS" }))));
302
301
  }
303
302
  get _element() { return index.getElement(this); }
304
303
  static get watchers() { return {
@@ -8,10 +8,10 @@ const utils = require('@sankhyalabs/ezui/dist/collection/utils');
8
8
  const index = require('./index-0922807b.js');
9
9
  const constants = require('./constants-35ddd366.js');
10
10
  const DataFetcher = require('./DataFetcher-ba94ed5b.js');
11
- const snkDataUnit = require('./snk-data-unit-1bc69073.js');
11
+ const snkDataUnit = require('./snk-data-unit-82c08a8c.js');
12
12
  require('./PrintUtils-bcaeb82f.js');
13
13
  require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
14
- require('./SnkMessageBuilder-7293d0ad.js');
14
+ require('./SnkMessageBuilder-e7dcf408.js');
15
15
 
16
16
  class ItemBuilder {
17
17
  constructor(getMessage, selectedNumber) {
@@ -447,7 +447,7 @@ const SnkDataExporter = class {
447
447
  pkObject[`PK_${name}`] = { type: this.parseDataType(type), value };
448
448
  pkObject['pks'] = [];
449
449
  }
450
- const dataFields = { nome: name, tipo: type, valor: value };
450
+ const dataFields = { nome: name, tipo: this.parseDataType(type), valor: value };
451
451
  fields['fields'].push(dataFields);
452
452
  pkObject['pks'].push(fields);
453
453
  });
@@ -3,7 +3,7 @@
3
3
  const index = require('./index-f9e81701.js');
4
4
  const core = require('@sankhyalabs/core');
5
5
  const utils = require('@sankhyalabs/ezui/dist/collection/utils');
6
- const SnkMessageBuilder = require('./SnkMessageBuilder-7293d0ad.js');
6
+ const SnkMessageBuilder = require('./SnkMessageBuilder-e7dcf408.js');
7
7
 
8
8
  const SnkDataUnit = class {
9
9
  constructor(hostRef) {
@@ -2,11 +2,11 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const snkDataUnit = require('./snk-data-unit-1bc69073.js');
5
+ const snkDataUnit = require('./snk-data-unit-82c08a8c.js');
6
6
  require('./index-f9e81701.js');
7
7
  require('@sankhyalabs/core');
8
8
  require('@sankhyalabs/ezui/dist/collection/utils');
9
- require('./SnkMessageBuilder-7293d0ad.js');
9
+ require('./SnkMessageBuilder-e7dcf408.js');
10
10
 
11
11
 
12
12
 
@@ -7,19 +7,18 @@ const core = require('@sankhyalabs/core');
7
7
  const SnkFormConfigManager = require('./SnkFormConfigManager-71c4768e.js');
8
8
  const form = require('@sankhyalabs/ezui/dist/collection/utils/form');
9
9
  require('./DataFetcher-ba94ed5b.js');
10
- require('./pesquisa-fetcher-ef050a47.js');
10
+ require('./pesquisa-fetcher-e4a7c4c3.js');
11
11
  const index$1 = require('./index-0922807b.js');
12
- require('./ISave-d68ce3cd.js');
12
+ require('./ISave-e91b70a7.js');
13
13
  require('@sankhyalabs/ezui/dist/collection/utils/constants');
14
14
  require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
15
- require('./dataunit-fetcher-14108bec.js');
16
15
  require('./PreloadManager-84466da6.js');
17
16
  require('./filter-item-type.enum-a7ffdaa6.js');
18
17
  require('./form-config-fetcher-df043d3d.js');
19
18
  const taskbarElements = require('./taskbar-elements-01b85b99.js');
20
19
  const constants = require('./constants-35ddd366.js');
21
- const snkGuidesViewer = require('./snk-guides-viewer-c8b9374f.js');
22
- const SnkMessageBuilder = require('./SnkMessageBuilder-7293d0ad.js');
20
+ const snkGuidesViewer = require('./snk-guides-viewer-d32c096f.js');
21
+ const SnkMessageBuilder = require('./SnkMessageBuilder-e7dcf408.js');
23
22
  require('./ConfigStorage-302bbbd4.js');
24
23
  require('./PrintUtils-bcaeb82f.js');
25
24
  require('./ResourceIDUtils-5ff86aa7.js');
@@ -208,11 +208,12 @@ function buildPersonalized(item) {
208
208
  }
209
209
 
210
210
  class SnkFilterModalFactory {
211
- constructor({ filterConfig, configName, onComplete, getMessage, onAddPersonalizedFilter, onEditPersonalizedFilter, onDeletePersonalizedFilter }) {
211
+ constructor({ filterConfig, configName, onComplete, getMessage, disablePersonalizedFilter, onAddPersonalizedFilter, onEditPersonalizedFilter, onDeletePersonalizedFilter }) {
212
212
  this._filterConfig = filterConfig;
213
213
  this._configName = configName;
214
214
  this._onComplete = onComplete;
215
215
  this._getMessage = getMessage;
216
+ this._disablePersonalizedFilter = disablePersonalizedFilter;
216
217
  this._addPersonalizedFilterFn = onAddPersonalizedFilter;
217
218
  this._editPersonalizedFilterFn = onEditPersonalizedFilter;
218
219
  this._onDeletePersonalizedFilter = onDeletePersonalizedFilter;
@@ -226,6 +227,7 @@ class SnkFilterModalFactory {
226
227
  filterModal.className = "ez-size-height--full";
227
228
  filterModal.filters = this._filterConfig;
228
229
  filterModal.configName = this._configName;
230
+ filterModal.disablePersonalizedFilter = this._disablePersonalizedFilter;
229
231
  filterModal.getMessage = this._getMessage.bind(this);
230
232
  filterModal.applyFilters = this.applyFilters.bind(this);
231
233
  filterModal.closeModal = () => this._closeModal();
@@ -279,6 +281,7 @@ const SnkFilterBar = class {
279
281
  this.resourceID = undefined;
280
282
  this.filterConfig = undefined;
281
283
  this.messagesBuilder = undefined;
284
+ this.disablePersonalizedFilter = undefined;
282
285
  this.allowDefault = undefined;
283
286
  this.scrollerLocked = false;
284
287
  this.showPersonalizedFilter = false;
@@ -426,6 +429,9 @@ const SnkFilterBar = class {
426
429
  */
427
430
  getMessage(key, params, defaultValue) {
428
431
  var _a;
432
+ if (this.messagesBuilder == undefined && this._application) {
433
+ this.messagesBuilder = this._application.messagesBuilder;
434
+ }
429
435
  return ((_a = this.messagesBuilder) === null || _a === void 0 ? void 0 : _a.getMessage(key, params)) || defaultValue;
430
436
  }
431
437
  getFilter(_dataUnit) {
@@ -587,6 +593,7 @@ const SnkFilterBar = class {
587
593
  filterConfig: filtersConfigCopy,
588
594
  configName: this.configName,
589
595
  onComplete: callbackOnApplyFilter,
596
+ disablePersonalizedFilter: this.disablePersonalizedFilter,
590
597
  getMessage: (key, props) => this.getMessage(key, props),
591
598
  onAddPersonalizedFilter: () => this.addPersonalizedFilter(),
592
599
  onEditPersonalizedFilter: (id) => this.editPersonalizedFilter(id),
@@ -262,6 +262,9 @@ const SnkFilterItem = class {
262
262
  }
263
263
  canClearFilter() {
264
264
  const { value, groupedItems = [] } = this.config;
265
+ if (value != undefined && this.config.type === filterItemType_enum.FilterItemType.MULTI_LIST) {
266
+ return value.some((item) => item.check);
267
+ }
265
268
  return value !== undefined || groupedItems.some(item => item.visible);
266
269
  }
267
270
  getRightIconName() {
@@ -26,6 +26,7 @@ const SnkFilterModal = class {
26
26
  this.editPersonalizedFilter = undefined;
27
27
  this.deletePersonalizedFilter = undefined;
28
28
  this.filtersToDelete = [];
29
+ this.disablePersonalizedFilter = undefined;
29
30
  }
30
31
  /**
31
32
  * Emitido quando um filtro personalizado é deletado.
@@ -240,7 +241,7 @@ const SnkFilterModal = class {
240
241
  const customFilters = this.filters.filter(filter => filter.filterType === filterType_enum.FilterType.CUSTOM_FILTER);
241
242
  const quickFilters = this.filters.filter(filter => filter.filterType === filterType_enum.FilterType.QUICK_FILTER);
242
243
  const otherFilters = this.filters.filter(filter => filter.filterType === filterType_enum.FilterType.OTHER_FILTERS);
243
- return (index.h("ez-modal-container", { class: "snk-filter-modal__container", modalTitle: this._modalTitle, cancelButtonLabel: this._cancelButtonLabel, okButtonLabel: this._okButtonLabel, onEzModalAction: this.modalActionListener.bind(this) }, index.h("div", { class: "snk-filter-modal__content ez-col--sd-12" }, this.renderCollapsibleFilterBox(this.getCustomMessage('customFilters'), customFilters, false, false), this.renderCollapsibleFilterBox(this.getCustomMessage('quickFilters'), quickFilters, false), otherFilters.map(filter => this.renderCollapsibleFilterBox(filter.label, [filter], true)))));
244
+ return (index.h("ez-modal-container", { class: "snk-filter-modal__container", modalTitle: this._modalTitle, cancelButtonLabel: this._cancelButtonLabel, okButtonLabel: this._okButtonLabel, onEzModalAction: this.modalActionListener.bind(this) }, index.h("div", { class: "snk-filter-modal__content ez-col--sd-12" }, !this.disablePersonalizedFilter && this.renderCollapsibleFilterBox(this.getCustomMessage('customFilters'), customFilters, false, false), this.renderCollapsibleFilterBox(this.getCustomMessage('quickFilters'), quickFilters, false), otherFilters.map(filter => this.renderCollapsibleFilterBox(filter.label, [filter], true)))));
244
245
  }
245
246
  };
246
247
  SnkFilterModal.style = snkFilterModalCss;
@@ -17,7 +17,8 @@ const SnkFilterMultiSelect = class {
17
17
  * Emitido quando acontece a alteração de valor do componente snk-filter-multi-select
18
18
  */
19
19
  ezChangeListener(evt) {
20
- this.value = evt.detail.value;
20
+ var _a;
21
+ this.value = (_a = evt.detail) === null || _a === void 0 ? void 0 : _a.value;
21
22
  this.valueChanged.emit(this.value);
22
23
  }
23
24
  /**
@@ -8,12 +8,11 @@ const fieldSearch = require('./field-search-f56aa7d6.js');
8
8
  const taskbarElements = require('./taskbar-elements-01b85b99.js');
9
9
  const constants = require('./constants-35ddd366.js');
10
10
  require('./DataFetcher-ba94ed5b.js');
11
- require('./pesquisa-fetcher-ef050a47.js');
11
+ require('./pesquisa-fetcher-e4a7c4c3.js');
12
12
  const index$1 = require('./index-0922807b.js');
13
- require('./ISave-d68ce3cd.js');
13
+ require('./ISave-e91b70a7.js');
14
14
  require('@sankhyalabs/ezui/dist/collection/utils/constants');
15
15
  require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
16
- require('./dataunit-fetcher-14108bec.js');
17
16
  require('./PreloadManager-84466da6.js');
18
17
  require('./filter-item-type.enum-a7ffdaa6.js');
19
18
  require('./form-config-fetcher-df043d3d.js');
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const snkGuidesViewer = require('./snk-guides-viewer-c8b9374f.js');
5
+ const snkGuidesViewer = require('./snk-guides-viewer-d32c096f.js');
6
6
  require('./index-f9e81701.js');
7
7
  require('@sankhyalabs/core');
8
8
  require('./SnkFormConfigManager-71c4768e.js');
@@ -18,13 +18,12 @@ require('./taskbar-elements-01b85b99.js');
18
18
  require('./index-0922807b.js');
19
19
  require('./index-102ba62d.js');
20
20
  require('./constants-35ddd366.js');
21
- require('./pesquisa-fetcher-ef050a47.js');
22
- require('./ISave-d68ce3cd.js');
21
+ require('./pesquisa-fetcher-e4a7c4c3.js');
23
22
  require('@sankhyalabs/ezui/dist/collection/utils/constants');
24
- require('./dataunit-fetcher-14108bec.js');
25
23
  require('./PreloadManager-84466da6.js');
26
24
  require('@sankhyalabs/ezui/dist/collection/components/ez-grid/utils');
27
25
  require('./ResourceIDUtils-5ff86aa7.js');
26
+ require('./ISave-e91b70a7.js');
28
27
  require('@sankhyalabs/core/dist/dataunit/DataUnit');
29
28
 
30
29
 
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  const index = require('./index-f9e81701.js');
6
6
  const core = require('@sankhyalabs/core');
7
7
 
8
- const snkPesquisaCss = ".sc-snk-pesquisa-h{--snk-pesquisa--font-size:var(--text--medium, 14px);--snk-pesquisa--font-family:var(--font-pattern, Arial);--snk-pesquisa--font-weight:var(--text-weight--medium, 400);--snk-pesquisa__records--color:var(--text--primary, #626e82);--snk-pesquisa__records--padding-vertical:var(--space--medium, 12px);--snk-pesquisa__content--padding-right:var(--space--small, 6px);--snk-pesquisa__btn--color:var(--title--primary, #2B3A54);--snk-pesquisa__btn-disabled--color:var(--text--disable, #AFB6C0);--snk-pesquisa__btn-hover--color:var(--color--primary, #4e4e4e);--snk-pesquisa__scrollbar--color-default:var(--scrollbar--default, #626e82);--snk-pesquisa__scrollbar--color-background:var(--scrollbar--background, #E5EAF0);--snk-pesquisa__scrollbar--color-hover:var(--scrollbar--hover, #2B3A54);--snk-pesquisa__scrollbar--color-clicked:var(--scrollbar--clicked, #a2abb9);--snk-pesquisa__scrollbar--border-radius:var(--border--radius-small, 6px);--snk-pesquisa__scrollbar--width:var(--space--medium, 12px);max-height:100%;height:100%;display:flex;flex-direction:column;overflow-y:auto}.snk-pesquisa.sc-snk-pesquisa{display:flex;flex-direction:column;height:100%}.snk-pesquisa__input.sc-snk-pesquisa{display:flex;width:100%;box-sizing:border-box;padding-top:4px;padding-right:4px}.snk-pesquisa__input.sc-snk-pesquisa ez-icon.sc-snk-pesquisa{--ez-icon--color:inherit;font-weight:var(--text-weight--large, 600)}.snk-pesquisa__content.sc-snk-pesquisa{display:flex;flex-direction:column;height:100%;overflow-y:auto;scrollbar-width:thin;scrollbar-color:var(--snk-pesquisa__scrollbar--color-clicked) var(--snk-pesquisa__scrollbar--color-background);padding-right:var(--snk-pesquisa__content--padding-right)}.snk-pesquisa__content.sc-snk-pesquisa::-webkit-scrollbar{background-color:var(--snk-pesquisa__scrollbar--color-background);width:var(--snk-pesquisa__scrollbar--width);max-width:var(--snk-pesquisa__scrollbar--width);min-width:var(--snk-pesquisa__scrollbar--width)}.snk-pesquisa__content.sc-snk-pesquisa::-webkit-scrollbar-track{background-color:var(--snk-pesquisa__scrollbar--color-background);border-radius:var(--snk-pesquisa__scrollbar--border-radius)}.snk-pesquisa__content.sc-snk-pesquisa::-webkit-scrollbar-thumb{background-color:var(--snk-pesquisa__scrollbar--color-default);border-radius:var(--snk-pesquisa__scrollbar--border-radius)}.snk-pesquisa__content.sc-snk-pesquisa::-webkit-scrollbar-thumb:vertical:hover,.snk-pesquisa__content.sc-snk-pesquisa::-webkit-scrollbar-thumb:horizontal:hover{background-color:var(--snk-pesquisa__scrollbar--color-hover)}.snk-pesquisa__content.sc-snk-pesquisa::-webkit-scrollbar-thumb:vertical:active,.snk-pesquisa__content.sc-snk-pesquisa::-webkit-scrollbar-thumb:horizontal:active{background-color:var(--snk-pesquisa__scrollbar--color-clicked)}.snk-pesquisa__records.sc-snk-pesquisa{font-family:var(--snk-pesquisa--font-family);font-weight:var(--snk-pesquisa--font-weight);font-size:var(--snk-pesquisa--font-size);color:var(--snk-pesquisa__records--color);padding-bottom:var(--snk-pesquisa__records--padding-vertical);padding-top:var(--snk-pesquisa__records--padding-vertical)}.snk-pesquisa__btn.sc-snk-pesquisa{outline:none;border:none;background:none;cursor:pointer;color:var(--snk-pesquisa__btn--color)}.snk-pesquisa__btn.sc-snk-pesquisa:disabled{cursor:unset;color:var(--snk-pesquisa__btn-disabled--color)}.snk-pesquisa__btn.sc-snk-pesquisa:disabled:hover{cursor:unset;color:var(--snk-pesquisa__btn-disabled--color)}.snk-pesquisa__btn.sc-snk-pesquisa:hover{color:var(--snk-pesquisa__btn-hover--color)}";
8
+ const snkPesquisaCss = ".sc-snk-pesquisa-h{--snk-pesquisa--font-size:var(--text--medium, 14px);--snk-pesquisa--font-family:var(--font-pattern, Arial);--snk-pesquisa--font-weight:var(--text-weight--medium, 400);--snk-pesquisa__records--color:var(--text--primary, #626e82);--snk-pesquisa__records--padding-vertical:var(--space--medium, 12px);--snk-pesquisa__content--padding-right:var(--space--small, 6px);--snk-pesquisa__btn--color:var(--title--primary, #2B3A54);--snk-pesquisa__btn-disabled--color:var(--text--disable, #AFB6C0);--snk-pesquisa__btn-hover--color:var(--color--primary, #4e4e4e);--snk-pesquisa__scrollbar--color-default:var(--scrollbar--default, #626e82);--snk-pesquisa__scrollbar--color-background:var(--scrollbar--background, #E5EAF0);--snk-pesquisa__scrollbar--color-hover:var(--scrollbar--hover, #2B3A54);--snk-pesquisa__scrollbar--color-clicked:var(--scrollbar--clicked, #a2abb9);--snk-pesquisa__scrollbar--border-radius:var(--border--radius-small, 6px);--snk-pesquisa__scrollbar--width:var(--space--medium, 12px);height:100%;display:flex;flex-direction:column;overflow-y:auto}.snk-pesquisa.sc-snk-pesquisa{display:flex;flex-direction:column;height:100%}.snk-pesquisa__input.sc-snk-pesquisa{display:flex;width:100%;box-sizing:border-box;padding-top:4px;padding-right:4px}.snk-pesquisa__input.sc-snk-pesquisa ez-icon.sc-snk-pesquisa{--ez-icon--color:inherit;font-weight:var(--text-weight--large, 600)}.snk-pesquisa__content.sc-snk-pesquisa{display:flex;flex-direction:column;overflow-y:auto;scrollbar-width:thin;scrollbar-color:var(--snk-pesquisa__scrollbar--color-clicked) var(--snk-pesquisa__scrollbar--color-background);padding-right:var(--snk-pesquisa__content--padding-right)}.snk-pesquisa__content.sc-snk-pesquisa::-webkit-scrollbar{background-color:var(--snk-pesquisa__scrollbar--color-background);width:var(--snk-pesquisa__scrollbar--width);max-width:var(--snk-pesquisa__scrollbar--width);min-width:var(--snk-pesquisa__scrollbar--width)}.snk-pesquisa__content.sc-snk-pesquisa::-webkit-scrollbar-track{background-color:var(--snk-pesquisa__scrollbar--color-background);border-radius:var(--snk-pesquisa__scrollbar--border-radius)}.snk-pesquisa__content.sc-snk-pesquisa::-webkit-scrollbar-thumb{background-color:var(--snk-pesquisa__scrollbar--color-default);border-radius:var(--snk-pesquisa__scrollbar--border-radius)}.snk-pesquisa__content.sc-snk-pesquisa::-webkit-scrollbar-thumb:vertical:hover,.snk-pesquisa__content.sc-snk-pesquisa::-webkit-scrollbar-thumb:horizontal:hover{background-color:var(--snk-pesquisa__scrollbar--color-hover)}.snk-pesquisa__content.sc-snk-pesquisa::-webkit-scrollbar-thumb:vertical:active,.snk-pesquisa__content.sc-snk-pesquisa::-webkit-scrollbar-thumb:horizontal:active{background-color:var(--snk-pesquisa__scrollbar--color-clicked)}.snk-pesquisa__records.sc-snk-pesquisa{font-family:var(--snk-pesquisa--font-family);font-weight:var(--snk-pesquisa--font-weight);font-size:var(--snk-pesquisa--font-size);color:var(--snk-pesquisa__records--color);padding-bottom:var(--snk-pesquisa__records--padding-vertical);padding-top:var(--snk-pesquisa__records--padding-vertical)}.snk-pesquisa__btn.sc-snk-pesquisa{outline:none;border:none;background:none;cursor:pointer;color:var(--snk-pesquisa__btn--color)}.snk-pesquisa__btn.sc-snk-pesquisa:disabled{cursor:unset;color:var(--snk-pesquisa__btn-disabled--color)}.snk-pesquisa__btn.sc-snk-pesquisa:disabled:hover{cursor:unset;color:var(--snk-pesquisa__btn-disabled--color)}.snk-pesquisa__btn.sc-snk-pesquisa:hover{color:var(--snk-pesquisa__btn-hover--color)}";
9
9
 
10
10
  const SnkPesquisa = class {
11
11
  constructor(hostRef) {
@@ -7,12 +7,11 @@ const core = require('@sankhyalabs/core');
7
7
  const constants = require('./constants-35ddd366.js');
8
8
  const taskbarElements = require('./taskbar-elements-01b85b99.js');
9
9
  require('./DataFetcher-ba94ed5b.js');
10
- require('./pesquisa-fetcher-ef050a47.js');
10
+ const pesquisaFetcher = require('./pesquisa-fetcher-e4a7c4c3.js');
11
11
  const index$1 = require('./index-0922807b.js');
12
- require('./ISave-d68ce3cd.js');
12
+ require('./ISave-e91b70a7.js');
13
13
  require('@sankhyalabs/ezui/dist/collection/utils/constants');
14
14
  require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
15
- const dataunitFetcher = require('./dataunit-fetcher-14108bec.js');
16
15
  require('./PreloadManager-84466da6.js');
17
16
  require('./filter-item-type.enum-a7ffdaa6.js');
18
17
  require('./form-config-fetcher-df043d3d.js');
@@ -58,6 +57,8 @@ const SnkSimpleCrud = class {
58
57
  this.taskbarManager = undefined;
59
58
  this.messagesBuilder = undefined;
60
59
  this.useEnterLikeTab = false;
60
+ this.actionsList = undefined;
61
+ this.configName = undefined;
61
62
  }
62
63
  resolveInMemoryBtns(taskbarButtons) {
63
64
  const newTaskBarConfig = [...taskbarButtons];
@@ -121,7 +122,7 @@ const SnkSimpleCrud = class {
121
122
  return this._currentViewMode === constants.VIEW_MODE.GRID ? "snkSimpleCrudTaskbar.grid_regular" : "snkSimpleCrudTaskbar.form_regular";
122
123
  }
123
124
  initInMemoryDataUnit() {
124
- this._inMemoryLoader = new dataunitFetcher.InMemoryLoader(this._metadata);
125
+ this._inMemoryLoader = new pesquisaFetcher.InMemoryLoader(this._metadata);
125
126
  this.dataUnit = this._inMemoryLoader.dataUnit;
126
127
  this.dataUnitReady.emit(this.dataUnit);
127
128
  }
@@ -256,7 +257,7 @@ const SnkSimpleCrud = class {
256
257
  }
257
258
  getActionsList() {
258
259
  var _a, _b;
259
- return [{
260
+ const hardList = [{
260
261
  value: core.StringUtils.generateUUID(),
261
262
  label: (_b = (_a = this.messagesBuilder) === null || _a === void 0 ? void 0 : _a.getMessage("snkSimpleCrud.findColumn", undefined)) !== null && _b !== void 0 ? _b : "Buscar",
262
263
  disableCloseOnSelect: true,
@@ -265,6 +266,16 @@ const SnkSimpleCrud = class {
265
266
  ? this.getColumnSearch(actionButton, item)
266
267
  : this.getFieldSearch(actionButton, item)
267
268
  }];
269
+ if (this.taskbarManager != undefined && this.taskbarManager.getMoreOptions != undefined) {
270
+ const taskbarID = this.getTopTaskBarId();
271
+ return hardList.concat(this.taskbarManager.getMoreOptions(taskbarID, this.configName, this.dataState, this.actionsList));
272
+ }
273
+ return hardList.concat(this.actionsList);
274
+ }
275
+ getTopTaskBarId() {
276
+ var _a;
277
+ return ((_a = this.dataState) === null || _a === void 0 ? void 0 : _a.isDirty) ? `snkGridTopTaskbar.finish_edition${index$1.PresentationMode.PRIMARY}` :
278
+ `snkGridTopTaskbar.regular${index$1.PresentationMode.PRIMARY}`;
268
279
  }
269
280
  async keyDownListener(event) {
270
281
  if (!event.ctrlKey || event.key == undefined || event.key.toUpperCase() !== "F") {
@@ -305,7 +316,7 @@ const SnkSimpleCrud = class {
305
316
  }
306
317
  render() {
307
318
  var _a;
308
- return (index.h("snk-data-unit", { class: "simple-crud__container", dataUnit: this.dataUnit, useCancelConfirm: this.useCancelConfirm, onDataStateChange: evt => this.onDataStateChange(evt), onCancelEdition: this.handleCancelEdit.bind(this), onInsertionMode: () => this.goToView(constants.VIEW_MODE.FORM), onDataUnitReady: (evt) => this.dataUnitReady.emit(evt.detail), ignoreSaveMessage: this._currentViewMode === constants.VIEW_MODE.GRID, onMessagesBuilderUpdated: evt => this.messagesBuilder = evt.detail }, index.h("header", null, index.h("slot", { name: "snkSimpleCrudHeader" })), index.h("section", { class: "ez-box ez-box--shadow simple-crud__container-section" }, index.h("snk-taskbar", { class: "ez-box ez-box--shadow ez-padding--medium ez-margin-bottom--large", dataUnit: this.dataUnit, primaryButton: ((_a = this.dataState) === null || _a === void 0 ? void 0 : _a.isDirty) ? "SAVE" : "INSERT", "data-element-id": "grid_left", messagesBuilder: this.messagesBuilder, buttons: this._taskbarProcessor.buttons, actionsList: this.getActionsList(), disabledButtons: this._taskbarProcessor.disabledButtons, customButtons: this._taskbarProcessor.customButtons, slot: "leftButtons", presentationMode: index$1.PresentationMode.SECONDARY }, index.h("slot", { name: "TASKBAR_CUSTOM_ELEMENTS" })), index.h("ez-view-stack", { ref: (ref) => this._viewStack = ref, "data-element-id": "simple-crud" }, index.h("stack-item", null, index.h("ez-grid", { ref: ref => this._grid = ref, dataUnit: this.dataUnit, config: this.gridConfig, "no-header": true, multipleSelection: this.multipleSelection, onEzDoubleClick: () => this.goToView(constants.VIEW_MODE.FORM), columnfilterDataSource: this.dataUnit.name.includes(dataunitFetcher.InMemoryLoader.IN_MEMORY_DATA_UNIT_NAME)
319
+ return (index.h("snk-data-unit", { class: "simple-crud__container", dataUnit: this.dataUnit, useCancelConfirm: this.useCancelConfirm, onDataStateChange: evt => this.onDataStateChange(evt), onCancelEdition: this.handleCancelEdit.bind(this), onInsertionMode: () => this.goToView(constants.VIEW_MODE.FORM), onDataUnitReady: (evt) => this.dataUnitReady.emit(evt.detail), ignoreSaveMessage: this._currentViewMode === constants.VIEW_MODE.GRID, onMessagesBuilderUpdated: evt => this.messagesBuilder = evt.detail }, index.h("header", null, index.h("slot", { name: "snkSimpleCrudHeader" })), index.h("section", { class: "ez-box ez-box--shadow simple-crud__container-section" }, index.h("snk-taskbar", { class: "ez-box ez-box--shadow ez-padding--medium ez-margin-bottom--large", dataUnit: this.dataUnit, primaryButton: ((_a = this.dataState) === null || _a === void 0 ? void 0 : _a.isDirty) ? "SAVE" : "INSERT", "data-element-id": "grid_left", messagesBuilder: this.messagesBuilder, buttons: this._taskbarProcessor.buttons, actionsList: this.getActionsList(), disabledButtons: this._taskbarProcessor.disabledButtons, customButtons: this._taskbarProcessor.customButtons, slot: "leftButtons", presentationMode: index$1.PresentationMode.SECONDARY }, index.h("slot", { name: "TASKBAR_CUSTOM_ELEMENTS" })), index.h("ez-view-stack", { ref: (ref) => this._viewStack = ref, "data-element-id": "simple-crud" }, index.h("stack-item", null, index.h("ez-grid", { ref: ref => this._grid = ref, dataUnit: this.dataUnit, config: this.gridConfig, "no-header": true, multipleSelection: this.multipleSelection, onEzDoubleClick: () => this.goToView(constants.VIEW_MODE.FORM), columnfilterDataSource: this.dataUnit.name.includes(pesquisaFetcher.InMemoryLoader.IN_MEMORY_DATA_UNIT_NAME)
309
320
  ? undefined
310
321
  : this._multiSelectionListDataSource, useEnterLikeTab: this.useEnterLikeTab }, index.h("div", { slot: "footer" }, index.h("slot", { name: "snkSimpleCrudFooter" })))), index.h("stack-item", null, index.h("ez-form", { dataUnit: this.dataUnit, config: this.formConfig, fieldToFocus: this._fieldToGetFocus, onEzFormSetFields: (evt) => this.handleFormSetFields(evt.detail), onEzFormRequestClearFieldToFocus: this.clearFieldToFocusHandler.bind(this) }))))));
311
322
  }
@@ -5,6 +5,7 @@
5
5
  "./components/snk-data-unit/snk-data-unit.js",
6
6
  "./components/snk-taskbar/snk-taskbar.js",
7
7
  "./components/snk-filter-bar/filter-list/snk-filter-list.js",
8
+ "./components/snk-print-selector/snk-print-selector.js",
8
9
  "./components/snk-form/subcomponents/snk-tab-config/snk-tab-config.js",
9
10
  "./components/snk-actions-button/snk-actions-button.js",
10
11
  "./components/snk-actions-button/subcomponents/snk-actions-form.js",
@@ -47,7 +48,6 @@
47
48
  "./components/snk-personalized-filter/subcomponents/snk-filter-assistent-mode/snk-filter-assistent-mode.js",
48
49
  "./components/snk-personalized-filter/subcomponents/snk-filter-param-config/snk-filter-param-config.js",
49
50
  "./components/snk-pesquisa/snk-pesquisa.js",
50
- "./components/snk-print-selector/snk-print-selector.js",
51
51
  "./components/snk-simple-bar/snk-simple-bar.js",
52
52
  "./components/snk-simple-crud/snk-simple-crud.js",
53
53
  "./components/snk-taskbar/elements/taskbar-actions-button/taskbar-actions-button.js",
@@ -757,6 +757,15 @@ export class SnkApplication {
757
757
  this._waitingAppReady.push(() => resolve(this));
758
758
  });
759
759
  }
760
+ /**
761
+ * Atribui valor para parâmetros de contexto no componente de pesquisa.
762
+ *
763
+ * @param name - Nome do parâmetro
764
+ * @param value - String conversível de acordo com o tipo do parâmetro
765
+ */
766
+ async setSearchFilterContext(name, value) {
767
+ ApplicationContext.setContextValue(`__SNK__APPLICATION__FILTER__CONTEXT(${name})__`, value);
768
+ }
760
769
  clearContent(container) {
761
770
  if (container) {
762
771
  Array.from(container.children).forEach(child => {
@@ -2141,10 +2150,6 @@ export class SnkApplication {
2141
2150
  "Promise": {
2142
2151
  "location": "global"
2143
2152
  },
2144
- "IOption": {
2145
- "location": "import",
2146
- "path": "@sankhyalabs/ezui/dist/types/components/ez-search/ez-search"
2147
- },
2148
2153
  "ISearchArgument": {
2149
2154
  "location": "import",
2150
2155
  "path": "@sankhyalabs/ezui/dist/types/components/ez-search/ez-search"
@@ -2156,12 +2161,16 @@ export class SnkApplication {
2156
2161
  "Array": {
2157
2162
  "location": "global"
2158
2163
  },
2164
+ "IOption": {
2165
+ "location": "import",
2166
+ "path": "@sankhyalabs/ezui/dist/types/components/ez-search/ez-search"
2167
+ },
2159
2168
  "SearchCriteria": {
2160
2169
  "location": "import",
2161
2170
  "path": "../../lib/http/data-fetcher/fetchers/pesquisa-fetcher"
2162
2171
  }
2163
2172
  },
2164
- "return": "Promise<IOption | IOption[]>"
2173
+ "return": "Promise<any>"
2165
2174
  },
2166
2175
  "docs": {
2167
2176
  "text": "Obt\u00E9m as op\u00E7\u00F5es em componentes de pesquisa\nEx.: snk-config-options",
@@ -2185,18 +2194,18 @@ export class SnkApplication {
2185
2194
  "Promise": {
2186
2195
  "location": "global"
2187
2196
  },
2197
+ "Array": {
2198
+ "location": "global"
2199
+ },
2188
2200
  "IOption": {
2189
2201
  "location": "import",
2190
2202
  "path": "@sankhyalabs/ezui/dist/types/components/ez-search/ez-search"
2191
2203
  },
2192
- "Array": {
2193
- "location": "global"
2194
- },
2195
2204
  "HTMLSnkPesquisaElement": {
2196
2205
  "location": "global"
2197
2206
  }
2198
2207
  },
2199
- "return": "Promise<IOption | IOption[]>"
2208
+ "return": "Promise<any>"
2200
2209
  },
2201
2210
  "docs": {
2202
2211
  "text": "Obt\u00E9m as op\u00E7\u00F5es em componentes de pesquisa\nEx.: snk-config-options",
@@ -2392,6 +2401,40 @@ export class SnkApplication {
2392
2401
  "text": "SnkApplication carregado."
2393
2402
  }]
2394
2403
  }
2404
+ },
2405
+ "setSearchFilterContext": {
2406
+ "complexType": {
2407
+ "signature": "(name: string, value: string) => Promise<void>",
2408
+ "parameters": [{
2409
+ "tags": [{
2410
+ "name": "param",
2411
+ "text": "name - Nome do par\u00E2metro"
2412
+ }],
2413
+ "text": "- Nome do par\u00E2metro"
2414
+ }, {
2415
+ "tags": [{
2416
+ "name": "param",
2417
+ "text": "value - String convers\u00EDvel de acordo com o tipo do par\u00E2metro"
2418
+ }],
2419
+ "text": "- String convers\u00EDvel de acordo com o tipo do par\u00E2metro"
2420
+ }],
2421
+ "references": {
2422
+ "Promise": {
2423
+ "location": "global"
2424
+ }
2425
+ },
2426
+ "return": "Promise<void>"
2427
+ },
2428
+ "docs": {
2429
+ "text": "Atribui valor para par\u00E2metros de contexto no componente de pesquisa.",
2430
+ "tags": [{
2431
+ "name": "param",
2432
+ "text": "name - Nome do par\u00E2metro"
2433
+ }, {
2434
+ "name": "param",
2435
+ "text": "value - String convers\u00EDvel de acordo com o tipo do par\u00E2metro"
2436
+ }]
2437
+ }
2395
2438
  }
2396
2439
  };
2397
2440
  }