@sankhyalabs/ezui 0.0.0-bugfix-dev-KB-76625.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 (204) 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 +8 -1416
  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 +1 -1
  15. package/dist/cjs/ez-custom-form-input_2.cjs.entry.js +2 -2
  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 -1
  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-multi-selection-list_2.cjs.entry.js +1585 -0
  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 +159 -29
  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 +1 -3
  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-card-item/ez-card-item.css +3 -1
  60. package/dist/collection/components/ez-popover-plus/ez-popover-plus.css +64 -0
  61. package/dist/collection/components/ez-popover-plus/ez-popover-plus.js +130 -56
  62. package/dist/collection/components/ez-search/ez-search.css +219 -0
  63. package/dist/collection/components/ez-search/ez-search.js +167 -28
  64. package/dist/custom-elements/index.d.ts +0 -12
  65. package/dist/custom-elements/index.js +195 -262
  66. package/dist/esm/ez-actions-button.entry.js +1 -1
  67. package/dist/esm/ez-alert-list.entry.js +1 -1
  68. package/dist/esm/ez-alert.entry.js +1 -1
  69. package/dist/esm/ez-application.entry.js +1 -1
  70. package/dist/esm/ez-badge.entry.js +15 -3
  71. package/dist/esm/ez-breadcrumb.entry.js +1 -1
  72. package/dist/esm/ez-button.entry.js +1 -1
  73. package/dist/esm/ez-calendar.entry.js +1 -1
  74. package/dist/esm/ez-card-item_2.entry.js +8 -1416
  75. package/dist/esm/ez-chart.entry.js +1 -1
  76. package/dist/esm/ez-check.entry.js +1 -1
  77. package/dist/esm/ez-chip.entry.js +1 -1
  78. package/dist/esm/ez-collapsible-box.entry.js +1 -1
  79. package/dist/esm/ez-combo-box.entry.js +1 -1
  80. package/dist/esm/ez-custom-form-input_2.entry.js +2 -2
  81. package/dist/esm/ez-date-input.entry.js +1 -1
  82. package/dist/esm/ez-date-time-input.entry.js +1 -1
  83. package/dist/esm/ez-dialog.entry.js +1 -1
  84. package/dist/esm/ez-double-list.entry.js +1 -1
  85. package/dist/esm/ez-dropdown_2.entry.js +1 -1
  86. package/dist/esm/ez-file-item.entry.js +1 -1
  87. package/dist/esm/ez-filter-input.entry.js +1 -1
  88. package/dist/esm/ez-form-view.entry.js +1 -1
  89. package/dist/esm/ez-form.entry.js +1 -1
  90. package/dist/esm/ez-grid.entry.js +1 -1
  91. package/dist/esm/ez-guide-navigator.entry.js +1 -1
  92. package/dist/esm/ez-icon.entry.js +1 -1
  93. package/dist/esm/ez-list.entry.js +1 -1
  94. package/dist/esm/ez-loading-bar.entry.js +1 -1
  95. package/dist/esm/ez-modal-container.entry.js +1 -1
  96. package/dist/esm/ez-modal.entry.js +1 -1
  97. package/dist/esm/ez-multi-selection-list_2.entry.js +1580 -0
  98. package/dist/esm/ez-number-input.entry.js +1 -1
  99. package/dist/esm/ez-popover.entry.js +1 -1
  100. package/dist/esm/ez-popup.entry.js +1 -1
  101. package/dist/esm/ez-radio-button.entry.js +1 -1
  102. package/dist/esm/ez-scroller_2.entry.js +1 -1
  103. package/dist/esm/ez-search.entry.js +160 -30
  104. package/dist/esm/ez-sidebar-navigator.entry.js +1 -1
  105. package/dist/esm/ez-split-button.entry.js +1 -1
  106. package/dist/esm/ez-split-item.entry.js +1 -1
  107. package/dist/esm/ez-split-panel.entry.js +1 -1
  108. package/dist/esm/ez-tabselector.entry.js +1 -1
  109. package/dist/esm/ez-text-area.entry.js +1 -1
  110. package/dist/esm/ez-text-input.entry.js +1 -1
  111. package/dist/esm/ez-time-input.entry.js +1 -1
  112. package/dist/esm/ez-toast.entry.js +1 -1
  113. package/dist/esm/ez-tooltip.entry.js +1 -1
  114. package/dist/esm/ez-tree.entry.js +1 -1
  115. package/dist/esm/ez-upload.entry.js +1 -1
  116. package/dist/esm/ez-view-stack.entry.js +1 -1
  117. package/dist/esm/ezui.js +3 -3
  118. package/dist/esm/filter-column.entry.js +1 -1
  119. package/dist/esm/{index-baa5e267.js → index-5a720e56.js} +7 -9
  120. package/dist/esm/loader.js +3 -3
  121. package/dist/ezui/ezui.esm.js +1 -1
  122. package/dist/ezui/p-000159dc.entry.js +1 -0
  123. package/dist/ezui/{p-44caad9a.entry.js → p-0378416a.entry.js} +1 -1
  124. package/dist/ezui/p-03b0ed5a.entry.js +1 -0
  125. package/dist/ezui/{p-5b205c80.entry.js → p-044d46d5.entry.js} +1 -1
  126. package/dist/ezui/{p-a4cee65d.entry.js → p-0cfbbe82.entry.js} +1 -1
  127. package/dist/ezui/{p-77a4bd35.entry.js → p-11bfeca3.entry.js} +1 -1
  128. package/dist/ezui/{p-7e677b7b.entry.js → p-2069c78a.entry.js} +1 -1
  129. package/dist/ezui/{p-31b71e50.entry.js → p-23dab72f.entry.js} +1 -1
  130. package/dist/ezui/{p-17eabf46.entry.js → p-24b42f3d.entry.js} +1 -1
  131. package/dist/ezui/{p-556468d9.entry.js → p-3791d9c8.entry.js} +1 -1
  132. package/dist/ezui/{p-1ad6c61b.entry.js → p-3885e66e.entry.js} +1 -1
  133. package/dist/ezui/p-3af64edd.entry.js +1 -0
  134. package/dist/ezui/{p-fa6732f2.entry.js → p-44b39e81.entry.js} +1 -1
  135. package/dist/ezui/{p-c1527804.entry.js → p-4818b8ce.entry.js} +1 -1
  136. package/dist/ezui/{p-d9548bdf.entry.js → p-5010315a.entry.js} +1 -1
  137. package/dist/ezui/{p-ea54d056.entry.js → p-68b2e579.entry.js} +1 -1
  138. package/dist/ezui/{p-1f50fa05.entry.js → p-6b51c9cc.entry.js} +1 -1
  139. package/dist/ezui/{p-2bb2a0c4.entry.js → p-6d31c43c.entry.js} +1 -1
  140. package/dist/ezui/{p-6cdd3e0a.entry.js → p-6d8b3298.entry.js} +1 -1
  141. package/dist/ezui/p-6ec40dec.entry.js +1 -0
  142. package/dist/ezui/{p-5ed81457.entry.js → p-6fc26622.entry.js} +1 -1
  143. package/dist/ezui/{p-da1b4a38.entry.js → p-708b196e.entry.js} +1 -1
  144. package/dist/ezui/{p-555c9018.entry.js → p-7567ccdd.entry.js} +1 -1
  145. package/dist/ezui/{p-1e7a8633.entry.js → p-81461d2f.entry.js} +1 -1
  146. package/dist/ezui/{p-8df1ca33.entry.js → p-82fa4b09.entry.js} +1 -1
  147. package/dist/ezui/{p-0fa52b0f.entry.js → p-88c615f0.entry.js} +1 -1
  148. package/dist/ezui/{p-56fe5341.entry.js → p-9066b0b0.entry.js} +1 -1
  149. package/dist/ezui/{p-09de35a2.entry.js → p-91ccae0c.entry.js} +1 -1
  150. package/dist/ezui/{p-c0d9c4f8.entry.js → p-92748142.entry.js} +1 -1
  151. package/dist/ezui/{p-0faf71c5.entry.js → p-92fbaf2b.entry.js} +1 -1
  152. package/dist/ezui/{p-e6a9041d.entry.js → p-9e95bfeb.entry.js} +1 -1
  153. package/dist/ezui/{p-3195a7a7.entry.js → p-9fc250d4.entry.js} +1 -1
  154. package/dist/ezui/{p-a5950a0d.entry.js → p-a3319796.entry.js} +1 -1
  155. package/dist/ezui/{p-990b4318.entry.js → p-a921e3e7.entry.js} +1 -1
  156. package/dist/ezui/{p-3429080c.entry.js → p-b22889ea.entry.js} +1 -1
  157. package/dist/ezui/{p-17be134a.entry.js → p-b2f6bc0a.entry.js} +1 -1
  158. package/dist/ezui/{p-cb1535f7.entry.js → p-b9282c79.entry.js} +1 -1
  159. package/dist/ezui/{p-e347df9c.entry.js → p-bef7daac.entry.js} +1 -1
  160. package/dist/ezui/{p-9f5fa3f9.entry.js → p-c2b20f78.entry.js} +1 -1
  161. package/dist/ezui/{p-17de16e5.entry.js → p-c96fbbef.entry.js} +1 -1
  162. package/dist/ezui/{p-2f45506d.entry.js → p-ca8936df.entry.js} +1 -1
  163. package/dist/ezui/p-cba34702.entry.js +1 -0
  164. package/dist/ezui/{p-20c024f7.entry.js → p-cf33bc48.entry.js} +1 -1
  165. package/dist/ezui/p-cf3b60fd.entry.js +1 -0
  166. package/dist/ezui/{p-a80b1287.entry.js → p-dfca5946.entry.js} +1 -1
  167. package/dist/ezui/{p-7fdd479f.entry.js → p-e18d9e6a.entry.js} +1 -1
  168. package/dist/ezui/{p-fd0a19d6.entry.js → p-e3f8660b.entry.js} +1 -1
  169. package/dist/ezui/{p-23a36bb6.js → p-e4c7eb39.js} +2 -2
  170. package/dist/ezui/{p-0306dff7.entry.js → p-e6b38ade.entry.js} +1 -1
  171. package/dist/ezui/{p-b26f6c5b.entry.js → p-f30e0590.entry.js} +1 -1
  172. package/dist/ezui/{p-cf87aacb.entry.js → p-f4da7e1e.entry.js} +1 -1
  173. package/dist/ezui/{p-6e429cff.entry.js → p-fc194825.entry.js} +1 -1
  174. package/dist/ezui/{p-64b461b3.entry.js → p-fcc78b7f.entry.js} +1 -1
  175. package/dist/types/components/ez-badge/ez-badge.d.ts +5 -0
  176. package/dist/types/components/ez-popover-plus/ez-popover-plus.d.ts +20 -8
  177. package/dist/types/components/ez-search/ez-search.d.ts +13 -3
  178. package/dist/types/components.d.ts +11 -157
  179. package/package.json +1 -1
  180. package/react/components.d.ts +0 -2
  181. package/react/components.js +0 -2
  182. package/react/components.js.map +1 -1
  183. package/dist/cjs/ez-multi-selection-list.cjs.entry.js +0 -186
  184. package/dist/cjs/ez-popover-plus_3.cjs.entry.js +0 -184
  185. package/dist/cjs/searchFormatters-b7e1ed1e.js +0 -23
  186. package/dist/collection/components/ez-popover-plus/subcomponent/ez-popover-core.css +0 -67
  187. package/dist/collection/components/ez-popover-plus/subcomponent/ez-popover-core.js +0 -527
  188. package/dist/collection/components/ez-search/subcomponent/search-list/search-list.css +0 -227
  189. package/dist/collection/components/ez-search/subcomponent/search-list/search-list.js +0 -289
  190. package/dist/collection/components/ez-search/utils/searchFormatters.js +0 -18
  191. package/dist/esm/ez-multi-selection-list.entry.js +0 -182
  192. package/dist/esm/ez-popover-plus_3.entry.js +0 -178
  193. package/dist/esm/searchFormatters-8229207e.js +0 -20
  194. package/dist/ezui/p-31da1b57.entry.js +0 -1
  195. package/dist/ezui/p-37201156.entry.js +0 -1
  196. package/dist/ezui/p-40a60148.js +0 -1
  197. package/dist/ezui/p-650e4b6d.entry.js +0 -1
  198. package/dist/ezui/p-b7706b43.entry.js +0 -1
  199. package/dist/ezui/p-bc2f844e.entry.js +0 -1
  200. package/dist/ezui/p-dc73e1fe.entry.js +0 -1
  201. package/dist/ezui/p-dc8b36c3.entry.js +0 -1
  202. package/dist/types/components/ez-popover-plus/subcomponent/ez-popover-core.d.ts +0 -91
  203. package/dist/types/components/ez-search/subcomponent/search-list/search-list.d.ts +0 -23
  204. package/dist/types/components/ez-search/utils/searchFormatters.d.ts +0 -2
@@ -1,227 +0,0 @@
1
- :host {
2
- /* list */
3
- /*@doc Define a cor do texto da lista de opções.*/
4
- --ez-search__list-title--primary: var(--title--primary, #2B3A54);
5
- /*@doc Define a cor do texto do value da lista de opções.*/
6
- --ez-search__list-text--primary: var(--text--primary, #626e82);
7
- /*@doc Define a altura do box da lista de opções.*/
8
- --ez-search__list-height: calc(var(--ez-search--font-size) + var(--ez-search--space--medium) + 4px);
9
- /*@doc Define a largura mínima da lista de opções.*/
10
- --ez-search__list-min-width: 64px;
11
-
12
- /* scrollbar */
13
- /*@doc Define a cor da barra de rolagem do componente.*/
14
- --ez-search__scrollbar--color-default: var(--scrollbar--default, #626e82);
15
- /*@doc Define a cor de fundo da barra de rolagem do componente.*/
16
- --ez-search__scrollbar--color-background: var(--scrollbar--background, #E5EAF0);
17
- /*@doc Define a cor do hover na barra de rolagem do componente.*/
18
- --ez-search__scrollbar--color-hover: var(--scrollbar--hover, #2B3A54);
19
- /*@doc Define a cor do active na barra de rolagem do componente.*/
20
- --ez-search__scrollbar--color-clicked: var(--scrollbar--clicked, #a2abb9);
21
- /*@doc Define o raio da borda da barra de rolagem do componente.*/
22
- --ez-search__scrollbar--border-radius: var(--border--radius-small, 6px);
23
- /*@doc Define a largura da barra de rolagem do componente.*/
24
- --ez-search__scrollbar--width: var(--space--small, 6px);
25
-
26
- /* general */
27
- /*@doc Define o raio da borda do input quando pequeno.*/
28
- --ez-search--border-radius-small: var(--border--radius-small, 6px);
29
- /*@doc Define o tamanho da fonte dentro do input.*/
30
- --ez-search--font-size: var(--text--medium, 14px);
31
- /*@doc Define a família da fonte dentro do input.*/
32
- --ez-search--font-family: var(--font-pattern, Arial);
33
- /*@doc Define o peso da fonte dentro do input quando pesada.*/
34
- --ez-search--font-weight--large: var(--text-weight--large, 500);
35
- /*@doc Define o peso da fonte dentro do input quando média.*/
36
- --ez-search--font-weight--medium: var(--text-weight--medium, 400);
37
- /*@doc Define a cor de fundo dos itens da lista de opções.*/
38
- --ez-search--background-medium: var(--background--medium, #f0f3f7);
39
- /*@doc Define a altura da linha do texto dentro do input.*/
40
- --ez-search--line-height: calc(var(--text--medium, 14px) + 4px);
41
- }
42
-
43
- .list-options {
44
- position: relative;
45
- z-index: var(--more-visible, 2);
46
- margin: var(--space--small) 0px;
47
- padding: 0px;
48
- padding-inline-start: 0px;
49
- box-sizing: border-box;
50
- width: 100%;
51
- height: 100%;
52
- max-height: 350px;
53
- min-width: 150px;
54
- display: flex;
55
- flex-direction: column;
56
- scroll-behavior: smooth;
57
- overflow-y: auto;
58
- overflow-x: hidden;
59
- scrollbar-width: thin;
60
-
61
- /*public*/
62
- scrollbar-color: var(--ez-search__scrollbar--color-clicked) var(--ez-search__scrollbar--color-background);
63
-
64
- }
65
-
66
- .list-options::-webkit-scrollbar {
67
- /*public*/
68
- background-color: var(--scrollbar--background);
69
- width: var(--space--small);
70
- max-width: var(--space--small);
71
- min-width: var(--space--small);
72
- height: var(--space--small);
73
- max-height: var(--space--small);
74
- min-height: var(--space--small);
75
- }
76
-
77
- .list-options::-webkit-scrollbar-track {
78
- /*public*/
79
- background-color: var(--ez-search__scrollbar--color-background);
80
- border-radius: var(--ez-search__scrollbar--border-radius);
81
- }
82
-
83
- .list-options::-webkit-scrollbar-thumb {
84
- /*public*/
85
- background-color: var(--ez-search__scrollbar--color-default);
86
- border-radius: var(--ez-search__scrollbar--border-radius);
87
- }
88
-
89
- .list-options::-webkit-scrollbar-thumb:vertical:hover,
90
- .list-options::-webkit-scrollbar-thumb:horizontal:hover {
91
- /*public*/
92
- background-color: var(--ez-search__scrollbar--color-hover);
93
- }
94
-
95
- .list-options::-webkit-scrollbar-thumb:vertical:active,
96
- .list-options::-webkit-scrollbar-thumb:horizontal:active {
97
- /*public*/
98
- background-color: var(--ez-search__scrollbar--color-clicked);
99
- }
100
-
101
- .message {
102
- text-align: center;
103
- display: flex;
104
- justify-content: center;
105
- align-items: center;
106
- list-style-type: none;
107
- margin: var(--space--medium) 0px;
108
-
109
- /*public*/
110
- min-height: var(--ez-search__list-height);
111
- }
112
-
113
- .message__no-result {
114
- /*public*/
115
- color: var(--ez-search__list-title--primary);
116
- font-family: var(--ez-search--font-family);
117
- font-size: var(--ez-search--font-size);
118
- }
119
-
120
- .message__loading {
121
- border-radius: 50%;
122
- width: 14px;
123
- height: 14px;
124
- -webkit-animation: spin 1s linear infinite;
125
- animation: spin 1s linear infinite;
126
-
127
- /*public*/
128
- border: 3px solid var(--ez-search__list-title--primary);
129
- border-top: 3px solid transparent;
130
- }
131
-
132
- .item__value,
133
- .item__label {
134
- flex-basis: auto;
135
- white-space: nowrap;
136
- overflow: hidden;
137
- text-overflow: ellipsis;
138
-
139
- /*public*/
140
- color: var(--ez-search__list-title--primary);
141
- font-family: var(--ez-search--font-family);
142
- font-size: var(--ez-search--font-size);
143
- line-height: var(--ez-search--line-height);
144
- }
145
-
146
- .item__label {
147
- /*public*/
148
- font-weight: var(--ez-search--font-weight--medium);
149
- }
150
-
151
- .item__label--bold {
152
- /*public*/
153
- font-weight: var(--ez-search--font-weight--large);
154
- }
155
-
156
- .item__value {
157
- text-align: center;
158
-
159
- /*public*/
160
- color: var(--ez-search__list-text--primary);
161
- font-weight: var(--ez-search--font-weight--large);
162
- }
163
-
164
- .item__value--hidden {
165
- visibility: hidden;
166
- position: absolute;
167
- white-space: nowrap;
168
- z-index: -1;
169
- top: 0;
170
- left: 0;
171
- }
172
-
173
- .item__label {
174
- text-align: left;
175
- }
176
-
177
- .item__list>li:hover {
178
- /*public*/
179
- background-color: var(--ez-search--background-medium);
180
- }
181
-
182
- .item {
183
- display: flex;
184
- align-items: center;
185
- width: 100%;
186
- box-sizing: border-box;
187
- list-style-type: none;
188
- cursor: pointer;
189
-
190
- /*public*/
191
- border-radius: var(--ez-search--border-radius-small);
192
- gap: var(--space--small, 6px);
193
- }
194
-
195
- .preselected {
196
- /*public*/
197
- background-color: var(--background--medium);
198
- }
199
-
200
- @-webkit-keyframes spin {
201
- 0% {
202
- -webkit-transform: rotate(0deg);
203
- }
204
-
205
- 100% {
206
- -webkit-transform: rotate(360deg);
207
- }
208
- }
209
-
210
- @keyframes spin {
211
- 0% {
212
- transform: rotate(0deg);
213
- }
214
-
215
- 100% {
216
- transform: rotate(360deg);
217
- }
218
- }
219
-
220
- @supports not (scrollbar-width: thin) {
221
-
222
- /* Estilos para navegadores que NÃO suportam scrollbar-width */
223
- .item {
224
- /* Estilos alternativos, por exemplo, para navegadores que não suportam scrollbar-width */
225
- padding-right: 8px;
226
- }
227
- }
@@ -1,289 +0,0 @@
1
- import { Host, h } from '@stencil/core';
2
- import { StringUtils } from '@sankhyalabs/core';
3
- import { replaceHighlight, replaceQuotes } from '../../utils/searchFormatters';
4
- export class SearchList {
5
- constructor() {
6
- this._startHighlightTag = "<span class='card-item__highlight'>";
7
- this._endHighlightTag = "</span>";
8
- this.showLoading = undefined;
9
- this.visibleOptions = [];
10
- this.textEmptyList = undefined;
11
- this.canShowListOptions = undefined;
12
- this.value = undefined;
13
- this.showOptionValue = true;
14
- this.preSelection = undefined;
15
- }
16
- async nextOption() {
17
- const newPreSelection = this.preSelection === undefined ? 0 : Math.min(this.preSelection + 1, this.visibleOptions.length - 1);
18
- this.changePreSelection.emit(newPreSelection);
19
- this.scrollToOption(this.visibleOptions[newPreSelection]);
20
- }
21
- async previousOption() {
22
- const newPreSelection = this.preSelection === undefined ? 0 : Math.max(this.preSelection - 1, 0);
23
- this.changePreSelection.emit(newPreSelection);
24
- this.scrollToOption(this.visibleOptions[newPreSelection]);
25
- }
26
- selectOption(newOption) {
27
- const newOptionsReplaced = Object.assign(Object.assign({}, newOption), { value: replaceHighlight(newOption === null || newOption === void 0 ? void 0 : newOption.value), label: replaceHighlight(newOption === null || newOption === void 0 ? void 0 : newOption.label) });
28
- const newOptionsFormatted = Object.assign(Object.assign({}, newOptionsReplaced), { value: replaceQuotes(newOptionsReplaced === null || newOptionsReplaced === void 0 ? void 0 : newOptionsReplaced.value), label: replaceQuotes(newOptionsReplaced === null || newOptionsReplaced === void 0 ? void 0 : newOptionsReplaced.label) });
29
- this.changeValue.emit(newOptionsFormatted);
30
- }
31
- createOption(detail) {
32
- let { key, title } = detail;
33
- const startHighlight = new RegExp(this._startHighlightTag, 'g');
34
- const endHighlight = new RegExp(this._endHighlightTag, 'g');
35
- title = StringUtils.decodeHtmlEntities(title);
36
- const option = {
37
- value: key === null || key === void 0 ? void 0 : key.replace(startHighlight, '').replace(endHighlight, ''),
38
- label: title === null || title === void 0 ? void 0 : title.replace(startHighlight, '').replace(endHighlight, '')
39
- };
40
- this.selectOption(option);
41
- }
42
- scrollToOption(opt) {
43
- window.requestAnimationFrame(() => {
44
- const liElem = (opt === null || opt === void 0 ? void 0 : opt.value)
45
- ? this._optionsList.querySelector(`div#item_${opt.value.replace(/([ #;&,.+*~':"!^$[\]()=<>|/\\])/g, '\\$1')}`)
46
- : undefined;
47
- if (liElem) {
48
- liElem.scrollIntoView({ behavior: "smooth", block: "nearest" });
49
- }
50
- });
51
- }
52
- buildItem(opt, index) {
53
- opt.label = opt.label || opt.value;
54
- const card = {
55
- key: opt.value,
56
- title: opt.label,
57
- details: opt.details
58
- };
59
- return h("div", { style: { "height": "100%" }, class: index === this.preSelection ? "item preselected" : "item", id: `item_${opt.value}`, onMouseDown: () => this.createOption(card), onMouseOver: () => this.changePreSelection.emit(index) }, h("ez-card-item", { item: card, compacted: true, enableKey: this.showOptionValue }));
60
- }
61
- render() {
62
- return (h(Host, null, h("ul", { class: "list-options", ref: elem => this._optionsList = elem }, !this.showLoading
63
- && this.visibleOptions.length === 0
64
- && h("div", { class: "message" }, h("span", { class: "message__no-result" }, this.textEmptyList)), this.showLoading
65
- && h("div", { class: "message" }, h("div", { class: "message__loading" })), this.canShowListOptions && this.visibleOptions.map((opt, index) => this.buildItem(opt, index)))));
66
- }
67
- static get is() { return "search-list"; }
68
- static get encapsulation() { return "shadow"; }
69
- static get originalStyleUrls() {
70
- return {
71
- "$": ["search-list.css"]
72
- };
73
- }
74
- static get styleUrls() {
75
- return {
76
- "$": ["search-list.css"]
77
- };
78
- }
79
- static get properties() {
80
- return {
81
- "showLoading": {
82
- "type": "boolean",
83
- "mutable": false,
84
- "complexType": {
85
- "original": "boolean",
86
- "resolved": "boolean",
87
- "references": {}
88
- },
89
- "required": false,
90
- "optional": false,
91
- "docs": {
92
- "tags": [],
93
- "text": ""
94
- },
95
- "attribute": "show-loading",
96
- "reflect": false
97
- },
98
- "visibleOptions": {
99
- "type": "unknown",
100
- "mutable": false,
101
- "complexType": {
102
- "original": "Array<IOption>",
103
- "resolved": "IOption[]",
104
- "references": {
105
- "Array": {
106
- "location": "global"
107
- },
108
- "IOption": {
109
- "location": "import",
110
- "path": "../../ez-search"
111
- }
112
- }
113
- },
114
- "required": false,
115
- "optional": false,
116
- "docs": {
117
- "tags": [],
118
- "text": ""
119
- },
120
- "defaultValue": "[]"
121
- },
122
- "textEmptyList": {
123
- "type": "string",
124
- "mutable": false,
125
- "complexType": {
126
- "original": "string",
127
- "resolved": "string",
128
- "references": {}
129
- },
130
- "required": false,
131
- "optional": false,
132
- "docs": {
133
- "tags": [],
134
- "text": ""
135
- },
136
- "attribute": "text-empty-list",
137
- "reflect": false
138
- },
139
- "canShowListOptions": {
140
- "type": "boolean",
141
- "mutable": false,
142
- "complexType": {
143
- "original": "boolean",
144
- "resolved": "boolean",
145
- "references": {}
146
- },
147
- "required": false,
148
- "optional": false,
149
- "docs": {
150
- "tags": [],
151
- "text": ""
152
- },
153
- "attribute": "can-show-list-options",
154
- "reflect": false
155
- },
156
- "value": {
157
- "type": "string",
158
- "mutable": false,
159
- "complexType": {
160
- "original": "IOption | string",
161
- "resolved": "IOption | string",
162
- "references": {
163
- "IOption": {
164
- "location": "import",
165
- "path": "../../ez-search"
166
- }
167
- }
168
- },
169
- "required": false,
170
- "optional": false,
171
- "docs": {
172
- "tags": [],
173
- "text": ""
174
- },
175
- "attribute": "value",
176
- "reflect": false
177
- },
178
- "showOptionValue": {
179
- "type": "boolean",
180
- "mutable": false,
181
- "complexType": {
182
- "original": "boolean",
183
- "resolved": "boolean",
184
- "references": {}
185
- },
186
- "required": false,
187
- "optional": false,
188
- "docs": {
189
- "tags": [],
190
- "text": ""
191
- },
192
- "attribute": "show-option-value",
193
- "reflect": false,
194
- "defaultValue": "true"
195
- },
196
- "preSelection": {
197
- "type": "number",
198
- "mutable": false,
199
- "complexType": {
200
- "original": "number",
201
- "resolved": "number",
202
- "references": {}
203
- },
204
- "required": false,
205
- "optional": false,
206
- "docs": {
207
- "tags": [],
208
- "text": ""
209
- },
210
- "attribute": "pre-selection",
211
- "reflect": false
212
- }
213
- };
214
- }
215
- static get events() {
216
- return [{
217
- "method": "changeValue",
218
- "name": "changeValue",
219
- "bubbles": true,
220
- "cancelable": true,
221
- "composed": true,
222
- "docs": {
223
- "tags": [],
224
- "text": ""
225
- },
226
- "complexType": {
227
- "original": "IOption",
228
- "resolved": "IOption",
229
- "references": {
230
- "IOption": {
231
- "location": "import",
232
- "path": "../../ez-search"
233
- }
234
- }
235
- }
236
- }, {
237
- "method": "changePreSelection",
238
- "name": "changePreSelection",
239
- "bubbles": true,
240
- "cancelable": true,
241
- "composed": true,
242
- "docs": {
243
- "tags": [],
244
- "text": ""
245
- },
246
- "complexType": {
247
- "original": "number",
248
- "resolved": "number",
249
- "references": {}
250
- }
251
- }];
252
- }
253
- static get methods() {
254
- return {
255
- "nextOption": {
256
- "complexType": {
257
- "signature": "() => Promise<void>",
258
- "parameters": [],
259
- "references": {
260
- "Promise": {
261
- "location": "global"
262
- }
263
- },
264
- "return": "Promise<void>"
265
- },
266
- "docs": {
267
- "text": "",
268
- "tags": []
269
- }
270
- },
271
- "previousOption": {
272
- "complexType": {
273
- "signature": "() => Promise<void>",
274
- "parameters": [],
275
- "references": {
276
- "Promise": {
277
- "location": "global"
278
- }
279
- },
280
- "return": "Promise<void>"
281
- },
282
- "docs": {
283
- "text": "",
284
- "tags": []
285
- }
286
- }
287
- };
288
- }
289
- }
@@ -1,18 +0,0 @@
1
- const START_HIGH_LIGHT_TAG = "<span class='card-item__highlight'>";
2
- const END_HIGH_LIGHT_TAG = "</span>";
3
- export function replaceHighlight(value) {
4
- const startHighlight = new RegExp(START_HIGH_LIGHT_TAG, 'g');
5
- const endHighlight = new RegExp(END_HIGH_LIGHT_TAG, 'g');
6
- const newValue = String(value !== null && value !== void 0 ? value : "").replace(startHighlight, '').replace(endHighlight, '');
7
- return replaceQuotes(newValue);
8
- }
9
- export function replaceQuotes(text) {
10
- if (text == undefined) {
11
- return;
12
- }
13
- return String(text)
14
- .replace(/&amp;/g, '&')
15
- .replace(/&lt;/g, '<')
16
- .replace(/&gt;/g, '>')
17
- .replace(/&quot;/g, '"');
18
- }