@sankhyalabs/sankhyablocks 8.16.0-dev.9 → 8.16.0-rc.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (139) hide show
  1. package/dist/cjs/{ConfigStorage-a343e418.js → ConfigStorage-e49214c6.js} +2 -2
  2. package/dist/cjs/{DataFetcher-313debd8.js → DataFetcher-77729a93.js} +7 -2
  3. package/dist/cjs/{RecordIDUtils-3735135c.js → GetSelectedRecordsIDsInfo-bd50caf1.js} +10 -10
  4. package/dist/cjs/{IExporterProvider-597949f9.js → IExporterProvider-8c030a7e.js} +5 -5
  5. package/dist/cjs/{SnkFormConfigManager-166cbd1f.js → SnkFormConfigManager-beebf47a.js} +2 -2
  6. package/dist/cjs/{SnkMessageBuilder-897ffd08.js → SnkMessageBuilder-cceebbae.js} +1 -1
  7. package/dist/cjs/{auth-fetcher-54f5ff9d.js → auth-fetcher-29bb791c.js} +1 -1
  8. package/dist/cjs/{dataunit-fetcher-688d3f05.js → dataunit-fetcher-d4873076.js} +1 -1
  9. package/dist/cjs/{form-config-fetcher-2dd00e5b.js → form-config-fetcher-feb08214.js} +1 -1
  10. package/dist/cjs/loader.cjs.js +1 -1
  11. package/dist/cjs/{pesquisa-fetcher-680e198f.js → pesquisa-fetcher-a1d0353f.js} +1 -1
  12. package/dist/cjs/sankhyablocks.cjs.js +1 -1
  13. package/dist/cjs/snk-actions-button_4.cjs.entry.js +17 -14
  14. package/dist/cjs/snk-application.cjs.entry.js +7 -7
  15. package/dist/cjs/snk-attach.cjs.entry.js +5 -5
  16. package/dist/cjs/snk-crud.cjs.entry.js +5 -5
  17. package/dist/cjs/snk-data-exporter.cjs.entry.js +9 -9
  18. package/dist/cjs/{snk-data-unit-8fa7917a.js → snk-data-unit-c7dcfa19.js} +16 -8
  19. package/dist/cjs/snk-data-unit.cjs.entry.js +5 -5
  20. package/dist/cjs/snk-detail-view.cjs.entry.js +9 -9
  21. package/dist/cjs/snk-exporter-email-sender.cjs.entry.js +1 -1
  22. package/dist/cjs/snk-filter-bar.cjs.entry.js +19 -11
  23. package/dist/cjs/snk-filter-modal-item.cjs.entry.js +3 -3
  24. package/dist/cjs/snk-form-config.cjs.entry.js +2 -2
  25. package/dist/cjs/snk-form.cjs.entry.js +4 -4
  26. package/dist/cjs/snk-grid.cjs.entry.js +9 -9
  27. package/dist/cjs/{snk-guides-viewer-bdc41281.js → snk-guides-viewer-69ec61af.js} +5 -5
  28. package/dist/cjs/snk-guides-viewer.cjs.entry.js +7 -7
  29. package/dist/cjs/snk-personalized-filter.cjs.entry.js +3 -3
  30. package/dist/cjs/snk-simple-crud.cjs.entry.js +9 -9
  31. package/dist/cjs/snk-taskbar.cjs.entry.js +23 -1
  32. package/dist/collection/components/snk-actions-button/actions/index.js +12 -9
  33. package/dist/collection/components/snk-crud/subcomponents/snk-detail-view/snk-detail-view.js +1 -1
  34. package/dist/collection/components/snk-data-exporter/exporter-email-sender/options-step.js +1 -1
  35. package/dist/collection/components/snk-data-exporter/providers/ClientSideExporterProvider.js +1 -1
  36. package/dist/collection/components/snk-data-exporter/providers/ServerSideExporterProvider.js +1 -1
  37. package/dist/collection/components/snk-data-exporter/structure/ItemBuilder.js +2 -2
  38. package/dist/collection/components/snk-data-unit/snk-data-unit.js +14 -6
  39. package/dist/collection/components/snk-filter-bar/snk-filter-bar.js +16 -8
  40. package/dist/collection/components/snk-grid/snk-grid.js +1 -1
  41. package/dist/collection/components/snk-taskbar/snk-taskbar.js +64 -0
  42. package/dist/collection/lib/DefaultCustomFormatters/RmPrecisionCustomValueFormatter.js +2 -2
  43. package/dist/collection/lib/http/data-fetcher/DataFetcher.js +8 -3
  44. package/dist/collection/lib/message/resources/snk-exporter.msg.js +1 -1
  45. package/dist/collection/{components/snk-data-exporter/utils/RecordIDUtils.js → lib/utils/GetSelectedRecordsIDsInfo.js} +9 -9
  46. package/dist/components/DataFetcher.js +8 -3
  47. package/dist/{esm/RecordIDUtils-87d02110.js → components/GetSelectedRecordsIDsInfo.js} +10 -10
  48. package/dist/components/IExporterProvider.js +2 -2
  49. package/dist/components/SnkMessageBuilder.js +1 -1
  50. package/dist/components/snk-actions-button2.js +12 -9
  51. package/dist/components/snk-data-exporter2.js +2 -2
  52. package/dist/components/snk-data-unit2.js +16 -45
  53. package/dist/components/snk-detail-view2.js +1 -1
  54. package/dist/components/snk-exporter-email-sender2.js +1 -1
  55. package/dist/components/snk-filter-bar2.js +16 -8
  56. package/dist/components/snk-grid2.js +3 -3
  57. package/dist/components/snk-simple-crud2.js +3 -2
  58. package/dist/components/snk-taskbar2.js +24 -2
  59. package/dist/esm/{ConfigStorage-3806514e.js → ConfigStorage-e476378d.js} +2 -2
  60. package/dist/esm/{DataFetcher-c1baf61d.js → DataFetcher-773a3e4b.js} +8 -3
  61. package/dist/esm/GetSelectedRecordsIDsInfo-9fa41508.js +41 -0
  62. package/dist/esm/{IExporterProvider-63a188b6.js → IExporterProvider-f86019db.js} +6 -6
  63. package/dist/esm/{SnkFormConfigManager-31b24066.js → SnkFormConfigManager-298cd647.js} +2 -2
  64. package/dist/esm/{SnkMessageBuilder-571462fb.js → SnkMessageBuilder-ae87b754.js} +1 -1
  65. package/dist/esm/{auth-fetcher-039abba3.js → auth-fetcher-a411f73c.js} +1 -1
  66. package/dist/esm/{dataunit-fetcher-264191b2.js → dataunit-fetcher-3d2ec959.js} +1 -1
  67. package/dist/esm/{form-config-fetcher-30fb808f.js → form-config-fetcher-e0382e5a.js} +1 -1
  68. package/dist/esm/loader.js +1 -1
  69. package/dist/esm/{pesquisa-fetcher-03c8f919.js → pesquisa-fetcher-a87445a0.js} +1 -1
  70. package/dist/esm/sankhyablocks.js +1 -1
  71. package/dist/esm/snk-actions-button_4.entry.js +17 -14
  72. package/dist/esm/snk-application.entry.js +7 -7
  73. package/dist/esm/snk-attach.entry.js +5 -5
  74. package/dist/esm/snk-crud.entry.js +5 -5
  75. package/dist/esm/snk-data-exporter.entry.js +9 -9
  76. package/dist/esm/{snk-data-unit-f5cbe64b.js → snk-data-unit-3276e55e.js} +16 -8
  77. package/dist/esm/snk-data-unit.entry.js +5 -5
  78. package/dist/esm/snk-detail-view.entry.js +9 -9
  79. package/dist/esm/snk-exporter-email-sender.entry.js +1 -1
  80. package/dist/esm/snk-filter-bar.entry.js +19 -11
  81. package/dist/esm/snk-filter-modal-item.entry.js +3 -3
  82. package/dist/esm/snk-form-config.entry.js +2 -2
  83. package/dist/esm/snk-form.entry.js +4 -4
  84. package/dist/esm/snk-grid.entry.js +9 -9
  85. package/dist/esm/{snk-guides-viewer-dda0fede.js → snk-guides-viewer-43f21b03.js} +5 -5
  86. package/dist/esm/snk-guides-viewer.entry.js +7 -7
  87. package/dist/esm/snk-personalized-filter.entry.js +3 -3
  88. package/dist/esm/snk-simple-crud.entry.js +9 -9
  89. package/dist/esm/snk-taskbar.entry.js +23 -1
  90. package/dist/sankhyablocks/{p-fe79f83a.js → p-091ce761.js} +1 -1
  91. package/dist/sankhyablocks/{p-913a9979.js → p-0cd3c0a9.js} +1 -1
  92. package/dist/sankhyablocks/{p-7619bdb1.entry.js → p-162b9a59.entry.js} +2 -2
  93. package/dist/sankhyablocks/p-16a1dd18.entry.js +1 -0
  94. package/dist/sankhyablocks/{p-df5451c7.js → p-181975f1.js} +1 -1
  95. package/dist/sankhyablocks/p-18ed15f4.entry.js +1 -0
  96. package/dist/sankhyablocks/p-1a21b61a.entry.js +1 -0
  97. package/dist/sankhyablocks/p-1e596b15.entry.js +1 -0
  98. package/dist/sankhyablocks/{p-fa4d8cb4.js → p-1f35c795.js} +1 -1
  99. package/dist/sankhyablocks/{p-af8efd95.js → p-25f1fc39.js} +1 -1
  100. package/dist/sankhyablocks/{p-62ba211a.entry.js → p-2e9c764c.entry.js} +1 -1
  101. package/dist/sankhyablocks/{p-52920496.js → p-3287a6cc.js} +1 -1
  102. package/dist/sankhyablocks/{p-7505da04.entry.js → p-42f7b05d.entry.js} +1 -1
  103. package/dist/sankhyablocks/p-4e1b47a4.js +1 -0
  104. package/dist/sankhyablocks/{p-b05d8893.entry.js → p-53412c1d.entry.js} +1 -1
  105. package/dist/sankhyablocks/p-594bc21d.js +1 -0
  106. package/dist/sankhyablocks/p-5b26cc7c.entry.js +1 -0
  107. package/dist/sankhyablocks/{p-2a408684.js → p-5f016aed.js} +1 -1
  108. package/dist/sankhyablocks/p-6d55957a.js +1 -0
  109. package/dist/sankhyablocks/p-7b8f7242.entry.js +1 -0
  110. package/dist/sankhyablocks/p-7c4aabe2.js +1 -0
  111. package/dist/sankhyablocks/p-7dd49d15.js +1 -0
  112. package/dist/sankhyablocks/p-92ed1d24.entry.js +1 -0
  113. package/dist/sankhyablocks/{p-450c60e4.entry.js → p-939e15d3.entry.js} +1 -1
  114. package/dist/sankhyablocks/{p-47db7e88.entry.js → p-9dfda04a.entry.js} +1 -1
  115. package/dist/sankhyablocks/{p-80042dc6.entry.js → p-aa5b3b2c.entry.js} +1 -1
  116. package/dist/sankhyablocks/{p-7a85fd49.entry.js → p-aa6d510d.entry.js} +1 -1
  117. package/dist/sankhyablocks/{p-2c68b3ae.entry.js → p-bd008859.entry.js} +1 -1
  118. package/dist/sankhyablocks/{p-871aa14e.entry.js → p-fd8a58ff.entry.js} +1 -1
  119. package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
  120. package/dist/types/components/snk-actions-button/actions/index.d.ts +1 -0
  121. package/dist/types/components/snk-data-unit/snk-data-unit.d.ts +1 -0
  122. package/dist/types/components/snk-filter-bar/snk-filter-bar.d.ts +1 -0
  123. package/dist/types/components/snk-taskbar/snk-taskbar.d.ts +11 -0
  124. package/dist/types/components.d.ts +8 -0
  125. package/dist/types/lib/utils/GetSelectedRecordsIDsInfo.d.ts +3 -0
  126. package/package.json +2 -2
  127. package/dist/sankhyablocks/p-17def7cd.js +0 -1
  128. package/dist/sankhyablocks/p-219f888d.entry.js +0 -1
  129. package/dist/sankhyablocks/p-3a212712.js +0 -1
  130. package/dist/sankhyablocks/p-4e5e1313.entry.js +0 -1
  131. package/dist/sankhyablocks/p-6bb2f3e9.entry.js +0 -1
  132. package/dist/sankhyablocks/p-75e674ed.entry.js +0 -1
  133. package/dist/sankhyablocks/p-7ef9c55c.js +0 -1
  134. package/dist/sankhyablocks/p-8c59edd7.entry.js +0 -1
  135. package/dist/sankhyablocks/p-9863d682.js +0 -1
  136. package/dist/sankhyablocks/p-d6e26ea8.entry.js +0 -1
  137. package/dist/sankhyablocks/p-dc7c9047.js +0 -1
  138. package/dist/sankhyablocks/p-f2809746.entry.js +0 -1
  139. package/dist/types/components/snk-data-exporter/utils/RecordIDUtils.d.ts +0 -3
@@ -1,13 +1,13 @@
1
1
  import { r as registerInstance, c as createEvent, h, g as getElement } from './index-a7d3d3f1.js';
2
2
  import { DateUtils, StringUtils, ObjectUtils, WaitingChangeException, WarningException, ErrorException, KeyboardManager, OnboardingUtils, DependencyType, ArrayUtils, SearchUtils, ElementIDUtils, ApplicationContext, DataType, ErrorTracking } from '@sankhyalabs/core';
3
3
  import { ApplicationUtils } from '@sankhyalabs/ezui/dist/collection/utils';
4
- import { C as ConfigStorage } from './ConfigStorage-3806514e.js';
5
- import { d as dist, D as DataFetcher, U as UrlUtils } from './DataFetcher-c1baf61d.js';
6
- import { A as AutorizationType, a as AuthFetcher } from './auth-fetcher-039abba3.js';
7
- import { D as DataUnitFetcher } from './dataunit-fetcher-264191b2.js';
8
- import { P as PesquisaFetcher } from './pesquisa-fetcher-03c8f919.js';
9
- import { S as SnkMessageBuilder } from './SnkMessageBuilder-571462fb.js';
10
- import './form-config-fetcher-30fb808f.js';
4
+ import { C as ConfigStorage } from './ConfigStorage-e476378d.js';
5
+ import { d as dist, D as DataFetcher, U as UrlUtils } from './DataFetcher-773a3e4b.js';
6
+ import { A as AutorizationType, a as AuthFetcher } from './auth-fetcher-a411f73c.js';
7
+ import { D as DataUnitFetcher } from './dataunit-fetcher-3d2ec959.js';
8
+ import { P as PesquisaFetcher } from './pesquisa-fetcher-a87445a0.js';
9
+ import { S as SnkMessageBuilder } from './SnkMessageBuilder-ae87b754.js';
10
+ import './form-config-fetcher-e0382e5a.js';
11
11
  import './filter-item-type.enum-d45e026f.js';
12
12
  import './PrintUtils-3e4ff0f5.js';
13
13
  import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
@@ -1,14 +1,14 @@
1
1
  import { r as registerInstance, c as createEvent, h } from './index-a7d3d3f1.js';
2
2
  import { ApplicationContext, DataType, Action, UserInterface, StringUtils, DataUnit } from '@sankhyalabs/core';
3
- import { D as DataFetcher } from './DataFetcher-c1baf61d.js';
4
- import './pesquisa-fetcher-03c8f919.js';
3
+ import { D as DataFetcher } from './DataFetcher-773a3e4b.js';
4
+ import './pesquisa-fetcher-a87445a0.js';
5
5
  import './index-3aa4977a.js';
6
6
  import { S as SaveErrorsEnum } from './ISave-d8c8bc59.js';
7
- import { P as PreloadManager, b as applyFilter, c as applySorting, d as buildPaginationInfo, D as DataUnitFetcher, I as InMemoryLoader } from './dataunit-fetcher-264191b2.js';
7
+ import { P as PreloadManager, b as applyFilter, c as applySorting, d as buildPaginationInfo, D as DataUnitFetcher, I as InMemoryLoader } from './dataunit-fetcher-3d2ec959.js';
8
8
  import './filter-item-type.enum-d45e026f.js';
9
- import './form-config-fetcher-30fb808f.js';
9
+ import './form-config-fetcher-e0382e5a.js';
10
10
  import { d as VIEW_MODE } from './constants-8457af36.js';
11
- import { A as AutorizationType } from './auth-fetcher-039abba3.js';
11
+ import { A as AutorizationType } from './auth-fetcher-a411f73c.js';
12
12
  import { T as TaskbarElement } from './taskbar-elements-d59867f1.js';
13
13
  import './PrintUtils-3e4ff0f5.js';
14
14
  import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
@@ -1,17 +1,17 @@
1
1
  import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-a7d3d3f1.js';
2
2
  import { StringUtils, ElementIDUtils, ApplicationContext, JSUtils, FloatingManager } from '@sankhyalabs/core';
3
3
  import { T as TaskbarElement } from './taskbar-elements-d59867f1.js';
4
- import './DataFetcher-c1baf61d.js';
5
- import './pesquisa-fetcher-03c8f919.js';
4
+ import './DataFetcher-773a3e4b.js';
5
+ import './pesquisa-fetcher-a87445a0.js';
6
6
  import { P as PresentationMode } from './index-3aa4977a.js';
7
7
  import './ISave-d8c8bc59.js';
8
8
  import '@sankhyalabs/ezui/dist/collection/utils/constants';
9
9
  import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
10
- import './dataunit-fetcher-264191b2.js';
10
+ import './dataunit-fetcher-3d2ec959.js';
11
11
  import './filter-item-type.enum-d45e026f.js';
12
- import './form-config-fetcher-30fb808f.js';
12
+ import './form-config-fetcher-e0382e5a.js';
13
13
  import { d as VIEW_MODE } from './constants-8457af36.js';
14
- import { A as AutorizationType } from './auth-fetcher-039abba3.js';
14
+ import { A as AutorizationType } from './auth-fetcher-a411f73c.js';
15
15
  import './index-bdf75557.js';
16
16
  import './PrintUtils-3e4ff0f5.js';
17
17
  import '@sankhyalabs/ezui/dist/collection/components/ez-grid/utils';
@@ -3,19 +3,19 @@ import { ApplicationContext, ObjectUtils, UserInterface, DataType, ElementIDUtil
3
3
  import { ApplicationUtils, DialogType } from '@sankhyalabs/ezui/dist/collection/utils';
4
4
  import { D as DataExporterOption, a as DataExporterType, b as DataExporterFormat } from './index-3aa4977a.js';
5
5
  import { R as REPORT_LAUNCHER_RESOURCE_ID } from './constants-8457af36.js';
6
- import { D as DataFetcher } from './DataFetcher-c1baf61d.js';
7
- import { S as SnkDataUnit } from './snk-data-unit-f5cbe64b.js';
8
- import './pesquisa-fetcher-03c8f919.js';
6
+ import { D as DataFetcher } from './DataFetcher-773a3e4b.js';
7
+ import { S as SnkDataUnit } from './snk-data-unit-3276e55e.js';
8
+ import './pesquisa-fetcher-a87445a0.js';
9
9
  import './ISave-d8c8bc59.js';
10
10
  import '@sankhyalabs/ezui/dist/collection/utils/constants';
11
11
  import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
12
- import './dataunit-fetcher-264191b2.js';
12
+ import './dataunit-fetcher-3d2ec959.js';
13
13
  import './filter-item-type.enum-d45e026f.js';
14
- import './form-config-fetcher-30fb808f.js';
14
+ import './form-config-fetcher-e0382e5a.js';
15
15
  import './PrintUtils-3e4ff0f5.js';
16
- import './SnkMessageBuilder-571462fb.js';
17
- import './RecordIDUtils-87d02110.js';
16
+ import './SnkMessageBuilder-ae87b754.js';
18
17
  import '@sankhyalabs/core/dist/dataunit/metadata/DataType';
18
+ import './GetSelectedRecordsIDsInfo-9fa41508.js';
19
19
  import '@sankhyalabs/ezui/dist/collection/components/ez-grid/utils';
20
20
  import '@sankhyalabs/core/dist/utils/SortingUtils';
21
21
  import './ResourceIDUtils-a114189a.js';
@@ -131,7 +131,7 @@ class ItemBuilder {
131
131
  getExportToXLS(groupName) {
132
132
  return {
133
133
  id: DataExporterOption.EXPORT_TO_XLS,
134
- label: `${this._getMessage("snkDataExporter.label.spreadsheet")} (.xlsx)`,
134
+ label: `${this._getMessage("snkDataExporter.label.spreadsheet")} (.xls)`,
135
135
  group: groupName
136
136
  };
137
137
  }
@@ -174,7 +174,7 @@ class ItemBuilder {
174
174
  getExportPageToXLS() {
175
175
  return {
176
176
  id: DataExporterOption.EXPORT_PAGE_TO_XLS,
177
- label: `${this._getMessage("snkDataExporter.label.spreadsheet")} (.xlsx)`
177
+ label: `${this._getMessage("snkDataExporter.label.spreadsheet")} (.xls)`
178
178
  };
179
179
  }
180
180
  /**
@@ -1,10 +1,10 @@
1
1
  import { r as registerInstance, c as createEvent, h, g as getElement, H as Host } from './index-a7d3d3f1.js';
2
2
  import { Action, ObjectUtils, DataUnitAction, StringUtils, ApplicationContext } from '@sankhyalabs/core';
3
3
  import { ApplicationUtils, DialogType } from '@sankhyalabs/ezui/dist/collection/utils';
4
- import { O as OperationMap, S as SnkMessageBuilder } from './SnkMessageBuilder-571462fb.js';
5
- import { g as getRecordValue, a as DatasetStrategy } from './dataunit-fetcher-264191b2.js';
6
- import { g as getSelectedIDs } from './RecordIDUtils-87d02110.js';
4
+ import { O as OperationMap, S as SnkMessageBuilder } from './SnkMessageBuilder-ae87b754.js';
5
+ import { g as getRecordValue, a as DatasetStrategy } from './dataunit-fetcher-3d2ec959.js';
7
6
  import { convertType } from '@sankhyalabs/core/dist/dataunit/metadata/DataType';
7
+ import { g as getSelectedRecordsIDsInfo } from './GetSelectedRecordsIDsInfo-9fa41508.js';
8
8
 
9
9
  const SnkDataUnit = class {
10
10
  constructor(hostRef) {
@@ -115,7 +115,7 @@ const SnkDataUnit = class {
115
115
  * @returns Retorna a lista de IDs dos registros selecionados.
116
116
  */
117
117
  async getSelectedRecordsIDsInfo() {
118
- return Promise.resolve(getSelectedIDs(this.dataUnit));
118
+ return getSelectedRecordsIDsInfo(this.dataUnit);
119
119
  }
120
120
  /**
121
121
  * Retorna os campos que possuem a propriedade "rmp" (Row Metadata Provider).
@@ -545,18 +545,26 @@ const SnkDataUnit = class {
545
545
  return await this._application.getDataUnit(this.entityName, cacheName, null, this.configName, this.resourceID);
546
546
  }
547
547
  }
548
+ updateMetadataWithRMP() {
549
+ this.fillFieldsWithRmp(this.dataUnit.metadata);
550
+ this.fillFieldsWithRmPrecision(this.dataUnit.metadata);
551
+ const dataUnitUpdatedMetadata = this.handleDULinksOnMetadataLoaded(this.dataUnit.metadata);
552
+ this.dataUnit.metadata = dataUnitUpdatedMetadata;
553
+ }
548
554
  async loadDataUnit() {
549
- var _a;
555
+ var _a, _b;
550
556
  if (this.dataUnit == null && this._application && this.entityName) {
551
557
  this.dataUnit = await this.getDataUnitParentOrChild();
552
558
  }
553
559
  if (this.dataUnit) {
554
560
  this.dataUnit.pageSize = this.pageSize;
555
561
  this.dataUnit.unsubscribe(this._dataUnitObserver);
556
- this.dataUnit.addInterceptor(this);
557
562
  this.dataUnit.subscribe(this._dataUnitObserver);
558
- await this.dataUnit.loadMetadata();
559
- if ((_a = this.dataUnit.records) === null || _a === void 0 ? void 0 : _a.length) {
563
+ if ((_a = this.dataUnit) === null || _a === void 0 ? void 0 : _a.metadata) {
564
+ this.updateMetadataWithRMP();
565
+ }
566
+ this.dataUnit.addInterceptor(this);
567
+ if ((_b = this.dataUnit.records) === null || _b === void 0 ? void 0 : _b.length) {
560
568
  this.getMetadataByRow(this.dataUnit);
561
569
  }
562
570
  this.dataState = this.buildDataState();
@@ -1,15 +1,15 @@
1
- export { S as snk_data_unit } from './snk-data-unit-f5cbe64b.js';
1
+ export { S as snk_data_unit } from './snk-data-unit-3276e55e.js';
2
2
  import './index-a7d3d3f1.js';
3
3
  import '@sankhyalabs/core';
4
4
  import '@sankhyalabs/ezui/dist/collection/utils';
5
- import './SnkMessageBuilder-571462fb.js';
6
- import './dataunit-fetcher-264191b2.js';
7
- import './DataFetcher-c1baf61d.js';
5
+ import './SnkMessageBuilder-ae87b754.js';
6
+ import './dataunit-fetcher-3d2ec959.js';
7
+ import './DataFetcher-773a3e4b.js';
8
8
  import './PrintUtils-3e4ff0f5.js';
9
9
  import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
10
10
  import '@sankhyalabs/ezui/dist/collection/utils/constants';
11
11
  import '@sankhyalabs/ezui/dist/collection/components/ez-grid/utils';
12
12
  import '@sankhyalabs/core/dist/utils/SortingUtils';
13
13
  import './ResourceIDUtils-a114189a.js';
14
- import './RecordIDUtils-87d02110.js';
15
14
  import '@sankhyalabs/core/dist/dataunit/metadata/DataType';
15
+ import './GetSelectedRecordsIDsInfo-9fa41508.js';
@@ -1,21 +1,21 @@
1
1
  import { r as registerInstance, c as createEvent, f as forceUpdate, h, H as Host } from './index-a7d3d3f1.js';
2
2
  import { Action } from '@sankhyalabs/core';
3
- import { S as SnkFormConfigManager } from './SnkFormConfigManager-31b24066.js';
3
+ import { S as SnkFormConfigManager } from './SnkFormConfigManager-298cd647.js';
4
4
  import { FormMetadata, buildFormMetadata } from '@sankhyalabs/ezui/dist/collection/utils/form';
5
- import './DataFetcher-c1baf61d.js';
6
- import './pesquisa-fetcher-03c8f919.js';
5
+ import './DataFetcher-773a3e4b.js';
6
+ import './pesquisa-fetcher-a87445a0.js';
7
7
  import { P as PresentationMode } from './index-3aa4977a.js';
8
8
  import './ISave-d8c8bc59.js';
9
9
  import '@sankhyalabs/ezui/dist/collection/utils/constants';
10
10
  import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
11
- import './dataunit-fetcher-264191b2.js';
11
+ import './dataunit-fetcher-3d2ec959.js';
12
12
  import './filter-item-type.enum-d45e026f.js';
13
- import './form-config-fetcher-30fb808f.js';
13
+ import './form-config-fetcher-e0382e5a.js';
14
14
  import { T as TaskbarElement } from './taskbar-elements-d59867f1.js';
15
15
  import { d as VIEW_MODE } from './constants-8457af36.js';
16
- import { S as SnkGuidesViewer } from './snk-guides-viewer-dda0fede.js';
17
- import { S as SnkMessageBuilder } from './SnkMessageBuilder-571462fb.js';
18
- import './ConfigStorage-3806514e.js';
16
+ import { S as SnkGuidesViewer } from './snk-guides-viewer-43f21b03.js';
17
+ import { S as SnkMessageBuilder } from './SnkMessageBuilder-ae87b754.js';
18
+ import './ConfigStorage-e476378d.js';
19
19
  import './PrintUtils-3e4ff0f5.js';
20
20
  import '@sankhyalabs/ezui/dist/collection/components/ez-grid/utils';
21
21
  import '@sankhyalabs/core/dist/utils/SortingUtils';
@@ -263,7 +263,7 @@ const SnkDetailView = class {
263
263
  this.emitSwitchEvent(VIEW_MODE.GRID);
264
264
  evt.stopPropagation();
265
265
  }
266
- if (evt.detail === TaskbarElement.FORM_MODE) {
266
+ if (evt.detail === TaskbarElement.FORM_MODE || evt.detail === TaskbarElement.UPDATE) {
267
267
  this.emitSwitchEvent(VIEW_MODE.FORM);
268
268
  evt.stopPropagation();
269
269
  }
@@ -16,7 +16,7 @@ const OptionsStep = ({ getMessage, changeInfo, data }) => {
16
16
  const selectionCount = (data === null || data === void 0 ? void 0 : data.selectedRows) || 0;
17
17
  const formatOptions = [
18
18
  { label: getMessage("snkExporter.emailSenderOptStep_formatPDF"), value: "pdf" },
19
- { label: getMessage("snkExporter.emailSenderOptStep_formatXLSX"), value: "xlsx" }
19
+ { label: getMessage("snkExporter.emailSenderOptStep_formatXLS"), value: "xls" }
20
20
  ];
21
21
  const typeOptions = [
22
22
  { label: getMessage("snkExporter.emailSenderOptStep_allData"), value: "all" },
@@ -1,15 +1,15 @@
1
1
  import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-a7d3d3f1.js';
2
2
  import { DataType, StringUtils, ObjectUtils, ElementIDUtils, ErrorException, ApplicationContext } from '@sankhyalabs/core';
3
3
  import { EzScrollDirection } from '@sankhyalabs/ezui/dist/collection/components/ez-scroller/EzScrollDirection';
4
- import { C as ConfigStorage } from './ConfigStorage-3806514e.js';
4
+ import { C as ConfigStorage } from './ConfigStorage-e476378d.js';
5
5
  import { toString } from '@sankhyalabs/core/dist/dataunit/metadata/DataType';
6
6
  import { F as FilterItemType } from './filter-item-type.enum-d45e026f.js';
7
7
  import { F as FilterOperand } from './index-ae591a44.js';
8
8
  import { F as FilterNumberVariation } from './filterNumberVariation-8cee02ea.js';
9
9
  import { ApplicationUtils } from '@sankhyalabs/ezui/dist/collection/utils';
10
10
  import { P as PersonalizedFilterUtils } from './PersonalizedFilterUtils-e2b38ef7.js';
11
- import './form-config-fetcher-30fb808f.js';
12
- import './DataFetcher-c1baf61d.js';
11
+ import './form-config-fetcher-e0382e5a.js';
12
+ import './DataFetcher-773a3e4b.js';
13
13
  import './PrintUtils-3e4ff0f5.js';
14
14
  import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
15
15
 
@@ -261,13 +261,13 @@ const SnkFilterBar = class {
261
261
  this._pendingVariables = false;
262
262
  this._customfiltersToBeUpdated = [];
263
263
  this._calculateSortIndex = (item) => {
264
- let index = item.hardFixed ? 1000000 : 0;
265
- //campos Hard Fixed não variam a ordem
266
- if (!item.hardFixed) {
267
- index += item.fixed ? 100000 : 0;
268
- index += item.value == undefined ? 0 : 10000;
269
- index += this._updateSequence.lastIndexOf(item.id) + 1;
270
- }
264
+ if (!item.visible)
265
+ return 0;
266
+ if (item.hardFixed)
267
+ return 1000000; //campos Hard Fixed não variam a ordem
268
+ let index = item.fixed ? 100000 : 0;
269
+ index += this.hasValidValue(item) ? 10000 : 0;
270
+ index += this._updateSequence.lastIndexOf(item.id) + 1;
271
271
  return index;
272
272
  };
273
273
  this._filtersComparator = (a, b) => {
@@ -288,6 +288,13 @@ const SnkFilterBar = class {
288
288
  this.showPersonalizedFilter = false;
289
289
  this.personalizedFilterId = undefined;
290
290
  }
291
+ hasValidValue(item) {
292
+ if (item.value === undefined || item.value === null)
293
+ return false;
294
+ if (!Array.isArray(item.value))
295
+ return true;
296
+ return item.value.some(filterItem => filterItem.check === true);
297
+ }
291
298
  observeFilterConfig(newValue, oldValue) {
292
299
  if (ObjectUtils.equals(newValue, oldValue))
293
300
  return;
@@ -513,7 +520,7 @@ const SnkFilterBar = class {
513
520
  getFilterItems() {
514
521
  const pinnedItems = [];
515
522
  const unpinnedItems = [];
516
- this.filterConfig
523
+ this.filterConfig.sort((a, b) => this._filtersComparator(a, b))
517
524
  .filter(this.filterActiveFilter)
518
525
  .forEach((item, index) => {
519
526
  item = ObjectUtils.copy(item);
@@ -583,6 +590,7 @@ const SnkFilterBar = class {
583
590
  .then((filters) => {
584
591
  accept();
585
592
  this.filterConfig = filters.map(item => this.normalizeItem(item));
593
+ this.filterConfig.sort((a, b) => this._filtersComparator(a, b));
586
594
  })
587
595
  .catch(reason => {
588
596
  throw new ErrorException(this.getMessage("snkFilterBar.failToLoadConfig"), reason);
@@ -2,10 +2,10 @@ import { r as registerInstance, c as createEvent, h, H as Host, g as getElement
2
2
  import { ElementIDUtils, ObjectUtils } from '@sankhyalabs/core';
3
3
  import { F as FilterItemType } from './filter-item-type.enum-d45e026f.js';
4
4
  import { E as EPresentationMode } from './presentationMode-783bbf9d.js';
5
- import { C as ConfigStorage } from './ConfigStorage-3806514e.js';
5
+ import { C as ConfigStorage } from './ConfigStorage-e476378d.js';
6
6
  import { F as FilterType } from './filter-type.enum-a80c1b6b.js';
7
- import './form-config-fetcher-30fb808f.js';
8
- import './DataFetcher-c1baf61d.js';
7
+ import './form-config-fetcher-e0382e5a.js';
8
+ import './DataFetcher-773a3e4b.js';
9
9
  import './PrintUtils-3e4ff0f5.js';
10
10
  import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
11
11
 
@@ -3,9 +3,9 @@ import { S as Sortable } from './Sortable-83960219.js';
3
3
  import { ObjectUtils, ElementIDUtils, ArrayUtils, ApplicationContext } from '@sankhyalabs/core';
4
4
  import { ApplicationUtils, DialogType } from '@sankhyalabs/ezui/dist/collection/utils';
5
5
  import { C as CONFIG_EVENTS, a as CONFIG_SORTABLE_EVENTS, T as TAB_NAMES, A as ACTION_CONFIG, D as DEFAULT_TYPE } from './constants-8457af36.js';
6
- import { U as UserConfigType } from './form-config-fetcher-30fb808f.js';
6
+ import { U as UserConfigType } from './form-config-fetcher-e0382e5a.js';
7
7
  import { buildFormConfigFromDataUnit } from '@sankhyalabs/ezui/dist/collection/utils/form';
8
- import './DataFetcher-c1baf61d.js';
8
+ import './DataFetcher-773a3e4b.js';
9
9
  import './PrintUtils-3e4ff0f5.js';
10
10
  import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
11
11
 
@@ -1,10 +1,10 @@
1
1
  import { r as registerInstance, c as createEvent, h, g as getElement } from './index-a7d3d3f1.js';
2
2
  import { ElementIDUtils } from '@sankhyalabs/core';
3
- import { S as SnkFormConfigManager } from './SnkFormConfigManager-31b24066.js';
3
+ import { S as SnkFormConfigManager } from './SnkFormConfigManager-298cd647.js';
4
4
  import { R as ResourceIDUtils } from './ResourceIDUtils-a114189a.js';
5
- import './ConfigStorage-3806514e.js';
6
- import './form-config-fetcher-30fb808f.js';
7
- import './DataFetcher-c1baf61d.js';
5
+ import './ConfigStorage-e476378d.js';
6
+ import './form-config-fetcher-e0382e5a.js';
7
+ import './DataFetcher-773a3e4b.js';
8
8
  import './PrintUtils-3e4ff0f5.js';
9
9
  import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
10
10
  import './filter-item-type.enum-d45e026f.js';
@@ -1,21 +1,21 @@
1
1
  import { r as registerInstance, c as createEvent, h, F as Fragment, g as getElement } from './index-a7d3d3f1.js';
2
2
  import { Action, ElementIDUtils, ApplicationContext, StringUtils } from '@sankhyalabs/core';
3
3
  import { T as TaskbarElement } from './taskbar-elements-d59867f1.js';
4
- import { C as ConfigStorage } from './ConfigStorage-3806514e.js';
4
+ import { C as ConfigStorage } from './ConfigStorage-e476378d.js';
5
5
  import { P as PresentationMode } from './index-3aa4977a.js';
6
6
  import { T as TaskbarProcessor, o as openFieldSearch, b as buildFieldSearch } from './field-search-efbe307f.js';
7
7
  import { s as store } from './index-bdf75557.js';
8
- import { C as CommonsExporter, S as SnkMultiSelectionListDataSource, a as CrudUtils, R as RmPrecisionCustomValueFormatter } from './IExporterProvider-63a188b6.js';
8
+ import { C as CommonsExporter, S as SnkMultiSelectionListDataSource, a as CrudUtils, R as RmPrecisionCustomValueFormatter } from './IExporterProvider-f86019db.js';
9
9
  import { SelectionMode } from '@sankhyalabs/core/dist/dataunit/DataUnit';
10
- import './DataFetcher-c1baf61d.js';
11
- import './pesquisa-fetcher-03c8f919.js';
10
+ import './DataFetcher-773a3e4b.js';
11
+ import './pesquisa-fetcher-a87445a0.js';
12
12
  import './ISave-d8c8bc59.js';
13
13
  import '@sankhyalabs/ezui/dist/collection/utils/constants';
14
14
  import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
15
- import './dataunit-fetcher-264191b2.js';
15
+ import './dataunit-fetcher-3d2ec959.js';
16
16
  import './filter-item-type.enum-d45e026f.js';
17
- import './form-config-fetcher-30fb808f.js';
18
- import { g as getSelectedIDs } from './RecordIDUtils-87d02110.js';
17
+ import './form-config-fetcher-e0382e5a.js';
18
+ import { g as getSelectedRecordsIDsInfo } from './GetSelectedRecordsIDsInfo-9fa41508.js';
19
19
  import '@sankhyalabs/ezui/dist/collection/components/ez-grid/utils/InMemoryFilterColumnDataSource';
20
20
  import './PrintUtils-3e4ff0f5.js';
21
21
  import '@sankhyalabs/ezui/dist/collection/components/ez-grid/utils';
@@ -44,7 +44,7 @@ class ServerSideExporterProvider extends CommonsExporter {
44
44
  return total !== null && total !== void 0 ? total : (_c = (_b = this.dataUnit) === null || _b === void 0 ? void 0 : _b.records) === null || _c === void 0 ? void 0 : _c.length;
45
45
  }
46
46
  getSelectedIDs() {
47
- return getSelectedIDs(this.dataUnit);
47
+ return getSelectedRecordsIDsInfo(this.dataUnit);
48
48
  }
49
49
  getOffset() {
50
50
  return this.getExporterOffset(this.getPaginationInfo());
@@ -379,7 +379,7 @@ const SnkGrid = class {
379
379
  const disabledButtons = [];
380
380
  if ((_a = this._dataState) === null || _a === void 0 ? void 0 : _a.selectionInfo) {
381
381
  if (this._dataState.selectionInfo.length > 1) {
382
- disabledButtons.push(TaskbarElement.CLONE, "ATTACH");
382
+ disabledButtons.push(TaskbarElement.CLONE, "ATTACH", TaskbarElement.UPDATE);
383
383
  }
384
384
  if (this._dataState.selectionInfo.isAllRecords()) {
385
385
  disabledButtons.push("REMOVE");
@@ -1,19 +1,19 @@
1
1
  import { r as registerInstance, c as createEvent, h, F as Fragment } from './index-a7d3d3f1.js';
2
2
  import { Action, ElementIDUtils } from '@sankhyalabs/core';
3
- import { S as SnkFormConfigManager } from './SnkFormConfigManager-31b24066.js';
3
+ import { S as SnkFormConfigManager } from './SnkFormConfigManager-298cd647.js';
4
4
  import { buildFormMetadata, FormMetadata } from '@sankhyalabs/ezui/dist/collection/utils/form';
5
5
  import { o as openFieldSearch, T as TaskbarProcessor, b as buildFieldSearch } from './field-search-efbe307f.js';
6
6
  import { T as TaskbarElement } from './taskbar-elements-d59867f1.js';
7
7
  import { d as VIEW_MODE } from './constants-8457af36.js';
8
- import './DataFetcher-c1baf61d.js';
9
- import './pesquisa-fetcher-03c8f919.js';
8
+ import './DataFetcher-773a3e4b.js';
9
+ import './pesquisa-fetcher-a87445a0.js';
10
10
  import { P as PresentationMode } from './index-3aa4977a.js';
11
11
  import './ISave-d8c8bc59.js';
12
12
  import '@sankhyalabs/ezui/dist/collection/utils/constants';
13
13
  import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
14
- import './dataunit-fetcher-264191b2.js';
14
+ import './dataunit-fetcher-3d2ec959.js';
15
15
  import './filter-item-type.enum-d45e026f.js';
16
- import './form-config-fetcher-30fb808f.js';
16
+ import './form-config-fetcher-e0382e5a.js';
17
17
  import { SelectionMode } from '@sankhyalabs/core/dist/dataunit/DataUnit';
18
18
 
19
19
  const snkGuidesViewerCss = ".sc-snk-guides-viewer-h{--snk-guides-viewer--space-large:var(--space--large, 24px);--snk-guides-viewer--space-medium:var(--space--medium, 12px);--snk-guides-viewer__header--min-height:94px;--snk-guides-viewer__header--z-index:var(--more-visible, 2);--snk-guides-viewer__header--background-color:var(--background--body, #fafcff);--snk-guides-viewer__guide-navigator--width:340px;display:block}snk-form-view.sc-snk-guides-viewer{width:100%}.snk-guides-viewer.sc-snk-guides-viewer{position:relative;padding-left:0px;padding-top:0px;padding-right:var(--snk-guides-viewer--space-large);padding-bottom:var(--snk-guides-viewer--space-large)}.snk-guides-viewer__detail-container.sc-snk-guides-viewer{display:flex;row-gap:24px;flex-direction:column}.snk-guides-viewer__header.sc-snk-guides-viewer{position:sticky;align-items:center;top:0;z-index:var(--snk-guides-viewer__header--z-index);background-color:var(--snk-guides-viewer__header--background-color);min-height:var(--snk-guides-viewer__header--min-height);width:calc(100% + (var(--snk-guides-viewer--space-large) * 2));padding-left:var(--snk-guides-viewer--space-large);padding-right:var(--snk-guides-viewer--space-large);padding-top:var(--snk-guides-viewer--space-large);padding-bottom:var(--snk-guides-viewer--space-medium);margin-left:calc(var(--snk-guides-viewer--space-large) * -1);margin-right:calc(var(--snk-guides-viewer--space-large) * -1);margin-bottom:var(--snk-guides-viewer--space-medium)}.snk-guides-viewer__header-breadcrumb.sc-snk-guides-viewer{width:25%;display:flex}.snk-guides-viewer__header-taskbar.sc-snk-guides-viewer{width:75%}.snk-guides-viewer__container.sc-snk-guides-viewer{display:grid;grid-template-columns:minmax(0, auto) minmax(0, 100%);height:100%;column-gap:var(--snk-guides-viewer--space-large)}.snk-guides-viewer__guide-navigator.sc-snk-guides-viewer{position:sticky;top:calc(var(--snk-guides-viewer__header--min-height) + var(--snk-guides-viewer--space-medium));height:calc(100vh - var(--snk-guides-viewer__header--min-height) - var(--snk-guides-viewer--space-large) - var(--snk-guides-viewer--space-medium))}.snk-guides-viewer__guide-navigator[open].sc-snk-guides-viewer{width:var(--snk-guides-viewer__guide-navigator--width);max-width:var(--snk-guides-viewer__guide-navigator--width);min-width:var(--snk-guides-viewer__guide-navigator--width)}.snk-guides-viewer__detail-content.sc-snk-guides-viewer{min-height:100%;align-items:flex-start;align-content:flex-start}";
@@ -1,10 +1,10 @@
1
- export { S as snk_guides_viewer } from './snk-guides-viewer-dda0fede.js';
1
+ export { S as snk_guides_viewer } from './snk-guides-viewer-43f21b03.js';
2
2
  import './index-a7d3d3f1.js';
3
3
  import '@sankhyalabs/core';
4
- import './SnkFormConfigManager-31b24066.js';
5
- import './ConfigStorage-3806514e.js';
6
- import './form-config-fetcher-30fb808f.js';
7
- import './DataFetcher-c1baf61d.js';
4
+ import './SnkFormConfigManager-298cd647.js';
5
+ import './ConfigStorage-e476378d.js';
6
+ import './form-config-fetcher-e0382e5a.js';
7
+ import './DataFetcher-773a3e4b.js';
8
8
  import './PrintUtils-3e4ff0f5.js';
9
9
  import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
10
10
  import './filter-item-type.enum-d45e026f.js';
@@ -14,10 +14,10 @@ import './taskbar-elements-d59867f1.js';
14
14
  import './index-3aa4977a.js';
15
15
  import './index-bdf75557.js';
16
16
  import './constants-8457af36.js';
17
- import './pesquisa-fetcher-03c8f919.js';
17
+ import './pesquisa-fetcher-a87445a0.js';
18
18
  import './ISave-d8c8bc59.js';
19
19
  import '@sankhyalabs/ezui/dist/collection/utils/constants';
20
- import './dataunit-fetcher-264191b2.js';
20
+ import './dataunit-fetcher-3d2ec959.js';
21
21
  import '@sankhyalabs/ezui/dist/collection/components/ez-grid/utils';
22
22
  import '@sankhyalabs/core/dist/utils/SortingUtils';
23
23
  import './ResourceIDUtils-a114189a.js';
@@ -1,13 +1,13 @@
1
1
  import { r as registerInstance, c as createEvent, h, F as Fragment, H as Host } from './index-a7d3d3f1.js';
2
2
  import { StringUtils, ObjectUtils, ApplicationContext, ElementIDUtils } from '@sankhyalabs/core';
3
3
  import { P as PersonalizedFilterUtils } from './PersonalizedFilterUtils-e2b38ef7.js';
4
- import { P as PersonalizedFilterFetcher, C as ConfigStorage } from './ConfigStorage-3806514e.js';
4
+ import { P as PersonalizedFilterFetcher, C as ConfigStorage } from './ConfigStorage-e476378d.js';
5
5
  import { ApplicationUtils } from '@sankhyalabs/ezui/dist/collection/utils';
6
6
  import { a as FilterGroupCondition } from './index-ae591a44.js';
7
7
  import { s as store } from './index-bdf75557.js';
8
8
  import './filter-item-type.enum-d45e026f.js';
9
- import './form-config-fetcher-30fb808f.js';
10
- import './DataFetcher-c1baf61d.js';
9
+ import './form-config-fetcher-e0382e5a.js';
10
+ import './DataFetcher-773a3e4b.js';
11
11
  import './PrintUtils-3e4ff0f5.js';
12
12
  import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
13
13
 
@@ -3,20 +3,20 @@ import { UserInterface, StringUtils, ApplicationContext, ObjectUtils, DataType,
3
3
  import { CSSVarsUtils } from '@sankhyalabs/ezui/dist/collection/utils';
4
4
  import { d as VIEW_MODE, S as SIMPLE_CRUD_MODE } from './constants-8457af36.js';
5
5
  import { T as TaskbarElement } from './taskbar-elements-d59867f1.js';
6
- import './DataFetcher-c1baf61d.js';
7
- import './pesquisa-fetcher-03c8f919.js';
8
- import { C as CommonsExporter, S as SnkMultiSelectionListDataSource, R as RmPrecisionCustomValueFormatter, a as CrudUtils } from './IExporterProvider-63a188b6.js';
6
+ import './DataFetcher-773a3e4b.js';
7
+ import './pesquisa-fetcher-a87445a0.js';
8
+ import { C as CommonsExporter, S as SnkMultiSelectionListDataSource, R as RmPrecisionCustomValueFormatter, a as CrudUtils } from './IExporterProvider-f86019db.js';
9
9
  import { D as DataExporterOption, P as PresentationMode } from './index-3aa4977a.js';
10
10
  import './ISave-d8c8bc59.js';
11
11
  import '@sankhyalabs/ezui/dist/collection/utils/constants';
12
12
  import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
13
- import { I as InMemoryLoader } from './dataunit-fetcher-264191b2.js';
13
+ import { I as InMemoryLoader } from './dataunit-fetcher-3d2ec959.js';
14
14
  import './filter-item-type.enum-d45e026f.js';
15
- import { F as FormConfigFetcher } from './form-config-fetcher-30fb808f.js';
15
+ import { F as FormConfigFetcher } from './form-config-fetcher-e0382e5a.js';
16
16
  import { T as TaskbarProcessor, b as buildFieldSearch, o as openFieldSearch } from './field-search-efbe307f.js';
17
- import { C as ConfigStorage } from './ConfigStorage-3806514e.js';
18
- import { S as SnkFormConfigManager } from './SnkFormConfigManager-31b24066.js';
19
- import { g as getSelectedIDs } from './RecordIDUtils-87d02110.js';
17
+ import { C as ConfigStorage } from './ConfigStorage-e476378d.js';
18
+ import { S as SnkFormConfigManager } from './SnkFormConfigManager-298cd647.js';
19
+ import { g as getSelectedRecordsIDsInfo } from './GetSelectedRecordsIDsInfo-9fa41508.js';
20
20
  import { s as store } from './index-bdf75557.js';
21
21
  import './PrintUtils-3e4ff0f5.js';
22
22
  import '@sankhyalabs/ezui/dist/collection/components/ez-grid/utils/InMemoryFilterColumnDataSource';
@@ -37,7 +37,7 @@ class ClientSideExporterProvider extends CommonsExporter {
37
37
  return total !== null && total !== void 0 ? total : (_c = (_b = this.dataUnit) === null || _b === void 0 ? void 0 : _b.records) === null || _c === void 0 ? void 0 : _c.length;
38
38
  }
39
39
  getSelectedIDs() {
40
- return getSelectedIDs(this.dataUnit);
40
+ return getSelectedRecordsIDsInfo(this.dataUnit);
41
41
  }
42
42
  getRecordID() {
43
43
  var _a, _b, _c;
@@ -11,6 +11,8 @@ const SnkTaskbar = class {
11
11
  constructor(hostRef) {
12
12
  registerInstance(this, hostRef);
13
13
  this.actionClick = createEvent(this, "actionClick", 7);
14
+ this.taskbarSaveLocker = createEvent(this, "taskbarSaveLocker", 7);
15
+ this.taskbarSaveUnlocker = createEvent(this, "taskbarSaveUnlocker", 7);
14
16
  this.TASKBAR_ITEM_ID_PREFIX = 'TASKBAR_ITEM_';
15
17
  this.TASKBAR_CUSTOM_ELEMENTS_CONTAINER_CLASS_NAME = 'taskbar-custom-elements-container';
16
18
  this.ACTIONS_BUTTON_TAG = 'TASKBAR-ACTIONS-BUTTON';
@@ -34,6 +36,7 @@ const SnkTaskbar = class {
34
36
  this.onSaveEvent = (action) => {
35
37
  switch (action.type) {
36
38
  case Action.FIELD_INVALIDATED:
39
+ case Action.INVALIDATE_CLEAN:
37
40
  case Action.DATA_SAVED:
38
41
  case Action.SAVING_ERROR:
39
42
  this._isWaitingForSave = false;
@@ -72,6 +75,16 @@ const SnkTaskbar = class {
72
75
  this.getCustomElements(true);
73
76
  }
74
77
  }
78
+ handleTaskbarSaveLocker() {
79
+ if (this._isWaitingForSave !== true) {
80
+ this._isWaitingForSave = true;
81
+ }
82
+ }
83
+ handleTaskbarSaveUnlocker() {
84
+ if (this._isWaitingForSave === true) {
85
+ this._isWaitingForSave = false;
86
+ }
87
+ }
75
88
  hasToSearchCustomElements(event) {
76
89
  return this.customSlotId === event.detail && !this._slotContainer;
77
90
  }
@@ -90,6 +103,14 @@ const SnkTaskbar = class {
90
103
  this._hasToUpdateOverFlow = true;
91
104
  }
92
105
  }
106
+ observeIsWaitingForSave(newValue, oldValue) {
107
+ if (newValue == true && oldValue == false) {
108
+ this.taskbarSaveLocker.emit();
109
+ }
110
+ if (newValue == false && oldValue == true) {
111
+ this.taskbarSaveUnlocker.emit();
112
+ }
113
+ }
93
114
  // Internal methods
94
115
  elementsFromString(strButtons) {
95
116
  const elements = [];
@@ -418,7 +439,8 @@ const SnkTaskbar = class {
418
439
  static get watchers() { return {
419
440
  "buttons": ["observeButtons"],
420
441
  "disabledButtons": ["observeDisabledButtons"],
421
- "_lastWidth": ["observeLastWidth"]
442
+ "_lastWidth": ["observeLastWidth"],
443
+ "_isWaitingForSave": ["observeIsWaitingForSave"]
422
444
  }; }
423
445
  };
424
446
  SnkTaskbar.style = snkTaskbarCss;