@sankhyalabs/sankhyablocks 0.0.0-feat-dev-KB-38448.2 → 0.0.0-feat-dev-KB-60347.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 (70) hide show
  1. package/dist/cjs/{IExporterProvider-0c814e9a.js → IExporterProvider-7bea3c5b.js} +1 -1
  2. package/dist/cjs/{SnkMessageBuilder-4a95fe86.js → SnkMessageBuilder-ff6452c6.js} +1 -0
  3. package/dist/cjs/{index-0922807b.js → index-1dfc7a6e.js} +5 -0
  4. package/dist/cjs/snk-actions-button_4.cjs.entry.js +1 -1
  5. package/dist/cjs/snk-application.cjs.entry.js +1 -1
  6. package/dist/cjs/snk-attach.cjs.entry.js +3 -5
  7. package/dist/cjs/snk-crud.cjs.entry.js +3 -3
  8. package/dist/cjs/snk-data-exporter.cjs.entry.js +79 -5
  9. package/dist/cjs/{snk-data-unit-eca53cfc.js → snk-data-unit-d93fc514.js} +1 -1
  10. package/dist/cjs/snk-data-unit.cjs.entry.js +2 -2
  11. package/dist/cjs/snk-detail-view.cjs.entry.js +4 -4
  12. package/dist/cjs/snk-grid.cjs.entry.js +3 -3
  13. package/dist/cjs/{snk-guides-viewer-5d5f0f25.js → snk-guides-viewer-9867335b.js} +2 -2
  14. package/dist/cjs/snk-guides-viewer.cjs.entry.js +3 -3
  15. package/dist/cjs/snk-simple-crud.cjs.entry.js +3 -3
  16. package/dist/cjs/snk-taskbar.cjs.entry.js +2 -2
  17. package/dist/cjs/{taskbar-elements-d9392685.js → taskbar-elements-9ad1f9c0.js} +1 -1
  18. package/dist/collection/components/snk-attach/snk-attach.js +1 -3
  19. package/dist/collection/components/snk-crud/snk-crud.js +1 -1
  20. package/dist/collection/components/snk-data-exporter/snk-data-exporter.js +14 -2
  21. package/dist/collection/components/snk-data-exporter/structure/ItemBuilder.js +62 -0
  22. package/dist/collection/lib/@types/index.js +5 -0
  23. package/dist/collection/lib/message/resources/snk-data-exporter.msg.js +1 -0
  24. package/dist/components/ISave.js +5 -0
  25. package/dist/components/SnkMessageBuilder.js +1 -0
  26. package/dist/components/snk-attach2.js +1 -3
  27. package/dist/components/snk-crud.js +1 -1
  28. package/dist/components/snk-data-exporter2.js +76 -2
  29. package/dist/esm/{IExporterProvider-c0194569.js → IExporterProvider-6d047a05.js} +1 -1
  30. package/dist/esm/{SnkMessageBuilder-3a767111.js → SnkMessageBuilder-caf1454c.js} +1 -0
  31. package/dist/esm/{index-0ece87a6.js → index-88d0c8ad.js} +5 -0
  32. package/dist/esm/snk-actions-button_4.entry.js +1 -1
  33. package/dist/esm/snk-application.entry.js +1 -1
  34. package/dist/esm/snk-attach.entry.js +3 -5
  35. package/dist/esm/snk-crud.entry.js +3 -3
  36. package/dist/esm/snk-data-exporter.entry.js +79 -5
  37. package/dist/esm/{snk-data-unit-49b898f7.js → snk-data-unit-40b34cd3.js} +1 -1
  38. package/dist/esm/snk-data-unit.entry.js +2 -2
  39. package/dist/esm/snk-detail-view.entry.js +4 -4
  40. package/dist/esm/snk-grid.entry.js +3 -3
  41. package/dist/esm/{snk-guides-viewer-ef8c4eec.js → snk-guides-viewer-7ae1b358.js} +2 -2
  42. package/dist/esm/snk-guides-viewer.entry.js +3 -3
  43. package/dist/esm/snk-simple-crud.entry.js +3 -3
  44. package/dist/esm/snk-taskbar.entry.js +2 -2
  45. package/dist/esm/{taskbar-elements-ad766858.js → taskbar-elements-da72aae0.js} +1 -1
  46. package/dist/sankhyablocks/{p-3d0cc5c0.entry.js → p-13aa6825.entry.js} +1 -1
  47. package/dist/sankhyablocks/{p-f88cfc3c.js → p-2c44e0b9.js} +1 -1
  48. package/dist/sankhyablocks/{p-5fa1576b.entry.js → p-39adf00c.entry.js} +1 -1
  49. package/dist/sankhyablocks/{p-294df368.entry.js → p-491968da.entry.js} +1 -1
  50. package/dist/sankhyablocks/{p-6cfb740c.entry.js → p-50458ca2.entry.js} +1 -1
  51. package/dist/sankhyablocks/{p-babe7665.js → p-59e37956.js} +1 -1
  52. package/dist/sankhyablocks/{p-034c0efb.entry.js → p-79eed0e8.entry.js} +1 -1
  53. package/dist/sankhyablocks/{p-2ac8bd11.entry.js → p-8323db5f.entry.js} +1 -1
  54. package/dist/sankhyablocks/{p-b8577312.entry.js → p-9da521dd.entry.js} +1 -1
  55. package/dist/sankhyablocks/p-b9e318a8.js +1 -0
  56. package/dist/sankhyablocks/{p-4ce73e88.js → p-c40f5fc0.js} +1 -1
  57. package/dist/sankhyablocks/{p-a64baa0f.entry.js → p-c5b18d02.entry.js} +1 -1
  58. package/dist/sankhyablocks/{p-d26365ad.js → p-c65bbb31.js} +1 -1
  59. package/dist/sankhyablocks/{p-c7bc6870.entry.js → p-c68c723d.entry.js} +1 -1
  60. package/dist/sankhyablocks/p-e41e21f3.entry.js +1 -0
  61. package/dist/sankhyablocks/{p-e5c25e0b.entry.js → p-e48b119b.entry.js} +1 -1
  62. package/dist/sankhyablocks/{p-61dd89eb.js → p-ef402237.js} +1 -1
  63. package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
  64. package/dist/types/components/snk-data-exporter/snk-data-exporter.d.ts +1 -0
  65. package/dist/types/components/snk-data-exporter/structure/ItemBuilder.d.ts +21 -0
  66. package/dist/types/lib/@types/index.d.ts +5 -0
  67. package/dist/types/lib/http/data-fetcher/fetchers/fetchDataExporter/interfaces/IFetchDataExporterParams.d.ts +2 -1
  68. package/package.json +1 -1
  69. package/dist/sankhyablocks/p-38289a55.js +0 -1
  70. package/dist/sankhyablocks/p-ba05fdb8.entry.js +0 -1
@@ -3,7 +3,7 @@
3
3
  const DataFetcher = require('./DataFetcher-313debd8.js');
4
4
  require('./pesquisa-fetcher-680e198f.js');
5
5
  const core = require('@sankhyalabs/core');
6
- require('./index-0922807b.js');
6
+ require('./index-1dfc7a6e.js');
7
7
  require('./ISave-e91b70a7.js');
8
8
  require('@sankhyalabs/ezui/dist/collection/utils/constants');
9
9
  const UnitMetadata = require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
@@ -307,6 +307,7 @@ const snkDataExporterMessages = {
307
307
  },
308
308
  label: {
309
309
  currentPage: "Somente a página atual",
310
+ allRecords: "Todos os registros",
310
311
  spreadsheet: "Planilha",
311
312
  cube: "Cubo",
312
313
  sendByEmail: "Enviar por email",
@@ -11,8 +11,11 @@ exports.DataExporterOption = void 0;
11
11
  DataExporterOption["EXPORT_TO_PDF"] = "exportToPDF";
12
12
  DataExporterOption["EXPORT_TO_XLS"] = "exportToXLS";
13
13
  DataExporterOption["EXPORT_CURRENT_PAGE"] = "exportCurrentPage";
14
+ DataExporterOption["EXPORT_ALL_RECORDS"] = "exportAllRecords";
14
15
  DataExporterOption["EXPORT_PAGE_TO_PDF"] = "exportPageToPDF";
15
16
  DataExporterOption["EXPORT_PAGE_TO_XLS"] = "exportPageToXLS";
17
+ DataExporterOption["EXPORT_ALL_RECORDS_TO_PDF"] = "exportAllRecordsToPDF";
18
+ DataExporterOption["EXPORT_ALL_RECORDS_TO_XLS"] = "exportAllRecordsToXLS";
16
19
  DataExporterOption["EXPORT_BY_EMAIL"] = "exportToEmail";
17
20
  DataExporterOption["EXPORT_PDF_TO_EMAIL"] = "exportPDFToEmail";
18
21
  DataExporterOption["EXPORT_XLS_TO_EMAIL"] = "exportXLSToEmail";
@@ -29,6 +32,8 @@ exports.DataExporterType = void 0;
29
32
  DataExporterType["EXPORT_TO_XLS"] = "XLS";
30
33
  DataExporterType["EXPORT_PAGE_TO_PDF"] = "PDF";
31
34
  DataExporterType["EXPORT_PAGE_TO_XLS"] = "XLS";
35
+ DataExporterType["EXPORT_ALL_RECORDS_TO_PDF"] = "PDF";
36
+ DataExporterType["EXPORT_ALL_RECORDS_TO_XLS"] = "XLS";
32
37
  DataExporterType["EXPORT_PDF_TO_EMAIL"] = "PDF";
33
38
  DataExporterType["EXPORT_XLS_TO_EMAIL"] = "XLS";
34
39
  })(exports.DataExporterType || (exports.DataExporterType = {}));
@@ -7,7 +7,7 @@ const core = require('@sankhyalabs/core');
7
7
  const DataFetcher = require('./DataFetcher-313debd8.js');
8
8
  const ParamType = require('./ParamType-90b440a0.js');
9
9
  require('./pesquisa-fetcher-680e198f.js');
10
- require('./index-0922807b.js');
10
+ require('./index-1dfc7a6e.js');
11
11
  require('./ISave-e91b70a7.js');
12
12
  require('@sankhyalabs/ezui/dist/collection/utils/constants');
13
13
  require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
@@ -10,7 +10,7 @@ const DataFetcher = require('./DataFetcher-313debd8.js');
10
10
  const authFetcher = require('./auth-fetcher-54f5ff9d.js');
11
11
  const dataunitFetcher = require('./dataunit-fetcher-620b29a1.js');
12
12
  const pesquisaFetcher = require('./pesquisa-fetcher-680e198f.js');
13
- const SnkMessageBuilder = require('./SnkMessageBuilder-4a95fe86.js');
13
+ const SnkMessageBuilder = require('./SnkMessageBuilder-ff6452c6.js');
14
14
  require('./form-config-fetcher-2dd00e5b.js');
15
15
  require('./filter-item-type.enum-a7ffdaa6.js');
16
16
  require('./PrintUtils-bcaeb82f.js');
@@ -6,14 +6,14 @@ const index = require('./index-f9e81701.js');
6
6
  const core = require('@sankhyalabs/core');
7
7
  const DataFetcher = require('./DataFetcher-313debd8.js');
8
8
  require('./pesquisa-fetcher-680e198f.js');
9
- require('./index-0922807b.js');
9
+ require('./index-1dfc7a6e.js');
10
10
  const ISave = require('./ISave-e91b70a7.js');
11
11
  const dataunitFetcher = require('./dataunit-fetcher-620b29a1.js');
12
12
  require('./filter-item-type.enum-a7ffdaa6.js');
13
13
  require('./form-config-fetcher-2dd00e5b.js');
14
14
  const constants = require('./constants-35ddd366.js');
15
15
  const authFetcher = require('./auth-fetcher-54f5ff9d.js');
16
- const taskbarElements = require('./taskbar-elements-d9392685.js');
16
+ const taskbarElements = require('./taskbar-elements-9ad1f9c0.js');
17
17
  require('./PrintUtils-bcaeb82f.js');
18
18
  require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
19
19
  require('@sankhyalabs/ezui/dist/collection/utils/constants');
@@ -793,9 +793,7 @@ const SnkAttach = class {
793
793
  }
794
794
  async componentWillLoad() {
795
795
  this._application = core.ApplicationContext.getContextValue("__SNK__APPLICATION__");
796
- if (this._currentDataUnit == null) {
797
- await this.initAttach();
798
- }
796
+ await this.initAttach();
799
797
  }
800
798
  componentWillRender() {
801
799
  if (!this.fetcherType) {
@@ -4,10 +4,10 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-f9e81701.js');
6
6
  const core = require('@sankhyalabs/core');
7
- const taskbarElements = require('./taskbar-elements-d9392685.js');
7
+ const taskbarElements = require('./taskbar-elements-9ad1f9c0.js');
8
8
  require('./DataFetcher-313debd8.js');
9
9
  require('./pesquisa-fetcher-680e198f.js');
10
- const index$1 = require('./index-0922807b.js');
10
+ const index$1 = require('./index-1dfc7a6e.js');
11
11
  require('./ISave-e91b70a7.js');
12
12
  require('@sankhyalabs/ezui/dist/collection/utils/constants');
13
13
  require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
@@ -394,7 +394,7 @@ const SnkCrud = class {
394
394
  return;
395
395
  }
396
396
  this._snkDataUnit.ignoreSaveMessage = this._currentViewMode === constants.VIEW_MODE.GRID;
397
- 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, filterBarTitle: this.filterBarTitle, "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, disablePersonalizedFilter: this.disablePersonalizedFilter, gridLegacyConfigName: this.gridLegacyConfigName, filterBarLegacyConfigName: this.filterBarLegacyConfigName, autoLoad: this.autoLoad }, 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, formLegacyConfigName: this.formLegacyConfigName }, index.h("slot", { name: "GUIDES_VIEWER_TASKBAR_CUSTOM_ELEMENTS" }), index.h("slot", { name: "SnkFormTaskBar" }))), index.h("stack-item", null), 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" }))));
397
+ 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, filterBarTitle: this.filterBarTitle, "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, disablePersonalizedFilter: this.disablePersonalizedFilter, gridLegacyConfigName: this.gridLegacyConfigName, filterBarLegacyConfigName: this.filterBarLegacyConfigName, autoLoad: this.autoLoad }, 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, formLegacyConfigName: this.formLegacyConfigName }, 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" }))));
398
398
  }
399
399
  get _element() { return index.getElement(this); }
400
400
  static get watchers() { return {
@@ -5,10 +5,10 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  const index$1 = require('./index-f9e81701.js');
6
6
  const core = require('@sankhyalabs/core');
7
7
  const utils = require('@sankhyalabs/ezui/dist/collection/utils');
8
- const index = require('./index-0922807b.js');
8
+ const index = require('./index-1dfc7a6e.js');
9
9
  const constants = require('./constants-35ddd366.js');
10
10
  const DataFetcher = require('./DataFetcher-313debd8.js');
11
- const snkDataUnit = require('./snk-data-unit-eca53cfc.js');
11
+ const snkDataUnit = require('./snk-data-unit-d93fc514.js');
12
12
  require('./pesquisa-fetcher-680e198f.js');
13
13
  require('./ISave-e91b70a7.js');
14
14
  require('@sankhyalabs/ezui/dist/collection/utils/constants');
@@ -17,7 +17,7 @@ require('./dataunit-fetcher-620b29a1.js');
17
17
  require('./filter-item-type.enum-a7ffdaa6.js');
18
18
  require('./form-config-fetcher-2dd00e5b.js');
19
19
  require('./PrintUtils-bcaeb82f.js');
20
- require('./SnkMessageBuilder-4a95fe86.js');
20
+ require('./SnkMessageBuilder-ff6452c6.js');
21
21
  require('./RecordIDUtils-3735135c.js');
22
22
  require('@sankhyalabs/ezui/dist/collection/components/ez-grid/utils');
23
23
  require('@sankhyalabs/core/dist/utils/SortingUtils');
@@ -43,6 +43,9 @@ class ItemBuilder {
43
43
  items.push(this.getExportToXLS(groupName));
44
44
  }
45
45
  this.setExportCurrentPage(option, items);
46
+ if (this._selectedNumber > 0) {
47
+ this.setExportAllRecords(option, items);
48
+ }
46
49
  this.setExportByEmail(option, items);
47
50
  }
48
51
  /**
@@ -73,6 +76,34 @@ class ItemBuilder {
73
76
  }
74
77
  }
75
78
  }
79
+ /**
80
+ * Método responsável por inserir os itens de exportação para todos os registros.
81
+ * @param option - Nome da opção que será inserida no array.
82
+ * @param items - Array que será alimentado com as opções permitidas.
83
+ */
84
+ setExportAllRecords(option, items) {
85
+ var _a;
86
+ const pageOptions = [index.DataExporterOption.EXPORT_PAGE_TO_PDF, index.DataExporterOption.EXPORT_PAGE_TO_XLS];
87
+ if (option === index.DataExporterOption.EXPORT_ALL_RECORDS) {
88
+ items.push(this.getAllRecords());
89
+ }
90
+ if (pageOptions.includes(option)) {
91
+ let item = items.find((item) => item.id === index.DataExporterOption.EXPORT_ALL_RECORDS);
92
+ if (item == undefined) {
93
+ items.push(this.getAllRecords());
94
+ item = items.find((item) => item.id === index.DataExporterOption.EXPORT_ALL_RECORDS);
95
+ }
96
+ if (!((_a = item === null || item === void 0 ? void 0 : item.children) === null || _a === void 0 ? void 0 : _a.length)) {
97
+ item.children = [];
98
+ }
99
+ if (option === index.DataExporterOption.EXPORT_PAGE_TO_PDF) {
100
+ item.children.push(this.getExportAllRecordsToPDF());
101
+ }
102
+ if (option === index.DataExporterOption.EXPORT_PAGE_TO_XLS) {
103
+ item.children.push(this.getExportAllRecordsToXLS());
104
+ }
105
+ }
106
+ }
76
107
  /**
77
108
  * Método responsável por inserir os itens de exportação por e-mail.
78
109
  * @param option - Nome da opção que será inserida no array.
@@ -118,6 +149,17 @@ class ItemBuilder {
118
149
  group: this._getMessage("snkDataExporter.group.custom")
119
150
  };
120
151
  }
152
+ /**
153
+ * Método responsável por capturar o objeto com todos os dados de exportação.
154
+ * @returns Retorna o objeto com todos os dados de exportação.
155
+ */
156
+ getAllRecords() {
157
+ return {
158
+ id: index.DataExporterOption.EXPORT_ALL_RECORDS,
159
+ label: this._getMessage("snkDataExporter.label.allRecords"),
160
+ group: this._getMessage("snkDataExporter.group.custom")
161
+ };
162
+ }
121
163
  /**
122
164
  * Método responsável por capturar o objeto com os dados de exportação personalizada em PDF.
123
165
  * @returns Retorna o objeto com os dados de exportação personalizada em PDF.
@@ -138,6 +180,26 @@ class ItemBuilder {
138
180
  label: `${this._getMessage("snkDataExporter.label.spreadsheet")} (.xlsx)`
139
181
  };
140
182
  }
183
+ /**
184
+ * Método responsável por capturar o objeto com todos os dados de exportação em PDF.
185
+ * @returns Retorna o objeto com todos os dados de exportação em PDF.
186
+ */
187
+ getExportAllRecordsToPDF() {
188
+ return {
189
+ id: index.DataExporterOption.EXPORT_ALL_RECORDS_TO_PDF,
190
+ label: "PDF (.pdf)"
191
+ };
192
+ }
193
+ /**
194
+ * Método responsável por capturar o objeto com todos os dados de exportação em XLS.
195
+ * @returns Retorna o objeto com todos os dados de exportação em XLS.
196
+ */
197
+ getExportAllRecordsToXLS() {
198
+ return {
199
+ id: index.DataExporterOption.EXPORT_ALL_RECORDS_TO_XLS,
200
+ label: `${this._getMessage("snkDataExporter.label.spreadsheet")} (.xlsx)`
201
+ };
202
+ }
141
203
  /**
142
204
  * Método responsável por capturar o objeto com os dados de exportação por e-mail.
143
205
  * @returns Retorna o objeto com os dados de exportação por e-mail.
@@ -357,7 +419,9 @@ const SnkDataExporter = class {
357
419
  index.DataExporterOption.EXPORT_PDF_TO_EMAIL,
358
420
  index.DataExporterOption.EXPORT_XLS_TO_EMAIL,
359
421
  index.DataExporterOption.EXPORT_PAGE_TO_PDF,
360
- index.DataExporterOption.EXPORT_PAGE_TO_XLS
422
+ index.DataExporterOption.EXPORT_PAGE_TO_XLS,
423
+ index.DataExporterOption.EXPORT_ALL_RECORDS_TO_PDF,
424
+ index.DataExporterOption.EXPORT_ALL_RECORDS_TO_XLS,
361
425
  ];
362
426
  this._items = [];
363
427
  this._showDropdown = false;
@@ -448,6 +512,15 @@ const SnkDataExporter = class {
448
512
  return index.DataExporterOption[key] === option;
449
513
  });
450
514
  }
515
+ getExportType(option) {
516
+ if (option === index.DataExporterOption.EXPORT_ALL_RECORDS_TO_PDF || option === index.DataExporterOption.EXPORT_ALL_RECORDS_TO_XLS) {
517
+ return 'all';
518
+ }
519
+ if (option === index.DataExporterOption.EXPORT_PAGE_TO_PDF || option === index.DataExporterOption.EXPORT_PAGE_TO_XLS) {
520
+ return 'page';
521
+ }
522
+ return 'selection';
523
+ }
451
524
  dispatchExporter(option) {
452
525
  var _a, _b, _c;
453
526
  const optionKey = this.getOptionKey(option);
@@ -458,7 +531,8 @@ const SnkDataExporter = class {
458
531
  fileName: this._appLabel,
459
532
  titleGrid: this._appLabel,
460
533
  exportOption: option,
461
- limit: (_c = (_b = this.provider) === null || _b === void 0 ? void 0 : _b.getExportLimit) === null || _c === void 0 ? void 0 : _c.call(_b)
534
+ limit: (_c = (_b = this.provider) === null || _b === void 0 ? void 0 : _b.getExportLimit) === null || _c === void 0 ? void 0 : _c.call(_b),
535
+ type: this.getExportType(option),
462
536
  };
463
537
  this.resolveExporter(params, (response) => {
464
538
  fileViewer(Object.assign(Object.assign({}, response), { fileType,
@@ -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-4a95fe86.js');
6
+ const SnkMessageBuilder = require('./SnkMessageBuilder-ff6452c6.js');
7
7
  const dataunitFetcher = require('./dataunit-fetcher-620b29a1.js');
8
8
  const RecordIDUtils = require('./RecordIDUtils-3735135c.js');
9
9
 
@@ -2,11 +2,11 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const snkDataUnit = require('./snk-data-unit-eca53cfc.js');
5
+ const snkDataUnit = require('./snk-data-unit-d93fc514.js');
6
6
  require('./index-f9e81701.js');
7
7
  require('@sankhyalabs/core');
8
8
  require('@sankhyalabs/ezui/dist/collection/utils');
9
- require('./SnkMessageBuilder-4a95fe86.js');
9
+ require('./SnkMessageBuilder-ff6452c6.js');
10
10
  require('./dataunit-fetcher-620b29a1.js');
11
11
  require('./DataFetcher-313debd8.js');
12
12
  require('./PrintUtils-bcaeb82f.js');
@@ -8,17 +8,17 @@ const SnkFormConfigManager = require('./SnkFormConfigManager-52f99b4d.js');
8
8
  const form = require('@sankhyalabs/ezui/dist/collection/utils/form');
9
9
  require('./DataFetcher-313debd8.js');
10
10
  require('./pesquisa-fetcher-680e198f.js');
11
- const index$1 = require('./index-0922807b.js');
11
+ const index$1 = require('./index-1dfc7a6e.js');
12
12
  require('./ISave-e91b70a7.js');
13
13
  require('@sankhyalabs/ezui/dist/collection/utils/constants');
14
14
  require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
15
15
  require('./dataunit-fetcher-620b29a1.js');
16
16
  require('./filter-item-type.enum-a7ffdaa6.js');
17
17
  require('./form-config-fetcher-2dd00e5b.js');
18
- const taskbarElements = require('./taskbar-elements-d9392685.js');
18
+ const taskbarElements = require('./taskbar-elements-9ad1f9c0.js');
19
19
  const constants = require('./constants-35ddd366.js');
20
- const snkGuidesViewer = require('./snk-guides-viewer-5d5f0f25.js');
21
- const SnkMessageBuilder = require('./SnkMessageBuilder-4a95fe86.js');
20
+ const snkGuidesViewer = require('./snk-guides-viewer-9867335b.js');
21
+ const SnkMessageBuilder = require('./SnkMessageBuilder-ff6452c6.js');
22
22
  require('./ConfigStorage-942ce74b.js');
23
23
  require('./PrintUtils-bcaeb82f.js');
24
24
  require('@sankhyalabs/ezui/dist/collection/components/ez-grid/utils');
@@ -4,12 +4,12 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-f9e81701.js');
6
6
  const core = require('@sankhyalabs/core');
7
- const taskbarElements = require('./taskbar-elements-d9392685.js');
7
+ const taskbarElements = require('./taskbar-elements-9ad1f9c0.js');
8
8
  const ConfigStorage = require('./ConfigStorage-942ce74b.js');
9
- const index$1 = require('./index-0922807b.js');
9
+ const index$1 = require('./index-1dfc7a6e.js');
10
10
  const fieldSearch = require('./field-search-f56aa7d6.js');
11
11
  const index$2 = require('./index-102ba62d.js');
12
- const IExporterProvider = require('./IExporterProvider-0c814e9a.js');
12
+ const IExporterProvider = require('./IExporterProvider-7bea3c5b.js');
13
13
  const DataUnit = require('@sankhyalabs/core/dist/dataunit/DataUnit');
14
14
  require('./DataFetcher-313debd8.js');
15
15
  require('./pesquisa-fetcher-680e198f.js');
@@ -5,11 +5,11 @@ const core = require('@sankhyalabs/core');
5
5
  const SnkFormConfigManager = require('./SnkFormConfigManager-52f99b4d.js');
6
6
  const form = require('@sankhyalabs/ezui/dist/collection/utils/form');
7
7
  const fieldSearch = require('./field-search-f56aa7d6.js');
8
- const taskbarElements = require('./taskbar-elements-d9392685.js');
8
+ const taskbarElements = require('./taskbar-elements-9ad1f9c0.js');
9
9
  const constants = require('./constants-35ddd366.js');
10
10
  require('./DataFetcher-313debd8.js');
11
11
  require('./pesquisa-fetcher-680e198f.js');
12
- const index$1 = require('./index-0922807b.js');
12
+ const index$1 = require('./index-1dfc7a6e.js');
13
13
  require('./ISave-e91b70a7.js');
14
14
  require('@sankhyalabs/ezui/dist/collection/utils/constants');
15
15
  require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const snkGuidesViewer = require('./snk-guides-viewer-5d5f0f25.js');
5
+ const snkGuidesViewer = require('./snk-guides-viewer-9867335b.js');
6
6
  require('./index-f9e81701.js');
7
7
  require('@sankhyalabs/core');
8
8
  require('./SnkFormConfigManager-52f99b4d.js');
@@ -14,8 +14,8 @@ require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
14
14
  require('./filter-item-type.enum-a7ffdaa6.js');
15
15
  require('@sankhyalabs/ezui/dist/collection/utils/form');
16
16
  require('./field-search-f56aa7d6.js');
17
- require('./taskbar-elements-d9392685.js');
18
- require('./index-0922807b.js');
17
+ require('./taskbar-elements-9ad1f9c0.js');
18
+ require('./index-1dfc7a6e.js');
19
19
  require('./index-102ba62d.js');
20
20
  require('./constants-35ddd366.js');
21
21
  require('./pesquisa-fetcher-680e198f.js');
@@ -6,11 +6,11 @@ const index$1 = require('./index-f9e81701.js');
6
6
  const core = require('@sankhyalabs/core');
7
7
  const utils = require('@sankhyalabs/ezui/dist/collection/utils');
8
8
  const constants = require('./constants-35ddd366.js');
9
- const taskbarElements = require('./taskbar-elements-d9392685.js');
9
+ const taskbarElements = require('./taskbar-elements-9ad1f9c0.js');
10
10
  require('./DataFetcher-313debd8.js');
11
11
  require('./pesquisa-fetcher-680e198f.js');
12
- const IExporterProvider = require('./IExporterProvider-0c814e9a.js');
13
- const index = require('./index-0922807b.js');
12
+ const IExporterProvider = require('./IExporterProvider-7bea3c5b.js');
13
+ const index = require('./index-1dfc7a6e.js');
14
14
  require('./ISave-e91b70a7.js');
15
15
  require('@sankhyalabs/ezui/dist/collection/utils/constants');
16
16
  require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
@@ -5,8 +5,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  const index = require('./index-f9e81701.js');
6
6
  const core = require('@sankhyalabs/core');
7
7
  const AuthorizationConfig = require('./AuthorizationConfig-79ffae4b.js');
8
- const taskbarElements = require('./taskbar-elements-d9392685.js');
9
- const index$1 = require('./index-0922807b.js');
8
+ const taskbarElements = require('./taskbar-elements-9ad1f9c0.js');
9
+ const index$1 = require('./index-1dfc7a6e.js');
10
10
  require('./index-102ba62d.js');
11
11
 
12
12
  const snkTaskbarCss = ".sc-snk-taskbar-h{display:flex;flex-wrap:wrap}.no-wrap.sc-snk-taskbar-h{flex-wrap:nowrap}.full-width.sc-snk-taskbar-h{width:100%}.align-right.sc-snk-taskbar-h{justify-content:flex-end}.overflowed.sc-snk-taskbar{display:none}";
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  const index = require('./index-f9e81701.js');
4
- const index$2 = require('./index-0922807b.js');
4
+ const index$2 = require('./index-1dfc7a6e.js');
5
5
  const index$1 = require('./index-102ba62d.js');
6
6
 
7
7
  exports.TaskbarElement = void 0;
@@ -179,9 +179,7 @@ export class SnkAttach {
179
179
  }
180
180
  async componentWillLoad() {
181
181
  this._application = ApplicationContext.getContextValue("__SNK__APPLICATION__");
182
- if (this._currentDataUnit == null) {
183
- await this.initAttach();
184
- }
182
+ await this.initAttach();
185
183
  }
186
184
  componentWillRender() {
187
185
  if (!this.fetcherType) {
@@ -375,7 +375,7 @@ export class SnkCrud {
375
375
  return;
376
376
  }
377
377
  this._snkDataUnit.ignoreSaveMessage = this._currentViewMode === VIEW_MODE.GRID;
378
- return (h(Host, null, h("ez-view-stack", { ref: (ref) => this._viewStack = ref, "data-element-id": "crud" }, h("stack-item", null, h("snk-grid", { ref: (ref) => this._snkGrid = ref, filterBarTitle: this.filterBarTitle, "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, disablePersonalizedFilter: this.disablePersonalizedFilter, gridLegacyConfigName: this.gridLegacyConfigName, filterBarLegacyConfigName: this.filterBarLegacyConfigName, autoLoad: this.autoLoad }, h("slot", { name: "GRID_TASKBAR_CUSTOM_ELEMENTS" }), h("slot", { name: "GRID_HEADER_CUSTOM_ELEMENTS" }), h("slot", { name: "SnkGridHeader" }), h("slot", { name: "SnkGridFooter" }), h("slot", { name: "SnkGridTaskBar" }))), h("stack-item", null, h("snk-guides-viewer", { ref: ref => this._guidesViewer = ref, entityPath: this._snkDataUnit.entityName, messagesBuilder: this.messagesBuilder, onExit: () => this.setViewMode(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, formLegacyConfigName: this.formLegacyConfigName }, h("slot", { name: "GUIDES_VIEWER_TASKBAR_CUSTOM_ELEMENTS" }), h("slot", { name: "SnkFormTaskBar" }))), h("stack-item", null), 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 })), h("div", { id: `${this.customContainerId}` }, h("slot", { name: "SnkConfigContainerSlot" }), h("slot", { name: "DETAIL_GRID_HEADER_CUSTOM_ELEMENTS" }), h("slot", { name: "DETAIL_GRID_TASKBAR_CUSTOM_ELEMENTS" }), h("slot", { name: "DETAIL_TASKBAR_CUSTOM_ELEMENTS" }))));
378
+ return (h(Host, null, h("ez-view-stack", { ref: (ref) => this._viewStack = ref, "data-element-id": "crud" }, h("stack-item", null, h("snk-grid", { ref: (ref) => this._snkGrid = ref, filterBarTitle: this.filterBarTitle, "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, disablePersonalizedFilter: this.disablePersonalizedFilter, gridLegacyConfigName: this.gridLegacyConfigName, filterBarLegacyConfigName: this.filterBarLegacyConfigName, autoLoad: this.autoLoad }, h("slot", { name: "GRID_TASKBAR_CUSTOM_ELEMENTS" }), h("slot", { name: "GRID_HEADER_CUSTOM_ELEMENTS" }), h("slot", { name: "SnkGridHeader" }), h("slot", { name: "SnkGridFooter" }), h("slot", { name: "SnkGridTaskBar" }))), h("stack-item", null, h("snk-guides-viewer", { ref: ref => this._guidesViewer = ref, entityPath: this._snkDataUnit.entityName, messagesBuilder: this.messagesBuilder, onExit: () => this.setViewMode(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, formLegacyConfigName: this.formLegacyConfigName }, h("slot", { name: "GUIDES_VIEWER_TASKBAR_CUSTOM_ELEMENTS" }), h("slot", { name: "SnkFormTaskBar" }))), h("stack-item", null, h("snk-attach", { registerKey: this.attachmentRegisterKey, messagesBuilder: this.messagesBuilder, entityName: this._snkDataUnit.entityName, onBack: this.backView.bind(this) })), 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 })), h("div", { id: `${this.customContainerId}` }, h("slot", { name: "SnkConfigContainerSlot" }), h("slot", { name: "DETAIL_GRID_HEADER_CUSTOM_ELEMENTS" }), h("slot", { name: "DETAIL_GRID_TASKBAR_CUSTOM_ELEMENTS" }), h("slot", { name: "DETAIL_TASKBAR_CUSTOM_ELEMENTS" }))));
379
379
  }
380
380
  static get is() { return "snk-crud"; }
381
381
  static get encapsulation() { return "scoped"; }
@@ -20,7 +20,9 @@ export class SnkDataExporter {
20
20
  DataExporterOption.EXPORT_PDF_TO_EMAIL,
21
21
  DataExporterOption.EXPORT_XLS_TO_EMAIL,
22
22
  DataExporterOption.EXPORT_PAGE_TO_PDF,
23
- DataExporterOption.EXPORT_PAGE_TO_XLS
23
+ DataExporterOption.EXPORT_PAGE_TO_XLS,
24
+ DataExporterOption.EXPORT_ALL_RECORDS_TO_PDF,
25
+ DataExporterOption.EXPORT_ALL_RECORDS_TO_XLS,
24
26
  ];
25
27
  this._items = [];
26
28
  this._showDropdown = false;
@@ -111,6 +113,15 @@ export class SnkDataExporter {
111
113
  return DataExporterOption[key] === option;
112
114
  });
113
115
  }
116
+ getExportType(option) {
117
+ if (option === DataExporterOption.EXPORT_ALL_RECORDS_TO_PDF || option === DataExporterOption.EXPORT_ALL_RECORDS_TO_XLS) {
118
+ return 'all';
119
+ }
120
+ if (option === DataExporterOption.EXPORT_PAGE_TO_PDF || option === DataExporterOption.EXPORT_PAGE_TO_XLS) {
121
+ return 'page';
122
+ }
123
+ return 'selection';
124
+ }
114
125
  dispatchExporter(option) {
115
126
  var _a, _b, _c;
116
127
  const optionKey = this.getOptionKey(option);
@@ -121,7 +132,8 @@ export class SnkDataExporter {
121
132
  fileName: this._appLabel,
122
133
  titleGrid: this._appLabel,
123
134
  exportOption: option,
124
- limit: (_c = (_b = this.provider) === null || _b === void 0 ? void 0 : _b.getExportLimit) === null || _c === void 0 ? void 0 : _c.call(_b)
135
+ limit: (_c = (_b = this.provider) === null || _b === void 0 ? void 0 : _b.getExportLimit) === null || _c === void 0 ? void 0 : _c.call(_b),
136
+ type: this.getExportType(option),
125
137
  };
126
138
  this.resolveExporter(params, (response) => {
127
139
  fileViewer(Object.assign(Object.assign({}, response), { fileType,
@@ -19,6 +19,9 @@ export class ItemBuilder {
19
19
  items.push(this.getExportToXLS(groupName));
20
20
  }
21
21
  this.setExportCurrentPage(option, items);
22
+ if (this._selectedNumber > 0) {
23
+ this.setExportAllRecords(option, items);
24
+ }
22
25
  this.setExportByEmail(option, items);
23
26
  }
24
27
  /**
@@ -49,6 +52,34 @@ export class ItemBuilder {
49
52
  }
50
53
  }
51
54
  }
55
+ /**
56
+ * Método responsável por inserir os itens de exportação para todos os registros.
57
+ * @param option - Nome da opção que será inserida no array.
58
+ * @param items - Array que será alimentado com as opções permitidas.
59
+ */
60
+ setExportAllRecords(option, items) {
61
+ var _a;
62
+ const pageOptions = [DataExporterOption.EXPORT_PAGE_TO_PDF, DataExporterOption.EXPORT_PAGE_TO_XLS];
63
+ if (option === DataExporterOption.EXPORT_ALL_RECORDS) {
64
+ items.push(this.getAllRecords());
65
+ }
66
+ if (pageOptions.includes(option)) {
67
+ let item = items.find((item) => item.id === DataExporterOption.EXPORT_ALL_RECORDS);
68
+ if (item == undefined) {
69
+ items.push(this.getAllRecords());
70
+ item = items.find((item) => item.id === DataExporterOption.EXPORT_ALL_RECORDS);
71
+ }
72
+ if (!((_a = item === null || item === void 0 ? void 0 : item.children) === null || _a === void 0 ? void 0 : _a.length)) {
73
+ item.children = [];
74
+ }
75
+ if (option === DataExporterOption.EXPORT_PAGE_TO_PDF) {
76
+ item.children.push(this.getExportAllRecordsToPDF());
77
+ }
78
+ if (option === DataExporterOption.EXPORT_PAGE_TO_XLS) {
79
+ item.children.push(this.getExportAllRecordsToXLS());
80
+ }
81
+ }
82
+ }
52
83
  /**
53
84
  * Método responsável por inserir os itens de exportação por e-mail.
54
85
  * @param option - Nome da opção que será inserida no array.
@@ -94,6 +125,17 @@ export class ItemBuilder {
94
125
  group: this._getMessage("snkDataExporter.group.custom")
95
126
  };
96
127
  }
128
+ /**
129
+ * Método responsável por capturar o objeto com todos os dados de exportação.
130
+ * @returns Retorna o objeto com todos os dados de exportação.
131
+ */
132
+ getAllRecords() {
133
+ return {
134
+ id: DataExporterOption.EXPORT_ALL_RECORDS,
135
+ label: this._getMessage("snkDataExporter.label.allRecords"),
136
+ group: this._getMessage("snkDataExporter.group.custom")
137
+ };
138
+ }
97
139
  /**
98
140
  * Método responsável por capturar o objeto com os dados de exportação personalizada em PDF.
99
141
  * @returns Retorna o objeto com os dados de exportação personalizada em PDF.
@@ -114,6 +156,26 @@ export class ItemBuilder {
114
156
  label: `${this._getMessage("snkDataExporter.label.spreadsheet")} (.xlsx)`
115
157
  };
116
158
  }
159
+ /**
160
+ * Método responsável por capturar o objeto com todos os dados de exportação em PDF.
161
+ * @returns Retorna o objeto com todos os dados de exportação em PDF.
162
+ */
163
+ getExportAllRecordsToPDF() {
164
+ return {
165
+ id: DataExporterOption.EXPORT_ALL_RECORDS_TO_PDF,
166
+ label: "PDF (.pdf)"
167
+ };
168
+ }
169
+ /**
170
+ * Método responsável por capturar o objeto com todos os dados de exportação em XLS.
171
+ * @returns Retorna o objeto com todos os dados de exportação em XLS.
172
+ */
173
+ getExportAllRecordsToXLS() {
174
+ return {
175
+ id: DataExporterOption.EXPORT_ALL_RECORDS_TO_XLS,
176
+ label: `${this._getMessage("snkDataExporter.label.spreadsheet")} (.xlsx)`
177
+ };
178
+ }
117
179
  /**
118
180
  * Método responsável por capturar o objeto com os dados de exportação por e-mail.
119
181
  * @returns Retorna o objeto com os dados de exportação por e-mail.
@@ -9,8 +9,11 @@ export var DataExporterOption;
9
9
  DataExporterOption["EXPORT_TO_PDF"] = "exportToPDF";
10
10
  DataExporterOption["EXPORT_TO_XLS"] = "exportToXLS";
11
11
  DataExporterOption["EXPORT_CURRENT_PAGE"] = "exportCurrentPage";
12
+ DataExporterOption["EXPORT_ALL_RECORDS"] = "exportAllRecords";
12
13
  DataExporterOption["EXPORT_PAGE_TO_PDF"] = "exportPageToPDF";
13
14
  DataExporterOption["EXPORT_PAGE_TO_XLS"] = "exportPageToXLS";
15
+ DataExporterOption["EXPORT_ALL_RECORDS_TO_PDF"] = "exportAllRecordsToPDF";
16
+ DataExporterOption["EXPORT_ALL_RECORDS_TO_XLS"] = "exportAllRecordsToXLS";
14
17
  DataExporterOption["EXPORT_BY_EMAIL"] = "exportToEmail";
15
18
  DataExporterOption["EXPORT_PDF_TO_EMAIL"] = "exportPDFToEmail";
16
19
  DataExporterOption["EXPORT_XLS_TO_EMAIL"] = "exportXLSToEmail";
@@ -27,6 +30,8 @@ export var DataExporterType;
27
30
  DataExporterType["EXPORT_TO_XLS"] = "XLS";
28
31
  DataExporterType["EXPORT_PAGE_TO_PDF"] = "PDF";
29
32
  DataExporterType["EXPORT_PAGE_TO_XLS"] = "XLS";
33
+ DataExporterType["EXPORT_ALL_RECORDS_TO_PDF"] = "PDF";
34
+ DataExporterType["EXPORT_ALL_RECORDS_TO_XLS"] = "XLS";
30
35
  DataExporterType["EXPORT_PDF_TO_EMAIL"] = "PDF";
31
36
  DataExporterType["EXPORT_XLS_TO_EMAIL"] = "XLS";
32
37
  })(DataExporterType || (DataExporterType = {}));
@@ -10,6 +10,7 @@ export const snkDataExporterMessages = {
10
10
  },
11
11
  label: {
12
12
  currentPage: "Somente a página atual",
13
+ allRecords: "Todos os registros",
13
14
  spreadsheet: "Planilha",
14
15
  cube: "Cubo",
15
16
  sendByEmail: "Enviar por email",
@@ -9,8 +9,11 @@ var DataExporterOption;
9
9
  DataExporterOption["EXPORT_TO_PDF"] = "exportToPDF";
10
10
  DataExporterOption["EXPORT_TO_XLS"] = "exportToXLS";
11
11
  DataExporterOption["EXPORT_CURRENT_PAGE"] = "exportCurrentPage";
12
+ DataExporterOption["EXPORT_ALL_RECORDS"] = "exportAllRecords";
12
13
  DataExporterOption["EXPORT_PAGE_TO_PDF"] = "exportPageToPDF";
13
14
  DataExporterOption["EXPORT_PAGE_TO_XLS"] = "exportPageToXLS";
15
+ DataExporterOption["EXPORT_ALL_RECORDS_TO_PDF"] = "exportAllRecordsToPDF";
16
+ DataExporterOption["EXPORT_ALL_RECORDS_TO_XLS"] = "exportAllRecordsToXLS";
14
17
  DataExporterOption["EXPORT_BY_EMAIL"] = "exportToEmail";
15
18
  DataExporterOption["EXPORT_PDF_TO_EMAIL"] = "exportPDFToEmail";
16
19
  DataExporterOption["EXPORT_XLS_TO_EMAIL"] = "exportXLSToEmail";
@@ -27,6 +30,8 @@ var DataExporterType;
27
30
  DataExporterType["EXPORT_TO_XLS"] = "XLS";
28
31
  DataExporterType["EXPORT_PAGE_TO_PDF"] = "PDF";
29
32
  DataExporterType["EXPORT_PAGE_TO_XLS"] = "XLS";
33
+ DataExporterType["EXPORT_ALL_RECORDS_TO_PDF"] = "PDF";
34
+ DataExporterType["EXPORT_ALL_RECORDS_TO_XLS"] = "XLS";
30
35
  DataExporterType["EXPORT_PDF_TO_EMAIL"] = "PDF";
31
36
  DataExporterType["EXPORT_XLS_TO_EMAIL"] = "XLS";
32
37
  })(DataExporterType || (DataExporterType = {}));
@@ -285,6 +285,7 @@ const snkDataExporterMessages = {
285
285
  },
286
286
  label: {
287
287
  currentPage: "Somente a página atual",
288
+ allRecords: "Todos os registros",
288
289
  spreadsheet: "Planilha",
289
290
  cube: "Cubo",
290
291
  sendByEmail: "Enviar por email",