@sankhyalabs/sankhyablocks 0.0.0-bugfix-dev-KB-86904.0 → 0.0.0-bugfix-dev-5562683.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 (140) hide show
  1. package/dist/cjs/{ClientSideExporterProvider-0ce2bcd9.js → ClientSideExporterProvider-2660a661.js} +4 -4
  2. package/dist/cjs/{ConfigStorage-48ba265b.js → ConfigStorage-b57e5364.js} +2 -2
  3. package/dist/cjs/{DataFetcher-1afdb18e.js → DataFetcher-bdb9a831.js} +6 -1
  4. package/dist/cjs/{ISave-c76e2c51.js → ISave-c43502a9.js} +1 -1
  5. package/dist/cjs/{SnkFormConfigManager-aa4631bd.js → SnkFormConfigManager-872aa3c0.js} +2 -2
  6. package/dist/cjs/{SnkMessageBuilder-e3b7850b.js → SnkMessageBuilder-221cc88d.js} +10 -2
  7. package/dist/cjs/{auth-fetcher-1687ac0a.js → auth-fetcher-ecd21254.js} +1 -1
  8. package/dist/cjs/{dataunit-fetcher-a723f0dc.js → dataunit-fetcher-c8d03377.js} +1 -1
  9. package/dist/cjs/field-config_2.cjs.entry.js +1 -1
  10. package/dist/cjs/fields-layout.cjs.entry.js +1 -1
  11. package/dist/cjs/fields-selector.cjs.entry.js +2 -2
  12. package/dist/cjs/{form-config-fetcher-40d3f752.js → form-config-fetcher-511002c2.js} +1 -1
  13. package/dist/cjs/loader.cjs.js +1 -1
  14. package/dist/cjs/pesquisa-grid_2.cjs.entry.js +5 -5
  15. package/dist/cjs/sankhyablocks.cjs.js +1 -1
  16. package/dist/cjs/snk-actions-button_8.cjs.entry.js +61 -202
  17. package/dist/cjs/snk-application.cjs.entry.js +7 -7
  18. package/dist/cjs/snk-attach.cjs.entry.js +5 -5
  19. package/dist/cjs/snk-crud.cjs.entry.js +5 -5
  20. package/dist/cjs/snk-data-exporter.cjs.entry.js +6 -6
  21. package/dist/cjs/{snk-data-unit-3684c96e.js → snk-data-unit-ccc8a299.js} +2 -2
  22. package/dist/cjs/snk-data-unit.cjs.entry.js +4 -4
  23. package/dist/cjs/snk-detail-view.cjs.entry.js +8 -8
  24. package/dist/cjs/snk-entity-list.cjs.entry.js +2 -7
  25. package/dist/cjs/snk-filter-bar_4.cjs.entry.js +4 -4
  26. package/dist/cjs/snk-filter-modal-item.cjs.entry.js +3 -3
  27. package/dist/cjs/snk-form_2.cjs.entry.js +4 -4
  28. package/dist/cjs/snk-grid.cjs.entry.js +9 -8
  29. package/dist/cjs/{snk-guides-viewer-edc0a00a.js → snk-guides-viewer-cdaff5bf.js} +5 -5
  30. package/dist/cjs/snk-guides-viewer.cjs.entry.js +7 -7
  31. package/dist/cjs/snk-personalized-filter.cjs.entry.js +3 -3
  32. package/dist/cjs/snk-pesquisa.cjs.entry.js +4 -4
  33. package/dist/cjs/snk-simple-crud.cjs.entry.js +8 -8
  34. package/dist/collection/components/snk-entity-list/snk-entity-list.js +2 -7
  35. package/dist/collection/components/snk-filter-bar/filter-item/dataunitfilter/data-unit-filter-builder.js +1 -1
  36. package/dist/collection/components/snk-form-config/field-item/field-item.css +3 -23
  37. package/dist/collection/components/snk-form-config/fields-layout/fields-layout.css +4 -12
  38. package/dist/collection/components/snk-form-config/fields-selector/fields-selector.css +4 -0
  39. package/dist/collection/components/snk-form-config/fields-selector/fields-selector.js +1 -1
  40. package/dist/collection/components/snk-grid/snk-grid.js +37 -2
  41. package/dist/collection/components/snk-grid-config/snk-grid-config.css +7 -41
  42. package/dist/collection/components/snk-grid-config/snk-grid-config.js +58 -193
  43. package/dist/collection/components/snk-grid-config/snk-select-box/snk-select-box.css +1 -0
  44. package/dist/collection/components/snk-pesquisa/pesquisa-grid/pesquisa-grid.js +1 -1
  45. package/dist/collection/components/snk-simple-crud/snk-simple-crud.js +1 -1
  46. package/dist/collection/components/snk-simple-form-config/snk-simple-form-config.css +1 -0
  47. package/dist/collection/components/snk-simple-form-config/snk-simple-form-config.js +1 -1
  48. package/dist/collection/lib/http/data-fetcher/DataFetcher.js +6 -1
  49. package/dist/collection/lib/message/resources/snk-grid.msg.js +10 -2
  50. package/dist/components/DataFetcher.js +6 -1
  51. package/dist/components/SnkMessageBuilder.js +10 -2
  52. package/dist/components/field-item2.js +1 -1
  53. package/dist/components/fields-layout2.js +1 -1
  54. package/dist/components/fields-selector2.js +2 -2
  55. package/dist/components/pesquisa-grid2.js +1 -1
  56. package/dist/components/snk-entity-list.js +2 -7
  57. package/dist/components/snk-filter-bar2.js +1 -1
  58. package/dist/components/snk-grid-config2.js +56 -195
  59. package/dist/components/snk-grid2.js +5 -2
  60. package/dist/components/snk-select-box2.js +1 -1
  61. package/dist/components/snk-simple-crud2.js +1 -1
  62. package/dist/components/snk-simple-form-config2.js +2 -2
  63. package/dist/esm/{ClientSideExporterProvider-3ed744fd.js → ClientSideExporterProvider-2a6e8f83.js} +4 -4
  64. package/dist/esm/{ConfigStorage-79b9e180.js → ConfigStorage-8c628d58.js} +2 -2
  65. package/dist/esm/{DataFetcher-88e56266.js → DataFetcher-4776d7ea.js} +6 -1
  66. package/dist/esm/{ISave-5efafc97.js → ISave-e7bcfedc.js} +1 -1
  67. package/dist/esm/{SnkFormConfigManager-b4b93298.js → SnkFormConfigManager-1b491fcd.js} +2 -2
  68. package/dist/esm/{SnkMessageBuilder-9c269caf.js → SnkMessageBuilder-da87a821.js} +10 -2
  69. package/dist/esm/{auth-fetcher-3510520e.js → auth-fetcher-6f6e7a58.js} +1 -1
  70. package/dist/esm/{dataunit-fetcher-0e025732.js → dataunit-fetcher-36c1492d.js} +1 -1
  71. package/dist/esm/field-config_2.entry.js +1 -1
  72. package/dist/esm/fields-layout.entry.js +1 -1
  73. package/dist/esm/fields-selector.entry.js +2 -2
  74. package/dist/esm/{form-config-fetcher-fa208a6c.js → form-config-fetcher-a72d7c47.js} +1 -1
  75. package/dist/esm/loader.js +1 -1
  76. package/dist/esm/pesquisa-grid_2.entry.js +5 -5
  77. package/dist/esm/sankhyablocks.js +1 -1
  78. package/dist/esm/snk-actions-button_8.entry.js +61 -202
  79. package/dist/esm/snk-application.entry.js +7 -7
  80. package/dist/esm/snk-attach.entry.js +5 -5
  81. package/dist/esm/snk-crud.entry.js +5 -5
  82. package/dist/esm/snk-data-exporter.entry.js +6 -6
  83. package/dist/esm/{snk-data-unit-027bca56.js → snk-data-unit-3a5ff8cb.js} +2 -2
  84. package/dist/esm/snk-data-unit.entry.js +4 -4
  85. package/dist/esm/snk-detail-view.entry.js +8 -8
  86. package/dist/esm/snk-entity-list.entry.js +2 -7
  87. package/dist/esm/snk-filter-bar_4.entry.js +4 -4
  88. package/dist/esm/snk-filter-modal-item.entry.js +3 -3
  89. package/dist/esm/snk-form_2.entry.js +4 -4
  90. package/dist/esm/snk-grid.entry.js +9 -8
  91. package/dist/esm/{snk-guides-viewer-32f3d3ab.js → snk-guides-viewer-475b66bb.js} +5 -5
  92. package/dist/esm/snk-guides-viewer.entry.js +7 -7
  93. package/dist/esm/snk-personalized-filter.entry.js +3 -3
  94. package/dist/esm/snk-pesquisa.entry.js +4 -4
  95. package/dist/esm/snk-simple-crud.entry.js +8 -8
  96. package/dist/sankhyablocks/{p-fbba7e3d.js → p-077a84d4.js} +1 -1
  97. package/dist/sankhyablocks/p-1069ee92.entry.js +1 -0
  98. package/dist/sankhyablocks/{p-763b04fa.js → p-1918106c.js} +1 -1
  99. package/dist/sankhyablocks/{p-349d1968.entry.js → p-23b20add.entry.js} +1 -1
  100. package/dist/sankhyablocks/p-2b8286b3.entry.js +1 -0
  101. package/dist/sankhyablocks/{p-65c5d430.entry.js → p-31d79e09.entry.js} +1 -1
  102. package/dist/sankhyablocks/{p-fc0b609e.js → p-465956be.js} +1 -1
  103. package/dist/sankhyablocks/p-5337448c.entry.js +1 -0
  104. package/dist/sankhyablocks/{p-1456d7cb.entry.js → p-58ede888.entry.js} +1 -1
  105. package/dist/sankhyablocks/{p-09e60995.entry.js → p-5b011040.entry.js} +2 -2
  106. package/dist/sankhyablocks/{p-a5bb2f93.entry.js → p-707432d2.entry.js} +1 -1
  107. package/dist/sankhyablocks/{p-67d6d0c8.entry.js → p-74b55b8a.entry.js} +1 -1
  108. package/dist/sankhyablocks/p-78102f93.entry.js +1 -0
  109. package/dist/sankhyablocks/{p-a06bf7b9.entry.js → p-7ced2cf4.entry.js} +1 -1
  110. package/dist/sankhyablocks/{p-c926cf6b.entry.js → p-8a53bb28.entry.js} +1 -1
  111. package/dist/sankhyablocks/{p-e3521eae.entry.js → p-921c7f74.entry.js} +1 -1
  112. package/dist/sankhyablocks/{p-7993b2e3.js → p-94f5d972.js} +1 -1
  113. package/dist/sankhyablocks/{p-cfd0a4c6.entry.js → p-9c8aff94.entry.js} +1 -1
  114. package/dist/sankhyablocks/{p-9751c42f.entry.js → p-9ebf1710.entry.js} +1 -1
  115. package/dist/sankhyablocks/{p-73285a8a.js → p-aaafee81.js} +1 -1
  116. package/dist/sankhyablocks/{p-bd665460.entry.js → p-b025ff2c.entry.js} +1 -1
  117. package/dist/sankhyablocks/{p-601b252b.js → p-bf52d909.js} +1 -1
  118. package/dist/sankhyablocks/p-bfb66643.js +1 -0
  119. package/dist/sankhyablocks/p-ca23444c.entry.js +1 -0
  120. package/dist/sankhyablocks/p-cfc219f6.entry.js +1 -0
  121. package/dist/sankhyablocks/{p-6416975c.js → p-d5e4c472.js} +1 -1
  122. package/dist/sankhyablocks/{p-0cb295c1.entry.js → p-dd18a877.entry.js} +1 -1
  123. package/dist/sankhyablocks/{p-a227b650.entry.js → p-e824d565.entry.js} +1 -1
  124. package/dist/sankhyablocks/{p-2bde486e.js → p-f1546a8d.js} +1 -1
  125. package/dist/sankhyablocks/{p-6dd38d7b.js → p-fbd448e1.js} +1 -1
  126. package/dist/sankhyablocks/p-fc4eac32.js +1 -0
  127. package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
  128. package/dist/types/components/snk-grid/snk-grid.d.ts +8 -0
  129. package/dist/types/components/snk-grid-config/snk-grid-config.d.ts +7 -20
  130. package/dist/types/components.d.ts +16 -0
  131. package/dist/types/lib/http/data-fetcher/DataFetcher.d.ts +1 -0
  132. package/package.json +1 -1
  133. package/dist/sankhyablocks/p-11f099ea.entry.js +0 -1
  134. package/dist/sankhyablocks/p-19156e59.entry.js +0 -1
  135. package/dist/sankhyablocks/p-3a48bff3.entry.js +0 -1
  136. package/dist/sankhyablocks/p-3f24c9b2.js +0 -1
  137. package/dist/sankhyablocks/p-a6513fcb.js +0 -1
  138. package/dist/sankhyablocks/p-c3324d79.entry.js +0 -1
  139. package/dist/sankhyablocks/p-e7cccc45.entry.js +0 -1
  140. package/dist/sankhyablocks/p-ff7060bc.entry.js +0 -1
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  const index$1 = require('./index-1cf293c1.js');
6
6
  const core = require('@sankhyalabs/core');
7
7
  const EzScrollDirection = require('@sankhyalabs/ezui/dist/collection/components/ez-scroller/EzScrollDirection');
8
- const ConfigStorage = require('./ConfigStorage-48ba265b.js');
8
+ const ConfigStorage = require('./ConfigStorage-b57e5364.js');
9
9
  const DataType = require('@sankhyalabs/core/dist/dataunit/metadata/DataType');
10
10
  const filterItemType_enum = require('./filter-item-type.enum-a7ffdaa6.js');
11
11
  const index = require('./index-62760a9c.js');
@@ -15,8 +15,8 @@ const PersonalizedFilterUtils = require('./PersonalizedFilterUtils-7259cf65.js')
15
15
  const ezModalContainer = require('@sankhyalabs/ezui/dist/collection/components/ez-modal-container');
16
16
  const filterType_enum = require('./filter-type.enum-2bb46d2a.js');
17
17
  const defaultFilters = require('./default-filters-a09bf82b.js');
18
- require('./form-config-fetcher-40d3f752.js');
19
- require('./DataFetcher-1afdb18e.js');
18
+ require('./form-config-fetcher-511002c2.js');
19
+ require('./DataFetcher-bdb9a831.js');
20
20
  require('./PrintUtils-bcaeb82f.js');
21
21
  require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
22
22
 
@@ -126,7 +126,7 @@ function buildPeriod(item) {
126
126
  function buildSearch(item) {
127
127
  const { id, value, props } = item;
128
128
  const expression = props.expression;
129
- return { name: id, expression, params: [{ name: id, dataType: core.DataType.TEXT, value: DataType.toString(core.DataType.TEXT, value.value) }] };
129
+ return { name: id, expression, params: [{ name: id, dataType: core.DataType.TEXT, value: DataType.toString(core.DataType.TEXT, value === null || value === void 0 ? void 0 : value.value) }] };
130
130
  }
131
131
  function buildText(item) {
132
132
  let { id, value, props } = item;
@@ -6,10 +6,10 @@ const index = require('./index-1cf293c1.js');
6
6
  const core = require('@sankhyalabs/core');
7
7
  const filterItemType_enum = require('./filter-item-type.enum-a7ffdaa6.js');
8
8
  const presentationMode = require('./presentationMode-52ec3bdd.js');
9
- const ConfigStorage = require('./ConfigStorage-48ba265b.js');
9
+ const ConfigStorage = require('./ConfigStorage-b57e5364.js');
10
10
  const filterType_enum = require('./filter-type.enum-2bb46d2a.js');
11
- require('./form-config-fetcher-40d3f752.js');
12
- require('./DataFetcher-1afdb18e.js');
11
+ require('./form-config-fetcher-511002c2.js');
12
+ require('./DataFetcher-bdb9a831.js');
13
13
  require('./PrintUtils-bcaeb82f.js');
14
14
  require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
15
15
 
@@ -4,16 +4,16 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-1cf293c1.js');
6
6
  const core = require('@sankhyalabs/core');
7
- const SnkFormConfigManager = require('./SnkFormConfigManager-aa4631bd.js');
7
+ const SnkFormConfigManager = require('./SnkFormConfigManager-872aa3c0.js');
8
8
  const ResourceIDUtils = require('./ResourceIDUtils-5ff86aa7.js');
9
9
  const form = require('@sankhyalabs/ezui/dist/collection/utils/form');
10
10
  const FormConfigHelper = require('./FormConfigHelper-c664dbae.js');
11
11
  const constants = require('./constants-6d82e405.js');
12
12
  const utils = require('@sankhyalabs/ezui/dist/collection/utils');
13
- const formConfigFetcher = require('./form-config-fetcher-40d3f752.js');
14
- require('./ConfigStorage-48ba265b.js');
13
+ const formConfigFetcher = require('./form-config-fetcher-511002c2.js');
14
+ require('./ConfigStorage-b57e5364.js');
15
15
  require('./filter-item-type.enum-a7ffdaa6.js');
16
- require('./DataFetcher-1afdb18e.js');
16
+ require('./DataFetcher-bdb9a831.js');
17
17
  require('./PrintUtils-bcaeb82f.js');
18
18
  require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
19
19
 
@@ -5,19 +5,19 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  const index = require('./index-1cf293c1.js');
6
6
  const core = require('@sankhyalabs/core');
7
7
  const taskbarElements = require('./taskbar-elements-3b74cd21.js');
8
- const ConfigStorage = require('./ConfigStorage-48ba265b.js');
8
+ const ConfigStorage = require('./ConfigStorage-b57e5364.js');
9
9
  const index$1 = require('./index-e3e39724.js');
10
10
  const taskbarProcessor = require('./taskbar-processor-2fba34a8.js');
11
11
  const index$2 = require('./index-0ad2baeb.js');
12
- const ClientSideExporterProvider = require('./ClientSideExporterProvider-0ce2bcd9.js');
12
+ const ClientSideExporterProvider = require('./ClientSideExporterProvider-2660a661.js');
13
13
  const DataUnit = require('@sankhyalabs/core/dist/dataunit/DataUnit');
14
- require('./DataFetcher-1afdb18e.js');
15
- require('./ISave-c76e2c51.js');
14
+ require('./DataFetcher-bdb9a831.js');
15
+ require('./ISave-c43502a9.js');
16
16
  require('@sankhyalabs/ezui/dist/collection/utils/constants');
17
17
  require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
18
- require('./dataunit-fetcher-a723f0dc.js');
18
+ require('./dataunit-fetcher-c8d03377.js');
19
19
  require('./filter-item-type.enum-a7ffdaa6.js');
20
- require('./form-config-fetcher-40d3f752.js');
20
+ require('./form-config-fetcher-511002c2.js');
21
21
  require('./constants-6d82e405.js');
22
22
  const GetSelectedRecordsIDsInfo = require('./GetSelectedRecordsIDsInfo-bd50caf1.js');
23
23
  const utils = require('@sankhyalabs/ezui/dist/collection/utils');
@@ -157,6 +157,8 @@ const SnkGrid = class {
157
157
  this.useSearchColumn = true;
158
158
  this.multipleEditionEnabled = true;
159
159
  this.paginationCounterMode = 'auto';
160
+ this.suppressCheckboxColumn = undefined;
161
+ this.compact = undefined;
160
162
  }
161
163
  getGridHeaderSelectedBtns() {
162
164
  const btns = [
@@ -285,7 +287,6 @@ const SnkGrid = class {
285
287
  this._grid.getColumnsState()
286
288
  .then((gridColumns) => {
287
289
  this._snkGridConfig.columns = gridColumns.filter(c => c.name);
288
- this._snkGridConfig.selectedIndex = 0;
289
290
  this._popUpGridConfig = true;
290
291
  });
291
292
  }
@@ -573,7 +574,7 @@ const SnkGrid = class {
573
574
  return undefined;
574
575
  }
575
576
  return (index.h("div", { class: "snk-grid__container ez-flex ez-flex--column ez-flex-item--auto ez-padding--large ez-box--no-outline", tabindex: "0" }, index.h("div", { class: "snk-grid__header ez-margin-bottom--extra-small" }, this._showSnkFilterBar &&
576
- index.h(index.Fragment, null, index.h("snk-filter-bar", { ref: (ref) => this._snkFilterBar = ref, title: this.filterBarTitle, dataUnit: this._dataUnit, "data-element-id": "gridFilter", class: "snk-grid__filter-bar ez-align--top", configName: this.configName, messagesBuilder: this.messagesBuilder, resourceID: this.resourceID, onConfigUpdated: evt => this.handleFilterConfigUpdated(evt.detail), disablePersonalizedFilter: this.disablePersonalizedFilter, filterBarLegacyConfigName: this.filterBarLegacyConfigName, autoLoad: this.autoLoad, enableLockManagerLoadingComp: this.enableLockManagerLoadingComp }), index.h("hr", { class: "ez-divider-vertical ez-divider--dark ez-margin-left--medium snk-grid__header-divider" })), index.h("snk-taskbar", { class: "ez-padding-left--medium ez-padding-top--extra-small", "data-element-id": "grid_top", key: "topTaskbar", configName: this.configName, dataUnit: this._dataUnit, messagesBuilder: this.messagesBuilder, buttons: this._topTaskbarProcessor.buttons, disabledButtons: this._topTaskbarProcessor.disabledButtons, customButtons: this._topTaskbarProcessor.customButtons, primaryButton: this.getPrimaryButton(), resourceID: this.resourceID, customContainerId: this.taskbarCustomContainerId, customSlotId: this.topTaskbarCustomSlotId, overflowStrategy: 'none', actionsSettingsList: this.getActionsSettingsList() }, index.h("slot", { name: this.topTaskbarCustomSlotId }))), index.h("ez-grid", { ref: ref => this._grid = ref, class: (this.presentationMode === index$1.PresentationMode.SECONDARY ? "snk-grid-container__without-shadow " : "") + "snk-grid__table", "data-element-id": "embedded", dataUnit: this._dataUnit, key: "grid-" + this._snkDataUnit.entityName, config: this._gridConfig, onConfigChange: (evt) => { this.gridConfigChangeHandler(evt); }, onEzDoubleClick: (evt) => this.gridDoubleClick.emit(evt.detail), statusResolver: this.statusResolver, multipleSelection: this.multipleSelection, columnfilterDataSource: this.columnFilterDataSource, selectionToastConfig: this.selectionToastConfig, useEnterLikeTab: this.useEnterLikeTab, recordsValidator: this.recordsValidator, canEdit: this.canEdit, autoFocus: this.autoFocus, enableGridInsert: this.enableGridInsert, enableContinuousInsert: this._enableContinuousInsert, enableLockManagerTaskbarClick: this.enableLockManagerTaskbarClick, enableLockManagerLoadingComp: this.enableLockManagerLoadingComp, outlineMode: this.outlineMode, useSearchColumn: this.useSearchColumn, suppressHorizontalScroll: this.suppressHorizontalScroll, paginationCounterMode: this.paginationCounterMode }, index.h("snk-taskbar", { id: 'teste', dataUnit: this._dataUnit, configName: this.configName, messagesBuilder: this.messagesBuilder, "data-element-id": "grid_left", buttons: this.getGridHeaderButtons(), presentationMode: this.presentationMode, disabledButtons: this._headerTaskbarProcessor.disabledButtons, customButtons: this._headerTaskbarProcessor.customButtons, slot: "leftButtons", actionsList: this.getActionsList(), primaryButton: this.getPrimaryButton(), resourceID: this.resourceID, customContainerId: this.taskbarCustomContainerId, customSlotId: this.gridHeaderCustomSlotId, actionsSettingsList: this.getActionsSettingsList() }, index.h("slot", { name: this.gridHeaderCustomSlotId }))), index.h("div", { class: "ez-col ez-col--sd-12 snk-grid-container__footer" }, index.h("slot", { name: "SnkGridFooter" })), index.h("ez-modal", { modalSize: "small", closeEsc: false, closeOutsideClick: false, opened: this._popUpGridConfig, onEzCloseModal: () => this.closeGridConfig() }, index.h("snk-grid-config", { ref: ref => this._snkGridConfig = ref, config: this._gridConfig, "data-element-id": this._element.getAttribute(core.ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME), selectedIndex: 0, configName: this.configName, onConfigChange: (evt) => this.modalConfigChangeHandler(evt), onConfigCancel: () => this.closeGridConfig(), resourceID: this.resourceID }))));
577
+ index.h(index.Fragment, null, index.h("snk-filter-bar", { ref: (ref) => this._snkFilterBar = ref, title: this.filterBarTitle, dataUnit: this._dataUnit, "data-element-id": "gridFilter", class: "snk-grid__filter-bar ez-align--top", configName: this.configName, messagesBuilder: this.messagesBuilder, resourceID: this.resourceID, onConfigUpdated: evt => this.handleFilterConfigUpdated(evt.detail), disablePersonalizedFilter: this.disablePersonalizedFilter, filterBarLegacyConfigName: this.filterBarLegacyConfigName, autoLoad: this.autoLoad, enableLockManagerLoadingComp: this.enableLockManagerLoadingComp }), index.h("hr", { class: "ez-divider-vertical ez-divider--dark ez-margin-left--medium snk-grid__header-divider" })), index.h("snk-taskbar", { class: "ez-padding-left--medium ez-padding-top--extra-small", "data-element-id": "grid_top", key: "topTaskbar", configName: this.configName, dataUnit: this._dataUnit, messagesBuilder: this.messagesBuilder, buttons: this._topTaskbarProcessor.buttons, disabledButtons: this._topTaskbarProcessor.disabledButtons, customButtons: this._topTaskbarProcessor.customButtons, primaryButton: this.getPrimaryButton(), resourceID: this.resourceID, customContainerId: this.taskbarCustomContainerId, customSlotId: this.topTaskbarCustomSlotId, overflowStrategy: 'none', actionsSettingsList: this.getActionsSettingsList() }, index.h("slot", { name: this.topTaskbarCustomSlotId }))), index.h("ez-grid", { ref: ref => this._grid = ref, class: (this.presentationMode === index$1.PresentationMode.SECONDARY ? "snk-grid-container__without-shadow " : "") + "snk-grid__table", "data-element-id": "embedded", dataUnit: this._dataUnit, key: "grid-" + this._snkDataUnit.entityName, config: this._gridConfig, onConfigChange: (evt) => { this.gridConfigChangeHandler(evt); }, onEzDoubleClick: (evt) => this.gridDoubleClick.emit(evt.detail), statusResolver: this.statusResolver, multipleSelection: this.multipleSelection, columnfilterDataSource: this.columnFilterDataSource, selectionToastConfig: this.selectionToastConfig, useEnterLikeTab: this.useEnterLikeTab, recordsValidator: this.recordsValidator, canEdit: this.canEdit, autoFocus: this.autoFocus, enableGridInsert: this.enableGridInsert, enableContinuousInsert: this._enableContinuousInsert, enableLockManagerTaskbarClick: this.enableLockManagerTaskbarClick, enableLockManagerLoadingComp: this.enableLockManagerLoadingComp, outlineMode: this.outlineMode, useSearchColumn: this.useSearchColumn, suppressHorizontalScroll: this.suppressHorizontalScroll, paginationCounterMode: this.paginationCounterMode, suppressCheckboxColumn: this.suppressCheckboxColumn, compact: this.compact }, index.h("snk-taskbar", { id: 'teste', dataUnit: this._dataUnit, configName: this.configName, messagesBuilder: this.messagesBuilder, "data-element-id": "grid_left", buttons: this.getGridHeaderButtons(), presentationMode: this.presentationMode, disabledButtons: this._headerTaskbarProcessor.disabledButtons, customButtons: this._headerTaskbarProcessor.customButtons, slot: "leftButtons", actionsList: this.getActionsList(), primaryButton: this.getPrimaryButton(), resourceID: this.resourceID, customContainerId: this.taskbarCustomContainerId, customSlotId: this.gridHeaderCustomSlotId, actionsSettingsList: this.getActionsSettingsList() }, index.h("slot", { name: this.gridHeaderCustomSlotId }))), index.h("div", { class: "ez-col ez-col--sd-12 snk-grid-container__footer" }, index.h("slot", { name: "SnkGridFooter" })), index.h("ez-popup", { size: "medium", heightMode: "auto", useHeader: false, opened: this._popUpGridConfig, onEzClosePopup: () => this.closeGridConfig() }, index.h("snk-grid-config", { ref: ref => this._snkGridConfig = ref, config: this._gridConfig, "data-element-id": this._element.getAttribute(core.ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME), selectedIndex: 0, configName: this.configName, onConfigChange: (evt) => this.modalConfigChangeHandler(evt), onConfigCancel: () => this.closeGridConfig(), resourceID: this.resourceID }))));
577
578
  }
578
579
  get _element() { return index.getElement(this); }
579
580
  static get watchers() { return {
@@ -2,19 +2,19 @@
2
2
 
3
3
  const index = require('./index-1cf293c1.js');
4
4
  const core = require('@sankhyalabs/core');
5
- const SnkFormConfigManager = require('./SnkFormConfigManager-aa4631bd.js');
5
+ const SnkFormConfigManager = require('./SnkFormConfigManager-872aa3c0.js');
6
6
  const form = require('@sankhyalabs/ezui/dist/collection/utils/form');
7
7
  const taskbarProcessor = require('./taskbar-processor-2fba34a8.js');
8
8
  const taskbarElements = require('./taskbar-elements-3b74cd21.js');
9
9
  const constants = require('./constants-6d82e405.js');
10
- require('./DataFetcher-1afdb18e.js');
11
- require('./ISave-c76e2c51.js');
10
+ require('./DataFetcher-bdb9a831.js');
11
+ require('./ISave-c43502a9.js');
12
12
  const index$1 = require('./index-e3e39724.js');
13
13
  require('@sankhyalabs/ezui/dist/collection/utils/constants');
14
14
  require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
15
- require('./dataunit-fetcher-a723f0dc.js');
15
+ require('./dataunit-fetcher-c8d03377.js');
16
16
  require('./filter-item-type.enum-a7ffdaa6.js');
17
- require('./form-config-fetcher-40d3f752.js');
17
+ require('./form-config-fetcher-511002c2.js');
18
18
  const DataUnit = require('@sankhyalabs/core/dist/dataunit/DataUnit');
19
19
  const utils = require('@sankhyalabs/ezui/dist/collection/utils');
20
20
 
@@ -2,13 +2,13 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const snkGuidesViewer = require('./snk-guides-viewer-edc0a00a.js');
5
+ const snkGuidesViewer = require('./snk-guides-viewer-cdaff5bf.js');
6
6
  require('./index-1cf293c1.js');
7
7
  require('@sankhyalabs/core');
8
- require('./SnkFormConfigManager-aa4631bd.js');
9
- require('./ConfigStorage-48ba265b.js');
10
- require('./form-config-fetcher-40d3f752.js');
11
- require('./DataFetcher-1afdb18e.js');
8
+ require('./SnkFormConfigManager-872aa3c0.js');
9
+ require('./ConfigStorage-b57e5364.js');
10
+ require('./form-config-fetcher-511002c2.js');
11
+ require('./DataFetcher-bdb9a831.js');
12
12
  require('./PrintUtils-bcaeb82f.js');
13
13
  require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
14
14
  require('./filter-item-type.enum-a7ffdaa6.js');
@@ -18,9 +18,9 @@ require('./taskbar-processor-2fba34a8.js');
18
18
  require('./taskbar-elements-3b74cd21.js');
19
19
  require('./index-e3e39724.js');
20
20
  require('./index-0ad2baeb.js');
21
- require('./ISave-c76e2c51.js');
21
+ require('./ISave-c43502a9.js');
22
22
  require('@sankhyalabs/ezui/dist/collection/utils/constants');
23
- require('./dataunit-fetcher-a723f0dc.js');
23
+ require('./dataunit-fetcher-c8d03377.js');
24
24
  require('@sankhyalabs/ezui/dist/collection/components/ez-grid/utils');
25
25
  require('@sankhyalabs/core/dist/utils/SortingUtils');
26
26
  require('./ResourceIDUtils-5ff86aa7.js');
@@ -5,13 +5,13 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  const index = require('./index-1cf293c1.js');
6
6
  const core = require('@sankhyalabs/core');
7
7
  const PersonalizedFilterUtils = require('./PersonalizedFilterUtils-7259cf65.js');
8
- const ConfigStorage = require('./ConfigStorage-48ba265b.js');
8
+ const ConfigStorage = require('./ConfigStorage-b57e5364.js');
9
9
  const utils = require('@sankhyalabs/ezui/dist/collection/utils');
10
10
  const index$1 = require('./index-62760a9c.js');
11
11
  const index$2 = require('./index-0ad2baeb.js');
12
12
  require('./filter-item-type.enum-a7ffdaa6.js');
13
- require('./form-config-fetcher-40d3f752.js');
14
- require('./DataFetcher-1afdb18e.js');
13
+ require('./form-config-fetcher-511002c2.js');
14
+ require('./DataFetcher-bdb9a831.js');
15
15
  require('./PrintUtils-bcaeb82f.js');
16
16
  require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
17
17
 
@@ -4,14 +4,14 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-1cf293c1.js');
6
6
  const core = require('@sankhyalabs/core');
7
- const ISave = require('./ISave-c76e2c51.js');
8
- require('./DataFetcher-1afdb18e.js');
7
+ const ISave = require('./ISave-c43502a9.js');
8
+ require('./DataFetcher-bdb9a831.js');
9
9
  require('./index-e3e39724.js');
10
10
  require('@sankhyalabs/ezui/dist/collection/utils/constants');
11
11
  require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
12
- require('./dataunit-fetcher-a723f0dc.js');
12
+ require('./dataunit-fetcher-c8d03377.js');
13
13
  require('./filter-item-type.enum-a7ffdaa6.js');
14
- require('./form-config-fetcher-40d3f752.js');
14
+ require('./form-config-fetcher-511002c2.js');
15
15
  require('./constants-6d82e405.js');
16
16
  require('./PrintUtils-bcaeb82f.js');
17
17
  require('@sankhyalabs/ezui/dist/collection/components/ez-grid/utils');
@@ -7,18 +7,18 @@ const core = require('@sankhyalabs/core');
7
7
  const utils = require('@sankhyalabs/ezui/dist/collection/utils');
8
8
  const constants = require('./constants-6d82e405.js');
9
9
  const taskbarElements = require('./taskbar-elements-3b74cd21.js');
10
- require('./DataFetcher-1afdb18e.js');
11
- require('./ISave-c76e2c51.js');
12
- const ClientSideExporterProvider = require('./ClientSideExporterProvider-0ce2bcd9.js');
10
+ require('./DataFetcher-bdb9a831.js');
11
+ require('./ISave-c43502a9.js');
12
+ const ClientSideExporterProvider = require('./ClientSideExporterProvider-2660a661.js');
13
13
  const index$1 = require('./index-e3e39724.js');
14
14
  require('@sankhyalabs/ezui/dist/collection/utils/constants');
15
15
  require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
16
- const dataunitFetcher = require('./dataunit-fetcher-a723f0dc.js');
16
+ const dataunitFetcher = require('./dataunit-fetcher-c8d03377.js');
17
17
  require('./filter-item-type.enum-a7ffdaa6.js');
18
- const formConfigFetcher = require('./form-config-fetcher-40d3f752.js');
18
+ const formConfigFetcher = require('./form-config-fetcher-511002c2.js');
19
19
  const taskbarProcessor = require('./taskbar-processor-2fba34a8.js');
20
- const ConfigStorage = require('./ConfigStorage-48ba265b.js');
21
- const SnkFormConfigManager = require('./SnkFormConfigManager-aa4631bd.js');
20
+ const ConfigStorage = require('./ConfigStorage-b57e5364.js');
21
+ const SnkFormConfigManager = require('./SnkFormConfigManager-872aa3c0.js');
22
22
  const index$2 = require('./index-0ad2baeb.js');
23
23
  require('./PrintUtils-bcaeb82f.js');
24
24
  require('@sankhyalabs/ezui/dist/collection/components/ez-grid/utils/InMemoryFilterColumnDataSource');
@@ -805,7 +805,7 @@ const SnkSimpleCrud = class {
805
805
  }
806
806
  return (index.h("snk-data-unit", { ref: ref => this._snkDataUnit = ref, class: "simple-crud__container", dataUnit: this.dataUnit, useCancelConfirm: this.useCancelConfirm, onDataStateChange: evt => this.onDataStateChange(evt), onCancelEdition: this.handleCancelEdit.bind(this), pageSize: this.getPageSize(), onInsertionMode: this.handleDataUnitOnInsertionMode.bind(this), onDataUnitReady: (evt) => this.dataUnitReady.emit(evt.detail), onMessagesBuilderUpdated: evt => this.messagesBuilder = evt.detail, onDataUnitFieldsHidded: this.updateFormConfig.bind(this), domainMessagesBuilder: this.domainMessagesBuilder }, index.h("header", null, index.h("slot", { name: "snkSimpleCrudHeader" })), index.h("section", { class: `ez-box ez-box--no-outline ${this.outlineMode ? 'ez-box--outline' : 'ez-box--shadow'} simple-crud__container-section`, ref: (ref) => this._container = ref, tabindex: "0" }, index.h("ez-view-stack", { ref: (ref) => this._viewStack = ref, "data-element-id": "simple-crud" }, index.h("stack-item", null, index.h("ez-grid", { class: "ez-margin-bottom--large ez-box--no-outline", ref: ref => this._grid = ref, dataUnit: this.dataUnit, config: this.gridConfig, "no-header": true, multipleSelection: this.multipleSelection, onEzDoubleClick: () => this.goToView(constants.VIEW_MODE.FORM), onConfigChange: evt => this.gridConfigChangeHandler(evt), columnfilterDataSource: this.dataUnit.name && this.dataUnit.name.includes(dataunitFetcher.InMemoryLoader.IN_MEMORY_DATA_UNIT_NAME)
807
807
  ? undefined
808
- : this._multiSelectionListDataSource, useEnterLikeTab: this.useEnterLikeTab, autoFocus: this.autoFocus, enableGridInsert: this.enableGridInsert, enableContinuousInsert: this.enableContinuousInsert, enableLockManagerTaskbarClick: this.enableLockManagerTaskbarClick, enableLockManagerLoadingComp: this.enableLockManagerLoadingComp, outlineMode: this.outlineMode, tabindex: "0", paginationCounterMode: this.paginationCounterMode }, this.renderTaskbarContent(constants.VIEW_MODE.GRID), index.h("div", { slot: "footer" }, index.h("slot", { name: "snkSimpleCrudFooter" })))), index.h("stack-item", null, this.renderTaskbarContent(constants.VIEW_MODE.FORM), index.h("ez-form", { ref: (ref) => this._form = ref, class: `ez-margin-top--large ez-box--no-outline`, dataUnit: this.dataUnit, config: this.getFormConfig(), fieldToFocus: this._fieldToGetFocus, onEzFormSetFields: (evt) => this.handleFormSetFields(evt.detail), onEzFormRequestClearFieldToFocus: this.clearFieldToFocusHandler.bind(this), elementFocusSearchField: this._container, tabindex: "0" }), index.h("snk-simple-form-config", { ref: (ref) => this._snkSimpleFormConfig = ref, dataUnit: this.dataUnit, onSnkConfigSaved: this.handleFormConfigSaved.bind(this), configName: (_a = this.formLegacyConfigName) !== null && _a !== void 0 ? _a : this.configName })), this.messagesBuilder && index.h("snk-configurator", { ref: (ref) => this._snkConfigurator = ref, viewMode: this._currentViewMode, messagesBuilder: this.messagesBuilder, onConfigSelected: (evt) => this.goToView(evt.detail), onOpenConfig: (evt) => this.openConfig(evt.detail), showActionButtons: this.showConfiguratorButtons, onSave: evt => this.handleConfiguratorEvent(evt, 'SAVE'), onCancel: evt => this.handleConfiguratorEvent(evt, 'CANCEL'), resourceID: this.resolveResourceID(), customContainerId: this._customContainerId, layoutFormConfig: this.layoutFormConfig })), index.h("div", { id: `${this._customContainerId}` }, index.h("slot", { name: "SnkConfigContainerSlot" }))), index.h("ez-modal", { modalSize: "small", closeEsc: false, closeOutsideClick: false, opened: this._showPopUpGridConfig, onEzCloseModal: () => this.closeGridConfig() }, index.h("snk-grid-config", { ref: ref => this._snkGridConfig = ref, config: this.gridConfig, "data-element-id": this._element.getAttribute(core.ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME), selectedIndex: 0, configName: this.configName, onConfigChange: (evt) => this.modalConfigChangeHandler(evt), onConfigCancel: () => this.closeGridConfig(), resourceID: this.resolveResourceID() }))));
808
+ : this._multiSelectionListDataSource, useEnterLikeTab: this.useEnterLikeTab, autoFocus: this.autoFocus, enableGridInsert: this.enableGridInsert, enableContinuousInsert: this.enableContinuousInsert, enableLockManagerTaskbarClick: this.enableLockManagerTaskbarClick, enableLockManagerLoadingComp: this.enableLockManagerLoadingComp, outlineMode: this.outlineMode, tabindex: "0", paginationCounterMode: this.paginationCounterMode }, this.renderTaskbarContent(constants.VIEW_MODE.GRID), index.h("div", { slot: "footer" }, index.h("slot", { name: "snkSimpleCrudFooter" })))), index.h("stack-item", null, this.renderTaskbarContent(constants.VIEW_MODE.FORM), index.h("ez-form", { ref: (ref) => this._form = ref, class: `ez-margin-top--large ez-box--no-outline`, dataUnit: this.dataUnit, config: this.getFormConfig(), fieldToFocus: this._fieldToGetFocus, onEzFormSetFields: (evt) => this.handleFormSetFields(evt.detail), onEzFormRequestClearFieldToFocus: this.clearFieldToFocusHandler.bind(this), elementFocusSearchField: this._container, tabindex: "0" }), index.h("snk-simple-form-config", { ref: (ref) => this._snkSimpleFormConfig = ref, dataUnit: this.dataUnit, onSnkConfigSaved: this.handleFormConfigSaved.bind(this), configName: (_a = this.formLegacyConfigName) !== null && _a !== void 0 ? _a : this.configName })), this.messagesBuilder && index.h("snk-configurator", { ref: (ref) => this._snkConfigurator = ref, viewMode: this._currentViewMode, messagesBuilder: this.messagesBuilder, onConfigSelected: (evt) => this.goToView(evt.detail), onOpenConfig: (evt) => this.openConfig(evt.detail), showActionButtons: this.showConfiguratorButtons, onSave: evt => this.handleConfiguratorEvent(evt, 'SAVE'), onCancel: evt => this.handleConfiguratorEvent(evt, 'CANCEL'), resourceID: this.resolveResourceID(), customContainerId: this._customContainerId, layoutFormConfig: this.layoutFormConfig })), index.h("div", { id: `${this._customContainerId}` }, index.h("slot", { name: "SnkConfigContainerSlot" }))), index.h("ez-popup", { size: "medium", heightMode: "auto", useHeader: false, opened: this._showPopUpGridConfig, onEzClosePopup: () => this.closeGridConfig() }, index.h("snk-grid-config", { ref: ref => this._snkGridConfig = ref, config: this.gridConfig, "data-element-id": this._element.getAttribute(core.ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME), selectedIndex: 0, configName: this.configName, onConfigChange: (evt) => this.modalConfigChangeHandler(evt), onConfigCancel: () => this.closeGridConfig(), resourceID: this.resolveResourceID() }))));
809
809
  }
810
810
  get _element() { return index.getElement(this); }
811
811
  static get watchers() { return {
@@ -61,14 +61,9 @@ export class SnkEntityList {
61
61
  if (this._application === undefined) {
62
62
  return;
63
63
  }
64
- const searchOptions = (_c = (_b = (_a = this.config) === null || _a === void 0 ? void 0 : _a.props) === null || _b === void 0 ? void 0 : _b.searchContext) === null || _c === void 0 ? void 0 : _c.searchOptions;
64
+ const searchContext = (_c = (_b = (_a = this.config) === null || _a === void 0 ? void 0 : _a.props) === null || _b === void 0 ? void 0 : _b.searchContext) !== null && _c !== void 0 ? _c : {};
65
65
  const criteria = (_e = (_d = this.config) === null || _d === void 0 ? void 0 : _d.props) === null || _e === void 0 ? void 0 : _e.criteria;
66
- const options = {
67
- entityDescription: (_f = this.config) === null || _f === void 0 ? void 0 : _f.label,
68
- entity: this._entityName,
69
- searchOptions: searchOptions,
70
- criteria,
71
- };
66
+ const options = Object.assign(Object.assign({ criteria }, searchContext), { entityDescription: (_f = this.config) === null || _f === void 0 ? void 0 : _f.label, entity: this._entityName });
72
67
  return this._application.executePreparedSearch(mode, argument, options);
73
68
  }
74
69
  onEzSearchChange(evt) {
@@ -110,7 +110,7 @@ function buildPeriod(item) {
110
110
  function buildSearch(item) {
111
111
  const { id, value, props } = item;
112
112
  const expression = props.expression;
113
- return { name: id, expression, params: [{ name: id, dataType: DataType.TEXT, value: toString(DataType.TEXT, value.value) }] };
113
+ return { name: id, expression, params: [{ name: id, dataType: DataType.TEXT, value: toString(DataType.TEXT, value === null || value === void 0 ? void 0 : value.value) }] };
114
114
  }
115
115
  function buildText(item) {
116
116
  let { id, value, props } = item;
@@ -1,6 +1,5 @@
1
1
  :host {
2
- width: 32%;
3
- min-width: 200px;
2
+ width: 100%;
4
3
  display: flex;
5
4
  padding: 12px 8px;
6
5
  border-radius: var(--border--radius-small, 4px);
@@ -12,25 +11,7 @@
12
11
  background: #FAFCFF;
13
12
  }
14
13
 
15
- :host.ghost{
16
- width: 32% !important;
17
- }
18
-
19
- @container (max-width: 430px) {
20
- :host,
21
- :host.ghost{
22
- width: 100% !important;
23
- }
24
- }
25
-
26
- @container (min-width: 431px) and (max-width: 632px) {
27
- :host,
28
- :host.ghost {
29
- width: 48% !important;
30
- }
31
- }
32
-
33
- :host.full-width{
14
+ :host.full-width {
34
15
  width: 100%;
35
16
  }
36
17
 
@@ -81,7 +62,6 @@ ez-icon {
81
62
  align-self: self-start;
82
63
  }
83
64
 
84
-
85
65
  .actions {
86
66
  display: flex;
87
67
  flex-direction: row;
@@ -105,4 +85,4 @@ ez-button {
105
85
  :host:hover .hiddeble {
106
86
  visibility: visible;
107
87
  opacity: 1;
108
- }
88
+ }
@@ -15,9 +15,6 @@
15
15
  height: calc(100vh - 225px);
16
16
  }
17
17
 
18
- .groups-container {
19
- }
20
-
21
18
  .guide-header {
22
19
  display: flex;
23
20
  width: 100%;
@@ -51,15 +48,13 @@
51
48
  width: 100%;
52
49
  }
53
50
 
54
-
55
51
  .group-content {
56
- display: flex;
57
- flex-direction: row;
58
- flex-wrap: wrap;
52
+ display: grid;
59
53
  gap: 12px;
60
54
  min-height: 65px;
61
55
  width: 100%;
62
56
  padding: 6px 0;
57
+ grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
63
58
  }
64
59
 
65
60
  .group-content.empty-content {
@@ -79,7 +74,6 @@
79
74
  justify-content: center;
80
75
  pointer-events: none;
81
76
  transition: opacity 0.3s;
82
- width: 100%;
83
77
  height: 100%;
84
78
  box-sizing: border-box;
85
79
  padding: 10px;
@@ -94,7 +88,7 @@
94
88
  border-bottom: 1px solid #dce0e8;
95
89
  }
96
90
 
97
- .no-group-container::before{
91
+ .no-group-container::before {
98
92
  content: "Inclua estes campos nos grupos ou deixe-os separados no topo do formulário";
99
93
  width: 100%;
100
94
  display: block;
@@ -117,7 +111,6 @@
117
111
  height: 55px;
118
112
  }
119
113
 
120
-
121
114
  .no-guide-selected {
122
115
  display: block;
123
116
  margin: auto;
@@ -129,5 +122,4 @@
129
122
  .ghost {
130
123
  opacity: .5;
131
124
  background: #c8fbe2;
132
- }
133
-
125
+ }
@@ -36,3 +36,7 @@
36
36
  background: #c8fbe2;
37
37
  }
38
38
 
39
+ .filter-input {
40
+ padding-right: var(--space--2xs, 8px);
41
+ }
42
+
@@ -55,7 +55,7 @@ export class FieldsSelector {
55
55
  this.initializeDraggableContainer();
56
56
  }
57
57
  render() {
58
- return (h(Host, { class: 'ez-col ez-col--sd-4 ez-col--tb-4 ez-padding--medium' }, h("span", { class: 'fields-label ez-padding-bottom--small' }, "Campos dispon\u00EDveis"), h("ez-filter-input", { slot: "content", mode: "slim", label: "Buscar campo", onEzChange: evt => this.filterTerm = evt.detail }), h("span", { class: 'fields-count' }, this.getCountText()), h("ez-scroller", { direction: 'vertical', activeShadow: true }, h("div", { id: ID_AVAILABLE_FIELDS, class: 'fields-container' }, this.renderFields()))));
58
+ return (h(Host, { class: 'ez-col ez-col--sd-4 ez-col--tb-4 ez-padding--medium' }, h("span", { class: 'fields-label ez-padding-bottom--small' }, "Campos dispon\u00EDveis"), h("ez-filter-input", { class: 'filter-input', slot: "content", mode: "slim", label: "Buscar campo", onEzChange: evt => this.filterTerm = evt.detail }), h("span", { class: 'fields-count' }, this.getCountText()), h("ez-scroller", { direction: 'vertical', activeShadow: true }, h("div", { id: ID_AVAILABLE_FIELDS, class: 'fields-container' }, this.renderFields()))));
59
59
  }
60
60
  static get is() { return "fields-selector"; }
61
61
  static get encapsulation() { return "scoped"; }
@@ -83,6 +83,8 @@ export class SnkGrid {
83
83
  this.useSearchColumn = true;
84
84
  this.multipleEditionEnabled = true;
85
85
  this.paginationCounterMode = 'auto';
86
+ this.suppressCheckboxColumn = undefined;
87
+ this.compact = undefined;
86
88
  }
87
89
  getGridHeaderSelectedBtns() {
88
90
  const btns = [
@@ -211,7 +213,6 @@ export class SnkGrid {
211
213
  this._grid.getColumnsState()
212
214
  .then((gridColumns) => {
213
215
  this._snkGridConfig.columns = gridColumns.filter(c => c.name);
214
- this._snkGridConfig.selectedIndex = 0;
215
216
  this._popUpGridConfig = true;
216
217
  });
217
218
  }
@@ -499,7 +500,7 @@ export class SnkGrid {
499
500
  return undefined;
500
501
  }
501
502
  return (h("div", { class: "snk-grid__container ez-flex ez-flex--column ez-flex-item--auto ez-padding--large ez-box--no-outline", tabindex: "0" }, h("div", { class: "snk-grid__header ez-margin-bottom--extra-small" }, this._showSnkFilterBar &&
502
- h(Fragment, null, h("snk-filter-bar", { ref: (ref) => this._snkFilterBar = ref, title: this.filterBarTitle, dataUnit: this._dataUnit, "data-element-id": "gridFilter", class: "snk-grid__filter-bar ez-align--top", configName: this.configName, messagesBuilder: this.messagesBuilder, resourceID: this.resourceID, onConfigUpdated: evt => this.handleFilterConfigUpdated(evt.detail), disablePersonalizedFilter: this.disablePersonalizedFilter, filterBarLegacyConfigName: this.filterBarLegacyConfigName, autoLoad: this.autoLoad, enableLockManagerLoadingComp: this.enableLockManagerLoadingComp }), h("hr", { class: "ez-divider-vertical ez-divider--dark ez-margin-left--medium snk-grid__header-divider" })), h("snk-taskbar", { class: "ez-padding-left--medium ez-padding-top--extra-small", "data-element-id": "grid_top", key: "topTaskbar", configName: this.configName, dataUnit: this._dataUnit, messagesBuilder: this.messagesBuilder, buttons: this._topTaskbarProcessor.buttons, disabledButtons: this._topTaskbarProcessor.disabledButtons, customButtons: this._topTaskbarProcessor.customButtons, primaryButton: this.getPrimaryButton(), resourceID: this.resourceID, customContainerId: this.taskbarCustomContainerId, customSlotId: this.topTaskbarCustomSlotId, overflowStrategy: 'none', actionsSettingsList: this.getActionsSettingsList() }, h("slot", { name: this.topTaskbarCustomSlotId }))), h("ez-grid", { ref: ref => this._grid = ref, class: (this.presentationMode === PresentationMode.SECONDARY ? "snk-grid-container__without-shadow " : "") + "snk-grid__table", "data-element-id": "embedded", dataUnit: this._dataUnit, key: "grid-" + this._snkDataUnit.entityName, config: this._gridConfig, onConfigChange: (evt) => { this.gridConfigChangeHandler(evt); }, onEzDoubleClick: (evt) => this.gridDoubleClick.emit(evt.detail), statusResolver: this.statusResolver, multipleSelection: this.multipleSelection, columnfilterDataSource: this.columnFilterDataSource, selectionToastConfig: this.selectionToastConfig, useEnterLikeTab: this.useEnterLikeTab, recordsValidator: this.recordsValidator, canEdit: this.canEdit, autoFocus: this.autoFocus, enableGridInsert: this.enableGridInsert, enableContinuousInsert: this._enableContinuousInsert, enableLockManagerTaskbarClick: this.enableLockManagerTaskbarClick, enableLockManagerLoadingComp: this.enableLockManagerLoadingComp, outlineMode: this.outlineMode, useSearchColumn: this.useSearchColumn, suppressHorizontalScroll: this.suppressHorizontalScroll, paginationCounterMode: this.paginationCounterMode }, h("snk-taskbar", { id: 'teste', dataUnit: this._dataUnit, configName: this.configName, messagesBuilder: this.messagesBuilder, "data-element-id": "grid_left", buttons: this.getGridHeaderButtons(), presentationMode: this.presentationMode, disabledButtons: this._headerTaskbarProcessor.disabledButtons, customButtons: this._headerTaskbarProcessor.customButtons, slot: "leftButtons", actionsList: this.getActionsList(), primaryButton: this.getPrimaryButton(), resourceID: this.resourceID, customContainerId: this.taskbarCustomContainerId, customSlotId: this.gridHeaderCustomSlotId, actionsSettingsList: this.getActionsSettingsList() }, h("slot", { name: this.gridHeaderCustomSlotId }))), h("div", { class: "ez-col ez-col--sd-12 snk-grid-container__footer" }, h("slot", { name: "SnkGridFooter" })), h("ez-modal", { modalSize: "small", closeEsc: false, closeOutsideClick: false, opened: this._popUpGridConfig, onEzCloseModal: () => this.closeGridConfig() }, h("snk-grid-config", { ref: ref => this._snkGridConfig = ref, config: this._gridConfig, "data-element-id": this._element.getAttribute(ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME), selectedIndex: 0, configName: this.configName, onConfigChange: (evt) => this.modalConfigChangeHandler(evt), onConfigCancel: () => this.closeGridConfig(), resourceID: this.resourceID }))));
503
+ h(Fragment, null, h("snk-filter-bar", { ref: (ref) => this._snkFilterBar = ref, title: this.filterBarTitle, dataUnit: this._dataUnit, "data-element-id": "gridFilter", class: "snk-grid__filter-bar ez-align--top", configName: this.configName, messagesBuilder: this.messagesBuilder, resourceID: this.resourceID, onConfigUpdated: evt => this.handleFilterConfigUpdated(evt.detail), disablePersonalizedFilter: this.disablePersonalizedFilter, filterBarLegacyConfigName: this.filterBarLegacyConfigName, autoLoad: this.autoLoad, enableLockManagerLoadingComp: this.enableLockManagerLoadingComp }), h("hr", { class: "ez-divider-vertical ez-divider--dark ez-margin-left--medium snk-grid__header-divider" })), h("snk-taskbar", { class: "ez-padding-left--medium ez-padding-top--extra-small", "data-element-id": "grid_top", key: "topTaskbar", configName: this.configName, dataUnit: this._dataUnit, messagesBuilder: this.messagesBuilder, buttons: this._topTaskbarProcessor.buttons, disabledButtons: this._topTaskbarProcessor.disabledButtons, customButtons: this._topTaskbarProcessor.customButtons, primaryButton: this.getPrimaryButton(), resourceID: this.resourceID, customContainerId: this.taskbarCustomContainerId, customSlotId: this.topTaskbarCustomSlotId, overflowStrategy: 'none', actionsSettingsList: this.getActionsSettingsList() }, h("slot", { name: this.topTaskbarCustomSlotId }))), h("ez-grid", { ref: ref => this._grid = ref, class: (this.presentationMode === PresentationMode.SECONDARY ? "snk-grid-container__without-shadow " : "") + "snk-grid__table", "data-element-id": "embedded", dataUnit: this._dataUnit, key: "grid-" + this._snkDataUnit.entityName, config: this._gridConfig, onConfigChange: (evt) => { this.gridConfigChangeHandler(evt); }, onEzDoubleClick: (evt) => this.gridDoubleClick.emit(evt.detail), statusResolver: this.statusResolver, multipleSelection: this.multipleSelection, columnfilterDataSource: this.columnFilterDataSource, selectionToastConfig: this.selectionToastConfig, useEnterLikeTab: this.useEnterLikeTab, recordsValidator: this.recordsValidator, canEdit: this.canEdit, autoFocus: this.autoFocus, enableGridInsert: this.enableGridInsert, enableContinuousInsert: this._enableContinuousInsert, enableLockManagerTaskbarClick: this.enableLockManagerTaskbarClick, enableLockManagerLoadingComp: this.enableLockManagerLoadingComp, outlineMode: this.outlineMode, useSearchColumn: this.useSearchColumn, suppressHorizontalScroll: this.suppressHorizontalScroll, paginationCounterMode: this.paginationCounterMode, suppressCheckboxColumn: this.suppressCheckboxColumn, compact: this.compact }, h("snk-taskbar", { id: 'teste', dataUnit: this._dataUnit, configName: this.configName, messagesBuilder: this.messagesBuilder, "data-element-id": "grid_left", buttons: this.getGridHeaderButtons(), presentationMode: this.presentationMode, disabledButtons: this._headerTaskbarProcessor.disabledButtons, customButtons: this._headerTaskbarProcessor.customButtons, slot: "leftButtons", actionsList: this.getActionsList(), primaryButton: this.getPrimaryButton(), resourceID: this.resourceID, customContainerId: this.taskbarCustomContainerId, customSlotId: this.gridHeaderCustomSlotId, actionsSettingsList: this.getActionsSettingsList() }, h("slot", { name: this.gridHeaderCustomSlotId }))), h("div", { class: "ez-col ez-col--sd-12 snk-grid-container__footer" }, h("slot", { name: "SnkGridFooter" })), h("ez-popup", { size: "medium", heightMode: "auto", useHeader: false, opened: this._popUpGridConfig, onEzClosePopup: () => this.closeGridConfig() }, h("snk-grid-config", { ref: ref => this._snkGridConfig = ref, config: this._gridConfig, "data-element-id": this._element.getAttribute(ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME), selectedIndex: 0, configName: this.configName, onConfigChange: (evt) => this.modalConfigChangeHandler(evt), onConfigCancel: () => this.closeGridConfig(), resourceID: this.resourceID }))));
503
504
  }
504
505
  static get is() { return "snk-grid"; }
505
506
  static get encapsulation() { return "scoped"; }
@@ -1112,6 +1113,40 @@ export class SnkGrid {
1112
1113
  "attribute": "pagination-counter-mode",
1113
1114
  "reflect": false,
1114
1115
  "defaultValue": "'auto'"
1116
+ },
1117
+ "suppressCheckboxColumn": {
1118
+ "type": "boolean",
1119
+ "mutable": false,
1120
+ "complexType": {
1121
+ "original": "boolean",
1122
+ "resolved": "boolean",
1123
+ "references": {}
1124
+ },
1125
+ "required": false,
1126
+ "optional": false,
1127
+ "docs": {
1128
+ "tags": [],
1129
+ "text": "Informa se a coluna de chechbox deve ser suprimida"
1130
+ },
1131
+ "attribute": "suppress-checkbox-column",
1132
+ "reflect": false
1133
+ },
1134
+ "compact": {
1135
+ "type": "boolean",
1136
+ "mutable": false,
1137
+ "complexType": {
1138
+ "original": "boolean",
1139
+ "resolved": "boolean",
1140
+ "references": {}
1141
+ },
1142
+ "required": false,
1143
+ "optional": false,
1144
+ "docs": {
1145
+ "tags": [],
1146
+ "text": "Define se a grade deve ser exibida em modo compacto"
1147
+ },
1148
+ "attribute": "compact",
1149
+ "reflect": false
1115
1150
  }
1116
1151
  };
1117
1152
  }
@@ -55,17 +55,14 @@
55
55
  /*@doc Define a largura da barra de rolagem do componente.*/
56
56
  --snk-grid-config__scrollbar--width: var(--space--small, 6px);
57
57
 
58
- display: grid;
59
- grid-template-rows: auto 1fr auto;
58
+ display: flex;
59
+ flex-direction: column;
60
60
  max-height: 100%;
61
61
  width: 100%;
62
62
  }
63
63
 
64
- @media screen and (min-width: 480px) {
65
- :host {
66
- width: 359px;
67
- max-width: 359px;
68
- }
64
+ .grid-config__body {
65
+ overflow: auto;
69
66
  }
70
67
 
71
68
  .padding-right--medium {
@@ -134,42 +131,11 @@ ez-list {
134
131
  .grid-config__main {
135
132
  overflow-y: auto;
136
133
  scrollbar-width: thin;
134
+ width: 100%;
135
+ padding-bottom: 20px;
137
136
 
138
137
  /*public*/
139
138
  scrollbar-color: var(--snk-grid-config__scrollbar--color-clicked) var(--snk-grid-config__scrollbar--color-background);
140
- padding-right: var(--snk-grid-config__main--padding-right);
141
- }
142
-
143
- .grid-config__main::-webkit-scrollbar {
144
- /*public*/
145
- width: var(--snk-grid-config__scrollbar--width);
146
- max-width: var(--snk-grid-config__scrollbar--width);
147
- min-width: var(--snk-grid-config__scrollbar--width);
148
- background-color: var(--snk-grid-config__scrollbar--color-background);
149
- }
150
-
151
- .grid-config__main::-webkit-scrollbar-track {
152
- /*public*/
153
- background-color: var(--snk-grid-config__scrollbar--color-background);
154
- border-radius: var(--snk-grid-config__scrollbar--border-radius);
155
- }
156
-
157
- .grid-config__main::-webkit-scrollbar-thumb {
158
- /*public*/
159
- background-color: var(--snk-grid-config__scrollbar--color-default);
160
- border-radius: var(--snk-grid-config__scrollbar--border-radius);
161
- }
162
-
163
- .grid-config__main::-webkit-scrollbar-thumb:vertical:hover,
164
- .grid-config__main::-webkit-scrollbar-thumb:horizontal:hover {
165
- /*public*/
166
- background-color: var(--snk-grid-config__scrollbar--color-hover);
167
- }
168
-
169
- .grid-config__main::-webkit-scrollbar-thumb:vertical:active,
170
- .grid-config__main::-webkit-scrollbar-thumb:horizontal:active {
171
- /*public*/
172
- background-color: var(--snk-grid-config__scrollbar--color-clicked);
173
139
  }
174
140
 
175
141
  .group-name {
@@ -178,4 +144,4 @@ ez-list {
178
144
  font-size: var(--snk-grid-config__group--font-size);
179
145
  font-weight: var(--snk-grid-config__group--font-weight);
180
146
  padding-bottom: var(--snk-grid-config__group--padding-bottom);
181
- }
147
+ }