@sankhyalabs/ezui 6.1.0-dev.2 → 6.1.0-dev.21

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 (430) hide show
  1. package/dist/cjs/{ApplicationUtils-c9d1205c.js → ApplicationUtils-39807831.js} +43 -15
  2. package/dist/cjs/RichToolbarHelper-ea12328f.js +33 -0
  3. package/dist/cjs/_commonjsHelpers-537d719a.js +20 -0
  4. package/dist/cjs/app-globals-86776e90.js +12 -0
  5. package/dist/cjs/{constants-569271bc.js → constants-72b7e05e.js} +0 -2
  6. package/dist/cjs/ez-actions-button.cjs.entry.js +3 -2
  7. package/dist/cjs/ez-alert-list.cjs.entry.js +6 -4
  8. package/dist/cjs/ez-alert.cjs.entry.js +1 -1
  9. package/dist/cjs/ez-application.cjs.entry.js +1 -1
  10. package/dist/cjs/ez-avatar.cjs.entry.js +7 -2
  11. package/dist/cjs/ez-badge.cjs.entry.js +1 -1
  12. package/dist/cjs/ez-breadcrumb.cjs.entry.js +1 -1
  13. package/dist/cjs/ez-button.cjs.entry.js +1 -1
  14. package/dist/cjs/ez-calendar.cjs.entry.js +8 -7
  15. package/dist/cjs/ez-card-item_2.cjs.entry.js +2 -2
  16. package/dist/cjs/ez-chart.cjs.entry.js +4 -19
  17. package/dist/cjs/ez-check.cjs.entry.js +2 -2
  18. package/dist/cjs/ez-chip.cjs.entry.js +3 -2
  19. package/dist/cjs/ez-collapsible-box.cjs.entry.js +15 -12
  20. package/dist/cjs/{ez-combo-box-list_3.cjs.entry.js → ez-combo-box-list_4.cjs.entry.js} +292 -6
  21. package/dist/cjs/ez-combo-box.cjs.entry.js +33 -15
  22. package/dist/cjs/ez-date-input.cjs.entry.js +6 -2
  23. package/dist/cjs/ez-date-time-input.cjs.entry.js +6 -2
  24. package/dist/cjs/ez-dialog.cjs.entry.js +9 -7
  25. package/dist/cjs/ez-double-list.cjs.entry.js +13 -5
  26. package/dist/cjs/ez-dropdown.cjs.entry.js +1 -1
  27. package/dist/cjs/ez-empty-card.cjs.entry.js +34 -0
  28. package/dist/cjs/ez-file-item.cjs.entry.js +10 -7
  29. package/dist/cjs/ez-filter-input.cjs.entry.js +129 -0
  30. package/dist/cjs/ez-form-view.cjs.entry.js +13 -5
  31. package/dist/cjs/ez-form.cjs.entry.js +5 -4
  32. package/dist/cjs/ez-grid.cjs.entry.js +172 -133
  33. package/dist/cjs/ez-guide-navigator.cjs.entry.js +6 -2
  34. package/dist/cjs/ez-icon.cjs.entry.js +2 -2
  35. package/dist/cjs/ez-link-builder_6.cjs.entry.js +315 -0
  36. package/dist/cjs/ez-list.cjs.entry.js +5 -3
  37. package/dist/cjs/ez-loading-bar.cjs.entry.js +1 -1
  38. package/dist/cjs/ez-modal-container.cjs.entry.js +7 -3
  39. package/dist/cjs/ez-modal.cjs.entry.js +6 -2
  40. package/dist/cjs/ez-multi-selection-list.cjs.entry.js +10 -6
  41. package/dist/cjs/ez-number-input.cjs.entry.js +6 -2
  42. package/dist/cjs/ez-popover-plus_3.cjs.entry.js +1 -1
  43. package/dist/cjs/ez-popover.cjs.entry.js +1 -1
  44. package/dist/cjs/ez-popup.cjs.entry.js +1 -1
  45. package/dist/cjs/ez-radio-button.cjs.entry.js +1 -1
  46. package/dist/cjs/ez-rich-toolbar-item.cjs.entry.js +27 -0
  47. package/dist/cjs/ez-scroller_2.cjs.entry.js +1 -1
  48. package/dist/cjs/ez-search-plus.cjs.entry.js +19 -10
  49. package/dist/cjs/ez-search-result-list.cjs.entry.js +25 -8
  50. package/dist/cjs/ez-search.cjs.entry.js +9 -10
  51. package/dist/cjs/ez-sidebar-navigator.cjs.entry.js +6 -8
  52. package/dist/cjs/ez-skeleton.cjs.entry.js +6 -4
  53. package/dist/cjs/ez-sortable-list.cjs.entry.js +13 -6
  54. package/dist/cjs/ez-split-button.cjs.entry.js +6 -5
  55. package/dist/cjs/ez-split-item.cjs.entry.js +7 -3
  56. package/dist/cjs/ez-split-panel.cjs.entry.js +1 -1
  57. package/dist/cjs/ez-tabselector.cjs.entry.js +1 -1
  58. package/dist/cjs/ez-text-area.cjs.entry.js +35 -28
  59. package/dist/cjs/ez-text-input.cjs.entry.js +3 -2
  60. package/dist/cjs/ez-tile.cjs.entry.js +62 -0
  61. package/dist/cjs/ez-time-input.cjs.entry.js +13 -11
  62. package/dist/cjs/ez-toast.cjs.entry.js +1 -1
  63. package/dist/cjs/{ez-filter-input_2.cjs.entry.js → ez-tooltip.cjs.entry.js} +2 -124
  64. package/dist/cjs/ez-tree.cjs.entry.js +6 -2
  65. package/dist/cjs/ez-upload.cjs.entry.js +18 -12
  66. package/dist/cjs/ez-view-stack.cjs.entry.js +1 -1
  67. package/dist/cjs/ezui.cjs.js +6 -2
  68. package/dist/cjs/filter-column.cjs.entry.js +9 -5
  69. package/dist/cjs/index-02854309.js +3672 -0
  70. package/dist/cjs/{index-9e5554cb.js → index-a7b0c73d.js} +32 -15
  71. package/dist/cjs/loader.cjs.js +6 -2
  72. package/dist/cjs/purify-a7dc3a08.js +1354 -0
  73. package/dist/cjs/{search-column-1d3c9fa5.js → search-column-82c52e20.js} +11 -5
  74. package/dist/collection/collection-manifest.json +27 -1
  75. package/dist/collection/components/ez-alert-list/ez-alert-list.js +5 -3
  76. package/dist/collection/components/ez-avatar/ez-avatar.js +5 -1
  77. package/dist/collection/components/ez-calendar/ez-calendar.js +7 -6
  78. package/dist/collection/components/ez-check/ez-check.css +1 -1
  79. package/dist/collection/components/ez-chip/ez-chip.js +20 -1
  80. package/dist/collection/components/ez-collapsible-box/ez-collapsible-box.css +1 -0
  81. package/dist/collection/components/ez-collapsible-box/ez-collapsible-box.js +12 -9
  82. package/dist/collection/components/ez-combo-box/ez-combo-box-list/ez-combo-box-list.js +7 -4
  83. package/dist/collection/components/ez-combo-box/ez-combo-box.js +50 -15
  84. package/dist/collection/components/ez-date-input/ez-date-input.js +5 -1
  85. package/dist/collection/components/ez-date-time-input/ez-date-time-input.js +5 -1
  86. package/dist/collection/components/ez-dialog/ez-dialog.js +8 -6
  87. package/dist/collection/components/ez-double-list/ez-double-list.js +12 -4
  88. package/dist/collection/components/ez-empty-card/ez-empty-card.css +55 -0
  89. package/dist/collection/components/ez-empty-card/ez-empty-card.js +91 -0
  90. package/dist/collection/components/ez-file-item/ez-file-item.js +9 -6
  91. package/dist/collection/components/ez-form/ez-form.js +1 -1
  92. package/dist/collection/components/ez-form-view/ez-form-view.js +4 -3
  93. package/dist/collection/components/ez-form-view/fieldbuilder/FieldBuilder.js +5 -2
  94. package/dist/collection/components/ez-form-view/fieldbuilder/templates/RichText.tpl.js +4 -0
  95. package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +38 -11
  96. package/dist/collection/components/ez-grid/controller/ag-grid/DataSource.js +14 -4
  97. package/dist/collection/components/ez-grid/controller/ag-grid/GridEditionManager.js +4 -1
  98. package/dist/collection/components/ez-grid/controller/ag-grid/test/constants/GridEditionMock.js +3 -1
  99. package/dist/collection/components/ez-grid/controller/ag-grid/utils/buildLocaleText.js +67 -0
  100. package/dist/collection/components/ez-grid/ez-grid.js +15 -13
  101. package/dist/collection/components/ez-grid/subcomponents/filter-column.js +7 -3
  102. package/dist/collection/components/ez-grid/subcomponents/selection-counter.js +2 -2
  103. package/dist/collection/components/ez-grid/subcomponents/utils/selectionCounterUtils.js +11 -7
  104. package/dist/collection/components/ez-guide-navigator/ez-guide-navigator.js +5 -1
  105. package/dist/collection/components/ez-icon/ez-icon.css +147 -140
  106. package/dist/collection/components/ez-list/ez-list.js +4 -2
  107. package/dist/collection/components/ez-modal/ez-modal.js +5 -1
  108. package/dist/collection/components/ez-modal-container/ez-modal-container.css +2 -0
  109. package/dist/collection/components/ez-modal-container/ez-modal-container.js +5 -1
  110. package/dist/collection/components/ez-multi-selection-list/ez-multi-selection-list.js +9 -5
  111. package/dist/collection/components/ez-number-input/ez-number-input.js +5 -1
  112. package/dist/collection/components/ez-popover-plus/subcomponent/ez-popover-core.css +3 -2
  113. package/dist/collection/components/ez-rich-text/ez-link-builder/ez-link-builder.css +22 -0
  114. package/dist/collection/components/ez-rich-text/ez-link-builder/ez-link-builder.js +135 -0
  115. package/dist/collection/components/ez-rich-text/ez-rich-text.css +30 -0
  116. package/dist/collection/components/ez-rich-text/ez-rich-text.js +575 -0
  117. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/RichToolbarHelper.js +27 -0
  118. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-arrows/ez-rich-toolbar-arrows.css +4 -0
  119. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-arrows/ez-rich-toolbar-arrows.js +23 -0
  120. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-configs/ez-rich-toolbar-configs.css +4 -0
  121. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-configs/ez-rich-toolbar-configs.js +23 -0
  122. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-item/ez-rich-toolbar-item.css +20 -0
  123. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-item/ez-rich-toolbar-item.js +122 -0
  124. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-letters/ez-rich-toolbar-letters.css +4 -0
  125. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-letters/ez-rich-toolbar-letters.js +23 -0
  126. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar.css +42 -0
  127. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar.js +187 -0
  128. package/dist/collection/components/ez-rich-text/ez-simple-image-uploader/ez-simple-image-uploader.css +70 -0
  129. package/dist/collection/components/ez-rich-text/ez-simple-image-uploader/ez-simple-image-uploader.js +220 -0
  130. package/dist/collection/components/ez-rich-text/ez-simple-image-uploader/test/resource/imageBase64.js +1 -0
  131. package/dist/collection/components/ez-rich-text/ez-simple-image-uploader/utils/fileToBase64.js +14 -0
  132. package/dist/collection/components/ez-rich-text/ez-simple-image-uploader/utils/formatBytes.js +10 -0
  133. package/dist/collection/components/ez-search/ez-search.js +7 -8
  134. package/dist/collection/components/ez-search-plus/ez-search-plus.css +2 -0
  135. package/dist/collection/components/ez-search-plus/ez-search-plus.js +16 -7
  136. package/dist/collection/components/ez-search-plus/subcomponent/ez-search-result-list/ez-search-result-list.js +27 -7
  137. package/dist/collection/components/ez-sidebar-navigator/ez-sidebar-navigator.js +5 -2
  138. package/dist/collection/components/ez-skeleton/ez-skeleton.constants.js +0 -1
  139. package/dist/collection/components/ez-skeleton/ez-skeleton.js +4 -2
  140. package/dist/collection/components/ez-sortable-list/ez-sortable-list.js +15 -11
  141. package/dist/collection/components/ez-split-button/ez-split-button.js +6 -6
  142. package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.js +5 -1
  143. package/dist/collection/components/ez-text-area/ez-text-area.css +244 -212
  144. package/dist/collection/components/ez-text-area/ez-text-area.js +35 -28
  145. package/dist/collection/components/ez-text-edit/ez-text-edit.js +5 -1
  146. package/dist/collection/components/ez-text-input/ez-text-input.js +2 -1
  147. package/dist/collection/components/ez-tile/ez-tile.css +151 -0
  148. package/dist/collection/components/ez-tile/ez-tile.js +269 -0
  149. package/dist/collection/components/ez-time-input/ez-time-input.js +12 -10
  150. package/dist/collection/components/ez-tooltip/ez-tooltip.js +1 -1
  151. package/dist/collection/components/ez-tree/ez-tree.js +5 -1
  152. package/dist/collection/components/ez-upload/ez-upload.js +18 -12
  153. package/dist/collection/global/app-init.js +6 -0
  154. package/dist/collection/setupTests.js +1 -1
  155. package/dist/collection/utils/ApplicationUtils.js +43 -15
  156. package/dist/collection/utils/constants.js +0 -1
  157. package/dist/collection/utils/i18n/elanguages.js +6 -0
  158. package/dist/collection/utils/i18n/i18nUtils.js +20 -0
  159. package/dist/collection/utils/i18n/index.js +30 -0
  160. package/dist/collection/utils/i18n/locales/en-us.js +275 -0
  161. package/dist/collection/utils/i18n/locales/es-es.js +275 -0
  162. package/dist/collection/utils/i18n/locales/pt-br.js +275 -0
  163. package/dist/collection/utils/i18n/translations.js +9 -0
  164. package/dist/collection/utils/validators/recordvalidator/RecordValidationProcessor.js +8 -2
  165. package/dist/custom-elements/index.d.ts +60 -0
  166. package/dist/custom-elements/index.js +6252 -308
  167. package/dist/esm/{ApplicationUtils-eaf91331.js → ApplicationUtils-72f474e8.js} +43 -15
  168. package/dist/esm/RichToolbarHelper-f3a149c4.js +29 -0
  169. package/dist/esm/_commonjsHelpers-9943807e.js +17 -0
  170. package/dist/esm/app-globals-2ccb253f.js +10 -0
  171. package/dist/esm/{constants-b036528f.js → constants-3fabe81e.js} +1 -2
  172. package/dist/esm/ez-actions-button.entry.js +3 -2
  173. package/dist/esm/ez-alert-list.entry.js +6 -4
  174. package/dist/esm/ez-alert.entry.js +1 -1
  175. package/dist/esm/ez-application.entry.js +1 -1
  176. package/dist/esm/ez-avatar.entry.js +7 -2
  177. package/dist/esm/ez-badge.entry.js +1 -1
  178. package/dist/esm/ez-breadcrumb.entry.js +1 -1
  179. package/dist/esm/ez-button.entry.js +1 -1
  180. package/dist/esm/ez-calendar.entry.js +8 -7
  181. package/dist/esm/ez-card-item_2.entry.js +2 -2
  182. package/dist/esm/ez-chart.entry.js +2 -17
  183. package/dist/esm/ez-check.entry.js +2 -2
  184. package/dist/esm/ez-chip.entry.js +3 -2
  185. package/dist/esm/ez-collapsible-box.entry.js +15 -12
  186. package/dist/esm/{ez-combo-box-list_3.entry.js → ez-combo-box-list_4.entry.js} +293 -8
  187. package/dist/esm/ez-combo-box.entry.js +33 -15
  188. package/dist/esm/ez-date-input.entry.js +6 -2
  189. package/dist/esm/ez-date-time-input.entry.js +6 -2
  190. package/dist/esm/ez-dialog.entry.js +9 -7
  191. package/dist/esm/ez-double-list.entry.js +13 -5
  192. package/dist/esm/ez-dropdown.entry.js +1 -1
  193. package/dist/esm/ez-empty-card.entry.js +30 -0
  194. package/dist/esm/ez-file-item.entry.js +10 -7
  195. package/dist/esm/ez-filter-input.entry.js +125 -0
  196. package/dist/esm/ez-form-view.entry.js +13 -5
  197. package/dist/esm/ez-form.entry.js +5 -4
  198. package/dist/esm/ez-grid.entry.js +155 -116
  199. package/dist/esm/ez-guide-navigator.entry.js +6 -2
  200. package/dist/esm/ez-icon.entry.js +2 -2
  201. package/dist/esm/ez-link-builder_6.entry.js +306 -0
  202. package/dist/esm/ez-list.entry.js +5 -3
  203. package/dist/esm/ez-loading-bar.entry.js +1 -1
  204. package/dist/esm/ez-modal-container.entry.js +7 -3
  205. package/dist/esm/ez-modal.entry.js +6 -2
  206. package/dist/esm/ez-multi-selection-list.entry.js +10 -6
  207. package/dist/esm/ez-number-input.entry.js +6 -2
  208. package/dist/esm/ez-popover-plus_3.entry.js +1 -1
  209. package/dist/esm/ez-popover.entry.js +1 -1
  210. package/dist/esm/ez-popup.entry.js +1 -1
  211. package/dist/esm/ez-radio-button.entry.js +1 -1
  212. package/dist/esm/ez-rich-toolbar-item.entry.js +23 -0
  213. package/dist/esm/ez-scroller_2.entry.js +1 -1
  214. package/dist/esm/ez-search-plus.entry.js +19 -10
  215. package/dist/esm/ez-search-result-list.entry.js +25 -8
  216. package/dist/esm/ez-search.entry.js +9 -10
  217. package/dist/esm/ez-sidebar-navigator.entry.js +6 -8
  218. package/dist/esm/ez-skeleton.entry.js +6 -4
  219. package/dist/esm/ez-sortable-list.entry.js +13 -6
  220. package/dist/esm/ez-split-button.entry.js +6 -5
  221. package/dist/esm/ez-split-item.entry.js +7 -3
  222. package/dist/esm/ez-split-panel.entry.js +1 -1
  223. package/dist/esm/ez-tabselector.entry.js +1 -1
  224. package/dist/esm/ez-text-area.entry.js +35 -28
  225. package/dist/esm/ez-text-input.entry.js +3 -2
  226. package/dist/esm/ez-tile.entry.js +58 -0
  227. package/dist/esm/ez-time-input.entry.js +13 -11
  228. package/dist/esm/ez-toast.entry.js +1 -1
  229. package/dist/esm/{ez-filter-input_2.entry.js → ez-tooltip.entry.js} +3 -124
  230. package/dist/esm/ez-tree.entry.js +6 -2
  231. package/dist/esm/ez-upload.entry.js +18 -12
  232. package/dist/esm/ez-view-stack.entry.js +1 -1
  233. package/dist/esm/ezui.js +7 -3
  234. package/dist/esm/filter-column.entry.js +9 -5
  235. package/dist/esm/index-b623906e.js +3669 -0
  236. package/dist/esm/{index-5a720e56.js → index-baa5e267.js} +33 -15
  237. package/dist/esm/loader.js +7 -3
  238. package/dist/esm/purify-da6317bb.js +1352 -0
  239. package/dist/esm/{search-column-35f4ad93.js → search-column-5a55f676.js} +10 -4
  240. package/dist/ezui/ezui.esm.js +1 -1
  241. package/dist/ezui/p-0603bcc7.entry.js +1 -0
  242. package/dist/ezui/p-0ec7aa3a.entry.js +1 -0
  243. package/dist/ezui/p-0f0f3efe.entry.js +1 -0
  244. package/dist/ezui/p-112455b1.js +1 -0
  245. package/dist/ezui/{p-87f5a060.entry.js → p-1bcfd88c.entry.js} +1 -1
  246. package/dist/ezui/p-1c3efd36.entry.js +1 -0
  247. package/dist/ezui/p-1c55dda0.js +3 -0
  248. package/dist/ezui/{p-81461d2f.entry.js → p-1e7a8633.entry.js} +1 -1
  249. package/dist/ezui/{p-6b51c9cc.entry.js → p-1f50fa05.entry.js} +1 -1
  250. package/dist/ezui/p-1ffb75d5.js +1 -0
  251. package/dist/ezui/p-20c024f7.entry.js +1 -0
  252. package/dist/ezui/p-22934e19.entry.js +1 -0
  253. package/dist/ezui/{p-e4c7eb39.js → p-23a36bb6.js} +2 -2
  254. package/dist/ezui/{p-06f1b8e4.entry.js → p-288631d1.entry.js} +1 -1
  255. package/dist/ezui/p-2f471aca.entry.js +1 -0
  256. package/dist/ezui/p-303b3b8c.entry.js +1 -0
  257. package/dist/ezui/p-3b89a9a0.entry.js +1 -0
  258. package/dist/ezui/p-3e71ca08.entry.js +1 -0
  259. package/dist/ezui/p-3e767a74.js +1 -0
  260. package/dist/ezui/p-3e88fbb6.entry.js +1 -0
  261. package/dist/ezui/p-4044a7d7.entry.js +1 -0
  262. package/dist/ezui/{p-0378416a.entry.js → p-44caad9a.entry.js} +1 -1
  263. package/dist/ezui/p-45c9b292.entry.js +1 -0
  264. package/dist/ezui/p-45e64547.entry.js +1 -0
  265. package/dist/ezui/p-46913da7.js +1 -0
  266. package/dist/ezui/p-4773ff4c.js +1 -0
  267. package/dist/ezui/{p-769632d5.entry.js → p-4b67138e.entry.js} +1 -1
  268. package/dist/ezui/{p-4a876b8b.entry.js → p-4d30b703.entry.js} +1 -1
  269. package/dist/ezui/p-4fc5f926.entry.js +1 -0
  270. package/dist/ezui/p-53bc30a1.entry.js +1 -0
  271. package/dist/ezui/{p-6fc26622.entry.js → p-5ed81457.entry.js} +1 -1
  272. package/dist/ezui/p-627ff5a2.entry.js +1 -0
  273. package/dist/ezui/p-629e32e2.entry.js +1 -0
  274. package/dist/ezui/p-6369a0cd.entry.js +1 -0
  275. package/dist/ezui/{p-80764ff6.entry.js → p-6562b5c8.entry.js} +46 -46
  276. package/dist/ezui/p-6d596a5a.entry.js +1 -0
  277. package/dist/ezui/p-6e6fccfb.entry.js +1 -0
  278. package/dist/ezui/p-713dc93e.entry.js +1 -0
  279. package/dist/ezui/p-79044c3e.entry.js +1 -0
  280. package/dist/ezui/{p-5b85d3de.entry.js → p-7f792043.entry.js} +1 -1
  281. package/dist/ezui/p-80461324.entry.js +1 -0
  282. package/dist/ezui/p-84a136bf.entry.js +1 -0
  283. package/dist/ezui/{p-b3b3c99a.entry.js → p-8afb6e8a.entry.js} +1 -1
  284. package/dist/ezui/{p-82fa4b09.entry.js → p-8df1ca33.entry.js} +1 -1
  285. package/dist/ezui/p-91c9d50e.entry.js +1 -0
  286. package/dist/ezui/p-973e6a40.entry.js +1 -0
  287. package/dist/ezui/{p-18e71523.entry.js → p-9c5cd3b2.entry.js} +1 -1
  288. package/dist/ezui/{p-c2b20f78.entry.js → p-9f5fa3f9.entry.js} +1 -1
  289. package/dist/ezui/p-a12f6074.entry.js +1 -0
  290. package/dist/ezui/p-a482aae1.entry.js +1 -0
  291. package/dist/ezui/p-a687f14c.entry.js +7 -0
  292. package/dist/ezui/{p-dfca5946.entry.js → p-a80b1287.entry.js} +1 -1
  293. package/dist/ezui/p-adbc3261.entry.js +1 -0
  294. package/dist/ezui/p-b115058e.entry.js +1 -0
  295. package/dist/ezui/p-b1e45320.js +1 -0
  296. package/dist/ezui/p-b4215a04.entry.js +1 -0
  297. package/dist/ezui/p-b8ed876d.entry.js +1 -0
  298. package/dist/ezui/p-ba07b3df.js +1 -0
  299. package/dist/ezui/p-bc2f844e.entry.js +1 -0
  300. package/dist/ezui/p-beb42de1.entry.js +1 -0
  301. package/dist/ezui/p-c00ad772.entry.js +1 -0
  302. package/dist/ezui/{p-92748142.entry.js → p-c0d9c4f8.entry.js} +1 -1
  303. package/dist/ezui/p-c2a8139d.entry.js +1 -0
  304. package/dist/ezui/p-caf2584a.entry.js +1 -0
  305. package/dist/ezui/p-d1d0868b.entry.js +1 -0
  306. package/dist/ezui/p-d2645bdf.entry.js +1 -0
  307. package/dist/ezui/p-e5260556.entry.js +1 -0
  308. package/dist/ezui/{p-000159dc.entry.js → p-e75c7a23.entry.js} +1 -1
  309. package/dist/ezui/p-e7a7c594.entry.js +1 -0
  310. package/dist/ezui/p-ed3bed1e.entry.js +1 -0
  311. package/dist/ezui/{p-44b39e81.entry.js → p-fa6732f2.entry.js} +1 -1
  312. package/dist/types/components/ez-alert-list/ez-alert-list.d.ts +2 -1
  313. package/dist/types/components/ez-avatar/ez-avatar.d.ts +2 -0
  314. package/dist/types/components/ez-calendar/ez-calendar.d.ts +2 -3
  315. package/dist/types/components/ez-chip/ez-chip.d.ts +4 -0
  316. package/dist/types/components/ez-collapsible-box/ez-collapsible-box.d.ts +2 -0
  317. package/dist/types/components/ez-combo-box/ez-combo-box-list/ez-combo-box-list.d.ts +2 -0
  318. package/dist/types/components/ez-combo-box/ez-combo-box.d.ts +9 -2
  319. package/dist/types/components/ez-date-input/ez-date-input.d.ts +2 -0
  320. package/dist/types/components/ez-date-time-input/ez-date-time-input.d.ts +2 -0
  321. package/dist/types/components/ez-dialog/ez-dialog.d.ts +2 -2
  322. package/dist/types/components/ez-double-list/ez-double-list.d.ts +2 -0
  323. package/dist/types/components/ez-empty-card/ez-empty-card.d.ts +18 -0
  324. package/dist/types/components/ez-file-item/ez-file-item.d.ts +2 -0
  325. package/dist/types/components/ez-form-view/fieldbuilder/templates/RichText.tpl.d.ts +2 -0
  326. package/dist/types/components/ez-grid/controller/EzGridController.d.ts +5 -0
  327. package/dist/types/components/ez-grid/controller/ag-grid/AgGridController.d.ts +2 -0
  328. package/dist/types/components/ez-grid/controller/ag-grid/DataSource.d.ts +1 -0
  329. package/dist/types/components/ez-grid/controller/ag-grid/GridEditionManager.d.ts +1 -0
  330. package/dist/types/components/ez-grid/controller/ag-grid/test/constants/GridEditionMock.d.ts +1 -1
  331. package/dist/types/components/ez-grid/controller/ag-grid/utils/buildLocaleText.d.ts +66 -0
  332. package/dist/types/components/ez-grid/ez-grid.d.ts +2 -2
  333. package/dist/types/components/ez-grid/subcomponents/filter-column.d.ts +2 -0
  334. package/dist/types/components/ez-grid/subcomponents/selection-counter.d.ts +2 -0
  335. package/dist/types/components/ez-grid/subcomponents/utils/selectionCounterUtils.d.ts +2 -2
  336. package/dist/types/components/ez-guide-navigator/ez-guide-navigator.d.ts +2 -0
  337. package/dist/types/components/ez-list/ez-list.d.ts +2 -1
  338. package/dist/types/components/ez-modal/ez-modal.d.ts +2 -0
  339. package/dist/types/components/ez-modal-container/ez-modal-container.d.ts +2 -0
  340. package/dist/types/components/ez-multi-selection-list/ez-multi-selection-list.d.ts +2 -0
  341. package/dist/types/components/ez-number-input/ez-number-input.d.ts +2 -0
  342. package/dist/types/components/ez-rich-text/ez-link-builder/ez-link-builder.d.ts +19 -0
  343. package/dist/types/components/ez-rich-text/ez-rich-text.d.ts +105 -0
  344. package/dist/types/components/ez-rich-text/ez-rich-toolbar/RichToolbarHelper.d.ts +31 -0
  345. package/dist/types/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-arrows/ez-rich-toolbar-arrows.d.ts +5 -0
  346. package/dist/types/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-configs/ez-rich-toolbar-configs.d.ts +5 -0
  347. package/dist/types/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-item/ez-rich-toolbar-item.d.ts +11 -0
  348. package/dist/types/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-letters/ez-rich-toolbar-letters.d.ts +5 -0
  349. package/dist/types/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar.d.ts +35 -0
  350. package/dist/types/components/ez-rich-text/ez-simple-image-uploader/ez-simple-image-uploader.d.ts +39 -0
  351. package/dist/types/components/ez-rich-text/ez-simple-image-uploader/test/resource/imageBase64.d.ts +1 -0
  352. package/dist/types/components/ez-rich-text/ez-simple-image-uploader/utils/fileToBase64.d.ts +1 -0
  353. package/dist/types/components/ez-rich-text/ez-simple-image-uploader/utils/formatBytes.d.ts +1 -0
  354. package/dist/types/components/ez-search/ez-search.d.ts +2 -3
  355. package/dist/types/components/ez-search-plus/ez-search-plus.d.ts +4 -1
  356. package/dist/types/components/ez-search-plus/subcomponent/ez-search-result-list/ez-search-result-list.d.ts +4 -1
  357. package/dist/types/components/ez-sidebar-navigator/ez-sidebar-navigator.d.ts +2 -0
  358. package/dist/types/components/ez-skeleton/ez-skeleton.constants.d.ts +0 -1
  359. package/dist/types/components/ez-skeleton/ez-skeleton.d.ts +2 -1
  360. package/dist/types/components/ez-sortable-list/ez-sortable-list.d.ts +2 -0
  361. package/dist/types/components/ez-split-button/ez-split-button.d.ts +2 -2
  362. package/dist/types/components/ez-split-panel/structure/item/ez-split-item.d.ts +2 -0
  363. package/dist/types/components/ez-text-area/ez-text-area.d.ts +6 -3
  364. package/dist/types/components/ez-text-edit/ez-text-edit.d.ts +2 -0
  365. package/dist/types/components/ez-tile/ez-tile.d.ts +58 -0
  366. package/dist/types/components/ez-time-input/ez-time-input.d.ts +2 -1
  367. package/dist/types/components/ez-tree/ez-tree.d.ts +2 -0
  368. package/dist/types/components/ez-upload/ez-upload.d.ts +3 -1
  369. package/dist/types/components.d.ts +447 -2
  370. package/dist/types/global/app-init.d.ts +1 -0
  371. package/dist/types/utils/ApplicationUtils.d.ts +3 -1
  372. package/dist/types/utils/constants.d.ts +0 -1
  373. package/dist/types/utils/i18n/elanguages.d.ts +5 -0
  374. package/dist/types/utils/i18n/i18nUtils.d.ts +2 -0
  375. package/dist/types/utils/i18n/index.d.ts +5 -0
  376. package/dist/types/utils/i18n/locales/en-us.d.ts +276 -0
  377. package/dist/types/utils/i18n/locales/es-es.d.ts +276 -0
  378. package/dist/types/utils/i18n/locales/pt-br.d.ts +276 -0
  379. package/dist/types/utils/i18n/translations.d.ts +828 -0
  380. package/dist/types/utils/validators/recordvalidator/RecordValidationProcessor.d.ts +1 -0
  381. package/package.json +8 -1
  382. package/react/components.d.ts +10 -0
  383. package/react/components.js +10 -0
  384. package/react/components.js.map +1 -1
  385. package/dist/collection/components/ez-grid/controller/ag-grid/i18n/pt-BR.js +0 -75
  386. package/dist/collection/components/ez-sidebar-navigator/messages/constants.js +0 -5
  387. package/dist/ezui/p-01b72d7e.entry.js +0 -1
  388. package/dist/ezui/p-07594da0.entry.js +0 -1
  389. package/dist/ezui/p-11bfeca3.entry.js +0 -1
  390. package/dist/ezui/p-175154a0.js +0 -1
  391. package/dist/ezui/p-1fefb37a.entry.js +0 -1
  392. package/dist/ezui/p-2187f86c.js +0 -1
  393. package/dist/ezui/p-220b9944.entry.js +0 -1
  394. package/dist/ezui/p-28987410.entry.js +0 -1
  395. package/dist/ezui/p-2d10bb18.entry.js +0 -1
  396. package/dist/ezui/p-2f351332.entry.js +0 -1
  397. package/dist/ezui/p-4e66eaeb.entry.js +0 -1
  398. package/dist/ezui/p-545bd5d5.entry.js +0 -7
  399. package/dist/ezui/p-5eea9886.js +0 -1
  400. package/dist/ezui/p-61f5c258.entry.js +0 -1
  401. package/dist/ezui/p-6b2cc9b8.entry.js +0 -1
  402. package/dist/ezui/p-6b3fddee.entry.js +0 -1
  403. package/dist/ezui/p-6ec40dec.entry.js +0 -1
  404. package/dist/ezui/p-700c1320.entry.js +0 -1
  405. package/dist/ezui/p-708b196e.entry.js +0 -1
  406. package/dist/ezui/p-7567ccdd.entry.js +0 -1
  407. package/dist/ezui/p-791f4e43.entry.js +0 -1
  408. package/dist/ezui/p-7db20f8e.entry.js +0 -1
  409. package/dist/ezui/p-7ec3f335.entry.js +0 -1
  410. package/dist/ezui/p-85d7b78a.entry.js +0 -1
  411. package/dist/ezui/p-90c90351.entry.js +0 -1
  412. package/dist/ezui/p-90e91173.entry.js +0 -1
  413. package/dist/ezui/p-91ccae0c.entry.js +0 -1
  414. package/dist/ezui/p-926a0bde.entry.js +0 -1
  415. package/dist/ezui/p-97d94ef3.entry.js +0 -1
  416. package/dist/ezui/p-9e95bfeb.entry.js +0 -1
  417. package/dist/ezui/p-a11827ca.entry.js +0 -1
  418. package/dist/ezui/p-c7035d65.entry.js +0 -1
  419. package/dist/ezui/p-c8e6204f.entry.js +0 -1
  420. package/dist/ezui/p-d2290004.entry.js +0 -1
  421. package/dist/ezui/p-d4d6d5fe.entry.js +0 -1
  422. package/dist/ezui/p-ddb22a70.entry.js +0 -1
  423. package/dist/ezui/p-ddd0bd61.entry.js +0 -1
  424. package/dist/ezui/p-e4ae4ddb.entry.js +0 -1
  425. package/dist/ezui/p-e4ead194.entry.js +0 -1
  426. package/dist/ezui/p-e6b38ade.entry.js +0 -1
  427. package/dist/ezui/p-ed48a632.entry.js +0 -1
  428. package/dist/ezui/p-fc194825.entry.js +0 -1
  429. package/dist/types/components/ez-grid/controller/ag-grid/i18n/pt-BR.d.ts +0 -2
  430. package/dist/types/components/ez-sidebar-navigator/messages/constants.d.ts +0 -5
@@ -0,0 +1,14 @@
1
+ export function fileToBase64(file) {
2
+ return new Promise((resolve, reject) => {
3
+ try {
4
+ const reader = new FileReader();
5
+ reader.onload = () => {
6
+ resolve(reader.result);
7
+ };
8
+ reader.readAsDataURL(file);
9
+ }
10
+ catch (error) {
11
+ reject(error);
12
+ }
13
+ });
14
+ }
@@ -0,0 +1,10 @@
1
+ export function formatBytes(bytes, decimals = 1) {
2
+ if (bytes === 0) {
3
+ return "0 Bytes";
4
+ }
5
+ const k = 1024;
6
+ const dm = decimals < 0 ? 0 : decimals;
7
+ const sizes = ["Bytes", "Kilobytes", "Megabytes", "Gigabytes", "Terabytes", "Petabytes", "Exabytes", "Zettabytes", "Yottabytes"];
8
+ const i = Math.floor(Math.log(bytes) / Math.log(k));
9
+ return parseFloat((bytes / Math.pow(k, i)).toFixed(dm)) + " " + sizes[i];
10
+ }
@@ -2,8 +2,8 @@ import { h, Host } from "@stencil/core";
2
2
  import CSSVarsUtils from "../../utils/CSSVarsUtils";
3
3
  import { ElementIDUtils, ObjectUtils, StringUtils } from "@sankhyalabs/core";
4
4
  import { ApplicationUtils } from "../../utils";
5
- import { REQUIRED_INFO } from "../../utils/constants";
6
5
  import { replaceHighlight, replaceQuotes } from "./utils/searchFormatters";
6
+ import initI18n from '../../utils/i18n';
7
7
  export class EzSearch {
8
8
  constructor() {
9
9
  this._changeDeboucingTimeout = null;
@@ -11,8 +11,6 @@ export class EzSearch {
11
11
  this._deboucingTime = 300;
12
12
  this._maxWidthValue = 0;
13
13
  this._tabPressed = false;
14
- this._textEmptyList = "Nenhum resultado encontrado";
15
- this._textEmptySearch = "Nenhum resultado de {0} encontrado";
16
14
  this._startHighlightTag = "<span class='card-item__highlight'>";
17
15
  this._endHighlightTag = "</span>";
18
16
  this._preSelection = undefined;
@@ -338,7 +336,7 @@ export class EzSearch {
338
336
  var _a;
339
337
  if (!((_a = this._visibleOptions) === null || _a === void 0 ? void 0 : _a.length)) {
340
338
  this.clearSearch();
341
- ApplicationUtils.info(this._textEmptyList);
339
+ ApplicationUtils.info(this.i18n("ez-search.emptyList"));
342
340
  }
343
341
  else {
344
342
  this.controlListWithOnlyOne(focusOnInput);
@@ -400,11 +398,11 @@ export class EzSearch {
400
398
  }
401
399
  async showNoResultMessage() {
402
400
  this.clearSearch();
403
- ApplicationUtils.info(this._textEmptySearch.replace("{0}", this.getFieldLabel()));
401
+ ApplicationUtils.info(this.i18n("ez-search.emptySearch", { field: this.getFieldLabel() }));
404
402
  }
405
403
  getFieldLabel() {
406
404
  var _a;
407
- return (_a = this.label) === null || _a === void 0 ? void 0 : _a.replace(REQUIRED_INFO, "").toUpperCase();
405
+ return (_a = this.label) === null || _a === void 0 ? void 0 : _a.replace(this.i18n("app.requiredInfo"), "").toUpperCase();
408
406
  }
409
407
  resetOptions() {
410
408
  this.hideOptions();
@@ -428,7 +426,8 @@ export class EzSearch {
428
426
  //---------------------------------------------
429
427
  // Lifecycle web component
430
428
  //---------------------------------------------
431
- componentWillLoad() {
429
+ async componentWillLoad() {
430
+ this.i18n = await initI18n();
432
431
  if (this.options === undefined) {
433
432
  this.options = [];
434
433
  const optionsTags = this.el.querySelectorAll("option");
@@ -610,7 +609,7 @@ export class EzSearch {
610
609
  ElementIDUtils.addIDInfoIfNotExists(this.el, 'input');
611
610
  return (h(Host, null, h("ez-text-input", { "data-element-id": ElementIDUtils.getInternalIDInfo("textInput"), class: this.suppressSearch ? "suppressed-search-input" : "", ref: elem => this._textInput = elem, "data-slave-mode": "true", enabled: this.enabled && !this.suppressSearch, onInput: event => this.onTextInputChangeHandler(event), onFocusout: () => this.onTextInputFocusOutHandler(), onKeyDown: event => this.keyDownHandler(event), label: this.label, canShowError: this.canShowError, errorMessage: this.errorMessage, mode: this.mode, alternativePlaceholder: this.alternativePlaceholder }, h("button", { class: "btn", slot: "leftIcon", disabled: !this.enabled, tabindex: -1, onClick: () => this.handlerIconClick() }, this.canShowLoadSpinDescription() ? h("div", { class: "message__loading" }) : h("ez-icon", { iconName: "search" })), (((_a = this._textInput) === null || _a === void 0 ? void 0 : _a.value) && (this._criteria || this.value) || this.ensureClearButtonVisible)
612
611
  ? h("button", { class: "btn btn__close", slot: "rightIcon", disabled: !this.enabled, tabindex: -1, onClick: () => this.clearSearch() }, h("ez-icon", { iconName: "close" }))
613
- : undefined), h("ez-popover-plus", { ref: elem => this._ezPopOverPlusElement = elem, autoClose: false, overlayType: "none", useAnchorSize: true, anchorElement: [this._textInput, this.el] }, h("search-list", { ref: (ref) => this._searchList = ref, showLoading: this._showLoading, visibleOptions: this._visibleOptions, textEmptyList: this._textEmptyList, canShowListOptions: this.canShowListOptions(), value: this.value, showOptionValue: this.showOptionValue, preSelection: this._preSelection, onChangeValue: ({ detail }) => this.selectOption(detail), onChangePreSelection: ({ detail }) => this.onChangePreSelection(detail) }))));
612
+ : undefined), h("ez-popover-plus", { ref: elem => this._ezPopOverPlusElement = elem, autoClose: false, overlayType: "none", useAnchorSize: true, anchorElement: [this._textInput, this.el] }, h("search-list", { ref: (ref) => this._searchList = ref, showLoading: this._showLoading, visibleOptions: this._visibleOptions, textEmptyList: this.i18n("ez-search.emptyList"), canShowListOptions: this.canShowListOptions(), value: this.value, showOptionValue: this.showOptionValue, preSelection: this._preSelection, onChangeValue: ({ detail }) => this.selectOption(detail), onChangePreSelection: ({ detail }) => this.onChangePreSelection(detail) }))));
614
613
  }
615
614
  static get is() { return "ez-search"; }
616
615
  static get encapsulation() { return "shadow"; }
@@ -353,6 +353,7 @@ ez-text-input:hover .btn__close, ez-text-input:focus .btn__close {
353
353
  .ez-search-plus__text-input{
354
354
  --ez-text-input--border-top-left-radius: 0px;
355
355
  --ez-text-input--border-bottom-left-radius: 0px;
356
+ outline: none;
356
357
  }
357
358
 
358
359
  .ez-search-plus__code-input-no-border{
@@ -370,4 +371,5 @@ ez-text-input:hover .btn__close, ez-text-input:focus .btn__close {
370
371
 
371
372
  .description-input-container{
372
373
  width: 100%;
374
+ outline: none;
373
375
  }
@@ -1,6 +1,7 @@
1
1
  import { h, Host, } from "@stencil/core";
2
2
  import { ElementIDUtils, KeyboardManager, StringUtils, } from "@sankhyalabs/core";
3
3
  import { CSSVarsUtils, SearchMode } from "../../utils";
4
+ import initI18n from '../../utils/i18n';
4
5
  export class EzSearchPlus {
5
6
  constructor() {
6
7
  this.SEARCH_DESCRIPTION_TIMEOUT = 300;
@@ -120,14 +121,17 @@ export class EzSearchPlus {
120
121
  async isInvalid() {
121
122
  return typeof this.errorMessage === "string" && this.errorMessage.trim() !== "";
122
123
  }
123
- componentWillLoad() {
124
+ async componentWillLoad() {
125
+ this.i18n = await initI18n();
124
126
  if (this.value && StringUtils.isEmpty(this.codeValue)) {
125
- this.observeValue(this.value, undefined);
127
+ await this.observeValue(this.value, undefined);
126
128
  }
127
129
  }
128
130
  componentDidLoad() {
129
131
  CSSVarsUtils.applyVarsTextInput(this.el, this._textInputCodeValue);
130
132
  CSSVarsUtils.applyVarsTextInput(this.el, this._textInputDescriptionValue);
133
+ }
134
+ connectedCallback() {
131
135
  this.initKeyboardManager();
132
136
  if (this.autoFocus) {
133
137
  requestAnimationFrame(() => {
@@ -137,13 +141,14 @@ export class EzSearchPlus {
137
141
  }
138
142
  clearSearch() {
139
143
  this.value = null;
144
+ this.descriptionValue = null;
140
145
  }
141
146
  getCodLabel() {
142
147
  var _a;
143
148
  if (this.hideDescriptionInput) {
144
149
  return this.label;
145
150
  }
146
- return (_a = this.codLabel) !== null && _a !== void 0 ? _a : "Cód.";
151
+ return (_a = this.codLabel) !== null && _a !== void 0 ? _a : this.i18n("ez-search-plus.defaultCodeLabel");
147
152
  }
148
153
  async normalizeCodeToDescriptionValue(valueToNormalize) {
149
154
  if (!valueToNormalize) {
@@ -185,7 +190,7 @@ export class EzSearchPlus {
185
190
  }
186
191
  async loadDescriptionValueByCode(codeValue) {
187
192
  if (!this.optionLoader) {
188
- console.warn("optionLoader não definido");
193
+ console.warn(this.i18n("ez-search-plus.optionLoaderNotDefined"));
189
194
  return "";
190
195
  }
191
196
  try {
@@ -215,7 +220,7 @@ export class EzSearchPlus {
215
220
  }
216
221
  async loadAdvancedSearch() {
217
222
  if (!this.optionLoader) {
218
- console.warn("optionLoader não definido");
223
+ console.warn(this.i18n("ez-search-plus.optionLoaderNotDefined"));
219
224
  return;
220
225
  }
221
226
  const searchArgument = { mode: SearchMode.ADVANCED, argument: "" };
@@ -332,7 +337,7 @@ export class EzSearchPlus {
332
337
  this._keyboardManager
333
338
  .bind("ArrowUp", () => this.handleArrowUp(), Object.assign(Object.assign({}, defaultOpts), { propagate: false }))
334
339
  .bind("ArrowDown", () => this.handleArrowDown(), Object.assign(Object.assign({}, defaultOpts), { propagate: false }))
335
- .bind("Enter", () => this.selectCurrentItem(), defaultOpts)
340
+ .bind("Enter", () => this.selectCurrentItem(), Object.assign(Object.assign({}, defaultOpts), { propagate: !this.stopPropagateEnterKeyEvent }))
336
341
  .bind("Tab", () => this.handleInputTab(), defaultOpts)
337
342
  .bind("Escape", () => this.handleInputEsc(), defaultOpts);
338
343
  }
@@ -366,13 +371,17 @@ export class EzSearchPlus {
366
371
  getLeftIconElement() {
367
372
  return h("button", { class: "btn", slot: "leftIcon", disabled: !this.enabled, tabindex: -1, onClick: () => this.handleSearchClick() }, this.canShowLoadSpinDescription() ? h("div", { class: "message__loading" }) : h("ez-icon", { iconName: "search" }));
368
373
  }
374
+ handleOnEzVisibilityChange(event) {
375
+ event.stopPropagation();
376
+ this.searchDescriptionIsOpen = event.detail;
377
+ }
369
378
  render() {
370
379
  ElementIDUtils.addIDInfoIfNotExists(this.el, 'input');
371
380
  return (h(Host, null, h("div", { class: "ez-search-plus__container" }, h("ez-text-input", { ref: elem => this._textInputCodeValue = elem, class: {
372
381
  "ez-search-plus__code-input": !this.hideDescriptionInput,
373
382
  "ez-search-plus__code-input-no-border": !this.hideDescriptionInput,
374
383
  "ez-search-plus__code-input-full": this.hideDescriptionInput
375
- }, "data-element-id": ElementIDUtils.getInternalIDInfo("codeInput"), "data-slave-mode": "true", enabled: !this.disableCodeInput && this.enabled, mode: this.mode, label: this.getCodLabel(), canShowError: this.canShowError, hasInvalid: !StringUtils.isEmpty(this.errorMessage), errorMessage: this.hideDescriptionInput ? this.errorMessage : "", value: this.codeValue, onFocusout: () => this.handleCodeInputFocusOut(), onFocus: () => this.handleCodeInputFocus() }, this.getLeftIconElement()), !this.hideDescriptionInput && (h("div", { class: "description-input-container" }, h("ez-text-input", { ref: elem => this._textInputDescriptionValue = elem, tabIndex: -1, class: "ez-search-plus__text-input", "data-element-id": ElementIDUtils.getInternalIDInfo("textInput"), "data-slave-mode": "true", enabled: !this.disableDescriptionInput && this.enabled, label: this.label, canShowError: this.canShowError, errorMessage: this.errorMessage, mode: this.mode, value: this.descriptionValue, onInput: event => this.handleTextInputChangeHandler(event), onFocus: () => this.handleDescriptionInputFocus() }, this.getRightIconElement()), h("ez-popover-plus", { ref: elem => this._popover = elem, anchorElement: this.el, autoClose: true, boxWidth: 'fit-content', overlayType: 'none', useAnchorSize: true, onEzVisibilityChange: (event) => this.searchDescriptionIsOpen = event.detail }, h("ez-search-result-list", { ref: (ref) => this._searchList = ref, showLoading: this.showLoading, visibleOptions: this.visibleOptions, value: this.value, showOptionValue: this.showOptionValue, onChangeValue: (evt) => this.handleSelectItem(evt) })))))));
384
+ }, "data-element-id": ElementIDUtils.getInternalIDInfo("codeInput"), "data-slave-mode": "true", enabled: !this.disableCodeInput && this.enabled, mode: this.mode, label: this.getCodLabel(), canShowError: this.canShowError, hasInvalid: !StringUtils.isEmpty(this.errorMessage), errorMessage: this.hideDescriptionInput ? this.errorMessage : "", value: this.codeValue, onFocusout: () => this.handleCodeInputFocusOut(), onFocus: () => this.handleCodeInputFocus() }, this.getLeftIconElement()), !this.hideDescriptionInput && (h("div", { class: "description-input-container" }, h("ez-text-input", { ref: elem => this._textInputDescriptionValue = elem, tabIndex: -1, class: "ez-search-plus__text-input", "data-element-id": ElementIDUtils.getInternalIDInfo("textInput"), "data-slave-mode": "true", enabled: !this.disableDescriptionInput && this.enabled, label: this.label, canShowError: this.canShowError, errorMessage: this.errorMessage, mode: this.mode, value: this.descriptionValue, onInput: event => this.handleTextInputChangeHandler(event), onFocus: () => this.handleDescriptionInputFocus() }, this.getRightIconElement()), h("ez-popover-plus", { ref: elem => this._popover = elem, anchorElement: this.el, autoClose: true, boxWidth: 'fit-content', overlayType: 'none', useAnchorSize: true, onEzVisibilityChange: (event) => this.handleOnEzVisibilityChange(event) }, h("ez-search-result-list", { ref: (ref) => this._searchList = ref, showLoading: this.showLoading, visibleOptions: this.visibleOptions, value: this.value, showOptionValue: this.showOptionValue, onChangeValue: (evt) => this.handleSelectItem(evt) })))))));
376
385
  }
377
386
  static get is() { return "ez-search-plus"; }
378
387
  static get encapsulation() { return "shadow"; }
@@ -1,8 +1,8 @@
1
1
  import { Host, h } from '@stencil/core';
2
2
  import { StringUtils } from '@sankhyalabs/core';
3
+ import initI18n from '../../../../utils/i18n';
3
4
  export class EzSearchResultList {
4
5
  constructor() {
5
- this._textEmptyList = "Nenhum resultado encontrado";
6
6
  this._startHighlightTag = "<span class='card-item__highlight'>";
7
7
  this._endHighlightTag = "</span>";
8
8
  this.showLoading = undefined;
@@ -11,6 +11,11 @@ export class EzSearchResultList {
11
11
  this.showOptionValue = true;
12
12
  this._preSelection = undefined;
13
13
  }
14
+ observerVisivleOptions(newValue) {
15
+ if (newValue.length) {
16
+ this.preSelectItemByIndex(0);
17
+ }
18
+ }
14
19
  async nextOption() {
15
20
  const newPreSelection = this._preSelection === undefined ? 0 : Math.min(this._preSelection + 1, this.visibleOptions.length - 1);
16
21
  this.preSelectItemByIndex(newPreSelection);
@@ -26,18 +31,24 @@ export class EzSearchResultList {
26
31
  }
27
32
  selectOption(newOption) {
28
33
  const newOptionsReplaced = Object.assign(Object.assign({}, newOption), { value: newOption === null || newOption === void 0 ? void 0 : newOption.value, label: newOption === null || newOption === void 0 ? void 0 : newOption.label });
29
- const newOptionsFormatted = Object.assign(Object.assign({}, newOptionsReplaced), { value: newOptionsReplaced === null || newOptionsReplaced === void 0 ? void 0 : newOptionsReplaced.value, label: newOptionsReplaced === null || newOptionsReplaced === void 0 ? void 0 : newOptionsReplaced.label });
34
+ const newOptionsFormatted = Object.assign(Object.assign({}, newOptionsReplaced), { value: this.removeHighLight(newOptionsReplaced === null || newOptionsReplaced === void 0 ? void 0 : newOptionsReplaced.value), label: this.removeHighLight(newOptionsReplaced === null || newOptionsReplaced === void 0 ? void 0 : newOptionsReplaced.label) });
30
35
  this.changeValue.emit(newOptionsFormatted);
31
36
  }
37
+ removeHighLight(text) {
38
+ if (!text || typeof text !== 'string') {
39
+ return text;
40
+ }
41
+ const startHighlight = new RegExp(this._startHighlightTag, 'g');
42
+ const endHighlight = new RegExp(this._endHighlightTag, 'g');
43
+ return text.replace(startHighlight, '').replace(endHighlight, '');
44
+ }
32
45
  createAndSelectOption(detail) {
33
46
  let { key, title } = detail;
34
47
  key = String(key !== null && key !== void 0 ? key : "");
35
- const startHighlight = new RegExp(this._startHighlightTag, 'g');
36
- const endHighlight = new RegExp(this._endHighlightTag, 'g');
37
48
  title = StringUtils.decodeHtmlEntities(title);
38
49
  const option = {
39
- value: key === null || key === void 0 ? void 0 : key.replace(startHighlight, '').replace(endHighlight, ''),
40
- label: title === null || title === void 0 ? void 0 : title.replace(startHighlight, '').replace(endHighlight, '')
50
+ value: this.removeHighLight(key),
51
+ label: this.removeHighLight(title)
41
52
  };
42
53
  this.selectOption(option);
43
54
  }
@@ -77,10 +88,13 @@ export class EzSearchResultList {
77
88
  canShowListOptions() {
78
89
  return !this.showLoading && this.visibleOptions.length > 0;
79
90
  }
91
+ async componentWillLoad() {
92
+ this.i18n = await initI18n();
93
+ }
80
94
  render() {
81
95
  return (h(Host, null, h("ul", { class: "list-options", ref: elem => this._optionsList = elem }, !this.showLoading
82
96
  && this.visibleOptions.length === 0
83
- && h("div", { class: "message" }, h("span", { class: "message__no-result" }, this._textEmptyList)), this.showLoading && (h("div", { class: "loading__container" }, h("ez-skeleton", { count: 4, height: '20px' }))), this.canShowListOptions() && this.visibleOptions.map((opt, index) => this.buildItem(opt, index)))));
97
+ && h("div", { class: "message" }, h("span", { class: "message__no-result" }, this.i18n("ez-search-plus.emptyList"))), this.showLoading && (h("div", { class: "loading__container" }, h("ez-skeleton", { count: 4, height: '20px' }))), this.canShowListOptions() && this.visibleOptions.map((opt, index) => this.buildItem(opt, index)))));
84
98
  }
85
99
  static get is() { return "ez-search-result-list"; }
86
100
  static get encapsulation() { return "shadow"; }
@@ -275,4 +289,10 @@ export class EzSearchResultList {
275
289
  }
276
290
  };
277
291
  }
292
+ static get watchers() {
293
+ return [{
294
+ "propName": "visibleOptions",
295
+ "methodName": "observerVisivleOptions"
296
+ }];
297
+ }
278
298
  }
@@ -2,7 +2,7 @@ import { h, Host } from "@stencil/core";
2
2
  import { ElementIDUtils } from "@sankhyalabs/core";
3
3
  import { EzScrollDirection } from "../ez-scroller/EzScrollDirection";
4
4
  import { ModeMenuEnum, SizeMenuEnum, TypeMenuEnum } from "./interfaces";
5
- import { MESSAGES } from './messages/constants';
5
+ import initI18n from '../../utils/i18n';
6
6
  export class EzSidebarNavigator {
7
7
  constructor() {
8
8
  this.handleToggleSidebar = () => {
@@ -41,6 +41,9 @@ export class EzSidebarNavigator {
41
41
  async openSidebar() {
42
42
  this.open = true;
43
43
  }
44
+ async componentWillLoad() {
45
+ this.i18n = await initI18n();
46
+ }
44
47
  componentDidLoad() {
45
48
  if (this.type === TypeMenuEnum.FIXED) {
46
49
  this.mode = ModeMenuEnum.FIXED;
@@ -49,7 +52,7 @@ export class EzSidebarNavigator {
49
52
  }
50
53
  render() {
51
54
  ElementIDUtils.addIDInfoIfNotExists(this._element);
52
- return (h(Host, null, h("ez-sidebar-button", { class: this.open ? "hidden" : "", onEzClick: this.mode === ModeMenuEnum.FIXED ? this.handleToggleSidebar : undefined, onMouseEnter: this.mode === ModeMenuEnum.FLOAT ? this.handleToggleSidebar : undefined, "aria-controls": "navigator", "aria-expanded": this.open, "data-element-id": ElementIDUtils.getInternalIDInfo("openButton") }), this.open ? (h("aside", { tabIndex: -1, id: "navigator", class: `ez-col ez-col--sd-12 ez-col--tb-3 ez-sidebar-navigator ${this.mode === ModeMenuEnum.FLOAT ? 'dynamic' : 'fixed'} ${this.isResponsive ? 'responsive' : this.size} ${!this.open ? "hidden" : "show"}`, "data-element-id": ElementIDUtils.getInternalIDInfo("sidebar"), onMouseLeave: this.type !== TypeMenuEnum.FIXED && this.mode === ModeMenuEnum.FLOAT ? this.handleToggleSidebar : undefined }, h("header", { class: "ez-sidebar-navigator__header" }, h("slot", { name: "start" }), this.titleMenu !== '' && (h("div", { class: "ez-sidebar-navigator__title", title: this.titleMenu }, this.titleMenu)), !this.titleMenu && (h("slot", { name: "content" })), h("div", { class: "ez-sidebar-navigator__end" }, h("slot", { name: "end" }), (this.type === TypeMenuEnum.DYNAMIC && this.showFixedButton) && (h("ez-button", { onClick: this.handleToggleMode, mode: "icon", size: "small", iconName: this.mode === ModeMenuEnum.FIXED ? "un-pin" : "push-pin", title: this.mode === ModeMenuEnum.FIXED ? MESSAGES.UN_PIN_MENU : MESSAGES.PUSH_PIN_MENU, "aria-label": this.mode === ModeMenuEnum.FIXED ? MESSAGES.UN_PIN_MENU : MESSAGES.PUSH_PIN_MENU, "aria-controls": "navigator", "data-element-id": ElementIDUtils.getInternalIDInfo("pinButton") })), (this.mode === ModeMenuEnum.FIXED && this.showCollapseMenu) && (h("ez-button", { onClick: this.handleToggleSidebar, class: "inverted", mode: "icon", size: "small", iconName: "show_menu", title: MESSAGES.HIDE_MENU, "aria-label": MESSAGES.HIDE_MENU, "aria-controls": "navigator", "data-element-id": ElementIDUtils.getInternalIDInfo("closeButton") })))), this.titleMenu && (h("slot", { name: "content" })), h("ez-scroller", { class: "ez-sidebar-navigator__content", direction: EzScrollDirection.VERTICAL, activeShadow: true }, h("slot", null)), h("footer", { class: "ez-sidebar-navigator__footer" }, h("slot", { name: "footer" }))))
55
+ return (h(Host, null, h("ez-sidebar-button", { class: this.open ? "hidden" : "", onEzClick: this.mode === ModeMenuEnum.FIXED ? this.handleToggleSidebar : undefined, onMouseEnter: this.mode === ModeMenuEnum.FLOAT ? this.handleToggleSidebar : undefined, "aria-controls": "navigator", "aria-expanded": this.open, "data-element-id": ElementIDUtils.getInternalIDInfo("openButton") }), this.open ? (h("aside", { tabIndex: -1, id: "navigator", class: `ez-col ez-col--sd-12 ez-col--tb-3 ez-sidebar-navigator ${this.mode === ModeMenuEnum.FLOAT ? 'dynamic' : 'fixed'} ${this.isResponsive ? 'responsive' : this.size} ${!this.open ? "hidden" : "show"}`, "data-element-id": ElementIDUtils.getInternalIDInfo("sidebar"), onMouseLeave: this.type !== TypeMenuEnum.FIXED && this.mode === ModeMenuEnum.FLOAT ? this.handleToggleSidebar : undefined }, h("header", { class: "ez-sidebar-navigator__header" }, h("slot", { name: "start" }), this.titleMenu !== '' && (h("div", { class: "ez-sidebar-navigator__title", title: this.titleMenu }, this.titleMenu)), !this.titleMenu && (h("slot", { name: "content" })), h("div", { class: "ez-sidebar-navigator__end" }, h("slot", { name: "end" }), (this.type === TypeMenuEnum.DYNAMIC && this.showFixedButton) && (h("ez-button", { onClick: this.handleToggleMode, mode: "icon", size: "small", iconName: this.mode === ModeMenuEnum.FIXED ? "un-pin" : "push-pin", title: this.mode === ModeMenuEnum.FIXED ? this.i18n("ez-sidebar.unPinMenu") : this.i18n("ez-sidebar.pushPinMenu"), "aria-label": this.mode === ModeMenuEnum.FIXED ? this.i18n("ez-sidebar.unPinMenu") : this.i18n("ez-sidebar.pushPinMenu"), "aria-controls": "navigator", "data-element-id": ElementIDUtils.getInternalIDInfo("pinButton") })), (this.mode === ModeMenuEnum.FIXED && this.showCollapseMenu) && (h("ez-button", { onClick: this.handleToggleSidebar, class: "inverted", mode: "icon", size: "small", iconName: "show_menu", title: this.i18n("ez-sidebar.hideMenu"), "aria-label": this.i18n("ez-sidebar.hideMenu"), "aria-controls": "navigator", "data-element-id": ElementIDUtils.getInternalIDInfo("closeButton") })))), this.titleMenu && (h("slot", { name: "content" })), h("ez-scroller", { class: "ez-sidebar-navigator__content", direction: EzScrollDirection.VERTICAL, activeShadow: true }, h("slot", null)), h("footer", { class: "ez-sidebar-navigator__footer" }, h("slot", { name: "footer" }))))
53
56
  : undefined));
54
57
  }
55
58
  static get is() { return "ez-sidebar-navigator"; }
@@ -9,7 +9,6 @@ export const SKELETON_ARIA = {
9
9
  DATA_BUSY: 'true',
10
10
  DATA_VALUEMIN: '0',
11
11
  DATA_VALUEMAX: '100',
12
- DATA_VALUETEXT: 'Loading...',
13
12
  ROLE: 'progressbar',
14
13
  TABINDEX: '0'
15
14
  };
@@ -1,5 +1,6 @@
1
1
  import { h } from '@stencil/core';
2
2
  import { ALLOWED_ANIMATIONS, ALLOWED_VARIANTS, DEFAULT_VALUES, SKELETON_ARIA, VARIANT_TYPES, ANIMATION_TYPES, } from './ez-skeleton.constants';
3
+ import initI18n from '../../utils/i18n';
3
4
  export class EzSkeleton {
4
5
  constructor() {
5
6
  this.items = [];
@@ -14,7 +15,8 @@ export class EzSkeleton {
14
15
  this.marginLeft = null;
15
16
  this.animation = DEFAULT_VALUES.ANIMATION;
16
17
  }
17
- componentWillLoad() {
18
+ async componentWillLoad() {
19
+ this.i18n = await initI18n();
18
20
  this.initializeItems();
19
21
  }
20
22
  componentWillUpdate() {
@@ -105,7 +107,7 @@ export class EzSkeleton {
105
107
  return this.renderSkeletonSpan(index, config);
106
108
  }
107
109
  renderSkeletonSpan(index, config) {
108
- return (h("span", { key: index, class: config === null || config === void 0 ? void 0 : config.skeletonClasses, style: config === null || config === void 0 ? void 0 : config.styles, "data-busy": SKELETON_ARIA.DATA_BUSY, "data-valuemin": SKELETON_ARIA.DATA_VALUEMIN, "data-valuemax": SKELETON_ARIA.DATA_VALUEMAX, "data-valuetext": SKELETON_ARIA.DATA_VALUETEXT, role: SKELETON_ARIA.ROLE, tabindex: SKELETON_ARIA.TABINDEX }));
110
+ return (h("span", { key: index, class: config === null || config === void 0 ? void 0 : config.skeletonClasses, style: config === null || config === void 0 ? void 0 : config.styles, "data-busy": SKELETON_ARIA.DATA_BUSY, "data-valuemin": SKELETON_ARIA.DATA_VALUEMIN, "data-valuemax": SKELETON_ARIA.DATA_VALUEMAX, "data-valuetext": this.i18n("app.loading"), role: SKELETON_ARIA.ROLE, tabindex: SKELETON_ARIA.TABINDEX }));
109
111
  }
110
112
  render() {
111
113
  return !this.template ? this.items.map((_, index) => this.renderSkeletonItem(index)) : this.renderSkeletonTemplate(this.template);
@@ -1,6 +1,7 @@
1
1
  import { h } from '@stencil/core';
2
2
  import Sortable, { MultiDrag } from 'sortablejs';
3
3
  import { ArrayUtils } from '@sankhyalabs/core';
4
+ import initI18n from '../../utils/i18n';
4
5
  Sortable.mount(new MultiDrag());
5
6
  export class EzSortableList {
6
7
  constructor() {
@@ -11,9 +12,9 @@ export class EzSortableList {
11
12
  this.group = 'default';
12
13
  this.dataSource = [];
13
14
  this.idSortableList = 'DEFAULT_LIST';
14
- this.entityLabel = 'item';
15
- this.entityLabelPlural = 'itens';
16
- this.emptyMessage = 'Nenhum item na lista';
15
+ this.entityLabel = undefined;
16
+ this.entityLabelPlural = undefined;
17
+ this.emptyMessage = undefined;
17
18
  this.hoverFeedback = true;
18
19
  this.enableMultipleSelection = false;
19
20
  this.removeItensMoved = false;
@@ -34,6 +35,12 @@ export class EzSortableList {
34
35
  });
35
36
  this.ezSelectItens.emit([]);
36
37
  }
38
+ async componentWillLoad() {
39
+ this.i18n = await initI18n();
40
+ this.emptyMessage = this.i18n("ez-sortable-list.emptyMessage");
41
+ this.entityLabel = this.i18n("ez-sortable-list.entityLabel");
42
+ this.entityLabelPlural = this.i18n("ez-sortable-list.entityLabelPlural");
43
+ }
37
44
  componentDidLoad() {
38
45
  this.initSortable();
39
46
  }
@@ -174,7 +181,7 @@ export class EzSortableList {
174
181
  }
175
182
  }
176
183
  buildTotalizer() {
177
- return `Total de ${this.dataSource.length} ${this.dataSource.length === 1 ? this.entityLabel : this.entityLabelPlural}`;
184
+ return `${this.i18n("ez-sortable-list.total")} ${this.dataSource.length} ${this.dataSource.length === 1 ? this.entityLabel : this.entityLabelPlural}`;
178
185
  }
179
186
  renderItems() {
180
187
  const itemsToRender = ArrayUtils.applyStringFilter(this.filterTerm, this.dataSource);
@@ -196,7 +203,7 @@ export class EzSortableList {
196
203
  renderHeader() {
197
204
  if (this.hideHeader)
198
205
  return;
199
- return (h("div", { class: 'sortable-header' }, h("span", { class: 'sortable-label' }, this.title), h("ez-filter-input", { label: `Buscar ${this.entityLabel}`, mode: "slim", onEzChange: evt => this.handleFilterChanged(evt) })));
206
+ return (h("div", { class: 'sortable-header' }, h("span", { class: 'sortable-label' }, this.title), h("ez-filter-input", { label: `${this.i18n("ez-sortable-list.search")} ${this.entityLabel}`, mode: "slim", onEzChange: evt => this.handleFilterChanged(evt) })));
200
207
  }
201
208
  render() {
202
209
  return (h("div", { class: 'sortable-content' }, this.renderHeader(), h("div", { class: `sortable-list ${this.dataSource.length < 1 ? 'empty-content' : ''} list-scroller--fix`, "data-content": this.emptyMessage, style: { '--empty-content': `"${this.emptyMessage}"` }, id: this.idSortableList, key: this.idSortableList }, this.renderItems()), this.renderTotalizer()));
@@ -342,8 +349,7 @@ export class EzSortableList {
342
349
  "text": "Nome da entidade listada.\nExemplo: \"Campo\", \"Item\", \"Empresa\"."
343
350
  },
344
351
  "attribute": "entity-label",
345
- "reflect": false,
346
- "defaultValue": "'item'"
352
+ "reflect": false
347
353
  },
348
354
  "entityLabelPlural": {
349
355
  "type": "string",
@@ -360,8 +366,7 @@ export class EzSortableList {
360
366
  "text": "Varia\u00E7\u00E3o plural do nome da entidade listada.\nExemplo: \"Campos\", \"Itens\", \"Empresas\"."
361
367
  },
362
368
  "attribute": "entity-label-plural",
363
- "reflect": false,
364
- "defaultValue": "'itens'"
369
+ "reflect": false
365
370
  },
366
371
  "emptyMessage": {
367
372
  "type": "string",
@@ -378,8 +383,7 @@ export class EzSortableList {
378
383
  "text": "Mensagem exibida quando a lista est\u00E1 vazia"
379
384
  },
380
385
  "attribute": "empty-message",
381
- "reflect": false,
382
- "defaultValue": "'Nenhum item na lista'"
386
+ "reflect": false
383
387
  },
384
388
  "hoverFeedback": {
385
389
  "type": "boolean",
@@ -1,8 +1,8 @@
1
1
  import { ElementIDUtils } from '@sankhyalabs/core';
2
2
  import { h } from '@stencil/core';
3
+ import initI18n from '../../utils/i18n';
3
4
  export class EzSplitButton {
4
5
  constructor() {
5
- this.rightDefaultTitle = 'Mais opções';
6
6
  this.show = false;
7
7
  this.enabled = true;
8
8
  this.iconName = undefined;
@@ -10,7 +10,7 @@ export class EzSplitButton {
10
10
  this.items = undefined;
11
11
  this.label = undefined;
12
12
  this.leftTitle = undefined;
13
- this.rightTitle = 'Mais opções';
13
+ this.rightTitle = undefined;
14
14
  this.mode = 'default';
15
15
  this.size = 'medium';
16
16
  this.itemBuilder = undefined;
@@ -123,7 +123,8 @@ export class EzSplitButton {
123
123
  window.removeEventListener('scroll', this.positionDropdown.bind(this));
124
124
  window.addEventListener('scroll', this.positionDropdown.bind(this));
125
125
  }
126
- componentWillLoad() {
126
+ async componentWillLoad() {
127
+ this.i18n = await initI18n();
127
128
  this.setEvents();
128
129
  }
129
130
  componentWillRender() {
@@ -149,7 +150,7 @@ export class EzSplitButton {
149
150
  const hasIconButton = this.shouldShowIconOnLeftButton();
150
151
  const hasLabelButton = this.shouldShowLabelOnLeftButton();
151
152
  const iconSize = this.getIconSize();
152
- return (h("div", { class: "label-icon" }, h("button", { class: `ez-split-button__left-button ${iconSize} ${this.mode}`, title: this.leftTitle || this.label, type: "button", disabled: !this.enabled, onClick: () => { this.handleButtonClick(); }, ref: el => (this.leftButton = el) }, hasIconButton && h("ez-icon", { href: this.image, iconName: this.iconName, size: iconSize }), hasLabelButton && h("label", { title: this.leftTitle || this.label }, this.label)), h("div", { class: "dropdown" }, h("button", { class: `ez-split-button__right-button ${iconSize} ez-split-button__right-button--${iconSize} ez-split-button__right-button--divider`, title: this.rightTitle || this.rightDefaultTitle, type: "button", disabled: !this.enabled, onClick: () => { this.toggleDropdown(); }, ref: el => (this.rightButton = el) }, h("ez-icon", { class: `ez-split-button__right-button-container ` + (iconSize ? `btn-icon--${iconSize}` : ''), iconName: 'chevron-down', size: iconSize })), h("div", { class: `dropdown-content dropdown-content--${this.size}`, ref: (ref) => (this.dropdownParent = ref) }, this.show && (h("ez-dropdown", { items: this.items, onClick: evt => { evt.stopPropagation(); }, onEzOutsideClick: () => { this.closeDropdown(); }, onEzClick: evt => { this.handleDropdownItemClick(evt); }, onEzSubActionClick: evt => { this.handleDropdownSubActionClick(evt); }, itemBuilder: this.itemBuilder }))))));
153
+ return (h("div", { class: "label-icon" }, h("button", { class: `ez-split-button__left-button ${iconSize} ${this.mode}`, title: this.leftTitle || this.label, type: "button", disabled: !this.enabled, onClick: () => { this.handleButtonClick(); }, ref: el => (this.leftButton = el) }, hasIconButton && h("ez-icon", { href: this.image, iconName: this.iconName, size: iconSize }), hasLabelButton && h("label", { title: this.leftTitle || this.label }, this.label)), h("div", { class: "dropdown" }, h("button", { class: `ez-split-button__right-button ${iconSize} ez-split-button__right-button--${iconSize} ez-split-button__right-button--divider`, title: this.rightTitle || this.i18n("ez-split-button.moreOptions"), type: "button", disabled: !this.enabled, onClick: () => { this.toggleDropdown(); }, ref: el => (this.rightButton = el) }, h("ez-icon", { class: `ez-split-button__right-button-container ` + (iconSize ? `btn-icon--${iconSize}` : ''), iconName: 'chevron-down', size: iconSize })), h("div", { class: `dropdown-content dropdown-content--${this.size}`, ref: (ref) => (this.dropdownParent = ref) }, this.show && (h("ez-dropdown", { items: this.items, onClick: evt => { evt.stopPropagation(); }, onEzOutsideClick: () => { this.closeDropdown(); }, onEzClick: evt => { this.handleDropdownItemClick(evt); }, onEzSubActionClick: evt => { this.handleDropdownSubActionClick(evt); }, itemBuilder: this.itemBuilder }))))));
153
154
  }
154
155
  shouldShowLabelOnLeftButton() {
155
156
  return ['icon-left', 'default'].includes(this.mode);
@@ -313,8 +314,7 @@ export class EzSplitButton {
313
314
  "text": "Texto a ser apresentado como title do bot\u00E3o dropdown"
314
315
  },
315
316
  "attribute": "right-title",
316
- "reflect": true,
317
- "defaultValue": "'Mais op\u00E7\u00F5es'"
317
+ "reflect": true
318
318
  },
319
319
  "mode": {
320
320
  "type": "string",
@@ -1,5 +1,6 @@
1
1
  import { Host, h } from '@stencil/core';
2
2
  import { CSSVarsUtils } from '../../../../utils';
3
+ import initI18n from '../../../../utils/i18n';
3
4
  export class SplitItem {
4
5
  constructor() {
5
6
  this.label = undefined;
@@ -16,11 +17,14 @@ export class SplitItem {
16
17
  this._expanded = !this._expanded;
17
18
  (_b = (_a = this.expandButtonRef.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('button')) === null || _b === void 0 ? void 0 : _b.blur();
18
19
  }
20
+ async componentWillLoad() {
21
+ this.i18n = await initI18n();
22
+ }
19
23
  componentDidLoad() {
20
24
  CSSVarsUtils.applyVarsGrid(this._element, this._slot.children[0]);
21
25
  }
22
26
  render() {
23
- return (h(Host, { class: `box_split-item ${this._expanded ? 'expanded__item' : ''} ${this.structural ? 'structural__item' : 'content__item'}`, ref: el => (this._element = el) }, h("div", { class: "ez-split-item--header" }, h("slot", { name: "leftButtons" }), h("div", { class: "ez-split-item--header-title" }, this.label && (h("h3", { class: "ez-text ez-text--primary ez-title ez-title--medium ez-margin--small", title: this.label }, this.label))), h("div", { class: "ez-split-item--header-buttons" }, h("slot", { name: "rightButtons" }), this.enableExpand && (h("ez-button", { ref: el => this.expandButtonRef = el, size: "small", mode: "icon", iconName: "expand", class: 'ez-button--tertiary', onClick: () => this.toggleExpandItem(), title: this._expanded ? 'Resumir' : 'Expandir' })))), h("div", { class: "ez-split-item--content grid_height-0", ref: el => (this._slot = el) }, h("slot", null))));
27
+ return (h(Host, { class: `box_split-item ${this._expanded ? 'expanded__item' : ''} ${this.structural ? 'structural__item' : 'content__item'}`, ref: el => (this._element = el) }, h("div", { class: "ez-split-item--header" }, h("slot", { name: "leftButtons" }), h("div", { class: "ez-split-item--header-title" }, this.label && (h("h3", { class: "ez-text ez-text--primary ez-title ez-title--medium ez-margin--small", title: this.label }, this.label))), h("div", { class: "ez-split-item--header-buttons" }, h("slot", { name: "rightButtons" }), this.enableExpand && (h("ez-button", { ref: el => this.expandButtonRef = el, size: "small", mode: "icon", iconName: "expand", class: 'ez-button--tertiary', onClick: () => this.toggleExpandItem(), title: this._expanded ? this.i18n('app.collapse') : this.i18n('app.expand') })))), h("div", { class: "ez-split-item--content grid_height-0", ref: el => (this._slot = el) }, h("slot", null))));
24
28
  }
25
29
  static get is() { return "ez-split-item"; }
26
30
  static get originalStyleUrls() {