@sankhyalabs/ezui 4.3.0 → 4.4.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 (44) hide show
  1. package/dist/cjs/ez-breadcrumb.cjs.entry.js +3 -14
  2. package/dist/cjs/ez-filter-input_4.cjs.entry.js +2 -1
  3. package/dist/cjs/ez-grid.cjs.entry.js +13 -3
  4. package/dist/cjs/ez-icon.cjs.entry.js +1 -1
  5. package/dist/cjs/ez-list.cjs.entry.js +7 -5
  6. package/dist/cjs/ez-popover.cjs.entry.js +6 -0
  7. package/dist/cjs/ezui.cjs.js +1 -1
  8. package/dist/cjs/loader.cjs.js +1 -1
  9. package/dist/collection/components/ez-badge/ez-badge.css +1 -1
  10. package/dist/collection/components/ez-breadcrumb/ez-breadcrumb.css +4 -0
  11. package/dist/collection/components/ez-breadcrumb/subcomponents/breadcrumb-item.js +2 -13
  12. package/dist/collection/components/ez-filter-input/ez-filter-input.js +20 -1
  13. package/dist/collection/components/ez-grid/controller/ag-grid/DataSource.js +13 -3
  14. package/dist/collection/components/ez-icon/ez-icon.css +141 -139
  15. package/dist/collection/components/ez-list/ez-list.css +6 -12
  16. package/dist/collection/components/ez-list/ez-list.js +25 -5
  17. package/dist/collection/components/ez-popover/ez-popover.js +6 -0
  18. package/dist/custom-elements/index.js +33 -25
  19. package/dist/esm/ez-breadcrumb.entry.js +3 -14
  20. package/dist/esm/ez-filter-input_4.entry.js +2 -1
  21. package/dist/esm/ez-grid.entry.js +13 -3
  22. package/dist/esm/ez-icon.entry.js +1 -1
  23. package/dist/esm/ez-list.entry.js +8 -6
  24. package/dist/esm/ez-popover.entry.js +6 -0
  25. package/dist/esm/ezui.js +1 -1
  26. package/dist/esm/loader.js +1 -1
  27. package/dist/ezui/ezui.esm.js +1 -1
  28. package/dist/ezui/p-02fc35a6.entry.js +1 -0
  29. package/dist/ezui/p-0d04119a.entry.js +1 -0
  30. package/dist/ezui/p-2a848666.entry.js +1 -0
  31. package/dist/ezui/{p-96df1a0e.entry.js → p-2af81ddc.entry.js} +1 -1
  32. package/dist/ezui/p-6388d982.entry.js +1 -0
  33. package/dist/ezui/p-759e37b7.entry.js +1 -0
  34. package/dist/types/components/ez-filter-input/ez-filter-input.d.ts +4 -0
  35. package/dist/types/components/ez-grid/controller/ag-grid/DataSource.d.ts +1 -0
  36. package/dist/types/components/ez-list/ez-list.d.ts +4 -0
  37. package/dist/types/components/ez-popover/ez-popover.d.ts +1 -1
  38. package/dist/types/components.d.ts +12 -0
  39. package/package.json +2 -2
  40. package/dist/ezui/p-62481744.entry.js +0 -1
  41. package/dist/ezui/p-6cf406ff.entry.js +0 -1
  42. package/dist/ezui/p-8d5ec02b.entry.js +0 -1
  43. package/dist/ezui/p-9a1549c2.entry.js +0 -1
  44. package/dist/ezui/p-cc40fcb3.entry.js +0 -1
@@ -56,145 +56,147 @@ svg {
56
56
 
57
57
  .ez-icon-2chevron-down:before { content: "\ea01"; }
58
58
  .ez-icon-2chevron-up:before { content: "\ea02"; }
59
- .ez-icon-account-outline:before { content: "\ea03"; }
60
- .ez-icon-account:before { content: "\ea04"; }
61
- .ez-icon-actions-sprite-v1:before { content: "\ea05"; }
62
- .ez-icon-alert-circle-inverted:before { content: "\ea06"; }
63
- .ez-icon-alert-circle:before { content: "\ea07"; }
64
- .ez-icon-alert-mail:before { content: "\ea08"; }
65
- .ez-icon-alert-popup:before { content: "\ea09"; }
66
- .ez-icon-anexo:before { content: "\ea0a"; }
67
- .ez-icon-antecipação:before { content: "\ea0b"; }
68
- .ez-icon-apps:before { content: "\ea0c"; }
69
- .ez-icon-arrow_back:before { content: "\ea0d"; }
70
- .ez-icon-arrow_downward:before { content: "\ea0e"; }
71
- .ez-icon-baixa:before { content: "\ea0f"; }
72
- .ez-icon-balance:before { content: "\ea10"; }
73
- .ez-icon-bell-inverted:before { content: "\ea11"; }
74
- .ez-icon-bell:before { content: "\ea12"; }
75
- .ez-icon-boleto:before { content: "\ea13"; }
76
- .ez-icon-business-center:before { content: "\ea14"; }
77
- .ez-icon-calendar-clock:before { content: "\ea15"; }
78
- .ez-icon-calendar:before { content: "\ea16"; }
79
- .ez-icon-cash-remove:before { content: "\ea17"; }
80
- .ez-icon-check-circle-inverted:before { content: "\ea18"; }
81
- .ez-icon-check-circle:before { content: "\ea19"; }
82
- .ez-icon-check:before { content: "\ea1a"; }
83
- .ez-icon-chevron-down:before { content: "\ea1b"; }
84
- .ez-icon-chevron-left:before { content: "\ea1c"; }
85
- .ez-icon-chevron-right:before { content: "\ea1d"; }
86
- .ez-icon-chevron-up:before { content: "\ea1e"; }
87
- .ez-icon-circle--medium:before { content: "\ea1f"; }
88
- .ez-icon-circle:before { content: "\ea20"; }
89
- .ez-icon-cleaning:before { content: "\ea21"; }
90
- .ez-icon-clipboard:before { content: "\ea22"; }
91
- .ez-icon-close:before { content: "\ea23"; }
92
- .ez-icon-cobrar:before { content: "\ea24"; }
93
- .ez-icon-code:before { content: "\ea25"; }
94
- .ez-icon-configuration:before { content: "\ea26"; }
95
- .ez-icon-copy:before { content: "\ea27"; }
96
- .ez-icon-credit_card:before { content: "\ea28"; }
97
- .ez-icon-crop:before { content: "\ea29"; }
98
- .ez-icon-custom:before { content: "\ea2a"; }
99
- .ez-icon-delete:before { content: "\ea2b"; }
100
- .ez-icon-description:before { content: "\ea2c"; }
101
- .ez-icon-dividir:before { content: "\ea2d"; }
102
- .ez-icon-docx:before { content: "\ea2e"; }
103
- .ez-icon-dot-notification:before { content: "\ea2f"; }
104
- .ez-icon-dots-horizontal:before { content: "\ea30"; }
105
- .ez-icon-dots-vertical:before { content: "\ea31"; }
106
- .ez-icon-drag-indicator:before { content: "\ea32"; }
107
- .ez-icon-dual-chevron-down:before { content: "\ea33"; }
108
- .ez-icon-dual-chevron-up:before { content: "\ea34"; }
109
- .ez-icon-edit-file:before { content: "\ea35"; }
110
- .ez-icon-edit-table:before { content: "\ea36"; }
111
- .ez-icon-edit-time:before { content: "\ea37"; }
112
- .ez-icon-edit:before { content: "\ea38"; }
113
- .ez-icon-email:before { content: "\ea39"; }
114
- .ez-icon-estorno:before { content: "\ea3a"; }
115
- .ez-icon-exe:before { content: "\ea3b"; }
116
- .ez-icon-expand:before { content: "\ea3c"; }
117
- .ez-icon-expandir_card:before { content: "\ea3d"; }
118
- .ez-icon-extrato:before { content: "\ea3e"; }
119
- .ez-icon-eye-off:before { content: "\ea3f"; }
120
- .ez-icon-eye:before { content: "\ea40"; }
121
- .ez-icon-favorite:before { content: "\ea41"; }
122
- .ez-icon-figma:before { content: "\ea42"; }
123
- .ez-icon-file-download:before { content: "\ea43"; }
124
- .ez-icon-file-upload:before { content: "\ea44"; }
125
- .ez-icon-filter:before { content: "\ea45"; }
126
- .ez-icon-find-file:before { content: "\ea46"; }
127
- .ez-icon-find-page:before { content: "\ea47"; }
128
- .ez-icon-format-color-fill:before { content: "\ea48"; }
129
- .ez-icon-generic:before { content: "\ea49"; }
130
- .ez-icon-gif:before { content: "\ea4a"; }
131
- .ez-icon-graph_bar:before { content: "\ea4b"; }
132
- .ez-icon-handshake:before { content: "\ea4c"; }
133
- .ez-icon-help-inverted:before { content: "\ea4d"; }
134
- .ez-icon-help:before { content: "\ea4e"; }
135
- .ez-icon-hide_menu:before { content: "\ea4f"; }
136
- .ez-icon-home:before { content: "\ea50"; }
137
- .ez-icon-icons104:before { content: "\ea51"; }
138
- .ez-icon-language:before { content: "\ea52"; }
139
- .ez-icon-launch:before { content: "\ea53"; }
140
- .ez-icon-lightbulb:before { content: "\ea54"; }
141
- .ez-icon-list:before { content: "\ea55"; }
142
- .ez-icon-location:before { content: "\ea56"; }
143
- .ez-icon-lock-outline:before { content: "\ea57"; }
144
- .ez-icon-lock:before { content: "\ea58"; }
145
- .ez-icon-menu:before { content: "\ea59"; }
146
- .ez-icon-mid:before { content: "\ea5a"; }
147
- .ez-icon-minus:before { content: "\ea5b"; }
148
- .ez-icon-money-off:before { content: "\ea5c"; }
149
- .ez-icon-money:before { content: "\ea5d"; }
150
- .ez-icon-more:before { content: "\ea5e"; }
151
- .ez-icon-mp3:before { content: "\ea5f"; }
152
- .ez-icon-mp4:before { content: "\ea60"; }
153
- .ez-icon-north-west:before { content: "\ea61"; }
154
- .ez-icon-number:before { content: "\ea62"; }
155
- .ez-icon-ordem-ascendente:before { content: "\ea63"; }
156
- .ez-icon-ordem-descendente:before { content: "\ea64"; }
157
- .ez-icon-parcelar:before { content: "\ea65"; }
158
- .ez-icon-pause:before { content: "\ea66"; }
159
- .ez-icon-payments:before { content: "\ea67"; }
160
- .ez-icon-pdf:before { content: "\ea68"; }
161
- .ez-icon-play:before { content: "\ea69"; }
162
- .ez-icon-plus:before { content: "\ea6a"; }
163
- .ez-icon-png:before { content: "\ea6b"; }
164
- .ez-icon-power:before { content: "\ea6c"; }
165
- .ez-icon-pptx:before { content: "\ea6d"; }
166
- .ez-icon-print:before { content: "\ea6e"; }
167
- .ez-icon-push-pin:before { content: "\ea6f"; }
168
- .ez-icon-rateio:before { content: "\ea70"; }
169
- .ez-icon-receipt:before { content: "\ea71"; }
170
- .ez-icon-recolher_card:before { content: "\ea72"; }
171
- .ez-icon-restore:before { content: "\ea73"; }
172
- .ez-icon-return:before { content: "\ea74"; }
173
- .ez-icon-save:before { content: "\ea75"; }
174
- .ez-icon-search:before { content: "\ea76"; }
175
- .ez-icon-settings-inverted:before { content: "\ea77"; }
176
- .ez-icon-settings:before { content: "\ea78"; }
177
- .ez-icon-share:before { content: "\ea79"; }
178
- .ez-icon-shield:before { content: "\ea7a"; }
179
- .ez-icon-show_menu:before { content: "\ea7b"; }
180
- .ez-icon-south-east:before { content: "\ea7c"; }
181
- .ez-icon-sync:before { content: "\ea7d"; }
182
- .ez-icon-table:before { content: "\ea7e"; }
183
- .ez-icon-tag_code:before { content: "\ea7f"; }
184
- .ez-icon-text:before { content: "\ea80"; }
185
- .ez-icon-timeline:before { content: "\ea81"; }
186
- .ez-icon-timer-outline:before { content: "\ea82"; }
187
- .ez-icon-tune:before { content: "\ea83"; }
188
- .ez-icon-txt:before { content: "\ea84"; }
189
- .ez-icon-un-pin:before { content: "\ea85"; }
190
- .ez-icon-unfold_less:before { content: "\ea86"; }
191
- .ez-icon-unfold_more:before { content: "\ea87"; }
192
- .ez-icon-user-circle:before { content: "\ea88"; }
193
- .ez-icon-warning-outline:before { content: "\ea89"; }
194
- .ez-icon-warning_triangle:before { content: "\ea8a"; }
195
- .ez-icon-whatshot:before { content: "\ea8b"; }
196
- .ez-icon-xlsx:before { content: "\ea8c"; }
197
- .ez-icon-zip:before { content: "\ea8d"; }
59
+ .ez-icon-acao:before { content: "\ea03"; }
60
+ .ez-icon-account-outline:before { content: "\ea04"; }
61
+ .ez-icon-account:before { content: "\ea05"; }
62
+ .ez-icon-actions-sprite-v1:before { content: "\ea06"; }
63
+ .ez-icon-alert-circle-inverted:before { content: "\ea07"; }
64
+ .ez-icon-alert-circle:before { content: "\ea08"; }
65
+ .ez-icon-alert-mail:before { content: "\ea09"; }
66
+ .ez-icon-alert-popup:before { content: "\ea0a"; }
67
+ .ez-icon-anexo:before { content: "\ea0b"; }
68
+ .ez-icon-antecipação:before { content: "\ea0c"; }
69
+ .ez-icon-apps:before { content: "\ea0d"; }
70
+ .ez-icon-arrow_back:before { content: "\ea0e"; }
71
+ .ez-icon-arrow_downward:before { content: "\ea0f"; }
72
+ .ez-icon-baixa:before { content: "\ea10"; }
73
+ .ez-icon-balance:before { content: "\ea11"; }
74
+ .ez-icon-bell-inverted:before { content: "\ea12"; }
75
+ .ez-icon-bell:before { content: "\ea13"; }
76
+ .ez-icon-boleto:before { content: "\ea14"; }
77
+ .ez-icon-boolean:before { content: "\ea15"; }
78
+ .ez-icon-business-center:before { content: "\ea16"; }
79
+ .ez-icon-calendar-clock:before { content: "\ea17"; }
80
+ .ez-icon-calendar:before { content: "\ea18"; }
81
+ .ez-icon-cash-remove:before { content: "\ea19"; }
82
+ .ez-icon-check-circle-inverted:before { content: "\ea1a"; }
83
+ .ez-icon-check-circle:before { content: "\ea1b"; }
84
+ .ez-icon-check:before { content: "\ea1c"; }
85
+ .ez-icon-chevron-down:before { content: "\ea1d"; }
86
+ .ez-icon-chevron-left:before { content: "\ea1e"; }
87
+ .ez-icon-chevron-right:before { content: "\ea1f"; }
88
+ .ez-icon-chevron-up:before { content: "\ea20"; }
89
+ .ez-icon-circle--medium:before { content: "\ea21"; }
90
+ .ez-icon-circle:before { content: "\ea22"; }
91
+ .ez-icon-cleaning:before { content: "\ea23"; }
92
+ .ez-icon-clipboard:before { content: "\ea24"; }
93
+ .ez-icon-close:before { content: "\ea25"; }
94
+ .ez-icon-cobrar:before { content: "\ea26"; }
95
+ .ez-icon-code:before { content: "\ea27"; }
96
+ .ez-icon-configuration:before { content: "\ea28"; }
97
+ .ez-icon-copy:before { content: "\ea29"; }
98
+ .ez-icon-credit_card:before { content: "\ea2a"; }
99
+ .ez-icon-crop:before { content: "\ea2b"; }
100
+ .ez-icon-custom:before { content: "\ea2c"; }
101
+ .ez-icon-delete:before { content: "\ea2d"; }
102
+ .ez-icon-description:before { content: "\ea2e"; }
103
+ .ez-icon-dividir:before { content: "\ea2f"; }
104
+ .ez-icon-docx:before { content: "\ea30"; }
105
+ .ez-icon-dot-notification:before { content: "\ea31"; }
106
+ .ez-icon-dots-horizontal:before { content: "\ea32"; }
107
+ .ez-icon-dots-vertical:before { content: "\ea33"; }
108
+ .ez-icon-drag-indicator:before { content: "\ea34"; }
109
+ .ez-icon-dual-chevron-down:before { content: "\ea35"; }
110
+ .ez-icon-dual-chevron-up:before { content: "\ea36"; }
111
+ .ez-icon-edit-file:before { content: "\ea37"; }
112
+ .ez-icon-edit-table:before { content: "\ea38"; }
113
+ .ez-icon-edit-time:before { content: "\ea39"; }
114
+ .ez-icon-edit:before { content: "\ea3a"; }
115
+ .ez-icon-email:before { content: "\ea3b"; }
116
+ .ez-icon-estorno:before { content: "\ea3c"; }
117
+ .ez-icon-exe:before { content: "\ea3d"; }
118
+ .ez-icon-expand:before { content: "\ea3e"; }
119
+ .ez-icon-expandir_card:before { content: "\ea3f"; }
120
+ .ez-icon-extrato:before { content: "\ea40"; }
121
+ .ez-icon-eye-off:before { content: "\ea41"; }
122
+ .ez-icon-eye:before { content: "\ea42"; }
123
+ .ez-icon-favorite:before { content: "\ea43"; }
124
+ .ez-icon-figma:before { content: "\ea44"; }
125
+ .ez-icon-file-download:before { content: "\ea45"; }
126
+ .ez-icon-file-upload:before { content: "\ea46"; }
127
+ .ez-icon-filter:before { content: "\ea47"; }
128
+ .ez-icon-find-file:before { content: "\ea48"; }
129
+ .ez-icon-find-page:before { content: "\ea49"; }
130
+ .ez-icon-format-color-fill:before { content: "\ea4a"; }
131
+ .ez-icon-generic:before { content: "\ea4b"; }
132
+ .ez-icon-gif:before { content: "\ea4c"; }
133
+ .ez-icon-graph_bar:before { content: "\ea4d"; }
134
+ .ez-icon-handshake:before { content: "\ea4e"; }
135
+ .ez-icon-help-inverted:before { content: "\ea4f"; }
136
+ .ez-icon-help:before { content: "\ea50"; }
137
+ .ez-icon-hide_menu:before { content: "\ea51"; }
138
+ .ez-icon-home:before { content: "\ea52"; }
139
+ .ez-icon-icons104:before { content: "\ea53"; }
140
+ .ez-icon-language:before { content: "\ea54"; }
141
+ .ez-icon-launch:before { content: "\ea55"; }
142
+ .ez-icon-lightbulb:before { content: "\ea56"; }
143
+ .ez-icon-list:before { content: "\ea57"; }
144
+ .ez-icon-location:before { content: "\ea58"; }
145
+ .ez-icon-lock-outline:before { content: "\ea59"; }
146
+ .ez-icon-lock:before { content: "\ea5a"; }
147
+ .ez-icon-menu:before { content: "\ea5b"; }
148
+ .ez-icon-mid:before { content: "\ea5c"; }
149
+ .ez-icon-minus:before { content: "\ea5d"; }
150
+ .ez-icon-money-off:before { content: "\ea5e"; }
151
+ .ez-icon-money:before { content: "\ea5f"; }
152
+ .ez-icon-more:before { content: "\ea60"; }
153
+ .ez-icon-mp3:before { content: "\ea61"; }
154
+ .ez-icon-mp4:before { content: "\ea62"; }
155
+ .ez-icon-north-west:before { content: "\ea63"; }
156
+ .ez-icon-number:before { content: "\ea64"; }
157
+ .ez-icon-ordem-ascendente:before { content: "\ea65"; }
158
+ .ez-icon-ordem-descendente:before { content: "\ea66"; }
159
+ .ez-icon-parcelar:before { content: "\ea67"; }
160
+ .ez-icon-pause:before { content: "\ea68"; }
161
+ .ez-icon-payments:before { content: "\ea69"; }
162
+ .ez-icon-pdf:before { content: "\ea6a"; }
163
+ .ez-icon-play:before { content: "\ea6b"; }
164
+ .ez-icon-plus:before { content: "\ea6c"; }
165
+ .ez-icon-png:before { content: "\ea6d"; }
166
+ .ez-icon-power:before { content: "\ea6e"; }
167
+ .ez-icon-pptx:before { content: "\ea6f"; }
168
+ .ez-icon-print:before { content: "\ea70"; }
169
+ .ez-icon-push-pin:before { content: "\ea71"; }
170
+ .ez-icon-rateio:before { content: "\ea72"; }
171
+ .ez-icon-receipt:before { content: "\ea73"; }
172
+ .ez-icon-recolher_card:before { content: "\ea74"; }
173
+ .ez-icon-restore:before { content: "\ea75"; }
174
+ .ez-icon-return:before { content: "\ea76"; }
175
+ .ez-icon-save:before { content: "\ea77"; }
176
+ .ez-icon-search:before { content: "\ea78"; }
177
+ .ez-icon-settings-inverted:before { content: "\ea79"; }
178
+ .ez-icon-settings:before { content: "\ea7a"; }
179
+ .ez-icon-share:before { content: "\ea7b"; }
180
+ .ez-icon-shield:before { content: "\ea7c"; }
181
+ .ez-icon-show_menu:before { content: "\ea7d"; }
182
+ .ez-icon-south-east:before { content: "\ea7e"; }
183
+ .ez-icon-sync:before { content: "\ea7f"; }
184
+ .ez-icon-table:before { content: "\ea80"; }
185
+ .ez-icon-tag_code:before { content: "\ea81"; }
186
+ .ez-icon-text:before { content: "\ea82"; }
187
+ .ez-icon-timeline:before { content: "\ea83"; }
188
+ .ez-icon-timer-outline:before { content: "\ea84"; }
189
+ .ez-icon-tune:before { content: "\ea85"; }
190
+ .ez-icon-txt:before { content: "\ea86"; }
191
+ .ez-icon-un-pin:before { content: "\ea87"; }
192
+ .ez-icon-unfold_less:before { content: "\ea88"; }
193
+ .ez-icon-unfold_more:before { content: "\ea89"; }
194
+ .ez-icon-user-circle:before { content: "\ea8a"; }
195
+ .ez-icon-warning-outline:before { content: "\ea8b"; }
196
+ .ez-icon-warning_triangle:before { content: "\ea8c"; }
197
+ .ez-icon-whatshot:before { content: "\ea8d"; }
198
+ .ez-icon-xlsx:before { content: "\ea8e"; }
199
+ .ez-icon-zip:before { content: "\ea8f"; }
198
200
 
199
201
  /*
200
202
  END CSS GENERATED BY EZ-DESIGN ICONS
@@ -102,12 +102,13 @@ p {
102
102
  }
103
103
 
104
104
  .draggable {
105
- display: flex;
106
- align-items: center;
105
+ /* private */
106
+ width: 100%;
107
+ display: grid;
108
+ grid-template-columns: minmax(0px, auto) minmax(0px, auto);
109
+ place-items: center;
107
110
  border-top: 1px dashed #fff;
108
111
  justify-content: space-between;
109
- flex: 1;
110
- width: 100%;
111
112
 
112
113
  /*public*/
113
114
  font-family: var(--ez-list__item--font-family);
@@ -148,14 +149,6 @@ p {
148
149
  width: 100%;
149
150
  }
150
151
 
151
- .group-container .item-content {
152
- max-width: calc(100% - 41px);
153
- }
154
-
155
- .items-container .item-content {
156
- max-width: calc(100% - 100px);
157
- }
158
-
159
152
  .draggable-list {
160
153
  padding: 0;
161
154
  margin: 0;
@@ -285,6 +278,7 @@ p {
285
278
  user-select: none;
286
279
 
287
280
  /*public*/
281
+ color: var(--title--primary);
288
282
  font-family: var(--ez-list__group--font-family);
289
283
  font-size: var(--ez-list__group--font-size);
290
284
  font-weight: var(--ez-list__group--font-weight);
@@ -1,4 +1,4 @@
1
- import { ElementIDUtils } from "@sankhyalabs/core";
1
+ import { ElementIDUtils, StringUtils } from "@sankhyalabs/core";
2
2
  import { h, Host } from "@stencil/core";
3
3
  ;
4
4
  ;
@@ -36,6 +36,7 @@ export class EzList {
36
36
  */
37
37
  async setSelection(selectedItem, scrollToOption) {
38
38
  if (selectedItem && this.ezSelectable) {
39
+ this.ezSelectItem.emit(selectedItem);
39
40
  if (this.useGroups) {
40
41
  let newList = [...this._listGroupItems];
41
42
  newList.forEach(groupItem => {
@@ -517,18 +518,18 @@ export class EzList {
517
518
  render() {
518
519
  return (h(Host, { ref: (el) => this._element = el }, this.useGroups ?
519
520
  h("div", { class: "group-container", ref: (el) => this._groupContainer = el, tabIndex: 0, onKeyDown: (event) => { this.keyDownHandler(event); } }, this._listGroupItems.map(group => {
520
- return h("div", { id: this.getDivGroupId(group.group), class: "group", key: group.group + group.items.length, onDrop: () => this.onDropGroup(group) }, h("label", { draggable: false, class: "group-name" }, group.group), h("section", { class: "section-container", onDragOver: (ev) => ev.preventDefault() }, h("div", { class: "group-items-container" }, h("div", { class: "draggable-list" }, group.items.map((item, index) => (h("li", { id: "item_" + this.getItemId(item.label), class: {
521
+ return h("div", { id: this.getDivGroupId(group.group), class: "group", key: group.group + group.items.length, onDrop: () => this.onDropGroup(group) }, h("label", { draggable: false, class: "group-name" }, group.group), h("section", { class: "section-container", onDragOver: (ev) => ev.preventDefault() }, h("div", { class: "group-items-container" }, h("div", { class: "draggable-list" }, group.items.map((item, index) => (h("li", Object.assign({ id: "item_" + this.getItemId(item.label), class: {
521
522
  "selectable-container": this.ezSelectable,
522
523
  "hover-feedback": this.hoverFeedback
523
- }, key: "item_" + this.getItemId(item.label) }, h("div", { class: "draggable" + (item.selected == true ? " selected-item " : "") + (this.ezSelectable == true ? " selectable " : ""), onClick: () => { this.setSelection(item); }, onDragLeave: () => { group.sort ? undefined : this.removeOverClass(); }, onDragEnd: () => this.onDragEnd(), onDragStart: () => this.onDragStart(item, group, index), onDragOver: (event) => { group.sort ? undefined : this.onDragOverItem(event); }, onDrop: (event) => this.onDrop(event, { groupName: group.group, item: item, index: index }), draggable: this.ezDraggable }, h("div", { class: "item-content" }, this.ezDraggable ? h("span", { class: "draggable-icon" }) : undefined, h("p", { title: item.label, class: "person-name text--ellipsis" }, item.label)), this.itemSlotBuilder ? this.getContainerItemBuilder(item, group, "slot-item") : undefined))))), h("div", { class: "last-droppable-space", onDragLeave: () => this.removeOverClass(), onDragOver: (event) => { this.onDragOverLastIndex(event); }, onDragEnd: () => this.onDragEnd(), onDrop: (event) => this.onDropLastIndex(event, group) })), group.sort ?
524
+ }, key: "item_" + this.getItemId(item.label) }, { [ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME]: ElementIDUtils.getInternalIDInfo(`ezListItem__${StringUtils.replaceAccentuatedChars(item.label)}`) }), h("div", { class: "draggable" + (item.selected == true ? " selected-item " : "") + (this.ezSelectable == true ? " selectable " : ""), onClick: () => { this.setSelection(item); }, onDragLeave: () => { group.sort ? undefined : this.removeOverClass(); }, onDragEnd: () => this.onDragEnd(), onDragStart: () => this.onDragStart(item, group, index), onDragOver: (event) => { group.sort ? undefined : this.onDragOverItem(event); }, onDrop: (event) => this.onDrop(event, { groupName: group.group, item: item, index: index }), draggable: this.ezDraggable }, h("div", { class: "item-content" }, this.ezDraggable ? h("span", { class: "draggable-icon" }) : undefined, h("p", { title: item.label, class: "person-name text--ellipsis" }, item.label)), this.itemSlotBuilder ? this.getContainerItemBuilder(item, group, "slot-item") : undefined))))), h("div", { class: "last-droppable-space", onDragLeave: () => this.removeOverClass(), onDragOver: (event) => { this.onDragOverLastIndex(event); }, onDragEnd: () => this.onDragEnd(), onDrop: (event) => this.onDropLastIndex(event, group) })), group.sort ?
524
525
  h("div", { id: this.getGroupOverlayId(group.group), class: "group-overlay" }, "Mover para ", group.group)
525
526
  : undefined));
526
527
  }))
527
528
  :
528
- h("div", { class: "items-container", ref: (el) => this._itemContainer = el, tabIndex: 0, onKeyDown: (event) => { this.keyDownHandler(event); } }, h("div", { class: "draggable-list" }, this._listItems.map((item, index) => (h("li", { id: "item_" + this.getItemId(item.label), class: {
529
+ h("div", { class: "items-container", ref: (el) => this._itemContainer = el, tabIndex: 0, onKeyDown: (event) => { this.keyDownHandler(event); } }, h("div", { class: "draggable-list" }, this._listItems.map((item, index) => (h("li", Object.assign({ id: "item_" + this.getItemId(item.label), class: {
529
530
  "selectable-container": this.ezSelectable,
530
531
  "hover-feedback": this.hoverFeedback
531
- }, key: "item_" + this.getItemId(item.label) }, h("div", { class: "draggable" + (item.selected == true ? " selected-item " : "") + (this.ezSelectable == true ? " selectable " : ""), onDragStart: () => this.onDragStart({ item: item, index: index }), onClick: () => { this.setSelection(item); }, onDragLeave: () => this.removeOverClass(), onDragOver: (event) => this.onDragOverItem(event), onDragEnd: () => this.onDragEnd(), onDrop: (event) => this.onDrop(event, { item: item, index: index }), draggable: this.ezDraggable }, h("div", { class: "item-content" }, this.ezDraggable ? h("span", { class: "draggable-icon" }) : undefined, h("p", { title: item.label, class: "person-name text--ellipsis" }, item.label)), this.itemSlotBuilder ? this.getContainerItemBuilder(item) : undefined)))), h("div", { class: "last-droppable-space", onDragLeave: () => this.removeOverClass(), onDragOver: (event) => { this.onDragOverLastIndex(event); }, onDragEnd: () => this.onDragEnd(), onDrop: (event) => this.onDropLastIndex(event) })))));
532
+ }, key: "item_" + this.getItemId(item.label) }, { [ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME]: ElementIDUtils.getInternalIDInfo(`ezListItem__${StringUtils.replaceAccentuatedChars(item.label)}`) }), h("div", { class: "draggable" + (item.selected == true ? " selected-item " : "") + (this.ezSelectable == true ? " selectable " : ""), onDragStart: () => this.onDragStart({ item: item, index: index }), onClick: () => { this.setSelection(item); }, onDragLeave: () => this.removeOverClass(), onDragOver: (event) => this.onDragOverItem(event), onDragEnd: () => this.onDragEnd(), onDrop: (event) => this.onDrop(event, { item: item, index: index }), draggable: this.ezDraggable }, h("div", { class: "item-content" }, this.ezDraggable ? h("span", { class: "draggable-icon" }) : undefined, h("p", { title: item.label, class: "person-name text--ellipsis" }, item.label)), this.itemSlotBuilder ? this.getContainerItemBuilder(item) : undefined)))), h("div", { class: "last-droppable-space", onDragLeave: () => this.removeOverClass(), onDragOver: (event) => { this.onDragOverLastIndex(event); }, onDragEnd: () => this.onDragEnd(), onDrop: (event) => this.onDropLastIndex(event) })))));
532
533
  }
533
534
  static get is() { return "ez-list"; }
534
535
  static get encapsulation() { return "shadow"; }
@@ -701,6 +702,25 @@ export class EzList {
701
702
  }
702
703
  }
703
704
  }
705
+ }, {
706
+ "method": "ezSelectItem",
707
+ "name": "ezSelectItem",
708
+ "bubbles": true,
709
+ "cancelable": true,
710
+ "composed": true,
711
+ "docs": {
712
+ "tags": [],
713
+ "text": "Emitido sempre que um item da lista for selecionado."
714
+ },
715
+ "complexType": {
716
+ "original": "ListItem",
717
+ "resolved": "ListItem",
718
+ "references": {
719
+ "ListItem": {
720
+ "location": "local"
721
+ }
722
+ }
723
+ }
704
724
  }];
705
725
  }
706
726
  static get methods() {
@@ -31,6 +31,12 @@ export class EzPopover {
31
31
  if (!_container.lastElementChild.shadowRoot ? _container.contains(node) : _container.lastElementChild.shadowRoot.contains(node)) {
32
32
  return true;
33
33
  }
34
+ const nodeShadowRoot = node.getRootNode();
35
+ if (nodeShadowRoot instanceof ShadowRoot) {
36
+ if (eventOrigin.composedPath().includes(nodeShadowRoot.host)) {
37
+ return true;
38
+ }
39
+ }
34
40
  }
35
41
  }
36
42
  return false;