@sankhyalabs/ezui 1.1.120 → 1.1.123

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 (135) hide show
  1. package/dist/cjs/{ApplicationUtils-93721afc.js → ApplicationUtils-4a223c7a.js} +15 -9
  2. package/dist/cjs/{AssetsUtils-4909c6de.js → AssetsUtils-78164781.js} +1 -1
  3. package/dist/cjs/ez-action-chip.cjs.entry.js +1 -1
  4. package/dist/cjs/ez-application.cjs.entry.js +1 -1
  5. package/dist/cjs/ez-button.cjs.entry.js +2 -2
  6. package/dist/cjs/ez-calendar.cjs.entry.js +1 -1
  7. package/dist/cjs/ez-check.cjs.entry.js +1 -1
  8. package/dist/cjs/ez-collapsible-box.cjs.entry.js +1 -1
  9. package/dist/cjs/ez-combo-box.cjs.entry.js +1 -1
  10. package/dist/cjs/ez-date-input.cjs.entry.js +1 -1
  11. package/dist/cjs/ez-date-time-input.cjs.entry.js +1 -1
  12. package/dist/cjs/ez-dialog.cjs.entry.js +15 -11
  13. package/dist/cjs/ez-filter-input.cjs.entry.js +1 -1
  14. package/dist/cjs/ez-form.cjs.entry.js +80 -24
  15. package/dist/cjs/ez-grid.cjs.entry.js +37 -29
  16. package/dist/cjs/ez-icon.cjs.entry.js +1 -1
  17. package/dist/cjs/ez-label-chip.cjs.entry.js +1 -1
  18. package/dist/cjs/ez-list.cjs.entry.js +1 -1
  19. package/dist/cjs/ez-modal.cjs.entry.js +1 -1
  20. package/dist/cjs/ez-number-input.cjs.entry.js +1 -1
  21. package/dist/cjs/ez-popover.cjs.entry.js +1 -1
  22. package/dist/cjs/ez-popup.cjs.entry.js +1 -1
  23. package/dist/cjs/ez-search.cjs.entry.js +1 -1
  24. package/dist/cjs/ez-tabselector.cjs.entry.js +1 -1
  25. package/dist/cjs/ez-text-area.cjs.entry.js +1 -1
  26. package/dist/cjs/ez-text-input.cjs.entry.js +1 -1
  27. package/dist/cjs/ez-time-input.cjs.entry.js +2 -2
  28. package/dist/cjs/ez-toast.cjs.entry.js +1 -1
  29. package/dist/cjs/ez-upload.cjs.entry.js +12 -5
  30. package/dist/cjs/ezui.cjs.js +2 -2
  31. package/dist/cjs/grid-config.cjs.entry.js +2 -2
  32. package/dist/cjs/{index-88286449.js → index-0e284e03.js} +5 -1
  33. package/dist/cjs/loader.cjs.js +2 -2
  34. package/dist/cjs/select-box.cjs.entry.js +1 -1
  35. package/dist/cjs/test-du.cjs.entry.js +27 -38
  36. package/dist/collection/components/ez-button/ez-button.css +23 -1
  37. package/dist/collection/components/ez-dialog/ez-dialog.css +16 -2
  38. package/dist/collection/components/ez-dialog/ez-dialog.js +26 -13
  39. package/dist/collection/components/ez-form/DataBinder.js +65 -17
  40. package/dist/collection/components/ez-form/ez-form.js +31 -6
  41. package/dist/collection/components/ez-form/fieldbuilder/tpl/FileInput.tpl.js +1 -1
  42. package/dist/collection/components/ez-grid/controller/DataUnitBridge.js +31 -28
  43. package/dist/collection/components/ez-grid/ez-grid.js +5 -0
  44. package/dist/collection/components/ez-upload/ez-upload.js +29 -3
  45. package/dist/collection/components/test-du/test-du.js +34 -39
  46. package/dist/collection/utils/ApplicationUtils.js +15 -9
  47. package/dist/custom-elements/index.js +181 -112
  48. package/dist/esm/{ApplicationUtils-3ca0e68d.js → ApplicationUtils-35350d20.js} +15 -9
  49. package/dist/esm/{AssetsUtils-9b1329a3.js → AssetsUtils-aab9ca8f.js} +1 -1
  50. package/dist/esm/ez-action-chip.entry.js +1 -1
  51. package/dist/esm/ez-application.entry.js +1 -1
  52. package/dist/esm/ez-button.entry.js +2 -2
  53. package/dist/esm/ez-calendar.entry.js +1 -1
  54. package/dist/esm/ez-check.entry.js +1 -1
  55. package/dist/esm/ez-collapsible-box.entry.js +1 -1
  56. package/dist/esm/ez-combo-box.entry.js +1 -1
  57. package/dist/esm/ez-date-input.entry.js +1 -1
  58. package/dist/esm/ez-date-time-input.entry.js +1 -1
  59. package/dist/esm/ez-dialog.entry.js +15 -11
  60. package/dist/esm/ez-filter-input.entry.js +1 -1
  61. package/dist/esm/ez-form.entry.js +81 -25
  62. package/dist/esm/ez-grid.entry.js +37 -29
  63. package/dist/esm/ez-icon.entry.js +1 -1
  64. package/dist/esm/ez-label-chip.entry.js +1 -1
  65. package/dist/esm/ez-list.entry.js +1 -1
  66. package/dist/esm/ez-modal.entry.js +1 -1
  67. package/dist/esm/ez-number-input.entry.js +1 -1
  68. package/dist/esm/ez-popover.entry.js +1 -1
  69. package/dist/esm/ez-popup.entry.js +1 -1
  70. package/dist/esm/ez-search.entry.js +1 -1
  71. package/dist/esm/ez-tabselector.entry.js +1 -1
  72. package/dist/esm/ez-text-area.entry.js +1 -1
  73. package/dist/esm/ez-text-input.entry.js +1 -1
  74. package/dist/esm/ez-time-input.entry.js +2 -2
  75. package/dist/esm/ez-toast.entry.js +1 -1
  76. package/dist/esm/ez-upload.entry.js +12 -5
  77. package/dist/esm/ezui.js +2 -2
  78. package/dist/esm/grid-config.entry.js +2 -2
  79. package/dist/esm/{index-6b8bfbeb.js → index-bf1aef20.js} +5 -1
  80. package/dist/esm/loader.js +2 -2
  81. package/dist/esm/select-box.entry.js +1 -1
  82. package/dist/esm/test-du.entry.js +28 -39
  83. package/dist/ezui/ezui.esm.js +1 -1
  84. package/dist/ezui/p-05cca198.entry.js +1 -0
  85. package/dist/ezui/{p-8c447785.entry.js → p-0927092b.entry.js} +1 -1
  86. package/dist/ezui/{p-363fc3af.entry.js → p-0965bcae.entry.js} +1 -1
  87. package/dist/ezui/{p-f8d3c04d.entry.js → p-0cb4aec1.entry.js} +1 -1
  88. package/dist/ezui/p-0cd386db.js +1 -0
  89. package/dist/ezui/{p-97f77023.entry.js → p-1c28d99b.entry.js} +1 -1
  90. package/dist/ezui/{p-502d7e0d.entry.js → p-1ced597f.entry.js} +1 -1
  91. package/dist/ezui/{p-8f2d46f8.entry.js → p-1db59c89.entry.js} +1 -1
  92. package/dist/ezui/{p-6f39077b.entry.js → p-28ce145e.entry.js} +1 -1
  93. package/dist/ezui/{p-25e050f5.entry.js → p-2d55888f.entry.js} +1 -1
  94. package/dist/ezui/{p-83d5f1ca.entry.js → p-2d894fed.entry.js} +1 -1
  95. package/dist/ezui/{p-c86cd69e.entry.js → p-4262a462.entry.js} +2 -2
  96. package/dist/ezui/{p-2f14fe3d.entry.js → p-46d1340b.entry.js} +1 -1
  97. package/dist/ezui/p-4884b056.entry.js +1 -0
  98. package/dist/ezui/p-495cdb4c.entry.js +1 -0
  99. package/dist/ezui/{p-477bb703.js → p-51b878f7.js} +1 -1
  100. package/dist/ezui/{p-01169201.entry.js → p-5e989ecf.entry.js} +1 -1
  101. package/dist/ezui/{p-89a57641.js → p-60138b72.js} +1 -1
  102. package/dist/ezui/{p-a5f1f9c4.entry.js → p-6745931a.entry.js} +1 -1
  103. package/dist/ezui/p-6aa0c6f1.entry.js +1 -0
  104. package/dist/ezui/{p-804c118a.entry.js → p-7df61f4a.entry.js} +1 -1
  105. package/dist/ezui/{p-43feac7d.entry.js → p-8543a1b3.entry.js} +1 -1
  106. package/dist/ezui/{p-b8678ee6.entry.js → p-8a0e5e59.entry.js} +1 -1
  107. package/dist/ezui/p-91e51dc9.entry.js +1 -0
  108. package/dist/ezui/{p-d3d3e2ac.entry.js → p-9a9b2936.entry.js} +1 -1
  109. package/dist/ezui/{p-31b0e21a.entry.js → p-a44dcc62.entry.js} +1 -1
  110. package/dist/ezui/p-a4a21738.entry.js +1 -0
  111. package/dist/ezui/{p-542d3d29.entry.js → p-bd29c55f.entry.js} +1 -1
  112. package/dist/ezui/{p-c6f2aa6c.entry.js → p-c621cab9.entry.js} +1 -1
  113. package/dist/ezui/{p-76b64956.entry.js → p-dc0aa563.entry.js} +1 -1
  114. package/dist/ezui/{p-055f1b6a.entry.js → p-e62f5c77.entry.js} +1 -1
  115. package/dist/ezui/{p-f78c7ec9.entry.js → p-ef8f1275.entry.js} +1 -1
  116. package/dist/ezui/{p-59a8448a.entry.js → p-fa9157c1.entry.js} +1 -1
  117. package/dist/types/components/ez-dialog/ez-dialog.d.ts +4 -1
  118. package/dist/types/components/ez-form/DataBinder.d.ts +4 -0
  119. package/dist/types/components/ez-form/ez-form.d.ts +7 -0
  120. package/dist/types/components/ez-grid/controller/DataUnitBridge.d.ts +1 -0
  121. package/dist/types/components/ez-grid/ez-grid.d.ts +1 -0
  122. package/dist/types/components/ez-upload/ez-upload.d.ts +5 -0
  123. package/dist/types/components/test-du/test-du.d.ts +2 -0
  124. package/dist/types/components.d.ts +10 -2
  125. package/dist/types/utils/ApplicationUtils.d.ts +6 -3
  126. package/package.json +3 -2
  127. package/dist/assets/actions-sprite.svg +0 -257
  128. package/dist/collection/components/assets/actions-sprite.svg +0 -257
  129. package/dist/ezui/p-126d33e2.entry.js +0 -1
  130. package/dist/ezui/p-1339fde7.entry.js +0 -1
  131. package/dist/ezui/p-149a8241.entry.js +0 -1
  132. package/dist/ezui/p-24ff7d92.entry.js +0 -1
  133. package/dist/ezui/p-3c71a597.js +0 -1
  134. package/dist/ezui/p-95fc543c.entry.js +0 -1
  135. package/dist/ezui/p-c13353f1.entry.js +0 -1
@@ -1,6 +1,6 @@
1
1
  import { HTMLElement as HTMLElement$1, createEvent, h, forceUpdate, Host, getAssetPath, setAssetPath, proxyCustomElement } from '@stencil/core/internal/client';
2
2
  export { setAssetPath, setPlatformOptions } from '@stencil/core/internal/client';
3
- import { FloatingManager, DateUtils, TimeFormatter, UserInterface, ApplicationContext, Action, DataUnitAction, DataUnit, DataType, StringUtils, NumberUtils, MaskFormatter } from '@sankhyalabs/core';
3
+ import { FloatingManager, DateUtils, TimeFormatter, UserInterface, Action, ApplicationContext, DataUnitAction, DataUnit, DataType, StringUtils, NumberUtils, MaskFormatter } from '@sankhyalabs/core';
4
4
  import { UserInterface as UserInterface$1, SortMode } from '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
5
5
 
6
6
  const ezActionChipCss = ":host{--ez-action-chip--height:36px;--ez-action-chip--border-radius:var(--border--radius-large, 24px);--ez-action-chip__border:1px solid;--ez-action-chip__border-color-strokes:var(--color--strokes, #DCE0E8);--ez-action-chip--font-size:var(--text--medium, 14px);--ez-action-chip--font-family:var(--font-pattern, Arial);--ez-action-chip--font-weight:var(--text-weight--large, 500);--ez-action-chip__label--title--primary:var(--title--primary, #919191);--ez-action-chip__label-color--disable-secondary:var(--color--disable-secondary, #F2F5F8);--ez-action-chip__label__default--background-color--hover:var(--color--primary-200, #f2faf8);--ez-action-chip__label__default--border-color--hover:var(--color--primary-600, #007a5a)}.label__container{width:fit-content;display:flex;flex-wrap:wrap;position:relative;background-color:#FFFFFF;align-items:center;align-self:center;cursor:pointer;color:var(--ez-action-chip__label--title--primary);fill:var(--ez-action-chip__label--title--primary);border:var(--ez-action-chip__border);border-radius:var(--ez-action-chip--border-radius);border-color:var(--ez-action-chip__border-color-strokes);padding-right:var(--space--medium, 12px);padding-left:var(--space--medium, 12px)}.label__container:hover{border-color:var(--ez-action-chip__label__default--border-color--hover);background-color:var(--ez-action-chip__label__default--background-color--hover)}label{display:flex;align-items:center;font-weight:var(--text-weight--large, 600);cursor:pointer;height:var(--ez-action-chip--height);font-family:var(--ez-action-chip--font-family);font-size:var(--ez-action-chip--font-size)}";
@@ -45,7 +45,7 @@ let EzApplication$1 = class extends HTMLElement$1 {
45
45
  static get style() { return ezApplicationCss; }
46
46
  };
47
47
 
48
- const ezButtonCss = ":host{--ez-button--min-width:100px;--ez-button--height:42px;--ez-button__icon--width:18px;--ez-button__inline__icon--padding:12px;--ez-button--padding-top:var(--space--medium, 12px);--ez-button--padding-bottom:var(--space--medium, 12px);--ez-button--padding-right:var(--space--large, 24px);--ez-button--padding-left:var(--space--large, 24px);--ez-button--color:var(--text--primary, #FFF);--ez-button--font-size:var(--text--medium, 14px);--ez-button--font-family:var(--font-pattern, Arial);--ez-button--font-weight:var(--text-weight--large);--ez-button--background-color:var(--background--medium, #c0c0c0);--ez-button--border-radius:var(--border--radius-large, 12px);--ez-button--border:none;--ez-button--hover--background-color:var(--background--strong, var(--ez-button--background-color));--ez-button--disabled-color:var(--text--disable);--ez-button--disabled--background-color:var(--color--disable-secondary);--ez-button--focus--border:var(--border--xlarge, 4px solid) var(--color--primary-300);--ez-button--focus--box-shadow:none;--ez-button--link-color:var(--color--primary, '#008561');--ez-button--link--hover-color:var(--color--primary-700, '#1C1D22');--ez-button--link--small--font-size:var(--text--small, 12px);--ez-button--link--medium--font-size:var(--text--medium, 14px);--ez-button--link--large--font-size:var(--text--large, 16px)}ez-icon{--ez-icon--color:inherit}button{display:flex;align-items:center;justify-content:center;margin:0;cursor:pointer;transition:background-color 0.2s linear;min-width:var(--ez-button--min-width);height:var(--ez-button--height);font-family:var(--ez-button--font-family);font-size:var(--ez-button--font-size);font-weight:var(--ez-button--font-weight);padding:var(--ez-button--padding-top) var(--ez-button--padding-right) var(--ez-button--padding-bottom) var(--ez-button--padding-left);border-radius:var(--ez-button--border-radius);background-color:var(--ez-button--background-color);color:var(--ez-button--color);fill:var(--ez-button--color);border:var(--ez-button--border)}button:hover{background-color:var(--ez-button--hover--background-color)}button:focus{outline:none;outline:var(--ez-button--focus--border);box-shadow:var(--ez-button--focus--box-shadow)}button:disabled{background-color:var(--ez-button--disabled--background-color);color:var(--ez-button--disabled-color);fill:var(--ez-button--disabled-color);border:none;cursor:no-drop}button.icon{padding:0px}button.small{width:32px;min-width:32px;height:32px}button.medium{width:42px;min-width:42px;height:42px}button.large{width:52px;min-width:52px;height:52px}.label-icon{display:flex;flex-direction:column;align-items:center;color:var(--ez-button--color)}.label-icon label{max-width:150px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer;font-family:var(--ez-button--font-family);font-size:var(--ez-button--font-size);font-weight:var(--ez-button--font-weight)}a{font-family:var(--ez-button--font-family);font-weight:var(--ez-button--font-weight);color:var(--ez-button--link-color);cursor:pointer;display:flex;align-items:center;justify-content:center;}a:hover{color:var(--ez-button--link--hover-color)}a.small{font-size:var(--ez-button--link--small--font-size);line-height:var(--ez-button--link--small--font-size)}a.medium{font-size:var(--ez-button--link--medium--font-size);line-height:var(--ez-button--link--medium--font-size)}a.large{font-size:var(--ez-button--link--large--font-size);line-height:var(--ez-button--link--large--font-size)}";
48
+ const ezButtonCss = ":host{--ez-button--min-width:100px;--ez-button--height:42px;--ez-button__icon--width:18px;--ez-button__inline__icon--padding:12px;--ez-button--padding-top:var(--space--medium, 12px);--ez-button--padding-bottom:var(--space--medium, 12px);--ez-button--padding-right:var(--space--large, 24px);--ez-button--padding-left:var(--space--large, 24px);--ez-button--color:var(--title--primary, #FFF);--ez-button--font-size:var(--text--medium, 14px);--ez-button--font-family:var(--font-pattern, Arial);--ez-button--font-weight:var(--text-weight--large);--ez-button--background-color:var(--background--medium, #c0c0c0);--ez-button--border-radius:var(--border--radius-large, 12px);--ez-button--border:none;--ez-button--hover--background-color:var(--background--strong, var(--ez-button--background-color));--ez-button--hover-color:var(--color--primary-600);--ez-button--active--background-color:var(--background--strong, --color--primary-700);--ez-button--active-color:var(--color--primary-700);--ez-button--disabled-color:var(--text--disable);--ez-button--disabled--background-color:var(--color--disable-secondary);--ez-button--focus--border:var(--border--xlarge, 4px solid) var(--color--primary-300);--ez-button--focus--box-shadow:none;--ez-button--link-color:var(--color--primary, '#008561');--ez-button--link--hover-color:var(--color--primary-700, '#1C1D22');--ez-button--link--small--font-size:var(--text--small, 12px);--ez-button--link--medium--font-size:var(--text--medium, 14px);--ez-button--link--large--font-size:var(--text--large, 16px)}ez-icon{--ez-icon--color:inherit}button{display:flex;align-items:center;justify-content:center;margin:0;cursor:pointer;transition:background-color 0.2s linear;min-width:var(--ez-button--min-width);height:var(--ez-button--height);font-family:var(--ez-button--font-family);font-size:var(--ez-button--font-size);font-weight:var(--ez-button--font-weight);padding:var(--ez-button--padding-top) var(--ez-button--padding-right) var(--ez-button--padding-bottom) var(--ez-button--padding-left);border-radius:var(--ez-button--border-radius);background-color:var(--ez-button--background-color);color:var(--ez-button--color);fill:var(--ez-button--color);border:var(--ez-button--border);--ez-icon--color:var(--ez-button--color)}button:hover{outline:none;color:var(--ez-button--hover-color);fill:var(--ez-button--hover-color);background-color:var(--ez-button--hover--background-color);--ez-icon--color:var(--ez-button--hover-color)}button:focus{outline:none;outline:var(--ez-button--focus--border);box-shadow:var(--ez-button--focus--box-shadow)}button:active{outline:none;box-shadow:none;background-color:var(--ez-button--active--background-color);color:var(--ez-button--active-color);fill:var(--ez-button--active-color);--ez-icon--color:var(--ez-button--active-color)}button:disabled{background-color:var(--ez-button--disabled--background-color);color:var(--ez-button--disabled-color);fill:var(--ez-button--disabled-color);--ez-icon--color:var(--ez-button--disabled-color);border:none;cursor:no-drop}button.icon{padding:0px}button.small{width:32px;min-width:32px;height:32px}button.medium{width:42px;min-width:42px;height:42px}button.large{width:52px;min-width:52px;height:52px}.label-icon{display:flex;flex-direction:column;align-items:center;color:var(--ez-button--color)}.label-icon label{max-width:150px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer;font-family:var(--ez-button--font-family);font-size:var(--ez-button--font-size);font-weight:var(--ez-button--font-weight)}a{font-family:var(--ez-button--font-family);font-weight:var(--ez-button--font-weight);color:var(--ez-button--link-color);cursor:pointer;display:flex;align-items:center;justify-content:center;}a:hover{color:var(--ez-button--link--hover-color)}a.small{font-size:var(--ez-button--link--small--font-size);line-height:var(--ez-button--link--small--font-size)}a.medium{font-size:var(--ez-button--link--medium--font-size);line-height:var(--ez-button--link--medium--font-size)}a.large{font-size:var(--ez-button--link--large--font-size);line-height:var(--ez-button--link--large--font-size)}";
49
49
 
50
50
  let EzButton$1 = class extends HTMLElement$1 {
51
51
  constructor() {
@@ -986,15 +986,18 @@ let EzDateTimeInput$1 = class extends HTMLElement$1 {
986
986
  static get style() { return ezDateTimeInputCss; }
987
987
  };
988
988
 
989
- const ezDialogCss = ":host{--dialog__container-padding:var(--space--large, 24px);--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, \"'Sora', 'Algerian'\");--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, \"'Sora', 'Algerian'\");--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--large, 24px);--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-z-index:var(--most-visible, 3);--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;backdrop-filter:blur(4px);background:rgba(0, 4, 12, 0.4)}.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__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)}.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:24px;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:1.3}.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-icon{outline:none;border:none;background-color:var(--dialog__warning--background-color);width:26px;height:26px;border-radius:100%;padding:0;display:flex;justify-content:center;align-items:center}.title-icon--critical{background-color:var(--dialog__critical--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)}.title-icon--critical::after{content:'';display:flex;background-color:#FFFF;width:13px;height:13px;-webkit-mask-image:var(--dialog--critical__image);mask-image:var(--dialog--critical__image)}.button-yes-no__container{display:flex;box-sizing:border-box;align-self:center;align-items:center;justify-content:flex-end}.button__no{padding-right:var(--dialog__btn__no--padding-right)}.button__ok--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%}}";
989
+ const ezDialogCss = ":host{--dialog__container-padding:var(--space--large, 24px);--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, \"'Sora', 'Algerian'\");--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, \"'Sora', 'Algerian'\");--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--large, 24px);--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-z-index:var(--most-visible, 3);--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;backdrop-filter:blur(4px);background:rgba(0, 4, 12, 0.4)}.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__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)}.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:24px;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:1.3}.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-icon{outline:none;border:none;background-color:var(--dialog__warning--background-color);width:26px;height:26px;border-radius:100%;padding:0;display:flex;justify-content:center;align-items:center}.title-icon--critical{background-color:var(--dialog__critical--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)}.title-icon--critical::after{content:'';display:flex;background-color:#FFFF;width:13px;height:13px;-webkit-mask-image:var(--dialog--critical__image);mask-image:var(--dialog--critical__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%}}";
990
990
 
991
991
  class Message {
992
- constructor(title, message, critical, confirm, icon, callBack) {
992
+ constructor(title, message, critical, confirm, icon, labelCancel, labelConfirm, btnConfirmDanger, callBack) {
993
993
  this.title = title;
994
994
  this.message = message;
995
995
  this.critical = critical;
996
996
  this.confirm = confirm;
997
997
  this.icon = icon;
998
+ this.labelCancel = labelCancel;
999
+ this.labelConfirm = labelConfirm;
1000
+ this.btnConfirmDanger = btnConfirmDanger;
998
1001
  this.callBack = callBack;
999
1002
  }
1000
1003
  }
@@ -1005,6 +1008,9 @@ let EzDialog$1 = class extends HTMLElement$1 {
1005
1008
  this.__attachShadow();
1006
1009
  this.ezCancel = createEvent(this, "ezCancel", 7);
1007
1010
  this.ezAccept = createEvent(this, "ezAccept", 7);
1011
+ this.labelConfirm = 'Sim';
1012
+ this.labelCancel = 'Não';
1013
+ this.btnConfirmDanger = false;
1008
1014
  /**
1009
1015
  * Define se o componente será utilizado no modo de confirmação.
1010
1016
  */
@@ -1036,10 +1042,10 @@ let EzDialog$1 = class extends HTMLElement$1 {
1036
1042
  /**
1037
1043
  * Faz com que o componente seja exibido.
1038
1044
  */
1039
- async show(title, message, critical, confirm, icon) {
1045
+ async show(title, message, critical, confirm, icon, labelCancel, labelConfirm, btnConfirmDanger) {
1040
1046
  this.opened = true;
1041
1047
  return new Promise(resolve => {
1042
- this._messageQueue.push(new Message(title, message, critical, confirm, icon, resolve));
1048
+ this._messageQueue.push(new Message(title, message, critical, confirm, icon, labelCancel, labelConfirm, btnConfirmDanger, resolve));
1043
1049
  });
1044
1050
  }
1045
1051
  componentWillRender() {
@@ -1049,7 +1055,7 @@ let EzDialog$1 = class extends HTMLElement$1 {
1049
1055
  }
1050
1056
  else {
1051
1057
  if (this.opened) {
1052
- this._currentMessage = new Message(this.ezTitle, this.message, this.critical, this.confirm, this.personalizedIconPath, null);
1058
+ this._currentMessage = new Message(this.ezTitle, this.message, this.critical, this.confirm, this.personalizedIconPath, this.labelCancel, this.labelConfirm, this.btnConfirmDanger, null);
1053
1059
  }
1054
1060
  }
1055
1061
  }
@@ -1059,11 +1065,9 @@ let EzDialog$1 = class extends HTMLElement$1 {
1059
1065
  return (h("div", { class: "overlay" }, h("div", { class: "dialog" }, h("div", { class: this._currentMessage.critical === true ? "dialog__critical--indicator" : "dialog__warning--indicator" }), h("div", { class: "dialog__container" }, h("div", { class: "title__container" }, h("div", { class: "title__box" }, this._currentMessage.icon ?
1060
1066
  h("ez-icon", { class: this._currentMessage.critical ? "changeable__icon critical" : "changeable__icon", size: "small", iconName: this._currentMessage.icon })
1061
1067
  :
1062
- h("div", { class: this._currentMessage.critical ? "title-icon title-icon--critical" : "title-icon" }), h("div", { class: "title title--label", innerHTML: this._currentMessage.title })), h("button", { class: "btn-close", onClick: () => this.handleButtonClick(false) })), h("div", { class: "message", innerHTML: this._currentMessage.message }), this._currentMessage.confirm ?
1063
- h("div", { class: "button-yes-no__container" }, h("ez-button", { class: "button__no", mode: "link", label: "N\u00E3o", onClick: () => this.handleButtonClick(false) }), h("ez-button", { label: "Ok", onClick: () => this.handleButtonClick(true) }))
1064
- : undefined, !this._currentMessage.confirm ?
1065
- h("div", { class: "button__ok--container" }, h("ez-button", { label: "Ok", onClick: () => this.handleButtonClick(true) }))
1066
- : undefined))));
1068
+ h("div", { class: this._currentMessage.critical ? "title-icon title-icon--critical" : "title-icon" }), h("div", { class: "title title--label", innerHTML: this._currentMessage.title })), h("button", { class: "btn-close", onClick: () => this.handleButtonClick(false) })), h("div", { class: "message", innerHTML: this._currentMessage.message }), this._currentMessage.confirm &&
1069
+ h("div", { class: "button-yes-no__container" }, h("ez-button", { class: "button__cancel", label: this._currentMessage.labelCancel, onClick: () => this.handleButtonClick(false) }), h("ez-button", { class: !this._currentMessage.btnConfirmDanger ? "button__confirm" : "button__confirm--danger", label: this._currentMessage.labelConfirm, onClick: () => this.handleButtonClick(true) })), !this._currentMessage.confirm &&
1070
+ h("div", { class: "button__confirm--container" }, h("ez-button", { label: 'Ok', class: "button__confirm", onClick: () => this.handleButtonClick(true) }))))));
1067
1071
  }
1068
1072
  return null;
1069
1073
  }
@@ -1179,7 +1183,7 @@ const buildSearch = ({ name, label, readOnly, required }) => {
1179
1183
 
1180
1184
  const buildFile = ({ name, label, readOnly }) => {
1181
1185
  return (h("div", { class: "col col--sd-12 padding-horizontal--small" },
1182
- h("ez-upload", { enabled: !readOnly, label: label, urlUpload: "", requestHeaders: "", maxFiles: 10, "data-field-name": name, key: name })));
1186
+ h("ez-upload", { enabled: !readOnly, label: label, "data-field-name": name, key: name })));
1183
1187
  };
1184
1188
 
1185
1189
  const buildDate = ({ name, label, readOnly }) => {
@@ -1731,32 +1735,62 @@ var FormActions;
1731
1735
 
1732
1736
  class DataBinder {
1733
1737
  constructor(dataUnit) {
1738
+ this.onDataUnitEvent = (action) => {
1739
+ var _a;
1740
+ switch (action.type) {
1741
+ case Action.DATA_LOADED:
1742
+ case Action.DATA_SAVED:
1743
+ case Action.RECORDS_REMOVED:
1744
+ case Action.RECORDS_ADDED:
1745
+ case Action.RECORDS_COPIED:
1746
+ case Action.DATA_CHANGED:
1747
+ case Action.EDITION_CANCELED:
1748
+ case Action.CHANGE_UNDONE:
1749
+ case Action.CHANGE_REDONE:
1750
+ case Action.SELECTION_CHANGED:
1751
+ case Action.NEXT_SELECTED:
1752
+ case Action.PREVIOUS_SELECTED:
1753
+ (_a = this._fields) === null || _a === void 0 ? void 0 : _a.forEach(field => {
1754
+ this.updateValue(field.fieldName, field.field);
1755
+ });
1756
+ break;
1757
+ }
1758
+ };
1734
1759
  this._fields = new Map();
1735
1760
  this._dataUnit = dataUnit;
1736
- this._dataUnit.subscribe(_action => {
1737
- var _a;
1738
- (_a = this._fields) === null || _a === void 0 ? void 0 : _a.forEach(field => {
1739
- this.updateValue(field.fieldName, field.field);
1740
- });
1741
- });
1761
+ this._dataUnit.subscribe(this.onDataUnitEvent);
1742
1762
  }
1743
1763
  bind(fields) {
1744
1764
  fields.forEach(fieldElement => {
1745
1765
  const fieldName = fieldElement.dataset.fieldName;
1746
1766
  this.updateBind(fieldName, fieldElement);
1747
- this.updateValue(fieldName, fieldElement);
1748
1767
  });
1749
1768
  }
1769
+ onDisconnectedCallback() {
1770
+ this._dataUnit.unsubscribe(this.onDataUnitEvent);
1771
+ }
1750
1772
  updateValue(fieldName, field) {
1751
- field["value"] = this._dataUnit.getFieldValue(fieldName);
1773
+ const oldValue = field["value"];
1774
+ const newValue = this._dataUnit.getFieldValue(fieldName);
1775
+ if (oldValue != newValue) {
1776
+ field["value"] = newValue;
1777
+ }
1752
1778
  }
1753
1779
  updateBind(fieldName, field) {
1754
1780
  const oldBind = this._fields.get(fieldName);
1755
1781
  if (oldBind) {
1756
1782
  oldBind.destroy();
1757
1783
  }
1758
- this._fields.set(fieldName, Bind.create(fieldName, field, (fieldName, newValue) => this.setFieldValue(fieldName, newValue)));
1784
+ field["value"] = this._dataUnit.getFieldValue(fieldName);
1785
+ this._fields.set(fieldName, Bind.create(fieldName, field, (fieldName, waitingChange) => this.changeStarted(fieldName, waitingChange), (fieldName, newValue) => this.setFieldValue(fieldName, newValue)));
1759
1786
  this.bindSearchOptionsLoader(fieldName, field);
1787
+ this.applyEzUploadContext(fieldName, field);
1788
+ }
1789
+ changeStarted(fieldName, waitingChange) {
1790
+ if (this._dataUnit.records.length === 0) {
1791
+ this._dataUnit.addRecord();
1792
+ }
1793
+ this._dataUnit.startChange(fieldName, waitingChange);
1760
1794
  }
1761
1795
  setFieldValue(fieldName, newValue) {
1762
1796
  if (this._dataUnit.records.length === 0) {
@@ -1774,42 +1808,63 @@ class DataBinder {
1774
1808
  }
1775
1809
  }
1776
1810
  }
1811
+ applyEzUploadContext(fieldName, field) {
1812
+ var _a, _b;
1813
+ if (field.nodeName === "EZ-UPLOAD") {
1814
+ field["urlUpload"] = ApplicationContext.getContextValue("__EZUI__UPLOAD__ADD__URL__");
1815
+ field["urlDelete"] = ApplicationContext.getContextValue("__EZUI__UPLOAD__DEL__URL__");
1816
+ const descriptor = this._dataUnit.getField(fieldName);
1817
+ const destination = (_a = descriptor.properties) === null || _a === void 0 ? void 0 : _a.DESTINATION;
1818
+ if (destination) {
1819
+ field["requestHeaders"] = { XTRAINF: `{"destination": "${destination}"}` };
1820
+ }
1821
+ field["maxFiles"] = ((_b = descriptor.properties) === null || _b === void 0 ? void 0 : _b.MAX_FILES) || 0;
1822
+ }
1823
+ }
1777
1824
  }
1778
1825
  class Bind {
1826
+ constructor() {
1827
+ this.startChangeEventName = "ezStartChange";
1828
+ this.changeEventName = "ezChange";
1829
+ }
1779
1830
  destroy() {
1780
- this.field.removeEventListener(this.eventName, this.eventListener);
1831
+ this.field.removeEventListener(this.startChangeEventName, this.startChangeListener);
1832
+ this.field.removeEventListener(this.changeEventName, this.changeListener);
1781
1833
  }
1782
- static create(fieldName, field, callback) {
1834
+ static create(fieldName, field, startChangeCallback, changeCallback) {
1783
1835
  const b = new Bind();
1784
- b.fieldName = fieldName;
1785
1836
  b.field = field;
1786
- //FIXME: Verificar se o field é um EzField
1787
- b.eventListener = (evt) => { callback(fieldName, evt.detail); };
1788
- b.eventName = "ezChange";
1789
- b.field.addEventListener(b.eventName, b.eventListener);
1837
+ b.fieldName = fieldName;
1838
+ b.startChangeListener = (evt) => { startChangeCallback(fieldName, evt.detail); };
1839
+ b.field.addEventListener(b.startChangeEventName, b.startChangeListener);
1840
+ b.changeListener = (evt) => { changeCallback(fieldName, evt.detail); };
1841
+ b.field.addEventListener(b.changeEventName, b.changeListener);
1790
1842
  return b;
1791
1843
  }
1792
1844
  }
1793
1845
 
1794
1846
  class ApplicationUtils {
1795
- static async showDialog(title, message, icon = null, confirm, critical = false) {
1847
+ static async showDialog(title, message, icon = null, confirm, critical = false, options) {
1848
+ if (options) {
1849
+ options = Object.assign(Object.assign({}, ApplicationUtils.defaultMessageOptions), options);
1850
+ }
1796
1851
  return new Promise(resolve => {
1797
1852
  let dialog = document.querySelector("ez-dialog");
1798
1853
  if (!dialog) {
1799
1854
  dialog = document.createElement("ez-dialog");
1800
1855
  window.document.body.appendChild(dialog);
1801
1856
  }
1802
- dialog.show(title, message, critical, confirm, icon).then(ok => resolve(ok));
1857
+ dialog.show(title, message, critical, confirm, icon, options.labelCancel, options.labelConfirm, options.btnConfirmDanger).then(ok => resolve(ok));
1803
1858
  });
1804
1859
  }
1805
- static async alert(title, message, icon = null) {
1806
- return ApplicationUtils.showDialog(title, message, icon, false, false);
1860
+ static async alert(title, message, icon = null, options = ApplicationUtils.defaultMessageOptions) {
1861
+ return ApplicationUtils.showDialog(title, message, icon, false, false, options);
1807
1862
  }
1808
- static async error(title, message, icon = null) {
1809
- return ApplicationUtils.showDialog(title, message, icon, false, true);
1863
+ static async error(title, message, icon = null, options = ApplicationUtils.defaultMessageOptions) {
1864
+ return ApplicationUtils.showDialog(title, message, icon, false, true, options);
1810
1865
  }
1811
- static async confirm(title, message, icon = null, critical = false) {
1812
- return ApplicationUtils.showDialog(title, message, icon, true, critical);
1866
+ static async confirm(title, message, icon = null, critical = false, options = ApplicationUtils.defaultMessageOptions) {
1867
+ return ApplicationUtils.showDialog(title, message, icon, true, critical, options);
1813
1868
  }
1814
1869
  static async info(message, options = ApplicationUtils.defaultMessageOptions) {
1815
1870
  let toast = document.querySelector("ez-toast");
@@ -1821,7 +1876,10 @@ class ApplicationUtils {
1821
1876
  }
1822
1877
  }
1823
1878
  ApplicationUtils.defaultMessageOptions = {
1824
- canClose: true
1879
+ canClose: true,
1880
+ labelCancel: 'Não',
1881
+ labelConfirm: 'Sim',
1882
+ btnConfirmDanger: false
1825
1883
  };
1826
1884
 
1827
1885
  const ezFormCss = "ez-form{display:flex;flex-direction:column;width:100%}";
@@ -1830,6 +1888,12 @@ let EzForm$1 = class extends HTMLElement$1 {
1830
1888
  constructor() {
1831
1889
  super();
1832
1890
  this.__registerHost();
1891
+ this.ezReady = createEvent(this, "ezReady", 7);
1892
+ this.onDataUnitAction = (action) => {
1893
+ if (action.type === Action.METADATA_LOADED) {
1894
+ this.processMetadata();
1895
+ }
1896
+ };
1833
1897
  }
1834
1898
  submit() {
1835
1899
  return Promise.resolve();
@@ -1923,11 +1987,7 @@ let EzForm$1 = class extends HTMLElement$1 {
1923
1987
  this.dataUnit = new DataUnit("ez-form");
1924
1988
  }
1925
1989
  this.dataUnit.addInterceptor(this);
1926
- this.dataUnit.subscribe(action => {
1927
- if (action.type === Action.METADATA_LOADED) {
1928
- this.processMetadata();
1929
- }
1930
- });
1990
+ this.dataUnit.subscribe(this.onDataUnitAction);
1931
1991
  this._dataBinder = new DataBinder(this.dataUnit);
1932
1992
  this._store = createStore(formReducer);
1933
1993
  this._store.subscribe(() => forceUpdate(this));
@@ -1936,6 +1996,12 @@ let EzForm$1 = class extends HTMLElement$1 {
1936
1996
  }
1937
1997
  componentDidRender() {
1938
1998
  this._dataBinder.bind(Array.from(this._element.querySelectorAll("[data-field-name]")));
1999
+ this.ezReady.emit();
2000
+ }
2001
+ disconnectedCallback() {
2002
+ this.dataUnit.unsubscribe(this.onDataUnitAction);
2003
+ this.dataUnit.removeInterceptor(this);
2004
+ this._dataBinder.onDisconnectedCallback();
1939
2005
  }
1940
2006
  render() {
1941
2007
  return (h(Host, null, this.isStatic() ? null : this.getDynamicContent()));
@@ -112359,36 +112425,36 @@ class AgGridController {
112359
112425
 
112360
112426
  class DataUnitBridge {
112361
112427
  constructor(gridController, dataUnit) {
112428
+ this.processAction = (action) => {
112429
+ switch (action.type) {
112430
+ case Action.METADATA_LOADED:
112431
+ this._gridController.setColumnsDef(this.buildColumnDefs(), true);
112432
+ break;
112433
+ case Action.RECORDS_REMOVED:
112434
+ const { records } = action.payload;
112435
+ this._gridController.removeRows(records);
112436
+ break;
112437
+ case Action.RECORDS_ADDED:
112438
+ case Action.RECORDS_COPIED:
112439
+ this._gridController.addRows(action.payload);
112440
+ break;
112441
+ case Action.EDITION_CANCELED:
112442
+ case Action.DATA_SAVED:
112443
+ this._gridController.refresh();
112444
+ break;
112445
+ case Action.SELECTION_CHANGED:
112446
+ const { selection } = action.payload;
112447
+ this._gridController.selectRows(selection);
112448
+ break;
112449
+ case Action.DATA_CHANGED:
112450
+ const changes = Object.assign({}, action.payload);
112451
+ delete changes.records;
112452
+ this._gridController.changeValues(changes, action.payload.records);
112453
+ }
112454
+ };
112362
112455
  this._gridController = gridController;
112363
112456
  this._dataUnit = dataUnit;
112364
- this._dataUnit.subscribe(action => this.processAction(action));
112365
- }
112366
- processAction(action) {
112367
- switch (action.type) {
112368
- case Action.METADATA_LOADED:
112369
- this._gridController.setColumnsDef(this.buildColumnDefs(), true);
112370
- break;
112371
- case Action.RECORDS_REMOVED:
112372
- const { records } = action.payload;
112373
- this._gridController.removeRows(records);
112374
- break;
112375
- case Action.RECORDS_ADDED:
112376
- case Action.RECORDS_COPIED:
112377
- this._gridController.addRows(action.payload);
112378
- break;
112379
- case Action.EDITION_CANCELED:
112380
- case Action.DATA_SAVED:
112381
- this._gridController.refresh();
112382
- break;
112383
- case Action.SELECTION_CHANGED:
112384
- const { selection } = action.payload;
112385
- this._gridController.selectRows(selection);
112386
- break;
112387
- case Action.DATA_CHANGED:
112388
- const changes = Object.assign({}, action.payload);
112389
- delete changes.records;
112390
- this._gridController.changeValues(changes, action.payload.records);
112391
- }
112457
+ this._dataUnit.subscribe(this.processAction);
112392
112458
  }
112393
112459
  buildColumnDefs() {
112394
112460
  const columnDefs = [];
@@ -112402,6 +112468,9 @@ class DataUnitBridge {
112402
112468
  }
112403
112469
  return columnDefs;
112404
112470
  }
112471
+ onDisconnectedCallback() {
112472
+ this._dataUnit.unsubscribe(this.processAction);
112473
+ }
112405
112474
  }
112406
112475
 
112407
112476
  const ezGridCss = ".sc-ez-grid-h{display:grid;grid-template-rows:auto 1fr auto;height:100%;width:100%;--ezgrid__header--background-color:var(--background--xlight, #FFF)}.grid-header.sc-ez-grid{display:flex;justify-content:space-between;align-items:center;background-color:var(--ezgrid__header--background-color, #FFF);z-index:var(--visible)}.grid__container.sc-ez-grid{box-shadow:0 0 16px 0 rgb(0 38 111 / 12%);padding-top:15px;margin-top:-12px;background-color:var(--ezgrid__header--background-color)}.grid-header__container.sc-ez-grid{display:flex;align-items:center}";
@@ -112505,6 +112574,11 @@ let EzGrid$1 = class extends HTMLElement$1 {
112505
112574
  this._gridController.setColumnsDef(this._dataUnitBridge.buildColumnDefs(), true);
112506
112575
  }
112507
112576
  }
112577
+ disconnectedCallback() {
112578
+ if (this._dataUnitBridge) {
112579
+ this._dataUnitBridge.onDisconnectedCallback();
112580
+ }
112581
+ }
112508
112582
  getPaginationControl() {
112509
112583
  if (this.pageSize === -1) {
112510
112584
  return null;
@@ -114385,6 +114459,7 @@ let EzUpload$1 = class extends HTMLElement$1 {
114385
114459
  this.__registerHost();
114386
114460
  this.__attachShadow();
114387
114461
  this.ezChange = createEvent(this, "ezChange", 7);
114462
+ this.ezStartChange = createEvent(this, "ezStartChange", 7);
114388
114463
  this._filePointers = new Map();
114389
114464
  /**
114390
114465
  * Deixa o campo disponível ou não para digitação.
@@ -114392,6 +114467,9 @@ let EzUpload$1 = class extends HTMLElement$1 {
114392
114467
  this.enabled = true;
114393
114468
  }
114394
114469
  changeValue(newValue) {
114470
+ //Observamos o mundo externo, se um novo valor foi atribuído,
114471
+ //precisamos cancelar a alteração anterior, isso envolve, percorrer
114472
+ //a lista de ponteiros e cancelar todos os uploads em andamento.
114395
114473
  if (newValue !== this._updatingValue) {
114396
114474
  this._filePointers.forEach(f => {
114397
114475
  if (this.isRemoteFile(f)) {
@@ -114400,8 +114478,8 @@ let EzUpload$1 = class extends HTMLElement$1 {
114400
114478
  });
114401
114479
  this._filePointers = new Map();
114402
114480
  this.updateFilePointers();
114481
+ this._updatingValue = undefined;
114403
114482
  }
114404
- this._updatingValue = undefined;
114405
114483
  }
114406
114484
  updateFilePointers() {
114407
114485
  if (this.value) {
@@ -114471,6 +114549,7 @@ let EzUpload$1 = class extends HTMLElement$1 {
114471
114549
  }
114472
114550
  async doAddFile(file) {
114473
114551
  if (this.validateFile(file)) {
114552
+ this.ezStartChange.emit({ waitmessage: "Há arquivos sendo enviados. Por favor aguarde a conclusão ou cancele o envio." });
114474
114553
  const uploadingFile = new RemoteFile(file);
114475
114554
  this._filePointers.set(file.name, uploadingFile);
114476
114555
  uploadingFile.upload(this.urlUpload, this._requestHeaders, (file) => this.updateFeedback(file))
@@ -114490,8 +114569,10 @@ let EzUpload$1 = class extends HTMLElement$1 {
114490
114569
  this._updatingValue.push(f);
114491
114570
  }
114492
114571
  });
114493
- this.value = this._updatingValue;
114494
- this.ezChange.emit(this.value);
114572
+ if (this._filePointers.size === this._updatingValue.length) {
114573
+ this.value = this._updatingValue;
114574
+ this.ezChange.emit(this.value);
114575
+ }
114495
114576
  }
114496
114577
  buildProgressId(uploading) {
114497
114578
  let sanitizedName = uploading.name.replace(/[^a-z0-9_]/gi, "_");
@@ -114910,49 +114991,23 @@ let TestDu$1 = class extends HTMLElement$1 {
114910
114991
  super();
114911
114992
  this.__registerHost();
114912
114993
  }
114913
- /*private _ezButton// : HTMLEzButton;
114914
- private _ezComboBox// : HTMLEzComboBox;
114915
- private _ezDateInput// : HTMLEzDateInput;
114916
- private _ezDateTimeInput// : HTMLEzDateTimeInput;
114917
- private _ezNumberInput// : HTMLEzNumberInput
114918
- private _ezSearch// : HTMLEzSearch
114919
- private _ezUpload// : HTMLEzUpload
114920
- private _ezFilterInput// : HTMLEzFilterInput*/
114921
114994
  componentWillLoad() {
114995
+ ApplicationContext.setContextValue("__EZUI__UPLOAD__ADD__URL__", "http://localhost:8080/mge/ez.uploading");
114922
114996
  this.dataUnit = new DataUnit("testes_com_formulario");
114997
+ this.dataUnit.subscribe(() => this.isDirty = this.dataUnit.isDirty());
114923
114998
  this.dataUnit.metadata = {
114924
114999
  name: "dd://br.com.sankhya.fin.cad.movimentacaoFinanceira/Financeiro",
114925
115000
  label: "Parceiro",
114926
115001
  fields: [
114927
115002
  {
114928
- name: "CODPARC",
114929
- label: "Parceiro",
114930
- dataType: DataType.NUMBER,
114931
- userInterface: UserInterface.SEARCH,
114932
- required: true,
114933
- properties: {}
114934
- },
114935
- {
114936
- name: "RECDESP",
114937
- label: "Receita/Despesa",
114938
- dataType: DataType.TEXT,
114939
- userInterface: UserInterface.OPTIONSELECTOR,
114940
- required: true,
114941
- properties: { options: `{"-1": "Despesa", "1": "Receita"}` }
114942
- },
114943
- {
114944
- name: "P",
114945
- label: "pera",
114946
- dataType: DataType.TEXT,
114947
- userInterface: UserInterface.OPTIONSELECTOR,
114948
- properties: { options: `{"M": "Madura", "V": "Verde", "P": "Passada"}` }
114949
- },
114950
- {
114951
- name: "ME",
114952
- label: "ME",
114953
- dataType: DataType.NUMBER,
114954
- userInterface: UserInterface.DECIMALNUMBER,
114955
- properties: { precision: 4, prettyPrecision: 1 }
115003
+ name: "ANEXO",
115004
+ label: "Anexo",
115005
+ dataType: DataType.OBJECT,
115006
+ userInterface: UserInterface.FILE,
115007
+ properties: {
115008
+ DESTINATION: "MULTIFILE",
115009
+ MAX_FILES: "2"
115010
+ }
114956
115011
  }
114957
115012
  ]
114958
115013
  };
@@ -114970,9 +115025,23 @@ let TestDu$1 = class extends HTMLElement$1 {
114970
115025
  total: 100,
114971
115026
  hasMore: true
114972
115027
  }));
115028
+ this.dataUnit.saveLoader = (_dataUnit, changes) => {
115029
+ const savedRecords = [];
115030
+ changes.forEach(change => {
115031
+ savedRecords.push(Object.assign(Object.assign({}, change.record), change.updatingFields));
115032
+ });
115033
+ return Promise.resolve(savedRecords);
115034
+ };
115035
+ }
115036
+ save() {
115037
+ this.dataUnit.saveData().catch(e => {
115038
+ if (e.kind === "WAITING_CHANGE_ERROR") {
115039
+ ApplicationUtils.alert(`Alterando campo ${e.fieldName}`, e.message);
115040
+ }
115041
+ });
114973
115042
  }
114974
115043
  render() {
114975
- return (h("ez-form", { dataUnit: this.dataUnit }));
115044
+ return (h("div", null, h("button", { onClick: () => this.dataUnit.loadData() }, "Carregar"), h("button", { onClick: () => this.save(), disabled: !this.isDirty }, "Salvar"), h("ez-form", { dataUnit: this.dataUnit })));
114976
115045
  }
114977
115046
  static get style() { return testDuCss; }
114978
115047
  };
@@ -115006,7 +115075,7 @@ const EzToast = /*@__PURE__*/proxyCustomElement(EzToast$1, [1,"ez-toast",{"messa
115006
115075
  const EzUpload = /*@__PURE__*/proxyCustomElement(EzUpload$1, [1,"ez-upload",{"label":[1],"enabled":[4],"maxFileSize":[2,"max-file-size"],"maxFiles":[2,"max-files"],"requestHeaders":[8,"request-headers"],"urlUpload":[1,"url-upload"],"urlDelete":[1,"url-delete"],"value":[1040]}]);
115007
115076
  const GridConfig = /*@__PURE__*/proxyCustomElement(GridConfig$1, [2,"grid-config",{"selectedTab":[1025,"selected-tab"],"columns":[1040]}]);
115008
115077
  const SelectBox = /*@__PURE__*/proxyCustomElement(SelectBox$1, [1,"select-box",{"selectedOption":[1,"selected-option"]}]);
115009
- const TestDu = /*@__PURE__*/proxyCustomElement(TestDu$1, [0,"test-du"]);
115078
+ const TestDu = /*@__PURE__*/proxyCustomElement(TestDu$1, [0,"test-du",{"isDirty":[32]}]);
115010
115079
  const defineCustomElements = (opts) => {
115011
115080
  if (typeof customElements !== 'undefined') {
115012
115081
  [
@@ -1,22 +1,25 @@
1
1
  class ApplicationUtils {
2
- static async showDialog(title, message, icon = null, confirm, critical = false) {
2
+ static async showDialog(title, message, icon = null, confirm, critical = false, options) {
3
+ if (options) {
4
+ options = Object.assign(Object.assign({}, ApplicationUtils.defaultMessageOptions), options);
5
+ }
3
6
  return new Promise(resolve => {
4
7
  let dialog = document.querySelector("ez-dialog");
5
8
  if (!dialog) {
6
9
  dialog = document.createElement("ez-dialog");
7
10
  window.document.body.appendChild(dialog);
8
11
  }
9
- dialog.show(title, message, critical, confirm, icon).then(ok => resolve(ok));
12
+ dialog.show(title, message, critical, confirm, icon, options.labelCancel, options.labelConfirm, options.btnConfirmDanger).then(ok => resolve(ok));
10
13
  });
11
14
  }
12
- static async alert(title, message, icon = null) {
13
- return ApplicationUtils.showDialog(title, message, icon, false, false);
15
+ static async alert(title, message, icon = null, options = ApplicationUtils.defaultMessageOptions) {
16
+ return ApplicationUtils.showDialog(title, message, icon, false, false, options);
14
17
  }
15
- static async error(title, message, icon = null) {
16
- return ApplicationUtils.showDialog(title, message, icon, false, true);
18
+ static async error(title, message, icon = null, options = ApplicationUtils.defaultMessageOptions) {
19
+ return ApplicationUtils.showDialog(title, message, icon, false, true, options);
17
20
  }
18
- static async confirm(title, message, icon = null, critical = false) {
19
- return ApplicationUtils.showDialog(title, message, icon, true, critical);
21
+ static async confirm(title, message, icon = null, critical = false, options = ApplicationUtils.defaultMessageOptions) {
22
+ return ApplicationUtils.showDialog(title, message, icon, true, critical, options);
20
23
  }
21
24
  static async info(message, options = ApplicationUtils.defaultMessageOptions) {
22
25
  let toast = document.querySelector("ez-toast");
@@ -28,7 +31,10 @@ class ApplicationUtils {
28
31
  }
29
32
  }
30
33
  ApplicationUtils.defaultMessageOptions = {
31
- canClose: true
34
+ canClose: true,
35
+ labelCancel: 'Não',
36
+ labelConfirm: 'Sim',
37
+ btnConfirmDanger: false
32
38
  };
33
39
 
34
40
  export { ApplicationUtils as A };
@@ -1,4 +1,4 @@
1
- import { a as getAssetPath, s as setAssetPath } from './index-6b8bfbeb.js';
1
+ import { a as getAssetPath, s as setAssetPath } from './index-bf1aef20.js';
2
2
 
3
3
  const getSpritePath = (sprite) => `${getContextAssetsPath("../assets/actions-sprite.svg")}#${sprite}`;
4
4
  let ctxLoaded = false;
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, c as createEvent, h } from './index-6b8bfbeb.js';
1
+ import { r as registerInstance, c as createEvent, h } from './index-bf1aef20.js';
2
2
 
3
3
  const ezActionChipCss = ":host{--ez-action-chip--height:36px;--ez-action-chip--border-radius:var(--border--radius-large, 24px);--ez-action-chip__border:1px solid;--ez-action-chip__border-color-strokes:var(--color--strokes, #DCE0E8);--ez-action-chip--font-size:var(--text--medium, 14px);--ez-action-chip--font-family:var(--font-pattern, Arial);--ez-action-chip--font-weight:var(--text-weight--large, 500);--ez-action-chip__label--title--primary:var(--title--primary, #919191);--ez-action-chip__label-color--disable-secondary:var(--color--disable-secondary, #F2F5F8);--ez-action-chip__label__default--background-color--hover:var(--color--primary-200, #f2faf8);--ez-action-chip__label__default--border-color--hover:var(--color--primary-600, #007a5a)}.label__container{width:fit-content;display:flex;flex-wrap:wrap;position:relative;background-color:#FFFFFF;align-items:center;align-self:center;cursor:pointer;color:var(--ez-action-chip__label--title--primary);fill:var(--ez-action-chip__label--title--primary);border:var(--ez-action-chip__border);border-radius:var(--ez-action-chip--border-radius);border-color:var(--ez-action-chip__border-color-strokes);padding-right:var(--space--medium, 12px);padding-left:var(--space--medium, 12px)}.label__container:hover{border-color:var(--ez-action-chip__label__default--border-color--hover);background-color:var(--ez-action-chip__label__default--background-color--hover)}label{display:flex;align-items:center;font-weight:var(--text-weight--large, 600);cursor:pointer;height:var(--ez-action-chip--height);font-family:var(--ez-action-chip--font-family);font-size:var(--ez-action-chip--font-size)}";
4
4
 
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, c as createEvent, h } from './index-6b8bfbeb.js';
1
+ import { r as registerInstance, c as createEvent, h } from './index-bf1aef20.js';
2
2
 
3
3
  const ezApplicationCss = "";
4
4