@sankhyalabs/ezui 6.1.0-dev.3 → 6.1.0-dev.31

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 (407) hide show
  1. package/dist/cjs/{ApplicationUtils-c9d1205c.js → ApplicationUtils-d45368f4.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-08a85285.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 +2 -1
  7. package/dist/cjs/ez-alert-list.cjs.entry.js +5 -3
  8. package/dist/cjs/ez-avatar.cjs.entry.js +6 -1
  9. package/dist/cjs/ez-calendar.cjs.entry.js +7 -6
  10. package/dist/cjs/ez-card-item_2.cjs.entry.js +1 -1
  11. package/dist/cjs/ez-chart.cjs.entry.js +3 -18
  12. package/dist/cjs/ez-chip.cjs.entry.js +52 -47
  13. package/dist/cjs/ez-collapsible-box.cjs.entry.js +13 -10
  14. package/dist/cjs/{ez-combo-box-list_3.cjs.entry.js → ez-combo-box-list_4.cjs.entry.js} +290 -4
  15. package/dist/cjs/ez-combo-box.cjs.entry.js +32 -14
  16. package/dist/cjs/ez-date-input.cjs.entry.js +6 -2
  17. package/dist/cjs/ez-date-time-input.cjs.entry.js +6 -2
  18. package/dist/cjs/ez-dialog.cjs.entry.js +8 -6
  19. package/dist/cjs/ez-double-list.cjs.entry.js +12 -4
  20. package/dist/cjs/ez-empty-card.cjs.entry.js +34 -0
  21. package/dist/cjs/ez-file-item.cjs.entry.js +9 -6
  22. package/dist/cjs/ez-filter-input.cjs.entry.js +129 -0
  23. package/dist/cjs/ez-form-view.cjs.entry.js +12 -4
  24. package/dist/cjs/ez-form.cjs.entry.js +7 -5
  25. package/dist/cjs/ez-grid.cjs.entry.js +169 -133
  26. package/dist/cjs/ez-guide-navigator.cjs.entry.js +5 -1
  27. package/dist/cjs/ez-icon.cjs.entry.js +1 -1
  28. package/dist/cjs/ez-link-builder_6.cjs.entry.js +315 -0
  29. package/dist/cjs/ez-list.cjs.entry.js +4 -2
  30. package/dist/cjs/ez-modal-container.cjs.entry.js +6 -2
  31. package/dist/cjs/ez-modal.cjs.entry.js +5 -1
  32. package/dist/cjs/ez-multi-selection-list.cjs.entry.js +9 -5
  33. package/dist/cjs/ez-number-input.cjs.entry.js +5 -1
  34. package/dist/cjs/ez-popover-plus_3.cjs.entry.js +5 -0
  35. package/dist/cjs/ez-rich-toolbar-item.cjs.entry.js +27 -0
  36. package/dist/cjs/ez-search-plus.cjs.entry.js +18 -9
  37. package/dist/cjs/ez-search-result-list.cjs.entry.js +24 -7
  38. package/dist/cjs/ez-search.cjs.entry.js +8 -9
  39. package/dist/cjs/ez-sidebar-navigator.cjs.entry.js +5 -7
  40. package/dist/cjs/ez-skeleton.cjs.entry.js +5 -3
  41. package/dist/cjs/ez-sortable-list.cjs.entry.js +12 -5
  42. package/dist/cjs/ez-split-button.cjs.entry.js +5 -4
  43. package/dist/cjs/ez-split-item.cjs.entry.js +6 -2
  44. package/dist/cjs/ez-tag.cjs.entry.js +38 -0
  45. package/dist/cjs/ez-text-area.cjs.entry.js +34 -27
  46. package/dist/cjs/ez-text-input.cjs.entry.js +2 -1
  47. package/dist/cjs/ez-tile-medium.cjs.entry.js +79 -0
  48. package/dist/cjs/ez-tile.cjs.entry.js +62 -0
  49. package/dist/cjs/ez-time-input.cjs.entry.js +12 -10
  50. package/dist/cjs/{ez-filter-input_2.cjs.entry.js → ez-tooltip.cjs.entry.js} +1 -123
  51. package/dist/cjs/ez-tree.cjs.entry.js +12 -1
  52. package/dist/cjs/ez-underface.cjs.entry.js +35 -0
  53. package/dist/cjs/ez-upload.cjs.entry.js +17 -11
  54. package/dist/cjs/ezui.cjs.js +5 -1
  55. package/dist/cjs/filter-column.cjs.entry.js +8 -4
  56. package/dist/cjs/index-040deae3.js +3684 -0
  57. package/dist/cjs/index-a7b0c73d.js +48 -16
  58. package/dist/cjs/loader.cjs.js +5 -1
  59. package/dist/cjs/purify-0bd8a150.js +1359 -0
  60. package/dist/cjs/{search-column-27d1f72f.js → search-column-de15f22d.js} +11 -9
  61. package/dist/collection/collection-manifest.json +45 -1
  62. package/dist/collection/components/ez-alert-list/ez-alert-list.js +5 -3
  63. package/dist/collection/components/ez-avatar/ez-avatar.js +5 -1
  64. package/dist/collection/components/ez-calendar/ez-calendar.js +7 -6
  65. package/dist/collection/components/ez-chip/ez-chip.css +102 -83
  66. package/dist/collection/components/ez-chip/ez-chip.js +177 -53
  67. package/dist/collection/components/ez-collapsible-box/ez-collapsible-box.js +12 -9
  68. package/dist/collection/components/ez-combo-box/ez-combo-box-list/ez-combo-box-list.js +7 -4
  69. package/dist/collection/components/ez-combo-box/ez-combo-box.js +50 -15
  70. package/dist/collection/components/ez-date-input/ez-date-input.js +6 -2
  71. package/dist/collection/components/ez-date-time-input/ez-date-time-input.js +6 -2
  72. package/dist/collection/components/ez-dialog/ez-dialog.js +8 -6
  73. package/dist/collection/components/ez-double-list/ez-double-list.js +12 -4
  74. package/dist/collection/components/ez-empty-card/ez-empty-card.css +55 -0
  75. package/dist/collection/components/ez-empty-card/ez-empty-card.js +91 -0
  76. package/dist/collection/components/ez-file-item/ez-file-item.js +9 -6
  77. package/dist/collection/components/ez-form/ez-form.js +6 -4
  78. package/dist/collection/components/ez-form-view/ez-form-view.js +4 -3
  79. package/dist/collection/components/ez-form-view/fieldbuilder/FieldBuilder.js +5 -2
  80. package/dist/collection/components/ez-form-view/fieldbuilder/templates/RichText.tpl.js +4 -0
  81. package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +38 -11
  82. package/dist/collection/components/ez-grid/controller/ag-grid/DataSource.js +14 -4
  83. package/dist/collection/components/ez-grid/controller/ag-grid/test/constants/GridEditionMock.js +3 -1
  84. package/dist/collection/components/ez-grid/controller/ag-grid/utils/buildLocaleText.js +67 -0
  85. package/dist/collection/components/ez-grid/ez-grid.js +17 -15
  86. package/dist/collection/components/ez-grid/subcomponents/filter-column.js +7 -3
  87. package/dist/collection/components/ez-grid/subcomponents/selection-counter.js +2 -2
  88. package/dist/collection/components/ez-grid/subcomponents/utils/selectionCounterUtils.js +11 -7
  89. package/dist/collection/components/ez-guide-navigator/ez-guide-navigator.js +5 -1
  90. package/dist/collection/components/ez-icon/ez-icon.css +147 -140
  91. package/dist/collection/components/ez-list/ez-list.js +4 -2
  92. package/dist/collection/components/ez-modal/ez-modal.js +5 -1
  93. package/dist/collection/components/ez-modal-container/ez-modal-container.css +2 -0
  94. package/dist/collection/components/ez-modal-container/ez-modal-container.js +5 -1
  95. package/dist/collection/components/ez-multi-selection-list/ez-multi-selection-list.js +9 -5
  96. package/dist/collection/components/ez-number-input/ez-number-input.js +5 -1
  97. package/dist/collection/components/ez-popover-plus/ez-popover-plus.js +6 -0
  98. package/dist/collection/components/ez-popover-plus/subcomponent/ez-popover-core.css +3 -2
  99. package/dist/collection/components/ez-rich-text/ez-link-builder/ez-link-builder.css +22 -0
  100. package/dist/collection/components/ez-rich-text/ez-link-builder/ez-link-builder.js +135 -0
  101. package/dist/collection/components/ez-rich-text/ez-rich-text.css +30 -0
  102. package/dist/collection/components/ez-rich-text/ez-rich-text.js +575 -0
  103. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/RichToolbarHelper.js +27 -0
  104. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-arrows/ez-rich-toolbar-arrows.css +4 -0
  105. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-arrows/ez-rich-toolbar-arrows.js +23 -0
  106. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-configs/ez-rich-toolbar-configs.css +4 -0
  107. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-configs/ez-rich-toolbar-configs.js +23 -0
  108. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-item/ez-rich-toolbar-item.css +20 -0
  109. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-item/ez-rich-toolbar-item.js +122 -0
  110. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-letters/ez-rich-toolbar-letters.css +4 -0
  111. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-letters/ez-rich-toolbar-letters.js +23 -0
  112. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar.css +42 -0
  113. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar.js +187 -0
  114. package/dist/collection/components/ez-rich-text/ez-simple-image-uploader/ez-simple-image-uploader.css +70 -0
  115. package/dist/collection/components/ez-rich-text/ez-simple-image-uploader/ez-simple-image-uploader.js +220 -0
  116. package/dist/collection/components/ez-rich-text/ez-simple-image-uploader/test/resource/imageBase64.js +1 -0
  117. package/dist/collection/components/ez-rich-text/ez-simple-image-uploader/utils/fileToBase64.js +14 -0
  118. package/dist/collection/components/ez-rich-text/ez-simple-image-uploader/utils/formatBytes.js +10 -0
  119. package/dist/collection/components/ez-search/ez-search.js +7 -8
  120. package/dist/collection/components/ez-search-plus/ez-search-plus.css +2 -0
  121. package/dist/collection/components/ez-search-plus/ez-search-plus.js +16 -7
  122. package/dist/collection/components/ez-search-plus/subcomponent/ez-search-result-list/ez-search-result-list.js +27 -7
  123. package/dist/collection/components/ez-sidebar-navigator/ez-sidebar-navigator.js +5 -2
  124. package/dist/collection/components/ez-skeleton/ez-skeleton.constants.js +0 -1
  125. package/dist/collection/components/ez-skeleton/ez-skeleton.js +4 -2
  126. package/dist/collection/components/ez-sortable-list/ez-sortable-list.js +15 -11
  127. package/dist/collection/components/ez-split-button/ez-split-button.js +6 -6
  128. package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.js +5 -1
  129. package/dist/collection/components/ez-tag/ez-tag.css +105 -0
  130. package/dist/collection/components/ez-tag/ez-tag.js +112 -0
  131. package/dist/collection/components/ez-text-area/ez-text-area.css +244 -212
  132. package/dist/collection/components/ez-text-area/ez-text-area.js +35 -28
  133. package/dist/collection/components/ez-text-edit/ez-text-edit.js +5 -1
  134. package/dist/collection/components/ez-text-input/ez-text-input.js +2 -1
  135. package/dist/collection/components/ez-tile/ez-tile.css +151 -0
  136. package/dist/collection/components/ez-tile/ez-tile.js +269 -0
  137. package/dist/collection/components/ez-tile-medium/ez-tile-medium.css +183 -0
  138. package/dist/collection/components/ez-tile-medium/ez-tile-medium.js +353 -0
  139. package/dist/collection/components/ez-time-input/ez-time-input.js +12 -10
  140. package/dist/collection/components/ez-tooltip/ez-tooltip.js +1 -1
  141. package/dist/collection/components/ez-tree/ez-tree.js +5 -1
  142. package/dist/collection/components/ez-tree/types/Tree.js +7 -0
  143. package/dist/collection/components/ez-underface/ez-underface.css +51 -0
  144. package/dist/collection/components/ez-underface/ez-underface.js +109 -0
  145. package/dist/collection/components/ez-upload/ez-upload.js +18 -12
  146. package/dist/collection/global/app-init.js +6 -0
  147. package/dist/collection/setupTests.js +1 -1
  148. package/dist/collection/utils/ApplicationUtils.js +43 -15
  149. package/dist/collection/utils/constants.js +0 -1
  150. package/dist/collection/utils/i18n/elanguages.js +6 -0
  151. package/dist/collection/utils/i18n/i18nUtils.js +20 -0
  152. package/dist/collection/utils/i18n/index.js +30 -0
  153. package/dist/collection/utils/i18n/locales/en-us.js +279 -0
  154. package/dist/collection/utils/i18n/locales/es-es.js +279 -0
  155. package/dist/collection/utils/i18n/locales/pt-br.js +279 -0
  156. package/dist/collection/utils/i18n/translations.js +9 -0
  157. package/dist/collection/utils/index.js +1 -1
  158. package/dist/collection/utils/searchColumn/search-column.js +0 -2
  159. package/dist/collection/utils/validators/recordvalidator/RecordValidationProcessor.js +8 -2
  160. package/dist/custom-elements/index.d.ts +78 -0
  161. package/dist/custom-elements/index.js +6689 -576
  162. package/dist/esm/{ApplicationUtils-eaf91331.js → ApplicationUtils-391ebb4f.js} +43 -15
  163. package/dist/esm/RichToolbarHelper-f3a149c4.js +29 -0
  164. package/dist/esm/_commonjsHelpers-9943807e.js +17 -0
  165. package/dist/esm/app-globals-2394c55a.js +10 -0
  166. package/dist/esm/{constants-b036528f.js → constants-3fabe81e.js} +1 -2
  167. package/dist/esm/ez-actions-button.entry.js +2 -1
  168. package/dist/esm/ez-alert-list.entry.js +5 -3
  169. package/dist/esm/ez-avatar.entry.js +6 -1
  170. package/dist/esm/ez-calendar.entry.js +7 -6
  171. package/dist/esm/ez-card-item_2.entry.js +1 -1
  172. package/dist/esm/ez-chart.entry.js +1 -16
  173. package/dist/esm/ez-chip.entry.js +52 -47
  174. package/dist/esm/ez-collapsible-box.entry.js +13 -10
  175. package/dist/esm/{ez-combo-box-list_3.entry.js → ez-combo-box-list_4.entry.js} +291 -6
  176. package/dist/esm/ez-combo-box.entry.js +32 -14
  177. package/dist/esm/ez-date-input.entry.js +6 -2
  178. package/dist/esm/ez-date-time-input.entry.js +6 -2
  179. package/dist/esm/ez-dialog.entry.js +8 -6
  180. package/dist/esm/ez-double-list.entry.js +12 -4
  181. package/dist/esm/ez-empty-card.entry.js +30 -0
  182. package/dist/esm/ez-file-item.entry.js +9 -6
  183. package/dist/esm/ez-filter-input.entry.js +125 -0
  184. package/dist/esm/ez-form-view.entry.js +12 -4
  185. package/dist/esm/ez-form.entry.js +7 -5
  186. package/dist/esm/ez-grid.entry.js +151 -115
  187. package/dist/esm/ez-guide-navigator.entry.js +5 -1
  188. package/dist/esm/ez-icon.entry.js +1 -1
  189. package/dist/esm/ez-link-builder_6.entry.js +306 -0
  190. package/dist/esm/ez-list.entry.js +4 -2
  191. package/dist/esm/ez-modal-container.entry.js +6 -2
  192. package/dist/esm/ez-modal.entry.js +5 -1
  193. package/dist/esm/ez-multi-selection-list.entry.js +9 -5
  194. package/dist/esm/ez-number-input.entry.js +5 -1
  195. package/dist/esm/ez-popover-plus_3.entry.js +6 -1
  196. package/dist/esm/ez-rich-toolbar-item.entry.js +23 -0
  197. package/dist/esm/ez-search-plus.entry.js +18 -9
  198. package/dist/esm/ez-search-result-list.entry.js +24 -7
  199. package/dist/esm/ez-search.entry.js +8 -9
  200. package/dist/esm/ez-sidebar-navigator.entry.js +5 -7
  201. package/dist/esm/ez-skeleton.entry.js +5 -3
  202. package/dist/esm/ez-sortable-list.entry.js +12 -5
  203. package/dist/esm/ez-split-button.entry.js +5 -4
  204. package/dist/esm/ez-split-item.entry.js +6 -2
  205. package/dist/esm/ez-tag.entry.js +34 -0
  206. package/dist/esm/ez-text-area.entry.js +34 -27
  207. package/dist/esm/ez-text-input.entry.js +2 -1
  208. package/dist/esm/ez-tile-medium.entry.js +75 -0
  209. package/dist/esm/ez-tile.entry.js +58 -0
  210. package/dist/esm/ez-time-input.entry.js +12 -10
  211. package/dist/esm/{ez-filter-input_2.entry.js → ez-tooltip.entry.js} +3 -124
  212. package/dist/esm/ez-tree.entry.js +12 -1
  213. package/dist/esm/ez-underface.entry.js +31 -0
  214. package/dist/esm/ez-upload.entry.js +17 -11
  215. package/dist/esm/ezui.js +5 -1
  216. package/dist/esm/filter-column.entry.js +8 -4
  217. package/dist/esm/index-76eedf30.js +3681 -0
  218. package/dist/esm/index-baa5e267.js +48 -16
  219. package/dist/esm/loader.js +5 -1
  220. package/dist/esm/purify-34e6ff6f.js +1357 -0
  221. package/dist/esm/{search-column-e609d513.js → search-column-661e2324.js} +10 -6
  222. package/dist/ezui/ezui.esm.js +1 -1
  223. package/dist/ezui/p-0759b307.entry.js +1 -0
  224. package/dist/ezui/p-085f83e2.entry.js +1 -0
  225. package/dist/ezui/p-103f5cdd.entry.js +7 -0
  226. package/dist/ezui/p-112455b1.js +1 -0
  227. package/dist/ezui/p-125275fa.entry.js +1 -0
  228. package/dist/ezui/p-18f6793e.entry.js +1 -0
  229. package/dist/ezui/p-199a1a34.entry.js +1 -0
  230. package/dist/ezui/p-1acc6061.entry.js +1 -0
  231. package/dist/ezui/p-20c024f7.entry.js +1 -0
  232. package/dist/ezui/p-21b252e4.entry.js +1 -0
  233. package/dist/ezui/p-287329d1.entry.js +1 -0
  234. package/dist/ezui/p-37076ba1.js +1 -0
  235. package/dist/ezui/p-3e7351ee.entry.js +1 -0
  236. package/dist/ezui/p-3e767a74.js +1 -0
  237. package/dist/ezui/p-4a6f4a80.entry.js +1 -0
  238. package/dist/ezui/p-53bc30a1.entry.js +1 -0
  239. package/dist/ezui/{p-4c01e506.entry.js → p-54a346fc.entry.js} +46 -46
  240. package/dist/ezui/p-603ef267.entry.js +1 -0
  241. package/dist/ezui/p-6369a0cd.entry.js +1 -0
  242. package/dist/ezui/p-689a2ab3.entry.js +1 -0
  243. package/dist/ezui/p-6a5c9445.entry.js +1 -0
  244. package/dist/ezui/p-6b71a749.entry.js +1 -0
  245. package/dist/ezui/p-6d596a5a.entry.js +1 -0
  246. package/dist/ezui/p-6fd4535f.entry.js +1 -0
  247. package/dist/ezui/p-75bf01eb.entry.js +1 -0
  248. package/dist/ezui/p-79044c3e.entry.js +1 -0
  249. package/dist/ezui/p-80461324.entry.js +1 -0
  250. package/dist/ezui/p-871777a5.entry.js +1 -0
  251. package/dist/ezui/{p-69937816.entry.js → p-8afb6e8a.entry.js} +1 -1
  252. package/dist/ezui/p-8ee9f175.entry.js +1 -0
  253. package/dist/ezui/p-91c9d50e.entry.js +1 -0
  254. package/dist/ezui/p-93e1c917.entry.js +1 -0
  255. package/dist/ezui/p-9fedd404.js +1 -0
  256. package/dist/ezui/p-a3ada561.entry.js +1 -0
  257. package/dist/ezui/p-a3b18ddc.entry.js +1 -0
  258. package/dist/ezui/p-b1e45320.js +1 -0
  259. package/dist/ezui/p-b31dc417.js +1 -0
  260. package/dist/ezui/p-b9c271a0.entry.js +1 -0
  261. package/dist/ezui/p-bc8d5a6a.entry.js +1 -0
  262. package/dist/ezui/p-bdacdc6d.entry.js +1 -0
  263. package/dist/ezui/p-c441a6b9.entry.js +1 -0
  264. package/dist/ezui/p-cbf1a296.entry.js +1 -0
  265. package/dist/ezui/p-d1efd7b7.entry.js +1 -0
  266. package/dist/ezui/p-d2364956.js +3 -0
  267. package/dist/ezui/p-d2645bdf.entry.js +1 -0
  268. package/dist/ezui/p-d3dc8595.entry.js +1 -0
  269. package/dist/ezui/p-d5fb569d.entry.js +1 -0
  270. package/dist/ezui/p-d63703ef.entry.js +1 -0
  271. package/dist/ezui/p-d8cc640d.entry.js +1 -0
  272. package/dist/ezui/p-dd5afff2.entry.js +1 -0
  273. package/dist/ezui/p-e7a7c594.entry.js +1 -0
  274. package/dist/ezui/p-e7cd9e9b.entry.js +1 -0
  275. package/dist/ezui/p-ec4c70a6.entry.js +1 -0
  276. package/dist/ezui/p-f45cda60.entry.js +1 -0
  277. package/dist/ezui/p-f84b784b.js +1 -0
  278. package/dist/ezui/p-fcb3e6be.entry.js +1 -0
  279. package/dist/ezui/p-fcdc7d0b.entry.js +1 -0
  280. package/dist/types/components/ez-alert-list/ez-alert-list.d.ts +2 -1
  281. package/dist/types/components/ez-avatar/ez-avatar.d.ts +2 -0
  282. package/dist/types/components/ez-calendar/ez-calendar.d.ts +2 -3
  283. package/dist/types/components/ez-chip/ez-chip.d.ts +36 -6
  284. package/dist/types/components/ez-collapsible-box/ez-collapsible-box.d.ts +2 -0
  285. package/dist/types/components/ez-combo-box/ez-combo-box-list/ez-combo-box-list.d.ts +2 -0
  286. package/dist/types/components/ez-combo-box/ez-combo-box.d.ts +9 -2
  287. package/dist/types/components/ez-date-input/ez-date-input.d.ts +2 -0
  288. package/dist/types/components/ez-date-time-input/ez-date-time-input.d.ts +2 -0
  289. package/dist/types/components/ez-dialog/ez-dialog.d.ts +2 -2
  290. package/dist/types/components/ez-double-list/ez-double-list.d.ts +2 -0
  291. package/dist/types/components/ez-empty-card/ez-empty-card.d.ts +18 -0
  292. package/dist/types/components/ez-file-item/ez-file-item.d.ts +2 -0
  293. package/dist/types/components/ez-form/ez-form.d.ts +1 -0
  294. package/dist/types/components/ez-form-view/fieldbuilder/templates/RichText.tpl.d.ts +2 -0
  295. package/dist/types/components/ez-grid/controller/EzGridController.d.ts +5 -0
  296. package/dist/types/components/ez-grid/controller/ag-grid/AgGridController.d.ts +2 -0
  297. package/dist/types/components/ez-grid/controller/ag-grid/DataSource.d.ts +1 -0
  298. package/dist/types/components/ez-grid/controller/ag-grid/test/constants/GridEditionMock.d.ts +1 -1
  299. package/dist/types/components/ez-grid/controller/ag-grid/utils/buildLocaleText.d.ts +66 -0
  300. package/dist/types/components/ez-grid/ez-grid.d.ts +2 -2
  301. package/dist/types/components/ez-grid/subcomponents/filter-column.d.ts +2 -0
  302. package/dist/types/components/ez-grid/subcomponents/selection-counter.d.ts +2 -0
  303. package/dist/types/components/ez-grid/subcomponents/utils/selectionCounterUtils.d.ts +2 -2
  304. package/dist/types/components/ez-guide-navigator/ez-guide-navigator.d.ts +2 -0
  305. package/dist/types/components/ez-list/ez-list.d.ts +2 -1
  306. package/dist/types/components/ez-modal/ez-modal.d.ts +2 -0
  307. package/dist/types/components/ez-modal-container/ez-modal-container.d.ts +2 -0
  308. package/dist/types/components/ez-multi-selection-list/ez-multi-selection-list.d.ts +2 -0
  309. package/dist/types/components/ez-number-input/ez-number-input.d.ts +2 -0
  310. package/dist/types/components/ez-popover-plus/ez-popover-plus.d.ts +1 -0
  311. package/dist/types/components/ez-rich-text/ez-link-builder/ez-link-builder.d.ts +19 -0
  312. package/dist/types/components/ez-rich-text/ez-rich-text.d.ts +105 -0
  313. package/dist/types/components/ez-rich-text/ez-rich-toolbar/RichToolbarHelper.d.ts +31 -0
  314. package/dist/types/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-arrows/ez-rich-toolbar-arrows.d.ts +5 -0
  315. package/dist/types/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-configs/ez-rich-toolbar-configs.d.ts +5 -0
  316. package/dist/types/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-item/ez-rich-toolbar-item.d.ts +11 -0
  317. package/dist/types/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-letters/ez-rich-toolbar-letters.d.ts +5 -0
  318. package/dist/types/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar.d.ts +35 -0
  319. package/dist/types/components/ez-rich-text/ez-simple-image-uploader/ez-simple-image-uploader.d.ts +39 -0
  320. package/dist/types/components/ez-rich-text/ez-simple-image-uploader/test/resource/imageBase64.d.ts +1 -0
  321. package/dist/types/components/ez-rich-text/ez-simple-image-uploader/utils/fileToBase64.d.ts +1 -0
  322. package/dist/types/components/ez-rich-text/ez-simple-image-uploader/utils/formatBytes.d.ts +1 -0
  323. package/dist/types/components/ez-search/ez-search.d.ts +2 -3
  324. package/dist/types/components/ez-search-plus/ez-search-plus.d.ts +4 -1
  325. package/dist/types/components/ez-search-plus/subcomponent/ez-search-result-list/ez-search-result-list.d.ts +4 -1
  326. package/dist/types/components/ez-sidebar-navigator/ez-sidebar-navigator.d.ts +2 -0
  327. package/dist/types/components/ez-skeleton/ez-skeleton.constants.d.ts +0 -1
  328. package/dist/types/components/ez-skeleton/ez-skeleton.d.ts +2 -1
  329. package/dist/types/components/ez-sortable-list/ez-sortable-list.d.ts +2 -0
  330. package/dist/types/components/ez-split-button/ez-split-button.d.ts +2 -2
  331. package/dist/types/components/ez-split-panel/structure/item/ez-split-item.d.ts +2 -0
  332. package/dist/types/components/ez-tag/ez-tag.d.ts +23 -0
  333. package/dist/types/components/ez-text-area/ez-text-area.d.ts +6 -3
  334. package/dist/types/components/ez-text-edit/ez-text-edit.d.ts +2 -0
  335. package/dist/types/components/ez-tile/ez-tile.d.ts +58 -0
  336. package/dist/types/components/ez-tile-medium/ez-tile-medium.d.ts +98 -0
  337. package/dist/types/components/ez-time-input/ez-time-input.d.ts +2 -1
  338. package/dist/types/components/ez-tree/ez-tree.d.ts +2 -0
  339. package/dist/types/components/ez-tree/types/Tree.d.ts +1 -0
  340. package/dist/types/components/ez-underface/ez-underface.d.ts +23 -0
  341. package/dist/types/components/ez-upload/ez-upload.d.ts +3 -1
  342. package/dist/types/components.d.ts +758 -2
  343. package/dist/types/global/app-init.d.ts +1 -0
  344. package/dist/types/utils/ApplicationUtils.d.ts +3 -1
  345. package/dist/types/utils/constants.d.ts +0 -1
  346. package/dist/types/utils/i18n/elanguages.d.ts +5 -0
  347. package/dist/types/utils/i18n/i18nUtils.d.ts +2 -0
  348. package/dist/types/utils/i18n/index.d.ts +5 -0
  349. package/dist/types/utils/i18n/locales/en-us.d.ts +280 -0
  350. package/dist/types/utils/i18n/locales/es-es.d.ts +280 -0
  351. package/dist/types/utils/i18n/locales/pt-br.d.ts +280 -0
  352. package/dist/types/utils/i18n/translations.d.ts +840 -0
  353. package/dist/types/utils/index.d.ts +1 -1
  354. package/dist/types/utils/searchColumn/search-column.d.ts +0 -2
  355. package/dist/types/utils/validators/recordvalidator/RecordValidationProcessor.d.ts +1 -0
  356. package/package.json +9 -2
  357. package/react/components.d.ts +13 -0
  358. package/react/components.js +13 -0
  359. package/react/components.js.map +1 -1
  360. package/dist/assets/actions-sprite.svg +0 -257
  361. package/dist/collection/components/assets/actions-sprite.svg +0 -257
  362. package/dist/collection/components/ez-grid/controller/ag-grid/i18n/pt-BR.js +0 -75
  363. package/dist/collection/components/ez-sidebar-navigator/messages/constants.js +0 -5
  364. package/dist/ezui/p-0306dff7.entry.js +0 -1
  365. package/dist/ezui/p-07894c4a.entry.js +0 -1
  366. package/dist/ezui/p-09de35a2.entry.js +0 -1
  367. package/dist/ezui/p-0d9856a4.entry.js +0 -1
  368. package/dist/ezui/p-1276ef79.entry.js +0 -1
  369. package/dist/ezui/p-1eb34cad.entry.js +0 -1
  370. package/dist/ezui/p-2187f86c.js +0 -1
  371. package/dist/ezui/p-26685c50.entry.js +0 -1
  372. package/dist/ezui/p-2b42abbb.entry.js +0 -1
  373. package/dist/ezui/p-2b4df33d.entry.js +0 -1
  374. package/dist/ezui/p-33326ac5.entry.js +0 -1
  375. package/dist/ezui/p-35115d5d.entry.js +0 -1
  376. package/dist/ezui/p-3ba9565c.entry.js +0 -1
  377. package/dist/ezui/p-496f7832.entry.js +0 -1
  378. package/dist/ezui/p-4b67138e.entry.js +0 -1
  379. package/dist/ezui/p-4bd6dd6a.entry.js +0 -1
  380. package/dist/ezui/p-555c9018.entry.js +0 -1
  381. package/dist/ezui/p-57363cfd.entry.js +0 -1
  382. package/dist/ezui/p-58f69d24.entry.js +0 -1
  383. package/dist/ezui/p-59561756.entry.js +0 -7
  384. package/dist/ezui/p-5eea9886.js +0 -1
  385. package/dist/ezui/p-61d3a77b.entry.js +0 -1
  386. package/dist/ezui/p-63cb493e.entry.js +0 -1
  387. package/dist/ezui/p-6e429cff.entry.js +0 -1
  388. package/dist/ezui/p-7019f782.entry.js +0 -1
  389. package/dist/ezui/p-77a4bd35.entry.js +0 -1
  390. package/dist/ezui/p-7ab19270.entry.js +0 -1
  391. package/dist/ezui/p-7eae6986.entry.js +0 -1
  392. package/dist/ezui/p-9478b13b.entry.js +0 -1
  393. package/dist/ezui/p-9567b31a.entry.js +0 -1
  394. package/dist/ezui/p-998afb6a.entry.js +0 -1
  395. package/dist/ezui/p-a148e994.entry.js +0 -1
  396. package/dist/ezui/p-a3bf8cf1.entry.js +0 -1
  397. package/dist/ezui/p-bac0f920.entry.js +0 -1
  398. package/dist/ezui/p-bff24a7b.js +0 -1
  399. package/dist/ezui/p-cb75eb46.entry.js +0 -1
  400. package/dist/ezui/p-d47dabdf.entry.js +0 -1
  401. package/dist/ezui/p-da1b4a38.entry.js +0 -1
  402. package/dist/ezui/p-dc73e1fe.entry.js +0 -1
  403. package/dist/ezui/p-e06a9886.entry.js +0 -1
  404. package/dist/ezui/p-e4528470.entry.js +0 -1
  405. package/dist/ezui/p-e6a9041d.entry.js +0 -1
  406. package/dist/types/components/ez-grid/controller/ag-grid/i18n/pt-BR.d.ts +0 -2
  407. package/dist/types/components/ez-sidebar-navigator/messages/constants.d.ts +0 -5
@@ -1,5 +1,5 @@
1
- import { h } from "@stencil/core";
2
1
  import { ElementIDUtils } from '@sankhyalabs/core';
2
+ import { h } from "@stencil/core";
3
3
  export class EzChip {
4
4
  constructor() {
5
5
  this.label = undefined;
@@ -7,7 +7,14 @@ export class EzChip {
7
7
  this.removePosition = undefined;
8
8
  this.mode = undefined;
9
9
  this.value = false;
10
- this.showNativeTooltip = true;
10
+ this.showNativeTooltip = false;
11
+ this.disableAutoUpdateValue = false;
12
+ this.maxWidth = undefined;
13
+ this.size = 'default';
14
+ this.iconNameLeft = undefined;
15
+ this.iconNameRight = undefined;
16
+ this.type = 'primary';
17
+ this._isOverflowing = false;
11
18
  }
12
19
  //---------------------------------------------
13
20
  // Public methods
@@ -24,54 +31,46 @@ export class EzChip {
24
31
  async setBlur() {
25
32
  this._containerElem.blur();
26
33
  }
27
- //---------------------------------------------
28
- // Event handlers
29
- //---------------------------------------------
30
- handleSlotChange(ev) {
31
- const slot = ev.target;
32
- const content = slot.assignedElements()[0];
33
- content.style.setProperty("--ez-icon--color", "var(--ez-icon--color)");
34
- }
35
34
  handleValueChange() {
36
35
  this.swichState();
37
36
  this.valueChange.emit(this.value);
38
37
  }
39
- handleClick(ev) {
40
- const target = ev.target;
41
- if (!this.enabled)
38
+ handleClick() {
39
+ if (!this.enabled) {
42
40
  return;
43
- if (this.mode === "action")
41
+ }
42
+ if (this.mode === "action") {
44
43
  return this.actionClick.emit();
45
- if (target.tagName.toLowerCase() !== "ez-icon")
44
+ }
45
+ if (!this.disableAutoUpdateValue) {
46
46
  return this.handleValueChange();
47
- if (target.classList.contains("btn-close"))
48
- return this.removeChip.emit();
49
- }
50
- swichState() {
51
- if (this.enabled) {
52
- this.value = !this.value;
53
47
  }
54
48
  }
55
- formatLabel() {
56
- if (this.label.length > ChipSize.CHAR_LIMIT) {
57
- return this.label.substring(0, ChipSize.CHAR_LIMIT) + "...";
49
+ handleClickRemoveButton(event) {
50
+ if (!this.enabled) {
51
+ return;
58
52
  }
59
- return this.label;
53
+ event.stopPropagation();
54
+ this.removeChip.emit();
60
55
  }
61
- observeValue() {
62
- (this.value && this.mode !== "action") ? this._containerElem.classList.add("label__container--active") : this._containerElem.classList.remove("label__container--active");
56
+ handleIconClick(event, icon) {
57
+ if (!this.enabled) {
58
+ return;
59
+ }
60
+ event.stopPropagation();
61
+ this.iconClick.emit({ icon });
63
62
  }
64
- observeEnabled() {
63
+ swichState() {
65
64
  if (this.enabled) {
66
- this._containerElem.classList.remove("label__container--disabled");
67
- this._labelElem.classList.remove("lbl--disabled");
68
- this._labelElem.classList.remove("cursor-disable");
65
+ this.value = !this.value;
69
66
  }
70
- else {
71
- this._containerElem.classList.add("label__container--disabled");
72
- this._labelElem.classList.add("lbl--disabled");
73
- this._labelElem.classList.add("cursor-disable");
67
+ }
68
+ checkIsOverflowing() {
69
+ if (this._labelElem) {
70
+ this._isOverflowing = this._labelElem.offsetWidth < this._labelElem.scrollWidth;
71
+ return;
74
72
  }
73
+ this._isOverflowing = false;
75
74
  }
76
75
  //---------------------------------------------
77
76
  // Lifecycle web component
@@ -81,14 +80,27 @@ export class EzChip {
81
80
  ElementIDUtils.addIDInfo(this._element, 'ezChip');
82
81
  }
83
82
  if (this._containerElem) {
84
- this.observeValue();
85
- this.observeEnabled();
86
83
  this._containerElem.setAttribute(ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME, ElementIDUtils.getInternalIDInfo('button'));
87
84
  }
85
+ this.checkIsOverflowing();
88
86
  }
89
87
  render() {
90
- const labelTitle = this.showNativeTooltip ? this.label : undefined;
91
- return (h("button", { onClick: (ev) => this.handleClick(ev), class: "label__container" + (this.removePosition === "left" ? " label__container--row-reverse" : ""), ref: (el) => this._containerElem = el }, h("div", { class: "label__content" }, h("slot", { name: "leftIcon", onSlotchange: (ev) => { this.handleSlotChange(ev); } }), h("label", { class: "lbl " + (this.value ? "lbl--active " : ""), ref: (el) => this._labelElem = el, title: labelTitle }, this.formatLabel()), h("slot", { name: "rightIcon", onSlotchange: (ev) => { this.handleSlotChange(ev); } })), this.mode !== 'action' && this.removePosition && h("ez-icon", { class: "btn-close", size: "small", "icon-name": "close" })));
88
+ let colorState = 'default';
89
+ if (!this.enabled) {
90
+ colorState = 'disabled';
91
+ }
92
+ else if (this.value && this.mode !== "action") {
93
+ colorState = 'active';
94
+ }
95
+ return (h("ez-tooltip", { active: this.showNativeTooltip || this._isOverflowing, message: this.label }, h("button", { ref: (el) => this._containerElem = el, class: {
96
+ "label__container--row-reverse": this.removePosition === "left",
97
+ "label__container": true,
98
+ }, "data-color-state": colorState, "data-color-type": this.type, "data-size": this.size, onClick: () => this.handleClick(), style: {
99
+ maxWidth: this.maxWidth
100
+ } }, this.iconNameLeft && (h("ez-icon", { size: "medium", "icon-name": this.iconNameLeft, onClick: (event) => this.handleIconClick(event, 'left') })), h("slot", { name: "leftIcon" }), h("label", { ref: (el) => this._labelElem = el, class: {
101
+ "label__text--disabled": !this.enabled,
102
+ "label__text": true,
103
+ } }, this.label), h("slot", { name: "rightIcon" }), this.iconNameRight && (h("ez-icon", { size: "medium", "icon-name": this.iconNameRight, onClick: (event) => this.handleIconClick(event, 'right') })), (this.mode !== 'action' && this.removePosition) && (h("ez-icon", { class: "btn-close", size: "medium", "icon-name": "close", onClick: (event) => this.handleClickRemoveButton(event) })))));
92
104
  }
93
105
  static get is() { return "ez-chip"; }
94
106
  static get encapsulation() { return "shadow"; }
@@ -207,10 +219,120 @@ export class EzChip {
207
219
  },
208
220
  "attribute": "show-native-tooltip",
209
221
  "reflect": false,
210
- "defaultValue": "true"
222
+ "defaultValue": "false"
223
+ },
224
+ "disableAutoUpdateValue": {
225
+ "type": "boolean",
226
+ "mutable": false,
227
+ "complexType": {
228
+ "original": "boolean",
229
+ "resolved": "boolean",
230
+ "references": {}
231
+ },
232
+ "required": false,
233
+ "optional": false,
234
+ "docs": {
235
+ "tags": [],
236
+ "text": "Desabilita a altera\u00E7\u00E3o da propriedade value ao clicar."
237
+ },
238
+ "attribute": "disable-auto-update-value",
239
+ "reflect": false,
240
+ "defaultValue": "false"
241
+ },
242
+ "maxWidth": {
243
+ "type": "string",
244
+ "mutable": false,
245
+ "complexType": {
246
+ "original": "string",
247
+ "resolved": "string",
248
+ "references": {}
249
+ },
250
+ "required": false,
251
+ "optional": false,
252
+ "docs": {
253
+ "tags": [],
254
+ "text": "Define o tamanho m\u00E1ximo do chip."
255
+ },
256
+ "attribute": "max-width",
257
+ "reflect": false
258
+ },
259
+ "size": {
260
+ "type": "string",
261
+ "mutable": false,
262
+ "complexType": {
263
+ "original": "'default' | 'medium' | 'large'",
264
+ "resolved": "\"default\" | \"large\" | \"medium\"",
265
+ "references": {}
266
+ },
267
+ "required": false,
268
+ "optional": false,
269
+ "docs": {
270
+ "tags": [],
271
+ "text": "Define o tamanho do chip."
272
+ },
273
+ "attribute": "size",
274
+ "reflect": false,
275
+ "defaultValue": "'default'"
276
+ },
277
+ "iconNameLeft": {
278
+ "type": "string",
279
+ "mutable": false,
280
+ "complexType": {
281
+ "original": "string",
282
+ "resolved": "string",
283
+ "references": {}
284
+ },
285
+ "required": false,
286
+ "optional": false,
287
+ "docs": {
288
+ "tags": [],
289
+ "text": "Define o icone esquerdo."
290
+ },
291
+ "attribute": "icon-name-left",
292
+ "reflect": false
293
+ },
294
+ "iconNameRight": {
295
+ "type": "string",
296
+ "mutable": false,
297
+ "complexType": {
298
+ "original": "string",
299
+ "resolved": "string",
300
+ "references": {}
301
+ },
302
+ "required": false,
303
+ "optional": false,
304
+ "docs": {
305
+ "tags": [],
306
+ "text": "Define o icone direito."
307
+ },
308
+ "attribute": "icon-name-right",
309
+ "reflect": false
310
+ },
311
+ "type": {
312
+ "type": "string",
313
+ "mutable": false,
314
+ "complexType": {
315
+ "original": "'primary' | 'secondary'",
316
+ "resolved": "\"primary\" | \"secondary\"",
317
+ "references": {}
318
+ },
319
+ "required": false,
320
+ "optional": false,
321
+ "docs": {
322
+ "tags": [],
323
+ "text": "Define o tipo de estiliza\u00E7\u00E3o do chip."
324
+ },
325
+ "attribute": "type",
326
+ "reflect": false,
327
+ "defaultValue": "'primary'"
211
328
  }
212
329
  };
213
330
  }
331
+ static get states() {
332
+ return {
333
+ "_isOverflowing": {}
334
+ };
335
+ }
214
336
  static get events() {
215
337
  return [{
216
338
  "method": "valueChange",
@@ -257,6 +379,21 @@ export class EzChip {
257
379
  "resolved": "void",
258
380
  "references": {}
259
381
  }
382
+ }, {
383
+ "method": "iconClick",
384
+ "name": "iconClick",
385
+ "bubbles": true,
386
+ "cancelable": true,
387
+ "composed": true,
388
+ "docs": {
389
+ "tags": [],
390
+ "text": "Emitido quando o icone \u00E9 acionado."
391
+ },
392
+ "complexType": {
393
+ "original": "{ icon: \"left\" | \"right\" }",
394
+ "resolved": "{ icon: \"left\" | \"right\"; }",
395
+ "references": {}
396
+ }
260
397
  }];
261
398
  }
262
399
  static get methods() {
@@ -296,17 +433,4 @@ export class EzChip {
296
433
  };
297
434
  }
298
435
  static get elementRef() { return "_element"; }
299
- static get watchers() {
300
- return [{
301
- "propName": "value",
302
- "methodName": "observeValue"
303
- }, {
304
- "propName": "enabled",
305
- "methodName": "observeEnabled"
306
- }];
307
- }
308
436
  }
309
- var ChipSize;
310
- (function (ChipSize) {
311
- ChipSize[ChipSize["CHAR_LIMIT"] = 28] = "CHAR_LIMIT";
312
- })(ChipSize || (ChipSize = {}));
@@ -1,6 +1,7 @@
1
1
  import { h } from "@stencil/core";
2
2
  import { ElementIDUtils } from "@sankhyalabs/core";
3
3
  import { ApplicationUtils } from "../../utils";
4
+ import initI18n from '../../utils/i18n';
4
5
  export class EzCollapsibleBox {
5
6
  constructor() {
6
7
  this._activeEditText = false;
@@ -58,14 +59,13 @@ export class EzCollapsibleBox {
58
59
  this._activeEditText = true;
59
60
  this.ezEditLabelMode.emit(this._activeEditText);
60
61
  }
61
- confirmRemove(evt) {
62
+ async confirmRemove(evt) {
62
63
  evt.stopPropagation();
63
- ApplicationUtils.confirm("Aviso", `Deseja realmente remover o grupo <b>${this.label}</b>?`)
64
- .then((canRemove) => {
65
- if (canRemove) {
66
- this.removeElement();
67
- }
68
- });
64
+ const confirmMessage = this.i18n("ez-collapsible-box.confirmRemove", { label: this.label });
65
+ const canRemove = await ApplicationUtils.confirm(this.i18n("app.warning"), confirmMessage);
66
+ if (canRemove) {
67
+ this.removeElement();
68
+ }
69
69
  }
70
70
  saveEditionText(editDetails) {
71
71
  const { value, newValue } = editDetails.detail;
@@ -95,6 +95,9 @@ export class EzCollapsibleBox {
95
95
  };
96
96
  return styledLabel;
97
97
  }
98
+ async componentWillLoad() {
99
+ this.i18n = await initI18n();
100
+ }
98
101
  componentDidLoad() {
99
102
  ElementIDUtils.addIDInfo(this._hostElement);
100
103
  }
@@ -103,8 +106,8 @@ export class EzCollapsibleBox {
103
106
  (this.iconPlacement === "right" ? " collapsible-box__title--icon-right" : "") +
104
107
  (this.value ? " collapsible-box__title--no-margin" : "") }), h("ez-icon", { slot: "icon", "icon-name": "chevron-right", size: this.getHeaderSize(), class: "collapsible-box__icon collapsible-box__icon--" + this.getHeaderSize() + (this.value ? " collapsible-box__icon--collapsed" : ""), id: "toggleCollapsible" }), !this._activeEditText ?
105
108
  h("label", { class: "collapsible-box__label font--" + this.getHeaderSize(), title: this.label, ref: elem => this._refLabel = elem }, h("span", null, this.label), this.editable &&
106
- h("ez-icon", { slot: "icon", "icon-name": "edit", onClick: (evt) => this.editLabel(evt), title: "Editar" }), this.removable &&
107
- h("ez-icon", { slot: "icon", "icon-name": "delete", onClick: (evt) => this.confirmRemove(evt), title: "Remover" })) :
109
+ h("ez-icon", { slot: "icon", "icon-name": "edit", onClick: (evt) => this.editLabel(evt), title: this.i18n("app.edit") }), this.removable &&
110
+ h("ez-icon", { slot: "icon", "icon-name": "delete", onClick: (evt) => this.confirmRemove(evt), title: this.i18n("app.remove") })) :
108
111
  h("ez-text-edit", { class: "collapsible-box__text-edit", ref: ref => this._refTextEdit = ref, value: this.label, styled: this.getStyledLabel(), onSaveEdition: (ev) => this.saveEditionText(ev), onCancelEdition: () => this.cancelEdition() })), h("slot", { name: "rightSlot" })), h("div", { class: "collapsible-box__content" + (this.value ? "" : " collapsible-box__content--show") }, this.subtitle &&
109
112
  h("div", { class: "subtitle-box__content" }, h("label", { class: "subtitle-box__label", title: this.subtitle }, h("span", null, this.subtitle))), h("slot", null))));
110
113
  }
@@ -1,10 +1,11 @@
1
1
  import { h } from "@stencil/core";
2
2
  import { ElementIDUtils } from "@sankhyalabs/core";
3
+ import initI18n from '../../../utils/i18n';
3
4
  export class EzComboBoxList {
4
5
  constructor() {
5
6
  this.showLoading = undefined;
6
7
  this.visibleOptions = undefined;
7
- this.textEmptyList = "Nenhum resultado encontrado";
8
+ this.textEmptyList = undefined;
8
9
  this.showOptionValue = undefined;
9
10
  this.preSelection = undefined;
10
11
  this.maxWidth = undefined;
@@ -126,6 +127,9 @@ export class EzComboBoxList {
126
127
  });
127
128
  }
128
129
  }
130
+ async componentWillLoad() {
131
+ this.i18n = await initI18n();
132
+ }
129
133
  componentDidLoad() {
130
134
  this._listWrapper.style.width = `${this.width}px`;
131
135
  this._listWrapper.style.maxWidth = this.maxWidth ? `${this.maxWidth}px` : '';
@@ -137,7 +141,7 @@ export class EzComboBoxList {
137
141
  });
138
142
  }
139
143
  render() {
140
- return (h("section", { class: "list-container" }, h("div", { class: "list-wrapper", ref: elem => this._listWrapper = elem }, h("ul", { class: "list-options", ref: elem => this._optionsList = elem }, !this.showLoading && this.visibleOptions.length === 0 && (h("div", { class: "message" }, h("span", { class: "message__no-result" }, this.textEmptyList))), this.showLoading && (h("div", { class: "message" }, h("div", { class: "message__loading" }))), this.showOptionValue && (h("span", { class: "item__value item__value--hidden" })), !this.showLoading && this.visibleOptions.length > 0 &&
144
+ return (h("section", { class: "list-container" }, h("div", { class: "list-wrapper", ref: elem => this._listWrapper = elem }, h("ul", { class: "list-options", ref: elem => this._optionsList = elem }, !this.showLoading && this.visibleOptions.length === 0 && (h("div", { class: "message" }, h("span", { class: "message__no-result" }, this.textEmptyList || this.i18n("ez-combo-box.noResults")))), this.showLoading && (h("div", { class: "message" }, h("div", { class: "message__loading" }))), this.showOptionValue && (h("span", { class: "item__value item__value--hidden" })), !this.showLoading && this.visibleOptions.length > 0 &&
141
145
  this.visibleOptions.map((opt, index) => this.buildItem(opt, index))))));
142
146
  }
143
147
  static get is() { return "ez-combo-box-list"; }
@@ -221,8 +225,7 @@ export class EzComboBoxList {
221
225
  "text": "Mensagem exibida quando a lista de op\u00E7\u00F5es est\u00E1 vazia."
222
226
  },
223
227
  "attribute": "text-empty-list",
224
- "reflect": false,
225
- "defaultValue": "\"Nenhum resultado encontrado\""
228
+ "reflect": false
226
229
  },
227
230
  "showOptionValue": {
228
231
  "type": "boolean",
@@ -1,13 +1,13 @@
1
1
  import { ElementIDUtils, ObjectUtils } from "@sankhyalabs/core";
2
2
  import { h, Host } from "@stencil/core";
3
3
  import { CSSVarsUtils } from "../../utils";
4
+ import initI18n from '../../utils/i18n';
4
5
  export class EzComboBox {
5
6
  constructor() {
6
7
  this._changeDeboucingTimeout = null;
7
8
  this._deboucingTime = 300;
8
9
  this._maxWidthValue = 0;
9
10
  this._tabPressed = false;
10
- this._textEmptyList = "Nenhum resultado encontrado";
11
11
  this._lookupMode = false;
12
12
  this.isOpen = false;
13
13
  this._preSelection = undefined;
@@ -33,8 +33,9 @@ export class EzComboBox {
33
33
  this.listOptionsPosition = undefined;
34
34
  this.isTextSearch = false;
35
35
  this.autoFocus = false;
36
+ this.preventAutoFocus = false;
36
37
  this.alternativePlaceholder = undefined;
37
- this.textEmptyOption = "Selecione um item";
38
+ this.textEmptyOption = undefined;
38
39
  }
39
40
  observeErrorMessage() {
40
41
  var _a;
@@ -83,13 +84,13 @@ export class EzComboBox {
83
84
  */
84
85
  async getValueAsync() {
85
86
  if (!this._showLoading) {
86
- return new Promise(resolve => resolve(this.value));
87
+ return new Promise(resolve => resolve(this.sanitizeValue(this.value)));
87
88
  }
88
89
  return new Promise(resolve => {
89
90
  let id = setInterval(() => {
90
91
  if (!this._showLoading) {
91
92
  clearInterval(id);
92
- resolve(this.value);
93
+ resolve(this.sanitizeValue(this.value));
93
94
  }
94
95
  }, 100);
95
96
  });
@@ -135,7 +136,7 @@ export class EzComboBox {
135
136
  return currentValue.label ? `${currentValue.value} - ${currentValue.label}` : currentValue.value;
136
137
  }
137
138
  getText() {
138
- const currentValue = this.getSelectedOption(this.value);
139
+ const currentValue = this.getSelectedOption(this.sanitizeValue(this.value));
139
140
  const text = this.getFormattedText(currentValue);
140
141
  if (text == undefined) {
141
142
  return;
@@ -159,7 +160,7 @@ export class EzComboBox {
159
160
  opts = opts.filter(opt => opt.label.toLocaleUpperCase().indexOf(upperCriteria) > -1);
160
161
  }
161
162
  if (this.hasToAddEmptyoption(opts)) {
162
- opts = [{ value: undefined, label: this.textEmptyOption }].concat(opts);
163
+ opts = [{ value: undefined, label: this.textEmptyOption || this.i18n("ez-combo-box.placeholder") }].concat(opts);
163
164
  }
164
165
  this._visibleOptions = opts;
165
166
  this._maxWidthValue = this.getMaxWidthValue();
@@ -204,7 +205,8 @@ export class EzComboBox {
204
205
  this._preSelection = indexValue === -1 ? 0 : indexValue;
205
206
  if (!!this._resizeObserver)
206
207
  this._resizeObserver.observe(this._textInput);
207
- await this.setFocus();
208
+ if (!this.preventAutoFocus)
209
+ await this.setFocus();
208
210
  }
209
211
  hideOptions() {
210
212
  var _a;
@@ -266,7 +268,7 @@ export class EzComboBox {
266
268
  }
267
269
  }
268
270
  cancelPreselection() {
269
- if (!this._textInput.value && this.value) {
271
+ if (!this._textInput.value && this.sanitizeValue(this.value)) {
270
272
  this.selectOption(undefined);
271
273
  }
272
274
  else {
@@ -293,10 +295,17 @@ export class EzComboBox {
293
295
  this._preSelection = undefined;
294
296
  this.updateVisibleOptions();
295
297
  }
298
+ sanitizeValue(value) {
299
+ if (value === "undefined" || value === "null") {
300
+ return undefined;
301
+ }
302
+ return value;
303
+ }
296
304
  //---------------------------------------------
297
305
  // Lifecycle web component
298
306
  //---------------------------------------------
299
- componentWillLoad() {
307
+ async componentWillLoad() {
308
+ this.i18n = await initI18n();
300
309
  if (this.options === undefined) {
301
310
  this.options = [];
302
311
  const optionsTags = this.el.querySelectorAll("option");
@@ -314,9 +323,7 @@ export class EzComboBox {
314
323
  }
315
324
  this.loadOptions(SearchMode.PRELOAD);
316
325
  }
317
- componentDidLoad() {
318
- CSSVarsUtils.applyVarsTextInput(this.el, this._textInput);
319
- this.setInputValue(false);
326
+ setResizeObserver() {
320
327
  this._resizeObserver = new ResizeObserver((entries) => {
321
328
  window.requestAnimationFrame(() => {
322
329
  if (!Array.isArray(entries) || !entries.length)
@@ -329,6 +336,16 @@ export class EzComboBox {
329
336
  this._comboBoxList.width = textInputWidth;
330
337
  });
331
338
  });
339
+ }
340
+ connectedCallback() {
341
+ if (!this._resizeObserver) {
342
+ this.setResizeObserver();
343
+ }
344
+ }
345
+ componentDidLoad() {
346
+ CSSVarsUtils.applyVarsTextInput(this.el, this._textInput);
347
+ this.setInputValue(false);
348
+ this.setResizeObserver();
332
349
  if (this.autoFocus) {
333
350
  requestAnimationFrame(() => {
334
351
  this.setFocus({ selectText: true });
@@ -340,6 +357,7 @@ export class EzComboBox {
340
357
  (_a = this._popover) === null || _a === void 0 ? void 0 : _a.remove();
341
358
  if (this._resizeObserver) {
342
359
  this._resizeObserver.disconnect();
360
+ this._resizeObserver = null;
343
361
  }
344
362
  }
345
363
  //---------------------------------------------
@@ -439,7 +457,7 @@ export class EzComboBox {
439
457
  render() {
440
458
  var _a;
441
459
  ElementIDUtils.addIDInfoIfNotExists(this.el, 'input');
442
- return (h(Host, null, h("ez-text-input", { "data-element-id": 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 }, h("button", { class: "btn", slot: "rightIcon", disabled: !this.enabled, tabindex: -1, onClick: () => this.handlerIconClick() }, h("ez-icon", { iconName: "chevron-down" }))), 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 }, 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 }))));
460
+ return (h(Host, null, h("ez-text-input", { "data-element-id": 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") }, h("button", { class: "btn", slot: "rightIcon", disabled: !this.enabled, tabindex: -1, onClick: () => this.handlerIconClick() }, h("ez-icon", { iconName: "chevron-down" }))), 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, "data-element-id": this.el.getAttribute("data-element-id") }, 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 }))));
443
461
  }
444
462
  static get is() { return "ez-combo-box"; }
445
463
  static get encapsulation() { return "shadow"; }
@@ -795,6 +813,24 @@ export class EzComboBox {
795
813
  "reflect": false,
796
814
  "defaultValue": "false"
797
815
  },
816
+ "preventAutoFocus": {
817
+ "type": "boolean",
818
+ "mutable": false,
819
+ "complexType": {
820
+ "original": "boolean",
821
+ "resolved": "boolean",
822
+ "references": {}
823
+ },
824
+ "required": false,
825
+ "optional": false,
826
+ "docs": {
827
+ "tags": [],
828
+ "text": "Se true, impede que o campo de texto receba foco automaticamente ao abrir as op\u00E7\u00F5es."
829
+ },
830
+ "attribute": "prevent-auto-focus",
831
+ "reflect": false,
832
+ "defaultValue": "false"
833
+ },
798
834
  "alternativePlaceholder": {
799
835
  "type": "string",
800
836
  "mutable": false,
@@ -827,8 +863,7 @@ export class EzComboBox {
827
863
  "text": "Texto a ser apresentado na op\u00E7\u00E3o de valor nulo."
828
864
  },
829
865
  "attribute": "text-empty-option",
830
- "reflect": false,
831
- "defaultValue": "\"Selecione um item\""
866
+ "reflect": false
832
867
  }
833
868
  };
834
869
  }
@@ -1,6 +1,7 @@
1
1
  import { Host, h } from '@stencil/core';
2
2
  import { DateUtils, ElementIDUtils } from '@sankhyalabs/core';
3
3
  import CSSVarsUtils from '../../utils/CSSVarsUtils';
4
+ import initI18n from '../../utils/i18n';
4
5
  export class EzDateInput {
5
6
  constructor() {
6
7
  this._changePending = false;
@@ -117,7 +118,7 @@ export class EzDateInput {
117
118
  else {
118
119
  this.changeValue(undefined);
119
120
  this.ezCancelWaitingChange.emit();
120
- this.errorMessage = "O valor digitado não é uma data válida";
121
+ this.errorMessage = this.i18n("ez-date-input.invalidDate");
121
122
  }
122
123
  }
123
124
  finally {
@@ -153,6 +154,9 @@ export class EzDateInput {
153
154
  disconnectedCallback() {
154
155
  this._popover.hide();
155
156
  }
157
+ async componentWillLoad() {
158
+ this.i18n = await initI18n();
159
+ }
156
160
  componentDidLoad() {
157
161
  CSSVarsUtils.applyVarsTextInput(this._elem, this._textInput);
158
162
  this.setInputValue();
@@ -164,7 +168,7 @@ export class EzDateInput {
164
168
  }
165
169
  render() {
166
170
  ElementIDUtils.addIDInfoIfNotExists(this._elem, 'input');
167
- return (h(Host, null, h("ez-text-input", { "data-element-id": ElementIDUtils.getInternalIDInfo("textInput"), ref: elem => this._textInput = elem, "data-slave-mode": "true", label: this.label, onBlur: () => this.handleBlur(), onInput: (evt) => this.handleInput(evt), restrict: "0123456789/", enabled: this.enabled, errorMessage: this.errorMessage, mode: this.mode, canShowError: this.canShowError, alternativePlaceholder: this.alternativePlaceholder }, h("button", { disabled: !this.enabled, tabindex: -1, class: "btn-open-cal", onClick: () => { var _a; return (_a = this._popover) === null || _a === void 0 ? void 0 : _a.showUnder(this._textInput); }, slot: "leftIcon" })), h("ez-popover-plus", { ref: elem => this._popover = elem, anchorElement: this._textInput, autoClose: true, boxWidth: 'fit-content', overlayType: 'none' }, h("ez-calendar", { ref: elem => this._calendar = elem, "data-element-id": ElementIDUtils.getInternalIDInfo("calendar"), onEzChange: (event) => { this.hideCalendar(); event.stopPropagation(); } }))));
171
+ return (h(Host, null, h("ez-text-input", { "data-element-id": ElementIDUtils.getInternalIDInfo("textInput"), ref: elem => this._textInput = elem, "data-slave-mode": "true", label: this.label, onBlur: () => this.handleBlur(), onInput: (evt) => this.handleInput(evt), restrict: "0123456789/", enabled: this.enabled, errorMessage: this.errorMessage, mode: this.mode, canShowError: this.canShowError, alternativePlaceholder: this.alternativePlaceholder }, h("button", { disabled: !this.enabled, tabindex: -1, class: "btn-open-cal", onClick: () => { var _a; return (_a = this._popover) === null || _a === void 0 ? void 0 : _a.showUnder(this._textInput); }, slot: "leftIcon" })), h("ez-popover-plus", { ref: elem => this._popover = elem, anchorElement: this._textInput, autoClose: true, boxWidth: 'fit-content', overlayType: 'none', "data-element-id": this._elem.getAttribute("data-element-id") }, h("ez-calendar", { ref: elem => this._calendar = elem, "data-element-id": ElementIDUtils.getInternalIDInfo("calendar"), onEzChange: (event) => { this.hideCalendar(); event.stopPropagation(); } }))));
168
172
  }
169
173
  static get is() { return "ez-date-input"; }
170
174
  static get encapsulation() { return "shadow"; }
@@ -1,6 +1,7 @@
1
1
  import { Host, h } from '@stencil/core';
2
2
  import { DateUtils, ElementIDUtils, TimeFormatter } from '@sankhyalabs/core';
3
3
  import CSSVarsUtils from '../../utils/CSSVarsUtils';
4
+ import initI18n from '../../utils/i18n';
4
5
  export class EzDateTimeInput {
5
6
  constructor() {
6
7
  this._changePending = false;
@@ -166,7 +167,7 @@ export class EzDateTimeInput {
166
167
  else {
167
168
  this.changeValue(undefined);
168
169
  this.ezCancelWaitingChange.emit();
169
- this.errorMessage = "O valor digitado não é uma data válida";
170
+ this.errorMessage = this.i18n("ez-date-time-input.invalidDate");
170
171
  }
171
172
  }
172
173
  finally {
@@ -204,6 +205,9 @@ export class EzDateTimeInput {
204
205
  disconnectedCallback() {
205
206
  this._popover.hide();
206
207
  }
208
+ async componentWillLoad() {
209
+ this.i18n = await initI18n();
210
+ }
207
211
  componentDidLoad() {
208
212
  CSSVarsUtils.applyVarsTextInput(this._elem, this._textInput);
209
213
  this.setInputValue();
@@ -215,7 +219,7 @@ export class EzDateTimeInput {
215
219
  }
216
220
  render() {
217
221
  ElementIDUtils.addIDInfoIfNotExists(this._elem, 'input');
218
- return (h(Host, null, h("ez-text-input", { "data-element-id": ElementIDUtils.getInternalIDInfo("textInput"), ref: elem => this._textInput = elem, "data-slave-mode": "true", label: this.label, restrict: "0123456789/: ", enabled: this.enabled, errorMessage: this.errorMessage, mode: this.mode, onKeyDown: event => { this.handleKeyDown(event); }, onBlur: () => this.handleBlur(), onInput: (evt) => this.handleInput(evt), onFocus: () => this.handleFocus(), onClick: () => this.handleClick(), canShowError: this.canShowError, alternativePlaceholder: this.alternativePlaceholder }, h("button", { disabled: !this.enabled, tabindex: -1, class: "btn-open-cal", onClick: () => { var _a; return (_a = this._popover) === null || _a === void 0 ? void 0 : _a.showUnder(this._textInput); }, slot: "leftIcon" })), h("ez-popover-plus", { ref: elem => this._popover = elem, anchorElement: this._textInput, autoClose: true, boxWidth: 'fit-content', overlayType: 'none' }, h("ez-calendar", { ref: elem => this._calendar = elem, "data-element-id": ElementIDUtils.getInternalIDInfo("calendar"), onEzChange: (event) => { this.hideCalendar(); event.stopPropagation(); }, time: true, showSeconds: this.showSeconds }))));
222
+ return (h(Host, null, h("ez-text-input", { "data-element-id": ElementIDUtils.getInternalIDInfo("textInput"), ref: elem => this._textInput = elem, "data-slave-mode": "true", label: this.label, restrict: "0123456789/: ", enabled: this.enabled, errorMessage: this.errorMessage, mode: this.mode, onKeyDown: event => { this.handleKeyDown(event); }, onBlur: () => this.handleBlur(), onInput: (evt) => this.handleInput(evt), onFocus: () => this.handleFocus(), onClick: () => this.handleClick(), canShowError: this.canShowError, alternativePlaceholder: this.alternativePlaceholder }, h("button", { disabled: !this.enabled, tabindex: -1, class: "btn-open-cal", onClick: () => { var _a; return (_a = this._popover) === null || _a === void 0 ? void 0 : _a.showUnder(this._textInput); }, slot: "leftIcon" })), h("ez-popover-plus", { ref: elem => this._popover = elem, anchorElement: this._textInput, autoClose: true, boxWidth: 'fit-content', overlayType: 'none', "data-element-id": this._elem.getAttribute("data-element-id") }, h("ez-calendar", { ref: elem => this._calendar = elem, "data-element-id": ElementIDUtils.getInternalIDInfo("calendar"), onEzChange: (event) => { this.hideCalendar(); event.stopPropagation(); }, time: true, showSeconds: this.showSeconds }))));
219
223
  }
220
224
  static get is() { return "ez-date-time-input"; }
221
225
  static get encapsulation() { return "shadow"; }