@sankhyalabs/ezui 5.22.0-dev.123 → 5.22.0-dev.125

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 (92) hide show
  1. package/dist/cjs/{types-6a5df0c7.js → FormLayout-18853e70.js} +6 -0
  2. package/dist/cjs/ez-actions-button.cjs.entry.js +1 -2
  3. package/dist/cjs/ez-card-item_2.cjs.entry.js +12 -15
  4. package/dist/cjs/ez-collapsible-box.cjs.entry.js +1 -2
  5. package/dist/cjs/ez-combo-box-list_3.cjs.entry.js +2 -3
  6. package/dist/cjs/ez-combo-box.cjs.entry.js +1 -2
  7. package/dist/cjs/ez-form.cjs.entry.js +60 -5
  8. package/dist/cjs/ez-grid.cjs.entry.js +61 -12
  9. package/dist/cjs/ez-popover-plus_3.cjs.entry.js +31 -2
  10. package/dist/cjs/ez-search-plus.cjs.entry.js +4 -5
  11. package/dist/cjs/ez-search.cjs.entry.js +13 -3
  12. package/dist/cjs/ez-split-button.cjs.entry.js +15 -6
  13. package/dist/cjs/ez-split-item.cjs.entry.js +1 -2
  14. package/dist/cjs/ez-text-input.cjs.entry.js +16 -2
  15. package/dist/cjs/ezui.cjs.js +1 -1
  16. package/dist/cjs/loader.cjs.js +1 -1
  17. package/dist/cjs/{DataBinder-b9973a19.js → search-column-e9409a62.js} +31 -0
  18. package/dist/collection/components/ez-form/ez-form.js +95 -2
  19. package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +18 -1
  20. package/dist/collection/components/ez-grid/ez-grid.js +56 -4
  21. package/dist/collection/components/ez-popover-plus/subcomponent/ez-popover-core.js +12 -15
  22. package/dist/collection/components/ez-search/ez-search.js +12 -1
  23. package/dist/collection/components/ez-search/subcomponent/search-list/search-list.js +31 -2
  24. package/dist/collection/components/ez-split-button/ez-split-button.css +1 -1
  25. package/dist/collection/components/ez-split-button/ez-split-button.js +87 -10
  26. package/dist/collection/components/ez-text-input/ez-text-input.css +7 -0
  27. package/dist/collection/components/ez-text-input/ez-text-input.js +15 -1
  28. package/dist/collection/utils/index.js +1 -0
  29. package/dist/collection/utils/searchColumn/search-column.js +35 -0
  30. package/dist/custom-elements/index.js +223 -35
  31. package/dist/esm/{types-6f6b2650.js → FormLayout-071d324c.js} +7 -1
  32. package/dist/esm/ez-actions-button.entry.js +1 -2
  33. package/dist/esm/ez-card-item_2.entry.js +12 -15
  34. package/dist/esm/ez-collapsible-box.entry.js +1 -2
  35. package/dist/esm/ez-combo-box-list_3.entry.js +1 -2
  36. package/dist/esm/ez-combo-box.entry.js +1 -2
  37. package/dist/esm/ez-form.entry.js +59 -4
  38. package/dist/esm/ez-grid.entry.js +56 -7
  39. package/dist/esm/ez-popover-plus_3.entry.js +31 -2
  40. package/dist/esm/ez-search-plus.entry.js +1 -2
  41. package/dist/esm/ez-search.entry.js +13 -3
  42. package/dist/esm/ez-split-button.entry.js +15 -6
  43. package/dist/esm/ez-split-item.entry.js +1 -2
  44. package/dist/esm/ez-text-input.entry.js +16 -2
  45. package/dist/esm/ezui.js +1 -1
  46. package/dist/esm/loader.js +1 -1
  47. package/dist/esm/{DataBinder-1035e36f.js → search-column-d0a74266.js} +26 -1
  48. package/dist/ezui/ezui.esm.js +1 -1
  49. package/dist/ezui/p-07894c4a.entry.js +1 -0
  50. package/dist/ezui/p-1eb34cad.entry.js +1 -0
  51. package/dist/ezui/p-30ffb9ed.js +1 -0
  52. package/dist/ezui/p-341da682.entry.js +1 -0
  53. package/dist/ezui/p-35115d5d.entry.js +1 -0
  54. package/dist/ezui/p-41e3ecf5.entry.js +1 -0
  55. package/dist/ezui/p-4b67138e.entry.js +1 -0
  56. package/dist/ezui/p-64a9c36f.entry.js +1 -0
  57. package/dist/ezui/{p-bf9dec89.entry.js → p-69937816.entry.js} +1 -1
  58. package/dist/ezui/p-998afb6a.entry.js +1 -0
  59. package/dist/ezui/p-a3bf8cf1.entry.js +1 -0
  60. package/dist/ezui/p-b53571cc.entry.js +1 -0
  61. package/dist/ezui/{p-6b39b79a.entry.js → p-c0368531.entry.js} +46 -46
  62. package/dist/ezui/p-e3792c2a.js +1 -0
  63. package/dist/ezui/p-f2a3fcbe.entry.js +1 -0
  64. package/dist/types/components/ez-form/ez-form.d.ts +18 -0
  65. package/dist/types/components/ez-grid/controller/EzGridController.d.ts +1 -1
  66. package/dist/types/components/ez-grid/controller/ag-grid/AgGridController.d.ts +2 -1
  67. package/dist/types/components/ez-grid/ez-grid.d.ts +7 -0
  68. package/dist/types/components/ez-popover-plus/subcomponent/ez-popover-core.d.ts +1 -3
  69. package/dist/types/components/ez-search/ez-search.d.ts +1 -0
  70. package/dist/types/components/ez-search/subcomponent/search-list/search-list.d.ts +6 -0
  71. package/dist/types/components/ez-split-button/ez-split-button.d.ts +14 -2
  72. package/dist/types/components/ez-text-input/ez-text-input.d.ts +2 -0
  73. package/dist/types/components.d.ts +42 -0
  74. package/dist/types/utils/index.d.ts +1 -0
  75. package/dist/types/utils/searchColumn/search-column.d.ts +9 -0
  76. package/package.json +1 -1
  77. package/dist/cjs/FormLayout-c2451c7f.js +0 -7
  78. package/dist/esm/FormLayout-54092963.js +0 -7
  79. package/dist/ezui/p-15ea0c98.js +0 -1
  80. package/dist/ezui/p-173f68ea.js +0 -1
  81. package/dist/ezui/p-5895e687.js +0 -1
  82. package/dist/ezui/p-5a14f506.entry.js +0 -1
  83. package/dist/ezui/p-5ec0ae79.entry.js +0 -1
  84. package/dist/ezui/p-629d15ed.entry.js +0 -1
  85. package/dist/ezui/p-6754489a.entry.js +0 -1
  86. package/dist/ezui/p-a4cee65d.entry.js +0 -1
  87. package/dist/ezui/p-c00df4be.entry.js +0 -1
  88. package/dist/ezui/p-ebd23857.entry.js +0 -1
  89. package/dist/ezui/p-ecaac11f.entry.js +0 -1
  90. package/dist/ezui/p-f4861c6a.entry.js +0 -1
  91. package/dist/ezui/p-f5a30e35.entry.js +0 -1
  92. package/dist/ezui/p-f6316720.entry.js +0 -1
@@ -0,0 +1,35 @@
1
+ import { h } from '@stencil/core';
2
+ export const LABEL_SEARCH_FIELD = "Buscar campos (ctrl+F)";
3
+ export const LABEL_SEARCH_COLUMN = "Buscar colunas (Ctrl+F)";
4
+ export const SHORTCUT_SEARCH_FIELD = "ctrl+f";
5
+ export const SEARCH_FIELD_FULL_WIDTH = 240;
6
+ const SEARCH_FIELD_MARGIN_BOTTOM = "0px";
7
+ const SEARCH_FIELD_WIDTH = String(SEARCH_FIELD_FULL_WIDTH - 30) + "px";
8
+ export const buildFieldSearch = (action, optionLoader, onSelectField) => {
9
+ return h("ez-search", { class: 'ez-padding--small ez-margin--none', style: {
10
+ "--ez-text-input__margin-bottom": SEARCH_FIELD_MARGIN_BOTTOM,
11
+ "--ez-search--width": SEARCH_FIELD_WIDTH
12
+ }, canShowError: 'false', showSelectedValue: 'false', showOptionValue: 'false', suppressEmptyOption: 'true', label: action.label, value: null, optionLoader: optionLoader, onEzChange: (evt) => onSelectField(evt.detail), ignoreLimitCharsToSearch: true });
13
+ };
14
+ export const openFieldSearch = async (splitButton, field) => {
15
+ if (!splitButton) {
16
+ return;
17
+ }
18
+ const isOpen = await splitButton.isOpenedDropdown();
19
+ if (isOpen) {
20
+ await focusOnFieldSerch(field);
21
+ return;
22
+ }
23
+ await splitButton.toggleDropdown();
24
+ };
25
+ export const focusOnFieldSerch = async (field) => {
26
+ requestAnimationFrame(async () => {
27
+ if (field) {
28
+ const realElement = field['$elm$'];
29
+ if (!realElement)
30
+ return;
31
+ realElement.value = null;
32
+ await realElement.setFocus();
33
+ }
34
+ });
35
+ };
@@ -1,4 +1,4 @@
1
- import { HTMLElement as HTMLElement$1, createEvent, h, Host, forceUpdate, Fragment, proxyCustomElement } from '@stencil/core/internal/client';
1
+ import { h, HTMLElement as HTMLElement$1, createEvent, Host, forceUpdate, Fragment, proxyCustomElement } from '@stencil/core/internal/client';
2
2
  export { setAssetPath, setPlatformOptions } from '@stencil/core/internal/client';
3
3
  import { UserInterface, DateUtils as DateUtils$1, Action, StringUtils as StringUtils$1, ApplicationContext, ObjectUtils as ObjectUtils$1, WaitingChangeException, DataUnitAction, FloatingManager, ElementIDUtils, JSUtils, HTMLBuilder, TimeFormatter, KeyboardManager, ArrayUtils as ArrayUtils$1, DataUnit, LockManager, LockManagerOperation, DataType, NumberUtils as NumberUtils$1, MaskFormatter, SortMode, ColumnFilterManager as ColumnFilterManager$1, FieldComparator, OverflowWatcher, OVERFLOWED_CLASS_NAME } from '@sankhyalabs/core';
4
4
  import { SelectionMode } from '@sankhyalabs/core/dist/dataunit/DataUnit';
@@ -980,6 +980,30 @@ var FormLayout;
980
980
  FormLayout[FormLayout["SIDE_BY_SIDE"] = 1] = "SIDE_BY_SIDE";
981
981
  })(FormLayout || (FormLayout = {}));
982
982
 
983
+ const LABEL_SEARCH_FIELD = "Buscar campos (ctrl+F)";
984
+ const LABEL_SEARCH_COLUMN = "Buscar colunas (Ctrl+F)";
985
+ const SHORTCUT_SEARCH_FIELD = "ctrl+f";
986
+ const SEARCH_FIELD_FULL_WIDTH = 240;
987
+ const SEARCH_FIELD_MARGIN_BOTTOM = "0px";
988
+ const SEARCH_FIELD_WIDTH = String(SEARCH_FIELD_FULL_WIDTH - 30) + "px";
989
+ const buildFieldSearch = (action, optionLoader, onSelectField) => {
990
+ return h("ez-search", { class: 'ez-padding--small ez-margin--none', style: {
991
+ "--ez-text-input__margin-bottom": SEARCH_FIELD_MARGIN_BOTTOM,
992
+ "--ez-search--width": SEARCH_FIELD_WIDTH
993
+ }, canShowError: 'false', showSelectedValue: 'false', showOptionValue: 'false', suppressEmptyOption: 'true', label: action.label, value: null, optionLoader: optionLoader, onEzChange: (evt) => onSelectField(evt.detail), ignoreLimitCharsToSearch: true });
994
+ };
995
+ const focusOnFieldSerch = async (field) => {
996
+ requestAnimationFrame(async () => {
997
+ if (field) {
998
+ const realElement = field['$elm$'];
999
+ if (!realElement)
1000
+ return;
1001
+ realElement.value = null;
1002
+ await realElement.setFocus();
1003
+ }
1004
+ });
1005
+ };
1006
+
983
1007
  const ezActionsButtonCss = ":host{--ez-actions-button__actions-list--border-radius:var(--border--radius-medium, 12px);--ez-actions-button__actions-list--box-shadow:var(--shadow, 0px 0px 16px 0px #000);--ez-actions-button__actions-list--background-color:var(--background--xlight, #fff);--ez-actions-button__actions-list--padding:var(--space--small, 6px);--ez-actions-button__actions-list--top-margin:var(--space-small, 6px);--ez-actions-button__actions-list--z-index:var(--ez-elevation--8, 8);--ez-actions-button__actions-max-height:415px;--ez-actions-button__btn-action--min-width:'auto';--ez-actions-button__btn-action--background-color:var(--background--xlight, #fff);display:flex;flex-direction:column;height:fit-content;user-select:none}.ez-actions-button__actions-list{display:flex;flex-direction:column;position:fixed;width:fit-content;height:fit-content;overflow-y:auto;scrollbar-width:thin;z-index:var(--ez-actions-button__actions-list--z-index);padding:var(--ez-actions-button__actions-list--padding);margin-top:var(--ez-actions-button__actions-list--top-margin);background-color:var(--ez-actions-button__actions-list--background-color);border-radius:var(--ez-actions-button__actions-list--border-radius);box-shadow:var(--ez-actions-button__actions-list--box-shadow)}.ez-actions-button__actions-list--max-height{max-height:var(--ez-actions-button__actions-max-height)}.ez-actions-button__actions-list--lowered{margin-top:calc(var(--ez-actions-button__actions-list--top-margin) + 6px)}.ez-actions-button__btn-action{--ez-button--justify-content:flex-start;--ez-button--width:100%;--ez-button--min-width:var(--ez-actions-button__btn-action--min-width);--ez-button--background-color:var(--ez-actions-button__btn-action--background-color);--ez-button--font-weight:var(--text-weight--medium, 400);--ez-button--padding-left:var(--space--medium, 12px);--ez-button--padding-right:var(--space--medium, 12px)}.ez-actions-button__btn-action--spaced{--ez-button--padding-left:calc(var(--space--medium, 12px) + 24px)}.ez-actions-button__icon-right{margin-left:var(--space--small, 6px)}.ez-actions-button__icon-check,.ez-actions-button__icon-item{position:absolute;left:var(--space--medium, 12px)}.ez-actions-button__icon-check{color:var(--ez-button--hover-color)}.ez-actions-button__arrow{position:absolute;border-left:10px solid transparent;border-right:10px solid transparent;width:0;height:0;z-index:calc(var(--ez-actions-button__actions-list--z-index) + 1);border-bottom:15px solid var(--ez-actions-button__btn-action--background-color)}.ez-actions-button__arrow--upped{margin-top:calc((var(--ez-actions-button__actions-list--top-margin) + 2px) * -1)}.ez-actions-button__arrow--small{margin-left:6px}.ez-actions-button__arrow--medium{margin-left:11px}.ez-actions-button__arrow--large{margin-left:13px}.ez-actions-button__arrow:only-child{display:none}.ez-actions-button__btn-transparent{--ez-button--background-color:transparent;--ez-button--hover--background-color:transparent;--ez-button--active--background-color:transparent;--ez-button--focus--border:none}.ez-actions-button__btn-label{--ez-button--padding-left:var(--space--medium, 12px);--ez-button--padding-right:var(--space--medium, 12px)}.ez-actions-button__list-container{position:relative}.ez-actions-button--bottom-padding{padding-bottom:var(--space--small, 6px)}";
984
1008
 
985
1009
  const EzActionsButton$1 = class extends HTMLElement$1 {
@@ -5821,6 +5845,8 @@ const EzForm$1 = class extends HTMLElement$1 {
5821
5845
  this.recordsValidator = undefined;
5822
5846
  this.fieldToFocus = undefined;
5823
5847
  this.onlyStaticFields = false;
5848
+ this.useSearchField = true;
5849
+ this.elementFocusSearchField = undefined;
5824
5850
  }
5825
5851
  /**
5826
5852
  * Realiza validação no conteúdo de todos os campos.
@@ -5878,7 +5904,56 @@ const EzForm$1 = class extends HTMLElement$1 {
5878
5904
  }
5879
5905
  this.ezFormSetFields.emit(fields);
5880
5906
  const idFormSheet = `${StringUtils$1.replaceAccentuatedChars(StringUtils$1.toCamelCase(currentSheet === null || currentSheet === void 0 ? void 0 : currentSheet.label), false)}_selectorContainer`;
5881
- return (h("div", { class: "dynamic-content", "data-element-id": idFormSheet }, h("ez-form-view", { ref: (element) => (this._formView = element), class: "ez-row ez-padding-vertical--small", fields: fields, singleColumn: this._singleColumn, selectedRecord: this.dataUnit.getSelectedRecord() })));
5907
+ return (h("div", { class: "dynamic-content ez-box--no-outline", "data-element-id": idFormSheet, ref: elem => (this._container = elem), tabindex: "0" }, h("ez-popover", { ref: elem => (this._ezPopoverSearchField = elem), overlayType: "none" }, this.renderFieldColumn()), h("ez-form-view", { ref: (element) => (this._formView = element), class: "ez-row ez-padding-vertical--small", fields: fields, singleColumn: this._singleColumn, selectedRecord: this.dataUnit.getSelectedRecord() })));
5908
+ }
5909
+ renderFieldColumn() {
5910
+ if (this._fieldSearch != undefined) {
5911
+ return this._fieldSearch;
5912
+ }
5913
+ this._fieldSearch = buildFieldSearch({
5914
+ value: StringUtils$1.generateUUID(),
5915
+ label: LABEL_SEARCH_FIELD,
5916
+ }, ({ argument }) => this.fieldsOptionLoader(argument), (option) => this.onSelectField(option));
5917
+ return this._fieldSearch;
5918
+ }
5919
+ getFormFields() {
5920
+ var _a;
5921
+ return (_a = this.config) === null || _a === void 0 ? void 0 : _a.fields;
5922
+ }
5923
+ fieldsOptionLoader(argument) {
5924
+ const searchTerm = argument === null || argument === void 0 ? void 0 : argument.toLowerCase();
5925
+ const allFields = this.getFormFields().map(field => { var _a; return (_a = this.dataUnit) === null || _a === void 0 ? void 0 : _a.getField(field.name); });
5926
+ const filteredFields = allFields.filter(field => {
5927
+ var _a, _b;
5928
+ return ((_a = field.name) === null || _a === void 0 ? void 0 : _a.toLowerCase().includes(searchTerm)) ||
5929
+ ((_b = field.label) === null || _b === void 0 ? void 0 : _b.toLowerCase().includes(searchTerm));
5930
+ });
5931
+ const options = filteredFields.map(field => ({ value: field.name, label: field.label }));
5932
+ return Promise.resolve(options);
5933
+ }
5934
+ onSelectField(option) {
5935
+ if (option == undefined || option.value == undefined) {
5936
+ this.fieldToFocus = "";
5937
+ return;
5938
+ }
5939
+ this.fieldToFocus = option.value;
5940
+ this._ezPopoverSearchField.hide();
5941
+ }
5942
+ async initKeyboardManager() {
5943
+ var _a, _b;
5944
+ this._keyboardManager = new KeyboardManager({ propagate: false, element: (_a = this.elementFocusSearchField) !== null && _a !== void 0 ? _a : this._element });
5945
+ if (this.useSearchField) {
5946
+ this._keyboardManager.bind(SHORTCUT_SEARCH_FIELD, async () => {
5947
+ if (!this._container || !this._ezPopoverSearchField)
5948
+ return;
5949
+ const container = this._container.getBoundingClientRect();
5950
+ await focusOnFieldSerch(this._fieldSearch);
5951
+ this._ezPopoverSearchField.showUnder(this._container, { horizontalGap: container.width - (SEARCH_FIELD_FULL_WIDTH), verticalGap: container.height * -1 });
5952
+ }, { description: LABEL_SEARCH_FIELD, element: (_b = this.elementFocusSearchField) !== null && _b !== void 0 ? _b : this._element });
5953
+ }
5954
+ }
5955
+ componentDidLoad() {
5956
+ this.initKeyboardManager();
5882
5957
  }
5883
5958
  processMetadata() {
5884
5959
  if (this.bindFields() && this.dataUnit && this._store) {
@@ -5961,6 +6036,7 @@ const EzForm$1 = class extends HTMLElement$1 {
5961
6036
  requestAnimationFrame(() => {
5962
6037
  this._dataBinder.setFocus(this.fieldToFocus);
5963
6038
  this.ezFormRequestClearFieldToFocus.emit();
6039
+ this.fieldToFocus = null;
5964
6040
  });
5965
6041
  }
5966
6042
  setFieldsProps() {
@@ -5975,8 +6051,10 @@ const EzForm$1 = class extends HTMLElement$1 {
5975
6051
  }
5976
6052
  }
5977
6053
  disconnectedCallback() {
6054
+ var _a;
5978
6055
  this.dataUnit.unsubscribe(this.onDataUnitAction);
5979
6056
  this._dataBinder.onDisconnectedCallback();
6057
+ (_a = this._keyboardManager) === null || _a === void 0 ? void 0 : _a.unbindAllShortcutKeys();
5980
6058
  }
5981
6059
  buildIdTabSelector(tabs) {
5982
6060
  if (tabs) {
@@ -71093,8 +71171,25 @@ class AgGridController {
71093
71171
  getGridConfig() {
71094
71172
  return this._gridConfig;
71095
71173
  }
71096
- locateColumn(columnName) {
71174
+ locateColumn(columnName, gridElement) {
71097
71175
  this._gridOptions.api.ensureColumnVisible(columnName);
71176
+ requestAnimationFrame(() => {
71177
+ this.highlightColumnHeader(columnName, gridElement);
71178
+ });
71179
+ }
71180
+ highlightColumnHeader(columnName, gridElement) {
71181
+ const headerElement = gridElement.querySelector(`.ag-header-cell[col-id="${columnName}"]`);
71182
+ if (!headerElement)
71183
+ return;
71184
+ headerElement.classList.add("ez-grid__column-highlight-header");
71185
+ headerElement.setAttribute("tabindex", "0");
71186
+ const removeHighlight = (event) => {
71187
+ if (!headerElement.contains(event.target)) {
71188
+ headerElement.classList.remove("ez-grid__column-highlight-header");
71189
+ document.removeEventListener("click", removeHighlight);
71190
+ }
71191
+ };
71192
+ document.addEventListener("click", removeHighlight);
71098
71193
  }
71099
71194
  getSort(_dataUnitName, defaultSorting) {
71100
71195
  const sortedColumns = [];
@@ -72481,6 +72576,7 @@ const EzGrid$1 = class extends HTMLElement$1 {
72481
72576
  this.outlineMode = false;
72482
72577
  this.enableRowTableStriped = true;
72483
72578
  this.compact = false;
72579
+ this.useSearchColumn = true;
72484
72580
  }
72485
72581
  /**
72486
72582
  * Aplica a definição de colunas.
@@ -72534,7 +72630,7 @@ const EzGrid$1 = class extends HTMLElement$1 {
72534
72630
  * Localiza determinada coluna tornando-a visível.
72535
72631
  */
72536
72632
  async locateColumn(columnName) {
72537
- this._gridController.locateColumn(columnName);
72633
+ this._gridController.locateColumn(columnName, this._element);
72538
72634
  }
72539
72635
  /**
72540
72636
  * Usa um argumento para filtrar as colunas po label
@@ -73032,11 +73128,43 @@ const EzGrid$1 = class extends HTMLElement$1 {
73032
73128
  this.nextPage();
73033
73129
  }
73034
73130
  }, { description: "Avança para a próxima página.", element: this._element });
73131
+ if (this.useSearchColumn) {
73132
+ this._keyboardManager.bind(SHORTCUT_SEARCH_FIELD, async () => {
73133
+ if (!this._container || !this._ezPopoverSearchColumn)
73134
+ return;
73135
+ const container = this._container.getBoundingClientRect();
73136
+ await focusOnFieldSerch(this._columnSearch);
73137
+ this._ezPopoverSearchColumn.showUnder(this._container, { horizontalGap: container.width - (SEARCH_FIELD_FULL_WIDTH), verticalGap: container.height * -1 });
73138
+ }, { description: LABEL_SEARCH_COLUMN, element: this._element });
73139
+ }
73035
73140
  }
73036
73141
  async removeShortcuts() {
73037
73142
  var _a;
73038
73143
  (_a = this._keyboardManager) === null || _a === void 0 ? void 0 : _a.unbindAllShortcutKeys();
73039
73144
  }
73145
+ renderFieldSearchColumn() {
73146
+ this._columnSearch = buildFieldSearch({
73147
+ value: StringUtils$1.generateUUID(),
73148
+ label: LABEL_SEARCH_COLUMN,
73149
+ }, ({ argument }) => new Promise(accept => {
73150
+ this.filterColumns(argument).then((columns) => {
73151
+ accept(columns
73152
+ .filter(column => !column.hidden)
73153
+ .map(column => ({ label: column.label, value: column.name })));
73154
+ });
73155
+ }), async (option) => {
73156
+ if (option != undefined && option.value != undefined) {
73157
+ await this.locateColumn(option.value);
73158
+ if (this._ezPopoverSearchColumn) {
73159
+ this._ezPopoverSearchColumn.hide();
73160
+ }
73161
+ if (this._container) {
73162
+ requestAnimationFrame(() => this._container.focus());
73163
+ }
73164
+ }
73165
+ });
73166
+ return this._columnSearch;
73167
+ }
73040
73168
  render() {
73041
73169
  var _a;
73042
73170
  return (h(Host, { "no-header": this.hideHeader() }, h("div", { class: {
@@ -73045,11 +73173,11 @@ const EzGrid$1 = class extends HTMLElement$1 {
73045
73173
  'shadow-mode': !this.outlineMode,
73046
73174
  'no-padding': this.compact,
73047
73175
  'header-overlay': !this.hideHeader(),
73048
- }, ref: elem => (this._container = elem) }), h("div", { class: {
73176
+ }, ref: elem => (this._container = elem), tabindex: "0" }), h("div", { class: {
73049
73177
  'ez-box ez-padding--small grid-header': true,
73050
73178
  'outline-mode': this.outlineMode,
73051
73179
  'shadow-mode': !this.outlineMode && !this.hideHeader(),
73052
- } }, h("filter-column", { class: "grid-header__popover", noHeaderTaskBar: !this._hasLeftButtons, dataSource: this.getDataSource(), dataUnit: this.dataUnit, gridHeaderHidden: this.hideHeader(), ref: (element) => (this._filterColumn = element) }), h("div", { class: "grid-header__position" }, h("div", { class: `grid-header__container grid-header__left-container ${this.resolveLeftHeaderClass()}` }, h("slot", { name: "leftButtons" })), this.getPaginationControl())), h("div", { ref: (ref) => (this._gridSelectionCounter = ref), class: `grid__selection-counter ez-elevation--4
73180
+ }, tabindex: "0" }, h("filter-column", { class: "grid-header__popover", noHeaderTaskBar: !this._hasLeftButtons, dataSource: this.getDataSource(), dataUnit: this.dataUnit, gridHeaderHidden: this.hideHeader(), ref: (element) => (this._filterColumn = element) }), h("div", { class: "grid-header__position" }, h("div", { class: `grid-header__container grid-header__left-container ${this.resolveLeftHeaderClass()}` }, h("slot", { name: "leftButtons" })), this.getPaginationControl())), h("ez-popover", { ref: elem => (this._ezPopoverSearchColumn = elem), overlayType: "none" }, this.renderFieldSearchColumn()), h("div", { ref: (ref) => (this._gridSelectionCounter = ref), class: `grid__selection-counter ez-elevation--4
73053
73181
  ${this._showSelectionCounter ? 'grid__selection-counter--opened' : ''}
73054
73182
  ` }, h(SelectionCounter, { selectionCount: this._selectionCount, currentPageSelected: this._currentPageSelected, paginationInfo: this._paginationInfo, canSelectAll: (_a = this.selectionToastConfig) === null || _a === void 0 ? void 0 : _a.canSelectAll, allRecordSelected: this._isAllSelection, onSelectAll: () => this.onSelectAllRecords(), onSelectPage: () => this.onSelectPageRecords(), onClearAll: () => this.onClearSelectedRecords(), onClose: () => (this._showSelectionCounter = false) })), h("div", { class: "grid__footer" }, h("slot", { name: "footer" }))));
73055
73183
  }
@@ -75922,7 +76050,6 @@ const EzPopoverCore$1 = class extends HTMLElement$1 {
75922
76050
  this.__registerHost();
75923
76051
  this.__attachShadow();
75924
76052
  this.ezVisibilityChange = createEvent(this, "ezVisibilityChange", 7);
75925
- this.TIME_DEBOUNCE = 500;
75926
76053
  this.autoClose = true;
75927
76054
  this.boxWidth = "fit-content";
75928
76055
  this.opened = false;
@@ -76026,11 +76153,6 @@ const EzPopoverCore$1 = class extends HTMLElement$1 {
76026
76153
  return;
76027
76154
  }
76028
76155
  const currentAnchorElement = this.getAnchorElement();
76029
- if (this.useAnchorSize) {
76030
- const anchorSize = currentAnchorElement.getBoundingClientRect().width;
76031
- const width = anchorSize < this.minWidth ? this.minWidth : anchorSize;
76032
- this._box.style.width = `${width}px`;
76033
- }
76034
76156
  await computePosition(currentAnchorElement, this._box, {
76035
76157
  placement: this.options.fromRight ? 'bottom-end' : 'bottom-start',
76036
76158
  middleware: [flip(), shift({ padding: 5 })],
@@ -76058,6 +76180,12 @@ const EzPopoverCore$1 = class extends HTMLElement$1 {
76058
76180
  }
76059
76181
  this._box.style.display = 'flex';
76060
76182
  this._box.style.visibility = 'hidden';
76183
+ if (this.useAnchorSize) {
76184
+ const currentAnchorElement = this.getAnchorElement();
76185
+ const anchorSize = currentAnchorElement.getBoundingClientRect().width;
76186
+ const width = anchorSize < this.minWidth ? this.minWidth : anchorSize;
76187
+ this._box.style.width = `${width}px`;
76188
+ }
76061
76189
  await this.updatePositionPopover();
76062
76190
  this.openOverlay();
76063
76191
  this.ezVisibilityChange.emit(true);
@@ -76084,18 +76212,15 @@ const EzPopoverCore$1 = class extends HTMLElement$1 {
76084
76212
  }
76085
76213
  return false;
76086
76214
  }
76087
- updatePositionDebounce() {
76215
+ handlePositionUpdate() {
76088
76216
  if (!this.opened) {
76089
76217
  return;
76090
76218
  }
76091
- clearTimeout(this._timeoutDebounce);
76092
- this._timeoutDebounce = setTimeout(() => {
76093
- this.updatePositionPopover();
76094
- }, this.TIME_DEBOUNCE);
76219
+ this.updatePositionPopover();
76095
76220
  }
76096
76221
  componentWillLoad() {
76097
- window.addEventListener('scroll', this.updatePositionDebounce.bind(this), true);
76098
- window.addEventListener('resize', this.updatePositionDebounce.bind(this), true);
76222
+ window.addEventListener('scroll', this.handlePositionUpdate.bind(this), true);
76223
+ window.addEventListener('resize', this.handlePositionUpdate.bind(this), true);
76099
76224
  }
76100
76225
  componentDidLoad() {
76101
76226
  this._overlayIsActive = this.checkStatusOverlay();
@@ -76104,8 +76229,8 @@ const EzPopoverCore$1 = class extends HTMLElement$1 {
76104
76229
  this.openPopover();
76105
76230
  }
76106
76231
  disconnectedCallback() {
76107
- window.removeEventListener('scroll', this.updatePositionDebounce.bind(this), true);
76108
- window.removeEventListener('resize', this.updatePositionDebounce.bind(this), true);
76232
+ window.removeEventListener('scroll', this.handlePositionUpdate.bind(this), true);
76233
+ window.removeEventListener('resize', this.handlePositionUpdate.bind(this), true);
76109
76234
  this._resizeObserver.disconnect();
76110
76235
  }
76111
76236
  render() {
@@ -77053,6 +77178,16 @@ const EzSearch$1 = class extends HTMLElement$1 {
77053
77178
  return;
77054
77179
  });
77055
77180
  });
77181
+ this._intersectionObserver = new IntersectionObserver((entries) => {
77182
+ entries.forEach(entry => {
77183
+ if (!entry.isIntersecting && this._ezPopOverPlusElement) {
77184
+ this._ezPopOverPlusElement.hide();
77185
+ }
77186
+ });
77187
+ }, { threshold: 0.1 });
77188
+ if (this._textInput) {
77189
+ this._intersectionObserver.observe(this._textInput);
77190
+ }
77056
77191
  await this.handleInitialValue();
77057
77192
  if (this.autoFocus) {
77058
77193
  requestAnimationFrame(() => {
@@ -77061,8 +77196,9 @@ const EzSearch$1 = class extends HTMLElement$1 {
77061
77196
  }
77062
77197
  }
77063
77198
  disconnectedCallback() {
77064
- var _a;
77199
+ var _a, _b;
77065
77200
  (_a = this._resizeObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
77201
+ (_b = this._intersectionObserver) === null || _b === void 0 ? void 0 : _b.disconnect();
77066
77202
  }
77067
77203
  //---------------------------------------------
77068
77204
  // Event handlers
@@ -77855,7 +77991,7 @@ const EzSkeleton$1 = class extends HTMLElement$1 {
77855
77991
  static get style() { return ezSkeletonCss; }
77856
77992
  };
77857
77993
 
77858
- const ezSplitButtonCss = ":host{--ez-split-button--min-width:24;--ez-split-button--width:'auto';--ez-split-button__medium--height:32px;--ez-split-button__large--height:42px;--ez-split-button__medium-icon--width:40px;--ez-split-button__large-icon--width:44px;--ez-split-button__inline__icon--gap:6px;--ez-split-button__label--padding-top:0px;--ez-split-button__label--padding-bottom:0px;--ez-split-button__right-button--padding-left:8px;--ez-split-button--color:var(--title--primary, #2B3A54);--ez-split-button--font-size:var(--text--small, 12px);--ez-split-button--font-family:var(--font-pattern, Arial);--ez-split-button--font-weight:var(--text-weight--large);--ez-split-button--background-color:var(--background--light, #ffffff);--ez-split-button--border-radius:var(--border--radius-large, 24px);--ez-split-button--border:1px solid var(--color--strokes);--ez-split-button--justify-content:center;--ez-split-button--hover-color:var(--color--primary-600, #007a5a);--ez-split-button--hover--background-color:var(--background--light, #ffffff);--ez-split-button--disabled-color:var(--text--primary);--ez-split-button--disabled--background-color:var(--background--medium);--ez-split-button--focus--border:var(--border--medium, 2px) var(--color--primary-300);--ez-split-button--focus--box-shadow:none;--ez-split-button--active-color:var(--color--primary-700);--ez-split-button--active--background-color:var(--background--strong)}ez-icon{--ez-icon--color:inherit}button{position:relative;display:flex;align-items:center;margin:0;cursor:pointer;transition:background-color 0.2s linear;white-space:nowrap;min-width:var(--ez-split-button--min-width);width:var(--ez-split-button--width);height:var(--ez-split-button__medium--height);font-family:var(--ez-split-button--font-family);font-size:var(--ez-split-button--font-size);font-weight:var(--ez-split-button--font-weight);padding:var(--ez-split-button__label--padding-top) 0 var(--ez-split-button__label--padding-bottom) 0;border-top-left-radius:var(--ez-split-button--border-radius);border-bottom-left-radius:var(--ez-split-button--border-radius);background-color:var(--ez-split-button--background-color);color:var(--ez-split-button--color);fill:var(--ez-split-button--color);border:none;justify-content:var(--ez-split-button--justify-content)}label{cursor:pointer}button:active{outline:none;box-shadow:none;background-color:var(--ez-split-button--active--background-color);color:var(--ez-split-button--active-color);fill:var(--ez-split-button--active-color);--ez-icon--color:var(--ez-split-button--active-color)}.ez-split-button__left-button{border:var(--ez-split-button--border);border-right:none;outline:none}.ez-split-button__right-button{border:var(--ez-split-button--border);border-left:none;outline:none}.ez-split-button__left-button:focus{box-shadow:0 0 0 2px var(--color--primary-300), \n 0 2px 0 0 var(--color--primary-300), \n 0 -2px 0 0 var(--color--primary-300);}.ez-split-button__right-button:focus{box-shadow:2px 0 0 0 var(--color--primary-300), \n 0 2px 0 0 var(--color--primary-300), \n 0 -2px 0 0 var(--color--primary-300);}.ez-split-button__left-button:hover,.ez-split-button__right-button:hover{outline:none;background-color:var(--ez-split-button--hover--background-color);color:var(--ez-split-button--hover-color);fill:var(--ez-split-button--hover-color);--ez-icon--color:var(--ez-split-button--hover-color)}.ez-split-button__left-button:active,.ez-split-button__right-button:active{outline:none;box-shadow:none;background-color:var(--ez-split-button--active--background-color);color:var(--ez-split-button--active-color);fill:var(--ez-split-button--active-color);--ez-icon--color:var(--ez-split-button--active-color)}.ez-split-button__left-button:disabled,.ez-split-button__left-button:disabled label,.ez-split-button__right-button:disabled{background-color:var(--ez-split-button--disabled--background-color);color:var(--ez-split-button--disabled-color);fill:var(--ez-split-button--disabled-color);border:none;--ez-icon--color:var(--ez-split-button--disabled-color);cursor:not-allowed}.ez-split-button__left-button:disabled{border:var(--ez-split-button--disabled-border);border-right:none}.ez-split-button__right-button:disabled{border:var(--ez-split-button--disabled-border);border-left:none}button.large{height:var(--ez-split-button__large--height)}button.medium{height:var(--ez-split-button__medium--height)}.default label{padding:var(--ez-split-button__label--padding-top) 12px var(--ez-split-button__label--padding-bottom) 20px}.icon-left{gap:var(--ez-split-button__inline__icon--gap)}.icon-left label{padding-right:12px}.icon-left ez-icon{padding-left:20px}.icon-only{padding-left:12px;padding-right:12px}.ez-split-button__right-button{border-top-right-radius:var(--ez-split-button--border-radius);border-bottom-right-radius:var(--ez-split-button--border-radius);border-top-left-radius:0;border-bottom-left-radius:0;border-right:var(--ez-split-button--border)}.ez-split-button__right-button--medium{min-width:var(--ez-split-button__medium-icon--width)}.ez-split-button__right-button--large{min-width:var(--ez-split-button__large-icon--width)}.ez-split-button__right-button--divider{top:10%;bottom:10%}.ez-split-button__right-button--divider:before{content:\"\";position:absolute;left:0;border-left:1px solid rgba(0, 0, 0, 20%);border-radius:2px;height:75%}.btn-icon--medium{min-width:--ez-split-button__medium-icon--width}.btn-icon--large{min-width:--ez-split-button__large-icon--width}.ez-split-button__right-button-container{position:absolute;left:0;padding-left:var(--ez-split-button__right-button--padding-left)}.label-icon{display:flex;flex-direction:row;align-items:center;color:var(--ez-split-button--color)}.label-icon:active{color:var(--ez-split-button--active-color);fill:var(--ez-split-button--active-color);--ez-icon--color:var(--ez-split-button--active-color)}.dropdown{display:flex}.dropdown-content{display:block;position:absolute;background-color:#f1f1f1;min-width:160px;z-index:--ez-elevation--8;border-radius:var(--ez-split-button--border-radius)}.dropdown-content>ez-dropdown{position:relative}";
77994
+ const ezSplitButtonCss = ":host{--ez-split-button--min-width:24;--ez-split-button--width:'auto';--ez-split-button__medium--height:32px;--ez-split-button__large--height:42px;--ez-split-button__medium-icon--width:40px;--ez-split-button__large-icon--width:44px;--ez-split-button__inline__icon--gap:6px;--ez-split-button__label--padding-top:0px;--ez-split-button__label--padding-bottom:0px;--ez-split-button__right-button--padding-left:8px;--ez-split-button--color:var(--title--primary, #2B3A54);--ez-split-button--font-size:var(--text--small, 12px);--ez-split-button--font-family:var(--font-pattern, Arial);--ez-split-button--font-weight:var(--text-weight--large);--ez-split-button--background-color:var(--background--light, #ffffff);--ez-split-button--border-radius:var(--border--radius-large, 24px);--ez-split-button--border:1px solid var(--color--strokes);--ez-split-button--justify-content:center;--ez-split-button--hover-color:var(--color--primary-600, #007a5a);--ez-split-button--hover--background-color:var(--background--light, #ffffff);--ez-split-button--disabled-color:var(--text--primary);--ez-split-button--disabled--background-color:var(--background--medium);--ez-split-button--focus--border:var(--border--medium, 2px) var(--color--primary-300);--ez-split-button--focus--box-shadow:none;--ez-split-button--active-color:var(--color--primary-700);--ez-split-button--active--background-color:var(--background--strong)}ez-icon{--ez-icon--color:inherit}button{position:relative;display:flex;align-items:center;margin:0;cursor:pointer;transition:background-color 0.2s linear;white-space:nowrap;min-width:var(--ez-split-button--min-width);width:var(--ez-split-button--width);height:var(--ez-split-button__medium--height);font-family:var(--ez-split-button--font-family);font-size:var(--ez-split-button--font-size);font-weight:var(--ez-split-button--font-weight);padding:var(--ez-split-button__label--padding-top) 0 var(--ez-split-button__label--padding-bottom) 0;border-top-left-radius:var(--ez-split-button--border-radius);border-bottom-left-radius:var(--ez-split-button--border-radius);background-color:var(--ez-split-button--background-color);color:var(--ez-split-button--color);fill:var(--ez-split-button--color);border:none;justify-content:var(--ez-split-button--justify-content)}label{cursor:pointer}button:active{outline:none;box-shadow:none;background-color:var(--ez-split-button--active--background-color);color:var(--ez-split-button--active-color);fill:var(--ez-split-button--active-color);--ez-icon--color:var(--ez-split-button--active-color)}.ez-split-button__left-button{border:var(--ez-split-button--border);border-right:none;outline:none}.ez-split-button__right-button{border:var(--ez-split-button--border);border-left:none;outline:none}.ez-split-button__left-button:focus{box-shadow:0 0 0 2px var(--color--primary-300), \n 0 2px 0 0 var(--color--primary-300), \n 0 -2px 0 0 var(--color--primary-300);}.ez-split-button__right-button:focus{box-shadow:2px 0 0 0 var(--color--primary-300), \n 0 2px 0 0 var(--color--primary-300), \n 0 -2px 0 0 var(--color--primary-300);}.ez-split-button__left-button:hover,.ez-split-button__right-button:hover{outline:none;background-color:var(--ez-split-button--hover--background-color);color:var(--ez-split-button--hover-color);fill:var(--ez-split-button--hover-color);--ez-icon--color:var(--ez-split-button--hover-color)}.ez-split-button__left-button:active,.ez-split-button__right-button:active{outline:none;box-shadow:none;background-color:var(--ez-split-button--active--background-color);color:var(--ez-split-button--active-color);fill:var(--ez-split-button--active-color);--ez-icon--color:var(--ez-split-button--active-color)}.ez-split-button__left-button:disabled,.ez-split-button__left-button:disabled label,.ez-split-button__right-button:disabled{background-color:var(--ez-split-button--disabled--background-color);color:var(--ez-split-button--disabled-color);fill:var(--ez-split-button--disabled-color);border:none;--ez-icon--color:var(--ez-split-button--disabled-color);cursor:not-allowed}.ez-split-button__left-button:disabled{border:var(--ez-split-button--disabled-border);border-right:none}.ez-split-button__right-button:disabled{border:var(--ez-split-button--disabled-border);border-left:none}button.large{height:var(--ez-split-button__large--height)}button.medium{height:var(--ez-split-button__medium--height)}.default label{padding:var(--ez-split-button__label--padding-top) 12px var(--ez-split-button__label--padding-bottom) 20px}.icon-left{gap:var(--ez-split-button__inline__icon--gap)}.icon-left label{padding-right:12px}.icon-left ez-icon{padding-left:20px}.icon-only{padding-left:12px;padding-right:12px}.ez-split-button__right-button{border-top-right-radius:var(--ez-split-button--border-radius);border-bottom-right-radius:var(--ez-split-button--border-radius);border-top-left-radius:0;border-bottom-left-radius:0;border-right:var(--ez-split-button--border)}.ez-split-button__right-button--medium{min-width:var(--ez-split-button__medium-icon--width)}.ez-split-button__right-button--large{min-width:var(--ez-split-button__large-icon--width)}.ez-split-button__right-button--divider{top:10%;bottom:10%}.ez-split-button__right-button--divider:before{content:\"\";position:absolute;left:0;border-left:1px solid rgba(0, 0, 0, 20%);border-radius:2px;height:75%}.btn-icon--medium{min-width:--ez-split-button__medium-icon--width}.btn-icon--large{min-width:--ez-split-button__large-icon--width}.ez-split-button__right-button-container{position:absolute;left:0;padding-left:var(--ez-split-button__right-button--padding-left)}.label-icon{display:flex;flex-direction:row;align-items:center;color:var(--ez-split-button--color)}.label-icon:active{color:var(--ez-split-button--active-color);fill:var(--ez-split-button--active-color);--ez-icon--color:var(--ez-split-button--active-color)}.dropdown{display:flex}.dropdown-content{display:block;position:absolute;background-color:#f1f1f1;min-width:160px;z-index:var(--ez-elevation--8);border-radius:var(--ez-split-button--border-radius)}.dropdown-content>ez-dropdown{position:relative}";
77859
77995
 
77860
77996
  const EzSplitButton$1 = class extends HTMLElement$1 {
77861
77997
  constructor() {
@@ -77876,6 +78012,7 @@ const EzSplitButton$1 = class extends HTMLElement$1 {
77876
78012
  this.rightTitle = 'Mais opções';
77877
78013
  this.mode = 'default';
77878
78014
  this.size = 'medium';
78015
+ this.itemBuilder = undefined;
77879
78016
  }
77880
78017
  /**
77881
78018
  * Remove o foco de ambos os botões.
@@ -77896,6 +78033,18 @@ const EzSplitButton$1 = class extends HTMLElement$1 {
77896
78033
  async setRightButtonFocus() {
77897
78034
  this.rightButton.focus();
77898
78035
  }
78036
+ /**
78037
+ * Abre ou Fecha o dropdown do Split Button.
78038
+ */
78039
+ async toggleDropdown() {
78040
+ this.show = !this.show;
78041
+ }
78042
+ /**
78043
+ * Informa se a lista de ações está aberta.
78044
+ */
78045
+ async isOpenedDropdown() {
78046
+ return this.show;
78047
+ }
77899
78048
  clickListener(evt) {
77900
78049
  if (!this.enabled) {
77901
78050
  evt.preventDefault();
@@ -77912,16 +78061,12 @@ const EzSplitButton$1 = class extends HTMLElement$1 {
77912
78061
  closeDropdown() {
77913
78062
  this.show = false;
77914
78063
  }
77915
- toggleDropdown() {
77916
- this.show = !this.show;
77917
- }
77918
78064
  handleButtonClick() {
77919
78065
  this.buttonClick.emit();
77920
78066
  }
77921
78067
  handleDropdownItemClick(evt) {
77922
78068
  this.dropdownItemClick.emit(evt.detail);
77923
78069
  evt.stopPropagation();
77924
- this.closeDropdown();
77925
78070
  }
77926
78071
  handleDropdownSubActionClick(evt) {
77927
78072
  this.dropdownSubActionClick.emit(evt.detail);
@@ -78003,7 +78148,7 @@ const EzSplitButton$1 = class extends HTMLElement$1 {
78003
78148
  const hasIconButton = this.shouldShowIconOnLeftButton();
78004
78149
  const hasLabelButton = this.shouldShowLabelOnLeftButton();
78005
78150
  const iconSize = this.getIconSize();
78006
- return (h("div", { class: "label-icon" }, h("button", { class: `ez-split-button__left-button ${iconSize} ${this.mode}`, title: this.leftTitle || this.label, type: "button", disabled: !this.enabled, onClick: () => { this.handleButtonClick(); }, ref: el => (this.leftButton = el) }, hasIconButton && h("ez-icon", { href: this.image, iconName: this.iconName, size: iconSize }), hasLabelButton && h("label", { title: this.leftTitle || this.label }, this.label)), h("div", { class: "dropdown" }, h("button", { class: `ez-split-button__right-button ${iconSize} ez-split-button__right-button--${iconSize} ez-split-button__right-button--divider`, title: this.rightTitle || this.rightDefaultTitle, type: "button", disabled: !this.enabled, onClick: () => { this.toggleDropdown(); }, ref: el => (this.rightButton = el) }, h("ez-icon", { class: `ez-split-button__right-button-container ` + (iconSize ? `btn-icon--${iconSize}` : ''), iconName: 'chevron-down', size: iconSize })), h("div", { class: `dropdown-content dropdown-content--${this.size}`, ref: (ref) => (this.dropdownParent = ref) }, this.show && (h("ez-dropdown", { items: this.items, onClick: evt => { evt.stopPropagation(); }, onEzOutsideClick: () => { this.closeDropdown(); }, onEzClick: evt => { this.handleDropdownItemClick(evt); }, onEzSubActionClick: evt => { this.handleDropdownSubActionClick(evt); } }))))));
78151
+ return (h("div", { class: "label-icon" }, h("button", { class: `ez-split-button__left-button ${iconSize} ${this.mode}`, title: this.leftTitle || this.label, type: "button", disabled: !this.enabled, onClick: () => { this.handleButtonClick(); }, ref: el => (this.leftButton = el) }, hasIconButton && h("ez-icon", { href: this.image, iconName: this.iconName, size: iconSize }), hasLabelButton && h("label", { title: this.leftTitle || this.label }, this.label)), h("div", { class: "dropdown" }, h("button", { class: `ez-split-button__right-button ${iconSize} ez-split-button__right-button--${iconSize} ez-split-button__right-button--divider`, title: this.rightTitle || this.rightDefaultTitle, type: "button", disabled: !this.enabled, onClick: () => { this.toggleDropdown(); }, ref: el => (this.rightButton = el) }, h("ez-icon", { class: `ez-split-button__right-button-container ` + (iconSize ? `btn-icon--${iconSize}` : ''), iconName: 'chevron-down', size: iconSize })), h("div", { class: `dropdown-content dropdown-content--${this.size}`, ref: (ref) => (this.dropdownParent = ref) }, this.show && (h("ez-dropdown", { items: this.items, onClick: evt => { evt.stopPropagation(); }, onEzOutsideClick: () => { this.closeDropdown(); }, onEzClick: evt => { this.handleDropdownItemClick(evt); }, onEzSubActionClick: evt => { this.handleDropdownSubActionClick(evt); }, itemBuilder: this.itemBuilder }))))));
78007
78152
  }
78008
78153
  shouldShowLabelOnLeftButton() {
78009
78154
  return ['icon-left', 'default'].includes(this.mode);
@@ -79516,7 +79661,7 @@ const EzTextEdit$1 = class extends HTMLElement$1 {
79516
79661
  static get style() { return ezTextEditCss; }
79517
79662
  };
79518
79663
 
79519
- const ezTextInputCss = ":host{--ez-text-input--height:42px;--ez-text-input--width:100%;--ez-text-input__icon--width:30px;--ez-text-input--height--slim:32px;--ez-text-input__min-width:0px;--ez-text-input__max-width:100%;--ez-text-input--border-radius:var(--border--radius-medium, 12px);--ez-text-input--border-top-left-radius:var(--ez-text-input--border-radius);--ez-text-input--border-bottom-left-radius:var(--ez-text-input--border-radius);--ez-text-input--border-top-right-radius:var(--ez-text-input--border-radius);--ez-text-input--border-bottom-right-radius:var(--ez-text-input--border-radius);--ez-text-input--font-size:var(--text--medium, 14px);--ez-text-input--font-family:var(--font-pattern, Arial);--ez-text-input--font-weight:var(--text-weight--medium, 400);--ez-text-input--color:var(--title--primary, #2B3A54);--ez-text-input__margin-bottom:var(--space--small);--ez-text-input__input--background-color:var(--background--light, #ffffff);--ez-text-input__input--border:var(--border--small, 1px solid);--ez-text-input__input--border-color:var(--color--strokes,#DCE0E8);--ez-text-input__input--focus--border-color:var(--color--primary, #008561);--ez-text-input__input--disabled--background-color:var(--background--medium, #F0F3F7);--ez-text-input__input--disabled--color:var(--text--primary, #626E82);--ez-text-input__input--error--border-color:var(--color-alert--error-800,#BD0025);--ez-text-input__input--noborder-color:white;--ez-text-input__input--padding:var(--space--medium, 6px);--ez-text-input__placeholder--color:var(--text--secondary, #a2abb9);--ez-text-input__tooltip_icon--error--color:var(--color-alert--error-800,#BD0025);--ez-text-input__label--floating--top:6px;--ez-text-input__label--padding-top:12px;--ez-text-input__label--padding-left:14px;--ez-text-input__label--padding-right:12px;--ez-text-input__input--focus--icon-color:var(--title--primary, #2B3A54);--ez-text-input__input--disabled--focus--icon-color:var(--text--primary, #626E82);--ez-text-input__tooltip-icon--spacing:var(--space--large);--ez-text-input__tooltip-icon---width:var(--space--large);--ez-text-input__tooltip-icon---horizontal-margin:var(--space--medium, 12px);--ez-text-input__tooltip-icon---vertical-margin:10px;display:flex;flex-wrap:wrap;position:relative;width:var(--ez-text-input--width);min-width:var(--ez-text-input__min-width);max-width:var(--ez-text-input__max-width)}:host(.grid_editor){--ez-text-input--height--slim:25px}input{width:100%;box-sizing:border-box;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;height:var(--ez-text-input--height);border-top-left-radius:var(--ez-text-input--border-top-left-radius);border-bottom-left-radius:var(--ez-text-input--border-bottom-left-radius);border-top-right-radius:var(--ez-text-input--border-top-right-radius);border-bottom-right-radius:var(--ez-text-input--border-bottom-right-radius);font-family:var(--ez-text-input--font-family);font-size:var(--ez-text-input--font-size);border:var(--ez-text-input__input--border);border-color:var(--ez-text-input__input--border-color);background-color:var(--ez-text-input__input--background-color);color:var(--ez-text-input--color);font-weight:var(--ez-text-input--font-weight);padding:var(--ez-text-input__input--padding);margin-bottom:var(--ez-text-input__margin-bottom)}input.no--margin{--ez-text-input__margin-bottom:0}input:disabled{background-color:var(--ez-text-input__input--disabled--background-color);color:var(--ez-text-input__input--disabled--color);cursor:not-allowed}input:focus{outline:none;border:var(--border--medium, 2px solid);border-color:var(--ez-text-input__input--focus--border-color)}input.icon--left{padding-left:var(--ez-text-input__icon--width)}input.icon--left.hasError{padding-right:var(--ez-text-input__icon--width)}input.icon--right{padding-right:var(--ez-text-input__icon--width)}input.icon--right.hasError{padding-right:calc(var(--ez-text-input__icon--width) + var(--ez-text-input__tooltip-icon--spacing))}input.hasError{color:var(--ez-text-input--color);border:var(--border--medium, 2px solid);border-color:var(--ez-text-input__input--error--border-color);padding-right:calc(var(--ez-text-input__tooltip-icon---width) + (2*var(--ez-text-input__tooltip-icon---horizontal-margin)))}input:disabled.hasError{color:var(--ez-text-input__input--disabled--color)}input.text--right{text-align:right}input:disabled,input:read-only{cursor:not-allowed}.hasError{color:var(--ez-text-input__tooltip_icon--error--color)}.input__label{box-sizing:border-box;position:absolute;z-index:var(--visible);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;-webkit-transition:font-size .05s, top .05s;transition:font-size .05s, top .05s;width:calc(100% - var(--ez-text-input__label--padding-right));left:var(--ez-text-input--space--medium);font-family:var(--ez-text-input--font-family);font-size:var(--ez-text-input--font-size);font-weight:var(--ez-text-input--font-weight);color:var(--ez-text-input--color);top:var(--ez-text-input__label--padding-top);left:var(--ez-text-input__label--padding-left);padding-right:var(--ez-text-input__label--padding-right)}.input__label.hasError{width:calc(100% - 2*(var(--ez-text-input__tooltip-icon--spacing)))}.input__label--floated{font-family:var(--ez-text-input--font-family);font-size:var(--text--extra-small);color:var(--text--primary);top:var(--ez-text-input__label--floating--top)}.input__label--disabled{color:var(--ez-text-input__input--disabled--color);cursor:not-allowed}.input__label--left{text-align:left;left:calc(var(--ez-text-input__icon--width) + 2px);width:calc(100% - var(--ez-text-input__icon--width))}.input__label--left.hasError{width:calc(100% - var(--ez-text-input__icon--width) - var(--ez-text-input__tooltip-icon--spacing))}.input__label--right{right:var(--ez-text-input__icon--width);width:calc(100% - var(--ez-text-input__icon--width))}.input__label--right.hasError{width:calc(100% - var(--ez-text-input__icon--width) - var(--ez-text-input__tooltip-icon--spacing))}.input__label--left.input__label--right{left:calc(var(--ez-text-input__icon--width) + 2px);width:calc(100% - var(--ez-text-input__icon--width) * 2)}.input--with--label{padding-bottom:0}.input--slim{padding-top:var(--space--small, 3px);padding-bottom:var(--space--small, 3px);height:var(--ez-text-input--height--slim)}.input__slim--title{font-size:16px;font-weight:bold}.input--slim::-webkit-input-placeholder,.input--slim:-moz-placeholder,.input--slim::-moz-placeholder,.input--slim:-ms-input-placeholder,.input--slim::placeholder{font-family:var(--ez-text-input--font-family);font-size:var(--ez-text-input--font-size);font-weight:var(--ez-text-input--font-weight);color:var(--ez-text-input__placeholder--color)}.input--slim:disabled::-webkit-input-placeholder,.input--slim:disabled:-moz-placeholder,.input--slim:disabled::-moz-placeholder,.input--slim:disabled:-ms-input-placeholder,.input--slim:disabled::placeholder{color:var(--ez-text-input__input--disabled--color)}input.input__slim--noborder{box-shadow:0 0 0 0;border:0 none;outline:0;background:var(--ez-text-input__input--noborder-color)}ez-icon.tooltip-icon{position:absolute;display:flex;align-items:center;justify-content:center;overflow:hidden;width:var(--ez-text-input__tooltip-icon---width);height:22px;margin:var(--ez-text-input__tooltip-icon---vertical-margin) var(--ez-text-input__tooltip-icon---horizontal-margin);top:0;right:0;z-index:var(--elevation--4);border-radius:var(--ez-text-input--border-radius)}ez-icon.tooltip-icon.rightIconSlot{right:var(--ez-text-input__tooltip-icon--spacing)}ez-icon.tooltip-icon.hasError{--ez-icon--color:var(--ez-text-input__tooltip_icon--error--color)}";
79664
+ const ezTextInputCss = ":host{--ez-text-input--height:42px;--ez-text-input--width:100%;--ez-text-input__icon--width:30px;--ez-text-input--height--slim:32px;--ez-text-input__min-width:0px;--ez-text-input__max-width:100%;--ez-text-input--border-radius:var(--border--radius-medium, 12px);--ez-text-input--border-top-left-radius:var(--ez-text-input--border-radius);--ez-text-input--border-bottom-left-radius:var(--ez-text-input--border-radius);--ez-text-input--border-top-right-radius:var(--ez-text-input--border-radius);--ez-text-input--border-bottom-right-radius:var(--ez-text-input--border-radius);--ez-text-input--font-size:var(--text--medium, 14px);--ez-text-input--font-family:var(--font-pattern, Arial);--ez-text-input--font-weight:var(--text-weight--medium, 400);--ez-text-input--color:var(--title--primary, #2B3A54);--ez-text-input__margin-bottom:var(--space--small);--ez-text-input__input--background-color:var(--background--light, #ffffff);--ez-text-input__input--border:var(--border--small, 1px solid);--ez-text-input__input--border-color:var(--color--strokes,#DCE0E8);--ez-text-input__input--focus--border-color:var(--color--primary, #008561);--ez-text-input__input--disabled--background-color:var(--background--medium, #F0F3F7);--ez-text-input__input--disabled--color:var(--text--primary, #626E82);--ez-text-input__input--error--border-color:var(--color-alert--error-800,#BD0025);--ez-text-input__input--noborder-color:white;--ez-text-input__input--padding:var(--space--medium, 6px);--ez-text-input__placeholder--color:var(--text--secondary, #a2abb9);--ez-text-input__tooltip_icon--error--color:var(--color-alert--error-800,#BD0025);--ez-text-input__label--floating--top:6px;--ez-text-input__label--padding-top:12px;--ez-text-input__label--padding-left:14px;--ez-text-input__label--padding-right:12px;--ez-text-input__input--focus--icon-color:var(--title--primary, #2B3A54);--ez-text-input__input--disabled--focus--icon-color:var(--text--primary, #626E82);--ez-text-input__tooltip-icon--spacing:var(--space--large);--ez-text-input__tooltip-icon---width:var(--space--large);--ez-text-input__tooltip-icon---horizontal-margin:var(--space--medium, 12px);--ez-text-input__tooltip-icon---vertical-margin:10px;display:flex;flex-wrap:wrap;position:relative;width:var(--ez-text-input--width);min-width:var(--ez-text-input__min-width);max-width:var(--ez-text-input__max-width)}:host(.grid_editor){--ez-text-input--height--slim:25px}input{width:100%;box-sizing:border-box;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;height:var(--ez-text-input--height);border-top-left-radius:var(--ez-text-input--border-top-left-radius);border-bottom-left-radius:var(--ez-text-input--border-bottom-left-radius);border-top-right-radius:var(--ez-text-input--border-top-right-radius);border-bottom-right-radius:var(--ez-text-input--border-bottom-right-radius);font-family:var(--ez-text-input--font-family);font-size:var(--ez-text-input--font-size);border:var(--ez-text-input__input--border);border-color:var(--ez-text-input__input--border-color);background-color:var(--ez-text-input__input--background-color);color:var(--ez-text-input--color);font-weight:var(--ez-text-input--font-weight);padding:var(--ez-text-input__input--padding);margin-bottom:var(--ez-text-input__margin-bottom)}input.no--margin{--ez-text-input__margin-bottom:0}input:disabled{background-color:var(--ez-text-input__input--disabled--background-color);color:var(--ez-text-input__input--disabled--color);cursor:not-allowed}input:focus{outline:none;border:var(--border--medium, 2px solid);border-color:var(--ez-text-input__input--focus--border-color)}input.focused{border:var(--border--medium, 2px solid);border-color:var(--ez-text-input__input--focus--border-color)}input.icon--left{padding-left:var(--ez-text-input__icon--width)}input.icon--left.hasError{padding-right:var(--ez-text-input__icon--width)}input.icon--right{padding-right:var(--ez-text-input__icon--width)}input.icon--right.hasError{padding-right:calc(var(--ez-text-input__icon--width) + var(--ez-text-input__tooltip-icon--spacing))}input.hasError{color:var(--ez-text-input--color);border:var(--border--medium, 2px solid);border-color:var(--ez-text-input__input--error--border-color);padding-right:calc(var(--ez-text-input__tooltip-icon---width) + (2*var(--ez-text-input__tooltip-icon---horizontal-margin)))}input:disabled.hasError{color:var(--ez-text-input__input--disabled--color)}input.text--right{text-align:right}input:disabled,input:read-only{cursor:not-allowed}.hasError{color:var(--ez-text-input__tooltip_icon--error--color)}.input__label{box-sizing:border-box;position:absolute;z-index:var(--visible);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;-webkit-transition:font-size .05s, top .05s;transition:font-size .05s, top .05s;width:calc(100% - var(--ez-text-input__label--padding-right));left:var(--ez-text-input--space--medium);font-family:var(--ez-text-input--font-family);font-size:var(--ez-text-input--font-size);font-weight:var(--ez-text-input--font-weight);color:var(--ez-text-input--color);top:var(--ez-text-input__label--padding-top);left:var(--ez-text-input__label--padding-left);padding-right:var(--ez-text-input__label--padding-right)}.input__label.hasError{width:calc(100% - 2*(var(--ez-text-input__tooltip-icon--spacing)))}.input__label--floated{font-family:var(--ez-text-input--font-family);font-size:var(--text--extra-small);color:var(--text--primary);top:var(--ez-text-input__label--floating--top)}.input__label--disabled{color:var(--ez-text-input__input--disabled--color);cursor:not-allowed}.input__label--left{text-align:left;left:calc(var(--ez-text-input__icon--width) + 2px);width:calc(100% - var(--ez-text-input__icon--width))}.input__label--left.hasError{width:calc(100% - var(--ez-text-input__icon--width) - var(--ez-text-input__tooltip-icon--spacing))}.input__label--right{right:var(--ez-text-input__icon--width);width:calc(100% - var(--ez-text-input__icon--width))}.input__label--right.hasError{width:calc(100% - var(--ez-text-input__icon--width) - var(--ez-text-input__tooltip-icon--spacing))}.input__label--left.input__label--right{left:calc(var(--ez-text-input__icon--width) + 2px);width:calc(100% - var(--ez-text-input__icon--width) * 2)}.input--with--label{padding-bottom:0}.input--slim{padding-top:var(--space--small, 3px);padding-bottom:var(--space--small, 3px);height:var(--ez-text-input--height--slim)}.input__slim--title{font-size:16px;font-weight:bold}.input--slim::-webkit-input-placeholder,.input--slim:-moz-placeholder,.input--slim::-moz-placeholder,.input--slim:-ms-input-placeholder,.input--slim::placeholder{font-family:var(--ez-text-input--font-family);font-size:var(--ez-text-input--font-size);font-weight:var(--ez-text-input--font-weight);color:var(--ez-text-input__placeholder--color)}.input--slim:disabled::-webkit-input-placeholder,.input--slim:disabled:-moz-placeholder,.input--slim:disabled::-moz-placeholder,.input--slim:disabled:-ms-input-placeholder,.input--slim:disabled::placeholder{color:var(--ez-text-input__input--disabled--color)}input.input__slim--noborder{box-shadow:0 0 0 0;border:0 none;outline:0;background:var(--ez-text-input__input--noborder-color)}ez-icon.tooltip-icon{position:absolute;display:flex;align-items:center;justify-content:center;overflow:hidden;width:var(--ez-text-input__tooltip-icon---width);height:22px;margin:var(--ez-text-input__tooltip-icon---vertical-margin) var(--ez-text-input__tooltip-icon---horizontal-margin);top:0;right:0;z-index:var(--elevation--4);border-radius:var(--ez-text-input--border-radius)}ez-icon.tooltip-icon.rightIconSlot{right:var(--ez-text-input__tooltip-icon--spacing)}ez-icon.tooltip-icon.hasError{--ez-icon--color:var(--ez-text-input__tooltip_icon--error--color)}";
79520
79665
 
79521
79666
  const EzTextInput$1 = class extends HTMLElement$1 {
79522
79667
  constructor() {
@@ -79645,7 +79790,12 @@ const EzTextInput$1 = class extends HTMLElement$1 {
79645
79790
  const { selectText } = options || {};
79646
79791
  if (selectText)
79647
79792
  this._inputElem.select();
79648
- this._inputElem.focus();
79793
+ if (this._inputElem.disabled) {
79794
+ this._inputElem.classList.add("focused");
79795
+ this._inputElem.scrollIntoView({ behavior: "smooth", block: "start" });
79796
+ return;
79797
+ }
79798
+ requestAnimationFrame(() => this._inputElem.focus());
79649
79799
  }
79650
79800
  /**
79651
79801
  * Remove o foco do campo.
@@ -79840,6 +79990,15 @@ const EzTextInput$1 = class extends HTMLElement$1 {
79840
79990
  var _a;
79841
79991
  this._inputElem.setSelectionRange(0, (_a = this._inputElem) === null || _a === void 0 ? void 0 : _a.value.length);
79842
79992
  });
79993
+ this.onClickOutside = (event) => {
79994
+ if (!this._inputElem.contains(event.target)) {
79995
+ this._inputElem.classList.remove("focused");
79996
+ }
79997
+ };
79998
+ document.addEventListener("click", this.onClickOutside);
79999
+ }
80000
+ disconnectedCallback() {
80001
+ document.removeEventListener("click", this.onClickOutside);
79843
80002
  }
79844
80003
  componentDidRender() {
79845
80004
  this.adjustFloatingLabel();
@@ -81471,6 +81630,8 @@ const SearchList$1 = class extends HTMLElement$1 {
81471
81630
  this.changePreSelection = createEvent(this, "changePreSelection", 7);
81472
81631
  this._startHighlightTag = "<span class='card-item__highlight'>";
81473
81632
  this._endHighlightTag = "</span>";
81633
+ this.MAX_HEIGHT = 350;
81634
+ this.HEADER_MENU_HEIGHT = 60;
81474
81635
  this.showLoading = undefined;
81475
81636
  this.visibleOptions = [];
81476
81637
  this.textEmptyList = undefined;
@@ -81524,11 +81685,38 @@ const SearchList$1 = class extends HTMLElement$1 {
81524
81685
  };
81525
81686
  return h("div", { style: { "height": "100%" }, class: index === this.preSelection ? "item preselected" : "item", id: `item_${opt.value}`, onMouseDown: () => this.createOption(card), onMouseOver: () => this.changePreSelection.emit(index) }, h("ez-card-item", { item: card, compacted: true, enableKey: this.showOptionValue }));
81526
81687
  }
81688
+ componentDidLoad() {
81689
+ if (this._optionsList) {
81690
+ this._optionsList.style.maxHeight = `${this.MAX_HEIGHT}px`;
81691
+ }
81692
+ }
81693
+ componentDidUpdate() {
81694
+ if (this._optionsList) {
81695
+ const rect = this._optionsList.getBoundingClientRect();
81696
+ const spaceBelow = window.innerHeight - rect.bottom;
81697
+ if (spaceBelow < 0) {
81698
+ this.adjustMaxHeight(rect);
81699
+ }
81700
+ }
81701
+ }
81702
+ adjustMaxHeight(rect) {
81703
+ if (this._optionsList) {
81704
+ const spaceAbove = rect.top - this.HEADER_MENU_HEIGHT;
81705
+ const maxHeight = this.MAX_HEIGHT;
81706
+ const height = Math.min(spaceAbove, maxHeight);
81707
+ this._optionsList.style.maxHeight = `${height}px`;
81708
+ }
81709
+ }
81710
+ cleanEmptyObjectArray(arr) {
81711
+ return arr.filter(item => {
81712
+ return Object.values(item).some(valor => valor !== undefined);
81713
+ });
81714
+ }
81527
81715
  render() {
81528
81716
  return (h(Host, null, h("ul", { class: "list-options", ref: elem => this._optionsList = elem }, !this.showLoading
81529
- && this.visibleOptions.length === 0
81717
+ && this.cleanEmptyObjectArray(this.visibleOptions).length === 0
81530
81718
  && h("div", { class: "message" }, h("span", { class: "message__no-result" }, this.textEmptyList)), this.showLoading
81531
- && h("div", { class: "message" }, h("div", { class: "message__loading" })), this.canShowListOptions && this.visibleOptions.map((opt, index) => this.buildItem(opt, index)))));
81719
+ && h("div", { class: "message" }, h("div", { class: "message__loading" })), this.canShowListOptions && this.cleanEmptyObjectArray(this.visibleOptions).map((opt, index) => this.buildItem(opt, index)))));
81532
81720
  }
81533
81721
  static get style() { return searchListCss; }
81534
81722
  };
@@ -81556,9 +81744,9 @@ const EzDoubleList = /*@__PURE__*/proxyCustomElement(EzDoubleList$1, [2,"ez-doub
81556
81744
  const EzDropdown = /*@__PURE__*/proxyCustomElement(EzDropdown$1, [1,"ez-dropdown",{"items":[1040],"value":[1040],"itemBuilder":[16]},[[4,"click","handleClickOutside"]]]);
81557
81745
  const EzFileItem = /*@__PURE__*/proxyCustomElement(EzFileItem$1, [1,"ez-file-item",{"canRemove":[4,"can-remove"],"fileName":[1,"file-name"],"iconName":[1,"icon-name"],"fileSize":[2,"file-size"],"progress":[2]}]);
81558
81746
  const EzFilterInput = /*@__PURE__*/proxyCustomElement(EzFilterInput$1, [1,"ez-filter-input",{"label":[1],"value":[1537],"enabled":[4],"errorMessage":[1537,"error-message"],"restrict":[1],"mode":[513],"asyncSearch":[516,"async-search"],"canShowError":[516,"can-show-error"],"autoFocus":[4,"auto-focus"]}]);
81559
- const EzForm = /*@__PURE__*/proxyCustomElement(EzForm$1, [2,"ez-form",{"dataUnit":[1040],"config":[16],"recordsValidator":[16],"fieldToFocus":[1,"field-to-focus"],"onlyStaticFields":[4,"only-static-fields"],"_fieldsProps":[32],"_singleColumn":[32]}]);
81747
+ const EzForm = /*@__PURE__*/proxyCustomElement(EzForm$1, [2,"ez-form",{"dataUnit":[1040],"config":[16],"recordsValidator":[16],"fieldToFocus":[1,"field-to-focus"],"onlyStaticFields":[4,"only-static-fields"],"useSearchField":[4,"use-search-field"],"elementFocusSearchField":[16],"_fieldsProps":[32],"_singleColumn":[32]}]);
81560
81748
  const EzFormView = /*@__PURE__*/proxyCustomElement(EzFormView$1, [2,"ez-form-view",{"fields":[16],"selectedRecord":[16],"singleColumn":[4,"single-column"],"_customEditors":[32]}]);
81561
- const EzGrid = /*@__PURE__*/proxyCustomElement(EzGrid$1, [6,"ez-grid",{"enableLockManagerLoadingComp":[4,"enable-lock-manager-loading-comp"],"enableLockManagerTaskbarClick":[4,"enable-lock-manager-taskbar-click"],"multipleSelection":[4,"multiple-selection"],"config":[1040],"selectionToastConfig":[16],"serverUrl":[1,"server-url"],"dataUnit":[16],"statusResolver":[16],"columnfilterDataSource":[16],"useEnterLikeTab":[4,"use-enter-like-tab"],"recordsValidator":[16],"canEdit":[4,"can-edit"],"autoFocus":[4,"auto-focus"],"paginationCounterMode":[1,"pagination-counter-mode"],"enableGridInsert":[4,"enable-grid-insert"],"enableContinuousInsert":[4,"enable-continuous-insert"],"suppressCheckboxColumn":[4,"suppress-checkbox-column"],"outlineMode":[4,"outline-mode"],"enableRowTableStriped":[4,"enable-row-table-striped"],"compact":[4],"_paginationInfo":[32],"_paginationChangedByKeyboard":[32],"_showSelectionCounter":[32],"_isAllSelection":[32],"_currentPageSelected":[32],"_selectionCount":[32],"_hasLeftButtons":[32],"_customFormatters":[32]},[[0,"ezSelectionChange","onSelectionChange"],[2,"click","handleClick"]]]);
81749
+ const EzGrid = /*@__PURE__*/proxyCustomElement(EzGrid$1, [6,"ez-grid",{"enableLockManagerLoadingComp":[4,"enable-lock-manager-loading-comp"],"enableLockManagerTaskbarClick":[4,"enable-lock-manager-taskbar-click"],"multipleSelection":[4,"multiple-selection"],"config":[1040],"selectionToastConfig":[16],"serverUrl":[1,"server-url"],"dataUnit":[16],"statusResolver":[16],"columnfilterDataSource":[16],"useEnterLikeTab":[4,"use-enter-like-tab"],"recordsValidator":[16],"canEdit":[4,"can-edit"],"autoFocus":[4,"auto-focus"],"paginationCounterMode":[1,"pagination-counter-mode"],"enableGridInsert":[4,"enable-grid-insert"],"enableContinuousInsert":[4,"enable-continuous-insert"],"suppressCheckboxColumn":[4,"suppress-checkbox-column"],"outlineMode":[4,"outline-mode"],"enableRowTableStriped":[4,"enable-row-table-striped"],"compact":[4],"useSearchColumn":[4,"use-search-column"],"_paginationInfo":[32],"_paginationChangedByKeyboard":[32],"_showSelectionCounter":[32],"_isAllSelection":[32],"_currentPageSelected":[32],"_selectionCount":[32],"_hasLeftButtons":[32],"_customFormatters":[32]},[[0,"ezSelectionChange","onSelectionChange"],[2,"click","handleClick"]]]);
81562
81750
  const EzGuideNavigator = /*@__PURE__*/proxyCustomElement(EzGuideNavigator$1, [1,"ez-guide-navigator",{"open":[1540],"selectedId":[1537,"selected-id"],"items":[16],"tooltipResolver":[16],"filterText":[32]}]);
81563
81751
  const EzIcon = /*@__PURE__*/proxyCustomElement(EzIcon$1, [1,"ez-icon",{"size":[513],"href":[513],"iconName":[513,"icon-name"]}]);
81564
81752
  const EzList = /*@__PURE__*/proxyCustomElement(EzList$1, [2,"ez-list",{"dataSource":[1040],"listMode":[1,"list-mode"],"useGroups":[1540,"use-groups"],"ezDraggable":[1028,"ez-draggable"],"ezSelectable":[1028,"ez-selectable"],"itemSlotBuilder":[1040],"itemLeftSlotBuilder":[1040],"hoverFeedback":[1028,"hover-feedback"],"enableMultipleSelection":[4,"enable-multiple-selection"],"_listItems":[32],"_listGroupItems":[32]}]);
@@ -81579,7 +81767,7 @@ const EzSearchResultList = /*@__PURE__*/proxyCustomElement(EzSearchResultList$1,
81579
81767
  const EzSidebarButton = /*@__PURE__*/proxyCustomElement(EzSidebarButton$1, [1,"ez-sidebar-button"]);
81580
81768
  const EzSidebarNavigator = /*@__PURE__*/proxyCustomElement(EzSidebarNavigator$1, [1,"ez-sidebar-navigator",{"type":[1],"mode":[1025],"size":[1],"isResponsive":[4,"is-responsive"],"titleMenu":[1,"title-menu"],"showCollapseMenu":[4,"show-collapse-menu"],"showFixedButton":[4,"show-fixed-button"],"open":[32]}]);
81581
81769
  const EzSkeleton = /*@__PURE__*/proxyCustomElement(EzSkeleton$1, [0,"ez-skeleton",{"count":[2],"variant":[1],"width":[1],"height":[1],"marginBottom":[1,"margin-bottom"],"animation":[1]}]);
81582
- const EzSplitButton = /*@__PURE__*/proxyCustomElement(EzSplitButton$1, [1,"ez-split-button",{"enabled":[516],"iconName":[513,"icon-name"],"image":[513],"items":[16],"label":[513],"leftTitle":[513,"left-title"],"rightTitle":[513,"right-title"],"mode":[513],"size":[513],"show":[32]},[[2,"click","clickListener"]]]);
81770
+ const EzSplitButton = /*@__PURE__*/proxyCustomElement(EzSplitButton$1, [1,"ez-split-button",{"show":[516],"enabled":[516],"iconName":[513,"icon-name"],"image":[513],"items":[16],"label":[513],"leftTitle":[513,"left-title"],"rightTitle":[513,"right-title"],"mode":[513],"size":[513],"itemBuilder":[16]},[[2,"click","clickListener"]]]);
81583
81771
  const EzSplitItem = /*@__PURE__*/proxyCustomElement(SplitItem, [4,"ez-split-item",{"label":[1],"enableExpand":[516,"enable-expand"],"size":[1],"structural":[4],"_expanded":[32]}]);
81584
81772
  const EzSplitPanel = /*@__PURE__*/proxyCustomElement(SplitPanel, [0,"ez-split-panel",{"direction":[1],"anchorToExpand":[4,"anchor-to-expand"],"structural":[4]}]);
81585
81773
  const EzTabselector = /*@__PURE__*/proxyCustomElement(EzTabselector$1, [1,"ez-tabselector",{"selectedIndex":[1538,"selected-index"],"selectedTab":[1537,"selected-tab"],"tabs":[1],"_processedTabs":[32]}]);
@@ -18,4 +18,10 @@ var SearchMode;
18
18
  SearchMode["PRELOAD"] = "PRELOAD";
19
19
  })(SearchMode || (SearchMode = {}));
20
20
 
21
- export { CustomEditorSource as C, SearchMode as S, CustomRenderSource as a };
21
+ var FormLayout;
22
+ (function (FormLayout) {
23
+ FormLayout[FormLayout["CASCADE"] = 0] = "CASCADE";
24
+ FormLayout[FormLayout["SIDE_BY_SIDE"] = 1] = "SIDE_BY_SIDE";
25
+ })(FormLayout || (FormLayout = {}));
26
+
27
+ export { CustomEditorSource as C, FormLayout as F, SearchMode as S, CustomRenderSource as a };
@@ -4,8 +4,7 @@ import './ApplicationUtils-eaf91331.js';
4
4
  import { C as CSSVarsUtils } from './CSSVarsUtils-acba92d7.js';
5
5
  import './DialogType-54a62731.js';
6
6
  import './CheckMode-bdb2ec19.js';
7
- import './types-6f6b2650.js';
8
- import './FormLayout-54092963.js';
7
+ import './FormLayout-071d324c.js';
9
8
 
10
9
  const ezActionsButtonCss = ":host{--ez-actions-button__actions-list--border-radius:var(--border--radius-medium, 12px);--ez-actions-button__actions-list--box-shadow:var(--shadow, 0px 0px 16px 0px #000);--ez-actions-button__actions-list--background-color:var(--background--xlight, #fff);--ez-actions-button__actions-list--padding:var(--space--small, 6px);--ez-actions-button__actions-list--top-margin:var(--space-small, 6px);--ez-actions-button__actions-list--z-index:var(--ez-elevation--8, 8);--ez-actions-button__actions-max-height:415px;--ez-actions-button__btn-action--min-width:'auto';--ez-actions-button__btn-action--background-color:var(--background--xlight, #fff);display:flex;flex-direction:column;height:fit-content;user-select:none}.ez-actions-button__actions-list{display:flex;flex-direction:column;position:fixed;width:fit-content;height:fit-content;overflow-y:auto;scrollbar-width:thin;z-index:var(--ez-actions-button__actions-list--z-index);padding:var(--ez-actions-button__actions-list--padding);margin-top:var(--ez-actions-button__actions-list--top-margin);background-color:var(--ez-actions-button__actions-list--background-color);border-radius:var(--ez-actions-button__actions-list--border-radius);box-shadow:var(--ez-actions-button__actions-list--box-shadow)}.ez-actions-button__actions-list--max-height{max-height:var(--ez-actions-button__actions-max-height)}.ez-actions-button__actions-list--lowered{margin-top:calc(var(--ez-actions-button__actions-list--top-margin) + 6px)}.ez-actions-button__btn-action{--ez-button--justify-content:flex-start;--ez-button--width:100%;--ez-button--min-width:var(--ez-actions-button__btn-action--min-width);--ez-button--background-color:var(--ez-actions-button__btn-action--background-color);--ez-button--font-weight:var(--text-weight--medium, 400);--ez-button--padding-left:var(--space--medium, 12px);--ez-button--padding-right:var(--space--medium, 12px)}.ez-actions-button__btn-action--spaced{--ez-button--padding-left:calc(var(--space--medium, 12px) + 24px)}.ez-actions-button__icon-right{margin-left:var(--space--small, 6px)}.ez-actions-button__icon-check,.ez-actions-button__icon-item{position:absolute;left:var(--space--medium, 12px)}.ez-actions-button__icon-check{color:var(--ez-button--hover-color)}.ez-actions-button__arrow{position:absolute;border-left:10px solid transparent;border-right:10px solid transparent;width:0;height:0;z-index:calc(var(--ez-actions-button__actions-list--z-index) + 1);border-bottom:15px solid var(--ez-actions-button__btn-action--background-color)}.ez-actions-button__arrow--upped{margin-top:calc((var(--ez-actions-button__actions-list--top-margin) + 2px) * -1)}.ez-actions-button__arrow--small{margin-left:6px}.ez-actions-button__arrow--medium{margin-left:11px}.ez-actions-button__arrow--large{margin-left:13px}.ez-actions-button__arrow:only-child{display:none}.ez-actions-button__btn-transparent{--ez-button--background-color:transparent;--ez-button--hover--background-color:transparent;--ez-button--active--background-color:transparent;--ez-button--focus--border:none}.ez-actions-button__btn-label{--ez-button--padding-left:var(--space--medium, 12px);--ez-button--padding-right:var(--space--medium, 12px)}.ez-actions-button__list-container{position:relative}.ez-actions-button--bottom-padding{padding-bottom:var(--space--small, 6px)}";
11
10