@sankhyalabs/ezui 5.22.0-dev.5 → 5.22.0-dev.50

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 (302) hide show
  1. package/dist/cjs/DataBinder-3b083480.js +445 -0
  2. package/dist/cjs/FocusResolver-885f2173.js +35 -0
  3. package/dist/cjs/ez-actions-button.cjs.entry.js +1 -1
  4. package/dist/cjs/ez-alert-list.cjs.entry.js +1 -1
  5. package/dist/cjs/ez-alert.cjs.entry.js +1 -1
  6. package/dist/cjs/ez-application.cjs.entry.js +1 -1
  7. package/dist/cjs/ez-badge.cjs.entry.js +1 -1
  8. package/dist/cjs/ez-breadcrumb.cjs.entry.js +1 -1
  9. package/dist/cjs/ez-button.cjs.entry.js +12 -6
  10. package/dist/cjs/ez-calendar.cjs.entry.js +1 -1
  11. package/dist/cjs/ez-card-item_3.cjs.entry.js +22 -7
  12. package/dist/cjs/ez-chart.cjs.entry.js +2 -2
  13. package/dist/cjs/ez-check.cjs.entry.js +2 -2
  14. package/dist/cjs/ez-chip.cjs.entry.js +1 -1
  15. package/dist/cjs/ez-collapsible-box.cjs.entry.js +2 -2
  16. package/dist/cjs/ez-combo-box.cjs.entry.js +65 -12
  17. package/dist/cjs/ez-custom-form-input_2.cjs.entry.js +37 -7
  18. package/dist/cjs/ez-date-input.cjs.entry.js +13 -4
  19. package/dist/cjs/ez-date-time-input.cjs.entry.js +10 -4
  20. package/dist/cjs/ez-dialog.cjs.entry.js +11 -3
  21. package/dist/cjs/{ez-dropdown.cjs.entry.js → ez-dropdown_2.cjs.entry.js} +76 -9
  22. package/dist/cjs/ez-file-item.cjs.entry.js +1 -1
  23. package/dist/cjs/ez-form-view.cjs.entry.js +6 -5
  24. package/dist/cjs/ez-form.cjs.entry.js +6 -326
  25. package/dist/cjs/ez-grid.cjs.entry.js +14702 -70253
  26. package/dist/cjs/ez-guide-navigator.cjs.entry.js +1 -1
  27. package/dist/cjs/ez-icon.cjs.entry.js +2 -2
  28. package/dist/cjs/ez-list.cjs.entry.js +7 -8
  29. package/dist/cjs/ez-loading-bar.cjs.entry.js +1 -1
  30. package/dist/cjs/ez-modal-container.cjs.entry.js +3 -2
  31. package/dist/cjs/ez-modal.cjs.entry.js +20 -5
  32. package/dist/cjs/ez-multi-selection-list.cjs.entry.js +2 -2
  33. package/dist/cjs/ez-number-input.cjs.entry.js +14 -2
  34. package/dist/cjs/ez-popover.cjs.entry.js +1 -1
  35. package/dist/cjs/ez-popup.cjs.entry.js +22 -3
  36. package/dist/cjs/ez-radio-button.cjs.entry.js +1 -1
  37. package/dist/cjs/ez-scroller_2.cjs.entry.js +4 -4
  38. package/dist/cjs/ez-search.cjs.entry.js +108 -45
  39. package/dist/cjs/ez-sidebar-navigator.cjs.entry.js +2 -2
  40. package/dist/cjs/ez-split-button.cjs.entry.js +3 -3
  41. package/dist/cjs/ez-split-item.cjs.entry.js +2 -2
  42. package/dist/cjs/ez-split-panel.cjs.entry.js +1 -1
  43. package/dist/cjs/ez-tabselector.cjs.entry.js +1 -1
  44. package/dist/cjs/ez-text-area.cjs.entry.js +68 -6
  45. package/dist/cjs/ez-text-input.cjs.entry.js +52 -6
  46. package/dist/cjs/ez-time-input.cjs.entry.js +7 -1
  47. package/dist/cjs/ez-toast.cjs.entry.js +1 -1
  48. package/dist/cjs/ez-tree.cjs.entry.js +1 -1
  49. package/dist/cjs/ez-upload.cjs.entry.js +1 -1
  50. package/dist/cjs/ez-view-stack.cjs.entry.js +1 -1
  51. package/dist/cjs/ezui.cjs.js +2 -2
  52. package/dist/cjs/filter-column.cjs.entry.js +1 -1
  53. package/dist/cjs/{index-9e5554cb.js → index-a7b0c73d.js} +2 -9
  54. package/dist/cjs/loader.cjs.js +2 -2
  55. package/dist/collection/collection-manifest.json +1 -1
  56. package/dist/collection/components/ez-button/ez-button.css +23 -13
  57. package/dist/collection/components/ez-button/ez-button.js +12 -6
  58. package/dist/collection/components/ez-card-item/ez-card-item.css +60 -10
  59. package/dist/collection/components/ez-card-item/ez-card-item.js +30 -3
  60. package/dist/collection/components/ez-check/ez-check.css +1 -6
  61. package/dist/collection/components/ez-collapsible-box/ez-collapsible-box.css +2 -2
  62. package/dist/collection/components/ez-combo-box/ez-combo-box.css +1 -1
  63. package/dist/collection/components/ez-combo-box/ez-combo-box.js +109 -13
  64. package/dist/collection/components/ez-date-input/ez-date-input.css +1 -1
  65. package/dist/collection/components/ez-date-input/ez-date-input.js +38 -4
  66. package/dist/collection/components/ez-date-time-input/ez-date-time-input.css +1 -1
  67. package/dist/collection/components/ez-date-time-input/ez-date-time-input.js +35 -4
  68. package/dist/collection/components/ez-dialog/ez-dialog.css +3 -3
  69. package/dist/collection/components/ez-dialog/ez-dialog.js +9 -1
  70. package/dist/collection/components/ez-dropdown/ez-dropdown.js +33 -8
  71. package/dist/collection/components/ez-filter-input/ez-filter-input.js +35 -4
  72. package/dist/collection/components/ez-form/ez-form.js +1 -0
  73. package/dist/collection/components/ez-form-view/custom-input/ez-custom-form-input.js +49 -6
  74. package/dist/collection/components/ez-form-view/fieldbuilder/templates/SearchInput.tpl.js +3 -2
  75. package/dist/collection/components/ez-form-view/fieldbuilder/templates/TextInput.tpl.js +2 -2
  76. package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +254 -53
  77. package/dist/collection/components/ez-grid/controller/ag-grid/DataSource.js +107 -5
  78. package/dist/collection/components/ez-grid/controller/ag-grid/GridEditionManager.js +219 -42
  79. package/dist/collection/components/ez-grid/controller/ag-grid/components/EzGridCustomCellEditor.js +16 -0
  80. package/dist/collection/components/ez-grid/controller/ag-grid/editor/EzCellEditor.js +8 -0
  81. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/ComboBox.tpl.js +2 -0
  82. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/DateInput.tpl.js +1 -0
  83. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/NumberInput.tpl.js +1 -0
  84. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/Search.tpl.js +4 -1
  85. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/TextInput.tpl.js +4 -1
  86. package/dist/collection/components/ez-grid/controller/ag-grid/test/constants/GridEditionMock.js +2 -0
  87. package/dist/collection/components/ez-grid/ez-grid.css +17 -7
  88. package/dist/collection/components/ez-grid/ez-grid.js +181 -7
  89. package/dist/collection/components/ez-icon/ez-icon.css +153 -149
  90. package/dist/collection/components/ez-list/ez-list.css +2 -1
  91. package/dist/collection/components/ez-list/ez-list.js +6 -7
  92. package/dist/collection/components/ez-modal/ez-modal.css +5 -1
  93. package/dist/collection/components/ez-modal/ez-modal.js +38 -5
  94. package/dist/collection/components/ez-modal-container/ez-modal-container.js +20 -1
  95. package/dist/collection/components/ez-multi-selection-list/ez-multi-selection-list.js +1 -1
  96. package/dist/collection/components/ez-number-input/ez-number-input.js +49 -1
  97. package/dist/collection/components/ez-popup/ez-popup.css +7 -3
  98. package/dist/collection/components/ez-popup/ez-popup.js +38 -1
  99. package/dist/collection/components/ez-scroller/ez-scroller.css +1 -0
  100. package/dist/collection/components/ez-search/ez-search.css +21 -10
  101. package/dist/collection/components/ez-search/ez-search.js +173 -48
  102. package/dist/collection/components/ez-sidebar-button/ez-sidebar-button.css +3 -0
  103. package/dist/collection/components/ez-sidebar-button/ez-sidebar-button.js +1 -1
  104. package/dist/collection/components/ez-sidebar-navigator/ez-sidebar-navigator.css +3 -1
  105. package/dist/collection/components/ez-split-button/ez-split-button.css +50 -14
  106. package/dist/collection/components/ez-split-button/ez-split-button.js +3 -3
  107. package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.css +1 -0
  108. package/dist/collection/components/ez-text-area/ez-text-area.css +73 -28
  109. package/dist/collection/components/ez-text-area/ez-text-area.js +103 -3
  110. package/dist/collection/components/ez-text-input/ez-text-input.css +41 -71
  111. package/dist/collection/components/ez-text-input/ez-text-input.js +86 -4
  112. package/dist/collection/components/ez-time-input/ez-time-input.js +24 -0
  113. package/dist/collection/sw.js +46 -0
  114. package/dist/collection/utils/FocusResolver.js +31 -0
  115. package/dist/collection/utils/form/DataBinder.js +20 -5
  116. package/dist/collection/utils/form/FormMetadata.js +1 -1
  117. package/dist/collection/utils/interfaces/AbstractFieldMetadata.js +1 -1
  118. package/dist/collection/utils/validators/recordvalidator/IInvalidCells.js +1 -0
  119. package/dist/collection/utils/validators/recordvalidator/RecordValidationProcessor.js +7 -1
  120. package/dist/custom-elements/index.js +15589 -70732
  121. package/dist/esm/DataBinder-02fa9bb9.js +441 -0
  122. package/dist/esm/FocusResolver-1ccbf850.js +33 -0
  123. package/dist/esm/ez-actions-button.entry.js +1 -1
  124. package/dist/esm/ez-alert-list.entry.js +1 -1
  125. package/dist/esm/ez-alert.entry.js +1 -1
  126. package/dist/esm/ez-application.entry.js +1 -1
  127. package/dist/esm/ez-badge.entry.js +1 -1
  128. package/dist/esm/ez-breadcrumb.entry.js +1 -1
  129. package/dist/esm/ez-button.entry.js +12 -6
  130. package/dist/esm/ez-calendar.entry.js +1 -1
  131. package/dist/esm/ez-card-item_3.entry.js +22 -7
  132. package/dist/esm/ez-chart.entry.js +2 -2
  133. package/dist/esm/ez-check.entry.js +2 -2
  134. package/dist/esm/ez-chip.entry.js +1 -1
  135. package/dist/esm/ez-collapsible-box.entry.js +2 -2
  136. package/dist/esm/ez-combo-box.entry.js +66 -13
  137. package/dist/esm/ez-custom-form-input_2.entry.js +38 -8
  138. package/dist/esm/ez-date-input.entry.js +13 -4
  139. package/dist/esm/ez-date-time-input.entry.js +10 -4
  140. package/dist/esm/ez-dialog.entry.js +11 -3
  141. package/dist/esm/{ez-dropdown.entry.js → ez-dropdown_2.entry.js} +76 -10
  142. package/dist/esm/ez-file-item.entry.js +1 -1
  143. package/dist/esm/ez-form-view.entry.js +6 -5
  144. package/dist/esm/ez-form.entry.js +5 -325
  145. package/dist/esm/ez-grid.entry.js +14755 -70306
  146. package/dist/esm/ez-guide-navigator.entry.js +1 -1
  147. package/dist/esm/ez-icon.entry.js +2 -2
  148. package/dist/esm/ez-list.entry.js +7 -8
  149. package/dist/esm/ez-loading-bar.entry.js +1 -1
  150. package/dist/esm/ez-modal-container.entry.js +3 -2
  151. package/dist/esm/ez-modal.entry.js +20 -5
  152. package/dist/esm/ez-multi-selection-list.entry.js +2 -2
  153. package/dist/esm/ez-number-input.entry.js +14 -2
  154. package/dist/esm/ez-popover.entry.js +1 -1
  155. package/dist/esm/ez-popup.entry.js +22 -3
  156. package/dist/esm/ez-radio-button.entry.js +1 -1
  157. package/dist/esm/ez-scroller_2.entry.js +4 -4
  158. package/dist/esm/ez-search.entry.js +108 -45
  159. package/dist/esm/ez-sidebar-navigator.entry.js +2 -2
  160. package/dist/esm/ez-split-button.entry.js +3 -3
  161. package/dist/esm/ez-split-item.entry.js +2 -2
  162. package/dist/esm/ez-split-panel.entry.js +1 -1
  163. package/dist/esm/ez-tabselector.entry.js +1 -1
  164. package/dist/esm/ez-text-area.entry.js +68 -6
  165. package/dist/esm/ez-text-input.entry.js +52 -6
  166. package/dist/esm/ez-time-input.entry.js +7 -1
  167. package/dist/esm/ez-toast.entry.js +1 -1
  168. package/dist/esm/ez-tree.entry.js +1 -1
  169. package/dist/esm/ez-upload.entry.js +1 -1
  170. package/dist/esm/ez-view-stack.entry.js +1 -1
  171. package/dist/esm/ezui.js +3 -3
  172. package/dist/esm/filter-column.entry.js +1 -1
  173. package/dist/esm/{index-5a720e56.js → index-baa5e267.js} +3 -9
  174. package/dist/esm/loader.js +3 -3
  175. package/dist/ezui/ezui.esm.js +1 -1
  176. package/dist/ezui/{p-e6b38ade.entry.js → p-0306dff7.entry.js} +1 -1
  177. package/dist/ezui/{p-91ccae0c.entry.js → p-09de35a2.entry.js} +1 -1
  178. package/dist/ezui/p-0a75bb05.entry.js +1 -0
  179. package/dist/ezui/p-0db68715.entry.js +1 -0
  180. package/dist/ezui/{p-11b09aa1.entry.js → p-1285c902.entry.js} +1 -1
  181. package/dist/ezui/p-15d7af92.entry.js +1 -0
  182. package/dist/ezui/{p-b2f6bc0a.entry.js → p-17be134a.entry.js} +1 -1
  183. package/dist/ezui/p-19098a3f.entry.js +1 -0
  184. package/dist/ezui/{p-81461d2f.entry.js → p-1e7a8633.entry.js} +1 -1
  185. package/dist/ezui/{p-6b51c9cc.entry.js → p-1f50fa05.entry.js} +1 -1
  186. package/dist/ezui/p-1f830a2f.entry.js +1 -0
  187. package/dist/ezui/{p-e4c7eb39.js → p-23a36bb6.js} +2 -2
  188. package/dist/ezui/p-2aa8e4b2.entry.js +1 -0
  189. package/dist/ezui/p-2bb2a0c4.entry.js +1 -0
  190. package/dist/ezui/p-3175fe8c.entry.js +1 -0
  191. package/dist/ezui/{p-0378416a.entry.js → p-44caad9a.entry.js} +1 -1
  192. package/dist/ezui/p-455e737c.js +1 -0
  193. package/dist/ezui/p-4575d511.entry.js +1 -0
  194. package/dist/ezui/{p-7567ccdd.entry.js → p-555c9018.entry.js} +1 -1
  195. package/dist/ezui/{p-6fc26622.entry.js → p-5ed81457.entry.js} +1 -1
  196. package/dist/ezui/{p-f1c2c19e.entry.js → p-650e4b6d.entry.js} +1 -1
  197. package/dist/ezui/p-6d79930d.entry.js +1 -0
  198. package/dist/ezui/{p-fc194825.entry.js → p-6e429cff.entry.js} +1 -1
  199. package/dist/ezui/p-7409eeaa.entry.js +1 -0
  200. package/dist/ezui/{p-11bfeca3.entry.js → p-77a4bd35.entry.js} +1 -1
  201. package/dist/ezui/p-7ed30844.entry.js +1 -0
  202. package/dist/ezui/p-7fdd479f.entry.js +1 -0
  203. package/dist/ezui/{p-1b08bf3c.entry.js → p-8888d9ed.entry.js} +1 -1
  204. package/dist/ezui/{p-82fa4b09.entry.js → p-8df1ca33.entry.js} +1 -1
  205. package/dist/ezui/{p-31674f8e.entry.js → p-90bcd2ba.entry.js} +1 -1
  206. package/dist/ezui/p-97af4b13.entry.js +1 -0
  207. package/dist/ezui/p-98dc7ce3.entry.js +309 -0
  208. package/dist/ezui/p-990b4318.entry.js +1 -0
  209. package/dist/ezui/{p-c2b20f78.entry.js → p-9f5fa3f9.entry.js} +1 -1
  210. package/dist/ezui/p-a5b91a77.entry.js +1 -0
  211. package/dist/ezui/{p-dfca5946.entry.js → p-a80b1287.entry.js} +1 -1
  212. package/dist/ezui/{p-30951bd7.entry.js → p-baf80b13.entry.js} +1 -1
  213. package/dist/ezui/p-bc2f844e.entry.js +1 -0
  214. package/dist/ezui/{p-868b56f7.entry.js → p-bcb53f27.entry.js} +1 -1
  215. package/dist/ezui/p-bfad39eb.entry.js +1 -0
  216. package/dist/ezui/{p-92748142.entry.js → p-c0d9c4f8.entry.js} +1 -1
  217. package/dist/ezui/p-c3045972.entry.js +1 -0
  218. package/dist/ezui/{p-82ac8b06.entry.js → p-c4320a39.entry.js} +1 -1
  219. package/dist/ezui/p-cd2e78f0.entry.js +1 -0
  220. package/dist/ezui/p-d0ca26fe.entry.js +1 -0
  221. package/dist/ezui/p-d24a7b4c.entry.js +1 -0
  222. package/dist/ezui/p-dc628ed3.js +1 -0
  223. package/dist/ezui/p-dc8b36c3.entry.js +1 -0
  224. package/dist/ezui/{p-9aa27e69.entry.js → p-e347df9c.entry.js} +1 -1
  225. package/dist/ezui/p-f9e551de.entry.js +1 -0
  226. package/dist/ezui/p-fec696ab.entry.js +1 -0
  227. package/dist/ezui/p-ffd246f5.entry.js +1 -0
  228. package/dist/types/components/ez-button/ez-button.d.ts +2 -1
  229. package/dist/types/components/ez-card-item/ez-card-item.d.ts +5 -0
  230. package/dist/types/components/ez-combo-box/ez-combo-box.d.ts +12 -1
  231. package/dist/types/components/ez-date-input/ez-date-input.d.ts +6 -1
  232. package/dist/types/components/ez-date-time-input/ez-date-time-input.d.ts +6 -1
  233. package/dist/types/components/ez-dialog/ez-dialog.d.ts +2 -0
  234. package/dist/types/components/ez-dropdown/ez-dropdown.d.ts +4 -0
  235. package/dist/types/components/ez-dropdown/structure/DropdownItem.d.ts +1 -1
  236. package/dist/types/components/ez-filter-input/ez-filter-input.d.ts +6 -1
  237. package/dist/types/components/ez-form-view/custom-input/ez-custom-form-input.d.ts +7 -1
  238. package/dist/types/components/ez-form-view/fieldbuilder/templates/SearchInput.tpl.d.ts +1 -1
  239. package/dist/types/components/ez-form-view/fieldbuilder/templates/TextInput.tpl.d.ts +1 -1
  240. package/dist/types/components/ez-grid/controller/EzGridController.d.ts +56 -4
  241. package/dist/types/components/ez-grid/controller/ag-grid/AgGridController.d.ts +32 -4
  242. package/dist/types/components/ez-grid/controller/ag-grid/DataSource.d.ts +23 -1
  243. package/dist/types/components/ez-grid/controller/ag-grid/GridEditionManager.d.ts +33 -7
  244. package/dist/types/components/ez-grid/controller/ag-grid/components/EzGridCustomCellEditor.d.ts +4 -1
  245. package/dist/types/components/ez-grid/controller/ag-grid/components/EzGridCustomCellRender.d.ts +1 -1
  246. package/dist/types/components/ez-grid/controller/ag-grid/components/EzGridCustomHeader.d.ts +1 -1
  247. package/dist/types/components/ez-grid/controller/ag-grid/components/cellRendererStatus.d.ts +1 -1
  248. package/dist/types/components/ez-grid/controller/ag-grid/components/selectionHeader.d.ts +1 -1
  249. package/dist/types/components/ez-grid/controller/ag-grid/editor/EzCellEditor.d.ts +2 -1
  250. package/dist/types/components/ez-grid/controller/ag-grid/editor/EzCellRender.d.ts +1 -1
  251. package/dist/types/components/ez-grid/controller/ag-grid/editor/IUICellEditor.d.ts +1 -0
  252. package/dist/types/components/ez-grid/controller/ag-grid/mock/Server.d.ts +1 -1
  253. package/dist/types/components/ez-grid/ez-grid.d.ts +27 -1
  254. package/dist/types/components/ez-modal/ez-modal.d.ts +7 -1
  255. package/dist/types/components/ez-modal-container/ez-modal-container.d.ts +4 -0
  256. package/dist/types/components/ez-number-input/ez-number-input.d.ts +8 -0
  257. package/dist/types/components/ez-popup/ez-popup.d.ts +7 -0
  258. package/dist/types/components/ez-search/ez-search.d.ts +25 -5
  259. package/dist/types/components/ez-split-button/ez-split-button.d.ts +1 -1
  260. package/dist/types/components/ez-text-area/ez-text-area.d.ts +17 -0
  261. package/dist/types/components/ez-text-input/ez-text-input.d.ts +9 -0
  262. package/dist/types/components/ez-time-input/ez-time-input.d.ts +4 -0
  263. package/dist/types/components.d.ts +213 -20
  264. package/dist/types/utils/FocusResolver.d.ts +5 -0
  265. package/dist/types/utils/customEditor/interfaces/ICustomEditor.d.ts +2 -0
  266. package/dist/types/utils/form/DataBinder.d.ts +3 -0
  267. package/dist/types/utils/validators/recordvalidator/IInvalidCells.d.ts +5 -0
  268. package/dist/types/utils/validators/recordvalidator/RecordValidationProcessor.d.ts +1 -1
  269. package/package.json +12 -4
  270. package/dist/cjs/RecordValidationProcessor-4c893e04.js +0 -102
  271. package/dist/cjs/ez-skeleton.cjs.entry.js +0 -67
  272. package/dist/esm/RecordValidationProcessor-b00b8b77.js +0 -99
  273. package/dist/esm/ez-skeleton.entry.js +0 -63
  274. package/dist/ezui/p-044d46d5.entry.js +0 -1
  275. package/dist/ezui/p-04f24913.js +0 -1
  276. package/dist/ezui/p-24ca32a3.entry.js +0 -1
  277. package/dist/ezui/p-2af4e2de.entry.js +0 -1
  278. package/dist/ezui/p-33792b2b.entry.js +0 -1
  279. package/dist/ezui/p-33b08253.entry.js +0 -304
  280. package/dist/ezui/p-36180f4d.entry.js +0 -1
  281. package/dist/ezui/p-3f8c33e0.entry.js +0 -1
  282. package/dist/ezui/p-5fefcdc9.entry.js +0 -1
  283. package/dist/ezui/p-6ec40dec.entry.js +0 -1
  284. package/dist/ezui/p-752c4069.entry.js +0 -1
  285. package/dist/ezui/p-81cffa53.entry.js +0 -1
  286. package/dist/ezui/p-81f99ace.entry.js +0 -1
  287. package/dist/ezui/p-8eef0f70.entry.js +0 -1
  288. package/dist/ezui/p-9634631d.entry.js +0 -1
  289. package/dist/ezui/p-9a11e223.entry.js +0 -1
  290. package/dist/ezui/p-9a23d513.entry.js +0 -1
  291. package/dist/ezui/p-9c2e2d68.entry.js +0 -1
  292. package/dist/ezui/p-a35b41e6.entry.js +0 -1
  293. package/dist/ezui/p-acbf0e76.entry.js +0 -1
  294. package/dist/ezui/p-b0e71d23.entry.js +0 -1
  295. package/dist/ezui/p-c3b7a23e.entry.js +0 -1
  296. package/dist/ezui/p-cd1a2e6b.entry.js +0 -1
  297. package/dist/ezui/p-dbeee5aa.entry.js +0 -1
  298. package/dist/ezui/p-de870657.entry.js +0 -1
  299. package/dist/ezui/p-e151e795.entry.js +0 -1
  300. package/dist/ezui/p-ee9315ff.entry.js +0 -1
  301. package/dist/ezui/p-f1c3f85d.entry.js +0 -1
  302. package/dist/ezui/p-f291db18.entry.js +0 -1
@@ -18,6 +18,7 @@ export class EzSearch {
18
18
  this._visibleOptions = undefined;
19
19
  this._startLoading = false;
20
20
  this._showLoading = true;
21
+ this._showLoadingDescription = false;
21
22
  this._criteria = undefined;
22
23
  this.value = undefined;
23
24
  this.label = undefined;
@@ -27,6 +28,7 @@ export class EzSearch {
27
28
  this.showSelectedValue = true;
28
29
  this.showOptionValue = true;
29
30
  this.suppressEmptyOption = false;
31
+ this.stopPropagateEnterKeyEvent = false;
30
32
  this.mode = "regular";
31
33
  this.canShowError = true;
32
34
  this.hideErrorOnFocusOut = true;
@@ -35,7 +37,9 @@ export class EzSearch {
35
37
  this.ignoreLimitCharsToSearch = false;
36
38
  this.options = undefined;
37
39
  this.suppressSearch = false;
38
- this.fromGrid = false;
40
+ this.ensureClearButtonVisible = false;
41
+ this.suppressPreLoad = true;
42
+ this.autoFocus = false;
39
43
  }
40
44
  observeErrorMessage() {
41
45
  var _a;
@@ -46,12 +50,25 @@ export class EzSearch {
46
50
  }
47
51
  }
48
52
  }
53
+ getValue(val) {
54
+ return typeof val === 'object' ? val === null || val === void 0 ? void 0 : val.value : val;
55
+ }
49
56
  validateNewValue(newValue, oldValue) {
50
- const getValue = (val) => typeof val === 'object' ? val === null || val === void 0 ? void 0 : val.value : val;
51
- return (getValue(newValue) !== getValue(oldValue));
57
+ const parsedNewValue = this.getValue(newValue);
58
+ const parsedOldValue = this.getValue(oldValue);
59
+ const newValueIsValid = parsedNewValue !== "[object Object]" && !!parsedNewValue;
60
+ const oldValueIsValid = parsedOldValue !== "[object Object]" && !!parsedOldValue;
61
+ const valuesIsDifferent = parsedNewValue !== parsedOldValue;
62
+ if (!oldValueIsValid && newValueIsValid) {
63
+ return true;
64
+ }
65
+ if (newValueIsValid && oldValueIsValid && valuesIsDifferent) {
66
+ return true;
67
+ }
68
+ return false;
52
69
  }
53
70
  async observeValue(newValue, oldValue) {
54
- if (this._textInput && newValue !== oldValue && this.validateNewValue(newValue, oldValue)) {
71
+ if (this._textInput && this.validateNewValue(newValue, oldValue)) {
55
72
  if (typeof newValue === "string") {
56
73
  await this.handleValueAsString(newValue);
57
74
  return;
@@ -68,7 +85,7 @@ export class EzSearch {
68
85
  }
69
86
  }
70
87
  observeOptions(newOptions, oldOptions) {
71
- if (!newOptions.length && this.fromGrid)
88
+ if (!newOptions.length && this.suppressPreLoad)
72
89
  return;
73
90
  if ((newOptions === null || newOptions === void 0 ? void 0 : newOptions.join('')) === (oldOptions === null || oldOptions === void 0 ? void 0 : oldOptions.join('')))
74
91
  return;
@@ -94,9 +111,9 @@ export class EzSearch {
94
111
  /**
95
112
  * Aplica o foco no campo.
96
113
  */
97
- async setFocus() {
114
+ async setFocus(options) {
98
115
  if (this._textInput) {
99
- this._textInput.setFocus();
116
+ this._textInput.setFocus(options);
100
117
  }
101
118
  }
102
119
  /**
@@ -139,6 +156,9 @@ export class EzSearch {
139
156
  return;
140
157
  }
141
158
  await this.loadDescriptionValue(value);
159
+ if (!this._currentValue) {
160
+ return;
161
+ }
142
162
  this.setInputValue();
143
163
  this.ezChange.emit(this.value);
144
164
  this._currentValue = this.value;
@@ -193,13 +213,16 @@ export class EzSearch {
193
213
  if (currentValue == undefined) {
194
214
  return;
195
215
  }
196
- let text = (!this.showSelectedValue || currentValue.value == undefined) ? currentValue.label : `${currentValue.value} - ${currentValue.label}`;
197
- text = text.replace(new RegExp(this._startHighlightTag, 'g'), '').replace(new RegExp(this._endHighlightTag, 'g'), '');
216
+ let text = (!this.showSelectedValue || currentValue.value == undefined) ? currentValue.label : currentValue.label ? `${currentValue.value} - ${currentValue.label}` : currentValue.value;
217
+ text = text === null || text === void 0 ? void 0 : text.replace(new RegExp(this._startHighlightTag, 'g'), '').replace(new RegExp(this._endHighlightTag, 'g'), '');
198
218
  return text;
199
219
  }
200
220
  getText() {
201
221
  const currentValue = this.getSelectedOption(this._currentValue);
202
222
  const text = this.getFormattedText(currentValue);
223
+ return this.replaceQuotes(text);
224
+ }
225
+ replaceQuotes(text) {
203
226
  if (text == undefined) {
204
227
  return;
205
228
  }
@@ -270,7 +293,7 @@ export class EzSearch {
270
293
  title: opt.label,
271
294
  details: opt.details
272
295
  };
273
- return h("div", { style: { "height": "100%" }, class: index === this._preSelection ? "item preselected" : "item", id: `item_${opt.value}`, onMouseDown: () => this.createOption(card), onMouseOver: () => this._preSelection = index }, h("ez-card-item", { item: card }));
296
+ return h("div", { style: { "height": "100%" }, class: index === this._preSelection ? "item preselected" : "item", id: `item_${opt.value}`, onMouseDown: () => this.createOption(card), onMouseOver: () => this._preSelection = index }, h("ez-card-item", { item: card, compacted: true, enableKey: this.showOptionValue }));
274
297
  }
275
298
  showOptions() {
276
299
  if (!this.enabled)
@@ -335,10 +358,13 @@ export class EzSearch {
335
358
  this._startLoading = false;
336
359
  if (source instanceof Promise) {
337
360
  this._showLoading = true;
361
+ this._showLoadingDescription = true;
338
362
  source.then(result => {
339
- this._showLoading = false;
340
363
  this.updateSource(result);
341
- }).catch(() => this._showLoading = false);
364
+ }).finally(() => {
365
+ this._showLoading = false;
366
+ this._showLoadingDescription = false;
367
+ });
342
368
  this.updateVisibleOptions();
343
369
  }
344
370
  else {
@@ -348,7 +374,7 @@ export class EzSearch {
348
374
  this.updateVisibleOptions();
349
375
  if (this._tabPressed) {
350
376
  this._tabPressed = false;
351
- this.controlEmptySearch();
377
+ this.controlEmptySearch(false);
352
378
  }
353
379
  }
354
380
  else {
@@ -363,15 +389,16 @@ export class EzSearch {
363
389
  replaceHighlight(value) {
364
390
  const startHighlight = new RegExp(this._startHighlightTag, 'g');
365
391
  const endHighlight = new RegExp(this._endHighlightTag, 'g');
366
- return (value !== null && value !== void 0 ? value : "").replace(startHighlight, '').replace(endHighlight, '');
392
+ return String(value !== null && value !== void 0 ? value : "").replace(startHighlight, '').replace(endHighlight, '');
367
393
  }
368
- selectOption(newOption) {
394
+ selectOption(newOption, focusOnInput = true) {
369
395
  var _a, _b;
370
396
  const currentValue = this.getSelectedOption(this.value);
371
397
  const newOptionsReplaced = Object.assign(Object.assign({}, newOption), { value: this.replaceHighlight(newOption === null || newOption === void 0 ? void 0 : newOption.value), label: this.replaceHighlight(newOption === null || newOption === void 0 ? void 0 : newOption.label) });
372
- if ((((_a = currentValue === null || currentValue === void 0 ? void 0 : currentValue.value) === null || _a === void 0 ? void 0 : _a.toString()) !== ((_b = newOptionsReplaced === null || newOptionsReplaced === void 0 ? void 0 : newOptionsReplaced.value) === null || _b === void 0 ? void 0 : _b.toString()))
373
- || (currentValue == undefined && newOptionsReplaced != undefined && "value" in newOptionsReplaced)) {
374
- const adjustedOpt = !(newOptionsReplaced === null || newOptionsReplaced === void 0 ? void 0 : newOptionsReplaced.value) ? undefined : newOptionsReplaced;
398
+ const newOptionsFormatted = Object.assign(Object.assign({}, newOptionsReplaced), { value: this.replaceQuotes(newOptionsReplaced === null || newOptionsReplaced === void 0 ? void 0 : newOptionsReplaced.value), label: this.replaceQuotes(newOptionsReplaced === null || newOptionsReplaced === void 0 ? void 0 : newOptionsReplaced.label) });
399
+ if ((((_a = currentValue === null || currentValue === void 0 ? void 0 : currentValue.value) === null || _a === void 0 ? void 0 : _a.toString()) !== ((_b = newOptionsFormatted === null || newOptionsFormatted === void 0 ? void 0 : newOptionsFormatted.value) === null || _b === void 0 ? void 0 : _b.toString()))
400
+ || (currentValue == undefined && newOptionsFormatted != undefined && "value" in newOptionsFormatted)) {
401
+ const adjustedOpt = !(newOptionsFormatted === null || newOptionsFormatted === void 0 ? void 0 : newOptionsFormatted.value) ? undefined : newOptionsFormatted;
375
402
  this.value = adjustedOpt;
376
403
  this._currentValue = adjustedOpt;
377
404
  }
@@ -381,6 +408,11 @@ export class EzSearch {
381
408
  }
382
409
  this._visibleOptions = [];
383
410
  this.clearSource();
411
+ if (focusOnInput) {
412
+ setTimeout(() => {
413
+ this.setFocus();
414
+ }, 0);
415
+ }
384
416
  }
385
417
  loadOptions(mode, argument = "") {
386
418
  this._criteria = argument;
@@ -417,7 +449,7 @@ export class EzSearch {
417
449
  this.value = null;
418
450
  this._currentValue = null;
419
451
  }
420
- controlListWithOnlyOne() {
452
+ controlListWithOnlyOne(focusOnInput = true) {
421
453
  var _a, _b;
422
454
  const source = (_a = this._visibleOptions) === null || _a === void 0 ? void 0 : _a.filter((opt) => opt.label !== "" && opt.value != undefined);
423
455
  if ((source === null || source === void 0 ? void 0 : source.length) > 0) {
@@ -428,32 +460,19 @@ export class EzSearch {
428
460
  value: (_b = source[0].value) === null || _b === void 0 ? void 0 : _b.replace(startHighlight, '').replace(endHighlight, ''),
429
461
  label: title === null || title === void 0 ? void 0 : title.replace(startHighlight, '').replace(endHighlight, '')
430
462
  };
431
- this.selectOption(option);
463
+ this.selectOption(option, focusOnInput);
432
464
  }
433
465
  }
434
- controlEmptySearch() {
466
+ controlEmptySearch(focusOnInput = true) {
435
467
  var _a;
436
468
  if (!((_a = this._visibleOptions) === null || _a === void 0 ? void 0 : _a.length)) {
437
469
  this.clearSearch();
438
470
  ApplicationUtils.info(this._textEmptyList);
439
471
  }
440
472
  else {
441
- this.controlListWithOnlyOne();
473
+ this.controlListWithOnlyOne(focusOnInput);
442
474
  }
443
475
  }
444
- validateDescriptionValue() {
445
- if (StringUtils.isEmpty(this.value)) {
446
- return;
447
- }
448
- if (!this.validateNewValue(this.value, this._currentValue)) {
449
- return;
450
- }
451
- let value = this.value;
452
- if (typeof value === "object") {
453
- return;
454
- }
455
- this.loadDescriptionValue(value);
456
- }
457
476
  async loadDescriptionValue(argument) {
458
477
  var _a, _b;
459
478
  if (argument == undefined) {
@@ -488,6 +507,15 @@ export class EzSearch {
488
507
  }
489
508
  this._currentValue = value ? Object.assign(Object.assign({}, value), { value: this.replaceHighlight(value.value), label: this.replaceHighlight(value.label) }) : value;
490
509
  this.value = this._currentValue;
510
+ this.setTextInputValue();
511
+ }
512
+ setTextInputValue() {
513
+ if (this._textInput && (this._textInput.value === null || this._textInput.value === undefined)) {
514
+ if (this.value === undefined || this.value === null)
515
+ return;
516
+ const textValue = (typeof this.value === 'string') ? this.value : this.getFormattedText(this.value);
517
+ this._textInput.value = this.replaceQuotes(textValue);
518
+ }
491
519
  }
492
520
  loadOptionValue(argument) {
493
521
  var _a;
@@ -513,6 +541,19 @@ export class EzSearch {
513
541
  this._preSelection = undefined;
514
542
  this.updateVisibleOptions();
515
543
  }
544
+ async handleInitialValue() {
545
+ const valueIsValid = !!this.getValue(this.value);
546
+ if (!valueIsValid) {
547
+ return;
548
+ }
549
+ if (typeof this.value === "string") {
550
+ await this.handleValueAsString(this.value);
551
+ return;
552
+ }
553
+ let text = this.getFormattedText(this.value);
554
+ text = this.replaceQuotes(text);
555
+ this._textInput.value = text;
556
+ }
516
557
  //---------------------------------------------
517
558
  // Lifecycle web component
518
559
  //---------------------------------------------
@@ -543,12 +584,10 @@ export class EzSearch {
543
584
  (_a = this._optionsList) === null || _a === void 0 ? void 0 : _a.querySelectorAll(".item").forEach((elem) => {
544
585
  ElementIDUtils.addIDInfoIfNotExists(elem, "itemSearch");
545
586
  });
546
- this.validateDescriptionValue();
547
587
  }
548
- componentDidLoad() {
588
+ async componentDidLoad() {
549
589
  this._currentValue = this.value;
550
590
  CSSVarsUtils.applyVarsTextInput(this.el, this._textInput);
551
- this.setInputValue(false);
552
591
  this._resizeObserver = new ResizeObserver((entries) => {
553
592
  window.requestAnimationFrame(() => {
554
593
  if (!Array.isArray(entries) || !entries.length)
@@ -559,6 +598,16 @@ export class EzSearch {
559
598
  }
560
599
  });
561
600
  });
601
+ await this.handleInitialValue();
602
+ if (this.autoFocus) {
603
+ requestAnimationFrame(() => {
604
+ this.setFocus({ selectText: true });
605
+ });
606
+ }
607
+ }
608
+ disconnectedCallback() {
609
+ var _a;
610
+ (_a = this._resizeObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
562
611
  }
563
612
  //---------------------------------------------
564
613
  // Event handlers
@@ -590,7 +639,7 @@ export class EzSearch {
590
639
  if (argument) {
591
640
  this._showLoading = false;
592
641
  this.clearSource();
593
- if (!isNaN(argumentNumber) || argument.length >= this._limitCharsToSearch) {
642
+ if (this.ignoreLimitCharsToSearch || !isNaN(argumentNumber) || argument.length >= this._limitCharsToSearch) {
594
643
  this._showLoading = true;
595
644
  this._changeDeboucingTimeout = window.setTimeout(() => {
596
645
  this.loadOptions(SearchMode.PREDICTIVE, isNaN(argumentNumber) ? argument : argumentNumber.toString());
@@ -628,14 +677,19 @@ export class EzSearch {
628
677
  }
629
678
  switch (event.key) {
630
679
  case "ArrowDown":
631
- this.nextOption();
632
680
  event.stopPropagation();
681
+ if (this.canShowListOptions())
682
+ event.preventDefault();
683
+ this.nextOption();
633
684
  break;
634
685
  case "ArrowUp":
635
- this.previousOption();
636
686
  event.stopPropagation();
687
+ if (this.canShowListOptions())
688
+ event.preventDefault();
689
+ this.previousOption();
637
690
  break;
638
691
  case "Enter":
692
+ this.handleEventPropagation(event);
639
693
  this.selectCurrentOption();
640
694
  break;
641
695
  case "Escape":
@@ -643,7 +697,7 @@ export class EzSearch {
643
697
  break;
644
698
  case "Tab":
645
699
  this._tabPressed = true;
646
- this.controlListWithOnlyOne();
700
+ this.controlListWithOnlyOne(false);
647
701
  break;
648
702
  }
649
703
  //ATENÇÃO: Existe a necessidade de propagar o evento de teclado.
@@ -652,6 +706,12 @@ export class EzSearch {
652
706
  //e o contexto pode reagir (fechar um popup por exemplo).
653
707
  //event.stopPropagation();
654
708
  }
709
+ //O evento deve ter sua propagação interrompida, apenas se a lista de opções estiver sendo exibida.
710
+ handleEventPropagation(event) {
711
+ if (this._listContainer.hasChildNodes() && this.stopPropagateEnterKeyEvent) {
712
+ event.stopPropagation();
713
+ }
714
+ }
655
715
  onTextInputFocusOutHandler() {
656
716
  if (this.hideErrorOnFocusOut)
657
717
  this.cancelPreselection();
@@ -659,10 +719,13 @@ export class EzSearch {
659
719
  canShowListOptions() {
660
720
  return !this._showLoading && this._visibleOptions.length > 0;
661
721
  }
722
+ canShowLoadSpinDescription() {
723
+ return this._showLoadingDescription && this._floatingID == undefined;
724
+ }
662
725
  render() {
663
726
  var _a;
664
727
  ElementIDUtils.addIDInfoIfNotExists(this.el, 'input');
665
- return (h(Host, null, h("ez-text-input", { "data-element-id": ElementIDUtils.getInternalIDInfo("textInput"), class: this.suppressSearch ? "suppressed-search-input" : "", ref: elem => this._textInput = elem, "data-slave-mode": "true", enabled: this.enabled && !this.suppressSearch, onInput: event => this.onTextInputChangeHandler(event), onFocusout: () => this.onTextInputFocusOutHandler(), onKeyDown: event => this.keyDownHandler(event), label: this.label, canShowError: this.canShowError, errorMessage: this.errorMessage, mode: this.mode }, h("button", { class: "btn", slot: "leftIcon", disabled: !this.enabled, tabindex: -1, onClick: () => this.handlerIconClick() }, h("ez-icon", { iconName: "search" })), (((_a = this._textInput) === null || _a === void 0 ? void 0 : _a.value) && (this._criteria || this.value) || this.fromGrid)
728
+ return (h(Host, null, h("ez-text-input", { "data-element-id": ElementIDUtils.getInternalIDInfo("textInput"), class: this.suppressSearch ? "suppressed-search-input" : "", ref: elem => this._textInput = elem, "data-slave-mode": "true", enabled: this.enabled && !this.suppressSearch, onInput: event => this.onTextInputChangeHandler(event), onFocusout: () => this.onTextInputFocusOutHandler(), onKeyDown: event => this.keyDownHandler(event), label: this.label, canShowError: this.canShowError, errorMessage: this.errorMessage, mode: this.mode }, h("button", { class: "btn", slot: "leftIcon", disabled: !this.enabled, tabindex: -1, onClick: () => this.handlerIconClick() }, this.canShowLoadSpinDescription() ? h("div", { class: "message__loading" }) : h("ez-icon", { iconName: "search" })), (((_a = this._textInput) === null || _a === void 0 ? void 0 : _a.value) && (this._criteria || this.value) || this.ensureClearButtonVisible)
666
729
  ? h("button", { class: "btn btn__close", slot: "rightIcon", disabled: !this.enabled, tabindex: -1, onClick: () => this.clearSearch() }, h("ez-icon", { iconName: "close" }))
667
730
  : undefined), h("section", { class: "list-container", ref: elem => this._listContainer = elem }, h("div", { class: "list-wrapper", ref: elem => this._listWrapper = elem }, h("ul", { class: "list-options", ref: elem => this._optionsList = elem }, !this._showLoading
668
731
  && this._visibleOptions.length === 0
@@ -838,6 +901,24 @@ export class EzSearch {
838
901
  "reflect": false,
839
902
  "defaultValue": "false"
840
903
  },
904
+ "stopPropagateEnterKeyEvent": {
905
+ "type": "boolean",
906
+ "mutable": false,
907
+ "complexType": {
908
+ "original": "boolean",
909
+ "resolved": "boolean",
910
+ "references": {}
911
+ },
912
+ "required": false,
913
+ "optional": false,
914
+ "docs": {
915
+ "tags": [],
916
+ "text": "Se true, ineterrompe a propaga\u00E7\u00E3o do evento de KeyDown da tecla enter"
917
+ },
918
+ "attribute": "stop-propagate-enter-key-event",
919
+ "reflect": false,
920
+ "defaultValue": "false"
921
+ },
841
922
  "mode": {
842
923
  "type": "string",
843
924
  "mutable": false,
@@ -988,7 +1069,7 @@ export class EzSearch {
988
1069
  "reflect": false,
989
1070
  "defaultValue": "false"
990
1071
  },
991
- "fromGrid": {
1072
+ "ensureClearButtonVisible": {
992
1073
  "type": "boolean",
993
1074
  "mutable": false,
994
1075
  "complexType": {
@@ -1000,9 +1081,45 @@ export class EzSearch {
1000
1081
  "optional": false,
1001
1082
  "docs": {
1002
1083
  "tags": [],
1003
- "text": "Informa se o componente est\u00E1 instanciado de dentro de uma grade"
1084
+ "text": "Garante que o bot\u00E3o de limpar pesquisa est\u00E1 sempre vis\u00EDvel"
1004
1085
  },
1005
- "attribute": "from-grid",
1086
+ "attribute": "ensure-clear-button-visible",
1087
+ "reflect": false,
1088
+ "defaultValue": "false"
1089
+ },
1090
+ "suppressPreLoad": {
1091
+ "type": "boolean",
1092
+ "mutable": false,
1093
+ "complexType": {
1094
+ "original": "boolean",
1095
+ "resolved": "boolean",
1096
+ "references": {}
1097
+ },
1098
+ "required": false,
1099
+ "optional": false,
1100
+ "docs": {
1101
+ "tags": [],
1102
+ "text": "Se true, desabilita pr\u00E9-load das op\u00E7\u00F5es ao carregar componente"
1103
+ },
1104
+ "attribute": "suppress-pre-load",
1105
+ "reflect": false,
1106
+ "defaultValue": "true"
1107
+ },
1108
+ "autoFocus": {
1109
+ "type": "boolean",
1110
+ "mutable": false,
1111
+ "complexType": {
1112
+ "original": "boolean",
1113
+ "resolved": "boolean",
1114
+ "references": {}
1115
+ },
1116
+ "required": false,
1117
+ "optional": false,
1118
+ "docs": {
1119
+ "tags": [],
1120
+ "text": "Se true o campo de texto receber\u00E1 o foco ao ser renderizado."
1121
+ },
1122
+ "attribute": "auto-focus",
1006
1123
  "reflect": false,
1007
1124
  "defaultValue": "false"
1008
1125
  }
@@ -1014,6 +1131,7 @@ export class EzSearch {
1014
1131
  "_visibleOptions": {},
1015
1132
  "_startLoading": {},
1016
1133
  "_showLoading": {},
1134
+ "_showLoadingDescription": {},
1017
1135
  "_criteria": {}
1018
1136
  };
1019
1137
  }
@@ -1059,11 +1177,18 @@ export class EzSearch {
1059
1177
  },
1060
1178
  "setFocus": {
1061
1179
  "complexType": {
1062
- "signature": "() => Promise<void>",
1063
- "parameters": [],
1180
+ "signature": "(options?: TFocusOptions) => Promise<void>",
1181
+ "parameters": [{
1182
+ "tags": [],
1183
+ "text": ""
1184
+ }],
1064
1185
  "references": {
1065
1186
  "Promise": {
1066
1187
  "location": "global"
1188
+ },
1189
+ "TFocusOptions": {
1190
+ "location": "import",
1191
+ "path": "../ez-text-input/ez-text-input"
1067
1192
  }
1068
1193
  },
1069
1194
  "return": "Promise<void>"
@@ -8,6 +8,8 @@
8
8
  --ez-sidebar-button--hover--width: 12px;
9
9
  /*@doc Define a altura do span do botão.*/
10
10
  --ez-sidebar-button--height: 96px;
11
+ /*@doc Define a camada em que o componente será exibido.*/
12
+ --ez-sidebar-navigator-button--z-index: var(--elevation--20, 20);
11
13
 
12
14
  /* cor */
13
15
  /*@doc Define a cor de fundo do botão.*/
@@ -35,6 +37,7 @@
35
37
  }
36
38
 
37
39
  button {
40
+ z-index: var(--ez-sidebar-navigator-button--z-index);
38
41
  position: absolute;
39
42
  display: flex;
40
43
  background: var(--ez-sidebar-button--background-color--xlight);
@@ -11,7 +11,7 @@ export class EzSidebarButton {
11
11
  }
12
12
  }
13
13
  render() {
14
- return (h("button", { type: "button", onClick: () => { this.ezClick.emit(); }, ref: (el) => this._button = el }, h("span", null), h("ez-icon", { iconName: "chevron-right" })));
14
+ return (h("button", { type: "button", onClick: () => { this.ezClick.emit(); }, ref: (el) => this._button = el }, h("span", null), h("ez-icon", { iconName: "chevron-right", size: "small" })));
15
15
  }
16
16
  static get is() { return "ez-sidebar-button"; }
17
17
  static get encapsulation() { return "shadow"; }
@@ -14,6 +14,8 @@
14
14
  --ez-sidebar-navigator--border-radius: 0px var(--border--radius-medium) var(--border--radius-medium) 0px;
15
15
  /*@doc Força uma altura especifica para o sidebar, o padrão é 100% da tela*/
16
16
  --ez-sidebar-navigator--height: calc(100vh - var(--space--lg, 24px));
17
+ /*@doc Define a camada em que o componente será exibido.*/
18
+ --ez-sidebar-navigator--z-index: var(--elevation--20, 20);
17
19
 
18
20
  /*Labels Header */
19
21
  /*@doc Define o espaçamento entre os componente do cabeçalho*/
@@ -124,7 +126,7 @@
124
126
 
125
127
  .dynamic {
126
128
  position: absolute;
127
- z-index: var(--most-visible , 4);
129
+ z-index: var(--ez-sidebar-navigator--z-index);
128
130
  }
129
131
 
130
132
  .fixed {
@@ -21,29 +21,29 @@
21
21
  --ez-split-button__right-button--padding-left: 8px;
22
22
  /* general */
23
23
  /*@doc Define a cor do label.*/
24
- --ez-split-button--color: var(--title--primary, #FFF);
24
+ --ez-split-button--color: var(--title--primary, #2B3A54);
25
25
  /*@doc Define o tamanho do label.*/
26
- --ez-split-button--font-size: var(--text--medium, 14px);
26
+ --ez-split-button--font-size: var(--text--small, 12px);
27
27
  /*@doc Define a família da fonte do label.*/
28
28
  --ez-split-button--font-family: var(--font-pattern, Arial);
29
29
  /*@doc Define o peso da fonte do label.*/
30
30
  --ez-split-button--font-weight: var(--text-weight--large);
31
31
  /*@doc Define a cor de fundo do botão.*/
32
- --ez-split-button--background-color: var(--background--medium, #008561);
32
+ --ez-split-button--background-color: var(--background--light, #ffffff);
33
33
  /*@doc Define o raio da borda do botão.*/
34
- --ez-split-button--border-radius: var(--border--radius-large, 12px);
34
+ --ez-split-button--border-radius: var(--border--radius-large, 24px);
35
35
  /*@doc Define o estilo da borda do botão.*/
36
- --ez-split-button--border: none;
36
+ --ez-split-button--border: 1px solid var(--color--strokes);
37
37
  /*@doc Define o alinhamento horizontal do conteúdo do botão.*/
38
38
  --ez-split-button--justify-content: center;
39
39
  /*@doc Define a cor do texto e do ícone quando o cursor está sobre o botão.*/
40
- --ez-split-button--hover-color: var(--color--primary-600);
40
+ --ez-split-button--hover-color: var(--color--primary-600, #007a5a);
41
41
  /*@doc Define a cor de fundo quando o cursor está sobre o botão.*/
42
- --ez-split-button--hover--background-color: var(--background--medium, var(--ez-split-button--background-color));
42
+ --ez-split-button--hover--background-color: var(--background--light, #ffffff);
43
43
  /*@doc Define a cor do texto quando o botão está desabilitado.*/
44
- --ez-split-button--disabled-color: var(--text--disable);
44
+ --ez-split-button--disabled-color: var(--text--primary);
45
45
  /*@doc Define a cor de fundo quando o botão está desabilitado.*/
46
- --ez-split-button--disabled--background-color: var(--color--disable-secondary);
46
+ --ez-split-button--disabled--background-color: var(--background--medium);
47
47
  /*@doc Define o estido da borda quando o botão está selecionado.*/
48
48
  --ez-split-button--focus--border: var(--border--medium, 2px) var(--color--primary-300);
49
49
  /*@doc Define a sombra do botão quando selecionado.*/
@@ -81,7 +81,7 @@
81
81
  background-color: var(--ez-split-button--background-color);
82
82
  color: var(--ez-split-button--color);
83
83
  fill: var(--ez-split-button--color);
84
- border: var(--ez-split-button--border);
84
+ border: none;
85
85
  justify-content: var(--ez-split-button--justify-content);
86
86
  }
87
87
 
@@ -97,11 +97,28 @@
97
97
  fill: var(--ez-split-button--active-color);
98
98
  --ez-icon--color: var(--ez-split-button--active-color);
99
99
  }
100
+ .ez-split-button__left-button{
101
+ border: var(--ez-split-button--border);
102
+ border-right: none;
103
+ }
104
+ .ez-split-button__right-button{
105
+ border: var(--ez-split-button--border);
106
+ border-left: none;
107
+ }
100
108
 
101
- .ez-split-button__left-button:focus,
109
+ .ez-split-button__left-button:focus{
110
+ box-shadow:
111
+ 0 0 0 2px var(--color--primary-300), /* right */
112
+ 0 2px 0 0 var(--color--primary-300), /* bottom */
113
+ 0 -2px 0 0 var(--color--primary-300); /* top */
114
+
115
+ }
102
116
  .ez-split-button__right-button:focus {
103
- outline: var(--ez-split-button--focus--border);
104
- box-shadow: var(--ez-split-button--focus--box-shadow);
117
+ box-shadow:
118
+ 2px 0 0 0 var(--color--primary-300), /* right */
119
+ 0 2px 0 0 var(--color--primary-300), /* bottom */
120
+ 0 -2px 0 0 var(--color--primary-300); /* top */
121
+
105
122
  }
106
123
 
107
124
  .ez-split-button__left-button:hover,
@@ -113,6 +130,16 @@
113
130
  --ez-icon--color: var(--ez-split-button--hover-color);
114
131
  }
115
132
 
133
+ .ez-split-button__left-button:active,
134
+ .ez-split-button__right-button:active {
135
+ outline: none;
136
+ box-shadow: none;
137
+ background-color: var(--ez-split-button--active--background-color);
138
+ color: var(--ez-split-button--active-color);
139
+ fill: var(--ez-split-button--active-color);
140
+ --ez-icon--color: var(--ez-split-button--active-color);
141
+ }
142
+
116
143
  .ez-split-button__left-button:disabled,
117
144
  .ez-split-button__left-button:disabled label,
118
145
  .ez-split-button__right-button:disabled{
@@ -123,7 +150,15 @@
123
150
  --ez-icon--color: var(--ez-split-button--disabled-color);
124
151
  cursor: not-allowed;
125
152
  }
126
-
153
+ .ez-split-button__left-button:disabled{
154
+ border: var(--ez-split-button--disabled-border);
155
+ border-right: none;
156
+ }
157
+ .ez-split-button__right-button:disabled{
158
+ border: var(--ez-split-button--disabled-border);
159
+ border-left: none;
160
+ }
161
+
127
162
  button.large {
128
163
  height: var(--ez-split-button__large--height);
129
164
  }
@@ -161,6 +196,7 @@
161
196
  border-bottom-right-radius: var(--ez-split-button--border-radius);
162
197
  border-top-left-radius: 0;
163
198
  border-bottom-left-radius:0;
199
+ border-right: var(--ez-split-button--border);
164
200
  }
165
201
 
166
202
  .ez-split-button__right-button--medium {
@@ -42,7 +42,7 @@ export class EzSplitButton {
42
42
  }
43
43
  getIconSize(sizeParam = 'medium') {
44
44
  var _a;
45
- const sizeList = ['medium', 'large'];
45
+ const sizeList = ['small', 'medium', 'large'];
46
46
  const sizeLowerCase = (_a = this.size) === null || _a === void 0 ? void 0 : _a.toLowerCase();
47
47
  return sizeList.includes(sizeLowerCase) ? sizeLowerCase : sizeParam;
48
48
  }
@@ -311,8 +311,8 @@ export class EzSplitButton {
311
311
  "type": "string",
312
312
  "mutable": false,
313
313
  "complexType": {
314
- "original": "'medium' | 'large'",
315
- "resolved": "\"large\" | \"medium\"",
314
+ "original": "'small' | 'medium' | 'large'",
315
+ "resolved": "\"large\" | \"medium\" | \"small\"",
316
316
  "references": {}
317
317
  },
318
318
  "required": false,
@@ -45,6 +45,7 @@
45
45
  .ez-split-item--header-buttons {
46
46
  display: flex;
47
47
  align-items: center;
48
+ max-height: 20px;
48
49
  }
49
50
 
50
51
  .ez-split-item--content {