@sankhyalabs/ezui 0.0.0-feat-dev-kb-4158.0

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 (527) hide show
  1. package/README.md +80 -0
  2. package/dist/assets/actions-sprite.svg +257 -0
  3. package/dist/cjs/ApplicationUtils-2e444734.js +162 -0
  4. package/dist/cjs/CSSVarsUtils-b136a156.js +77 -0
  5. package/dist/cjs/CheckMode-ecb90b87.js +7 -0
  6. package/dist/cjs/DialogType-2114c337.js +9 -0
  7. package/dist/cjs/EzScrollDirection-b2c99895.js +8 -0
  8. package/dist/cjs/RecordValidationProcessor-edd23705.js +102 -0
  9. package/dist/cjs/constants-3a1d64fb.js +7 -0
  10. package/dist/cjs/ez-actions-button.cjs.entry.js +212 -0
  11. package/dist/cjs/ez-alert.cjs.entry.js +30 -0
  12. package/dist/cjs/ez-application.cjs.entry.js +26 -0
  13. package/dist/cjs/ez-badge.cjs.entry.js +120 -0
  14. package/dist/cjs/ez-breadcrumb.cjs.entry.js +285 -0
  15. package/dist/cjs/ez-button.cjs.entry.js +87 -0
  16. package/dist/cjs/ez-calendar.cjs.entry.js +238 -0
  17. package/dist/cjs/ez-card-item.cjs.entry.js +52 -0
  18. package/dist/cjs/ez-check.cjs.entry.js +95 -0
  19. package/dist/cjs/ez-chip.cjs.entry.js +116 -0
  20. package/dist/cjs/ez-collapsible-box.cjs.entry.js +133 -0
  21. package/dist/cjs/ez-combo-box.cjs.entry.js +682 -0
  22. package/dist/cjs/ez-date-input.cjs.entry.js +188 -0
  23. package/dist/cjs/ez-date-time-input.cjs.entry.js +242 -0
  24. package/dist/cjs/ez-dialog.cjs.entry.js +180 -0
  25. package/dist/cjs/ez-dropdown.cjs.entry.js +515 -0
  26. package/dist/cjs/ez-file-item.cjs.entry.js +74 -0
  27. package/dist/cjs/ez-filter-input_2.cjs.entry.js +137 -0
  28. package/dist/cjs/ez-form-view.cjs.entry.js +155 -0
  29. package/dist/cjs/ez-form.cjs.entry.js +932 -0
  30. package/dist/cjs/ez-grid.cjs.entry.js +120789 -0
  31. package/dist/cjs/ez-guide-navigator.cjs.entry.js +96 -0
  32. package/dist/cjs/ez-icon.cjs.entry.js +44 -0
  33. package/dist/cjs/ez-list.cjs.entry.js +558 -0
  34. package/dist/cjs/ez-loading-bar.cjs.entry.js +32 -0
  35. package/dist/cjs/ez-modal-container.cjs.entry.js +64 -0
  36. package/dist/cjs/ez-modal.cjs.entry.js +72 -0
  37. package/dist/cjs/ez-multi-selection-list.cjs.entry.js +181 -0
  38. package/dist/cjs/ez-number-input.cjs.entry.js +181 -0
  39. package/dist/cjs/ez-popover.cjs.entry.js +156 -0
  40. package/dist/cjs/ez-popup.cjs.entry.js +66 -0
  41. package/dist/cjs/ez-radio-button.cjs.entry.js +48 -0
  42. package/dist/cjs/ez-scroller_3.cjs.entry.js +792 -0
  43. package/dist/cjs/ez-search.cjs.entry.js +94 -0
  44. package/dist/cjs/ez-skeleton.cjs.entry.js +67 -0
  45. package/dist/cjs/ez-tabselector.cjs.entry.js +228 -0
  46. package/dist/cjs/ez-text-area.cjs.entry.js +179 -0
  47. package/dist/cjs/ez-text-edit.cjs.entry.js +107 -0
  48. package/dist/cjs/ez-text-input.cjs.entry.js +247 -0
  49. package/dist/cjs/ez-time-input.cjs.entry.js +168 -0
  50. package/dist/cjs/ez-toast.cjs.entry.js +101 -0
  51. package/dist/cjs/ez-upload.cjs.entry.js +395 -0
  52. package/dist/cjs/ez-view-stack.cjs.entry.js +86 -0
  53. package/dist/cjs/ezui.cjs.js +23 -0
  54. package/dist/cjs/filter-column.cjs.entry.js +128 -0
  55. package/dist/cjs/index-1064511f.js +2340 -0
  56. package/dist/cjs/index.cjs.js +2 -0
  57. package/dist/cjs/loader.cjs.js +22 -0
  58. package/dist/collection/collection-manifest.json +184 -0
  59. package/dist/collection/components/assets/actions-sprite.svg +257 -0
  60. package/dist/collection/components/ez-actions-button/ez-actions-button.css +139 -0
  61. package/dist/collection/components/ez-actions-button/ez-actions-button.js +440 -0
  62. package/dist/collection/components/ez-alert/ez-alert.css +76 -0
  63. package/dist/collection/components/ez-alert/ez-alert.js +53 -0
  64. package/dist/collection/components/ez-application/ez-application.css +3 -0
  65. package/dist/collection/components/ez-application/ez-application.js +41 -0
  66. package/dist/collection/components/ez-badge/enum/sizes.js +9 -0
  67. package/dist/collection/components/ez-badge/ez-badge.css +165 -0
  68. package/dist/collection/components/ez-badge/ez-badge.js +211 -0
  69. package/dist/collection/components/ez-badge/interfaces/IPosition.js +1 -0
  70. package/dist/collection/components/ez-breadcrumb/ez-breadcrumb.css +66 -0
  71. package/dist/collection/components/ez-breadcrumb/ez-breadcrumb.js +373 -0
  72. package/dist/collection/components/ez-breadcrumb/subcomponents/breadcrumb-item.js +20 -0
  73. package/dist/collection/components/ez-button/ez-button.css +255 -0
  74. package/dist/collection/components/ez-button/ez-button.js +241 -0
  75. package/dist/collection/components/ez-calendar/ez-calendar.css +318 -0
  76. package/dist/collection/components/ez-calendar/ez-calendar.js +439 -0
  77. package/dist/collection/components/ez-card-item/ez-card-item.css +126 -0
  78. package/dist/collection/components/ez-card-item/ez-card-item.js +97 -0
  79. package/dist/collection/components/ez-check/CheckMode.js +5 -0
  80. package/dist/collection/components/ez-check/ez-check.css +366 -0
  81. package/dist/collection/components/ez-check/ez-check.js +272 -0
  82. package/dist/collection/components/ez-chip/ez-chip.css +163 -0
  83. package/dist/collection/components/ez-chip/ez-chip.js +312 -0
  84. package/dist/collection/components/ez-collapsible-box/ez-collapsible-box.css +254 -0
  85. package/dist/collection/components/ez-collapsible-box/ez-collapsible-box.js +442 -0
  86. package/dist/collection/components/ez-combo-box/ez-combo-box.css +334 -0
  87. package/dist/collection/components/ez-combo-box/ez-combo-box.js +1081 -0
  88. package/dist/collection/components/ez-date-input/ez-date-input.css +49 -0
  89. package/dist/collection/components/ez-date-input/ez-date-input.js +432 -0
  90. package/dist/collection/components/ez-date-time-input/ez-date-time-input.css +44 -0
  91. package/dist/collection/components/ez-date-time-input/ez-date-time-input.js +504 -0
  92. package/dist/collection/components/ez-dialog/DialogType.js +7 -0
  93. package/dist/collection/components/ez-dialog/ez-dialog.css +544 -0
  94. package/dist/collection/components/ez-dialog/ez-dialog.js +401 -0
  95. package/dist/collection/components/ez-dropdown/ez-dropdown.css +349 -0
  96. package/dist/collection/components/ez-dropdown/ez-dropdown.js +356 -0
  97. package/dist/collection/components/ez-dropdown/structure/DropdownItem.js +30 -0
  98. package/dist/collection/components/ez-dropdown/structure/SubmenuControl.js +241 -0
  99. package/dist/collection/components/ez-file-item/ez-file-item.css +125 -0
  100. package/dist/collection/components/ez-file-item/ez-file-item.js +200 -0
  101. package/dist/collection/components/ez-filter-input/ez-filter-input.css +4 -0
  102. package/dist/collection/components/ez-filter-input/ez-filter-input.js +407 -0
  103. package/dist/collection/components/ez-form/ez-form.css +10 -0
  104. package/dist/collection/components/ez-form/ez-form.js +217 -0
  105. package/dist/collection/components/ez-form/store/form.slice.js +42 -0
  106. package/dist/collection/components/ez-form-view/ez-form-view.css +6 -0
  107. package/dist/collection/components/ez-form-view/ez-form-view.js +131 -0
  108. package/dist/collection/components/ez-form-view/fieldbuilder/FieldBuilder.js +27 -0
  109. package/dist/collection/components/ez-form-view/fieldbuilder/templates/CheckBox.tpl.js +11 -0
  110. package/dist/collection/components/ez-form-view/fieldbuilder/templates/ComboBox.tpl.js +13 -0
  111. package/dist/collection/components/ez-form-view/fieldbuilder/templates/DateInput.tpl.js +10 -0
  112. package/dist/collection/components/ez-form-view/fieldbuilder/templates/FileInput.tpl.js +11 -0
  113. package/dist/collection/components/ez-form-view/fieldbuilder/templates/NumberInput.tpl.js +12 -0
  114. package/dist/collection/components/ez-form-view/fieldbuilder/templates/SearchInput.tpl.js +4 -0
  115. package/dist/collection/components/ez-form-view/fieldbuilder/templates/TextArea.tpl.js +4 -0
  116. package/dist/collection/components/ez-form-view/fieldbuilder/templates/TextInput.tpl.js +4 -0
  117. package/dist/collection/components/ez-form-view/interfaces/IFormViewField.js +1 -0
  118. package/dist/collection/components/ez-form-view/interfaces/index.js +1 -0
  119. package/dist/collection/components/ez-grid/controller/EzGridController.js +1 -0
  120. package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +791 -0
  121. package/dist/collection/components/ez-grid/controller/ag-grid/AgGridUtils.js +8 -0
  122. package/dist/collection/components/ez-grid/controller/ag-grid/DataSource.js +101 -0
  123. package/dist/collection/components/ez-grid/controller/ag-grid/GridEditionManager.js +230 -0
  124. package/dist/collection/components/ez-grid/controller/ag-grid/components/EzGridCustomHeader.js +88 -0
  125. package/dist/collection/components/ez-grid/controller/ag-grid/components/cellRendererStatus.js +43 -0
  126. package/dist/collection/components/ez-grid/controller/ag-grid/components/selectionHeader.js +40 -0
  127. package/dist/collection/components/ez-grid/controller/ag-grid/editor/EzCellEditor.js +49 -0
  128. package/dist/collection/components/ez-grid/controller/ag-grid/editor/GridEditorUtils.js +10 -0
  129. package/dist/collection/components/ez-grid/controller/ag-grid/editor/IEditorMetadata.js +4 -0
  130. package/dist/collection/components/ez-grid/controller/ag-grid/editor/IUICellEditor.js +1 -0
  131. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/ComboBox.tpl.js +38 -0
  132. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/DateInput.tpl.js +40 -0
  133. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/NumberInput.tpl.js +20 -0
  134. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/Search.tpl.js +15 -0
  135. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/TextInput.tpl.js +41 -0
  136. package/dist/collection/components/ez-grid/controller/ag-grid/i18n/pt-BR.js +75 -0
  137. package/dist/collection/components/ez-grid/controller/ag-grid/mock/Server.js +69 -0
  138. package/dist/collection/components/ez-grid/ez-grid.css +97 -0
  139. package/dist/collection/components/ez-grid/ez-grid.js +861 -0
  140. package/dist/collection/components/ez-grid/interfaces/ISelection.js +1 -0
  141. package/dist/collection/components/ez-grid/interfaces/ISelectionToastConfig.js +1 -0
  142. package/dist/collection/components/ez-grid/interfaces/index.js +2 -0
  143. package/dist/collection/components/ez-grid/subcomponents/filter-column.css +34 -0
  144. package/dist/collection/components/ez-grid/subcomponents/filter-column.js +335 -0
  145. package/dist/collection/components/ez-grid/subcomponents/selection-counter.js +29 -0
  146. package/dist/collection/components/ez-guide-navigator/ez-guide-navigator.css +66 -0
  147. package/dist/collection/components/ez-guide-navigator/ez-guide-navigator.js +385 -0
  148. package/dist/collection/components/ez-guide-navigator/interfaces/IGuideItem.js +1 -0
  149. package/dist/collection/components/ez-guide-navigator/interfaces/index.js +1 -0
  150. package/dist/collection/components/ez-icon/ez-icon.css +223 -0
  151. package/dist/collection/components/ez-icon/ez-icon.js +101 -0
  152. package/dist/collection/components/ez-list/ez-list.css +434 -0
  153. package/dist/collection/components/ez-list/ez-list.js +911 -0
  154. package/dist/collection/components/ez-loading-bar/ez-loading-bar.css +85 -0
  155. package/dist/collection/components/ez-loading-bar/ez-loading-bar.js +74 -0
  156. package/dist/collection/components/ez-modal/ez-modal.css +369 -0
  157. package/dist/collection/components/ez-modal/ez-modal.js +239 -0
  158. package/dist/collection/components/ez-modal-container/ez-modal-container.css +55 -0
  159. package/dist/collection/components/ez-modal-container/ez-modal-container.js +191 -0
  160. package/dist/collection/components/ez-modal-container/index.js +2 -0
  161. package/dist/collection/components/ez-modal-container/modal-action.js +8 -0
  162. package/dist/collection/components/ez-modal-container/modal-button-status.js +7 -0
  163. package/dist/collection/components/ez-multi-selection-list/ez-multi-selection-list.css +36 -0
  164. package/dist/collection/components/ez-multi-selection-list/ez-multi-selection-list.js +318 -0
  165. package/dist/collection/components/ez-multi-selection-list/interfaces/IMultiSelectionListDataSource.js +1 -0
  166. package/dist/collection/components/ez-multi-selection-list/interfaces/IMultiSelectionOption.js +1 -0
  167. package/dist/collection/components/ez-multi-selection-list/subcomponents/multi-selection-box-message.css +18 -0
  168. package/dist/collection/components/ez-multi-selection-list/subcomponents/multi-selection-box-message.js +41 -0
  169. package/dist/collection/components/ez-number-input/ez-number-input.css +8 -0
  170. package/dist/collection/components/ez-number-input/ez-number-input.js +457 -0
  171. package/dist/collection/components/ez-popover/ez-popover.css +42 -0
  172. package/dist/collection/components/ez-popover/ez-popover.js +365 -0
  173. package/dist/collection/components/ez-popup/ez-popup.css +418 -0
  174. package/dist/collection/components/ez-popup/ez-popup.js +180 -0
  175. package/dist/collection/components/ez-radio-button/ez-radio-button.css +217 -0
  176. package/dist/collection/components/ez-radio-button/ez-radio-button.js +163 -0
  177. package/dist/collection/components/ez-scroller/EzScrollDirection.js +6 -0
  178. package/dist/collection/components/ez-scroller/ez-scroller.css +192 -0
  179. package/dist/collection/components/ez-scroller/ez-scroller.js +293 -0
  180. package/dist/collection/components/ez-search/ez-search.css +3 -0
  181. package/dist/collection/components/ez-search/ez-search.js +424 -0
  182. package/dist/collection/components/ez-sidebar-button/ez-sidebar-button.css +63 -0
  183. package/dist/collection/components/ez-sidebar-button/ez-sidebar-button.js +47 -0
  184. package/dist/collection/components/ez-skeleton/ez-skeleton.constants.js +1 -0
  185. package/dist/collection/components/ez-skeleton/ez-skeleton.css +94 -0
  186. package/dist/collection/components/ez-skeleton/ez-skeleton.js +211 -0
  187. package/dist/collection/components/ez-tabselector/ez-tabselector.css +149 -0
  188. package/dist/collection/components/ez-tabselector/ez-tabselector.js +321 -0
  189. package/dist/collection/components/ez-text-area/ez-text-area.css +242 -0
  190. package/dist/collection/components/ez-text-area/ez-text-area.js +428 -0
  191. package/dist/collection/components/ez-text-edit/ez-text-edit.css +19 -0
  192. package/dist/collection/components/ez-text-edit/ez-text-edit.js +202 -0
  193. package/dist/collection/components/ez-text-input/ez-text-input.css +301 -0
  194. package/dist/collection/components/ez-text-input/ez-text-input.js +491 -0
  195. package/dist/collection/components/ez-time-input/ez-time-input.css +14 -0
  196. package/dist/collection/components/ez-time-input/ez-time-input.js +412 -0
  197. package/dist/collection/components/ez-toast/ez-toast.css +167 -0
  198. package/dist/collection/components/ez-toast/ez-toast.js +209 -0
  199. package/dist/collection/components/ez-tree/ez-tree.css +159 -0
  200. package/dist/collection/components/ez-tree/ez-tree.js +696 -0
  201. package/dist/collection/components/ez-tree/interfaces/ITree.js +1 -0
  202. package/dist/collection/components/ez-tree/interfaces/ITreeItem.js +1 -0
  203. package/dist/collection/components/ez-tree/subcomponents/DefaultIconResolver.js +8 -0
  204. package/dist/collection/components/ez-tree/subcomponents/DefaultTooltipResolver.js +3 -0
  205. package/dist/collection/components/ez-tree/subcomponents/TreeItem.js +24 -0
  206. package/dist/collection/components/ez-tree/subcomponents/index.js +2 -0
  207. package/dist/collection/components/ez-tree/types/Node.js +110 -0
  208. package/dist/collection/components/ez-tree/types/Tree.js +132 -0
  209. package/dist/collection/components/ez-upload/RemoteFile.js +94 -0
  210. package/dist/collection/components/ez-upload/ez-upload.css +582 -0
  211. package/dist/collection/components/ez-upload/ez-upload.js +587 -0
  212. package/dist/collection/components/ez-view-stack/ez-view-stack.css +9 -0
  213. package/dist/collection/components/ez-view-stack/ez-view-stack.js +126 -0
  214. package/dist/collection/index.js +1 -0
  215. package/dist/collection/servidor.js +101 -0
  216. package/dist/collection/setupTests.js +1 -0
  217. package/dist/collection/utils/ApplicationUtils.js +94 -0
  218. package/dist/collection/utils/AssetsUtils.js +19 -0
  219. package/dist/collection/utils/CSSVarsUtils.js +73 -0
  220. package/dist/collection/utils/constants.js +3 -0
  221. package/dist/collection/utils/form/DataBinder.js +287 -0
  222. package/dist/collection/utils/form/FormMetadata.js +176 -0
  223. package/dist/collection/utils/form/index.js +2 -0
  224. package/dist/collection/utils/form/interfaces/IDefaultConfig.js +1 -0
  225. package/dist/collection/utils/form/interfaces/IFormCardConfig.js +1 -0
  226. package/dist/collection/utils/form/interfaces/IFormConfig.js +1 -0
  227. package/dist/collection/utils/form/interfaces/IFormSheetMetadata.js +1 -0
  228. package/dist/collection/utils/form/interfaces/ISummaryField.js +1 -0
  229. package/dist/collection/utils/form/interfaces/ITabConfig.js +1 -0
  230. package/dist/collection/utils/form/interfaces/index.js +1 -0
  231. package/dist/collection/utils/index.js +6 -0
  232. package/dist/collection/utils/interfaces/AbstractFieldMetadata.js +21 -0
  233. package/dist/collection/utils/interfaces/IFieldConfig.js +1 -0
  234. package/dist/collection/utils/mock/ez-upload-mock.js +30 -0
  235. package/dist/collection/utils/utils.js +6 -0
  236. package/dist/collection/utils/validators/recordvalidator/IInvalidField.js +1 -0
  237. package/dist/collection/utils/validators/recordvalidator/IRecordValidator.js +1 -0
  238. package/dist/collection/utils/validators/recordvalidator/IValidationResult.js +1 -0
  239. package/dist/collection/utils/validators/recordvalidator/IValidationSource.js +1 -0
  240. package/dist/collection/utils/validators/recordvalidator/RecordValidationProcessor.js +74 -0
  241. package/dist/custom-elements/index.d.ts +321 -0
  242. package/dist/custom-elements/index.js +129534 -0
  243. package/dist/esm/ApplicationUtils-d9a34a16.js +160 -0
  244. package/dist/esm/CSSVarsUtils-a97cfa29.js +75 -0
  245. package/dist/esm/CheckMode-bdb2ec19.js +7 -0
  246. package/dist/esm/DialogType-54a62731.js +9 -0
  247. package/dist/esm/EzScrollDirection-2df26c93.js +8 -0
  248. package/dist/esm/RecordValidationProcessor-abc814af.js +99 -0
  249. package/dist/esm/constants-6dab64f7.js +4 -0
  250. package/dist/esm/ez-actions-button.entry.js +208 -0
  251. package/dist/esm/ez-alert.entry.js +26 -0
  252. package/dist/esm/ez-application.entry.js +22 -0
  253. package/dist/esm/ez-badge.entry.js +116 -0
  254. package/dist/esm/ez-breadcrumb.entry.js +281 -0
  255. package/dist/esm/ez-button.entry.js +83 -0
  256. package/dist/esm/ez-calendar.entry.js +234 -0
  257. package/dist/esm/ez-card-item.entry.js +48 -0
  258. package/dist/esm/ez-check.entry.js +91 -0
  259. package/dist/esm/ez-chip.entry.js +112 -0
  260. package/dist/esm/ez-collapsible-box.entry.js +129 -0
  261. package/dist/esm/ez-combo-box.entry.js +678 -0
  262. package/dist/esm/ez-date-input.entry.js +184 -0
  263. package/dist/esm/ez-date-time-input.entry.js +238 -0
  264. package/dist/esm/ez-dialog.entry.js +176 -0
  265. package/dist/esm/ez-dropdown.entry.js +511 -0
  266. package/dist/esm/ez-file-item.entry.js +70 -0
  267. package/dist/esm/ez-filter-input_2.entry.js +132 -0
  268. package/dist/esm/ez-form-view.entry.js +151 -0
  269. package/dist/esm/ez-form.entry.js +928 -0
  270. package/dist/esm/ez-grid.entry.js +120785 -0
  271. package/dist/esm/ez-guide-navigator.entry.js +92 -0
  272. package/dist/esm/ez-icon.entry.js +40 -0
  273. package/dist/esm/ez-list.entry.js +554 -0
  274. package/dist/esm/ez-loading-bar.entry.js +28 -0
  275. package/dist/esm/ez-modal-container.entry.js +60 -0
  276. package/dist/esm/ez-modal.entry.js +68 -0
  277. package/dist/esm/ez-multi-selection-list.entry.js +177 -0
  278. package/dist/esm/ez-number-input.entry.js +177 -0
  279. package/dist/esm/ez-popover.entry.js +152 -0
  280. package/dist/esm/ez-popup.entry.js +62 -0
  281. package/dist/esm/ez-radio-button.entry.js +44 -0
  282. package/dist/esm/ez-scroller_3.entry.js +786 -0
  283. package/dist/esm/ez-search.entry.js +90 -0
  284. package/dist/esm/ez-skeleton.entry.js +63 -0
  285. package/dist/esm/ez-tabselector.entry.js +224 -0
  286. package/dist/esm/ez-text-area.entry.js +175 -0
  287. package/dist/esm/ez-text-edit.entry.js +103 -0
  288. package/dist/esm/ez-text-input.entry.js +243 -0
  289. package/dist/esm/ez-time-input.entry.js +164 -0
  290. package/dist/esm/ez-toast.entry.js +97 -0
  291. package/dist/esm/ez-upload.entry.js +391 -0
  292. package/dist/esm/ez-view-stack.entry.js +82 -0
  293. package/dist/esm/ezui.js +18 -0
  294. package/dist/esm/filter-column.entry.js +124 -0
  295. package/dist/esm/index-296b8458.js +2309 -0
  296. package/dist/esm/index.js +1 -0
  297. package/dist/esm/loader.js +18 -0
  298. package/dist/esm/polyfills/core-js.js +11 -0
  299. package/dist/esm/polyfills/css-shim.js +1 -0
  300. package/dist/esm/polyfills/dom.js +79 -0
  301. package/dist/esm/polyfills/es5-html-element.js +1 -0
  302. package/dist/esm/polyfills/index.js +34 -0
  303. package/dist/esm/polyfills/system.js +6 -0
  304. package/dist/ezui/ezui.esm.js +1 -0
  305. package/dist/ezui/index.esm.js +0 -0
  306. package/dist/ezui/p-028f264f.entry.js +1 -0
  307. package/dist/ezui/p-050247dc.entry.js +1 -0
  308. package/dist/ezui/p-1e7c4986.entry.js +1 -0
  309. package/dist/ezui/p-244dfe8a.entry.js +1 -0
  310. package/dist/ezui/p-27a01a26.js +1 -0
  311. package/dist/ezui/p-2a0e1679.entry.js +1 -0
  312. package/dist/ezui/p-2da09f70.entry.js +1 -0
  313. package/dist/ezui/p-32b4163f.entry.js +1 -0
  314. package/dist/ezui/p-37673563.entry.js +1 -0
  315. package/dist/ezui/p-391de0e4.entry.js +1 -0
  316. package/dist/ezui/p-4535da17.entry.js +1 -0
  317. package/dist/ezui/p-4c8b029b.entry.js +1 -0
  318. package/dist/ezui/p-4e31b69b.entry.js +1 -0
  319. package/dist/ezui/p-5ce6548c.entry.js +1 -0
  320. package/dist/ezui/p-5cef0264.entry.js +1 -0
  321. package/dist/ezui/p-5d6f2550.entry.js +1 -0
  322. package/dist/ezui/p-60ba28ea.entry.js +1 -0
  323. package/dist/ezui/p-68352e41.entry.js +1 -0
  324. package/dist/ezui/p-7525e604.entry.js +1 -0
  325. package/dist/ezui/p-7eb3e1a5.js +1 -0
  326. package/dist/ezui/p-83885b21.entry.js +1 -0
  327. package/dist/ezui/p-86a2036d.js +1 -0
  328. package/dist/ezui/p-87e85160.entry.js +1 -0
  329. package/dist/ezui/p-8bd3903b.entry.js +1 -0
  330. package/dist/ezui/p-90fa4cb3.entry.js +1 -0
  331. package/dist/ezui/p-9285b53e.entry.js +1 -0
  332. package/dist/ezui/p-95426f93.entry.js +1 -0
  333. package/dist/ezui/p-98bb8b16.js +1 -0
  334. package/dist/ezui/p-9b347f04.entry.js +1 -0
  335. package/dist/ezui/p-9f41b414.entry.js +1 -0
  336. package/dist/ezui/p-a01068e1.entry.js +1 -0
  337. package/dist/ezui/p-a510a4c5.entry.js +1 -0
  338. package/dist/ezui/p-a5e09759.entry.js +1 -0
  339. package/dist/ezui/p-ab574d59.js +1 -0
  340. package/dist/ezui/p-b11f035c.entry.js +1 -0
  341. package/dist/ezui/p-b853763b.js +1 -0
  342. package/dist/ezui/p-c49dbf23.entry.js +1 -0
  343. package/dist/ezui/p-ccb4ccd9.entry.js +1 -0
  344. package/dist/ezui/p-cd19a6f8.entry.js +1 -0
  345. package/dist/ezui/p-ce035beb.entry.js +1 -0
  346. package/dist/ezui/p-d43b22f3.entry.js +1 -0
  347. package/dist/ezui/p-d51aa09b.entry.js +1 -0
  348. package/dist/ezui/p-db528b31.entry.js +1 -0
  349. package/dist/ezui/p-e2dfd935.entry.js +1 -0
  350. package/dist/ezui/p-e318d280.js +2 -0
  351. package/dist/ezui/p-e67d0bd5.entry.js +1 -0
  352. package/dist/ezui/p-e7fa0ad6.entry.js +1 -0
  353. package/dist/ezui/p-f15ec3bb.js +1 -0
  354. package/dist/ezui/p-f4208819.entry.js +1 -0
  355. package/dist/ezui/p-fa571a4e.entry.js +1 -0
  356. package/dist/ezui/p-fd54b5b4.entry.js +304 -0
  357. package/dist/ezui/p-ff82b176.entry.js +1 -0
  358. package/dist/index.cjs.js +1 -0
  359. package/dist/index.js +1 -0
  360. package/dist/types/components/ez-actions-button/ez-actions-button.d.ts +82 -0
  361. package/dist/types/components/ez-alert/ez-alert.d.ts +10 -0
  362. package/dist/types/components/ez-application/ez-application.d.ts +10 -0
  363. package/dist/types/components/ez-badge/enum/sizes.d.ts +8 -0
  364. package/dist/types/components/ez-badge/ez-badge.d.ts +35 -0
  365. package/dist/types/components/ez-badge/interfaces/IPosition.d.ts +4 -0
  366. package/dist/types/components/ez-breadcrumb/ez-breadcrumb.d.ts +71 -0
  367. package/dist/types/components/ez-breadcrumb/subcomponents/breadcrumb-item.d.ts +13 -0
  368. package/dist/types/components/ez-button/ez-button.d.ts +41 -0
  369. package/dist/types/components/ez-calendar/ez-calendar.d.ts +74 -0
  370. package/dist/types/components/ez-card-item/ez-card-item.d.ts +32 -0
  371. package/dist/types/components/ez-check/CheckMode.d.ts +4 -0
  372. package/dist/types/components/ez-check/ez-check.d.ts +49 -0
  373. package/dist/types/components/ez-chip/ez-chip.d.ts +60 -0
  374. package/dist/types/components/ez-collapsible-box/ez-collapsible-box.d.ts +91 -0
  375. package/dist/types/components/ez-combo-box/ez-combo-box.d.ts +173 -0
  376. package/dist/types/components/ez-date-input/ez-date-input.d.ts +72 -0
  377. package/dist/types/components/ez-date-time-input/ez-date-time-input.d.ts +80 -0
  378. package/dist/types/components/ez-dialog/DialogType.d.ts +6 -0
  379. package/dist/types/components/ez-dialog/ez-dialog.d.ts +82 -0
  380. package/dist/types/components/ez-dropdown/ez-dropdown.d.ts +60 -0
  381. package/dist/types/components/ez-dropdown/structure/DropdownItem.d.ts +28 -0
  382. package/dist/types/components/ez-dropdown/structure/SubmenuControl.d.ts +78 -0
  383. package/dist/types/components/ez-file-item/ez-file-item.d.ts +36 -0
  384. package/dist/types/components/ez-filter-input/ez-filter-input.d.ts +77 -0
  385. package/dist/types/components/ez-form/ez-form.d.ts +42 -0
  386. package/dist/types/components/ez-form/store/form.slice.d.ts +27 -0
  387. package/dist/types/components/ez-form-view/ez-form-view.d.ts +17 -0
  388. package/dist/types/components/ez-form-view/fieldbuilder/FieldBuilder.d.ts +2 -0
  389. package/dist/types/components/ez-form-view/fieldbuilder/templates/CheckBox.tpl.d.ts +3 -0
  390. package/dist/types/components/ez-form-view/fieldbuilder/templates/ComboBox.tpl.d.ts +2 -0
  391. package/dist/types/components/ez-form-view/fieldbuilder/templates/DateInput.tpl.d.ts +4 -0
  392. package/dist/types/components/ez-form-view/fieldbuilder/templates/FileInput.tpl.d.ts +2 -0
  393. package/dist/types/components/ez-form-view/fieldbuilder/templates/NumberInput.tpl.d.ts +3 -0
  394. package/dist/types/components/ez-form-view/fieldbuilder/templates/SearchInput.tpl.d.ts +2 -0
  395. package/dist/types/components/ez-form-view/fieldbuilder/templates/TextArea.tpl.d.ts +2 -0
  396. package/dist/types/components/ez-form-view/fieldbuilder/templates/TextInput.tpl.d.ts +2 -0
  397. package/dist/types/components/ez-form-view/interfaces/IFormViewField.d.ts +3 -0
  398. package/dist/types/components/ez-form-view/interfaces/index.d.ts +1 -0
  399. package/dist/types/components/ez-grid/controller/EzGridController.d.ts +287 -0
  400. package/dist/types/components/ez-grid/controller/ag-grid/AgGridController.d.ts +89 -0
  401. package/dist/types/components/ez-grid/controller/ag-grid/AgGridUtils.d.ts +1 -0
  402. package/dist/types/components/ez-grid/controller/ag-grid/DataSource.d.ts +20 -0
  403. package/dist/types/components/ez-grid/controller/ag-grid/GridEditionManager.d.ts +38 -0
  404. package/dist/types/components/ez-grid/controller/ag-grid/components/EzGridCustomHeader.d.ts +32 -0
  405. package/dist/types/components/ez-grid/controller/ag-grid/components/cellRendererStatus.d.ts +11 -0
  406. package/dist/types/components/ez-grid/controller/ag-grid/components/selectionHeader.d.ts +12 -0
  407. package/dist/types/components/ez-grid/controller/ag-grid/editor/EzCellEditor.d.ts +10 -0
  408. package/dist/types/components/ez-grid/controller/ag-grid/editor/GridEditorUtils.d.ts +1 -0
  409. package/dist/types/components/ez-grid/controller/ag-grid/editor/IEditorMetadata.d.ts +9 -0
  410. package/dist/types/components/ez-grid/controller/ag-grid/editor/IUICellEditor.d.ts +10 -0
  411. package/dist/types/components/ez-grid/controller/ag-grid/editor/templates/ComboBox.tpl.d.ts +4 -0
  412. package/dist/types/components/ez-grid/controller/ag-grid/editor/templates/DateInput.tpl.d.ts +5 -0
  413. package/dist/types/components/ez-grid/controller/ag-grid/editor/templates/NumberInput.tpl.d.ts +4 -0
  414. package/dist/types/components/ez-grid/controller/ag-grid/editor/templates/Search.tpl.d.ts +3 -0
  415. package/dist/types/components/ez-grid/controller/ag-grid/editor/templates/TextInput.tpl.d.ts +4 -0
  416. package/dist/types/components/ez-grid/controller/ag-grid/i18n/pt-BR.d.ts +2 -0
  417. package/dist/types/components/ez-grid/controller/ag-grid/mock/Server.d.ts +8 -0
  418. package/dist/types/components/ez-grid/ez-grid.d.ts +141 -0
  419. package/dist/types/components/ez-grid/interfaces/ISelection.d.ts +3 -0
  420. package/dist/types/components/ez-grid/interfaces/ISelectionToastConfig.d.ts +3 -0
  421. package/dist/types/components/ez-grid/interfaces/index.d.ts +2 -0
  422. package/dist/types/components/ez-grid/subcomponents/filter-column.d.ts +49 -0
  423. package/dist/types/components/ez-grid/subcomponents/selection-counter.d.ts +15 -0
  424. package/dist/types/components/ez-guide-navigator/ez-guide-navigator.d.ts +64 -0
  425. package/dist/types/components/ez-guide-navigator/interfaces/IGuideItem.d.ts +4 -0
  426. package/dist/types/components/ez-guide-navigator/interfaces/index.d.ts +1 -0
  427. package/dist/types/components/ez-icon/ez-icon.d.ts +20 -0
  428. package/dist/types/components/ez-list/ez-list.d.ts +133 -0
  429. package/dist/types/components/ez-loading-bar/ez-loading-bar.d.ts +12 -0
  430. package/dist/types/components/ez-modal/ez-modal.d.ts +53 -0
  431. package/dist/types/components/ez-modal-container/ez-modal-container.d.ts +47 -0
  432. package/dist/types/components/ez-modal-container/index.d.ts +2 -0
  433. package/dist/types/components/ez-modal-container/modal-action.d.ts +7 -0
  434. package/dist/types/components/ez-modal-container/modal-button-status.d.ts +6 -0
  435. package/dist/types/components/ez-multi-selection-list/ez-multi-selection-list.d.ts +64 -0
  436. package/dist/types/components/ez-multi-selection-list/interfaces/IMultiSelectionListDataSource.d.ts +4 -0
  437. package/dist/types/components/ez-multi-selection-list/interfaces/IMultiSelectionOption.d.ts +4 -0
  438. package/dist/types/components/ez-multi-selection-list/subcomponents/multi-selection-box-message.d.ts +4 -0
  439. package/dist/types/components/ez-number-input/ez-number-input.d.ts +81 -0
  440. package/dist/types/components/ez-popover/ez-popover.d.ts +60 -0
  441. package/dist/types/components/ez-popup/ez-popup.d.ts +37 -0
  442. package/dist/types/components/ez-radio-button/ez-radio-button.d.ts +37 -0
  443. package/dist/types/components/ez-scroller/EzScrollDirection.d.ts +5 -0
  444. package/dist/types/components/ez-scroller/ez-scroller.d.ts +38 -0
  445. package/dist/types/components/ez-search/ez-search.d.ts +76 -0
  446. package/dist/types/components/ez-sidebar-button/ez-sidebar-button.d.ts +11 -0
  447. package/dist/types/components/ez-skeleton/ez-skeleton.constants.d.ts +1 -0
  448. package/dist/types/components/ez-skeleton/ez-skeleton.d.ts +54 -0
  449. package/dist/types/components/ez-tabselector/ez-tabselector.d.ts +52 -0
  450. package/dist/types/components/ez-text-area/ez-text-area.d.ts +78 -0
  451. package/dist/types/components/ez-text-edit/ez-text-edit.d.ts +41 -0
  452. package/dist/types/components/ez-text-input/ez-text-input.d.ts +82 -0
  453. package/dist/types/components/ez-time-input/ez-time-input.d.ts +74 -0
  454. package/dist/types/components/ez-toast/ez-toast.d.ts +45 -0
  455. package/dist/types/components/ez-tree/ez-tree.d.ts +101 -0
  456. package/dist/types/components/ez-tree/interfaces/ITree.d.ts +5 -0
  457. package/dist/types/components/ez-tree/interfaces/ITreeItem.d.ts +11 -0
  458. package/dist/types/components/ez-tree/subcomponents/DefaultIconResolver.d.ts +2 -0
  459. package/dist/types/components/ez-tree/subcomponents/DefaultTooltipResolver.d.ts +2 -0
  460. package/dist/types/components/ez-tree/subcomponents/TreeItem.d.ts +15 -0
  461. package/dist/types/components/ez-tree/subcomponents/index.d.ts +2 -0
  462. package/dist/types/components/ez-tree/types/Node.d.ts +22 -0
  463. package/dist/types/components/ez-tree/types/Tree.d.ts +21 -0
  464. package/dist/types/components/ez-upload/RemoteFile.d.ts +14 -0
  465. package/dist/types/components/ez-upload/ez-upload.d.ts +101 -0
  466. package/dist/types/components/ez-view-stack/ez-view-stack.d.ts +25 -0
  467. package/dist/types/components.d.ts +3413 -0
  468. package/dist/types/index.d.ts +1 -0
  469. package/dist/types/stencil-public-runtime.d.ts +1637 -0
  470. package/dist/types/utils/ApplicationUtils.d.ts +31 -0
  471. package/dist/types/utils/AssetsUtils.d.ts +1 -0
  472. package/dist/types/utils/CSSVarsUtils.d.ts +6 -0
  473. package/dist/types/utils/constants.d.ts +3 -0
  474. package/dist/types/utils/form/DataBinder.d.ts +30 -0
  475. package/dist/types/utils/form/FormMetadata.d.ts +23 -0
  476. package/dist/types/utils/form/index.d.ts +2 -0
  477. package/dist/types/utils/form/interfaces/IDefaultConfig.d.ts +5 -0
  478. package/dist/types/utils/form/interfaces/IFormCardConfig.d.ts +5 -0
  479. package/dist/types/utils/form/interfaces/IFormConfig.d.ts +13 -0
  480. package/dist/types/utils/form/interfaces/IFormSheetMetadata.d.ts +6 -0
  481. package/dist/types/utils/form/interfaces/ISummaryField.d.ts +4 -0
  482. package/dist/types/utils/form/interfaces/ITabConfig.d.ts +6 -0
  483. package/dist/types/utils/form/interfaces/index.d.ts +10 -0
  484. package/dist/types/utils/index.d.ts +6 -0
  485. package/dist/types/utils/interfaces/AbstractFieldMetadata.d.ts +17 -0
  486. package/dist/types/utils/interfaces/IFieldConfig.d.ts +13 -0
  487. package/dist/types/utils/utils.d.ts +2 -0
  488. package/dist/types/utils/validators/recordvalidator/IInvalidField.d.ts +4 -0
  489. package/dist/types/utils/validators/recordvalidator/IRecordValidator.d.ts +5 -0
  490. package/dist/types/utils/validators/recordvalidator/IValidationResult.d.ts +8 -0
  491. package/dist/types/utils/validators/recordvalidator/IValidationSource.d.ts +6 -0
  492. package/dist/types/utils/validators/recordvalidator/RecordValidationProcessor.d.ts +13 -0
  493. package/loader/cdn.js +3 -0
  494. package/loader/index.cjs.js +3 -0
  495. package/loader/index.d.ts +21 -0
  496. package/loader/index.es2017.js +3 -0
  497. package/loader/index.js +4 -0
  498. package/loader/package.json +11 -0
  499. package/package.json +95 -0
  500. package/react/.keepfolder +0 -0
  501. package/react/components.d.ts +48 -0
  502. package/react/components.js +52 -0
  503. package/react/components.js.map +1 -0
  504. package/react/react-component-lib/createComponent.d.ts +10 -0
  505. package/react/react-component-lib/createComponent.js +59 -0
  506. package/react/react-component-lib/createComponent.js.map +1 -0
  507. package/react/react-component-lib/createOverlayComponent.d.ts +20 -0
  508. package/react/react-component-lib/createOverlayComponent.js +89 -0
  509. package/react/react-component-lib/createOverlayComponent.js.map +1 -0
  510. package/react/react-component-lib/index.d.ts +2 -0
  511. package/react/react-component-lib/index.js +3 -0
  512. package/react/react-component-lib/index.js.map +1 -0
  513. package/react/react-component-lib/interfaces.d.ts +29 -0
  514. package/react/react-component-lib/interfaces.js +1 -0
  515. package/react/react-component-lib/interfaces.js.map +1 -0
  516. package/react/react-component-lib/utils/attachProps.d.ts +12 -0
  517. package/react/react-component-lib/utils/attachProps.js +96 -0
  518. package/react/react-component-lib/utils/attachProps.js.map +1 -0
  519. package/react/react-component-lib/utils/case.d.ts +2 -0
  520. package/react/react-component-lib/utils/case.js +7 -0
  521. package/react/react-component-lib/utils/case.js.map +1 -0
  522. package/react/react-component-lib/utils/dev.d.ts +2 -0
  523. package/react/react-component-lib/utils/dev.js +13 -0
  524. package/react/react-component-lib/utils/dev.js.map +1 -0
  525. package/react/react-component-lib/utils/index.d.ts +7 -0
  526. package/react/react-component-lib/utils/index.js +21 -0
  527. package/react/react-component-lib/utils/index.js.map +1 -0
@@ -0,0 +1,1081 @@
1
+ import { ElementIDUtils, FloatingManager, ObjectUtils, StringUtils } from "@sankhyalabs/core";
2
+ import { h, Host } from "@stencil/core";
3
+ import { ApplicationUtils, CSSVarsUtils } from "../../utils";
4
+ import { REQUIRED_INFO } from "../../utils/constants";
5
+ export class EzComboBox {
6
+ constructor() {
7
+ this._changeDeboucingTimeout = null;
8
+ this._limitCharsToSearch = 3;
9
+ this._deboucingTime = 300;
10
+ this._maxWidthValue = 0;
11
+ this._tabPressed = false;
12
+ this._textEmptyList = "Nenhum resultado encontrado";
13
+ this._textEmptySearch = "Nenhum resultado de {0} encontrado";
14
+ this._lookupMode = false;
15
+ this._preSelection = undefined;
16
+ this._visibleOptions = undefined;
17
+ this._startLoading = false;
18
+ this._showLoading = true;
19
+ this._criteria = undefined;
20
+ this.value = undefined;
21
+ this.label = undefined;
22
+ this.enabled = true;
23
+ this.options = undefined;
24
+ this.errorMessage = undefined;
25
+ this.searchMode = undefined;
26
+ this.showSelectedValue = false;
27
+ this.showOptionValue = false;
28
+ this.suppressSearch = false;
29
+ this.optionLoader = undefined;
30
+ this.suppressEmptyOption = false;
31
+ this.canShowError = true;
32
+ this.mode = "regular";
33
+ this.listOptionsPosition = undefined;
34
+ }
35
+ observeErrorMessage() {
36
+ var _a;
37
+ if (this._textInput) {
38
+ this._textInput.errorMessage = this.errorMessage;
39
+ if (!((_a = this.errorMessage) === null || _a === void 0 ? void 0 : _a.trim())) {
40
+ this.setInputValue();
41
+ }
42
+ }
43
+ }
44
+ observeValue(newValue, oldValue) {
45
+ if (this._textInput && newValue != oldValue) {
46
+ try {
47
+ if (this.searchMode && typeof newValue === "string") {
48
+ this.setInputValue();
49
+ return;
50
+ }
51
+ const newValueSelected = this.getSelectedOption(newValue);
52
+ const oldValueSelected = this.getSelectedOption(oldValue);
53
+ const currentValue = this.getSelectedOption(this.value);
54
+ if (this.isDifferentValues(currentValue, newValueSelected)) {
55
+ this.value = newValueSelected;
56
+ }
57
+ if (this.isDifferentValues(newValueSelected, oldValueSelected)) {
58
+ this.setInputValue();
59
+ const valueEmitted = newValueSelected === null ? undefined : newValueSelected;
60
+ if (!this._lookupMode) {
61
+ this.ezChange.emit(valueEmitted);
62
+ }
63
+ }
64
+ this.resetOptions();
65
+ }
66
+ finally {
67
+ this._lookupMode = false;
68
+ }
69
+ }
70
+ }
71
+ observeOptions(newOptions, oldOptions) {
72
+ if ((newOptions === null || newOptions === void 0 ? void 0 : newOptions.join('')) === (oldOptions === null || oldOptions === void 0 ? void 0 : oldOptions.join('')))
73
+ return;
74
+ this.loadOptions(SearchMode.PRELOAD);
75
+ }
76
+ /*
77
+ * Retorna uma promise com o valor da opção selecionada,
78
+ * que será resolvida quando o backend devolver este dado.
79
+ */
80
+ async getValueAsync() {
81
+ if (!this._showLoading) {
82
+ return new Promise(resolve => resolve(this.value));
83
+ }
84
+ return new Promise(resolve => {
85
+ let id = setInterval(() => {
86
+ if (!this._showLoading) {
87
+ clearInterval(id);
88
+ resolve(this.value);
89
+ }
90
+ }, 100);
91
+ });
92
+ }
93
+ /**
94
+ * Aplica o foco no campo.
95
+ */
96
+ async setFocus() {
97
+ if (this._textInput) {
98
+ this._textInput.setFocus();
99
+ }
100
+ }
101
+ /**
102
+ * Remove o foco do campo.
103
+ */
104
+ async setBlur() {
105
+ if (this._textInput) {
106
+ this._textInput.setBlur();
107
+ }
108
+ }
109
+ /**
110
+ * Retorna se o conteúdo é inválido.
111
+ */
112
+ async isInvalid() {
113
+ return typeof this.errorMessage === "string" && this.errorMessage.trim() !== "";
114
+ }
115
+ /**
116
+ * Limpa o valor do campo de pesquisa
117
+ */
118
+ async clearValue() {
119
+ this.clearSearch();
120
+ }
121
+ scrollListener() {
122
+ var _a;
123
+ if (this._floatingID == undefined) {
124
+ return;
125
+ }
126
+ if ((_a = this.listOptionsPosition) === null || _a === void 0 ? void 0 : _a.hardPosition) {
127
+ this.hideOptions();
128
+ }
129
+ else {
130
+ window.requestAnimationFrame(() => {
131
+ this.updateListPosition();
132
+ });
133
+ }
134
+ }
135
+ updateListPosition() {
136
+ let { verticalPosition, horizontalPosition, fromBottom, fromRight, bottomLimit, hardPosition } = this.getListPosition();
137
+ const elementRect = this._listWrapper.getBoundingClientRect();
138
+ const containerRect = this._listContainer.getBoundingClientRect();
139
+ const textInputRect = this._textInput.getBoundingClientRect();
140
+ const limitHeight = bottomLimit || window.innerHeight;
141
+ const neededHeight = containerRect.bottom + elementRect.height;
142
+ if (!fromBottom && (elementRect.top < 0 || neededHeight > limitHeight)) {
143
+ fromBottom = true;
144
+ }
145
+ if (!hardPosition) {
146
+ verticalPosition = verticalPosition || 0;
147
+ horizontalPosition = horizontalPosition || 0;
148
+ if (fromBottom) {
149
+ verticalPosition = window.innerHeight - textInputRect.top + verticalPosition;
150
+ }
151
+ else {
152
+ verticalPosition += containerRect.top;
153
+ }
154
+ if (fromRight) {
155
+ horizontalPosition = window.innerWidth - textInputRect.right + horizontalPosition;
156
+ }
157
+ else {
158
+ horizontalPosition += containerRect.left;
159
+ }
160
+ }
161
+ if (verticalPosition != undefined) {
162
+ this._listWrapper.style[fromBottom ? "bottom" : "top"] = `${verticalPosition}px`;
163
+ this._listWrapper.style[fromBottom ? "top" : "bottom"] = "";
164
+ }
165
+ if (horizontalPosition != undefined) {
166
+ this._listWrapper.style[fromRight ? "right" : "left"] = `${horizontalPosition}px`;
167
+ this._listWrapper.style[fromRight ? "left" : "right"] = "";
168
+ }
169
+ }
170
+ getListPosition() {
171
+ if (this.listOptionsPosition) {
172
+ return this.listOptionsPosition;
173
+ }
174
+ return {
175
+ verticalPosition: (this.errorMessage || !this.canShowError || this.mode === "slim") ? 6 : -13
176
+ };
177
+ }
178
+ isDifferentValues(firstValue, secondValue) {
179
+ return ObjectUtils.objectToString(firstValue || {}) !== ObjectUtils.objectToString(secondValue || {});
180
+ }
181
+ getFormattedText(currentValue) {
182
+ if (currentValue == undefined) {
183
+ return;
184
+ }
185
+ if (!this.showSelectedValue || currentValue.value == undefined) {
186
+ return currentValue.label;
187
+ }
188
+ return currentValue.label ? `${currentValue.value} - ${currentValue.label}` : currentValue.value;
189
+ }
190
+ getText() {
191
+ const currentValue = this.getSelectedOption(this.value);
192
+ const text = this.getFormattedText(currentValue);
193
+ if (text == undefined) {
194
+ return;
195
+ }
196
+ return String(text)
197
+ .replace(/&amp;/g, '&')
198
+ .replace(/&lt;/g, '<')
199
+ .replace(/&gt;/g, '>')
200
+ .replace(/&quot;/g, '"');
201
+ }
202
+ getSelectedOption(value) {
203
+ if (typeof value === "string" || value instanceof String) {
204
+ return this._visibleOptions.find(o => o.value === value);
205
+ }
206
+ return value;
207
+ }
208
+ updateVisibleOptions() {
209
+ let opts = this._source || [];
210
+ if (!this.searchMode && this._criteria) {
211
+ const upperCriteria = this._criteria.toUpperCase();
212
+ opts = opts.filter(opt => opt.label.toLocaleUpperCase().indexOf(upperCriteria) > -1);
213
+ }
214
+ if (this.suppressEmptyOption) {
215
+ this._visibleOptions = opts;
216
+ }
217
+ else {
218
+ this._visibleOptions = [{ value: undefined, label: "" }].concat(opts);
219
+ }
220
+ this._maxWidthValue = this.getMaxWidthValue();
221
+ }
222
+ getMaxWidthValue() {
223
+ var _a;
224
+ if (this.showOptionValue) {
225
+ const arrValues = [];
226
+ (_a = this._visibleOptions) === null || _a === void 0 ? void 0 : _a.forEach(opt => {
227
+ const widthValue = this.getWidthValue(opt.value);
228
+ if (!arrValues.includes(widthValue)) {
229
+ arrValues.push(widthValue);
230
+ }
231
+ });
232
+ return arrValues.length > 1 ? Math.max(...arrValues) : 0;
233
+ }
234
+ return 0;
235
+ }
236
+ getWidthValue(value) {
237
+ if (this._itemValueBasis != undefined) {
238
+ const span = this._itemValueBasis;
239
+ if (value != undefined) {
240
+ span.innerHTML = value;
241
+ return span.clientWidth > 0 ? (span.clientWidth + 2) : 0;
242
+ }
243
+ else {
244
+ span.innerHTML = "";
245
+ }
246
+ }
247
+ return 0;
248
+ }
249
+ buildItem(opt, index) {
250
+ const widthValue = this.showOptionValue && this._maxWidthValue > 0 ? `${this._maxWidthValue}px` : '';
251
+ opt.label = opt.label || opt.value;
252
+ return h("li", { class: index === this._preSelection ? "item preselected" : "item", id: `item_${opt.value}`, onMouseDown: () => this.selectOption(opt), onMouseOver: () => this._preSelection = index }, this.showOptionValue
253
+ ? h("span", { class: "item__value", title: opt.value, style: { width: widthValue, minWidth: widthValue, maxWidth: widthValue } }, opt.value)
254
+ : undefined, h("span", { class: "item__label " + (this.showOptionValue ? "item__label--bold" : ""), title: opt.label }, opt.label));
255
+ }
256
+ showOptions() {
257
+ if (!this.enabled)
258
+ return;
259
+ if (this.isOptionsVisible()) {
260
+ return;
261
+ }
262
+ if (!!this._resizeObserver)
263
+ this._resizeObserver.observe(this._textInput);
264
+ this._floatingID = FloatingManager.float(this._listWrapper, this._listContainer, { autoClose: true, isFixed: true, backClickListener: () => this.hideOptions() });
265
+ this.setFocus();
266
+ window.requestAnimationFrame(() => {
267
+ this.updateListPosition();
268
+ if (!this.listOptionsPosition) {
269
+ this._listWrapper.scrollIntoView({ behavior: "smooth", block: "nearest", inline: "nearest" });
270
+ }
271
+ });
272
+ }
273
+ hideOptions() {
274
+ if (this._floatingID !== undefined) {
275
+ FloatingManager.close(this._floatingID);
276
+ }
277
+ this._floatingID = undefined;
278
+ if (!!this._resizeObserver)
279
+ this._resizeObserver.unobserve(this._textInput);
280
+ }
281
+ isOptionsVisible() {
282
+ return this._floatingID !== undefined && FloatingManager.isFloating(this._floatingID);
283
+ }
284
+ nextOption() {
285
+ if (this.searchMode && !this.isOptionsVisible()) {
286
+ return;
287
+ }
288
+ this.showOptions();
289
+ this._preSelection = this._preSelection === undefined ? 0 : Math.min(this._preSelection + 1, this._visibleOptions.length - 1);
290
+ this.scrollToOption(this._visibleOptions[this._preSelection]);
291
+ }
292
+ previousOption() {
293
+ this._preSelection = this._preSelection === undefined ? 0 : Math.max(this._preSelection - 1, 0);
294
+ this.scrollToOption(this._visibleOptions[this._preSelection]);
295
+ }
296
+ scrollToOption(opt) {
297
+ window.requestAnimationFrame(() => {
298
+ const liElem = (opt === null || opt === void 0 ? void 0 : opt.value) ? this._optionsList.querySelector(`li#item_${opt.value.replace(/[<>\[\]#=]/g, '\\$&').replace(/:/g, '\\:')}`) : undefined;
299
+ if (liElem)
300
+ liElem.scrollIntoView({ behavior: "smooth", block: "nearest" });
301
+ });
302
+ }
303
+ selectCurrentOption() {
304
+ if (this._preSelection !== undefined) {
305
+ this.selectOption(this._visibleOptions[this._preSelection]);
306
+ this._preSelection = undefined;
307
+ }
308
+ else {
309
+ this.controlListWithOnlyOne();
310
+ }
311
+ }
312
+ updateSource(source) {
313
+ this._startLoading = false;
314
+ if (source instanceof Promise) {
315
+ this._showLoading = true;
316
+ source.then(result => {
317
+ this._showLoading = false;
318
+ this.updateSource(result);
319
+ }).catch(() => this._showLoading = false);
320
+ this.updateVisibleOptions();
321
+ }
322
+ else {
323
+ this._showLoading = false;
324
+ if (Array.isArray(source)) {
325
+ this._source = source;
326
+ this.updateVisibleOptions();
327
+ if (this._tabPressed) {
328
+ this._tabPressed = false;
329
+ this.controlEmptySearch();
330
+ }
331
+ }
332
+ else {
333
+ this.selectOption(source);
334
+ }
335
+ }
336
+ }
337
+ clearSource() {
338
+ this._source = [];
339
+ this.updateVisibleOptions();
340
+ }
341
+ selectOption(newOption) {
342
+ var _a, _b;
343
+ const currentValue = this.getSelectedOption(this.value);
344
+ if ((((_a = currentValue === null || currentValue === void 0 ? void 0 : currentValue.value) === null || _a === void 0 ? void 0 : _a.toString()) !== ((_b = newOption === null || newOption === void 0 ? void 0 : newOption.value) === null || _b === void 0 ? void 0 : _b.toString()))
345
+ || (currentValue == undefined && newOption != undefined && "value" in newOption)) {
346
+ const adjustedOpt = !(newOption === null || newOption === void 0 ? void 0 : newOption.value) ? undefined : newOption;
347
+ this.value = adjustedOpt;
348
+ }
349
+ else {
350
+ this.resetOptions();
351
+ }
352
+ if (this.searchMode) {
353
+ this._visibleOptions = [];
354
+ this.clearSource();
355
+ }
356
+ this.setFocus();
357
+ }
358
+ loadOptions(mode, argument = "") {
359
+ this._criteria = argument;
360
+ this._startLoading = true;
361
+ if (this.optionLoader) {
362
+ const searchArgument = { mode, argument };
363
+ this.updateSource(this.optionLoader(searchArgument));
364
+ }
365
+ else {
366
+ this.updateSource(this.options);
367
+ }
368
+ }
369
+ cancelPreselection() {
370
+ if (!this._textInput.value && this.value) {
371
+ this.selectOption(undefined);
372
+ }
373
+ else {
374
+ window.setTimeout(() => {
375
+ this.setInputValue();
376
+ }, this._deboucingTime);
377
+ }
378
+ this.resetOptions();
379
+ }
380
+ setInputValue(clearError = true) {
381
+ const textValue = this.getText();
382
+ if ((this._textInput.value || '') !== textValue) {
383
+ this._textInput.value = textValue;
384
+ if (clearError) {
385
+ this.errorMessage = null;
386
+ }
387
+ }
388
+ }
389
+ clearSearch() {
390
+ this.value = null;
391
+ }
392
+ controlListWithOnlyOne() {
393
+ var _a;
394
+ if (this.searchMode) {
395
+ const source = (_a = this._visibleOptions) === null || _a === void 0 ? void 0 : _a.filter((opt) => opt.label !== "" && opt.value != undefined);
396
+ if ((source === null || source === void 0 ? void 0 : source.length) === 1) {
397
+ this.selectOption(source[0]);
398
+ }
399
+ }
400
+ }
401
+ controlEmptySearch() {
402
+ var _a;
403
+ if (this.searchMode) {
404
+ if (!((_a = this._visibleOptions) === null || _a === void 0 ? void 0 : _a.length)) {
405
+ this.clearSearch();
406
+ ApplicationUtils.info(this._textEmptyList);
407
+ }
408
+ else {
409
+ this.controlListWithOnlyOne();
410
+ }
411
+ }
412
+ }
413
+ validateDescriptionValue() {
414
+ if (!this.searchMode || StringUtils.isEmpty(this.value)) {
415
+ return;
416
+ }
417
+ let value = this.value;
418
+ if (typeof value === "object") {
419
+ return;
420
+ }
421
+ if (StringUtils.isEmpty(value)) {
422
+ return;
423
+ }
424
+ this.loadDescriptionValue(value);
425
+ }
426
+ async loadDescriptionValue(argument) {
427
+ var _a, _b;
428
+ if (argument == undefined) {
429
+ return;
430
+ }
431
+ if (((_a = this.options) === null || _a === void 0 ? void 0 : _a.length) > 0) {
432
+ this.loadOptionValue(argument);
433
+ return;
434
+ }
435
+ const searchArgument = {
436
+ mode: SearchMode.PREDICTIVE,
437
+ argument
438
+ };
439
+ const source = await ((_b = this.optionLoader) === null || _b === void 0 ? void 0 : _b.call(this, searchArgument));
440
+ if (source == undefined) {
441
+ return;
442
+ }
443
+ if (source instanceof Promise) {
444
+ source.then((result) => {
445
+ this.setDescriptionValue(result);
446
+ });
447
+ }
448
+ else {
449
+ this.setDescriptionValue(source);
450
+ }
451
+ }
452
+ setDescriptionValue(source) {
453
+ const value = (source === null || source === void 0 ? void 0 : source[0]) || source;
454
+ if (value == undefined || !Object.keys(value).length) {
455
+ this.showNoResultMessage();
456
+ return;
457
+ }
458
+ this._lookupMode = true;
459
+ this.value = value;
460
+ }
461
+ loadOptionValue(argument) {
462
+ var _a;
463
+ const source = (_a = this.options) === null || _a === void 0 ? void 0 : _a.find((opt) => opt.value === argument);
464
+ if (source != undefined) {
465
+ this.selectOption(source);
466
+ }
467
+ else {
468
+ this.showNoResultMessage();
469
+ }
470
+ }
471
+ async showNoResultMessage() {
472
+ this.clearSearch();
473
+ ApplicationUtils.info(this._textEmptySearch.replace("{0}", this.getFieldLabel()));
474
+ }
475
+ getFieldLabel() {
476
+ var _a;
477
+ return (_a = this.label) === null || _a === void 0 ? void 0 : _a.replace(REQUIRED_INFO, "").toUpperCase();
478
+ }
479
+ resetOptions() {
480
+ this.hideOptions();
481
+ this._criteria = undefined;
482
+ this._preSelection = undefined;
483
+ this.updateVisibleOptions();
484
+ }
485
+ //---------------------------------------------
486
+ // Lifecycle web component
487
+ //---------------------------------------------
488
+ componentWillLoad() {
489
+ if (this.options === undefined) {
490
+ this.options = [];
491
+ const optionsTags = this.el.querySelectorAll("option");
492
+ if (optionsTags) {
493
+ optionsTags.forEach(e => {
494
+ let label = e.innerText;
495
+ let value = e.getAttribute("value");
496
+ if (!value) {
497
+ value = label;
498
+ }
499
+ this.options.push({ label, value });
500
+ e.hidden = true;
501
+ });
502
+ }
503
+ }
504
+ if (this.searchMode) {
505
+ this.updateSource([]);
506
+ }
507
+ else {
508
+ this.loadOptions(SearchMode.PRELOAD);
509
+ }
510
+ }
511
+ componentDidRender() {
512
+ var _a;
513
+ if (this._floatingID === undefined) {
514
+ this._listWrapper.remove();
515
+ }
516
+ (_a = this._optionsList) === null || _a === void 0 ? void 0 : _a.querySelectorAll(".item").forEach((elem) => {
517
+ ElementIDUtils.addIDInfoIfNotExists(elem, "itemComboBox");
518
+ });
519
+ this.validateDescriptionValue();
520
+ }
521
+ componentDidLoad() {
522
+ CSSVarsUtils.applyVarsTextInput(this.el, this._textInput);
523
+ this.setInputValue(false);
524
+ this._resizeObserver = new ResizeObserver((entries) => {
525
+ window.requestAnimationFrame(() => {
526
+ if (!Array.isArray(entries) || !entries.length)
527
+ return;
528
+ const { clientWidth } = this._listContainer;
529
+ if (clientWidth > 0 && !!this._listWrapper) {
530
+ this._listWrapper.style.width = `${clientWidth}px`;
531
+ }
532
+ });
533
+ });
534
+ }
535
+ //---------------------------------------------
536
+ // Event handlers
537
+ //---------------------------------------------
538
+ handlerIconClick() {
539
+ this.searchMode ? this.loadOptions(SearchMode.ADVANCED) : this.showOptions();
540
+ }
541
+ onTextInputChangeHandler(event) {
542
+ var _a;
543
+ this.clearDeboucingTimeout();
544
+ if (this._startLoading) {
545
+ this._changeDeboucingTimeout = window.setTimeout(() => {
546
+ this.onTextInputChangeHandler(event);
547
+ }, this._deboucingTime);
548
+ return;
549
+ }
550
+ const argument = (_a = event.target.value) === null || _a === void 0 ? void 0 : _a.trim();
551
+ const argumentNumber = Number(argument || undefined);
552
+ if (!this._criteria) {
553
+ this._textInput.value = event.data || argument;
554
+ }
555
+ this._criteria = argument;
556
+ if (argument) {
557
+ if (this.searchMode) {
558
+ this._showLoading = false;
559
+ this.clearSource();
560
+ if (!isNaN(argumentNumber) || argument.length >= this._limitCharsToSearch) {
561
+ this._showLoading = true;
562
+ this._changeDeboucingTimeout = window.setTimeout(() => {
563
+ this.loadOptions(SearchMode.PREDICTIVE, isNaN(argumentNumber) ? argument : argumentNumber.toString());
564
+ }, this._deboucingTime);
565
+ this.showOptions();
566
+ }
567
+ else {
568
+ this.hideOptions();
569
+ }
570
+ }
571
+ else {
572
+ this.updateVisibleOptions();
573
+ this.showOptions();
574
+ }
575
+ }
576
+ else {
577
+ this.hideOptions();
578
+ if (this.searchMode) {
579
+ this._showLoading = false;
580
+ this.clearSource();
581
+ }
582
+ else {
583
+ this.updateVisibleOptions();
584
+ }
585
+ }
586
+ }
587
+ clearDeboucingTimeout() {
588
+ if (this._changeDeboucingTimeout) {
589
+ window.clearTimeout(this._changeDeboucingTimeout);
590
+ this._changeDeboucingTimeout = null;
591
+ }
592
+ }
593
+ onTextInputClickHandler() {
594
+ if (!this.searchMode) {
595
+ this.showOptions();
596
+ }
597
+ }
598
+ keyDownHandler(event) {
599
+ this._tabPressed = false;
600
+ if (event.ctrlKey) {
601
+ if (event.key === "f" || event.key === "F") {
602
+ this.loadOptions(SearchMode.ADVANCED);
603
+ //ATENÇÃO: Ctrl + F tem ação específica nos browsers
604
+ //nesse caso, como vamos abrir o popup de busca avançada,
605
+ //não é interessante deixar o evento propagar;
606
+ event.stopPropagation();
607
+ event.stopImmediatePropagation();
608
+ event.preventDefault();
609
+ }
610
+ }
611
+ switch (event.key) {
612
+ case "ArrowDown":
613
+ this.nextOption();
614
+ event.stopPropagation();
615
+ break;
616
+ case "ArrowUp":
617
+ this.previousOption();
618
+ event.stopPropagation();
619
+ break;
620
+ case "Enter":
621
+ this.selectCurrentOption();
622
+ break;
623
+ case "Escape":
624
+ this.cancelPreselection();
625
+ break;
626
+ case "Tab":
627
+ this._tabPressed = true;
628
+ this.controlListWithOnlyOne();
629
+ break;
630
+ }
631
+ //ATENÇÃO: Existe a necessidade de propagar o evento de teclado.
632
+ //Por exemplo, quando o usuário dá um Enter, além de selecionar
633
+ //um valor, também significa que a ateração finalizou,
634
+ //e o contexto pode reagir (fechar um popup por exemplo).
635
+ //event.stopPropagation();
636
+ }
637
+ onTextInputFocusOutHandler() {
638
+ this.cancelPreselection();
639
+ }
640
+ canShowListOptions() {
641
+ return !this._showLoading && this._visibleOptions.length > 0;
642
+ }
643
+ render() {
644
+ var _a;
645
+ ElementIDUtils.addIDInfoIfNotExists(this.el, 'input');
646
+ 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), onClick: () => this.onTextInputClickHandler(), 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: this.searchMode ? "leftIcon" : "rightIcon", disabled: !this.enabled, tabindex: -1, onClick: () => this.handlerIconClick() }, h("ez-icon", { iconName: this.searchMode ? "search" : "chevron-down" })), this.searchMode && ((_a = this._textInput) === null || _a === void 0 ? void 0 : _a.value) && (this._criteria || this.value)
647
+ ? h("button", { class: "btn btn__close", slot: "rightIcon", disabled: !this.enabled, tabindex: -1, onClick: () => this.clearSearch() }, h("ez-icon", { iconName: "close" }))
648
+ : 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
649
+ && this._visibleOptions.length === 0
650
+ && h("div", { class: "message" }, h("span", { class: "message__no-result" }, this._textEmptyList)), this._showLoading
651
+ && h("div", { class: "message" }, h("div", { class: "message__loading" })), this.showOptionValue
652
+ ? h("span", { class: "item__value item__value--hidden", ref: elem => this._itemValueBasis = elem })
653
+ : undefined, this.canShowListOptions() && this._visibleOptions.map((opt, index) => this.buildItem(opt, index)))))));
654
+ }
655
+ static get is() { return "ez-combo-box"; }
656
+ static get encapsulation() { return "shadow"; }
657
+ static get originalStyleUrls() {
658
+ return {
659
+ "$": ["ez-combo-box.css"]
660
+ };
661
+ }
662
+ static get styleUrls() {
663
+ return {
664
+ "$": ["ez-combo-box.css"]
665
+ };
666
+ }
667
+ static get properties() {
668
+ return {
669
+ "value": {
670
+ "type": "string",
671
+ "mutable": true,
672
+ "complexType": {
673
+ "original": "IOption | string",
674
+ "resolved": "IOption | string",
675
+ "references": {
676
+ "IOption": {
677
+ "location": "local"
678
+ }
679
+ }
680
+ },
681
+ "required": false,
682
+ "optional": false,
683
+ "docs": {
684
+ "tags": [],
685
+ "text": "Define o valor do campo."
686
+ },
687
+ "attribute": "value",
688
+ "reflect": true
689
+ },
690
+ "label": {
691
+ "type": "string",
692
+ "mutable": false,
693
+ "complexType": {
694
+ "original": "string",
695
+ "resolved": "string",
696
+ "references": {}
697
+ },
698
+ "required": false,
699
+ "optional": false,
700
+ "docs": {
701
+ "tags": [],
702
+ "text": "Texto a ser apresentado como t\u00EDtulo do campo."
703
+ },
704
+ "attribute": "label",
705
+ "reflect": true
706
+ },
707
+ "enabled": {
708
+ "type": "boolean",
709
+ "mutable": false,
710
+ "complexType": {
711
+ "original": "boolean",
712
+ "resolved": "boolean",
713
+ "references": {}
714
+ },
715
+ "required": false,
716
+ "optional": false,
717
+ "docs": {
718
+ "tags": [],
719
+ "text": "Se false o usu\u00E1rio n\u00E3o pode interagir com o campo."
720
+ },
721
+ "attribute": "enabled",
722
+ "reflect": true,
723
+ "defaultValue": "true"
724
+ },
725
+ "options": {
726
+ "type": "unknown",
727
+ "mutable": true,
728
+ "complexType": {
729
+ "original": "Array<IOption>",
730
+ "resolved": "IOption[]",
731
+ "references": {
732
+ "Array": {
733
+ "location": "global"
734
+ },
735
+ "IOption": {
736
+ "location": "local"
737
+ }
738
+ }
739
+ },
740
+ "required": false,
741
+ "optional": false,
742
+ "docs": {
743
+ "tags": [],
744
+ "text": "Array com as op\u00E7\u00F5es do ez-combo-box. Os elementos devem obedecer\no formato: `{value: string, label: string}`."
745
+ }
746
+ },
747
+ "errorMessage": {
748
+ "type": "string",
749
+ "mutable": true,
750
+ "complexType": {
751
+ "original": "string",
752
+ "resolved": "string",
753
+ "references": {}
754
+ },
755
+ "required": false,
756
+ "optional": false,
757
+ "docs": {
758
+ "tags": [],
759
+ "text": "Define uma mensagem de orienta\u00E7\u00E3o ao usu\u00E1rio, colocando o campo em modo inv\u00E1lido."
760
+ },
761
+ "attribute": "error-message",
762
+ "reflect": true
763
+ },
764
+ "searchMode": {
765
+ "type": "boolean",
766
+ "mutable": false,
767
+ "complexType": {
768
+ "original": "boolean",
769
+ "resolved": "boolean",
770
+ "references": {}
771
+ },
772
+ "required": false,
773
+ "optional": false,
774
+ "docs": {
775
+ "tags": [],
776
+ "text": "Se true ativa o modo pesquisa do ez-combo-box."
777
+ },
778
+ "attribute": "search-mode",
779
+ "reflect": false
780
+ },
781
+ "showSelectedValue": {
782
+ "type": "boolean",
783
+ "mutable": false,
784
+ "complexType": {
785
+ "original": "boolean",
786
+ "resolved": "boolean",
787
+ "references": {}
788
+ },
789
+ "required": false,
790
+ "optional": false,
791
+ "docs": {
792
+ "tags": [],
793
+ "text": "Se true a op\u00E7\u00E3o selecionada exibe o `value` junto com `label`."
794
+ },
795
+ "attribute": "show-selected-value",
796
+ "reflect": false,
797
+ "defaultValue": "false"
798
+ },
799
+ "showOptionValue": {
800
+ "type": "boolean",
801
+ "mutable": false,
802
+ "complexType": {
803
+ "original": "boolean",
804
+ "resolved": "boolean",
805
+ "references": {}
806
+ },
807
+ "required": false,
808
+ "optional": false,
809
+ "docs": {
810
+ "tags": [],
811
+ "text": "Se true cada op\u00E7\u00E3o na lista exibe o `value` junto com `label`."
812
+ },
813
+ "attribute": "show-option-value",
814
+ "reflect": false,
815
+ "defaultValue": "false"
816
+ },
817
+ "suppressSearch": {
818
+ "type": "boolean",
819
+ "mutable": false,
820
+ "complexType": {
821
+ "original": "boolean",
822
+ "resolved": "boolean",
823
+ "references": {}
824
+ },
825
+ "required": false,
826
+ "optional": false,
827
+ "docs": {
828
+ "tags": [],
829
+ "text": "Se true desabilita a digita\u00E7\u00E3o dentro do componente."
830
+ },
831
+ "attribute": "suppress-search",
832
+ "reflect": false,
833
+ "defaultValue": "false"
834
+ },
835
+ "optionLoader": {
836
+ "type": "unknown",
837
+ "mutable": false,
838
+ "complexType": {
839
+ "original": "(argument: ISearchArgument) => Promise<Array<IOption>> | Array<IOption> | IOption",
840
+ "resolved": "(argument: ISearchArgument) => IOption | IOption[] | Promise<IOption[]>",
841
+ "references": {
842
+ "ISearchArgument": {
843
+ "location": "local"
844
+ },
845
+ "Promise": {
846
+ "location": "global"
847
+ },
848
+ "Array": {
849
+ "location": "global"
850
+ },
851
+ "IOption": {
852
+ "location": "local"
853
+ }
854
+ }
855
+ },
856
+ "required": false,
857
+ "optional": false,
858
+ "docs": {
859
+ "tags": [],
860
+ "text": "Carrega as op\u00E7\u00F5es dinamicamente."
861
+ }
862
+ },
863
+ "suppressEmptyOption": {
864
+ "type": "boolean",
865
+ "mutable": false,
866
+ "complexType": {
867
+ "original": "boolean",
868
+ "resolved": "boolean",
869
+ "references": {}
870
+ },
871
+ "required": false,
872
+ "optional": false,
873
+ "docs": {
874
+ "tags": [],
875
+ "text": "Se true remove a op\u00E7\u00E3o vazia da lista."
876
+ },
877
+ "attribute": "suppress-empty-option",
878
+ "reflect": false,
879
+ "defaultValue": "false"
880
+ },
881
+ "canShowError": {
882
+ "type": "boolean",
883
+ "mutable": false,
884
+ "complexType": {
885
+ "original": "boolean",
886
+ "resolved": "boolean",
887
+ "references": {}
888
+ },
889
+ "required": false,
890
+ "optional": false,
891
+ "docs": {
892
+ "tags": [],
893
+ "text": "Se false deixa de exibir a mensagem de erro dentro do campo."
894
+ },
895
+ "attribute": "can-show-error",
896
+ "reflect": true,
897
+ "defaultValue": "true"
898
+ },
899
+ "mode": {
900
+ "type": "string",
901
+ "mutable": false,
902
+ "complexType": {
903
+ "original": "\"slim\" | \"regular\"",
904
+ "resolved": "\"regular\" | \"slim\"",
905
+ "references": {}
906
+ },
907
+ "required": false,
908
+ "optional": false,
909
+ "docs": {
910
+ "tags": [],
911
+ "text": "Define o tamanho do campo."
912
+ },
913
+ "attribute": "mode",
914
+ "reflect": true,
915
+ "defaultValue": "\"regular\""
916
+ },
917
+ "listOptionsPosition": {
918
+ "type": "unknown",
919
+ "mutable": false,
920
+ "complexType": {
921
+ "original": "IEzCheckBoxListPosition",
922
+ "resolved": "IEzCheckBoxListPosition",
923
+ "references": {
924
+ "IEzCheckBoxListPosition": {
925
+ "location": "local"
926
+ }
927
+ }
928
+ },
929
+ "required": false,
930
+ "optional": false,
931
+ "docs": {
932
+ "tags": [],
933
+ "text": "Define um posicionamento fixo para a lista de op\u00E7\u00F5es do CheckBox."
934
+ }
935
+ }
936
+ };
937
+ }
938
+ static get states() {
939
+ return {
940
+ "_preSelection": {},
941
+ "_visibleOptions": {},
942
+ "_startLoading": {},
943
+ "_showLoading": {},
944
+ "_criteria": {}
945
+ };
946
+ }
947
+ static get events() {
948
+ return [{
949
+ "method": "ezChange",
950
+ "name": "ezChange",
951
+ "bubbles": true,
952
+ "cancelable": true,
953
+ "composed": true,
954
+ "docs": {
955
+ "tags": [],
956
+ "text": "Emitido quando acontece a altera\u00E7\u00E3o de valor do campo."
957
+ },
958
+ "complexType": {
959
+ "original": "IOption",
960
+ "resolved": "IOption",
961
+ "references": {
962
+ "IOption": {
963
+ "location": "local"
964
+ }
965
+ }
966
+ }
967
+ }];
968
+ }
969
+ static get methods() {
970
+ return {
971
+ "getValueAsync": {
972
+ "complexType": {
973
+ "signature": "() => Promise<unknown>",
974
+ "parameters": [],
975
+ "references": {
976
+ "Promise": {
977
+ "location": "global"
978
+ }
979
+ },
980
+ "return": "Promise<unknown>"
981
+ },
982
+ "docs": {
983
+ "text": "",
984
+ "tags": []
985
+ }
986
+ },
987
+ "setFocus": {
988
+ "complexType": {
989
+ "signature": "() => Promise<void>",
990
+ "parameters": [],
991
+ "references": {
992
+ "Promise": {
993
+ "location": "global"
994
+ }
995
+ },
996
+ "return": "Promise<void>"
997
+ },
998
+ "docs": {
999
+ "text": "Aplica o foco no campo.",
1000
+ "tags": []
1001
+ }
1002
+ },
1003
+ "setBlur": {
1004
+ "complexType": {
1005
+ "signature": "() => Promise<void>",
1006
+ "parameters": [],
1007
+ "references": {
1008
+ "Promise": {
1009
+ "location": "global"
1010
+ }
1011
+ },
1012
+ "return": "Promise<void>"
1013
+ },
1014
+ "docs": {
1015
+ "text": "Remove o foco do campo.",
1016
+ "tags": []
1017
+ }
1018
+ },
1019
+ "isInvalid": {
1020
+ "complexType": {
1021
+ "signature": "() => Promise<boolean>",
1022
+ "parameters": [],
1023
+ "references": {
1024
+ "Promise": {
1025
+ "location": "global"
1026
+ }
1027
+ },
1028
+ "return": "Promise<boolean>"
1029
+ },
1030
+ "docs": {
1031
+ "text": "Retorna se o conte\u00FAdo \u00E9 inv\u00E1lido.",
1032
+ "tags": []
1033
+ }
1034
+ },
1035
+ "clearValue": {
1036
+ "complexType": {
1037
+ "signature": "() => Promise<void>",
1038
+ "parameters": [],
1039
+ "references": {
1040
+ "Promise": {
1041
+ "location": "global"
1042
+ }
1043
+ },
1044
+ "return": "Promise<void>"
1045
+ },
1046
+ "docs": {
1047
+ "text": "Limpa o valor do campo de pesquisa",
1048
+ "tags": []
1049
+ }
1050
+ }
1051
+ };
1052
+ }
1053
+ static get elementRef() { return "el"; }
1054
+ static get watchers() {
1055
+ return [{
1056
+ "propName": "errorMessage",
1057
+ "methodName": "observeErrorMessage"
1058
+ }, {
1059
+ "propName": "value",
1060
+ "methodName": "observeValue"
1061
+ }, {
1062
+ "propName": "options",
1063
+ "methodName": "observeOptions"
1064
+ }];
1065
+ }
1066
+ static get listeners() {
1067
+ return [{
1068
+ "name": "scroll",
1069
+ "method": "scrollListener",
1070
+ "target": "window",
1071
+ "capture": true,
1072
+ "passive": true
1073
+ }];
1074
+ }
1075
+ }
1076
+ var SearchMode;
1077
+ (function (SearchMode) {
1078
+ SearchMode["ADVANCED"] = "ADVANCED";
1079
+ SearchMode["PRELOAD"] = "PRELOAD";
1080
+ SearchMode["PREDICTIVE"] = "PREDICTIVE";
1081
+ })(SearchMode || (SearchMode = {}));