@sankhyalabs/ezui 6.0.2 → 6.1.0-dev.10

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 (885) hide show
  1. package/dist/cjs/FormLayout-18853e70.js +27 -0
  2. package/dist/cjs/RichToolbarHelper-438916fa.js +46 -0
  3. package/dist/cjs/_commonjsHelpers-537d719a.js +20 -0
  4. package/dist/cjs/{constants-2714478b.js → constants-569271bc.js} +4 -0
  5. package/dist/cjs/ez-actions-button.cjs.entry.js +2 -3
  6. package/dist/cjs/ez-alert-list.cjs.entry.js +1 -1
  7. package/dist/cjs/ez-alert.cjs.entry.js +1 -1
  8. package/dist/cjs/ez-application.cjs.entry.js +1 -1
  9. package/dist/cjs/ez-avatar.cjs.entry.js +50 -0
  10. package/dist/cjs/ez-badge.cjs.entry.js +1 -1
  11. package/dist/cjs/ez-breadcrumb.cjs.entry.js +1 -1
  12. package/dist/cjs/ez-button.cjs.entry.js +1 -1
  13. package/dist/cjs/ez-calendar.cjs.entry.js +1 -1
  14. package/dist/cjs/ez-card-item_2.cjs.entry.js +5 -1219
  15. package/dist/cjs/ez-chart.cjs.entry.js +5 -20
  16. package/dist/cjs/ez-check.cjs.entry.js +19 -11
  17. package/dist/cjs/ez-chip.cjs.entry.js +3 -2
  18. package/dist/cjs/ez-collapsible-box.cjs.entry.js +3 -4
  19. package/dist/cjs/{ez-combo-box-list_3.cjs.entry.js → ez-combo-box-list_4.cjs.entry.js} +274 -6
  20. package/dist/cjs/ez-combo-box.cjs.entry.js +25 -19
  21. package/dist/cjs/ez-date-input.cjs.entry.js +3 -2
  22. package/dist/cjs/ez-date-time-input.cjs.entry.js +3 -2
  23. package/dist/cjs/ez-dialog.cjs.entry.js +7 -4
  24. package/dist/cjs/ez-double-list.cjs.entry.js +115 -54
  25. package/dist/cjs/{ez-dropdown_2.cjs.entry.js → ez-dropdown.cjs.entry.js} +2 -63
  26. package/dist/cjs/ez-file-item.cjs.entry.js +1 -1
  27. package/dist/cjs/ez-filter-input.cjs.entry.js +1 -1
  28. package/dist/cjs/ez-form-view.cjs.entry.js +23 -9
  29. package/dist/cjs/ez-form.cjs.entry.js +61 -6
  30. package/dist/cjs/ez-grid.cjs.entry.js +1071 -147
  31. package/dist/cjs/ez-guide-navigator.cjs.entry.js +1 -1
  32. package/dist/cjs/ez-icon.cjs.entry.js +13 -7
  33. package/dist/cjs/ez-link-builder_6.cjs.entry.js +295 -0
  34. package/dist/cjs/ez-list.cjs.entry.js +3 -3
  35. package/dist/cjs/ez-loading-bar.cjs.entry.js +1 -1
  36. package/dist/cjs/ez-modal-container.cjs.entry.js +8 -4
  37. package/dist/cjs/ez-modal.cjs.entry.js +6 -2
  38. package/dist/cjs/ez-multi-selection-list.cjs.entry.js +1 -1
  39. package/dist/cjs/ez-number-input.cjs.entry.js +3 -2
  40. package/dist/cjs/ez-popover-plus_3.cjs.entry.js +1 -1
  41. package/dist/cjs/ez-popover.cjs.entry.js +1 -1
  42. package/dist/cjs/ez-popup.cjs.entry.js +6 -2
  43. package/dist/cjs/ez-radio-button.cjs.entry.js +1 -1
  44. package/dist/cjs/ez-rich-toolbar-item.cjs.entry.js +27 -0
  45. package/dist/cjs/ez-scroller_2.cjs.entry.js +1 -1
  46. package/dist/cjs/ez-search-plus.cjs.entry.js +400 -0
  47. package/dist/cjs/ez-search-result-list.cjs.entry.js +97 -0
  48. package/dist/cjs/ez-search.cjs.entry.js +5 -5
  49. package/dist/cjs/ez-sidebar-navigator.cjs.entry.js +1 -1
  50. package/dist/cjs/ez-skeleton.cjs.entry.js +149 -0
  51. package/dist/cjs/ez-sortable-list.cjs.entry.js +3510 -0
  52. package/dist/cjs/ez-split-button.cjs.entry.js +16 -7
  53. package/dist/cjs/ez-split-item.cjs.entry.js +2 -3
  54. package/dist/cjs/ez-split-panel.cjs.entry.js +1 -1
  55. package/dist/cjs/ez-tabselector.cjs.entry.js +1 -1
  56. package/dist/cjs/ez-text-area.cjs.entry.js +25 -4
  57. package/dist/cjs/ez-text-input.cjs.entry.js +84 -101
  58. package/dist/cjs/ez-time-input.cjs.entry.js +3 -2
  59. package/dist/cjs/ez-toast.cjs.entry.js +1 -1
  60. package/dist/cjs/ez-tooltip.cjs.entry.js +110 -30
  61. package/dist/cjs/ez-tree.cjs.entry.js +1 -1
  62. package/dist/cjs/ez-upload.cjs.entry.js +1 -1
  63. package/dist/cjs/ez-view-stack.cjs.entry.js +1 -1
  64. package/dist/cjs/ezui.cjs.js +2 -2
  65. package/dist/cjs/filter-column.cjs.entry.js +15 -6
  66. package/dist/cjs/floating-ui.dom.esm-017acce4.js +1404 -0
  67. package/dist/cjs/{index-9e5554cb.js → index-a7b0c73d.js} +36 -11
  68. package/dist/cjs/loader.cjs.js +2 -2
  69. package/dist/cjs/purify-a7dc3a08.js +1354 -0
  70. package/dist/cjs/{DataBinder-e92314c2.js → search-column-27d1f72f.js} +73 -13
  71. package/dist/collection/collection-manifest.json +22 -0
  72. package/dist/collection/components/ez-avatar/ez-avatar.css +139 -0
  73. package/dist/collection/components/ez-avatar/ez-avatar.js +143 -0
  74. package/dist/collection/components/ez-check/ez-check.css +9 -0
  75. package/dist/collection/components/ez-check/ez-check.js +34 -9
  76. package/dist/collection/components/ez-chip/ez-chip.js +20 -1
  77. package/dist/collection/components/ez-collapsible-box/ez-collapsible-box.css +1 -0
  78. package/dist/collection/components/ez-combo-box/ez-combo-box-list/ez-combo-box-list.css +1 -0
  79. package/dist/collection/components/ez-combo-box/ez-combo-box.js +77 -18
  80. package/dist/collection/components/ez-date-input/ez-date-input.js +19 -1
  81. package/dist/collection/components/ez-date-time-input/ez-date-time-input.js +19 -1
  82. package/dist/collection/components/ez-dialog/ez-dialog.css +24 -21
  83. package/dist/collection/components/ez-dialog/ez-dialog.js +5 -2
  84. package/dist/collection/components/ez-double-list/doubleListHelper.js +9 -10
  85. package/dist/collection/components/ez-double-list/ez-double-list.css +6 -38
  86. package/dist/collection/components/ez-double-list/ez-double-list.js +168 -50
  87. package/dist/collection/components/ez-dropdown/ez-dropdown.js +1 -1
  88. package/dist/collection/components/ez-form/ez-form.js +95 -2
  89. package/dist/collection/components/ez-form-view/ez-form-view.js +2 -1
  90. package/dist/collection/components/ez-form-view/fieldbuilder/FieldBuilder.js +5 -1
  91. package/dist/collection/components/ez-form-view/fieldbuilder/templates/RichText.tpl.js +4 -0
  92. package/dist/collection/components/ez-form-view/fieldbuilder/templates/SearchInputPlus.tpl.js +6 -0
  93. package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +173 -15
  94. package/dist/collection/components/ez-grid/controller/ag-grid/DataSource.js +23 -4
  95. package/dist/collection/components/ez-grid/controller/ag-grid/GridEditionManager.js +34 -7
  96. package/dist/collection/components/ez-grid/controller/ag-grid/editor/EzCellEditor.js +2 -0
  97. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/SearchPlus.tpl.js +15 -0
  98. package/dist/collection/components/ez-grid/ez-grid.css +4 -0
  99. package/dist/collection/components/ez-grid/ez-grid.js +122 -15
  100. package/dist/collection/components/ez-grid/interfaces/IGridMode.js +1 -0
  101. package/dist/collection/components/ez-grid/interfaces/index.js +1 -0
  102. package/dist/collection/components/ez-grid/subcomponents/filter-column.js +14 -5
  103. package/dist/collection/components/ez-icon/ez-icon.css +147 -140
  104. package/dist/collection/components/ez-icon/ez-icon.js +28 -5
  105. package/dist/collection/components/ez-list/ez-list.js +2 -2
  106. package/dist/collection/components/ez-modal/ez-modal.js +5 -1
  107. package/dist/collection/components/ez-modal-container/ez-modal-container.css +3 -0
  108. package/dist/collection/components/ez-modal-container/ez-modal-container.js +6 -2
  109. package/dist/collection/components/ez-multi-selection-list/interfaces/IStaticOptionsFetchConfig.js +1 -0
  110. package/dist/collection/components/ez-number-input/ez-number-input.js +19 -1
  111. package/dist/collection/components/ez-popover-plus/subcomponent/ez-popover-core.css +3 -2
  112. package/dist/collection/components/ez-popup/ez-popup.js +5 -1
  113. package/dist/collection/components/ez-rich-text/ez-link-builder/ez-link-builder.css +22 -0
  114. package/dist/collection/components/ez-rich-text/ez-link-builder/ez-link-builder.js +131 -0
  115. package/dist/collection/components/ez-rich-text/ez-rich-text.css +35 -0
  116. package/dist/collection/components/ez-rich-text/ez-rich-text.js +544 -0
  117. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/RichToolbarHelper.js +39 -0
  118. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-arrows/ez-rich-toolbar-arrows.css +4 -0
  119. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-arrows/ez-rich-toolbar-arrows.js +19 -0
  120. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-configs/ez-rich-toolbar-configs.css +4 -0
  121. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-configs/ez-rich-toolbar-configs.js +19 -0
  122. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-item/ez-rich-toolbar-item.css +20 -0
  123. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-item/ez-rich-toolbar-item.js +122 -0
  124. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-letters/ez-rich-toolbar-letters.css +4 -0
  125. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-letters/ez-rich-toolbar-letters.js +19 -0
  126. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar.css +42 -0
  127. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar.js +183 -0
  128. package/dist/collection/components/ez-rich-text/ez-simple-image-uploader/ez-simple-image-uploader.css +70 -0
  129. package/dist/collection/components/ez-rich-text/ez-simple-image-uploader/ez-simple-image-uploader.js +216 -0
  130. package/dist/collection/components/ez-rich-text/ez-simple-image-uploader/test/resource/imageBase64.js +1 -0
  131. package/dist/collection/components/ez-rich-text/ez-simple-image-uploader/utils/fileToBase64.js +14 -0
  132. package/dist/collection/components/ez-rich-text/ez-simple-image-uploader/utils/formatBytes.js +10 -0
  133. package/dist/collection/components/ez-search/ez-search.js +19 -1
  134. package/dist/collection/components/ez-search-plus/ez-search-plus.css +374 -0
  135. package/dist/collection/components/ez-search-plus/ez-search-plus.js +963 -0
  136. package/dist/collection/components/ez-search-plus/subcomponent/ez-search-result-list/ez-search-result-list.css +221 -0
  137. package/dist/collection/components/ez-search-plus/subcomponent/ez-search-result-list/ez-search-result-list.js +278 -0
  138. package/dist/collection/components/ez-skeleton/ez-skeleton.constants.js +25 -1
  139. package/dist/collection/components/ez-skeleton/ez-skeleton.css +122 -80
  140. package/dist/collection/components/ez-skeleton/ez-skeleton.js +210 -46
  141. package/dist/collection/components/ez-sortable-list/ez-sortable-list.css +226 -0
  142. package/dist/collection/components/ez-sortable-list/ez-sortable-list.js +582 -0
  143. package/dist/collection/components/ez-split-button/ez-split-button.css +1 -1
  144. package/dist/collection/components/ez-split-button/ez-split-button.js +87 -10
  145. package/dist/collection/components/ez-text-area/ez-text-area.js +47 -2
  146. package/dist/collection/components/ez-text-input/ez-text-input.css +27 -2
  147. package/dist/collection/components/ez-text-input/ez-text-input.js +124 -73
  148. package/dist/collection/components/ez-time-input/ez-time-input.js +19 -1
  149. package/dist/collection/components/ez-tooltip/ez-tooltip.css +54 -12
  150. package/dist/collection/components/ez-tooltip/ez-tooltip.js +241 -47
  151. package/dist/collection/utils/constants.js +2 -0
  152. package/dist/collection/utils/form/DataBinder.js +43 -14
  153. package/dist/collection/utils/form/test/DataBinder.test.js +14 -0
  154. package/dist/collection/utils/index.js +2 -0
  155. package/dist/collection/utils/search/types.js +7 -0
  156. package/dist/collection/utils/searchColumn/search-column.js +35 -0
  157. package/dist/custom-elements/index.d.ts +72 -0
  158. package/dist/custom-elements/index.js +8104 -565
  159. package/dist/esm/FormLayout-071d324c.js +27 -0
  160. package/dist/esm/RichToolbarHelper-fd6427df.js +41 -0
  161. package/dist/esm/_commonjsHelpers-9943807e.js +17 -0
  162. package/dist/esm/constants-b036528f.js +7 -0
  163. package/dist/esm/ez-actions-button.entry.js +2 -3
  164. package/dist/esm/ez-alert-list.entry.js +1 -1
  165. package/dist/esm/ez-alert.entry.js +1 -1
  166. package/dist/esm/ez-application.entry.js +1 -1
  167. package/dist/esm/ez-avatar.entry.js +46 -0
  168. package/dist/esm/ez-badge.entry.js +1 -1
  169. package/dist/esm/ez-breadcrumb.entry.js +1 -1
  170. package/dist/esm/ez-button.entry.js +1 -1
  171. package/dist/esm/ez-calendar.entry.js +1 -1
  172. package/dist/esm/ez-card-item_2.entry.js +3 -1217
  173. package/dist/esm/ez-chart.entry.js +3 -18
  174. package/dist/esm/ez-check.entry.js +19 -11
  175. package/dist/esm/ez-chip.entry.js +3 -2
  176. package/dist/esm/ez-collapsible-box.entry.js +3 -4
  177. package/dist/esm/{ez-combo-box-list_3.entry.js → ez-combo-box-list_4.entry.js} +274 -7
  178. package/dist/esm/ez-combo-box.entry.js +25 -19
  179. package/dist/esm/ez-date-input.entry.js +3 -2
  180. package/dist/esm/ez-date-time-input.entry.js +3 -2
  181. package/dist/esm/ez-dialog.entry.js +7 -4
  182. package/dist/esm/ez-double-list.entry.js +116 -55
  183. package/dist/esm/{ez-dropdown_2.entry.js → ez-dropdown.entry.js} +3 -63
  184. package/dist/esm/ez-file-item.entry.js +1 -1
  185. package/dist/esm/ez-filter-input.entry.js +1 -1
  186. package/dist/esm/ez-form-view.entry.js +24 -10
  187. package/dist/esm/ez-form.entry.js +60 -5
  188. package/dist/esm/ez-grid.entry.js +1067 -143
  189. package/dist/esm/ez-guide-navigator.entry.js +1 -1
  190. package/dist/esm/ez-icon.entry.js +13 -7
  191. package/dist/esm/ez-link-builder_6.entry.js +286 -0
  192. package/dist/esm/ez-list.entry.js +3 -3
  193. package/dist/esm/ez-loading-bar.entry.js +1 -1
  194. package/dist/esm/ez-modal-container.entry.js +8 -4
  195. package/dist/esm/ez-modal.entry.js +6 -2
  196. package/dist/esm/ez-multi-selection-list.entry.js +1 -1
  197. package/dist/esm/ez-number-input.entry.js +3 -2
  198. package/dist/esm/ez-popover-plus_3.entry.js +1 -1
  199. package/dist/esm/ez-popover.entry.js +1 -1
  200. package/dist/esm/ez-popup.entry.js +6 -2
  201. package/dist/esm/ez-radio-button.entry.js +1 -1
  202. package/dist/esm/ez-rich-toolbar-item.entry.js +23 -0
  203. package/dist/esm/ez-scroller_2.entry.js +1 -1
  204. package/dist/esm/ez-search-plus.entry.js +396 -0
  205. package/dist/esm/ez-search-result-list.entry.js +93 -0
  206. package/dist/esm/ez-search.entry.js +5 -5
  207. package/dist/esm/ez-sidebar-navigator.entry.js +1 -1
  208. package/dist/esm/ez-skeleton.entry.js +145 -0
  209. package/dist/esm/ez-sortable-list.entry.js +3506 -0
  210. package/dist/esm/ez-split-button.entry.js +16 -7
  211. package/dist/esm/ez-split-item.entry.js +2 -3
  212. package/dist/esm/ez-split-panel.entry.js +1 -1
  213. package/dist/esm/ez-tabselector.entry.js +1 -1
  214. package/dist/esm/ez-text-area.entry.js +25 -4
  215. package/dist/esm/ez-text-input.entry.js +84 -101
  216. package/dist/esm/ez-time-input.entry.js +3 -2
  217. package/dist/esm/ez-toast.entry.js +1 -1
  218. package/dist/esm/ez-tooltip.entry.js +110 -30
  219. package/dist/esm/ez-tree.entry.js +1 -1
  220. package/dist/esm/ez-upload.entry.js +1 -1
  221. package/dist/esm/ez-view-stack.entry.js +1 -1
  222. package/dist/esm/ezui.js +3 -3
  223. package/dist/esm/filter-column.entry.js +15 -6
  224. package/dist/esm/floating-ui.dom.esm-5d3da819.js +1398 -0
  225. package/dist/esm/{index-5a720e56.js → index-baa5e267.js} +37 -11
  226. package/dist/esm/loader.js +3 -3
  227. package/dist/esm/purify-da6317bb.js +1352 -0
  228. package/dist/esm/{DataBinder-9c877244.js → search-column-e609d513.js} +69 -15
  229. package/dist/ezui/ezui.esm.js +1 -1
  230. package/dist/ezui/{p-e6b38ade.entry.js → p-0306dff7.entry.js} +1 -1
  231. package/dist/ezui/p-07894c4a.entry.js +1 -0
  232. package/dist/ezui/{p-91ccae0c.entry.js → p-09de35a2.entry.js} +1 -1
  233. package/dist/ezui/p-0d9856a4.entry.js +1 -0
  234. package/dist/ezui/p-112455b1.js +1 -0
  235. package/dist/ezui/p-1276ef79.entry.js +1 -0
  236. package/dist/ezui/{p-87f5a060.entry.js → p-1bcfd88c.entry.js} +1 -1
  237. package/dist/ezui/p-1c55dda0.js +3 -0
  238. package/dist/ezui/p-1cebdc92.js +1 -0
  239. package/dist/ezui/{p-81461d2f.entry.js → p-1e7a8633.entry.js} +1 -1
  240. package/dist/ezui/p-1eb34cad.entry.js +1 -0
  241. package/dist/ezui/{p-6b51c9cc.entry.js → p-1f50fa05.entry.js} +1 -1
  242. package/dist/ezui/{p-cf33bc48.entry.js → p-20c024f7.entry.js} +1 -1
  243. package/dist/ezui/{p-e4c7eb39.js → p-23a36bb6.js} +2 -2
  244. package/dist/ezui/{p-06f1b8e4.entry.js → p-288631d1.entry.js} +1 -1
  245. package/dist/ezui/p-2b4df33d.entry.js +1 -0
  246. package/dist/ezui/p-30ffb9ed.js +1 -0
  247. package/dist/ezui/p-31f0d5f8.entry.js +309 -0
  248. package/dist/ezui/p-33326ac5.entry.js +1 -0
  249. package/dist/ezui/p-3ba9565c.entry.js +1 -0
  250. package/dist/ezui/{p-0378416a.entry.js → p-44caad9a.entry.js} +1 -1
  251. package/dist/ezui/p-454bba13.entry.js +1 -0
  252. package/dist/ezui/p-496f7832.entry.js +1 -0
  253. package/dist/ezui/{p-769632d5.entry.js → p-4b67138e.entry.js} +1 -1
  254. package/dist/ezui/p-4bd6dd6a.entry.js +1 -0
  255. package/dist/ezui/p-4d30b703.entry.js +1 -0
  256. package/dist/ezui/{p-7567ccdd.entry.js → p-555c9018.entry.js} +1 -1
  257. package/dist/ezui/p-57363cfd.entry.js +1 -0
  258. package/dist/ezui/p-58f69d24.entry.js +1 -0
  259. package/dist/ezui/p-59561756.entry.js +7 -0
  260. package/dist/ezui/p-5cda9526.entry.js +1 -0
  261. package/dist/ezui/{p-6fc26622.entry.js → p-5ed81457.entry.js} +1 -1
  262. package/dist/ezui/p-5eea9886.js +1 -0
  263. package/dist/ezui/p-6369a0cd.entry.js +1 -0
  264. package/dist/ezui/{p-fc194825.entry.js → p-6e429cff.entry.js} +1 -1
  265. package/dist/ezui/p-7019f782.entry.js +1 -0
  266. package/dist/ezui/p-71c2ec1f.entry.js +1 -0
  267. package/dist/ezui/{p-11bfeca3.entry.js → p-77a4bd35.entry.js} +1 -1
  268. package/dist/ezui/p-79044c3e.entry.js +1 -0
  269. package/dist/ezui/p-7eae6986.entry.js +1 -0
  270. package/dist/ezui/p-7f792043.entry.js +1 -0
  271. package/dist/ezui/p-80461324.entry.js +1 -0
  272. package/dist/ezui/p-8afb6e8a.entry.js +1 -0
  273. package/dist/ezui/{p-82fa4b09.entry.js → p-8df1ca33.entry.js} +1 -1
  274. package/dist/ezui/p-91c9d50e.entry.js +1 -0
  275. package/dist/ezui/p-9478b13b.entry.js +1 -0
  276. package/dist/ezui/p-998afb6a.entry.js +1 -0
  277. package/dist/ezui/p-9c5cd3b2.entry.js +1 -0
  278. package/dist/ezui/{p-c2b20f78.entry.js → p-9f5fa3f9.entry.js} +1 -1
  279. package/dist/ezui/p-a148e994.entry.js +1 -0
  280. package/dist/ezui/p-a3782637.entry.js +1 -0
  281. package/dist/ezui/p-a3bf8cf1.entry.js +1 -0
  282. package/dist/ezui/{p-dfca5946.entry.js → p-a80b1287.entry.js} +1 -1
  283. package/dist/ezui/p-bac0f920.entry.js +1 -0
  284. package/dist/ezui/p-bc2f844e.entry.js +1 -0
  285. package/dist/ezui/p-beb42de1.entry.js +1 -0
  286. package/dist/ezui/p-bff24a7b.js +1 -0
  287. package/dist/ezui/{p-92748142.entry.js → p-c0d9c4f8.entry.js} +1 -1
  288. package/dist/ezui/p-cb75eb46.entry.js +1 -0
  289. package/dist/ezui/{p-708b196e.entry.js → p-da1b4a38.entry.js} +1 -1
  290. package/dist/ezui/{p-c7035d65.entry.js → p-dc73e1fe.entry.js} +1 -1
  291. package/dist/ezui/p-dfd9c473.entry.js +1 -0
  292. package/dist/ezui/p-e07e4671.js +1 -0
  293. package/dist/ezui/p-e4528470.entry.js +1 -0
  294. package/dist/ezui/{p-9e95bfeb.entry.js → p-e6a9041d.entry.js} +1 -1
  295. package/dist/ezui/{p-000159dc.entry.js → p-e75c7a23.entry.js} +1 -1
  296. package/dist/ezui/p-ec0d8122.entry.js +1 -0
  297. package/dist/ezui/{p-44b39e81.entry.js → p-fa6732f2.entry.js} +1 -1
  298. package/dist/types/components/ez-avatar/ez-avatar.d.ts +24 -0
  299. package/dist/types/components/ez-check/ez-check.d.ts +7 -2
  300. package/dist/types/components/ez-chip/ez-chip.d.ts +4 -0
  301. package/dist/types/components/ez-combo-box/ez-combo-box.d.ts +14 -2
  302. package/dist/types/components/ez-date-input/ez-date-input.d.ts +4 -0
  303. package/dist/types/components/ez-date-time-input/ez-date-time-input.d.ts +4 -0
  304. package/dist/types/components/ez-dialog/ez-dialog.d.ts +1 -0
  305. package/dist/types/components/ez-double-list/doubleListHelper.d.ts +4 -2
  306. package/dist/types/components/ez-double-list/ez-double-list.d.ts +60 -24
  307. package/dist/types/components/ez-dropdown/structure/DropdownItem.d.ts +4 -4
  308. package/dist/types/components/ez-form/ez-form.d.ts +18 -0
  309. package/dist/types/components/ez-form-view/fieldbuilder/templates/RichText.tpl.d.ts +2 -0
  310. package/dist/types/components/ez-form-view/fieldbuilder/templates/SearchInputPlus.tpl.d.ts +2 -0
  311. package/dist/types/components/ez-grid/controller/EzGridController.d.ts +9 -1
  312. package/dist/types/components/ez-grid/controller/ag-grid/AgGridController.d.ts +10 -1
  313. package/dist/types/components/ez-grid/controller/ag-grid/DataSource.d.ts +1 -0
  314. package/dist/types/components/ez-grid/controller/ag-grid/GridEditionManager.d.ts +2 -0
  315. package/dist/types/components/ez-grid/controller/ag-grid/editor/templates/SearchPlus.tpl.d.ts +3 -0
  316. package/dist/types/components/ez-grid/ez-grid.d.ts +17 -1
  317. package/dist/types/components/ez-grid/interfaces/IGridMode.d.ts +1 -0
  318. package/dist/types/components/ez-grid/interfaces/index.d.ts +1 -0
  319. package/dist/types/components/ez-grid/subcomponents/filter-column.d.ts +1 -0
  320. package/dist/types/components/ez-icon/ez-icon.d.ts +5 -0
  321. package/dist/types/components/ez-modal/ez-modal.d.ts +2 -0
  322. package/dist/types/components/ez-modal-container/ez-modal-container.d.ts +2 -0
  323. package/dist/types/components/ez-multi-selection-list/interfaces/IMultiSelectionListDataSource.d.ts +2 -1
  324. package/dist/types/components/ez-multi-selection-list/interfaces/IStaticOptionsFetchConfig.d.ts +3 -0
  325. package/dist/types/components/ez-number-input/ez-number-input.d.ts +4 -0
  326. package/dist/types/components/ez-popup/ez-popup.d.ts +2 -0
  327. package/dist/types/components/ez-rich-text/ez-link-builder/ez-link-builder.d.ts +17 -0
  328. package/dist/types/components/ez-rich-text/ez-rich-text.d.ts +98 -0
  329. package/dist/types/components/ez-rich-text/ez-rich-toolbar/RichToolbarHelper.d.ts +43 -0
  330. package/dist/types/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-arrows/ez-rich-toolbar-arrows.d.ts +3 -0
  331. package/dist/types/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-configs/ez-rich-toolbar-configs.d.ts +3 -0
  332. package/dist/types/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-item/ez-rich-toolbar-item.d.ts +11 -0
  333. package/dist/types/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-letters/ez-rich-toolbar-letters.d.ts +3 -0
  334. package/dist/types/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar.d.ts +33 -0
  335. package/dist/types/components/ez-rich-text/ez-simple-image-uploader/ez-simple-image-uploader.d.ts +37 -0
  336. package/dist/types/components/ez-rich-text/ez-simple-image-uploader/test/resource/imageBase64.d.ts +1 -0
  337. package/dist/types/components/ez-rich-text/ez-simple-image-uploader/utils/fileToBase64.d.ts +1 -0
  338. package/dist/types/components/ez-rich-text/ez-simple-image-uploader/utils/formatBytes.d.ts +1 -0
  339. package/dist/types/components/ez-search/ez-search.d.ts +4 -0
  340. package/dist/types/components/ez-search-plus/ez-search-plus.d.ts +187 -0
  341. package/dist/types/components/ez-search-plus/subcomponent/ez-search-result-list/ez-search-result-list.d.ts +26 -0
  342. package/dist/types/components/ez-skeleton/ez-skeleton.constants.d.ts +55 -1
  343. package/dist/types/components/ez-skeleton/ez-skeleton.d.ts +50 -22
  344. package/dist/types/components/ez-sortable-list/ez-sortable-list.d.ts +91 -0
  345. package/dist/types/components/ez-split-button/ez-split-button.d.ts +14 -2
  346. package/dist/types/components/ez-text-area/ez-text-area.d.ts +8 -0
  347. package/dist/types/components/ez-text-input/ez-text-input.d.ts +21 -9
  348. package/dist/types/components/ez-time-input/ez-time-input.d.ts +4 -0
  349. package/dist/types/components/ez-tooltip/ez-tooltip.d.ts +41 -5
  350. package/dist/types/components.d.ts +1105 -44
  351. package/dist/types/utils/constants.d.ts +2 -0
  352. package/dist/types/utils/form/DataBinder.d.ts +4 -2
  353. package/dist/types/utils/index.d.ts +2 -0
  354. package/dist/types/utils/search/types.d.ts +12 -0
  355. package/dist/types/utils/searchColumn/search-column.d.ts +9 -0
  356. package/package.json +8 -2
  357. package/react/components.d.ts +72 -60
  358. package/react/components.js +12 -0
  359. package/react/components.js.map +1 -1
  360. package/react/react-component-lib/createComponent.d.ts +1 -1
  361. package/react/react-component-lib/createComponent.js.map +1 -1
  362. package/react/react-component-lib/createOverlayComponent.js.map +1 -1
  363. package/react/react-component-lib/interfaces.js +1 -0
  364. package/react/react-component-lib/utils/attachProps.d.ts +1 -1
  365. package/react/react-component-lib/utils/attachProps.js.map +1 -1
  366. package/react/react-component-lib/utils/dev.js.map +1 -1
  367. package/react/react-component-lib/utils/index.d.ts +2 -2
  368. package/react/react-component-lib/utils/index.js.map +1 -1
  369. package/dist/cjs/ApplicationUtils-c9d1205c.js.gz +0 -0
  370. package/dist/cjs/CSSVarsUtils-f20973d1.js.gz +0 -0
  371. package/dist/cjs/CheckMode-ecb90b87.js.gz +0 -0
  372. package/dist/cjs/DataBinder-e92314c2.js.gz +0 -0
  373. package/dist/cjs/DialogType-2114c337.js.gz +0 -0
  374. package/dist/cjs/EzScrollDirection-b2c99895.js.gz +0 -0
  375. package/dist/cjs/FocusResolver-885f2173.js.gz +0 -0
  376. package/dist/cjs/FormLayout-c2451c7f.js +0 -7
  377. package/dist/cjs/FormLayout-c2451c7f.js.gz +0 -0
  378. package/dist/cjs/ICustomRender-6fafffce.js +0 -13
  379. package/dist/cjs/ICustomRender-6fafffce.js.gz +0 -0
  380. package/dist/cjs/constants-2714478b.js.gz +0 -0
  381. package/dist/cjs/ez-actions-button.cjs.entry.js.gz +0 -0
  382. package/dist/cjs/ez-alert-list.cjs.entry.js.gz +0 -0
  383. package/dist/cjs/ez-alert.cjs.entry.js.gz +0 -0
  384. package/dist/cjs/ez-application.cjs.entry.js.gz +0 -0
  385. package/dist/cjs/ez-badge.cjs.entry.js.gz +0 -0
  386. package/dist/cjs/ez-breadcrumb.cjs.entry.js.gz +0 -0
  387. package/dist/cjs/ez-button.cjs.entry.js.gz +0 -0
  388. package/dist/cjs/ez-calendar.cjs.entry.js.gz +0 -0
  389. package/dist/cjs/ez-card-item_2.cjs.entry.js.gz +0 -0
  390. package/dist/cjs/ez-chart.cjs.entry.js.gz +0 -0
  391. package/dist/cjs/ez-check.cjs.entry.js.gz +0 -0
  392. package/dist/cjs/ez-chip.cjs.entry.js.gz +0 -0
  393. package/dist/cjs/ez-collapsible-box.cjs.entry.js.gz +0 -0
  394. package/dist/cjs/ez-combo-box-list_3.cjs.entry.js.gz +0 -0
  395. package/dist/cjs/ez-combo-box.cjs.entry.js.gz +0 -0
  396. package/dist/cjs/ez-date-input.cjs.entry.js.gz +0 -0
  397. package/dist/cjs/ez-date-time-input.cjs.entry.js.gz +0 -0
  398. package/dist/cjs/ez-dialog.cjs.entry.js.gz +0 -0
  399. package/dist/cjs/ez-double-list.cjs.entry.js.gz +0 -0
  400. package/dist/cjs/ez-dropdown_2.cjs.entry.js.gz +0 -0
  401. package/dist/cjs/ez-file-item.cjs.entry.js.gz +0 -0
  402. package/dist/cjs/ez-filter-input.cjs.entry.js.gz +0 -0
  403. package/dist/cjs/ez-form-view.cjs.entry.js.gz +0 -0
  404. package/dist/cjs/ez-form.cjs.entry.js.gz +0 -0
  405. package/dist/cjs/ez-grid.cjs.entry.js.gz +0 -0
  406. package/dist/cjs/ez-guide-navigator.cjs.entry.js.gz +0 -0
  407. package/dist/cjs/ez-icon.cjs.entry.js.gz +0 -0
  408. package/dist/cjs/ez-list.cjs.entry.js.gz +0 -0
  409. package/dist/cjs/ez-loading-bar.cjs.entry.js.gz +0 -0
  410. package/dist/cjs/ez-modal-container.cjs.entry.js.gz +0 -0
  411. package/dist/cjs/ez-modal.cjs.entry.js.gz +0 -0
  412. package/dist/cjs/ez-multi-selection-list.cjs.entry.js.gz +0 -0
  413. package/dist/cjs/ez-number-input.cjs.entry.js.gz +0 -0
  414. package/dist/cjs/ez-popover-plus_3.cjs.entry.js.gz +0 -0
  415. package/dist/cjs/ez-popover.cjs.entry.js.gz +0 -0
  416. package/dist/cjs/ez-popup.cjs.entry.js.gz +0 -0
  417. package/dist/cjs/ez-radio-button.cjs.entry.js.gz +0 -0
  418. package/dist/cjs/ez-scroller_2.cjs.entry.js.gz +0 -0
  419. package/dist/cjs/ez-search.cjs.entry.js.gz +0 -0
  420. package/dist/cjs/ez-sidebar-navigator.cjs.entry.js.gz +0 -0
  421. package/dist/cjs/ez-split-button.cjs.entry.js.gz +0 -0
  422. package/dist/cjs/ez-split-item.cjs.entry.js.gz +0 -0
  423. package/dist/cjs/ez-split-panel.cjs.entry.js.gz +0 -0
  424. package/dist/cjs/ez-tabselector.cjs.entry.js.gz +0 -0
  425. package/dist/cjs/ez-text-area.cjs.entry.js.gz +0 -0
  426. package/dist/cjs/ez-text-input.cjs.entry.js.gz +0 -0
  427. package/dist/cjs/ez-time-input.cjs.entry.js.gz +0 -0
  428. package/dist/cjs/ez-toast.cjs.entry.js.gz +0 -0
  429. package/dist/cjs/ez-tooltip.cjs.entry.js.gz +0 -0
  430. package/dist/cjs/ez-tree.cjs.entry.js.gz +0 -0
  431. package/dist/cjs/ez-upload.cjs.entry.js.gz +0 -0
  432. package/dist/cjs/ez-view-stack.cjs.entry.js.gz +0 -0
  433. package/dist/cjs/ezListHelper-0d3970b4.js.gz +0 -0
  434. package/dist/cjs/ezui.cjs.js.gz +0 -0
  435. package/dist/cjs/filter-column.cjs.entry.js.gz +0 -0
  436. package/dist/cjs/index-9e5554cb.js.gz +0 -0
  437. package/dist/cjs/index.cjs.js.gz +0 -0
  438. package/dist/cjs/loader.cjs.js.gz +0 -0
  439. package/dist/cjs/searchFormatters-b7e1ed1e.js.gz +0 -0
  440. package/dist/collection/components/ez-actions-button/ez-actions-button.css.gz +0 -0
  441. package/dist/collection/components/ez-actions-button/ez-actions-button.js.gz +0 -0
  442. package/dist/collection/components/ez-alert/ez-alert.css.gz +0 -0
  443. package/dist/collection/components/ez-alert/ez-alert.js.gz +0 -0
  444. package/dist/collection/components/ez-alert-list/ez-alert-list.css.gz +0 -0
  445. package/dist/collection/components/ez-alert-list/ez-alert-list.js.gz +0 -0
  446. package/dist/collection/components/ez-application/ez-application.css.gz +0 -0
  447. package/dist/collection/components/ez-application/ez-application.js.gz +0 -0
  448. package/dist/collection/components/ez-badge/enum/sizes.js.gz +0 -0
  449. package/dist/collection/components/ez-badge/ez-badge.css.gz +0 -0
  450. package/dist/collection/components/ez-badge/ez-badge.js.gz +0 -0
  451. package/dist/collection/components/ez-badge/interfaces/IPosition.js.gz +0 -0
  452. package/dist/collection/components/ez-breadcrumb/ez-breadcrumb.css.gz +0 -0
  453. package/dist/collection/components/ez-breadcrumb/ez-breadcrumb.js.gz +0 -0
  454. package/dist/collection/components/ez-breadcrumb/subcomponents/breadcrumb-item.js.gz +0 -0
  455. package/dist/collection/components/ez-button/ez-button.css.gz +0 -0
  456. package/dist/collection/components/ez-button/ez-button.js.gz +0 -0
  457. package/dist/collection/components/ez-calendar/ez-calendar.css.gz +0 -0
  458. package/dist/collection/components/ez-calendar/ez-calendar.js.gz +0 -0
  459. package/dist/collection/components/ez-card-item/ez-card-item.css.gz +0 -0
  460. package/dist/collection/components/ez-card-item/ez-card-item.js.gz +0 -0
  461. package/dist/collection/components/ez-chart/components/BarChart.js.gz +0 -0
  462. package/dist/collection/components/ez-chart/components/ColumnChart.js.gz +0 -0
  463. package/dist/collection/components/ez-chart/components/DonutChart.js.gz +0 -0
  464. package/dist/collection/components/ez-chart/components/LineChart.js.gz +0 -0
  465. package/dist/collection/components/ez-chart/components/PieChart.js.gz +0 -0
  466. package/dist/collection/components/ez-chart/components/index.js.gz +0 -0
  467. package/dist/collection/components/ez-chart/ez-chart.css.gz +0 -0
  468. package/dist/collection/components/ez-chart/ez-chart.js.gz +0 -0
  469. package/dist/collection/components/ez-chart/interfaces/ChartAxis.js.gz +0 -0
  470. package/dist/collection/components/ez-chart/interfaces/ChartContext.js.gz +0 -0
  471. package/dist/collection/components/ez-chart/interfaces/ChartOptions.js.gz +0 -0
  472. package/dist/collection/components/ez-chart/interfaces/ChartSerie.js.gz +0 -0
  473. package/dist/collection/components/ez-chart/interfaces/ChartStrategies.js.gz +0 -0
  474. package/dist/collection/components/ez-chart/interfaces/ChartType.js.gz +0 -0
  475. package/dist/collection/components/ez-chart/interfaces/ChartTypeValue.js.gz +0 -0
  476. package/dist/collection/components/ez-chart/interfaces/index.js.gz +0 -0
  477. package/dist/collection/components/ez-chart/test/mock-chart.js.gz +0 -0
  478. package/dist/collection/components/ez-chart/types/BaseHighChartsRender.js.gz +0 -0
  479. package/dist/collection/components/ez-check/CheckMode.js.gz +0 -0
  480. package/dist/collection/components/ez-check/ez-check.css.gz +0 -0
  481. package/dist/collection/components/ez-check/ez-check.js.gz +0 -0
  482. package/dist/collection/components/ez-chip/ez-chip.css.gz +0 -0
  483. package/dist/collection/components/ez-chip/ez-chip.js.gz +0 -0
  484. package/dist/collection/components/ez-collapsible-box/ez-collapsible-box.css.gz +0 -0
  485. package/dist/collection/components/ez-collapsible-box/ez-collapsible-box.js.gz +0 -0
  486. package/dist/collection/components/ez-combo-box/ez-combo-box-list/ez-combo-box-list.css.gz +0 -0
  487. package/dist/collection/components/ez-combo-box/ez-combo-box-list/ez-combo-box-list.js.gz +0 -0
  488. package/dist/collection/components/ez-combo-box/ez-combo-box.css.gz +0 -0
  489. package/dist/collection/components/ez-combo-box/ez-combo-box.js.gz +0 -0
  490. package/dist/collection/components/ez-date-input/ez-date-input.css.gz +0 -0
  491. package/dist/collection/components/ez-date-input/ez-date-input.js.gz +0 -0
  492. package/dist/collection/components/ez-date-time-input/ez-date-time-input.css.gz +0 -0
  493. package/dist/collection/components/ez-date-time-input/ez-date-time-input.js.gz +0 -0
  494. package/dist/collection/components/ez-dialog/DialogType.js.gz +0 -0
  495. package/dist/collection/components/ez-dialog/ez-dialog.css.gz +0 -0
  496. package/dist/collection/components/ez-dialog/ez-dialog.js.gz +0 -0
  497. package/dist/collection/components/ez-double-list/doubleListHelper.js.gz +0 -0
  498. package/dist/collection/components/ez-double-list/ez-double-list.css.gz +0 -0
  499. package/dist/collection/components/ez-double-list/ez-double-list.js.gz +0 -0
  500. package/dist/collection/components/ez-dropdown/ez-dropdown.css.gz +0 -0
  501. package/dist/collection/components/ez-dropdown/ez-dropdown.js.gz +0 -0
  502. package/dist/collection/components/ez-dropdown/structure/DropdownItem.js.gz +0 -0
  503. package/dist/collection/components/ez-dropdown/structure/SubmenuControl.js.gz +0 -0
  504. package/dist/collection/components/ez-file-item/ez-file-item.css.gz +0 -0
  505. package/dist/collection/components/ez-file-item/ez-file-item.js.gz +0 -0
  506. package/dist/collection/components/ez-filter-input/ez-filter-input.css.gz +0 -0
  507. package/dist/collection/components/ez-filter-input/ez-filter-input.js.gz +0 -0
  508. package/dist/collection/components/ez-form/ez-form.css.gz +0 -0
  509. package/dist/collection/components/ez-form/ez-form.js.gz +0 -0
  510. package/dist/collection/components/ez-form/store/form.slice.js.gz +0 -0
  511. package/dist/collection/components/ez-form-view/custom-input/ez-custom-form-input.js.gz +0 -0
  512. package/dist/collection/components/ez-form-view/ez-form-view.css.gz +0 -0
  513. package/dist/collection/components/ez-form-view/ez-form-view.js.gz +0 -0
  514. package/dist/collection/components/ez-form-view/fieldbuilder/FieldBuilder.js.gz +0 -0
  515. package/dist/collection/components/ez-form-view/fieldbuilder/templates/CheckBox.tpl.js.gz +0 -0
  516. package/dist/collection/components/ez-form-view/fieldbuilder/templates/ComboBox.tpl.js.gz +0 -0
  517. package/dist/collection/components/ez-form-view/fieldbuilder/templates/DateInput.tpl.js.gz +0 -0
  518. package/dist/collection/components/ez-form-view/fieldbuilder/templates/FileInput.tpl.js.gz +0 -0
  519. package/dist/collection/components/ez-form-view/fieldbuilder/templates/NumberInput.tpl.js.gz +0 -0
  520. package/dist/collection/components/ez-form-view/fieldbuilder/templates/SearchInput.tpl.js.gz +0 -0
  521. package/dist/collection/components/ez-form-view/fieldbuilder/templates/TextArea.tpl.js.gz +0 -0
  522. package/dist/collection/components/ez-form-view/fieldbuilder/templates/TextInput.tpl.js.gz +0 -0
  523. package/dist/collection/components/ez-form-view/interfaces/IFormViewField.js.gz +0 -0
  524. package/dist/collection/components/ez-form-view/interfaces/index.js.gz +0 -0
  525. package/dist/collection/components/ez-form-view/structure/index.js.gz +0 -0
  526. package/dist/collection/components/ez-grid/controller/EzGridController.js.gz +0 -0
  527. package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js.gz +0 -0
  528. package/dist/collection/components/ez-grid/controller/ag-grid/DataSource.js.gz +0 -0
  529. package/dist/collection/components/ez-grid/controller/ag-grid/DataSourceInterceptor.js.gz +0 -0
  530. package/dist/collection/components/ez-grid/controller/ag-grid/GridEditionManager.js.gz +0 -0
  531. package/dist/collection/components/ez-grid/controller/ag-grid/components/EzGridCustomCellEditor.js.gz +0 -0
  532. package/dist/collection/components/ez-grid/controller/ag-grid/components/EzGridCustomCellRender.js.gz +0 -0
  533. package/dist/collection/components/ez-grid/controller/ag-grid/components/EzGridCustomHeader.js.gz +0 -0
  534. package/dist/collection/components/ez-grid/controller/ag-grid/components/cellRendererStatus.js.gz +0 -0
  535. package/dist/collection/components/ez-grid/controller/ag-grid/components/selectionHeader.js.gz +0 -0
  536. package/dist/collection/components/ez-grid/controller/ag-grid/components/test/constants/EzGridCustomCellEditorConstants.js.gz +0 -0
  537. package/dist/collection/components/ez-grid/controller/ag-grid/components/test/constants/EzGridCustomCellRenderConstants.js.gz +0 -0
  538. package/dist/collection/components/ez-grid/controller/ag-grid/editor/EzCellEditor.js.gz +0 -0
  539. package/dist/collection/components/ez-grid/controller/ag-grid/editor/EzCellRender.js.gz +0 -0
  540. package/dist/collection/components/ez-grid/controller/ag-grid/editor/GridEditorUtils.js.gz +0 -0
  541. package/dist/collection/components/ez-grid/controller/ag-grid/editor/IEditorMetadata.js.gz +0 -0
  542. package/dist/collection/components/ez-grid/controller/ag-grid/editor/IUICellEditor.js.gz +0 -0
  543. package/dist/collection/components/ez-grid/controller/ag-grid/editor/IUICellRender.js.gz +0 -0
  544. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/ComboBox.tpl.js.gz +0 -0
  545. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/DateInput.tpl.js.gz +0 -0
  546. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/NumberInput.tpl.js.gz +0 -0
  547. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/Search.tpl.js.gz +0 -0
  548. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/TextInput.tpl.js.gz +0 -0
  549. package/dist/collection/components/ez-grid/controller/ag-grid/i18n/pt-BR.js.gz +0 -0
  550. package/dist/collection/components/ez-grid/controller/ag-grid/mock/Server.js.gz +0 -0
  551. package/dist/collection/components/ez-grid/controller/ag-grid/test/constants/GridEditionMock.js.gz +0 -0
  552. package/dist/collection/components/ez-grid/ez-grid.css.gz +0 -0
  553. package/dist/collection/components/ez-grid/ez-grid.js.gz +0 -0
  554. package/dist/collection/components/ez-grid/interfaces/IColumnFilter.js.gz +0 -0
  555. package/dist/collection/components/ez-grid/interfaces/ICustomFormatter.js.gz +0 -0
  556. package/dist/collection/components/ez-grid/interfaces/ISelection.js.gz +0 -0
  557. package/dist/collection/components/ez-grid/interfaces/ISelectionToastConfig.js.gz +0 -0
  558. package/dist/collection/components/ez-grid/interfaces/index.js.gz +0 -0
  559. package/dist/collection/components/ez-grid/subcomponents/filter-column.css.gz +0 -0
  560. package/dist/collection/components/ez-grid/subcomponents/filter-column.js.gz +0 -0
  561. package/dist/collection/components/ez-grid/subcomponents/selection-counter.js.gz +0 -0
  562. package/dist/collection/components/ez-grid/subcomponents/utils/selectionCounterUtils.js.gz +0 -0
  563. package/dist/collection/components/ez-grid/test/resources/gridDataUnit.js.gz +0 -0
  564. package/dist/collection/components/ez-grid/utils/ColumnFilterManager.js.gz +0 -0
  565. package/dist/collection/components/ez-grid/utils/InMemoryFilterColumnDataSource.js.gz +0 -0
  566. package/dist/collection/components/ez-grid/utils/index.js.gz +0 -0
  567. package/dist/collection/components/ez-guide-navigator/ez-guide-navigator.css.gz +0 -0
  568. package/dist/collection/components/ez-guide-navigator/ez-guide-navigator.js.gz +0 -0
  569. package/dist/collection/components/ez-guide-navigator/interfaces/IGuideItem.js.gz +0 -0
  570. package/dist/collection/components/ez-guide-navigator/interfaces/index.js.gz +0 -0
  571. package/dist/collection/components/ez-icon/ez-icon.css.gz +0 -0
  572. package/dist/collection/components/ez-icon/ez-icon.js.gz +0 -0
  573. package/dist/collection/components/ez-list/ez-list.css.gz +0 -0
  574. package/dist/collection/components/ez-list/ez-list.js.gz +0 -0
  575. package/dist/collection/components/ez-list/ezListHelper.js.gz +0 -0
  576. package/dist/collection/components/ez-loading-bar/ez-loading-bar.css.gz +0 -0
  577. package/dist/collection/components/ez-loading-bar/ez-loading-bar.js.gz +0 -0
  578. package/dist/collection/components/ez-modal/ez-modal.css.gz +0 -0
  579. package/dist/collection/components/ez-modal/ez-modal.js.gz +0 -0
  580. package/dist/collection/components/ez-modal-container/ez-modal-container.css.gz +0 -0
  581. package/dist/collection/components/ez-modal-container/ez-modal-container.js.gz +0 -0
  582. package/dist/collection/components/ez-modal-container/index.js.gz +0 -0
  583. package/dist/collection/components/ez-modal-container/modal-action.js.gz +0 -0
  584. package/dist/collection/components/ez-modal-container/modal-button-status.js.gz +0 -0
  585. package/dist/collection/components/ez-multi-selection-list/ez-multi-selection-list.css.gz +0 -0
  586. package/dist/collection/components/ez-multi-selection-list/ez-multi-selection-list.js.gz +0 -0
  587. package/dist/collection/components/ez-multi-selection-list/interfaces/IMultiSelectionListDataSource.js.gz +0 -0
  588. package/dist/collection/components/ez-multi-selection-list/interfaces/IMultiSelectionOption.js.gz +0 -0
  589. package/dist/collection/components/ez-multi-selection-list/subcomponents/multi-selection-box-message.css.gz +0 -0
  590. package/dist/collection/components/ez-multi-selection-list/subcomponents/multi-selection-box-message.js.gz +0 -0
  591. package/dist/collection/components/ez-number-input/ez-number-input.css.gz +0 -0
  592. package/dist/collection/components/ez-number-input/ez-number-input.js.gz +0 -0
  593. package/dist/collection/components/ez-popover/ez-popover.css.gz +0 -0
  594. package/dist/collection/components/ez-popover/ez-popover.js.gz +0 -0
  595. package/dist/collection/components/ez-popover-plus/ez-popover-plus.css.gz +0 -0
  596. package/dist/collection/components/ez-popover-plus/ez-popover-plus.js.gz +0 -0
  597. package/dist/collection/components/ez-popover-plus/subcomponent/ez-popover-core.css.gz +0 -0
  598. package/dist/collection/components/ez-popover-plus/subcomponent/ez-popover-core.js.gz +0 -0
  599. package/dist/collection/components/ez-popup/ez-popup.css.gz +0 -0
  600. package/dist/collection/components/ez-popup/ez-popup.js.gz +0 -0
  601. package/dist/collection/components/ez-radio-button/ez-radio-button.css.gz +0 -0
  602. package/dist/collection/components/ez-radio-button/ez-radio-button.js.gz +0 -0
  603. package/dist/collection/components/ez-scroller/EzScrollDirection.js.gz +0 -0
  604. package/dist/collection/components/ez-scroller/ez-scroller.css.gz +0 -0
  605. package/dist/collection/components/ez-scroller/ez-scroller.js.gz +0 -0
  606. package/dist/collection/components/ez-search/ez-search.css.gz +0 -0
  607. package/dist/collection/components/ez-search/ez-search.js.gz +0 -0
  608. package/dist/collection/components/ez-search/subcomponent/search-list/search-list.css.gz +0 -0
  609. package/dist/collection/components/ez-search/subcomponent/search-list/search-list.js.gz +0 -0
  610. package/dist/collection/components/ez-search/utils/searchFormatters.js.gz +0 -0
  611. package/dist/collection/components/ez-sidebar-button/ez-sidebar-button.css.gz +0 -0
  612. package/dist/collection/components/ez-sidebar-button/ez-sidebar-button.js.gz +0 -0
  613. package/dist/collection/components/ez-sidebar-navigator/ez-sidebar-navigator.css.gz +0 -0
  614. package/dist/collection/components/ez-sidebar-navigator/ez-sidebar-navigator.js.gz +0 -0
  615. package/dist/collection/components/ez-sidebar-navigator/interfaces/ModeMenuEnum.js.gz +0 -0
  616. package/dist/collection/components/ez-sidebar-navigator/interfaces/SizeMenuEnum.js.gz +0 -0
  617. package/dist/collection/components/ez-sidebar-navigator/interfaces/TypeMenuEnum.js.gz +0 -0
  618. package/dist/collection/components/ez-sidebar-navigator/interfaces/index.js.gz +0 -0
  619. package/dist/collection/components/ez-sidebar-navigator/messages/constants.js.gz +0 -0
  620. package/dist/collection/components/ez-skeleton/ez-skeleton.constants.js.gz +0 -0
  621. package/dist/collection/components/ez-skeleton/ez-skeleton.css.gz +0 -0
  622. package/dist/collection/components/ez-skeleton/ez-skeleton.js.gz +0 -0
  623. package/dist/collection/components/ez-split-button/ez-split-button.css.gz +0 -0
  624. package/dist/collection/components/ez-split-button/ez-split-button.js.gz +0 -0
  625. package/dist/collection/components/ez-split-button/test/dropdownItems.js.gz +0 -0
  626. package/dist/collection/components/ez-split-panel/ez-split-panel.css.gz +0 -0
  627. package/dist/collection/components/ez-split-panel/ez-split-panel.js.gz +0 -0
  628. package/dist/collection/components/ez-split-panel/interfaces/IPanelSizeInfo.js.gz +0 -0
  629. package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.css.gz +0 -0
  630. package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.js.gz +0 -0
  631. package/dist/collection/components/ez-tabselector/ez-tabselector.css.gz +0 -0
  632. package/dist/collection/components/ez-tabselector/ez-tabselector.js.gz +0 -0
  633. package/dist/collection/components/ez-text-area/ez-text-area.css.gz +0 -0
  634. package/dist/collection/components/ez-text-area/ez-text-area.js.gz +0 -0
  635. package/dist/collection/components/ez-text-edit/ez-text-edit.css.gz +0 -0
  636. package/dist/collection/components/ez-text-edit/ez-text-edit.js.gz +0 -0
  637. package/dist/collection/components/ez-text-input/ez-text-input.css.gz +0 -0
  638. package/dist/collection/components/ez-text-input/ez-text-input.js.gz +0 -0
  639. package/dist/collection/components/ez-time-input/ez-time-input.css.gz +0 -0
  640. package/dist/collection/components/ez-time-input/ez-time-input.js.gz +0 -0
  641. package/dist/collection/components/ez-toast/ez-toast.css.gz +0 -0
  642. package/dist/collection/components/ez-toast/ez-toast.js.gz +0 -0
  643. package/dist/collection/components/ez-tooltip/ez-tooltip.css.gz +0 -0
  644. package/dist/collection/components/ez-tooltip/ez-tooltip.js.gz +0 -0
  645. package/dist/collection/components/ez-tree/ez-tree.css.gz +0 -0
  646. package/dist/collection/components/ez-tree/ez-tree.js.gz +0 -0
  647. package/dist/collection/components/ez-tree/interfaces/ITree.js.gz +0 -0
  648. package/dist/collection/components/ez-tree/interfaces/ITreeItem.js.gz +0 -0
  649. package/dist/collection/components/ez-tree/interfaces/ITreeItemBadge.js.gz +0 -0
  650. package/dist/collection/components/ez-tree/subcomponents/DefaultIconResolver.js.gz +0 -0
  651. package/dist/collection/components/ez-tree/subcomponents/DefaultTooltipResolver.js.gz +0 -0
  652. package/dist/collection/components/ez-tree/subcomponents/TreeItem.js.gz +0 -0
  653. package/dist/collection/components/ez-tree/subcomponents/index.js.gz +0 -0
  654. package/dist/collection/components/ez-tree/types/Node.js.gz +0 -0
  655. package/dist/collection/components/ez-tree/types/Tree.js.gz +0 -0
  656. package/dist/collection/components/ez-upload/RemoteFile.js.gz +0 -0
  657. package/dist/collection/components/ez-upload/ez-upload.css.gz +0 -0
  658. package/dist/collection/components/ez-upload/ez-upload.js.gz +0 -0
  659. package/dist/collection/components/ez-view-stack/ez-view-stack.css.gz +0 -0
  660. package/dist/collection/components/ez-view-stack/ez-view-stack.js.gz +0 -0
  661. package/dist/collection/index.js.gz +0 -0
  662. package/dist/collection/servidor.js.gz +0 -0
  663. package/dist/collection/setupTests.js.gz +0 -0
  664. package/dist/collection/sw.js.gz +0 -0
  665. package/dist/collection/utils/ApplicationUtils.js.gz +0 -0
  666. package/dist/collection/utils/AssetsUtils.js.gz +0 -0
  667. package/dist/collection/utils/CSSVarsUtils.js.gz +0 -0
  668. package/dist/collection/utils/FocusResolver.js.gz +0 -0
  669. package/dist/collection/utils/ResponsiveInputUtils.js +0 -26
  670. package/dist/collection/utils/ResponsiveInputUtils.js.gz +0 -0
  671. package/dist/collection/utils/constants.js.gz +0 -0
  672. package/dist/collection/utils/customEditor/interfaces/ICustomEditor.js.gz +0 -0
  673. package/dist/collection/utils/customEditor/interfaces/ICustomEditorInfo.js.gz +0 -0
  674. package/dist/collection/utils/customRender/interfaces/ICustomRender.js.gz +0 -0
  675. package/dist/collection/utils/customRender/interfaces/ICustomRenderInfo.js.gz +0 -0
  676. package/dist/collection/utils/form/DataBinder.js.gz +0 -0
  677. package/dist/collection/utils/form/FormMetadata.js.gz +0 -0
  678. package/dist/collection/utils/form/index.js.gz +0 -0
  679. package/dist/collection/utils/form/interfaces/FormLayout.js.gz +0 -0
  680. package/dist/collection/utils/form/interfaces/IDefaultConfig.js.gz +0 -0
  681. package/dist/collection/utils/form/interfaces/IFormCardConfig.js.gz +0 -0
  682. package/dist/collection/utils/form/interfaces/IFormConfig.js.gz +0 -0
  683. package/dist/collection/utils/form/interfaces/IFormSheetMetadata.js.gz +0 -0
  684. package/dist/collection/utils/form/interfaces/ISummaryField.js.gz +0 -0
  685. package/dist/collection/utils/form/interfaces/ITabConfig.js.gz +0 -0
  686. package/dist/collection/utils/form/interfaces/index.js.gz +0 -0
  687. package/dist/collection/utils/form/test/DataBinder.test.js.gz +0 -0
  688. package/dist/collection/utils/form/test/resources/metadataTest.js.gz +0 -0
  689. package/dist/collection/utils/index.js.gz +0 -0
  690. package/dist/collection/utils/interfaces/AbstractFieldMetadata.js.gz +0 -0
  691. package/dist/collection/utils/interfaces/IAction.js.gz +0 -0
  692. package/dist/collection/utils/interfaces/IFieldConfig.js.gz +0 -0
  693. package/dist/collection/utils/mock/ez-upload-mock.js.gz +0 -0
  694. package/dist/collection/utils/utils.js.gz +0 -0
  695. package/dist/collection/utils/validators/recordvalidator/IInvalidCells.js.gz +0 -0
  696. package/dist/collection/utils/validators/recordvalidator/IInvalidField.js.gz +0 -0
  697. package/dist/collection/utils/validators/recordvalidator/IRecordValidator.js.gz +0 -0
  698. package/dist/collection/utils/validators/recordvalidator/IValidationResult.js.gz +0 -0
  699. package/dist/collection/utils/validators/recordvalidator/IValidationSource.js.gz +0 -0
  700. package/dist/collection/utils/validators/recordvalidator/RecordValidationProcessor.js.gz +0 -0
  701. package/dist/custom-elements/index.js.gz +0 -0
  702. package/dist/esm/ApplicationUtils-eaf91331.js.gz +0 -0
  703. package/dist/esm/CSSVarsUtils-acba92d7.js.gz +0 -0
  704. package/dist/esm/CheckMode-bdb2ec19.js.gz +0 -0
  705. package/dist/esm/DataBinder-9c877244.js.gz +0 -0
  706. package/dist/esm/DialogType-54a62731.js.gz +0 -0
  707. package/dist/esm/EzScrollDirection-2df26c93.js.gz +0 -0
  708. package/dist/esm/FocusResolver-1ccbf850.js.gz +0 -0
  709. package/dist/esm/FormLayout-54092963.js +0 -7
  710. package/dist/esm/FormLayout-54092963.js.gz +0 -0
  711. package/dist/esm/ICustomRender-875b5a40.js +0 -13
  712. package/dist/esm/ICustomRender-875b5a40.js.gz +0 -0
  713. package/dist/esm/constants-4e0d35b7.js +0 -5
  714. package/dist/esm/constants-4e0d35b7.js.gz +0 -0
  715. package/dist/esm/ez-actions-button.entry.js.gz +0 -0
  716. package/dist/esm/ez-alert-list.entry.js.gz +0 -0
  717. package/dist/esm/ez-alert.entry.js.gz +0 -0
  718. package/dist/esm/ez-application.entry.js.gz +0 -0
  719. package/dist/esm/ez-badge.entry.js.gz +0 -0
  720. package/dist/esm/ez-breadcrumb.entry.js.gz +0 -0
  721. package/dist/esm/ez-button.entry.js.gz +0 -0
  722. package/dist/esm/ez-calendar.entry.js.gz +0 -0
  723. package/dist/esm/ez-card-item_2.entry.js.gz +0 -0
  724. package/dist/esm/ez-chart.entry.js.gz +0 -0
  725. package/dist/esm/ez-check.entry.js.gz +0 -0
  726. package/dist/esm/ez-chip.entry.js.gz +0 -0
  727. package/dist/esm/ez-collapsible-box.entry.js.gz +0 -0
  728. package/dist/esm/ez-combo-box-list_3.entry.js.gz +0 -0
  729. package/dist/esm/ez-combo-box.entry.js.gz +0 -0
  730. package/dist/esm/ez-date-input.entry.js.gz +0 -0
  731. package/dist/esm/ez-date-time-input.entry.js.gz +0 -0
  732. package/dist/esm/ez-dialog.entry.js.gz +0 -0
  733. package/dist/esm/ez-double-list.entry.js.gz +0 -0
  734. package/dist/esm/ez-dropdown_2.entry.js.gz +0 -0
  735. package/dist/esm/ez-file-item.entry.js.gz +0 -0
  736. package/dist/esm/ez-filter-input.entry.js.gz +0 -0
  737. package/dist/esm/ez-form-view.entry.js.gz +0 -0
  738. package/dist/esm/ez-form.entry.js.gz +0 -0
  739. package/dist/esm/ez-grid.entry.js.gz +0 -0
  740. package/dist/esm/ez-guide-navigator.entry.js.gz +0 -0
  741. package/dist/esm/ez-icon.entry.js.gz +0 -0
  742. package/dist/esm/ez-list.entry.js.gz +0 -0
  743. package/dist/esm/ez-loading-bar.entry.js.gz +0 -0
  744. package/dist/esm/ez-modal-container.entry.js.gz +0 -0
  745. package/dist/esm/ez-modal.entry.js.gz +0 -0
  746. package/dist/esm/ez-multi-selection-list.entry.js.gz +0 -0
  747. package/dist/esm/ez-number-input.entry.js.gz +0 -0
  748. package/dist/esm/ez-popover-plus_3.entry.js.gz +0 -0
  749. package/dist/esm/ez-popover.entry.js.gz +0 -0
  750. package/dist/esm/ez-popup.entry.js.gz +0 -0
  751. package/dist/esm/ez-radio-button.entry.js.gz +0 -0
  752. package/dist/esm/ez-scroller_2.entry.js.gz +0 -0
  753. package/dist/esm/ez-search.entry.js.gz +0 -0
  754. package/dist/esm/ez-sidebar-navigator.entry.js.gz +0 -0
  755. package/dist/esm/ez-split-button.entry.js.gz +0 -0
  756. package/dist/esm/ez-split-item.entry.js.gz +0 -0
  757. package/dist/esm/ez-split-panel.entry.js.gz +0 -0
  758. package/dist/esm/ez-tabselector.entry.js.gz +0 -0
  759. package/dist/esm/ez-text-area.entry.js.gz +0 -0
  760. package/dist/esm/ez-text-input.entry.js.gz +0 -0
  761. package/dist/esm/ez-time-input.entry.js.gz +0 -0
  762. package/dist/esm/ez-toast.entry.js.gz +0 -0
  763. package/dist/esm/ez-tooltip.entry.js.gz +0 -0
  764. package/dist/esm/ez-tree.entry.js.gz +0 -0
  765. package/dist/esm/ez-upload.entry.js.gz +0 -0
  766. package/dist/esm/ez-view-stack.entry.js.gz +0 -0
  767. package/dist/esm/ezListHelper-00fb9b8d.js.gz +0 -0
  768. package/dist/esm/ezui.js.gz +0 -0
  769. package/dist/esm/filter-column.entry.js.gz +0 -0
  770. package/dist/esm/index-5a720e56.js.gz +0 -0
  771. package/dist/esm/index.js.gz +0 -0
  772. package/dist/esm/loader.js.gz +0 -0
  773. package/dist/esm/polyfills/core-js.js.gz +0 -0
  774. package/dist/esm/polyfills/css-shim.js.gz +0 -0
  775. package/dist/esm/polyfills/dom.js.gz +0 -0
  776. package/dist/esm/polyfills/es5-html-element.js.gz +0 -0
  777. package/dist/esm/polyfills/index.js.gz +0 -0
  778. package/dist/esm/polyfills/system.js.gz +0 -0
  779. package/dist/esm/searchFormatters-8229207e.js.gz +0 -0
  780. package/dist/ezui/ezui.esm.js.gz +0 -0
  781. package/dist/ezui/index.esm.js.gz +0 -0
  782. package/dist/ezui/p-000159dc.entry.js.gz +0 -0
  783. package/dist/ezui/p-0378416a.entry.js.gz +0 -0
  784. package/dist/ezui/p-05e1f4e7.js +0 -1
  785. package/dist/ezui/p-05e1f4e7.js.gz +0 -0
  786. package/dist/ezui/p-06f1b8e4.entry.js.gz +0 -0
  787. package/dist/ezui/p-0cd9d4ec.entry.js +0 -1
  788. package/dist/ezui/p-0cd9d4ec.entry.js.gz +0 -0
  789. package/dist/ezui/p-0cfbbe82.entry.js +0 -1
  790. package/dist/ezui/p-0cfbbe82.entry.js.gz +0 -0
  791. package/dist/ezui/p-11bfeca3.entry.js.gz +0 -0
  792. package/dist/ezui/p-173f68ea.js +0 -1
  793. package/dist/ezui/p-173f68ea.js.gz +0 -0
  794. package/dist/ezui/p-1bb62d6b.entry.js +0 -1
  795. package/dist/ezui/p-1bb62d6b.entry.js.gz +0 -0
  796. package/dist/ezui/p-2069c78a.entry.js +0 -1
  797. package/dist/ezui/p-2069c78a.entry.js.gz +0 -0
  798. package/dist/ezui/p-2187f86c.js.gz +0 -0
  799. package/dist/ezui/p-22ea800a.entry.js +0 -1
  800. package/dist/ezui/p-22ea800a.entry.js.gz +0 -0
  801. package/dist/ezui/p-23dab72f.entry.js +0 -1
  802. package/dist/ezui/p-23dab72f.entry.js.gz +0 -0
  803. package/dist/ezui/p-24b42f3d.entry.js +0 -1
  804. package/dist/ezui/p-24b42f3d.entry.js.gz +0 -0
  805. package/dist/ezui/p-2f351332.entry.js +0 -1
  806. package/dist/ezui/p-2f351332.entry.js.gz +0 -0
  807. package/dist/ezui/p-37c840e8.entry.js +0 -1
  808. package/dist/ezui/p-37c840e8.entry.js.gz +0 -0
  809. package/dist/ezui/p-40a60148.js.gz +0 -0
  810. package/dist/ezui/p-41652617.entry.js +0 -1
  811. package/dist/ezui/p-41652617.entry.js.gz +0 -0
  812. package/dist/ezui/p-44b39e81.entry.js.gz +0 -0
  813. package/dist/ezui/p-4607fb89.js +0 -1
  814. package/dist/ezui/p-4607fb89.js.gz +0 -0
  815. package/dist/ezui/p-4818b8ce.entry.js +0 -1
  816. package/dist/ezui/p-4818b8ce.entry.js.gz +0 -0
  817. package/dist/ezui/p-68b2e579.entry.js +0 -1
  818. package/dist/ezui/p-68b2e579.entry.js.gz +0 -0
  819. package/dist/ezui/p-6b51c9cc.entry.js.gz +0 -0
  820. package/dist/ezui/p-6d8b3298.entry.js +0 -1
  821. package/dist/ezui/p-6d8b3298.entry.js.gz +0 -0
  822. package/dist/ezui/p-6ec40dec.entry.js +0 -1
  823. package/dist/ezui/p-6ec40dec.entry.js.gz +0 -0
  824. package/dist/ezui/p-6fc26622.entry.js.gz +0 -0
  825. package/dist/ezui/p-708b196e.entry.js.gz +0 -0
  826. package/dist/ezui/p-7567ccdd.entry.js.gz +0 -0
  827. package/dist/ezui/p-769632d5.entry.js.gz +0 -0
  828. package/dist/ezui/p-7c1b3cef.entry.js +0 -1
  829. package/dist/ezui/p-7c1b3cef.entry.js.gz +0 -0
  830. package/dist/ezui/p-80dfc50b.js.gz +0 -0
  831. package/dist/ezui/p-81461d2f.entry.js.gz +0 -0
  832. package/dist/ezui/p-82fa4b09.entry.js.gz +0 -0
  833. package/dist/ezui/p-87f5a060.entry.js.gz +0 -0
  834. package/dist/ezui/p-88c615f0.entry.js +0 -1
  835. package/dist/ezui/p-88c615f0.entry.js.gz +0 -0
  836. package/dist/ezui/p-9066b0b0.entry.js +0 -1
  837. package/dist/ezui/p-9066b0b0.entry.js.gz +0 -0
  838. package/dist/ezui/p-91ccae0c.entry.js.gz +0 -0
  839. package/dist/ezui/p-92748142.entry.js.gz +0 -0
  840. package/dist/ezui/p-98bb8b16.js.gz +0 -0
  841. package/dist/ezui/p-9c5a6ec4.entry.js +0 -1
  842. package/dist/ezui/p-9c5a6ec4.entry.js.gz +0 -0
  843. package/dist/ezui/p-9d6d339e.entry.js +0 -1
  844. package/dist/ezui/p-9d6d339e.entry.js.gz +0 -0
  845. package/dist/ezui/p-9e45446f.entry.js +0 -1
  846. package/dist/ezui/p-9e45446f.entry.js.gz +0 -0
  847. package/dist/ezui/p-9e95bfeb.entry.js.gz +0 -0
  848. package/dist/ezui/p-a5d0b66b.entry.js +0 -309
  849. package/dist/ezui/p-a5d0b66b.entry.js.gz +0 -0
  850. package/dist/ezui/p-a79f3789.entry.js +0 -1
  851. package/dist/ezui/p-a79f3789.entry.js.gz +0 -0
  852. package/dist/ezui/p-ab574d59.js.gz +0 -0
  853. package/dist/ezui/p-acddfb2e.js +0 -1
  854. package/dist/ezui/p-acddfb2e.js.gz +0 -0
  855. package/dist/ezui/p-b853763b.js.gz +0 -0
  856. package/dist/ezui/p-b9282c79.entry.js +0 -1
  857. package/dist/ezui/p-b9282c79.entry.js.gz +0 -0
  858. package/dist/ezui/p-c2b20f78.entry.js.gz +0 -0
  859. package/dist/ezui/p-c7035d65.entry.js.gz +0 -0
  860. package/dist/ezui/p-c96fbbef.entry.js +0 -1
  861. package/dist/ezui/p-c96fbbef.entry.js.gz +0 -0
  862. package/dist/ezui/p-ca8936df.entry.js +0 -1
  863. package/dist/ezui/p-ca8936df.entry.js.gz +0 -0
  864. package/dist/ezui/p-cb83960b.entry.js +0 -1
  865. package/dist/ezui/p-cb83960b.entry.js.gz +0 -0
  866. package/dist/ezui/p-cc4ffa6b.entry.js +0 -1
  867. package/dist/ezui/p-cc4ffa6b.entry.js.gz +0 -0
  868. package/dist/ezui/p-cf33bc48.entry.js.gz +0 -0
  869. package/dist/ezui/p-dc628ed3.js.gz +0 -0
  870. package/dist/ezui/p-dfca5946.entry.js.gz +0 -0
  871. package/dist/ezui/p-e18d9e6a.entry.js +0 -1
  872. package/dist/ezui/p-e18d9e6a.entry.js.gz +0 -0
  873. package/dist/ezui/p-e3f8660b.entry.js +0 -1
  874. package/dist/ezui/p-e3f8660b.entry.js.gz +0 -0
  875. package/dist/ezui/p-e4c7eb39.js.gz +0 -0
  876. package/dist/ezui/p-e6b38ade.entry.js.gz +0 -0
  877. package/dist/ezui/p-ec7db713.js.gz +0 -0
  878. package/dist/ezui/p-ede42942.entry.js +0 -1
  879. package/dist/ezui/p-ede42942.entry.js.gz +0 -0
  880. package/dist/ezui/p-f6754848.entry.js +0 -1
  881. package/dist/ezui/p-f6754848.entry.js.gz +0 -0
  882. package/dist/ezui/p-fc194825.entry.js.gz +0 -0
  883. package/dist/index.cjs.js.gz +0 -0
  884. package/dist/index.js.gz +0 -0
  885. package/dist/types/utils/ResponsiveInputUtils.d.ts +0 -6
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -1 +0,0 @@
1
- const _=" (obrigatório) *",a="FILTRO_COLUNA_",o="EZ_GRID_LOADING_SOURCE";export{a as D,o as E,_ as R}
Binary file
Binary file
@@ -1 +0,0 @@
1
- import{r as i,h as t,a as o,H as e,c as s,g as r}from"./p-e4c7eb39.js";import{ElementIDUtils as a,ObjectUtils as l,HTMLBuilder as n,StringUtils as c}from"@sankhyalabs/core";import{C as h}from"./p-4607fb89.js";import{A as d}from"./p-2187f86c.js";import"./p-ab574d59.js";import"./p-b853763b.js";import"./p-173f68ea.js";const b=class{constructor(t){i(this,t),this.showLoading=void 0,this.visibleOptions=void 0,this.textEmptyList="Nenhum resultado encontrado",this.showOptionValue=void 0,this.preSelection=void 0,this.maxWidth=void 0,this.width=void 0,this.onOptionSelect=void 0,this.onOptionHover=void 0}async nextOption(){var i,t;(null===(i=this.visibleOptions)||void 0===i?void 0:i.length)&&(void 0!==this.preSelection&&this.preSelection>=this.visibleOptions.length-1||(this.preSelection=void 0===this.preSelection?0:this.preSelection+1,this.scrollToOption(this.visibleOptions[this.preSelection]),null===(t=this.onOptionHover)||void 0===t||t.call(this,this.preSelection)))}async previousOption(){var i,t;(null===(i=this.visibleOptions)||void 0===i?void 0:i.length)&&(void 0!==this.preSelection&&this.preSelection<=0||(this.preSelection=void 0===this.preSelection?this.visibleOptions.length-1:this.preSelection-1,this.scrollToOption(this.visibleOptions[this.preSelection]),null===(t=this.onOptionHover)||void 0===t||t.call(this,this.preSelection)))}async selectCurrentOption(){void 0!==this.preSelection&&(this.onOptionSelect(this.visibleOptions[this.preSelection]),this.preSelection=void 0)}observeWidth(i,t){i!==t&&this._listWrapper&&(this._listWrapper.style.width=`${this.width}px`)}observeMaxWidth(i,t){i!==t&&this._listWrapper&&(this._listWrapper.style.maxWidth=this.maxWidth?`${this.maxWidth}px`:"")}handleKeyDown(i){switch(i.key){case"ArrowDown":i.preventDefault(),i.stopPropagation(),this.nextOption();break;case"ArrowUp":i.preventDefault(),i.stopPropagation(),this.previousOption();break;case"Enter":this.selectCurrentOption();break;case"Escape":this.preSelection=void 0}}buildItem(i,o){const e=this.showOptionValue&&this.maxWidth>0?`${this.maxWidth}px`:"";return i.label=i.label||i.value,t("li",{tabIndex:1,class:o===this.preSelection?"item preselected":"item",id:`item_${i.value}_${o}`,key:`item_${i.value}_${o}`,onMouseDown:()=>this.onOptionSelect(i),onMouseOver:()=>this.preSelection=o},this.showOptionValue?t("span",{class:"item__value",title:i.value,style:{width:e,minWidth:e,maxWidth:e}},i.value):void 0,t("span",{class:"item__label "+(this.showOptionValue?"item__label--bold":""),title:i.label},i.label))}scrollToOption(i){if(!(null==i?void 0:i.value)||!this._optionsList)return;const t=this.visibleOptions.indexOf(i);if(-1===t)return;const o=this._optionsList.querySelector(`li#item_${CSS.escape(i.value)}_${CSS.escape(String(t))}`);o&&o.scrollIntoView({behavior:"smooth",block:"nearest"})}componentDidLoad(){this._listWrapper.style.width=`${this.width}px`,this._listWrapper.style.maxWidth=this.maxWidth?`${this.maxWidth}px`:""}componentDidRender(){var i;null===(i=this._optionsList)||void 0===i||i.querySelectorAll(".item").forEach((i=>{a.addIDInfoIfNotExists(i,"itemComboBox")}))}render(){return t("section",{class:"list-container"},t("div",{class:"list-wrapper",ref:i=>this._listWrapper=i},t("ul",{class:"list-options",ref:i=>this._optionsList=i},!this.showLoading&&0===this.visibleOptions.length&&t("div",{class:"message"},t("span",{class:"message__no-result"},this.textEmptyList)),this.showLoading&&t("div",{class:"message"},t("div",{class:"message__loading"})),this.showOptionValue&&t("span",{class:"item__value item__value--hidden"}),!this.showLoading&&this.visibleOptions.length>0&&this.visibleOptions.map(((i,t)=>this.buildItem(i,t))))))}static get watchers(){return{width:["observeWidth"],maxWidth:["observeMaxWidth"]}}};b.style=":host{--ez-combo-box--border-radius:var(--border--radius-medium, 12px);--ez-combo-box--font-size:var(--text--medium, 14px);--ez-combo-box--font-family:var(--font-pattern, Arial);--ez-combo-box--font-weight--large:var(--text-weight--large, 500);--ez-combo-box--font-weight--medium:var(--text-weight--medium, 400);--ez-combo-box--background-color--xlight:var(--background--xlight, #fff);--ez-combo-box--background-medium:var(--background--medium, #f0f3f7);--ez-combo-box--line-height:calc(var(--text--medium, 14px) + 4px);--ez-combo-box__list-title--primary:var(--title--primary, #2B3A54);--ez-combo-box__list-text--primary:var(--text--primary, #626e82);--ez-combo-box__list-height:calc(var(--ez-combo-box--font-size) + var(--ez-combo-box--space--medium) + 4px);--ez-combo-box--space--medium:var(--space--medium, 12px);--ez-combo-box--space--small:var(--space--small, 6px);--ez-combo-box__scrollbar--color-default:var(--scrollbar--default, #626e82);--ez-combo-box__scrollbar--color-background:var(--scrollbar--background, #E5EAF0);--ez-combo-box__scrollbar--color-hover:var(--scrollbar--hover, #2B3A54);--ez-combo-box__scrollbar--color-clicked:var(--scrollbar--clicked, #a2abb9);--ez-combo-box__scrollbar--border-radius:var(--border--radius-small, 6px);--ez-combo-box__scrollbar--width:var(--space--medium, 12px);--ez-combo-box__list-container--padding:var(--space--extra-small, 3px)}.list-container{padding-top:var(--ez-combo-box__list-container--padding)}.list-wrapper{display:flex;flex-direction:column;box-sizing:border-box;width:0;z-index:var(--more-visible, 2);max-height:calc(4*var(--ez-combo-box__list-height) + 2*var(--ez-combo-box--space--small) + 9px);background-color:var(--ez-combo-box--background-color--xlight);border-radius:var(--ez-combo-box--border-radius);box-shadow:var(--shadow--medium, 0 8px 24px 0 rgba(43, 58, 84, 0.10));padding:var(--ez-combo-box--space--small)}.list-options{box-sizing:border-box;width:100%;height:100%;padding:0;display:flex;flex-direction:column;scroll-behavior:smooth;overflow:auto;scrollbar-width:thin;gap:3px;scrollbar-color:var(--ez-combo-box__scrollbar--color-clicked) var(--ez-combo-box__scrollbar--color-background)}.list-options::-webkit-scrollbar{background-color:var(--ez-combo-box__scrollbar--color-background);width:var(--ez-combo-box__scrollbar--width);max-width:var(--ez-combo-box__scrollbar--width);min-width:var(--ez-combo-box__scrollbar--width)}.list-options::-webkit-scrollbar-track{background-color:var(--ez-combo-box__scrollbar--color-background);border-radius:var(--ez-combo-box__scrollbar--border-radius)}.list-options::-webkit-scrollbar-thumb{background-color:var(--ez-combo-box__scrollbar--color-default);border-radius:var(--ez-combo-box__scrollbar--border-radius)}.list-options::-webkit-scrollbar-thumb:vertical:hover,.list-options::-webkit-scrollbar-thumb:horizontal:hover{background-color:var(--ez-combo-box__scrollbar--color-hover)}.list-options::-webkit-scrollbar-thumb:vertical:active,.list-options::-webkit-scrollbar-thumb:horizontal:active{background-color:var(--ez-combo-box__scrollbar--color-clicked)}.item{display:flex;align-items:center;width:100%;box-sizing:border-box;list-style-type:none;cursor:pointer;border-radius:var(--ez-combo-box--border-radius-small);padding:var(--ez-combo-box--space--small);min-height:var(--ez-combo-box__list-height);gap:var(--space--small, 6px)}.item__value,.item__label{flex-basis:auto;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--ez-combo-box__list-title--primary);font-family:var(--ez-combo-box--font-family);font-size:var(--ez-combo-box--font-size);line-height:var(--ez-combo-box--line-height)}.item__label{font-weight:var(--ez-combo-box--font-weight--medium)}.item__label--bold{font-weight:var(--ez-combo-box--font-weight--large)}.item__value{text-align:center;color:var(--ez-combo-box__list-text--primary);font-weight:var(--ez-combo-box--font-weight--large)}.item__value--hidden{visibility:hidden;position:absolute;white-space:nowrap;z-index:-1;top:0;left:0}.item__label{text-align:left}.message{text-align:center;display:flex;justify-content:center;align-items:center;list-style-type:none;min-height:var(--ez-combo-box__list-height)}.message__no-result{color:var(--ez-combo-box__list-title--primary);font-family:var(--ez-combo-box--font-family);font-size:var(--ez-combo-box--font-size)}.message__loading{border-radius:50%;width:14px;height:14px;-webkit-animation:spin 1s linear infinite;animation:spin 1s linear infinite;border:3px solid var(--ez-combo-box__list-title--primary);border-top:3px solid transparent}li:hover{background-color:var(--ez-combo-box--background-medium)}.preselected{background-color:var(--background--medium)}@-webkit-keyframes spin{0%{-webkit-transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg)}}@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}";const m=class{constructor(t){i(this,t),this.gui=void 0,this.customEditor=void 0,this.formViewField=void 0,this.value=void 0,this.detailContext=void 0,this.builderFallback=void 0,this.selectedRecord=void 0}async setFocus(){var i,t;null===(t=null===(i=this.gui)||void 0===i?void 0:i.setFocus)||void 0===t||t.call(i)}async setBlur(){var i,t;null===(t=null===(i=this.gui)||void 0===i?void 0:i.setBlur)||void 0===t||t.call(i)}async isInvalid(){var i,t;return(null===(t=null===(i=this.gui)||void 0===i?void 0:i.isInvalid)||void 0===t?void 0:t.call(i))||!1}watchValue(){this.handleValue(this.gui)}watchCustomEditor(){this.getContent()}watchFormViewField(i,t){l.equals(i,t)||this.getContent()}watchDetailContext(){this.getContent()}watchBuilderFallback(){this.getContent()}watchSelectedRecord(i,t){(null==i?void 0:i.__record__id__)!==(null==t?void 0:t.__record__id__)&&this.getContent()}getContent(){var i,e,s,r,a;const l=new Map;for(const i in this.formViewField.props)l.set(i,this.formViewField.props[i]);const d={value:this.value,name:this.formViewField.name,currentEditor:this.builderFallback(this.formViewField),setValue:i=>this.setValue(i),getValue:this.getValue,record:this.selectedRecord,editorMetadata:{label:this.formViewField.label,hidden:!1===(null===(i=this.formViewField.props)||void 0===i?void 0:i.visible),userInterface:this.formViewField.userInterface,options:null===(e=this.formViewField.props)||void 0===e?void 0:e.options,props:this.formViewField.props?l:void 0,optionLoader:this.formViewField.optionLoader},source:h.FORM,detailContext:this.detailContext};let b=this.customEditor.getEditorElement(d);if(!b)return b=this.builderFallback(this.formViewField),this.handleValue(b),void(this.gui=b);if(!(b instanceof o)&&"string"!=typeof b)return this.handleValue(b),void(this.gui=b);"string"==typeof b&&(b=n.parseElement(b));const m=null!==(a=null!==(r=null===(s=this.value)||void 0===s?void 0:s.value)&&void 0!==r?r:this.value)&&void 0!==a?a:"";b.setAttribute("value",m),this.gui=t("div",{key:c.generateUUID(),ref:i=>i&&i.appendChild(b)})}setValue(i){this.value=i}getValue(){return this.value}handleValue(i){var t;null===(t=i.i)||void 0===t||t.forEach((i=>{i.t.value=this.value}))}componentWillLoad(){this.getContent()}render(){return t(e,null,this.gui)}static get watchers(){return{value:["watchValue"],customEditor:["watchCustomEditor"],formViewField:["watchFormViewField"],detailContext:["watchDetailContext"],builderFallback:["watchBuilderFallback"],selectedRecord:["watchSelectedRecord"]}}},v=class{constructor(t){i(this,t),this.saveEdition=s(this,"saveEdition",7),this.cancelEdition=s(this,"cancelEdition",7),this._newValue=void 0,this.value=void 0,this.styled=void 0}async applyFocusSelect(){this.calcSizeInput(this.value,!0)}calcSizeInput(i,t=!1){var o,e;const s=null===(e=null===(o=this._inputElement)||void 0===o?void 0:o.shadowRoot)||void 0===e?void 0:e.querySelector("input");if(null!=s){const o=this.getWidthValue(i);s.style.width=o+"px",t&&setTimeout((()=>s.select()),100)}}getWidthValue(i){if(null!=this._valueBasis){const t=this._valueBasis;if(null!=i){const o=2;return t.innerHTML=i,t.clientWidth>0?t.clientWidth+o:o}t.innerHTML=""}return 0}setStyledInput(){var i,t;let o="",e="",s="";null!=this.styled&&(o=this.styled.fontSize,e=this.styled.fontWeight,s=this.styled.fontFamily);const r=null===(t=null===(i=this._inputElement)||void 0===i?void 0:i.shadowRoot)||void 0===t?void 0:t.querySelector("input");null!=r&&(r.style.fontSize=o,r.style.fontWeight=e,r.style.fontFamily=s);const a=this._valueBasis;null!=a&&(a.style.fontSize=o,a.style.fontWeight=e,a.style.fontFamily=s)}handleSaveEdition(){this._newValue?this.saveEdition.emit({value:this.value,newValue:this._newValue}):d.alert("Aviso","Não é possível salvar um campo em branco.").then((()=>{this.setNewValue(this.value,!0)}))}handleCancelEdition(){this.cancelEdition.emit()}setNewValue(i,t=!1){this._newValue=i,this.calcSizeInput(this._newValue,t)}componentDidLoad(){this.applyFocusSelect(),this.setNewValue(this.value)}componentDidRender(){this.setStyledInput()}render(){return a.addIDInfoIfNotExists(this._element,"input"),t(e,null,t("span",{class:"text-edit__hidden-value",ref:i=>this._valueBasis=i}),t("ez-text-input",{"data-element-id":a.getInternalIDInfo("textInput"),onInput:()=>{this.calcSizeInput(this._newValue)},class:"text-edit__form-input",value:this._newValue,ref:i=>this._inputElement=i,mode:"slim",onEzChange:i=>this.setNewValue(null==i?void 0:i.detail),noBorder:!0}),t("ez-button",{class:"text-edit__icon-check",mode:"icon",iconName:"check",size:"small",onClick:()=>{this.handleSaveEdition()}}),t("ez-button",{class:"text-edit__icon-close",mode:"icon",iconName:"close",size:"small",onClick:()=>{this.handleCancelEdition()}}))}get _element(){return r(this)}};v.style=":host{display:flex;align-items:center;gap:5px}.text-edit__form-input{width:auto;--ez-text-input__input--padding:0px}.text-edit__hidden-value{visibility:hidden;position:absolute;white-space:nowrap;z-index:-1;top:0;left:0}";export{b as ez_combo_box_list,m as ez_custom_form_input,v as ez_text_edit}
Binary file
@@ -1 +0,0 @@
1
- import{r as t,c as o,h as i,g as e}from"./p-e4c7eb39.js";import{ElementIDUtils as n}from"@sankhyalabs/core";const r=class{constructor(i){t(this,i),this.buttonClick=o(this,"buttonClick",7),this.dropdownItemClick=o(this,"dropdownItemClick",7),this.dropdownSubActionClick=o(this,"dropdownSubActionClick",7),this.rightDefaultTitle="Mais opções",this.show=!1,this.enabled=!0,this.iconName=void 0,this.image=void 0,this.items=void 0,this.label=void 0,this.leftTitle=void 0,this.rightTitle="Mais opções",this.mode="default",this.size="medium"}async setBlur(){this.leftButton.blur(),this.rightButton.blur()}async setLeftButtonFocus(){this.leftButton.focus()}async setRightButtonFocus(){this.rightButton.focus()}clickListener(t){this.enabled||(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}getIconSize(t="medium"){var o;const i=null===(o=this.size)||void 0===o?void 0:o.toLowerCase();return["small","medium","large"].includes(i)?i:t}closeDropdown(){this.show=!1}toggleDropdown(){this.show=!this.show}handleButtonClick(){this.buttonClick.emit()}handleDropdownItemClick(t){this.dropdownItemClick.emit(t.detail),t.stopPropagation(),this.closeDropdown()}handleDropdownSubActionClick(t){this.dropdownSubActionClick.emit(t.detail),t.stopPropagation(),this.closeDropdown()}resolveOffsetParentRect(){var t,o;const i=null===(o=null===(t=this.dropdownParent)||void 0===t?void 0:t.offsetParent)||void 0===o?void 0:o.getBoundingClientRect(),e=window.scrollX||document.documentElement.scrollLeft,n=window.scrollY||document.documentElement.scrollTop;this.offsetParentRect={top:(null==i?void 0:i.top)+n,left:(null==i?void 0:i.left)+e,bottom:(null==i?void 0:i.bottom)+n,right:(null==i?void 0:i.right)+e,width:null==i?void 0:i.width,height:null==i?void 0:i.height}}positionDropdown(){var t,o,i,e,n,r;const{rightButton:l,dropdownParent:s}=this,d=l.getBoundingClientRect(),a=s.getBoundingClientRect(),b=window.innerHeight-(d.bottom+(null===(t=this.offsetParentRect)||void 0===t?void 0:t.top)),u=d.top+(null===(o=this.offsetParentRect)||void 0===o?void 0:o.top),p=window.innerWidth-(d.left+(null===(i=this.offsetParentRect)||void 0===i?void 0:i.left))<a.width&&d.left>a.width;let c=`${d.bottom-(null===(e=this.offsetParentRect)||void 0===e?void 0:e.top)+window.scrollY}px`,h=`${d.left-(null===(n=this.offsetParentRect)||void 0===n?void 0:n.left)+window.scrollX}px`,v="auto";b<a.height&&u>a.height&&(v=window.innerHeight-d.top-window.scrollY+"px",c="auto",s.style.maxHeight=`${u}px`),p&&(h=`${d.right-a.width-(null===(r=this.offsetParentRect)||void 0===r?void 0:r.left)+window.scrollX}px`),s.style.top=c,s.style.bottom=v,s.style.left=h}setEvents(){window.removeEventListener("scroll",this.positionDropdown.bind(this)),window.addEventListener("scroll",this.positionDropdown.bind(this))}componentWillLoad(){this.setEvents()}componentWillRender(){this.resolveOffsetParentRect()}componentDidLoad(){this._element&&n.addIDInfo(this._element),this.leftButton&&n.addIDInfo(this.leftButton,"left-button",{id:"embedded"}),this.rightButton&&n.addIDInfo(this.rightButton,"right-button",{id:"embedded"}),this.positionDropdown()}componentDidUpdate(){this.positionDropdown()}render(){const t=this.shouldShowIconOnLeftButton(),o=this.shouldShowLabelOnLeftButton(),e=this.getIconSize();return i("div",{class:"label-icon"},i("button",{class:`ez-split-button__left-button ${e} ${this.mode}`,title:this.leftTitle||this.label,type:"button",disabled:!this.enabled,onClick:()=>{this.handleButtonClick()},ref:t=>this.leftButton=t},t&&i("ez-icon",{href:this.image,iconName:this.iconName,size:e}),o&&i("label",{title:this.leftTitle||this.label},this.label)),i("div",{class:"dropdown"},i("button",{class:`ez-split-button__right-button ${e} ez-split-button__right-button--${e} ez-split-button__right-button--divider`,title:this.rightTitle||this.rightDefaultTitle,type:"button",disabled:!this.enabled,onClick:()=>{this.toggleDropdown()},ref:t=>this.rightButton=t},i("ez-icon",{class:"ez-split-button__right-button-container "+(e?`btn-icon--${e}`:""),iconName:"chevron-down",size:e})),i("div",{class:`dropdown-content dropdown-content--${this.size}`,ref:t=>this.dropdownParent=t},this.show&&i("ez-dropdown",{items:this.items,onClick:t=>{t.stopPropagation()},onEzOutsideClick:()=>{this.closeDropdown()},onEzClick:t=>{this.handleDropdownItemClick(t)},onEzSubActionClick:t=>{this.handleDropdownSubActionClick(t)}}))))}shouldShowLabelOnLeftButton(){return["icon-left","default"].includes(this.mode)}shouldShowIconOnLeftButton(){return["icon-left","icon-only"].includes(this.mode)}get _element(){return e(this)}};r.style=":host{--ez-split-button--min-width:24;--ez-split-button--width:'auto';--ez-split-button__medium--height:32px;--ez-split-button__large--height:42px;--ez-split-button__medium-icon--width:40px;--ez-split-button__large-icon--width:44px;--ez-split-button__inline__icon--gap:6px;--ez-split-button__label--padding-top:0px;--ez-split-button__label--padding-bottom:0px;--ez-split-button__right-button--padding-left:8px;--ez-split-button--color:var(--title--primary, #2B3A54);--ez-split-button--font-size:var(--text--small, 12px);--ez-split-button--font-family:var(--font-pattern, Arial);--ez-split-button--font-weight:var(--text-weight--large);--ez-split-button--background-color:var(--background--light, #ffffff);--ez-split-button--border-radius:var(--border--radius-large, 24px);--ez-split-button--border:1px solid var(--color--strokes);--ez-split-button--justify-content:center;--ez-split-button--hover-color:var(--color--primary-600, #007a5a);--ez-split-button--hover--background-color:var(--background--light, #ffffff);--ez-split-button--disabled-color:var(--text--primary);--ez-split-button--disabled--background-color:var(--background--medium);--ez-split-button--focus--border:var(--border--medium, 2px) var(--color--primary-300);--ez-split-button--focus--box-shadow:none;--ez-split-button--active-color:var(--color--primary-700);--ez-split-button--active--background-color:var(--background--strong)}ez-icon{--ez-icon--color:inherit}button{position:relative;display:flex;align-items:center;margin:0;cursor:pointer;transition:background-color 0.2s linear;white-space:nowrap;min-width:var(--ez-split-button--min-width);width:var(--ez-split-button--width);height:var(--ez-split-button__medium--height);font-family:var(--ez-split-button--font-family);font-size:var(--ez-split-button--font-size);font-weight:var(--ez-split-button--font-weight);padding:var(--ez-split-button__label--padding-top) 0 var(--ez-split-button__label--padding-bottom) 0;border-top-left-radius:var(--ez-split-button--border-radius);border-bottom-left-radius:var(--ez-split-button--border-radius);background-color:var(--ez-split-button--background-color);color:var(--ez-split-button--color);fill:var(--ez-split-button--color);border:none;justify-content:var(--ez-split-button--justify-content)}label{cursor:pointer}button:active{outline:none;box-shadow:none;background-color:var(--ez-split-button--active--background-color);color:var(--ez-split-button--active-color);fill:var(--ez-split-button--active-color);--ez-icon--color:var(--ez-split-button--active-color)}.ez-split-button__left-button{border:var(--ez-split-button--border);border-right:none;outline:none}.ez-split-button__right-button{border:var(--ez-split-button--border);border-left:none;outline:none}.ez-split-button__left-button:focus{box-shadow:0 0 0 2px var(--color--primary-300), \n 0 2px 0 0 var(--color--primary-300), \n 0 -2px 0 0 var(--color--primary-300);}.ez-split-button__right-button:focus{box-shadow:2px 0 0 0 var(--color--primary-300), \n 0 2px 0 0 var(--color--primary-300), \n 0 -2px 0 0 var(--color--primary-300);}.ez-split-button__left-button:hover,.ez-split-button__right-button:hover{outline:none;background-color:var(--ez-split-button--hover--background-color);color:var(--ez-split-button--hover-color);fill:var(--ez-split-button--hover-color);--ez-icon--color:var(--ez-split-button--hover-color)}.ez-split-button__left-button:active,.ez-split-button__right-button:active{outline:none;box-shadow:none;background-color:var(--ez-split-button--active--background-color);color:var(--ez-split-button--active-color);fill:var(--ez-split-button--active-color);--ez-icon--color:var(--ez-split-button--active-color)}.ez-split-button__left-button:disabled,.ez-split-button__left-button:disabled label,.ez-split-button__right-button:disabled{background-color:var(--ez-split-button--disabled--background-color);color:var(--ez-split-button--disabled-color);fill:var(--ez-split-button--disabled-color);border:none;--ez-icon--color:var(--ez-split-button--disabled-color);cursor:not-allowed}.ez-split-button__left-button:disabled{border:var(--ez-split-button--disabled-border);border-right:none}.ez-split-button__right-button:disabled{border:var(--ez-split-button--disabled-border);border-left:none}button.large{height:var(--ez-split-button__large--height)}button.medium{height:var(--ez-split-button__medium--height)}.default label{padding:var(--ez-split-button__label--padding-top) 12px var(--ez-split-button__label--padding-bottom) 20px}.icon-left{gap:var(--ez-split-button__inline__icon--gap)}.icon-left label{padding-right:12px}.icon-left ez-icon{padding-left:20px}.icon-only{padding-left:12px;padding-right:12px}.ez-split-button__right-button{border-top-right-radius:var(--ez-split-button--border-radius);border-bottom-right-radius:var(--ez-split-button--border-radius);border-top-left-radius:0;border-bottom-left-radius:0;border-right:var(--ez-split-button--border)}.ez-split-button__right-button--medium{min-width:var(--ez-split-button__medium-icon--width)}.ez-split-button__right-button--large{min-width:var(--ez-split-button__large-icon--width)}.ez-split-button__right-button--divider{top:10%;bottom:10%}.ez-split-button__right-button--divider:before{content:\"\";position:absolute;left:0;border-left:1px solid rgba(0, 0, 0, 20%);border-radius:2px;height:75%}.btn-icon--medium{min-width:--ez-split-button__medium-icon--width}.btn-icon--large{min-width:--ez-split-button__large-icon--width}.ez-split-button__right-button-container{position:absolute;left:0;padding-left:var(--ez-split-button__right-button--padding-left)}.label-icon{display:flex;flex-direction:row;align-items:center;color:var(--ez-split-button--color)}.label-icon:active{color:var(--ez-split-button--active-color);fill:var(--ez-split-button--active-color);--ez-icon--color:var(--ez-split-button--active-color)}.dropdown{display:flex}.dropdown-content{display:block;position:absolute;background-color:#f1f1f1;min-width:160px;z-index:--ez-elevation--8;border-radius:var(--ez-split-button--border-radius)}.dropdown-content>ez-dropdown{position:relative}";export{r as ez_split_button}
Binary file
Binary file
@@ -1 +0,0 @@
1
- var D;!function(D){D[D.CASCADE=0]="CASCADE",D[D.SIDE_BY_SIDE=1]="SIDE_BY_SIDE"}(D||(D={}));export{D as F}
Binary file
@@ -1 +0,0 @@
1
- import{r as t,c as e,h as i,H as s,g as a}from"./p-e4c7eb39.js";import{DateUtils as n,ElementIDUtils as o}from"@sankhyalabs/core";import{C as r}from"./p-ec7db713.js";const h=class{constructor(i){t(this,i),this.ezChange=e(this,"ezChange",7),this.ezStartChange=e(this,"ezStartChange",7),this.ezCancelWaitingChange=e(this,"ezCancelWaitingChange",7),this._changePending=!1,this._focused=!1,this._valuePromiseCallbacks=[],this.label=void 0,this.value=void 0,this.enabled=!0,this.errorMessage=void 0,this.mode="regular",this.canShowError=!0,this.autoFocus=!1}observeLabel(){this._textInput&&(this._textInput.label=this.label)}observeErrorMessage(){var t;this._textInput&&(this._textInput.errorMessage=this.errorMessage,(null===(t=this.errorMessage)||void 0===t?void 0:t.trim())||this.setInputValue())}observeValue(t,e){if(this._textInput&&t!=e){const i=n.validateDate(t),s=n.validateDate(e);if((null==i?void 0:i.getTime())!==(null==s?void 0:s.getTime())){const t=this.getTextValue(i)||"";!n.strToDate(t)&&this._focused||(this._textInput.value||"")===t||(this._textInput.value=t,this._focused=!1,this.errorMessage=""),this.ezChange.emit(null===i?void 0:i)}}this._changePending=!1}async setFocus(t){this._textInput.setFocus(t)}async setBlur(){this._textInput.setBlur()}async isInvalid(){return"string"==typeof this.errorMessage&&""!==this.errorMessage.trim()}async getValueAsync(){return this._changePending?new Promise((t=>{this._valuePromiseCallbacks.push(t)})):Promise.resolve(this.value)}changeValue(t){const e=n.validateDate(this.value),i=n.validateDate(t);(null==e?void 0:e.getTime())!==(null==i?void 0:i.getTime())?this.value=i:this._changePending=!1}hideCalendar(){this.changeValue(this._calendar.value),this._popover.hide()}handleBlur(){if(this._changePending)try{const t=this._textInput.value,e=n.strToDate(t);if(e||!t){this.errorMessage="";const t=n.validateDate(this.value),i=n.validateDate(e);(null==t?void 0:t.getTime())===(null==i?void 0:i.getTime())?(i&&(this._textInput.value=this.getTextValue(i)||"",this._focused=!1),this.ezCancelWaitingChange.emit()):(this._focused=!1,this.changeValue(i))}else this.changeValue(void 0),this.ezCancelWaitingChange.emit(),this.errorMessage="O valor digitado não é uma data válida"}finally{for(const t of this._valuePromiseCallbacks)t(this.value);this._valuePromiseCallbacks=[]}}getTextValue(t){return t?n.formatDate(t):void 0}handleInput(t){const e=n.strToDate(this._textInput.value),i=n.validateDate(this.value),s=n.validateDate(e);(null==i?void 0:i.getTime())!==(null==s?void 0:s.getTime())&&(this._changePending=!0,this._focused=!0,this.ezStartChange.emit({waitmessage:"",blocking:!1})),"H"!==t.data&&"h"!==t.data||this.changeValue(new Date)}setInputValue(){const t=this.getTextValue(this.value)||"";(this._textInput.value||"")!==t&&(this._textInput.value=t)}disconnectedCallback(){this._popover.hide()}componentDidLoad(){r.applyVarsTextInput(this._elem,this._textInput),this.setInputValue(),this.autoFocus&&requestAnimationFrame((()=>{this.setFocus({selectText:!0})}))}render(){return o.addIDInfoIfNotExists(this._elem,"input"),i(s,null,i("ez-text-input",{"data-element-id":o.getInternalIDInfo("textInput"),ref:t=>this._textInput=t,"data-slave-mode":"true",label:this.label,onBlur:()=>this.handleBlur(),onInput:t=>this.handleInput(t),restrict:"0123456789/",enabled:this.enabled,errorMessage:this.errorMessage,mode:this.mode,canShowError:this.canShowError},i("button",{disabled:!this.enabled,tabindex:-1,class:"btn-open-cal",onClick:()=>{var t;return null===(t=this._popover)||void 0===t?void 0:t.showUnder(this._textInput)},slot:"leftIcon"})),i("ez-popover-plus",{ref:t=>this._popover=t,anchorElement:this._textInput,autoClose:!0,boxWidth:"fit-content",overlayType:"none"},i("ez-calendar",{ref:t=>this._calendar=t,"data-element-id":o.getInternalIDInfo("calendar"),onEzChange:t=>{this.hideCalendar(),t.stopPropagation()}})))}get _elem(){return a(this)}static get watchers(){return{label:["observeLabel"],errorMessage:["observeErrorMessage"],value:["observeValue"]}}};h.style=':host{display:block;width:100%;--ez-date-input__input--background-color:var(--background--medium, #e0e0e0);--ez-date-input__input--border-color:var(--ez-date-input__input--background-color);--ez-date-input__calendar-image:url(\'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" version="1.1" height="16px" width="15px"><path d="M 3.171875,5.25 C 2.6485088,5.25 2.21875,5.6797588 2.21875,6.203125 2.21875,6.7264912 2.6485088,7.15625 3.171875,7.15625 3.6952412,7.15625 4.125,6.7264912 4.125,6.203125 4.125,5.6797588 3.6952412,5.25 3.171875,5.25 Z m 2.875,0 C 5.5235088,5.25 5.09375,5.6797588 5.09375,6.203125 5.09375,6.7264912 5.5235088,7.15625 6.046875,7.15625 6.5702412,7.15625 7,6.7264912 7,6.203125 7,5.6797588 6.5702412,5.25 6.046875,5.25 Z m 2.875,0 c -0.5233662,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.4297588,0.953125 0.953125,0.953125 0.5233662,0 0.9511719,-0.4297588 0.9511719,-0.953125 C 9.8730469,5.6797588 9.4452412,5.25 8.921875,5.25 Z m 2.873047,0 c -0.523366,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.429759,0.953125 0.953125,0.953125 0.523366,0 0.953125,-0.4297588 0.953125,-0.953125 C 12.748047,5.6797588 12.318288,5.25 11.794922,5.25 Z M 3.171875,8.1230469 c -0.5233662,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.4297588,0.9531251 0.953125,0.9531251 0.5233662,0 0.953125,-0.4297589 0.953125,-0.9531251 0,-0.5233662 -0.4297588,-0.953125 -0.953125,-0.953125 z m 2.875,0 c -0.5233662,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.4297588,0.9531251 0.953125,0.9531251 C 6.5702412,10.029297 7,9.5995381 7,9.0761719 7,8.5528057 6.5702412,8.1230469 6.046875,8.1230469 Z m 2.8554688,0 c -0.5233663,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.4297587,0.9531251 0.953125,0.9531251 0.5233661,0 0.9531249,-0.4297589 0.953125,-0.9531251 0,-0.5233662 -0.4297588,-0.953125 -0.953125,-0.953125 z m 2.9003902,0 c -0.523366,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.429759,0.9531251 0.953125,0.9531251 0.523367,0 0.953125,-0.4297589 0.953125,-0.9531251 0,-0.5233662 -0.429758,-0.953125 -0.953125,-0.953125 z M 3.171875,10.998047 c -0.5233662,0 -0.953125,0.429759 -0.953125,0.953125 0,0.523366 0.4297588,0.953125 0.953125,0.953125 0.5233662,0 0.953125,-0.429759 0.953125,-0.953125 0,-0.523366 -0.4297588,-0.953125 -0.953125,-0.953125 z m 2.875,0 c -0.5233662,0 -0.953125,0.429759 -0.953125,0.953125 0,0.523366 0.4297588,0.953125 0.953125,0.953125 C 6.5702412,12.904297 7,12.474538 7,11.951172 7,11.427806 6.5702412,10.998047 6.046875,10.998047 Z m 2.8554688,0 c -0.5233663,0 -0.953125,0.429759 -0.953125,0.953125 0,0.523366 0.4297587,0.953125 0.953125,0.953125 0.5233661,0 0.9531249,-0.429759 0.953125,-0.953125 0,-0.523366 -0.4297588,-0.953125 -0.953125,-0.953125 z m 2.9003902,0 c -0.523366,0 -0.953125,0.429759 -0.953125,0.953125 0,0.523366 0.429759,0.953125 0.953125,0.953125 0.523367,0 0.953125,-0.429759 0.953125,-0.953125 0,-0.523366 -0.429758,-0.953125 -0.953125,-0.953125 z M 3.5,0 c -0.554,0 -1,0.446 -1,1 v 0.050781 C 1.0853217,1.2909766 0,2.5186658 0,4 v 9 c 0,1.652487 1.3475134,3 3,3 h 9 c 1.652487,0 3,-1.347513 3,-3 V 4 C 15,2.5186658 13.914678,1.2909766 12.5,1.0507812 V 1 c 0,-0.554 -0.446,-1 -1,-1 -0.554,0 -1,0.446 -1,1 h -2 c 0,-0.554 -0.446,-1 -1,-1 -0.554,0 -1,0.446 -1,1 h -2 C 4.5,0.446 4.054,0 3.5,0 Z m 1,2.0996094 h 2 v 0.640625 c 0,0.554 0.446,1 1,1 0.554,0 1,-0.446 1,-1 v -0.640625 h 2 v 0.640625 c 0,0.554 0.446,1 1,1 0.554,0 1,-0.446 1,-1 V 2.1738281 C 13.311725,2.3905225 13.900391,3.11278 13.900391,4 v 9 c 0,1.062113 -0.838278,1.900391 -1.900391,1.900391 H 3 C 1.9378864,14.900391 1.0996094,14.062113 1.0996094,13 V 4 C 1.0996094,3.11278 1.6882747,2.3905225 2.5,2.1738281 v 0.5664063 c 0,0.554 0.446,1 1,1 0.554,0 1,-0.446 1,-1 z"/></svg>\')}.btn-open-cal{outline:none;border:none;background-color:unset;cursor:pointer}.btn-open-cal:disabled{cursor:not-allowed}.btn-open-cal::after{content:\'\';display:flex;background-color:var(--text--primary, #008561);width:15px;height:16px;-webkit-mask-image:var(--ez-date-input__calendar-image);mask-image:var(--ez-date-input__calendar-image)}.btn-open-cal:disabled:after{background-color:var(--text--disable, #AFB6C0)}.btn-open-cal:enabled:hover::after{background-color:var(--color--primary, #4e4e4e)}ez-text-input{--text-input__input--background-color:var(--ez-date-input__input--background-color, #FFFFFF);--text-input__input--border-color:var(--ez-date-input__input--border-color, #DCE0E8)}';export{h as ez_date_input}
Binary file
@@ -1 +0,0 @@
1
- import{r as t,c as e,h as i,H as s}from"./p-e4c7eb39.js";import{ObjectUtils as o,ArrayUtils as r}from"@sankhyalabs/core";import{i as h}from"./p-80dfc50b.js";import{E as n}from"./p-98bb8b16.js";function l(t,e,i){if(!t.length)return[...e];if(!e.length)return[];const s=function(t,e){return t.map((t=>e.findIndex((e=>e.id===t))))}(t,e),o=0===(r=s).length?0:r.reduce(((t,e)=>e<t?e:t),r[0]);var r;const h=function(t){return 0===t.length?0:t.reduce(((t,e)=>e>t?e:t),t[0])}(s);return function(t,e,i,s){return t<0||e>=s.length||t>e?s:i?function(t,e,i){if(t===i.length-1)return i;const s=i.slice(0,e),o=i.slice(e,t+1),r=i.slice(t+1),h=r.shift();return h?[...s,h,...o,...r]:i}(e,t,s):function(t,e,i){if(0===t)return i;const s=i.slice(0,t-1),o=i.slice(t,e+1),r=i.slice(e+1);return[...s,...o,i[t-1],...r]}(t,e,s)}(o,h,i,e)}function a({from:t,to:e,selectedFrom:i,selectedTo:s}){return e=[...e.map((t=>c(t,!1))),...t.map((t=>c(t,!0)))],i=[],s=[...t.map((({id:t})=>t))],{from:t=[],to:e,selectedFrom:i,selectedTo:s}}function d({from:t,to:e,selectedFrom:i,selectedTo:s}){if(!t.length)return{from:t,to:e,selectedFrom:i,selectedTo:s};const o=function(t,e,i){const s=t.map((t=>t.id)),o=e.filter((t=>!s.includes(t)));return i.filter((({id:t})=>o.includes(t)))}(e,i,t);if(!o.length)return{from:t,to:e,selectedFrom:i,selectedTo:s};e=[...e.map((t=>c(t,!1))),...o.map((t=>c(t,!0)))];const r=i.map((t=>t));return t=[...t.filter((t=>!r.includes(t.id)))],s=[...i],{from:t,to:e,selectedFrom:i=[],selectedTo:s}}function c(t,e){return Object.assign(Object.assign({},t),{selected:e})}const u=class{constructor(i){t(this,i),this.ezLeftListChanged=e(this,"ezLeftListChanged",7),this.ezRightListChanged=e(this,"ezRightListChanged",7),this.LEFT_LIST_ID="LEFT-LIST-ID",this.RIGHT_LIST_ID="RIGHT-LIST-ID",this.LEFT_FILTER_ID="LEFT-FILTER-ID",this.RIGHT_FILTER_ID="RIGHT-FILTER-ID",this.leftList=[],this.leftTitle=void 0,this.rightList=[],this.entityLabel="item",this.entityLabelPlural="itens",this.leftListLabel="disponíveis",this.rightListLabel="selecionados",this.rightTitle=void 0,this.leftFilteredList=[],this.rightFilteredList=[],this.selectedLeftList=[],this.selectedRightList=[],this.isFilteringLeft=!1,this.isFilteringRight=!1}async resetSelectedLists(){this.selectedLeftList=[],this.selectedRightList=[]}observeLeftList(t,e){o.equals(t,e)||this.ezLeftListChanged.emit(t)}observeRightList(t,e){o.equals(t,e)||this.ezRightListChanged.emit(t)}handleFilterChangeLeft(t){this.leftFilteredList=r.applyStringFilter(t,this.leftList,!0,"label"),this.isFilteringLeft=this.leftFilteredList.length!==this.leftList.length}handleFilterChangeRight(t){this.rightFilteredList=r.applyStringFilter(t,this.rightList,!0,"label"),this.isFilteringRight=this.rightFilteredList.length!==this.rightList.length}async handleChangeLeft({detail:t}){this.leftList=[...t],this.selectedLeftList=[...t.filter((t=>t.selected))],await this.leftEzListInstance.clearHistory()}async handleChangeRight({detail:t}){this.rightList=[...t],this.selectedRightList=[...t.filter((t=>t.selected))],await this.rightEzListInstance.clearHistory()}enableTransferAllToRight(){return this.leftList.length>0}enableTransferAllToLeft(){return this.rightList.length>0}enableTransferToRight(){return this.selectedLeftList.length>0}enableTransferToLeft(){return this.selectedRightList.length>0}enableMoveUp(t){if(this.isFilteringRight)return!1;const e=this.getRightSelectedItemsIndex();return this.selectedRightList.length>0&&!e.includes(0)&&(!!t||h(e))}enableMoveDown(t){if(this.isFilteringRight)return!1;const e=this.getRightSelectedItemsIndex();return this.selectedRightList.length>0&&!e.includes(this.rightList.length-1)&&(!!t||h(e))}getRightSelectedItemsIndex(){return this.selectedRightList.map((t=>this.rightList.findIndex((e=>e.id===t))))}transferToRight(){const{from:t,to:e,selectedFrom:i,selectedTo:s}=d(this.buildTransferToRightConfig());this.leftList=[...t],this.rightList=[...e],this.selectedLeftList=[...i],this.selectedRightList=[...s]}transferToLeft(){const{from:t,to:e,selectedFrom:i,selectedTo:s}=d(this.buildTransferToLeftConfig());this.rightList=[...t],this.leftList=[...e],this.selectedRightList=[...i],this.selectedLeftList=[...s]}handleTransferAllToRight(){const{from:t,to:e,selectedFrom:i,selectedTo:s}=a(this.buildTransferToRightConfig());this.leftList=[...t],this.rightList=[...e],this.selectedLeftList=[...i],this.selectedRightList=[...s]}handleTransferAllToLeft(){const{from:t,to:e,selectedFrom:i,selectedTo:s}=a(this.buildTransferToLeftConfig());this.rightList=[...t],this.leftList=[...e],this.selectedRightList=[...i],this.selectedLeftList=[...s]}buildTransferToRightConfig(){return{from:this.leftList,to:this.rightList,selectedFrom:this.selectedLeftList,selectedTo:this.selectedRightList}}buildTransferToLeftConfig(){return{from:this.rightList,to:this.leftList,selectedFrom:this.selectedRightList,selectedTo:this.selectedLeftList}}handleMoveUp(){this.rightList=[...l(this.selectedRightList,this.rightList,!1)]}handleMoveDown(){this.rightList=[...l(this.selectedRightList,this.rightList,!0)]}handleMoveToTop(){const{itemsToKeep:t,itemsToMove:e}=this.getItemsToKeepAndToMove();this.rightList=[...e,...t]}handleMoveToBottom(){const{itemsToKeep:t,itemsToMove:e}=this.getItemsToKeepAndToMove();this.rightList=[...t,...e]}handleSelectLeftItem({detail:t}){this.selectedLeftList=[...t.map((({id:t})=>t))]}handleSelectRightItem({detail:t}){this.selectedRightList=[...t.map((({id:t})=>t))]}getItemsToKeepAndToMove(){return{itemsToKeep:this.rightList.filter((t=>!this.selectedRightList.includes(t.id))),itemsToMove:this.rightList.filter((t=>this.selectedRightList.includes(t.id)))}}handleTransferToRight(){this.transferToRight(),this.leftFilteredList=[],this.leftEzFilterInput.value=""}handleTransferToLeft(){this.transferToLeft(),this.rightFilteredList=[],this.rightEzFilterInput.value=""}buildTotalizer(t){return`Total de ${t.length} ${1===t.length?this.entityLabel:this.entityLabelPlural}`}renderLeftList(){return this.leftList.length?i("ez-scroller",{direction:n.VERTICAL,activeShadow:!0},i("ez-list",{ref:t=>this.leftEzListInstance=t,id:this.LEFT_LIST_ID,hoverFeedback:!0,dataSource:this.isFilteringLeft?this.leftFilteredList:this.leftList,ezDraggable:!this.isFilteringLeft,enableMultipleSelection:!0,onEzChange:this.handleChangeLeft.bind(this),ezSelectable:!0,onEzSelectMultipleItems:this.handleSelectLeftItem.bind(this),onEzDoubleClick:this.handleTransferToRight.bind(this)})):i("span",{class:"empty-message"},"Nenhum ",this.entityLabel," disponível")}renderRightList(){return this.rightList.length?i("ez-scroller",{direction:n.VERTICAL,activeShadow:!0},i("ez-list",{ref:t=>this.rightEzListInstance=t,id:this.RIGHT_LIST_ID,hoverFeedback:!0,dataSource:this.isFilteringRight?this.rightFilteredList:this.rightList,ezDraggable:!this.isFilteringRight,enableMultipleSelection:!0,onEzChange:this.handleChangeRight.bind(this),ezSelectable:!0,onEzSelectMultipleItems:this.handleSelectRightItem.bind(this),onEzDoubleClick:this.handleTransferToLeft.bind(this)})):i("span",{class:"empty-message"},"Nenhum ",this.entityLabel," selecionado")}render(){return i(s,null,i("div",{class:"group"},i("div",{class:"group__header"},i("span",{class:"group__label"},this.leftTitle),i("ez-filter-input",{ref:t=>this.leftEzFilterInput=t,id:this.LEFT_FILTER_ID,label:`Buscar ${this.entityLabel}`,mode:"slim",onEzChange:t=>this.handleFilterChangeLeft(t.detail)})),i("div",{class:"list__container"},this.renderLeftList()),i("div",{class:"group__totalizer"},this.buildTotalizer(this.leftList))),i("div",{class:"actions__column"},i("ez-button",{mode:"icon",iconName:"dual-chevron-right",enabled:this.enableTransferAllToRight(),title:`Mover todos para ${this.leftListLabel}`,size:"small",onClick:this.handleTransferAllToRight.bind(this)}),i("ez-button",{mode:"icon",iconName:"chevron-right",enabled:this.enableTransferToRight(),title:`Mover para ${this.leftListLabel}`,size:"small",onClick:this.handleTransferToRight.bind(this)}),i("ez-button",{mode:"icon",iconName:"chevron-left",enabled:this.enableTransferToLeft(),title:`Mover para ${this.rightListLabel}`,size:"small",onClick:this.handleTransferToLeft.bind(this)}),i("ez-button",{mode:"icon",iconName:"dual-chevron-left",enabled:this.enableTransferAllToLeft(),title:`Mover todos para ${this.rightListLabel}`,size:"small",onClick:this.handleTransferAllToLeft.bind(this)})),i("div",{class:"group"},i("div",{class:"group__header"},i("span",{class:"group__label"},this.rightTitle),i("ez-filter-input",{ref:t=>this.rightEzFilterInput=t,id:this.RIGHT_FILTER_ID,label:`Buscar ${this.entityLabel}`,mode:"slim",onEzChange:t=>this.handleFilterChangeRight(t.detail)})),i("div",{class:"list__container"},this.renderRightList()),i("div",{class:"group__totalizer"},this.buildTotalizer(this.rightList))),i("div",{class:"actions__column"},i("ez-button",{mode:"icon",iconName:"dual-chevron-up",enabled:this.enableMoveUp(!0),title:"Mover para primeira posição",size:"small",onClick:this.handleMoveToTop.bind(this)}),i("ez-button",{mode:"icon",iconName:"chevron-up",enabled:this.enableMoveUp(),title:"Mover para cima",size:"small",onClick:this.handleMoveUp.bind(this)}),i("ez-button",{mode:"icon",iconName:"chevron-down",enabled:this.enableMoveDown(),title:"Mover para baixo",size:"small",onClick:this.handleMoveDown.bind(this)}),i("ez-button",{mode:"icon",iconName:"dual-chevron-down",enabled:this.enableMoveDown(!0),title:"Mover para última posição",size:"small",onClick:this.handleMoveToBottom.bind(this)})))}static get watchers(){return{leftList:["observeLeftList"],rightList:["observeRightList"]}}};u.style='.sc-ez-double-list-h{display:flex;flex-direction:row;gap:8px;align-items:center;font-family:var(--font-pattern, "Roboto")}.group.sc-ez-double-list{display:flex;justify-content:space-between;gap:10px;flex-direction:column;border:var(--border--small) var(--color--strokes);border-radius:var(--border--radius-medium);width:350px;height:400px}.group__header.sc-ez-double-list{background:var(--background--body);padding:10px;border-radius:var(--border--radius-medium) var(--border--radius-medium) 0 0}.group__label.sc-ez-double-list{font-weight:var(--text-weight--large);font-size:var(--text--medium);color:var(--title--primary);margin-bottom:10px;display:block}.group__totalizer.sc-ez-double-list{padding:5px 10px;background:var(--background--body);font-weight:var(--text-weight--medium);font-size:var(--text--medium);color:var(--text--secondary);border-radius:0 0 var(--border--radius-medium) var(--border--radius-medium)}.empty-message.sc-ez-double-list{font-weight:var(--text-weight--medium);font-size:var(--text--medium);color:var(--text--secondary);text-align:center;margin:auto}.list__container.sc-ez-double-list{height:100%;min-height:150px;overflow:auto;display:flex}.actions__column.sc-ez-double-list{display:flex;flex-direction:column;gap:4px}';export{u as ez_double_list}
Binary file
Binary file
@@ -1 +0,0 @@
1
- import{r as t,c as i,h as e,f as n,H as r,g as s}from"./p-e4c7eb39.js";import{DateUtils as o,ApplicationContext as l,Action as a,StringUtils as h,DataUnit as u,ElementIDUtils as c}from"@sankhyalabs/core";import{b as d,D as f}from"./p-acddfb2e.js";import{F as v}from"./p-173f68ea.js";import"./p-2187f86c.js";import"./p-ab574d59.js";const p=/child\[([^\]]+)\]/,m=/\$\{.+\}/;class b{constructor(){this._sheets=new Map,this._requiredFields=[],this._cleanOnCopyFields=[],this._defaultValues={}}static getDetailName(t){const i=p.exec(t);return i?i[1]:void 0}getSheet(t){return this._sheets.get(t)}getAllSheets(){return this._sheets}addSheet(t){this._sheets.set(t.name,t)}addRequiredFields(t){this._requiredFields=this._requiredFields.concat(t)}getRequiredFields(){return this._requiredFields}addCleanOnCopyFields(t){this._cleanOnCopyFields=this._cleanOnCopyFields.concat(t)}getCleanOnCopyFields(){return this._cleanOnCopyFields}addDefaultValues(t){return this._defaultValues=Object.assign(Object.assign({},this._defaultValues),t)}getDefaultValues(){const t={};return Object.entries(this._defaultValues).forEach((([i,e])=>{if("string"==typeof e){const t=m.exec(e);t&&(e=this.getDefaultVar(t[0]))}t[i]=e})),t}getDefaultVar(t){return"${data}"===t?o.getToday():"${datahora}"===t?o.getToday(!0):this._defaultVars?this._defaultVars.get(t):void 0}setDefaultVars(t){this._defaultVars=t}}const y=(t,i)=>"__main"==t[0].label?-1:(t[0].order||1e4)-(i[0].order||1e4);function w(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var g="function"==typeof Symbol&&Symbol.observable||"@@observable",E=function(){return Math.random().toString(36).substring(7).split("").join(".")},O={INIT:"@@redux/INIT"+E(),REPLACE:"@@redux/REPLACE"+E(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+E()}};function _(t){if("object"!=typeof t||null===t)return!1;for(var i=t;null!==Object.getPrototypeOf(i);)i=Object.getPrototypeOf(i);return Object.getPrototypeOf(t)===i}function C(t,i,e){var n;if("function"==typeof i&&"function"==typeof e||"function"==typeof e&&"function"==typeof arguments[3])throw new Error(w(0));if("function"==typeof i&&void 0===e&&(e=i,i=void 0),void 0!==e){if("function"!=typeof e)throw new Error(w(1));return e(C)(t,i)}if("function"!=typeof t)throw new Error(w(2));var r=t,s=i,o=[],l=o,a=!1;function h(){l===o&&(l=o.slice())}function u(){if(a)throw new Error(w(3));return s}function c(t){if("function"!=typeof t)throw new Error(w(4));if(a)throw new Error(w(5));var i=!0;return h(),l.push(t),function(){if(i){if(a)throw new Error(w(6));i=!1,h();var e=l.indexOf(t);l.splice(e,1),o=null}}}function d(t){if(!_(t))throw new Error(w(7));if(void 0===t.type)throw new Error(w(8));if(a)throw new Error(w(9));try{a=!0,s=r(s,t)}finally{a=!1}for(var i=o=l,e=0;e<i.length;e++)(0,i[e])();return t}function f(t){if("function"!=typeof t)throw new Error(w(10));r=t,d({type:O.REPLACE})}function v(){var t,i=c;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(w(11));function e(){t.next&&t.next(u())}return e(),{unsubscribe:i(e)}}})[g]=function(){return this},t}return d({type:O.INIT}),(n={dispatch:d,subscribe:c,getState:u,replaceReducer:f})[g]=v,n}const j={};function A(t=j,i){switch(i.type){case N.METADATA_LOADED:return Object.assign(Object.assign({},t),{formMetadata:i.payload,currentSheet:void 0});case N.CHANGE_TAB:return Object.assign(Object.assign({},t),{currentSheet:i.payload});default:return t}}function F(t){return t.formMetadata}function z(t){const i=function(t){return t.currentSheet}(t);return i?t.formMetadata.getSheet(i):Array.from(t.formMetadata.getAllSheets().values())[0]}var N;!function(t){t.METADATA_LOADED="FORM/METADATA_LOADED",t.CHANGE_TAB="FORM/CHANGE_TAB"}(N||(N={}));const x=class{constructor(e){t(this,e),this.ezFormRequestClearFieldToFocus=i(this,"ezFormRequestClearFieldToFocus",7),this.ezFormSetFields=i(this,"ezFormSetFields",7),this.ezReady=i(this,"ezReady",7),this.formItemsReady=i(this,"formItemsReady",7),this._customEditors=new Map,this._application=l.getContextValue("__SNK__APPLICATION__"),this.onDataUnitAction=t=>{t.type===a.METADATA_LOADED&&this.processMetadata()},this._fieldsProps=new Map,this._singleColumn=!0,this.dataUnit=void 0,this.config=void 0,this.recordsValidator=void 0,this.fieldToFocus=void 0,this.onlyStaticFields=!1}validate(){return this._dataBinder.validate()}async addCustomEditor(t,i,e){if(this._formView)return void this._formView.addCustomEditor(t,i,e);const n=new Map(this._customEditors);n.set(t,{customEditor:i,detailContext:e}),this._customEditors=n}observeConfig(){this.processMetadata()}async setFieldProp(t,i,e){const n=new Map(this._fieldsProps),r=this._fieldsProps.get(t);n.set(t,Object.assign(Object.assign({},r),{[i]:e})),this._fieldsProps=n}getDynamicContent(){var t;const i=F(this._store.getState());if(!i)return null;const n=Array.from(i.getAllSheets().values()),r=z(null===(t=this._store)||void 0===t?void 0:t.getState());let s=[];if(n.length>1){const t=n.map(((t,i)=>({tabKey:t.name,label:t.label,index:i}))),i="selector";s.push(e("ez-tabselector",{tabs:this.buildIdTabSelector(t),onEzChange:t=>this._store.dispatch(function(t){return{type:N.CHANGE_TAB,payload:"string"==typeof t?t:t.tabKey}}(t.detail)),selectedTab:r.name,"data-element-id":i}))}return s=s.concat(this.buildFormContent(r)),s}buildFormContent(t){const i=null==t?void 0:t.fields;if(null==t)return;this.ezFormSetFields.emit(i);const n=`${h.replaceAccentuatedChars(h.toCamelCase(null==t?void 0:t.label),!1)}_selectorContainer`;return e("div",{class:"dynamic-content","data-element-id":n},e("ez-form-view",{ref:t=>this._formView=t,class:"ez-row ez-padding-vertical--small",fields:i,singleColumn:this._singleColumn,selectedRecord:this.dataUnit.getSelectedRecord()}))}processMetadata(){if(this.bindFields()&&this.dataUnit&&this._store){const t=((t,i,e=!1)=>{var n,r;null!=t&&!0!==(null==t?void 0:t.emptyConfig)||(t=(t=>{const i=t.metadata;let e;return i&&(e=i.fields.filter((t=>!1!==t.visible)).map((t=>({name:t.name,defaultValue:t.defaultValue})))),{emptyConfig:!1,fields:e}})(i));const s=new Map,o=new Map,l=[],a=[],h={};null===(n=null==t?void 0:t.tabs)||void 0===n||n.forEach((t=>{o.has(t.label)||!1!==t.visible||o.set(t.label,t)})),null===(r=null==t?void 0:t.fields)||void 0===r||r.forEach((t=>{var e,n,r;if(!1!==t.visible){const u=((t,i)=>("string"==typeof t?Array.from(i.keys()).find((i=>i.label===t)):t)||{label:t,visible:!0})(t.tab||"__main",s);if(o.has(u.label))return;const c=i.getField(t.name);if(c&&(null==(null==c?void 0:c.visible)||!0===(null==c?void 0:c.visible))&&u.visible){s.has(u)||s.set(u,[]);const i=d(c,t);s.get(u).push(i),i.required&&l.push(t.name),((null==t.cleanOnCopy?null===(e=c.properties)||void 0===e?void 0:e.cleanOnCopy:t.cleanOnCopy)||(null===(n=c.properties)||void 0===n?void 0:n.cleanOnCopy))&&a.push(t.name);let o=null==t.defaultValue?null===(r=c.properties)||void 0===r?void 0:r.defaultValue:t.defaultValue;if(o&&null!=o.value){const{type:i,value:e}=o;if(i)if("V"===i)o=e;else try{const t=JSON.parse(e);o=t&&"value"in t?t:e}catch(t){}h[t.name]=o}}}}));const u=new b;if(u.setDefaultVars(t.defaultVars),e){const t=i.metadata;null!=t&&null!=t.children&&t.children.forEach((t=>{const{label:i,name:e,fields:n}=(t=>({name:`child[${t.name}]`,label:t.label,fields:[]}))(t);s.set({name:e,label:i},n)}))}return Array.from(s.entries()).sort(y).forEach((([t,i])=>{u.addSheet({label:"__main"===t.label?"Principal":t.label,name:t.name||t.label,fields:i})})),u.addRequiredFields(l),u.addCleanOnCopyFields(a),u.addDefaultValues(h),u})(this.config,this.dataUnit);this._store.dispatch({type:N.METADATA_LOADED,payload:t})}}isStatic(){var t;return(null===(t=this._staticFields)||void 0===t?void 0:t.length)>0}bindFields(){return!this.isStatic()||!1===this.onlyStaticFields}async componentWillLoad(){var t;void 0===this.dataUnit&&(this.dataUnit=new u("ez-form")),this.dataUnit.unsubscribe(this.onDataUnitAction),this.dataUnit.subscribe(this.onDataUnitAction),this._dataBinder=new f(this.dataUnit),this._store=C(A),this._store.subscribe((()=>n(this))),this._staticFields=Array.from(this._element.querySelectorAll("[data-field-name]")),this.processMetadata(),c.addIDInfo(this._element,null,{dataUnit:this.dataUnit});const i=await(null===(t=this._application)||void 0===t?void 0:t.getLayoutFormConfig());this.setSingleColumn(i),this.registerNotifyListeners(i)}async setSingleColumn(t){this._singleColumn=!(null==t?void 0:t.config)||t.config===v.CASCADE}async registerNotifyListeners(t){t&&t.onConfigChange((t=>{this._singleColumn=t===v.CASCADE}))}componentDidRender(){const t=F(this._store.getState());t.addRequiredFields(this._staticFields.filter((t=>t.dataset.required)).map((t=>t.dataset.fieldName))),this._dataBinder.bind(Array.from(this._element.querySelectorAll("[data-field-name]")),this.dataUnit.dataUnitId,t,this.recordsValidator),this.ezReady.emit(),this.handleFieldToFocus(),this.setCustomEditors(),this.setFieldsProps()}setCustomEditors(){if(this._formView)for(const[t,i]of this._customEditors)this._formView.addCustomEditor(t,i.customEditor,i.detailContext),this._customEditors.delete(t)}handleFieldToFocus(){var t;if(null==this.fieldToFocus)return;const i=z(null===(t=this._store)||void 0===t?void 0:t.getState());(null==i?void 0:i.fields).some((t=>t.name===this.fieldToFocus))&&requestAnimationFrame((()=>{this._dataBinder.setFocus(this.fieldToFocus),this.ezFormRequestClearFieldToFocus.emit()}))}setFieldsProps(){if(this._formView)for(const[t,i]of this._fieldsProps){for(const e in i)this._formView.setFieldProp(t,e,i[e]);this._fieldsProps.delete(t)}}disconnectedCallback(){this.dataUnit.unsubscribe(this.onDataUnitAction),this._dataBinder.onDisconnectedCallback()}buildIdTabSelector(t){return t&&t.forEach((t=>t[c.DATA_ELEMENT_ID_ATTRIBUTE_NAME]=h.toCamelCase(t.label))),t}render(){return e(r,null,this.isStatic()?null:this.getDynamicContent())}get _element(){return s(this)}static get watchers(){return{config:["observeConfig"]}}};x.style=".sc-ez-form-h{display:flex;flex-direction:column;width:100%}.dynamic-content.sc-ez-form ez-collapsible-box.sc-ez-form{--ez-collapsible-box__header--padding-right:var(--space-small, 6px);--ez-collapsible-box__header--padding-left:var(--space-small, 6px)}";export{x as ez_form}
Binary file
@@ -1 +0,0 @@
1
- import{r as t,c as a,h as e,H as r,g as o}from"./p-e4c7eb39.js";import{ElementIDUtils as i}from"@sankhyalabs/core";const s=class{constructor(e){t(this,e),this.ezChange=a(this,"ezChange",7),this.LINE_HEIGHT=24,this.HEIGHT_RATIO=1.4,this.label=void 0,this.value=void 0,this.enabled=!0,this.errorMessage=void 0,this.rows=4,this.canShowError=!0,this.mode="regular",this.enableResize=!0,this.autoRows=!1,this.autoFocus=!1}observeErrorMessage(){var t,a,e,r;"string"==typeof this.errorMessage&&""!==this.errorMessage?(null===(t=this._container)||void 0===t||t.classList.add("hasError"),null===(a=this._messageBoxElem)||void 0===a||a.classList.add("hasError")):(null===(e=this._container)||void 0===e||e.classList.remove("hasError"),null===(r=this._messageBoxElem)||void 0===r||r.classList.remove("hasError"))}observeValue(t,a){this._inputElem&&t!=a&&(this.canChangeValue()&&(this._inputElem.value=this.value||""),this.adjustFloatingLabel(),this.errorMessage="",this.ezChange.emit(this.value))}observeMode(){null==this._initialRows&&(this._initialRows=this.rows>0?this.rows:void 0);const t=this._initialRows>0?this._initialRows:"slim"!=this.mode?4:2;t!==this.rows&&(this.rows=t)}observeRows(){const t=this.rows>0?this.rows:"slim"!=this.mode?4:2;t!==this.rows&&this.updateRows(t)}observeAutoRows(){var t,a;this.autoRows?(null===(t=this._resizeObserver)||void 0===t||t.disconnect(),this.initializeResizeObserver()):null===(a=this._resizeObserver)||void 0===a||a.disconnect()}async appendTextToSelection(t){var a,e,r,o;const i=this._inputElem.selectionStart,s=this._inputElem.selectionEnd,l=null!==(e=null===(a=this.value)||void 0===a?void 0:a.substring(0,i))&&void 0!==e?e:"",n=null!==(o=null===(r=this.value)||void 0===r?void 0:r.substring(s))&&void 0!==o?o:"";this.value=`${l}${t}${n}`;const h=i+t.length;this._inputElem.setSelectionRange(i===s?h:i,h),await this.setFocus()}async setFocus(){this._inputElem.focus()}async setBlur(){this._inputElem.blur()}async isInvalid(){return"string"==typeof this.errorMessage&&""!==this.errorMessage.trim()}canChangeValue(){return this._inputElem&&(this.value||"")!==this._inputElem.value}adjustFloatingLabel(){if(this.label&&this._labelElem){const t=this.value&&this.value.toString().length>0,a=this._labelElem.classList.contains("textarea__label--floated");t||this.isFocused()?a||this._labelElem.classList.add("textarea__label--floated"):a&&this._labelElem.classList.remove("textarea__label--floated")}}isFocused(){return null!==this._hostElement.shadowRoot.activeElement}updateRows(t){this.rows=t,this._initialRows=t}calculateMaxRows(){const t=this._hostElement.parentElement;if(!t)return;const a=Math.max((null==t?void 0:t.clientHeight)||0,this.LINE_HEIGHT);if(a>0){const t=Math.floor(a/this.LINE_HEIGHT*this.HEIGHT_RATIO);t!==this.rows&&this.updateRows(t)}}initializeResizeObserver(){if(!this.autoRows)return;const t=this._hostElement.parentElement;if(t){try{null!=this._resizeObserver&&this._resizeObserver.unobserve(t),this._resizeObserver=new ResizeObserver(this.calculateMaxRows.bind(this)),this._resizeObserver.observe(t)}catch(t){console.warn(t)}this.calculateMaxRows()}}handleFocusout(){this.adjustFloatingLabel(),this._container&&this._container.classList.contains("textarea--focus")&&this._container.classList.remove("textarea--focus")}handleChange(){this.canChangeValue()&&(this.value=this._inputElem.value)}handleFocus(){this.label&&this._labelElem&&!this._labelElem.classList.contains("textarea__label--floated")&&this._labelElem.classList.add("textarea__label--floated"),this._container&&!this._container.classList.contains("textarea--focus")&&this._container.classList.add("textarea--focus")}connectedCallback(){this.initializeResizeObserver()}disconnectedCallback(){var t;null===(t=this._resizeObserver)||void 0===t||t.disconnect()}componentDidLoad(){this.observeErrorMessage(),this.adjustFloatingLabel(),this.observeMode(),this.autoFocus&&requestAnimationFrame((()=>{this.setFocus()}))}render(){return i.addIDInfoIfNotExists(this._hostElement,"input"),e(r,null,e("div",{class:"textarea "+(this.enabled?"":"textarea--disabled"),ref:t=>this._container=t},this.label&&"slim"!=this.mode?e("label",{ref:t=>this._labelElem=t,class:this.enabled?"textarea__label":"textarea__label textarea__label--disabled",onClick:()=>this._inputElem.focus(),title:this.label},this.label):null,e("textarea",{onFocus:()=>this.handleFocus(),"data-element-id":i.getInternalIDInfo("input"),ref:t=>this._inputElem=t,value:this.value,disabled:!this.enabled,class:{"textarea--slim":"slim"===this.mode,"textarea--resizable":this.enableResize},placeholder:"slim"===this.mode&&this.label?this.label:"",onInput:()=>{this.handleChange()},onFocusout:()=>{this.handleFocusout()},rows:this.rows})),this.canShowError&&"slim"!=this.mode&&e("span",{class:"message-box",ref:t=>this._messageBoxElem=t,title:this.errorMessage},this.errorMessage))}get _hostElement(){return o(this)}static get watchers(){return{errorMessage:["observeErrorMessage"],value:["observeValue"],mode:["observeMode"],rows:["observeRows"],autoRows:["observeAutoRows"]}}};s.style=":host{--text-area--width:100%;--text-area--border-radius:var(--border--radius-medium, 12px);--text-area--font-size:var(--text--medium, 14px);--text-area--font-family:var(--font-pattern, Arial);--text-area--font-weight:var(--text-weight--medium, 400);--text-area--color:var(--title--primary, #2B3A54);--text-area__input--background-color:var(--background--light, #FFFFFF);--text-area__input--border:var(--border--medium, 2px solid);--text-area__input--border-color:var(--color--strokes,#DCE0E8);--text-area__input--focus--border-color:var(--color--primary, #008561);--text-area__input--disabled--background-color:var(--background--medium, #F0F3F7);--text-area__input--disabled--color:var(--text--primary, #626E82);--text-area__input--disabled--border--color:var(--color--strokes,#DCE0E8);--text-area__input--error--border-color:var(--color-alert--error-800,#BD0025);--text-area__message_box--font-size:var(--text--small, 12px);--text-area__message_box--info--color:var(--color--success, #22085d);--text-area__message_box--error--color:var(--color-alert--error-800,#BD0025);--text-area__label--floating--top:6px;--text-area__label--padding-top:12px;--text-area__label--padding-left:14px;--text-area__label--padding-right:12px;--text-area__scrollbar--color-default:var(--scrollbar--default, #626e82);--text-area__scrollbar--color-background:var(--scrollbar--background, #E5EAF0);--text-area__scrollbar--color-hover:var(--scrollbar--hover, #2B3A54);--text-area__scrollbar--color-clicked:var(--scrollbar--clicked, #a2abb9);--text-area__scrollbar--border-radius:var(--border--radius-small, 6px);--text-area__scrollbar--width:var(--space--small, 6px);display:flex;flex-wrap:wrap;position:relative;width:var(--text-area--width)}textarea{box-sizing:border-box;border:none;resize:none;width:100%;padding:0;background:none;min-height:42px;font-weight:var(--text-area--font-weight);font-family:var(--text-area--font-family);font-size:var(--text-area--font-size);color:var(--text-area--color);margin-top:calc(var(--space--medium, 12px) + 4px);scrollbar-width:thin;scrollbar-color:var(--text-area__scrollbar--color-clicked) var(--text-area__scrollbar--color-background)}textarea:focus{outline:none}textarea:disabled{background-color:transparent;color:var(--text-area__input--disabled--color);border:var(--text-area__input--disabled--border);cursor:not-allowed}textarea::-webkit-scrollbar{background-color:var(--text-area__scrollbar--color-background);width:var(--text-area__scrollbar--width);max-width:var(--text-area__scrollbar--width);min-width:var(--text-area__scrollbar--width)}textarea::-webkit-scrollbar-thumb{background-color:var(--text-area__scrollbar--color-default);border-radius:var(--text-area__scrollbar--border-radius)}textarea::-webkit-scrollbar-track{background-color:var(--text-area__scrollbar--color-background);border-radius:var(--text-area__scrollbar--border-radius)}textarea::-webkit-scrollbar-thumb:vertical:hover,textarea::-webkit-scrollbar-thumb:horizontal:hover{background-color:var(--text-area__scrollbar--color-hover)}textarea::-webkit-scrollbar-thumb:vertical:active,textarea::-webkit-scrollbar-thumb:horizontal:active{background-color:var(--text-area__scrollbar--color-clicked)}.textarea{width:100%;min-height:42px;max-width:100%;box-sizing:border-box;padding-left:var(--space--medium);padding-right:var(--space--extra-small);border-radius:var(--text-area--border-radius);border:var(--text-area__input--border);border-color:var(--text-area__input--border-color);background-color:var(--text-area__input--background-color)}.textarea--disabled{border-radius:var(--text-area--border-radius);border:var(--text-area__input--border);border-color:var(--text-area__input--disabled--border--color);background-color:var(--text-area__input--disabled--background-color);cursor:not-allowed}.textarea--resizable{resize:vertical}.textarea--focus{border-color:var(--text-area__input--focus--border-color)}.textarea.hasError{color:var(--text-area--color);border-color:var(--text-area__input--error--border-color)}.message-box{min-height:16px;min-width:100%;margin-top:3px;line-height:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:var(--text-area--font-family);font-size:var(--text-area__message_box--font-size);color:var(--text-area__message_box--info--color)}.hasError{color:var(--text-area__message_box--error--color)}.textarea__label{box-sizing:border-box;position:absolute;z-index:var(--visible);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;-webkit-transition:font-size .05s, top .05s;transition:font-size .05s, top .05s;width:calc(100% - var(--text-area__label--padding-right));left:var(--text-area--space--medium);font-family:var(--text-area--font-family);font-size:var(--text-area--font-size);font-weight:var(--text-area--font-weight);color:var(--text-area--color);top:var(--text-area__label--padding-top);left:var(--text-area__label--padding-left);padding-right:var(--text-area__label--padding-right)}.textarea__label--floated{font-family:var(--text-area--font-family);font-size:var(--text--extra-small);color:var(--text--primary);top:var(--text-area__label--floating--top)}.textarea__label--disabled{color:var(--text-area__input--disabled--color);cursor:not-allowed}.textarea--slim{margin-top:var(--space--small, 6px)}.textarea--slim::-webkit-input-placeholder{font-family:var(--text-area--font-family);font-size:var(--text-area--font-size);font-weight:var(--text-area--font-weight);color:var(--text-area--color)}.textarea--slim:-moz-placeholder{font-family:var(--text-area--font-family);font-size:var(--text-area--font-size);font-weight:var(--text-area--font-weight);color:var(--text-area--color)}.textarea--slim::-moz-placeholder{font-family:var(--text-area--font-family);font-size:var(--text-area--font-size);font-weight:var(--text-area--font-weight);color:var(--text-area--color)}.textarea--slim:-ms-input-placeholder{font-family:var(--text-area--font-family);font-size:var(--text-area--font-size);font-weight:var(--text-area--font-weight);color:var(--text-area--color)}.textarea--slim::placeholder{font-family:var(--text-area--font-family);font-size:var(--text-area--font-size);font-weight:var(--text-area--font-weight);color:var(--text-area--color)}.textarea--slim:disabled::-webkit-input-placeholder,.textarea--slim:disabled:-moz-placeholder,.textarea--slim:disabled::-moz-placeholder,.textarea--slim:disabled:-ms-input-placeholder,.textarea--slim:disabled::placeholder{color:var(--text-area__input--disabled--color);cursor:not-allowed}";export{s as ez_text_area}
Binary file
@@ -1 +0,0 @@
1
- import{r as t,c as i,h as o,F as e,H as l,g as p}from"./p-e4c7eb39.js";import{KeyboardManager as d,FloatingManager as s}from"@sankhyalabs/core";const n=class{constructor(o){t(this,o),this.ezClosePopup=i(this,"ezClosePopup",7),this.ezPopupAction=i(this,"ezPopupAction",7),this._sizeClasses={"x-small":"col--sd-3 ez-popup__size-limit--x-small",small:"col--sd-5",medium:"col--sd-6",large:"col--sd-9","x-large":"col--sd-11",default:"ez-popup__size-limit--x-small",auto:""},this.size="medium",this.opened=!1,this.useHeader=!0,this.heightMode="full",this.ezTitle=void 0,this.enabledScroll=!1}observeConfig(){this.manageOverflow()}componentDidLoad(){this.opened&&this._popupRef&&this._popupRef.focus(),new d({propagate:!1,element:this._element}).bind("Enter",this.ezPopupAction.emit.bind("OK")).bind("Escape",(()=>this.closePopup())).bind("Esc",(()=>this.closePopup()))}closePopup(){this.opened=!1,this.manageOverflow(),this.ezClosePopup.emit()}manageOverflow(){window.document.body.style.overflow=this.opened?"hidden":""}manageOverlay(){this.opened?this._overlayId=s.subscribeOverlayControl(this._popupRef):s.unsubscribeOverlayControl(this._popupRef||this._overlayId)}popUpFocus(){this.opened&&requestAnimationFrame((()=>{const t=this._element.shadowRoot.querySelector("ez-modal-container");this._popupRef&&null===t&&this._popupRef.focus()}))}getGridSize(){return"auto"===this.size?"":this._sizeClasses[this.size]||this._sizeClasses.medium}handlePopupHeight(){return"auto"===this.heightMode?"popup__container--auto":""}handlePopupOverflowY(){return this.enabledScroll?"popup__overflow-y--auto":""}componentDidRender(){this.manageOverlay(),this.popUpFocus()}render(){return o(l,null,this.opened?o("div",{class:"overlay",ref:t=>this._popupRef=t,tabIndex:-1},o("div",{class:"popup col "+this.getGridSize()},o("div",{class:`popup__container ${this.handlePopupHeight()} ${this.handlePopupOverflowY()}`},o("div",{class:"popup__content"},o("div",{class:"popup__header "+(this.useHeader?"popup__header--padding":"")},this.useHeader&&o(e,null,!!this.ezTitle&&o("div",{class:"popup__title"},this.ezTitle),o("button",{class:this.ezTitle?"btn-close":"btn-close btn-close--solo",onClick:()=>{this.opened=!1,this.ezClosePopup.emit()}}))),o("div",{class:"popup__expandable-content"},o("slot",null)))))):void 0)}get _element(){return p(this)}static get watchers(){return{opened:["observeConfig"]}}};n.style=':host{display:flex;width:auto;--ez-popup-z-index:var(--elevation--24, 24);--ez-popup__container--color:var(--title--primary, #2b3a54);--ez-popup__container--padding:var(--space--md, 20px);--ez-popup__header--padding-bottom:var(--space--medium, 12px);--ez-popup__title--font-family:var(--font-pattern, "Roboto");--ez-popup__title--font-size:var(--title--large, 20px);--ez-popup__title--color:var(--title--primary, #2b3a54);--ez-popup__title--font-weight:var(--text-weight--large, 600);--ez-popup__btn__close--icon-color:var(--title--primary, #2b3a54);--ez-popup__btn__close--icon:url(\'data:image/svg+xml;utf8,<svg width="14" height="14" viewBox="0 0 14 14" xmlns="http://www.w3.org/2000/svg"><path d="M 8.2421753,6.9944578 13.743748,1.4930784 C 13.907781,1.3290628 14,1.1065946 14,0.87462511 14,0.64266712 13.907782,0.42019873 13.743748,0.25617155 13.579712,0.09215597 13.35727,6.48e-8 13.125266,6.48e-8 12.89338,6.48e-8 12.670821,0.09215634 12.506787,0.25617155 L 7.005215,5.7575508 1.5035972,0.25617155 C 1.3395631,0.09215597 1.1170968,6.48e-8 0.88511716,6.48e-8 0.65314917,6.48e-8 0.4306712,0.09215597 0.26663695,0.25617155 0.10260271,0.42019873 0.01045441,0.64266712 0.01045441,0.87462511 c 0,0.23196949 0.0921483,0.45443769 0.25618254,0.61845329 L 5.7682546,6.9944578 0.26663695,12.497027 c -0.0834745,0.08067 -0.15003245,0.1772 -0.19581514,0.283871 C 0.02505077,12.887561 9.831648e-4,13.002399 2.950369e-5,13.118395 -9.2415746e-4,13.234504 0.02125019,13.349689 0.06527245,13.457057 c 0.04401053,0.107479 0.10898307,0.205064 0.1911168,0.287137 0.0821454,0.08208 0.17979645,0.146888 0.28727561,0.190839 0.10747906,0.04395 0.22262954,0.06598 0.33872417,0.06493 0.116095,-10e-4 0.23082547,-0.0253 0.33747687,-0.07112 0.1066637,-0.04593 0.2031133,-0.112615 0.2837313,-0.196086 L 7.005215,8.2313646 12.506787,13.732768 c 0.164034,0.164027 0.386593,0.256125 0.618479,0.256125 0.232004,0 0.454446,-0.09209 0.618482,-0.256125 C 13.907781,13.568741 14,13.346308 14,13.114315 14,12.882323 13.90779,12.659888 13.743748,12.495861 Z"/></svg>\')}.overlay{position:fixed;display:flex;top:0px;z-index:var(--ez-popup-z-index, 24);left:0px;width:100%;align-items:center;justify-content:center;box-sizing:border-box;height:100vh;backdrop-filter:blur(4px);background:rgba(0, 4, 12, 0.4)}.popup{display:flex;height:100%;align-items:center;justify-content:center;box-sizing:border-box}.popup__container{width:100%;max-height:90%;height:100%;display:flex;flex-wrap:wrap;overflow:hidden;outline:none;background:#FFFF;color:var(--ez-popup__container--color);border-radius:12px;box-shadow:0px 0px 16px rgba(0, 38, 111, 0.122);box-sizing:border-box;padding:var(--ez-popup__container--padding)}.popup__container--auto{height:auto}.popup__overflow-y--auto{overflow-y:auto}.popup__content{box-sizing:border-box;height:100%;width:100%}.popup__expandable-content{box-sizing:border-box;width:100%;height:calc(100% - 44px)}.popup__header{width:100%;display:flex}.popup__header--padding{padding-bottom:var(--ez-popup__header--padding-bottom)}.popup__title{display:flex;margin:0;width:100%;font-family:var(--ez-popup__title--font-family);font-size:var(--ez-popup__title--font-size);font-weight:var(--ez-popup__title--font-weight);color:var(--ez-popup__title--color);line-height:1.3}.btn-close{justify-content:flex-end;align-self:flex-start;align-items:flex-start;display:flex;outline:none;border:none;background-color:unset;cursor:pointer}.btn-close::after{content:\'\';display:flex;background-color:var(--ez-popup__btn__close--icon-color);width:14px;height:14px;-webkit-mask-image:var(--ez-popup__btn__close--icon);mask-image:var(--ez-popup__btn__close--icon)}.btn-close--solo{width:100%}.row{width:100%;display:flex;flex-wrap:wrap}.col{display:flex;flex-wrap:wrap;align-self:flex-start;box-sizing:border-box}.col--stretch{align-self:stretch}.col--undefined{width:unset}.col--nowrap{flex-wrap:nowrap}.ez-popup__size-limit--x-small{min-width:350px;max-width:560px}@media screen and (min-width: 320px){.col--sd-1{width:8.33333%}.col--sd-2{width:16.66667%}.col--sd-3{width:25%}.col--sd-4{width:33.33333%}.col--sd-5{width:41.66667%}.col--sd-6{width:50%}.col--sd-7{width:58.33333%}.col--sd-8{width:66.66667%}.col--sd-9{width:75%}.col--sd-10{width:83.33333%}.col--sd-11{width:91.66667%}.col--sd-12{width:100%}}@media screen and (min-width: 480px){.col--pn-1{width:8.33333%}.col--pn-2{width:16.66667%}.col--pn-3{width:25%}.col--pn-4{width:33.33333%}.col--pn-5{width:41.66667%}.col--pn-6{width:50%}.col--pn-7{width:58.33333%}.col--pn-8{width:66.66667%}.col--pn-9{width:75%}.col--pn-10{width:83.33333%}.col--pn-11{width:91.66667%}.col--pn-12{width:100%}}@media screen and (min-width: 768px){.col--tb-1{width:8.33333%}.col--tb-2{width:16.66667%}.col--tb-3{width:25%}.col--tb-4{width:33.33333%}.col--tb-5{width:41.66667%}.col--tb-6{width:50%}.col--tb-7{width:58.33333%}.col--tb-8{width:66.66667%}.col--tb-9{width:75%}.col--tb-10{width:83.33333%}.col--tb-11{width:91.66667%}.col--tb-12{width:100%}}@media screen and (min-width: 992px){.col--md-1{width:8.33333%}.col--md-2{width:16.66667%}.col--md-3{width:25%}.col--md-4{width:33.33333%}.col--md-5{width:41.66667%}.col--md-6{width:50%}.col--md-7{width:58.33333%}.col--md-8{width:66.66667%}.col--md-9{width:75%}.col--md-10{width:83.33333%}.col--md-11{width:91.66667%}.col--md-12{width:100%}}@media screen and (min-width: 1200px){.col--ld-1{width:8.33333%}.col--ld-2{width:16.66667%}.col--ld-3{width:25%}.col--ld-4{width:33.33333%}.col--ld-5{width:41.66667%}.col--ld-6{width:50%}.col--ld-7{width:58.33333%}.col--ld-8{width:66.66667%}.col--ld-9{width:75%}.col--ld-10{width:83.33333%}.col--ld-11{width:91.66667%}.col--ld-12{width:100%}}';export{n as ez_popup}
Binary file
@@ -1 +0,0 @@
1
- import{r as e,c as l,h as a,g as r}from"./p-e4c7eb39.js";import{ElementIDUtils as i}from"@sankhyalabs/core";const o=class{constructor(a){e(this,a),this.valueChange=l(this,"valueChange",7),this.removeChip=l(this,"removeChip",7),this.actionClick=l(this,"actionClick",7),this.label=void 0,this.enabled=!0,this.removePosition=void 0,this.mode=void 0,this.value=!1,this.showNativeTooltip=!0}async setFocus(){this._containerElem.focus()}async setBlur(){this._containerElem.blur()}handleSlotChange(e){e.target.assignedElements()[0].style.setProperty("--ez-icon--color","var(--ez-icon--color)")}handleValueChange(){this.swichState(),this.valueChange.emit(this.value)}handleClick(e){const l=e.target;if(this.enabled)return"action"===this.mode?this.actionClick.emit():"ez-icon"!==l.tagName.toLowerCase()?this.handleValueChange():l.classList.contains("btn-close")?this.removeChip.emit():void 0}swichState(){this.enabled&&(this.value=!this.value)}formatLabel(){return this.label.length>t.CHAR_LIMIT?this.label.substring(0,t.CHAR_LIMIT)+"...":this.label}observeValue(){this.value&&"action"!==this.mode?this._containerElem.classList.add("label__container--active"):this._containerElem.classList.remove("label__container--active")}observeEnabled(){this.enabled?(this._containerElem.classList.remove("label__container--disabled"),this._labelElem.classList.remove("lbl--disabled"),this._labelElem.classList.remove("cursor-disable")):(this._containerElem.classList.add("label__container--disabled"),this._labelElem.classList.add("lbl--disabled"),this._labelElem.classList.add("cursor-disable"))}componentDidLoad(){this._element&&i.addIDInfo(this._element,"ezChip"),this._containerElem&&(this.observeValue(),this.observeEnabled(),this._containerElem.setAttribute(i.DATA_ELEMENT_ID_ATTRIBUTE_NAME,i.getInternalIDInfo("button")))}render(){const e=this.showNativeTooltip?this.label:void 0;return a("button",{onClick:e=>this.handleClick(e),class:"label__container"+("left"===this.removePosition?" label__container--row-reverse":""),ref:e=>this._containerElem=e},a("div",{class:"label__content"},a("slot",{name:"leftIcon",onSlotchange:e=>{this.handleSlotChange(e)}}),a("label",{class:"lbl "+(this.value?"lbl--active ":""),ref:e=>this._labelElem=e,title:e},this.formatLabel()),a("slot",{name:"rightIcon",onSlotchange:e=>{this.handleSlotChange(e)}})),"action"!==this.mode&&this.removePosition&&a("ez-icon",{class:"btn-close",size:"small","icon-name":"close"}))}get _element(){return r(this)}static get watchers(){return{value:["observeValue"],enabled:["observeEnabled"]}}};var t;!function(e){e[e.CHAR_LIMIT=28]="CHAR_LIMIT"}(t||(t={})),o.style=":host{--ez-label-chip--height:30px;--ez-label-chip__label--font-size:var(--text--medium, 14px);--ez-label-chip__label--font-family:var(--font-pattern, Arial);--ez-label-chip__label--font-weight:var(--text-weight--medium, 400);--ez-label-chip__label--space--medium:var(--space--medium, 12px);--ez-label-chip__label--title--primary:var(--title--primary, #2B3A54);--ez-label-chip__label--text--primary:var(--text--primary, #626e82);--ez-label-chip__label__container--border-radius:var(--border--radius-large, 24px);--ez-label-chip__label__container--border:1px solid;--ez-label-chip__label__container--border-color-strokes:var(--color--strokes, #DCE0E8);--ez-label-chip__label__container--color-primary:var(--color--primary, #008561);--ez-label-chip__label__container-color--disable-secondary:var(--color--disable-secondary, #F2F5F8);--ez-label-chip__label__container--background-color:var(--color--primary-300);--ez-label-chip__label__container--border-color:#0085610F;--ez-label-chip__label__container--default--border-color--active:var(--color--primary, #007a5a);--ez-label-chip__label__container--default--background-color--hover:var(--color--primary-300, #f2faf8);--ez-label-chip__label__container--default--color--hover:var(--color--primary, #f2faf8);--ez-label-chip__label__container--text--disabled:var(--text--disable, #AFB6C0);--ez-label-chip__label__container--default--border-color--active:var(--color--primary);--ez-label-chip__label__container--default--margin-top:var(--space-extra-small, 3px)}.lbl{display:flex;white-space:nowrap;align-items:center;cursor:pointer;user-select:none;color:var(--ez-label-chip__label--title--primary);height:var(--ez-label-chip--height);font-family:var(--ez-label-chip__label--font-family);font-size:var(--ez-label-chip__label--font-size);font-weight:var(--ez-label-chip__label--font-weight)}.lbl--active{color:var(--ez-label-chip__label__container--default--color--hover)}.lbl--disabled{color:var(--ez-label-chip__label__container--text--disabled)}.label__container{cursor:pointer;width:max-content;display:flex;flex-wrap:wrap;align-items:center;background-color:#FFFFFF;color:var(--ez-label-chip__label--text--primary);fill:var(--ez-label-chip__label--text--primary);--ez-icon--color:var(--ez-label-chip__label--text--primary);border:var(--ez-label-chip__label__container--border);border-radius:var(--ez-label-chip__label__container--border-radius);border-color:var(--ez-label-chip__label__container--border-color-strokes);padding-right:var(--ez-label-chip__label--space--medium);padding-left:var(--ez-label-chip__label--space--medium);outline-color:var(--ez-label-chip__label__container--default--border-color--active);margin-top:var(--ez-label-chip__label__container--default--margin-top)}.label__content{display:flex;align-items:center;flex-wrap:wrap;--ez-icon--color:var(--ez-label-chip__label--text--primary)}.label__container--disabled{cursor:default;border-color:var(--ez-label-chip__label__container-color--disable-secondary);background-color:var(--ez-label-chip__label__container-color--disable-secondary);fill:var(--ez-label-chip__label__container--text--disabled);color:var(--ez-label-chip__label__container--text--disabled);--ez-icon--color:var(--ez-label-chip__label__container--text--disabled)}.label__container--active{border-color:var(--ez-label-chip__label__container--default--background-color--hover);background-color:var(--ez-label-chip__label__container--default--background-color--hover);color:var(--ez-label-chip__label__container--default--color--hover);fill:var(--ez-label-chip__label__container--default--color--hover);--ez-icon--color:var(--ez-label-chip__label__container--default--color--hover)}.label__container:hover{border-color:var(--ez-label-chip__label__container--default--border-color--active)}.label__container:focus{outline:none;box-shadow:0 0 0 2px var(--ez-label-chip__label__container--default--border-color--active)}.label__container--disabled:hover{cursor:default;border:var(--ez-label-chip__label__container--border);border-color:var(--ez-label-chip__label__container-color--disable-secondary);background-color:var(--ez-label-chip__label__container-color--disable-secondary);fill:var(--ez-label-chip__label__container--text--disabled);color:var(--ez-label-chip__label__container--text--disabled);--ez-icon--color:var(--ez-label-chip__label__container--text--disabled)}.label__content__icon{display:flex;cursor:pointer;color:var(--ez-label-chip__label--text--primary);fill:var(--ez-label-chip__label--text--primary);--ez-icon--color:var(--ez-label-chip__label--text--primary)}.label__container--row-reverse{flex-direction:row-reverse}.label__container .btn-close{padding:0px 0px 0px 8px}.label__container--row-reverse .btn-close{padding:0px 8px 0px 0px}.cursor-disable{cursor:default}ez-icon{--ez-icon--color:inherit}";export{o as ez_chip}
Binary file
@@ -1 +0,0 @@
1
- import{r as t,c as i,h as s,H as o,g as e}from"./p-e4c7eb39.js";import{ObjectUtils as r,ElementIDUtils as h}from"@sankhyalabs/core";import"./p-2187f86c.js";import{C as n}from"./p-ec7db713.js";import"./p-ab574d59.js";import"./p-b853763b.js";import"./p-4607fb89.js";import"./p-173f68ea.js";const l=class{constructor(s){t(this,s),this.ezChange=i(this,"ezChange",7),this._changeDeboucingTimeout=null,this._deboucingTime=300,this._maxWidthValue=0,this._tabPressed=!1,this._textEmptyList="Nenhum resultado encontrado",this._lookupMode=!1,this.isOpen=!1,this._preSelection=void 0,this._visibleOptions=void 0,this._startLoading=!1,this._showLoading=!0,this._criteria=void 0,this._textInputReady=void 0,this.limitCharsToSearch=3,this.value=void 0,this.label=void 0,this.enabled=!0,this.options=void 0,this.errorMessage=void 0,this.showSelectedValue=!1,this.showOptionValue=!1,this.suppressSearch=!1,this.optionLoader=void 0,this.suppressEmptyOption=!1,this.stopPropagateEnterKeyEvent=!0,this.canShowError=!0,this.mode="regular",this.hideErrorOnFocusOut=!0,this.listOptionsPosition=void 0,this.isTextSearch=!1,this.autoFocus=!1}observeErrorMessage(){var t;this._textInput&&(this._textInput.errorMessage=this.errorMessage,(null===(t=this.errorMessage)||void 0===t?void 0:t.trim())||this.setInputValue())}observeValue(t,i){if(this._textInput&&t!=i)try{if("string"==typeof t)return void this.setInputValue();const s=this.getSelectedOption(t),o=this.getSelectedOption(i),e=this.getSelectedOption(this.value);this.isDifferentValues(e,s)&&(this.value=s),this.isDifferentValues(s,o)&&(this.setInputValue(),this._lookupMode||this.ezChange.emit(null===s?void 0:s)),this.resetOptions()}finally{this._lookupMode=!1}}observeOptions(t,i){r.equals(t,i)||this.loadOptions(a.PRELOAD)}async getValueAsync(){return new Promise(this._showLoading?t=>{let i=setInterval((()=>{this._showLoading||(clearInterval(i),t(this.value))}),100)}:t=>t(this.value))}async setFocus(t){this._textInput&&this._textInput.setFocus(t)}async setBlur(){this._textInput&&this._textInput.setBlur()}async isInvalid(){return"string"==typeof this.errorMessage&&""!==this.errorMessage.trim()}async clearValue(){this.clearSearch()}isDifferentValues(t,i){return r.objectToString(t||{})!==r.objectToString(i||{})}getFormattedText(t){if(null!=t)return this.showSelectedValue&&null!=t.value?t.label?`${t.value} - ${t.label}`:t.value:t.label}getText(){const t=this.getSelectedOption(this.value),i=this.getFormattedText(t);if(null!=i)return String(i).replace(/&amp;/g,"&").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&quot;/g,'"')}getSelectedOption(t){return"string"==typeof t||t instanceof String?this._visibleOptions.find((i=>i.value===t)):t}updateVisibleOptions(){let t=this._source||[];if(this._criteria){const i=this._criteria.toUpperCase();t=t.filter((t=>t.label.toLocaleUpperCase().indexOf(i)>-1))}this.hasToAddEmptyoption(t)&&(t=[{value:void 0,label:""}].concat(t)),this._visibleOptions=t,this._maxWidthValue=this.getMaxWidthValue()}hasToAddEmptyoption(t){return!this.suppressEmptyOption&&!t.filter((t=>!t.value)).length}getMaxWidthValue(){var t;if(this.showOptionValue){const i=[];return null===(t=this._visibleOptions)||void 0===t||t.forEach((t=>{const s=this.getWidthValue(t.value);i.includes(s)||i.push(s)})),i.length>1?Math.max(...i):0}return 0}getWidthValue(t){if(null!=this._itemValueBasis){const i=this._itemValueBasis;if(null!=t)return i.innerHTML=t,i.clientWidth>0?i.clientWidth+2:0;i.innerHTML=""}return 0}showOptions(){var t,i;if(!this.enabled)return;this.openPopover();const s=null!==(i=null===(t=this.value)||void 0===t?void 0:t.value)&&void 0!==i?i:this.value,o=this._visibleOptions.findIndex((t=>t.value===s));this._preSelection=-1===o?0:o,this._resizeObserver&&this._resizeObserver.observe(this._textInput),this.setFocus()}hideOptions(){var t;null===(t=this._popover)||void 0===t||t.hide(),this._resizeObserver&&this._resizeObserver.unobserve(this._textInput)}updateSource(t){this._startLoading=!1,t instanceof Promise?(this._showLoading=!0,t.then((t=>{this._showLoading=!1,this.updateSource(t)})).catch((()=>this._showLoading=!1)),this.updateVisibleOptions()):(this._showLoading=!1,Array.isArray(t)?(this._source=t,this.updateVisibleOptions(),this._tabPressed&&(this._tabPressed=!1)):this.selectOption(t))}selectOption(t,i=!0){var s,o,e;const r=this.getSelectedOption(this.value);(null===(s=null==r?void 0:r.value)||void 0===s?void 0:s.toString())!==(null===(o=null==t?void 0:t.value)||void 0===o?void 0:o.toString())||null==r&&null!=t&&"value"in t?(this.value=(null==t?void 0:t.value)?t:void 0,null===(e=this._popover)||void 0===e||e.hide()):this.resetOptions(),i&&setTimeout((()=>{this.setFocus()}),0)}loadOptions(t,i=""){this._criteria=i,this._startLoading=!0,this.updateSource(this.optionLoader?this.optionLoader({mode:t,argument:i}):this.options)}cancelPreselection(){!this._textInput.value&&this.value?this.selectOption(void 0):window.setTimeout((()=>{this.setInputValue(!1)}),this._deboucingTime)}setInputValue(t=!0){const i=this.getText();(this._textInput.value||"")!==i&&(this._textInput.value=i,t&&(this.errorMessage=null))}clearSearch(){this.value=null}resetOptions(){this.hideOptions(),this._criteria=void 0,this._preSelection=void 0,this.updateVisibleOptions()}componentDidRender(){this._textInput&&(this._textInputReady=!0)}componentWillLoad(){if(void 0===this.options){this.options=[];const t=this.el.querySelectorAll("option");t&&t.forEach((t=>{let i=t.innerText,s=t.getAttribute("value");s||(s=i),this.options.push({label:i,value:s}),t.hidden=!0}))}this.loadOptions(a.PRELOAD)}componentDidLoad(){n.applyVarsTextInput(this.el,this._textInput),this.setInputValue(!1),this._resizeObserver=new ResizeObserver((t=>{window.requestAnimationFrame((()=>{Array.isArray(t)&&t.length&&this._textInput&&this._comboBoxList&&(this._comboBoxList.width=this._textInput.clientWidth)}))})),this.autoFocus&&requestAnimationFrame((()=>{this.setFocus({selectText:!0})}))}disconnectedCallback(){var t;null===(t=this._popover)||void 0===t||t.remove(),this._resizeObserver&&this._resizeObserver.disconnect()}handlerIconClick(){this.showOptions()}onTextInputChangeHandler(t){var i;if(this.clearDeboucingTimeout(),this._startLoading)return void(this._changeDeboucingTimeout=window.setTimeout((()=>{this.onTextInputChangeHandler(t)}),this._deboucingTime));const s=null===(i=t.target.value)||void 0===i?void 0:i.trim();this._criteria||(this._textInput.value=t.data||s),this._criteria=s,s?(this.updateVisibleOptions(),this.showOptions()):(this._preSelection=void 0,this.updateVisibleOptions())}clearDeboucingTimeout(){this._changeDeboucingTimeout&&(window.clearTimeout(this._changeDeboucingTimeout),this._changeDeboucingTimeout=null)}onTextInputClickHandler(){this.showOptions()}keyDownHandler(t){var i,s,o,e,r,h;if(t.ctrlKey&&("f"===t.key||"F"===t.key))return this.loadOptions(a.ADVANCED),t.preventDefault(),void t.stopPropagation();switch(t.key){case"ArrowDown":t.preventDefault(),this.canShowListOptions()&&(this.showOptions(),null===(i=this._comboBoxList)||void 0===i||i.nextOption());break;case"ArrowUp":t.preventDefault(),this.canShowListOptions()&&(this.showOptions(),null===(s=this._comboBoxList)||void 0===s||s.previousOption());break;case"Enter":this.isOpen&&(t.preventDefault(),null===(o=this._comboBoxList)||void 0===o||o.selectCurrentOption());break;case"Escape":this.isOpen&&(t.preventDefault(),null===(e=this._popover)||void 0===e||e.hide());break;case"Tab":this._tabPressed=!0,this.isOpen&&(null===(r=this._comboBoxList)||void 0===r||r.selectCurrentOption(),null===(h=this._popover)||void 0===h||h.hide())}}onTextInputFocusOutHandler(){this.hideErrorOnFocusOut&&this.cancelPreselection()}canShowListOptions(){return!this._showLoading&&this._visibleOptions.length>0}openPopover(){var t;this.isOpen=!0,null===(t=this._popover)||void 0===t||t.show()}render(){var t;return h.addIDInfoIfNotExists(this.el,"input"),s(o,null,s("ez-text-input",{"data-element-id":h.getInternalIDInfo("textInput"),class:"text-input-slot-container "+(this.suppressSearch?"suppressed-search-input":""),ref:t=>this._textInput=t,"data-slave-mode":"true",enabled:this.enabled&&!this.suppressSearch,onInput:t=>this.onTextInputChangeHandler(t),onClick:()=>this.onTextInputClickHandler(),onFocusout:()=>this.onTextInputFocusOutHandler(),onKeyDown:t=>this.keyDownHandler(t),label:this.label,canShowError:this.canShowError,errorMessage:this.errorMessage,mode:this.mode},s("button",{class:"btn",slot:"rightIcon",disabled:!this.enabled,tabindex:-1,onClick:()=>this.handlerIconClick()},s("ez-icon",{iconName:"chevron-down"}))),s("ez-popover-plus",{ref:t=>this._popover=t,anchorElement:this._textInput,autoClose:!0,boxWidth:"fit-content",overlayType:"none",onEzVisibilityChange:t=>this.isOpen=t.detail},s("ez-combo-box-list",{ref:t=>this._comboBoxList=t,showLoading:this._showLoading,visibleOptions:this._visibleOptions,textEmptyList:this._textEmptyList,showOptionValue:this.showOptionValue,preSelection:this._preSelection,maxWidth:this._maxWidthValue,width:null===(t=this._textInput)||void 0===t?void 0:t.clientWidth,onOptionSelect:t=>this.selectOption(t),onOptionHover:t=>this._preSelection=t})))}get el(){return e(this)}static get watchers(){return{errorMessage:["observeErrorMessage"],value:["observeValue"],options:["observeOptions"]}}};var a;!function(t){t.ADVANCED="ADVANCED",t.PRELOAD="PRELOAD",t.PREDICTIVE="PREDICTIVE"}(a||(a={})),l.style=":host{--ez-combo-box--height:42px;--ez-combo-box--width:100%;--ez-combo-box--border-radius:var(--border--radius-medium, 12px);--ez-combo-box--font-size:var(--text--medium, 14px);--ez-combo-box--font-family:var(--font-pattern, Arial);--ez-combo-box--background-color--xlight:var(--background--xlight, #fff);--ez-combo-box__input--background-color:var(--background--medium, #e0e0e0);--ez-combo-box__input--border:var(--border--medium, 2px solid);--ez-combo-box__input--border-color:var(--ez-combo-box__input--background-color);--ez-combo-box__input--focus--border-color:var(--color--primary, #008561);--ez-combo-box__input--disabled--background-color:var(--color--disable-secondary, #F2F5F8);--ez-combo-box__input--disabled--color:var(--text--disable, #AFB6C0);--ez-combo-box__btn--color:var(--title--primary, #2B3A54);--ez-combo-box__btn-disabled--color:var(--text--disable, #AFB6C0);--ez-combo-box__btn-hover--color:var(--color--primary, #4e4e4e);width:var(--ez-combo-box--width)}ez-icon{--ez-icon--color:inherit;font-weight:var(--text-weight--large, 600)}.suppressed-search-input{--ez-text-input__input--border-color:var(--color--strokes, #dce0e8);--ez-text-input__input--disabled--background-color:var(--background--xlight, #fff);--ez-text-input__input--disabled--color:var(--title--primary, #2B3A54)}.btn{outline:none;border:none;background:none;cursor:pointer;padding:0px;color:var(--ez-combo-box__btn--color)}.btn:disabled{cursor:unset;color:var(--ez-combo-box__btn-disabled--color)}.btn:disabled:hover{cursor:not-allowed;color:var(--ez-combo-box__btn-disabled--color)}.btn:hover{color:var(--ez-combo-box__btn-hover--color)}.btn__close{visibility:hidden}ez-text-input:hover .btn__close,ez-text-input:focus .btn__close{visibility:visible}.text-input-slot-container{--ez-text-input__icon--width:32px;--ez-text-input__min-width:var(--ez-combo-box__min-width);--ez-text-input__max-width:var(--ez-combo-box__max-width)}@-webkit-keyframes spin{0%{-webkit-transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg)}}@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}";export{l as ez_combo_box}
Binary file
Binary file