@sankhyalabs/ezui 7.2.0-dev.2 → 7.2.0-dev.20

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 (259) hide show
  1. package/dist/cjs/{ApplicationUtils-006ca96f.js → ApplicationUtils-88dfe345.js} +1 -1
  2. package/dist/cjs/{app-globals-5cb12916.js → app-globals-c1d07d68.js} +1 -1
  3. package/dist/cjs/classic-search-list_7.cjs.entry.js +9 -4
  4. package/dist/cjs/ez-actions-button.cjs.entry.js +2 -2
  5. package/dist/cjs/ez-alert-list.cjs.entry.js +1 -1
  6. package/dist/cjs/ez-avatar.cjs.entry.js +1 -1
  7. package/dist/cjs/ez-calendar.cjs.entry.js +1 -1
  8. package/dist/cjs/ez-classic-combo-box.cjs.entry.js +2 -1
  9. package/dist/cjs/ez-classic-date-input.cjs.entry.js +2 -2
  10. package/dist/cjs/ez-classic-date-time-input.cjs.entry.js +1 -1
  11. package/dist/cjs/ez-classic-input.cjs.entry.js +49 -3
  12. package/dist/cjs/ez-classic-number-input.cjs.entry.js +1 -1
  13. package/dist/cjs/ez-classic-search-plus.cjs.entry.js +26 -13
  14. package/dist/cjs/ez-classic-search.cjs.entry.js +2 -2
  15. package/dist/cjs/ez-classic-time-input.cjs.entry.js +4 -3
  16. package/dist/cjs/ez-collapsible-box.cjs.entry.js +2 -2
  17. package/dist/cjs/ez-combo-box.cjs.entry.js +2 -2
  18. package/dist/cjs/ez-date-input.cjs.entry.js +1 -1
  19. package/dist/cjs/ez-date-time-input.cjs.entry.js +1 -1
  20. package/dist/cjs/ez-dialog.cjs.entry.js +1 -1
  21. package/dist/cjs/ez-double-list.cjs.entry.js +1 -1
  22. package/dist/cjs/ez-dropdown.cjs.entry.js +1 -1
  23. package/dist/cjs/ez-empty-card.cjs.entry.js +1 -1
  24. package/dist/cjs/ez-file-item.cjs.entry.js +1 -1
  25. package/dist/cjs/ez-form-view.cjs.entry.js +1 -1
  26. package/dist/cjs/ez-form.cjs.entry.js +3 -3
  27. package/dist/cjs/ez-grid-pagination.cjs.entry.js +227 -0
  28. package/dist/cjs/ez-grid.cjs.entry.js +45 -162
  29. package/dist/cjs/ez-guide-navigator.cjs.entry.js +1 -1
  30. package/dist/cjs/ez-icon.cjs.entry.js +1 -1
  31. package/dist/cjs/ez-link-builder_6.cjs.entry.js +1 -1
  32. package/dist/cjs/ez-list.cjs.entry.js +1 -1
  33. package/dist/cjs/ez-modal-container.cjs.entry.js +1 -1
  34. package/dist/cjs/ez-modal.cjs.entry.js +1 -1
  35. package/dist/cjs/ez-multi-selection-list.cjs.entry.js +1 -1
  36. package/dist/cjs/ez-number-input.cjs.entry.js +1 -1
  37. package/dist/cjs/ez-pagination.cjs.entry.js +1 -1
  38. package/dist/cjs/ez-popover-core.cjs.entry.js +1 -1
  39. package/dist/cjs/ez-popup.cjs.entry.js +4 -4
  40. package/dist/cjs/ez-record-navigation.cjs.entry.js +121 -0
  41. package/dist/cjs/ez-scroller_2.cjs.entry.js +81 -14
  42. package/dist/cjs/ez-search-plus.cjs.entry.js +13 -4
  43. package/dist/cjs/ez-search-result-list.cjs.entry.js +1 -1
  44. package/dist/cjs/ez-search.cjs.entry.js +3 -3
  45. package/dist/cjs/ez-sidebar-navigator.cjs.entry.js +1 -1
  46. package/dist/cjs/ez-skeleton.cjs.entry.js +1 -1
  47. package/dist/cjs/ez-sortable-list.cjs.entry.js +2 -2
  48. package/dist/cjs/ez-spinner.cjs.entry.js +1 -1
  49. package/dist/cjs/ez-split-button.cjs.entry.js +4 -4
  50. package/dist/cjs/ez-split-item.cjs.entry.js +2 -2
  51. package/dist/cjs/ez-text-input.cjs.entry.js +21 -15
  52. package/dist/cjs/ez-time-input.cjs.entry.js +1 -1
  53. package/dist/cjs/ez-tooltip.cjs.entry.js +1 -1
  54. package/dist/cjs/ez-tree.cjs.entry.js +1 -1
  55. package/dist/cjs/ez-upload.cjs.entry.js +2 -2
  56. package/dist/cjs/ezui.cjs.js +3 -3
  57. package/dist/cjs/filter-column.cjs.entry.js +2 -1
  58. package/dist/cjs/{floating-ui.dom.esm-f4d87617.js → floating-ui.dom.esm-bea31048.js} +165 -119
  59. package/dist/cjs/{index-350d0fa0.js → index-9739c242.js} +91 -30
  60. package/dist/cjs/index-a7b0c73d.js +8 -0
  61. package/dist/cjs/loader.cjs.js +3 -3
  62. package/dist/cjs/{search-column-fbf680d7.js → search-column-6e90fb19.js} +18 -9
  63. package/dist/collection/collection-manifest.json +7 -0
  64. package/dist/collection/components/ez-classic-combo-box/ez-classic-combo-box.js +2 -1
  65. package/dist/collection/components/ez-classic-date-input/ez-classic-date-input.js +1 -1
  66. package/dist/collection/components/ez-classic-input/ez-classic-input.js +47 -2
  67. package/dist/collection/components/ez-classic-input/utils/maskFormatter.js +2 -1
  68. package/dist/collection/components/ez-classic-search-plus/ez-classic-search-plus.css +22 -0
  69. package/dist/collection/components/ez-classic-search-plus/ez-classic-search-plus.js +26 -11
  70. package/dist/collection/components/ez-classic-time-input/ez-classic-time-input.js +3 -2
  71. package/dist/collection/components/ez-dropdown/ez-dropdown.css +1 -1
  72. package/dist/collection/components/ez-empty-card/ez-empty-card.js +7 -7
  73. package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +25 -14
  74. package/dist/collection/components/ez-grid/ez-grid.css +1 -60
  75. package/dist/collection/components/ez-grid/ez-grid.js +52 -150
  76. package/dist/collection/components/ez-grid/subcomponents/filter-column.js +1 -0
  77. package/dist/collection/components/ez-grid-pagination/ez-grid-pagination.css +111 -0
  78. package/dist/collection/components/ez-grid-pagination/ez-grid-pagination.js +410 -0
  79. package/dist/collection/components/ez-icon/ez-icon.css +1152 -1145
  80. package/dist/collection/components/ez-image-input/ez-image-input.css +24 -8
  81. package/dist/collection/components/ez-image-input/ez-image-input.js +6 -1
  82. package/dist/collection/components/ez-popup/ez-popup.js +3 -3
  83. package/dist/collection/components/ez-record-navigation/ez-record-navigation.css +51 -0
  84. package/dist/collection/components/ez-record-navigation/ez-record-navigation.js +246 -0
  85. package/dist/collection/components/ez-scroller/EzScrollNavigationMode.js +5 -0
  86. package/dist/collection/components/ez-scroller/ez-scroller.css +117 -11
  87. package/dist/collection/components/ez-scroller/ez-scroller.js +118 -13
  88. package/dist/collection/components/ez-search/ez-search.css +4 -0
  89. package/dist/collection/components/ez-search-plus/ez-search-plus.js +11 -2
  90. package/dist/collection/components/ez-sortable-list/ez-sortable-list.css +1 -1
  91. package/dist/collection/components/ez-split-button/ez-split-button.css +1 -1
  92. package/dist/collection/components/ez-split-button/ez-split-button.js +2 -2
  93. package/dist/collection/components/ez-text-input/ez-text-input.js +21 -15
  94. package/dist/collection/utils/i18n/locales/en-us.js +27 -4
  95. package/dist/collection/utils/i18n/locales/es-es.js +27 -4
  96. package/dist/collection/utils/i18n/locales/pt-br.js +27 -4
  97. package/dist/collection/utils/interfaces/AbstractFieldMetadata.js +14 -2
  98. package/dist/collection/utils/searchColumn/search-column.js +2 -5
  99. package/dist/custom-elements/index.d.ts +12 -0
  100. package/dist/custom-elements/index.js +856 -371
  101. package/dist/esm/{ApplicationUtils-0c5cb207.js → ApplicationUtils-f7721533.js} +1 -1
  102. package/dist/esm/{app-globals-1db10325.js → app-globals-6e258867.js} +1 -1
  103. package/dist/esm/classic-search-list_7.entry.js +9 -4
  104. package/dist/esm/ez-actions-button.entry.js +2 -2
  105. package/dist/esm/ez-alert-list.entry.js +1 -1
  106. package/dist/esm/ez-avatar.entry.js +1 -1
  107. package/dist/esm/ez-calendar.entry.js +1 -1
  108. package/dist/esm/ez-classic-combo-box.entry.js +2 -1
  109. package/dist/esm/ez-classic-date-input.entry.js +2 -2
  110. package/dist/esm/ez-classic-date-time-input.entry.js +1 -1
  111. package/dist/esm/ez-classic-input.entry.js +49 -3
  112. package/dist/esm/ez-classic-number-input.entry.js +1 -1
  113. package/dist/esm/ez-classic-search-plus.entry.js +26 -13
  114. package/dist/esm/ez-classic-search.entry.js +2 -2
  115. package/dist/esm/ez-classic-time-input.entry.js +4 -3
  116. package/dist/esm/ez-collapsible-box.entry.js +2 -2
  117. package/dist/esm/ez-combo-box.entry.js +2 -2
  118. package/dist/esm/ez-date-input.entry.js +1 -1
  119. package/dist/esm/ez-date-time-input.entry.js +1 -1
  120. package/dist/esm/ez-dialog.entry.js +1 -1
  121. package/dist/esm/ez-double-list.entry.js +1 -1
  122. package/dist/esm/ez-dropdown.entry.js +1 -1
  123. package/dist/esm/ez-empty-card.entry.js +1 -1
  124. package/dist/esm/ez-file-item.entry.js +1 -1
  125. package/dist/esm/ez-form-view.entry.js +1 -1
  126. package/dist/esm/ez-form.entry.js +3 -3
  127. package/dist/esm/ez-grid-pagination.entry.js +223 -0
  128. package/dist/esm/ez-grid.entry.js +46 -163
  129. package/dist/esm/ez-guide-navigator.entry.js +1 -1
  130. package/dist/esm/ez-icon.entry.js +1 -1
  131. package/dist/esm/ez-link-builder_6.entry.js +1 -1
  132. package/dist/esm/ez-list.entry.js +1 -1
  133. package/dist/esm/ez-modal-container.entry.js +1 -1
  134. package/dist/esm/ez-modal.entry.js +1 -1
  135. package/dist/esm/ez-multi-selection-list.entry.js +1 -1
  136. package/dist/esm/ez-number-input.entry.js +1 -1
  137. package/dist/esm/ez-pagination.entry.js +1 -1
  138. package/dist/esm/ez-popover-core.entry.js +1 -1
  139. package/dist/esm/ez-popup.entry.js +4 -4
  140. package/dist/esm/ez-record-navigation.entry.js +117 -0
  141. package/dist/esm/ez-scroller_2.entry.js +81 -14
  142. package/dist/esm/ez-search-plus.entry.js +13 -4
  143. package/dist/esm/ez-search-result-list.entry.js +1 -1
  144. package/dist/esm/ez-search.entry.js +3 -3
  145. package/dist/esm/ez-sidebar-navigator.entry.js +1 -1
  146. package/dist/esm/ez-skeleton.entry.js +1 -1
  147. package/dist/esm/ez-sortable-list.entry.js +2 -2
  148. package/dist/esm/ez-spinner.entry.js +1 -1
  149. package/dist/esm/ez-split-button.entry.js +4 -4
  150. package/dist/esm/ez-split-item.entry.js +2 -2
  151. package/dist/esm/ez-text-input.entry.js +21 -15
  152. package/dist/esm/ez-time-input.entry.js +1 -1
  153. package/dist/esm/ez-tooltip.entry.js +1 -1
  154. package/dist/esm/ez-tree.entry.js +1 -1
  155. package/dist/esm/ez-upload.entry.js +2 -2
  156. package/dist/esm/ezui.js +3 -3
  157. package/dist/esm/filter-column.entry.js +2 -1
  158. package/dist/esm/{floating-ui.dom.esm-ad30f2f0.js → floating-ui.dom.esm-2964eae1.js} +165 -119
  159. package/dist/esm/{index-225aa0c3.js → index-9e6dab5b.js} +91 -30
  160. package/dist/esm/index-baa5e267.js +8 -0
  161. package/dist/esm/loader.js +3 -3
  162. package/dist/esm/{search-column-40a78cac.js → search-column-7d7f0331.js} +18 -9
  163. package/dist/ezui/ezui.esm.js +1 -1
  164. package/dist/ezui/p-0592535f.entry.js +1 -0
  165. package/dist/ezui/{p-544605c4.entry.js → p-063bb342.entry.js} +1 -1
  166. package/dist/ezui/{p-c56ee8c0.entry.js → p-0ac8bd66.entry.js} +1 -1
  167. package/dist/ezui/p-0d80e3ec.entry.js +1 -0
  168. package/dist/ezui/{p-729bd1be.entry.js → p-108503ed.entry.js} +1 -1
  169. package/dist/ezui/{p-e3cd5080.entry.js → p-1166b2d5.entry.js} +1 -1
  170. package/dist/ezui/p-15873627.js +1 -0
  171. package/dist/ezui/p-178cb9df.entry.js +1 -0
  172. package/dist/ezui/p-1d253dd5.entry.js +1 -0
  173. package/dist/ezui/p-2856c545.entry.js +1 -0
  174. package/dist/ezui/{p-bea06aae.entry.js → p-28601589.entry.js} +46 -46
  175. package/dist/ezui/{p-df802548.entry.js → p-2ae127bc.entry.js} +1 -1
  176. package/dist/ezui/{p-556bf329.entry.js → p-2ebd7383.entry.js} +1 -1
  177. package/dist/ezui/{p-b36475f9.entry.js → p-30c5f48a.entry.js} +1 -1
  178. package/dist/ezui/{p-62c149cb.entry.js → p-3fae7072.entry.js} +1 -1
  179. package/dist/ezui/p-42e1e733.js +1 -0
  180. package/dist/ezui/{p-4e869617.entry.js → p-45245c32.entry.js} +1 -1
  181. package/dist/ezui/{p-a872c642.entry.js → p-46b1b2ac.entry.js} +1 -1
  182. package/dist/ezui/{p-5abb220b.entry.js → p-54af1af0.entry.js} +1 -1
  183. package/dist/ezui/p-55434123.entry.js +1 -0
  184. package/dist/ezui/{p-a4351519.entry.js → p-66455069.entry.js} +1 -1
  185. package/dist/ezui/p-6791d05f.entry.js +1 -0
  186. package/dist/ezui/p-72e77b45.entry.js +1 -0
  187. package/dist/ezui/{p-7edc3ef7.entry.js → p-73461028.entry.js} +1 -1
  188. package/dist/ezui/{p-f5552540.entry.js → p-7424d520.entry.js} +1 -1
  189. package/dist/ezui/{p-b705b342.entry.js → p-7a07c50f.entry.js} +1 -1
  190. package/dist/ezui/p-7b078125.entry.js +1 -0
  191. package/dist/ezui/{p-d5dc6b01.entry.js → p-7dad8018.entry.js} +1 -1
  192. package/dist/ezui/{p-b0a716ef.entry.js → p-881abc22.entry.js} +1 -1
  193. package/dist/ezui/{p-7953ecb9.entry.js → p-97fe3252.entry.js} +1 -1
  194. package/dist/ezui/{p-7134726a.entry.js → p-99556756.entry.js} +1 -1
  195. package/dist/ezui/{p-97312709.entry.js → p-9bd78d39.entry.js} +1 -1
  196. package/dist/ezui/{p-351fb12f.entry.js → p-a4735a12.entry.js} +1 -1
  197. package/dist/ezui/{p-9825c1d2.js → p-ad5e263d.js} +1 -1
  198. package/dist/ezui/{p-26cd4c2e.entry.js → p-b06294c9.entry.js} +1 -1
  199. package/dist/ezui/{p-2da9faf1.entry.js → p-b8cd501a.entry.js} +1 -1
  200. package/dist/ezui/{p-bf2a7f94.entry.js → p-b986da95.entry.js} +2 -2
  201. package/dist/ezui/{p-4c2a4435.entry.js → p-c25a4d30.entry.js} +1 -1
  202. package/dist/ezui/{p-4f7ad3ee.entry.js → p-c37fb359.entry.js} +1 -1
  203. package/dist/ezui/{p-e2972977.entry.js → p-cb00863d.entry.js} +1 -1
  204. package/dist/ezui/{p-4d30b703.entry.js → p-cf66ace0.entry.js} +1 -1
  205. package/dist/ezui/{p-e493ad57.entry.js → p-cfe41b07.entry.js} +1 -1
  206. package/dist/ezui/p-d2601b25.js +1 -0
  207. package/dist/ezui/{p-e3a42f47.entry.js → p-d5684cdc.entry.js} +1 -1
  208. package/dist/ezui/{p-6ac056d7.entry.js → p-d70805e4.entry.js} +1 -1
  209. package/dist/ezui/{p-a3bad8f8.entry.js → p-d75f583b.entry.js} +1 -1
  210. package/dist/ezui/p-d8b69419.entry.js +1 -0
  211. package/dist/ezui/p-df6173c8.entry.js +1 -0
  212. package/dist/ezui/{p-56565777.entry.js → p-dfced8c7.entry.js} +1 -1
  213. package/dist/ezui/{p-0248846f.entry.js → p-e3d6b544.entry.js} +1 -1
  214. package/dist/ezui/p-e63a0479.js +1 -0
  215. package/dist/ezui/{p-4c76b365.entry.js → p-e692c2a7.entry.js} +1 -1
  216. package/dist/ezui/{p-8e5f1c74.entry.js → p-e8cd003b.entry.js} +1 -1
  217. package/dist/ezui/p-ed790867.entry.js +1 -0
  218. package/dist/ezui/p-f2e0acf5.entry.js +1 -0
  219. package/dist/ezui/{p-34d459e4.entry.js → p-f498f6b5.entry.js} +1 -1
  220. package/dist/ezui/{p-4af745e1.entry.js → p-fb27b98d.entry.js} +1 -1
  221. package/dist/ezui/{p-987185c4.entry.js → p-fc11f5b9.entry.js} +1 -1
  222. package/dist/ezui/{p-ef8bd3e8.entry.js → p-fc72aeb8.entry.js} +1 -1
  223. package/dist/types/components/ez-classic-input/ez-classic-input.d.ts +6 -0
  224. package/dist/types/components/ez-classic-search-plus/ez-classic-search-plus.d.ts +3 -0
  225. package/dist/types/components/ez-empty-card/ez-empty-card.d.ts +2 -2
  226. package/dist/types/components/ez-grid/controller/ag-grid/AgGridController.d.ts +2 -0
  227. package/dist/types/components/ez-grid/ez-grid.d.ts +10 -27
  228. package/dist/types/components/ez-grid-pagination/ez-grid-pagination.d.ts +75 -0
  229. package/dist/types/components/ez-image-input/ez-image-input.d.ts +1 -0
  230. package/dist/types/components/ez-popup/ez-popup.d.ts +1 -0
  231. package/dist/types/components/ez-record-navigation/ez-record-navigation.d.ts +43 -0
  232. package/dist/types/components/ez-scroller/EzScrollNavigationMode.d.ts +4 -0
  233. package/dist/types/components/ez-scroller/ez-scroller.d.ts +16 -2
  234. package/dist/types/components/ez-search-plus/ez-search-plus.d.ts +1 -0
  235. package/dist/types/components/ez-text-input/ez-text-input.d.ts +1 -0
  236. package/dist/types/components.d.ts +154 -6
  237. package/dist/types/utils/i18n/locales/en-us.d.ts +26 -3
  238. package/dist/types/utils/i18n/locales/es-es.d.ts +26 -3
  239. package/dist/types/utils/i18n/locales/pt-br.d.ts +26 -3
  240. package/dist/types/utils/i18n/translations.d.ts +78 -9
  241. package/package.json +5 -5
  242. package/react/components.d.ts +2 -0
  243. package/react/components.js +2 -0
  244. package/react/components.js.map +1 -1
  245. package/dist/ezui/p-0625743b.entry.js +0 -1
  246. package/dist/ezui/p-07fb22c3.entry.js +0 -1
  247. package/dist/ezui/p-288631d1.entry.js +0 -1
  248. package/dist/ezui/p-2a806303.js +0 -1
  249. package/dist/ezui/p-2de94faf.entry.js +0 -1
  250. package/dist/ezui/p-44183c39.entry.js +0 -1
  251. package/dist/ezui/p-619225ce.entry.js +0 -1
  252. package/dist/ezui/p-6a794336.js +0 -1
  253. package/dist/ezui/p-a0f51b99.entry.js +0 -1
  254. package/dist/ezui/p-a813a748.entry.js +0 -1
  255. package/dist/ezui/p-c0ae79fa.entry.js +0 -1
  256. package/dist/ezui/p-c178730b.js +0 -1
  257. package/dist/ezui/p-d2645bdf.entry.js +0 -1
  258. package/dist/ezui/p-f969b65d.entry.js +0 -1
  259. package/dist/ezui/p-ff4312d5.js +0 -1
@@ -1,25 +1,64 @@
1
1
  import { JSUtils } from '@sankhyalabs/core';
2
2
  import { h, Host } from '@stencil/core';
3
+ import initI18n from '../../utils/i18n';
3
4
  import { EzScrollDirection } from './EzScrollDirection';
5
+ import { EzScrollNavigationMode } from './EzScrollNavigationMode';
4
6
  export class EzScroller {
5
7
  constructor() {
6
8
  this._shadowStart = "ez-scroller__wrapper--shadow-start";
7
9
  this._shadowEnd = "ez-scroller__wrapper--shadow-end";
10
+ this._startHidden = undefined;
11
+ this._endHidden = undefined;
8
12
  this.isActive = false;
9
13
  this.direction = undefined;
10
14
  this.locked = false;
11
15
  this.activeShadow = false;
16
+ this.navigationMode = EzScrollNavigationMode.SCROLLBAR;
17
+ this.scrollAmount = 200;
12
18
  }
13
19
  //---------------------------------------------
14
20
  // Private methods
15
21
  //---------------------------------------------
22
+ scrollToPrevious() {
23
+ if (!this._container)
24
+ return;
25
+ const scrollOptions = {
26
+ behavior: 'smooth'
27
+ };
28
+ if (this.direction === EzScrollDirection.HORIZONTAL) {
29
+ scrollOptions.left = Math.max(0, this._container.scrollLeft - this.scrollAmount);
30
+ }
31
+ else if (this.direction === EzScrollDirection.VERTICAL) {
32
+ scrollOptions.top = Math.max(0, this._container.scrollTop - this.scrollAmount);
33
+ }
34
+ this._container.scrollTo(scrollOptions);
35
+ }
36
+ scrollToNext() {
37
+ if (!this._container)
38
+ return;
39
+ const scrollOptions = {
40
+ behavior: 'smooth'
41
+ };
42
+ if (this.direction === EzScrollDirection.HORIZONTAL) {
43
+ scrollOptions.left = this._container.scrollLeft + this.scrollAmount;
44
+ }
45
+ else if (this.direction === EzScrollDirection.VERTICAL) {
46
+ scrollOptions.top = this._container.scrollTop + this.scrollAmount;
47
+ }
48
+ this._container.scrollTo(scrollOptions);
49
+ }
16
50
  getContainerClass() {
51
+ const isButtonMode = this.navigationMode === EzScrollNavigationMode.BUTTONS;
17
52
  return `ez-scroller__container ez-scroller__container--${this.direction}
18
53
  ${this.locked || !this.isActive ? " ez-scroller__container--locked" : ""}
54
+ ${isButtonMode ? " ez-scroller__container--buttons-mode" : ""}
19
55
  `;
20
56
  }
21
57
  getWrapperClass() {
22
- return `ez-scroller__wrapper ez-scroller__wrapper--${this.direction}`;
58
+ const isButtonMode = this.navigationMode === EzScrollNavigationMode.BUTTONS;
59
+ return `ez-scroller__wrapper ez-scroller__wrapper--${this.direction}
60
+ ${isButtonMode ? " ez-scroller__wrapper--buttons-mode" : ""}
61
+ `;
23
62
  }
24
63
  finishDrag() {
25
64
  if (this._controller) {
@@ -47,27 +86,33 @@ export class EzScroller {
47
86
  this.updateShadow();
48
87
  }
49
88
  updateShadow() {
50
- const wrapper = this._wrapper;
51
- if (!this.activeShadow || wrapper == undefined) {
89
+ if (!this.activeShadow) {
90
+ return;
91
+ }
92
+ // Apply shadow classes to container when in buttons mode, otherwise to wrapper
93
+ const targetElement = this.navigationMode === EzScrollNavigationMode.BUTTONS
94
+ ? this._container
95
+ : this._wrapper;
96
+ if (targetElement == undefined) {
52
97
  return;
53
98
  }
54
99
  const shadowPositions = ["", "start", "end", "middle"];
55
100
  const currentPosition = shadowPositions[Number(this._startHidden) | Number(this._endHidden) << 1];
56
101
  if (currentPosition === "start") {
57
- wrapper.classList.add(this._shadowStart);
58
- wrapper.classList.remove(this._shadowEnd);
102
+ targetElement.classList.add(this._shadowStart);
103
+ targetElement.classList.remove(this._shadowEnd);
59
104
  }
60
105
  else if (currentPosition === "end") {
61
- wrapper.classList.remove(this._shadowStart);
62
- wrapper.classList.add(this._shadowEnd);
106
+ targetElement.classList.remove(this._shadowStart);
107
+ targetElement.classList.add(this._shadowEnd);
63
108
  }
64
109
  else if (currentPosition === "middle") {
65
- wrapper.classList.add(this._shadowStart);
66
- wrapper.classList.add(this._shadowEnd);
110
+ targetElement.classList.add(this._shadowStart);
111
+ targetElement.classList.add(this._shadowEnd);
67
112
  }
68
113
  else {
69
- wrapper.classList.remove(this._shadowStart);
70
- wrapper.classList.remove(this._shadowEnd);
114
+ targetElement.classList.remove(this._shadowStart);
115
+ targetElement.classList.remove(this._shadowEnd);
71
116
  }
72
117
  }
73
118
  configResize() {
@@ -91,6 +136,17 @@ export class EzScroller {
91
136
  return this._container.scrollWidth > this._container.clientWidth
92
137
  || this._container.scrollHeight > this._container.clientHeight;
93
138
  }
139
+ renderNavigationButtons() {
140
+ if (this.navigationMode !== EzScrollNavigationMode.BUTTONS || this.direction === EzScrollDirection.BOTH) {
141
+ return null;
142
+ }
143
+ const isHorizontal = this.direction === EzScrollDirection.HORIZONTAL;
144
+ const previousIconName = isHorizontal ? "arrow_back" : "arrow-up";
145
+ const nextIconName = isHorizontal ? "arrow-forward" : "arrow-down";
146
+ const previousButton = this._startHidden ? (h("ez-button", { class: "ez-scroller__nav-button ez-scroller__nav-button--previous", onClick: () => this.scrollToPrevious(), title: this.i18n('ez-scroller.previousButton'), "aria-label": this.i18n('ez-scroller.previousButton'), type: "button", variant: "tertiary", mode: 'icon', suppressAnimation: true, iconName: previousIconName }, h("ez-icon", { iconName: previousIconName }))) : null;
147
+ const nextButton = this._endHidden ? (h("ez-button", { class: "ez-scroller__nav-button ez-scroller__nav-button--next", onClick: () => this.scrollToNext(), title: this.i18n('ez-scroller.nextButton'), "aria-label": this.i18n('ez-scroller.nextButton'), type: "button", variant: "tertiary", mode: 'icon', suppressAnimation: true, iconName: nextIconName }, h("ez-icon", { iconName: nextIconName }))) : null;
148
+ return { previousButton, nextButton };
149
+ }
94
150
  //---------------------------------------------
95
151
  // Event handlers
96
152
  //---------------------------------------------
@@ -129,6 +185,9 @@ export class EzScroller {
129
185
  }
130
186
  }
131
187
  }
188
+ async componentWillLoad() {
189
+ this.i18n = await initI18n();
190
+ }
132
191
  componentDidRender() {
133
192
  var _a, _b;
134
193
  if (this._container == undefined) {
@@ -145,8 +204,11 @@ export class EzScroller {
145
204
  this.updateScroller();
146
205
  }
147
206
  render() {
148
- return (h(Host, null, this.activeShadow
149
- ? h("div", { ref: ref => this._wrapper = ref, class: this.getWrapperClass() }, this.getContainerElement())
207
+ const buttons = this.navigationMode === EzScrollNavigationMode.BUTTONS ? this.renderNavigationButtons() : null;
208
+ return (h(Host, null, this.activeShadow || this.navigationMode === EzScrollNavigationMode.BUTTONS
209
+ ? h("div", { ref: ref => this._wrapper = ref, class: this.getWrapperClass() }, buttons === null || buttons === void 0 ? void 0 :
210
+ buttons.previousButton, this.getContainerElement(), buttons === null || buttons === void 0 ? void 0 :
211
+ buttons.nextButton)
150
212
  : this.getContainerElement()));
151
213
  }
152
214
  static get is() { return "ez-scroller"; }
@@ -220,11 +282,54 @@ export class EzScroller {
220
282
  "attribute": "active-shadow",
221
283
  "reflect": false,
222
284
  "defaultValue": "false"
285
+ },
286
+ "navigationMode": {
287
+ "type": "string",
288
+ "mutable": false,
289
+ "complexType": {
290
+ "original": "EzScrollNavigationMode",
291
+ "resolved": "EzScrollNavigationMode.BUTTONS | EzScrollNavigationMode.SCROLLBAR",
292
+ "references": {
293
+ "EzScrollNavigationMode": {
294
+ "location": "import",
295
+ "path": "./EzScrollNavigationMode"
296
+ }
297
+ }
298
+ },
299
+ "required": false,
300
+ "optional": false,
301
+ "docs": {
302
+ "tags": [],
303
+ "text": "Define o modo de navega\u00E7\u00E3o: 'scrollbar' (padr\u00E3o) ou 'buttons' (bot\u00F5es de carrossel)."
304
+ },
305
+ "attribute": "navigation-mode",
306
+ "reflect": false,
307
+ "defaultValue": "EzScrollNavigationMode.SCROLLBAR"
308
+ },
309
+ "scrollAmount": {
310
+ "type": "number",
311
+ "mutable": false,
312
+ "complexType": {
313
+ "original": "number",
314
+ "resolved": "number",
315
+ "references": {}
316
+ },
317
+ "required": false,
318
+ "optional": false,
319
+ "docs": {
320
+ "tags": [],
321
+ "text": "Define a quantidade de pixels que ser\u00E1 rolado ao clicar nos bot\u00F5es de navega\u00E7\u00E3o."
322
+ },
323
+ "attribute": "scroll-amount",
324
+ "reflect": false,
325
+ "defaultValue": "200"
223
326
  }
224
327
  };
225
328
  }
226
329
  static get states() {
227
330
  return {
331
+ "_startHidden": {},
332
+ "_endHidden": {},
228
333
  "isActive": {}
229
334
  };
230
335
  }
@@ -4,6 +4,9 @@
4
4
  --ez-search--height: 42px;
5
5
  /*@doc Define largura do input.*/
6
6
  --ez-search--width: 100%;
7
+ /*@doc Define largura mínima do input.*/
8
+ --ez-search--min-width: 0;
9
+
7
10
  /*@doc Define largura do slot do ícone do input.*/
8
11
  --ez-search__icon--width: 48px;
9
12
 
@@ -72,6 +75,7 @@
72
75
 
73
76
  /*public*/
74
77
  width: var(--ez-search--width);
78
+ min-width: var(--ez-search--min-width);
75
79
  }
76
80
 
77
81
  ez-icon {
@@ -52,6 +52,7 @@ export class EzSearchPlus {
52
52
  if (newNormalizedValue === undefined) {
53
53
  this.codeValue = undefined;
54
54
  this.descriptionValue = undefined;
55
+ this.cleanFieldsRef();
55
56
  this.ezChange.emit(undefined);
56
57
  return;
57
58
  }
@@ -86,7 +87,7 @@ export class EzSearchPlus {
86
87
  * Aplica o foco no campo.
87
88
  */
88
89
  async setFocus(options) {
89
- var _a;
90
+ var _a, _b;
90
91
  if (this.disableCodeInput) {
91
92
  (_a = this._textInputDescriptionValue) === null || _a === void 0 ? void 0 : _a.setFocus(options);
92
93
  return;
@@ -95,7 +96,7 @@ export class EzSearchPlus {
95
96
  this._latestFocusedInputElement.setFocus(options);
96
97
  return;
97
98
  }
98
- this._textInputCodeValue.setFocus(options);
99
+ (_b = this._textInputCodeValue) === null || _b === void 0 ? void 0 : _b.setFocus(options);
99
100
  }
100
101
  /**
101
102
  * Obtém o valor do componente só após a compo de apresentação
@@ -382,6 +383,14 @@ export class EzSearchPlus {
382
383
  handleDescriptionInputFocus() {
383
384
  this.setLatestFocusedInputElement(this._textInputDescriptionValue);
384
385
  }
386
+ cleanFieldsRef() {
387
+ if (this._textInputCodeValue) {
388
+ this._textInputCodeValue.value = null;
389
+ }
390
+ if (this._textInputDescriptionValue) {
391
+ this._textInputDescriptionValue.value = null;
392
+ }
393
+ }
385
394
  getRightIconElement() {
386
395
  var _a, _b;
387
396
  if (!this.ensureClearButtonVisible && (!this.value && !((_a = this._textInputCodeValue) === null || _a === void 0 ? void 0 : _a.value) && !((_b = this._textInputDescriptionValue) === null || _b === void 0 ? void 0 : _b.value))) {
@@ -198,7 +198,7 @@
198
198
 
199
199
  @media (max-height: 630px) {
200
200
  .sortable-content{
201
- height: 290px;
201
+ height: 270px;
202
202
  }
203
203
  }
204
204
 
@@ -343,7 +343,7 @@
343
343
  position: absolute;
344
344
  background-color: #f1f1f1;
345
345
  min-width: 160px;
346
- z-index: var(--ez-elevation--8);
346
+ z-index: var(--elevation--8);
347
347
  border-radius: var(--ez-split-button--border-radius);
348
348
  }
349
349
 
@@ -302,7 +302,7 @@ export class EzSplitButton {
302
302
  return (h(Host, { class: this.variant ? `ez-split-button--${this.variant}` : '' }, h("div", { class: `ez-split-button ${this.size} ${this.mode}` }, this.renderLeftButton(hasIconButton, hasLabelButton, iconSize), this.renderDivider(), this.renderDropdownSection(iconSize))));
303
303
  }
304
304
  renderLeftButton(hasIconButton, hasLabelButton, iconSize) {
305
- return (h("button", { class: `ez-split-button__left-button ${iconSize} ${this.mode} ${this.isLeftPressed ? 'pressed' : ''}`, title: this.leftTitle || this.label, type: "button", disabled: this.isButtonDisabled, "aria-disabled": this.isButtonAriaDisabled, onClick: () => this.handleButtonClick(), ref: el => (this.leftButton = el) }, hasIconButton && this.renderLeftIcon(iconSize), hasLabelButton && this.renderLabel(), !this.suppressAnimation && this.renderRipples(this.leftRipples)));
305
+ return (h("ez-tooltip", { message: this.leftTitle || this.label }, h("button", { class: `ez-split-button__left-button ${iconSize} ${this.mode} ${this.isLeftPressed ? 'pressed' : ''}`, type: "button", disabled: this.isButtonDisabled, "aria-disabled": this.isButtonAriaDisabled, onClick: () => this.handleButtonClick(), ref: el => (this.leftButton = el) }, hasIconButton && this.renderLeftIcon(iconSize), hasLabelButton && this.renderLabel(), !this.suppressAnimation && this.renderRipples(this.leftRipples))));
306
306
  }
307
307
  renderDivider() {
308
308
  return h("div", { class: `ez-split-button__divider ${this.mode} ez-split-button__divider--${this.size} ${this.isButtonDisabled ? 'disabled' : ''}`, "aria-disabled": this.isButtonAriaDisabled });
@@ -311,7 +311,7 @@ export class EzSplitButton {
311
311
  return (h("div", { class: "dropdown" }, this.renderRightButton(iconSize), this.renderDropdownContent()));
312
312
  }
313
313
  renderRightButton(iconSize) {
314
- return (h("button", { class: `ez-split-button__right-button ${iconSize} ez-split-button__right-button--${iconSize} ${this.isRightPressed ? 'pressed' : ''}`, title: this.rightTitle || this.i18n("ez-split-button.moreOptions"), type: "button", disabled: this.isButtonDisabled, "aria-disabled": this.isButtonAriaDisabled, onClick: () => this.toggleDropdown(), ref: el => (this.rightButton = el) }, this.renderRightIcon(iconSize), !this.suppressAnimation && this.renderRipples(this.rightRipples)));
314
+ return (h("ez-tooltip", { message: this.rightTitle || this.i18n("ez-split-button.moreOptions") }, h("button", { class: `ez-split-button__right-button ${iconSize} ez-split-button__right-button--${iconSize} ${this.isRightPressed ? 'pressed' : ''}`, type: "button", disabled: this.isButtonDisabled, "aria-disabled": this.isButtonAriaDisabled, onClick: () => this.toggleDropdown(), ref: el => (this.rightButton = el) }, this.renderRightIcon(iconSize), !this.suppressAnimation && this.renderRipples(this.rightRipples))));
315
315
  }
316
316
  renderDropdownContent() {
317
317
  return (h("div", { class: `dropdown-content dropdown-content--${this.size}`, ref: (ref) => (this.dropdownParent = ref) }, this.show && this.renderDropdown()));
@@ -41,6 +41,7 @@ export class EzTextInput {
41
41
  if (newValue != oldValue) {
42
42
  this._inputElem.value = this.value || "";
43
43
  this.handleChange();
44
+ this.applyMask(newValue);
44
45
  this.adjustFloatingLabel();
45
46
  this.checkIsOverflowing();
46
47
  if (!this.isSlaveMode()) {
@@ -185,12 +186,9 @@ export class EzTextInput {
185
186
  const value = this._inputElem.value;
186
187
  if (value && this._maskFormatter) {
187
188
  try {
188
- if (this.cleanValueMask) {
189
- this.applyMask(value);
190
- }
191
- else {
192
- this._inputElem.value = this._maskFormatter.format(value);
193
- }
189
+ const newMask = this.handleDefaultMask(value);
190
+ this._maskFormatter.mask = newMask;
191
+ this._inputElem.value = this._maskFormatter.format(this._maskFormatter.removeMask(value));
194
192
  }
195
193
  catch (e) {
196
194
  this.errorMessage = e.message;
@@ -216,20 +214,33 @@ export class EzTextInput {
216
214
  }
217
215
  }
218
216
  }
217
+ handleDefaultMask(value = this.value) {
218
+ if (this.mask === "cgc_cpf") {
219
+ if (value && value.length <= 11) {
220
+ this.mask = MaskFormatter.DEFAULT_MASKS["cpf"];
221
+ }
222
+ else {
223
+ this.mask = MaskFormatter.DEFAULT_MASKS["cnpj"];
224
+ }
225
+ }
226
+ return this.mask;
227
+ }
219
228
  applyMask(value) {
220
229
  if (!value || value === "")
221
230
  return value;
222
231
  if (this._maskFormatter) {
223
232
  try {
233
+ const newMask = this.handleDefaultMask(value);
234
+ this._maskFormatter.mask = newMask;
224
235
  const formattedValue = this._maskFormatter.applyMask(this._maskFormatter.removeMask(value));
225
236
  if (this._inputElem) {
226
237
  this._inputElem.value = formattedValue;
227
238
  return this._inputElem.value;
228
239
  }
229
- else {
240
+ if (!this.cleanValueMask) {
230
241
  this.value = formattedValue;
231
- return this.value;
232
242
  }
243
+ return this.value;
233
244
  }
234
245
  catch (e) {
235
246
  this.errorMessage = e.message;
@@ -296,7 +307,7 @@ export class EzTextInput {
296
307
  this.adjustColorContentSlot("var(--ez-text-input__input--focus--icon-color)");
297
308
  }
298
309
  getValue() {
299
- return this.mask && this.cleanValueMask ? this.applyMask(this.value) : this.value;
310
+ return this.mask ? this.applyMask(this.value) : this.value;
300
311
  }
301
312
  buildLabelClass() {
302
313
  let classList = this.enabled ? 'input__label' : 'input__label input__label--disabled';
@@ -327,12 +338,7 @@ export class EzTextInput {
327
338
  if (this.value) {
328
339
  if (this._maskFormatter) {
329
340
  try {
330
- if (this.cleanValueMask) {
331
- this.applyMask(this.value);
332
- }
333
- else {
334
- this.value = this._maskFormatter.format(this.value);
335
- }
341
+ this.applyMask(this.value);
336
342
  }
337
343
  catch (e) {
338
344
  this.errorMessage = e.message;
@@ -34,6 +34,7 @@ export default {
34
34
  defaultLabel: "Upload Image",
35
35
  imageAlt: "Uploaded image",
36
36
  removeImage: "Remove image",
37
+ editImage: "Edit image",
37
38
  invalidFileType: "The selected file is not a valid image.",
38
39
  fileTooLarge: "The image must be less than {{maxSize}}.",
39
40
  imagePreview: "Image Preview",
@@ -81,6 +82,9 @@ export default {
81
82
  "ez-date-input": {
82
83
  invalidDate: "The entered value is not a valid date"
83
84
  },
85
+ "ez-classic-date-input": {
86
+ invalidDate: "The entered value is not a valid date"
87
+ },
84
88
  "ez-dialog": {
85
89
  confirmButton: "Confirm or OK button",
86
90
  closeButton: "Close or X button"
@@ -98,16 +102,27 @@ export default {
98
102
  "ez-file-item": {
99
103
  invalidProgress: "The upload progress must be a number between 0 and 100."
100
104
  },
105
+ "ez-record-navigation": {
106
+ previousRecord: "Previous record",
107
+ nextRecord: "Next record",
108
+ },
109
+ "ez-grid-pagination": {
110
+ cancelPagination: "Cancel pagination",
111
+ firstPage: 'First page',
112
+ lastPage: 'Last page',
113
+ previousPage: "Previous page",
114
+ nextPage: "Next page",
115
+ remainingPageLabel: " from {{count}} or more",
116
+ remainingTotalLabel: " from {{total}}",
117
+ pageCounter: "Page {{currentPage}} from {{totalPages}}",
118
+ },
101
119
  "ez-grid": {
102
120
  filterAppliedSuccess: "Column filter applied successfully!",
103
- cancelPagination: "Cancel pagination",
104
121
  pageLabel: "Page {{currentPage}}",
105
122
  previousPage: "Previous page",
106
123
  nextPage: "Next page",
107
124
  returnToPreviousPage: "Return to the previous page.",
108
125
  goToNextPage: "Move to the next page.",
109
- remainingPageLabel: " from {{count}} or more",
110
- remainingTotalLabel: " from {{total}}",
111
126
  nextRecord: "Move to the next record.",
112
127
  previousRecord: "Return to the previous record.",
113
128
  searchColumn: "Search by column.",
@@ -127,7 +142,7 @@ export default {
127
142
  last: "Last",
128
143
  first: "First",
129
144
  previous: "Previous",
130
- loadingOoo: "Loading",
145
+ loadingOoo: "",
131
146
  selectAll: "Select all",
132
147
  searchOoo: "Search",
133
148
  blanks: "Blanks",
@@ -269,6 +284,7 @@ export default {
269
284
  emptyList: "No results found",
270
285
  optionLoaderNotDefined: "optionLoader not defined",
271
286
  defaultCodeLabel: "Code",
287
+ clearValue: "Clear value",
272
288
  },
273
289
  "ez-sortable-list": {
274
290
  emptyMessage: "No items in the list",
@@ -286,6 +302,9 @@ export default {
286
302
  "ez-time-input": {
287
303
  invalidTime: "Please enter a valid time.",
288
304
  },
305
+ "ez-classic-time-input": {
306
+ invalidTime: "Please enter a valid time.",
307
+ },
289
308
  "ez-sidebar": {
290
309
  unPinMenu: "Unpin menu",
291
310
  pushPinMenu: "Pin menu",
@@ -307,6 +326,10 @@ export default {
307
326
  },
308
327
  spinner: {
309
328
  loading: "Loading..."
329
+ },
330
+ "ez-scroller": {
331
+ previousButton: "Previous",
332
+ nextButton: "Next"
310
333
  }
311
334
  }
312
335
  };
@@ -34,6 +34,7 @@ export default {
34
34
  defaultLabel: "Subir Imagen",
35
35
  imageAlt: "Imagen cargada",
36
36
  removeImage: "Eliminar imagen",
37
+ editImage: "Editar imagen",
37
38
  invalidFileType: "El archivo seleccionado no es una imagen válida.",
38
39
  fileTooLarge: "La imagen debe tener menos de {{maxSize}}.",
39
40
  imagePreview: "Vista Previa de Imagen",
@@ -81,6 +82,9 @@ export default {
81
82
  "ez-date-input": {
82
83
  invalidDate: "El valor ingresado no es una fecha válida"
83
84
  },
85
+ "ez-classic-date-input": {
86
+ invalidDate: "El valor ingresado no es una fecha válida"
87
+ },
84
88
  "ez-dialog": {
85
89
  confirmButton: "Botón de confirmación o OK",
86
90
  closeButton: "Botón de cerrar o X"
@@ -98,16 +102,27 @@ export default {
98
102
  "ez-file-item": {
99
103
  invalidProgress: "El progreso de carga debe ser un número entre 0 y 100."
100
104
  },
105
+ "ez-record-navigation": {
106
+ previousRecord: "Registro anterior",
107
+ nextRecord: "Siguiente registro",
108
+ },
109
+ "ez-grid-pagination": {
110
+ cancelPagination: "Cancelar paginación",
111
+ firstPage: 'Primeira página',
112
+ lastPage: 'Última página',
113
+ previousPage: "Página anterior",
114
+ nextPage: "Página siguiente",
115
+ remainingPageLabel: " de {{count}} o más",
116
+ remainingTotalLabel: " de {{total}}",
117
+ pageCounter: "Página {{currentPage}} de {{totalPages}}",
118
+ },
101
119
  "ez-grid": {
102
120
  filterAppliedSuccess: "¡Filtro de columna aplicado con éxito!",
103
- cancelPagination: "Cancelar paginación",
104
121
  pageLabel: "Página {{currentPage}}",
105
122
  previousPage: "Página anterior",
106
123
  nextPage: "Página siguiente",
107
124
  returnToPreviousPage: "Volver a la página anterior.",
108
125
  goToNextPage: "Avanzar a la página siguiente.",
109
- remainingPageLabel: " de {{count}} o más",
110
- remainingTotalLabel: " de {{total}}",
111
126
  nextRecord: "Avanzar al siguiente registro.",
112
127
  previousRecord: "Volver al registro anterior.",
113
128
  searchColumn: "Buscar por columna.",
@@ -127,7 +142,7 @@ export default {
127
142
  last: "Último",
128
143
  first: "Primero",
129
144
  previous: "Anterior",
130
- loadingOoo: "Cargando",
145
+ loadingOoo: "",
131
146
  selectAll: "Seleccionar todo",
132
147
  searchOoo: "Buscar",
133
148
  blanks: "Vacío",
@@ -269,6 +284,7 @@ export default {
269
284
  emptyList: "No se encontraron resultados",
270
285
  optionLoaderNotDefined: "optionLoader no definido",
271
286
  defaultCodeLabel: "Cód.",
287
+ clearValue: "Limpiar valor",
272
288
  },
273
289
  "ez-sortable-list": {
274
290
  emptyMessage: "No hay elementos en la lista",
@@ -286,6 +302,9 @@ export default {
286
302
  "ez-time-input": {
287
303
  invalidTime: "Por favor, ingrese una hora válida.",
288
304
  },
305
+ "ez-classic-time-input": {
306
+ invalidTime: "Por favor, ingrese una hora válida.",
307
+ },
289
308
  "ez-sidebar": {
290
309
  unPinMenu: "Desanclar menú",
291
310
  pushPinMenu: "Anclar menú",
@@ -307,6 +326,10 @@ export default {
307
326
  },
308
327
  spinner: {
309
328
  loading: "Cargando...",
329
+ },
330
+ "ez-scroller": {
331
+ previousButton: "Anterior",
332
+ nextButton: "Siguiente"
310
333
  }
311
334
  }
312
335
  };
@@ -34,6 +34,7 @@ export default {
34
34
  defaultLabel: "Enviar Imagem",
35
35
  imageAlt: "Imagem carregada",
36
36
  removeImage: "Remover imagem",
37
+ editImage: "Editar imagem",
37
38
  invalidFileType: "O arquivo selecionado não é uma imagem válida.",
38
39
  fileTooLarge: "A imagem deve ter menos de {{maxSize}}.",
39
40
  imagePreview: "Visualizar Imagem",
@@ -81,6 +82,9 @@ export default {
81
82
  "ez-date-input": {
82
83
  invalidDate: "O valor digitado não é uma data válida"
83
84
  },
85
+ "ez-classic-date-input": {
86
+ invalidDate: "O valor digitado não é uma data válida"
87
+ },
84
88
  "ez-dialog": {
85
89
  confirmButton: "Botão de confirmação ou OK",
86
90
  closeButton: "Botão de fechar ou X"
@@ -98,16 +102,27 @@ export default {
98
102
  "ez-file-item": {
99
103
  invalidProgress: "O progresso de upload deve ser um número entre 0 e 100."
100
104
  },
105
+ "ez-record-navigation": {
106
+ previousRecord: "Registro anterior",
107
+ nextRecord: "Próximo registro",
108
+ },
109
+ "ez-grid-pagination": {
110
+ cancelPagination: "Cancelar paginação",
111
+ firstPage: 'Primeira página',
112
+ lastPage: 'Última página',
113
+ previousPage: "Página anterior",
114
+ nextPage: "Próxima página",
115
+ remainingPageLabel: " de {{count}} ou mais",
116
+ remainingTotalLabel: " de {{total}}",
117
+ pageCounter: "Página {{currentPage}} de {{totalPages}}",
118
+ },
101
119
  "ez-grid": {
102
120
  filterAppliedSuccess: "Filtro de coluna aplicado com sucesso!",
103
- cancelPagination: "Cancelar paginação",
104
121
  pageLabel: "Página {{currentPage}}",
105
122
  previousPage: "Página anterior",
106
123
  nextPage: "Próxima página",
107
124
  returnToPreviousPage: "Retorna à página anterior.",
108
125
  goToNextPage: "Avança para a próxima página.",
109
- remainingPageLabel: " de {{count}} ou mais",
110
- remainingTotalLabel: " de {{total}}",
111
126
  nextRecord: "Avança para o próximo registro.",
112
127
  previousRecord: "Retorna ao registro anterior.",
113
128
  searchColumn: "Busca por coluna.",
@@ -127,7 +142,7 @@ export default {
127
142
  last: "Último",
128
143
  first: "Primeiro",
129
144
  previous: "Anterior",
130
- loadingOoo: "Carregar",
145
+ loadingOoo: "",
131
146
  selectAll: "Selecionar tudo",
132
147
  searchOoo: "Procurar",
133
148
  blanks: "Vazio",
@@ -269,6 +284,7 @@ export default {
269
284
  emptyList: "Nenhum resultado encontrado",
270
285
  optionLoaderNotDefined: "optionLoader não definido",
271
286
  defaultCodeLabel: "Cód.",
287
+ clearValue: "Limpar valor",
272
288
  },
273
289
  "ez-sortable-list": {
274
290
  emptyMessage: "Nenhum item na lista",
@@ -286,6 +302,9 @@ export default {
286
302
  "ez-time-input": {
287
303
  invalidTime: "Favor inserir um horário válido.",
288
304
  },
305
+ "ez-classic-time-input": {
306
+ invalidTime: "Favor inserir um horário válido.",
307
+ },
289
308
  "ez-sidebar": {
290
309
  unPinMenu: "Desafixar menu",
291
310
  pushPinMenu: "Fixar menu",
@@ -307,6 +326,10 @@ export default {
307
326
  },
308
327
  spinner: {
309
328
  loading: "Carregando..."
329
+ },
330
+ "ez-scroller": {
331
+ previousButton: "Anterior",
332
+ nextButton: "Próximo"
310
333
  }
311
334
  }
312
335
  };
@@ -1,4 +1,12 @@
1
1
  import { UserInterface } from "@sankhyalabs/core";
2
+ const isSystemRequired = (descriptor) => {
3
+ var _a;
4
+ return (descriptor === null || descriptor === void 0 ? void 0 : descriptor.required) === true || ((_a = descriptor === null || descriptor === void 0 ? void 0 : descriptor.properties) === null || _a === void 0 ? void 0 : _a.systemRequired) === 'S';
5
+ };
6
+ const isSystemReadOnly = (descriptor) => {
7
+ var _a;
8
+ return (descriptor === null || descriptor === void 0 ? void 0 : descriptor.readOnly) === true || ((_a = descriptor === null || descriptor === void 0 ? void 0 : descriptor.properties) === null || _a === void 0 ? void 0 : _a.systemReadOnly) === 'S';
9
+ };
2
10
  export const buildFieldMetadata = (descriptor, config) => {
3
11
  var _a, _b;
4
12
  let { name, label, group } = Object.assign({}, config);
@@ -8,8 +16,12 @@ export const buildFieldMetadata = (descriptor, config) => {
8
16
  if (descriptor) {
9
17
  label = label || descriptor.label;
10
18
  name = name || descriptor.name;
11
- required = (_a = descriptor.required) !== null && _a !== void 0 ? _a : config === null || config === void 0 ? void 0 : config.required;
12
- readOnly = (_b = descriptor.readOnly) !== null && _b !== void 0 ? _b : config === null || config === void 0 ? void 0 : config.readOnly;
19
+ required = isSystemRequired(descriptor)
20
+ ? true
21
+ : ((_a = config === null || config === void 0 ? void 0 : config.required) !== null && _a !== void 0 ? _a : descriptor.required);
22
+ readOnly = isSystemReadOnly(descriptor)
23
+ ? true
24
+ : ((_b = config === null || config === void 0 ? void 0 : config.readOnly) !== null && _b !== void 0 ? _b : descriptor.readOnly);
13
25
  props = descriptor.properties;
14
26
  userInterface = descriptor.userInterface;
15
27
  }