@lemonadejs/dropdown 3.2.0 → 3.2.2
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/index.js +6 -4
- package/dist/style.css +56 -13
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -13,8 +13,8 @@ if (!Modal && typeof (require) === 'function') {
|
|
|
13
13
|
|
|
14
14
|
; (function (global, factory) {
|
|
15
15
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
typeof define === 'function' && define.amd ? define(factory) :
|
|
17
|
+
global.Dropdown = factory();
|
|
18
18
|
}(this, (function () {
|
|
19
19
|
|
|
20
20
|
// Default row height
|
|
@@ -700,7 +700,7 @@ if (!Modal && typeof (require) === 'function') {
|
|
|
700
700
|
}
|
|
701
701
|
}
|
|
702
702
|
}
|
|
703
|
-
})
|
|
703
|
+
});
|
|
704
704
|
// Key events
|
|
705
705
|
self.el.addEventListener('keydown', function (e) {
|
|
706
706
|
if (!self.modal.closed) {
|
|
@@ -779,7 +779,9 @@ if (!Modal && typeof (require) === 'function') {
|
|
|
779
779
|
<div class="lm-dropdown-header">
|
|
780
780
|
<div class="lm-dropdown-input" onpaste="self.onpaste" oninput="self.search" onfocus="self.open" onmousedown="self.click" placeholder="{{self.placeholder}}" :ref="self.input" tabindex="0"></div>
|
|
781
781
|
<div class="lm-dropdown-add" onmousedown="self.add"></div>
|
|
782
|
-
<
|
|
782
|
+
<div class="lm-dropdown-header-controls">
|
|
783
|
+
<button onclick="self.close" class="lm-dropdown-done">Done</button>
|
|
784
|
+
</div>
|
|
783
785
|
</div>
|
|
784
786
|
<div class="lm-dropdown-content">
|
|
785
787
|
<div>
|
package/dist/style.css
CHANGED
|
@@ -12,15 +12,24 @@
|
|
|
12
12
|
align-items: center;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
.lm-dropdown-header
|
|
15
|
+
.lm-dropdown-header-controls {
|
|
16
16
|
display: none;
|
|
17
|
-
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.lm-application .lm-dropdown-header-controls button,
|
|
20
|
+
.lm-dropdown-header-controls button {
|
|
18
21
|
background-color: transparent;
|
|
19
22
|
text-transform: uppercase;
|
|
20
23
|
cursor: pointer;
|
|
21
24
|
padding: 15px;
|
|
22
25
|
font-weight: bold;
|
|
23
26
|
outline: 0;
|
|
27
|
+
border: 0;
|
|
28
|
+
color: var(--lm-main-color);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.lm-dropdown-content {
|
|
32
|
+
position: relative;
|
|
24
33
|
}
|
|
25
34
|
|
|
26
35
|
.lm-dropdown .lm-modal {
|
|
@@ -132,6 +141,10 @@
|
|
|
132
141
|
box-sizing: border-box;
|
|
133
142
|
}
|
|
134
143
|
|
|
144
|
+
.lm-dropdown-item > div > span:empty::before {
|
|
145
|
+
content: "\00a0";
|
|
146
|
+
}
|
|
147
|
+
|
|
135
148
|
.lm-dropdown-item > div > img {
|
|
136
149
|
width: 24px;
|
|
137
150
|
height: 24px;
|
|
@@ -170,18 +183,32 @@
|
|
|
170
183
|
|
|
171
184
|
/** Picker */
|
|
172
185
|
|
|
173
|
-
.lm-dropdown[data-type="picker"][data-state="true"] .lm-dropdown-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
186
|
+
.lm-dropdown[data-type="picker"][data-state="true"] .lm-dropdown-content .lm-modal {
|
|
187
|
+
box-shadow: initial;
|
|
188
|
+
border: initial;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
.lm-dropdown[data-type="picker"][data-state="true"] .lm-dropdown-content {
|
|
192
|
+
position: initial;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
.lm-dropdown[data-type="picker"][data-state="true"] .lm-dropdown-header-controls {
|
|
196
|
+
display: flex;
|
|
197
|
+
position: fixed;
|
|
178
198
|
bottom: 300px;
|
|
179
199
|
left: 0;
|
|
180
200
|
width: 100% !important;
|
|
201
|
+
background-color: #fff;
|
|
202
|
+
z-index: 1;
|
|
203
|
+
box-sizing: border-box;
|
|
204
|
+
border-top: 1px solid var(--lm-border-color);
|
|
205
|
+
border-bottom: 1px solid var(--lm-border-color);
|
|
206
|
+
box-shadow: 0 0 12px rgb(0 0 0 / 22%);
|
|
207
|
+
justify-content: right;
|
|
181
208
|
}
|
|
182
209
|
|
|
183
210
|
.lm-dropdown[data-type="picker"] .lm-modal {
|
|
184
|
-
position:
|
|
211
|
+
position: fixed;
|
|
185
212
|
bottom: 0;
|
|
186
213
|
left: 0;
|
|
187
214
|
width: 100% !important;
|
|
@@ -204,7 +231,7 @@
|
|
|
204
231
|
/** Searchbar */
|
|
205
232
|
|
|
206
233
|
.lm-dropdown[data-type="searchbar"][data-state="true"] {
|
|
207
|
-
position:
|
|
234
|
+
position: fixed;
|
|
208
235
|
top: 0;
|
|
209
236
|
left: 0;
|
|
210
237
|
width: 100% !important;
|
|
@@ -212,13 +239,29 @@
|
|
|
212
239
|
display: flex;
|
|
213
240
|
flex-direction: column;
|
|
214
241
|
background-color: #fff;
|
|
242
|
+
z-index: 1;
|
|
243
|
+
box-sizing: border-box;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
.lm-dropdown[data-type="searchbar"][data-state="true"] .lm-dropdown-content .lm-modal {
|
|
247
|
+
box-shadow: initial;
|
|
248
|
+
border: initial;
|
|
249
|
+
border-top: 1px solid var(--lm-border-color);
|
|
215
250
|
}
|
|
216
251
|
|
|
217
|
-
.lm-dropdown[data-type="searchbar"][data-state="true"] .lm-dropdown-
|
|
252
|
+
.lm-dropdown[data-type="searchbar"][data-state="true"] .lm-dropdown-content {
|
|
253
|
+
position: initial;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
.lm-dropdown[data-type="searchbar"][data-state="true"] .lm-dropdown-header-controls {
|
|
218
257
|
display: initial;
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
258
|
+
position: fixed;
|
|
259
|
+
right: 0;
|
|
260
|
+
top: 0;
|
|
261
|
+
background-color: #fff;
|
|
262
|
+
z-index: 1;
|
|
263
|
+
padding-top: 5px;
|
|
264
|
+
box-sizing: border-box;
|
|
222
265
|
}
|
|
223
266
|
|
|
224
267
|
.lm-dropdown[data-type="searchbar"][data-state="true"] .lm-dropdown-input {
|
package/package.json
CHANGED
|
@@ -14,10 +14,10 @@
|
|
|
14
14
|
"javascript plugins"
|
|
15
15
|
],
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"lemonadejs": "^4.2.
|
|
18
|
-
"@lemonadejs/modal": "^2.8.
|
|
17
|
+
"lemonadejs": "^4.2.2",
|
|
18
|
+
"@lemonadejs/modal": "^2.8.1"
|
|
19
19
|
},
|
|
20
20
|
"main": "dist/index.js",
|
|
21
21
|
"types": "dist/index.d.ts",
|
|
22
|
-
"version": "3.2.
|
|
22
|
+
"version": "3.2.2"
|
|
23
23
|
}
|