@sankhyalabs/ezui 0.0.0-bugfix-dev-KB-75210.1 → 0.0.0-bugfix-dev-KB-76031.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (133) hide show
  1. package/dist/cjs/{CSSVarsUtils-10c9d5b4.js → CSSVarsUtils-f20973d1.js} +1 -0
  2. package/dist/cjs/{DataBinder-b4ef826a.js → DataBinder-e92314c2.js} +2 -2
  3. package/dist/cjs/ez-actions-button.cjs.entry.js +1 -1
  4. package/dist/cjs/ez-combo-box.cjs.entry.js +2 -3
  5. package/dist/cjs/ez-date-input.cjs.entry.js +2 -3
  6. package/dist/cjs/ez-date-time-input.cjs.entry.js +2 -3
  7. package/dist/cjs/ez-dialog.cjs.entry.js +4 -5
  8. package/dist/cjs/ez-dropdown_2.cjs.entry.js +1 -1
  9. package/dist/cjs/ez-filter-input.cjs.entry.js +2 -3
  10. package/dist/cjs/ez-form-view.cjs.entry.js +10 -10
  11. package/dist/cjs/ez-form.cjs.entry.js +2 -2
  12. package/dist/cjs/ez-grid.cjs.entry.js +89 -43
  13. package/dist/cjs/ez-icon.cjs.entry.js +1 -1
  14. package/dist/cjs/ez-list.cjs.entry.js +1 -1
  15. package/dist/cjs/ez-number-input.cjs.entry.js +2 -3
  16. package/dist/cjs/ez-search.cjs.entry.js +5 -5
  17. package/dist/cjs/ez-split-item.cjs.entry.js +4 -2
  18. package/dist/cjs/ez-text-area.cjs.entry.js +2 -2
  19. package/dist/cjs/ez-text-input.cjs.entry.js +1 -2
  20. package/dist/cjs/ez-time-input.cjs.entry.js +2 -3
  21. package/dist/cjs/ez-tree.cjs.entry.js +5 -4
  22. package/dist/cjs/ezui.cjs.js +1 -1
  23. package/dist/cjs/loader.cjs.js +1 -1
  24. package/dist/collection/components/ez-combo-box/ez-combo-box.js +1 -20
  25. package/dist/collection/components/ez-date-input/ez-date-input.js +1 -20
  26. package/dist/collection/components/ez-date-time-input/ez-date-time-input.js +1 -20
  27. package/dist/collection/components/ez-dialog/ez-dialog.js +5 -15
  28. package/dist/collection/components/ez-filter-input/ez-filter-input.js +1 -20
  29. package/dist/collection/components/ez-form-view/fieldbuilder/templates/CheckBox.tpl.js +1 -1
  30. package/dist/collection/components/ez-form-view/fieldbuilder/templates/ComboBox.tpl.js +1 -1
  31. package/dist/collection/components/ez-form-view/fieldbuilder/templates/DateInput.tpl.js +4 -4
  32. package/dist/collection/components/ez-form-view/fieldbuilder/templates/NumberInput.tpl.js +1 -1
  33. package/dist/collection/components/ez-form-view/fieldbuilder/templates/SearchInput.tpl.js +1 -1
  34. package/dist/collection/components/ez-form-view/fieldbuilder/templates/TextInput.tpl.js +1 -1
  35. package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +34 -13
  36. package/dist/collection/components/ez-grid/controller/ag-grid/DataSource.js +44 -26
  37. package/dist/collection/components/ez-grid/controller/ag-grid/DataSourceInterceptor.js +2 -1
  38. package/dist/collection/components/ez-grid/ez-grid.js +70 -9
  39. package/dist/collection/components/ez-icon/ez-icon.css +70 -68
  40. package/dist/collection/components/ez-list/ez-list.css +3 -3
  41. package/dist/collection/components/ez-number-input/ez-number-input.js +1 -20
  42. package/dist/collection/components/ez-search/ez-search.js +23 -24
  43. package/dist/collection/components/ez-skeleton/ez-skeleton.css +54 -34
  44. package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.js +3 -1
  45. package/dist/collection/components/ez-text-area/ez-text-area.css +5 -1
  46. package/dist/collection/components/ez-text-area/ez-text-area.js +2 -2
  47. package/dist/collection/components/ez-text-input/ez-text-input.js +1 -20
  48. package/dist/collection/components/ez-time-input/ez-time-input.js +1 -20
  49. package/dist/collection/components/ez-tree/ez-tree.js +21 -1
  50. package/dist/collection/components/ez-tree/subcomponents/TreeItem.js +3 -3
  51. package/dist/collection/utils/CSSVarsUtils.js +1 -0
  52. package/dist/collection/utils/form/DataBinder.js +2 -2
  53. package/dist/collection/utils/form/FormMetadata.js +1 -1
  54. package/dist/custom-elements/index.js +141 -99
  55. package/dist/esm/{CSSVarsUtils-71ce76be.js → CSSVarsUtils-acba92d7.js} +1 -0
  56. package/dist/esm/{DataBinder-d2ecbb0f.js → DataBinder-9c877244.js} +2 -2
  57. package/dist/esm/ez-actions-button.entry.js +1 -1
  58. package/dist/esm/ez-combo-box.entry.js +2 -3
  59. package/dist/esm/ez-date-input.entry.js +2 -3
  60. package/dist/esm/ez-date-time-input.entry.js +2 -3
  61. package/dist/esm/ez-dialog.entry.js +5 -6
  62. package/dist/esm/ez-dropdown_2.entry.js +1 -1
  63. package/dist/esm/ez-filter-input.entry.js +2 -3
  64. package/dist/esm/ez-form-view.entry.js +10 -10
  65. package/dist/esm/ez-form.entry.js +2 -2
  66. package/dist/esm/ez-grid.entry.js +90 -44
  67. package/dist/esm/ez-icon.entry.js +1 -1
  68. package/dist/esm/ez-list.entry.js +1 -1
  69. package/dist/esm/ez-number-input.entry.js +2 -3
  70. package/dist/esm/ez-search.entry.js +5 -5
  71. package/dist/esm/ez-split-item.entry.js +4 -2
  72. package/dist/esm/ez-text-area.entry.js +2 -2
  73. package/dist/esm/ez-text-input.entry.js +1 -2
  74. package/dist/esm/ez-time-input.entry.js +2 -3
  75. package/dist/esm/ez-tree.entry.js +5 -4
  76. package/dist/esm/ezui.js +1 -1
  77. package/dist/esm/loader.js +1 -1
  78. package/dist/ezui/ezui.esm.js +1 -1
  79. package/dist/ezui/p-0faf71c5.entry.js +1 -0
  80. package/dist/ezui/p-17de16e5.entry.js +1 -0
  81. package/dist/ezui/p-20c024f7.entry.js +1 -0
  82. package/dist/ezui/p-2f45506d.entry.js +1 -0
  83. package/dist/ezui/p-3429080c.entry.js +1 -0
  84. package/dist/ezui/{p-d0ca26fe.entry.js → p-354abfe8.entry.js} +1 -1
  85. package/dist/ezui/{p-7ed30844.entry.js → p-420f97ff.entry.js} +1 -1
  86. package/dist/ezui/{p-ca6340a9.entry.js → p-556468d9.entry.js} +1 -1
  87. package/dist/ezui/p-7a171eae.entry.js +1 -0
  88. package/dist/ezui/{p-ceadecd9.js → p-acddfb2e.js} +1 -1
  89. package/dist/ezui/p-ae098837.entry.js +1 -0
  90. package/dist/ezui/p-b26f6c5b.entry.js +1 -0
  91. package/dist/ezui/{p-b46e9f59.entry.js → p-b6597f49.entry.js} +46 -46
  92. package/dist/ezui/p-c1527804.entry.js +1 -0
  93. package/dist/ezui/{p-d520839d.entry.js → p-cf87aacb.entry.js} +1 -1
  94. package/dist/ezui/p-d9548bdf.entry.js +1 -0
  95. package/dist/ezui/p-da1b4a38.entry.js +1 -0
  96. package/dist/ezui/p-e92b8a2c.entry.js +1 -0
  97. package/dist/ezui/p-ea54d056.entry.js +1 -0
  98. package/dist/ezui/p-ec7db713.js +1 -0
  99. package/dist/ezui/p-fd0a19d6.entry.js +1 -0
  100. package/dist/types/components/ez-combo-box/ez-combo-box.d.ts +0 -4
  101. package/dist/types/components/ez-date-input/ez-date-input.d.ts +0 -4
  102. package/dist/types/components/ez-date-time-input/ez-date-time-input.d.ts +0 -4
  103. package/dist/types/components/ez-dialog/ez-dialog.d.ts +0 -1
  104. package/dist/types/components/ez-filter-input/ez-filter-input.d.ts +0 -4
  105. package/dist/types/components/ez-grid/controller/EzGridController.d.ts +12 -1
  106. package/dist/types/components/ez-grid/controller/ag-grid/AgGridController.d.ts +4 -0
  107. package/dist/types/components/ez-grid/controller/ag-grid/DataSource.d.ts +2 -1
  108. package/dist/types/components/ez-grid/ez-grid.d.ts +18 -6
  109. package/dist/types/components/ez-number-input/ez-number-input.d.ts +0 -4
  110. package/dist/types/components/ez-search/ez-search.d.ts +5 -5
  111. package/dist/types/components/ez-split-panel/structure/item/ez-split-item.d.ts +1 -0
  112. package/dist/types/components/ez-text-input/ez-text-input.d.ts +0 -4
  113. package/dist/types/components/ez-time-input/ez-time-input.d.ts +0 -4
  114. package/dist/types/components/ez-tree/ez-tree.d.ts +4 -0
  115. package/dist/types/components/ez-tree/interfaces/ITreeItem.d.ts +1 -0
  116. package/dist/types/components/ez-tree/subcomponents/TreeItem.d.ts +1 -0
  117. package/dist/types/components.d.ts +44 -72
  118. package/package.json +1 -1
  119. package/dist/ezui/p-14b769d7.entry.js +0 -1
  120. package/dist/ezui/p-16e612fc.entry.js +0 -1
  121. package/dist/ezui/p-181b5ae8.entry.js +0 -1
  122. package/dist/ezui/p-2475fd6e.entry.js +0 -1
  123. package/dist/ezui/p-3175fe8c.entry.js +0 -1
  124. package/dist/ezui/p-3f2dd525.entry.js +0 -1
  125. package/dist/ezui/p-50d83a46.entry.js +0 -1
  126. package/dist/ezui/p-654b3f99.entry.js +0 -1
  127. package/dist/ezui/p-66924de6.entry.js +0 -1
  128. package/dist/ezui/p-6f22a385.entry.js +0 -1
  129. package/dist/ezui/p-8888d9ed.entry.js +0 -1
  130. package/dist/ezui/p-9e11fc7b.js +0 -1
  131. package/dist/ezui/p-b6a4e6de.entry.js +0 -1
  132. package/dist/ezui/p-c4320a39.entry.js +0 -1
  133. package/dist/ezui/p-e3e3fd7a.entry.js +0 -1
@@ -28,6 +28,7 @@ class CSSVarsUtils {
28
28
  CSSVarsUtils.applyIfExists(host, child, '--ez-text-input__input--focus--border-color');
29
29
  CSSVarsUtils.applyIfExists(host, child, '--ez-text-input__icon--width');
30
30
  CSSVarsUtils.applyIfExists(host, child, '--ez-text-input__input--focus--icon-color');
31
+ CSSVarsUtils.applyIfExists(host, child, '--ez-text-input__margin-bottom');
31
32
  }
32
33
  }
33
34
  static applyVarsButton(host, child) {
@@ -333,8 +333,8 @@ class DataBinder {
333
333
  if (field.nodeName === "EZ-SEARCH" && field["optionLoader"] == undefined) {
334
334
  const loader = ApplicationContext.getContextValue("__EZUI__SEARCH__OPTION__LOADER__");
335
335
  if (loader) {
336
- field["optionLoader"] = (arg) => {
337
- return loader(arg, fieldName, this._dataUnit);
336
+ field["optionLoader"] = (arg, ctxOptions) => {
337
+ return loader(arg, fieldName, this._dataUnit, ctxOptions);
338
338
  };
339
339
  }
340
340
  }
@@ -1,7 +1,7 @@
1
1
  import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-baa5e267.js';
2
2
  import { FloatingManager, ElementIDUtils } from '@sankhyalabs/core';
3
3
  import './ApplicationUtils-eaf91331.js';
4
- import { C as CSSVarsUtils } from './CSSVarsUtils-71ce76be.js';
4
+ import { C as CSSVarsUtils } from './CSSVarsUtils-acba92d7.js';
5
5
  import './DialogType-54a62731.js';
6
6
  import './CheckMode-bdb2ec19.js';
7
7
  import './ICustomRender-875b5a40.js';
@@ -1,7 +1,7 @@
1
1
  import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-baa5e267.js';
2
2
  import { ObjectUtils, FloatingManager, StringUtils, ElementIDUtils } from '@sankhyalabs/core';
3
3
  import './ApplicationUtils-eaf91331.js';
4
- import { C as CSSVarsUtils } from './CSSVarsUtils-71ce76be.js';
4
+ import { C as CSSVarsUtils } from './CSSVarsUtils-acba92d7.js';
5
5
  import './DialogType-54a62731.js';
6
6
  import './CheckMode-bdb2ec19.js';
7
7
  import './ICustomRender-875b5a40.js';
@@ -41,7 +41,6 @@ const EzComboBox = class {
41
41
  this.listOptionsPosition = undefined;
42
42
  this.isTextSearch = false;
43
43
  this.autoFocus = false;
44
- this.noMargin = false;
45
44
  }
46
45
  observeErrorMessage() {
47
46
  var _a;
@@ -574,7 +573,7 @@ const EzComboBox = class {
574
573
  }
575
574
  render() {
576
575
  ElementIDUtils.addIDInfoIfNotExists(this.el, 'input');
577
- return (h(Host, null, h("ez-text-input", { "data-element-id": ElementIDUtils.getInternalIDInfo("textInput"), class: `text-input-slot-container ${this.suppressSearch ? "suppressed-search-input" : ""}`, ref: elem => this._textInput = elem, "data-slave-mode": "true", enabled: this.enabled && !this.suppressSearch, onInput: event => this.onTextInputChangeHandler(event), onClick: () => this.onTextInputClickHandler(), onFocusout: () => this.onTextInputFocusOutHandler(), onKeyDown: event => this.keyDownHandler(event), label: this.label, canShowError: this.canShowError, errorMessage: this.errorMessage, mode: this.mode, noMargin: this.noMargin }, h("button", { class: "btn", slot: "rightIcon", disabled: !this.enabled, tabindex: -1, onClick: () => this.handlerIconClick() }, h("ez-icon", { iconName: "chevron-down" }))), h("section", { class: "list-container", ref: elem => this._listContainer = elem }, h("div", { class: "list-wrapper", ref: elem => this._listWrapper = elem }, h("ul", { class: "list-options", ref: elem => this._optionsList = elem }, !this._showLoading
576
+ return (h(Host, null, h("ez-text-input", { "data-element-id": ElementIDUtils.getInternalIDInfo("textInput"), class: `text-input-slot-container ${this.suppressSearch ? "suppressed-search-input" : ""}`, ref: elem => this._textInput = elem, "data-slave-mode": "true", enabled: this.enabled && !this.suppressSearch, onInput: event => this.onTextInputChangeHandler(event), onClick: () => this.onTextInputClickHandler(), onFocusout: () => this.onTextInputFocusOutHandler(), onKeyDown: event => this.keyDownHandler(event), label: this.label, canShowError: this.canShowError, errorMessage: this.errorMessage, mode: this.mode }, h("button", { class: "btn", slot: "rightIcon", disabled: !this.enabled, tabindex: -1, onClick: () => this.handlerIconClick() }, h("ez-icon", { iconName: "chevron-down" }))), h("section", { class: "list-container", ref: elem => this._listContainer = elem }, h("div", { class: "list-wrapper", ref: elem => this._listWrapper = elem }, h("ul", { class: "list-options", ref: elem => this._optionsList = elem }, !this._showLoading
578
577
  && this._visibleOptions.length === 0
579
578
  && h("div", { class: "message" }, h("span", { class: "message__no-result" }, this._textEmptyList)), this._showLoading
580
579
  && h("div", { class: "message" }, h("div", { class: "message__loading" })), this.showOptionValue
@@ -1,6 +1,6 @@
1
1
  import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-baa5e267.js';
2
2
  import { DateUtils, ElementIDUtils } from '@sankhyalabs/core';
3
- import { C as CSSVarsUtils } from './CSSVarsUtils-71ce76be.js';
3
+ import { C as CSSVarsUtils } from './CSSVarsUtils-acba92d7.js';
4
4
 
5
5
  const ezDateInputCss = ":host{display:block;width:100%;--ez-date-input__input--background-color:var(--background--medium, #e0e0e0);--ez-date-input__input--border-color:var(--ez-date-input__input--background-color);--ez-date-input__calendar-image:url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" height=\"16px\" width=\"15px\"><path d=\"M 3.171875,5.25 C 2.6485088,5.25 2.21875,5.6797588 2.21875,6.203125 2.21875,6.7264912 2.6485088,7.15625 3.171875,7.15625 3.6952412,7.15625 4.125,6.7264912 4.125,6.203125 4.125,5.6797588 3.6952412,5.25 3.171875,5.25 Z m 2.875,0 C 5.5235088,5.25 5.09375,5.6797588 5.09375,6.203125 5.09375,6.7264912 5.5235088,7.15625 6.046875,7.15625 6.5702412,7.15625 7,6.7264912 7,6.203125 7,5.6797588 6.5702412,5.25 6.046875,5.25 Z m 2.875,0 c -0.5233662,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.4297588,0.953125 0.953125,0.953125 0.5233662,0 0.9511719,-0.4297588 0.9511719,-0.953125 C 9.8730469,5.6797588 9.4452412,5.25 8.921875,5.25 Z m 2.873047,0 c -0.523366,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.429759,0.953125 0.953125,0.953125 0.523366,0 0.953125,-0.4297588 0.953125,-0.953125 C 12.748047,5.6797588 12.318288,5.25 11.794922,5.25 Z M 3.171875,8.1230469 c -0.5233662,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.4297588,0.9531251 0.953125,0.9531251 0.5233662,0 0.953125,-0.4297589 0.953125,-0.9531251 0,-0.5233662 -0.4297588,-0.953125 -0.953125,-0.953125 z m 2.875,0 c -0.5233662,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.4297588,0.9531251 0.953125,0.9531251 C 6.5702412,10.029297 7,9.5995381 7,9.0761719 7,8.5528057 6.5702412,8.1230469 6.046875,8.1230469 Z m 2.8554688,0 c -0.5233663,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.4297587,0.9531251 0.953125,0.9531251 0.5233661,0 0.9531249,-0.4297589 0.953125,-0.9531251 0,-0.5233662 -0.4297588,-0.953125 -0.953125,-0.953125 z m 2.9003902,0 c -0.523366,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.429759,0.9531251 0.953125,0.9531251 0.523367,0 0.953125,-0.4297589 0.953125,-0.9531251 0,-0.5233662 -0.429758,-0.953125 -0.953125,-0.953125 z M 3.171875,10.998047 c -0.5233662,0 -0.953125,0.429759 -0.953125,0.953125 0,0.523366 0.4297588,0.953125 0.953125,0.953125 0.5233662,0 0.953125,-0.429759 0.953125,-0.953125 0,-0.523366 -0.4297588,-0.953125 -0.953125,-0.953125 z m 2.875,0 c -0.5233662,0 -0.953125,0.429759 -0.953125,0.953125 0,0.523366 0.4297588,0.953125 0.953125,0.953125 C 6.5702412,12.904297 7,12.474538 7,11.951172 7,11.427806 6.5702412,10.998047 6.046875,10.998047 Z m 2.8554688,0 c -0.5233663,0 -0.953125,0.429759 -0.953125,0.953125 0,0.523366 0.4297587,0.953125 0.953125,0.953125 0.5233661,0 0.9531249,-0.429759 0.953125,-0.953125 0,-0.523366 -0.4297588,-0.953125 -0.953125,-0.953125 z m 2.9003902,0 c -0.523366,0 -0.953125,0.429759 -0.953125,0.953125 0,0.523366 0.429759,0.953125 0.953125,0.953125 0.523367,0 0.953125,-0.429759 0.953125,-0.953125 0,-0.523366 -0.429758,-0.953125 -0.953125,-0.953125 z M 3.5,0 c -0.554,0 -1,0.446 -1,1 v 0.050781 C 1.0853217,1.2909766 0,2.5186658 0,4 v 9 c 0,1.652487 1.3475134,3 3,3 h 9 c 1.652487,0 3,-1.347513 3,-3 V 4 C 15,2.5186658 13.914678,1.2909766 12.5,1.0507812 V 1 c 0,-0.554 -0.446,-1 -1,-1 -0.554,0 -1,0.446 -1,1 h -2 c 0,-0.554 -0.446,-1 -1,-1 -0.554,0 -1,0.446 -1,1 h -2 C 4.5,0.446 4.054,0 3.5,0 Z m 1,2.0996094 h 2 v 0.640625 c 0,0.554 0.446,1 1,1 0.554,0 1,-0.446 1,-1 v -0.640625 h 2 v 0.640625 c 0,0.554 0.446,1 1,1 0.554,0 1,-0.446 1,-1 V 2.1738281 C 13.311725,2.3905225 13.900391,3.11278 13.900391,4 v 9 c 0,1.062113 -0.838278,1.900391 -1.900391,1.900391 H 3 C 1.9378864,14.900391 1.0996094,14.062113 1.0996094,13 V 4 C 1.0996094,3.11278 1.6882747,2.3905225 2.5,2.1738281 v 0.5664063 c 0,0.554 0.446,1 1,1 0.554,0 1,-0.446 1,-1 z\"/></svg>')}.btn-open-cal{outline:none;border:none;background-color:unset;cursor:pointer}.btn-open-cal:disabled{cursor:not-allowed}.btn-open-cal::after{content:'';display:flex;background-color:var(--text--primary, #008561);width:15px;height:16px;-webkit-mask-image:var(--ez-date-input__calendar-image);mask-image:var(--ez-date-input__calendar-image)}.btn-open-cal:disabled:after{background-color:var(--text--disable, #AFB6C0)}.btn-open-cal:enabled:hover::after{background-color:var(--color--primary, #4e4e4e)}ez-text-input{--text-input__input--background-color:var(--ez-date-input__input--background-color, #FFFFFF);--text-input__input--border-color:var(--ez-date-input__input--border-color, #DCE0E8)}";
6
6
 
@@ -20,7 +20,6 @@ const EzDateInput = class {
20
20
  this.mode = "regular";
21
21
  this.canShowError = true;
22
22
  this.autoFocus = false;
23
- this.noMargin = false;
24
23
  }
25
24
  observeLabel() {
26
25
  if (this._textInput) {
@@ -184,7 +183,7 @@ const EzDateInput = class {
184
183
  }
185
184
  render() {
186
185
  ElementIDUtils.addIDInfoIfNotExists(this._elem, 'input');
187
- return (h(Host, null, h("ez-text-input", { "data-element-id": ElementIDUtils.getInternalIDInfo("textInput"), ref: elem => this._textInput = elem, "data-slave-mode": "true", label: this.label, onBlur: () => this.handleBlur(), onInput: (evt) => this.handleInput(evt), restrict: "0123456789/", enabled: this.enabled, errorMessage: this.errorMessage, mode: this.mode, canShowError: this.canShowError, noMargin: this.noMargin }, h("button", { disabled: !this.enabled, tabindex: -1, class: "btn-open-cal", onClick: () => this.showCalendar(), slot: "leftIcon" })), h("ez-calendar", { ref: elem => this._calendar = elem, "data-element-id": ElementIDUtils.getInternalIDInfo("calendar"), onEzChange: (event) => { this.hideCalendar(); event.stopPropagation(); }, floating: true, "data-is-fixed": this._elem.dataset.isFixed })));
186
+ return (h(Host, null, h("ez-text-input", { "data-element-id": ElementIDUtils.getInternalIDInfo("textInput"), ref: elem => this._textInput = elem, "data-slave-mode": "true", label: this.label, onBlur: () => this.handleBlur(), onInput: (evt) => this.handleInput(evt), restrict: "0123456789/", enabled: this.enabled, errorMessage: this.errorMessage, mode: this.mode, canShowError: this.canShowError }, h("button", { disabled: !this.enabled, tabindex: -1, class: "btn-open-cal", onClick: () => this.showCalendar(), slot: "leftIcon" })), h("ez-calendar", { ref: elem => this._calendar = elem, "data-element-id": ElementIDUtils.getInternalIDInfo("calendar"), onEzChange: (event) => { this.hideCalendar(); event.stopPropagation(); }, floating: true, "data-is-fixed": this._elem.dataset.isFixed })));
188
187
  }
189
188
  get _elem() { return getElement(this); }
190
189
  static get watchers() { return {
@@ -1,6 +1,6 @@
1
1
  import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-baa5e267.js';
2
2
  import { DateUtils, TimeFormatter, ElementIDUtils } from '@sankhyalabs/core';
3
- import { C as CSSVarsUtils } from './CSSVarsUtils-71ce76be.js';
3
+ import { C as CSSVarsUtils } from './CSSVarsUtils-acba92d7.js';
4
4
 
5
5
  const ezDateTimeInputCss = ":host{display:block;width:100%;--ez-date-input__input--background-color:var(--background--medium, #e0e0e0);--ez-date-input__input--border-color:var(--ez-date-input__input--background-color);--ez-date-input__calendar-image:url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" height=\"16px\" width=\"15px\"><path d=\"M 3.171875,5.25 C 2.6485088,5.25 2.21875,5.6797588 2.21875,6.203125 2.21875,6.7264912 2.6485088,7.15625 3.171875,7.15625 3.6952412,7.15625 4.125,6.7264912 4.125,6.203125 4.125,5.6797588 3.6952412,5.25 3.171875,5.25 Z m 2.875,0 C 5.5235088,5.25 5.09375,5.6797588 5.09375,6.203125 5.09375,6.7264912 5.5235088,7.15625 6.046875,7.15625 6.5702412,7.15625 7,6.7264912 7,6.203125 7,5.6797588 6.5702412,5.25 6.046875,5.25 Z m 2.875,0 c -0.5233662,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.4297588,0.953125 0.953125,0.953125 0.5233662,0 0.9511719,-0.4297588 0.9511719,-0.953125 C 9.8730469,5.6797588 9.4452412,5.25 8.921875,5.25 Z m 2.873047,0 c -0.523366,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.429759,0.953125 0.953125,0.953125 0.523366,0 0.953125,-0.4297588 0.953125,-0.953125 C 12.748047,5.6797588 12.318288,5.25 11.794922,5.25 Z M 3.171875,8.1230469 c -0.5233662,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.4297588,0.9531251 0.953125,0.9531251 0.5233662,0 0.953125,-0.4297589 0.953125,-0.9531251 0,-0.5233662 -0.4297588,-0.953125 -0.953125,-0.953125 z m 2.875,0 c -0.5233662,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.4297588,0.9531251 0.953125,0.9531251 C 6.5702412,10.029297 7,9.5995381 7,9.0761719 7,8.5528057 6.5702412,8.1230469 6.046875,8.1230469 Z m 2.8554688,0 c -0.5233663,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.4297587,0.9531251 0.953125,0.9531251 0.5233661,0 0.9531249,-0.4297589 0.953125,-0.9531251 0,-0.5233662 -0.4297588,-0.953125 -0.953125,-0.953125 z m 2.9003902,0 c -0.523366,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.429759,0.9531251 0.953125,0.9531251 0.523367,0 0.953125,-0.4297589 0.953125,-0.9531251 0,-0.5233662 -0.429758,-0.953125 -0.953125,-0.953125 z M 3.171875,10.998047 c -0.5233662,0 -0.953125,0.429759 -0.953125,0.953125 0,0.523366 0.4297588,0.953125 0.953125,0.953125 0.5233662,0 0.953125,-0.429759 0.953125,-0.953125 0,-0.523366 -0.4297588,-0.953125 -0.953125,-0.953125 z m 2.875,0 c -0.5233662,0 -0.953125,0.429759 -0.953125,0.953125 0,0.523366 0.4297588,0.953125 0.953125,0.953125 C 6.5702412,12.904297 7,12.474538 7,11.951172 7,11.427806 6.5702412,10.998047 6.046875,10.998047 Z m 2.8554688,0 c -0.5233663,0 -0.953125,0.429759 -0.953125,0.953125 0,0.523366 0.4297587,0.953125 0.953125,0.953125 0.5233661,0 0.9531249,-0.429759 0.953125,-0.953125 0,-0.523366 -0.4297588,-0.953125 -0.953125,-0.953125 z m 2.9003902,0 c -0.523366,0 -0.953125,0.429759 -0.953125,0.953125 0,0.523366 0.429759,0.953125 0.953125,0.953125 0.523367,0 0.953125,-0.429759 0.953125,-0.953125 0,-0.523366 -0.429758,-0.953125 -0.953125,-0.953125 z M 3.5,0 c -0.554,0 -1,0.446 -1,1 v 0.050781 C 1.0853217,1.2909766 0,2.5186658 0,4 v 9 c 0,1.652487 1.3475134,3 3,3 h 9 c 1.652487,0 3,-1.347513 3,-3 V 4 C 15,2.5186658 13.914678,1.2909766 12.5,1.0507812 V 1 c 0,-0.554 -0.446,-1 -1,-1 -0.554,0 -1,0.446 -1,1 h -2 c 0,-0.554 -0.446,-1 -1,-1 -0.554,0 -1,0.446 -1,1 h -2 C 4.5,0.446 4.054,0 3.5,0 Z m 1,2.0996094 h 2 v 0.640625 c 0,0.554 0.446,1 1,1 0.554,0 1,-0.446 1,-1 v -0.640625 h 2 v 0.640625 c 0,0.554 0.446,1 1,1 0.554,0 1,-0.446 1,-1 V 2.1738281 C 13.311725,2.3905225 13.900391,3.11278 13.900391,4 v 9 c 0,1.062113 -0.838278,1.900391 -1.900391,1.900391 H 3 C 1.9378864,14.900391 1.0996094,14.062113 1.0996094,13 V 4 C 1.0996094,3.11278 1.6882747,2.3905225 2.5,2.1738281 v 0.5664063 c 0,0.554 0.446,1 1,1 0.554,0 1,-0.446 1,-1 z\"/></svg>')}.btn-open-cal{outline:none;border:none;background-color:unset;cursor:pointer}.btn-open-cal:disabled{cursor:not-allowed}.btn-open-cal::after{content:'';display:flex;background-color:var(--text--primary, #008561);width:15px;height:16px;-webkit-mask-image:var(--ez-date-input__calendar-image);mask-image:var(--ez-date-input__calendar-image)}.btn-open-cal:disabled:after{background-color:var(--text--disable, #AFB6C0)}.btn-open-cal:enabled:hover::after{background-color:var(--color--primary, #4e4e4e)}ez-text-input{--text-input__input--background-color:var(--ez-date-input__input--background-color, #FFFFFF);--text-input__input--border-color:var(--ez-date-input__input--border-color, #DCE0E8)}";
6
6
 
@@ -21,7 +21,6 @@ const EzDateTimeInput = class {
21
21
  this.mode = "regular";
22
22
  this.canShowError = true;
23
23
  this.autoFocus = false;
24
- this.noMargin = false;
25
24
  }
26
25
  observeLabel() {
27
26
  if (this._textInput) {
@@ -234,7 +233,7 @@ const EzDateTimeInput = class {
234
233
  }
235
234
  render() {
236
235
  ElementIDUtils.addIDInfoIfNotExists(this._elem, 'input');
237
- return (h(Host, null, h("ez-text-input", { "data-element-id": ElementIDUtils.getInternalIDInfo("textInput"), ref: elem => this._textInput = elem, "data-slave-mode": "true", label: this.label, restrict: "0123456789/: ", enabled: this.enabled, errorMessage: this.errorMessage, mode: this.mode, onKeyDown: event => { this.handleKeyDown(event); }, onBlur: () => this.handleBlur(), onInput: (evt) => this.handleInput(evt), onFocus: () => this.handleFocus(), onClick: () => this.handleClick(), canShowError: this.canShowError, noMargin: this.noMargin }, h("button", { disabled: !this.enabled, tabindex: -1, class: "btn-open-cal", onClick: () => this.showCalendar(), slot: "leftIcon" })), h("ez-calendar", { ref: elem => this._calendar = elem, "data-element-id": ElementIDUtils.getInternalIDInfo("calendar"), onEzChange: (event) => { this.hideCalendar(); event.stopPropagation(); }, floating: true, time: true, showSeconds: this.showSeconds, "data-is-fixed": this._elem.dataset.isFixed })));
236
+ return (h(Host, null, h("ez-text-input", { "data-element-id": ElementIDUtils.getInternalIDInfo("textInput"), ref: elem => this._textInput = elem, "data-slave-mode": "true", label: this.label, restrict: "0123456789/: ", enabled: this.enabled, errorMessage: this.errorMessage, mode: this.mode, onKeyDown: event => { this.handleKeyDown(event); }, onBlur: () => this.handleBlur(), onInput: (evt) => this.handleInput(evt), onFocus: () => this.handleFocus(), onClick: () => this.handleClick(), canShowError: this.canShowError }, h("button", { disabled: !this.enabled, tabindex: -1, class: "btn-open-cal", onClick: () => this.showCalendar(), slot: "leftIcon" })), h("ez-calendar", { ref: elem => this._calendar = elem, "data-element-id": ElementIDUtils.getInternalIDInfo("calendar"), onEzChange: (event) => { this.hideCalendar(); event.stopPropagation(); }, floating: true, time: true, showSeconds: this.showSeconds, "data-is-fixed": this._elem.dataset.isFixed })));
238
237
  }
239
238
  get _elem() { return getElement(this); }
240
239
  static get watchers() { return {
@@ -1,6 +1,6 @@
1
1
  import { r as registerInstance, c as createEvent, f as forceUpdate, h, g as getElement } from './index-baa5e267.js';
2
2
  import { D as DialogType } from './DialogType-54a62731.js';
3
- import { FloatingManager, ElementIDUtils } from '@sankhyalabs/core';
3
+ import { FloatingManager, ElementIDUtils, KeyboardManager } from '@sankhyalabs/core';
4
4
  import { F as FocusResolver } from './FocusResolver-1ccbf850.js';
5
5
 
6
6
  const ezDialogCss = ":host{--dialog__container-padding:var(--space--md, 20px);--dialog__btn__close--background-color:var(--title--primary, #2b3a54);--dialog__btn__no--padding-right:var(--space--large, 24px);--dialog__btn__close__image:url('data:image/svg+xml;utf8,<svg width=\"12\" height=\"12\" viewBox=\"0 0 12 12\" xmlns=\"http://www.w3.org/2000/svg%22%3E<path d=\"M 7.0060773,5.995511 11.461972,1.5397722 c 0.132856,-0.1328413 0.207547,-0.3130253 0.207547,-0.5009046 0,-0.18786999 -0.07469,-0.3680541 -0.207547,-0.5009048 -0.132857,-0.13284126 -0.31302,-0.20748126 -0.500927,-0.20748126 -0.187812,0 -0.36807,0.07464 -0.500926,0.20748126 L 6.0042244,4.9937015 1.5482921,0.5379628 C 1.4154357,0.40512154 1.2352533,0.33048154 1.0473657,0.33048154 c -0.18787813,0 -0.36807,0.07464 -0.50092647,0.20748126 -0.13285646,0.1328507 -0.20749026,0.31303481 -0.20749026,0.5009048 0,0.1878793 0.0746338,0.3680633 0.20749026,0.5009046 L 5.0023715,5.995511 0.54643923,10.452213 c -0.0676086,0.06534 -0.12151598,0.14352 -0.15859681,0.229916 -0.0370714,0.08639 -0.0565645,0.1794 -0.0573369,0.27335 -7.724e-4,0.09404 0.0171873,0.187331 0.0528423,0.274293 0.0356455,0.08705 0.0882688,0.166087 0.15479148,0.23256 0.0665321,0.06648 0.14562277,0.11897 0.2326735,0.154567 0.0870507,0.0356 0.18031463,0.05344 0.2743433,0.05259 0.094029,-8.5e-4 0.1869528,-0.02049 0.2733331,-0.0576 0.08639,-0.0372 0.1645078,-0.09121 0.2298029,-0.158817 L 6.0042244,6.9973204 10.460119,11.453078 c 0.132856,0.132851 0.313114,0.207444 0.500926,0.207444 0.187907,0 0.36807,-0.07459 0.500927,-0.207444 0.132856,-0.13285 0.207547,-0.313006 0.207547,-0.500904 0,-0.187898 -0.07469,-0.368054 -0.207547,-0.500905 z\"/></svg>');--dialog__title--font-pattern:var(--font-pattern, \"Roboto\");--dialog__title--padding-left:var(--space--small, 6px);--dialog__title__container--padding-bottom:var(--space--medium, 12px);--dialog__title--weight--large:var(--text-weight--large, 600);--dialog__body--font-pattern:var(--font-pattern, \"Roboto\");--dialog__body--text-shadow:var(--text-shadow, \"0 0 0 #353535, 0 0 1px transparent\");--dialog__body--text-weight--medium:var(--text-weight--medium, 400);--dialog__body--padding-bottom:var(--space--medium, 12px);--dialog__body--font-size:var(--text--medium, 14px);--dialog__body--color:var(--text--primary, #626e82);--dialog__icon--color:var(--text--inverted, #fff);--dialog__critical--background-color:var(--color--alert-error-800, #BD0025);--dialog__warning--background-color:var(--color--alert-warning-500, #EFB103);--dialog__success--background-color:var(--color--alert-success-500, #00523c);--dialog-z-index:var(--elevation--100, 100);--dialog--warning__image:url('data: image/svg+xml;utf8,<svg width=\"15\" height=\"15\" viewBox=\"0 0 15 15\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M 7.5,0 0,13 h 15 z m 0,2.73684 5.1341,8.89476 H 2.36591 Z M 6.81818,5.47368 V 8.21053 H 8.18182 V 5.47368 Z m 0,4.10527 V 10.9474 H 8.18182 V 9.57895\"/></svg>');--dialog--critical__image:url('data: image/svg+xml;utf8,<svg width=\"13\" height=\"13\" viewBox=\"0 0 13 13\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M 7.6534493,6.4948538 12.762051,1.3864299 C 12.914368,1.2341297 13,1.027552 13,0.81215179 13,0.59676225 12.914369,0.39018443 12.762051,0.23787352 12.609733,0.08557341 12.40318,0 12.187747,0 11.972425,0 11.765762,0.08557341 11.613445,0.23787352 L 6.5048431,5.3462975 1.3961977,0.23787352 C 1.2438802,0.08557341 1.0373043,0 0.82189458,0 0.60649572,0 0.39990901,0.08557341 0.24759147,0.23787352 0.09527396,0.39018443 0.00970766,0.59676225 0.00970766,0.81215179 c 0,0.21540021 0.0855663,0.42197791 0.23788381,0.57427811 L 5.3562369,6.4948538 0.24759147,11.604381 c -0.0775121,0.07492 -0.13931586,0.164543 -0.18182835,0.263595 -0.04250169,0.09905 -0.064850182,0.205678 -0.0657357237,0.313391 -8.8554258e-4,0.107813 0.0197049337,0.214771 0.0605827337,0.314472 0.04086693,0.0998 0.10119858,0.190415 0.17746563,0.266625 0.0762779,0.07622 0.16695386,0.136398 0.26675594,0.177208 0.099802,0.04082 0.20672745,0.06127 0.31452961,0.06029 0.1078025,-9.53e-4 0.21433799,-0.0235 0.31337139,-0.06604 0.099045,-0.04265 0.1886052,-0.104571 0.263465,-0.182081 L 6.5048431,7.6434102 11.613445,12.751855 c 0.152317,0.152312 0.35898,0.237831 0.574302,0.237831 0.215433,0 0.421986,-0.08552 0.574304,-0.237831 C 12.914368,12.599545 13,12.393 13,12.177578 13,11.962157 12.91437,11.75561 12.762051,11.603299 Z\"/></svg>')}h2{margin-block-start:0;margin-block-end:0;margin-inline-start:0px;margin-inline-end:0px}.overlay{position:fixed;display:flex;top:0px;z-index:var(--dialog-z-index);left:0px;width:100%;box-sizing:border-box;height:100vh;background-color:rgba(var(--rgb-background--overlay), var(--opacity--soft));backdrop-filter:blur(var(--background-blur--medium))}.dialog{display:flex;width:80%;position:absolute;top:50%;left:50%;margin-right:-50%;box-sizing:border-box;transform:translate(-50%, -50%);box-shadow:0px 0px 16px rgba(0, 38, 111, 0.122)}@media screen and (min-width: 768px){.dialog{width:50%}}@media screen and (min-width: 992px){.dialog{width:33.33333%}}.dialog__container{width:100%;background:#FFFF;border-radius:0px 6px 6px 0px;box-sizing:border-box;padding:var(--dialog__container-padding)}.dialog__container--default{border-radius:6px 6px 6px 6px}.dialog__critical--indicator{box-sizing:border-box;width:12px;border-radius:6px 0px 0px 6px;background-color:var(--dialog__critical--background-color)}.dialog__warning--indicator{width:12px;border-radius:6px 0px 0px 6px;box-sizing:border-box;background-color:var(--dialog__warning--background-color)}.dialog__success--indicator{width:12px;border-radius:6px 0px 0px 6px;box-sizing:border-box;background-color:var(--dialog__success--background-color)}.message{font-size:var(--dialog__body--font-size);font-weight:var(--dialog__body--text-weight--medium);font-family:var(--dialog__body--font-pattern);text-shadow:var(--dialog__body--text-shadow);padding-bottom:var(--dialog__body--padding-bottom);color:var(--dialog__body--color);max-height:30vh;content-visibility:auto;margin-bottom:var(--space--medium);overflow-y:auto}.changeable__icon{background:var(--dialog__warning--background-color);--ez-icon--color:var(--dialog__icon--color);display:grid;place-items:center;width:26px;height:26px;border-radius:50%}.changeable__icon.critical{background:var(--dialog__critical--background-color)}.title{display:flex;font-family:var(--dialog__title--font-pattern);margin:0;font-weight:var(--dialog__title--weight--large);line-height:0;color:var(--title--primary)}.title__container{display:flex;padding-bottom:var(--dialog__title__container--padding-bottom)}.title__box{display:flex;width:100%;align-items:center;align-self:center}.title__label{padding-left:var(--dialog__title--padding-left)}.title__label--no-icon{padding-left:0}.title-icon--critical{background-color:var(--dialog__critical--background-color)}.title-icon--success{background-color:var(--dialog__success--background-color)}.title-icon--warn{background-color:var(--dialog__warning--background-color)}.btn-close{justify-content:flex-end;align-self:flex-start;align-items:flex-start;display:flex;outline:none;width:10%;border:none;background-color:unset;cursor:pointer}.btn-close::after{content:'';display:flex;background-color:var(--dialog__btn__close--background-color);width:12px;height:12px;-webkit-mask-image:var(--dialog__btn__close__image);mask-image:var(--dialog__btn__close__image)}.title-icon::after{content:'';display:flex;background-color:#FFFF;width:15px;height:15px;-webkit-mask-image:var(--dialog--warning__image);mask-image:var(--dialog--warning__image)}.button-yes-no__container{display:flex;box-sizing:border-box;align-self:center;align-items:center;justify-content:flex-end}.button__cancel{padding-right:var(--dialog__btn__no--padding-right)}.button__confirm{--ez-button--background-color:var(--color--primary);--ez-button--color:var(--color--inverted);--ez-button--hover--background-color:var(--color--primary-600);--ez-button--hover-color:var(--color--inverted)}.button__confirm--danger{--ez-button--background-color:var(--color--alert-error-800, #BD0025);--ez-button--color:var(--color--inverted);--ez-button--hover--background-color:var(--color-alert--error-900, #a10020);--ez-button--hover-color:var(--color--inverted)}.button__confirm--container{display:flex;justify-content:flex-end}.row{width:100%;display:flex;flex-wrap:wrap}.col{display:flex;flex-wrap:wrap;align-self:flex-start;box-sizing:border-box}.col--stretch{align-self:stretch}.col--undefined{width:unset}.col--nowrap{flex-wrap:nowrap}@media screen and (min-width: 320px){.col--sd-1{width:8.33333%}.col--sd-2{width:16.66667%}.col--sd-3{width:25%}.col--sd-4{width:33.33333%}.col--sd-5{width:41.66667%}.col--sd-6{width:50%}.col--sd-7{width:58.33333%}.col--sd-8{width:66.66667%}.col--sd-9{width:75%}.col--sd-10{width:83.33333%}.col--sd-11{width:91.66667%}.col--sd-12{width:100%}}@media screen and (min-width: 480px){.col--pn-1{width:8.33333%}.col--pn-2{width:16.66667%}.col--pn-3{width:25%}.col--pn-4{width:33.33333%}.col--pn-5{width:41.66667%}.col--pn-6{width:50%}.col--pn-7{width:58.33333%}.col--pn-8{width:66.66667%}.col--pn-9{width:75%}.col--pn-10{width:83.33333%}.col--pn-11{width:91.66667%}.col--pn-12{width:100%}}@media screen and (min-width: 768px){.col--tb-1{width:8.33333%}.col--tb-2{width:16.66667%}.col--tb-3{width:25%}.col--tb-4{width:33.33333%}.col--tb-5{width:41.66667%}.col--tb-6{width:50%}.col--tb-7{width:58.33333%}.col--tb-8{width:66.66667%}.col--tb-9{width:75%}.col--tb-10{width:83.33333%}.col--tb-11{width:91.66667%}.col--tb-12{width:100%}}@media screen and (min-width: 992px){.col--md-1{width:8.33333%}.col--md-2{width:16.66667%}.col--md-3{width:25%}.col--md-4{width:33.33333%}.col--md-5{width:41.66667%}.col--md-6{width:50%}.col--md-7{width:58.33333%}.col--md-8{width:66.66667%}.col--md-9{width:75%}.col--md-10{width:83.33333%}.col--md-11{width:91.66667%}.col--md-12{width:100%}}@media screen and (min-width: 1200px){.col--ld-1{width:8.33333%}.col--ld-2{width:16.66667%}.col--ld-3{width:25%}.col--ld-4{width:33.33333%}.col--ld-5{width:41.66667%}.col--ld-6{width:50%}.col--ld-7{width:58.33333%}.col--ld-8{width:66.66667%}.col--ld-9{width:75%}.col--ld-10{width:83.33333%}.col--ld-11{width:91.66667%}.col--ld-12{width:100%}}";
@@ -45,11 +45,6 @@ const EzDialog = class {
45
45
  this._canFocusOnPrimaryBtn = true;
46
46
  }
47
47
  }
48
- handleKeyDown(event) {
49
- if (event.key === 'Escape' || event.key === 'Esc') {
50
- this.handleButtonClick(false);
51
- }
52
- }
53
48
  manageOverflow() {
54
49
  if (this.opened) {
55
50
  window.document.body.style.overflow = "hidden";
@@ -161,6 +156,10 @@ const EzDialog = class {
161
156
  }
162
157
  componentDidLoad() {
163
158
  ElementIDUtils.addIDInfo(this._element);
159
+ new KeyboardManager({ propagate: false, element: this._element })
160
+ .bind("Enter", () => this.handleButtonClick(true), { description: "Botão de confirmação ou OK", element: this._element })
161
+ .bind("Escape", () => this.handleButtonClick(false), { description: "Botão de fechar ou x", element: this._element })
162
+ .bind("Esc", () => this.handleButtonClick(false), { description: "Botão de fechar ou x", element: this._element });
164
163
  }
165
164
  componentDidRender() {
166
165
  this.manageOverlay();
@@ -522,7 +522,7 @@ EzDropdown.style = ezDropdownCss;
522
522
 
523
523
  const ALLOWED_ANIMATIONS = ['progress', 'progress-dark', 'pulse', 'false'];
524
524
 
525
- const ezSkeletonCss = ".skeleton {\n\tbox-sizing: border-box;\n\toutline: none;\n\toverflow: hidden;\n\tposition: relative;\n\n\tbackground:var(--skeleton-background, #eff1f6) no-repeat;\n\n\tborder-radius: var(--skeleton-border-radius, 4px);\n\twidth: var(--skeleton-width, 100%);\n\theight: var(--skeleton-height, 20px);\n\tdisplay: inline-block;\n\tmargin-bottom: var(--skeleton-margin-bottom, 0px);\n\twill-change: transform;\n\n\t&:after,\n\t&:before {\n\t\tbox-sizing: border-box;\n\t}\n\n\t&.circle {\n\t\twidth: var(--skeleton-width, 40px);\n\t\theight: var(--skeleton-height, 40px);\n\t\tmargin-bottom: var(--skeleton-margin-bottom, 5px);\n\t\tborder-radius: var(--skeleton-border-radius, 50%);\n\t}\n\n\t&.rect {\n\t\tborder-radius: var(--skeleton-border-radius, 0px);\n\t}\n\n\t&.progress,\n\t&.progress-dark {\n\t\tanimation: progress 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;\n\t\tbackground-size: 200px 100%;\n\t}\n\n\t&.progress {\n\t\tbackground-image: linear-gradient(\n\t\t\t90deg,\n\t\t\trgba(255, 255, 255, 0),\n\t\t\trgba(255, 255, 255, 0.6),\n\t\t\trgba(255, 255, 255, 0)\n\t\t);\n\t}\n\n\t&.progress-dark {\n\t\tbackground-image: linear-gradient(\n\t\t\t90deg,\n\t\t\ttransparent,\n\t\t\trgba(0, 0, 0, 0.2),\n\t\t\ttransparent\n\t\t);\n\t}\n\n\t&.pulse {\n\t\tanimation: pulse 1.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;\n\t\tanimation-delay: 0.5s;\n\t}\n\n\t@media (prefers-reduced-motion: reduce) {\n\t\t&.pulse,\n\t\t&.progress-dark,\n\t\t&.progress {\n\t\t\tanimation: none;\n\t\t}\n\n\t\t&.progress,\n\t\t&.progress-dark {\n\t\t\tbackground-image: none;\n\t\t}\n\t}\n}\n\n@keyframes progress {\n\t0% {\n\t\tbackground-position: -200px 0;\n\t}\n\t100% {\n\t\tbackground-position: calc(200px + 100%) 0;\n\t}\n}\n\n@keyframes pulse {\n\t0% {\n\t\topacity: 1;\n\t}\n\t50% {\n\t\topacity: 0.4;\n\t}\n\t100% {\n\t\topacity: 1;\n\t}\n}";
525
+ const ezSkeletonCss = ".skeleton {\n\tbackground: var(--skeleton-background, #eff1f6) no-repeat;\n\n\tborder-radius: var(--skeleton-border-radius, 4px);\n\twidth: var(--skeleton-width, 100%);\n\theight: var(--skeleton-height, 20px);\n\tdisplay: inline-block;\n\tmargin-bottom: var(--skeleton-margin-bottom, 0px);\t\n\tbox-sizing: border-box;\n\toutline: none;\n\toverflow: hidden;\n\tposition: relative;\n\t-webkit-will-change: transform;\n -moz-will-change: transform;\n\twill-change: transform;\n\n\t&:after,\n\t&:before {\n\t\tbox-sizing: border-box;\n\t}\n\n\t&.circle {\n\t\twidth: var(--skeleton-width, 40px);\n\t\theight: var(--skeleton-height, 40px);\n\t\tmargin-bottom: var(--skeleton-margin-bottom, 5px);\n\t\tborder-radius: var(--skeleton-border-radius, 50%);\n\t}\n\n\t&.rect {\n\t\tborder-radius: var(--skeleton-border-radius, 0px);\n\t}\n\n\t&.progress,\n\t&.progress-dark {\n\t\t-webkit-animation: progress 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;\n -moz-animation: progress 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;\n -ms-animation: progress 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;\n\t\tanimation: progress 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;\n\t\tbackground-size: 200px 100%;\n\t}\n\n\t&.progress {\n\t\tbackground-image: -webkit-linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0));\n background-image: -moz-linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0));\n background-image: -ms-linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0));\n background-image: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0));\n\t}\n\n\t&.progress-dark {\n\t\tbackground-image: -webkit-linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.2), transparent);\n background-image: -moz-linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.2), transparent);\n background-image: -ms-linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.2), transparent); \n\t\tbackground-image: linear-gradient(90deg,transparent,rgba(0, 0, 0, 0.2),transparent);\n\t}\n\n\t&.pulse {\n\t\t-webkit-animation: pulse 1.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;\n -moz-animation: pulse 1.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;\n -ms-animation: pulse 1.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;\n\t\tanimation: pulse 1.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;\n\t\tanimation-delay: 0.5s;\n\t}\n\n\t@media (prefers-reduced-motion: reduce) {\n\t\t&.pulse,\n\t\t&.progress-dark,\n\t\t&.progress {\n\t\t\tanimation: none;\n\t\t}\n\n\t\t&.progress,\n\t\t&.progress-dark {\n\t\t\tbackground-image: none;\n\t\t}\n\t}\n}\n\n@-webkit-keyframes progress {\n 0% { background-position: -200px 0; }\n 100% { background-position: calc(200px + 100%) 0; }\n}\n@-moz-keyframes progress {\n 0% { background-position: -200px 0; }\n 100% { background-position: calc(200px + 100%) 0; }\n}\n@-ms-keyframes progress {\n 0% { background-position: -200px 0; }\n 100% { background-position: calc(200px + 100%) 0; }\n}\n@keyframes progress {\n\t0% { background-position: -200px 0; }\n\t100% { background-position: calc(200px + 100%) 0; }\n}\n\n@-webkit-keyframes pulse {\n 0% { opacity: 1; }\n 50% { opacity: 0.4; }\n 100% { opacity: 1; }\n}\n@-moz-keyframes pulse {\n 0% { opacity: 1; }\n 50% { opacity: 0.4; }\n 100% { opacity: 1; }\n}\n@-ms-keyframes pulse {\n 0% { opacity: 1; }\n 50% { opacity: 0.4; }\n 100% { opacity: 1; }\n}\n@keyframes pulse {\n\t0% { opacity: 1; }\n\t50% { opacity: 0.4; }\n\t100% { opacity: 1; }\n}";
526
526
 
527
527
  const EzSkeleton = class {
528
528
  constructor(hostRef) {
@@ -1,6 +1,6 @@
1
1
  import { r as registerInstance, c as createEvent, h, g as getElement } from './index-baa5e267.js';
2
2
  import { ElementIDUtils } from '@sankhyalabs/core';
3
- import { C as CSSVarsUtils } from './CSSVarsUtils-71ce76be.js';
3
+ import { C as CSSVarsUtils } from './CSSVarsUtils-acba92d7.js';
4
4
 
5
5
  const ezFilterInputCss = ":host{display:block;width:100%}";
6
6
 
@@ -29,7 +29,6 @@ const EzFilterInput = class {
29
29
  this.asyncSearch = false;
30
30
  this.canShowError = true;
31
31
  this.autoFocus = false;
32
- this.noMargin = false;
33
32
  }
34
33
  observeLabel() {
35
34
  if (this._textInput) {
@@ -112,7 +111,7 @@ const EzFilterInput = class {
112
111
  }
113
112
  render() {
114
113
  ElementIDUtils.addIDInfoIfNotExists(this._elem, 'input');
115
- return (h("ez-text-input", { "data-element-id": ElementIDUtils.getInternalIDInfo("textInput"), ref: elem => this._textInput = elem, label: this.label, onEzChange: evt => this.handleChange(evt), value: this.value, enabled: this.enabled, errorMessage: this.errorMessage, restrict: this.restrict, mode: this.mode, onFocusin: this.handleFocus, canShowError: this.canShowError, noMargin: this.noMargin }, h("ez-icon", { slot: "leftIcon", iconName: "search" })));
114
+ return (h("ez-text-input", { "data-element-id": ElementIDUtils.getInternalIDInfo("textInput"), ref: elem => this._textInput = elem, label: this.label, onEzChange: evt => this.handleChange(evt), value: this.value, enabled: this.enabled, errorMessage: this.errorMessage, restrict: this.restrict, mode: this.mode, onFocusin: this.handleFocus, canShowError: this.canShowError }, h("ez-icon", { slot: "leftIcon", iconName: "search" })));
116
115
  }
117
116
  get _elem() { return getElement(this); }
118
117
  static get watchers() { return {
@@ -11,7 +11,7 @@ const buildCheckBox = (field) => {
11
11
  };
12
12
  function buildField(fieldName, fieldLabel, readOnly, contextName, switchMode) {
13
13
  return (h("div", { class: "ez-col ez-col--sd-12 ez-align--middle ez-padding-bottom--large" },
14
- h("ez-check", { enabled: !readOnly, label: fieldLabel, mode: switchMode ? CheckMode.SWITCH : CheckMode.REGULAR, "data-field-name": fieldName, "data-context-name": contextName, key: fieldName, noMargin: true })));
14
+ h("ez-check", { enabled: !readOnly, label: fieldLabel, mode: switchMode ? CheckMode.SWITCH : CheckMode.REGULAR, "data-field-name": fieldName, "data-context-name": contextName, key: fieldName })));
15
15
  }
16
16
 
17
17
  const buildComboBox = ({ name, label, readOnly, required, props, contextName, canShowError }) => {
@@ -25,25 +25,25 @@ const buildComboBox = ({ name, label, readOnly, required, props, contextName, ca
25
25
  options = prop;
26
26
  }
27
27
  return (h("div", { class: "ez-col ez-col--sd-12" },
28
- h("ez-combo-box", { enabled: !readOnly, suppressEmptyOption: required, label: label, "data-field-name": name, "data-context-name": contextName, key: name, options: options, canShowError: canShowError, noMargin: true })));
28
+ h("ez-combo-box", { class: "ez-input__no-margin", enabled: !readOnly, suppressEmptyOption: required, label: label, "data-field-name": name, "data-context-name": contextName, key: name, options: options, canShowError: canShowError })));
29
29
  };
30
30
 
31
31
  const buildDate = ({ name, label, readOnly, canShowError }) => {
32
32
  return (h("div", { class: "ez-col ez-col--sd-12" },
33
- h("ez-date-input", { enabled: !readOnly, label: label, "data-field-name": name, key: name, canShowError: canShowError, noMargin: true })));
33
+ h("ez-date-input", { class: "ez-input__no-margin", enabled: !readOnly, label: label, "data-field-name": name, key: name, canShowError: canShowError })));
34
34
  };
35
35
  const buildTime = ({ name, label, readOnly, canShowError, props }) => {
36
36
  var _a;
37
37
  return (h("div", { class: "ez-col ez-col--sd-12" },
38
- h("ez-time-input", { enabled: !readOnly, label: label, "data-field-name": name, key: name, canShowError: canShowError, noMargin: true, "show-seconds": (_a = props === null || props === void 0 ? void 0 : props.showSeconds) !== null && _a !== void 0 ? _a : false })));
38
+ h("ez-time-input", { class: "ez-input__no-margin", enabled: !readOnly, label: label, "data-field-name": name, key: name, canShowError: canShowError, "show-seconds": (_a = props === null || props === void 0 ? void 0 : props.showSeconds) !== null && _a !== void 0 ? _a : false })));
39
39
  };
40
40
  const buildTimeSeconds = ({ name, label, readOnly, canShowError }) => {
41
41
  return (h("div", { class: "ez-col ez-col--sd-12" },
42
- h("ez-time-input", { enabled: !readOnly, label: label, "data-field-name": name, key: name, canShowError: canShowError, noMargin: true, showSeconds: true })));
42
+ h("ez-time-input", { class: "ez-input__no-margin", enabled: !readOnly, label: label, "data-field-name": name, key: name, canShowError: canShowError, showSeconds: true })));
43
43
  };
44
44
  const buildDateTime = ({ name, label, readOnly, contextName, canShowError }) => {
45
45
  return (h("div", { class: "ez-col ez-col--sd-12" },
46
- h("ez-date-time-input", { enabled: !readOnly, label: label, "data-field-name": name, "data-context-name": contextName, key: name, canShowError: canShowError, noMargin: true })));
46
+ h("ez-date-time-input", { class: "ez-input__no-margin", enabled: !readOnly, label: label, "data-field-name": name, "data-context-name": contextName, key: name, canShowError: canShowError })));
47
47
  };
48
48
 
49
49
  const buildFile = ({ name, label, readOnly, contextName, props }) => {
@@ -69,14 +69,14 @@ const buildInteger = ({ name, label, readOnly, contextName, canShowError }) => {
69
69
  return buildNumeric(name, label, readOnly, 0, 0, contextName, canShowError);
70
70
  };
71
71
  function buildNumeric(fieldName, fieldLabel, readOnly, precision, prettyPrecision, contextName, canShowError) {
72
- return (h("div", { class: "ez-col ez-col--sd-12 " },
73
- h("ez-number-input", { enabled: !readOnly, label: fieldLabel, precision: precision, prettyPrecision: prettyPrecision, "data-field-name": fieldName, "data-context-name": contextName, key: fieldName, canShowError: canShowError, noMargin: true })));
72
+ return (h("div", { class: "ez-col ez-col--sd-12" },
73
+ h("ez-number-input", { class: "ez-input__no-margin", enabled: !readOnly, label: fieldLabel, precision: precision, prettyPrecision: prettyPrecision, "data-field-name": fieldName, "data-context-name": contextName, key: fieldName, canShowError: canShowError })));
74
74
  }
75
75
 
76
76
  const buildSearch = ({ name, label, readOnly, required, contextName, canShowError, optionLoader, props }) => {
77
77
  var _a;
78
78
  return (h("div", { class: "ez-col ez-col--sd-12" },
79
- h("ez-search", { enabled: !readOnly, suppressEmptyOption: required, label: label, "data-field-name": name, "data-context-name": contextName, key: name, canShowError: canShowError, optionLoader: optionLoader, ignoreLimitCharsToSearch: (_a = props.ignoreLimitCharsToSearch) !== null && _a !== void 0 ? _a : false, noMargin: true })));
79
+ h("ez-search", { class: "ez-input__no-margin", enabled: !readOnly, suppressEmptyOption: required, label: label, "data-field-name": name, "data-context-name": contextName, key: name, canShowError: canShowError, optionLoader: optionLoader, ignoreLimitCharsToSearch: (_a = props.ignoreLimitCharsToSearch) !== null && _a !== void 0 ? _a : false })));
80
80
  };
81
81
 
82
82
  const buildTextArea = ({ name, label, readOnly, contextName, rows, canShowError }) => {
@@ -86,7 +86,7 @@ const buildTextArea = ({ name, label, readOnly, contextName, rows, canShowError
86
86
 
87
87
  const buildTextInput = ({ name, label, readOnly, contextName, canShowError, props }) => {
88
88
  return (h("div", { class: "ez-col ez-col--sd-12" },
89
- h("ez-text-input", { label: label, "data-field-name": name, "data-context-name": contextName, key: name, enabled: !readOnly, canShowError: canShowError, mask: props === null || props === void 0 ? void 0 : props.mask, "clean-value-mask": props === null || props === void 0 ? void 0 : props.cleanValueMask, noMargin: true })));
89
+ h("ez-text-input", { class: "ez-input__no-margin", label: label, "data-field-name": name, "data-context-name": contextName, key: name, enabled: !readOnly, canShowError: canShowError, mask: props === null || props === void 0 ? void 0 : props.mask, "clean-value-mask": props === null || props === void 0 ? void 0 : props.cleanValueMask })));
90
90
  };
91
91
 
92
92
  const uiBuilders = new Map();
@@ -1,6 +1,6 @@
1
1
  import { r as registerInstance, c as createEvent, h, f as forceUpdate, H as Host, g as getElement } from './index-baa5e267.js';
2
2
  import { DateUtils, Action, StringUtils, DataUnit, ElementIDUtils } from '@sankhyalabs/core';
3
- import { b as buildFieldMetadata, D as DataBinder } from './DataBinder-d2ecbb0f.js';
3
+ import { b as buildFieldMetadata, D as DataBinder } from './DataBinder-9c877244.js';
4
4
  import './ApplicationUtils-eaf91331.js';
5
5
  import './DialogType-54a62731.js';
6
6
 
@@ -101,7 +101,7 @@ const buildFormMetadata = (config, dataUnit, includeDetails = false) => {
101
101
  return;
102
102
  }
103
103
  const descriptor = dataUnit.getField(field.name);
104
- const fieldVisible = descriptor.visible == undefined || descriptor.visible === true;
104
+ const fieldVisible = (descriptor === null || descriptor === void 0 ? void 0 : descriptor.visible) == undefined || (descriptor === null || descriptor === void 0 ? void 0 : descriptor.visible) === true;
105
105
  if (descriptor && fieldVisible && tabConfig.visible) {
106
106
  if (!sheets.has(tabConfig)) {
107
107
  sheets.set(tabConfig, []);
@@ -1,12 +1,12 @@
1
1
  import { h, r as registerInstance, c as createEvent, H as Host, g as getElement } from './index-baa5e267.js';
2
- import { Action, ObjectUtils as ObjectUtils$1, HTMLBuilder, ApplicationContext, StringUtils as StringUtils$1, UserInterface, LockManager, LockManagerOperation, NumberUtils as NumberUtils$1, MaskFormatter, DataType, SortMode, ElementIDUtils, FieldComparator, DateUtils as DateUtils$1, ArrayUtils as ArrayUtils$1, JSUtils, OverflowWatcher, OVERFLOWED_CLASS_NAME } from '@sankhyalabs/core';
2
+ import { Action, DataUnit, ObjectUtils as ObjectUtils$1, HTMLBuilder, ApplicationContext, StringUtils as StringUtils$1, UserInterface, LockManager, LockManagerOperation, NumberUtils as NumberUtils$1, MaskFormatter, DataType, SortMode, ElementIDUtils, FieldComparator, DateUtils as DateUtils$1, ArrayUtils as ArrayUtils$1, JSUtils, OverflowWatcher, OVERFLOWED_CLASS_NAME } from '@sankhyalabs/core';
3
3
  import { SelectionMode } from '@sankhyalabs/core/dist/dataunit/DataUnit';
4
4
  import { A as ApplicationUtils } from './ApplicationUtils-eaf91331.js';
5
5
  import './DialogType-54a62731.js';
6
6
  import './CheckMode-bdb2ec19.js';
7
7
  import { C as CustomEditorSource, a as CustomRenderSource } from './ICustomRender-875b5a40.js';
8
8
  import { D as DISTINCT_FILTER_NAME_PREFIX, E as EZ_GRID_LOADING_SOURCE } from './constants-4e0d35b7.js';
9
- import { b as buildFieldMetadata, R as RecordValidationProcessor, D as DataBinder } from './DataBinder-d2ecbb0f.js';
9
+ import { b as buildFieldMetadata, R as RecordValidationProcessor, D as DataBinder } from './DataBinder-9c877244.js';
10
10
  import { F as FocusResolver } from './FocusResolver-1ccbf850.js';
11
11
 
12
12
  /**
@@ -49993,7 +49993,7 @@ class DataSourceInterceptor {
49993
49993
  interceptAction(action) {
49994
49994
  var _a;
49995
49995
  if (action.type === Action.LOADING_DATA) {
49996
- if (EZ_GRID_LOADING_SOURCE !== action.payload.source) {
49996
+ if (EZ_GRID_LOADING_SOURCE !== action.payload.source && DataUnit.CHANGING_PAGE_LOADING_SOURCE !== action.payload.source) {
49997
49997
  action.payload.filters = ((_a = action.payload) === null || _a === void 0 ? void 0 : _a.filters) !== undefined ? this.clearColumnFilter(action.payload.filters) : action.payload.filters;
49998
49998
  this._controller.clearFilter();
49999
49999
  }
@@ -50004,6 +50004,9 @@ class DataSourceInterceptor {
50004
50004
 
50005
50005
  class DataSource {
50006
50006
  handleDataSaved(action) {
50007
+ if (this._options) {
50008
+ this._options.onPaginationUpdate(this._dataUnit.getPaginationInfo());
50009
+ }
50007
50010
  this._controller.clearInvalidCells();
50008
50011
  this.handleRefreshOrReload(action);
50009
50012
  this._controller.processContinuousInsert();
@@ -50113,12 +50116,15 @@ class DataSource {
50113
50116
  return ((_b = action === null || action === void 0 ? void 0 : action.payload) === null || _b === void 0 ? void 0 : _b.silent) === true;
50114
50117
  }
50115
50118
  }
50116
- constructor(dataUnit, controller, options) {
50119
+ constructor(dataUnit, controller, options, resolveLoading) {
50120
+ var _a;
50117
50121
  this.RECORD_ARCHIVE = "__RECORD_ARCHIVE__";
50118
50122
  this.duObserver = (action) => {
50123
+ var _a;
50119
50124
  switch (action.type) {
50120
50125
  case Action.METADATA_LOADED:
50121
50126
  this._controller.setColumnsDef(this.buildColumnDefs());
50127
+ (_a = this._resolveLoading) === null || _a === void 0 ? void 0 : _a.call(this);
50122
50128
  break;
50123
50129
  case Action.LOADING_DATA:
50124
50130
  this._waitingForLoad = true;
@@ -50168,12 +50174,19 @@ class DataSource {
50168
50174
  break;
50169
50175
  }
50170
50176
  };
50171
- this._dataUnit = dataUnit;
50172
- this._controller = controller;
50173
- this._controller.setColumnsDef(this.buildColumnDefs());
50174
- this._options = options;
50175
- this._dataUnit.subscribe(this.duObserver);
50176
- this._dataUnit.addInterceptor(new DataSourceInterceptor(this._controller));
50177
+ try {
50178
+ this._resolveLoading = resolveLoading;
50179
+ this._dataUnit = dataUnit;
50180
+ this._controller = controller;
50181
+ this._controller.setColumnsDef(this.buildColumnDefs());
50182
+ this._options = options;
50183
+ this._dataUnit.subscribe(this.duObserver);
50184
+ this._dataUnit.addInterceptor(new DataSourceInterceptor(this._controller));
50185
+ }
50186
+ finally {
50187
+ if (this._dataUnit.metadata)
50188
+ (_a = this._resolveLoading) === null || _a === void 0 ? void 0 : _a.call(this);
50189
+ }
50177
50190
  }
50178
50191
  updateSelection() {
50179
50192
  const selectionInfo = this._dataUnit.getSelectionInfo();
@@ -50223,27 +50236,32 @@ class DataSource {
50223
50236
  (_b = this._dataUnit) === null || _b === void 0 ? void 0 : _b.subscribe(this.duObserver);
50224
50237
  }
50225
50238
  buildColumnDefs() {
50226
- const gridConfig = this._controller.getGridConfig() || [];
50227
- const columnDefs = [];
50228
- if (this._dataUnit.metadata) {
50229
- this._dataUnit.metadata.fields.sort((a, b) => {
50230
- const indexA = gridConfig.findIndex(value => value.name === a.name);
50231
- const indexB = gridConfig.findIndex(value => value.name === b.name);
50232
- return indexA - indexB;
50233
- });
50234
- this._dataUnit.metadata.fields.forEach(f => {
50235
- var _a;
50236
- if (f.visible !== false && f.name !== this.RECORD_ARCHIVE) {
50237
- const props = new Map();
50238
- const properties = this._dataUnit.getField(f.name).properties;
50239
- for (const value in properties) {
50240
- props.set(value, properties[value]);
50239
+ try {
50240
+ const gridConfig = this._controller.getGridConfig() || [];
50241
+ const columnDefs = [];
50242
+ if (this._dataUnit.metadata) {
50243
+ this._dataUnit.metadata.fields.sort((a, b) => {
50244
+ const indexA = gridConfig.findIndex(value => value.name === a.name);
50245
+ const indexB = gridConfig.findIndex(value => value.name === b.name);
50246
+ return indexA - indexB;
50247
+ });
50248
+ this._dataUnit.metadata.fields.forEach(f => {
50249
+ var _a;
50250
+ if (f.visible !== false && f.name !== this.RECORD_ARCHIVE) {
50251
+ const props = new Map();
50252
+ const properties = this._dataUnit.getField(f.name).properties;
50253
+ for (const value in properties) {
50254
+ props.set(value, properties[value]);
50255
+ }
50256
+ columnDefs.push({ label: f.label, name: f.name, userInterface: f.userInterface, options: (_a = this._dataUnit.getField(f.name).properties) === null || _a === void 0 ? void 0 : _a.options, props });
50241
50257
  }
50242
- columnDefs.push({ label: f.label, name: f.name, userInterface: f.userInterface, options: (_a = this._dataUnit.getField(f.name).properties) === null || _a === void 0 ? void 0 : _a.options, props });
50243
- }
50244
- });
50258
+ });
50259
+ }
50260
+ return columnDefs;
50261
+ }
50262
+ catch (error) {
50263
+ console.warn(error);
50245
50264
  }
50246
- return columnDefs;
50247
50265
  }
50248
50266
  }
50249
50267
 
@@ -64745,7 +64763,10 @@ class AgGridController {
64745
64763
  this.STATUS_COL_ID = 'statusColumn';
64746
64764
  this.RECORD_ARCHIVE_COL_ID = '__RECORD_ARCHIVE__';
64747
64765
  this.BLOCK_LOAD_DEBOUNCE = 100;
64748
- this.DOC_WIDTH = 1150;
64766
+ this.DEFAULT_FONT_SIZE = 14;
64767
+ this.DEFAULT_ICON_SIZE = 12;
64768
+ this.DEFAULT_MAX_SIZE = 200;
64769
+ this.DOC_WIDTH = 800;
64749
64770
  this._menuItems = [];
64750
64771
  this._idAttribName = '__record__id__';
64751
64772
  this._gridConfig = [];
@@ -64838,7 +64859,12 @@ class AgGridController {
64838
64859
  var _a;
64839
64860
  this._options = options;
64840
64861
  this._container = container;
64841
- const lockerId = options.enableLockManger ? LockManager.addLockManagerCtxId(this._container) : null;
64862
+ const lockerIdTaskbarClick = (options === null || options === void 0 ? void 0 : options.enableLockManagerTaskbarClick) ? LockManager === null || LockManager === void 0 ? void 0 : LockManager.addLockManagerCtxId(this._container) : null;
64863
+ let resolveLoading = undefined;
64864
+ if (options === null || options === void 0 ? void 0 : options.enableLockManagerLoadingComp) {
64865
+ const lockerIdAppLoading = LockManager === null || LockManager === void 0 ? void 0 : LockManager.addLockManagerCtxId(this._container);
64866
+ resolveLoading = LockManager === null || LockManager === void 0 ? void 0 : LockManager.lock(lockerIdAppLoading, LockManagerOperation.APP_LOADING);
64867
+ }
64842
64868
  if (this._grid === undefined) {
64843
64869
  LicenseManager.setLicenseKey(ApplicationContext.getContextValue('__EZUI__GRID_LICENSE__'));
64844
64870
  this._columnStateChangeCallback = options.onColumnStateChange;
@@ -64846,7 +64872,7 @@ class AgGridController {
64846
64872
  this._doubleClickCallBack = options.onDoubleClick;
64847
64873
  this._multipleSelection = options.allowMultipleSelection;
64848
64874
  this._dataUnit = options.dataUnit;
64849
- this._editionManager = new GridEditionManager(this._dataUnit, options.useEnterLikeTab, options.recordsValidator, options.editionIsDisabled, options.customEditors || this._customEditors, options.customRenders || this._customRenders, options.enableContinuousInsert, options.enableGridInsert, lockerId);
64875
+ this._editionManager = new GridEditionManager(this._dataUnit, options.useEnterLikeTab, options.recordsValidator, options.editionIsDisabled, options.customEditors || this._customEditors, options.customRenders || this._customRenders, options.enableContinuousInsert, options.enableGridInsert, lockerIdTaskbarClick);
64850
64876
  this._statusResolver = options.statusResolver;
64851
64877
  if (this._dataUnit) {
64852
64878
  this._dataUnit.sortingProvider = this;
@@ -64892,7 +64918,7 @@ class AgGridController {
64892
64918
  processCellCallback: this.processFormatterCellCallback
64893
64919
  }
64894
64920
  };
64895
- this.defineRowModelType(this._gridOptions, options);
64921
+ this.defineRowModelType(this._gridOptions, options, resolveLoading);
64896
64922
  this.setOptionsEvents(this._gridOptions);
64897
64923
  this.setOptionsSupress(this._gridOptions);
64898
64924
  this._gridOptions = this._editionManager.configureGrid(this._gridOptions);
@@ -65053,10 +65079,10 @@ class AgGridController {
65053
65079
  }
65054
65080
  return null;
65055
65081
  }
65056
- defineRowModelType(opt, sourceOptions) {
65082
+ defineRowModelType(opt, sourceOptions, resolveLoading) {
65057
65083
  if (this._dataUnit != undefined) {
65058
65084
  opt.rowModelType = 'serverSide';
65059
- opt.serverSideDatasource = this._dataSource = new DataSource(this._dataUnit, this, sourceOptions);
65085
+ opt.serverSideDatasource = this._dataSource = new DataSource(this._dataUnit, this, sourceOptions, resolveLoading);
65060
65086
  opt.serverSideSortOnServer = true;
65061
65087
  opt.columnDefs = this._colDefs;
65062
65088
  }
@@ -65361,9 +65387,8 @@ class AgGridController {
65361
65387
  this._gridOptions.api.setFocusedCell(rowIndex, firstCell);
65362
65388
  }
65363
65389
  setColumnsDef(cols) {
65364
- const newColDefs = [
65365
- Object.assign({ colId: this.CHECK_BOX_COL_ID, headerName: '', checkboxSelection: true, width: 29, suppressMovable: true, suppressAutoSize: true, suppressMenu: true, lockPosition: true, pinned: true }, (this._multipleSelection && { headerComponent: 'ezGridHeaderComponent', headerClass: 'ag-column-select-header' })),
65366
- ];
65390
+ const checkBoxColumn = Object.assign({ colId: this.CHECK_BOX_COL_ID, headerName: '', checkboxSelection: true, width: 29, suppressMovable: true, suppressAutoSize: true, suppressMenu: true, lockPosition: true, pinned: true }, (this._multipleSelection && { headerComponent: 'ezGridHeaderComponent', headerClass: 'ag-column-select-header' }));
65391
+ const newColDefs = this._options.suppressCheckBoxCol ? [] : [checkBoxColumn];
65367
65392
  if (this._statusResolver != undefined) {
65368
65393
  newColDefs.push({
65369
65394
  colId: this.STATUS_COL_ID,
@@ -65433,9 +65458,8 @@ class AgGridController {
65433
65458
  const columnsOffset = colDef.length - columns.length;
65434
65459
  this._gridConfig = state;
65435
65460
  let sort = [];
65436
- state === null || state === void 0 ? void 0 : state.forEach((cfgColumn, index) => {
65437
- var _a;
65438
- const colWidth = (_a = this._gridOptions.columnApi.getColumn(cfgColumn.name)) === null || _a === void 0 ? void 0 : _a.getActualWidth();
65461
+ state.forEach((cfgColumn, index) => {
65462
+ const colWidth = this.getColumnWidth(cfgColumn);
65439
65463
  this._gridOptions.columnApi.moveColumn(cfgColumn.name, index + columnsOffset);
65440
65464
  this._gridOptions.columnApi.setColumnWidth(cfgColumn.name, colWidth);
65441
65465
  visibleColumns.push(cfgColumn.name);
@@ -65797,6 +65821,21 @@ class AgGridController {
65797
65821
  stopEdit() {
65798
65822
  this._gridOptions.api.stopEditing();
65799
65823
  }
65824
+ getColumnWidth(cfgColumn) {
65825
+ var _a, _b;
65826
+ if (cfgColumn == undefined) {
65827
+ return;
65828
+ }
65829
+ if (cfgColumn.customWidth != undefined) {
65830
+ return cfgColumn.customWidth;
65831
+ }
65832
+ const field = (_a = this._dataUnit) === null || _a === void 0 ? void 0 : _a.getField(cfgColumn.name);
65833
+ if ((field === null || field === void 0 ? void 0 : field.userInterface) === UserInterface.SEARCH) {
65834
+ return this.DEFAULT_MAX_SIZE;
65835
+ }
65836
+ const labelSize = (((_b = field === null || field === void 0 ? void 0 : field.label) === null || _b === void 0 ? void 0 : _b.length) || 0) * this.DEFAULT_FONT_SIZE + this.DEFAULT_ICON_SIZE;
65837
+ return labelSize > this.DEFAULT_MAX_SIZE ? this.DEFAULT_MAX_SIZE : labelSize;
65838
+ }
65800
65839
  }
65801
65840
 
65802
65841
  function enableSelectAll(total) {
@@ -66032,6 +66071,8 @@ const EzGrid = class {
66032
66071
  this._selectionCount = undefined;
66033
66072
  this._hasLeftButtons = false;
66034
66073
  this._customFormatters = new Map();
66074
+ this.enableLockManagerLoadingComp = false;
66075
+ this.enableLockManagerTaskbarClick = true;
66035
66076
  this.multipleSelection = undefined;
66036
66077
  this.config = undefined;
66037
66078
  this.selectionToastConfig = undefined;
@@ -66046,9 +66087,10 @@ const EzGrid = class {
66046
66087
  this.paginationCounterMode = 'show';
66047
66088
  this.enableGridInsert = false;
66048
66089
  this.enableContinuousInsert = true;
66049
- this.enableLockManger = true;
66090
+ this.suppressCheckboxColumn = false;
66050
66091
  this.outlineMode = false;
66051
66092
  this.enableRowTableStriped = true;
66093
+ this.compact = false;
66052
66094
  }
66053
66095
  /**
66054
66096
  * Aplica a definição de colunas.
@@ -66382,6 +66424,8 @@ const EzGrid = class {
66382
66424
  return (h("div", { class: `grid-header__container grid-header__pagination ${this.resolvePaginationClassMode()}`, ref: ref => (this._refPaginationControl = ref) }, h("div", { class: "ez-text ez-text--primary ez-text--medium ez-margin-right--medium", ref: (element) => (this._refPaginationLabel = element) }, h("span", { class: "grid-header__pagination-label" }, this.paginationCounterMode == 'show' && h("strong", { class: "ez-text ez-text--primary ez-text--medium" }, this._getActualPageLabel()), this.paginationCounterMode == 'show' && this._getRemainingPageLabel())), h("div", { id: "grid-pagination-tooltip", ref: (element) => (this._refPaginationLabelTooltip = element), class: "ez-flex ez-margin-right--medium", title: `${this._getActualPageLabel()} ${this._getRemainingPageLabel()}` }, h("ez-button", { size: "small", class: "ez-margin-right--medium", iconName: "chevron-left", mode: "icon", enabled: currentPage > 0, onClick: () => this.previousPage(), label: "P\u00E1gina anterior" }), h("ez-button", { size: "small", iconName: "chevron-right", mode: "icon", enabled: hasMore, onClick: () => this.nextPage(), label: "Pr\u00F3xima P\u00E1gina" }))));
66383
66425
  }
66384
66426
  componentDidLoad() {
66427
+ const _application = ApplicationContext.getContextValue("__SNK__APPLICATION__");
66428
+ this.enableLockManagerLoadingComp = (!_application || (_application === null || _application === void 0 ? void 0 : _application.enableLockManagerLoadingApp)) ? this.enableLockManagerLoadingComp : false;
66385
66429
  this._gridController.initDatagrid(this._container, {
66386
66430
  onColumnStateChange: (type, state, info) => this.onColumnStateChange(type, state, info),
66387
66431
  onSelectionChange: (selection) => this.ezSelectionChange.emit(selection),
@@ -66405,12 +66449,14 @@ const EzGrid = class {
66405
66449
  autoFocus: this.autoFocus,
66406
66450
  enableGridInsert: this.enableGridInsert,
66407
66451
  enableContinuousInsert: this.enableContinuousInsert,
66452
+ suppressCheckBoxCol: this.suppressCheckboxColumn,
66408
66453
  onRefresh: () => {
66409
66454
  if (this.dataUnit) {
66410
66455
  this.setSelection(this.dataUnit.getSelectionInfo());
66411
66456
  }
66412
66457
  },
66413
- enableLockManger: this.enableLockManger,
66458
+ enableLockManagerTaskbarClick: this.enableLockManagerTaskbarClick,
66459
+ enableLockManagerLoadingComp: this.enableLockManagerLoadingComp,
66414
66460
  enableRowTableStriped: this.enableRowTableStriped,
66415
66461
  });
66416
66462
  if (this.config) {
@@ -66526,7 +66572,7 @@ const EzGrid = class {
66526
66572
  }
66527
66573
  render() {
66528
66574
  var _a;
66529
- return (h(Host, { "no-header": this.hideHeader() }, h("div", { class: `grid__container ${this.outlineMode ? 'outline-mode' : 'shadow-mode'} ez-grid`, ref: elem => (this._container = elem) }), h("div", { class: `ez-box ${this.outlineMode ? 'outline-mode' : 'shadow-mode'} ez-padding--small grid-header` }, 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
66575
+ return (h(Host, { "no-header": this.hideHeader() }, h("div", { class: `grid__container ez-grid ${this.outlineMode ? 'outline-mode' : 'shadow-mode'} ${this.compact ? 'no-padding' : ""}`, ref: elem => (this._container = elem) }), h("div", { class: `ez-box ${this.outlineMode ? 'outline-mode' : 'shadow-mode'} ez-padding--small grid-header` }, 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
66530
66576
  ${this._showSelectionCounter ? 'grid__selection-counter--opened' : ''}
66531
66577
  ` }, 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" }))));
66532
66578
  }