@lemonadejs/dropdown 1.1.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/index.js +37 -0
- package/package.json +22 -0
package/dist/index.js
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
;(function (global, factory) {
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
|
3
|
+
typeof define === 'function' && define.amd ? define(factory) :
|
|
4
|
+
global.Dropdown = factory();
|
|
5
|
+
}(this, (function () {
|
|
6
|
+
|
|
7
|
+
// Load lemonadejs
|
|
8
|
+
if (typeof(lemonade) == 'undefined') {
|
|
9
|
+
if (typeof(require) === 'function') {
|
|
10
|
+
var lemonade = require('lemonadejs');
|
|
11
|
+
} else if (window.lemonade) {
|
|
12
|
+
var lemonade = window.lemonade;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
// Load lemonadejs
|
|
17
|
+
if (typeof(jSuites) == 'undefined') {
|
|
18
|
+
if (typeof(require) === 'function') {
|
|
19
|
+
var jSuites = require('jsuites');
|
|
20
|
+
} else if (window.jSuites) {
|
|
21
|
+
var jSuites = window.jSuites;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
return function() {
|
|
26
|
+
var self = this;
|
|
27
|
+
|
|
28
|
+
self.create = function(o) {
|
|
29
|
+
self.instance = jSuites.dropdown(o, this);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
var template = `<div @ready="self.create(this)" name="{{self.name}}"></div>`;
|
|
33
|
+
|
|
34
|
+
return lemonade.element(template, self);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
})));
|
package/package.json
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@lemonadejs/dropdown",
|
|
3
|
+
"title": "LemonadeJS dropdown",
|
|
4
|
+
"description": "LemonadeJS dropdown integration.",
|
|
5
|
+
"author": {
|
|
6
|
+
"name": "Contact <contact@lemonadejs.net>",
|
|
7
|
+
"url": "https://lemonadejs.net"
|
|
8
|
+
},
|
|
9
|
+
"keywords": [
|
|
10
|
+
"javascript dropdown",
|
|
11
|
+
"lemonadejs plugins",
|
|
12
|
+
"js",
|
|
13
|
+
"library",
|
|
14
|
+
"javascript plugins"
|
|
15
|
+
],
|
|
16
|
+
"dependencies": {
|
|
17
|
+
"lemonadejs": "^2.1.13",
|
|
18
|
+
"jsuites": "^4.9.33"
|
|
19
|
+
},
|
|
20
|
+
"main": "dist/index.js",
|
|
21
|
+
"version": "1.1.0"
|
|
22
|
+
}
|