@sankhyalabs/ezui 6.1.0-dev.1 → 6.1.0-dev.11

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 (271) hide show
  1. package/dist/cjs/RichToolbarHelper-438916fa.js +46 -0
  2. package/dist/cjs/_commonjsHelpers-537d719a.js +20 -0
  3. package/dist/cjs/ez-actions-button.cjs.entry.js +1 -1
  4. package/dist/cjs/ez-alert-list.cjs.entry.js +1 -1
  5. package/dist/cjs/ez-alert.cjs.entry.js +1 -1
  6. package/dist/cjs/ez-application.cjs.entry.js +1 -1
  7. package/dist/cjs/ez-avatar.cjs.entry.js +1 -1
  8. package/dist/cjs/ez-badge.cjs.entry.js +1 -1
  9. package/dist/cjs/ez-breadcrumb.cjs.entry.js +1 -1
  10. package/dist/cjs/ez-button.cjs.entry.js +1 -1
  11. package/dist/cjs/ez-calendar.cjs.entry.js +1 -1
  12. package/dist/cjs/ez-card-item_2.cjs.entry.js +2 -2
  13. package/dist/cjs/ez-chart.cjs.entry.js +4 -19
  14. package/dist/cjs/ez-check.cjs.entry.js +2 -2
  15. package/dist/cjs/ez-chip.cjs.entry.js +3 -2
  16. package/dist/cjs/ez-collapsible-box.cjs.entry.js +2 -2
  17. package/dist/cjs/{ez-combo-box-list_3.cjs.entry.js → ez-combo-box-list_4.cjs.entry.js} +272 -3
  18. package/dist/cjs/ez-combo-box.cjs.entry.js +18 -6
  19. package/dist/cjs/ez-date-input.cjs.entry.js +1 -1
  20. package/dist/cjs/ez-date-time-input.cjs.entry.js +1 -1
  21. package/dist/cjs/ez-dialog.cjs.entry.js +1 -1
  22. package/dist/cjs/ez-double-list.cjs.entry.js +1 -1
  23. package/dist/cjs/ez-dropdown.cjs.entry.js +1 -1
  24. package/dist/cjs/ez-file-item.cjs.entry.js +1 -1
  25. package/dist/cjs/ez-filter-input.cjs.entry.js +129 -0
  26. package/dist/cjs/ez-form-view.cjs.entry.js +9 -2
  27. package/dist/cjs/ez-form.cjs.entry.js +2 -2
  28. package/dist/cjs/ez-grid.cjs.entry.js +34 -4
  29. package/dist/cjs/ez-guide-navigator.cjs.entry.js +1 -1
  30. package/dist/cjs/ez-icon.cjs.entry.js +2 -2
  31. package/dist/cjs/ez-link-builder_6.cjs.entry.js +295 -0
  32. package/dist/cjs/ez-list.cjs.entry.js +1 -1
  33. package/dist/cjs/ez-loading-bar.cjs.entry.js +1 -1
  34. package/dist/cjs/ez-modal-container.cjs.entry.js +2 -2
  35. package/dist/cjs/ez-modal.cjs.entry.js +1 -1
  36. package/dist/cjs/ez-multi-selection-list.cjs.entry.js +1 -1
  37. package/dist/cjs/ez-number-input.cjs.entry.js +1 -1
  38. package/dist/cjs/ez-popover-plus_3.cjs.entry.js +1 -1
  39. package/dist/cjs/ez-popover.cjs.entry.js +1 -1
  40. package/dist/cjs/ez-popup.cjs.entry.js +1 -1
  41. package/dist/cjs/ez-radio-button.cjs.entry.js +1 -1
  42. package/dist/cjs/ez-rich-toolbar-item.cjs.entry.js +27 -0
  43. package/dist/cjs/ez-scroller_2.cjs.entry.js +1 -1
  44. package/dist/cjs/ez-search-plus.cjs.entry.js +5 -2
  45. package/dist/cjs/ez-search-result-list.cjs.entry.js +1 -1
  46. package/dist/cjs/ez-search.cjs.entry.js +1 -1
  47. package/dist/cjs/ez-sidebar-navigator.cjs.entry.js +1 -1
  48. package/dist/cjs/ez-skeleton.cjs.entry.js +1 -1
  49. package/dist/cjs/ez-sortable-list.cjs.entry.js +1 -1
  50. package/dist/cjs/ez-split-button.cjs.entry.js +1 -1
  51. package/dist/cjs/ez-split-item.cjs.entry.js +1 -1
  52. package/dist/cjs/ez-split-panel.cjs.entry.js +1 -1
  53. package/dist/cjs/ez-tabselector.cjs.entry.js +1 -1
  54. package/dist/cjs/ez-text-area.cjs.entry.js +1 -1
  55. package/dist/cjs/ez-text-input.cjs.entry.js +1 -1
  56. package/dist/cjs/ez-time-input.cjs.entry.js +1 -1
  57. package/dist/cjs/ez-toast.cjs.entry.js +1 -1
  58. package/dist/cjs/{ez-filter-input_2.cjs.entry.js → ez-tooltip.cjs.entry.js} +2 -124
  59. package/dist/cjs/ez-tree.cjs.entry.js +1 -1
  60. package/dist/cjs/ez-upload.cjs.entry.js +1 -1
  61. package/dist/cjs/ez-view-stack.cjs.entry.js +1 -1
  62. package/dist/cjs/ezui.cjs.js +2 -2
  63. package/dist/cjs/filter-column.cjs.entry.js +1 -1
  64. package/dist/cjs/{index-a7b0c73d.js → index-9e5554cb.js} +23 -8
  65. package/dist/cjs/loader.cjs.js +2 -2
  66. package/dist/cjs/purify-a7dc3a08.js +1354 -0
  67. package/dist/cjs/{search-column-27d1f72f.js → search-column-1d3c9fa5.js} +1 -1
  68. package/dist/collection/collection-manifest.json +8 -0
  69. package/dist/collection/components/ez-check/ez-check.css +1 -1
  70. package/dist/collection/components/ez-chip/ez-chip.js +20 -1
  71. package/dist/collection/components/ez-collapsible-box/ez-collapsible-box.css +1 -0
  72. package/dist/collection/components/ez-combo-box/ez-combo-box-list/ez-combo-box-list.css +1 -0
  73. package/dist/collection/components/ez-combo-box/ez-combo-box.js +53 -5
  74. package/dist/collection/components/ez-form-view/ez-form-view.js +2 -1
  75. package/dist/collection/components/ez-form-view/fieldbuilder/FieldBuilder.js +2 -0
  76. package/dist/collection/components/ez-form-view/fieldbuilder/templates/RichText.tpl.js +4 -0
  77. package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +28 -2
  78. package/dist/collection/components/ez-grid/controller/ag-grid/GridEditionManager.js +4 -1
  79. package/dist/collection/components/ez-icon/ez-icon.css +147 -140
  80. package/dist/collection/components/ez-modal-container/ez-modal-container.css +2 -0
  81. package/dist/collection/components/ez-popover-plus/subcomponent/ez-popover-core.css +3 -2
  82. package/dist/collection/components/ez-rich-text/ez-link-builder/ez-link-builder.css +22 -0
  83. package/dist/collection/components/ez-rich-text/ez-link-builder/ez-link-builder.js +131 -0
  84. package/dist/collection/components/ez-rich-text/ez-rich-text.css +35 -0
  85. package/dist/collection/components/ez-rich-text/ez-rich-text.js +544 -0
  86. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/RichToolbarHelper.js +39 -0
  87. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-arrows/ez-rich-toolbar-arrows.css +4 -0
  88. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-arrows/ez-rich-toolbar-arrows.js +19 -0
  89. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-configs/ez-rich-toolbar-configs.css +4 -0
  90. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-configs/ez-rich-toolbar-configs.js +19 -0
  91. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-item/ez-rich-toolbar-item.css +20 -0
  92. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-item/ez-rich-toolbar-item.js +122 -0
  93. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-letters/ez-rich-toolbar-letters.css +4 -0
  94. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-letters/ez-rich-toolbar-letters.js +19 -0
  95. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar.css +42 -0
  96. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar.js +183 -0
  97. package/dist/collection/components/ez-rich-text/ez-simple-image-uploader/ez-simple-image-uploader.css +70 -0
  98. package/dist/collection/components/ez-rich-text/ez-simple-image-uploader/ez-simple-image-uploader.js +216 -0
  99. package/dist/collection/components/ez-rich-text/ez-simple-image-uploader/test/resource/imageBase64.js +1 -0
  100. package/dist/collection/components/ez-rich-text/ez-simple-image-uploader/utils/fileToBase64.js +14 -0
  101. package/dist/collection/components/ez-rich-text/ez-simple-image-uploader/utils/formatBytes.js +10 -0
  102. package/dist/collection/components/ez-search-plus/ez-search-plus.css +1 -0
  103. package/dist/collection/components/ez-search-plus/ez-search-plus.js +3 -0
  104. package/dist/collection/components/ez-tooltip/ez-tooltip.js +1 -1
  105. package/dist/custom-elements/index.d.ts +48 -0
  106. package/dist/custom-elements/index.js +2051 -20
  107. package/dist/esm/RichToolbarHelper-fd6427df.js +41 -0
  108. package/dist/esm/_commonjsHelpers-9943807e.js +17 -0
  109. package/dist/esm/ez-actions-button.entry.js +1 -1
  110. package/dist/esm/ez-alert-list.entry.js +1 -1
  111. package/dist/esm/ez-alert.entry.js +1 -1
  112. package/dist/esm/ez-application.entry.js +1 -1
  113. package/dist/esm/ez-avatar.entry.js +1 -1
  114. package/dist/esm/ez-badge.entry.js +1 -1
  115. package/dist/esm/ez-breadcrumb.entry.js +1 -1
  116. package/dist/esm/ez-button.entry.js +1 -1
  117. package/dist/esm/ez-calendar.entry.js +1 -1
  118. package/dist/esm/ez-card-item_2.entry.js +2 -2
  119. package/dist/esm/ez-chart.entry.js +2 -17
  120. package/dist/esm/ez-check.entry.js +2 -2
  121. package/dist/esm/ez-chip.entry.js +3 -2
  122. package/dist/esm/ez-collapsible-box.entry.js +2 -2
  123. package/dist/esm/{ez-combo-box-list_3.entry.js → ez-combo-box-list_4.entry.js} +273 -5
  124. package/dist/esm/ez-combo-box.entry.js +18 -6
  125. package/dist/esm/ez-date-input.entry.js +1 -1
  126. package/dist/esm/ez-date-time-input.entry.js +1 -1
  127. package/dist/esm/ez-dialog.entry.js +1 -1
  128. package/dist/esm/ez-double-list.entry.js +1 -1
  129. package/dist/esm/ez-dropdown.entry.js +1 -1
  130. package/dist/esm/ez-file-item.entry.js +1 -1
  131. package/dist/esm/ez-filter-input.entry.js +125 -0
  132. package/dist/esm/ez-form-view.entry.js +9 -2
  133. package/dist/esm/ez-form.entry.js +2 -2
  134. package/dist/esm/ez-grid.entry.js +34 -4
  135. package/dist/esm/ez-guide-navigator.entry.js +1 -1
  136. package/dist/esm/ez-icon.entry.js +2 -2
  137. package/dist/esm/ez-link-builder_6.entry.js +286 -0
  138. package/dist/esm/ez-list.entry.js +1 -1
  139. package/dist/esm/ez-loading-bar.entry.js +1 -1
  140. package/dist/esm/ez-modal-container.entry.js +2 -2
  141. package/dist/esm/ez-modal.entry.js +1 -1
  142. package/dist/esm/ez-multi-selection-list.entry.js +1 -1
  143. package/dist/esm/ez-number-input.entry.js +1 -1
  144. package/dist/esm/ez-popover-plus_3.entry.js +1 -1
  145. package/dist/esm/ez-popover.entry.js +1 -1
  146. package/dist/esm/ez-popup.entry.js +1 -1
  147. package/dist/esm/ez-radio-button.entry.js +1 -1
  148. package/dist/esm/ez-rich-toolbar-item.entry.js +23 -0
  149. package/dist/esm/ez-scroller_2.entry.js +1 -1
  150. package/dist/esm/ez-search-plus.entry.js +5 -2
  151. package/dist/esm/ez-search-result-list.entry.js +1 -1
  152. package/dist/esm/ez-search.entry.js +1 -1
  153. package/dist/esm/ez-sidebar-navigator.entry.js +1 -1
  154. package/dist/esm/ez-skeleton.entry.js +1 -1
  155. package/dist/esm/ez-sortable-list.entry.js +1 -1
  156. package/dist/esm/ez-split-button.entry.js +1 -1
  157. package/dist/esm/ez-split-item.entry.js +1 -1
  158. package/dist/esm/ez-split-panel.entry.js +1 -1
  159. package/dist/esm/ez-tabselector.entry.js +1 -1
  160. package/dist/esm/ez-text-area.entry.js +1 -1
  161. package/dist/esm/ez-text-input.entry.js +1 -1
  162. package/dist/esm/ez-time-input.entry.js +1 -1
  163. package/dist/esm/ez-toast.entry.js +1 -1
  164. package/dist/esm/{ez-filter-input_2.entry.js → ez-tooltip.entry.js} +3 -124
  165. package/dist/esm/ez-tree.entry.js +1 -1
  166. package/dist/esm/ez-upload.entry.js +1 -1
  167. package/dist/esm/ez-view-stack.entry.js +1 -1
  168. package/dist/esm/ezui.js +3 -3
  169. package/dist/esm/filter-column.entry.js +1 -1
  170. package/dist/esm/{index-baa5e267.js → index-5a720e56.js} +23 -9
  171. package/dist/esm/loader.js +3 -3
  172. package/dist/esm/purify-da6317bb.js +1352 -0
  173. package/dist/esm/{search-column-e609d513.js → search-column-35f4ad93.js} +1 -1
  174. package/dist/ezui/ezui.esm.js +1 -1
  175. package/dist/ezui/{p-e75c7a23.entry.js → p-000159dc.entry.js} +1 -1
  176. package/dist/ezui/{p-998afb6a.entry.js → p-01b72d7e.entry.js} +1 -1
  177. package/dist/ezui/{p-44caad9a.entry.js → p-0378416a.entry.js} +1 -1
  178. package/dist/ezui/{p-288631d1.entry.js → p-06f1b8e4.entry.js} +1 -1
  179. package/dist/ezui/p-112455b1.js +1 -0
  180. package/dist/ezui/{p-77a4bd35.entry.js → p-11bfeca3.entry.js} +1 -1
  181. package/dist/ezui/{p-5dde9df3.entry.js → p-15d9cd15.entry.js} +1 -1
  182. package/dist/ezui/{p-bff24a7b.js → p-175154a0.js} +1 -1
  183. package/dist/ezui/{p-9c5cd3b2.entry.js → p-18e71523.entry.js} +1 -1
  184. package/dist/ezui/{p-b38411b4.entry.js → p-1af2e33b.entry.js} +46 -46
  185. package/dist/ezui/p-1c55dda0.js +3 -0
  186. package/dist/ezui/p-1cebdc92.js +1 -0
  187. package/dist/ezui/{p-2b4df33d.entry.js → p-1fefb37a.entry.js} +1 -1
  188. package/dist/ezui/{p-a3bf8cf1.entry.js → p-28987410.entry.js} +1 -1
  189. package/dist/ezui/p-40d3e90d.entry.js +1 -0
  190. package/dist/ezui/{p-fa6732f2.entry.js → p-44b39e81.entry.js} +1 -1
  191. package/dist/ezui/{p-4d30b703.entry.js → p-4a876b8b.entry.js} +1 -1
  192. package/dist/ezui/p-51e34317.entry.js +1 -0
  193. package/dist/ezui/{p-59561756.entry.js → p-545bd5d5.entry.js} +1 -1
  194. package/dist/ezui/{p-07894c4a.entry.js → p-6b2cc9b8.entry.js} +1 -1
  195. package/dist/ezui/{p-496f7832.entry.js → p-6b3fddee.entry.js} +1 -1
  196. package/dist/ezui/{p-1f50fa05.entry.js → p-6b51c9cc.entry.js} +1 -1
  197. package/dist/ezui/p-6ec40dec.entry.js +1 -0
  198. package/dist/ezui/{p-5ed81457.entry.js → p-6fc26622.entry.js} +1 -1
  199. package/dist/ezui/p-6fc94b05.entry.js +1 -0
  200. package/dist/ezui/{p-0d9856a4.entry.js → p-700c1320.entry.js} +1 -1
  201. package/dist/ezui/{p-da1b4a38.entry.js → p-708b196e.entry.js} +1 -1
  202. package/dist/ezui/{p-555c9018.entry.js → p-7567ccdd.entry.js} +1 -1
  203. package/dist/ezui/{p-4b67138e.entry.js → p-769632d5.entry.js} +1 -1
  204. package/dist/ezui/p-78e975b4.entry.js +1 -0
  205. package/dist/ezui/{p-58f69d24.entry.js → p-7ec3f335.entry.js} +1 -1
  206. package/dist/ezui/{p-1e7a8633.entry.js → p-81461d2f.entry.js} +1 -1
  207. package/dist/ezui/{p-8df1ca33.entry.js → p-82fa4b09.entry.js} +1 -1
  208. package/dist/ezui/{p-e4528470.entry.js → p-85d7b78a.entry.js} +1 -1
  209. package/dist/ezui/{p-1bcfd88c.entry.js → p-87f5a060.entry.js} +1 -1
  210. package/dist/ezui/{p-a148e994.entry.js → p-90c90351.entry.js} +1 -1
  211. package/dist/ezui/{p-4bd6dd6a.entry.js → p-90e91173.entry.js} +1 -1
  212. package/dist/ezui/{p-09de35a2.entry.js → p-91ccae0c.entry.js} +1 -1
  213. package/dist/ezui/{p-bac0f920.entry.js → p-926a0bde.entry.js} +1 -1
  214. package/dist/ezui/{p-c0d9c4f8.entry.js → p-92748142.entry.js} +1 -1
  215. package/dist/ezui/{p-3ba9565c.entry.js → p-97d94ef3.entry.js} +1 -1
  216. package/dist/ezui/{p-e6a9041d.entry.js → p-9e95bfeb.entry.js} +1 -1
  217. package/dist/ezui/p-9fc86fe3.entry.js +1 -0
  218. package/dist/ezui/{p-cb75eb46.entry.js → p-a11827ca.entry.js} +1 -1
  219. package/dist/ezui/p-bd210889.entry.js +1 -0
  220. package/dist/ezui/p-be00bcad.entry.js +1 -0
  221. package/dist/ezui/{p-69937816.entry.js → p-be94d15a.entry.js} +1 -1
  222. package/dist/ezui/{p-9f5fa3f9.entry.js → p-c2b20f78.entry.js} +1 -1
  223. package/dist/ezui/p-c503a0f0.entry.js +1 -0
  224. package/dist/ezui/{p-dc73e1fe.entry.js → p-c7035d65.entry.js} +1 -1
  225. package/dist/ezui/p-cf33bc48.entry.js +1 -0
  226. package/dist/ezui/{p-7019f782.entry.js → p-d2290004.entry.js} +1 -1
  227. package/dist/ezui/p-d2a24d98.entry.js +1 -0
  228. package/dist/ezui/{p-7eae6986.entry.js → p-d4d6d5fe.entry.js} +1 -1
  229. package/dist/ezui/{p-26685c50.entry.js → p-db56b813.entry.js} +1 -1
  230. package/dist/ezui/{p-1eb34cad.entry.js → p-ddd0bd61.entry.js} +1 -1
  231. package/dist/ezui/{p-a80b1287.entry.js → p-dfca5946.entry.js} +1 -1
  232. package/dist/ezui/{p-b81881ac.entry.js → p-e195eaad.entry.js} +1 -1
  233. package/dist/ezui/{p-33326ac5.entry.js → p-e4ae4ddb.entry.js} +1 -1
  234. package/dist/ezui/{p-23a36bb6.js → p-e4c7eb39.js} +2 -2
  235. package/dist/ezui/{p-57363cfd.entry.js → p-e4ead194.entry.js} +1 -1
  236. package/dist/ezui/{p-0306dff7.entry.js → p-e6b38ade.entry.js} +1 -1
  237. package/dist/ezui/p-ea053063.entry.js +1 -0
  238. package/dist/ezui/{p-9478b13b.entry.js → p-ed48a632.entry.js} +1 -1
  239. package/dist/ezui/{p-6e429cff.entry.js → p-fc194825.entry.js} +1 -1
  240. package/dist/types/components/ez-chip/ez-chip.d.ts +4 -0
  241. package/dist/types/components/ez-combo-box/ez-combo-box.d.ts +10 -0
  242. package/dist/types/components/ez-form-view/fieldbuilder/templates/RichText.tpl.d.ts +2 -0
  243. package/dist/types/components/ez-grid/controller/ag-grid/AgGridController.d.ts +1 -0
  244. package/dist/types/components/ez-grid/controller/ag-grid/GridEditionManager.d.ts +1 -0
  245. package/dist/types/components/ez-rich-text/ez-link-builder/ez-link-builder.d.ts +17 -0
  246. package/dist/types/components/ez-rich-text/ez-rich-text.d.ts +98 -0
  247. package/dist/types/components/ez-rich-text/ez-rich-toolbar/RichToolbarHelper.d.ts +43 -0
  248. package/dist/types/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-arrows/ez-rich-toolbar-arrows.d.ts +3 -0
  249. package/dist/types/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-configs/ez-rich-toolbar-configs.d.ts +3 -0
  250. package/dist/types/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-item/ez-rich-toolbar-item.d.ts +11 -0
  251. package/dist/types/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-letters/ez-rich-toolbar-letters.d.ts +3 -0
  252. package/dist/types/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar.d.ts +33 -0
  253. package/dist/types/components/ez-rich-text/ez-simple-image-uploader/ez-simple-image-uploader.d.ts +37 -0
  254. package/dist/types/components/ez-rich-text/ez-simple-image-uploader/test/resource/imageBase64.d.ts +1 -0
  255. package/dist/types/components/ez-rich-text/ez-simple-image-uploader/utils/fileToBase64.d.ts +1 -0
  256. package/dist/types/components/ez-rich-text/ez-simple-image-uploader/utils/formatBytes.d.ts +1 -0
  257. package/dist/types/components/ez-search-plus/ez-search-plus.d.ts +1 -0
  258. package/dist/types/components.d.ts +315 -0
  259. package/package.json +2 -1
  260. package/react/components.d.ts +8 -0
  261. package/react/components.js +8 -0
  262. package/react/components.js.map +1 -1
  263. package/dist/ezui/p-2b42abbb.entry.js +0 -1
  264. package/dist/ezui/p-341da682.entry.js +0 -1
  265. package/dist/ezui/p-35115d5d.entry.js +0 -1
  266. package/dist/ezui/p-63cb493e.entry.js +0 -1
  267. package/dist/ezui/p-9567b31a.entry.js +0 -1
  268. package/dist/ezui/p-97c7cf51.entry.js +0 -1
  269. package/dist/ezui/p-bc2f844e.entry.js +0 -1
  270. package/dist/ezui/p-d47dabdf.entry.js +0 -1
  271. package/dist/ezui/p-e06a9886.entry.js +0 -1
@@ -0,0 +1,122 @@
1
+ import { h } from '@stencil/core';
2
+ export class EzRichToolbarItem {
3
+ constructor() {
4
+ this.icon = undefined;
5
+ this.command = undefined;
6
+ this.title = undefined;
7
+ this.value = undefined;
8
+ }
9
+ async triggerAction() {
10
+ this.actionTriggered.emit({ command: this.command, value: this.value });
11
+ }
12
+ render() {
13
+ return (h("div", { id: `rich-toolbar-item-${this.icon}`, class: `rich-toolbar-item`, title: this.title, onClick: this.triggerAction.bind(this) }, h("ez-icon", { class: 'toolbar-item', iconName: this.icon })));
14
+ }
15
+ static get is() { return "ez-rich-toolbar-item"; }
16
+ static get encapsulation() { return "scoped"; }
17
+ static get originalStyleUrls() {
18
+ return {
19
+ "$": ["ez-rich-toolbar-item.css"]
20
+ };
21
+ }
22
+ static get styleUrls() {
23
+ return {
24
+ "$": ["ez-rich-toolbar-item.css"]
25
+ };
26
+ }
27
+ static get properties() {
28
+ return {
29
+ "icon": {
30
+ "type": "string",
31
+ "mutable": false,
32
+ "complexType": {
33
+ "original": "string",
34
+ "resolved": "string",
35
+ "references": {}
36
+ },
37
+ "required": false,
38
+ "optional": false,
39
+ "docs": {
40
+ "tags": [],
41
+ "text": ""
42
+ },
43
+ "attribute": "icon",
44
+ "reflect": false
45
+ },
46
+ "command": {
47
+ "type": "string",
48
+ "mutable": false,
49
+ "complexType": {
50
+ "original": "string",
51
+ "resolved": "string",
52
+ "references": {}
53
+ },
54
+ "required": false,
55
+ "optional": false,
56
+ "docs": {
57
+ "tags": [],
58
+ "text": ""
59
+ },
60
+ "attribute": "command",
61
+ "reflect": false
62
+ },
63
+ "title": {
64
+ "type": "string",
65
+ "mutable": false,
66
+ "complexType": {
67
+ "original": "string",
68
+ "resolved": "string",
69
+ "references": {}
70
+ },
71
+ "required": false,
72
+ "optional": false,
73
+ "docs": {
74
+ "tags": [],
75
+ "text": ""
76
+ },
77
+ "attribute": "title",
78
+ "reflect": false
79
+ },
80
+ "value": {
81
+ "type": "string",
82
+ "mutable": false,
83
+ "complexType": {
84
+ "original": "string",
85
+ "resolved": "string",
86
+ "references": {}
87
+ },
88
+ "required": false,
89
+ "optional": true,
90
+ "docs": {
91
+ "tags": [],
92
+ "text": ""
93
+ },
94
+ "attribute": "value",
95
+ "reflect": false
96
+ }
97
+ };
98
+ }
99
+ static get events() {
100
+ return [{
101
+ "method": "actionTriggered",
102
+ "name": "actionTriggered",
103
+ "bubbles": true,
104
+ "cancelable": true,
105
+ "composed": true,
106
+ "docs": {
107
+ "tags": [],
108
+ "text": ""
109
+ },
110
+ "complexType": {
111
+ "original": "RichToolbarCommand",
112
+ "resolved": "RichToolbarCommand",
113
+ "references": {
114
+ "RichToolbarCommand": {
115
+ "location": "import",
116
+ "path": "../RichToolbarHelper"
117
+ }
118
+ }
119
+ }
120
+ }];
121
+ }
122
+ }
@@ -0,0 +1,19 @@
1
+ import { h, Host } from '@stencil/core';
2
+ import { RICH_TOOLBAR_COMMAND_ICON, RICH_TOOLBAR_COMMAND_TITLE, RICH_TOOLBAR_COMMANDS, RICH_TOOLBAR_FORMAT_TAGS, } from '../RichToolbarHelper';
3
+ export class EzRichToolbarLetters {
4
+ render() {
5
+ return (h(Host, null, h("ez-rich-toolbar-item", { icon: RICH_TOOLBAR_COMMAND_ICON.BOLD, command: RICH_TOOLBAR_COMMANDS.FORMAT, value: RICH_TOOLBAR_FORMAT_TAGS.BOLD, title: RICH_TOOLBAR_COMMAND_TITLE.BOLD }), h("ez-rich-toolbar-item", { icon: RICH_TOOLBAR_COMMAND_ICON.ITALIC, command: RICH_TOOLBAR_COMMANDS.FORMAT, value: RICH_TOOLBAR_FORMAT_TAGS.ITALIC, title: RICH_TOOLBAR_COMMAND_TITLE.ITALIC }), h("ez-rich-toolbar-item", { icon: RICH_TOOLBAR_COMMAND_ICON.UNDERLINE, command: RICH_TOOLBAR_COMMANDS.FORMAT, value: RICH_TOOLBAR_FORMAT_TAGS.UNDERLINE, title: RICH_TOOLBAR_COMMAND_TITLE.UNDERLINE })));
6
+ }
7
+ static get is() { return "ez-rich-toolbar-letters"; }
8
+ static get encapsulation() { return "scoped"; }
9
+ static get originalStyleUrls() {
10
+ return {
11
+ "$": ["ez-rich-toolbar-letters.css"]
12
+ };
13
+ }
14
+ static get styleUrls() {
15
+ return {
16
+ "$": ["ez-rich-toolbar-letters.css"]
17
+ };
18
+ }
19
+ }
@@ -0,0 +1,42 @@
1
+ :host {
2
+ display: block;
3
+ width: 100%;
4
+ }
5
+
6
+ .taskbar {
7
+ display: flex;
8
+ padding: 8px;
9
+ border-radius: 4px 4px 0 0;
10
+ }
11
+
12
+ .taskbar-group {
13
+ display: flex;
14
+ margin-right: 15px;
15
+ padding-right: 15px;
16
+ border-right: 1px solid #ddd;
17
+ }
18
+
19
+ .taskbar-group:last-child {
20
+ border-right: none;
21
+ }
22
+
23
+
24
+ .preview-btn {
25
+ font-family: Roboto;
26
+ font-size: 14px;
27
+ background: none;
28
+ display: flex;
29
+ align-items: center;
30
+ padding: 0 8px;
31
+ border-radius: 4px;
32
+ cursor: pointer;
33
+ color: var(--color--secondary, #383c45);
34
+ transition: 0.3s all ease-in-out;
35
+ width: 110px;
36
+ justify-content: center;
37
+ }
38
+
39
+
40
+ .preview-btn:hover {
41
+ background-color: #f5f5f5;
42
+ }
@@ -0,0 +1,183 @@
1
+ import { h, Host } from '@stencil/core';
2
+ import { RICH_TOOLBAR_COMMAND_TITLE, RICH_TOOLBAR_COMMANDS } from './RichToolbarHelper';
3
+ export class EzRichToolbar {
4
+ constructor() {
5
+ this.showPreview = true;
6
+ this.isPreviewMode = false;
7
+ this.showConfigs = true;
8
+ this.showTextFormat = true;
9
+ this.showUndoRedo = true;
10
+ }
11
+ handleActionTriggered(event) {
12
+ this.executeToolbarCommand.emit({ command: event.detail.command, value: event.detail.value });
13
+ }
14
+ handleClickPreview() {
15
+ this.executeToolbarCommand.emit({ command: RICH_TOOLBAR_COMMANDS.PREVIEW });
16
+ }
17
+ renderArrows() {
18
+ if (!this.showUndoRedo)
19
+ return;
20
+ return (h("div", { id: "rich-toolbar-undo-redo", class: "taskbar-group" }, h("ez-rich-toolbar-arrows", null)));
21
+ }
22
+ renderLetters() {
23
+ if (!this.showTextFormat)
24
+ return;
25
+ return (h("div", { id: "rich-toolbar-text-format", class: "taskbar-group" }, h("ez-rich-toolbar-letters", null)));
26
+ }
27
+ renderConfigs() {
28
+ if (!this.showConfigs)
29
+ return;
30
+ return (h("div", { id: "rich-toolbar-options-configs", class: "taskbar-group" }, h("ez-rich-toolbar-configs", null)));
31
+ }
32
+ renderPreview() {
33
+ if (!this.showPreview)
34
+ return;
35
+ return (h("div", { class: "taskbar-group" }, h("span", { id: 'rich-text-preview-btn', class: "preview-btn", title: this.getPreviewTitle(), onClick: this.handleClickPreview.bind(this) }, this.isPreviewMode ? 'Editar' : 'Pré-visualizar')));
36
+ }
37
+ getPreviewTitle() {
38
+ return this.isPreviewMode
39
+ ? RICH_TOOLBAR_COMMAND_TITLE.EDIT
40
+ : RICH_TOOLBAR_COMMAND_TITLE.PREVIEW;
41
+ }
42
+ render() {
43
+ return (h(Host, null, h("div", { class: "taskbar" }, this.renderPreview(), this.renderArrows(), this.renderLetters(), this.renderConfigs())));
44
+ }
45
+ static get is() { return "ez-rich-toolbar"; }
46
+ static get encapsulation() { return "scoped"; }
47
+ static get originalStyleUrls() {
48
+ return {
49
+ "$": ["ez-rich-toolbar.css"]
50
+ };
51
+ }
52
+ static get styleUrls() {
53
+ return {
54
+ "$": ["ez-rich-toolbar.css"]
55
+ };
56
+ }
57
+ static get properties() {
58
+ return {
59
+ "showPreview": {
60
+ "type": "boolean",
61
+ "mutable": false,
62
+ "complexType": {
63
+ "original": "boolean",
64
+ "resolved": "boolean",
65
+ "references": {}
66
+ },
67
+ "required": false,
68
+ "optional": false,
69
+ "docs": {
70
+ "tags": [],
71
+ "text": "Informa se as op\u00E7\u00F5es a op\u00E7\u00E3o de pr\u00E9-visualiza\u00E7\u00E3o deve ser apresentada."
72
+ },
73
+ "attribute": "show-preview",
74
+ "reflect": false,
75
+ "defaultValue": "true"
76
+ },
77
+ "isPreviewMode": {
78
+ "type": "boolean",
79
+ "mutable": false,
80
+ "complexType": {
81
+ "original": "boolean",
82
+ "resolved": "boolean",
83
+ "references": {}
84
+ },
85
+ "required": false,
86
+ "optional": false,
87
+ "docs": {
88
+ "tags": [],
89
+ "text": "Informa se o editor est\u00E1 em modo preview."
90
+ },
91
+ "attribute": "is-preview-mode",
92
+ "reflect": false,
93
+ "defaultValue": "false"
94
+ },
95
+ "showConfigs": {
96
+ "type": "boolean",
97
+ "mutable": false,
98
+ "complexType": {
99
+ "original": "boolean",
100
+ "resolved": "boolean",
101
+ "references": {}
102
+ },
103
+ "required": false,
104
+ "optional": false,
105
+ "docs": {
106
+ "tags": [],
107
+ "text": "Informa se as op\u00E7\u00F5es de configura\u00E7\u00F5es (lista, imagem e link) devem ser apresentadas."
108
+ },
109
+ "attribute": "show-configs",
110
+ "reflect": false,
111
+ "defaultValue": "true"
112
+ },
113
+ "showTextFormat": {
114
+ "type": "boolean",
115
+ "mutable": false,
116
+ "complexType": {
117
+ "original": "boolean",
118
+ "resolved": "boolean",
119
+ "references": {}
120
+ },
121
+ "required": false,
122
+ "optional": false,
123
+ "docs": {
124
+ "tags": [],
125
+ "text": "Informa se as op\u00E7\u00F5es de formata\u00E7\u00E3o de texto (it\u00E1lico, sublinhado e negrito) devem ser apresentadas."
126
+ },
127
+ "attribute": "show-text-format",
128
+ "reflect": false,
129
+ "defaultValue": "true"
130
+ },
131
+ "showUndoRedo": {
132
+ "type": "boolean",
133
+ "mutable": false,
134
+ "complexType": {
135
+ "original": "boolean",
136
+ "resolved": "boolean",
137
+ "references": {}
138
+ },
139
+ "required": false,
140
+ "optional": false,
141
+ "docs": {
142
+ "tags": [],
143
+ "text": "Informa se as op\u00E7\u00F5es de desfazer e refazer devem ser apresentadas."
144
+ },
145
+ "attribute": "show-undo-redo",
146
+ "reflect": false,
147
+ "defaultValue": "true"
148
+ }
149
+ };
150
+ }
151
+ static get events() {
152
+ return [{
153
+ "method": "executeToolbarCommand",
154
+ "name": "executeToolbarCommand",
155
+ "bubbles": true,
156
+ "cancelable": true,
157
+ "composed": true,
158
+ "docs": {
159
+ "tags": [],
160
+ "text": ""
161
+ },
162
+ "complexType": {
163
+ "original": "RichToolbarCommand",
164
+ "resolved": "RichToolbarCommand",
165
+ "references": {
166
+ "RichToolbarCommand": {
167
+ "location": "import",
168
+ "path": "./RichToolbarHelper"
169
+ }
170
+ }
171
+ }
172
+ }];
173
+ }
174
+ static get listeners() {
175
+ return [{
176
+ "name": "actionTriggered",
177
+ "method": "handleActionTriggered",
178
+ "target": undefined,
179
+ "capture": false,
180
+ "passive": false
181
+ }];
182
+ }
183
+ }
@@ -0,0 +1,70 @@
1
+ .image-uploader-container {
2
+ font-family: "Roboto";
3
+ color: #2b3a54;
4
+ display: flex;
5
+ flex-direction: column;
6
+ gap: var(--space--10, 10px);
7
+ justify-content: space-between;
8
+ align-items: center;
9
+ padding-bottom: var(--space--8, 8px);
10
+ }
11
+
12
+ .header {
13
+ display: flex;
14
+ font-weight: 500;
15
+ font-size: var(--font-size--medium, 16px);
16
+ }
17
+
18
+ .actions {
19
+ display: flex;
20
+ justify-content: flex-end;
21
+ gap: var(--space--12, 12px);
22
+ margin-top: var(--space--12, 12px);
23
+ width: 100%;
24
+ }
25
+
26
+ .drop-zone-section {
27
+ width: 100%;
28
+ }
29
+
30
+ .drop-zone {
31
+ display: flex;
32
+ flex-wrap: wrap;
33
+ background-color: var(--color--petroleum-70, #F4F6F9);
34
+ padding: var(--space--6, 6px);
35
+ width: 100%;
36
+ border-radius: var(--space--12, 12px);
37
+ box-sizing: border-box;
38
+ min-height: 100px;
39
+ }
40
+
41
+ .clickable {
42
+ cursor: pointer;
43
+ }
44
+
45
+ .dragging {
46
+ background-color: var(--color--petroleum-100, #C8CCD3);
47
+ }
48
+
49
+ .drop-zone-container {
50
+ width: 100%;
51
+ display: flex;
52
+ flex-wrap: wrap;
53
+ justify-content: center;
54
+ align-items: center;
55
+ border: 2px dashed var(--color-strokes, #DCE0E8);
56
+ border-radius: 6px;
57
+ box-sizing: border-box;
58
+ }
59
+
60
+ .text-error {
61
+ font-family: var(--font--pattern, "Roboto");
62
+ color: var(--color--red-600, #BD0025);
63
+ font-size: var(--font-size--small, 12px);
64
+ }
65
+
66
+ .button-close {
67
+ border: none;
68
+ background: none;
69
+ cursor: pointer;
70
+ }
@@ -0,0 +1,216 @@
1
+ import { Fragment, h } from "@stencil/core";
2
+ import { RICH_TOOLBAR_COMMANDS } from "../ez-rich-toolbar/RichToolbarHelper";
3
+ import { formatBytes } from "./utils/formatBytes";
4
+ import { fileToBase64 } from "./utils/fileToBase64";
5
+ export class EzSimpleImageUploader {
6
+ constructor() {
7
+ this.link = undefined;
8
+ this.base64 = undefined;
9
+ this.messageError = undefined;
10
+ this.selectedFile = undefined;
11
+ this.maxSize = 500;
12
+ }
13
+ /**
14
+ * Método responsável pela abertura do popup.
15
+ */
16
+ async show() {
17
+ this._popupElement.opened = true;
18
+ }
19
+ /**
20
+ * Método responsável pelo fechamento do popup.
21
+ */
22
+ async hide() {
23
+ this._popupElement.opened = false;
24
+ }
25
+ async handleCancel() {
26
+ this.removeSelectedFile();
27
+ this.executeToolbarCommand.emit({ command: RICH_TOOLBAR_COMMANDS.FOCUS });
28
+ await this.hide();
29
+ }
30
+ removeSelectedFile(event) {
31
+ event === null || event === void 0 ? void 0 : event.stopPropagation();
32
+ this.link = undefined;
33
+ this.base64 = undefined;
34
+ this.selectedFile = undefined;
35
+ this.messageError = undefined;
36
+ }
37
+ triggerFileSelect() {
38
+ if (!this.selectedFile) {
39
+ this._fileInput.click();
40
+ }
41
+ }
42
+ async handleImage(files) {
43
+ const file = files && files[0];
44
+ if (!file) {
45
+ return;
46
+ }
47
+ if (file.size < (this.maxSize * 1000)) {
48
+ this.selectedFile = file;
49
+ this.base64 = await fileToBase64(file);
50
+ }
51
+ else {
52
+ this.messageError = `A imagem deve ter menos de ${formatBytes(this.maxSize)}.`;
53
+ }
54
+ }
55
+ getFileList(event) {
56
+ if (event instanceof DragEvent) {
57
+ return Array.from(event.dataTransfer.files);
58
+ }
59
+ else {
60
+ const input = event.target;
61
+ return input.files;
62
+ }
63
+ }
64
+ handleFileChange(event) {
65
+ event.preventDefault();
66
+ this.messageError = undefined;
67
+ this._dropZone.classList.remove("dragging");
68
+ const files = this.getFileList(event);
69
+ this.handleImage(files);
70
+ const input = event.target;
71
+ input.value = "";
72
+ }
73
+ handleDragOver(event) {
74
+ event.stopPropagation();
75
+ event.preventDefault();
76
+ }
77
+ handleDragEnter(event) {
78
+ event.preventDefault();
79
+ this._dropZone.classList.add("dragging");
80
+ }
81
+ handleDragLeave(event) {
82
+ event.preventDefault();
83
+ if (!this._dropZone.contains(event.relatedTarget)) {
84
+ this._dropZone.classList.remove("dragging");
85
+ }
86
+ }
87
+ async handleActionPopup(event) {
88
+ if (event.detail === "OK") {
89
+ await this.handleCreateImgTag();
90
+ }
91
+ else if (event.detail === "CANCEL" || event.detail === "CLOSE") {
92
+ await this.handleCancel();
93
+ }
94
+ }
95
+ async handleCreateImgTag() {
96
+ var _a;
97
+ const tag = `<img src="${(_a = this.base64) !== null && _a !== void 0 ? _a : this.link}" alt="Image" />`;
98
+ this.executeToolbarCommand.emit({ command: RICH_TOOLBAR_COMMANDS.FORMAT, value: tag });
99
+ this.removeSelectedFile();
100
+ await this.hide();
101
+ }
102
+ getOkButtonStatus() {
103
+ var _a;
104
+ return (!this.base64 && !((_a = this.link) === null || _a === void 0 ? void 0 : _a.trim())) ? 'DISABLED' : 'ENABLED';
105
+ }
106
+ render() {
107
+ return (h("ez-popup", { ref: ref => this._popupElement = ref, heightMode: "auto", size: "small", useHeader: false, onEzClosePopup: () => this.handleCancel() }, h("div", null, h("ez-modal-container", { modalTitle: "Upload de imagens", modalSubTitle: "Envie seus arquivos preenchendo apenas 1 campo por vez.", okButtonLabel: "Enviar", cancelButtonLabel: "Cancelar", onEzModalAction: this.handleActionPopup.bind(this), okButtonStatus: this.getOkButtonStatus() }, h("div", { class: "image-uploader-container" }, h("ez-tooltip", { message: "O arquivo selecionado abaixo ser\u00E1 priorizado!", active: !!this.selectedFile }, h("ez-text-input", { label: "Insira a URL da imagem", value: this.link, onEzChange: (e) => this.link = e.detail, enabled: !this.selectedFile })), h("span", null, "OU"), h("section", { class: "drop-zone-section" }, h("div", { ref: (ref) => this._dropZone = ref, class: "drop-zone", onDrop: (ev) => this.handleFileChange(ev), onDragOver: (ev) => this.handleDragOver(ev), onDragEnter: (ev) => this.handleDragEnter(ev), onDragLeave: (ev) => this.handleDragLeave(ev) }, h("div", { class: {
108
+ "drop-zone-container": true,
109
+ "clickable": !this.selectedFile,
110
+ }, onClick: () => this.triggerFileSelect() }, !!this.selectedFile ?
111
+ h(Fragment, null, h("span", { class: "ez-text ez-text--primary ez-text--medium" }, this.selectedFile.name, " (", formatBytes(this.selectedFile.size), ")"), h("button", { class: "button-close", onClick: (event) => this.removeSelectedFile(event), title: "Remover arquivo" }, h("ez-icon", { iconName: "close" })))
112
+ :
113
+ h(Fragment, null, h("ez-icon", { iconName: "anexo" }), h("span", { class: "ez-text ez-text--primary ez-text--medium" }, "Arraste e solte ou clique para adicionar arquivos"))), h("input", { ref: (el) => this._fileInput = el, type: "file", accept: "image/*", style: { display: "none" }, onChange: (ev) => this.handleFileChange(ev) })), !!this.messageError && h("span", { class: "text-error" }, this.messageError)))))));
114
+ }
115
+ static get is() { return "ez-simple-image-uploader"; }
116
+ static get encapsulation() { return "scoped"; }
117
+ static get originalStyleUrls() {
118
+ return {
119
+ "$": ["ez-simple-image-uploader.css"]
120
+ };
121
+ }
122
+ static get styleUrls() {
123
+ return {
124
+ "$": ["ez-simple-image-uploader.css"]
125
+ };
126
+ }
127
+ static get properties() {
128
+ return {
129
+ "maxSize": {
130
+ "type": "number",
131
+ "mutable": false,
132
+ "complexType": {
133
+ "original": "number",
134
+ "resolved": "number",
135
+ "references": {}
136
+ },
137
+ "required": false,
138
+ "optional": false,
139
+ "docs": {
140
+ "tags": [],
141
+ "text": "Tamanho m\u00E1ximo que a imagem poder\u00E1 ter em kilobytes."
142
+ },
143
+ "attribute": "max-size",
144
+ "reflect": false,
145
+ "defaultValue": "500"
146
+ }
147
+ };
148
+ }
149
+ static get states() {
150
+ return {
151
+ "link": {},
152
+ "base64": {},
153
+ "messageError": {},
154
+ "selectedFile": {}
155
+ };
156
+ }
157
+ static get events() {
158
+ return [{
159
+ "method": "executeToolbarCommand",
160
+ "name": "executeToolbarCommand",
161
+ "bubbles": true,
162
+ "cancelable": true,
163
+ "composed": true,
164
+ "docs": {
165
+ "tags": [],
166
+ "text": ""
167
+ },
168
+ "complexType": {
169
+ "original": "RichToolbarCommand",
170
+ "resolved": "RichToolbarCommand",
171
+ "references": {
172
+ "RichToolbarCommand": {
173
+ "location": "import",
174
+ "path": "../ez-rich-toolbar/RichToolbarHelper"
175
+ }
176
+ }
177
+ }
178
+ }];
179
+ }
180
+ static get methods() {
181
+ return {
182
+ "show": {
183
+ "complexType": {
184
+ "signature": "() => Promise<void>",
185
+ "parameters": [],
186
+ "references": {
187
+ "Promise": {
188
+ "location": "global"
189
+ }
190
+ },
191
+ "return": "Promise<void>"
192
+ },
193
+ "docs": {
194
+ "text": "M\u00E9todo respons\u00E1vel pela abertura do popup.",
195
+ "tags": []
196
+ }
197
+ },
198
+ "hide": {
199
+ "complexType": {
200
+ "signature": "() => Promise<void>",
201
+ "parameters": [],
202
+ "references": {
203
+ "Promise": {
204
+ "location": "global"
205
+ }
206
+ },
207
+ "return": "Promise<void>"
208
+ },
209
+ "docs": {
210
+ "text": "M\u00E9todo respons\u00E1vel pelo fechamento do popup.",
211
+ "tags": []
212
+ }
213
+ }
214
+ };
215
+ }
216
+ }
@@ -0,0 +1 @@
1
+ export const imageTestBase64 = "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAMCAgICAgMCAgIDAwMDBAYEBAQEBAgGBgUGCQgKCgkICQkKDA8MCgsOCwkJDRENDg8QEBEQCgwSExIQEw8QEBD/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eHeEOhwFtz0HmSNQVvpULg6VfLeam5B6S3eKPSir8N4xpuKS8JEn5Ii9xa4N7KHgbH3wZsu+GirKo5UxqorkMtVZWhxF4p0dkH4PdW/wBJxg3LKVmrIRF1zH8jTrtSXyrnh6I9fX1e0QdIT7PrNCsKigYrK+s1UJRU8kaqarFUVrVFTWWGID6kMp0nUXCSCbtpAAsVC6MGNGaWyyUBNgcwY5wxhV11ufE5MrCl2sQMrAEkAe06597x0VoOhZPl7IGaekjsUuHZAA5zpUBYWslPwoHZIHe/XEpLy6ZdO6kk+cDE1NKm176gB5CLC42282pp5tK0LBSpKhcKB6gj1xuIByMNwSDcQLqz4f6VqDmRkgP3LGqubNJ1Q6z3R+H9JA7HEZMUpp3NvlP2RMylbfY5XeYfb7fxhSM5OEoQ7jsZMZMqVPKJ0zOXoC4Z0n1WkWFz30qOBOoUKxupNvEafn2RduDtr9TpADJXx2h8xZO8B9VWZH9SR2hTs2MhMxJJTFQTWGahYmFlUpjInxDL3mWA0fgRbXrAuelttjhrR5BbE4niWtcQa7QdpdLr+HHG5LeS8pKklJGl7XzGRFr2sb9wIYXhWy8kmflX1Fm1k7lKilKGiIORySTux0A1DAuwEIpuKiUhGoFRceKNSSpSuWSo3KgDKoyy5xxCEDS+fa8cy0eo/q1h0qWQF2Fh1tfUds+uUPhQ2R9KUjy42ObE3mSbK50Qgcts/Q3uB7m522tjfLU1pjmVzH89IZzlXfmuVPKnsPeYI2JGImJhQomFCiYUKMXG23m1NPNpWhYKVJULhQPUEeuPCAcjHoJBuIo7+SeXMROhOlyFINjqhEqtDKV+8W+n5Cye2GRp0uV7+76ukSIq02G+Hvevr7fyYukJBwkvhmoKAhWYaHYSENMsoCEISOgSkbAdhh8BbIRHEkm5j7YUeRMKFEwoUf/Z";
@@ -0,0 +1,14 @@
1
+ export function fileToBase64(file) {
2
+ return new Promise((resolve, reject) => {
3
+ try {
4
+ const reader = new FileReader();
5
+ reader.onload = () => {
6
+ resolve(reader.result);
7
+ };
8
+ reader.readAsDataURL(file);
9
+ }
10
+ catch (error) {
11
+ reject(error);
12
+ }
13
+ });
14
+ }