@sankhyalabs/ezui 4.2.1 → 4.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/ez-badge.cjs.entry.js +120 -0
- package/dist/cjs/ez-breadcrumb.cjs.entry.js +3 -14
- package/dist/cjs/ez-filter-input_4.cjs.entry.js +2 -1
- package/dist/cjs/ez-icon.cjs.entry.js +1 -1
- package/dist/cjs/ez-list.cjs.entry.js +7 -5
- package/dist/cjs/ez-popover.cjs.entry.js +6 -0
- package/dist/cjs/ezui.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/ez-badge/enum/sizes.js +9 -0
- package/dist/collection/components/ez-badge/ez-badge.css +165 -0
- package/dist/collection/components/ez-badge/ez-badge.js +211 -0
- package/dist/collection/components/ez-badge/interfaces/IPosition.js +1 -0
- package/dist/collection/components/ez-breadcrumb/ez-breadcrumb.css +4 -0
- package/dist/collection/components/ez-breadcrumb/subcomponents/breadcrumb-item.js +2 -13
- package/dist/collection/components/ez-filter-input/ez-filter-input.js +20 -1
- package/dist/collection/components/ez-icon/ez-icon.css +141 -139
- package/dist/collection/components/ez-list/ez-list.css +6 -12
- package/dist/collection/components/ez-list/ez-list.js +25 -5
- package/dist/collection/components/ez-popover/ez-popover.js +6 -0
- package/dist/custom-elements/index.d.ts +6 -0
- package/dist/custom-elements/index.js +137 -23
- package/dist/esm/ez-badge.entry.js +116 -0
- package/dist/esm/ez-breadcrumb.entry.js +3 -14
- package/dist/esm/ez-filter-input_4.entry.js +2 -1
- package/dist/esm/ez-icon.entry.js +1 -1
- package/dist/esm/ez-list.entry.js +8 -6
- package/dist/esm/ez-popover.entry.js +6 -0
- package/dist/esm/ezui.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/ezui/ezui.esm.js +1 -1
- package/dist/ezui/p-02fc35a6.entry.js +1 -0
- package/dist/ezui/p-077a6943.entry.js +1 -0
- package/dist/ezui/p-0d04119a.entry.js +1 -0
- package/dist/ezui/p-2a848666.entry.js +1 -0
- package/dist/ezui/p-6388d982.entry.js +1 -0
- package/dist/ezui/p-759e37b7.entry.js +1 -0
- package/dist/types/components/ez-badge/enum/sizes.d.ts +8 -0
- package/dist/types/components/ez-badge/ez-badge.d.ts +35 -0
- package/dist/types/components/ez-badge/interfaces/IPosition.d.ts +4 -0
- package/dist/types/components/ez-filter-input/ez-filter-input.d.ts +4 -0
- package/dist/types/components/ez-list/ez-list.d.ts +4 -0
- package/dist/types/components/ez-popover/ez-popover.d.ts +1 -1
- package/dist/types/components.d.ts +66 -0
- package/package.json +2 -2
- package/react/components.d.ts +1 -0
- package/react/components.js +1 -0
- package/react/components.js.map +1 -1
- package/dist/ezui/p-62481744.entry.js +0 -1
- package/dist/ezui/p-6cf406ff.entry.js +0 -1
- package/dist/ezui/p-8d5ec02b.entry.js +0 -1
- package/dist/ezui/p-9a1549c2.entry.js +0 -1
- 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-
|
|
60
|
-
.ez-icon-account:before { content: "\ea04"; }
|
|
61
|
-
.ez-icon-
|
|
62
|
-
.ez-icon-
|
|
63
|
-
.ez-icon-alert-circle:before { content: "\ea07"; }
|
|
64
|
-
.ez-icon-alert-
|
|
65
|
-
.ez-icon-alert-
|
|
66
|
-
.ez-icon-
|
|
67
|
-
.ez-icon-
|
|
68
|
-
.ez-icon-
|
|
69
|
-
.ez-icon-
|
|
70
|
-
.ez-icon-
|
|
71
|
-
.ez-icon-
|
|
72
|
-
.ez-icon-
|
|
73
|
-
.ez-icon-
|
|
74
|
-
.ez-icon-bell:before { content: "\ea12"; }
|
|
75
|
-
.ez-icon-
|
|
76
|
-
.ez-icon-
|
|
77
|
-
.ez-icon-
|
|
78
|
-
.ez-icon-
|
|
79
|
-
.ez-icon-
|
|
80
|
-
.ez-icon-
|
|
81
|
-
.ez-icon-
|
|
82
|
-
.ez-icon-check:before { content: "\ea1a"; }
|
|
83
|
-
.ez-icon-
|
|
84
|
-
.ez-icon-
|
|
85
|
-
.ez-icon-chevron-
|
|
86
|
-
.ez-icon-chevron-
|
|
87
|
-
.ez-icon-
|
|
88
|
-
.ez-icon-
|
|
89
|
-
.ez-icon-
|
|
90
|
-
.ez-icon-
|
|
91
|
-
.ez-icon-
|
|
92
|
-
.ez-icon-
|
|
93
|
-
.ez-icon-
|
|
94
|
-
.ez-icon-
|
|
95
|
-
.ez-icon-
|
|
96
|
-
.ez-icon-
|
|
97
|
-
.ez-icon-
|
|
98
|
-
.ez-icon-
|
|
99
|
-
.ez-icon-
|
|
100
|
-
.ez-icon-
|
|
101
|
-
.ez-icon-
|
|
102
|
-
.ez-icon-
|
|
103
|
-
.ez-icon-
|
|
104
|
-
.ez-icon-
|
|
105
|
-
.ez-icon-
|
|
106
|
-
.ez-icon-
|
|
107
|
-
.ez-icon-
|
|
108
|
-
.ez-icon-
|
|
109
|
-
.ez-icon-
|
|
110
|
-
.ez-icon-
|
|
111
|
-
.ez-icon-edit-
|
|
112
|
-
.ez-icon-edit:before { content: "\ea38"; }
|
|
113
|
-
.ez-icon-
|
|
114
|
-
.ez-icon-
|
|
115
|
-
.ez-icon-
|
|
116
|
-
.ez-icon-
|
|
117
|
-
.ez-icon-
|
|
118
|
-
.ez-icon-
|
|
119
|
-
.ez-icon-
|
|
120
|
-
.ez-icon-
|
|
121
|
-
.ez-icon-
|
|
122
|
-
.ez-icon-
|
|
123
|
-
.ez-icon-
|
|
124
|
-
.ez-icon-
|
|
125
|
-
.ez-icon-
|
|
126
|
-
.ez-icon-
|
|
127
|
-
.ez-icon-
|
|
128
|
-
.ez-icon-
|
|
129
|
-
.ez-icon-
|
|
130
|
-
.ez-icon-
|
|
131
|
-
.ez-icon-
|
|
132
|
-
.ez-icon-
|
|
133
|
-
.ez-icon-
|
|
134
|
-
.ez-icon-
|
|
135
|
-
.ez-icon-
|
|
136
|
-
.ez-icon-
|
|
137
|
-
.ez-icon-
|
|
138
|
-
.ez-icon-
|
|
139
|
-
.ez-icon-
|
|
140
|
-
.ez-icon-
|
|
141
|
-
.ez-icon-
|
|
142
|
-
.ez-icon-
|
|
143
|
-
.ez-icon-
|
|
144
|
-
.ez-icon-
|
|
145
|
-
.ez-icon-
|
|
146
|
-
.ez-icon-
|
|
147
|
-
.ez-icon-
|
|
148
|
-
.ez-icon-
|
|
149
|
-
.ez-icon-
|
|
150
|
-
.ez-icon-
|
|
151
|
-
.ez-icon-
|
|
152
|
-
.ez-icon-
|
|
153
|
-
.ez-icon-
|
|
154
|
-
.ez-icon-
|
|
155
|
-
.ez-icon-
|
|
156
|
-
.ez-icon-
|
|
157
|
-
.ez-icon-
|
|
158
|
-
.ez-icon-
|
|
159
|
-
.ez-icon-
|
|
160
|
-
.ez-icon-
|
|
161
|
-
.ez-icon-
|
|
162
|
-
.ez-icon-
|
|
163
|
-
.ez-icon-
|
|
164
|
-
.ez-icon-
|
|
165
|
-
.ez-icon-
|
|
166
|
-
.ez-icon-
|
|
167
|
-
.ez-icon-
|
|
168
|
-
.ez-icon-
|
|
169
|
-
.ez-icon-
|
|
170
|
-
.ez-icon-
|
|
171
|
-
.ez-icon-
|
|
172
|
-
.ez-icon-
|
|
173
|
-
.ez-icon-
|
|
174
|
-
.ez-icon-
|
|
175
|
-
.ez-icon-
|
|
176
|
-
.ez-icon-
|
|
177
|
-
.ez-icon-
|
|
178
|
-
.ez-icon-
|
|
179
|
-
.ez-icon-
|
|
180
|
-
.ez-icon-
|
|
181
|
-
.ez-icon-
|
|
182
|
-
.ez-icon-
|
|
183
|
-
.ez-icon-
|
|
184
|
-
.ez-icon-
|
|
185
|
-
.ez-icon-
|
|
186
|
-
.ez-icon-
|
|
187
|
-
.ez-icon-
|
|
188
|
-
.ez-icon-
|
|
189
|
-
.ez-icon-
|
|
190
|
-
.ez-icon-
|
|
191
|
-
.ez-icon-
|
|
192
|
-
.ez-icon-
|
|
193
|
-
.ez-icon-
|
|
194
|
-
.ez-icon-
|
|
195
|
-
.ez-icon-
|
|
196
|
-
.ez-icon-
|
|
197
|
-
.ez-icon-
|
|
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
|
-
|
|
106
|
-
|
|
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;
|
|
@@ -20,6 +20,12 @@ export const EzApplication: {
|
|
|
20
20
|
new (): EzApplication;
|
|
21
21
|
};
|
|
22
22
|
|
|
23
|
+
interface EzBadge extends Components.EzBadge, HTMLElement {}
|
|
24
|
+
export const EzBadge: {
|
|
25
|
+
prototype: EzBadge;
|
|
26
|
+
new (): EzBadge;
|
|
27
|
+
};
|
|
28
|
+
|
|
23
29
|
interface EzBreadcrumb extends Components.EzBreadcrumb, HTMLElement {}
|
|
24
30
|
export const EzBreadcrumb: {
|
|
25
31
|
prototype: EzBreadcrumb;
|