@sankhyalabs/ezui 5.22.0-dev.12 → 5.22.0-dev.121

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 (469) hide show
  1. package/dist/cjs/{CSSVarsUtils-10c9d5b4.js → CSSVarsUtils-f20973d1.js} +1 -0
  2. package/dist/cjs/DataBinder-b9973a19.js +474 -0
  3. package/dist/cjs/FocusResolver-885f2173.js +35 -0
  4. package/dist/cjs/FormLayout-c2451c7f.js +7 -0
  5. package/dist/cjs/{constants-2714478b.js → constants-569271bc.js} +4 -0
  6. package/dist/cjs/ez-actions-button.cjs.entry.js +7 -5
  7. package/dist/cjs/ez-alert-list.cjs.entry.js +1 -1
  8. package/dist/cjs/ez-alert.cjs.entry.js +1 -1
  9. package/dist/cjs/ez-application.cjs.entry.js +1 -1
  10. package/dist/cjs/ez-badge.cjs.entry.js +15 -3
  11. package/dist/cjs/ez-breadcrumb.cjs.entry.js +1 -1
  12. package/dist/cjs/ez-button.cjs.entry.js +12 -6
  13. package/dist/cjs/ez-calendar.cjs.entry.js +1 -1
  14. package/dist/cjs/ez-card-item_2.cjs.entry.js +270 -0
  15. package/dist/cjs/ez-chart.cjs.entry.js +4 -4
  16. package/dist/cjs/ez-check.cjs.entry.js +19 -11
  17. package/dist/cjs/ez-chip.cjs.entry.js +2 -2
  18. package/dist/cjs/ez-collapsible-box.cjs.entry.js +4 -3
  19. package/dist/cjs/ez-combo-box-list_3.cjs.entry.js +388 -0
  20. package/dist/cjs/ez-combo-box.cjs.entry.js +80 -157
  21. package/dist/cjs/ez-date-input.cjs.entry.js +17 -20
  22. package/dist/cjs/ez-date-time-input.cjs.entry.js +16 -21
  23. package/dist/cjs/ez-dialog.cjs.entry.js +19 -9
  24. package/dist/cjs/ez-double-list.cjs.entry.js +287 -0
  25. package/dist/cjs/ez-dropdown.cjs.entry.js +15 -9
  26. package/dist/cjs/ez-file-item.cjs.entry.js +1 -1
  27. package/dist/cjs/ez-filter-input.cjs.entry.js +129 -0
  28. package/dist/cjs/ez-form-view.cjs.entry.js +42 -28
  29. package/dist/cjs/ez-form.cjs.entry.js +35 -328
  30. package/dist/cjs/ez-grid.cjs.entry.js +15221 -69822
  31. package/dist/cjs/ez-guide-navigator.cjs.entry.js +1 -1
  32. package/dist/cjs/ez-icon.cjs.entry.js +2 -2
  33. package/dist/cjs/ez-list.cjs.entry.js +259 -212
  34. package/dist/cjs/ez-loading-bar.cjs.entry.js +1 -1
  35. package/dist/cjs/ez-modal-container.cjs.entry.js +8 -4
  36. package/dist/cjs/ez-modal.cjs.entry.js +18 -5
  37. package/dist/cjs/ez-multi-selection-list.cjs.entry.js +3 -3
  38. package/dist/cjs/ez-number-input.cjs.entry.js +17 -4
  39. package/dist/cjs/ez-popover-plus_3.cjs.entry.js +209 -0
  40. package/dist/cjs/ez-popover.cjs.entry.js +1 -1
  41. package/dist/cjs/ez-popup.cjs.entry.js +30 -4
  42. package/dist/cjs/ez-radio-button.cjs.entry.js +1 -1
  43. package/dist/cjs/ez-scroller_2.cjs.entry.js +4 -4
  44. package/dist/cjs/ez-search-plus.cjs.entry.js +398 -0
  45. package/dist/cjs/ez-search-result-list.cjs.entry.js +97 -0
  46. package/dist/cjs/ez-search.cjs.entry.js +125 -192
  47. package/dist/cjs/ez-sidebar-navigator.cjs.entry.js +2 -2
  48. package/dist/cjs/ez-skeleton.cjs.entry.js +2 -2
  49. package/dist/cjs/ez-split-button.cjs.entry.js +3 -3
  50. package/dist/cjs/ez-split-item.cjs.entry.js +9 -5
  51. package/dist/cjs/ez-split-panel.cjs.entry.js +69 -7
  52. package/dist/cjs/ez-tabselector.cjs.entry.js +1 -1
  53. package/dist/cjs/ez-text-area.cjs.entry.js +92 -9
  54. package/dist/cjs/ez-text-input.cjs.entry.js +136 -31
  55. package/dist/cjs/ez-time-input.cjs.entry.js +10 -3
  56. package/dist/cjs/ez-toast.cjs.entry.js +1 -1
  57. package/dist/cjs/ez-tooltip.cjs.entry.js +135 -0
  58. package/dist/cjs/ez-tree.cjs.entry.js +6 -5
  59. package/dist/cjs/ez-upload.cjs.entry.js +1 -1
  60. package/dist/cjs/ez-view-stack.cjs.entry.js +1 -1
  61. package/dist/cjs/ezListHelper-0d3970b4.js +90 -0
  62. package/dist/cjs/ezui.cjs.js +2 -2
  63. package/dist/cjs/filter-column.cjs.entry.js +25 -52
  64. package/dist/cjs/floating-ui.dom.esm-017acce4.js +1404 -0
  65. package/dist/cjs/{index-9e5554cb.js → index-a7b0c73d.js} +32 -11
  66. package/dist/cjs/loader.cjs.js +2 -2
  67. package/dist/cjs/searchFormatters-b7e1ed1e.js +23 -0
  68. package/dist/cjs/{ICustomRender-6fafffce.js → types-6a5df0c7.js} +8 -0
  69. package/dist/collection/collection-manifest.json +20 -2
  70. package/dist/collection/components/ez-actions-button/ez-actions-button.js +3 -2
  71. package/dist/collection/components/ez-badge/ez-badge.css +12 -1
  72. package/dist/collection/components/ez-badge/ez-badge.js +31 -1
  73. package/dist/collection/components/ez-button/ez-button.css +24 -14
  74. package/dist/collection/components/ez-button/ez-button.js +12 -6
  75. package/dist/collection/components/ez-card-item/ez-card-item.css +58 -10
  76. package/dist/collection/components/ez-card-item/ez-card-item.js +30 -3
  77. package/dist/collection/components/ez-chart/ez-chart.js +2 -2
  78. package/dist/collection/components/ez-chart/interfaces/ChartTypeValue.js +1 -0
  79. package/dist/collection/components/ez-chart/types/BaseHighChartsRender.js +3 -3
  80. package/dist/collection/components/ez-check/ez-check.css +10 -6
  81. package/dist/collection/components/ez-check/ez-check.js +34 -9
  82. package/dist/collection/components/ez-chip/ez-chip.css +5 -1
  83. package/dist/collection/components/ez-collapsible-box/ez-collapsible-box.css +2 -2
  84. package/dist/collection/components/ez-combo-box/ez-combo-box-list/ez-combo-box-list.css +205 -0
  85. package/dist/collection/components/ez-combo-box/ez-combo-box-list/ez-combo-box-list.js +426 -0
  86. package/dist/collection/components/ez-combo-box/ez-combo-box.css +8 -246
  87. package/dist/collection/components/ez-combo-box/ez-combo-box.js +139 -165
  88. package/dist/collection/components/ez-date-input/ez-date-input.css +1 -1
  89. package/dist/collection/components/ez-date-input/ez-date-input.js +58 -19
  90. package/dist/collection/components/ez-date-time-input/ez-date-time-input.css +1 -1
  91. package/dist/collection/components/ez-date-time-input/ez-date-time-input.js +57 -20
  92. package/dist/collection/components/ez-dialog/ez-dialog.css +27 -24
  93. package/dist/collection/components/ez-dialog/ez-dialog.js +18 -17
  94. package/dist/collection/components/ez-double-list/doubleListHelper.js +82 -0
  95. package/dist/collection/components/ez-double-list/ez-double-list.css +62 -0
  96. package/dist/collection/components/ez-double-list/ez-double-list.js +440 -0
  97. package/dist/collection/components/ez-dropdown/ez-dropdown.js +33 -8
  98. package/dist/collection/components/ez-filter-input/ez-filter-input.css +1 -1
  99. package/dist/collection/components/ez-filter-input/ez-filter-input.js +35 -4
  100. package/dist/collection/components/ez-form/ez-form.js +32 -4
  101. package/dist/collection/components/ez-form-view/custom-input/ez-custom-form-input.js +49 -6
  102. package/dist/collection/components/ez-form-view/ez-form-view.css +13 -2
  103. package/dist/collection/components/ez-form-view/ez-form-view.js +21 -2
  104. package/dist/collection/components/ez-form-view/fieldbuilder/FieldBuilder.js +5 -2
  105. package/dist/collection/components/ez-form-view/fieldbuilder/templates/CheckBox.tpl.js +1 -1
  106. package/dist/collection/components/ez-form-view/fieldbuilder/templates/ComboBox.tpl.js +1 -1
  107. package/dist/collection/components/ez-form-view/fieldbuilder/templates/DateInput.tpl.js +8 -4
  108. package/dist/collection/components/ez-form-view/fieldbuilder/templates/FileInput.tpl.js +1 -1
  109. package/dist/collection/components/ez-form-view/fieldbuilder/templates/NumberInput.tpl.js +1 -1
  110. package/dist/collection/components/ez-form-view/fieldbuilder/templates/SearchInput.tpl.js +1 -1
  111. package/dist/collection/components/ez-form-view/fieldbuilder/templates/SearchInputPlus.tpl.js +6 -0
  112. package/dist/collection/components/ez-form-view/fieldbuilder/templates/TextArea.tpl.js +1 -1
  113. package/dist/collection/components/ez-form-view/fieldbuilder/templates/TextInput.tpl.js +2 -2
  114. package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +419 -75
  115. package/dist/collection/components/ez-grid/controller/ag-grid/DataSource.js +172 -33
  116. package/dist/collection/components/ez-grid/controller/ag-grid/DataSourceInterceptor.js +2 -1
  117. package/dist/collection/components/ez-grid/controller/ag-grid/GridEditionManager.js +248 -43
  118. package/dist/collection/components/ez-grid/controller/ag-grid/components/EzGridCustomCellEditor.js +16 -0
  119. package/dist/collection/components/ez-grid/controller/ag-grid/components/EzGridCustomHeader.js +1 -1
  120. package/dist/collection/components/ez-grid/controller/ag-grid/editor/EzCellEditor.js +10 -0
  121. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/ComboBox.tpl.js +2 -0
  122. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/DateInput.tpl.js +1 -0
  123. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/NumberInput.tpl.js +1 -0
  124. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/Search.tpl.js +8 -1
  125. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/SearchPlus.tpl.js +15 -0
  126. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/TextInput.tpl.js +4 -1
  127. package/dist/collection/components/ez-grid/controller/ag-grid/test/constants/GridEditionMock.js +2 -0
  128. package/dist/collection/components/ez-grid/ez-grid.css +95 -10
  129. package/dist/collection/components/ez-grid/ez-grid.js +370 -12
  130. package/dist/collection/components/ez-grid/subcomponents/filter-column.css +4 -0
  131. package/dist/collection/components/ez-grid/subcomponents/filter-column.js +23 -50
  132. package/dist/collection/components/ez-grid/utils/ColumnFilterManager.js +7 -54
  133. package/dist/collection/components/ez-grid/utils/InMemoryFilterColumnDataSource.js +20 -4
  134. package/dist/collection/components/ez-icon/ez-icon.css +156 -149
  135. package/dist/collection/components/ez-list/ez-list.css +5 -4
  136. package/dist/collection/components/ez-list/ez-list.js +301 -212
  137. package/dist/collection/components/ez-list/ezListHelper.js +85 -0
  138. package/dist/collection/components/ez-modal/ez-modal.css +7 -2
  139. package/dist/collection/components/ez-modal/ez-modal.js +18 -5
  140. package/dist/collection/components/ez-modal-container/ez-modal-container.css +1 -0
  141. package/dist/collection/components/ez-modal-container/ez-modal-container.js +6 -2
  142. package/dist/collection/components/ez-multi-selection-list/ez-multi-selection-list.css +3 -3
  143. package/dist/collection/components/ez-multi-selection-list/ez-multi-selection-list.js +1 -1
  144. package/dist/collection/components/ez-multi-selection-list/interfaces/IStaticOptionsFetchConfig.js +1 -0
  145. package/dist/collection/components/ez-number-input/ez-number-input.css +8 -0
  146. package/dist/collection/components/ez-number-input/ez-number-input.js +67 -1
  147. package/dist/collection/components/ez-popover-plus/ez-popover-plus.css +3 -0
  148. package/dist/collection/components/ez-popover-plus/ez-popover-plus.js +434 -0
  149. package/dist/collection/components/ez-popover-plus/subcomponent/ez-popover-core.css +67 -0
  150. package/dist/collection/components/ez-popover-plus/subcomponent/ez-popover-core.js +527 -0
  151. package/dist/collection/components/ez-popup/ez-popup.css +8 -3
  152. package/dist/collection/components/ez-popup/ez-popup.js +48 -4
  153. package/dist/collection/components/ez-scroller/ez-scroller.css +4 -0
  154. package/dist/collection/components/ez-search/ez-search.css +2 -210
  155. package/dist/collection/components/ez-search/ez-search.js +223 -204
  156. package/dist/collection/components/ez-search/subcomponent/search-list/search-list.css +227 -0
  157. package/dist/collection/components/ez-search/subcomponent/search-list/search-list.js +289 -0
  158. package/dist/collection/components/ez-search/utils/searchFormatters.js +18 -0
  159. package/dist/collection/components/ez-search-plus/ez-search-plus.css +373 -0
  160. package/dist/collection/components/ez-search-plus/ez-search-plus.js +984 -0
  161. package/dist/collection/components/ez-search-plus/subcomponent/ez-search-result-list/ez-search-result-list.css +221 -0
  162. package/dist/collection/components/ez-search-plus/subcomponent/ez-search-result-list/ez-search-result-list.js +278 -0
  163. package/dist/collection/components/ez-sidebar-button/ez-sidebar-button.css +3 -0
  164. package/dist/collection/components/ez-sidebar-button/ez-sidebar-button.js +1 -1
  165. package/dist/collection/components/ez-sidebar-navigator/ez-sidebar-navigator.css +4 -1
  166. package/dist/collection/components/ez-skeleton/ez-skeleton.css +54 -34
  167. package/dist/collection/components/ez-split-button/ez-split-button.css +52 -14
  168. package/dist/collection/components/ez-split-button/ez-split-button.js +3 -3
  169. package/dist/collection/components/ez-split-panel/ez-split-panel.css +15 -0
  170. package/dist/collection/components/ez-split-panel/ez-split-panel.js +106 -5
  171. package/dist/collection/components/ez-split-panel/interfaces/IPanelSizeInfo.js +1 -0
  172. package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.css +14 -2
  173. package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.js +22 -1
  174. package/dist/collection/components/ez-text-area/ez-text-area.css +78 -29
  175. package/dist/collection/components/ez-text-area/ez-text-area.js +151 -6
  176. package/dist/collection/components/ez-text-input/ez-text-input.css +126 -93
  177. package/dist/collection/components/ez-text-input/ez-text-input.js +216 -28
  178. package/dist/collection/components/ez-time-input/ez-time-input.js +43 -1
  179. package/dist/collection/components/ez-tooltip/ez-tooltip.css +61 -0
  180. package/dist/collection/components/ez-tooltip/ez-tooltip.js +310 -0
  181. package/dist/collection/components/ez-tree/ez-tree.js +21 -1
  182. package/dist/collection/components/ez-tree/subcomponents/TreeItem.js +3 -3
  183. package/dist/collection/sw.js +46 -0
  184. package/dist/collection/utils/CSSVarsUtils.js +1 -0
  185. package/dist/collection/utils/FocusResolver.js +31 -0
  186. package/dist/collection/utils/constants.js +2 -0
  187. package/dist/collection/utils/form/DataBinder.js +65 -21
  188. package/dist/collection/utils/form/FormMetadata.js +2 -1
  189. package/dist/collection/utils/form/interfaces/FormLayout.js +5 -0
  190. package/dist/collection/utils/form/interfaces/index.js +1 -1
  191. package/dist/collection/utils/form/test/DataBinder.test.js +14 -0
  192. package/dist/collection/utils/index.js +2 -0
  193. package/dist/collection/utils/interfaces/AbstractFieldMetadata.js +1 -1
  194. package/dist/collection/utils/search/types.js +7 -0
  195. package/dist/collection/utils/validators/recordvalidator/IInvalidCells.js +1 -0
  196. package/dist/collection/utils/validators/recordvalidator/RecordValidationProcessor.js +7 -1
  197. package/dist/custom-elements/index.d.ts +48 -0
  198. package/dist/custom-elements/index.js +21838 -73085
  199. package/dist/esm/{CSSVarsUtils-71ce76be.js → CSSVarsUtils-acba92d7.js} +1 -0
  200. package/dist/esm/DataBinder-1035e36f.js +470 -0
  201. package/dist/esm/FocusResolver-1ccbf850.js +33 -0
  202. package/dist/esm/FormLayout-54092963.js +7 -0
  203. package/dist/esm/constants-b036528f.js +7 -0
  204. package/dist/esm/ez-actions-button.entry.js +7 -5
  205. package/dist/esm/ez-alert-list.entry.js +1 -1
  206. package/dist/esm/ez-alert.entry.js +1 -1
  207. package/dist/esm/ez-application.entry.js +1 -1
  208. package/dist/esm/ez-badge.entry.js +15 -3
  209. package/dist/esm/ez-breadcrumb.entry.js +1 -1
  210. package/dist/esm/ez-button.entry.js +12 -6
  211. package/dist/esm/ez-calendar.entry.js +1 -1
  212. package/dist/esm/ez-card-item_2.entry.js +265 -0
  213. package/dist/esm/ez-chart.entry.js +4 -4
  214. package/dist/esm/ez-check.entry.js +19 -11
  215. package/dist/esm/ez-chip.entry.js +2 -2
  216. package/dist/esm/ez-collapsible-box.entry.js +4 -3
  217. package/dist/esm/ez-combo-box-list_3.entry.js +382 -0
  218. package/dist/esm/ez-combo-box.entry.js +81 -158
  219. package/dist/esm/ez-date-input.entry.js +17 -20
  220. package/dist/esm/ez-date-time-input.entry.js +16 -21
  221. package/dist/esm/ez-dialog.entry.js +20 -10
  222. package/dist/esm/ez-double-list.entry.js +283 -0
  223. package/dist/esm/ez-dropdown.entry.js +15 -9
  224. package/dist/esm/ez-file-item.entry.js +1 -1
  225. package/dist/esm/ez-filter-input.entry.js +125 -0
  226. package/dist/esm/ez-form-view.entry.js +43 -29
  227. package/dist/esm/ez-form.entry.js +34 -327
  228. package/dist/esm/ez-grid.entry.js +15219 -69820
  229. package/dist/esm/ez-guide-navigator.entry.js +1 -1
  230. package/dist/esm/ez-icon.entry.js +2 -2
  231. package/dist/esm/ez-list.entry.js +259 -212
  232. package/dist/esm/ez-loading-bar.entry.js +1 -1
  233. package/dist/esm/ez-modal-container.entry.js +8 -4
  234. package/dist/esm/ez-modal.entry.js +18 -5
  235. package/dist/esm/ez-multi-selection-list.entry.js +3 -3
  236. package/dist/esm/ez-number-input.entry.js +17 -4
  237. package/dist/esm/ez-popover-plus_3.entry.js +203 -0
  238. package/dist/esm/ez-popover.entry.js +1 -1
  239. package/dist/esm/ez-popup.entry.js +30 -4
  240. package/dist/esm/ez-radio-button.entry.js +1 -1
  241. package/dist/esm/ez-scroller_2.entry.js +4 -4
  242. package/dist/esm/ez-search-plus.entry.js +394 -0
  243. package/dist/esm/ez-search-result-list.entry.js +93 -0
  244. package/dist/esm/ez-search.entry.js +126 -193
  245. package/dist/esm/ez-sidebar-navigator.entry.js +2 -2
  246. package/dist/esm/ez-skeleton.entry.js +2 -2
  247. package/dist/esm/ez-split-button.entry.js +3 -3
  248. package/dist/esm/ez-split-item.entry.js +9 -5
  249. package/dist/esm/ez-split-panel.entry.js +69 -7
  250. package/dist/esm/ez-tabselector.entry.js +1 -1
  251. package/dist/esm/ez-text-area.entry.js +92 -9
  252. package/dist/esm/ez-text-input.entry.js +136 -31
  253. package/dist/esm/ez-time-input.entry.js +10 -3
  254. package/dist/esm/ez-toast.entry.js +1 -1
  255. package/dist/esm/ez-tooltip.entry.js +131 -0
  256. package/dist/esm/ez-tree.entry.js +6 -5
  257. package/dist/esm/ez-upload.entry.js +1 -1
  258. package/dist/esm/ez-view-stack.entry.js +1 -1
  259. package/dist/esm/ezListHelper-00fb9b8d.js +87 -0
  260. package/dist/esm/ezui.js +3 -3
  261. package/dist/esm/filter-column.entry.js +25 -52
  262. package/dist/esm/floating-ui.dom.esm-5d3da819.js +1398 -0
  263. package/dist/esm/{index-5a720e56.js → index-baa5e267.js} +33 -11
  264. package/dist/esm/loader.js +3 -3
  265. package/dist/esm/searchFormatters-8229207e.js +20 -0
  266. package/dist/esm/{ICustomRender-875b5a40.js → types-6f6b2650.js} +9 -1
  267. package/dist/ezui/ezui.esm.js +1 -1
  268. package/dist/ezui/{p-e6b38ade.entry.js → p-0306dff7.entry.js} +1 -1
  269. package/dist/ezui/p-03c106f6.entry.js +1 -0
  270. package/dist/ezui/{p-91ccae0c.entry.js → p-09de35a2.entry.js} +1 -1
  271. package/dist/ezui/p-0bffeffc.entry.js +1 -0
  272. package/dist/ezui/p-15ea0c98.js +1 -0
  273. package/dist/ezui/p-173f68ea.js +1 -0
  274. package/dist/ezui/{p-81461d2f.entry.js → p-1e7a8633.entry.js} +1 -1
  275. package/dist/ezui/{p-6b51c9cc.entry.js → p-1f50fa05.entry.js} +1 -1
  276. package/dist/ezui/p-20c024f7.entry.js +1 -0
  277. package/dist/ezui/{p-e4c7eb39.js → p-23a36bb6.js} +2 -2
  278. package/dist/ezui/p-2872fd16.entry.js +1 -0
  279. package/dist/ezui/p-288631d1.entry.js +1 -0
  280. package/dist/ezui/p-2b4df33d.entry.js +1 -0
  281. package/dist/ezui/p-3ba9565c.entry.js +1 -0
  282. package/dist/ezui/p-40a60148.js +1 -0
  283. package/dist/ezui/{p-0378416a.entry.js → p-44caad9a.entry.js} +1 -1
  284. package/dist/ezui/p-496f7832.entry.js +1 -0
  285. package/dist/ezui/p-4bd6dd6a.entry.js +1 -0
  286. package/dist/ezui/{p-82ac8b06.entry.js → p-4cf0aaeb.entry.js} +1 -1
  287. package/dist/ezui/{p-7567ccdd.entry.js → p-555c9018.entry.js} +1 -1
  288. package/dist/ezui/p-56fe5341.entry.js +1 -0
  289. package/dist/ezui/p-5895e687.js +1 -0
  290. package/dist/ezui/p-5a14f506.entry.js +1 -0
  291. package/dist/ezui/p-5ec0ae79.entry.js +1 -0
  292. package/dist/ezui/{p-6fc26622.entry.js → p-5ed81457.entry.js} +1 -1
  293. package/dist/ezui/p-5eea9886.js +1 -0
  294. package/dist/ezui/p-629d15ed.entry.js +1 -0
  295. package/dist/ezui/p-6754489a.entry.js +1 -0
  296. package/dist/ezui/p-6825bdc7.entry.js +1 -0
  297. package/dist/ezui/p-6b39b79a.entry.js +309 -0
  298. package/dist/ezui/{p-fc194825.entry.js → p-6e429cff.entry.js} +1 -1
  299. package/dist/ezui/p-6f4681f8.entry.js +1 -0
  300. package/dist/ezui/p-7019f782.entry.js +1 -0
  301. package/dist/ezui/p-7742802c.entry.js +1 -0
  302. package/dist/ezui/{p-11bfeca3.entry.js → p-77a4bd35.entry.js} +1 -1
  303. package/dist/ezui/p-7e677b7b.entry.js +1 -0
  304. package/dist/ezui/p-80dfc50b.js +1 -0
  305. package/dist/ezui/{p-82fa4b09.entry.js → p-8df1ca33.entry.js} +1 -1
  306. package/dist/ezui/p-9478b13b.entry.js +1 -0
  307. package/dist/ezui/p-9567b31a.entry.js +1 -0
  308. package/dist/ezui/p-9c5cd3b2.entry.js +1 -0
  309. package/dist/ezui/{p-c2b20f78.entry.js → p-9f5fa3f9.entry.js} +1 -1
  310. package/dist/ezui/p-a4cee65d.entry.js +1 -0
  311. package/dist/ezui/{p-dfca5946.entry.js → p-a80b1287.entry.js} +1 -1
  312. package/dist/ezui/p-b81881ac.entry.js +1 -0
  313. package/dist/ezui/p-bac0f920.entry.js +1 -0
  314. package/dist/ezui/p-bc2f844e.entry.js +1 -0
  315. package/dist/ezui/p-bf9dec89.entry.js +1 -0
  316. package/dist/ezui/p-c00df4be.entry.js +1 -0
  317. package/dist/ezui/{p-92748142.entry.js → p-c0d9c4f8.entry.js} +1 -1
  318. package/dist/ezui/p-cb75eb46.entry.js +1 -0
  319. package/dist/ezui/{p-044d46d5.entry.js → p-d47dabdf.entry.js} +1 -1
  320. package/dist/ezui/p-da1b4a38.entry.js +1 -0
  321. package/dist/ezui/p-dc628ed3.js +1 -0
  322. package/dist/ezui/p-dc73e1fe.entry.js +1 -0
  323. package/dist/ezui/{p-b2f6bc0a.entry.js → p-e06a9886.entry.js} +1 -1
  324. package/dist/ezui/p-e07e4671.js +1 -0
  325. package/dist/ezui/p-e6a9041d.entry.js +1 -0
  326. package/dist/ezui/p-e75c7a23.entry.js +1 -0
  327. package/dist/ezui/p-ebd23857.entry.js +1 -0
  328. package/dist/ezui/p-ec7db713.js +1 -0
  329. package/dist/ezui/p-ecaac11f.entry.js +1 -0
  330. package/dist/ezui/p-f4861c6a.entry.js +1 -0
  331. package/dist/ezui/p-f5a30e35.entry.js +1 -0
  332. package/dist/ezui/p-f6316720.entry.js +1 -0
  333. package/dist/ezui/p-fa6732f2.entry.js +1 -0
  334. package/dist/types/components/ez-badge/ez-badge.d.ts +5 -0
  335. package/dist/types/components/ez-button/ez-button.d.ts +2 -1
  336. package/dist/types/components/ez-calendar/ez-calendar.d.ts +3 -3
  337. package/dist/types/components/ez-card-item/ez-card-item.d.ts +5 -0
  338. package/dist/types/components/ez-chart/interfaces/ChartAxis.d.ts +2 -0
  339. package/dist/types/components/ez-chart/interfaces/ChartTypeValue.d.ts +1 -0
  340. package/dist/types/components/ez-check/ez-check.d.ts +7 -2
  341. package/dist/types/components/ez-combo-box/ez-combo-box-list/ez-combo-box-list.d.ts +104 -0
  342. package/dist/types/components/ez-combo-box/ez-combo-box.d.ts +19 -15
  343. package/dist/types/components/ez-date-input/ez-date-input.d.ts +12 -3
  344. package/dist/types/components/ez-date-time-input/ez-date-time-input.d.ts +12 -3
  345. package/dist/types/components/ez-dialog/ez-dialog.d.ts +3 -1
  346. package/dist/types/components/ez-double-list/doubleListHelper.d.ts +10 -0
  347. package/dist/types/components/ez-double-list/ez-double-list.d.ts +87 -0
  348. package/dist/types/components/ez-dropdown/ez-dropdown.d.ts +4 -0
  349. package/dist/types/components/ez-dropdown/structure/DropdownItem.d.ts +1 -1
  350. package/dist/types/components/ez-filter-input/ez-filter-input.d.ts +6 -1
  351. package/dist/types/components/ez-form/ez-form.d.ts +5 -1
  352. package/dist/types/components/ez-form-view/custom-input/ez-custom-form-input.d.ts +7 -1
  353. package/dist/types/components/ez-form-view/ez-form-view.d.ts +4 -0
  354. package/dist/types/components/ez-form-view/fieldbuilder/templates/DateInput.tpl.d.ts +2 -1
  355. package/dist/types/components/ez-form-view/fieldbuilder/templates/SearchInputPlus.tpl.d.ts +2 -0
  356. package/dist/types/components/ez-form-view/fieldbuilder/templates/TextInput.tpl.d.ts +1 -1
  357. package/dist/types/components/ez-grid/controller/EzGridController.d.ts +75 -4
  358. package/dist/types/components/ez-grid/controller/ag-grid/AgGridController.d.ts +44 -6
  359. package/dist/types/components/ez-grid/controller/ag-grid/DataSource.d.ts +26 -2
  360. package/dist/types/components/ez-grid/controller/ag-grid/GridEditionManager.d.ts +34 -7
  361. package/dist/types/components/ez-grid/controller/ag-grid/components/EzGridCustomCellEditor.d.ts +4 -1
  362. package/dist/types/components/ez-grid/controller/ag-grid/components/EzGridCustomCellRender.d.ts +1 -1
  363. package/dist/types/components/ez-grid/controller/ag-grid/components/EzGridCustomHeader.d.ts +1 -1
  364. package/dist/types/components/ez-grid/controller/ag-grid/components/cellRendererStatus.d.ts +1 -1
  365. package/dist/types/components/ez-grid/controller/ag-grid/components/selectionHeader.d.ts +1 -1
  366. package/dist/types/components/ez-grid/controller/ag-grid/editor/EzCellEditor.d.ts +2 -1
  367. package/dist/types/components/ez-grid/controller/ag-grid/editor/EzCellRender.d.ts +1 -1
  368. package/dist/types/components/ez-grid/controller/ag-grid/editor/IUICellEditor.d.ts +1 -0
  369. package/dist/types/components/ez-grid/controller/ag-grid/editor/templates/SearchPlus.tpl.d.ts +3 -0
  370. package/dist/types/components/ez-grid/controller/ag-grid/mock/Server.d.ts +1 -1
  371. package/dist/types/components/ez-grid/ez-grid.d.ts +59 -1
  372. package/dist/types/components/ez-grid/subcomponents/filter-column.d.ts +1 -11
  373. package/dist/types/components/ez-grid/utils/ColumnFilterManager.d.ts +1 -1
  374. package/dist/types/components/ez-grid/utils/InMemoryFilterColumnDataSource.d.ts +3 -0
  375. package/dist/types/components/ez-list/ez-list.d.ts +23 -2
  376. package/dist/types/components/ez-list/ezListHelper.d.ts +20 -0
  377. package/dist/types/components/ez-modal/ez-modal.d.ts +4 -1
  378. package/dist/types/components/ez-modal-container/ez-modal-container.d.ts +2 -0
  379. package/dist/types/components/ez-multi-selection-list/interfaces/IMultiSelectionListDataSource.d.ts +2 -1
  380. package/dist/types/components/ez-multi-selection-list/interfaces/IStaticOptionsFetchConfig.d.ts +3 -0
  381. package/dist/types/components/ez-number-input/ez-number-input.d.ts +12 -0
  382. package/dist/types/components/ez-popover-plus/ez-popover-plus.d.ts +74 -0
  383. package/dist/types/components/ez-popover-plus/subcomponent/ez-popover-core.d.ts +91 -0
  384. package/dist/types/components/ez-popup/ez-popup.d.ts +10 -1
  385. package/dist/types/components/ez-search/ez-search.d.ts +36 -18
  386. package/dist/types/components/ez-search/subcomponent/search-list/search-list.d.ts +23 -0
  387. package/dist/types/components/ez-search/utils/searchFormatters.d.ts +2 -0
  388. package/dist/types/components/ez-search-plus/ez-search-plus.d.ts +186 -0
  389. package/dist/types/components/ez-search-plus/subcomponent/ez-search-result-list/ez-search-result-list.d.ts +26 -0
  390. package/dist/types/components/ez-split-button/ez-split-button.d.ts +1 -1
  391. package/dist/types/components/ez-split-panel/ez-split-panel.d.ts +11 -0
  392. package/dist/types/components/ez-split-panel/interfaces/IPanelSizeInfo.d.ts +9 -0
  393. package/dist/types/components/ez-split-panel/structure/item/ez-split-item.d.ts +5 -0
  394. package/dist/types/components/ez-text-area/ez-text-area.d.ts +25 -0
  395. package/dist/types/components/ez-text-input/ez-text-input.d.ts +35 -3
  396. package/dist/types/components/ez-time-input/ez-time-input.d.ts +8 -0
  397. package/dist/types/components/ez-tooltip/ez-tooltip.d.ts +57 -0
  398. package/dist/types/components/ez-tree/ez-tree.d.ts +4 -0
  399. package/dist/types/components/ez-tree/interfaces/ITreeItem.d.ts +1 -0
  400. package/dist/types/components/ez-tree/subcomponents/TreeItem.d.ts +1 -0
  401. package/dist/types/components.d.ts +1233 -63
  402. package/dist/types/utils/FocusResolver.d.ts +5 -0
  403. package/dist/types/utils/constants.d.ts +2 -0
  404. package/dist/types/utils/customEditor/interfaces/ICustomEditor.d.ts +2 -0
  405. package/dist/types/utils/form/DataBinder.d.ts +7 -2
  406. package/dist/types/utils/form/interfaces/FormLayout.d.ts +4 -0
  407. package/dist/types/utils/form/interfaces/index.d.ts +1 -0
  408. package/dist/types/utils/index.d.ts +2 -0
  409. package/dist/types/utils/search/types.d.ts +12 -0
  410. package/dist/types/utils/validators/recordvalidator/IInvalidCells.d.ts +5 -0
  411. package/dist/types/utils/validators/recordvalidator/RecordValidationProcessor.d.ts +1 -1
  412. package/package.json +12 -4
  413. package/react/components.d.ts +62 -54
  414. package/react/components.js +8 -0
  415. package/react/components.js.map +1 -1
  416. package/react/react-component-lib/createComponent.d.ts +1 -1
  417. package/react/react-component-lib/createComponent.js.map +1 -1
  418. package/react/react-component-lib/createOverlayComponent.js.map +1 -1
  419. package/react/react-component-lib/interfaces.js +1 -0
  420. package/react/react-component-lib/utils/attachProps.d.ts +1 -1
  421. package/react/react-component-lib/utils/attachProps.js.map +1 -1
  422. package/react/react-component-lib/utils/dev.js.map +1 -1
  423. package/react/react-component-lib/utils/index.d.ts +2 -2
  424. package/react/react-component-lib/utils/index.js.map +1 -1
  425. package/dist/cjs/RecordValidationProcessor-4c893e04.js +0 -102
  426. package/dist/cjs/ez-card-item_3.cjs.entry.js +0 -183
  427. package/dist/cjs/ez-custom-form-input_2.cjs.entry.js +0 -206
  428. package/dist/esm/RecordValidationProcessor-b00b8b77.js +0 -99
  429. package/dist/esm/constants-4e0d35b7.js +0 -5
  430. package/dist/esm/ez-card-item_3.entry.js +0 -177
  431. package/dist/esm/ez-custom-form-input_2.entry.js +0 -201
  432. package/dist/ezui/p-04f24913.js +0 -1
  433. package/dist/ezui/p-05e1f4e7.js +0 -1
  434. package/dist/ezui/p-0ee0ac03.entry.js +0 -1
  435. package/dist/ezui/p-11b09aa1.entry.js +0 -1
  436. package/dist/ezui/p-1b08bf3c.entry.js +0 -1
  437. package/dist/ezui/p-24ca32a3.entry.js +0 -1
  438. package/dist/ezui/p-2af4e2de.entry.js +0 -1
  439. package/dist/ezui/p-30951bd7.entry.js +0 -1
  440. package/dist/ezui/p-3141ee18.entry.js +0 -1
  441. package/dist/ezui/p-31674f8e.entry.js +0 -1
  442. package/dist/ezui/p-33792b2b.entry.js +0 -1
  443. package/dist/ezui/p-36180f4d.entry.js +0 -1
  444. package/dist/ezui/p-3f8c33e0.entry.js +0 -1
  445. package/dist/ezui/p-4607fb89.js +0 -1
  446. package/dist/ezui/p-52100a6e.entry.js +0 -1
  447. package/dist/ezui/p-5517995b.entry.js +0 -1
  448. package/dist/ezui/p-5fefcdc9.entry.js +0 -1
  449. package/dist/ezui/p-615def37.entry.js +0 -304
  450. package/dist/ezui/p-6ec40dec.entry.js +0 -1
  451. package/dist/ezui/p-752c4069.entry.js +0 -1
  452. package/dist/ezui/p-81cffa53.entry.js +0 -1
  453. package/dist/ezui/p-81f99ace.entry.js +0 -1
  454. package/dist/ezui/p-868b56f7.entry.js +0 -1
  455. package/dist/ezui/p-8eef0f70.entry.js +0 -1
  456. package/dist/ezui/p-9634631d.entry.js +0 -1
  457. package/dist/ezui/p-9a23d513.entry.js +0 -1
  458. package/dist/ezui/p-9aa27e69.entry.js +0 -1
  459. package/dist/ezui/p-9c2e2d68.entry.js +0 -1
  460. package/dist/ezui/p-9e11fc7b.js +0 -1
  461. package/dist/ezui/p-b0e71d23.entry.js +0 -1
  462. package/dist/ezui/p-c3b7a23e.entry.js +0 -1
  463. package/dist/ezui/p-cd1a2e6b.entry.js +0 -1
  464. package/dist/ezui/p-dbeee5aa.entry.js +0 -1
  465. package/dist/ezui/p-de870657.entry.js +0 -1
  466. package/dist/ezui/p-ee9315ff.entry.js +0 -1
  467. package/dist/ezui/p-f1c2c19e.entry.js +0 -1
  468. package/dist/ezui/p-f1c3f85d.entry.js +0 -1
  469. package/dist/ezui/p-f291db18.entry.js +0 -1
@@ -0,0 +1 @@
1
+ import{h as e,r as t,c as i,f as r,H as s,g as o}from"./p-23a36bb6.js";import{ElementIDUtils as a,StringUtils as n,ObjectUtils as l}from"@sankhyalabs/core";const h=(e,t)=>t?e.iconExpanded||"chevron-down":e.iconContracted||"chevron-right",c=e=>e.tooltip||e.label,d=t=>{const{node:i,selectedId:r,itemClick:s,iconClick:o,iconResolver:n,tooltipResolver:l,itemsList:h,itemDoubleClick:c}=t;if(!i.visible)return;const m=i.item,v=t.level||1,u=i.isDisabled(),b=!u&&m.expanded,g=i.isExpandable(),z=!u&&!i.isPlaceHolder;return z&&h.push(m),e("ul",{class:1===v?"first-level":void 0},e("li",Object.assign({title:l(m,!u,v),class:"tree-item "+(m.id!==r?"tree-item-error":""),onClick:()=>z&&s(m),onDblClick:()=>z&&c(m)},{disabled:u,selected:m.id===r,[a.DATA_ELEMENT_ID_ATTRIBUTE_NAME]:a.getInternalIDInfo(`ezTreeItem_${m.id}`)}),e("div",{class:"item-label-container"},e("div",{class:"item-icon-box"},g&&e("ez-icon",{id:m.id,class:"item-icon",size:"small",iconName:n(m,b,v),onClick:()=>z&&o(m)})),e("label",{class:"item-label "+(m.bold?"item-label--bold":"")},m.label)),function(t,i,r){if(null!=i)return"string"==typeof i?e("div",{class:`tree-item-badge ${r?null:i}`},"error"===i&&e("ez-icon",{id:`${t}-badge-error`,class:"tree-item-badge-error-icon",size:"x-small",style:{color:"white"},iconName:"alert-circle"})):"text"===i.type?e("div",{id:`${t}-badge-text`,class:"tree-item-badge-text"},i.text):e("div",null,e("ez-icon",{id:`${t}-badge-icon`,class:"tree-item-badge-icon",style:{"--ez-icon--color":`var(--ez-tree__badge--icon-color--${i.iconColor||"default"})`},iconName:i.iconName}))}(m.id,m.badge,m.id===r)),b&&i.getChildren().map((t=>e(d,{selectedId:r,node:t,itemClick:s,iconClick:o,level:v+1,iconResolver:n,tooltipResolver:l,itemsList:h,itemDoubleClick:c}))))};class m{constructor(e,t,i,r=!1){this.children=new Map,this.visible=!0,this.item=t,this.parent=i,this._tree=e,this.isPlaceHolder=r,t&&!r?(this._isLazyLoad="function"==typeof t.children||t.childrenCount>0,Array.isArray(t.children)&&(Array.from(t.children).forEach((e=>this.addChild(this._tree,e))),this._childrenLoaded=!0)):(this._isLazyLoad=!1,this._childrenLoaded=!0)}refresh(e){if(this.isPlaceHolder)return;this.item=Object.assign({},e),this._isLazyLoad="function"==typeof this.item.children||this.item.childrenCount>0;const t=this.children;this.children=new Map,Array.isArray(this.item.children)?(void 0===this.item.expanded&&(this.item.expanded=!0),Array.from(this.item.children).forEach((e=>{const i=t.get(e.id);i?(void 0===e.expanded&&(e.expanded=i.item.expanded),i.refresh(e),this.children.set(e.id,i)):(void 0===e.expanded&&(e.expanded=!0),this.addChild(this._tree,Object.assign({},e)))})),this._childrenLoaded=!0):this._childrenLoaded=!1}isDisabled(){return!this.isPlaceHolder&&this._tree.isNodeDisabled(this.item.id,this.item.disabled)}updateChildren(e){this.isPlaceHolder||this.refresh(Object.assign(Object.assign({},this.item),{children:e}))}addChild(e,t){this.children.has(t.id)||this.children.set(t.id,new m(e,t,this))}addPlaceHolder(){this.children.clear();const e=this.item.id;this.children.set(e,new m(void 0,{id:`placeholder_${e}`,label:"Carregando..."},this,!0))}getNode(e){if(this.children.has(e))return this.children.get(e);const t=Array.from(this.children.values());for(const i of t){const t=i.getNode(e);if(t)return t}}needLoad(){return this._isLazyLoad&&!this._childrenLoaded}isExpandable(){return!!this._isLazyLoad||this.children.size>0}getChildren(){return this.isPlaceHolder?[]:(this.needLoad()&&this._tree.loadChildren(this),Array.from(this.children.values()))}}class v extends m{constructor(e){super(void 0),this._disabledValues=new Map,this._changeCallback=e}async addChildAt(e,t){const i=this.getNode(e);null!=i&&(i.addChild(this,t),this._changeCallback())}setDisabled(e,t){this._disabledValues.set(e,t),this._changeCallback()}isNodeDisabled(e,t){return this._disabledValues.has(e)?this._disabledValues.get(e):t}load(e){if(e===this._currentItems)return;this._currentItems=e;const t=this.children;this.children=new Map,this._disabledValues.clear(),e.forEach((e=>{const i=t.get(e.id);i?(i.refresh(e),this.children.set(e.id,i)):this.addChild(this,Object.assign({},e))}))}setFilterPattern(e){this._filterPattern=n.replaceAccentuatedCharsKeepSymbols(e),this.applyFilter(this),this._changeCallback()}updateItem(e){if(null==e)return;const t=this.getNode(e.id);null!=t&&(Object.keys(e).forEach((i=>t.item[i]=e[i])),null==e.children?t.children.clear():Array.isArray(e.children)&&t.updateChildren(e.children),this._changeCallback())}async open(e){return new Promise((async t=>{await this.walkPath(this,e,(e=>e.item.expanded=!0)),t()}))}applyFilter(e){if(e.children.forEach((e=>{this.applyFilter(e)})),null==e.item)return;let t=!1;if(n.replaceAccentuatedCharsKeepSymbols(e.item.label).includes(this._filterPattern))t=!0;else{const i=Array.from(e.children.values());for(let r=0;r<i.length;r++)if(i[r].visible){t=!0,e.item.expanded=!0;break}}e.visible=t}async walkPath(e,t,i,r=0){return new Promise((async s=>{const o=t.split(">>").map((e=>e.trim()));if(o.length>r){const s=e.getNode(o[r]);s&&(s.needLoad()&&await this.loadLevel(s),i(s),await this.walkPath(s,t,i,r+1))}s()}))}async loadChildren(e){return new Promise((t=>{this.loadLevel(e).then((()=>{t(),this._changeCallback()}))}))}async loadLevel(e){return new Promise((t=>{e.addPlaceHolder(),(0,e.item.children)(e.item).then((i=>{e.updateChildren(i),t()}))}))}}const u=class{constructor(e){t(this,e),this.ezChange=i(this,"ezChange",7),this.ezOpenItem=i(this,"ezOpenItem",7),this.ezDbClickItem=i(this,"ezDbClickItem",7),this._onItemClick=e=>{this.value=e},this._onIconClick=e=>{this.openClose(e),this.value=e},this._tree=new v((()=>r(this))),this._waintingForLoad=void 0,this.items=[],this.value=void 0,this.selectedId=void 0,this.iconResolver=h,this.tooltipResolver=void 0}async selectItem(e){const t=this._tree.getNode(e);this.value=t?t.item:void 0}async openItem(e){this._waintingForLoad=!0,await this._tree.open(e),this._waintingForLoad=!1}async disableItem(e){[].concat(e).forEach((e=>this._tree.setDisabled(e,!0)))}async enableItem(e){[].concat(e).forEach((e=>this._tree.setDisabled(e,!1)))}async addChild(e,t){var i;null==t&&(t=null===(i=this.value)||void 0===i?void 0:i.id),this._tree.addChildAt(t,e);const r=this._tree.getNode(t);r&&(r.item.expanded=!0)}async applyFilter(e){this._tree.setFilterPattern(e)}async updateItem(e){var t;this._tree.updateItem(e),null==(null===(t=this._tree)||void 0===t?void 0:t.getNode(this.selectedId))&&(this.value=this._visibleItems?this._visibleItems[0]:void 0)}async getItem(e){return new Promise((t=>{const i=this._tree.getNode(e);t(null==i?void 0:i.item)}))}async getCurrentPath(){var e,t,i;const r=null===(e=this._tree)||void 0===e?void 0:e.getNode(this.selectedId);if(null==r)return;const s=[];let o,a=null===(t=r.parent)||void 0===t?void 0:t.item;for(s.push(this.getItemPathAttrs(r.item));null!=a;)s.unshift(this.getItemPathAttrs(a)),o=this._tree.getNode(a.id),a=null===(i=null==o?void 0:o.parent)||void 0===i?void 0:i.item;return s}async getParent(e){return new Promise((t=>{var i;const r=this._tree.getNode(e);r&&t(null===(i=r.parent)||void 0===i?void 0:i.item),t(void 0)}))}observeItems(e,t){l.objectToString(e)!==l.objectToString(t)&&this._tree.load(this.items||[])}observeValue(){var e;this.ezChange.emit(this.value),this.selectedId=null===(e=this.value)||void 0===e?void 0:e.id}onKeyDownListener(e){if(!this.value)return;let t=!1;switch(e.key){case"ArrowUp":this.previousItem(),t=!0;break;case"ArrowDown":this.nextItem(),t=!0;break;case"ArrowLeft":this.previousLevel(),t=!0;break;case"ArrowRight":this.nextLevel(),t=!0;break;case" ":this.openClose(this.value),t=!0}t&&(e.stopPropagation(),e.preventDefault())}getItemPathAttrs({id:e,label:t}){return{id:e,label:t}}openClose(e){if(null==e)return;const t=!e.expanded;e.expanded=t,t&&this.ezOpenItem.emit(e),this._tree.updateItem(e)}previousLevel(){var e;if(this.value)if(this.value.expanded)this.value.expanded=!1,this._tree.updateItem(this.value);else{const t=null===(e=this._tree.getNode(this.value.id).parent)||void 0===e?void 0:e.item;t&&(this.value=t)}}nextLevel(){this.value&&this._tree.getNode(this.value.id).isExpandable()&&(this.value.expanded?this.nextItem():(this.value.expanded=!0,this._tree.updateItem(this.value)))}indexOf(e){if(null==e)return-1;for(let t=0;t<this._visibleItems.length;t++)if(this._visibleItems[t].id===e)return t;return-1}selectNextItem(e){var t;const i=this.indexOf(null===(t=this.value)||void 0===t?void 0:t.id)+e;i>-1&&i<this._visibleItems.length&&(this.value=this._visibleItems[i])}nextItem(){this.selectNextItem(1)}previousItem(){this.selectNextItem(-1)}connectedCallback(){this.items&&this._tree.load(this.items)}componentWillRender(){var e;if(!this.selectedId||(null===(e=this.value)||void 0===e?void 0:e.id)===this.selectedId)return;const t=this._tree.getNode(this.selectedId);t&&(this.value=t.item)}render(){if(a.addIDInfoIfNotExists(this._element,"ezTree"),null!=this.items)return this._visibleItems=[],e(s,{tabindex:"-1"},this._waintingForLoad?e("label",null,"Carregando..."):this._tree.getChildren().map((t=>{var i;return e(d,{selectedId:null===(i=this.value)||void 0===i?void 0:i.id,node:t,itemClick:this._onItemClick,iconClick:this._onIconClick,iconResolver:this.iconResolver,tooltipResolver:this.tooltipResolver||c,itemsList:this._visibleItems,itemDoubleClick:e=>this.ezDbClickItem.emit(e)})})))}get _element(){return o(this)}static get watchers(){return{items:["observeItems"],value:["observeValue"]}}};u.style=":host{--ez-tree--border-radius:var(--border--radius-small, 8px);--ez-tree--padding-inline-start:20px;--ez-tree--margin:var(--space--extra-small, 3px);--ez-tree--margin-right:calc(var(--space--small, 6px) + 2px);--ez-tree--font-family:var(--font-pattern, Arial);--ez-tree--font-size:var(--text--medium, 14px);--ez-tree--selected--font-weight:var(--text-weight--large, 600);--ez-tree--font-weight:var(--text-weight--small, 400);--ez-tree--color:var(--title--primary, #2B3A54);--ez-tree--selected--color:var(--color--primary, #008561);--ez-tree--disabled--color:var(--text--disable, #AFB6C0);--ez-tree--font-weight--bold:var(--text-weight--large, 600);--ez-tree__tree-item--height:var(--size-medium, 18px);--ez-tree__tree-item--padding:var(--space--small, 6px);--ez-tree__tree-item--background-color:var(--background--xlight, #FFFFFF);--ez-tree__tree-item--selected--background-color:var(--color--primary-300, #E2F4EF);--ez-tree__tree-item--hover--background-color:var(--background--medium, #F0F3F7);--ez-tree__tree-item--disabled--background-color:var(--ez-tree__tree-Item--background-color);--ez-tree__item-icon-box--height:var(--ez-tree__tree-item--height);--ez-tree__item-icon-box--width:var(--size-medium, 18px);--ez-tree__item-icon-box--padding:var(--ez-tree__tree-item--padding);--ez-tree__badge--icon-color--default:var(--title--primary, #2B3A54);--ez-tree__badge--icon-color--error:var(--color--error, #da4453);--ez-tree__badge--icon-color--success:var(--color-alert--success-800, #157a00);--ez-tree__badge--icon-color--warning:var(--color--warning, #f2d410);--ez-tree__badge--icon-color--disabled:var(--text--disable, #AFB6C0);display:flex;flex-direction:column;margin:0 var(--ez-tree--margin) var(--ez-tree--margin) var(--ez-tree--margin);outline:none}ul{list-style-type:none;margin:0;padding-inline-start:var(--ez-tree--padding-inline-start)}ul.first-level{padding-inline-start:0}.tree-item-badge{width:16px;height:16px;background:transparent;border-radius:50%;transition:all 300ms ease-in-out;display:flex;align-items:center;justify-content:center}.tree-item-badge-error-icon{--ez-icon--color:white}.tree-item-badge-text{font-family:var(--ez-tree--font-family);font-size:var(--ez-tree--font-size);font-weight:var(--ez-tree--font-weight);color:var(--ez-tree--color)}.tree-item-badge.error{background:var(--color--error)}.tree-item-badge.warning{background:var(--color--warning)}.tree-item-badge.success{background:var(--color--success)}.item-label-container{display:flex;align-items:center}.tree-item{display:flex;align-items:center;margin-top:var(--ez-tree--margin);margin-right:var(--ez-tree--margin-right);border-radius:var(--ez-tree--border-radius);height:var(--ez-tree__tree-item--height);padding:var(--ez-tree__tree-item--padding);justify-content:space-between}.tree-item[selected]{background-color:var(--ez-tree__tree-item--selected--background-color)}.tree-item:hover{background-color:var(--ez-tree__tree-item--hover--background-color)}.tree-item[disabled],.tree-item[disabled]:hover{background-color:var(--ez-tree__tree-item--disabled--background-color)}.item-icon-box{display:flex;align-items:center;justify-content:center;width:var(--ez-tree__item-icon-box--width);height:var(--ez-tree__item-icon-box--height);padding:var(--ez-tree__item-icon-box--padding) var(--ez-tree__item-icon-box--padding) var(--ez-tree__item-icon-box--padding) 0}.item-icon{--ez-icon--color:var(--ez-tree--color)}.item-icon:hover{cursor:pointer}.tree-item[selected] .item-icon{--ez-icon--color:var(--ez-tree--selected--color)}.tree-item[disabled] .item-icon{cursor:unset;--ez-icon--color:var(--ez-tree--disabled--color)}.item-label{cursor:inherit;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;font-family:var(--ez-tree--font-family);font-size:var(--ez-tree--font-size);font-weight:var(--ez-tree--font-weight);color:var(--ez-tree--color)}.item-label--bold{font-weight:var(--ez-tree--font-weight--bold)}.tree-item[selected] .item-label{color:var(--ez-tree--selected--color);font-weight:var(--ez-tree--selected--font-weight)}.tree-item[disabled] .item-label{color:var(--ez-tree--disabled--color)}";export{u as ez_tree}
@@ -0,0 +1 @@
1
+ class l{static resolveFocus(l,i=!0){var t;l&&(null===(t=l.focus)||void 0===t||t.call(l),l.setFocus?l.setFocus({selectText:i}):this.resolveFocusOnChild(l,i))}static resolveFocusOnChild(l,i=!0){var t,e;if(this.isGridCell(l)&&l.firstElementChild)return void this.resolveFocusOnChild(l.firstElementChild);if(!l||!l.classList.contains("hydrated"))return;const o=l.firstElementChild;((null==o?void 0:o.focus)||(null==o?void 0:o.setFocus))&&(null===(t=null==o?void 0:o.focus)||void 0===t||t.call(o),null===(e=null==o?void 0:o.setFocus)||void 0===e||e.call(o,{selectText:i}))}static isGridCell(l){var i;return"gridcell"===(null===(i=null==l?void 0:l.getAttribute)||void 0===i?void 0:i.call(l,"role"))}}export{l as F}
@@ -0,0 +1 @@
1
+ import{r as t,c as i,h as s,F as e,H as h}from"./p-23a36bb6.js";import{ArrayUtils as l}from"@sankhyalabs/core";var o;!function(t){t.DATASOURCE_RESULTS="DATASOURCE_RESULTS",t.DATASOURCE_RESULTS_EMPTY="DATASOURCE_RESULTS_EMPTY",t.DATASOURCE_INIT="DATASOURCE_INIT",t.OPTIONS_EMPTY="OPTIONS_EMPTY",t.OPTIONS="OPTIONS"}(o||(o={}));const n=class{constructor(s){t(this,s),this.changeFilteredOptions=i(this,"changeFilteredOptions",7),this.columnName=void 0,this.dataSource=void 0,this.useOptions=!1,this.options=void 0,this.isTextSearch=!1,this.filteredOptions=void 0,this.displayOptions=void 0,this.viewScenario=void 0,this.displayOptionToCheckAllItems=!0}async clearFilteredOptions(){this.setInitialScenario(),this.filteredOptions=[],this.searchInput&&(this.searchInput.value=""),this.filterInput&&(this.filterInput.value="")}onChangeUseOptions(){this.setInitialScenario()}onChangeOptions(){this.options&&(this.filteredOptions=this.ordenationByCheckStateAndAlphabetically(this.options)),this.checkInput&&this.changeCheckAllValeuFromFilteredOptions(),this.setInitialScenario()}onChangeFilteredOptions(t){this.displayOptions=this.filteredOptions,this.displayOptionToCheckAllItems=this.filteredOptions.length>1,this.checkInput&&this.changeCheckAllValeuFromFilteredOptions(),this.changeFilteredOptions.emit(t)}componentDidRender(){this.changeCheckAllValeuFromFilteredOptions()}ordenationByCheckStateAndAlphabetically(t){const i=[],s=[];let e;return t.forEach((t=>{null==t.value||""===t.label?e=Object.assign(Object.assign({},t),{label:"(Vazio)"}):t.check?i.push(t):s.push(t)})),(null==e?[]:[e]).concat(null==this.dataSource?l.sortAlphabetically(i):this.dataSource.sortItems(this.columnName,i)).concat(null==this.dataSource?l.sortAlphabetically(s):this.dataSource.sortItems(this.columnName,s))}changeCheckAllValeuFromFilteredOptions(){var t,i,s,e;const h=null===(t=this.filteredOptions)||void 0===t?void 0:t.every((t=>!0===t.check)),l=null===(i=this.filteredOptions)||void 0===i?void 0:i.every((t=>!1===t.check)),o=(null===(s=this.filteredOptions)||void 0===s?void 0:s.some((t=>!1===t.check)))&&(null===(e=this.filteredOptions)||void 0===e?void 0:e.some((t=>!0===t.check)))&&(!h||!l);return this.checkInput&&h?(this.checkInput.indeterminate=!1,void(this.checkInput.value=!0)):this.checkInput&&o?(this.checkInput.indeterminate=!0,void(this.checkInput.value=!1)):this.checkInput&&l?(this.checkInput.indeterminate=!1,void(this.checkInput.value=!1)):void 0}setInitialScenario(){if(this.useOptions)return this.viewScenario=o.OPTIONS,void this.changeCheckAllValeuFromFilteredOptions();this.viewScenario=this.options&&this.options.length>0?o.DATASOURCE_RESULTS:o.DATASOURCE_INIT}async searchWithDataSource(t,i){const{argument:s,mode:e}=t;if("PRELOAD"!==e&&i)return this.dataSource.fetchData(s,i)}handleSearchOnDataSource(t){var i;const s=null!==(i=this.filteredOptions)&&void 0!==i?i:[];t.detail&&!s.some((i=>i.value==t.detail.value))&&(this.filteredOptions=this.ordenationByCheckStateAndAlphabetically([...s,t.detail])),this.viewScenario=o.DATASOURCE_RESULTS,this.searchInput.value=""}handleRemoveItemFromOptions(t){this.filteredOptions=this.ordenationByCheckStateAndAlphabetically(this.filteredOptions.filter((i=>i.value!==t.value))),0===this.filteredOptions.length&&(this.viewScenario=o.DATASOURCE_INIT),this.searchInput&&(this.searchInput.value="")}handleSearchOnOption(t){if(t.detail)return this.displayOptions=l.applyStringFilter(t.detail,this.filteredOptions,!0),void(this.viewScenario=0===this.displayOptions.length?o.OPTIONS_EMPTY:o.OPTIONS);this.displayOptions=this.filteredOptions,this.viewScenario=o.OPTIONS}handleChangeSelectAllItems(t){this.filteredOptions=this.ordenationByCheckStateAndAlphabetically([...this.filteredOptions.map((i=>(i.check=!!t.detail,i)))])}handleChangeSelectedItem(t){const{detail:i}=t;this.filteredOptions.find((t=>t.label===i.label)).check=i.check}buildViewList(t){return s(e,null,this.displayOptionToCheckAllItems&&s("ez-check",{ref:t=>this.checkInput=t,label:"Selecionar todos",class:"multi-selection__select-all",onEzChange:this.handleChangeSelectAllItems.bind(this)}),s("ez-list",{class:"multi-selection__list",dataSource:this.displayOptions,listMode:"check",hoverFeedback:!0,onEzCheckChange:this.handleChangeSelectedItem.bind(this),itemSlotBuilder:t?this.buildDeleteIconSlot.bind(this):null}))}buildDeleteIconSlot(t){return s("ez-icon",{style:{cursor:"pointer"},iconName:"delete",onClick:()=>this.handleRemoveItemFromOptions(t)})}buildInitViewWithDataSource(){return s("multi-selection-box-message",{message:"Selecione os valores a serem filtrados através do campo de busca."})}buildViewEmptyResults(){return s("multi-selection-box-message",{message:"Nenhum resultado encontrado."})}scenarioToDisplay(t){const i={[o.DATASOURCE_INIT]:()=>this.buildInitViewWithDataSource(),[o.DATASOURCE_RESULTS]:()=>this.buildViewList(!0),[o.DATASOURCE_RESULTS_EMPTY]:()=>this.buildViewEmptyResults(),[o.OPTIONS_EMPTY]:()=>this.buildViewEmptyResults(),[o.OPTIONS]:()=>this.buildViewList(!1)}[t];return i?i():void 0}render(){return s(h,null,s("div",{class:"multi-selection"},this.useOptions?s("ez-filter-input",{ref:t=>this.filterInput=t,label:"Buscar..",onEzChange:this.handleSearchOnOption.bind(this)}):s("ez-search",{class:"multi-selection__input",label:"Buscar...",ref:t=>this.searchInput=t,suppressEmptyOption:!0,showOptionValue:!1,showSelectedValue:!1,optionLoader:t=>this.searchWithDataSource(t,this.columnName),onEzChange:this.handleSearchOnDataSource.bind(this),isTextSearch:this.isTextSearch}),s("ez-scroll",{class:"multi-selection__content-options"},this.scenarioToDisplay(this.viewScenario))))}static get watchers(){return{useOptions:["onChangeUseOptions"],options:["onChangeOptions"],filteredOptions:["onChangeFilteredOptions"]}}};n.style=".sc-ez-multi-selection-list-h{--ez-check--outter-gap:0px;--ez-multi-selection-default-height:322px;display:block;width:304px;height:var(--ez-multi-selection-default-height);min-height:fit-content;max-height:calc(100vh - 350px)}.multi-selection__input.sc-ez-multi-selection-list{margin-bottom:var(--space--2xs, 8px)}.multi-selection__content-options.sc-ez-multi-selection-list{position:relative;left:-4px}.multi-selection__select-all.sc-ez-multi-selection-list{height:var(--space--xl);margin:0 var(--space--small, 6px)}.multi-selection__list.sc-ez-multi-selection-list{max-height:calc(100vh - 435px);overflow-y:auto;overflow-x:clip}.multi-selection__list.sc-ez-multi-selection-list::-webkit-scrollbar{width:var(--space--small);min-width:var(--space--small);max-width:var(--space--small)}";export{n as ez_multi_selection_list}
@@ -1 +1 @@
1
- import{r as e,c as l,h as a,g as r}from"./p-e4c7eb39.js";import{ElementIDUtils as i}from"@sankhyalabs/core";const o=class{constructor(a){e(this,a),this.valueChange=l(this,"valueChange",7),this.removeChip=l(this,"removeChip",7),this.actionClick=l(this,"actionClick",7),this.label=void 0,this.enabled=!0,this.removePosition=void 0,this.mode=void 0,this.value=!1,this.showNativeTooltip=!0}async setFocus(){this._containerElem.focus()}async setBlur(){this._containerElem.blur()}handleSlotChange(e){e.target.assignedElements()[0].style.setProperty("--ez-icon--color","var(--ez-icon--color)")}handleValueChange(){this.swichState(),this.valueChange.emit(this.value)}handleClick(e){const l=e.target;if(this.enabled)return"action"===this.mode?this.actionClick.emit():"ez-icon"!==l.tagName.toLowerCase()?this.handleValueChange():l.classList.contains("btn-close")?this.removeChip.emit():void 0}swichState(){this.enabled&&(this.value=!this.value)}formatLabel(){return this.label.length>t.CHAR_LIMIT?this.label.substring(0,t.CHAR_LIMIT)+"...":this.label}observeValue(){this.value&&"action"!==this.mode?this._containerElem.classList.add("label__container--active"):this._containerElem.classList.remove("label__container--active")}observeEnabled(){this.enabled?(this._containerElem.classList.remove("label__container--disabled"),this._labelElem.classList.remove("lbl--disabled"),this._labelElem.classList.remove("cursor-disable")):(this._containerElem.classList.add("label__container--disabled"),this._labelElem.classList.add("lbl--disabled"),this._labelElem.classList.add("cursor-disable"))}componentDidLoad(){this._element&&i.addIDInfo(this._element,"ezChip"),this._containerElem&&(this.observeValue(),this.observeEnabled(),this._containerElem.setAttribute(i.DATA_ELEMENT_ID_ATTRIBUTE_NAME,i.getInternalIDInfo("button")))}render(){const e=this.showNativeTooltip?this.label:void 0;return a("button",{onClick:e=>this.handleClick(e),class:"label__container"+("left"===this.removePosition?" label__container--row-reverse":""),ref:e=>this._containerElem=e},a("div",{class:"label__content"},a("slot",{name:"leftIcon",onSlotchange:e=>{this.handleSlotChange(e)}}),a("label",{class:"lbl "+(this.value?"lbl--active ":""),ref:e=>this._labelElem=e,title:e},this.formatLabel()),a("slot",{name:"rightIcon",onSlotchange:e=>{this.handleSlotChange(e)}})),"action"!==this.mode&&this.removePosition&&a("ez-icon",{class:"btn-close",size:"small","icon-name":"close"}))}get _element(){return r(this)}static get watchers(){return{value:["observeValue"],enabled:["observeEnabled"]}}};var t;!function(e){e[e.CHAR_LIMIT=28]="CHAR_LIMIT"}(t||(t={})),o.style=":host{--ez-label-chip--height:30px;--ez-label-chip__label--font-size:var(--text--medium, 14px);--ez-label-chip__label--font-family:var(--font-pattern, Arial);--ez-label-chip__label--font-weight:var(--text-weight--medium, 400);--ez-label-chip__label--space--medium:var(--space--medium, 12px);--ez-label-chip__label--title--primary:var(--title--primary, #2B3A54);--ez-label-chip__label--text--primary:var(--text--primary, #626e82);--ez-label-chip__label__container--border-radius:var(--border--radius-large, 24px);--ez-label-chip__label__container--border:1px solid;--ez-label-chip__label__container--border-color-strokes:var(--color--strokes, #DCE0E8);--ez-label-chip__label__container--color-primary:var(--color--primary, #008561);--ez-label-chip__label__container-color--disable-secondary:var(--color--disable-secondary, #F2F5F8);--ez-label-chip__label__container--background-color:var(--color--primary-300);--ez-label-chip__label__container--border-color:#0085610F;--ez-label-chip__label__container--default--border-color--active:var(--color--primary, #007a5a);--ez-label-chip__label__container--default--background-color--hover:var(--color--primary-300, #f2faf8);--ez-label-chip__label__container--default--color--hover:var(--color--primary, #f2faf8);--ez-label-chip__label__container--text--disabled:var(--text--disable, #AFB6C0);--ez-label-chip__label__container--default--border-color--active:var(--color--primary)}.lbl{display:flex;white-space:nowrap;align-items:center;cursor:pointer;user-select:none;color:var(--ez-label-chip__label--title--primary);height:var(--ez-label-chip--height);font-family:var(--ez-label-chip__label--font-family);font-size:var(--ez-label-chip__label--font-size);font-weight:var(--ez-label-chip__label--font-weight)}.lbl--active{color:var(--ez-label-chip__label__container--default--color--hover)}.lbl--disabled{color:var(--ez-label-chip__label__container--text--disabled)}.label__container{cursor:pointer;width:max-content;display:flex;flex-wrap:wrap;align-items:center;background-color:#FFFFFF;color:var(--ez-label-chip__label--text--primary);fill:var(--ez-label-chip__label--text--primary);--ez-icon--color:var(--ez-label-chip__label--text--primary);border:var(--ez-label-chip__label__container--border);border-radius:var(--ez-label-chip__label__container--border-radius);border-color:var(--ez-label-chip__label__container--border-color-strokes);padding-right:var(--ez-label-chip__label--space--medium);padding-left:var(--ez-label-chip__label--space--medium);outline-color:var(--ez-label-chip__label__container--default--border-color--active)}.label__content{display:flex;align-items:center;flex-wrap:wrap;--ez-icon--color:var(--ez-label-chip__label--text--primary)}.label__container--disabled{cursor:default;border-color:var(--ez-label-chip__label__container-color--disable-secondary);background-color:var(--ez-label-chip__label__container-color--disable-secondary);fill:var(--ez-label-chip__label__container--text--disabled);color:var(--ez-label-chip__label__container--text--disabled);--ez-icon--color:var(--ez-label-chip__label__container--text--disabled)}.label__container--active{border-color:var(--ez-label-chip__label__container--default--background-color--hover);background-color:var(--ez-label-chip__label__container--default--background-color--hover);color:var(--ez-label-chip__label__container--default--color--hover);fill:var(--ez-label-chip__label__container--default--color--hover);--ez-icon--color:var(--ez-label-chip__label__container--default--color--hover)}.label__container:hover{border-color:var(--ez-label-chip__label__container--default--border-color--active)}.label__container:focus{outline:var(--border--medium) var(--ez-label-chip__label__container--default--border-color--active)}.label__container--disabled:hover{cursor:default;border:var(--ez-label-chip__label__container--border);border-color:var(--ez-label-chip__label__container-color--disable-secondary);background-color:var(--ez-label-chip__label__container-color--disable-secondary);fill:var(--ez-label-chip__label__container--text--disabled);color:var(--ez-label-chip__label__container--text--disabled);--ez-icon--color:var(--ez-label-chip__label__container--text--disabled)}.label__content__icon{display:flex;cursor:pointer;color:var(--ez-label-chip__label--text--primary);fill:var(--ez-label-chip__label--text--primary);--ez-icon--color:var(--ez-label-chip__label--text--primary)}.label__container--row-reverse{flex-direction:row-reverse}.label__container .btn-close{padding:0px 0px 0px 8px}.label__container--row-reverse .btn-close{padding:0px 8px 0px 0px}.cursor-disable{cursor:default}ez-icon{--ez-icon--color:inherit}";export{o as ez_chip}
1
+ import{r as e,c as l,h as a,g as r}from"./p-23a36bb6.js";import{ElementIDUtils as i}from"@sankhyalabs/core";const o=class{constructor(a){e(this,a),this.valueChange=l(this,"valueChange",7),this.removeChip=l(this,"removeChip",7),this.actionClick=l(this,"actionClick",7),this.label=void 0,this.enabled=!0,this.removePosition=void 0,this.mode=void 0,this.value=!1,this.showNativeTooltip=!0}async setFocus(){this._containerElem.focus()}async setBlur(){this._containerElem.blur()}handleSlotChange(e){e.target.assignedElements()[0].style.setProperty("--ez-icon--color","var(--ez-icon--color)")}handleValueChange(){this.swichState(),this.valueChange.emit(this.value)}handleClick(e){const l=e.target;if(this.enabled)return"action"===this.mode?this.actionClick.emit():"ez-icon"!==l.tagName.toLowerCase()?this.handleValueChange():l.classList.contains("btn-close")?this.removeChip.emit():void 0}swichState(){this.enabled&&(this.value=!this.value)}formatLabel(){return this.label.length>t.CHAR_LIMIT?this.label.substring(0,t.CHAR_LIMIT)+"...":this.label}observeValue(){this.value&&"action"!==this.mode?this._containerElem.classList.add("label__container--active"):this._containerElem.classList.remove("label__container--active")}observeEnabled(){this.enabled?(this._containerElem.classList.remove("label__container--disabled"),this._labelElem.classList.remove("lbl--disabled"),this._labelElem.classList.remove("cursor-disable")):(this._containerElem.classList.add("label__container--disabled"),this._labelElem.classList.add("lbl--disabled"),this._labelElem.classList.add("cursor-disable"))}componentDidLoad(){this._element&&i.addIDInfo(this._element,"ezChip"),this._containerElem&&(this.observeValue(),this.observeEnabled(),this._containerElem.setAttribute(i.DATA_ELEMENT_ID_ATTRIBUTE_NAME,i.getInternalIDInfo("button")))}render(){const e=this.showNativeTooltip?this.label:void 0;return a("button",{onClick:e=>this.handleClick(e),class:"label__container"+("left"===this.removePosition?" label__container--row-reverse":""),ref:e=>this._containerElem=e},a("div",{class:"label__content"},a("slot",{name:"leftIcon",onSlotchange:e=>{this.handleSlotChange(e)}}),a("label",{class:"lbl "+(this.value?"lbl--active ":""),ref:e=>this._labelElem=e,title:e},this.formatLabel()),a("slot",{name:"rightIcon",onSlotchange:e=>{this.handleSlotChange(e)}})),"action"!==this.mode&&this.removePosition&&a("ez-icon",{class:"btn-close",size:"small","icon-name":"close"}))}get _element(){return r(this)}static get watchers(){return{value:["observeValue"],enabled:["observeEnabled"]}}};var t;!function(e){e[e.CHAR_LIMIT=28]="CHAR_LIMIT"}(t||(t={})),o.style=":host{--ez-label-chip--height:30px;--ez-label-chip__label--font-size:var(--text--medium, 14px);--ez-label-chip__label--font-family:var(--font-pattern, Arial);--ez-label-chip__label--font-weight:var(--text-weight--medium, 400);--ez-label-chip__label--space--medium:var(--space--medium, 12px);--ez-label-chip__label--title--primary:var(--title--primary, #2B3A54);--ez-label-chip__label--text--primary:var(--text--primary, #626e82);--ez-label-chip__label__container--border-radius:var(--border--radius-large, 24px);--ez-label-chip__label__container--border:1px solid;--ez-label-chip__label__container--border-color-strokes:var(--color--strokes, #DCE0E8);--ez-label-chip__label__container--color-primary:var(--color--primary, #008561);--ez-label-chip__label__container-color--disable-secondary:var(--color--disable-secondary, #F2F5F8);--ez-label-chip__label__container--background-color:var(--color--primary-300);--ez-label-chip__label__container--border-color:#0085610F;--ez-label-chip__label__container--default--border-color--active:var(--color--primary, #007a5a);--ez-label-chip__label__container--default--background-color--hover:var(--color--primary-300, #f2faf8);--ez-label-chip__label__container--default--color--hover:var(--color--primary, #f2faf8);--ez-label-chip__label__container--text--disabled:var(--text--disable, #AFB6C0);--ez-label-chip__label__container--default--border-color--active:var(--color--primary);--ez-label-chip__label__container--default--margin-top:var(--space-extra-small, 3px)}.lbl{display:flex;white-space:nowrap;align-items:center;cursor:pointer;user-select:none;color:var(--ez-label-chip__label--title--primary);height:var(--ez-label-chip--height);font-family:var(--ez-label-chip__label--font-family);font-size:var(--ez-label-chip__label--font-size);font-weight:var(--ez-label-chip__label--font-weight)}.lbl--active{color:var(--ez-label-chip__label__container--default--color--hover)}.lbl--disabled{color:var(--ez-label-chip__label__container--text--disabled)}.label__container{cursor:pointer;width:max-content;display:flex;flex-wrap:wrap;align-items:center;background-color:#FFFFFF;color:var(--ez-label-chip__label--text--primary);fill:var(--ez-label-chip__label--text--primary);--ez-icon--color:var(--ez-label-chip__label--text--primary);border:var(--ez-label-chip__label__container--border);border-radius:var(--ez-label-chip__label__container--border-radius);border-color:var(--ez-label-chip__label__container--border-color-strokes);padding-right:var(--ez-label-chip__label--space--medium);padding-left:var(--ez-label-chip__label--space--medium);outline-color:var(--ez-label-chip__label__container--default--border-color--active);margin-top:var(--ez-label-chip__label__container--default--margin-top)}.label__content{display:flex;align-items:center;flex-wrap:wrap;--ez-icon--color:var(--ez-label-chip__label--text--primary)}.label__container--disabled{cursor:default;border-color:var(--ez-label-chip__label__container-color--disable-secondary);background-color:var(--ez-label-chip__label__container-color--disable-secondary);fill:var(--ez-label-chip__label__container--text--disabled);color:var(--ez-label-chip__label__container--text--disabled);--ez-icon--color:var(--ez-label-chip__label__container--text--disabled)}.label__container--active{border-color:var(--ez-label-chip__label__container--default--background-color--hover);background-color:var(--ez-label-chip__label__container--default--background-color--hover);color:var(--ez-label-chip__label__container--default--color--hover);fill:var(--ez-label-chip__label__container--default--color--hover);--ez-icon--color:var(--ez-label-chip__label__container--default--color--hover)}.label__container:hover{border-color:var(--ez-label-chip__label__container--default--border-color--active)}.label__container:focus{outline:none;box-shadow:0 0 0 2px var(--ez-label-chip__label__container--default--border-color--active)}.label__container--disabled:hover{cursor:default;border:var(--ez-label-chip__label__container--border);border-color:var(--ez-label-chip__label__container-color--disable-secondary);background-color:var(--ez-label-chip__label__container-color--disable-secondary);fill:var(--ez-label-chip__label__container--text--disabled);color:var(--ez-label-chip__label__container--text--disabled);--ez-icon--color:var(--ez-label-chip__label__container--text--disabled)}.label__content__icon{display:flex;cursor:pointer;color:var(--ez-label-chip__label--text--primary);fill:var(--ez-label-chip__label--text--primary);--ez-icon--color:var(--ez-label-chip__label--text--primary)}.label__container--row-reverse{flex-direction:row-reverse}.label__container .btn-close{padding:0px 0px 0px 8px}.label__container--row-reverse .btn-close{padding:0px 8px 0px 0px}.cursor-disable{cursor:default}ez-icon{--ez-icon--color:inherit}";export{o as ez_chip}
@@ -0,0 +1 @@
1
+ const t=Math.min,n=Math.max,e=Math.round,o=t=>({x:t,y:t}),r={left:"right",right:"left",bottom:"top",top:"bottom"},i={start:"end",end:"start"};function a(e,o,r){return n(e,t(o,r))}function c(t,n){return"function"==typeof t?t(n):t}function l(t){return t.split("-")[0]}function u(t){return t.split("-")[1]}function s(t){return"x"===t?"y":"x"}function f(t){return"y"===t?"height":"width"}function d(t){return["top","bottom"].includes(l(t))?"y":"x"}function m(t){return s(d(t))}function y(t){return t.replace(/start|end/g,(t=>i[t]))}function h(t){return t.replace(/left|right|bottom|top/g,(t=>r[t]))}function p(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}function g(t){const{x:n,y:e,width:o,height:r}=t;return{width:o,height:r,top:e,left:n,right:n+o,bottom:e+r,x:n,y:e}}function x(t,n,e){let{reference:o,floating:r}=t;const i=d(n),a=m(n),c=f(a),s=l(n),y="y"===i,h=o.x+o.width/2-r.width/2,p=o.y+o.height/2-r.height/2,g=o[c]/2-r[c]/2;let x;switch(s){case"top":x={x:h,y:o.y-r.height};break;case"bottom":x={x:h,y:o.y+o.height};break;case"right":x={x:o.x+o.width,y:p};break;case"left":x={x:o.x-r.width,y:p};break;default:x={x:o.x,y:o.y}}switch(u(n)){case"start":x[a]-=g*(e&&y?-1:1);break;case"end":x[a]+=g*(e&&y?-1:1)}return x}async function w(t,n){var e;void 0===n&&(n={});const{x:o,y:r,platform:i,rects:a,elements:l,strategy:u}=t,{boundary:s="clippingAncestors",rootBoundary:f="viewport",elementContext:d="floating",altBoundary:m=!1,padding:y=0}=c(n,t),h=p(y),x=l[m?"floating"===d?"reference":"floating":d],w=g(await i.getClippingRect({element:null==(e=await(null==i.isElement?void 0:i.isElement(x)))||e?x:x.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(l.floating)),boundary:s,rootBoundary:f,strategy:u})),v="floating"===d?{x:o,y:r,width:a.floating.width,height:a.floating.height}:a.reference,b=await(null==i.getOffsetParent?void 0:i.getOffsetParent(l.floating)),A=await(null==i.isElement?void 0:i.isElement(b))&&await(null==i.getScale?void 0:i.getScale(b))||{x:1,y:1},k=g(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:v,offsetParent:b,strategy:u}):v);return{top:(w.top-k.top+h.top)/A.y,bottom:(k.bottom-w.bottom+h.bottom)/A.y,left:(w.left-k.left+h.left)/A.x,right:(k.right-w.right+h.right)/A.x}}function v(){return"undefined"!=typeof window}function b(t){return S(t)?(t.nodeName||"").toLowerCase():"#document"}function A(t){var n;return(null==t||null==(n=t.ownerDocument)?void 0:n.defaultView)||window}function k(t){var n;return null==(n=(S(t)?t.ownerDocument:t.document)||window.document)?void 0:n.documentElement}function S(t){return!!v()&&(t instanceof Node||t instanceof A(t).Node)}function R(t){return!!v()&&(t instanceof Element||t instanceof A(t).Element)}function D(t){return!!v()&&(t instanceof HTMLElement||t instanceof A(t).HTMLElement)}function P(t){return!(!v()||"undefined"==typeof ShadowRoot)&&(t instanceof ShadowRoot||t instanceof A(t).ShadowRoot)}function T(t){const{overflow:n,overflowX:e,overflowY:o,display:r}=M(t);return/auto|scroll|overlay|hidden|clip/.test(n+o+e)&&!["inline","contents"].includes(r)}function C(t){return["table","td","th"].includes(b(t))}function F(t){return[":popover-open",":modal"].some((n=>{try{return t.matches(n)}catch(t){return!1}}))}function L(t){const n=B(),e=R(t)?M(t):t;return["transform","translate","scale","rotate","perspective"].some((t=>!!e[t]&&"none"!==e[t]))||!!e.containerType&&"normal"!==e.containerType||!n&&!!e.backdropFilter&&"none"!==e.backdropFilter||!n&&!!e.filter&&"none"!==e.filter||["transform","translate","scale","rotate","perspective","filter"].some((t=>(e.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(e.contain||"").includes(t)))}function B(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function E(t){return["html","body","#document"].includes(b(t))}function M(t){return A(t).getComputedStyle(t)}function O(t){return R(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function N(t){if("html"===b(t))return t;const n=t.assignedSlot||t.parentNode||P(t)&&t.host||k(t);return P(n)?n.host:n}function j(t){const n=N(t);return E(n)?t.ownerDocument?t.ownerDocument.body:t.body:D(n)&&T(n)?n:j(n)}function H(t,n,e){var o;void 0===n&&(n=[]),void 0===e&&(e=!0);const r=j(t),i=r===(null==(o=t.ownerDocument)?void 0:o.body),a=A(r);if(i){const t=$(a);return n.concat(a,a.visualViewport||[],T(r)?r:[],t&&e?H(t):[])}return n.concat(r,H(r,[],e))}function $(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function V(t){const n=M(t);let o=parseFloat(n.width)||0,r=parseFloat(n.height)||0;const i=D(t),a=i?t.offsetWidth:o,c=i?t.offsetHeight:r,l=e(o)!==a||e(r)!==c;return l&&(o=a,r=c),{width:o,height:r,$:l}}function W(t){return R(t)?t:t.contextElement}function X(t){const n=W(t);if(!D(n))return o(1);const r=n.getBoundingClientRect(),{width:i,height:a,$:c}=V(n);let l=(c?e(r.width):r.width)/i,u=(c?e(r.height):r.height)/a;return l&&Number.isFinite(l)||(l=1),u&&Number.isFinite(u)||(u=1),{x:l,y:u}}const Y=o(0);function _(t){const n=A(t);return B()&&n.visualViewport?{x:n.visualViewport.offsetLeft,y:n.visualViewport.offsetTop}:Y}function q(t,n,e,r){void 0===n&&(n=!1),void 0===e&&(e=!1);const i=t.getBoundingClientRect(),a=W(t);let c=o(1);n&&(r?R(r)&&(c=X(r)):c=X(t));const l=function(t,n,e){return void 0===n&&(n=!1),!(!e||n&&e!==A(t))&&n}(a,e,r)?_(a):o(0);let u=(i.left+l.x)/c.x,s=(i.top+l.y)/c.y,f=i.width/c.x,d=i.height/c.y;if(a){const t=A(a),n=r&&R(r)?A(r):r;let e=t,o=$(e);for(;o&&r&&n!==e;){const t=X(o),n=o.getBoundingClientRect(),r=M(o),i=n.left+(o.clientLeft+parseFloat(r.paddingLeft))*t.x,a=n.top+(o.clientTop+parseFloat(r.paddingTop))*t.y;u*=t.x,s*=t.y,f*=t.x,d*=t.y,u+=i,s+=a,e=A(o),o=$(e)}}return g({width:f,height:d,x:u,y:s})}function z(t,n){const e=O(t).scrollLeft;return n?n.left+e:q(k(t)).left+e}function G(t,n,e){void 0===e&&(e=!1);const o=t.getBoundingClientRect();return{x:o.left+n.scrollLeft-(e?0:z(t,o)),y:o.top+n.scrollTop}}function I(t,e,r){let i;if("viewport"===e)i=function(t,n){const e=A(t),o=k(t),r=e.visualViewport;let i=o.clientWidth,a=o.clientHeight,c=0,l=0;if(r){i=r.width,a=r.height;const t=B();(!t||t&&"fixed"===n)&&(c=r.offsetLeft,l=r.offsetTop)}return{width:i,height:a,x:c,y:l}}(t,r);else if("document"===e)i=function(t){const e=k(t),o=O(t),r=t.ownerDocument.body,i=n(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),a=n(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight);let c=-o.scrollLeft+z(t);const l=-o.scrollTop;return"rtl"===M(r).direction&&(c+=n(e.clientWidth,r.clientWidth)-i),{width:i,height:a,x:c,y:l}}(k(t));else if(R(e))i=function(t,n){const e=q(t,!0,"fixed"===n),r=e.top+t.clientTop,i=e.left+t.clientLeft,a=D(t)?X(t):o(1);return{width:t.clientWidth*a.x,height:t.clientHeight*a.y,x:i*a.x,y:r*a.y}}(e,r);else{const n=_(t);i={x:e.x-n.x,y:e.y-n.y,width:e.width,height:e.height}}return g(i)}function J(t,n){const e=N(t);return!(e===n||!R(e)||E(e))&&("fixed"===M(e).position||J(e,n))}function K(t,n,e){const r=D(n),i=k(n),a="fixed"===e,c=q(t,!0,a,n);let l={scrollLeft:0,scrollTop:0};const u=o(0);if(r||!r&&!a)if(("body"!==b(n)||T(i))&&(l=O(n)),r){const t=q(n,!0,a,n);u.x=t.x+n.clientLeft,u.y=t.y+n.clientTop}else i&&(u.x=z(i));const s=!i||r||a?o(0):G(i,l);return{x:c.left+l.scrollLeft-u.x-s.x,y:c.top+l.scrollTop-u.y-s.y,width:c.width,height:c.height}}function Q(t){return"static"===M(t).position}function U(t,n){if(!D(t)||"fixed"===M(t).position)return null;if(n)return n(t);let e=t.offsetParent;return k(t)===e&&(e=e.ownerDocument.body),e}function Z(t,n){const e=A(t);if(F(t))return e;if(!D(t)){let n=N(t);for(;n&&!E(n);){if(R(n)&&!Q(n))return n;n=N(n)}return e}let o=U(t,n);for(;o&&C(o)&&Q(o);)o=U(o,n);return o&&E(o)&&Q(o)&&!L(o)?e:o||function(t){let n=N(t);for(;D(n)&&!E(n);){if(L(n))return n;if(F(n))return null;n=N(n)}return null}(t)||e}const tt={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:n,rect:e,offsetParent:r,strategy:i}=t;const a="fixed"===i,c=k(r),l=!!n&&F(n.floating);if(r===c||l&&a)return e;let u={scrollLeft:0,scrollTop:0},s=o(1);const f=o(0),d=D(r);if((d||!d&&!a)&&(("body"!==b(r)||T(c))&&(u=O(r)),D(r))){const t=q(r);s=X(r),f.x=t.x+r.clientLeft,f.y=t.y+r.clientTop}const m=!c||d||a?o(0):G(c,u,!0);return{width:e.width*s.x,height:e.height*s.y,x:e.x*s.x-u.scrollLeft*s.x+f.x+m.x,y:e.y*s.y-u.scrollTop*s.y+f.y+m.y}},getDocumentElement:k,getClippingRect:function(e){let{element:o,boundary:r,rootBoundary:i,strategy:a}=e;const c=[..."clippingAncestors"===r?F(o)?[]:function(t,n){const e=n.get(t);if(e)return e;let o=H(t,[],!1).filter((t=>R(t)&&"body"!==b(t))),r=null;const i="fixed"===M(t).position;let a=i?N(t):t;for(;R(a)&&!E(a);){const n=M(a),e=L(a);e||"fixed"!==n.position||(r=null),(i?!e&&!r:!e&&"static"===n.position&&r&&["absolute","fixed"].includes(r.position)||T(a)&&!e&&J(t,a))?o=o.filter((t=>t!==a)):r=n,a=N(a)}return n.set(t,o),o}(o,this._c):[].concat(r),i],l=c.reduce(((e,r)=>{const i=I(o,r,a);return e.top=n(i.top,e.top),e.right=t(i.right,e.right),e.bottom=t(i.bottom,e.bottom),e.left=n(i.left,e.left),e}),I(o,c[0],a));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:Z,getElementRects:async function(t){const n=this.getOffsetParent||Z,e=this.getDimensions,o=await e(t.floating);return{reference:K(t.reference,await n(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){const{width:n,height:e}=V(t);return{width:n,height:e}},getScale:X,isElement:R,isRTL:function(t){return"rtl"===M(t).direction}},nt=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(n){var e,o;const{x:r,y:i,placement:a,middlewareData:s}=n,f=await async function(t,n){const{placement:e,platform:o,elements:r}=t,i=await(null==o.isRTL?void 0:o.isRTL(r.floating)),a=l(e),s=u(e),f="y"===d(e),m=["left","top"].includes(a)?-1:1,y=i&&f?-1:1,h=c(n,t);let{mainAxis:p,crossAxis:g,alignmentAxis:x}="number"==typeof h?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return s&&"number"==typeof x&&(g="end"===s?-1*x:x),f?{x:g*y,y:p*m}:{x:p*m,y:g*y}}(n,t);return a===(null==(e=s.offset)?void 0:e.placement)&&null!=(o=s.arrow)&&o.alignmentOffset?{}:{x:r+f.x,y:i+f.y,data:{...f,placement:a}}}}},et=function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(n){const{x:e,y:o,placement:r}=n,{mainAxis:i=!0,crossAxis:u=!1,limiter:f={fn:t=>{let{x:n,y:e}=t;return{x:n,y:e}}},...m}=c(t,n),y={x:e,y:o},h=await w(n,m),p=d(l(r)),g=s(p);let x=y[g],v=y[p];i&&(x=a(x+h["y"===g?"top":"left"],x,x-h["y"===g?"bottom":"right"])),u&&(v=a(v+h["y"===p?"top":"left"],v,v-h["y"===p?"bottom":"right"]));const b=f.fn({...n,[g]:x,[p]:v});return{...b,data:{x:b.x-e,y:b.y-o,enabled:{[g]:i,[p]:u}}}}}},ot=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(n){var e,o;const{placement:r,middlewareData:i,rects:a,initialPlacement:s,platform:p,elements:g}=n,{mainAxis:x=!0,crossAxis:v=!0,fallbackPlacements:b,fallbackStrategy:A="bestFit",fallbackAxisSideDirection:k="none",flipAlignment:S=!0,...R}=c(t,n);if(null!=(e=i.arrow)&&e.alignmentOffset)return{};const D=l(r),P=d(s),T=l(s)===s,C=await(null==p.isRTL?void 0:p.isRTL(g.floating)),F=b||(T||!S?[h(s)]:function(t){const n=h(t);return[y(t),n,y(n)]}(s)),L="none"!==k;!b&&L&&F.push(...function(t,n,e,o){const r=u(t);let i=function(t,n,e){const o=["left","right"],r=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(t){case"top":case"bottom":return e?n?r:o:n?o:r;case"left":case"right":return n?i:a;default:return[]}}(l(t),"start"===e,o);return r&&(i=i.map((t=>t+"-"+r)),n&&(i=i.concat(i.map(y)))),i}(s,S,k,C));const B=[s,...F],E=await w(n,R),M=[];let O=(null==(o=i.flip)?void 0:o.overflows)||[];if(x&&M.push(E[D]),v){const t=function(t,n,e){void 0===e&&(e=!1);const o=u(t),r=m(t),i=f(r);let a="x"===r?o===(e?"end":"start")?"right":"left":"start"===o?"bottom":"top";return n.reference[i]>n.floating[i]&&(a=h(a)),[a,h(a)]}(r,a,C);M.push(E[t[0]],E[t[1]])}if(O=[...O,{placement:r,overflows:M}],!M.every((t=>t<=0))){var N,j;const t=((null==(N=i.flip)?void 0:N.index)||0)+1,n=B[t];if(n)return{data:{index:t,overflows:O},reset:{placement:n}};let e=null==(j=O.filter((t=>t.overflows[0]<=0)).sort(((t,n)=>t.overflows[1]-n.overflows[1]))[0])?void 0:j.placement;if(!e)switch(A){case"bestFit":{var H;const t=null==(H=O.filter((t=>{if(L){const n=d(t.placement);return n===P||"y"===n}return!0})).map((t=>[t.placement,t.overflows.filter((t=>t>0)).reduce(((t,n)=>t+n),0)])).sort(((t,n)=>t[1]-n[1]))[0])?void 0:H[0];t&&(e=t);break}case"initialPlacement":e=s}if(r!==e)return{reset:{placement:e}}}return{}}}},rt=n=>({name:"arrow",options:n,async fn(e){const{x:o,y:r,placement:i,rects:l,platform:s,elements:d,middlewareData:y}=e,{element:h,padding:g=0}=c(n,e)||{};if(null==h)return{};const x=p(g),w={x:o,y:r},v=m(i),b=f(v),A=await s.getDimensions(h),k="y"===v,S=k?"top":"left",R=k?"bottom":"right",D=k?"clientHeight":"clientWidth",P=l.reference[b]+l.reference[v]-w[v]-l.floating[b],T=w[v]-l.reference[v],C=await(null==s.getOffsetParent?void 0:s.getOffsetParent(h));let F=C?C[D]:0;F&&await(null==s.isElement?void 0:s.isElement(C))||(F=d.floating[D]||l.floating[b]);const L=P/2-T/2,B=F/2-A[b]/2-1,E=t(x[S],B),M=t(x[R],B),O=E,N=F-A[b]-M,j=F/2-A[b]/2+L,H=a(O,j,N),$=!y.arrow&&null!=u(i)&&j!==H&&l.reference[b]/2-(j<O?E:M)-A[b]/2<0,V=$?j<O?j-O:j-N:0;return{[v]:w[v]+V,data:{[v]:H,centerOffset:j-H-V,...$&&{alignmentOffset:V}},reset:$}}}),it=(t,n,e)=>{const o=new Map,r={platform:tt,...e},i={...r.platform,_c:o};return(async(t,n,e)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:a}=e,c=i.filter(Boolean),l=await(null==a.isRTL?void 0:a.isRTL(n));let u=await a.getElementRects({reference:t,floating:n,strategy:r}),{x:s,y:f}=x(u,o,l),d=o,m={},y=0;for(let e=0;e<c.length;e++){const{name:i,fn:h}=c[e],{x:p,y:g,data:w,reset:v}=await h({x:s,y:f,initialPlacement:o,placement:d,strategy:r,middlewareData:m,rects:u,platform:a,elements:{reference:t,floating:n}});s=null!=p?p:s,f=null!=g?g:f,m={...m,[i]:{...m[i],...w}},v&&y<=50&&(y++,"object"==typeof v&&(v.placement&&(d=v.placement),v.rects&&(u=!0===v.rects?await a.getElementRects({reference:t,floating:n,strategy:r}):v.rects),({x:s,y:f}=x(u,d,l))),e=-1)}return{x:s,y:f,placement:d,strategy:r,middlewareData:m}})(t,n,{...r,platform:i})};export{rt as a,it as c,ot as f,nt as o,et as s}
@@ -0,0 +1 @@
1
+ import{r as a,c as e,h as i,H as t,g as r}from"./p-23a36bb6.js";import{ElementIDUtils as s}from"@sankhyalabs/core";import{E as o}from"./p-98bb8b16.js";var n,d,l;!function(a){a.FLOAT="float",a.FIXED="fixed"}(n||(n={})),function(a){a.SMALL="sm",a.MEDIUM="md",a.LARGE="lg"}(d||(d={})),function(a){a.FLOAT="float",a.FIXED="fixed",a.DYNAMIC="dynamic"}(l||(l={}));const h="Ocultar menu",v="Desafixar menu",b="Fixar menu",g=class{constructor(i){a(this,i),this.ezChangeMode=e(this,"ezChangeMode",7),this.handleToggleSidebar=()=>{this.open=!this.open},this.handleToggleMode=()=>{this.mode=this.mode===n.FIXED?n.FLOAT:n.FIXED,this.ezChangeMode.emit(this.mode)},this.type=l.DYNAMIC,this.mode=n.FLOAT,this.size=d.SMALL,this.isResponsive=!1,this.titleMenu="",this.showCollapseMenu=!0,this.showFixedButton=!0,this.open=!1}async changeModeMenu(){this.type===l.DYNAMIC&&this.handleToggleMode()}async closeSidebar(){this.open=!1}async openSidebar(){this.open=!0}componentDidLoad(){this.type===l.FIXED&&(this.mode=n.FIXED,this.open=!0)}render(){return s.addIDInfoIfNotExists(this._element),i(t,null,i("ez-sidebar-button",{class:this.open?"hidden":"",onEzClick:this.mode===n.FIXED?this.handleToggleSidebar:void 0,onMouseEnter:this.mode===n.FLOAT?this.handleToggleSidebar:void 0,"aria-controls":"navigator","aria-expanded":this.open,"data-element-id":s.getInternalIDInfo("openButton")}),this.open?i("aside",{tabIndex:-1,id:"navigator",class:`ez-col ez-col--sd-12 ez-col--tb-3 ez-sidebar-navigator ${this.mode===n.FLOAT?"dynamic":"fixed"} ${this.isResponsive?"responsive":this.size} ${this.open?"show":"hidden"}`,"data-element-id":s.getInternalIDInfo("sidebar"),onMouseLeave:this.type!==l.FIXED&&this.mode===n.FLOAT?this.handleToggleSidebar:void 0},i("header",{class:"ez-sidebar-navigator__header"},i("slot",{name:"start"}),""!==this.titleMenu&&i("div",{class:"ez-sidebar-navigator__title",title:this.titleMenu},this.titleMenu),!this.titleMenu&&i("slot",{name:"content"}),i("div",{class:"ez-sidebar-navigator__end"},i("slot",{name:"end"}),this.type===l.DYNAMIC&&this.showFixedButton&&i("ez-button",{onClick:this.handleToggleMode,mode:"icon",size:"small",iconName:this.mode===n.FIXED?"un-pin":"push-pin",title:this.mode===n.FIXED?v:b,"aria-label":this.mode===n.FIXED?v:b,"aria-controls":"navigator","data-element-id":s.getInternalIDInfo("pinButton")}),this.mode===n.FIXED&&this.showCollapseMenu&&i("ez-button",{onClick:this.handleToggleSidebar,class:"inverted",mode:"icon",size:"small",iconName:"show_menu",title:h,"aria-label":h,"aria-controls":"navigator","data-element-id":s.getInternalIDInfo("closeButton")}))),this.titleMenu&&i("slot",{name:"content"}),i("ez-scroller",{class:"ez-sidebar-navigator__content",direction:o.VERTICAL,activeShadow:!0},i("slot",null)),i("footer",{class:"ez-sidebar-navigator__footer"},i("slot",{name:"footer"}))):void 0)}get _element(){return r(this)}};g.style=':host{--ez-sidebar-navigator--padding-left:var(--space--xs, 12px);--ez-sidebar-navigator--padding-right:var(--space--xs, 12px);--ez-sidebar-navigator--gap:var(--space--xs, 12px);--ez-sidebar-navigator--box-shadow:var(--shadow, 0px 0px 24px 0px #000);--ez-sidebar-navigator--background-color:var(--color--inverted);--ez-sidebar-navigator--border-radius:0px var(--border--radius-medium) var(--border--radius-medium) 0px;--ez-sidebar-navigator--height:calc(100vh - var(--space--lg, 24px));--ez-sidebar-navigator--z-index:var(--elevation--20, 20);--ez-sidebar-navigator--header-gap:var(--space--xs, 12px);--ez-sidebar-navigator--footer-gap:var(--space--xs, 12px);--ez-ez-sidebar-navigator__title--font-family:var(--font-pattern, "Roboto");--ez-ez-sidebar-navigator__title--font-size:var(--title--medium, 16px);--ez-ez-sidebar-navigator__title--color:var(--title--primary, #2b3a54);--ez-ez-sidebar-navigator__title--font-weight:var(--text-weight--extra-large, 700)}.inverted{transform:rotate(180deg)}.ez-sidebar-navigator{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;height:var(--ez-sidebar-navigator--height);padding-top:var(--space--xs, 12px);padding-bottom:var(--space--xs, 12px);outline:none;gap:var(--ez-sidebar-navigator--gap);padding-left:var(--ez-sidebar-navigator--padding-left);padding-right:var(--ez-sidebar-navigator--padding-right);background-color:var(--ez-sidebar-navigator--background-color);-webkit-box-shadow:var(--ez-sidebar-navigator--box-shadow);box-shadow:var(--ez-sidebar-navigator--box-shadow);border-radius:var(--ez-sidebar-navigator--border-radius)}.ez-sidebar-navigator__header{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;justify-content:space-between;gap:var(--ez-sidebar-navigator--header-gap)}.ez-sidebar-navigator__content{height:100%}.ez-sidebar-navigator__footer{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:var(--ez-sidebar-navigator--footer-gap)}.ez-sidebar-navigator__title{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-family:var(--ez-ez-sidebar-navigator__title--font-family);font-size:var(--ez-ez-sidebar-navigator__title--font-size);font-weight:var(--ez-ez-sidebar-navigator__title--font-weight);color:var(--ez-ez-sidebar-navigator__title--color)}.ez-sidebar-navigator__end{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin-left:auto;gap:var(--ez-sidebar-navigator--gap)}.dynamic{position:absolute;z-index:var(--ez-sidebar-navigator--z-index)}.fixed{position:relative}.hidden{display:none}.show{animation:fadeIn .1s ease-in-out 1}@keyframes fadeIn{from{transform:translate(-100%)}}.sm{width:240px}.md{width:280px}.lg{width:320px}@media screen and (max-width: 991px){.responsive{width:240px}}@media screen and (min-width: 992px){.responsive{width:280px}}@media screen and (min-width: 1200px){.responsive{width:320px}}';export{g as ez_sidebar_navigator}
@@ -0,0 +1 @@
1
+ import{r as e,h as a,H as t,g as i}from"./p-23a36bb6.js";import{ElementIDUtils as d}from"@sankhyalabs/core";var s;!function(e){e.EXTRA_LARGE="extra-large",e.LARGE="large",e.MEDIUM="medium",e.SMALL_MEDIUM="small-medium",e.SMALL="small",e.EXTRA_SMALL="extra-small"}(s||(s={}));const n=class{constructor(a){e(this,a),this._sizes={[s.EXTRA_LARGE]:{sufix:"xl"},[s.LARGE]:{sufix:"lg"},[s.MEDIUM]:{sufix:"md"},[s.SMALL_MEDIUM]:{sufix:"sm"},[s.SMALL]:{sufix:"xs"},[s.EXTRA_SMALL]:{sufix:"2xs"}},this.hasSlot=!1,this.size="small",this.label=void 0,this.iconLeft=void 0,this.iconRight=void 0,this.position={horizontal:"right",vertical:"top"},this.alignItems="center"}getIconSize(){switch(this.size){case"large":return"large";case"medium":case"small-medium":return"small";case"small":return"x-small";default:return null}}getAlignItemsClass(){switch(this.alignItems){case"flex-end":return"end";case"flex-start":return"start";default:return"center"}}componentDidLoad(){this._element&&d.addIDInfo(this._element),this._badge&&d.addIDInfo(this._badge,"ezBadge",{id:"embedded"})}handleSlotChange(){this.hasSlot=!0}validateIconLeft(){return this.iconLeft&&""!==this.iconLeft.trim()}validateIconRight(){return this.iconRight&&""!==this.iconRight.trim()}validateLabel(){return this.label&&""!==this.label.trim()}createContainerClassName(){let e=this._sizes[this.size].sufix,a=["badge__content","badge__content--icon-align-"+this.getAlignItemsClass()];return this.hasSlot&&(a.push("badge__content--fill-"+e),"bottom"==this.position.vertical&&"right"==this.position.horizontal&&a.push("badge__content--fill-bottom-right"),"bottom"==this.position.vertical&&"left"==this.position.horizontal&&a.push("badge__content--fill-bottom-left"),"top"==this.position.vertical&&"right"==this.position.horizontal&&a.push("badge__content--fill-top-right"),"top"==this.position.vertical&&"left"==this.position.horizontal&&a.push("badge__content--fill-top-left")),a.push(this.label?"badge__content--text-"+e:this.iconLeft||this.iconRight?"badge__content--icon-"+e:"badge__content--fill-"+e),a.join(" ")}render(){return a(t,null,a("div",{class:"badge"},a("div",null,a("slot",{name:"child-badge",onSlotchange:()=>{this.handleSlotChange()}})),a("div",{class:this.createContainerClassName(),ref:e=>this._badge=e},this.validateIconLeft()&&a("ez-icon",{class:"icon",iconName:this.iconLeft,size:this.getIconSize()}),this.validateLabel()&&a("label",{title:this.label},this.label),this.validateIconRight()&&a("ez-icon",{class:"icon",iconName:this.iconRight,size:this.getIconSize()}))))}get _element(){return i(this)}};n.style=":host{--ez-badge--size-2xs:var(--space--2xs, 8px);--ez-badge--size-xs:var(--space--xs, 12px);--ez-badge--size-sm:var(--space--sm, 16px);--ez-badge--size-md:var(--space--md, 20px);--ez-badge--size-lg:var(--space--lg, 24px);--ez-badge--size-xl:var(--space--xl, 32px);--ez-badge--padding-2xs:0;--ez-badge--padding-xs:var(--space--nano, 2px);--ez-badge--padding-sm:calc(var(--space--nano, 2px) + 1px);--ez-badge--padding-md:var(--space--3xs, 4px);--ez-badge--padding-lg:calc(var(--space--3xs, 4px) + 2px);--ez-badge--padding-xl:var(--space--2xs);--ez-badge--border-radius:calc(var(--border--radius-medium, 12px) + 8px);--ez-badge--font-family:var(--font-pattern, Roboto);--ez-badge--font-weight-medium:var(--text-weight--medium, 400);--ez-badge--background-color:var(--color--primary, #008561);--ez-badge--border-none:0;--ez-badge--color:var(--text--inverted, #ffffff);--ez-badge--gap:calc(var(--ez-badge--padding-xs) + 1px);--ez-badge--font-size-md:var(--text--medium);--ez-badge--font-size-sm:var(--text--medium);--ez-badge--font-size-xs:var(--text--small)}ez-icon{--ez-icon--color:inherit}.badge{display:flex;justify-content:center;align-items:center;position:relative}.badge__content{font-family:var(--ez-badge--font-family, Roboto);font-weight:var(--ez-badge--font-weight-medium, 400);background-color:var(--ez-badge--background-color, #008561);border:var(--ez-badge--border-none, 0);color:var(--ez-badge--color, #ffffff);border-radius:var(--ez-badge--border-radius, 20px);gap:var(--ez-badge--gap, 3px);display:flex;justify-content:center}.badge__content--fill-xs{height:var(--ez-badge--size-xs, 12px);min-width:var(--ez-badge--size-xs, 12px)}.badge__content--fill-2xs{height:var(--ez-badge--size-2xs, 8px);min-width:var(--ez-badge--size-2xs, 8px)}.badge__content--text-md{height:calc(var(--ez-badge--size-md, 20px) - 2px);min-width:var(--ez-badge--size-sm, 20px);padding-top:var(--ez-badge--padding-sm);padding-bottom:var(--ez-badge--padding-sm);padding-right:var(--ez-badge--padding-xl);padding-left:var(--ez-badge--padding-xl);font-size:var(--ez-badge--font-size-md)}.badge__content--text-sm{height:calc(var(--ez-badge--size-sm, 16px) - 2px);min-width:var(--ez-badge--size-sm, 16px);padding-top:var(--ez-badge--padding-sm);padding-bottom:var(--ez-badge--padding-sm);padding-right:var(--ez-badge--padding-xl);padding-left:var(--ez-badge--padding-xl);font-size:var(--ez-badge--font-size-sm)}.badge__content--text-xs{height:var(--ez-badge--size-sm, 16px);min-width:var(--ez-badge--size-sm, 16px);padding-top:var(--ez-badge--padding-2xs);padding-bottom:var(--ez-badge--padding-2xs);padding-right:var(--ez-badge--padding-lg);padding-left:var(--ez-badge--padding-lg);font-size:var(--ez-badge--font-size-xs)}.badge__content--icon-lg{height:var(--ez-badge--size-lg, 24px);min-width:var(--ez-badge--size-lg, 24px);padding:var(--ez-badge--padding-md)}.badge__content--icon-md{height:var(--ez-badge--size-sm, 16px);min-width:var(--ez-badge--size-sm, 16px);padding:var(--ez-badge--padding-md)}.badge__content--icon-sm{height:var(--ez-badge--size-sm, 16px);min-width:var(--ez-badge--size-sm, 16px);padding:var(--ez-badge--padding-xs)}.badge__content--icon-xs{height:var(--ez-badge--size-xs, 12px);min-width:var(--ez-badge--size-xs, 12px);padding:var(--ez-badge--padding-xs)}.badge__content--icon-align-center{align-items:center}.badge__content--icon-align-start{align-items:flex-start}.badge__content--icon-align-end{align-items:flex-end}.badge__content--fill{position:absolute;top:0;inset-inline-end:0;z-index:var(--most-visible, 2)}.badge__content--fill-top-right{transform:translate(50%, -50%);position:absolute;top:0;right:0}.badge__content--fill-top-left{transform:translate(-50%, -50%);position:absolute;top:0;left:0}.badge__content--fill-bottom-left{transform:translate(-50%, 50%);position:absolute;bottom:0;left:0}.badge__content--fill-bottom-right{transform:translate(50%, 50%);position:absolute;bottom:0;right:0}";export{n as ez_badge}
@@ -0,0 +1 @@
1
+ import{r as t,c as i,h as s,H as o,g as e}from"./p-23a36bb6.js";import{ObjectUtils as r,ElementIDUtils as h}from"@sankhyalabs/core";import"./p-2187f86c.js";import{C as n}from"./p-ec7db713.js";import"./p-ab574d59.js";import"./p-b853763b.js";import"./p-5895e687.js";import"./p-173f68ea.js";const l=class{constructor(s){t(this,s),this.ezChange=i(this,"ezChange",7),this._changeDeboucingTimeout=null,this._deboucingTime=300,this._maxWidthValue=0,this._tabPressed=!1,this._textEmptyList="Nenhum resultado encontrado",this._lookupMode=!1,this.isOpen=!1,this._preSelection=void 0,this._visibleOptions=void 0,this._startLoading=!1,this._showLoading=!0,this._criteria=void 0,this.limitCharsToSearch=3,this.value=void 0,this.label=void 0,this.enabled=!0,this.options=void 0,this.errorMessage=void 0,this.showSelectedValue=!1,this.showOptionValue=!1,this.suppressSearch=!1,this.optionLoader=void 0,this.suppressEmptyOption=!1,this.stopPropagateEnterKeyEvent=!0,this.canShowError=!0,this.mode="regular",this.hideErrorOnFocusOut=!0,this.listOptionsPosition=void 0,this.isTextSearch=!1,this.autoFocus=!1,this.alternativePlaceholder=void 0}observeErrorMessage(){var t;this._textInput&&(this._textInput.errorMessage=this.errorMessage,(null===(t=this.errorMessage)||void 0===t?void 0:t.trim())||this.setInputValue())}observeValue(t,i){if(this._textInput&&t!=i)try{if("string"==typeof t)return void this.setInputValue();const s=this.getSelectedOption(t),o=this.getSelectedOption(i),e=this.getSelectedOption(this.value);this.isDifferentValues(e,s)&&(this.value=s),this.isDifferentValues(s,o)&&(this.setInputValue(),this._lookupMode||this.ezChange.emit(null===s?void 0:s)),this.resetOptions()}finally{this._lookupMode=!1}}observeOptions(t,i){r.equals(t,i)||this.loadOptions(a.PRELOAD)}async getValueAsync(){return new Promise(this._showLoading?t=>{let i=setInterval((()=>{this._showLoading||(clearInterval(i),t(this.value))}),100)}:t=>t(this.value))}async setFocus(t){this._textInput&&this._textInput.setFocus(t)}async setBlur(){this._textInput&&this._textInput.setBlur()}async isInvalid(){return"string"==typeof this.errorMessage&&""!==this.errorMessage.trim()}async clearValue(){this.clearSearch()}isDifferentValues(t,i){return r.objectToString(t||{})!==r.objectToString(i||{})}getFormattedText(t){if(null!=t)return this.showSelectedValue&&null!=t.value?t.label?`${t.value} - ${t.label}`:t.value:t.label}getText(){const t=this.getSelectedOption(this.value),i=this.getFormattedText(t);if(null!=i)return String(i).replace(/&amp;/g,"&").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&quot;/g,'"')}getSelectedOption(t){return"string"==typeof t||t instanceof String?this._visibleOptions.find((i=>i.value===t)):t}updateVisibleOptions(){let t=this._source||[];if(this._criteria){const i=this._criteria.toUpperCase();t=t.filter((t=>t.label.toLocaleUpperCase().indexOf(i)>-1))}this.hasToAddEmptyoption(t)&&(t=[{value:void 0,label:""}].concat(t)),this._visibleOptions=t,this._maxWidthValue=this.getMaxWidthValue()}hasToAddEmptyoption(t){return!this.suppressEmptyOption&&!t.filter((t=>!t.value)).length}getMaxWidthValue(){var t;if(this.showOptionValue){const i=[];return null===(t=this._visibleOptions)||void 0===t||t.forEach((t=>{const s=this.getWidthValue(t.value);i.includes(s)||i.push(s)})),i.length>1?Math.max(...i):0}return 0}getWidthValue(t){if(null!=this._itemValueBasis){const i=this._itemValueBasis;if(null!=t)return i.innerHTML=t,i.clientWidth>0?i.clientWidth+2:0;i.innerHTML=""}return 0}showOptions(){var t,i;if(!this.enabled)return;this.openPopover();const s=null!==(i=null===(t=this.value)||void 0===t?void 0:t.value)&&void 0!==i?i:this.value,o=this._visibleOptions.findIndex((t=>t.value===s));this._preSelection=-1===o?0:o,this._resizeObserver&&this._resizeObserver.observe(this._textInput),this.setFocus()}hideOptions(){var t;null===(t=this._popover)||void 0===t||t.hide(),this._resizeObserver&&this._resizeObserver.unobserve(this._textInput)}updateSource(t){this._startLoading=!1,t instanceof Promise?(this._showLoading=!0,t.then((t=>{this._showLoading=!1,this.updateSource(t)})).catch((()=>this._showLoading=!1)),this.updateVisibleOptions()):(this._showLoading=!1,Array.isArray(t)?(this._source=t,this.updateVisibleOptions(),this._tabPressed&&(this._tabPressed=!1)):this.selectOption(t))}selectOption(t,i=!0){var s,o,e;const r=this.getSelectedOption(this.value);(null===(s=null==r?void 0:r.value)||void 0===s?void 0:s.toString())!==(null===(o=null==t?void 0:t.value)||void 0===o?void 0:o.toString())||null==r&&null!=t&&"value"in t?(this.value=(null==t?void 0:t.value)?t:void 0,null===(e=this._popover)||void 0===e||e.hide()):this.resetOptions(),i&&setTimeout((()=>{this.setFocus()}),0)}loadOptions(t,i=""){this._criteria=i,this._startLoading=!0,this.updateSource(this.optionLoader?this.optionLoader({mode:t,argument:i}):this.options)}cancelPreselection(){!this._textInput.value&&this.value?this.selectOption(void 0):window.setTimeout((()=>{this.setInputValue(!1)}),this._deboucingTime)}setInputValue(t=!0){const i=this.getText();(this._textInput.value||"")!==i&&(this._textInput.value=i,t&&(this.errorMessage=null))}clearSearch(){this.value=null}resetOptions(){this.hideOptions(),this._criteria=void 0,this._preSelection=void 0,this.updateVisibleOptions()}componentWillLoad(){if(void 0===this.options){this.options=[];const t=this.el.querySelectorAll("option");t&&t.forEach((t=>{let i=t.innerText,s=t.getAttribute("value");s||(s=i),this.options.push({label:i,value:s}),t.hidden=!0}))}this.loadOptions(a.PRELOAD)}componentDidLoad(){n.applyVarsTextInput(this.el,this._textInput),this.setInputValue(!1),this._resizeObserver=new ResizeObserver((t=>{window.requestAnimationFrame((()=>{Array.isArray(t)&&t.length&&this._textInput&&this._comboBoxList&&(this._comboBoxList.width=this._textInput.clientWidth)}))})),this.autoFocus&&requestAnimationFrame((()=>{this.setFocus({selectText:!0})}))}disconnectedCallback(){var t;null===(t=this._popover)||void 0===t||t.remove(),this._resizeObserver&&this._resizeObserver.disconnect()}handlerIconClick(){this.showOptions()}onTextInputChangeHandler(t){var i;if(this.clearDeboucingTimeout(),this._startLoading)return void(this._changeDeboucingTimeout=window.setTimeout((()=>{this.onTextInputChangeHandler(t)}),this._deboucingTime));const s=null===(i=t.target.value)||void 0===i?void 0:i.trim();this._criteria||(this._textInput.value=t.data||s),this._criteria=s,s?(this.updateVisibleOptions(),this.showOptions()):(this._preSelection=void 0,this.updateVisibleOptions())}clearDeboucingTimeout(){this._changeDeboucingTimeout&&(window.clearTimeout(this._changeDeboucingTimeout),this._changeDeboucingTimeout=null)}onTextInputClickHandler(){this.showOptions()}keyDownHandler(t){var i,s,o,e,r,h;if(t.ctrlKey&&("f"===t.key||"F"===t.key))return this.loadOptions(a.ADVANCED),t.preventDefault(),void t.stopPropagation();switch(t.key){case"ArrowDown":t.preventDefault(),this.canShowListOptions()&&(this.showOptions(),null===(i=this._comboBoxList)||void 0===i||i.nextOption());break;case"ArrowUp":t.preventDefault(),this.canShowListOptions()&&(this.showOptions(),null===(s=this._comboBoxList)||void 0===s||s.previousOption());break;case"Enter":this.isOpen&&(t.preventDefault(),null===(o=this._comboBoxList)||void 0===o||o.selectCurrentOption());break;case"Escape":this.isOpen&&(t.preventDefault(),null===(e=this._popover)||void 0===e||e.hide());break;case"Tab":this._tabPressed=!0,this.isOpen&&(null===(r=this._comboBoxList)||void 0===r||r.selectCurrentOption(),null===(h=this._popover)||void 0===h||h.hide())}}onTextInputFocusOutHandler(){this.hideErrorOnFocusOut&&this.cancelPreselection()}canShowListOptions(){return!this._showLoading&&this._visibleOptions.length>0}openPopover(){var t;this.isOpen=!0,null===(t=this._popover)||void 0===t||t.show()}render(){var t;return h.addIDInfoIfNotExists(this.el,"input"),s(o,null,s("ez-text-input",{"data-element-id":h.getInternalIDInfo("textInput"),class:"text-input-slot-container "+(this.suppressSearch?"suppressed-search-input":""),ref:t=>this._textInput=t,"data-slave-mode":"true",enabled:this.enabled&&!this.suppressSearch,onInput:t=>this.onTextInputChangeHandler(t),onClick:()=>this.onTextInputClickHandler(),onFocusout:()=>this.onTextInputFocusOutHandler(),onKeyDown:t=>this.keyDownHandler(t),label:this.label,canShowError:this.canShowError,errorMessage:this.errorMessage,mode:this.mode,alternativePlaceholder:this.alternativePlaceholder},s("button",{class:"btn",slot:"rightIcon",disabled:!this.enabled,tabindex:-1,onClick:()=>this.handlerIconClick()},s("ez-icon",{iconName:"chevron-down"}))),s("ez-popover-plus",{ref:t=>this._popover=t,anchorElement:this._textInput,autoClose:!0,boxWidth:"fit-content",overlayType:"none",onEzVisibilityChange:t=>this.isOpen=t.detail},s("ez-combo-box-list",{ref:t=>this._comboBoxList=t,showLoading:this._showLoading,visibleOptions:this._visibleOptions,textEmptyList:this._textEmptyList,showOptionValue:this.showOptionValue,preSelection:this._preSelection,maxWidth:this._maxWidthValue,width:null===(t=this._textInput)||void 0===t?void 0:t.clientWidth,onOptionSelect:t=>this.selectOption(t),onOptionHover:t=>this._preSelection=t})))}get el(){return e(this)}static get watchers(){return{errorMessage:["observeErrorMessage"],value:["observeValue"],options:["observeOptions"]}}};var a;!function(t){t.ADVANCED="ADVANCED",t.PRELOAD="PRELOAD",t.PREDICTIVE="PREDICTIVE"}(a||(a={})),l.style=":host{--ez-combo-box--height:42px;--ez-combo-box--width:100%;--ez-combo-box--border-radius:var(--border--radius-medium, 12px);--ez-combo-box--font-size:var(--text--medium, 14px);--ez-combo-box--font-family:var(--font-pattern, Arial);--ez-combo-box--background-color--xlight:var(--background--xlight, #fff);--ez-combo-box__input--background-color:var(--background--medium, #e0e0e0);--ez-combo-box__input--border:var(--border--medium, 2px solid);--ez-combo-box__input--border-color:var(--ez-combo-box__input--background-color);--ez-combo-box__input--focus--border-color:var(--color--primary, #008561);--ez-combo-box__input--disabled--background-color:var(--color--disable-secondary, #F2F5F8);--ez-combo-box__input--disabled--color:var(--text--disable, #AFB6C0);--ez-combo-box__btn--color:var(--title--primary, #2B3A54);--ez-combo-box__btn-disabled--color:var(--text--disable, #AFB6C0);--ez-combo-box__btn-hover--color:var(--color--primary, #4e4e4e);width:var(--ez-combo-box--width)}ez-icon{--ez-icon--color:inherit;font-weight:var(--text-weight--large, 600)}.suppressed-search-input{--ez-text-input__input--border-color:var(--color--strokes, #dce0e8);--ez-text-input__input--disabled--background-color:var(--background--xlight, #fff);--ez-text-input__input--disabled--color:var(--title--primary, #2B3A54)}.btn{outline:none;border:none;background:none;cursor:pointer;padding:0px;color:var(--ez-combo-box__btn--color)}.btn:disabled{cursor:unset;color:var(--ez-combo-box__btn-disabled--color)}.btn:disabled:hover{cursor:not-allowed;color:var(--ez-combo-box__btn-disabled--color)}.btn:hover{color:var(--ez-combo-box__btn-hover--color)}.btn__close{visibility:hidden}ez-text-input:hover .btn__close,ez-text-input:focus .btn__close{visibility:visible}.text-input-slot-container{--ez-text-input__icon--width:32px;--ez-text-input__min-width:var(--ez-combo-box__min-width);--ez-text-input__max-width:var(--ez-combo-box__max-width)}@-webkit-keyframes spin{0%{-webkit-transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg)}}@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}";export{l as ez_combo_box}
@@ -0,0 +1 @@
1
+ class t{static applyCSSVars(o,e,n){Array.from(o.styleSheets).filter((t=>!t.href||0===t.href.indexOf(window.location.origin))).forEach((o=>{Array.from(o.cssRules).filter((t=>t instanceof CSSStyleRule)).forEach((o=>{Array.from(o.style).forEach((o=>{o.startsWith("--")&&t.applyIfExists(e,n,o)}))}))}))}static applyVarsTextInput(o,e){e&&(t.applyIfExists(o,e,"--ez-text-input__input--background-color"),t.applyIfExists(o,e,"--ez-text-input__input--border-color"),t.applyIfExists(o,e,"--ez-text-input--height"),t.applyIfExists(o,e,"--ez-text-input__input--disabled--background-color"),t.applyIfExists(o,e,"--ez-text-input__input--disabled--color"),t.applyIfExists(o,e,"--ez-text-input--height--slim"),t.applyIfExists(o,e,"--ez-text-input--border-radius"),t.applyIfExists(o,e,"--ez-text-input__input--focus--border-color"),t.applyIfExists(o,e,"--ez-text-input__icon--width"),t.applyIfExists(o,e,"--ez-text-input__input--focus--icon-color"),t.applyIfExists(o,e,"--ez-text-input__margin-bottom"))}static applyVarsButton(o,e){e&&["--ez-button--min-width","--ez-button--height","--ez-button__icon--width","--ez-button__inline__icon--padding","--ez-button--padding-top","--ez-button--padding-bottom","--ez-button--padding-right","--ez-button--padding-left","--ez-button--color","--ez-button--font-size","--ez-button--font-family","--ez-button--font-weight","--ez-button--background-color","--ez-button--border-radius","--ez-button--border","--ez-button--hover-color","--ez-button--hover--background-color","--ez-button--disabled-color","--ez-button--disabled--background-color","--ez-button--focus--border","--ez-button--focus--box-shadow","--ez-button--active-color","--ez-button--active--background-color","--ez-button--link-color","--ez-button--link--hover-color","--ez-button--link--small--font-size","--ez-button--link--medium--font-size","--ez-button--link--large--font-size"].forEach((n=>{t.applyIfExists(o,e,n)}))}static applyVarsGrid(t,o){o&&["--ez-grid--min-height","--snk-grid-min-height"].forEach((e=>{const n=getComputedStyle(t).getPropertyValue(e);null!=n&&o.style.setProperty(e,n)}))}static applyIfExists(t,o,e){const n=getComputedStyle(t).getPropertyValue(e);n&&o.style.setProperty(e,n)}}export{t as C}
@@ -0,0 +1 @@
1
+ import{r as t,c as i,h as o,H as n,g as s}from"./p-23a36bb6.js";import{FloatingManager as a,ElementIDUtils as e}from"@sankhyalabs/core";import"./p-2187f86c.js";import{C as c}from"./p-ec7db713.js";import"./p-ab574d59.js";import"./p-b853763b.js";import"./p-5895e687.js";import"./p-173f68ea.js";const r=class{constructor(o){t(this,o),this.ezAction=i(this,"ezAction",7),this.ezPopoverOpen=i(this,"ezPopoverOpen",7),this.ezDisconnectedActionButtons=i(this,"ezDisconnectedActionButtons",7),this._arrowOffset=5,this.innerClickCheck=(t,i)=>{var o;if(i&&t){if(i===t)return!0;const n=t.children;for(let t=0;t<n.length;t++)if(null===(o=n[t].shadowRoot)||void 0===o?void 0:o.contains(i))return!0;do{if(t.contains(i))return!0;i=i.offsetParent}while(null!=i&&i!=document.getRootNode())}return!1},this._selectedAction=void 0,this.enabled=!0,this.actions=void 0,this.size="medium",this.showLabel=!1,this.displayIcon=void 0,this.checkOption=!1,this.value=void 0,this.isTransparent=!1,this.arrowActive=!1}async hideActions(){null!=this._floatingID&&a.close(this._floatingID),this._floatingID=void 0}async showActions(){if(!this.enabled)return;const t=this.getFloatOptions();this._floatingID=a.float(this._actionsList,this._listContainer,t);const i=this.getSideLimit();null!=i&&(t.left=i,a.updateFloatPosition(this._actionsList,this._listContainer,t)),window.requestAnimationFrame((()=>{this._actionsList.scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"})})),this.ezPopoverOpen.emit(this._actionsList)}async isOpened(){return null!=this._floatingID}getFloatOptions(){return{autoClose:!0,innerClickTest:this.innerClickCheck,isFixed:!0,top:this.getPositionTop(),left:this.getPositionLeft(),backClickListener:()=>this._floatingID=void 0}}getSideLimit(){var t;const i=document.body.clientWidth,o=null===(t=this._actionsList)||void 0===t?void 0:t.getBoundingClientRect(),n=i-this._button.getBoundingClientRect().right;if((null==o?void 0:o.right)>=i||(null==o?void 0:o.right)===i-n)return i-o.width-n+"px"}updatePosition(){if(!this.enabled||null==this._floatingID)return;const t=this.getFloatOptions(),i=this.getSideLimit();null!=i&&(t.left=i),a.updateFloatPosition(this._actionsList,this._listContainer,t)}getPositionTop(){var t;const i=null===(t=this._element)||void 0===t?void 0:t.getBoundingClientRect();return null==i?null:i.y+i.height+"px"}getBoundingLeft(){var t;const i=null===(t=this._element)||void 0===t?void 0:t.getBoundingClientRect();return null==i?null:i.x-(this.arrowActive?this._arrowOffset:0)+"px"}getPositionLeft(){return this.getBoundingLeft()||(this.arrowActive?`-${this._arrowOffset}px`:null)}hasLabelOrCheckOption(){var t;return(this.showLabel||this.checkOption)&&(null===(t=this.actions)||void 0===t?void 0:t.length)>0}hasIconName(){var t;return null===(t=this.actions)||void 0===t?void 0:t.some((t=>null!=t.iconName))}controlScrollPage(){window.removeEventListener("scroll",this.updatePosition.bind(this)),window.addEventListener("scroll",this.updatePosition.bind(this))}handlerButtonClick(){this.showActions()}actionClick(t){this._selectedAction=t,this.hideActions(),this.ezAction.emit(t)}componentWillLoad(){if(null==this.actions){this.actions=[];const t=this._element.querySelectorAll("action");t&&t.forEach((t=>{let i=t.innerText,o=t.getAttribute("value"),n=!("false"===t.getAttribute("enabled"));o||(o=i),this.actions.push({label:i,value:o,enabled:n}),t.hidden=!0}))}}disconnectedCallback(){this.ezDisconnectedActionButtons.emit()}componentDidLoad(){c.applyVarsButton(this._element,this._button),e.addIDInfo(this._element),this.controlScrollPage()}componentDidRender(){var t;null==this._floatingID&&(null===(t=this._actionsList)||void 0===t||t.remove()),this.hasLabelOrCheckOption()&&(this.value?this._selectedAction=this.actions.find((t=>t.value===this.value)):this._selectedAction||(this._selectedAction=this.actions[0]))}buildActionElement(t){var i;if(t){if(null!=t.itemBuilder){const i=t.itemBuilder(this._element,t);return"string"==typeof i?o("div",{class:"ez-actions-button__btn-action",innerHTML:i}):i}return o("ez-button",{size:"small",label:t.label,onClick:()=>this.actionClick(t),enabled:t.enabled,class:"ez-actions-button__btn-action"+(this.checkOption||this.hasIconName()?" ez-actions-button__btn-action--spaced":"")},this.checkOption&&(null===(i=this._selectedAction)||void 0===i?void 0:i.value)===t.value&&o("ez-icon",{class:"ez-actions-button__icon-check",slot:"leftIcon",size:"small",iconName:"check"}),!this.checkOption&&t.iconName&&o("ez-icon",{class:"ez-actions-button__icon-item",slot:"leftIcon",size:"small",iconName:t.iconName}))}}render(){var t;return o(n,null,o("ez-button",{ref:t=>this._button=t,class:(this.isTransparent?"ez-actions-button__btn-transparent":"")+(this.showLabel?" ez-actions-button__btn-label":""),label:this.showLabel&&(null===(t=this._selectedAction)||void 0===t?void 0:t.label),enabled:this.enabled,mode:this.showLabel?void 0:"icon",iconName:this.showLabel?"":this.displayIcon||"dots-vertical",size:this.size,onClick:()=>this.handlerButtonClick()},this.showLabel&&o("ez-icon",{class:"ez-actions-button__icon-right",slot:"rightIcon",iconName:this.displayIcon||"dots-vertical"})),o("section",{class:"ez-actions-button__list-container",ref:t=>this._listContainer=t},this.arrowActive&&o("div",{class:"ez-actions-button__arrow ez-actions-button__arrow--"+(this.size||"small")+(this.isTransparent?" ez-actions-button__arrow--upped":"")}),o("div",{ref:t=>this._actionsList=t,class:"ez-actions-button__actions-list ez-actions-button__actions-list--max-height"+(this.arrowActive&&!this.isTransparent?" ez-actions-button__actions-list--lowered":"")},this.actions.map((t=>this.buildActionElement(t))))))}get _element(){return s(this)}};r.style=":host{--ez-actions-button__actions-list--border-radius:var(--border--radius-medium, 12px);--ez-actions-button__actions-list--box-shadow:var(--shadow, 0px 0px 16px 0px #000);--ez-actions-button__actions-list--background-color:var(--background--xlight, #fff);--ez-actions-button__actions-list--padding:var(--space--small, 6px);--ez-actions-button__actions-list--top-margin:var(--space-small, 6px);--ez-actions-button__actions-list--z-index:var(--ez-elevation--8, 8);--ez-actions-button__actions-max-height:415px;--ez-actions-button__btn-action--min-width:'auto';--ez-actions-button__btn-action--background-color:var(--background--xlight, #fff);display:flex;flex-direction:column;height:fit-content;user-select:none}.ez-actions-button__actions-list{display:flex;flex-direction:column;position:fixed;width:fit-content;height:fit-content;overflow-y:auto;scrollbar-width:thin;z-index:var(--ez-actions-button__actions-list--z-index);padding:var(--ez-actions-button__actions-list--padding);margin-top:var(--ez-actions-button__actions-list--top-margin);background-color:var(--ez-actions-button__actions-list--background-color);border-radius:var(--ez-actions-button__actions-list--border-radius);box-shadow:var(--ez-actions-button__actions-list--box-shadow)}.ez-actions-button__actions-list--max-height{max-height:var(--ez-actions-button__actions-max-height)}.ez-actions-button__actions-list--lowered{margin-top:calc(var(--ez-actions-button__actions-list--top-margin) + 6px)}.ez-actions-button__btn-action{--ez-button--justify-content:flex-start;--ez-button--width:100%;--ez-button--min-width:var(--ez-actions-button__btn-action--min-width);--ez-button--background-color:var(--ez-actions-button__btn-action--background-color);--ez-button--font-weight:var(--text-weight--medium, 400);--ez-button--padding-left:var(--space--medium, 12px);--ez-button--padding-right:var(--space--medium, 12px)}.ez-actions-button__btn-action--spaced{--ez-button--padding-left:calc(var(--space--medium, 12px) + 24px)}.ez-actions-button__icon-right{margin-left:var(--space--small, 6px)}.ez-actions-button__icon-check,.ez-actions-button__icon-item{position:absolute;left:var(--space--medium, 12px)}.ez-actions-button__icon-check{color:var(--ez-button--hover-color)}.ez-actions-button__arrow{position:absolute;border-left:10px solid transparent;border-right:10px solid transparent;width:0;height:0;z-index:calc(var(--ez-actions-button__actions-list--z-index) + 1);border-bottom:15px solid var(--ez-actions-button__btn-action--background-color)}.ez-actions-button__arrow--upped{margin-top:calc((var(--ez-actions-button__actions-list--top-margin) + 2px) * -1)}.ez-actions-button__arrow--small{margin-left:6px}.ez-actions-button__arrow--medium{margin-left:11px}.ez-actions-button__arrow--large{margin-left:13px}.ez-actions-button__arrow:only-child{display:none}.ez-actions-button__btn-transparent{--ez-button--background-color:transparent;--ez-button--hover--background-color:transparent;--ez-button--active--background-color:transparent;--ez-button--focus--border:none}.ez-actions-button__btn-label{--ez-button--padding-left:var(--space--medium, 12px);--ez-button--padding-right:var(--space--medium, 12px)}.ez-actions-button__list-container{position:relative}.ez-actions-button--bottom-padding{padding-bottom:var(--space--small, 6px)}";export{r as ez_actions_button}
@@ -0,0 +1 @@
1
+ import{r as t,h as e,H as i}from"./p-23a36bb6.js";import"./p-2187f86c.js";import{C as s}from"./p-ec7db713.js";import"./p-ab574d59.js";import"./p-b853763b.js";import"@sankhyalabs/core";import"./p-5895e687.js";import"./p-173f68ea.js";const a=class{constructor(e){t(this,e),this.label=void 0,this.enableExpand=!0,this._expanded=!1,this.size=void 0,this.structural=!1}toggleExpandItem(){var t,e;this._expanded=!this._expanded,null===(e=null===(t=this.expandButtonRef.shadowRoot)||void 0===t?void 0:t.querySelector("button"))||void 0===e||e.blur()}componentDidLoad(){s.applyVarsGrid(this._element,this._slot.children[0])}render(){return e(i,{class:`box_split-item ${this._expanded?"expanded__item":""} ${this.structural?"structural__item":"content__item"}`,ref:t=>this._element=t},e("div",{class:"ez-split-item--header"},e("slot",{name:"leftButtons"}),e("div",{class:"ez-split-item--header-title"},this.label&&e("h3",{class:"ez-text ez-text--primary ez-title ez-title--medium ez-margin--small",title:this.label},this.label)),e("div",{class:"ez-split-item--header-buttons"},e("slot",{name:"rightButtons"}),this.enableExpand&&e("ez-button",{ref:t=>this.expandButtonRef=t,size:"small",mode:"icon",iconName:"expand",class:"ez-button--tertiary",onClick:()=>this.toggleExpandItem(),title:this._expanded?"Resumir":"Expandir"}))),e("div",{class:"ez-split-item--content grid_height-0",ref:t=>this._slot=t},e("slot",null)))}};a.style=".box_split-item{background-color:var(--background--xlight);width:100%;height:100%;border-radius:var(--border--radius-medium);box-shadow:var(--shadow--xsmall);flex-direction:column;overflow:hidden;display:flex;padding:var(--space--nano)}.box_split-item>.ez-split-item--content{overflow:auto}.expanded__item{position:absolute;z-index:var(--more-visible);top:0;left:0;width:100%;height:100%}.ez-split-item--header{display:flex;align-items:center;justify-content:space-between}.ez-split-item--header-title{flex:1;white-space:nowrap;overflow:hidden}.ez-split-item--header-title h3{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block}.ez-split-item--header-buttons{display:flex;align-items:center;max-height:20px}.ez-split-item--content{display:block;height:100%}h3.ez-margin--small{margin-left:var(--space--small)}.structural__item{background:none;box-shadow:none;padding:0;margin:0;border:0}.content__item{margin:var(--space--extra-small);width:calc(100% - 2*(var(--space--extra-small)));height:calc(100% - 2*(var(--space--extra-small)))}";export{a as ez_split_item}
@@ -0,0 +1 @@
1
+ import{r as e,c as t,h as i,H as s,g as r}from"./p-23a36bb6.js";import{StringUtils as a}from"@sankhyalabs/core";import{a as o,r as l}from"./p-40a60148.js";const n=class{constructor(i){e(this,i),this.ezVisibilityChange=t(this,"ezVisibilityChange",7),this.autoClose=!0,this.boxWidth="fit-content",this.opened=!1,this.overlayType="light",this.anchorElement=void 0,this.options={horizontalGap:0,verticalGap:0,fromRight:!1},this.useAnchorSize=!1,this.minWidth=150}async observeOpened(e){e&&!this._popOverCore&&this.renderPopoverCore(),this._popOverCore.opened=e}async updatePosition(e,t){var i;await(null===(i=this._popOverCore)||void 0===i?void 0:i.updatePosition(e,t))}async show(e,t){this._popOverCore||this.renderPopoverCore(),await this._popOverCore.show(e,t)}async showUnder(e,t){this._popOverCore||this.renderPopoverCore(),await this._popOverCore.showUnder(e,t)}async hide(){var e;await(null===(e=this._popOverCore)||void 0===e?void 0:e.hide())}async setOptions(e){var t;await(null===(t=this._popOverCore)||void 0===t?void 0:t.setOptions(e))}async setAnchorElement(e){var t;await(null===(t=this._popOverCore)||void 0===t?void 0:t.setAnchorElement(e)),this.anchorElement=e}getFirstElement(e){return Array.isArray(e)&&e.length?e[0]:!Array.isArray(e)&&e.item?e.item(0):null}renderPopoverCore(){var e;this._popOverCore=document.createElement("ez-popover-core"),this._popOverCore.opened=this.opened,this._popOverCore.anchorElement=this.anchorElement,this._popOverCore.autoClose=this.autoClose,this._popOverCore.boxWidth=this.boxWidth,this._popOverCore.overlayType=this.overlayType,this._popOverCore.options=this.options,this._popOverCore.useAnchorSize=this.useAnchorSize,this._popOverCore.minWidth=this.minWidth,this._popOverCore.addEventListener("ezVisibilityChange",(({detail:e})=>{this.ezVisibilityChange.emit(e),this.opened=e}));const t=this.getFirstElement(this._host.children);t?this._popOverCore.appendChild(t):console.warn("O slot do popover está vazio. Adicione conteúdo ao slot para exibição correta.");const i=document.body.querySelector("#root"),s=this.getFirstElement(document.body.getElementsByTagName("div"));(null!==(e=null!=i?i:s)&&void 0!==e?e:document.body).appendChild(this._popOverCore)}render(){return i(s,null,i("slot",null))}get _host(){return r(this)}static get watchers(){return{opened:["observeOpened"]}}};n.style=":host{display:none}";const h=class{constructor(t){e(this,t),this.message=void 0}render(){return i("div",{class:"multi-selection__message"},i("span",{class:"multi-selection__text-message"},this.message))}};h.style=".multi-selection__message{display:flex;flex-direction:row;align-items:center;justify-content:center;width:100%;min-height:320px;text-align:center}.multi-selection__text-message{margin-top:-30px;font-family:var(--font-pattern);font-size:var(--text--meduim);padding:var(--space-xs);color:var(--text--primary)}";const c=class{constructor(i){e(this,i),this.changeValue=t(this,"changeValue",7),this.changePreSelection=t(this,"changePreSelection",7),this._startHighlightTag="<span class='card-item__highlight'>",this._endHighlightTag="</span>",this.showLoading=void 0,this.visibleOptions=[],this.textEmptyList=void 0,this.canShowListOptions=void 0,this.value=void 0,this.showOptionValue=!0,this.preSelection=void 0}async nextOption(){const e=void 0===this.preSelection?0:Math.min(this.preSelection+1,this.visibleOptions.length-1);this.changePreSelection.emit(e),this.scrollToOption(this.visibleOptions[e])}async previousOption(){const e=void 0===this.preSelection?0:Math.max(this.preSelection-1,0);this.changePreSelection.emit(e),this.scrollToOption(this.visibleOptions[e])}selectOption(e){const t=Object.assign(Object.assign({},e),{value:o(null==e?void 0:e.value),label:o(null==e?void 0:e.label)}),i=Object.assign(Object.assign({},t),{value:l(null==t?void 0:t.value),label:l(null==t?void 0:t.label)});this.changeValue.emit(i)}createOption(e){let{key:t,title:i}=e;const s=new RegExp(this._startHighlightTag,"g"),r=new RegExp(this._endHighlightTag,"g");i=a.decodeHtmlEntities(i);const o={value:null==t?void 0:t.replace(s,"").replace(r,""),label:null==i?void 0:i.replace(s,"").replace(r,"")};this.selectOption(o)}scrollToOption(e){window.requestAnimationFrame((()=>{const t=(null==e?void 0:e.value)?this._optionsList.querySelector(`div#item_${e.value.replace(/([ #;&,.+*~':"!^$[\]()=<>|/\\])/g,"\\$1")}`):void 0;t&&t.scrollIntoView({behavior:"smooth",block:"nearest"})}))}buildItem(e,t){e.label=e.label||e.value;const s={key:e.value,title:e.label,details:e.details};return i("div",{style:{height:"100%"},class:t===this.preSelection?"item preselected":"item",id:`item_${e.value}`,onMouseDown:()=>this.createOption(s),onMouseOver:()=>this.changePreSelection.emit(t)},i("ez-card-item",{item:s,compacted:!0,enableKey:this.showOptionValue}))}render(){return i(s,null,i("ul",{class:"list-options",ref:e=>this._optionsList=e},!this.showLoading&&0===this.visibleOptions.length&&i("div",{class:"message"},i("span",{class:"message__no-result"},this.textEmptyList)),this.showLoading&&i("div",{class:"message"},i("div",{class:"message__loading"})),this.canShowListOptions&&this.visibleOptions.map(((e,t)=>this.buildItem(e,t)))))}};c.style=":host{--ez-search__list-title--primary:var(--title--primary, #2B3A54);--ez-search__list-text--primary:var(--text--primary, #626e82);--ez-search__list-height:calc(var(--ez-search--font-size) + var(--ez-search--space--medium) + 4px);--ez-search__list-min-width:64px;--ez-search__scrollbar--color-default:var(--scrollbar--default, #626e82);--ez-search__scrollbar--color-background:var(--scrollbar--background, #E5EAF0);--ez-search__scrollbar--color-hover:var(--scrollbar--hover, #2B3A54);--ez-search__scrollbar--color-clicked:var(--scrollbar--clicked, #a2abb9);--ez-search__scrollbar--border-radius:var(--border--radius-small, 6px);--ez-search__scrollbar--width:var(--space--small, 6px);--ez-search--border-radius-small:var(--border--radius-small, 6px);--ez-search--font-size:var(--text--medium, 14px);--ez-search--font-family:var(--font-pattern, Arial);--ez-search--font-weight--large:var(--text-weight--large, 500);--ez-search--font-weight--medium:var(--text-weight--medium, 400);--ez-search--background-medium:var(--background--medium, #f0f3f7);--ez-search--line-height:calc(var(--text--medium, 14px) + 4px)}.list-options{position:relative;z-index:var(--more-visible, 2);margin:var(--space--small) 0px;padding:0px;padding-inline-start:0px;box-sizing:border-box;width:100%;height:100%;max-height:350px;min-width:150px;display:flex;flex-direction:column;scroll-behavior:smooth;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;scrollbar-color:var(--ez-search__scrollbar--color-clicked) var(--ez-search__scrollbar--color-background)}.list-options::-webkit-scrollbar{background-color:var(--scrollbar--background);width:var(--space--small);max-width:var(--space--small);min-width:var(--space--small);height:var(--space--small);max-height:var(--space--small);min-height:var(--space--small)}.list-options::-webkit-scrollbar-track{background-color:var(--ez-search__scrollbar--color-background);border-radius:var(--ez-search__scrollbar--border-radius)}.list-options::-webkit-scrollbar-thumb{background-color:var(--ez-search__scrollbar--color-default);border-radius:var(--ez-search__scrollbar--border-radius)}.list-options::-webkit-scrollbar-thumb:vertical:hover,.list-options::-webkit-scrollbar-thumb:horizontal:hover{background-color:var(--ez-search__scrollbar--color-hover)}.list-options::-webkit-scrollbar-thumb:vertical:active,.list-options::-webkit-scrollbar-thumb:horizontal:active{background-color:var(--ez-search__scrollbar--color-clicked)}.message{text-align:center;display:flex;justify-content:center;align-items:center;list-style-type:none;margin:var(--space--medium) 0px;min-height:var(--ez-search__list-height)}.message__no-result{color:var(--ez-search__list-title--primary);font-family:var(--ez-search--font-family);font-size:var(--ez-search--font-size)}.message__loading{border-radius:50%;width:14px;height:14px;-webkit-animation:spin 1s linear infinite;animation:spin 1s linear infinite;border:3px solid var(--ez-search__list-title--primary);border-top:3px solid transparent}.item__value,.item__label{flex-basis:auto;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--ez-search__list-title--primary);font-family:var(--ez-search--font-family);font-size:var(--ez-search--font-size);line-height:var(--ez-search--line-height)}.item__label{font-weight:var(--ez-search--font-weight--medium)}.item__label--bold{font-weight:var(--ez-search--font-weight--large)}.item__value{text-align:center;color:var(--ez-search__list-text--primary);font-weight:var(--ez-search--font-weight--large)}.item__value--hidden{visibility:hidden;position:absolute;white-space:nowrap;z-index:-1;top:0;left:0}.item__label{text-align:left}.item__list>li:hover{background-color:var(--ez-search--background-medium)}.item{display:flex;align-items:center;width:100%;box-sizing:border-box;list-style-type:none;cursor:pointer;border-radius:var(--ez-search--border-radius-small);gap:var(--space--small, 6px)}.preselected{background-color:var(--background--medium)}@-webkit-keyframes spin{0%{-webkit-transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg)}}@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@supports not (scrollbar-width: thin){.item{padding-right:8px}}";export{n as ez_popover_plus,h as multi_selection_box_message,c as search_list}
@@ -0,0 +1 @@
1
+ import{r as t,c as i,h as e,f as n,H as r,g as s}from"./p-23a36bb6.js";import{DateUtils as o,ApplicationContext as l,Action as a,StringUtils as h,DataUnit as u,ElementIDUtils as c}from"@sankhyalabs/core";import{b as d,D as f}from"./p-15ea0c98.js";import{F as v}from"./p-173f68ea.js";import"./p-2187f86c.js";import"./p-ab574d59.js";const p=/child\[([^\]]+)\]/,m=/\$\{.+\}/;class b{constructor(){this._sheets=new Map,this._requiredFields=[],this._cleanOnCopyFields=[],this._defaultValues={}}static getDetailName(t){const i=p.exec(t);return i?i[1]:void 0}getSheet(t){return this._sheets.get(t)}getAllSheets(){return this._sheets}addSheet(t){this._sheets.set(t.name,t)}addRequiredFields(t){this._requiredFields=this._requiredFields.concat(t)}getRequiredFields(){return this._requiredFields}addCleanOnCopyFields(t){this._cleanOnCopyFields=this._cleanOnCopyFields.concat(t)}getCleanOnCopyFields(){return this._cleanOnCopyFields}addDefaultValues(t){return this._defaultValues=Object.assign(Object.assign({},this._defaultValues),t)}getDefaultValues(){const t={};return Object.entries(this._defaultValues).forEach((([i,e])=>{if("string"==typeof e){const t=m.exec(e);t&&(e=this.getDefaultVar(t[0]))}t[i]=e})),t}getDefaultVar(t){return"${data}"===t?o.getToday():"${datahora}"===t?o.getToday(!0):this._defaultVars?this._defaultVars.get(t):void 0}setDefaultVars(t){this._defaultVars=t}}const y=(t,i)=>"__main"==t[0].label?-1:(t[0].order||1e4)-(i[0].order||1e4);function w(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var g="function"==typeof Symbol&&Symbol.observable||"@@observable",E=function(){return Math.random().toString(36).substring(7).split("").join(".")},O={INIT:"@@redux/INIT"+E(),REPLACE:"@@redux/REPLACE"+E(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+E()}};function _(t){if("object"!=typeof t||null===t)return!1;for(var i=t;null!==Object.getPrototypeOf(i);)i=Object.getPrototypeOf(i);return Object.getPrototypeOf(t)===i}function C(t,i,e){var n;if("function"==typeof i&&"function"==typeof e||"function"==typeof e&&"function"==typeof arguments[3])throw new Error(w(0));if("function"==typeof i&&void 0===e&&(e=i,i=void 0),void 0!==e){if("function"!=typeof e)throw new Error(w(1));return e(C)(t,i)}if("function"!=typeof t)throw new Error(w(2));var r=t,s=i,o=[],l=o,a=!1;function h(){l===o&&(l=o.slice())}function u(){if(a)throw new Error(w(3));return s}function c(t){if("function"!=typeof t)throw new Error(w(4));if(a)throw new Error(w(5));var i=!0;return h(),l.push(t),function(){if(i){if(a)throw new Error(w(6));i=!1,h();var e=l.indexOf(t);l.splice(e,1),o=null}}}function d(t){if(!_(t))throw new Error(w(7));if(void 0===t.type)throw new Error(w(8));if(a)throw new Error(w(9));try{a=!0,s=r(s,t)}finally{a=!1}for(var i=o=l,e=0;e<i.length;e++)(0,i[e])();return t}function f(t){if("function"!=typeof t)throw new Error(w(10));r=t,d({type:O.REPLACE})}function v(){var t,i=c;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(w(11));function e(){t.next&&t.next(u())}return e(),{unsubscribe:i(e)}}})[g]=function(){return this},t}return d({type:O.INIT}),(n={dispatch:d,subscribe:c,getState:u,replaceReducer:f})[g]=v,n}const j={};function A(t=j,i){switch(i.type){case N.METADATA_LOADED:return Object.assign(Object.assign({},t),{formMetadata:i.payload,currentSheet:void 0});case N.CHANGE_TAB:return Object.assign(Object.assign({},t),{currentSheet:i.payload});default:return t}}function F(t){return t.formMetadata}function z(t){const i=function(t){return t.currentSheet}(t);return i?t.formMetadata.getSheet(i):Array.from(t.formMetadata.getAllSheets().values())[0]}var N;!function(t){t.METADATA_LOADED="FORM/METADATA_LOADED",t.CHANGE_TAB="FORM/CHANGE_TAB"}(N||(N={}));const x=class{constructor(e){t(this,e),this.ezFormRequestClearFieldToFocus=i(this,"ezFormRequestClearFieldToFocus",7),this.ezFormSetFields=i(this,"ezFormSetFields",7),this.ezReady=i(this,"ezReady",7),this.formItemsReady=i(this,"formItemsReady",7),this._customEditors=new Map,this._application=l.getContextValue("__SNK__APPLICATION__"),this.onDataUnitAction=t=>{t.type===a.METADATA_LOADED&&this.processMetadata()},this._fieldsProps=new Map,this._singleColumn=!0,this.dataUnit=void 0,this.config=void 0,this.recordsValidator=void 0,this.fieldToFocus=void 0,this.onlyStaticFields=!1}validate(){return this._dataBinder.validate()}async addCustomEditor(t,i,e){if(this._formView)return void this._formView.addCustomEditor(t,i,e);const n=new Map(this._customEditors);n.set(t,{customEditor:i,detailContext:e}),this._customEditors=n}observeConfig(){this.processMetadata()}async setFieldProp(t,i,e){const n=new Map(this._fieldsProps),r=this._fieldsProps.get(t);n.set(t,Object.assign(Object.assign({},r),{[i]:e})),this._fieldsProps=n}getDynamicContent(){var t;const i=F(this._store.getState());if(!i)return null;const n=Array.from(i.getAllSheets().values()),r=z(null===(t=this._store)||void 0===t?void 0:t.getState());let s=[];if(n.length>1){const t=n.map(((t,i)=>({tabKey:t.name,label:t.label,index:i}))),i="selector";s.push(e("ez-tabselector",{tabs:this.buildIdTabSelector(t),onEzChange:t=>this._store.dispatch(function(t){return{type:N.CHANGE_TAB,payload:"string"==typeof t?t:t.tabKey}}(t.detail)),selectedTab:r.name,"data-element-id":i}))}return s=s.concat(this.buildFormContent(r)),s}buildFormContent(t){const i=null==t?void 0:t.fields;if(null==t)return;this.ezFormSetFields.emit(i);const n=`${h.replaceAccentuatedChars(h.toCamelCase(null==t?void 0:t.label),!1)}_selectorContainer`;return e("div",{class:"dynamic-content","data-element-id":n},e("ez-form-view",{ref:t=>this._formView=t,class:"ez-row ez-padding-vertical--small",fields:i,singleColumn:this._singleColumn,selectedRecord:this.dataUnit.getSelectedRecord()}))}processMetadata(){if(this.bindFields()&&this.dataUnit&&this._store){const t=((t,i,e=!1)=>{var n,r;null!=t&&!0!==(null==t?void 0:t.emptyConfig)||(t=(t=>{const i=t.metadata;let e;return i&&(e=i.fields.filter((t=>!1!==t.visible)).map((t=>({name:t.name,defaultValue:t.defaultValue})))),{emptyConfig:!1,fields:e}})(i));const s=new Map,o=new Map,l=[],a=[],h={};null===(n=null==t?void 0:t.tabs)||void 0===n||n.forEach((t=>{o.has(t.label)||!1!==t.visible||o.set(t.label,t)})),null===(r=null==t?void 0:t.fields)||void 0===r||r.forEach((t=>{var e,n,r;if(!1!==t.visible){const u=((t,i)=>("string"==typeof t?Array.from(i.keys()).find((i=>i.label===t)):t)||{label:t,visible:!0})(t.tab||"__main",s);if(o.has(u.label))return;const c=i.getField(t.name);if(c&&(null==(null==c?void 0:c.visible)||!0===(null==c?void 0:c.visible))&&u.visible){s.has(u)||s.set(u,[]);const i=d(c,t);s.get(u).push(i),i.required&&l.push(t.name),((null==t.cleanOnCopy?null===(e=c.properties)||void 0===e?void 0:e.cleanOnCopy:t.cleanOnCopy)||(null===(n=c.properties)||void 0===n?void 0:n.cleanOnCopy))&&a.push(t.name);let o=null==t.defaultValue?null===(r=c.properties)||void 0===r?void 0:r.defaultValue:t.defaultValue;if(o&&null!=o.value){const{type:i,value:e}=o;if(i)if("V"===i)o=e;else try{const t=JSON.parse(e);o=t&&"value"in t?t:e}catch(t){}h[t.name]=o}}}}));const u=new b;if(u.setDefaultVars(t.defaultVars),e){const t=i.metadata;null!=t&&null!=t.children&&t.children.forEach((t=>{const{label:i,name:e,fields:n}=(t=>({name:`child[${t.name}]`,label:t.label,fields:[]}))(t);s.set({name:e,label:i},n)}))}return Array.from(s.entries()).sort(y).forEach((([t,i])=>{u.addSheet({label:"__main"===t.label?"Principal":t.label,name:t.name||t.label,fields:i})})),u.addRequiredFields(l),u.addCleanOnCopyFields(a),u.addDefaultValues(h),u})(this.config,this.dataUnit);this._store.dispatch({type:N.METADATA_LOADED,payload:t})}}isStatic(){var t;return(null===(t=this._staticFields)||void 0===t?void 0:t.length)>0}bindFields(){return!this.isStatic()||!1===this.onlyStaticFields}async componentWillLoad(){var t;void 0===this.dataUnit&&(this.dataUnit=new u("ez-form")),this.dataUnit.unsubscribe(this.onDataUnitAction),this.dataUnit.subscribe(this.onDataUnitAction),this._dataBinder=new f(this.dataUnit),this._store=C(A),this._store.subscribe((()=>n(this))),this._staticFields=Array.from(this._element.querySelectorAll("[data-field-name]")),this.processMetadata(),c.addIDInfo(this._element,null,{dataUnit:this.dataUnit});const i=await(null===(t=this._application)||void 0===t?void 0:t.getLayoutFormConfig());this.setSingleColumn(i),this.registerNotifyListeners(i)}async setSingleColumn(t){this._singleColumn=!(null==t?void 0:t.config)||t.config===v.CASCADE}async registerNotifyListeners(t){t&&t.onConfigChange((t=>{this._singleColumn=t===v.CASCADE}))}componentDidRender(){const t=F(this._store.getState());t.addRequiredFields(this._staticFields.filter((t=>t.dataset.required)).map((t=>t.dataset.fieldName))),this._dataBinder.bind(Array.from(this._element.querySelectorAll("[data-field-name]")),this.dataUnit.dataUnitId,t,this.recordsValidator),this.ezReady.emit(),this.handleFieldToFocus(),this.setCustomEditors(),this.setFieldsProps()}setCustomEditors(){if(this._formView)for(const[t,i]of this._customEditors)this._formView.addCustomEditor(t,i.customEditor,i.detailContext),this._customEditors.delete(t)}handleFieldToFocus(){var t;if(null==this.fieldToFocus)return;const i=z(null===(t=this._store)||void 0===t?void 0:t.getState());(null==i?void 0:i.fields).some((t=>t.name===this.fieldToFocus))&&requestAnimationFrame((()=>{this._dataBinder.setFocus(this.fieldToFocus),this.ezFormRequestClearFieldToFocus.emit()}))}setFieldsProps(){if(this._formView)for(const[t,i]of this._fieldsProps){for(const e in i)this._formView.setFieldProp(t,e,i[e]);this._fieldsProps.delete(t)}}disconnectedCallback(){this.dataUnit.unsubscribe(this.onDataUnitAction),this._dataBinder.onDisconnectedCallback()}buildIdTabSelector(t){return t&&t.forEach((t=>t[c.DATA_ELEMENT_ID_ATTRIBUTE_NAME]=h.toCamelCase(t.label))),t}render(){return e(r,null,this.isStatic()?null:this.getDynamicContent())}get _element(){return s(this)}static get watchers(){return{config:["observeConfig"]}}};x.style=".sc-ez-form-h{display:flex;flex-direction:column;width:100%}.dynamic-content.sc-ez-form ez-collapsible-box.sc-ez-form{--ez-collapsible-box__header--padding-right:var(--space-small, 6px);--ez-collapsible-box__header--padding-left:var(--space-small, 6px)}";export{x as ez_form}
@@ -0,0 +1 @@
1
+ import{r as t,c as i,h as s,H as h,g as n}from"./p-23a36bb6.js";import{StringUtils as r}from"@sankhyalabs/core";var e=function(t,i){return Number(t.slice(0,-1*i.length))},o=function(t){return t.endsWith("px")?{value:t,type:"px",numeric:e(t,"px")}:t.endsWith("fr")?{value:t,type:"fr",numeric:e(t,"fr")}:t.endsWith("%")?{value:t,type:"%",numeric:e(t,"%")}:"auto"===t?{value:t,type:"auto"}:null},u=function(t){return t.split(" ").map(o)},c=function(t,i,s){return i.concat(s).map((function(i){return i.style[t]})).filter((function(t){return void 0!==t&&""!==t}))},a=function(t){for(var i=0;i<t.length;i++)if(t[i].numeric>0)return i;return null},l=function(){return!1},d=function(t,i,s){t.style[i]=s},f=function(t,i,s){var h=t[i];return void 0!==h?h:s};function m(t){var i;return(i=[]).concat.apply(i,Array.from(t.ownerDocument.styleSheets).map((function(t){var i=[];try{i=Array.from(t.cssRules||[])}catch(t){}return i}))).filter((function(i){var s=!1;try{s=t.matches(i.selectorText)}catch(t){}return s}))}var w=function(t,i,s){this.direction=t,this.element=i.element,this.track=i.track,"column"===t?(this.gridTemplateProp="grid-template-columns",this.gridGapProp="grid-column-gap",this.cursor=f(s,"columnCursor",f(s,"cursor","col-resize")),this.snapOffset=f(s,"columnSnapOffset",f(s,"snapOffset",30)),this.dragInterval=f(s,"columnDragInterval",f(s,"dragInterval",1)),this.clientAxis="clientX",this.optionStyle=f(s,"gridTemplateColumns")):"row"===t&&(this.gridTemplateProp="grid-template-rows",this.gridGapProp="grid-row-gap",this.cursor=f(s,"rowCursor",f(s,"cursor","row-resize")),this.snapOffset=f(s,"rowSnapOffset",f(s,"snapOffset",30)),this.dragInterval=f(s,"rowDragInterval",f(s,"dragInterval",1)),this.clientAxis="clientY",this.optionStyle=f(s,"gridTemplateRows")),this.onDragStart=f(s,"onDragStart",l),this.onDragEnd=f(s,"onDragEnd",l),this.onDrag=f(s,"onDrag",l),this.writeStyle=f(s,"writeStyle",d),this.startDragging=this.startDragging.bind(this),this.stopDragging=this.stopDragging.bind(this),this.drag=this.drag.bind(this),this.minSizeStart=i.minSizeStart,this.minSizeEnd=i.minSizeEnd,i.element&&(this.element.addEventListener("mousedown",this.startDragging),this.element.addEventListener("touchstart",this.startDragging))};w.prototype.getDimensions=function(){var t=this.grid.getBoundingClientRect(),i=t.width,s=t.height,h=t.bottom,n=t.left,r=t.right;"column"===this.direction?(this.start=t.top,this.end=h,this.size=s):"row"===this.direction&&(this.start=n,this.end=r,this.size=i)},w.prototype.getSizeAtTrack=function(t,i){return function(t,i,s,h){return void 0===s&&(s=0),void 0===h&&(h=!1),i.slice(0,h?t+1:t).reduce((function(t,i){return t+i.numeric}),0)+(s?t*s:0)}(t,this.computedPixels,this.computedGapPixels,i)},w.prototype.getSizeOfTrack=function(t){return this.computedPixels[t].numeric},w.prototype.getRawTracks=function(){var t=c(this.gridTemplateProp,[this.grid],m(this.grid));if(!t.length){if(this.optionStyle)return this.optionStyle;throw Error("Unable to determine grid template tracks from styles.")}return t[0]},w.prototype.getGap=function(){var t=c(this.gridGapProp,[this.grid],m(this.grid));return t.length?t[0]:null},w.prototype.getRawComputedTracks=function(){return window.getComputedStyle(this.grid)[this.gridTemplateProp]},w.prototype.getRawComputedGap=function(){return window.getComputedStyle(this.grid)[this.gridGapProp]},w.prototype.setTracks=function(t){this.tracks=t.split(" "),this.trackValues=u(t)},w.prototype.setComputedTracks=function(t){this.computedTracks=t.split(" "),this.computedPixels=u(t)},w.prototype.setGap=function(t){this.gap=t},w.prototype.setComputedGap=function(t){var i;this.computedGap=t,this.computedGapPixels=((i=this.computedGap).endsWith("px")?Number(i.slice(0,-1*"px".length)):null)||0},w.prototype.getMousePosition=function(t){return"touches"in t?t.touches[0][this.clientAxis]:t[this.clientAxis]},w.prototype.startDragging=function(t){if(!("button"in t)||0===t.button){t.preventDefault(),this.grid=this.element?this.element.parentNode:t.target.parentNode,this.getDimensions(),this.setTracks(this.getRawTracks()),this.setComputedTracks(this.getRawComputedTracks()),this.setGap(this.getGap()),this.setComputedGap(this.getRawComputedGap());var i=this.trackValues.filter((function(t){return"%"===t.type})),s=this.trackValues.filter((function(t){return"fr"===t.type}));if(this.totalFrs=s.length,this.totalFrs){var h=a(s);null!==h&&(this.frToPixels=this.computedPixels[h].numeric/s[h].numeric)}if(i.length){var n=a(i);null!==n&&(this.percentageToPixels=this.computedPixels[n].numeric/i[n].numeric)}var r=this.getSizeAtTrack(this.track,!1)+this.start;if(this.dragStartOffset=this.getMousePosition(t)-r,this.aTrack=this.track-1,!(this.track<this.tracks.length-1))throw Error("Invalid track index: "+this.track+". Track must be between two other tracks and only "+this.tracks.length+" tracks were found.");this.bTrack=this.track+1,this.aTrackStart=this.getSizeAtTrack(this.aTrack,!1)+this.start,this.bTrackEnd=this.getSizeAtTrack(this.bTrack,!0)+this.start,this.dragging=!0,window.addEventListener("mouseup",this.stopDragging),window.addEventListener("touchend",this.stopDragging),window.addEventListener("touchcancel",this.stopDragging),window.addEventListener("mousemove",this.drag),window.addEventListener("touchmove",this.drag),this.grid.addEventListener("selectstart",l),this.grid.addEventListener("dragstart",l),this.grid.style.userSelect="none",this.grid.style.webkitUserSelect="none",this.grid.style.MozUserSelect="none",this.grid.style.pointerEvents="none",this.grid.style.cursor=this.cursor,window.document.body.style.cursor=this.cursor,this.onDragStart(this.direction,this.track)}},w.prototype.stopDragging=function(){this.dragging=!1,this.cleanup(),this.onDragEnd(this.direction,this.track),this.needsDestroy&&(this.element&&(this.element.removeEventListener("mousedown",this.startDragging),this.element.removeEventListener("touchstart",this.startDragging)),this.destroyCb(),this.needsDestroy=!1,this.destroyCb=null)},w.prototype.drag=function(t){var i=this.getMousePosition(t),s=this.getSizeOfTrack(this.track),h=this.aTrackStart+this.minSizeStart+this.dragStartOffset+this.computedGapPixels,n=this.bTrackEnd-this.minSizeEnd-this.computedGapPixels-(s-this.dragStartOffset);i<h+this.snapOffset&&(i=h),i>n-this.snapOffset&&(i=n),i<h?i=h:i>n&&(i=n);var r=i-this.aTrackStart-this.dragStartOffset-this.computedGapPixels,e=this.bTrackEnd-i+this.dragStartOffset-s-this.computedGapPixels;if(this.dragInterval>1){var o=Math.round(r/this.dragInterval)*this.dragInterval;e-=o-r,r=o}r<this.minSizeStart&&(r=this.minSizeStart),e<this.minSizeEnd&&(e=this.minSizeEnd),"px"===this.trackValues[this.aTrack].type?this.tracks[this.aTrack]=r+"px":"fr"===this.trackValues[this.aTrack].type?this.tracks[this.aTrack]=1===this.totalFrs?"1fr":r/this.frToPixels+"fr":"%"===this.trackValues[this.aTrack].type&&(this.tracks[this.aTrack]=r/this.percentageToPixels+"%"),"px"===this.trackValues[this.bTrack].type?this.tracks[this.bTrack]=e+"px":"fr"===this.trackValues[this.bTrack].type?this.tracks[this.bTrack]=1===this.totalFrs?"1fr":e/this.frToPixels+"fr":"%"===this.trackValues[this.bTrack].type&&(this.tracks[this.bTrack]=e/this.percentageToPixels+"%");var u=this.tracks.join(" ");this.writeStyle(this.grid,this.gridTemplateProp,u),this.onDrag(this.direction,this.track,u)},w.prototype.cleanup=function(){window.removeEventListener("mouseup",this.stopDragging),window.removeEventListener("touchend",this.stopDragging),window.removeEventListener("touchcancel",this.stopDragging),window.removeEventListener("mousemove",this.drag),window.removeEventListener("touchmove",this.drag),this.grid&&(this.grid.removeEventListener("selectstart",l),this.grid.removeEventListener("dragstart",l),this.grid.style.userSelect="",this.grid.style.webkitUserSelect="",this.grid.style.MozUserSelect="",this.grid.style.pointerEvents="",this.grid.style.cursor=""),window.document.body.style.cursor=""},w.prototype.destroy=function(t,i){void 0===t&&(t=!0),t||!1===this.dragging?(this.cleanup(),this.element&&(this.element.removeEventListener("mousedown",this.startDragging),this.element.removeEventListener("touchstart",this.startDragging)),i&&i()):(this.needsDestroy=!0,i&&(this.destroyCb=i))};var v=function(t,i,s){return i in t?t[i]:s},p=function(t,i){return function(s){if(s.track<1)throw Error("Invalid track index: "+s.track+". Track must be between two other tracks.");var h="column"===t?i.columnMinSizes||{}:i.rowMinSizes||{},n="column"===t?"columnMinSize":"rowMinSize";return new w(t,Object.assign({},{minSizeStart:v(h,s.track-1,f(i,n,f(i,"minSize",0))),minSizeEnd:v(h,s.track+1,f(i,n,f(i,"minSize",0)))},s),i)}},g=function(t){var i=this;this.columnGutters={},this.rowGutters={},this.options=Object.assign({},{columnGutters:t.columnGutters||[],rowGutters:t.rowGutters||[],columnMinSizes:t.columnMinSizes||{},rowMinSizes:t.rowMinSizes||{}},t),this.options.columnGutters.forEach((function(t){i.columnGutters[t.track]=p("column",i.options)(t)})),this.options.rowGutters.forEach((function(t){i.rowGutters[t.track]=p("row",i.options)(t)}))};g.prototype.addColumnGutter=function(t,i){this.columnGutters[i]&&this.columnGutters[i].destroy(),this.columnGutters[i]=p("column",this.options)({element:t,track:i})},g.prototype.addRowGutter=function(t,i){this.rowGutters[i]&&this.rowGutters[i].destroy(),this.rowGutters[i]=p("row",this.options)({element:t,track:i})},g.prototype.removeColumnGutter=function(t,i){var s=this;void 0===i&&(i=!0),this.columnGutters[t]&&this.columnGutters[t].destroy(i,(function(){delete s.columnGutters[t]}))},g.prototype.removeRowGutter=function(t,i){var s=this;void 0===i&&(i=!0),this.rowGutters[t]&&this.rowGutters[t].destroy(i,(function(){delete s.rowGutters[t]}))},g.prototype.handleDragStart=function(t,i,s){"column"===i?(this.columnGutters[s]&&this.columnGutters[s].destroy(),this.columnGutters[s]=p("column",this.options)({track:s}),this.columnGutters[s].startDragging(t)):"row"===i&&(this.rowGutters[s]&&this.rowGutters[s].destroy(),this.rowGutters[s]=p("row",this.options)({track:s}),this.rowGutters[s].startDragging(t))},g.prototype.destroy=function(t){var i=this;void 0===t&&(t=!0),Object.keys(this.columnGutters).forEach((function(s){return i.columnGutters[s].destroy(t,(function(){delete i.columnGutters[s]}))})),Object.keys(this.rowGutters).forEach((function(s){return i.rowGutters[s].destroy(t,(function(){delete i.rowGutters[s]}))}))};const b=class{constructor(s){t(this,s),this.resizeEnd=i(this,"resizeEnd",7),this._items=[],this._buildInProgress=!1,this.direction="column",this.anchorToExpand=!1,this.structural=!1}rebuildLayout(){Array.from(this._element.querySelectorAll(".ez-split-gutter")).reverse().forEach((t=>{t.remove()})),Array.from(this._element.getElementsByTagName("EzSplitPanel")).reverse().forEach((t=>{t.rebuildLayout()})),this.buildItems(),this.initSplit()}buildItems(){this._panelID=r.generateUUID(),this._element.dataset.panelId=this._panelID,this._element.dataset.uniqueId="EzSplitPanel";let t=Array.from(this._element.children);this._items=t.filter((t=>{var i;return"EZ-SPLIT-ITEM"===(null===(i=t.tagName)||void 0===i?void 0:i.toUpperCase())}));let i=1;this._items.forEach(((t,s)=>{t.dataset.trackNumber=i.toString(),this._items.length>1&&s!=this._items.length-1&&this.addItemGutter(t),i+=2}))}componentDidLoad(){this.buildItems(),this.initSplit(),this._mutationObserver=new MutationObserver((t=>{for(const i of t)if("childList"===i.type&&!this._buildInProgress){this._buildInProgress=!0,window.requestAnimationFrame((()=>{this.rebuildLayout()})),window.requestAnimationFrame((()=>this._buildInProgress=!1));break}})),this._mutationObserver.observe(this._element,{childList:!0,subtree:!1})}disconnectedCallback(){null!=this._mutationObserver&&this._mutationObserver.disconnect()}initSplit(){var t;this._items.length&&(this._element.style["row"===this.direction?"grid-template-rows":"grid-template-columns"]=this.getGridTemplate(),this.removeGuttersMargin(),t=this.getGutters(),new g(t))}handlePanelDragEnd(){const t=this._items.map((t=>({id:t.id,height:t.clientHeight,width:t.clientWidth})));this.resizeEnd.emit({panelId:this._element.id,items:t})}getGutters(){const t={columnGutters:[],rowGutters:[],onDragEnd:()=>this.handlePanelDragEnd()};if(!this._items.length)return t;const i="row"===this.direction?"rowGutters":"columnGutters";return this._items.forEach(((s,h)=>{if(h===this._items.length-1)return;let n=s.dataset.trackNumber;h===this._items.length-1&&(n=this._items.length.toString()),t[i].push({track:Number(n),element:this._element.querySelector(`ez-split-panel[data-panel-id="${this._panelID}"] > [data-item-track="${s.dataset.trackNumber}"]`)})})),t}addItemGutter(t){const i=document.createElement("div");i.classList.add("ez-split-gutter"),i.classList.add(this.direction),i.classList.add("row"===this.direction?"ez-split-gutter__row":"ez-split-gutter__column"),i.dataset.itemTrack=`${t.dataset.trackNumber}`,i.dataset.trackNumber=(Number(t.dataset.trackNumber)+1).toString(),t.parentNode.insertBefore(i,t.nextSibling)}getElementStyle(){return{display:"grid",height:"100%",width:"100%",position:this.anchorToExpand?"relative":"unset"}}calcFreeSpacePercentage(){const t=this._items.reduce(((t,i)=>{var s;return t+((null===(s=i.size)||void 0===s?void 0:s.includes("%"))?Number(i.size.replace("%","")):0)}),0),i=this._items.filter((t=>void 0===t.size)).length;return i&&t?(100-t)/i:null}getGridTemplate(){let t="";const i=this.calcFreeSpacePercentage();return this._items.forEach(((s,h)=>{let n=s.size||"1fr";!s.size&&i&&(n=`${i}%`),t+=h!==this._items.length-1?0!==h?` ${n} 5px`:`${n} 5px`:` ${n}`})),t}removeGuttersMargin(){this._items.length<=1||("column"!=this.direction?"row"!=this.direction||this.removeGuttersMarginRow():this.removeGuttersMarginColumn())}removeGuttersMarginColumn(){this._items.forEach(((t,i)=>{0!=i?i!==this._items.length-1?(t.style.marginRight="0",t.style.marginLeft="0"):t.style.marginLeft="0":t.style.marginRight="0"}))}removeGuttersMarginRow(){this._items.length<=1||this._items.forEach(((t,i)=>{0!=i?i!==this._items.length-1?(t.style.marginBottom="0",t.style.marginTop="0"):t.style.marginTop="0":t.style.marginBottom="0"}))}render(){return s(h,{class:this.structural?"structural__panel":"content__panel",style:this.getElementStyle()})}get _element(){return n(this)}};b.style=".ez-split-gutter{cursor:grab;background-color:transparent;max-width:100%}.ez-split-gutter__row{cursor:ns-resize}.ez-split-gutter__column{cursor:ew-resize}.structural__panel{background:none;box-shadow:none;outline:none;padding:0;margin:0;border:0}";export{b as ez_split_panel}
@@ -24,7 +24,12 @@ export declare class EzBadge {
24
24
  * Define a posição do ícone em relação ao elemento filho.
25
25
  */
26
26
  position: IPosition;
27
+ /**
28
+ * Define a posição do ícone em relação ao elemento.
29
+ */
30
+ alignItems: "center" | "flex-end" | "flex-start";
27
31
  private getIconSize;
32
+ private getAlignItemsClass;
28
33
  componentDidLoad(): void;
29
34
  private handleSlotChange;
30
35
  private validateIconLeft;
@@ -24,7 +24,7 @@ export declare class EzButton {
24
24
  /**
25
25
  * Define o tamanho do ez-button.
26
26
  */
27
- size: "small" | "medium" | "large" | undefined;
27
+ size: "x-small" | "small" | "medium" | "large" | undefined;
28
28
  /**
29
29
  * Aplica o foco no botão.
30
30
  */
@@ -35,6 +35,7 @@ export declare class EzButton {
35
35
  setBlur(): Promise<void>;
36
36
  clickListener(evt: MouseEvent): void;
37
37
  componentDidLoad(): void;
38
+ getButtonSize(sizeParam?: string): string;
38
39
  getIconSize(sizeParam?: string): string;
39
40
  handleSlotChange(ev: Event): void;
40
41
  render(): any;
@@ -3,13 +3,13 @@ export declare class EzCalendar {
3
3
  private _container;
4
4
  private _box;
5
5
  private _floatingID;
6
- private _firstRender;
6
+ private _calendarHeight;
7
+ private _calendarWidth;
7
8
  private _currentPosition;
9
+ private _firstRender;
8
10
  private _todayLabel;
9
11
  private _weekDayLabels;
10
12
  private _monthLabels;
11
- private _calendarHeight;
12
- private _calendarWidth;
13
13
  private _hoursLabel;
14
14
  private _minutosLabel;
15
15
  private _hoursSelect;
@@ -24,6 +24,10 @@ export declare class EzCardItem {
24
24
  * Determina se a chave do item deve ser exibida.
25
25
  */
26
26
  enableKey: boolean;
27
+ /**
28
+ * Determina se o componente será apresentado no modo compacto.
29
+ */
30
+ compacted: boolean;
27
31
  /**
28
32
  * Emitido sempre que o ez-card é clicado.
29
33
  */
@@ -31,6 +35,7 @@ export declare class EzCardItem {
31
35
  componentWillRender(): void;
32
36
  componentDidLoad(): void;
33
37
  private createDetailList;
38
+ private buildDetailContentTitle;
34
39
  private buildDetailContent;
35
40
  render(): any;
36
41
  }
@@ -1,7 +1,9 @@
1
+ import { ChartTypeValue } from "./ChartTypeValue";
1
2
  export type ChartAxis = {
2
3
  color?: string;
3
4
  categories?: Array<string>;
4
5
  formatter?: (value: number | string) => string;
5
6
  text?: string;
6
7
  invertedPosition?: boolean;
8
+ type?: ChartTypeValue;
7
9
  };
@@ -0,0 +1 @@
1
+ export type ChartTypeValue = ("category" | "datetime" | "linear" | "logarithmic" | "treegrid");
@@ -8,9 +8,13 @@ export declare class EzCheck {
8
8
  */
9
9
  ezChange: EventEmitter<any>;
10
10
  /**
11
- * Texto a ser apresentado como título do campo.
12
- */
11
+ * Texto a ser apresentado como título do campo.
12
+ */
13
13
  label: string;
14
+ /**
15
+ * Texto alternativo a ser apresentado como título do campo.
16
+ */
17
+ alternativePlaceholder: string;
14
18
  /**
15
19
  * Define o valor do campo.
16
20
  */
@@ -46,4 +50,5 @@ export declare class EzCheck {
46
50
  getLabelClasses(): string;
47
51
  getInputClasses(): string;
48
52
  render(): any;
53
+ private renderLabel;
49
54
  }
@@ -0,0 +1,104 @@
1
+ import { IOption } from "../ez-combo-box";
2
+ export declare class EzComboBoxList {
3
+ private _optionsList;
4
+ private _listWrapper;
5
+ /**
6
+ * Indica se o indicador de carregamento deve ser exibido.
7
+ *
8
+ * @tipo {boolean}
9
+ */
10
+ showLoading: boolean;
11
+ /**
12
+ * Lista de opções visíveis que serão exibidas no componente.
13
+ *
14
+ * @tipo {Array<IOption>}
15
+ */
16
+ visibleOptions: Array<IOption>;
17
+ /**
18
+ * Mensagem exibida quando a lista de opções está vazia.
19
+ *
20
+ * @padrão "Nenhum resultado encontrado"
21
+ * @tipo {string}
22
+ */
23
+ textEmptyList: string;
24
+ /**
25
+ * Indica se o valor de cada opção deve ser exibido junto com o rótulo.
26
+ *
27
+ * @tipo {boolean}
28
+ */
29
+ showOptionValue: boolean;
30
+ /**
31
+ * Índice da opção pré-selecionada na lista.
32
+ *
33
+ * @tipo {number}
34
+ */
35
+ preSelection: number;
36
+ /**
37
+ * Largura máxima da lista, em pixels.
38
+ *
39
+ * @tipo {number}
40
+ */
41
+ maxWidth: number;
42
+ /**
43
+ * Largura fixa da lista, em pixels.
44
+ *
45
+ * @tipo {number}
46
+ */
47
+ width: number;
48
+ /**
49
+ * Callback chamado quando uma opção é selecionada.
50
+ *
51
+ * @param option A opção selecionada.
52
+ * @tipo {(option: IOption) => void}
53
+ */
54
+ onOptionSelect: (option: IOption) => void;
55
+ /**
56
+ * Callback chamado quando o mouse passa sobre uma opção.
57
+ *
58
+ * @param index O índice da opção em foco.
59
+ * @tipo {(index: number) => void}
60
+ */
61
+ onOptionHover: (index: number) => void;
62
+ /**
63
+ * Move a seleção para a próxima opção na lista.
64
+ */
65
+ nextOption(): Promise<void>;
66
+ /**
67
+ * Move a seleção para a opção anterior na lista, sem ultrapassar o início.
68
+ */
69
+ previousOption(): Promise<void>;
70
+ /**
71
+ * Seleciona a opção atualmente pré-selecionada.
72
+ */
73
+ selectCurrentOption(): Promise<void>;
74
+ /**
75
+ * Observa mudanças na propriedade `width` e ajusta a largura da lista.
76
+ *
77
+ * @param newValue O novo valor da largura.
78
+ * @param oldValue O valor anterior da largura.
79
+ */
80
+ observeWidth(newValue: number, oldValue: number): void;
81
+ /**
82
+ * Observa mudanças na propriedade `maxWidth` e ajusta a largura máxima da lista.
83
+ *
84
+ * @param newValue O novo valor da largura máxima.
85
+ * @param oldValue O valor anterior da largura máxima.
86
+ */
87
+ observeMaxWidth(newValue: number, oldValue: number): void;
88
+ /**
89
+ * Gerencia a navegação por teclado na lista do combo box.
90
+ *
91
+ * - `ArrowDown`: Move para a próxima opção.
92
+ * - `ArrowUp`: Move para a opção anterior.
93
+ * - `Enter`: Seleciona a opção atual.
94
+ * - `Escape`: Limpa a pré-seleção.
95
+ *
96
+ * @param event O evento de teclado.
97
+ */
98
+ handleKeyDown(event: KeyboardEvent): void;
99
+ private buildItem;
100
+ private scrollToOption;
101
+ componentDidLoad(): void;
102
+ componentDidRender(): void;
103
+ render(): any;
104
+ }