@sankhyalabs/ezui 6.1.0-dev.20 → 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 (288) hide show
  1. package/dist/cjs/{ApplicationUtils-c9d1205c.js → ApplicationUtils-39807831.js} +43 -15
  2. package/dist/cjs/{RichToolbarHelper-438916fa.js → RichToolbarHelper-ea12328f.js} +0 -13
  3. package/dist/cjs/app-globals-86776e90.js +12 -0
  4. package/dist/cjs/{constants-569271bc.js → constants-72b7e05e.js} +0 -2
  5. package/dist/cjs/ez-actions-button.cjs.entry.js +2 -1
  6. package/dist/cjs/ez-alert-list.cjs.entry.js +5 -3
  7. package/dist/cjs/ez-avatar.cjs.entry.js +6 -1
  8. package/dist/cjs/ez-calendar.cjs.entry.js +7 -6
  9. package/dist/cjs/ez-collapsible-box.cjs.entry.js +13 -10
  10. package/dist/cjs/ez-combo-box-list_4.cjs.entry.js +24 -14
  11. package/dist/cjs/ez-combo-box.cjs.entry.js +7 -6
  12. package/dist/cjs/ez-date-input.cjs.entry.js +5 -1
  13. package/dist/cjs/ez-date-time-input.cjs.entry.js +5 -1
  14. package/dist/cjs/ez-dialog.cjs.entry.js +8 -6
  15. package/dist/cjs/ez-double-list.cjs.entry.js +12 -4
  16. package/dist/cjs/ez-file-item.cjs.entry.js +9 -6
  17. package/dist/cjs/ez-form-view.cjs.entry.js +3 -2
  18. package/dist/cjs/ez-form.cjs.entry.js +3 -2
  19. package/dist/cjs/ez-grid.cjs.entry.js +126 -127
  20. package/dist/cjs/ez-guide-navigator.cjs.entry.js +5 -1
  21. package/dist/cjs/ez-link-builder_6.cjs.entry.js +33 -13
  22. package/dist/cjs/ez-list.cjs.entry.js +4 -2
  23. package/dist/cjs/ez-modal-container.cjs.entry.js +5 -1
  24. package/dist/cjs/ez-modal.cjs.entry.js +5 -1
  25. package/dist/cjs/ez-multi-selection-list.cjs.entry.js +9 -5
  26. package/dist/cjs/ez-number-input.cjs.entry.js +5 -1
  27. package/dist/cjs/ez-search-plus.cjs.entry.js +8 -6
  28. package/dist/cjs/ez-search-result-list.cjs.entry.js +5 -2
  29. package/dist/cjs/ez-search.cjs.entry.js +8 -9
  30. package/dist/cjs/ez-sidebar-navigator.cjs.entry.js +5 -7
  31. package/dist/cjs/ez-skeleton.cjs.entry.js +5 -3
  32. package/dist/cjs/ez-sortable-list.cjs.entry.js +12 -5
  33. package/dist/cjs/ez-split-button.cjs.entry.js +5 -4
  34. package/dist/cjs/ez-split-item.cjs.entry.js +6 -2
  35. package/dist/cjs/ez-text-input.cjs.entry.js +1 -0
  36. package/dist/cjs/ez-time-input.cjs.entry.js +12 -10
  37. package/dist/cjs/ez-tree.cjs.entry.js +5 -1
  38. package/dist/cjs/ez-upload.cjs.entry.js +17 -11
  39. package/dist/cjs/ezui.cjs.js +4 -0
  40. package/dist/cjs/filter-column.cjs.entry.js +8 -4
  41. package/dist/cjs/index-02854309.js +3672 -0
  42. package/dist/cjs/loader.cjs.js +4 -0
  43. package/dist/cjs/{search-column-27d1f72f.js → search-column-82c52e20.js} +11 -5
  44. package/dist/collection/collection-manifest.json +2 -1
  45. package/dist/collection/components/ez-alert-list/ez-alert-list.js +5 -3
  46. package/dist/collection/components/ez-avatar/ez-avatar.js +5 -1
  47. package/dist/collection/components/ez-calendar/ez-calendar.js +7 -6
  48. package/dist/collection/components/ez-collapsible-box/ez-collapsible-box.js +12 -9
  49. package/dist/collection/components/ez-combo-box/ez-combo-box-list/ez-combo-box-list.js +7 -4
  50. package/dist/collection/components/ez-combo-box/ez-combo-box.js +7 -7
  51. package/dist/collection/components/ez-date-input/ez-date-input.js +5 -1
  52. package/dist/collection/components/ez-date-time-input/ez-date-time-input.js +5 -1
  53. package/dist/collection/components/ez-dialog/ez-dialog.js +8 -6
  54. package/dist/collection/components/ez-double-list/ez-double-list.js +12 -4
  55. package/dist/collection/components/ez-file-item/ez-file-item.js +9 -6
  56. package/dist/collection/components/ez-form-view/fieldbuilder/FieldBuilder.js +3 -2
  57. package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +10 -9
  58. package/dist/collection/components/ez-grid/controller/ag-grid/test/constants/GridEditionMock.js +3 -1
  59. package/dist/collection/components/ez-grid/controller/ag-grid/utils/buildLocaleText.js +67 -0
  60. package/dist/collection/components/ez-grid/ez-grid.js +15 -13
  61. package/dist/collection/components/ez-grid/subcomponents/filter-column.js +7 -3
  62. package/dist/collection/components/ez-grid/subcomponents/selection-counter.js +2 -2
  63. package/dist/collection/components/ez-grid/subcomponents/utils/selectionCounterUtils.js +11 -7
  64. package/dist/collection/components/ez-guide-navigator/ez-guide-navigator.js +5 -1
  65. package/dist/collection/components/ez-list/ez-list.js +4 -2
  66. package/dist/collection/components/ez-modal/ez-modal.js +5 -1
  67. package/dist/collection/components/ez-modal-container/ez-modal-container.js +5 -1
  68. package/dist/collection/components/ez-multi-selection-list/ez-multi-selection-list.js +9 -5
  69. package/dist/collection/components/ez-number-input/ez-number-input.js +5 -1
  70. package/dist/collection/components/ez-rich-text/ez-link-builder/ez-link-builder.js +5 -1
  71. package/dist/collection/components/ez-rich-text/ez-rich-text.js +13 -9
  72. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/RichToolbarHelper.js +0 -12
  73. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-arrows/ez-rich-toolbar-arrows.js +6 -2
  74. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-configs/ez-rich-toolbar-configs.js +6 -2
  75. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-letters/ez-rich-toolbar-letters.js +6 -2
  76. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar.js +8 -4
  77. package/dist/collection/components/ez-rich-text/ez-simple-image-uploader/ez-simple-image-uploader.js +9 -5
  78. package/dist/collection/components/ez-search/ez-search.js +7 -8
  79. package/dist/collection/components/ez-search-plus/ez-search-plus.js +7 -5
  80. package/dist/collection/components/ez-search-plus/subcomponent/ez-search-result-list/ez-search-result-list.js +5 -2
  81. package/dist/collection/components/ez-sidebar-navigator/ez-sidebar-navigator.js +5 -2
  82. package/dist/collection/components/ez-skeleton/ez-skeleton.constants.js +0 -1
  83. package/dist/collection/components/ez-skeleton/ez-skeleton.js +4 -2
  84. package/dist/collection/components/ez-sortable-list/ez-sortable-list.js +15 -11
  85. package/dist/collection/components/ez-split-button/ez-split-button.js +6 -6
  86. package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.js +5 -1
  87. package/dist/collection/components/ez-text-edit/ez-text-edit.js +5 -1
  88. package/dist/collection/components/ez-text-input/ez-text-input.js +1 -0
  89. package/dist/collection/components/ez-time-input/ez-time-input.js +12 -10
  90. package/dist/collection/components/ez-tree/ez-tree.js +5 -1
  91. package/dist/collection/components/ez-upload/ez-upload.js +18 -12
  92. package/dist/collection/global/app-init.js +6 -0
  93. package/dist/collection/setupTests.js +1 -1
  94. package/dist/collection/utils/ApplicationUtils.js +43 -15
  95. package/dist/collection/utils/constants.js +0 -1
  96. package/dist/collection/utils/i18n/elanguages.js +6 -0
  97. package/dist/collection/utils/i18n/i18nUtils.js +20 -0
  98. package/dist/collection/utils/i18n/index.js +30 -0
  99. package/dist/collection/utils/i18n/locales/en-us.js +275 -0
  100. package/dist/collection/utils/i18n/locales/es-es.js +275 -0
  101. package/dist/collection/utils/i18n/locales/pt-br.js +275 -0
  102. package/dist/collection/utils/i18n/translations.js +9 -0
  103. package/dist/collection/utils/validators/recordvalidator/RecordValidationProcessor.js +8 -2
  104. package/dist/custom-elements/index.js +4056 -278
  105. package/dist/esm/{ApplicationUtils-eaf91331.js → ApplicationUtils-72f474e8.js} +43 -15
  106. package/dist/esm/{RichToolbarHelper-fd6427df.js → RichToolbarHelper-f3a149c4.js} +1 -13
  107. package/dist/esm/app-globals-2ccb253f.js +10 -0
  108. package/dist/esm/{constants-b036528f.js → constants-3fabe81e.js} +1 -2
  109. package/dist/esm/ez-actions-button.entry.js +2 -1
  110. package/dist/esm/ez-alert-list.entry.js +5 -3
  111. package/dist/esm/ez-avatar.entry.js +6 -1
  112. package/dist/esm/ez-calendar.entry.js +7 -6
  113. package/dist/esm/ez-collapsible-box.entry.js +13 -10
  114. package/dist/esm/ez-combo-box-list_4.entry.js +24 -14
  115. package/dist/esm/ez-combo-box.entry.js +7 -6
  116. package/dist/esm/ez-date-input.entry.js +5 -1
  117. package/dist/esm/ez-date-time-input.entry.js +5 -1
  118. package/dist/esm/ez-dialog.entry.js +8 -6
  119. package/dist/esm/ez-double-list.entry.js +12 -4
  120. package/dist/esm/ez-file-item.entry.js +9 -6
  121. package/dist/esm/ez-form-view.entry.js +3 -2
  122. package/dist/esm/ez-form.entry.js +3 -2
  123. package/dist/esm/ez-grid.entry.js +108 -109
  124. package/dist/esm/ez-guide-navigator.entry.js +5 -1
  125. package/dist/esm/ez-link-builder_6.entry.js +33 -13
  126. package/dist/esm/ez-list.entry.js +4 -2
  127. package/dist/esm/ez-modal-container.entry.js +5 -1
  128. package/dist/esm/ez-modal.entry.js +5 -1
  129. package/dist/esm/ez-multi-selection-list.entry.js +9 -5
  130. package/dist/esm/ez-number-input.entry.js +5 -1
  131. package/dist/esm/ez-search-plus.entry.js +8 -6
  132. package/dist/esm/ez-search-result-list.entry.js +5 -2
  133. package/dist/esm/ez-search.entry.js +8 -9
  134. package/dist/esm/ez-sidebar-navigator.entry.js +5 -7
  135. package/dist/esm/ez-skeleton.entry.js +5 -3
  136. package/dist/esm/ez-sortable-list.entry.js +12 -5
  137. package/dist/esm/ez-split-button.entry.js +5 -4
  138. package/dist/esm/ez-split-item.entry.js +6 -2
  139. package/dist/esm/ez-text-input.entry.js +1 -0
  140. package/dist/esm/ez-time-input.entry.js +12 -10
  141. package/dist/esm/ez-tree.entry.js +5 -1
  142. package/dist/esm/ez-upload.entry.js +17 -11
  143. package/dist/esm/ezui.js +4 -0
  144. package/dist/esm/filter-column.entry.js +8 -4
  145. package/dist/esm/index-b623906e.js +3669 -0
  146. package/dist/esm/loader.js +4 -0
  147. package/dist/esm/{search-column-e609d513.js → search-column-5a55f676.js} +9 -3
  148. package/dist/ezui/ezui.esm.js +1 -1
  149. package/dist/ezui/p-0603bcc7.entry.js +1 -0
  150. package/dist/ezui/p-0ec7aa3a.entry.js +1 -0
  151. package/dist/ezui/p-0f0f3efe.entry.js +1 -0
  152. package/dist/ezui/p-1c3efd36.entry.js +1 -0
  153. package/dist/ezui/p-1ffb75d5.js +1 -0
  154. package/dist/ezui/p-22934e19.entry.js +1 -0
  155. package/dist/ezui/p-2f471aca.entry.js +1 -0
  156. package/dist/ezui/p-303b3b8c.entry.js +1 -0
  157. package/dist/ezui/p-3b89a9a0.entry.js +1 -0
  158. package/dist/ezui/p-3e71ca08.entry.js +1 -0
  159. package/dist/ezui/p-3e767a74.js +1 -0
  160. package/dist/ezui/p-3e88fbb6.entry.js +1 -0
  161. package/dist/ezui/p-4044a7d7.entry.js +1 -0
  162. package/dist/ezui/p-45c9b292.entry.js +1 -0
  163. package/dist/ezui/p-45e64547.entry.js +1 -0
  164. package/dist/ezui/p-46913da7.js +1 -0
  165. package/dist/ezui/p-4773ff4c.js +1 -0
  166. package/dist/ezui/p-4fc5f926.entry.js +1 -0
  167. package/dist/ezui/p-53bc30a1.entry.js +1 -0
  168. package/dist/ezui/p-627ff5a2.entry.js +1 -0
  169. package/dist/ezui/p-629e32e2.entry.js +1 -0
  170. package/dist/ezui/{p-66354b29.entry.js → p-6562b5c8.entry.js} +46 -46
  171. package/dist/ezui/p-6e6fccfb.entry.js +1 -0
  172. package/dist/ezui/{p-ad0deb16.entry.js → p-713dc93e.entry.js} +1 -1
  173. package/dist/ezui/p-84a136bf.entry.js +1 -0
  174. package/dist/ezui/p-973e6a40.entry.js +1 -0
  175. package/dist/ezui/p-a12f6074.entry.js +1 -0
  176. package/dist/ezui/p-a482aae1.entry.js +1 -0
  177. package/dist/ezui/p-a687f14c.entry.js +7 -0
  178. package/dist/ezui/p-adbc3261.entry.js +1 -0
  179. package/dist/ezui/p-b115058e.entry.js +1 -0
  180. package/dist/ezui/p-b1e45320.js +1 -0
  181. package/dist/ezui/p-b4215a04.entry.js +1 -0
  182. package/dist/ezui/p-b8ed876d.entry.js +1 -0
  183. package/dist/ezui/p-ba07b3df.js +1 -0
  184. package/dist/ezui/p-c00ad772.entry.js +1 -0
  185. package/dist/ezui/p-c2a8139d.entry.js +1 -0
  186. package/dist/ezui/p-caf2584a.entry.js +1 -0
  187. package/dist/ezui/p-d1d0868b.entry.js +1 -0
  188. package/dist/ezui/p-e5260556.entry.js +1 -0
  189. package/dist/ezui/p-ed3bed1e.entry.js +1 -0
  190. package/dist/types/components/ez-alert-list/ez-alert-list.d.ts +2 -1
  191. package/dist/types/components/ez-avatar/ez-avatar.d.ts +2 -0
  192. package/dist/types/components/ez-calendar/ez-calendar.d.ts +2 -3
  193. package/dist/types/components/ez-collapsible-box/ez-collapsible-box.d.ts +2 -0
  194. package/dist/types/components/ez-combo-box/ez-combo-box-list/ez-combo-box-list.d.ts +2 -0
  195. package/dist/types/components/ez-combo-box/ez-combo-box.d.ts +2 -2
  196. package/dist/types/components/ez-date-input/ez-date-input.d.ts +2 -0
  197. package/dist/types/components/ez-date-time-input/ez-date-time-input.d.ts +2 -0
  198. package/dist/types/components/ez-dialog/ez-dialog.d.ts +2 -2
  199. package/dist/types/components/ez-double-list/ez-double-list.d.ts +2 -0
  200. package/dist/types/components/ez-file-item/ez-file-item.d.ts +2 -0
  201. package/dist/types/components/ez-grid/controller/EzGridController.d.ts +5 -0
  202. package/dist/types/components/ez-grid/controller/ag-grid/AgGridController.d.ts +1 -0
  203. package/dist/types/components/ez-grid/controller/ag-grid/test/constants/GridEditionMock.d.ts +1 -1
  204. package/dist/types/components/ez-grid/controller/ag-grid/utils/buildLocaleText.d.ts +66 -0
  205. package/dist/types/components/ez-grid/ez-grid.d.ts +2 -2
  206. package/dist/types/components/ez-grid/subcomponents/filter-column.d.ts +2 -0
  207. package/dist/types/components/ez-grid/subcomponents/selection-counter.d.ts +2 -0
  208. package/dist/types/components/ez-grid/subcomponents/utils/selectionCounterUtils.d.ts +2 -2
  209. package/dist/types/components/ez-guide-navigator/ez-guide-navigator.d.ts +2 -0
  210. package/dist/types/components/ez-list/ez-list.d.ts +2 -1
  211. package/dist/types/components/ez-modal/ez-modal.d.ts +2 -0
  212. package/dist/types/components/ez-modal-container/ez-modal-container.d.ts +2 -0
  213. package/dist/types/components/ez-multi-selection-list/ez-multi-selection-list.d.ts +2 -0
  214. package/dist/types/components/ez-number-input/ez-number-input.d.ts +2 -0
  215. package/dist/types/components/ez-rich-text/ez-link-builder/ez-link-builder.d.ts +2 -0
  216. package/dist/types/components/ez-rich-text/ez-rich-text.d.ts +2 -0
  217. package/dist/types/components/ez-rich-text/ez-rich-toolbar/RichToolbarHelper.d.ts +0 -12
  218. package/dist/types/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-arrows/ez-rich-toolbar-arrows.d.ts +2 -0
  219. package/dist/types/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-configs/ez-rich-toolbar-configs.d.ts +2 -0
  220. package/dist/types/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-letters/ez-rich-toolbar-letters.d.ts +2 -0
  221. package/dist/types/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar.d.ts +2 -0
  222. package/dist/types/components/ez-rich-text/ez-simple-image-uploader/ez-simple-image-uploader.d.ts +2 -0
  223. package/dist/types/components/ez-search/ez-search.d.ts +2 -3
  224. package/dist/types/components/ez-search-plus/ez-search-plus.d.ts +2 -1
  225. package/dist/types/components/ez-search-plus/subcomponent/ez-search-result-list/ez-search-result-list.d.ts +2 -1
  226. package/dist/types/components/ez-sidebar-navigator/ez-sidebar-navigator.d.ts +2 -0
  227. package/dist/types/components/ez-skeleton/ez-skeleton.constants.d.ts +0 -1
  228. package/dist/types/components/ez-skeleton/ez-skeleton.d.ts +2 -1
  229. package/dist/types/components/ez-sortable-list/ez-sortable-list.d.ts +2 -0
  230. package/dist/types/components/ez-split-button/ez-split-button.d.ts +2 -2
  231. package/dist/types/components/ez-split-panel/structure/item/ez-split-item.d.ts +2 -0
  232. package/dist/types/components/ez-text-edit/ez-text-edit.d.ts +2 -0
  233. package/dist/types/components/ez-time-input/ez-time-input.d.ts +2 -1
  234. package/dist/types/components/ez-tree/ez-tree.d.ts +2 -0
  235. package/dist/types/components/ez-upload/ez-upload.d.ts +3 -1
  236. package/dist/types/global/app-init.d.ts +1 -0
  237. package/dist/types/utils/ApplicationUtils.d.ts +3 -1
  238. package/dist/types/utils/constants.d.ts +0 -1
  239. package/dist/types/utils/i18n/elanguages.d.ts +5 -0
  240. package/dist/types/utils/i18n/i18nUtils.d.ts +2 -0
  241. package/dist/types/utils/i18n/index.d.ts +5 -0
  242. package/dist/types/utils/i18n/locales/en-us.d.ts +276 -0
  243. package/dist/types/utils/i18n/locales/es-es.d.ts +276 -0
  244. package/dist/types/utils/i18n/locales/pt-br.d.ts +276 -0
  245. package/dist/types/utils/i18n/translations.d.ts +828 -0
  246. package/dist/types/utils/validators/recordvalidator/RecordValidationProcessor.d.ts +1 -0
  247. package/package.json +7 -1
  248. package/dist/collection/components/ez-grid/controller/ag-grid/i18n/pt-BR.js +0 -75
  249. package/dist/collection/components/ez-sidebar-navigator/messages/constants.js +0 -5
  250. package/dist/ezui/p-0306dff7.entry.js +0 -1
  251. package/dist/ezui/p-07894c4a.entry.js +0 -1
  252. package/dist/ezui/p-09de35a2.entry.js +0 -1
  253. package/dist/ezui/p-1276ef79.entry.js +0 -1
  254. package/dist/ezui/p-1cebdc92.js +0 -1
  255. package/dist/ezui/p-1eb34cad.entry.js +0 -1
  256. package/dist/ezui/p-2187f86c.js +0 -1
  257. package/dist/ezui/p-33326ac5.entry.js +0 -1
  258. package/dist/ezui/p-3ba9565c.entry.js +0 -1
  259. package/dist/ezui/p-454bba13.entry.js +0 -1
  260. package/dist/ezui/p-496f7832.entry.js +0 -1
  261. package/dist/ezui/p-4bb47bbe.entry.js +0 -1
  262. package/dist/ezui/p-4bd6dd6a.entry.js +0 -1
  263. package/dist/ezui/p-555c9018.entry.js +0 -1
  264. package/dist/ezui/p-57363cfd.entry.js +0 -1
  265. package/dist/ezui/p-58f69d24.entry.js +0 -1
  266. package/dist/ezui/p-59561756.entry.js +0 -7
  267. package/dist/ezui/p-5eea9886.js +0 -1
  268. package/dist/ezui/p-6bcf4ba2.entry.js +0 -1
  269. package/dist/ezui/p-6e429cff.entry.js +0 -1
  270. package/dist/ezui/p-7019f782.entry.js +0 -1
  271. package/dist/ezui/p-77a4bd35.entry.js +0 -1
  272. package/dist/ezui/p-7eae6986.entry.js +0 -1
  273. package/dist/ezui/p-9478b13b.entry.js +0 -1
  274. package/dist/ezui/p-98ee5c31.entry.js +0 -1
  275. package/dist/ezui/p-998afb6a.entry.js +0 -1
  276. package/dist/ezui/p-a148e994.entry.js +0 -1
  277. package/dist/ezui/p-ad79f9d1.entry.js +0 -1
  278. package/dist/ezui/p-b796e213.entry.js +0 -1
  279. package/dist/ezui/p-bac0f920.entry.js +0 -1
  280. package/dist/ezui/p-bff24a7b.js +0 -1
  281. package/dist/ezui/p-da1b4a38.entry.js +0 -1
  282. package/dist/ezui/p-dc73e1fe.entry.js +0 -1
  283. package/dist/ezui/p-ddd1e05f.entry.js +0 -1
  284. package/dist/ezui/p-e4528470.entry.js +0 -1
  285. package/dist/ezui/p-e6a9041d.entry.js +0 -1
  286. package/dist/ezui/p-ec0d8122.entry.js +0 -1
  287. package/dist/types/components/ez-grid/controller/ag-grid/i18n/pt-BR.d.ts +0 -2
  288. package/dist/types/components/ez-sidebar-navigator/messages/constants.d.ts +0 -5
@@ -1,3 +1,4 @@
1
+ import initI18n from '../../utils/i18n';
1
2
  import { ArrayUtils } from '@sankhyalabs/core';
2
3
  import { Fragment, h, Host } from '@stencil/core';
3
4
  var ViewScenarios;
@@ -20,6 +21,9 @@ export class EzMuiltiSelectionList {
20
21
  this.viewScenario = undefined;
21
22
  this.displayOptionToCheckAllItems = true;
22
23
  }
24
+ async componentWillLoad() {
25
+ this.i18n = await initI18n();
26
+ }
23
27
  async clearFilteredOptions() {
24
28
  this.setInitialScenario();
25
29
  this.filteredOptions = [];
@@ -55,7 +59,7 @@ export class EzMuiltiSelectionList {
55
59
  let emptyElement;
56
60
  filteredOptions.forEach(item => {
57
61
  if (item.value == undefined || item.label === "") {
58
- emptyElement = Object.assign(Object.assign({}, item), { label: "(Vazio)" });
62
+ emptyElement = Object.assign(Object.assign({}, item), { label: this.i18n("ez-multi-selection-list.empty") });
59
63
  }
60
64
  else {
61
65
  (item.check ? listWithSelectChecked.push(item) : listWithNotSelectChecked.push(item));
@@ -141,16 +145,16 @@ export class EzMuiltiSelectionList {
141
145
  itemSelected.check = itemCheckSelected.check;
142
146
  }
143
147
  buildViewList(hasDelete) {
144
- return (h(Fragment, null, this.displayOptionToCheckAllItems && (h("ez-check", { ref: (element) => (this.checkInput = element), label: "Selecionar todos", class: "multi-selection__select-all", onEzChange: this.handleChangeSelectAllItems.bind(this) })), h("ez-list", { class: "multi-selection__list", dataSource: this.displayOptions, listMode: "check", hoverFeedback: true, onEzCheckChange: this.handleChangeSelectedItem.bind(this), itemSlotBuilder: hasDelete ? this.buildDeleteIconSlot.bind(this) : null })));
148
+ return (h(Fragment, null, this.displayOptionToCheckAllItems && (h("ez-check", { ref: (element) => (this.checkInput = element), label: this.i18n("ez-multi-selection-list.selectAll"), class: "multi-selection__select-all", onEzChange: this.handleChangeSelectAllItems.bind(this) })), h("ez-list", { class: "multi-selection__list", dataSource: this.displayOptions, listMode: "check", hoverFeedback: true, onEzCheckChange: this.handleChangeSelectedItem.bind(this), itemSlotBuilder: hasDelete ? this.buildDeleteIconSlot.bind(this) : null })));
145
149
  }
146
150
  buildDeleteIconSlot(item) {
147
151
  return h("ez-icon", { style: { cursor: 'pointer' }, iconName: "delete", onClick: () => this.handleRemoveItemFromOptions(item) });
148
152
  }
149
153
  buildInitViewWithDataSource() {
150
- return h("multi-selection-box-message", { message: "Selecione os valores a serem filtrados atrav\u00E9s do campo de busca." });
154
+ return h("multi-selection-box-message", { message: this.i18n("ez-multi-selection-list.initMessage") });
151
155
  }
152
156
  buildViewEmptyResults() {
153
- return h("multi-selection-box-message", { message: "Nenhum resultado encontrado." });
157
+ return h("multi-selection-box-message", { message: this.i18n("ez-multi-selection-list.emptyResults") });
154
158
  }
155
159
  scenarioToDisplay(view) {
156
160
  const scenarios = {
@@ -164,7 +168,7 @@ export class EzMuiltiSelectionList {
164
168
  return scenarioBuilder ? scenarioBuilder() : undefined;
165
169
  }
166
170
  render() {
167
- return (h(Host, null, h("div", { class: "multi-selection" }, this.useOptions ? (h("ez-filter-input", { ref: (element) => (this.filterInput = element), label: `Buscar..`, onEzChange: this.handleSearchOnOption.bind(this) })) : (h("ez-search", { class: "multi-selection__input", label: `Buscar...`, ref: (element) => (this.searchInput = element), suppressEmptyOption: true, showOptionValue: false, showSelectedValue: false, optionLoader: (search) => this.searchWithDataSource(search, this.columnName), onEzChange: this.handleSearchOnDataSource.bind(this), isTextSearch: this.isTextSearch })), h("ez-scroll", { class: "multi-selection__content-options" }, this.scenarioToDisplay(this.viewScenario)))));
171
+ return (h(Host, null, h("div", { class: "multi-selection" }, this.useOptions ? (h("ez-filter-input", { ref: (element) => (this.filterInput = element), label: this.i18n("ez-multi-selection-list.search"), onEzChange: this.handleSearchOnOption.bind(this) })) : (h("ez-search", { class: "multi-selection__input", label: this.i18n("ez-multi-selection-list.search"), ref: (element) => (this.searchInput = element), suppressEmptyOption: true, showOptionValue: false, showSelectedValue: false, optionLoader: (search) => this.searchWithDataSource(search, this.columnName), onEzChange: this.handleSearchOnDataSource.bind(this), isTextSearch: this.isTextSearch })), h("ez-scroll", { class: "multi-selection__content-options" }, this.scenarioToDisplay(this.viewScenario)))));
168
172
  }
169
173
  static get is() { return "ez-multi-selection-list"; }
170
174
  static get encapsulation() { return "scoped"; }
@@ -1,6 +1,7 @@
1
1
  import { ElementIDUtils, NumberUtils, StringUtils } from "@sankhyalabs/core";
2
2
  import { h } from "@stencil/core";
3
3
  import CSSVarsUtils from "../../utils/CSSVarsUtils";
4
+ import initI18n from '../../utils/i18n';
4
5
  export class EzNumberInput {
5
6
  constructor() {
6
7
  this._focused = false;
@@ -124,7 +125,7 @@ export class EzNumberInput {
124
125
  try {
125
126
  const parsedNumber = this.getParsedNumber();
126
127
  if (parsedNumber !== undefined && isNaN(parsedNumber)) {
127
- this.setError("O valor digitado não é um número válido");
128
+ this.setError(this.i18n("ez-number-input.invalidNumber"));
128
129
  }
129
130
  else {
130
131
  try {
@@ -161,6 +162,9 @@ export class EzNumberInput {
161
162
  this._textInput.value = this._value;
162
163
  }
163
164
  }
165
+ async componentWillLoad() {
166
+ this.i18n = await initI18n();
167
+ }
164
168
  componentDidLoad() {
165
169
  CSSVarsUtils.applyVarsTextInput(this._elem, this._textInput);
166
170
  this.setInputValue();
@@ -1,5 +1,6 @@
1
1
  import { h } from '@stencil/core';
2
2
  import { RICH_TOOLBAR_COMMANDS } from '../ez-rich-toolbar/RichToolbarHelper';
3
+ import initI18n from '../../../utils/i18n';
3
4
  export class EzLinkBuilder {
4
5
  constructor() {
5
6
  this.textToShow = undefined;
@@ -15,6 +16,9 @@ export class EzLinkBuilder {
15
16
  async hide() {
16
17
  this._popupElement.opened = false;
17
18
  }
19
+ async componentWillLoad() {
20
+ this.i18n = await initI18n();
21
+ }
18
22
  async handleCancel() {
19
23
  this.clearValues();
20
24
  this.executeToolbarCommand.emit({ command: RICH_TOOLBAR_COMMANDS.FOCUS });
@@ -45,7 +49,7 @@ export class EzLinkBuilder {
45
49
  return ((_a = this.link) === null || _a === void 0 ? void 0 : _a.trim()) ? 'ENABLED' : 'DISABLED';
46
50
  }
47
51
  render() {
48
- return (h("ez-popup", { heightMode: 'auto', size: 'small', useHeader: false, ref: ref => this._popupElement = ref, onEzClosePopup: () => this.clearValues() }, h("div", null, h("ez-modal-container", { modalTitle: "Adicionar link", modalSubTitle: "Insira um link no texto para abrir novas p\u00E1ginas.", okButtonLabel: "Enviar", cancelButtonLabel: "Cancelar", onEzModalAction: this.handleActionPopup.bind(this), okButtonStatus: this.getOkButtonStatus() }, h("div", { class: 'link-builder-container' }, h("ez-text-input", { id: 'link_url_input', label: 'Insira a URL destino', value: this.link, onEzChange: (e) => this.link = e.detail }), h("ez-text-input", { id: 'link_text_input', label: 'Insira o texto a ser exibido', value: this.textToShow, onEzChange: (e) => this.textToShow = e.detail }), h("ez-check", { label: 'Abrir em uma nova página.', value: this.openInNewGuide, onEzChange: (e) => this.openInNewGuide = e.detail }))))));
52
+ return (h("ez-popup", { heightMode: 'auto', size: 'small', useHeader: false, ref: ref => this._popupElement = ref, onEzClosePopup: () => this.clearValues() }, h("div", null, h("ez-modal-container", { modalTitle: this.i18n("ez-link-builder.addLinkTitle"), modalSubTitle: this.i18n("ez-link-builder.addLinkSubtitle"), okButtonLabel: this.i18n("ez-link-builder.submit"), cancelButtonLabel: this.i18n("app.cancel"), onEzModalAction: this.handleActionPopup.bind(this), okButtonStatus: this.getOkButtonStatus() }, h("div", { class: 'link-builder-container' }, h("ez-text-input", { id: 'link_url_input', label: this.i18n("ez-link-builder.urlInputLabel"), value: this.link, onEzChange: (e) => this.link = e.detail }), h("ez-text-input", { id: 'link_text_input', label: this.i18n("ez-link-builder.textInputLabel"), value: this.textToShow, onEzChange: (e) => this.textToShow = e.detail }), h("ez-check", { label: this.i18n("ez-link-builder.openInNewPage"), value: this.openInNewGuide, onEzChange: (e) => this.openInNewGuide = e.detail }))))));
49
53
  }
50
54
  static get is() { return "ez-link-builder"; }
51
55
  static get encapsulation() { return "scoped"; }
@@ -2,6 +2,7 @@ import { h, Host } from '@stencil/core';
2
2
  import { KeyboardManager, ObjectUtils } from '@sankhyalabs/core';
3
3
  import { RICH_TOOLBAR_COMMANDS, RICH_TOOLBAR_FORMAT_TAGS, } from './ez-rich-toolbar/RichToolbarHelper';
4
4
  import DOMPurify from 'dompurify';
5
+ import initI18n from '../../utils/i18n';
5
6
  export class EzRichText {
6
7
  constructor() {
7
8
  this.historyStack = [];
@@ -66,13 +67,13 @@ export class EzRichText {
66
67
  this._keyboardManager
67
68
  .bind('ctrl + l', async () => {
68
69
  await this.handleFormatSelection(RICH_TOOLBAR_FORMAT_TAGS.LIST);
69
- }, { description: 'Aplica estilo de lista ao texto selecionado.', element: this.element })
70
+ }, { description: this.i18n("ez-rich-text.listShortcut"), element: this.element })
70
71
  .bind('ctrl + k', async () => {
71
72
  await this.handleLink();
72
- }, { description: 'Abre popup de link.', element: this.element })
73
+ }, { description: this.i18n("ez-rich-text.linkShortcut"), element: this.element })
73
74
  .bind('ctrl + o', async () => {
74
75
  await this.handleImage();
75
- }, { description: 'Abre popup de imagem.', element: this.element });
76
+ }, { description: this.i18n("ez-rich-text.imageShortcut"), element: this.element });
76
77
  }
77
78
  bindTextFormat() {
78
79
  if (!this._keyboardManager || !this.showTextFormat)
@@ -80,26 +81,26 @@ export class EzRichText {
80
81
  this._keyboardManager
81
82
  .bind('ctrl + b', async () => {
82
83
  await this.handleFormatSelection(RICH_TOOLBAR_FORMAT_TAGS.BOLD);
83
- }, { description: 'Aplica estilo negrito ao texto selecionado.', element: this.element })
84
+ }, { description: this.i18n("ez-rich-text.boldShortcut"), element: this.element })
84
85
  .bind('ctrl + i', async () => {
85
86
  await this.handleFormatSelection(RICH_TOOLBAR_FORMAT_TAGS.ITALIC);
86
- }, { description: 'Aplica estilo itálico ao texto selecionado.', element: this.element })
87
+ }, { description: this.i18n("ez-rich-text.italicShortcut"), element: this.element })
87
88
  .bind('ctrl + u', async () => {
88
89
  await this.handleFormatSelection(RICH_TOOLBAR_FORMAT_TAGS.UNDERLINE);
89
- }, { description: 'Aplica estilo underline ao texto selecionado.', element: this.element });
90
+ }, { description: this.i18n("ez-rich-text.underlineShortcut"), element: this.element });
90
91
  }
91
92
  initKeyboardManager() {
92
93
  this._keyboardManager = new KeyboardManager({ propagate: false, element: this.element });
93
94
  this._keyboardManager
94
95
  .bind('ctrl + Enter', async () => {
95
96
  await this.handleFormatSelection(RICH_TOOLBAR_FORMAT_TAGS.BREAK_LINE);
96
- }, { description: 'Aplica quebra de linha.', element: this.element })
97
+ }, { description: this.i18n("ez-rich-text.breakLineShortcut"), element: this.element })
97
98
  .bind('ctrl + z', async () => {
98
99
  await this.handleUndo();
99
- }, { description: 'Desfaz a ultima alteração de texto.', element: this.element })
100
+ }, { description: this.i18n("ez-rich-text.undoShortcut"), element: this.element })
100
101
  .bind('ctrl + x', async () => {
101
102
  await this.handleRedo();
102
- }, { description: 'Refaz a ultima alteração de texto.', element: this.element });
103
+ }, { description: this.i18n("ez-rich-text.redoShortcut"), element: this.element });
103
104
  this.bindPreview();
104
105
  this.bindConfigs();
105
106
  this.bindTextFormat();
@@ -241,6 +242,9 @@ export class EzRichText {
241
242
  var _a;
242
243
  (_a = this._keyboardManager) === null || _a === void 0 ? void 0 : _a.unbindAllShortcutKeys();
243
244
  }
245
+ async componentWillLoad() {
246
+ this.i18n = await initI18n();
247
+ }
244
248
  componentDidLoad() {
245
249
  this.initKeyboardManager();
246
250
  this.addToHistory(this.value);
@@ -14,18 +14,6 @@ export const RICH_TOOLBAR_FORMAT_TAGS = {
14
14
  LIST: '<ul><li>$selection</li></ul>',
15
15
  BREAK_LINE: '\n<br/>\n',
16
16
  };
17
- export const RICH_TOOLBAR_COMMAND_TITLE = {
18
- PREVIEW: 'Ctrl + P',
19
- EDIT: 'Ir para modo edição',
20
- UNDO: 'Desfazer (Ctrl + Z)',
21
- REDO: 'Refazer (Ctrl + X)',
22
- LINK: 'Inserir link (Ctrl + K)',
23
- IMAGE: 'Inserir imagem (Ctrl + O)',
24
- LIST: 'Lista (Ctrl + L)',
25
- UNDERLINE: 'Sublinhado (Ctrl + U)',
26
- ITALIC: 'Itálico (Ctrl + I)',
27
- BOLD: 'Negrito (Ctrl + B)',
28
- };
29
17
  export const RICH_TOOLBAR_COMMAND_ICON = {
30
18
  PREVIEW: 'Ctrl + P',
31
19
  UNDO: 'undo',
@@ -1,8 +1,12 @@
1
1
  import { h, Host } from '@stencil/core';
2
- import { RICH_TOOLBAR_COMMAND_ICON, RICH_TOOLBAR_COMMAND_TITLE, RICH_TOOLBAR_COMMANDS } from '../RichToolbarHelper';
2
+ import { RICH_TOOLBAR_COMMAND_ICON, RICH_TOOLBAR_COMMANDS } from '../RichToolbarHelper';
3
+ import initI18n from '../../../../utils/i18n';
3
4
  export class EzRichToolbarArrows {
5
+ async componentWillLoad() {
6
+ this.i18n = await initI18n();
7
+ }
4
8
  render() {
5
- return (h(Host, null, h("ez-rich-toolbar-item", { icon: RICH_TOOLBAR_COMMAND_ICON.UNDO, command: RICH_TOOLBAR_COMMANDS.UNDO, title: RICH_TOOLBAR_COMMAND_TITLE.UNDO }), h("ez-rich-toolbar-item", { icon: RICH_TOOLBAR_COMMAND_ICON.REDO, command: RICH_TOOLBAR_COMMANDS.REDO, title: RICH_TOOLBAR_COMMAND_TITLE.REDO })));
9
+ return (h(Host, null, h("ez-rich-toolbar-item", { icon: RICH_TOOLBAR_COMMAND_ICON.UNDO, command: RICH_TOOLBAR_COMMANDS.UNDO, title: this.i18n("ez-rich-text.title.undo") }), h("ez-rich-toolbar-item", { icon: RICH_TOOLBAR_COMMAND_ICON.REDO, command: RICH_TOOLBAR_COMMANDS.REDO, title: this.i18n("ez-rich-text.title.redo") })));
6
10
  }
7
11
  static get is() { return "ez-rich-toolbar-arrows"; }
8
12
  static get encapsulation() { return "scoped"; }
@@ -1,8 +1,12 @@
1
1
  import { h, Host } from '@stencil/core';
2
- import { RICH_TOOLBAR_COMMAND_ICON, RICH_TOOLBAR_COMMAND_TITLE, RICH_TOOLBAR_COMMANDS, RICH_TOOLBAR_FORMAT_TAGS, } from '../RichToolbarHelper';
2
+ import { RICH_TOOLBAR_COMMAND_ICON, RICH_TOOLBAR_COMMANDS, RICH_TOOLBAR_FORMAT_TAGS, } from '../RichToolbarHelper';
3
+ import initI18n from '../../../../utils/i18n';
3
4
  export class EzRichToolbarConfigs {
5
+ async componentWillLoad() {
6
+ this.i18n = await initI18n();
7
+ }
4
8
  render() {
5
- return (h(Host, null, h("ez-rich-toolbar-item", { icon: RICH_TOOLBAR_COMMAND_ICON.LIST, command: RICH_TOOLBAR_COMMANDS.FORMAT, value: RICH_TOOLBAR_FORMAT_TAGS.LIST, title: RICH_TOOLBAR_COMMAND_TITLE.LIST }), h("ez-rich-toolbar-item", { icon: RICH_TOOLBAR_COMMAND_ICON.IMAGE, command: RICH_TOOLBAR_COMMANDS.IMAGE, title: RICH_TOOLBAR_COMMAND_TITLE.IMAGE }), h("ez-rich-toolbar-item", { icon: RICH_TOOLBAR_COMMAND_ICON.LINK, command: RICH_TOOLBAR_COMMANDS.LINK, title: RICH_TOOLBAR_COMMAND_TITLE.LINK })));
9
+ return (h(Host, null, h("ez-rich-toolbar-item", { icon: RICH_TOOLBAR_COMMAND_ICON.LIST, command: RICH_TOOLBAR_COMMANDS.FORMAT, value: RICH_TOOLBAR_FORMAT_TAGS.LIST, title: this.i18n("ez-rich-text.title.list") }), h("ez-rich-toolbar-item", { icon: RICH_TOOLBAR_COMMAND_ICON.IMAGE, command: RICH_TOOLBAR_COMMANDS.IMAGE, title: this.i18n("ez-rich-text.title.image") }), h("ez-rich-toolbar-item", { icon: RICH_TOOLBAR_COMMAND_ICON.LINK, command: RICH_TOOLBAR_COMMANDS.LINK, title: this.i18n("ez-rich-text.title.link") })));
6
10
  }
7
11
  static get is() { return "ez-rich-toolbar-configs"; }
8
12
  static get encapsulation() { return "scoped"; }
@@ -1,8 +1,12 @@
1
1
  import { h, Host } from '@stencil/core';
2
- import { RICH_TOOLBAR_COMMAND_ICON, RICH_TOOLBAR_COMMAND_TITLE, RICH_TOOLBAR_COMMANDS, RICH_TOOLBAR_FORMAT_TAGS, } from '../RichToolbarHelper';
2
+ import { RICH_TOOLBAR_COMMAND_ICON, RICH_TOOLBAR_COMMANDS, RICH_TOOLBAR_FORMAT_TAGS, } from '../RichToolbarHelper';
3
+ import initI18n from '../../../../utils/i18n';
3
4
  export class EzRichToolbarLetters {
5
+ async componentWillLoad() {
6
+ this.i18n = await initI18n();
7
+ }
4
8
  render() {
5
- return (h(Host, null, h("ez-rich-toolbar-item", { icon: RICH_TOOLBAR_COMMAND_ICON.BOLD, command: RICH_TOOLBAR_COMMANDS.FORMAT, value: RICH_TOOLBAR_FORMAT_TAGS.BOLD, title: RICH_TOOLBAR_COMMAND_TITLE.BOLD }), h("ez-rich-toolbar-item", { icon: RICH_TOOLBAR_COMMAND_ICON.ITALIC, command: RICH_TOOLBAR_COMMANDS.FORMAT, value: RICH_TOOLBAR_FORMAT_TAGS.ITALIC, title: RICH_TOOLBAR_COMMAND_TITLE.ITALIC }), h("ez-rich-toolbar-item", { icon: RICH_TOOLBAR_COMMAND_ICON.UNDERLINE, command: RICH_TOOLBAR_COMMANDS.FORMAT, value: RICH_TOOLBAR_FORMAT_TAGS.UNDERLINE, title: RICH_TOOLBAR_COMMAND_TITLE.UNDERLINE })));
9
+ return (h(Host, null, h("ez-rich-toolbar-item", { icon: RICH_TOOLBAR_COMMAND_ICON.BOLD, command: RICH_TOOLBAR_COMMANDS.FORMAT, value: RICH_TOOLBAR_FORMAT_TAGS.BOLD, title: this.i18n("ez-rich-text.title.bold") }), h("ez-rich-toolbar-item", { icon: RICH_TOOLBAR_COMMAND_ICON.ITALIC, command: RICH_TOOLBAR_COMMANDS.FORMAT, value: RICH_TOOLBAR_FORMAT_TAGS.ITALIC, title: this.i18n("ez-rich-text.title.italic") }), h("ez-rich-toolbar-item", { icon: RICH_TOOLBAR_COMMAND_ICON.UNDERLINE, command: RICH_TOOLBAR_COMMANDS.FORMAT, value: RICH_TOOLBAR_FORMAT_TAGS.UNDERLINE, title: this.i18n("ez-rich-text.title.underline") })));
6
10
  }
7
11
  static get is() { return "ez-rich-toolbar-letters"; }
8
12
  static get encapsulation() { return "scoped"; }
@@ -1,5 +1,6 @@
1
1
  import { h, Host } from '@stencil/core';
2
- import { RICH_TOOLBAR_COMMAND_TITLE, RICH_TOOLBAR_COMMANDS } from './RichToolbarHelper';
2
+ import { RICH_TOOLBAR_COMMANDS } from './RichToolbarHelper';
3
+ import initI18n from '../../../utils/i18n';
3
4
  export class EzRichToolbar {
4
5
  constructor() {
5
6
  this.showPreview = true;
@@ -8,6 +9,9 @@ export class EzRichToolbar {
8
9
  this.showTextFormat = true;
9
10
  this.showUndoRedo = true;
10
11
  }
12
+ async componentWillLoad() {
13
+ this.i18n = await initI18n();
14
+ }
11
15
  handleActionTriggered(event) {
12
16
  this.executeToolbarCommand.emit({ command: event.detail.command, value: event.detail.value });
13
17
  }
@@ -32,12 +36,12 @@ export class EzRichToolbar {
32
36
  renderPreview() {
33
37
  if (!this.showPreview)
34
38
  return;
35
- return (h("div", { class: "taskbar-group" }, h("span", { id: 'rich-text-preview-btn', class: "preview-btn", title: this.getPreviewTitle(), onClick: this.handleClickPreview.bind(this) }, this.isPreviewMode ? 'Editar' : 'Pré-visualizar')));
39
+ return (h("div", { class: "taskbar-group" }, h("span", { id: 'rich-text-preview-btn', class: "preview-btn", title: this.getPreviewTitle(), onClick: this.handleClickPreview.bind(this) }, this.isPreviewMode ? this.i18n("ez-rich-text.edit") : this.i18n("ez-rich-text.preview"))));
36
40
  }
37
41
  getPreviewTitle() {
38
42
  return this.isPreviewMode
39
- ? RICH_TOOLBAR_COMMAND_TITLE.EDIT
40
- : RICH_TOOLBAR_COMMAND_TITLE.PREVIEW;
43
+ ? this.i18n("ez-rich-text.title.edit")
44
+ : this.i18n("ez-rich-text.title.preview");
41
45
  }
42
46
  render() {
43
47
  return (h(Host, null, h("div", { class: "taskbar" }, this.renderPreview(), this.renderArrows(), this.renderLetters(), this.renderConfigs())));
@@ -2,6 +2,7 @@ import { Fragment, h } from "@stencil/core";
2
2
  import { RICH_TOOLBAR_COMMANDS } from "../ez-rich-toolbar/RichToolbarHelper";
3
3
  import { formatBytes } from "./utils/formatBytes";
4
4
  import { fileToBase64 } from "./utils/fileToBase64";
5
+ import initI18n from '../../../utils/i18n';
5
6
  export class EzSimpleImageUploader {
6
7
  constructor() {
7
8
  this.link = undefined;
@@ -22,6 +23,9 @@ export class EzSimpleImageUploader {
22
23
  async hide() {
23
24
  this._popupElement.opened = false;
24
25
  }
26
+ async componentWillLoad() {
27
+ this.i18n = await initI18n();
28
+ }
25
29
  async handleCancel() {
26
30
  this.removeSelectedFile();
27
31
  this.executeToolbarCommand.emit({ command: RICH_TOOLBAR_COMMANDS.FOCUS });
@@ -49,7 +53,7 @@ export class EzSimpleImageUploader {
49
53
  this.base64 = await fileToBase64(file);
50
54
  }
51
55
  else {
52
- this.messageError = `A imagem deve ter menos de ${formatBytes(this.maxSize)}.`;
56
+ this.messageError = this.i18n("ez-simple-image-uploader.imageTooLarge", { maxSize: formatBytes(this.maxSize) });
53
57
  }
54
58
  }
55
59
  getFileList(event) {
@@ -94,7 +98,7 @@ export class EzSimpleImageUploader {
94
98
  }
95
99
  async handleCreateImgTag() {
96
100
  var _a;
97
- const tag = `<img src="${(_a = this.base64) !== null && _a !== void 0 ? _a : this.link}" alt="Image" />`;
101
+ const tag = `<img src="${(_a = this.base64) !== null && _a !== void 0 ? _a : this.link}" alt="${this.i18n("ez-simple-image-uploader.imageAlt")}" />`;
98
102
  this.executeToolbarCommand.emit({ command: RICH_TOOLBAR_COMMANDS.FORMAT, value: tag });
99
103
  this.removeSelectedFile();
100
104
  await this.hide();
@@ -104,13 +108,13 @@ export class EzSimpleImageUploader {
104
108
  return (!this.base64 && !((_a = this.link) === null || _a === void 0 ? void 0 : _a.trim())) ? 'DISABLED' : 'ENABLED';
105
109
  }
106
110
  render() {
107
- return (h("ez-popup", { ref: ref => this._popupElement = ref, heightMode: "auto", size: "small", useHeader: false, onEzClosePopup: () => this.handleCancel() }, h("div", null, h("ez-modal-container", { modalTitle: "Upload de imagens", modalSubTitle: "Envie seus arquivos preenchendo apenas 1 campo por vez.", okButtonLabel: "Enviar", cancelButtonLabel: "Cancelar", onEzModalAction: this.handleActionPopup.bind(this), okButtonStatus: this.getOkButtonStatus() }, h("div", { class: "image-uploader-container" }, h("ez-tooltip", { message: "O arquivo selecionado abaixo ser\u00E1 priorizado!", active: !!this.selectedFile }, h("ez-text-input", { label: "Insira a URL da imagem", value: this.link, onEzChange: (e) => this.link = e.detail, enabled: !this.selectedFile })), h("span", null, "OU"), h("section", { class: "drop-zone-section" }, h("div", { ref: (ref) => this._dropZone = ref, class: "drop-zone", onDrop: (ev) => this.handleFileChange(ev), onDragOver: (ev) => this.handleDragOver(ev), onDragEnter: (ev) => this.handleDragEnter(ev), onDragLeave: (ev) => this.handleDragLeave(ev) }, h("div", { class: {
111
+ return (h("ez-popup", { ref: ref => this._popupElement = ref, heightMode: "auto", size: "small", useHeader: false, onEzClosePopup: () => this.handleCancel() }, h("div", null, h("ez-modal-container", { modalTitle: this.i18n("ez-simple-image-uploader.uploadTitle"), modalSubTitle: this.i18n("ez-simple-image-uploader.uploadSubtitle"), okButtonLabel: this.i18n("ez-simple-image-uploader.submit"), cancelButtonLabel: this.i18n("app.cancel"), onEzModalAction: this.handleActionPopup.bind(this), okButtonStatus: this.getOkButtonStatus() }, h("div", { class: "image-uploader-container" }, h("ez-tooltip", { message: this.i18n("ez-simple-image-uploader.tooltipMessage"), active: !!this.selectedFile }, h("ez-text-input", { label: this.i18n("ez-simple-image-uploader.urlInputLabel"), value: this.link, onEzChange: (e) => this.link = e.detail, enabled: !this.selectedFile })), h("span", null, this.i18n("ez-simple-image-uploader.orText")), h("section", { class: "drop-zone-section" }, h("div", { ref: (ref) => this._dropZone = ref, class: "drop-zone", onDrop: (ev) => this.handleFileChange(ev), onDragOver: (ev) => this.handleDragOver(ev), onDragEnter: (ev) => this.handleDragEnter(ev), onDragLeave: (ev) => this.handleDragLeave(ev) }, h("div", { class: {
108
112
  "drop-zone-container": true,
109
113
  "clickable": !this.selectedFile,
110
114
  }, onClick: () => this.triggerFileSelect() }, !!this.selectedFile ?
111
- h(Fragment, null, h("span", { class: "ez-text ez-text--primary ez-text--medium" }, this.selectedFile.name, " (", formatBytes(this.selectedFile.size), ")"), h("button", { class: "button-close", onClick: (event) => this.removeSelectedFile(event), title: "Remover arquivo" }, h("ez-icon", { iconName: "close" })))
115
+ h(Fragment, null, h("span", { class: "ez-text ez-text--primary ez-text--medium" }, this.selectedFile.name, " (", formatBytes(this.selectedFile.size), ")"), h("button", { class: "button-close", onClick: (event) => this.removeSelectedFile(event), title: this.i18n("ez-simple-image-uploader.removeFile") }, h("ez-icon", { iconName: "close" })))
112
116
  :
113
- h(Fragment, null, h("ez-icon", { iconName: "anexo" }), h("span", { class: "ez-text ez-text--primary ez-text--medium" }, "Arraste e solte ou clique para adicionar arquivos"))), h("input", { ref: (el) => this._fileInput = el, type: "file", accept: "image/*", style: { display: "none" }, onChange: (ev) => this.handleFileChange(ev) })), !!this.messageError && h("span", { class: "text-error" }, this.messageError)))))));
117
+ h(Fragment, null, h("ez-icon", { iconName: "anexo" }), h("span", { class: "ez-text ez-text--primary ez-text--medium" }, this.i18n("ez-simple-image-uploader.dragDropText")))), h("input", { ref: (el) => this._fileInput = el, type: "file", accept: "image/*", style: { display: "none" }, onChange: (ev) => this.handleFileChange(ev) })), !!this.messageError && h("span", { class: "text-error" }, this.messageError)))))));
114
118
  }
115
119
  static get is() { return "ez-simple-image-uploader"; }
116
120
  static get encapsulation() { return "scoped"; }
@@ -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"; }
@@ -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,9 +121,10 @@ 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() {
@@ -146,7 +148,7 @@ export class EzSearchPlus {
146
148
  if (this.hideDescriptionInput) {
147
149
  return this.label;
148
150
  }
149
- 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");
150
152
  }
151
153
  async normalizeCodeToDescriptionValue(valueToNormalize) {
152
154
  if (!valueToNormalize) {
@@ -188,7 +190,7 @@ export class EzSearchPlus {
188
190
  }
189
191
  async loadDescriptionValueByCode(codeValue) {
190
192
  if (!this.optionLoader) {
191
- console.warn("optionLoader não definido");
193
+ console.warn(this.i18n("ez-search-plus.optionLoaderNotDefined"));
192
194
  return "";
193
195
  }
194
196
  try {
@@ -218,7 +220,7 @@ export class EzSearchPlus {
218
220
  }
219
221
  async loadAdvancedSearch() {
220
222
  if (!this.optionLoader) {
221
- console.warn("optionLoader não definido");
223
+ console.warn(this.i18n("ez-search-plus.optionLoaderNotDefined"));
222
224
  return;
223
225
  }
224
226
  const searchArgument = { mode: SearchMode.ADVANCED, argument: "" };
@@ -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;
@@ -88,10 +88,13 @@ export class EzSearchResultList {
88
88
  canShowListOptions() {
89
89
  return !this.showLoading && this.visibleOptions.length > 0;
90
90
  }
91
+ async componentWillLoad() {
92
+ this.i18n = await initI18n();
93
+ }
91
94
  render() {
92
95
  return (h(Host, null, h("ul", { class: "list-options", ref: elem => this._optionsList = elem }, !this.showLoading
93
96
  && this.visibleOptions.length === 0
94
- && 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)))));
95
98
  }
96
99
  static get is() { return "ez-search-result-list"; }
97
100
  static get encapsulation() { return "shadow"; }
@@ -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);