@sankhyalabs/ezui 1.1.76 → 1.1.77

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 (164) hide show
  1. package/dist/cjs/ApplicationUtils-d1c1db56.js +35 -0
  2. package/dist/cjs/AssetsUtils-dd585fba.js +24 -0
  3. package/dist/cjs/DataUnit-fdd7c70e.js +474 -0
  4. package/dist/cjs/DateUtils-716769e0.js +46 -0
  5. package/dist/cjs/ez-action-chip.cjs.entry.js +1 -1
  6. package/dist/cjs/ez-application.cjs.entry.js +28 -0
  7. package/dist/cjs/ez-button_11.cjs.entry.js +111771 -0
  8. package/dist/cjs/ez-calendar.cjs.entry.js +212 -0
  9. package/dist/cjs/ez-collapsible-box_6.cjs.entry.js +630 -0
  10. package/dist/cjs/ez-combo-box.cjs.entry.js +250 -0
  11. package/dist/cjs/ez-date-time-input.cjs.entry.js +144 -0
  12. package/dist/cjs/ez-dialog.cjs.entry.js +1 -1
  13. package/dist/cjs/ez-form.cjs.entry.js +1838 -0
  14. package/dist/cjs/ez-label-chip.cjs.entry.js +1 -1
  15. package/dist/cjs/ez-number-input.cjs.entry.js +61 -190
  16. package/dist/cjs/ez-popover.cjs.entry.js +3 -3
  17. package/dist/cjs/ez-popup.cjs.entry.js +2 -2
  18. package/dist/cjs/ez-time-input.cjs.entry.js +9 -27
  19. package/dist/cjs/ez-toast.cjs.entry.js +1 -1
  20. package/dist/cjs/ezui.cjs.js +3 -3
  21. package/dist/cjs/form-metadata.cjs.entry.js +129 -0
  22. package/dist/cjs/index-262d703b.js +7442 -0
  23. package/dist/cjs/{index-9431aeeb.js → index-4e4bae01.js} +1 -5
  24. package/dist/cjs/loader.cjs.js +3 -3
  25. package/dist/collection/collection-manifest.json +8 -3
  26. package/dist/collection/components/ez-application/ez-application.css +3 -0
  27. package/dist/collection/components/ez-application/ez-application.js +37 -0
  28. package/dist/collection/components/ez-button/ez-button.css +16 -1
  29. package/dist/collection/components/ez-button/ez-button.js +27 -2
  30. package/dist/collection/components/ez-calendar/ez-calendar.css +70 -3
  31. package/dist/collection/components/ez-calendar/ez-calendar.js +168 -24
  32. package/dist/collection/components/ez-check/ez-check.css +78 -78
  33. package/dist/collection/components/ez-check/ez-check.js +3 -3
  34. package/dist/collection/components/ez-combo-box/ez-combo-box.css +67 -51
  35. package/dist/collection/components/ez-combo-box/ez-combo-box.js +1 -0
  36. package/dist/collection/components/ez-date-time-input/ez-date-time-input.css +49 -0
  37. package/dist/collection/components/ez-date-time-input/ez-date-time-input.js +254 -0
  38. package/dist/collection/components/ez-form/subcomponents/DataUnit.js +4 -4
  39. package/dist/collection/components/ez-form/subcomponents/structure/FormSheet.js +1 -1
  40. package/dist/collection/components/ez-form/subcomponents/structure/NavigationBar.js +2 -2
  41. package/dist/collection/components/ez-grid/controller/DataUnitBridge.js +21 -0
  42. package/dist/collection/components/ez-grid/controller/EzGridController.js +1 -0
  43. package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +203 -0
  44. package/dist/collection/components/ez-grid/controller/ag-grid/DataSource.js +41 -0
  45. package/dist/collection/components/ez-grid/controller/ag-grid/i18n/pt-BR.js +75 -0
  46. package/dist/collection/components/ez-grid/controller/ag-grid/mock/Server.js +69 -0
  47. package/dist/collection/components/ez-grid/controller/ag-grid/template/HeaderColumnTemplate.js +12 -0
  48. package/dist/collection/components/ez-grid/ez-grid.css +15 -0
  49. package/dist/collection/components/ez-grid/ez-grid.js +414 -0
  50. package/dist/collection/components/ez-grid/subcomponents/gridconfig/grid-config.css +105 -0
  51. package/dist/collection/components/ez-grid/subcomponents/gridconfig/grid-config.js +354 -0
  52. package/dist/collection/components/ez-grid/subcomponents/select-box/select-box.css +7 -0
  53. package/dist/collection/components/ez-grid/subcomponents/select-box/select-box.js +66 -0
  54. package/dist/collection/components/ez-icon/ez-icon.css +1 -1
  55. package/dist/collection/components/ez-list/ez-list.css +227 -44
  56. package/dist/collection/components/ez-list/ez-list.js +529 -149
  57. package/dist/collection/components/ez-modal/ez-modal.css +4 -4
  58. package/dist/collection/components/ez-modal/ez-modal.js +1 -1
  59. package/dist/collection/components/ez-number-input/ez-number-input.css +7 -162
  60. package/dist/collection/components/ez-number-input/ez-number-input.js +90 -281
  61. package/dist/collection/components/ez-popover/ez-popover.css +10 -6
  62. package/dist/collection/components/ez-popup/ez-popup.css +25 -27
  63. package/dist/collection/components/ez-tabselector/ez-tabselector.css +0 -1
  64. package/dist/collection/components/ez-tabselector/ez-tabselector.js +3 -3
  65. package/dist/collection/components/ez-text-area/ez-text-area.js +1 -0
  66. package/dist/collection/components/ez-text-input/ez-text-input.js +1 -0
  67. package/dist/collection/components/ez-upload/ez-upload.js +3 -3
  68. package/dist/collection/components/test-du/test-du.css +3 -0
  69. package/dist/collection/components/test-du/test-du.js +45 -0
  70. package/dist/collection/servidor.js +94 -94
  71. package/dist/collection/utils/{Application.js → ApplicationUtils.js} +4 -4
  72. package/dist/custom-elements/index.d.ts +36 -6
  73. package/dist/custom-elements/index.js +120975 -3013
  74. package/dist/esm/ApplicationUtils-01280a9d.js +33 -0
  75. package/dist/esm/AssetsUtils-3803e935.js +22 -0
  76. package/dist/esm/DataUnit-1cd45202.js +464 -0
  77. package/dist/esm/DateUtils-0a1bbd7a.js +44 -0
  78. package/dist/esm/ez-action-chip.entry.js +1 -1
  79. package/dist/esm/ez-application.entry.js +24 -0
  80. package/dist/esm/ez-button_11.entry.js +111757 -0
  81. package/dist/esm/ez-calendar.entry.js +208 -0
  82. package/dist/esm/ez-collapsible-box_6.entry.js +621 -0
  83. package/dist/esm/ez-combo-box.entry.js +246 -0
  84. package/dist/esm/ez-date-time-input.entry.js +140 -0
  85. package/dist/esm/ez-dialog.entry.js +1 -1
  86. package/dist/esm/ez-form.entry.js +1834 -0
  87. package/dist/esm/ez-label-chip.entry.js +1 -1
  88. package/dist/esm/ez-number-input.entry.js +61 -190
  89. package/dist/esm/ez-popover.entry.js +3 -3
  90. package/dist/esm/ez-popup.entry.js +2 -2
  91. package/dist/esm/ez-time-input.entry.js +3 -21
  92. package/dist/esm/ez-toast.entry.js +1 -1
  93. package/dist/esm/ezui.js +3 -3
  94. package/dist/esm/form-metadata.entry.js +125 -0
  95. package/dist/esm/{index-fd3c8023.js → index-1dacecd3.js} +1 -5
  96. package/dist/esm/index-cfd5e193.js +7433 -0
  97. package/dist/esm/loader.js +3 -3
  98. package/dist/ezui/ezui.esm.js +1 -1
  99. package/dist/ezui/p-1ea8187e.entry.js +369 -0
  100. package/dist/ezui/p-37a611ea.js +1 -0
  101. package/dist/ezui/p-45689464.entry.js +1 -0
  102. package/dist/ezui/{p-a0b6eee2.entry.js → p-516d0e0f.entry.js} +1 -1
  103. package/dist/ezui/p-57291f97.entry.js +1 -0
  104. package/dist/ezui/{p-66954a04.entry.js → p-5a86e18a.entry.js} +1 -1
  105. package/dist/ezui/{p-823ff0a0.entry.js → p-5da66d3e.entry.js} +1 -1
  106. package/dist/ezui/p-69416bec.entry.js +1 -0
  107. package/dist/ezui/p-7107d7ef.js +1 -0
  108. package/dist/ezui/p-7ef97c5f.entry.js +1 -0
  109. package/dist/ezui/p-88f45a83.entry.js +1 -0
  110. package/dist/ezui/p-8c51a6aa.entry.js +1 -0
  111. package/dist/ezui/{p-e0ab3746.js → p-8f4851a6.js} +1 -1
  112. package/dist/ezui/p-9dfd537e.js +1 -0
  113. package/dist/ezui/{p-d443f020.entry.js → p-a18a2d7b.entry.js} +1 -1
  114. package/dist/ezui/p-a223eed8.entry.js +1 -0
  115. package/dist/ezui/p-b36308e7.js +1 -0
  116. package/dist/ezui/p-c0af195b.entry.js +1 -0
  117. package/dist/ezui/p-c6d469fc.entry.js +1 -0
  118. package/dist/ezui/p-c89629eb.js +1 -0
  119. package/dist/ezui/p-e7ee2836.entry.js +1 -0
  120. package/dist/ezui/p-f7b835cf.entry.js +1 -0
  121. package/dist/types/components/ez-application/ez-application.d.ts +12 -0
  122. package/dist/types/components/ez-button/ez-button.d.ts +5 -0
  123. package/dist/types/components/ez-calendar/ez-calendar.d.ts +21 -0
  124. package/dist/types/components/ez-check/ez-check.d.ts +1 -1
  125. package/dist/types/components/ez-date-time-input/ez-date-time-input.d.ts +42 -0
  126. package/dist/types/components/ez-grid/controller/DataUnitBridge.d.ts +8 -0
  127. package/dist/types/components/ez-grid/controller/EzGridController.d.ts +195 -0
  128. package/dist/types/components/ez-grid/controller/ag-grid/AgGridController.d.ts +34 -0
  129. package/dist/types/components/ez-grid/controller/ag-grid/DataSource.d.ts +11 -0
  130. package/dist/types/components/ez-grid/controller/ag-grid/i18n/pt-BR.d.ts +2 -0
  131. package/dist/types/components/ez-grid/controller/ag-grid/mock/Server.d.ts +8 -0
  132. package/dist/types/components/ez-grid/ez-grid.d.ts +78 -0
  133. package/dist/types/components/ez-grid/subcomponents/gridconfig/grid-config.d.ts +30 -0
  134. package/dist/types/components/ez-grid/subcomponents/select-box/select-box.d.ts +9 -0
  135. package/dist/types/components/ez-list/ez-list.d.ts +70 -17
  136. package/dist/types/components/ez-number-input/ez-number-input.d.ts +33 -50
  137. package/dist/types/components/ez-tabselector/ez-tabselector.d.ts +1 -1
  138. package/dist/types/components/test-du/test-du.d.ts +6 -0
  139. package/dist/types/components.d.ts +283 -117
  140. package/dist/types/stencil-public-runtime.d.ts +6 -4
  141. package/dist/types/utils/{Application.d.ts → ApplicationUtils.d.ts} +1 -1
  142. package/package.json +10 -8
  143. package/react/components.d.ts +6 -1
  144. package/react/components.js +6 -1
  145. package/react/components.js.map +1 -1
  146. package/dist/cjs/RequestMetadata-2cd01e8a.js +0 -531
  147. package/dist/cjs/ez-button_16.cjs.entry.js +0 -4079
  148. package/dist/cjs/ez-list.cjs.entry.js +0 -174
  149. package/dist/cjs/ez-modal.cjs.entry.js +0 -65
  150. package/dist/collection/components/ez-numeric-input/ez-numeric-input.css +0 -13
  151. package/dist/collection/components/ez-numeric-input/ez-numeric-input.js +0 -185
  152. package/dist/esm/RequestMetadata-c265c9d5.js +0 -527
  153. package/dist/esm/ez-button_16.entry.js +0 -4060
  154. package/dist/esm/ez-list.entry.js +0 -170
  155. package/dist/esm/ez-modal.entry.js +0 -61
  156. package/dist/ezui/p-11ae4ae7.entry.js +0 -1
  157. package/dist/ezui/p-47fa3d6c.entry.js +0 -1
  158. package/dist/ezui/p-8ab6168f.entry.js +0 -1
  159. package/dist/ezui/p-9c1fb51c.entry.js +0 -1
  160. package/dist/ezui/p-9d85125b.entry.js +0 -1
  161. package/dist/ezui/p-9dfccb16.js +0 -1
  162. package/dist/ezui/p-a7b546b2.entry.js +0 -1
  163. package/dist/ezui/p-c833c94f.entry.js +0 -1
  164. package/dist/types/components/ez-numeric-input/ez-numeric-input.d.ts +0 -45
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-9431aeeb.js');
5
+ const index = require('./index-4e4bae01.js');
6
6
 
7
7
  const ezLabelChipCss = ":host{--ez-label-chip--height:36px;--ez-label-chip__label--font-size:var(--text--medium, 14px);--ez-label-chip__label--font-family:var(--font-pattern, Arial);--ez-label-chip__label--font-weight:var(--text-weight--large, 600);--ez-label-chip__label--space--medium:var(--space--medium, 12px);--ez-label-chip__label--title--primary:var(--title--primary, #919191);--ez-label-chip__label__container--border-radius:var(--border--radius-large, 24px);--ez-label-chip__label__container--border:1px solid;--ez-label-chip__label__container--border-color-strokes:var(--color--strokes, #DCE0E8);--ez-label-chip__label__container--color-primary:var(--color--primary, #008561);--ez-label-chip__label__container-color--disable-secondary:var(--color--disable-secondary, #F2F5F8);--ez-label-chip__label__container--background-color:#0085610F;--ez-label-chip__label__container--border-color:#0085610F;--ez-label-chip__label__container--default--border-color--hover:var(--color--primary-600, #007a5a);--ez-label-chip__label__container--default--background-color--hover:var(--color--primary-200, #f2faf8);--ez-label-chip__label__container--text--disabled:var(--text--disable, #AFB6C0);--ez-label-chip__btn__close--image:url('data:image/svg+xml;utf8,<svg width=\"8\" height=\"8\" viewBox=\"0 0 8 8\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M 4.7098145,3.9968334 7.8535703,0.85318776 C 7.9473034,0.75946455 8,0.63233985 8,0.49978585 8,0.36723841 7.947304,0.24011361 7.8535703,0.14638378 7.7598354,0.05266059 7.6327257,6.48e-8 7.500152,6.48e-8 7.3676457,6.48e-8 7.2404691,0.0526608 7.1467354,0.14638378 L 4.00298,3.2900293 0.8591984,0.14638378 C 0.76546463,0.05266059 0.63834103,6.48e-8 0.50578123,6.48e-8 0.3732281,6.48e-8 0.24609783,0.05266059 0.15236397,0.14638378 0.05863012,0.24011361 0.00597395,0.36723841 0.00597395,0.49978585 c 0,0.132554 0.05265617,0.2596787 0.14639002,0.35340191 L 3.2961455,3.9968334 0.15236397,7.1411589 C 0.10466427,7.1872561 0.06663114,7.2424161 0.04046961,7.303371 0.01431473,7.3643212 5.6180845e-4,7.429943 1.6859246e-5,7.4962264 -5.2808998e-4,7.5625744 0.01214297,7.6283944 0.03729854,7.6897476 c 0.02514888,0.061416 0.06227604,0.1171794 0.1092096,0.1640783 0.0469402,0.046903 0.10274083,0.083936 0.16415749,0.1090508 0.0614166,0.025114 0.12721688,0.037703 0.19355667,0.037103 0.06634,-5.714e-4 0.13190027,-0.014457 0.19284393,-0.04064 0.0609507,-0.026246 0.11606474,-0.064351 0.16213217,-0.1120492 L 4.00298,4.7036374 7.1467354,7.8472967 c 0.093734,0.09373 0.2209103,0.1463572 0.3534166,0.1463572 0.1325737,0 0.2596834,-0.052623 0.3534183,-0.1463572 C 7.9473034,7.753567 8,7.6264624 8,7.493895 8,7.3613281 7.9473086,7.2342224 7.8535703,7.1404927 Z\"/></svg>')}.btn-close{align-items:flex-start;display:flex;outline:none;border:none;padding:0px 0px 0px 6px;background-color:unset;cursor:pointer}.btn-close::after{content:'';display:flex;background-color:var(--ez-label-chip__label__container--color-primary);width:8px;height:8px;-webkit-mask-image:var(--ez-label-chip__btn__close--image);mask-image:var(--ez-label-chip__btn__close--image)}.label__container{width:fit-content;display:flex;flex-wrap:wrap;position:relative;align-items:center;background-color:#FFFFFF;align-self:center;color:var(--ez-label-chip__label--title--primary);fill:var(--ez-label-chip__label--title--primary);border:var(--ez-label-chip__label__container--border);border-radius:var(--ez-label-chip__label__container--border-radius);border-color:var(--ez-label-chip__label__container--border-color-strokes);padding-right:var(--ez-label-chip__label--space--medium);padding-left:var(--ez-label-chip__label--space--medium)}.label__container:hover{border-color:var(--ez-label-chip__label__container--default--border-color--hover);background-color:var(--ez-label-chip__label__container--default--background-color--hover)}.label__container--active{width:fit-content;display:flex;flex-wrap:wrap;position:relative;align-items:center;align-self:center;border:var(--ez-label-chip__label__container--border);border-radius:var(--ez-label-chip__label__container--border-radius);padding-right:var(--ez-label-chip__label--space--medium);padding-left:var(--ez-label-chip__label--space--medium);fill:var(--ez-label-chip__label__container--color-primary);color:var(--ez-label-chip__label__container--color-primary);border-color:var(--ez-label-chip__label__container--border-color);background-color:var(--ez-label-chip__label__container--background-color)}.label__container--disabled{width:fit-content;display:flex;flex-wrap:wrap;position:relative;align-items:center;align-self:center;border:var(--ez-label-chip__label__container--border);border-color:var(--ez-label-chip__label__container-color--disable-secondary);border-radius:var(--ez-label-chip__label__container--border-radius);padding-right:var(--ez-label-chip__label--space--medium);padding-left:var(--ez-label-chip__label--space--medium);fill:var(--ez-label-chip__label__container--text--disabled);color:var(--ez-label-chip__label__container--text--disabled);background-color:var(--ez-label-chip__label__container-color--disable-secondary)}label{display:flex;align-items:center;font-weight:var(--ez-label-chip__label--font-weight);cursor:pointer;height:var(--ez-label-chip--height);font-family:var(--ez-label-chip__label--font-family);font-size:var(--ez-label-chip__label--font-size)}.label__icon{display:flex;cursor:pointer}";
8
8
 
@@ -2,21 +2,21 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-9431aeeb.js');
6
- const RequestMetadata = require('./RequestMetadata-2cd01e8a.js');
5
+ const index = require('./index-4e4bae01.js');
6
+ const index$1 = require('./index-262d703b.js');
7
7
 
8
- const ezNumberInputCss = ":host{--ni--height:42px;--ni--width:100%;--ni__icon--width:48px;--ni--border-radius:var(--border--radius-medium, 12px);--ni--font-size:var(--text--medium, 14px);--ni--font-family:var(--font-pattern, Arial);--ni__input--background-color:var(--background--medium, #e0e0e0);--ni__input--border:var(--border--medium, 2px solid);--ni__input--border-color:var(--ni__input--background-color);--ni__input--focus--border-color:var(--color--primary, #008561);--ni__input--disabled--background-color:var(--color--disable-secondary, #F2F5F8);--ni__input--disabled--color:var(--text--disable, #AFB6C0);--ni__input--error--border-color:#CC2936;--ni__placeholder--disabled--color:var(--text--disable, #AFB6C0);--ni__placeholder--color:var(--title--primary, #919191);--ni__placeholder--font-weight:var(--text-weight--large, 500);--ni__message_box--font-size:var(--text--small, 12px);--ni__message_box--info--color:var(--color--success, #22085d);--ni__message_box--error--color:var(--color--error, #FF0000);display:flex;flex-wrap:wrap;position:relative;width:var(--ni--width)}.invisible{visibility:hidden}input{width:100%;box-sizing:border-box;padding:var(--space--medium);height:var(--ni--height);border-radius:var(--ni--border-radius);font-family:var(--ni--font-family);font-size:var(--ni--font-size);border:var(--ni__input--border);border-color:var(--ni__input--border-color);background-color:var(--ni__input--background-color);font-weight:var(--text-weight--large)}input:disabled{background-color:var(--ni__input--disabled--background-color);color:var(--ni__input--disabled--color)}input:focus{outline:none;border-color:var(--ni__input--focus--border-color)}input.icon--left{padding-left:var(--ni__icon--width)}input.icon--right{padding-right:var(--ni__icon--width)}input::placeholder{color:var(--ni__placeholder--color);font-weight:var(--ni__placeholder--font-weight)}input:disabled::placeholder{color:var(--ni__placeholder--disabled--color)}input.hasError{color:inherit;border-color:var(--ni__input--error--border-color)}input.text--right{text-align:right}.message-box{min-height:16px;min-width:100%;margin-top:2px;line-height:12px;font-family:var(--ni--font-family);font-size:var(--ni__message_box--font-size);color:var(--ni__message_box--info--color)}.hasError{color:var(--ni__message_box--error--color)}.input__label{font-size:var(--text--medium);font-weight:var(--text-weight--large);left:var(--space--medium);position:absolute;color:var(--title--primary);top:var(--space--medium);font-family:var(--ni--font-family);-webkit-transition:font-size .3s, top .3s;transition:font-size .3s, top .3s;z-index:var(--visible)}.input__label--floated{font-family:var(--ni--font-family);font-size:var(--text--extra-small);top:var(--space--small);color:var(--text--primary)}.input__label--left{left:var(--ni__icon--width)}.input--with--label{padding-bottom:0}";
8
+ const ezNumberInputCss = ":host{display:block;width:100%;--ez-number-input__input--background-color:var(--background--medium, #e0e0e0);--ez-number-input__input--border-color:var(--ez-number-input__input--background-color)}.text-input{--ez-number-input__input--background-color:inherit;--ez-number-input__input--border-color:inherit}";
9
9
 
10
- let NumberInput = class {
10
+ let EzNumberInput = class {
11
11
  constructor(hostRef) {
12
12
  index.registerInstance(this, hostRef);
13
13
  this.ezChange = index.createEvent(this, "ezChange", 7);
14
14
  /**
15
- * Deixa o campo disponível ou não para digitação.
15
+ * Deixa o campo disponível ou não para uso.
16
16
  */
17
17
  this.enabled = true;
18
18
  /**
19
- * Deixa o campo disponível ou não para digitação.
19
+ * Configura o alinhamento do texto.
20
20
  */
21
21
  this.textleft = false;
22
22
  /**
@@ -25,226 +25,97 @@ let NumberInput = class {
25
25
  * Qualquer outro valor que não seja "en-US", adotará a formatação "pt-BR"
26
26
  * Não é case sensitive
27
27
  */
28
- this.formatnumber = "PT-BR";
29
- //---------------------------------------------
30
- // Private Methods
31
- //---------------------------------------------
32
- this.settingStrValueIntNumber = (strvalue) => {
33
- if (this.precision === 0 && strvalue) {
34
- return strvalue = strvalue.replace(/\./g, '').replace(/\,/g, '');
35
- }
36
- else {
37
- return strvalue;
38
- }
39
- };
40
- this.checkNumberValidation = (valuePtBRorNumber) => {
41
- try {
42
- if (valuePtBRorNumber != "" && RequestMetadata.NumberUtils.format(valuePtBRorNumber, this.precision, this.prettyprecision) === "NaN") {
43
- this.errorMessage = `Valor não é um número válido`;
44
- this.value = undefined;
45
- this.strvalue = undefined;
46
- if (this._inputElem) {
47
- this._inputElem.value = "";
48
- }
49
- return false;
50
- }
51
- }
52
- catch (err) {
53
- this.errorMessage = err.message;
54
- return false;
55
- }
56
- return true;
57
- };
28
+ this.formatNumber = "PT-BR";
58
29
  }
59
- showError() {
60
- const hasError = typeof this.errorMessage === 'string' && this.errorMessage !== '';
61
- if (this._inputElem) {
62
- if (hasError) {
63
- this._inputElem.classList.add('hasError');
64
- this._messageBoxElem.classList.add('hasError');
65
- }
66
- else {
67
- this._inputElem.classList.remove('hasError');
68
- this._messageBoxElem.classList.remove('hasError');
69
- }
30
+ setLabel() {
31
+ this._textInput.label = this.label;
32
+ }
33
+ setErrorMessage() {
34
+ this._textInput.errorMessage = this.errorMessage;
35
+ }
36
+ applyValueToInput() {
37
+ if (this._textInput) {
38
+ this._textInput.value = this.getTextValue(this.value);
70
39
  }
71
40
  }
72
41
  onPrecisionChanged(newPrecision) {
73
42
  if (isNaN(newPrecision)) {
74
43
  this.precision = 0;
75
44
  }
76
- this.handleFocusout();
77
45
  }
78
46
  onPrettyPrecisionChanged(newPrettyPrecision) {
79
47
  if (isNaN(newPrettyPrecision)) {
80
- this.prettyprecision = 0;
48
+ this.prettyPrecision = 0;
81
49
  }
82
- this.handleFocusout();
83
50
  }
84
- onValueChanged(newValue) {
85
- if (isNaN(newValue) && newValue !== undefined) {
86
- this.value = undefined;
87
- this.strvalue = "";
88
- this.errorMessage = `Valor não é um número válido`;
89
- this.adjustFloatingLabel();
90
- }
91
- else {
92
- this.settingComponent();
51
+ changeValue(newValue) {
52
+ this.errorMessage = "";
53
+ if (newValue && newValue !== this.value) {
54
+ this.value = newValue;
55
+ this._textInput.value = this.getTextValue(newValue);
56
+ this.ezChange.emit();
93
57
  }
94
58
  }
95
- adjustFloatingLabel() {
96
- if (this._labelElem) {
97
- if (this.label && this._inputElem.value && this._inputElem.value.toString().length > 0) {
98
- if (!this._labelElem.classList.contains("input__label--floated")) {
99
- this._labelElem.classList.add("input__label--floated");
100
- }
101
- if (!this._inputElem.classList.contains("input--with--label")) {
102
- this._inputElem.classList.add("input--with--label");
103
- }
104
- }
105
- else {
106
- this._labelElem.classList.remove("input__label--floated");
107
- }
59
+ parseNumber() {
60
+ const parsedNumber = this._textInput.value ? index$1.NumberUtils.stringToNumber(this._textInput.value) : null;
61
+ if (parsedNumber != null && isNaN(parsedNumber)) {
62
+ this.errorMessage = "O valor digitado não é um número válido";
108
63
  }
109
- }
110
- //---------------------------------------------
111
- // Public methods
112
- //---------------------------------------------
113
- /**
114
- * Faz o foco no componente de input
115
- */
116
- async setFocus() {
117
- this._inputElem.focus();
118
- }
119
- /**
120
- * Remove o foco no componente de input
121
- */
122
- async setBlur() {
123
- this._inputElem.blur();
124
- }
125
- //---------------------------------------------
126
- // Event handlers
127
- //---------------------------------------------
128
- /**
129
- * Promove a atualização do componente
130
- */
131
- async handleFocusout() {
132
- //Setting value and strvalue by stringinput
133
- if (this._inputElem) {
134
- this.errorMessage = "";
135
- if (this._inputElem.value !== "") {
136
- this._inputElem.value = this.settingStrValueIntNumber(this._inputElem.value);
137
- const value = RequestMetadata.NumberUtils.keepOnlyDecimalSeparator(this._inputElem.value, this.formatnumber.toUpperCase());
138
- if (!this.checkNumberValidation(value)) {
139
- return;
140
- }
141
- if (value) {
142
- try {
143
- this._inputElem.value = this.formatnumber.toUpperCase() !== "EN-US" ? RequestMetadata.NumberUtils.format(value, this.precision, this.prettyprecision) : RequestMetadata.NumberUtils.changeFormat(RequestMetadata.NumberUtils.format(value, this.precision, this.prettyprecision));
144
- }
145
- catch (e) {
146
- this.errorMessage = e.message;
147
- return;
148
- }
149
- }
150
- this.strvalue = this._inputElem.value;
151
- this.value = RequestMetadata.NumberUtils.stringToNumber(value);
152
- }
153
- else {
154
- this.strvalue = undefined;
155
- this.value = undefined;
156
- }
157
- this.adjustFloatingLabel();
158
- }
159
- }
160
- handleChange() {
161
- this._inputElem.value = this.settingStrValueIntNumber(this._inputElem.value);
162
- }
163
- handleSlotChange(ev) {
164
- const slot = ev.target;
165
- const content = slot.assignedElements()[0];
166
- content.style.position = "absolute";
167
- content.style.display = "flex";
168
- content.style.alignItems = "center";
169
- content.style.justifyContent = "center";
170
- content.style.overflow = "hidden";
171
- content.style.top = "0px";
172
- content.style.width = "var(--ni__icon--width)";
173
- content.style.height = "var(--ni--height)";
174
- if (slot.name == "leftIcon") {
175
- content.style.left = "0px";
176
- content.style.borderRadius = "var(--ni--border-radius) 0 0 var(--ni--border-radius)";
177
- this._inputElem.classList.add('icon--left');
178
- if (this._labelElem) {
179
- this._labelElem.classList.add("input__label--left");
180
- }
181
- }
182
- else if (slot.name == "rightIcon") {
183
- content.style.right = "0px";
184
- content.style.borderRadius = "0 var(--ni--border-radius) var(--ni--border-radius) 0";
185
- this._inputElem.classList.add('icon--right');
186
- }
187
- this.showError();
188
- }
189
- doFocus() {
190
- if (this.label && this._labelElem) {
191
- this._labelElem.classList.contains("input__label--floated") ? undefined : this._labelElem.classList.add("input__label--floated");
192
- }
193
- }
194
- settingComponent() {
195
- const value = '' + this.value;
196
- if (this.value !== undefined) {
64
+ else {
197
65
  try {
198
- this._inputElem.value = this.formatnumber.toUpperCase() !== "EN-US" ? RequestMetadata.NumberUtils.format(value, this.precision, this.prettyprecision) : RequestMetadata.NumberUtils.changeFormat(RequestMetadata.NumberUtils.format(value, this.precision, this.prettyprecision));
66
+ this.changeValue(parsedNumber);
199
67
  }
200
68
  catch (e) {
201
69
  this.errorMessage = e.message;
202
70
  return;
203
71
  }
204
- this.strvalue = this._inputElem.value;
205
72
  }
206
- this.ezChange.emit({ strValue: this.strvalue, value: this.value });
207
- this.adjustFloatingLabel();
208
73
  }
209
- settingValue() {
210
- //this.value: en-US format => Need to convert
211
- const value = !isNaN(this.value) ? '' + this.value : 'NaN';
212
- if (!this.checkNumberValidation(value)) {
213
- return;
74
+ getTextValue(value) {
75
+ const parsedNumber = value ? index$1.NumberUtils.stringToNumber(value) : null;
76
+ if (parsedNumber != null && isNaN(parsedNumber)) {
77
+ this.errorMessage = "O valor digitado não é um número válido";
78
+ }
79
+ else {
80
+ return this.formatNumber.toUpperCase() !== "EN-US" ? index$1.NumberUtils.format(value.toString(), this.precision, this.prettyPrecision) : index$1.NumberUtils.changeFormat(index$1.NumberUtils.format(value.toString(), this.precision, this.prettyPrecision));
214
81
  }
215
- //output default from ".format": pt-BR
216
- const tempStrValue = RequestMetadata.NumberUtils.format(value, this.precision, this.prettyprecision);
217
- //output => depends to formatnumber
218
- this.strvalue = this.formatnumber.toUpperCase() !== 'EN-US' ? tempStrValue : RequestMetadata.NumberUtils.changeFormat(tempStrValue);
219
- RequestMetadata.NumberUtils.format(this.value.toString(), this.precision, this.prettyprecision);
82
+ return "";
220
83
  }
221
- //---------------------------------------------
222
- // Lifecycle web component
223
- //---------------------------------------------
224
84
  componentDidLoad() {
225
85
  if (!this.textleft) {
226
- this._inputElem.classList.add('text--right');
86
+ this._textInput.shadowRoot.querySelector('input').classList.add('text--right');
87
+ }
88
+ let rightItem;
89
+ let letfItem;
90
+ for (const key in this._hostElement.children) {
91
+ if (Object.prototype.hasOwnProperty.call(this._hostElement.children, key)) {
92
+ const element = this._hostElement.children[key];
93
+ if (element.getAttribute('slot') === 'rightIcon') {
94
+ rightItem = element;
95
+ }
96
+ else if (element.getAttribute('slot') === 'leftIcon') {
97
+ letfItem = element;
98
+ }
99
+ }
227
100
  }
228
- this.showError();
229
- this.adjustFloatingLabel();
101
+ this._leftSlotItem = letfItem;
102
+ this._rightSlotItem = rightItem;
230
103
  }
231
104
  componentWillLoad() {
232
105
  this.onPrecisionChanged(this.precision);
233
- this.onPrettyPrecisionChanged(this.prettyprecision);
234
- this.settingValue();
106
+ this.onPrettyPrecisionChanged(this.prettyPrecision);
235
107
  }
236
108
  render() {
237
- const labelInput = this.label ? index.h("label", { onClick: () => this._inputElem.focus(), class: "input__label", ref: (el) => this._labelElem = el }, this.label) : null;
238
- return (index.h(index.Host, null, index.h("slot", { name: "leftIcon", onSlotchange: (ev) => { this.handleSlotChange(ev); } }), labelInput, index.h("input", { onFocus: () => this.doFocus(), ref: (el) => this._inputElem = el, type: "text", value: this.strvalue, disabled: !this.enabled, onInput: this.handleChange.bind(this), onFocusout: this.handleFocusout.bind(this) }), index.h("slot", { name: "rightIcon", onSlotchange: (ev) => { this.handleSlotChange(ev); } }), index.h("span", { class: "message-box", ref: (el) => this._messageBoxElem = el }, this.errorMessage)));
109
+ return (index.h(index.Host, { ref: elem => this._hostElement = elem }, index.h("ez-text-input", { class: "text-input", ref: elem => this._textInput = elem, onBlur: () => this.parseNumber(), label: this.label, onEzChange: event => event.stopPropagation(), value: this.getTextValue(this.value), restrict: "0123456789-,.", enabled: this.enabled, errorMessage: this.errorMessage }, this._rightSlotItem ? index.h("slot", { name: "rightIcon", slot: "rightIcon" }) : undefined, this._leftSlotItem ? index.h("slot", { name: "leftIcon", slot: "leftIcon" }) : undefined)));
239
110
  }
240
- get el() { return index.getElement(this); }
241
111
  static get watchers() { return {
242
- "errorMessage": ["showError"],
112
+ "label": ["setLabel"],
113
+ "errorMessage": ["setErrorMessage"],
114
+ "value": ["applyValueToInput"],
243
115
  "precision": ["onPrecisionChanged"],
244
- "prettyprecision": ["onPrettyPrecisionChanged"],
245
- "value": ["onValueChanged"]
116
+ "prettyPrecision": ["onPrettyPrecisionChanged"]
246
117
  }; }
247
118
  };
248
- NumberInput.style = ezNumberInputCss;
119
+ EzNumberInput.style = ezNumberInputCss;
249
120
 
250
- exports.ez_number_input = NumberInput;
121
+ exports.ez_number_input = EzNumberInput;
@@ -2,11 +2,11 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-9431aeeb.js');
6
- require('./RequestMetadata-2cd01e8a.js');
5
+ const index = require('./index-4e4bae01.js');
6
+ require('./index-262d703b.js');
7
7
  const FloatingManager = require('./FloatingManager-6cfeb947.js');
8
8
 
9
- const ezPopoverCss = ":host{--popover__box--border-radius:var(--border--radius-medium, 12px);--popover__box--box-shadow:var(--shadow, 0px 0px 16px 0px #000);position:relative;display:flex;user-select:none;width:100%}.box{z-index:var(--more-visible, 1);display:flex;flex-direction:column;height:fit-content;background-color:var(--background--xlight);border-radius:var(--popover__box--border-radius);box-shadow:var(--popover__box--box-shadow)}.box--fit-content{width:fit-content}.box--full-width{width:100%}";
9
+ const ezPopoverCss = ":host{--ez-popover__box--border-radius:var(--border--radius-medium, 12px);--ez-popover__box--box-shadow:var(--shadow, 0px 0px 16px 0px #000);--ez-popover__box--background-color:var(--background--xlight, #fff);--ez-popover__box--z-index:var(--more-visible, 1);position:relative;display:flex;user-select:none;width:100%}.box{z-index:var(--ez-popover__box--z-index);display:flex;flex-direction:column;height:fit-content;background-color:var(--ez-popover__box--background-color);border-radius:var(--ez-popover__box--border-radius);box-shadow:var(--ez-popover__box--box-shadow)}.box--fit-content{width:fit-content}.box--full-width{width:100%}";
10
10
 
11
11
  let EzPopover = class {
12
12
  constructor(hostRef) {
@@ -2,9 +2,9 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-9431aeeb.js');
5
+ const index = require('./index-4e4bae01.js');
6
6
 
7
- const ezPopupCss = ":host{display:flex;--popup-z-index:var(--most-visible, 3);--popup__container--color:var(--title--primary, #2b3a54);--popup__container--padding:var(--space--large, 24px);--popup__header--padding-bottom:var(--space--medium, 12px);--popup__title--font-family:var(--font-pattern, \"'Sora', 'Algerian'\");--popup__title--font-size:var(--title--extra-large, 24px);--popup__title--color:var(--title--primary, #2b3a54);--popup__title--font-weight:var(--text-weight--large, 600);--popup__btn__close--icon-color:var(--title--primary, #2b3a54);--popup__btn__close--icon:url('data:image/svg+xml;utf8,<svg width=\"14\" height=\"14\" viewBox=\"0 0 14 14\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M 8.2421753,6.9944578 13.743748,1.4930784 C 13.907781,1.3290628 14,1.1065946 14,0.87462511 14,0.64266712 13.907782,0.42019873 13.743748,0.25617155 13.579712,0.09215597 13.35727,6.48e-8 13.125266,6.48e-8 12.89338,6.48e-8 12.670821,0.09215634 12.506787,0.25617155 L 7.005215,5.7575508 1.5035972,0.25617155 C 1.3395631,0.09215597 1.1170968,6.48e-8 0.88511716,6.48e-8 0.65314917,6.48e-8 0.4306712,0.09215597 0.26663695,0.25617155 0.10260271,0.42019873 0.01045441,0.64266712 0.01045441,0.87462511 c 0,0.23196949 0.0921483,0.45443769 0.25618254,0.61845329 L 5.7682546,6.9944578 0.26663695,12.497027 c -0.0834745,0.08067 -0.15003245,0.1772 -0.19581514,0.283871 C 0.02505077,12.887561 9.831648e-4,13.002399 2.950369e-5,13.118395 -9.2415746e-4,13.234504 0.02125019,13.349689 0.06527245,13.457057 c 0.04401053,0.107479 0.10898307,0.205064 0.1911168,0.287137 0.0821454,0.08208 0.17979645,0.146888 0.28727561,0.190839 0.10747906,0.04395 0.22262954,0.06598 0.33872417,0.06493 0.116095,-10e-4 0.23082547,-0.0253 0.33747687,-0.07112 0.1066637,-0.04593 0.2031133,-0.112615 0.2837313,-0.196086 L 7.005215,8.2313646 12.506787,13.732768 c 0.164034,0.164027 0.386593,0.256125 0.618479,0.256125 0.232004,0 0.454446,-0.09209 0.618482,-0.256125 C 13.907781,13.568741 14,13.346308 14,13.114315 14,12.882323 13.90779,12.659888 13.743748,12.495861 Z\"/></svg>')}.overlay{position:fixed;display:flex;top:0px;z-index:var(--popup-z-index);left:0px;width:100%;align-items:center;justify-content:center;box-sizing:border-box;height:100vh;backdrop-filter:blur(4px);background:rgba(0, 4, 12, 0.4)}.popup{display:flex;height:100%;align-items:center;justify-content:center;box-sizing:border-box}.popup__container{width:100%;max-height:90%;display:flex;flex-wrap:wrap;overflow:hidden;background:#FFFF;color:var(--popup__container--color);border-radius:12px;box-shadow:0px 0px 16px rgba(0, 38, 111, 0.122);box-sizing:border-box;padding:var(--popup__container--padding)}.popup__content{box-sizing:border-box;max-height:100%;width:100%;display:flex;flex-wrap:wrap}.popup__expandable-content{box-sizing:border-box;overflow-y:auto;width:100%;display:flex;flex-wrap:wrap;max-height:80vh;content-visibility:auto}.popup__header{padding-bottom:var(--popup__header--padding-bottom);width:100%;display:flex}.popup__title{display:flex;margin:0;width:100%;font-family:var(--popup__title--font-family);font-size:var(--popup__title--font-size);font-weight:var(--popup__title--font-weight);color:var(--popup__title--color);line-height:1.3}.btn-close{justify-content:flex-end;align-self:flex-start;align-items:flex-start;display:flex;outline:none;border:none;background-color:unset;cursor:pointer}.btn-close::after{content:'';display:flex;background-color:var(--popup__btn__close--icon-color);width:14px;height:14px;-webkit-mask-image:var(--popup__btn__close--icon);mask-image:var(--popup__btn__close--icon)}.btn-close--solo{width:100%}.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%}}";
7
+ const ezPopupCss = ":host{display:flex;--ez-popup-z-index:var(--most-visible, 3);--ez-popup__container--color:var(--title--primary, #2b3a54);--ez-popup__container--padding:var(--space--large, 24px);--ez-popup__header--padding-bottom:var(--space--medium, 12px);--ez-popup__title--font-family:var(--font-pattern, \"'Sora', 'Algerian'\");--ez-popup__title--font-size:var(--title--extra-large, 24px);--ez-popup__title--color:var(--title--primary, #2b3a54);--ez-popup__title--font-weight:var(--text-weight--large, 600);--ez-popup__btn__close--icon-color:var(--title--primary, #2b3a54);--ez-popup__btn__close--icon:url('data:image/svg+xml;utf8,<svg width=\"14\" height=\"14\" viewBox=\"0 0 14 14\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M 8.2421753,6.9944578 13.743748,1.4930784 C 13.907781,1.3290628 14,1.1065946 14,0.87462511 14,0.64266712 13.907782,0.42019873 13.743748,0.25617155 13.579712,0.09215597 13.35727,6.48e-8 13.125266,6.48e-8 12.89338,6.48e-8 12.670821,0.09215634 12.506787,0.25617155 L 7.005215,5.7575508 1.5035972,0.25617155 C 1.3395631,0.09215597 1.1170968,6.48e-8 0.88511716,6.48e-8 0.65314917,6.48e-8 0.4306712,0.09215597 0.26663695,0.25617155 0.10260271,0.42019873 0.01045441,0.64266712 0.01045441,0.87462511 c 0,0.23196949 0.0921483,0.45443769 0.25618254,0.61845329 L 5.7682546,6.9944578 0.26663695,12.497027 c -0.0834745,0.08067 -0.15003245,0.1772 -0.19581514,0.283871 C 0.02505077,12.887561 9.831648e-4,13.002399 2.950369e-5,13.118395 -9.2415746e-4,13.234504 0.02125019,13.349689 0.06527245,13.457057 c 0.04401053,0.107479 0.10898307,0.205064 0.1911168,0.287137 0.0821454,0.08208 0.17979645,0.146888 0.28727561,0.190839 0.10747906,0.04395 0.22262954,0.06598 0.33872417,0.06493 0.116095,-10e-4 0.23082547,-0.0253 0.33747687,-0.07112 0.1066637,-0.04593 0.2031133,-0.112615 0.2837313,-0.196086 L 7.005215,8.2313646 12.506787,13.732768 c 0.164034,0.164027 0.386593,0.256125 0.618479,0.256125 0.232004,0 0.454446,-0.09209 0.618482,-0.256125 C 13.907781,13.568741 14,13.346308 14,13.114315 14,12.882323 13.90779,12.659888 13.743748,12.495861 Z\"/></svg>')}.overlay{position:fixed;display:flex;top:0px;z-index:var(--ez-popup-z-index);left:0px;width:100%;align-items:center;justify-content:center;box-sizing:border-box;height:100vh;backdrop-filter:blur(4px);background:rgba(0, 4, 12, 0.4)}.popup{display:flex;height:100%;align-items:center;justify-content:center;box-sizing:border-box}.popup__container{width:100%;max-height:90%;height:100%;display:flex;flex-wrap:wrap;overflow:hidden;background:#FFFF;color:var(--ez-popup__container--color);border-radius:12px;box-shadow:0px 0px 16px rgba(0, 38, 111, 0.122);box-sizing:border-box;padding:var(--ez-popup__container--padding)}.popup__content{box-sizing:border-box;max-height:100%;width:100%;display:grid;grid-template-rows:auto 1fr}.popup__expandable-content{box-sizing:border-box;overflow-y:auto;height:100%;width:100%}.popup__header{padding-bottom:var(--ez-popup__header--padding-bottom);width:100%;display:flex}.popup__title{display:flex;margin:0;width:100%;font-family:var(--ez-popup__title--font-family);font-size:var(--ez-popup__title--font-size);font-weight:var(--ez-popup__title--font-weight);color:var(--ez-popup__title--color);line-height:1.3}.btn-close{justify-content:flex-end;align-self:flex-start;align-items:flex-start;display:flex;outline:none;border:none;background-color:unset;cursor:pointer}.btn-close::after{content:'';display:flex;background-color:var(--ez-popup__btn__close--icon-color);width:14px;height:14px;-webkit-mask-image:var(--ez-popup__btn__close--icon);mask-image:var(--ez-popup__btn__close--icon)}.btn-close--solo{width:100%}.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%}}";
8
8
 
9
9
  let EzPopup = class {
10
10
  constructor(hostRef) {
@@ -2,28 +2,10 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-9431aeeb.js');
6
- const RequestMetadata = require('./RequestMetadata-2cd01e8a.js');
5
+ const index = require('./index-4e4bae01.js');
6
+ const index$1 = require('./index-262d703b.js');
7
7
  const CSSVarsUtils = require('./CSSVarsUtils-f8827674.js');
8
-
9
- const getSpritePath = (sprite) => `${getContextAssetsPath("../assets/actions-sprite.svg")}#${sprite}`;
10
- let ctxLoaded = false;
11
- function getContextAssetsPath(resource) {
12
- if (!ctxLoaded) {
13
- const scriptElem = document.querySelector("script[data-ezui-assets-url]");
14
- if (scriptElem) {
15
- let assetsPath = scriptElem.dataset.ezuiAssetsUrl;
16
- if (assetsPath) {
17
- if (assetsPath.startsWith('/')) {
18
- assetsPath = window.location.origin + assetsPath;
19
- }
20
- index.setAssetPath(assetsPath);
21
- }
22
- }
23
- ctxLoaded = true;
24
- }
25
- return index.getAssetPath(resource);
26
- }
8
+ const AssetsUtils = require('./AssetsUtils-dd585fba.js');
27
9
 
28
10
  const ezTimeInputCss = ":host{display:flex;flex-wrap:wrap;position:relative;width:100%}";
29
11
 
@@ -42,7 +24,7 @@ let EzTimeInput = class {
42
24
  prepareMask() {
43
25
  if (this.showSeconds) {
44
26
  if (this._maskFormatter == undefined) {
45
- this._maskFormatter = new RequestMetadata.MaskFormatter("##:##:##");
27
+ this._maskFormatter = new index$1.MaskFormatter("##:##:##");
46
28
  }
47
29
  else {
48
30
  this._maskFormatter.mask = "##:##:##";
@@ -50,7 +32,7 @@ let EzTimeInput = class {
50
32
  }
51
33
  else {
52
34
  if (this._maskFormatter == undefined) {
53
- this._maskFormatter = new RequestMetadata.MaskFormatter("##:##");
35
+ this._maskFormatter = new index$1.MaskFormatter("##:##");
54
36
  }
55
37
  else {
56
38
  this._maskFormatter.mask = "##:##";
@@ -84,14 +66,14 @@ let EzTimeInput = class {
84
66
  handleFocusout() {
85
67
  this.errorMessage = "";
86
68
  this.prepareValue(this.viewValue);
87
- if (!RequestMetadata.TimeFormatter.validateTime(this.viewValue, this.showSeconds)) {
69
+ if (!index$1.TimeFormatter.validateTime(this.viewValue, this.showSeconds)) {
88
70
  this.clearField();
89
71
  this.errorMessage = "Favor inserir um horário válido.";
90
72
  }
91
73
  }
92
74
  prepareValue(value) {
93
75
  try {
94
- this.viewValue = RequestMetadata.TimeFormatter.prepareValue(value, this.showSeconds);
76
+ this.viewValue = index$1.TimeFormatter.prepareValue(value, this.showSeconds);
95
77
  }
96
78
  catch (e) {
97
79
  this.clearField();
@@ -103,7 +85,7 @@ let EzTimeInput = class {
103
85
  }
104
86
  handleChange() {
105
87
  this.viewValue = this._inputElem.value;
106
- this.value = RequestMetadata.NumberUtils.stringToNumber(this.viewValue.replace(/\D/g, ""));
88
+ this.value = index$1.NumberUtils.stringToNumber(this.viewValue.replace(/\D/g, ""));
107
89
  }
108
90
  //---------------------------------------------
109
91
  // Lifecycle web component
@@ -122,7 +104,7 @@ let EzTimeInput = class {
122
104
  }
123
105
  }
124
106
  render() {
125
- return (index.h(index.Host, null, index.h("ez-text-input", { ref: (el) => this._inputElem = el, value: this.viewValue, enabled: this.enabled, label: this.label, onInput: () => { this.handleChange(); }, onFocusout: () => { this.handleFocusout(); }, errorMessage: this.errorMessage }, index.h("ez-icon", { slot: "leftIcon", href: getSpritePath("timer-outline") }))));
107
+ return (index.h(index.Host, null, index.h("ez-text-input", { ref: (el) => this._inputElem = el, value: this.viewValue, enabled: this.enabled, label: this.label, onInput: () => { this.handleChange(); }, onFocusout: () => { this.handleFocusout(); }, errorMessage: this.errorMessage }, index.h("ez-icon", { slot: "leftIcon", href: AssetsUtils.getSpritePath("timer-outline") }))));
126
108
  }
127
109
  static get assetsDirs() { return ["../assets"]; }
128
110
  get _elem() { return index.getElement(this); }
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-9431aeeb.js');
5
+ const index = require('./index-4e4bae01.js');
6
6
 
7
7
  const ezToastCss = ":host{--ez-toast__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>');--ez-toast__container-z-index:var(--more-visible, 2);--ez-toast__container--background-color:var(--color--secondary, #383c45);--ez-toast__icon--padding-left:var(--space--small, 6px)}.toast__container{position:fixed;display:flex;bottom:100px;z-index:var(--ez-toast__container-z-index);left:100px;width:30%;box-sizing:border-box;background-color:var(--ez-toast__container--background-color);border-radius:6px;align-items:center;padding:12px;visibility:hidden}.message__container{font-family:\"Sora\", \"Algerian\";text-shadow:0 0 0 #353535, 0 0 1px transparent;color:#FFFFFF;font-size:14px;width:90%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.message__conteiner--icon{padding-left:var(--ez-toast__icon--padding-left);width:80%}.btn-close{display:flex;justify-content:flex-end;padding:0;outline:none;width:10%;border:none;background-color:unset;cursor:pointer}.btn-close::after{content:'';display:flex;background-color:#FFFFFF;width:12px;height:12px;-webkit-mask-image:var(--ez-toast__btn__close__image);mask-image:var(--ez-toast__btn__close__image)}.toast__container--oppened{animation:fadein 0.5s, fadeout 0.5s 3s;visibility:visible}@-webkit-keyframes fadein{from{left:-100px;opacity:0}to{left:100px;opacity:1}}@keyframes fadein{from{left:-100px;opacity:0}to{left:100px;opacity:1}}@-webkit-keyframes fadeout{from{left:100px;opacity:1}to{bottom:0;opacity:0}}@keyframes fadeout{from{left:100px;opacity:1}to{bottom:0;opacity:0}}";
8
8
 
@@ -1,9 +1,9 @@
1
1
  'use strict';
2
2
 
3
- const index = require('./index-9431aeeb.js');
3
+ const index = require('./index-4e4bae01.js');
4
4
 
5
5
  /*
6
- Stencil Client Patch Browser v2.10.0 | MIT Licensed | https://stenciljs.com
6
+ Stencil Client Patch Browser v2.13.0 | MIT Licensed | https://stenciljs.com
7
7
  */
8
8
  const patchBrowser = () => {
9
9
  const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('ezui.cjs.js', document.baseURI).href));
@@ -15,5 +15,5 @@ const patchBrowser = () => {
15
15
  };
16
16
 
17
17
  patchBrowser().then(options => {
18
- return index.bootstrapLazy([["ez-dialog.cjs",[[1,"ez-dialog",{"confirm":[1028],"critical":[1028],"message":[1025],"opened":[1540],"personalizedIconPath":[1025,"personalized-icon-path"],"ezTitle":[1025,"ez-title"],"handleButtonClick":[64],"show":[64]}]]],["ez-time-input.cjs",[[1,"ez-time-input",{"label":[513],"viewValue":[1537,"view-value"],"value":[1026],"enabled":[516],"errorMessage":[1537,"error-message"],"showSeconds":[516,"show-seconds"],"setFocus":[64],"setBlur":[64]}]]],["ez-action-chip.cjs",[[1,"ez-action-chip",{"label":[513],"enabled":[516]}]]],["ez-label-chip.cjs",[[1,"ez-label-chip",{"label":[513],"enabled":[516],"removable":[516],"value":[1540],"setFocus":[64],"setBlur":[64]}]]],["ez-list.cjs",[[1,"ez-list",{"initialList":[1040],"draggable":[4],"isMultipleSelection":[1540,"is-multiple-selection"],"getState":[64]}]]],["ez-modal.cjs",[[1,"ez-modal",{"modalSize":[1,"modal-size"],"align":[1],"opened":[4],"closeEsc":[4,"close-esc"],"closeOutsideClick":[4,"close-outside-click"]}]]],["ez-number-input.cjs",[[1,"ez-number-input",{"strvalue":[1025],"value":[1026],"label":[513],"enabled":[516],"errorMessage":[1537,"error-message"],"precision":[1538],"prettyprecision":[1538],"textleft":[516],"formatnumber":[513],"setFocus":[64],"setBlur":[64],"handleFocusout":[64]}]]],["ez-popover.cjs",[[1,"ez-popover",{"autoClose":[516,"auto-close"],"top":[1537],"left":[1537],"bottom":[1537],"right":[1537],"boxWidth":[513,"box-width"],"opened":[1540],"updatePosition":[64],"show":[64],"hide":[64]}]]],["ez-popup.cjs",[[1,"ez-popup",{"size":[1],"opened":[1540],"useHeader":[1540,"use-header"],"ezTitle":[1,"ez-title"]}]]],["ez-toast.cjs",[[1,"ez-toast",{"message":[1025],"fadeTime":[1026,"fade-time"],"useIcon":[1028,"use-icon"],"show":[64]}]]],["ez-button_16.cjs",[[0,"ez-form",{"metadataExecutor":[1,"metadata-executor"],"loadExecutor":[1,"load-executor"],"saveExecutor":[1,"save-executor"],"removeExecutor":[1,"remove-executor"],"fieldSearchExecutor":[1,"field-search-executor"],"ignoreSaveValidation":[4,"ignore-save-validation"],"metadata":[16],"slaveMode":[4,"slave-mode"],"enabled":[4],"loading":[1540],"validate":[64],"getChanges":[64],"changeFieldValue":[64]}],[1,"form-metadata",{"name":[1],"label":[1],"dataunit":[1025],"many":[4],"autoload":[4],"metadata":[1040]}],[1,"ez-date-input",{"label":[513],"value":[1040],"enabled":[516],"errorMessage":[1537,"error-message"]}],[1,"ez-search",{"value":[1537],"label":[1537],"enabled":[1540],"errorMessage":[1537,"error-message"],"optionLoader":[16],"showSelectedValue":[4,"show-selected-value"],"showOptionValue":[4,"show-option-value"]}],[1,"ez-numeric-input",{"label":[513],"value":[1538],"enabled":[516],"errorMessage":[1537,"error-message"],"precision":[8],"prettyprecision":[8]}],[1,"ez-check",{"label":[513],"value":[1540],"enabled":[516],"mode":[513],"getMode":[64],"setFocus":[64]}],[1,"ez-collapsible-box",{"value":[1540],"label":[513],"headerSize":[513,"header-size"],"iconPlacement":[513,"icon-placement"],"showHide":[64]}],[1,"ez-tabselector",{"selectedIndex":[1537,"selected-index"],"selectedTab":[1537,"selected-tab"],"tabs":[1]}],[1,"ez-text-area",{"label":[513],"value":[1537],"enabled":[516],"loading":[516],"errorMessage":[1537,"error-message"],"rows":[1538],"setFocus":[64],"setBlur":[64]}],[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],"addFiles":[64]}],[1,"place-holder"],[1,"ez-button",{"label":[513],"enabled":[516],"mode":[513],"image":[513]}],[1,"ez-combo-box",{"value":[1537],"label":[513],"enabled":[516],"options":[1040],"errorMessage":[1537,"error-message"],"searchMode":[4,"search-mode"],"showSelectedValue":[4,"show-selected-value"],"showOptionValue":[4,"show-option-value"],"optionLoader":[16],"_preSelection":[32],"_visibleOptions":[32]}],[1,"ez-calendar",{"value":[1040],"floating":[516],"show":[64],"fitVertical":[64],"hide":[64]}],[1,"ez-icon",{"size":[513],"href":[513]}],[1,"ez-text-input",{"label":[513],"value":[1537],"enabled":[516],"loading":[516],"errorMessage":[1537,"error-message"],"mask":[1],"restrict":[1],"setFocus":[64],"setBlur":[64]}]]]], options);
18
+ return index.bootstrapLazy([["ez-form.cjs",[[0,"ez-form",{"metadataExecutor":[1,"metadata-executor"],"loadExecutor":[1,"load-executor"],"saveExecutor":[1,"save-executor"],"removeExecutor":[1,"remove-executor"],"fieldSearchExecutor":[1,"field-search-executor"],"ignoreSaveValidation":[4,"ignore-save-validation"],"metadata":[16],"slaveMode":[4,"slave-mode"],"enabled":[4],"loading":[1540],"validate":[64],"getChanges":[64],"changeFieldValue":[64]}]]],["ez-date-time-input.cjs",[[1,"ez-date-time-input",{"label":[513],"value":[1040],"enabled":[516],"errorMessage":[1537,"error-message"],"showSeconds":[516,"show-seconds"]}]]],["ez-dialog.cjs",[[1,"ez-dialog",{"confirm":[1028],"critical":[1028],"message":[1025],"opened":[1540],"personalizedIconPath":[1025,"personalized-icon-path"],"ezTitle":[1025,"ez-title"],"handleButtonClick":[64],"show":[64]}]]],["ez-time-input.cjs",[[1,"ez-time-input",{"label":[513],"viewValue":[1537,"view-value"],"value":[1026],"enabled":[516],"errorMessage":[1537,"error-message"],"showSeconds":[516,"show-seconds"],"setFocus":[64],"setBlur":[64]}]]],["ez-number-input.cjs",[[1,"ez-number-input",{"label":[513],"value":[1544],"enabled":[516],"errorMessage":[1537,"error-message"],"precision":[1538],"prettyPrecision":[1538,"pretty-precision"],"textleft":[516],"formatNumber":[513,"format-number"],"_leftSlotItem":[32],"_rightSlotItem":[32]}]]],["ez-action-chip.cjs",[[1,"ez-action-chip",{"label":[513],"enabled":[516]}]]],["ez-application.cjs",[[0,"ez-application"]]],["ez-label-chip.cjs",[[1,"ez-label-chip",{"label":[513],"enabled":[516],"removable":[516],"value":[1540],"setFocus":[64],"setBlur":[64]}]]],["ez-popover.cjs",[[1,"ez-popover",{"autoClose":[516,"auto-close"],"top":[1537],"left":[1537],"bottom":[1537],"right":[1537],"boxWidth":[513,"box-width"],"opened":[1540],"updatePosition":[64],"show":[64],"hide":[64]}]]],["ez-popup.cjs",[[1,"ez-popup",{"size":[1],"opened":[1540],"useHeader":[1540,"use-header"],"ezTitle":[1,"ez-title"]}]]],["ez-toast.cjs",[[1,"ez-toast",{"message":[1025],"fadeTime":[1026,"fade-time"],"useIcon":[1028,"use-icon"],"show":[64]}]]],["form-metadata.cjs",[[1,"form-metadata",{"name":[1],"label":[1],"dataunit":[1025],"many":[4],"autoload":[4],"metadata":[1040]}]]],["ez-button_11.cjs",[[0,"test-du"],[0,"ez-grid",{"multipleSelection":[4,"multiple-selection"],"pageSize":[2,"page-size"],"serverUrl":[1,"server-url"],"dataUnit":[16],"_navigationHasPrevious":[32],"_navigationHasNext":[32],"_navigationFirstRow":[32],"_navigationLastRow":[32],"_navigationTotalRows":[32],"_popUpVisible":[32],"setColumnsDef":[64],"addColumnMenuItem":[64],"setColumnsState":[64],"setData":[64],"getSelection":[64],"getColumnsState":[64],"getColumns":[64]}],[1,"grid-config",{"selectedTab":[1025,"selected-tab"],"columns":[1040]}],[1,"ez-modal",{"modalSize":[1,"modal-size"],"align":[1],"opened":[1028],"closeEsc":[4,"close-esc"],"closeOutsideClick":[4,"close-outside-click"]}],[1,"ez-list",{"dataSource":[1040],"useGroups":[1540,"use-groups"],"ezDraggable":[1028,"ez-draggable"],"ezSelectable":[1028,"ez-selectable"],"itemSlotBuilder":[1040],"_listItems":[32],"_listGroupItems":[32],"setSelection":[64],"getSelection":[64],"getList":[64]}],[1,"select-box",{"selectedOption":[1,"selected-option"]}],[1,"ez-check",{"label":[513],"value":[1540],"enabled":[516],"mode":[513],"getMode":[64],"setFocus":[64]}],[1,"ez-tabselector",{"selectedIndex":[1537,"selected-index"],"selectedTab":[1537,"selected-tab"],"tabs":[1]}],[1,"ez-button",{"label":[513],"enabled":[516],"mode":[513],"image":[513],"size":[513]}],[1,"ez-icon",{"size":[513],"href":[513]}],[1,"ez-text-input",{"label":[513],"value":[1537],"enabled":[516],"loading":[516],"errorMessage":[1537,"error-message"],"mask":[1],"restrict":[1],"setFocus":[64],"setBlur":[64]}]]],["ez-combo-box.cjs",[[1,"ez-combo-box",{"value":[1537],"label":[513],"enabled":[516],"options":[1040],"errorMessage":[1537,"error-message"],"searchMode":[4,"search-mode"],"showSelectedValue":[4,"show-selected-value"],"showOptionValue":[4,"show-option-value"],"optionLoader":[16],"_preSelection":[32],"_visibleOptions":[32]}]]],["ez-calendar.cjs",[[1,"ez-calendar",{"value":[1040],"floating":[516],"time":[516],"showSeconds":[516,"show-seconds"],"show":[64],"fitVertical":[64],"hide":[64]}]]],["ez-collapsible-box_6.cjs",[[1,"ez-date-input",{"label":[513],"value":[1040],"enabled":[516],"errorMessage":[1537,"error-message"]}],[1,"ez-search",{"value":[1537],"label":[1537],"enabled":[1540],"errorMessage":[1537,"error-message"],"optionLoader":[16],"showSelectedValue":[4,"show-selected-value"],"showOptionValue":[4,"show-option-value"]}],[1,"ez-collapsible-box",{"value":[1540],"label":[513],"headerSize":[513,"header-size"],"iconPlacement":[513,"icon-placement"],"showHide":[64]}],[1,"ez-text-area",{"label":[513],"value":[1537],"enabled":[516],"loading":[516],"errorMessage":[1537,"error-message"],"rows":[1538],"setFocus":[64],"setBlur":[64]}],[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],"addFiles":[64]}],[1,"place-holder"]]]], options);
19
19
  });