@sankhyalabs/sankhyablocks 8.16.0-dev.110 → 8.16.0-dev.111

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 (111) hide show
  1. package/dist/cjs/{SnkMessageBuilder-aecd7c18.js → SnkMessageBuilder-9deeae08.js} +4 -3
  2. package/dist/cjs/index-f9e81701.js +2 -2
  3. package/dist/cjs/loader.cjs.js +1 -1
  4. package/dist/cjs/sankhyablocks.cjs.js +1 -1
  5. package/dist/cjs/{snk-actions-button_7.cjs.entry.js → snk-actions-button_8.cjs.entry.js} +61 -0
  6. package/dist/cjs/snk-application.cjs.entry.js +1 -1
  7. package/dist/cjs/snk-attach.cjs.entry.js +1 -1
  8. package/dist/cjs/snk-crud.cjs.entry.js +2 -26
  9. package/dist/cjs/snk-data-exporter.cjs.entry.js +2 -2
  10. package/dist/cjs/{snk-data-unit-ebfdb9ba.js → snk-data-unit-57916de4.js} +1 -1
  11. package/dist/cjs/snk-data-unit.cjs.entry.js +2 -2
  12. package/dist/cjs/snk-detail-view.cjs.entry.js +57 -5
  13. package/dist/cjs/snk-form-view.cjs.entry.js +19 -7
  14. package/dist/cjs/snk-grid.cjs.entry.js +22 -23
  15. package/dist/cjs/{snk-guides-viewer-fd39f437.js → snk-guides-viewer-d33379cd.js} +36 -24
  16. package/dist/cjs/snk-guides-viewer.cjs.entry.js +4 -3
  17. package/dist/cjs/snk-simple-crud.cjs.entry.js +73 -85
  18. package/dist/cjs/snk-taskbar.cjs.entry.js +7 -3
  19. package/dist/cjs/{taskbar-elements-02379452.js → taskbar-elements-6f4e06af.js} +8 -0
  20. package/dist/cjs/{field-search-68e34bf4.js → taskbar-processor-2fba34a8.js} +0 -35
  21. package/dist/collection/collection-manifest.json +1 -0
  22. package/dist/collection/components/snk-crud/snk-crud.js +2 -26
  23. package/dist/collection/components/snk-crud/subcomponents/snk-detail-view/snk-detail-view.js +58 -4
  24. package/dist/collection/components/snk-crud/subcomponents/snk-form-view.js +54 -7
  25. package/dist/collection/components/snk-crud/subcomponents/snk-guides-viewer.js +36 -40
  26. package/dist/collection/components/snk-grid/snk-grid.js +36 -36
  27. package/dist/collection/components/snk-simple-crud/snk-simple-crud.js +75 -85
  28. package/dist/collection/components/snk-taskbar/elements/taskbar-elements.js +8 -0
  29. package/dist/collection/components/snk-taskbar/elements/taskbar-split-button/taskbar-split-button.css +0 -0
  30. package/dist/collection/components/snk-taskbar/elements/taskbar-split-button/taskbar-split-button.js +220 -0
  31. package/dist/collection/components/snk-taskbar/snk-taskbar.js +28 -2
  32. package/dist/collection/lib/message/resources/snk-crud.msg.js +1 -1
  33. package/dist/collection/lib/message/resources/snk-grid.msg.js +1 -1
  34. package/dist/collection/lib/message/resources/snk-simple-crud.msg.js +2 -1
  35. package/dist/components/ContinuousInsertUtils.js +2 -33
  36. package/dist/components/SnkMessageBuilder.js +4 -3
  37. package/dist/components/index.d.ts +1 -0
  38. package/dist/components/index.js +1 -0
  39. package/dist/components/snk-attach2.js +34 -28
  40. package/dist/components/snk-crud.js +75 -93
  41. package/dist/components/snk-detail-view2.js +193 -117
  42. package/dist/components/snk-form-view2.js +22 -8
  43. package/dist/components/snk-grid2.js +62 -57
  44. package/dist/components/snk-simple-crud2.js +104 -109
  45. package/dist/components/snk-taskbar2.js +29 -10
  46. package/dist/components/taskbar-split-button.d.ts +11 -0
  47. package/dist/components/taskbar-split-button.js +6 -0
  48. package/dist/components/taskbar-split-button2.js +87 -0
  49. package/dist/esm/{SnkMessageBuilder-12f5fe1a.js → SnkMessageBuilder-2dbd8fa2.js} +4 -3
  50. package/dist/esm/index-a7d3d3f1.js +2 -2
  51. package/dist/esm/loader.js +1 -1
  52. package/dist/esm/sankhyablocks.js +1 -1
  53. package/dist/esm/{snk-actions-button_7.entry.js → snk-actions-button_8.entry.js} +61 -1
  54. package/dist/esm/snk-application.entry.js +1 -1
  55. package/dist/esm/snk-attach.entry.js +1 -1
  56. package/dist/esm/snk-crud.entry.js +3 -27
  57. package/dist/esm/snk-data-exporter.entry.js +2 -2
  58. package/dist/esm/{snk-data-unit-03654813.js → snk-data-unit-65c9dd1a.js} +1 -1
  59. package/dist/esm/snk-data-unit.entry.js +2 -2
  60. package/dist/esm/snk-detail-view.entry.js +59 -7
  61. package/dist/esm/snk-form-view.entry.js +19 -7
  62. package/dist/esm/snk-grid.entry.js +20 -21
  63. package/dist/esm/{snk-guides-viewer-75e06feb.js → snk-guides-viewer-72953334.js} +37 -25
  64. package/dist/esm/snk-guides-viewer.entry.js +4 -3
  65. package/dist/esm/snk-simple-crud.entry.js +74 -86
  66. package/dist/esm/snk-taskbar.entry.js +7 -3
  67. package/dist/esm/{taskbar-elements-c62b6c66.js → taskbar-elements-f2cb4922.js} +8 -0
  68. package/dist/esm/{field-search-f8b1d91e.js → taskbar-processor-3436124c.js} +1 -34
  69. package/dist/sankhyablocks/p-0fadb620.js +1 -0
  70. package/dist/sankhyablocks/p-1a0caadb.js +1 -0
  71. package/dist/sankhyablocks/{p-2c08fa3e.entry.js → p-1bdffb17.entry.js} +1 -1
  72. package/dist/sankhyablocks/p-1f80174b.entry.js +1 -0
  73. package/dist/sankhyablocks/p-24a0dbd2.entry.js +1 -0
  74. package/dist/sankhyablocks/p-2f7e2251.entry.js +1 -0
  75. package/dist/sankhyablocks/p-3372178e.entry.js +1 -0
  76. package/dist/sankhyablocks/p-4689c2e6.js +1 -0
  77. package/dist/sankhyablocks/{p-271c86d3.entry.js → p-52d10014.entry.js} +1 -1
  78. package/dist/sankhyablocks/p-6a03b190.entry.js +1 -0
  79. package/dist/sankhyablocks/{p-ad07f0c5.entry.js → p-7beeabc1.entry.js} +1 -1
  80. package/dist/sankhyablocks/{p-4a93daef.entry.js → p-a4ebeec4.entry.js} +1 -1
  81. package/dist/sankhyablocks/p-bc101064.entry.js +1 -0
  82. package/dist/sankhyablocks/{p-f4d5bb7f.js → p-c9675d64.js} +1 -1
  83. package/dist/sankhyablocks/{p-4e861843.entry.js → p-ce94e6c4.entry.js} +1 -1
  84. package/dist/sankhyablocks/p-d07b18a4.js +1 -0
  85. package/dist/sankhyablocks/{p-6a0c8ce0.entry.js → p-ddf93f36.entry.js} +1 -1
  86. package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
  87. package/dist/types/components/snk-crud/snk-crud.d.ts +0 -3
  88. package/dist/types/components/snk-crud/subcomponents/snk-detail-view/snk-detail-view.d.ts +12 -0
  89. package/dist/types/components/snk-crud/subcomponents/snk-form-view.d.ts +11 -1
  90. package/dist/types/components/snk-crud/subcomponents/snk-guides-viewer.d.ts +6 -6
  91. package/dist/types/components/snk-grid/snk-grid.d.ts +7 -5
  92. package/dist/types/components/snk-simple-crud/snk-simple-crud.d.ts +10 -10
  93. package/dist/types/components/snk-taskbar/elements/taskbar-split-button/taskbar-split-button.d.ts +44 -0
  94. package/dist/types/components/snk-taskbar/snk-taskbar.d.ts +5 -0
  95. package/dist/types/components.d.ts +107 -8
  96. package/package.json +1 -1
  97. package/react/components.d.ts +1 -0
  98. package/react/components.js +1 -0
  99. package/react/components.js.map +1 -1
  100. package/dist/collection/components/snk-taskbar/subcomponents/field-search.js +0 -31
  101. package/dist/sankhyablocks/p-1a51dfde.entry.js +0 -1
  102. package/dist/sankhyablocks/p-1db45d26.entry.js +0 -1
  103. package/dist/sankhyablocks/p-23736d75.js +0 -1
  104. package/dist/sankhyablocks/p-2d6df7e7.entry.js +0 -1
  105. package/dist/sankhyablocks/p-41da5310.js +0 -1
  106. package/dist/sankhyablocks/p-65be98c5.entry.js +0 -1
  107. package/dist/sankhyablocks/p-80f8c22c.js +0 -1
  108. package/dist/sankhyablocks/p-cc8c3bca.entry.js +0 -1
  109. package/dist/sankhyablocks/p-cf1f25ed.entry.js +0 -1
  110. package/dist/sankhyablocks/p-fb0f0087.js +0 -1
  111. package/dist/types/components/snk-taskbar/subcomponents/field-search.d.ts +0 -4
@@ -1,6 +1,7 @@
1
1
  import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
2
2
  import { ElementIDUtils } from '@sankhyalabs/core';
3
3
  import { DataBinder } from '@sankhyalabs/ezui/dist/collection/utils/form';
4
+ import { focusOnFieldSerch, SEARCH_FIELD_FULL_WIDTH } from '@sankhyalabs/ezui/dist/collection/utils';
4
5
  import { d as defineCustomElement$1 } from './snk-form-summary2.js';
5
6
 
6
7
  const snkFormViewCss = ".sc-snk-form-view-h{display:flex;width:100%;--ez-form-card-summary-field-content-weight:700}.level-path.sc-snk-form-view{color:var(--color--title-primary, #2B3A54);font-weight:var(--text-weight--medium, 400);padding-right:3px}.summary-wrapper.sc-snk-form-view{display:flex;overflow:hidden}.summary-header.sc-snk-form-view{border-bottom:1px solid var(--color--strokes);margin-bottom:var(--space--medium);padding-bottom:var(--space--medium)}.summary-container.sc-snk-form-view{display:flex;flex-direction:column}.summary-container.sc-snk-form-view{padding-right:calc(var(--space--extra-large) / 1.5)}.summary-field.sc-snk-form-view{min-width:30px;max-width:200px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.summary-field__title.sc-snk-form-view{color:var(--text--primary, #626e82);font-size:var(--title--small);white-space:nowrap;font-weight:var(--text-weight--medium)}.summary-field__content.sc-snk-form-view{color:var(--title--primary, #2b3a54);font-size:var(--text--large);font-weight:var(--ez-form-card-summary-field-content-weight)}";
@@ -15,6 +16,7 @@ const SnkFormView = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
15
16
  this._customEditors = new Map();
16
17
  this._fieldProps = new Map();
17
18
  this.levelPath = undefined;
19
+ this.fieldSearch = undefined;
18
20
  this.label = undefined;
19
21
  this.name = undefined;
20
22
  this.fields = undefined;
@@ -47,11 +49,6 @@ const SnkFormView = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
47
49
  newCustomEditors.set(fieldName, { customEditor, detailContext });
48
50
  this._customEditors = newCustomEditors;
49
51
  }
50
- observePropsCustomEditor(newValue) {
51
- for (const fieldName in newValue) {
52
- this.addCustomEditor(fieldName, newValue[fieldName]);
53
- }
54
- }
55
52
  /**
56
53
  * Altera/adiciona uma propriedade nos metadados do campo.
57
54
  */
@@ -59,6 +56,21 @@ const SnkFormView = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
59
56
  const props = this._fieldProps.get(fieldName) || [];
60
57
  this._fieldProps.set(fieldName, [...props, { propName, value }]);
61
58
  }
59
+ /**
60
+ * Exibe a busca de campos ancorada ao container de cabeçalho do snk-form-view.
61
+ */
62
+ async showSearchField() {
63
+ if (!this._headerContainer || !this._ezPopoverFieldColumn)
64
+ return;
65
+ const container = this._headerContainer.getBoundingClientRect();
66
+ await focusOnFieldSerch(this.fieldSearch);
67
+ this._ezPopoverFieldColumn.showUnder(this._headerContainer, { horizontalGap: container.width - (SEARCH_FIELD_FULL_WIDTH), verticalGap: container.height * -1 });
68
+ }
69
+ observePropsCustomEditor(newValue) {
70
+ for (const fieldName in newValue) {
71
+ this.addCustomEditor(fieldName, newValue[fieldName]);
72
+ }
73
+ }
62
74
  async observeFieldsProps(newValue) {
63
75
  for (const field in newValue) {
64
76
  const fieldProps = newValue[field];
@@ -165,13 +177,13 @@ const SnkFormView = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
165
177
  }
166
178
  }
167
179
  render() {
168
- return (h(Host, { class: "ez-box__container" }, h("div", { class: "summary-header ez-flex ez-size-width--full" }, h("div", { class: "ez-flex ez-text ez-title--primary ez-text--bold ez-flex--justify-start ez-flex--align-items-center ez-col--sd-9" }, this.levelPath ? h("span", { class: "level-path" }, this.levelPath + " /") : undefined, this.label), h("div", { class: "ez-flex ez-flex--justify-end ez-col--sd-3" }, this.canFix &&
180
+ return (h(Host, { class: "ez-box__container" }, h("div", { class: "summary-header ez-flex ez-size-width--full", ref: ref => this._headerContainer = ref }, h("div", { class: "ez-flex ez-text ez-title--primary ez-text--bold ez-flex--justify-start ez-flex--align-items-center ez-col--sd-9" }, this.levelPath ? h("span", { class: "level-path" }, this.levelPath + " /") : undefined, this.label), h("div", { class: "ez-flex ez-flex--justify-end ez-col--sd-3" }, this.canFix &&
169
181
  h("ez-button", { class: "ez-padding-left--medium", mode: "icon", size: "small", iconName: this.fixed ? "un-pin" : "push-pin", "data-element-id": ElementIDUtils.getInternalIDInfo("toggleFixed_ezFormCard"), onClick: () => this.changeFix(), title: this.fixed ? "Desafixar" : "Fixar" }), this.canExpand &&
170
182
  h("ez-button", { class: "ez-padding-left--medium", mode: "icon", size: "small", iconName: this.contracted ? "chevron-down" : "chevron-up", "data-element-id": ElementIDUtils.getInternalIDInfo("toggleExpand_ezFormCard"), onClick: () => this.changeContracted(), title: this.contracted ? "Expandir" : "Resumir" }))), h("slot", null), this.contracted
171
183
  ?
172
184
  h("snk-form-summary", { summary: this.getCardSummary() })
173
185
  :
174
- h("ez-form-view", { ref: ref => this._formView = ref, fields: this.fields, onEzContentReady: evt => this.bindFields(evt.detail), onFormItemsReady: (event) => this.handleFormItemsReady(event) })));
186
+ h("ez-form-view", { ref: ref => this._formView = ref, fields: this.fields, onEzContentReady: evt => this.bindFields(evt.detail), onFormItemsReady: (event) => this.handleFormItemsReady(event) }), this.fieldSearch && h("ez-popover", { ref: elem => (this._ezPopoverFieldColumn = elem), overlayType: "none" }, this.fieldSearch)));
175
187
  }
176
188
  static get watchers() { return {
177
189
  "customEditors": ["observePropsCustomEditor"],
@@ -180,6 +192,7 @@ const SnkFormView = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
180
192
  static get style() { return snkFormViewCss; }
181
193
  }, [6, "snk-form-view", {
182
194
  "levelPath": [1, "level-path"],
195
+ "fieldSearch": [16],
183
196
  "label": [1],
184
197
  "name": [1],
185
198
  "fields": [16],
@@ -196,7 +209,8 @@ const SnkFormView = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
196
209
  "fieldsProps": [16],
197
210
  "showUp": [64],
198
211
  "addCustomEditor": [64],
199
- "setFieldProp": [64]
212
+ "setFieldProp": [64],
213
+ "showSearchField": [64]
200
214
  }]);
201
215
  function defineCustomElement() {
202
216
  if (typeof customElements === "undefined") {
@@ -1,9 +1,9 @@
1
1
  import { proxyCustomElement, HTMLElement, createEvent, h, Fragment } from '@stencil/core/internal/client';
2
- import { Action, ElementIDUtils, ApplicationContext, StringUtils } from '@sankhyalabs/core';
3
- import { T as TaskbarElement, d as defineCustomElement$2 } from './snk-taskbar2.js';
2
+ import { KeyboardManager, Action, ElementIDUtils, ApplicationContext, StringUtils } from '@sankhyalabs/core';
3
+ import { T as TaskbarElement, d as defineCustomElement$3 } from './snk-taskbar2.js';
4
4
  import { C as ConfigStorage } from './ConfigStorage.js';
5
5
  import { P as PresentationMode, E as ExporterStrategy } from './ISave.js';
6
- import { C as CommonsExporter, T as TaskbarProcessor, S as SnkMultiSelectionListDataSource, o as openFieldSearch, a as CrudUtils, R as RmPrecisionCustomValueFormatter, c as ContinuousInsertUtils, b as buildFieldSearch, d as ClientSideExporterProvider } from './ContinuousInsertUtils.js';
6
+ import { C as CommonsExporter, T as TaskbarProcessor, S as SnkMultiSelectionListDataSource, a as CrudUtils, R as RmPrecisionCustomValueFormatter, b as ContinuousInsertUtils, c as ClientSideExporterProvider } from './ContinuousInsertUtils.js';
7
7
  import { s as store } from './index2.js';
8
8
  import { SelectionMode } from '@sankhyalabs/core/dist/dataunit/DataUnit';
9
9
  import './DataFetcher.js';
@@ -14,23 +14,25 @@ import './filter-item-type.enum.js';
14
14
  import './form-config-fetcher.js';
15
15
  import './constants.js';
16
16
  import { g as getSelectedRecordsIDsInfo } from './GetSelectedRecordsIDsInfo.js';
17
- import { d as defineCustomElement$i } from './snk-actions-button2.js';
18
- import { d as defineCustomElement$h } from './snk-data-exporter2.js';
19
- import { d as defineCustomElement$g } from './snk-exporter-email-sender2.js';
20
- import { d as defineCustomElement$f } from './snk-expression-group2.js';
21
- import { d as defineCustomElement$e } from './snk-expression-item2.js';
22
- import { d as defineCustomElement$d } from './snk-filter-advanced-mode2.js';
23
- import { d as defineCustomElement$c } from './snk-filter-assistent-mode2.js';
24
- import { d as defineCustomElement$b } from './snk-filter-bar2.js';
25
- import { d as defineCustomElement$a } from './snk-filter-detail2.js';
26
- import { d as defineCustomElement$9 } from './snk-filter-field-search2.js';
27
- import { d as defineCustomElement$8 } from './snk-filter-item2.js';
28
- import { d as defineCustomElement$7 } from './snk-filter-param-config2.js';
29
- import { d as defineCustomElement$6 } from './snk-grid-config2.js';
30
- import { d as defineCustomElement$5 } from './snk-personalized-filter2.js';
31
- import { d as defineCustomElement$4 } from './snk-select-box2.js';
32
- import { d as defineCustomElement$3 } from './snk-simple-bar2.js';
33
- import { d as defineCustomElement$1 } from './taskbar-actions-button2.js';
17
+ import { buildFieldSearch } from '@sankhyalabs/ezui/dist/collection/utils';
18
+ import { d as defineCustomElement$j } from './snk-actions-button2.js';
19
+ import { d as defineCustomElement$i } from './snk-data-exporter2.js';
20
+ import { d as defineCustomElement$h } from './snk-exporter-email-sender2.js';
21
+ import { d as defineCustomElement$g } from './snk-expression-group2.js';
22
+ import { d as defineCustomElement$f } from './snk-expression-item2.js';
23
+ import { d as defineCustomElement$e } from './snk-filter-advanced-mode2.js';
24
+ import { d as defineCustomElement$d } from './snk-filter-assistent-mode2.js';
25
+ import { d as defineCustomElement$c } from './snk-filter-bar2.js';
26
+ import { d as defineCustomElement$b } from './snk-filter-detail2.js';
27
+ import { d as defineCustomElement$a } from './snk-filter-field-search2.js';
28
+ import { d as defineCustomElement$9 } from './snk-filter-item2.js';
29
+ import { d as defineCustomElement$8 } from './snk-filter-param-config2.js';
30
+ import { d as defineCustomElement$7 } from './snk-grid-config2.js';
31
+ import { d as defineCustomElement$6 } from './snk-personalized-filter2.js';
32
+ import { d as defineCustomElement$5 } from './snk-select-box2.js';
33
+ import { d as defineCustomElement$4 } from './snk-simple-bar2.js';
34
+ import { d as defineCustomElement$2 } from './taskbar-actions-button2.js';
35
+ import { d as defineCustomElement$1 } from './taskbar-split-button2.js';
34
36
 
35
37
  class ServerSideExporterProvider extends CommonsExporter {
36
38
  getFilters() {
@@ -96,6 +98,7 @@ const SnkGrid = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
96
98
  this.gridDoubleClick = createEvent(this, "gridDoubleClick", 7);
97
99
  this._customEditors = new Map();
98
100
  this._customRenders = new Map();
101
+ this._keyboardManager = new KeyboardManager();
99
102
  this._topTaskbarProcessor = new TaskbarProcessor({
100
103
  "snkGridTopTaskbar.regular": ["FORM_MODE", "CONFIGURATOR", "INSERT"],
101
104
  "snkGridTopTaskbar.regular.secondary": ["FORM_MODE", "CONFIGURATOR", "INSERT"],
@@ -157,6 +160,7 @@ const SnkGrid = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
157
160
  this.enableGridInsert = false;
158
161
  this.outlineMode = false;
159
162
  this.strategyExporter = ExporterStrategy.SERVER_SIDE;
163
+ this.useSearchColumn = true;
160
164
  this.multipleEditionEnabled = true;
161
165
  }
162
166
  getGridHeaderSelectedBtns() {
@@ -209,12 +213,6 @@ const SnkGrid = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
209
213
  async getFilterBar() {
210
214
  return this._snkFilterBar;
211
215
  }
212
- /**
213
- * Abre o localizador de colunas
214
- */
215
- async findColumn() {
216
- await openFieldSearch(this._moreOptions, this._columnSearch);
217
- }
218
216
  /**
219
217
  * Registra um editor customizado para campos da grade e formulário
220
218
  */
@@ -513,11 +511,10 @@ const SnkGrid = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
513
511
  };
514
512
  return primaryButtonLookup[this.presentationMode];
515
513
  }
516
- getColumnSearch(actionButton, item) {
514
+ getColumnSearch(item) {
517
515
  if (this._columnSearch != undefined) {
518
516
  return this._columnSearch;
519
517
  }
520
- this._moreOptions = actionButton;
521
518
  this._columnSearch = buildFieldSearch(item, ({ argument }) => new Promise(accept => {
522
519
  this._grid.filterColumns(argument).then((columns) => {
523
520
  accept(columns
@@ -527,19 +524,12 @@ const SnkGrid = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
527
524
  }), (option) => {
528
525
  if (option != undefined) {
529
526
  this._grid.locateColumn(option.value);
530
- actionButton.hideActions();
531
527
  }
532
528
  });
533
529
  return this._columnSearch;
534
530
  }
535
531
  getActionsList() {
536
- const hardList = [{
537
- value: StringUtils.generateUUID(),
538
- label: this.messagesBuilder.getMessage("snkGrid.findColumn", {}),
539
- disableCloseOnSelect: true,
540
- eagerInitialize: true,
541
- itemBuilder: (actionButton, item) => this.getColumnSearch(actionButton, item)
542
- }];
532
+ const hardList = [];
543
533
  if (this.enableGridInsert) {
544
534
  hardList.push(this._continuousInsertUtils.actionContinuousInsert(this._enableContinuousInsert, () => {
545
535
  this._enableContinuousInsert = !this._enableContinuousInsert;
@@ -554,6 +544,16 @@ const SnkGrid = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
554
544
  }
555
545
  return hardList.concat(this.actionsList);
556
546
  }
547
+ getActionsSettingsList() {
548
+ const hardList = [{
549
+ value: StringUtils.generateUUID(),
550
+ label: this.messagesBuilder.getMessage("snkGrid.findColumn", {}),
551
+ disableCloseOnSelect: true,
552
+ eagerInitialize: true,
553
+ itemBuilder: (_, item) => this.getColumnSearch(item)
554
+ }];
555
+ return hardList;
556
+ }
557
557
  handleFilterConfigUpdated(filterConfig) {
558
558
  if (!filterConfig.length) {
559
559
  this._showSnkFilterBar = false;
@@ -577,8 +577,8 @@ const SnkGrid = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
577
577
  if (!this._dataUnit) {
578
578
  return undefined;
579
579
  }
580
- return (h("div", { class: "snk-grid__container ez-flex ez-flex--column ez-flex-item--auto ez-padding--large" }, h("div", { class: "snk-grid__header ez-margin-bottom--extra-small" }, this._showSnkFilterBar &&
581
- 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", "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' }, 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 }, 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 }, 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 }))));
580
+ 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 &&
581
+ 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 }, 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 }))));
582
582
  }
583
583
  get _element() { return this; }
584
584
  static get watchers() { return {
@@ -614,6 +614,7 @@ const SnkGrid = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
614
614
  "enableGridInsert": [4, "enable-grid-insert"],
615
615
  "outlineMode": [4, "outline-mode"],
616
616
  "strategyExporter": [1025, "strategy-exporter"],
617
+ "useSearchColumn": [4, "use-search-column"],
617
618
  "multipleEditionEnabled": [4, "multiple-edition-enabled"],
618
619
  "_dataUnit": [32],
619
620
  "_dataState": [32],
@@ -627,7 +628,6 @@ const SnkGrid = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
627
628
  "setConfig": [64],
628
629
  "reloadFilterBar": [64],
629
630
  "getFilterBar": [64],
630
- "findColumn": [64],
631
631
  "addCustomEditor": [64],
632
632
  "addGridCustomRender": [64],
633
633
  "addCustomValueFormatter": [64],
@@ -638,7 +638,7 @@ function defineCustomElement() {
638
638
  if (typeof customElements === "undefined") {
639
639
  return;
640
640
  }
641
- const components = ["snk-grid", "snk-actions-button", "snk-data-exporter", "snk-exporter-email-sender", "snk-expression-group", "snk-expression-item", "snk-filter-advanced-mode", "snk-filter-assistent-mode", "snk-filter-bar", "snk-filter-detail", "snk-filter-field-search", "snk-filter-item", "snk-filter-param-config", "snk-grid-config", "snk-personalized-filter", "snk-select-box", "snk-simple-bar", "snk-taskbar", "taskbar-actions-button"];
641
+ const components = ["snk-grid", "snk-actions-button", "snk-data-exporter", "snk-exporter-email-sender", "snk-expression-group", "snk-expression-item", "snk-filter-advanced-mode", "snk-filter-assistent-mode", "snk-filter-bar", "snk-filter-detail", "snk-filter-field-search", "snk-filter-item", "snk-filter-param-config", "snk-grid-config", "snk-personalized-filter", "snk-select-box", "snk-simple-bar", "snk-taskbar", "taskbar-actions-button", "taskbar-split-button"];
642
642
  components.forEach(tagName => { switch (tagName) {
643
643
  case "snk-grid":
644
644
  if (!customElements.get(tagName)) {
@@ -647,90 +647,95 @@ function defineCustomElement() {
647
647
  break;
648
648
  case "snk-actions-button":
649
649
  if (!customElements.get(tagName)) {
650
- defineCustomElement$i();
650
+ defineCustomElement$j();
651
651
  }
652
652
  break;
653
653
  case "snk-data-exporter":
654
654
  if (!customElements.get(tagName)) {
655
- defineCustomElement$h();
655
+ defineCustomElement$i();
656
656
  }
657
657
  break;
658
658
  case "snk-exporter-email-sender":
659
659
  if (!customElements.get(tagName)) {
660
- defineCustomElement$g();
660
+ defineCustomElement$h();
661
661
  }
662
662
  break;
663
663
  case "snk-expression-group":
664
664
  if (!customElements.get(tagName)) {
665
- defineCustomElement$f();
665
+ defineCustomElement$g();
666
666
  }
667
667
  break;
668
668
  case "snk-expression-item":
669
669
  if (!customElements.get(tagName)) {
670
- defineCustomElement$e();
670
+ defineCustomElement$f();
671
671
  }
672
672
  break;
673
673
  case "snk-filter-advanced-mode":
674
674
  if (!customElements.get(tagName)) {
675
- defineCustomElement$d();
675
+ defineCustomElement$e();
676
676
  }
677
677
  break;
678
678
  case "snk-filter-assistent-mode":
679
679
  if (!customElements.get(tagName)) {
680
- defineCustomElement$c();
680
+ defineCustomElement$d();
681
681
  }
682
682
  break;
683
683
  case "snk-filter-bar":
684
684
  if (!customElements.get(tagName)) {
685
- defineCustomElement$b();
685
+ defineCustomElement$c();
686
686
  }
687
687
  break;
688
688
  case "snk-filter-detail":
689
689
  if (!customElements.get(tagName)) {
690
- defineCustomElement$a();
690
+ defineCustomElement$b();
691
691
  }
692
692
  break;
693
693
  case "snk-filter-field-search":
694
694
  if (!customElements.get(tagName)) {
695
- defineCustomElement$9();
695
+ defineCustomElement$a();
696
696
  }
697
697
  break;
698
698
  case "snk-filter-item":
699
699
  if (!customElements.get(tagName)) {
700
- defineCustomElement$8();
700
+ defineCustomElement$9();
701
701
  }
702
702
  break;
703
703
  case "snk-filter-param-config":
704
704
  if (!customElements.get(tagName)) {
705
- defineCustomElement$7();
705
+ defineCustomElement$8();
706
706
  }
707
707
  break;
708
708
  case "snk-grid-config":
709
709
  if (!customElements.get(tagName)) {
710
- defineCustomElement$6();
710
+ defineCustomElement$7();
711
711
  }
712
712
  break;
713
713
  case "snk-personalized-filter":
714
714
  if (!customElements.get(tagName)) {
715
- defineCustomElement$5();
715
+ defineCustomElement$6();
716
716
  }
717
717
  break;
718
718
  case "snk-select-box":
719
719
  if (!customElements.get(tagName)) {
720
- defineCustomElement$4();
720
+ defineCustomElement$5();
721
721
  }
722
722
  break;
723
723
  case "snk-simple-bar":
724
724
  if (!customElements.get(tagName)) {
725
- defineCustomElement$3();
725
+ defineCustomElement$4();
726
726
  }
727
727
  break;
728
728
  case "snk-taskbar":
729
729
  if (!customElements.get(tagName)) {
730
- defineCustomElement$2();
730
+ defineCustomElement$3();
731
731
  }
732
732
  break;
733
733
  case "taskbar-actions-button":
734
+ if (!customElements.get(tagName)) {
735
+ defineCustomElement$2();
736
+ }
737
+ break;
738
+ case "taskbar-split-button":
734
739
  if (!customElements.get(tagName)) {
735
740
  defineCustomElement$1();
736
741
  }