@sankhyalabs/ezui 0.0.0-bugfix-dev-KB-83282.0 → 0.0.0-bugfix-dev-KB-75065.1

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 (200) hide show
  1. package/dist/cjs/ez-actions-button.cjs.entry.js +1 -1
  2. package/dist/cjs/ez-alert-list.cjs.entry.js +1 -1
  3. package/dist/cjs/ez-alert.cjs.entry.js +1 -1
  4. package/dist/cjs/ez-application.cjs.entry.js +1 -1
  5. package/dist/cjs/ez-badge.cjs.entry.js +15 -3
  6. package/dist/cjs/ez-breadcrumb.cjs.entry.js +1 -1
  7. package/dist/cjs/ez-button.cjs.entry.js +1 -1
  8. package/dist/cjs/ez-calendar.cjs.entry.js +1 -1
  9. package/dist/cjs/ez-card-item_2.cjs.entry.js +1 -1
  10. package/dist/cjs/ez-chart.cjs.entry.js +1 -1
  11. package/dist/cjs/ez-check.cjs.entry.js +1 -1
  12. package/dist/cjs/ez-chip.cjs.entry.js +1 -1
  13. package/dist/cjs/ez-collapsible-box.cjs.entry.js +1 -1
  14. package/dist/cjs/ez-combo-box.cjs.entry.js +185 -59
  15. package/dist/cjs/ez-custom-form-input_2.cjs.entry.js +236 -0
  16. package/dist/cjs/ez-date-input.cjs.entry.js +1 -1
  17. package/dist/cjs/ez-date-time-input.cjs.entry.js +1 -1
  18. package/dist/cjs/ez-dialog.cjs.entry.js +1 -1
  19. package/dist/cjs/ez-double-list.cjs.entry.js +1 -1
  20. package/dist/cjs/ez-dropdown_2.cjs.entry.js +1 -1
  21. package/dist/cjs/ez-file-item.cjs.entry.js +1 -1
  22. package/dist/cjs/ez-filter-input.cjs.entry.js +1 -1
  23. package/dist/cjs/ez-form-view.cjs.entry.js +1 -1
  24. package/dist/cjs/ez-form.cjs.entry.js +1 -1
  25. package/dist/cjs/ez-grid.cjs.entry.js +1 -59
  26. package/dist/cjs/ez-guide-navigator.cjs.entry.js +1 -1
  27. package/dist/cjs/ez-icon.cjs.entry.js +1 -1
  28. package/dist/cjs/ez-list.cjs.entry.js +1 -1
  29. package/dist/cjs/ez-loading-bar.cjs.entry.js +1 -1
  30. package/dist/cjs/ez-modal-container.cjs.entry.js +1 -1
  31. package/dist/cjs/ez-modal.cjs.entry.js +1 -1
  32. package/dist/cjs/{ez-popover-core_2.cjs.entry.js → ez-multi-selection-list_2.cjs.entry.js} +197 -116
  33. package/dist/cjs/ez-number-input.cjs.entry.js +1 -1
  34. package/dist/cjs/ez-popover.cjs.entry.js +1 -1
  35. package/dist/cjs/ez-popup.cjs.entry.js +1 -1
  36. package/dist/cjs/ez-radio-button.cjs.entry.js +1 -1
  37. package/dist/cjs/ez-scroller_2.cjs.entry.js +1 -1
  38. package/dist/cjs/ez-search.cjs.entry.js +1 -1
  39. package/dist/cjs/ez-sidebar-navigator.cjs.entry.js +1 -1
  40. package/dist/cjs/ez-split-button.cjs.entry.js +1 -1
  41. package/dist/cjs/ez-split-item.cjs.entry.js +1 -1
  42. package/dist/cjs/ez-split-panel.cjs.entry.js +1 -1
  43. package/dist/cjs/ez-tabselector.cjs.entry.js +1 -1
  44. package/dist/cjs/ez-text-area.cjs.entry.js +1 -1
  45. package/dist/cjs/ez-text-input.cjs.entry.js +1 -1
  46. package/dist/cjs/ez-time-input.cjs.entry.js +1 -1
  47. package/dist/cjs/ez-toast.cjs.entry.js +1 -1
  48. package/dist/cjs/ez-tooltip.cjs.entry.js +1 -1
  49. package/dist/cjs/ez-tree.cjs.entry.js +1 -1
  50. package/dist/cjs/ez-upload.cjs.entry.js +1 -1
  51. package/dist/cjs/ez-view-stack.cjs.entry.js +1 -1
  52. package/dist/cjs/ezui.cjs.js +2 -2
  53. package/dist/cjs/filter-column.cjs.entry.js +1 -1
  54. package/dist/cjs/{index-a7b0c73d.js → index-9e5554cb.js} +7 -8
  55. package/dist/cjs/loader.cjs.js +2 -2
  56. package/dist/collection/collection-manifest.json +0 -2
  57. package/dist/collection/components/ez-badge/ez-badge.css +12 -1
  58. package/dist/collection/components/ez-badge/ez-badge.js +31 -1
  59. package/dist/collection/components/ez-combo-box/ez-combo-box.css +250 -0
  60. package/dist/collection/components/ez-combo-box/ez-combo-box.js +194 -61
  61. package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +0 -3
  62. package/dist/collection/components/ez-grid/ez-grid.js +1 -56
  63. package/dist/collection/components/ez-popover-plus/ez-popover-plus.css +64 -0
  64. package/dist/collection/components/ez-popover-plus/ez-popover-plus.js +127 -47
  65. package/dist/custom-elements/index.d.ts +0 -12
  66. package/dist/custom-elements/index.js +218 -394
  67. package/dist/esm/ez-actions-button.entry.js +1 -1
  68. package/dist/esm/ez-alert-list.entry.js +1 -1
  69. package/dist/esm/ez-alert.entry.js +1 -1
  70. package/dist/esm/ez-application.entry.js +1 -1
  71. package/dist/esm/ez-badge.entry.js +15 -3
  72. package/dist/esm/ez-breadcrumb.entry.js +1 -1
  73. package/dist/esm/ez-button.entry.js +1 -1
  74. package/dist/esm/ez-calendar.entry.js +1 -1
  75. package/dist/esm/ez-card-item_2.entry.js +1 -1
  76. package/dist/esm/ez-chart.entry.js +1 -1
  77. package/dist/esm/ez-check.entry.js +1 -1
  78. package/dist/esm/ez-chip.entry.js +1 -1
  79. package/dist/esm/ez-collapsible-box.entry.js +1 -1
  80. package/dist/esm/ez-combo-box.entry.js +186 -60
  81. package/dist/esm/ez-custom-form-input_2.entry.js +231 -0
  82. package/dist/esm/ez-date-input.entry.js +1 -1
  83. package/dist/esm/ez-date-time-input.entry.js +1 -1
  84. package/dist/esm/ez-dialog.entry.js +1 -1
  85. package/dist/esm/ez-double-list.entry.js +1 -1
  86. package/dist/esm/ez-dropdown_2.entry.js +1 -1
  87. package/dist/esm/ez-file-item.entry.js +1 -1
  88. package/dist/esm/ez-filter-input.entry.js +1 -1
  89. package/dist/esm/ez-form-view.entry.js +1 -1
  90. package/dist/esm/ez-form.entry.js +1 -1
  91. package/dist/esm/ez-grid.entry.js +2 -60
  92. package/dist/esm/ez-guide-navigator.entry.js +1 -1
  93. package/dist/esm/ez-icon.entry.js +1 -1
  94. package/dist/esm/ez-list.entry.js +1 -1
  95. package/dist/esm/ez-loading-bar.entry.js +1 -1
  96. package/dist/esm/ez-modal-container.entry.js +1 -1
  97. package/dist/esm/ez-modal.entry.js +1 -1
  98. package/dist/esm/{ez-popover-core_2.entry.js → ez-multi-selection-list_2.entry.js} +197 -116
  99. package/dist/esm/ez-number-input.entry.js +1 -1
  100. package/dist/esm/ez-popover.entry.js +1 -1
  101. package/dist/esm/ez-popup.entry.js +1 -1
  102. package/dist/esm/ez-radio-button.entry.js +1 -1
  103. package/dist/esm/ez-scroller_2.entry.js +1 -1
  104. package/dist/esm/ez-search.entry.js +1 -1
  105. package/dist/esm/ez-sidebar-navigator.entry.js +1 -1
  106. package/dist/esm/ez-split-button.entry.js +1 -1
  107. package/dist/esm/ez-split-item.entry.js +1 -1
  108. package/dist/esm/ez-split-panel.entry.js +1 -1
  109. package/dist/esm/ez-tabselector.entry.js +1 -1
  110. package/dist/esm/ez-text-area.entry.js +1 -1
  111. package/dist/esm/ez-text-input.entry.js +1 -1
  112. package/dist/esm/ez-time-input.entry.js +1 -1
  113. package/dist/esm/ez-toast.entry.js +1 -1
  114. package/dist/esm/ez-tooltip.entry.js +1 -1
  115. package/dist/esm/ez-tree.entry.js +1 -1
  116. package/dist/esm/ez-upload.entry.js +1 -1
  117. package/dist/esm/ez-view-stack.entry.js +1 -1
  118. package/dist/esm/ezui.js +3 -3
  119. package/dist/esm/filter-column.entry.js +1 -1
  120. package/dist/esm/{index-baa5e267.js → index-5a720e56.js} +7 -9
  121. package/dist/esm/loader.js +3 -3
  122. package/dist/ezui/ezui.esm.js +1 -1
  123. package/dist/ezui/p-000159dc.entry.js +1 -0
  124. package/dist/ezui/{p-44caad9a.entry.js → p-0378416a.entry.js} +1 -1
  125. package/dist/ezui/{p-65f471bc.entry.js → p-03b0ed5a.entry.js} +1 -1
  126. package/dist/ezui/{p-5b205c80.entry.js → p-044d46d5.entry.js} +1 -1
  127. package/dist/ezui/{p-a4cee65d.entry.js → p-0cfbbe82.entry.js} +1 -1
  128. package/dist/ezui/{p-77a4bd35.entry.js → p-11bfeca3.entry.js} +1 -1
  129. package/dist/ezui/{p-7e677b7b.entry.js → p-2069c78a.entry.js} +1 -1
  130. package/dist/ezui/{p-31b71e50.entry.js → p-23dab72f.entry.js} +1 -1
  131. package/dist/ezui/{p-17eabf46.entry.js → p-24b42f3d.entry.js} +1 -1
  132. package/dist/ezui/{p-556468d9.entry.js → p-3791d9c8.entry.js} +1 -1
  133. package/dist/ezui/{p-1ad6c61b.entry.js → p-3885e66e.entry.js} +1 -1
  134. package/dist/ezui/p-3af64edd.entry.js +1 -0
  135. package/dist/ezui/{p-fa6732f2.entry.js → p-44b39e81.entry.js} +1 -1
  136. package/dist/ezui/{p-c1527804.entry.js → p-4818b8ce.entry.js} +1 -1
  137. package/dist/ezui/{p-d9548bdf.entry.js → p-5010315a.entry.js} +1 -1
  138. package/dist/ezui/{p-ea54d056.entry.js → p-68b2e579.entry.js} +1 -1
  139. package/dist/ezui/{p-1f50fa05.entry.js → p-6b51c9cc.entry.js} +1 -1
  140. package/dist/ezui/{p-2bb2a0c4.entry.js → p-6d31c43c.entry.js} +1 -1
  141. package/dist/ezui/{p-6cdd3e0a.entry.js → p-6d8b3298.entry.js} +1 -1
  142. package/dist/ezui/p-6ec40dec.entry.js +1 -0
  143. package/dist/ezui/{p-5ed81457.entry.js → p-6fc26622.entry.js} +1 -1
  144. package/dist/ezui/{p-da1b4a38.entry.js → p-708b196e.entry.js} +1 -1
  145. package/dist/ezui/{p-555c9018.entry.js → p-7567ccdd.entry.js} +1 -1
  146. package/dist/ezui/{p-1e7a8633.entry.js → p-81461d2f.entry.js} +1 -1
  147. package/dist/ezui/{p-8df1ca33.entry.js → p-82fa4b09.entry.js} +1 -1
  148. package/dist/ezui/{p-0fa52b0f.entry.js → p-88c615f0.entry.js} +1 -1
  149. package/dist/ezui/{p-56fe5341.entry.js → p-9066b0b0.entry.js} +1 -1
  150. package/dist/ezui/{p-09de35a2.entry.js → p-91ccae0c.entry.js} +1 -1
  151. package/dist/ezui/{p-c0d9c4f8.entry.js → p-92748142.entry.js} +1 -1
  152. package/dist/ezui/{p-0faf71c5.entry.js → p-92fbaf2b.entry.js} +1 -1
  153. package/dist/ezui/{p-e6a9041d.entry.js → p-9e95bfeb.entry.js} +1 -1
  154. package/dist/ezui/{p-3195a7a7.entry.js → p-9fc250d4.entry.js} +1 -1
  155. package/dist/ezui/{p-53116373.entry.js → p-a3319796.entry.js} +46 -46
  156. package/dist/ezui/{p-990b4318.entry.js → p-a921e3e7.entry.js} +1 -1
  157. package/dist/ezui/{p-3429080c.entry.js → p-b22889ea.entry.js} +1 -1
  158. package/dist/ezui/{p-17be134a.entry.js → p-b2f6bc0a.entry.js} +1 -1
  159. package/dist/ezui/{p-cb1535f7.entry.js → p-b9282c79.entry.js} +1 -1
  160. package/dist/ezui/{p-e347df9c.entry.js → p-bef7daac.entry.js} +1 -1
  161. package/dist/ezui/{p-9f5fa3f9.entry.js → p-c2b20f78.entry.js} +1 -1
  162. package/dist/ezui/{p-17de16e5.entry.js → p-c96fbbef.entry.js} +1 -1
  163. package/dist/ezui/{p-2f45506d.entry.js → p-ca8936df.entry.js} +1 -1
  164. package/dist/ezui/p-cba34702.entry.js +1 -0
  165. package/dist/ezui/{p-20c024f7.entry.js → p-cf33bc48.entry.js} +1 -1
  166. package/dist/ezui/{p-58783dcf.entry.js → p-cf3b60fd.entry.js} +1 -1
  167. package/dist/ezui/{p-a80b1287.entry.js → p-dfca5946.entry.js} +1 -1
  168. package/dist/ezui/{p-7fdd479f.entry.js → p-e18d9e6a.entry.js} +1 -1
  169. package/dist/ezui/{p-fd0a19d6.entry.js → p-e3f8660b.entry.js} +1 -1
  170. package/dist/ezui/{p-23a36bb6.js → p-e4c7eb39.js} +2 -2
  171. package/dist/ezui/{p-0306dff7.entry.js → p-e6b38ade.entry.js} +1 -1
  172. package/dist/ezui/{p-b26f6c5b.entry.js → p-f30e0590.entry.js} +1 -1
  173. package/dist/ezui/{p-cf87aacb.entry.js → p-f4da7e1e.entry.js} +1 -1
  174. package/dist/ezui/{p-6e429cff.entry.js → p-fc194825.entry.js} +1 -1
  175. package/dist/ezui/p-fcc78b7f.entry.js +1 -0
  176. package/dist/types/components/ez-badge/ez-badge.d.ts +5 -0
  177. package/dist/types/components/ez-combo-box/ez-combo-box.d.ts +16 -7
  178. package/dist/types/components/ez-grid/ez-grid.d.ts +0 -5
  179. package/dist/types/components/ez-popover-plus/ez-popover-plus.d.ts +19 -6
  180. package/dist/types/components.d.ts +11 -218
  181. package/package.json +1 -1
  182. package/react/components.d.ts +0 -2
  183. package/react/components.js +0 -2
  184. package/react/components.js.map +1 -1
  185. package/dist/cjs/ez-combo-box-list_3.cjs.entry.js +0 -387
  186. package/dist/cjs/ez-multi-selection-list.cjs.entry.js +0 -186
  187. package/dist/collection/components/ez-combo-box/ez-combo-box-list/ez-combo-box-list.css +0 -205
  188. package/dist/collection/components/ez-combo-box/ez-combo-box-list/ez-combo-box-list.js +0 -426
  189. package/dist/collection/components/ez-popover-plus/subcomponent/ez-popover-core.css +0 -67
  190. package/dist/collection/components/ez-popover-plus/subcomponent/ez-popover-core.js +0 -468
  191. package/dist/esm/ez-combo-box-list_3.entry.js +0 -381
  192. package/dist/esm/ez-multi-selection-list.entry.js +0 -182
  193. package/dist/ezui/p-3a009184.entry.js +0 -1
  194. package/dist/ezui/p-650e4b6d.entry.js +0 -1
  195. package/dist/ezui/p-7bd15498.entry.js +0 -1
  196. package/dist/ezui/p-bc2f844e.entry.js +0 -1
  197. package/dist/ezui/p-dc73e1fe.entry.js +0 -1
  198. package/dist/ezui/p-f5931caa.entry.js +0 -1
  199. package/dist/types/components/ez-combo-box/ez-combo-box-list/ez-combo-box-list.d.ts +0 -104
  200. package/dist/types/components/ez-popover-plus/subcomponent/ez-popover-core.d.ts +0 -81
@@ -1,205 +0,0 @@
1
- :host {
2
- /* general */
3
- /*@doc Define o raio da borda do input. */
4
- --ez-combo-box--border-radius: var(--border--radius-medium, 12px);
5
- /*@doc Define o tamanho da fonte dentro do input. */
6
- --ez-combo-box--font-size: var(--text--medium, 14px);
7
- /*@doc Define a família da fonte dentro do input. */
8
- --ez-combo-box--font-family: var(--font-pattern, Arial);
9
- /*@doc Define o peso da fonte dentro do input quando pesada. */
10
- --ez-combo-box--font-weight--large: var(--text-weight--large, 500);
11
- /*@doc Define o peso da fonte dentro do input quando média. */
12
- --ez-combo-box--font-weight--medium: var(--text-weight--medium, 400);
13
- /*@doc Define a cor de fundo da lista de opções. */
14
- --ez-combo-box--background-color--xlight: var(--background--xlight, #fff);
15
- /*@doc Define a cor de fundo dos itens da lista de opções. */
16
- --ez-combo-box--background-medium: var(--background--medium, #f0f3f7);
17
- /*@doc Define a altura da linha do texto dentro do input. */
18
- --ez-combo-box--line-height: calc(var(--text--medium, 14px) + 4px);
19
-
20
- /* list */
21
- /*@doc Define a cor do texto da lista de opções. */
22
- --ez-combo-box__list-title--primary: var(--title--primary, #2B3A54);
23
- /*@doc Define a cor do texto do value da lista de opções. */
24
- --ez-combo-box__list-text--primary: var(--text--primary, #626e82);
25
- /*@doc Define a altura do box da lista de opções. */
26
- --ez-combo-box__list-height: calc(var(--ez-combo-box--font-size) + var(--ez-combo-box--space--medium) + 4px);
27
-
28
- /* espaçamento */
29
- /*@doc Define um espaçamento mediano entre elementos do componente. */
30
- --ez-combo-box--space--medium: var(--space--medium, 12px);
31
- /*@doc Define um espaçamento pequeno entre elementos do componente. */
32
- --ez-combo-box--space--small: var(--space--small, 6px);
33
-
34
- /* scrollbar */
35
- /*@doc Define a cor da barra de rolagem do componente. */
36
- --ez-combo-box__scrollbar--color-default: var(--scrollbar--default, #626e82);
37
- /*@doc Define a cor de fundo da barra de rolagem do componente. */
38
- --ez-combo-box__scrollbar--color-background: var(--scrollbar--background, #E5EAF0);
39
- /*@doc Define a cor do hover na barra de rolagem do componente. */
40
- --ez-combo-box__scrollbar--color-hover: var(--scrollbar--hover, #2B3A54);
41
- /*@doc Define a cor do active na barra de rolagem do componente. */
42
- --ez-combo-box__scrollbar--color-clicked: var(--scrollbar--clicked, #a2abb9);
43
- /*@doc Define o raio da borda da barra de rolagem do componente. */
44
- --ez-combo-box__scrollbar--border-radius: var(--border--radius-small, 6px);
45
- /*@doc Define a largura da barra de rolagem do componente. */
46
- --ez-combo-box__scrollbar--width: var(--space--medium, 12px);
47
-
48
- /* list-container */
49
- /*@doc Define o padding do container da lista. */
50
- --ez-combo-box__list-container--padding: var(--space--extra-small, 3px);
51
- }
52
-
53
- .list-container {
54
- /*public*/
55
- padding-top: var(--ez-combo-box__list-container--padding);
56
- }
57
-
58
- .list-wrapper {
59
- display: flex;
60
- flex-direction: column;
61
- box-sizing: border-box;
62
- width: 0;
63
- z-index: var(--more-visible, 2);
64
- max-height: calc(4*var(--ez-combo-box__list-height) + 2*var(--ez-combo-box--space--small) + 9px);
65
- background-color: var(--ez-combo-box--background-color--xlight);
66
- border-radius: var(--ez-combo-box--border-radius);
67
- box-shadow: var(--shadow--medium, 0 8px 24px 0 rgba(43, 58, 84, 0.10));
68
- padding: var(--ez-combo-box--space--small);
69
- }
70
-
71
- .list-options {
72
- box-sizing: border-box;
73
- width: 100%;
74
- height: 100%;
75
- padding: 0;
76
- display: flex;
77
- flex-direction: column;
78
- scroll-behavior: smooth;
79
- overflow: auto;
80
- scrollbar-width: thin;
81
- gap: 3px;
82
- scrollbar-color: var(--ez-combo-box__scrollbar--color-clicked) var(--ez-combo-box__scrollbar--color-background);
83
- }
84
-
85
- .list-options::-webkit-scrollbar {
86
- background-color: var(--ez-combo-box__scrollbar--color-background);
87
- width: var(--ez-combo-box__scrollbar--width);
88
- max-width: var(--ez-combo-box__scrollbar--width);
89
- min-width: var(--ez-combo-box__scrollbar--width);
90
- }
91
-
92
- .list-options::-webkit-scrollbar-track {
93
- background-color: var(--ez-combo-box__scrollbar--color-background);
94
- border-radius: var(--ez-combo-box__scrollbar--border-radius);
95
- }
96
-
97
- .list-options::-webkit-scrollbar-thumb {
98
- background-color: var(--ez-combo-box__scrollbar--color-default);
99
- border-radius: var(--ez-combo-box__scrollbar--border-radius);
100
- }
101
-
102
- .list-options::-webkit-scrollbar-thumb:vertical:hover,
103
- .list-options::-webkit-scrollbar-thumb:horizontal:hover {
104
- background-color: var(--ez-combo-box__scrollbar--color-hover);
105
- }
106
-
107
- .list-options::-webkit-scrollbar-thumb:vertical:active,
108
- .list-options::-webkit-scrollbar-thumb:horizontal:active {
109
- background-color: var(--ez-combo-box__scrollbar--color-clicked);
110
- }
111
-
112
- .item {
113
- display: flex;
114
- align-items: center;
115
- width: 100%;
116
- box-sizing: border-box;
117
- list-style-type: none;
118
- cursor: pointer;
119
- border-radius: var(--ez-combo-box--border-radius-small);
120
- padding: var(--ez-combo-box--space--small);
121
- min-height: var(--ez-combo-box__list-height);
122
- gap: var(--space--small, 6px);
123
- }
124
-
125
- .item__value,
126
- .item__label {
127
- flex-basis: auto;
128
- white-space: nowrap;
129
- overflow: hidden;
130
- text-overflow: ellipsis;
131
- color: var(--ez-combo-box__list-title--primary);
132
- font-family: var(--ez-combo-box--font-family);
133
- font-size: var(--ez-combo-box--font-size);
134
- line-height: var(--ez-combo-box--line-height);
135
- }
136
-
137
- .item__label {
138
- font-weight: var(--ez-combo-box--font-weight--medium);
139
- }
140
-
141
- .item__label--bold {
142
- font-weight: var(--ez-combo-box--font-weight--large);
143
- }
144
-
145
- .item__value {
146
- text-align: center;
147
- color: var(--ez-combo-box__list-text--primary);
148
- font-weight: var(--ez-combo-box--font-weight--large);
149
- }
150
-
151
- .item__value--hidden {
152
- visibility: hidden;
153
- position: absolute;
154
- white-space: nowrap;
155
- z-index: -1;
156
- top: 0;
157
- left: 0;
158
- }
159
-
160
- .item__label {
161
- text-align: left;
162
- }
163
-
164
- .message {
165
- text-align: center;
166
- display: flex;
167
- justify-content: center;
168
- align-items: center;
169
- list-style-type: none;
170
- min-height: var(--ez-combo-box__list-height);
171
- }
172
-
173
- .message__no-result {
174
- color: var(--ez-combo-box__list-title--primary);
175
- font-family: var(--ez-combo-box--font-family);
176
- font-size: var(--ez-combo-box--font-size);
177
- }
178
-
179
- .message__loading {
180
- border-radius: 50%;
181
- width: 14px;
182
- height: 14px;
183
- -webkit-animation: spin 1s linear infinite;
184
- animation: spin 1s linear infinite;
185
- border: 3px solid var(--ez-combo-box__list-title--primary);
186
- border-top: 3px solid transparent;
187
- }
188
-
189
- li:hover {
190
- background-color: var(--ez-combo-box--background-medium);
191
- }
192
-
193
- .preselected {
194
- background-color: var(--background--medium);
195
- }
196
-
197
- @-webkit-keyframes spin {
198
- 0% { -webkit-transform: rotate(0deg); }
199
- 100% { -webkit-transform: rotate(360deg); }
200
- }
201
-
202
- @keyframes spin {
203
- 0% { transform: rotate(0deg); }
204
- 100% { transform: rotate(360deg); }
205
- }
@@ -1,426 +0,0 @@
1
- import { h } from "@stencil/core";
2
- import { ElementIDUtils } from "@sankhyalabs/core";
3
- export class EzComboBoxList {
4
- constructor() {
5
- this.showLoading = undefined;
6
- this.visibleOptions = undefined;
7
- this.textEmptyList = "Nenhum resultado encontrado";
8
- this.showOptionValue = undefined;
9
- this.preSelection = undefined;
10
- this.maxWidth = undefined;
11
- this.width = undefined;
12
- this.onOptionSelect = undefined;
13
- this.onOptionHover = undefined;
14
- }
15
- /**
16
- * Move a seleção para a próxima opção na lista.
17
- */
18
- async nextOption() {
19
- var _a;
20
- if (!this.visibleOptions || this.visibleOptions.length === 0)
21
- return;
22
- const isAtLastOption = this.preSelection !== undefined && this.preSelection >= this.visibleOptions.length - 1;
23
- if (!isAtLastOption) {
24
- this.preSelection = this.preSelection === undefined ? 0 : this.preSelection + 1;
25
- this.scrollToOption(this.visibleOptions[this.preSelection]);
26
- (_a = this.onOptionHover) === null || _a === void 0 ? void 0 : _a.call(this, this.preSelection);
27
- }
28
- }
29
- /**
30
- * Move a seleção para a opção anterior na lista, sem ultrapassar o início.
31
- */
32
- async previousOption() {
33
- var _a;
34
- if (!this.visibleOptions || this.visibleOptions.length === 0)
35
- return;
36
- const isAtFirstOption = this.preSelection !== undefined && this.preSelection <= 0;
37
- if (!isAtFirstOption) {
38
- this.preSelection = this.preSelection === undefined ? this.visibleOptions.length - 1 : this.preSelection - 1;
39
- this.scrollToOption(this.visibleOptions[this.preSelection]);
40
- (_a = this.onOptionHover) === null || _a === void 0 ? void 0 : _a.call(this, this.preSelection);
41
- }
42
- }
43
- /**
44
- * Seleciona a opção atualmente pré-selecionada.
45
- */
46
- async selectCurrentOption() {
47
- if (this.preSelection !== undefined) {
48
- this.onOptionSelect(this.visibleOptions[this.preSelection]);
49
- this.preSelection = undefined;
50
- }
51
- }
52
- /**
53
- * Observa mudanças na propriedade `width` e ajusta a largura da lista.
54
- *
55
- * @param newValue O novo valor da largura.
56
- * @param oldValue O valor anterior da largura.
57
- */
58
- observeWidth(newValue, oldValue) {
59
- if (newValue === oldValue)
60
- return;
61
- if (!this._listWrapper)
62
- return;
63
- this._listWrapper.style.width = `${this.width}px`;
64
- }
65
- /**
66
- * Observa mudanças na propriedade `maxWidth` e ajusta a largura máxima da lista.
67
- *
68
- * @param newValue O novo valor da largura máxima.
69
- * @param oldValue O valor anterior da largura máxima.
70
- */
71
- observeMaxWidth(newValue, oldValue) {
72
- if (newValue === oldValue)
73
- return;
74
- if (!this._listWrapper)
75
- return;
76
- this._listWrapper.style.maxWidth = this.maxWidth ? `${this.maxWidth}px` : '';
77
- }
78
- /**
79
- * Gerencia a navegação por teclado na lista do combo box.
80
- *
81
- * - `ArrowDown`: Move para a próxima opção.
82
- * - `ArrowUp`: Move para a opção anterior.
83
- * - `Enter`: Seleciona a opção atual.
84
- * - `Escape`: Limpa a pré-seleção.
85
- *
86
- * @param event O evento de teclado.
87
- */
88
- handleKeyDown(event) {
89
- switch (event.key) {
90
- case "ArrowDown":
91
- event.preventDefault();
92
- event.stopPropagation();
93
- this.nextOption();
94
- break;
95
- case "ArrowUp":
96
- event.preventDefault();
97
- event.stopPropagation();
98
- this.previousOption();
99
- break;
100
- case "Enter":
101
- this.selectCurrentOption();
102
- break;
103
- case "Escape":
104
- this.preSelection = undefined;
105
- break;
106
- }
107
- }
108
- buildItem(opt, index) {
109
- const widthValue = this.showOptionValue && this.maxWidth > 0 ? `${this.maxWidth}px` : '';
110
- opt.label = opt.label || opt.value;
111
- return h("li", { tabIndex: 1, class: index === this.preSelection ? "item preselected" : "item", id: `item_${opt.value}_${index}`, key: `item_${opt.value}_${index}`, onMouseDown: () => this.onOptionSelect(opt), onMouseOver: () => this.preSelection = index }, this.showOptionValue
112
- ? h("span", { class: "item__value", title: opt.value, style: { width: widthValue, minWidth: widthValue, maxWidth: widthValue } }, opt.value)
113
- : undefined, h("span", { class: "item__label " + (this.showOptionValue ? "item__label--bold" : ""), title: opt.label }, opt.label));
114
- }
115
- scrollToOption(opt) {
116
- if (!opt || !opt.value || !this._optionsList)
117
- return;
118
- const index = this.visibleOptions.indexOf(opt);
119
- if (index === -1)
120
- return;
121
- const liElem = this._optionsList.querySelector(`li#item_${CSS.escape(opt.value)}_${CSS.escape(String(index))}`);
122
- if (liElem) {
123
- liElem.scrollIntoView({
124
- behavior: "smooth",
125
- block: "nearest"
126
- });
127
- }
128
- }
129
- componentDidLoad() {
130
- this._listWrapper.style.width = `${this.width}px`;
131
- this._listWrapper.style.maxWidth = this.maxWidth ? `${this.maxWidth}px` : '';
132
- }
133
- componentDidRender() {
134
- var _a;
135
- (_a = this._optionsList) === null || _a === void 0 ? void 0 : _a.querySelectorAll(".item").forEach((elem) => {
136
- ElementIDUtils.addIDInfoIfNotExists(elem, "itemComboBox");
137
- });
138
- }
139
- render() {
140
- return (h("section", { class: "list-container" }, h("div", { class: "list-wrapper", ref: elem => this._listWrapper = elem }, h("ul", { class: "list-options", ref: elem => this._optionsList = elem }, !this.showLoading && this.visibleOptions.length === 0 && (h("div", { class: "message" }, h("span", { class: "message__no-result" }, this.textEmptyList))), this.showLoading && (h("div", { class: "message" }, h("div", { class: "message__loading" }))), this.showOptionValue && (h("span", { class: "item__value item__value--hidden" })), !this.showLoading && this.visibleOptions.length > 0 &&
141
- this.visibleOptions.map((opt, index) => this.buildItem(opt, index))))));
142
- }
143
- static get is() { return "ez-combo-box-list"; }
144
- static get encapsulation() { return "shadow"; }
145
- static get originalStyleUrls() {
146
- return {
147
- "$": ["ez-combo-box-list.css"]
148
- };
149
- }
150
- static get styleUrls() {
151
- return {
152
- "$": ["ez-combo-box-list.css"]
153
- };
154
- }
155
- static get properties() {
156
- return {
157
- "showLoading": {
158
- "type": "boolean",
159
- "mutable": false,
160
- "complexType": {
161
- "original": "boolean",
162
- "resolved": "boolean",
163
- "references": {}
164
- },
165
- "required": false,
166
- "optional": false,
167
- "docs": {
168
- "tags": [{
169
- "name": "tipo",
170
- "text": "{boolean}"
171
- }],
172
- "text": "Indica se o indicador de carregamento deve ser exibido."
173
- },
174
- "attribute": "show-loading",
175
- "reflect": false
176
- },
177
- "visibleOptions": {
178
- "type": "unknown",
179
- "mutable": false,
180
- "complexType": {
181
- "original": "Array<IOption>",
182
- "resolved": "IOption[]",
183
- "references": {
184
- "Array": {
185
- "location": "global"
186
- },
187
- "IOption": {
188
- "location": "import",
189
- "path": "../ez-combo-box"
190
- }
191
- }
192
- },
193
- "required": false,
194
- "optional": false,
195
- "docs": {
196
- "tags": [{
197
- "name": "tipo",
198
- "text": "{Array<IOption>}"
199
- }],
200
- "text": "Lista de op\u00E7\u00F5es vis\u00EDveis que ser\u00E3o exibidas no componente."
201
- }
202
- },
203
- "textEmptyList": {
204
- "type": "string",
205
- "mutable": false,
206
- "complexType": {
207
- "original": "string",
208
- "resolved": "string",
209
- "references": {}
210
- },
211
- "required": false,
212
- "optional": false,
213
- "docs": {
214
- "tags": [{
215
- "name": "padr\u00E3o",
216
- "text": "\"Nenhum resultado encontrado\""
217
- }, {
218
- "name": "tipo",
219
- "text": "{string}"
220
- }],
221
- "text": "Mensagem exibida quando a lista de op\u00E7\u00F5es est\u00E1 vazia."
222
- },
223
- "attribute": "text-empty-list",
224
- "reflect": false,
225
- "defaultValue": "\"Nenhum resultado encontrado\""
226
- },
227
- "showOptionValue": {
228
- "type": "boolean",
229
- "mutable": false,
230
- "complexType": {
231
- "original": "boolean",
232
- "resolved": "boolean",
233
- "references": {}
234
- },
235
- "required": false,
236
- "optional": false,
237
- "docs": {
238
- "tags": [{
239
- "name": "tipo",
240
- "text": "{boolean}"
241
- }],
242
- "text": "Indica se o valor de cada op\u00E7\u00E3o deve ser exibido junto com o r\u00F3tulo."
243
- },
244
- "attribute": "show-option-value",
245
- "reflect": false
246
- },
247
- "preSelection": {
248
- "type": "number",
249
- "mutable": false,
250
- "complexType": {
251
- "original": "number",
252
- "resolved": "number",
253
- "references": {}
254
- },
255
- "required": false,
256
- "optional": false,
257
- "docs": {
258
- "tags": [{
259
- "name": "tipo",
260
- "text": "{number}"
261
- }],
262
- "text": "\u00CDndice da op\u00E7\u00E3o pr\u00E9-selecionada na lista."
263
- },
264
- "attribute": "pre-selection",
265
- "reflect": false
266
- },
267
- "maxWidth": {
268
- "type": "number",
269
- "mutable": false,
270
- "complexType": {
271
- "original": "number",
272
- "resolved": "number",
273
- "references": {}
274
- },
275
- "required": false,
276
- "optional": false,
277
- "docs": {
278
- "tags": [{
279
- "name": "tipo",
280
- "text": "{number}"
281
- }],
282
- "text": "Largura m\u00E1xima da lista, em pixels."
283
- },
284
- "attribute": "max-width",
285
- "reflect": false
286
- },
287
- "width": {
288
- "type": "number",
289
- "mutable": false,
290
- "complexType": {
291
- "original": "number",
292
- "resolved": "number",
293
- "references": {}
294
- },
295
- "required": false,
296
- "optional": false,
297
- "docs": {
298
- "tags": [{
299
- "name": "tipo",
300
- "text": "{number}"
301
- }],
302
- "text": "Largura fixa da lista, em pixels."
303
- },
304
- "attribute": "width",
305
- "reflect": false
306
- },
307
- "onOptionSelect": {
308
- "type": "unknown",
309
- "mutable": false,
310
- "complexType": {
311
- "original": "(option: IOption) => void",
312
- "resolved": "(option: IOption) => void",
313
- "references": {
314
- "IOption": {
315
- "location": "import",
316
- "path": "../ez-combo-box"
317
- }
318
- }
319
- },
320
- "required": false,
321
- "optional": false,
322
- "docs": {
323
- "tags": [{
324
- "name": "param",
325
- "text": "option A op\u00E7\u00E3o selecionada."
326
- }, {
327
- "name": "tipo",
328
- "text": "{(option: IOption) => void}"
329
- }],
330
- "text": "Callback chamado quando uma op\u00E7\u00E3o \u00E9 selecionada."
331
- }
332
- },
333
- "onOptionHover": {
334
- "type": "unknown",
335
- "mutable": false,
336
- "complexType": {
337
- "original": "(index: number) => void",
338
- "resolved": "(index: number) => void",
339
- "references": {}
340
- },
341
- "required": false,
342
- "optional": false,
343
- "docs": {
344
- "tags": [{
345
- "name": "param",
346
- "text": "index O \u00EDndice da op\u00E7\u00E3o em foco."
347
- }, {
348
- "name": "tipo",
349
- "text": "{(index: number) => void}"
350
- }],
351
- "text": "Callback chamado quando o mouse passa sobre uma op\u00E7\u00E3o."
352
- }
353
- }
354
- };
355
- }
356
- static get methods() {
357
- return {
358
- "nextOption": {
359
- "complexType": {
360
- "signature": "() => Promise<void>",
361
- "parameters": [],
362
- "references": {
363
- "Promise": {
364
- "location": "global"
365
- }
366
- },
367
- "return": "Promise<void>"
368
- },
369
- "docs": {
370
- "text": "Move a sele\u00E7\u00E3o para a pr\u00F3xima op\u00E7\u00E3o na lista.",
371
- "tags": []
372
- }
373
- },
374
- "previousOption": {
375
- "complexType": {
376
- "signature": "() => Promise<void>",
377
- "parameters": [],
378
- "references": {
379
- "Promise": {
380
- "location": "global"
381
- }
382
- },
383
- "return": "Promise<void>"
384
- },
385
- "docs": {
386
- "text": "Move a sele\u00E7\u00E3o para a op\u00E7\u00E3o anterior na lista, sem ultrapassar o in\u00EDcio.",
387
- "tags": []
388
- }
389
- },
390
- "selectCurrentOption": {
391
- "complexType": {
392
- "signature": "() => Promise<void>",
393
- "parameters": [],
394
- "references": {
395
- "Promise": {
396
- "location": "global"
397
- }
398
- },
399
- "return": "Promise<void>"
400
- },
401
- "docs": {
402
- "text": "Seleciona a op\u00E7\u00E3o atualmente pr\u00E9-selecionada.",
403
- "tags": []
404
- }
405
- }
406
- };
407
- }
408
- static get watchers() {
409
- return [{
410
- "propName": "width",
411
- "methodName": "observeWidth"
412
- }, {
413
- "propName": "maxWidth",
414
- "methodName": "observeMaxWidth"
415
- }];
416
- }
417
- static get listeners() {
418
- return [{
419
- "name": "keydown",
420
- "method": "handleKeyDown",
421
- "target": undefined,
422
- "capture": false,
423
- "passive": false
424
- }];
425
- }
426
- }
@@ -1,67 +0,0 @@
1
- :host {
2
-
3
- /* box */
4
- /*@doc Define o raio da borda do popover.*/
5
- --ez-popover__box--border-radius: var(--border--radius-medium, 12px);
6
- /*@doc Define a sombra do popover.*/
7
- --ez-popover__box--box-shadow: var(--shadow, 0px 0px 16px 0px #000);
8
- /*@doc Define a cor de fundo do popover.*/
9
- --ez-popover__box--background-color: var(--background--xlight, #fff);
10
- /*@doc Define a camada de visibilidade do popover.*/
11
- --ez-popover__box--z-index: var(--most-visible, 4);
12
-
13
- /***************
14
- host style
15
- ***************/
16
- /*private*/
17
- position: relative;
18
- display: flex;
19
- user-select: none;
20
- }
21
-
22
- .popover__overlay {
23
- display: none;
24
- position: fixed;
25
- padding: 0;
26
- top: 0px;
27
- left: 0px;
28
- width: 100%;
29
- height: 100vh;
30
- box-sizing: border-box;
31
- z-index: var(--more-visible--2x, 3);
32
- }
33
-
34
- .popover__overlay--light {
35
- background-color: rgba(var(--rgb-background--overlay), var(--opacity--bright));
36
- }
37
-
38
- .popover__overlay--medium {
39
- background-color: rgba(var(--rgb-background--overlay), var(--opacity--soft));
40
- backdrop-filter: blur(var(--background-blur--medium));
41
- }
42
-
43
- .popover__box {
44
- /*private*/
45
- display: none;
46
- position: fixed;
47
- top: 0;
48
- left: 0;
49
-
50
- z-index: var(--ez-popover__box--z-index);
51
- flex-direction: column;
52
-
53
- height: fit-content;
54
-
55
- /*public*/
56
- background-color: var(--ez-popover__box--background-color);
57
- border-radius: var(--ez-popover__box--border-radius);
58
- box-shadow: var(--ez-popover__box--box-shadow);
59
- }
60
-
61
- .popover__box--fit-content {
62
- width: fit-content;
63
- }
64
-
65
- .popover__box--full-width {
66
- width: calc(100% - 10px);
67
- }