@sankhyalabs/ezui 1.1.30 → 1.1.34
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-action-chip.cjs.entry.js +2 -2
- package/dist/cjs/ez-button_16.cjs.entry.js +96 -63
- package/dist/cjs/ez-dialog.cjs.entry.js +46 -0
- package/dist/cjs/ez-label-chip.cjs.entry.js +2 -2
- package/dist/cjs/ez-modal.cjs.entry.js +22 -12
- package/dist/cjs/ez-number-input.cjs.entry.js +2 -2
- package/dist/cjs/ez-popover.cjs.entry.js +2 -2
- package/dist/cjs/ez-popup.cjs.entry.js +37 -0
- package/dist/cjs/ez-time-input.cjs.entry.js +2 -2
- package/dist/cjs/ezui.cjs.js +3 -3
- package/dist/cjs/{index-f08ae9d8.js → index-0f668cc5.js} +70 -61
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/collection/collection-manifest.json +6 -4
- package/dist/collection/components/ez-calendar/ez-calendar.js +3 -5
- package/dist/collection/components/ez-check/ez-check.js +1 -1
- package/dist/collection/components/ez-combo-box/ez-combo-box.js +75 -44
- package/dist/collection/components/ez-dialog/ez-dialog.css +442 -0
- package/dist/collection/components/ez-dialog/ez-dialog.js +198 -0
- package/dist/collection/components/ez-form/subcomponents/structure/Field.js +2 -1
- package/dist/collection/components/ez-modal/ez-modal.js +33 -26
- package/dist/collection/components/ez-popup/ez-popup.css +387 -0
- package/dist/collection/components/ez-popup/ez-popup.js +131 -0
- package/dist/collection/components/ez-search/ez-search.js +45 -1
- package/dist/collection/components/ez-upload/ez-upload.js +9 -10
- package/dist/custom-elements/index.d.ts +12 -0
- package/dist/custom-elements/index.js +224 -104
- package/dist/esm/ez-action-chip.entry.js +2 -2
- package/dist/esm/ez-button_16.entry.js +96 -63
- package/dist/esm/ez-dialog.entry.js +42 -0
- package/dist/esm/ez-label-chip.entry.js +2 -2
- package/dist/esm/ez-modal.entry.js +22 -12
- package/dist/esm/ez-number-input.entry.js +2 -2
- package/dist/esm/ez-popover.entry.js +2 -2
- package/dist/esm/ez-popup.entry.js +33 -0
- package/dist/esm/ez-time-input.entry.js +2 -2
- package/dist/esm/ezui.js +3 -3
- package/dist/esm/{index-3e5d5166.js → index-89fc9bfd.js} +70 -61
- package/dist/esm/loader.js +3 -3
- package/dist/ezui/ezui.esm.js +1 -1
- package/dist/ezui/p-06c7c4e3.entry.js +1 -0
- package/dist/ezui/p-171bdc12.entry.js +1 -0
- package/dist/ezui/p-40fe4f51.entry.js +1 -0
- package/dist/ezui/p-55c5b134.entry.js +1 -0
- package/dist/ezui/p-762ac7a0.js +1 -0
- package/dist/ezui/p-7f528c19.entry.js +1 -0
- package/dist/ezui/p-b81916dd.entry.js +1 -0
- package/dist/ezui/p-c2368320.entry.js +1 -0
- package/dist/ezui/p-caa50ec5.entry.js +1 -0
- package/dist/ezui/p-d8a47f23.entry.js +1 -0
- package/dist/types/components/ez-combo-box/ez-combo-box.d.ts +9 -4
- package/dist/types/components/ez-dialog/ez-dialog.d.ts +33 -0
- package/dist/types/components/ez-modal/ez-modal.d.ts +4 -0
- package/dist/types/components/ez-popup/ez-popup.d.ts +24 -0
- package/dist/types/components/ez-search/ez-search.d.ts +8 -0
- package/dist/types/components.d.ts +143 -4
- package/loader/index.d.ts +0 -1
- package/package.json +7 -6
- package/react/components.d.ts +2 -0
- package/react/components.js +2 -0
- package/react/components.js.map +1 -1
- package/dist/ezui/p-106dafe7.entry.js +0 -1
- package/dist/ezui/p-534472a3.entry.js +0 -1
- package/dist/ezui/p-5d398030.entry.js +0 -1
- package/dist/ezui/p-7509be4f.entry.js +0 -1
- package/dist/ezui/p-c6987a1b.entry.js +0 -1
- package/dist/ezui/p-f3a62790.entry.js +0 -1
- package/dist/ezui/p-f918e4da.js +0 -1
- package/dist/ezui/p-fc46887a.entry.js +0 -1
|
@@ -0,0 +1,387 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
display: flex;
|
|
3
|
+
/* width: 100%;
|
|
4
|
+
height: 100vh; */
|
|
5
|
+
--popup-title--primary: var(--title--primary, #2b3a54);
|
|
6
|
+
--popup-font-pattern: var(--font-pattern, "'Sora', 'Algerian'");
|
|
7
|
+
--popup-text-weight--large: var(--text-weight--large, 600);
|
|
8
|
+
--popup-space--small: var(--space--small, 6px);
|
|
9
|
+
--popup-space--medium: var(--space--medium, 12px);
|
|
10
|
+
--popup-space--large: var(--space--large, 24px);
|
|
11
|
+
--popup-error--background-color: var(--color--alert-error-800, #BD0025);
|
|
12
|
+
--popup-warning--background-color: var(--color--alert-warning-500, #EFB103);
|
|
13
|
+
--popup-text-weight--medium: var(--text-weight--medium, 400);
|
|
14
|
+
--popup-text-shadow: var(--text-shadow, "0 0 0 #353535, 0 0 1px transparent");
|
|
15
|
+
--popup-text--medium: var(--text--medium, 14px);
|
|
16
|
+
--popup-text--primary: var(--text--primary, #626e82);
|
|
17
|
+
--popup-z-index: var(--most-visible, 3);
|
|
18
|
+
--popup--trash__image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" version="1.1" height="16px" width="16px"><path d="M 1.8585859,3.0707069 7.9999998,9.2121212 14.141414,3.0707069 16,5.0101006 7.9999998,12.929293 0,4.9292932 Z"/></svg>');
|
|
19
|
+
--popup--close__image: url('data:image/svg+xml;utf8,<svg width="12" height="12" viewBox="0 0 12 12" xmlns="http://www.w3.org/2000/svg%22%3E<path d="M 7.0060773,5.995511 11.461972,1.5397722 c 0.132856,-0.1328413 0.207547,-0.3130253 0.207547,-0.5009046 0,-0.18786999 -0.07469,-0.3680541 -0.207547,-0.5009048 -0.132857,-0.13284126 -0.31302,-0.20748126 -0.500927,-0.20748126 -0.187812,0 -0.36807,0.07464 -0.500926,0.20748126 L 6.0042244,4.9937015 1.5482921,0.5379628 C 1.4154357,0.40512154 1.2352533,0.33048154 1.0473657,0.33048154 c -0.18787813,0 -0.36807,0.07464 -0.50092647,0.20748126 -0.13285646,0.1328507 -0.20749026,0.31303481 -0.20749026,0.5009048 0,0.1878793 0.0746338,0.3680633 0.20749026,0.5009046 L 5.0023715,5.995511 0.54643923,10.452213 c -0.0676086,0.06534 -0.12151598,0.14352 -0.15859681,0.229916 -0.0370714,0.08639 -0.0565645,0.1794 -0.0573369,0.27335 -7.724e-4,0.09404 0.0171873,0.187331 0.0528423,0.274293 0.0356455,0.08705 0.0882688,0.166087 0.15479148,0.23256 0.0665321,0.06648 0.14562277,0.11897 0.2326735,0.154567 0.0870507,0.0356 0.18031463,0.05344 0.2743433,0.05259 0.094029,-8.5e-4 0.1869528,-0.02049 0.2733331,-0.0576 0.08639,-0.0372 0.1645078,-0.09121 0.2298029,-0.158817 L 6.0042244,6.9973204 10.460119,11.453078 c 0.132856,0.132851 0.313114,0.207444 0.500926,0.207444 0.187907,0 0.36807,-0.07459 0.500927,-0.207444 0.132856,-0.13285 0.207547,-0.313006 0.207547,-0.500904 0,-0.187898 -0.07469,-0.368054 -0.207547,-0.500905 z"/></svg>');
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.overlay {
|
|
23
|
+
position: fixed;
|
|
24
|
+
display: flex;
|
|
25
|
+
top: 0px;
|
|
26
|
+
z-index: var(--popup-z-index);
|
|
27
|
+
left: 0px;
|
|
28
|
+
width: 100%;
|
|
29
|
+
align-items: center;
|
|
30
|
+
justify-content: center;
|
|
31
|
+
box-sizing: border-box;
|
|
32
|
+
height: 100vh;
|
|
33
|
+
backdrop-filter: blur(4px);
|
|
34
|
+
background: rgba(0, 4, 12, 0.4);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.popup {
|
|
38
|
+
display: flex;
|
|
39
|
+
height: 100%;
|
|
40
|
+
align-items: center;
|
|
41
|
+
justify-content: center;
|
|
42
|
+
box-sizing: border-box;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.popup__container {
|
|
46
|
+
width: 100%;
|
|
47
|
+
max-height: 90%;
|
|
48
|
+
display: flex;
|
|
49
|
+
flex-wrap: wrap;
|
|
50
|
+
overflow: hidden;
|
|
51
|
+
background: #FFFF;
|
|
52
|
+
color: var(--popup-title--primary);
|
|
53
|
+
border-radius: 12px;
|
|
54
|
+
box-shadow: 0px 0px 16px rgba(0, 38, 111, 0.122);
|
|
55
|
+
box-sizing: border-box;
|
|
56
|
+
padding: var(--popup-space--large)
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.popup__content {
|
|
60
|
+
box-sizing: border-box;
|
|
61
|
+
max-height: 100%;
|
|
62
|
+
width: 100%;
|
|
63
|
+
display: flex;
|
|
64
|
+
flex-wrap: wrap;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.popup__expandable-content {
|
|
68
|
+
box-sizing: border-box;
|
|
69
|
+
overflow-y: auto;
|
|
70
|
+
width: 100%;
|
|
71
|
+
display: flex;
|
|
72
|
+
flex-wrap: wrap;
|
|
73
|
+
max-height: 80vh;
|
|
74
|
+
content-visibility: auto;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.popup__header {
|
|
78
|
+
padding-bottom: var(--popup-space--large);
|
|
79
|
+
width: 100%;
|
|
80
|
+
display: flex;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.popup__title {
|
|
84
|
+
width: 100%;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.dialog__error--indicator {
|
|
88
|
+
box-sizing: border-box;
|
|
89
|
+
width: 12px;
|
|
90
|
+
border-radius: 6px 0px 0px 6px;
|
|
91
|
+
background-color: var(--popup-error--background-color);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.dialog__warning--indicator {
|
|
95
|
+
width: 12px;
|
|
96
|
+
border-radius: 6px 0px 0px 6px;
|
|
97
|
+
box-sizing: border-box;
|
|
98
|
+
background-color: var(--popup-warning--background-color);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.message {
|
|
102
|
+
font-weight: var(--popup-text-weight--medium)
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.btn-close {
|
|
106
|
+
justify-content: flex-end;
|
|
107
|
+
align-self: flex-start;
|
|
108
|
+
align-items: flex-start;
|
|
109
|
+
display: flex;
|
|
110
|
+
outline: none;
|
|
111
|
+
border: none;
|
|
112
|
+
background-color: unset;
|
|
113
|
+
cursor: pointer;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.btn-close::after {
|
|
117
|
+
content: '';
|
|
118
|
+
display: flex;
|
|
119
|
+
background-color: var(--popup-title--primary);
|
|
120
|
+
width: 12px;
|
|
121
|
+
height: 12px;
|
|
122
|
+
-webkit-mask-image: var(--popup--close__image);
|
|
123
|
+
mask-image: var(--popup--close__image);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.btn-close--solo {
|
|
127
|
+
width: 100%;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.title {
|
|
131
|
+
display: flex;
|
|
132
|
+
font-family: var(--popup-font-pattern);
|
|
133
|
+
margin: 0;
|
|
134
|
+
font-weight: var(--popup-text-weight--large);
|
|
135
|
+
line-height: 1.3;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.title--large {
|
|
139
|
+
font-size: var(--popup-title--large);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.title__container {
|
|
143
|
+
display: flex;
|
|
144
|
+
align-items: center;
|
|
145
|
+
padding-bottom: var(--popup-space--medium);
|
|
146
|
+
align-self: center;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.title--label {
|
|
150
|
+
padding-left: var(--popup-space--small);
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.text {
|
|
154
|
+
font-family: var(--popup-font-pattern);
|
|
155
|
+
text-shadow: var(--popup-text-shadow);
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.text--medium {
|
|
159
|
+
font-size: var(--popup-text--medium);
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.text--primary {
|
|
163
|
+
color: var(--popup-text--primary);
|
|
164
|
+
text-shadow: var(--popup-text-shadow);
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
/* //////// GRID SYSTEM //////// */
|
|
168
|
+
|
|
169
|
+
.row {
|
|
170
|
+
width: 100%;
|
|
171
|
+
display: flex;
|
|
172
|
+
flex-wrap: wrap;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
.col {
|
|
176
|
+
display: flex;
|
|
177
|
+
flex-wrap: wrap;
|
|
178
|
+
align-self: flex-start;
|
|
179
|
+
box-sizing: border-box;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
.col--stretch {
|
|
183
|
+
align-self: stretch;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
.col--undefined {
|
|
187
|
+
width: unset;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
.col--nowrap {
|
|
191
|
+
flex-wrap: nowrap;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
@media screen and (min-width: 320px) {
|
|
195
|
+
.col--sd-1 {
|
|
196
|
+
width: 8.33333%;
|
|
197
|
+
}
|
|
198
|
+
.col--sd-2 {
|
|
199
|
+
width: 16.66667%;
|
|
200
|
+
}
|
|
201
|
+
.col--sd-3 {
|
|
202
|
+
width: 25%;
|
|
203
|
+
}
|
|
204
|
+
.col--sd-4 {
|
|
205
|
+
width: 33.33333%;
|
|
206
|
+
}
|
|
207
|
+
.col--sd-5 {
|
|
208
|
+
width: 41.66667%;
|
|
209
|
+
}
|
|
210
|
+
.col--sd-6 {
|
|
211
|
+
width: 50%;
|
|
212
|
+
}
|
|
213
|
+
.col--sd-7 {
|
|
214
|
+
width: 58.33333%;
|
|
215
|
+
}
|
|
216
|
+
.col--sd-8 {
|
|
217
|
+
width: 66.66667%;
|
|
218
|
+
}
|
|
219
|
+
.col--sd-9 {
|
|
220
|
+
width: 75%;
|
|
221
|
+
}
|
|
222
|
+
.col--sd-10 {
|
|
223
|
+
width: 83.33333%;
|
|
224
|
+
}
|
|
225
|
+
.col--sd-11 {
|
|
226
|
+
width: 91.66667%;
|
|
227
|
+
}
|
|
228
|
+
.col--sd-12 {
|
|
229
|
+
width: 100%;
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
@media screen and (min-width: 480px) {
|
|
234
|
+
.col--pn-1 {
|
|
235
|
+
width: 8.33333%;
|
|
236
|
+
}
|
|
237
|
+
.col--pn-2 {
|
|
238
|
+
width: 16.66667%;
|
|
239
|
+
}
|
|
240
|
+
.col--pn-3 {
|
|
241
|
+
width: 25%;
|
|
242
|
+
}
|
|
243
|
+
.col--pn-4 {
|
|
244
|
+
width: 33.33333%;
|
|
245
|
+
}
|
|
246
|
+
.col--pn-5 {
|
|
247
|
+
width: 41.66667%;
|
|
248
|
+
}
|
|
249
|
+
.col--pn-6 {
|
|
250
|
+
width: 50%;
|
|
251
|
+
}
|
|
252
|
+
.col--pn-7 {
|
|
253
|
+
width: 58.33333%;
|
|
254
|
+
}
|
|
255
|
+
.col--pn-8 {
|
|
256
|
+
width: 66.66667%;
|
|
257
|
+
}
|
|
258
|
+
.col--pn-9 {
|
|
259
|
+
width: 75%;
|
|
260
|
+
}
|
|
261
|
+
.col--pn-10 {
|
|
262
|
+
width: 83.33333%;
|
|
263
|
+
}
|
|
264
|
+
.col--pn-11 {
|
|
265
|
+
width: 91.66667%;
|
|
266
|
+
}
|
|
267
|
+
.col--pn-12 {
|
|
268
|
+
width: 100%;
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
@media screen and (min-width: 768px) {
|
|
273
|
+
.col--tb-1 {
|
|
274
|
+
width: 8.33333%;
|
|
275
|
+
}
|
|
276
|
+
.col--tb-2 {
|
|
277
|
+
width: 16.66667%;
|
|
278
|
+
}
|
|
279
|
+
.col--tb-3 {
|
|
280
|
+
width: 25%;
|
|
281
|
+
}
|
|
282
|
+
.col--tb-4 {
|
|
283
|
+
width: 33.33333%;
|
|
284
|
+
}
|
|
285
|
+
.col--tb-5 {
|
|
286
|
+
width: 41.66667%;
|
|
287
|
+
}
|
|
288
|
+
.col--tb-6 {
|
|
289
|
+
width: 50%;
|
|
290
|
+
}
|
|
291
|
+
.col--tb-7 {
|
|
292
|
+
width: 58.33333%;
|
|
293
|
+
}
|
|
294
|
+
.col--tb-8 {
|
|
295
|
+
width: 66.66667%;
|
|
296
|
+
}
|
|
297
|
+
.col--tb-9 {
|
|
298
|
+
width: 75%;
|
|
299
|
+
}
|
|
300
|
+
.col--tb-10 {
|
|
301
|
+
width: 83.33333%;
|
|
302
|
+
}
|
|
303
|
+
.col--tb-11 {
|
|
304
|
+
width: 91.66667%;
|
|
305
|
+
}
|
|
306
|
+
.col--tb-12 {
|
|
307
|
+
width: 100%;
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
@media screen and (min-width: 992px) {
|
|
312
|
+
.col--md-1 {
|
|
313
|
+
width: 8.33333%;
|
|
314
|
+
}
|
|
315
|
+
.col--md-2 {
|
|
316
|
+
width: 16.66667%;
|
|
317
|
+
}
|
|
318
|
+
.col--md-3 {
|
|
319
|
+
width: 25%;
|
|
320
|
+
}
|
|
321
|
+
.col--md-4 {
|
|
322
|
+
width: 33.33333%;
|
|
323
|
+
}
|
|
324
|
+
.col--md-5 {
|
|
325
|
+
width: 41.66667%;
|
|
326
|
+
}
|
|
327
|
+
.col--md-6 {
|
|
328
|
+
width: 50%;
|
|
329
|
+
}
|
|
330
|
+
.col--md-7 {
|
|
331
|
+
width: 58.33333%;
|
|
332
|
+
}
|
|
333
|
+
.col--md-8 {
|
|
334
|
+
width: 66.66667%;
|
|
335
|
+
}
|
|
336
|
+
.col--md-9 {
|
|
337
|
+
width: 75%;
|
|
338
|
+
}
|
|
339
|
+
.col--md-10 {
|
|
340
|
+
width: 83.33333%;
|
|
341
|
+
}
|
|
342
|
+
.col--md-11 {
|
|
343
|
+
width: 91.66667%;
|
|
344
|
+
}
|
|
345
|
+
.col--md-12 {
|
|
346
|
+
width: 100%;
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
@media screen and (min-width: 1200px) {
|
|
351
|
+
.col--ld-1 {
|
|
352
|
+
width: 8.33333%;
|
|
353
|
+
}
|
|
354
|
+
.col--ld-2 {
|
|
355
|
+
width: 16.66667%;
|
|
356
|
+
}
|
|
357
|
+
.col--ld-3 {
|
|
358
|
+
width: 25%;
|
|
359
|
+
}
|
|
360
|
+
.col--ld-4 {
|
|
361
|
+
width: 33.33333%;
|
|
362
|
+
}
|
|
363
|
+
.col--ld-5 {
|
|
364
|
+
width: 41.66667%;
|
|
365
|
+
}
|
|
366
|
+
.col--ld-6 {
|
|
367
|
+
width: 50%;
|
|
368
|
+
}
|
|
369
|
+
.col--ld-7 {
|
|
370
|
+
width: 58.33333%;
|
|
371
|
+
}
|
|
372
|
+
.col--ld-8 {
|
|
373
|
+
width: 66.66667%;
|
|
374
|
+
}
|
|
375
|
+
.col--ld-9 {
|
|
376
|
+
width: 75%;
|
|
377
|
+
}
|
|
378
|
+
.col--ld-10 {
|
|
379
|
+
width: 83.33333%;
|
|
380
|
+
}
|
|
381
|
+
.col--ld-11 {
|
|
382
|
+
width: 91.66667%;
|
|
383
|
+
}
|
|
384
|
+
.col--ld-12 {
|
|
385
|
+
width: 100%;
|
|
386
|
+
}
|
|
387
|
+
}
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import { Component, Host, h, Prop, Event } from '@stencil/core';
|
|
2
|
+
export class EzPopup {
|
|
3
|
+
constructor() {
|
|
4
|
+
/**
|
|
5
|
+
* Define o width que o componente deve ter, seguindo o grid system.
|
|
6
|
+
*/
|
|
7
|
+
this.size = "col--sd-6";
|
|
8
|
+
/**
|
|
9
|
+
* Controla a exibição do componente.
|
|
10
|
+
*/
|
|
11
|
+
this.opened = false;
|
|
12
|
+
/**
|
|
13
|
+
* Define o componente utilizará um cabeçalho com botão de fechamento.
|
|
14
|
+
*/
|
|
15
|
+
this.useHeader = false;
|
|
16
|
+
}
|
|
17
|
+
render() {
|
|
18
|
+
if (this.opened) {
|
|
19
|
+
return (h(Host, null,
|
|
20
|
+
h("div", { class: "overlay" },
|
|
21
|
+
h("div", { class: "popup col " + this.size },
|
|
22
|
+
h("div", { class: "popup__container" },
|
|
23
|
+
h("div", { class: "popup__content" },
|
|
24
|
+
h("div", { class: "popup__header" },
|
|
25
|
+
this.title ?
|
|
26
|
+
h("div", { class: "title popup__title" }, this.title)
|
|
27
|
+
: undefined,
|
|
28
|
+
h("button", { class: this.title ? "btn-close" : "btn-close btn-close--solo", onClick: () => { this.opened = false; this.ezChange.emit("CANCEL"); } })),
|
|
29
|
+
h("div", { class: "popup__expandable-content" },
|
|
30
|
+
h("slot", null))))))));
|
|
31
|
+
}
|
|
32
|
+
return null;
|
|
33
|
+
}
|
|
34
|
+
static get is() { return "ez-popup"; }
|
|
35
|
+
static get encapsulation() { return "shadow"; }
|
|
36
|
+
static get originalStyleUrls() { return {
|
|
37
|
+
"$": ["ez-popup.css"]
|
|
38
|
+
}; }
|
|
39
|
+
static get styleUrls() { return {
|
|
40
|
+
"$": ["ez-popup.css"]
|
|
41
|
+
}; }
|
|
42
|
+
static get properties() { return {
|
|
43
|
+
"size": {
|
|
44
|
+
"type": "string",
|
|
45
|
+
"mutable": false,
|
|
46
|
+
"complexType": {
|
|
47
|
+
"original": "string",
|
|
48
|
+
"resolved": "string",
|
|
49
|
+
"references": {}
|
|
50
|
+
},
|
|
51
|
+
"required": false,
|
|
52
|
+
"optional": false,
|
|
53
|
+
"docs": {
|
|
54
|
+
"tags": [],
|
|
55
|
+
"text": "Define o width que o componente deve ter, seguindo o grid system."
|
|
56
|
+
},
|
|
57
|
+
"attribute": "size",
|
|
58
|
+
"reflect": false,
|
|
59
|
+
"defaultValue": "\"col--sd-6\""
|
|
60
|
+
},
|
|
61
|
+
"opened": {
|
|
62
|
+
"type": "boolean",
|
|
63
|
+
"mutable": true,
|
|
64
|
+
"complexType": {
|
|
65
|
+
"original": "boolean",
|
|
66
|
+
"resolved": "boolean",
|
|
67
|
+
"references": {}
|
|
68
|
+
},
|
|
69
|
+
"required": false,
|
|
70
|
+
"optional": false,
|
|
71
|
+
"docs": {
|
|
72
|
+
"tags": [],
|
|
73
|
+
"text": "Controla a exibi\u00E7\u00E3o do componente."
|
|
74
|
+
},
|
|
75
|
+
"attribute": "opened",
|
|
76
|
+
"reflect": true,
|
|
77
|
+
"defaultValue": "false"
|
|
78
|
+
},
|
|
79
|
+
"useHeader": {
|
|
80
|
+
"type": "boolean",
|
|
81
|
+
"mutable": true,
|
|
82
|
+
"complexType": {
|
|
83
|
+
"original": "boolean",
|
|
84
|
+
"resolved": "boolean",
|
|
85
|
+
"references": {}
|
|
86
|
+
},
|
|
87
|
+
"required": false,
|
|
88
|
+
"optional": false,
|
|
89
|
+
"docs": {
|
|
90
|
+
"tags": [],
|
|
91
|
+
"text": "Define o componente utilizar\u00E1 um cabe\u00E7alho com bot\u00E3o de fechamento."
|
|
92
|
+
},
|
|
93
|
+
"attribute": "use-header",
|
|
94
|
+
"reflect": true,
|
|
95
|
+
"defaultValue": "false"
|
|
96
|
+
},
|
|
97
|
+
"title": {
|
|
98
|
+
"type": "string",
|
|
99
|
+
"mutable": false,
|
|
100
|
+
"complexType": {
|
|
101
|
+
"original": "string",
|
|
102
|
+
"resolved": "string",
|
|
103
|
+
"references": {}
|
|
104
|
+
},
|
|
105
|
+
"required": false,
|
|
106
|
+
"optional": false,
|
|
107
|
+
"docs": {
|
|
108
|
+
"tags": [],
|
|
109
|
+
"text": "Define se o t\u00EDtulo do componente."
|
|
110
|
+
},
|
|
111
|
+
"attribute": "title",
|
|
112
|
+
"reflect": false
|
|
113
|
+
}
|
|
114
|
+
}; }
|
|
115
|
+
static get events() { return [{
|
|
116
|
+
"method": "ezChange",
|
|
117
|
+
"name": "ezChange",
|
|
118
|
+
"bubbles": true,
|
|
119
|
+
"cancelable": true,
|
|
120
|
+
"composed": true,
|
|
121
|
+
"docs": {
|
|
122
|
+
"tags": [],
|
|
123
|
+
"text": "Evento disparado ao clicar no bot\u00E3o de fechar."
|
|
124
|
+
},
|
|
125
|
+
"complexType": {
|
|
126
|
+
"original": "string",
|
|
127
|
+
"resolved": "string",
|
|
128
|
+
"references": {}
|
|
129
|
+
}
|
|
130
|
+
}]; }
|
|
131
|
+
}
|
|
@@ -5,6 +5,14 @@ export class EzSearch {
|
|
|
5
5
|
* Deixa o campo disponível ou não.
|
|
6
6
|
*/
|
|
7
7
|
this.enabled = true;
|
|
8
|
+
/**
|
|
9
|
+
* Ajusta a opção de mostrar o "value" ao selecionar uma opção.
|
|
10
|
+
*/
|
|
11
|
+
this.showselectedvalue = true;
|
|
12
|
+
/**
|
|
13
|
+
* Ajusta a opção de mostrar o "value" para cada opção.
|
|
14
|
+
*/
|
|
15
|
+
this.showoptionvalue = true;
|
|
8
16
|
}
|
|
9
17
|
updateValue() {
|
|
10
18
|
if (this._comboElement) {
|
|
@@ -17,7 +25,7 @@ export class EzSearch {
|
|
|
17
25
|
this.ezChange.emit(this.value);
|
|
18
26
|
}
|
|
19
27
|
render() {
|
|
20
|
-
return (h("ez-combo-box", { ref: elem => this._comboElement = elem, value: this.value, label: this.label, enabled: this.enabled, errormessage: this.errormessage, optionloader: this.optionloader, searchmode: true, onEzChange: evt => this.onComboChange(evt) }));
|
|
28
|
+
return (h("ez-combo-box", { ref: elem => this._comboElement = elem, value: this.value, label: this.label, enabled: this.enabled, errormessage: this.errormessage, optionloader: this.optionloader, searchmode: true, onEzChange: evt => this.onComboChange(evt), showselectedvalue: this.showselectedvalue, showoptionvalue: this.showoptionvalue }));
|
|
21
29
|
}
|
|
22
30
|
;
|
|
23
31
|
static get is() { return "ez-search"; }
|
|
@@ -119,6 +127,42 @@ export class EzSearch {
|
|
|
119
127
|
"tags": [],
|
|
120
128
|
"text": "Fun\u00E7\u00E3o respons\u00E1vel por carregar as op\u00E7\u00F5es dinamicamente"
|
|
121
129
|
}
|
|
130
|
+
},
|
|
131
|
+
"showselectedvalue": {
|
|
132
|
+
"type": "boolean",
|
|
133
|
+
"mutable": false,
|
|
134
|
+
"complexType": {
|
|
135
|
+
"original": "boolean",
|
|
136
|
+
"resolved": "boolean",
|
|
137
|
+
"references": {}
|
|
138
|
+
},
|
|
139
|
+
"required": false,
|
|
140
|
+
"optional": false,
|
|
141
|
+
"docs": {
|
|
142
|
+
"tags": [],
|
|
143
|
+
"text": "Ajusta a op\u00E7\u00E3o de mostrar o \"value\" ao selecionar uma op\u00E7\u00E3o."
|
|
144
|
+
},
|
|
145
|
+
"attribute": "showselectedvalue",
|
|
146
|
+
"reflect": false,
|
|
147
|
+
"defaultValue": "true"
|
|
148
|
+
},
|
|
149
|
+
"showoptionvalue": {
|
|
150
|
+
"type": "boolean",
|
|
151
|
+
"mutable": false,
|
|
152
|
+
"complexType": {
|
|
153
|
+
"original": "boolean",
|
|
154
|
+
"resolved": "boolean",
|
|
155
|
+
"references": {}
|
|
156
|
+
},
|
|
157
|
+
"required": false,
|
|
158
|
+
"optional": false,
|
|
159
|
+
"docs": {
|
|
160
|
+
"tags": [],
|
|
161
|
+
"text": "Ajusta a op\u00E7\u00E3o de mostrar o \"value\" para cada op\u00E7\u00E3o."
|
|
162
|
+
},
|
|
163
|
+
"attribute": "showoptionvalue",
|
|
164
|
+
"reflect": false,
|
|
165
|
+
"defaultValue": "true"
|
|
122
166
|
}
|
|
123
167
|
}; }
|
|
124
168
|
static get events() { return [{
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
import { Component, Host, h, Prop, State, Method, Event, Watch } from '@stencil/core';
|
|
2
2
|
export class EzUpload {
|
|
3
3
|
constructor() {
|
|
4
|
-
/**
|
|
5
|
-
* Define a URL do servidor de destino
|
|
6
|
-
*/
|
|
7
|
-
this.target = "http://192.168.3.190:8080/2a3skw-graphql/uploadFiles";
|
|
8
4
|
/**
|
|
9
5
|
* Lista de arquivos que sera tráfegada entre cliente e servidor
|
|
10
6
|
*/
|
|
@@ -15,11 +11,17 @@ export class EzUpload {
|
|
|
15
11
|
}
|
|
16
12
|
addFiles(files) {
|
|
17
13
|
Array.prototype.forEach.call(files, this.addFile.bind(this));
|
|
18
|
-
console.log("Adicionou os arquivos");
|
|
19
14
|
}
|
|
20
15
|
addFile(file) {
|
|
16
|
+
this.errorMessage = undefined;
|
|
21
17
|
if (this.validateFile(file)) {
|
|
22
|
-
this.
|
|
18
|
+
if (this.target) {
|
|
19
|
+
this._uploadFile(file);
|
|
20
|
+
}
|
|
21
|
+
else {
|
|
22
|
+
this.errorMessage = "Endereço de upload não informado";
|
|
23
|
+
alert(this.errorMessage);
|
|
24
|
+
}
|
|
23
25
|
}
|
|
24
26
|
else {
|
|
25
27
|
if (this.errorMessage && this.errorMessage.length > 0) {
|
|
@@ -39,7 +41,6 @@ export class EzUpload {
|
|
|
39
41
|
}
|
|
40
42
|
_uploadFile(file) {
|
|
41
43
|
const xhr = (file.xhr = this._createXhr());
|
|
42
|
-
console.log("iniciou o upload");
|
|
43
44
|
this.fileList.push({ name: file.name, size: file.size, xhr: file.xhr, strSize: this.formatBytes(file.size) });
|
|
44
45
|
let stalledId;
|
|
45
46
|
xhr.upload.onprogress = (e) => {
|
|
@@ -108,7 +109,6 @@ export class EzUpload {
|
|
|
108
109
|
}
|
|
109
110
|
};
|
|
110
111
|
const formData = new FormData();
|
|
111
|
-
console.log(typeof (file));
|
|
112
112
|
formData.append(this.formDataName, file, file.name);
|
|
113
113
|
xhr.open("POST", this.target, true);
|
|
114
114
|
this._configureXhr(xhr);
|
|
@@ -370,8 +370,7 @@ export class EzUpload {
|
|
|
370
370
|
"text": "Define a URL do servidor de destino"
|
|
371
371
|
},
|
|
372
372
|
"attribute": "target",
|
|
373
|
-
"reflect": true
|
|
374
|
-
"defaultValue": "\"http://192.168.3.190:8080/2a3skw-graphql/uploadFiles\""
|
|
373
|
+
"reflect": true
|
|
375
374
|
},
|
|
376
375
|
"fileList": {
|
|
377
376
|
"type": "unknown",
|
|
@@ -44,6 +44,12 @@ export const EzDateInput: {
|
|
|
44
44
|
new (): EzDateInput;
|
|
45
45
|
};
|
|
46
46
|
|
|
47
|
+
interface EzDialog extends Components.EzDialog, HTMLElement {}
|
|
48
|
+
export const EzDialog: {
|
|
49
|
+
prototype: EzDialog;
|
|
50
|
+
new (): EzDialog;
|
|
51
|
+
};
|
|
52
|
+
|
|
47
53
|
interface EzForm extends Components.EzForm, HTMLElement {}
|
|
48
54
|
export const EzForm: {
|
|
49
55
|
prototype: EzForm;
|
|
@@ -86,6 +92,12 @@ export const EzPopover: {
|
|
|
86
92
|
new (): EzPopover;
|
|
87
93
|
};
|
|
88
94
|
|
|
95
|
+
interface EzPopup extends Components.EzPopup, HTMLElement {}
|
|
96
|
+
export const EzPopup: {
|
|
97
|
+
prototype: EzPopup;
|
|
98
|
+
new (): EzPopup;
|
|
99
|
+
};
|
|
100
|
+
|
|
89
101
|
interface EzSearch extends Components.EzSearch, HTMLElement {}
|
|
90
102
|
export const EzSearch: {
|
|
91
103
|
prototype: EzSearch;
|