@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
@@ -2,12 +2,13 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-9e5554cb.js');
5
+ const index = require('./index-a7b0c73d.js');
6
6
  const core = require('@sankhyalabs/core');
7
- require('./ApplicationUtils-c9d1205c.js');
7
+ require('./ApplicationUtils-39807831.js');
8
8
  const CSSVarsUtils = require('./CSSVarsUtils-f20973d1.js');
9
9
  require('./DialogType-2114c337.js');
10
10
  require('./CheckMode-ecb90b87.js');
11
+ const index$1 = require('./index-02854309.js');
11
12
  require('./FormLayout-18853e70.js');
12
13
 
13
14
  const ezComboBoxCss = ":host{--ez-combo-box--height:42px;--ez-combo-box--width:100%;--ez-combo-box--border-radius:var(--border--radius-medium, 12px);--ez-combo-box--font-size:var(--text--medium, 14px);--ez-combo-box--font-family:var(--font-pattern, Arial);--ez-combo-box--background-color--xlight:var(--background--xlight, #fff);--ez-combo-box__input--background-color:var(--background--medium, #e0e0e0);--ez-combo-box__input--border:var(--border--medium, 2px solid);--ez-combo-box__input--border-color:var(--ez-combo-box__input--background-color);--ez-combo-box__input--focus--border-color:var(--color--primary, #008561);--ez-combo-box__input--disabled--background-color:var(--color--disable-secondary, #F2F5F8);--ez-combo-box__input--disabled--color:var(--text--disable, #AFB6C0);--ez-combo-box__btn--color:var(--title--primary, #2B3A54);--ez-combo-box__btn-disabled--color:var(--text--disable, #AFB6C0);--ez-combo-box__btn-hover--color:var(--color--primary, #4e4e4e);width:var(--ez-combo-box--width)}ez-icon{--ez-icon--color:inherit;font-weight:var(--text-weight--large, 600)}.suppressed-search-input{--ez-text-input__input--border-color:var(--color--strokes, #dce0e8);--ez-text-input__input--disabled--background-color:var(--background--xlight, #fff);--ez-text-input__input--disabled--color:var(--title--primary, #2B3A54)}.btn{outline:none;border:none;background:none;cursor:pointer;padding:0px;color:var(--ez-combo-box__btn--color)}.btn:disabled{cursor:unset;color:var(--ez-combo-box__btn-disabled--color)}.btn:disabled:hover{cursor:not-allowed;color:var(--ez-combo-box__btn-disabled--color)}.btn:hover{color:var(--ez-combo-box__btn-hover--color)}.btn__close{visibility:hidden}ez-text-input:hover .btn__close,ez-text-input:focus .btn__close{visibility:visible}.text-input-slot-container{--ez-text-input__icon--width:32px;--ez-text-input__min-width:var(--ez-combo-box__min-width);--ez-text-input__max-width:var(--ez-combo-box__max-width)}@-webkit-keyframes spin{0%{-webkit-transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg)}}@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}";
@@ -20,7 +21,6 @@ const EzComboBox = class {
20
21
  this._deboucingTime = 300;
21
22
  this._maxWidthValue = 0;
22
23
  this._tabPressed = false;
23
- this._textEmptyList = "Nenhum resultado encontrado";
24
24
  this._lookupMode = false;
25
25
  this.isOpen = false;
26
26
  this._preSelection = undefined;
@@ -46,8 +46,9 @@ const EzComboBox = class {
46
46
  this.listOptionsPosition = undefined;
47
47
  this.isTextSearch = false;
48
48
  this.autoFocus = false;
49
+ this.preventAutoFocus = false;
49
50
  this.alternativePlaceholder = undefined;
50
- this.textEmptyOption = "Selecione um item";
51
+ this.textEmptyOption = undefined;
51
52
  }
52
53
  observeErrorMessage() {
53
54
  var _a;
@@ -96,13 +97,13 @@ const EzComboBox = class {
96
97
  */
97
98
  async getValueAsync() {
98
99
  if (!this._showLoading) {
99
- return new Promise(resolve => resolve(this.value));
100
+ return new Promise(resolve => resolve(this.sanitizeValue(this.value)));
100
101
  }
101
102
  return new Promise(resolve => {
102
103
  let id = setInterval(() => {
103
104
  if (!this._showLoading) {
104
105
  clearInterval(id);
105
- resolve(this.value);
106
+ resolve(this.sanitizeValue(this.value));
106
107
  }
107
108
  }, 100);
108
109
  });
@@ -148,7 +149,7 @@ const EzComboBox = class {
148
149
  return currentValue.label ? `${currentValue.value} - ${currentValue.label}` : currentValue.value;
149
150
  }
150
151
  getText() {
151
- const currentValue = this.getSelectedOption(this.value);
152
+ const currentValue = this.getSelectedOption(this.sanitizeValue(this.value));
152
153
  const text = this.getFormattedText(currentValue);
153
154
  if (text == undefined) {
154
155
  return;
@@ -172,7 +173,7 @@ const EzComboBox = class {
172
173
  opts = opts.filter(opt => opt.label.toLocaleUpperCase().indexOf(upperCriteria) > -1);
173
174
  }
174
175
  if (this.hasToAddEmptyoption(opts)) {
175
- opts = [{ value: undefined, label: this.textEmptyOption }].concat(opts);
176
+ opts = [{ value: undefined, label: this.textEmptyOption || this.i18n("ez-combo-box.placeholder") }].concat(opts);
176
177
  }
177
178
  this._visibleOptions = opts;
178
179
  this._maxWidthValue = this.getMaxWidthValue();
@@ -217,7 +218,8 @@ const EzComboBox = class {
217
218
  this._preSelection = indexValue === -1 ? 0 : indexValue;
218
219
  if (!!this._resizeObserver)
219
220
  this._resizeObserver.observe(this._textInput);
220
- await this.setFocus();
221
+ if (!this.preventAutoFocus)
222
+ await this.setFocus();
221
223
  }
222
224
  hideOptions() {
223
225
  var _a;
@@ -279,7 +281,7 @@ const EzComboBox = class {
279
281
  }
280
282
  }
281
283
  cancelPreselection() {
282
- if (!this._textInput.value && this.value) {
284
+ if (!this._textInput.value && this.sanitizeValue(this.value)) {
283
285
  this.selectOption(undefined);
284
286
  }
285
287
  else {
@@ -306,10 +308,17 @@ const EzComboBox = class {
306
308
  this._preSelection = undefined;
307
309
  this.updateVisibleOptions();
308
310
  }
311
+ sanitizeValue(value) {
312
+ if (value === "undefined" || value === "null") {
313
+ return undefined;
314
+ }
315
+ return value;
316
+ }
309
317
  //---------------------------------------------
310
318
  // Lifecycle web component
311
319
  //---------------------------------------------
312
- componentWillLoad() {
320
+ async componentWillLoad() {
321
+ this.i18n = await index$1.initI18n();
313
322
  if (this.options === undefined) {
314
323
  this.options = [];
315
324
  const optionsTags = this.el.querySelectorAll("option");
@@ -327,9 +336,7 @@ const EzComboBox = class {
327
336
  }
328
337
  this.loadOptions(SearchMode.PRELOAD);
329
338
  }
330
- componentDidLoad() {
331
- CSSVarsUtils.CSSVarsUtils.applyVarsTextInput(this.el, this._textInput);
332
- this.setInputValue(false);
339
+ setResizeObserver() {
333
340
  this._resizeObserver = new ResizeObserver((entries) => {
334
341
  window.requestAnimationFrame(() => {
335
342
  if (!Array.isArray(entries) || !entries.length)
@@ -342,6 +349,16 @@ const EzComboBox = class {
342
349
  this._comboBoxList.width = textInputWidth;
343
350
  });
344
351
  });
352
+ }
353
+ connectedCallback() {
354
+ if (!this._resizeObserver) {
355
+ this.setResizeObserver();
356
+ }
357
+ }
358
+ componentDidLoad() {
359
+ CSSVarsUtils.CSSVarsUtils.applyVarsTextInput(this.el, this._textInput);
360
+ this.setInputValue(false);
361
+ this.setResizeObserver();
345
362
  if (this.autoFocus) {
346
363
  requestAnimationFrame(() => {
347
364
  this.setFocus({ selectText: true });
@@ -353,6 +370,7 @@ const EzComboBox = class {
353
370
  (_a = this._popover) === null || _a === void 0 ? void 0 : _a.remove();
354
371
  if (this._resizeObserver) {
355
372
  this._resizeObserver.disconnect();
373
+ this._resizeObserver = null;
356
374
  }
357
375
  }
358
376
  //---------------------------------------------
@@ -452,7 +470,7 @@ const EzComboBox = class {
452
470
  render() {
453
471
  var _a;
454
472
  core.ElementIDUtils.addIDInfoIfNotExists(this.el, 'input');
455
- return (index.h(index.Host, null, index.h("ez-text-input", { "data-element-id": core.ElementIDUtils.getInternalIDInfo("textInput"), class: `text-input-slot-container ${this.suppressSearch ? "suppressed-search-input" : ""}`, ref: elem => this._textInput = elem, "data-slave-mode": "true", enabled: this.enabled && !this.suppressSearch, onInput: event => this.onTextInputChangeHandler(event), onClick: () => this.onTextInputClickHandler(), onFocusout: () => this.onTextInputFocusOutHandler(), onKeyDown: event => this.keyDownHandler(event), label: this.label, canShowError: this.canShowError, errorMessage: this.errorMessage, mode: this.mode, alternativePlaceholder: this.alternativePlaceholder }, index.h("button", { class: "btn", slot: "rightIcon", disabled: !this.enabled, tabindex: -1, onClick: () => this.handlerIconClick() }, index.h("ez-icon", { iconName: "chevron-down" }))), index.h("ez-popover-plus", { ref: elem => this._popover = elem, anchorElement: this._textInput, autoClose: true, boxWidth: 'fit-content', overlayType: 'none', onEzVisibilityChange: event => this.isOpen = event.detail }, index.h("ez-combo-box-list", { ref: ref => this._comboBoxList = ref, showLoading: this._showLoading, visibleOptions: this._visibleOptions, textEmptyList: this._textEmptyList, showOptionValue: this.showOptionValue, preSelection: this._preSelection, maxWidth: this._maxWidthValue, width: (_a = this._textInput) === null || _a === void 0 ? void 0 : _a.clientWidth, onOptionSelect: (opt) => this.selectOption(opt), onOptionHover: (index) => this._preSelection = index }))));
473
+ return (index.h(index.Host, null, index.h("ez-text-input", { "data-element-id": core.ElementIDUtils.getInternalIDInfo("textInput"), class: `text-input-slot-container ${this.suppressSearch ? "suppressed-search-input" : ""}`, ref: elem => this._textInput = elem, "data-slave-mode": "true", enabled: this.enabled && !this.suppressSearch, onInput: event => this.onTextInputChangeHandler(event), onClick: () => this.onTextInputClickHandler(), onFocusout: () => this.onTextInputFocusOutHandler(), onKeyDown: event => this.keyDownHandler(event), label: this.label, canShowError: this.canShowError, errorMessage: this.errorMessage, mode: this.mode, alternativePlaceholder: this.alternativePlaceholder || this.i18n("ez-combo-box.placeholder") }, index.h("button", { class: "btn", slot: "rightIcon", disabled: !this.enabled, tabindex: -1, onClick: () => this.handlerIconClick() }, index.h("ez-icon", { iconName: "chevron-down" }))), index.h("ez-popover-plus", { ref: elem => this._popover = elem, anchorElement: this._textInput, autoClose: true, boxWidth: 'fit-content', overlayType: 'none', onEzVisibilityChange: event => this.isOpen = event.detail }, index.h("ez-combo-box-list", { ref: ref => this._comboBoxList = ref, showLoading: this._showLoading, visibleOptions: this._visibleOptions, textEmptyList: this.i18n("ez-combo-box.noResults"), showOptionValue: this.showOptionValue, preSelection: this._preSelection, maxWidth: this._maxWidthValue, width: (_a = this._textInput) === null || _a === void 0 ? void 0 : _a.clientWidth, onOptionSelect: (opt) => this.selectOption(opt), onOptionHover: (index) => this._preSelection = index }))));
456
474
  }
457
475
  get el() { return index.getElement(this); }
458
476
  static get watchers() { return {
@@ -2,9 +2,10 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-9e5554cb.js');
5
+ const index = require('./index-a7b0c73d.js');
6
6
  const core = require('@sankhyalabs/core');
7
7
  const CSSVarsUtils = require('./CSSVarsUtils-f20973d1.js');
8
+ const index$1 = require('./index-02854309.js');
8
9
 
9
10
  const ezDateInputCss = ":host{display:block;width:100%;--ez-date-input__input--background-color:var(--background--medium, #e0e0e0);--ez-date-input__input--border-color:var(--ez-date-input__input--background-color);--ez-date-input__calendar-image:url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" height=\"16px\" width=\"15px\"><path d=\"M 3.171875,5.25 C 2.6485088,5.25 2.21875,5.6797588 2.21875,6.203125 2.21875,6.7264912 2.6485088,7.15625 3.171875,7.15625 3.6952412,7.15625 4.125,6.7264912 4.125,6.203125 4.125,5.6797588 3.6952412,5.25 3.171875,5.25 Z m 2.875,0 C 5.5235088,5.25 5.09375,5.6797588 5.09375,6.203125 5.09375,6.7264912 5.5235088,7.15625 6.046875,7.15625 6.5702412,7.15625 7,6.7264912 7,6.203125 7,5.6797588 6.5702412,5.25 6.046875,5.25 Z m 2.875,0 c -0.5233662,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.4297588,0.953125 0.953125,0.953125 0.5233662,0 0.9511719,-0.4297588 0.9511719,-0.953125 C 9.8730469,5.6797588 9.4452412,5.25 8.921875,5.25 Z m 2.873047,0 c -0.523366,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.429759,0.953125 0.953125,0.953125 0.523366,0 0.953125,-0.4297588 0.953125,-0.953125 C 12.748047,5.6797588 12.318288,5.25 11.794922,5.25 Z M 3.171875,8.1230469 c -0.5233662,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.4297588,0.9531251 0.953125,0.9531251 0.5233662,0 0.953125,-0.4297589 0.953125,-0.9531251 0,-0.5233662 -0.4297588,-0.953125 -0.953125,-0.953125 z m 2.875,0 c -0.5233662,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.4297588,0.9531251 0.953125,0.9531251 C 6.5702412,10.029297 7,9.5995381 7,9.0761719 7,8.5528057 6.5702412,8.1230469 6.046875,8.1230469 Z m 2.8554688,0 c -0.5233663,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.4297587,0.9531251 0.953125,0.9531251 0.5233661,0 0.9531249,-0.4297589 0.953125,-0.9531251 0,-0.5233662 -0.4297588,-0.953125 -0.953125,-0.953125 z m 2.9003902,0 c -0.523366,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.429759,0.9531251 0.953125,0.9531251 0.523367,0 0.953125,-0.4297589 0.953125,-0.9531251 0,-0.5233662 -0.429758,-0.953125 -0.953125,-0.953125 z M 3.171875,10.998047 c -0.5233662,0 -0.953125,0.429759 -0.953125,0.953125 0,0.523366 0.4297588,0.953125 0.953125,0.953125 0.5233662,0 0.953125,-0.429759 0.953125,-0.953125 0,-0.523366 -0.4297588,-0.953125 -0.953125,-0.953125 z m 2.875,0 c -0.5233662,0 -0.953125,0.429759 -0.953125,0.953125 0,0.523366 0.4297588,0.953125 0.953125,0.953125 C 6.5702412,12.904297 7,12.474538 7,11.951172 7,11.427806 6.5702412,10.998047 6.046875,10.998047 Z m 2.8554688,0 c -0.5233663,0 -0.953125,0.429759 -0.953125,0.953125 0,0.523366 0.4297587,0.953125 0.953125,0.953125 0.5233661,0 0.9531249,-0.429759 0.953125,-0.953125 0,-0.523366 -0.4297588,-0.953125 -0.953125,-0.953125 z m 2.9003902,0 c -0.523366,0 -0.953125,0.429759 -0.953125,0.953125 0,0.523366 0.429759,0.953125 0.953125,0.953125 0.523367,0 0.953125,-0.429759 0.953125,-0.953125 0,-0.523366 -0.429758,-0.953125 -0.953125,-0.953125 z M 3.5,0 c -0.554,0 -1,0.446 -1,1 v 0.050781 C 1.0853217,1.2909766 0,2.5186658 0,4 v 9 c 0,1.652487 1.3475134,3 3,3 h 9 c 1.652487,0 3,-1.347513 3,-3 V 4 C 15,2.5186658 13.914678,1.2909766 12.5,1.0507812 V 1 c 0,-0.554 -0.446,-1 -1,-1 -0.554,0 -1,0.446 -1,1 h -2 c 0,-0.554 -0.446,-1 -1,-1 -0.554,0 -1,0.446 -1,1 h -2 C 4.5,0.446 4.054,0 3.5,0 Z m 1,2.0996094 h 2 v 0.640625 c 0,0.554 0.446,1 1,1 0.554,0 1,-0.446 1,-1 v -0.640625 h 2 v 0.640625 c 0,0.554 0.446,1 1,1 0.554,0 1,-0.446 1,-1 V 2.1738281 C 13.311725,2.3905225 13.900391,3.11278 13.900391,4 v 9 c 0,1.062113 -0.838278,1.900391 -1.900391,1.900391 H 3 C 1.9378864,14.900391 1.0996094,14.062113 1.0996094,13 V 4 C 1.0996094,3.11278 1.6882747,2.3905225 2.5,2.1738281 v 0.5664063 c 0,0.554 0.446,1 1,1 0.554,0 1,-0.446 1,-1 z\"/></svg>')}.btn-open-cal{outline:none;border:none;background-color:unset;cursor:pointer}.btn-open-cal:disabled{cursor:not-allowed}.btn-open-cal::after{content:'';display:flex;background-color:var(--text--primary, #008561);width:15px;height:16px;-webkit-mask-image:var(--ez-date-input__calendar-image);mask-image:var(--ez-date-input__calendar-image)}.btn-open-cal:disabled:after{background-color:var(--text--disable, #AFB6C0)}.btn-open-cal:enabled:hover::after{background-color:var(--color--primary, #4e4e4e)}ez-text-input{--text-input__input--background-color:var(--ez-date-input__input--background-color, #FFFFFF);--text-input__input--border-color:var(--ez-date-input__input--border-color, #DCE0E8)}";
10
11
 
@@ -128,7 +129,7 @@ const EzDateInput = class {
128
129
  else {
129
130
  this.changeValue(undefined);
130
131
  this.ezCancelWaitingChange.emit();
131
- this.errorMessage = "O valor digitado não é uma data válida";
132
+ this.errorMessage = this.i18n("ez-date-input.invalidDate");
132
133
  }
133
134
  }
134
135
  finally {
@@ -164,6 +165,9 @@ const EzDateInput = class {
164
165
  disconnectedCallback() {
165
166
  this._popover.hide();
166
167
  }
168
+ async componentWillLoad() {
169
+ this.i18n = await index$1.initI18n();
170
+ }
167
171
  componentDidLoad() {
168
172
  CSSVarsUtils.CSSVarsUtils.applyVarsTextInput(this._elem, this._textInput);
169
173
  this.setInputValue();
@@ -2,9 +2,10 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-9e5554cb.js');
5
+ const index = require('./index-a7b0c73d.js');
6
6
  const core = require('@sankhyalabs/core');
7
7
  const CSSVarsUtils = require('./CSSVarsUtils-f20973d1.js');
8
+ const index$1 = require('./index-02854309.js');
8
9
 
9
10
  const ezDateTimeInputCss = ":host{display:block;width:100%;--ez-date-input__input--background-color:var(--background--medium, #e0e0e0);--ez-date-input__input--border-color:var(--ez-date-input__input--background-color);--ez-date-input__calendar-image:url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" height=\"16px\" width=\"15px\"><path d=\"M 3.171875,5.25 C 2.6485088,5.25 2.21875,5.6797588 2.21875,6.203125 2.21875,6.7264912 2.6485088,7.15625 3.171875,7.15625 3.6952412,7.15625 4.125,6.7264912 4.125,6.203125 4.125,5.6797588 3.6952412,5.25 3.171875,5.25 Z m 2.875,0 C 5.5235088,5.25 5.09375,5.6797588 5.09375,6.203125 5.09375,6.7264912 5.5235088,7.15625 6.046875,7.15625 6.5702412,7.15625 7,6.7264912 7,6.203125 7,5.6797588 6.5702412,5.25 6.046875,5.25 Z m 2.875,0 c -0.5233662,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.4297588,0.953125 0.953125,0.953125 0.5233662,0 0.9511719,-0.4297588 0.9511719,-0.953125 C 9.8730469,5.6797588 9.4452412,5.25 8.921875,5.25 Z m 2.873047,0 c -0.523366,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.429759,0.953125 0.953125,0.953125 0.523366,0 0.953125,-0.4297588 0.953125,-0.953125 C 12.748047,5.6797588 12.318288,5.25 11.794922,5.25 Z M 3.171875,8.1230469 c -0.5233662,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.4297588,0.9531251 0.953125,0.9531251 0.5233662,0 0.953125,-0.4297589 0.953125,-0.9531251 0,-0.5233662 -0.4297588,-0.953125 -0.953125,-0.953125 z m 2.875,0 c -0.5233662,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.4297588,0.9531251 0.953125,0.9531251 C 6.5702412,10.029297 7,9.5995381 7,9.0761719 7,8.5528057 6.5702412,8.1230469 6.046875,8.1230469 Z m 2.8554688,0 c -0.5233663,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.4297587,0.9531251 0.953125,0.9531251 0.5233661,0 0.9531249,-0.4297589 0.953125,-0.9531251 0,-0.5233662 -0.4297588,-0.953125 -0.953125,-0.953125 z m 2.9003902,0 c -0.523366,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.429759,0.9531251 0.953125,0.9531251 0.523367,0 0.953125,-0.4297589 0.953125,-0.9531251 0,-0.5233662 -0.429758,-0.953125 -0.953125,-0.953125 z M 3.171875,10.998047 c -0.5233662,0 -0.953125,0.429759 -0.953125,0.953125 0,0.523366 0.4297588,0.953125 0.953125,0.953125 0.5233662,0 0.953125,-0.429759 0.953125,-0.953125 0,-0.523366 -0.4297588,-0.953125 -0.953125,-0.953125 z m 2.875,0 c -0.5233662,0 -0.953125,0.429759 -0.953125,0.953125 0,0.523366 0.4297588,0.953125 0.953125,0.953125 C 6.5702412,12.904297 7,12.474538 7,11.951172 7,11.427806 6.5702412,10.998047 6.046875,10.998047 Z m 2.8554688,0 c -0.5233663,0 -0.953125,0.429759 -0.953125,0.953125 0,0.523366 0.4297587,0.953125 0.953125,0.953125 0.5233661,0 0.9531249,-0.429759 0.953125,-0.953125 0,-0.523366 -0.4297588,-0.953125 -0.953125,-0.953125 z m 2.9003902,0 c -0.523366,0 -0.953125,0.429759 -0.953125,0.953125 0,0.523366 0.429759,0.953125 0.953125,0.953125 0.523367,0 0.953125,-0.429759 0.953125,-0.953125 0,-0.523366 -0.429758,-0.953125 -0.953125,-0.953125 z M 3.5,0 c -0.554,0 -1,0.446 -1,1 v 0.050781 C 1.0853217,1.2909766 0,2.5186658 0,4 v 9 c 0,1.652487 1.3475134,3 3,3 h 9 c 1.652487,0 3,-1.347513 3,-3 V 4 C 15,2.5186658 13.914678,1.2909766 12.5,1.0507812 V 1 c 0,-0.554 -0.446,-1 -1,-1 -0.554,0 -1,0.446 -1,1 h -2 c 0,-0.554 -0.446,-1 -1,-1 -0.554,0 -1,0.446 -1,1 h -2 C 4.5,0.446 4.054,0 3.5,0 Z m 1,2.0996094 h 2 v 0.640625 c 0,0.554 0.446,1 1,1 0.554,0 1,-0.446 1,-1 v -0.640625 h 2 v 0.640625 c 0,0.554 0.446,1 1,1 0.554,0 1,-0.446 1,-1 V 2.1738281 C 13.311725,2.3905225 13.900391,3.11278 13.900391,4 v 9 c 0,1.062113 -0.838278,1.900391 -1.900391,1.900391 H 3 C 1.9378864,14.900391 1.0996094,14.062113 1.0996094,13 V 4 C 1.0996094,3.11278 1.6882747,2.3905225 2.5,2.1738281 v 0.5664063 c 0,0.554 0.446,1 1,1 0.554,0 1,-0.446 1,-1 z\"/></svg>')}.btn-open-cal{outline:none;border:none;background-color:unset;cursor:pointer}.btn-open-cal:disabled{cursor:not-allowed}.btn-open-cal::after{content:'';display:flex;background-color:var(--text--primary, #008561);width:15px;height:16px;-webkit-mask-image:var(--ez-date-input__calendar-image);mask-image:var(--ez-date-input__calendar-image)}.btn-open-cal:disabled:after{background-color:var(--text--disable, #AFB6C0)}.btn-open-cal:enabled:hover::after{background-color:var(--color--primary, #4e4e4e)}ez-text-input{--text-input__input--background-color:var(--ez-date-input__input--background-color, #FFFFFF);--text-input__input--border-color:var(--ez-date-input__input--border-color, #DCE0E8)}";
10
11
 
@@ -177,7 +178,7 @@ const EzDateTimeInput = class {
177
178
  else {
178
179
  this.changeValue(undefined);
179
180
  this.ezCancelWaitingChange.emit();
180
- this.errorMessage = "O valor digitado não é uma data válida";
181
+ this.errorMessage = this.i18n("ez-date-time-input.invalidDate");
181
182
  }
182
183
  }
183
184
  finally {
@@ -215,6 +216,9 @@ const EzDateTimeInput = class {
215
216
  disconnectedCallback() {
216
217
  this._popover.hide();
217
218
  }
219
+ async componentWillLoad() {
220
+ this.i18n = await index$1.initI18n();
221
+ }
218
222
  componentDidLoad() {
219
223
  CSSVarsUtils.CSSVarsUtils.applyVarsTextInput(this._elem, this._textInput);
220
224
  this.setInputValue();
@@ -2,10 +2,11 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-9e5554cb.js');
5
+ const index = require('./index-a7b0c73d.js');
6
6
  const DialogType = require('./DialogType-2114c337.js');
7
7
  const core = require('@sankhyalabs/core');
8
8
  const FocusResolver = require('./FocusResolver-885f2173.js');
9
+ const index$1 = require('./index-02854309.js');
9
10
 
10
11
  const ezDialogCss = ":host{--dialog__container-padding:var(--space--md, 20px);--dialog__btn__close--background-color:var(--title--primary, #2b3a54);--dialog__btn__no--padding-right:var(--space--large, 24px);--dialog__btn__close__image:url('data:image/svg+xml;utf8,<svg width=\"12\" height=\"12\" viewBox=\"0 0 12 12\" xmlns=\"http://www.w3.org/2000/svg%22%3E<path d=\"M 7.0060773,5.995511 11.461972,1.5397722 c 0.132856,-0.1328413 0.207547,-0.3130253 0.207547,-0.5009046 0,-0.18786999 -0.07469,-0.3680541 -0.207547,-0.5009048 -0.132857,-0.13284126 -0.31302,-0.20748126 -0.500927,-0.20748126 -0.187812,0 -0.36807,0.07464 -0.500926,0.20748126 L 6.0042244,4.9937015 1.5482921,0.5379628 C 1.4154357,0.40512154 1.2352533,0.33048154 1.0473657,0.33048154 c -0.18787813,0 -0.36807,0.07464 -0.50092647,0.20748126 -0.13285646,0.1328507 -0.20749026,0.31303481 -0.20749026,0.5009048 0,0.1878793 0.0746338,0.3680633 0.20749026,0.5009046 L 5.0023715,5.995511 0.54643923,10.452213 c -0.0676086,0.06534 -0.12151598,0.14352 -0.15859681,0.229916 -0.0370714,0.08639 -0.0565645,0.1794 -0.0573369,0.27335 -7.724e-4,0.09404 0.0171873,0.187331 0.0528423,0.274293 0.0356455,0.08705 0.0882688,0.166087 0.15479148,0.23256 0.0665321,0.06648 0.14562277,0.11897 0.2326735,0.154567 0.0870507,0.0356 0.18031463,0.05344 0.2743433,0.05259 0.094029,-8.5e-4 0.1869528,-0.02049 0.2733331,-0.0576 0.08639,-0.0372 0.1645078,-0.09121 0.2298029,-0.158817 L 6.0042244,6.9973204 10.460119,11.453078 c 0.132856,0.132851 0.313114,0.207444 0.500926,0.207444 0.187907,0 0.36807,-0.07459 0.500927,-0.207444 0.132856,-0.13285 0.207547,-0.313006 0.207547,-0.500904 0,-0.187898 -0.07469,-0.368054 -0.207547,-0.500905 z\"/></svg>');--dialog__title--font-pattern:var(--font-pattern, \"Roboto\");--dialog__title--padding-left:var(--space--small, 6px);--dialog__title__container--padding-bottom:var(--space--medium, 12px);--dialog__title--weight--large:var(--text-weight--large, 600);--dialog__body--font-pattern:var(--font-pattern, \"Roboto\");--dialog__body--text-shadow:var(--text-shadow, \"0 0 0 #353535, 0 0 1px transparent\");--dialog__body--text-weight--medium:var(--text-weight--medium, 400);--dialog__body--padding-bottom:var(--space--medium, 12px);--dialog__body--font-size:var(--text--medium, 14px);--dialog__body--color:var(--text--primary, #626e82);--dialog__icon--color:var(--text--inverted, #fff);--dialog__critical--background-color:var(--color--alert-error-800, #BD0025);--dialog__warning--background-color:var(--color--alert-warning-500, #EFB103);--dialog__success--background-color:var(--color--alert-success-500, #00523c);--dialog-z-index:var(--elevation--100, 100);--dialog--warning__image:url('data: image/svg+xml;utf8,<svg width=\"15\" height=\"15\" viewBox=\"0 0 15 15\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M 7.5,0 0,13 h 15 z m 0,2.73684 5.1341,8.89476 H 2.36591 Z M 6.81818,5.47368 V 8.21053 H 8.18182 V 5.47368 Z m 0,4.10527 V 10.9474 H 8.18182 V 9.57895\"/></svg>');--dialog--critical__image:url('data: image/svg+xml;utf8,<svg width=\"13\" height=\"13\" viewBox=\"0 0 13 13\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M 7.6534493,6.4948538 12.762051,1.3864299 C 12.914368,1.2341297 13,1.027552 13,0.81215179 13,0.59676225 12.914369,0.39018443 12.762051,0.23787352 12.609733,0.08557341 12.40318,0 12.187747,0 11.972425,0 11.765762,0.08557341 11.613445,0.23787352 L 6.5048431,5.3462975 1.3961977,0.23787352 C 1.2438802,0.08557341 1.0373043,0 0.82189458,0 0.60649572,0 0.39990901,0.08557341 0.24759147,0.23787352 0.09527396,0.39018443 0.00970766,0.59676225 0.00970766,0.81215179 c 0,0.21540021 0.0855663,0.42197791 0.23788381,0.57427811 L 5.3562369,6.4948538 0.24759147,11.604381 c -0.0775121,0.07492 -0.13931586,0.164543 -0.18182835,0.263595 -0.04250169,0.09905 -0.064850182,0.205678 -0.0657357237,0.313391 -8.8554258e-4,0.107813 0.0197049337,0.214771 0.0605827337,0.314472 0.04086693,0.0998 0.10119858,0.190415 0.17746563,0.266625 0.0762779,0.07622 0.16695386,0.136398 0.26675594,0.177208 0.099802,0.04082 0.20672745,0.06127 0.31452961,0.06029 0.1078025,-9.53e-4 0.21433799,-0.0235 0.31337139,-0.06604 0.099045,-0.04265 0.1886052,-0.104571 0.263465,-0.182081 L 6.5048431,7.6434102 11.613445,12.751855 c 0.152317,0.152312 0.35898,0.237831 0.574302,0.237831 0.215433,0 0.421986,-0.08552 0.574304,-0.237831 C 12.914368,12.599545 13,12.393 13,12.177578 13,11.962157 12.91437,11.75561 12.762051,11.603299 Z\"/></svg>')}h2{margin-block-start:0;margin-block-end:0;margin-inline-start:0px;margin-inline-end:0px}.overlay{position:fixed;display:flex;top:0px;z-index:var(--dialog-z-index);left:0px;width:100%;box-sizing:border-box;height:100vh;background-color:rgba(var(--rgb-background--overlay), var(--opacity--soft));backdrop-filter:blur(var(--background-blur--medium))}.dialog{display:flex;width:80%;position:absolute;top:50%;left:50%;margin-right:-50%;box-sizing:border-box;transform:translate(-50%, -50%);box-shadow:0px 0px 16px rgba(0, 38, 111, 0.122)}@media screen and (min-width: 768px){.dialog{width:50%}}@media screen and (min-width: 992px){.dialog{width:33.33333%}}.dialog__container{width:100%;background:#FFFF;border-radius:0px 6px 6px 0px;box-sizing:border-box;padding:var(--dialog__container-padding)}.dialog__container--default{border-radius:6px 6px 6px 6px}.dialog__critical--indicator{box-sizing:border-box;width:12px;border-radius:6px 0px 0px 6px;background-color:var(--dialog__critical--background-color)}.dialog__warning--indicator{width:12px;border-radius:6px 0px 0px 6px;box-sizing:border-box;background-color:var(--dialog__warning--background-color)}.dialog__success--indicator{width:12px;border-radius:6px 0px 0px 6px;box-sizing:border-box;background-color:var(--dialog__success--background-color)}.message{font-size:var(--dialog__body--font-size);font-weight:var(--dialog__body--text-weight--medium);font-family:var(--dialog__body--font-pattern);text-shadow:var(--dialog__body--text-shadow);padding-bottom:var(--dialog__body--padding-bottom);color:var(--dialog__body--color);max-height:30vh;content-visibility:auto;margin-bottom:var(--space--medium);overflow-y:auto}.changeable__icon__container{background:var(--dialog__warning--background-color);display:flex;justify-content:center;align-items:center;min-width:26px;min-height:26px;border-radius:50%}.changeable__icon{--ez-icon--color:var(--dialog__icon--color)}.changeable__icon__container.title-icon--critical{background-color:var(--dialog__critical--background-color)}.changeable__icon__container.title-icon--success{background-color:var(--dialog__success--background-color)}.changeable__icon__container.title-icon--warn{background-color:var(--dialog__warning--background-color)}.changeable__icon__container.title-icon--warn ez-icon{transform:translateY(-1px)}.title{display:flex;font-family:var(--dialog__title--font-pattern);margin:0;font-weight:var(--dialog__title--weight--large);color:var(--title--primary)}.title__container{display:flex;padding-bottom:var(--dialog__title__container--padding-bottom)}.title__box{display:flex;width:100%;align-items:center;align-self:center}.title__label{padding-left:var(--dialog__title--padding-left)}.title__label--no-icon{padding-left:0}.btn-close{justify-content:flex-end;align-self:flex-start;align-items:flex-start;display:flex;outline:none;width:10%;border:none;background-color:unset;cursor:pointer}.btn-close::after{content:'';display:flex;background-color:var(--dialog__btn__close--background-color);width:12px;height:12px;-webkit-mask-image:var(--dialog__btn__close__image);mask-image:var(--dialog__btn__close__image)}.title-icon::after{content:'';display:flex;background-color:#FFFF;width:15px;height:15px;-webkit-mask-image:var(--dialog--warning__image);mask-image:var(--dialog--warning__image)}.button-yes-no__container{display:flex;box-sizing:border-box;align-self:center;align-items:center;justify-content:flex-end}.button__cancel{padding-right:var(--dialog__btn__no--padding-right)}.button__confirm{--ez-button--background-color:var(--color--primary);--ez-button--color:var(--color--inverted);--ez-button--hover--background-color:var(--color--primary-600);--ez-button--hover-color:var(--color--inverted)}.button__confirm--danger{--ez-button--background-color:var(--color--alert-error-800, #BD0025);--ez-button--color:var(--color--inverted);--ez-button--hover--background-color:var(--color-alert--error-900, #a10020);--ez-button--hover-color:var(--color--inverted)}.button__confirm--container{display:flex;justify-content:flex-end}.row{width:100%;display:flex;flex-wrap:wrap}.col{display:flex;flex-wrap:wrap;align-self:flex-start;box-sizing:border-box}.col--stretch{align-self:stretch}.col--undefined{width:unset}.col--nowrap{flex-wrap:nowrap}@media screen and (min-width: 320px){.col--sd-1{width:8.33333%}.col--sd-2{width:16.66667%}.col--sd-3{width:25%}.col--sd-4{width:33.33333%}.col--sd-5{width:41.66667%}.col--sd-6{width:50%}.col--sd-7{width:58.33333%}.col--sd-8{width:66.66667%}.col--sd-9{width:75%}.col--sd-10{width:83.33333%}.col--sd-11{width:91.66667%}.col--sd-12{width:100%}}@media screen and (min-width: 480px){.col--pn-1{width:8.33333%}.col--pn-2{width:16.66667%}.col--pn-3{width:25%}.col--pn-4{width:33.33333%}.col--pn-5{width:41.66667%}.col--pn-6{width:50%}.col--pn-7{width:58.33333%}.col--pn-8{width:66.66667%}.col--pn-9{width:75%}.col--pn-10{width:83.33333%}.col--pn-11{width:91.66667%}.col--pn-12{width:100%}}@media screen and (min-width: 768px){.col--tb-1{width:8.33333%}.col--tb-2{width:16.66667%}.col--tb-3{width:25%}.col--tb-4{width:33.33333%}.col--tb-5{width:41.66667%}.col--tb-6{width:50%}.col--tb-7{width:58.33333%}.col--tb-8{width:66.66667%}.col--tb-9{width:75%}.col--tb-10{width:83.33333%}.col--tb-11{width:91.66667%}.col--tb-12{width:100%}}@media screen and (min-width: 992px){.col--md-1{width:8.33333%}.col--md-2{width:16.66667%}.col--md-3{width:25%}.col--md-4{width:33.33333%}.col--md-5{width:41.66667%}.col--md-6{width:50%}.col--md-7{width:58.33333%}.col--md-8{width:66.66667%}.col--md-9{width:75%}.col--md-10{width:83.33333%}.col--md-11{width:91.66667%}.col--md-12{width:100%}}@media screen and (min-width: 1200px){.col--ld-1{width:8.33333%}.col--ld-2{width:16.66667%}.col--ld-3{width:25%}.col--ld-4{width:33.33333%}.col--ld-5{width:41.66667%}.col--ld-6{width:50%}.col--ld-7{width:58.33333%}.col--ld-8{width:66.66667%}.col--ld-9{width:75%}.col--ld-10{width:83.33333%}.col--ld-11{width:91.66667%}.col--ld-12{width:100%}}";
11
12
 
@@ -29,8 +30,6 @@ const EzDialog = class {
29
30
  this.ezCancel = index.createEvent(this, "ezCancel", 7);
30
31
  this.ezAccept = index.createEvent(this, "ezAccept", 7);
31
32
  this.PRIMARY_BUTTON_ID = "EZ_DIALOG_PRIMARY_BUTTON";
32
- this.labelConfirm = 'Sim';
33
- this.labelCancel = 'Não';
34
33
  this.btnConfirmDanger = false;
35
34
  this._messageQueue = [];
36
35
  this._canFocusOnPrimaryBtn = false;
@@ -147,6 +146,9 @@ const EzDialog = class {
147
146
  getClassTitleLabel(message) {
148
147
  return this.getIconElement(message) == undefined ? "title title__label title__label--no-icon" : "title title__label";
149
148
  }
149
+ async componentWillLoad() {
150
+ this.i18n = await index$1.initI18n();
151
+ }
150
152
  componentWillRender() {
151
153
  if (!this._currentMessage) {
152
154
  if (this._messageQueue.length > 0) {
@@ -154,7 +156,7 @@ const EzDialog = class {
154
156
  }
155
157
  else {
156
158
  if (this.opened) {
157
- this._currentMessage = new Message(this.ezTitle, this.message, this.dialogType, this.confirm, this.personalizedIconPath, this.labelCancel, this.labelConfirm, this.btnConfirmDanger, null, this.beforeClose);
159
+ this._currentMessage = new Message(this.ezTitle, this.message, this.dialogType, this.confirm, this.personalizedIconPath, this.i18n("app.no"), this.i18n("app.yes"), this.btnConfirmDanger, null, this.beforeClose);
158
160
  }
159
161
  }
160
162
  }
@@ -162,9 +164,9 @@ const EzDialog = class {
162
164
  componentDidLoad() {
163
165
  core.ElementIDUtils.addIDInfo(this._element);
164
166
  this._keyboardManager = new core.KeyboardManager({ propagate: false, element: this._element })
165
- .bind("Enter", () => this.handleButtonClick(true), { description: "Botão de confirmação ou OK", element: this._element })
166
- .bind("Escape", () => this.handleButtonClick(false), { description: "Botão de fechar ou x", element: this._element })
167
- .bind("Esc", () => this.handleButtonClick(false), { description: "Botão de fechar ou x", element: this._element });
167
+ .bind("Enter", () => this.handleButtonClick(true), { description: this.i18n("ez-dialog.confirmButton"), element: this._element })
168
+ .bind("Escape", () => this.handleButtonClick(false), { description: this.i18n("ez-dialog.closeButton"), element: this._element })
169
+ .bind("Esc", () => this.handleButtonClick(false), { description: this.i18n("ez-dialog.closeButton"), element: this._element });
168
170
  }
169
171
  componentDidRender() {
170
172
  this.manageOverlay();
@@ -2,9 +2,10 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-9e5554cb.js');
5
+ const index = require('./index-a7b0c73d.js');
6
6
  const core = require('@sankhyalabs/core');
7
7
  const ezListHelper = require('./ezListHelper-0d3970b4.js');
8
+ const index$1 = require('./index-02854309.js');
8
9
 
9
10
  function moveItems(selectedItemsList, itemsList, foward) {
10
11
  if (!selectedItemsList.length)
@@ -129,6 +130,9 @@ const EzDoubleList = class {
129
130
  return;
130
131
  this.ezRightListChanged.emit(newValue);
131
132
  }
133
+ async componentWillLoad() {
134
+ this.i18n = await index$1.initI18n();
135
+ }
132
136
  async handleChangeLeft({ detail }) {
133
137
  if (!detail.to.getAttribute('id') || detail.to.getAttribute('id') !== this.RIGHT_LIST_ID) {
134
138
  this.leftList = [...this.reorderArray(detail.dataSource, detail.selectItens, detail.newIndex)];
@@ -305,7 +309,9 @@ const EzDoubleList = class {
305
309
  title: this.leftTitle,
306
310
  isFiltering: this.isFilteringLeft,
307
311
  filteredList: this.leftFilteredList,
308
- emptyMessage: !!((_a = this.emptyMessage) === null || _a === void 0 ? void 0 : _a.LEFT_LIST) ? this.emptyMessage.LEFT_LIST : `Nenhum ${this.entityLabel} disponível`,
312
+ emptyMessage: !!((_a = this.emptyMessage) === null || _a === void 0 ? void 0 : _a.LEFT_LIST)
313
+ ? this.emptyMessage.LEFT_LIST
314
+ : this.i18n("ez-double-list.noItemsAvailable", { entity: this.entityLabel }),
309
315
  slotConfig: {
310
316
  itemRightSlotBuilder: (_c = (_b = this.slotsListBuilder) === null || _b === void 0 ? void 0 : _b.LEFT_LIST) === null || _c === void 0 ? void 0 : _c.itemRightSlotBuilder,
311
317
  itemLeftSlotBuilder: (_e = (_d = this.slotsListBuilder) === null || _d === void 0 ? void 0 : _d.LEFT_LIST) === null || _e === void 0 ? void 0 : _e.itemLeftSlotBuilder,
@@ -318,13 +324,15 @@ const EzDoubleList = class {
318
324
  onChoose: this.handleChooseLeft.bind(this),
319
325
  },
320
326
  })), !this.useOnlyRightList &&
321
- index.h("div", { class: 'actions__column' }, index.h("ez-button", { mode: "icon", iconName: "dual-chevron-right", enabled: this.enableTransferAllToRight(), title: `Mover todos para ${this.rightListLabel}`, size: "small", onClick: this.handleTransferAllToRight.bind(this) }), index.h("ez-button", { mode: "icon", iconName: "chevron-right", enabled: this.enableTransferToRight(), title: `Mover para ${this.rightListLabel}`, size: "small", onClick: this.handleTransferToRight.bind(this) }), index.h("ez-button", { mode: "icon", iconName: "chevron-left", enabled: this.enableTransferToLeft(), title: `Mover para ${this.leftListLabel}`, size: "small", onClick: this.handleTransferToLeft.bind(this) }), index.h("ez-button", { mode: "icon", iconName: "dual-chevron-left", enabled: this.enableTransferAllToLeft(), title: `Mover todos para ${this.leftListLabel}`, size: "small", onClick: this.handleTransferAllToLeft.bind(this) })), index.h("div", { class: "list__container" }, this.rightList && this.renderList({
327
+ index.h("div", { class: 'actions__column' }, index.h("ez-button", { mode: "icon", iconName: "dual-chevron-right", enabled: this.enableTransferAllToRight(), title: this.i18n("ez-double-list.moveAllTo", { list: this.rightListLabel }), size: "small", onClick: this.handleTransferAllToRight.bind(this) }), index.h("ez-button", { mode: "icon", iconName: "chevron-right", enabled: this.enableTransferToRight(), title: this.i18n("ez-double-list.moveTo", { list: this.rightListLabel }), size: "small", onClick: this.handleTransferToRight.bind(this) }), index.h("ez-button", { mode: "icon", iconName: "chevron-left", enabled: this.enableTransferToLeft(), title: this.i18n("ez-double-list.moveTo", { list: this.leftListLabel }), size: "small", onClick: this.handleTransferToLeft.bind(this) }), index.h("ez-button", { mode: "icon", iconName: "dual-chevron-left", enabled: this.enableTransferAllToLeft(), title: this.i18n("ez-double-list.moveAllTo", { list: this.leftListLabel }), size: "small", onClick: this.handleTransferAllToLeft.bind(this) })), index.h("div", { class: "list__container" }, this.rightList && this.renderList({
322
328
  idSortableList: this.RIGHT_LIST_ID,
323
329
  list: this.rightList,
324
330
  title: this.rightTitle,
325
331
  isFiltering: this.isFilteringRight,
326
332
  filteredList: this.rightFilteredList,
327
- emptyMessage: !!((_f = this.emptyMessage) === null || _f === void 0 ? void 0 : _f.RIGHT_LIST) ? this.emptyMessage.RIGHT_LIST : `Nenhum ${this.entityLabel} selecionado`,
333
+ emptyMessage: !!((_f = this.emptyMessage) === null || _f === void 0 ? void 0 : _f.RIGHT_LIST)
334
+ ? this.emptyMessage.RIGHT_LIST
335
+ : this.i18n("ez-double-list.noItemsSelected", { entity: this.entityLabel }),
328
336
  slotConfig: {
329
337
  itemRightSlotBuilder: (_h = (_g = this.slotsListBuilder) === null || _g === void 0 ? void 0 : _g.RIGHT_LIST) === null || _h === void 0 ? void 0 : _h.itemRightSlotBuilder,
330
338
  itemLeftSlotBuilder: (_k = (_j = this.slotsListBuilder) === null || _j === void 0 ? void 0 : _j.RIGHT_LIST) === null || _k === void 0 ? void 0 : _k.itemLeftSlotBuilder,
@@ -336,7 +344,7 @@ const EzDoubleList = class {
336
344
  onDoubleClick: this.handleTransferToLeft.bind(this),
337
345
  onChoose: this.handleChooseRight.bind(this),
338
346
  },
339
- })), index.h("div", { class: 'actions__column' }, index.h("ez-button", { mode: "icon", iconName: "dual-chevron-up", enabled: this.enableMoveUp(true), title: "Mover para primeira posi\u00E7\u00E3o", size: "small", onClick: this.handleMoveToTop.bind(this) }), index.h("ez-button", { mode: "icon", iconName: "chevron-up", enabled: this.enableMoveUp(), title: "Mover para cima", size: "small", onClick: this.handleMoveUp.bind(this) }), index.h("ez-button", { mode: "icon", iconName: "chevron-down", enabled: this.enableMoveDown(), title: "Mover para baixo", size: "small", onClick: this.handleMoveDown.bind(this) }), index.h("ez-button", { mode: "icon", iconName: "dual-chevron-down", enabled: this.enableMoveDown(true), title: "Mover para \u00FAltima posi\u00E7\u00E3o", size: "small", onClick: this.handleMoveToBottom.bind(this) }))));
347
+ })), index.h("div", { class: 'actions__column' }, index.h("ez-button", { mode: "icon", iconName: "dual-chevron-up", enabled: this.enableMoveUp(true), title: this.i18n("ez-double-list.moveToFirstPosition"), size: "small", onClick: this.handleMoveToTop.bind(this) }), index.h("ez-button", { mode: "icon", iconName: "chevron-up", enabled: this.enableMoveUp(), title: this.i18n("ez-double-list.moveUp"), size: "small", onClick: this.handleMoveUp.bind(this) }), index.h("ez-button", { mode: "icon", iconName: "chevron-down", enabled: this.enableMoveDown(), title: this.i18n("ez-double-list.moveDown"), size: "small", onClick: this.handleMoveDown.bind(this) }), index.h("ez-button", { mode: "icon", iconName: "dual-chevron-down", enabled: this.enableMoveDown(true), title: this.i18n("ez-double-list.moveToLastPosition"), size: "small", onClick: this.handleMoveToBottom.bind(this) }))));
340
348
  }
341
349
  static get watchers() { return {
342
350
  "leftList": ["observeLeftList"],
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-9e5554cb.js');
5
+ const index = require('./index-a7b0c73d.js');
6
6
  const core = require('@sankhyalabs/core');
7
7
 
8
8
  const DropdownItem = ({ item, hasIcon, hasChildren, isLockedLevels, onSubActionClick }) => {
@@ -0,0 +1,34 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-a7b0c73d.js');
6
+ const core = require('@sankhyalabs/core');
7
+
8
+ const ezEmptyCardCss = ":host{--ez-empty-card--width:335px;--ez-empty-card--height:155px;--ez-empty-card--padding:var(--space--24, 24px);--ez-empty-card--border-radius:var(--border--radius-24, 24px);--ez-empty-card--background-color:var(--color--gray-70, #ffffff)}div{width:var(--ez-empty-card--custom-width, var(--ez-empty-card--width));height:var(--ez-empty-card--custom-height, var(--ez-empty-card--height));border-radius:var(--ez-empty-card--border-radius);background-color:var(--ez-empty-card--background-color);padding:var(--ez-empty-card--padding);display:block;overflow:hidden;outline:none;box-shadow:none;border:none;box-sizing:border-box}.gray{--ez-empty-card--background-color:var(--color--gray-80)}.green{--ez-empty-card--background-color:var(--color--ocean-green-90)}.yellow{--ez-empty-card--background-color:var(--color--yellow-100)}.red{--ez-empty-card--background-color:var(--color--red-100)}.petroleum{--ez-empty-card--background-color:var(--color--petroleum-90)}";
9
+
10
+ const EzEmptyCard = class {
11
+ constructor(hostRef) {
12
+ index.registerInstance(this, hostRef);
13
+ this.color = "default";
14
+ this.height = undefined;
15
+ this.width = undefined;
16
+ }
17
+ componentDidRender() {
18
+ if (this._element) {
19
+ core.ElementIDUtils.addIDInfo(this._element);
20
+ }
21
+ if (this._container) {
22
+ const dataInfo = { id: 'container' };
23
+ core.ElementIDUtils.addIDInfo(this._container, 'empty-card', dataInfo);
24
+ }
25
+ }
26
+ render() {
27
+ const customStyleVars = Object.assign(Object.assign({}, (this.height ? { '--ez-empty-card--custom-height': `${this.height}px` } : {})), (this.width ? { '--ez-empty-card--custom-width': `${this.width}px` } : {}));
28
+ return (index.h(index.Host, { style: customStyleVars }, index.h("div", { ref: element => this._container = element, class: `card_container ${this.color}` }, index.h("slot", null))));
29
+ }
30
+ get _element() { return index.getElement(this); }
31
+ };
32
+ EzEmptyCard.style = ezEmptyCardCss;
33
+
34
+ exports.ez_empty_card = EzEmptyCard;
@@ -2,8 +2,9 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-9e5554cb.js');
5
+ const index = require('./index-a7b0c73d.js');
6
6
  const core = require('@sankhyalabs/core');
7
+ const index$1 = require('./index-02854309.js');
7
8
 
8
9
  const ezFileItemCss = ":host{display:flex;width:100%;--ez-file-item--height:42px;--ez-file-item--padding:9px;--ez-file-item--border-radius:var(--border--radius-medium, 12px);--ez-file-item--border-color:var(--color--strokes, #DCE0E8);--ez-file-item--border-style:var(--border--small, 1px solid);--ez-file-item--font-family:var(--font-pattern, Arial);--ez-file-item--font-size:var(--text--medium, 14px);--ez-file-item--font-weight:var(--text-weight--medium, 400);--ez-file-item--color:var(--title--primary, #2B3A54);--ez-file-item__file-size--font-weight:var(--text-weight--large, 600);--ez-file-item__file-size--color:var(--color--primary, #008561);--ez-file-item__background-progress--color:var(--color--primary-300, E2F4EF);--ez-file-item--icon-color:var(--title--primary, #2B3A54)}.box{display:flex;box-sizing:border-box;position:relative;align-items:center;justify-content:space-between;width:100%;padding:var(--ez-file-item--padding);border:var(--ez-file-item--border-color) var(--ez-file-item--border-style);border-radius:var(--ez-file-item--border-radius);height:var(--ez-file-item--height)}.box::before{content:\"\";position:absolute;top:0;left:0;width:100%;height:100%;clip-path:inset(2px calc(var(--ez-file-item--upload-progress, 0%) + 2px) 2px 2px round calc(var(--ez-file-item--border-radius) - 4px));background-color:var(--ez-file-item__background-progress--color)}.content{display:flex;align-items:center;z-index:0;overflow:hidden}.file-name{text-overflow:ellipsis;overflow:hidden;white-space:nowrap;font-family:var(--ez-file-item--font-family);font-size:var(--ez-file-item--font-size);font-weight:var(--ez-file-item--font-weight);color:var(--ez-file-item--color)}.file-type-icon{flex-shrink:0;--ez-icon--color:var(--ez-file-item--icon-color);padding-right:var(--ez-file-item--padding)}.file-size{padding-left:2px;overflow:hidden;flex-shrink:0;white-space:nowrap;font-family:var(--ez-file-item--font-family);font-size:var(--ez-file-item--font-size);font-weight:var(--ez-file-item__file-size--font-weight);color:var(--ez-file-item__file-size--color)}.btn-remove{cursor:pointer;flex-shrink:0;--ez-icon--color:var(--ez-file-item--icon-color)}";
9
10
 
@@ -20,7 +21,7 @@ const EzFileItem = class {
20
21
  }
21
22
  observeProgress(newProgress) {
22
23
  if (newProgress < 0 || newProgress > 100) {
23
- throw new Error("O progresso de upload deve ser um número entre 0 e 100.");
24
+ throw new Error(this.i18n("ez-file-item.invalidProgress"));
24
25
  }
25
26
  this._element.style.setProperty("--ez-file-item--upload-progress", `${100 - newProgress}%`);
26
27
  }
@@ -41,14 +42,16 @@ const EzFileItem = class {
41
42
  }
42
43
  return FILE_TYPE_ICONS[extension] || DEFAULT_FILE_TYPE_ICON;
43
44
  }
45
+ async componentWillLoad() {
46
+ this.i18n = await index$1.initI18n();
47
+ }
44
48
  render() {
45
49
  this._element.title = `${this.fileName} ${this.getFileSize()}`;
46
50
  core.ElementIDUtils.addIDInfoIfNotExists(this._element, 'ezFileIcon');
47
- return (index.h("div", { class: "box", onClick: () => this.ezClick.emit(this.fileName) }, index.h("div", { class: "content" }, index.h("ez-icon", { "data-element-id": core.ElementIDUtils.getInternalIDInfo("fileIcon"), class: "file-type-icon", size: "medium", "icon-name": this.getIconName() }), index.h("label", { class: "file-name" }, this.fileName), index.h("label", { class: "file-size" }, this.getFileSize())), this.canRemove ?
48
- index.h("ez-icon", { "data-element-id": core.ElementIDUtils.getInternalIDInfo("remove"), class: "btn-remove", size: "medium", "icon-name": "close", onClick: evt => {
49
- this.ezRemove.emit(this.fileName);
50
- evt.stopPropagation();
51
- } }) : undefined));
51
+ return (index.h("div", { class: "box", onClick: () => this.ezClick.emit(this.fileName) }, index.h("div", { class: "content" }, index.h("ez-icon", { "data-element-id": core.ElementIDUtils.getInternalIDInfo("fileIcon"), class: "file-type-icon", size: "medium", "icon-name": this.getIconName() }), index.h("label", { class: "file-name" }, this.fileName), index.h("label", { class: "file-size" }, this.getFileSize())), this.canRemove ? (index.h("ez-icon", { "data-element-id": core.ElementIDUtils.getInternalIDInfo("remove"), class: "btn-remove", size: "medium", "icon-name": "close", title: this.i18n("app.remove"), onClick: evt => {
52
+ this.ezRemove.emit(this.fileName);
53
+ evt.stopPropagation();
54
+ } })) : undefined));
52
55
  }
53
56
  get _element() { return index.getElement(this); }
54
57
  static get watchers() { return {
@@ -0,0 +1,129 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-a7b0c73d.js');
6
+ const core = require('@sankhyalabs/core');
7
+ const CSSVarsUtils = require('./CSSVarsUtils-f20973d1.js');
8
+
9
+ const ezFilterInputCss = ":host{display:block;width:100%}";
10
+
11
+ const EzFilterInput = class {
12
+ constructor(hostRef) {
13
+ index.registerInstance(this, hostRef);
14
+ this.ezChange = index.createEvent(this, "ezChange", 7);
15
+ this.ezSearching = index.createEvent(this, "ezSearching", 7);
16
+ this.ezFocusIn = index.createEvent(this, "ezFocusIn", 7);
17
+ this._searchingText = "";
18
+ this.handleFocus = () => {
19
+ if (this._searchingText === "") {
20
+ this._textInput.value = "";
21
+ }
22
+ else {
23
+ this._textInput.value = this._searchingText;
24
+ }
25
+ this.ezFocusIn.emit();
26
+ };
27
+ this.label = undefined;
28
+ this.value = undefined;
29
+ this.enabled = true;
30
+ this.errorMessage = undefined;
31
+ this.restrict = undefined;
32
+ this.mode = "regular";
33
+ this.asyncSearch = false;
34
+ this.canShowError = true;
35
+ this.autoFocus = false;
36
+ }
37
+ observeLabel() {
38
+ if (this._textInput) {
39
+ this._textInput.label = this.label;
40
+ }
41
+ }
42
+ observeErrorMessage() {
43
+ if (this._textInput) {
44
+ this._textInput.errorMessage = this.errorMessage;
45
+ }
46
+ }
47
+ observeValue(newValue, oldValue) {
48
+ if (this._textInput && newValue != oldValue) {
49
+ this._textInput.value = newValue;
50
+ this.ezChange.emit(newValue);
51
+ }
52
+ }
53
+ /**
54
+ * Aplica o foco no campo.
55
+ */
56
+ async setFocus(options) {
57
+ this._textInput.setFocus(options);
58
+ }
59
+ /**
60
+ * Remove o foco do campo.
61
+ */
62
+ async setBlur() {
63
+ this._textInput.setBlur();
64
+ }
65
+ /**
66
+ * Retorna se o conteúdo é inválido.
67
+ */
68
+ async isInvalid() {
69
+ return typeof this.errorMessage === "string" && this.errorMessage.trim() !== "";
70
+ }
71
+ /**
72
+ * Método responsável por setar um novo valor ao campo.
73
+ */
74
+ async setValue(newValue) {
75
+ if (!this.asyncSearch || this._textInput == undefined) {
76
+ return;
77
+ }
78
+ if (newValue !== this.value) {
79
+ this.value = newValue;
80
+ this._searchingText = "";
81
+ }
82
+ else {
83
+ this._textInput.value = newValue;
84
+ }
85
+ }
86
+ /**
87
+ * Método responsável por resetar o valor do campo para o ultimo valor inputado.
88
+ */
89
+ async endSearch() {
90
+ if (!this.asyncSearch || this._textInput == undefined) {
91
+ return;
92
+ }
93
+ if (this._textInput.value !== this.value) {
94
+ this._textInput.value = this.value;
95
+ }
96
+ }
97
+ handleChange(evt) {
98
+ const newValue = evt.detail;
99
+ this.errorMessage = "";
100
+ if (this.asyncSearch) {
101
+ this._searchingText = newValue;
102
+ this.ezSearching.emit(newValue);
103
+ }
104
+ else if (newValue !== this.value) {
105
+ this.value = newValue;
106
+ }
107
+ }
108
+ componentDidLoad() {
109
+ CSSVarsUtils.CSSVarsUtils.applyVarsTextInput(this._elem, this._textInput);
110
+ if (this.autoFocus) {
111
+ requestAnimationFrame(() => {
112
+ this.setFocus({ selectText: true });
113
+ });
114
+ }
115
+ }
116
+ render() {
117
+ core.ElementIDUtils.addIDInfoIfNotExists(this._elem, 'input');
118
+ return (index.h("ez-text-input", { "data-element-id": core.ElementIDUtils.getInternalIDInfo("textInput"), ref: elem => this._textInput = elem, label: this.label, onEzChange: evt => this.handleChange(evt), value: this.value, enabled: this.enabled, errorMessage: this.errorMessage, restrict: this.restrict, mode: this.mode, onFocusin: this.handleFocus, canShowError: this.canShowError }, index.h("ez-icon", { slot: "leftIcon", iconName: "search" })));
119
+ }
120
+ get _elem() { return index.getElement(this); }
121
+ static get watchers() { return {
122
+ "label": ["observeLabel"],
123
+ "errorMessage": ["observeErrorMessage"],
124
+ "value": ["observeValue"]
125
+ }; }
126
+ };
127
+ EzFilterInput.style = ezFilterInputCss;
128
+
129
+ exports.ez_filter_input = EzFilterInput;