Yev Vlasenko
3ac104f569
Merge pull request #87 from arve0/vue_runtime_dep
...
Remove Vue runtime dependency
2017-09-16 08:50:06 +01:00
arve0
e3179625d0
Remove Vue runtime dependency
...
This allow the bundle to be used in jsfiddle, plnkr, jsbin, etc.,
as the bundle does not depend on Vue.
The problem lies on second line of bundle
```js
"object" == typeof exports ? exports["vue-js-modal"] = factory(require("vue")) : root["vue-js-modal"] = factory(root.vue)
```
where `factory` tries to find `root.vue`, but the official Vue bundle exports
as `root.Vue`.
Removing the runtime dependency solves this.
`Object.assign` is available in all browsers but IE:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/assign
2017-09-13 20:30:01 +02:00
arve0
9f814fb842
Use window.innerWidth instead of body.clientWidth
...
Fixes pivot-x for cases where you have body smaller than document,
for example:
```html
<!DOCTYPE html>
<html>
<head>
<style>
html {
background-color: white;
}
body {
width: 80%;
background-color: lightgreen;
}
</style>
</head>
<body>
<script>
document.body.innerHTML += `<pre>
window.innerWidth is ${window.innerWidth}<br>
document.body.clientWidth is ${document.body.clientWidth}<br>
window.innerWidth == document.body.clientWidth: ${window.innerWidth == document.body.clientWidth}`
</script>
</body>
</html>
```
Fixes issue #84
2017-09-13 19:25:21 +02:00
euvl
b5642b8bd6
Adding overflow:hidden to the body when "scrollable" is enabled. #71
2017-09-07 15:43:58 +01:00
euvl
426f6c4955
Added touchstart to places where mousedown is called
2017-08-23 10:14:01 +01:00
euvl
d48e2772a9
Added code linting & cleaned code acording to JavaScript Standard Style
2017-08-14 14:51:28 +01:00
euvl
de592d27f4
Added comments
2017-08-14 14:32:26 +01:00
euvl
c81801ceb5
Using document.body.clientWidth instead of window.innerWidth ( #58 ) + rebuild
2017-08-07 12:46:14 +01:00
euvl
31ac33e206
Added support fro height: auto and scrollable flag
2017-07-24 13:35:25 +01:00
euvl
2ae6a62f6b
Added clickToClose flag that allows to block closing modal on background click ( #35 )
2017-07-19 18:22:20 +01:00
euvl
8df1c8934e
Added reset flag that resets position/size before opening modal, cleaned code.
2017-07-16 13:03:48 +01:00
euvl
3723482757
Fixed resizing when size set with %
2017-07-16 10:32:52 +01:00
euvl
e2c85dd373
Fixed min-width, min-height with % w/h
2017-07-15 09:32:17 +01:00
euvl
be0297fc84
Added a module to tokenize strings of format number_suffix, e.g. 100px
2017-07-12 16:45:43 +01:00
onekiloparsec
22664da45f
wrong default
...
Signed-off-by: onekiloparsec <cedric@onekilopars.ec >
2017-07-06 16:37:38 +02:00
onekiloparsec
d86f5bc6f8
remove obsolete line
...
Signed-off-by: onekiloparsec <cedric@onekilopars.ec >
2017-07-06 15:25:36 +02:00
onekiloparsec
47dd5c2925
okay splice not work
...
Signed-off-by: onekiloparsec <cedric@onekilopars.ec >
2017-07-06 15:24:29 +02:00
onekiloparsec
c749660e10
damn
...
Signed-off-by: onekiloparsec <cedric@onekilopars.ec >
2017-07-06 15:21:29 +02:00
onekiloparsec
a0e5ee35d1
inlining
...
Signed-off-by: onekiloparsec <cedric@onekilopars.ec >
2017-07-06 15:19:59 +02:00
onekiloparsec
02ca999af8
ok methods, not computed props
...
Signed-off-by: onekiloparsec <cedric@onekilopars.ec >
2017-07-06 15:16:42 +02:00
onekiloparsec
0b70a374b7
new validator
...
Signed-off-by: onekiloparsec <cedric@onekilopars.ec >
2017-07-06 15:16:33 +02:00
onekiloparsec
0655a52f9d
Added missing type
...
Signed-off-by: onekiloparsec <cedric@onekilopars.ec >
2017-07-06 15:16:13 +02:00
onekiloparsec
e020348c89
Testing dynamic width and height
...
Signed-off-by: onekiloparsec <cedric@onekilopars.ec >
2017-07-06 14:55:12 +02:00
euvl
b8ba39ebca
Fixed a bug where this.maxAdaptiveWidth was accidentally added in master ( #44 )
2017-07-05 15:24:51 +01:00
Yev Vlasenko
5d13bc8f5a
Merge branch 'master' into ssr-fix-2-outputs
2017-06-20 22:53:30 +01:00
euvl
a80e966dce
MInor bugs fixed, removed default white background
2017-06-20 13:54:36 +01:00
euvl
b99bec6bfa
Removed scoped style + rebuild
2017-06-19 22:27:05 +01:00
euvl
620d905e29
Removed window ref in data, moved init to beforeMount
2017-06-19 22:23:53 +01:00
euvl
85ef8436a7
Fixed validator bug and wrong plugin references
2017-06-19 22:22:32 +01:00
euvl
ec53a63557
Added validators and eslintrc
2017-06-12 12:40:38 +01:00
euvl
082f70477b
Added maxAdaprive(Width/Height) props
2017-06-05 16:50:21 +01:00
euvl
a12d9aefee
Minor code cleaning
2017-05-25 12:22:06 +01:00
euvl
cfa4088cf8
Added "top-right" slot fro custom "Close" buttons ( #16 )
2017-05-23 02:07:50 +01:00
euvl
079887e5a2
Fixed :draggable not working on the touchscreen, demo improvements
2017-05-11 17:41:51 +01:00
euvl
962bc13d2c
Changed components names to match plugin name
2017-05-05 18:26:05 +01:00
euvl
1f6658bb62
Added new example
2017-05-05 15:05:16 +01:00
euvl
393ea38104
Updated demo, moved "adapt" controller into function
2017-05-01 14:33:41 +03:00
euvl
f518f5849e
Added more examples
2017-04-29 00:40:02 +03:00
euvl
41301c1071
Changed "modal" class name to "v--modal-box" to fix a clash with bootstrap class name
2017-04-28 18:18:46 +03:00
euvl
31d1a71a3a
Stopped using sass (as far as css file are tiny as they are), release 1.0.19
2017-04-27 19:22:41 +03:00
euvl
d3d48dec52
Added new demo, sorted out default class names
2017-04-19 10:31:45 +01:00
euvl
d0594b1956
Fixed a bug where interrupting "close" event was not working
2017-04-19 10:07:38 +01:00
euvl
5d8cd805db
Fixed bug where state function argument was not considered ( #5 )
2017-04-15 20:58:36 +01:00
euvl
fb02b6be93
Working draggable modals
2017-04-10 12:01:42 +01:00
euvl
d165145124
Cleaned demo
2017-04-09 13:37:14 +01:00
euvl
45bba6dfcd
Cleaned up, working on draggable flag
2017-04-08 08:02:59 +01:00
euvl
ff173186d0
Updated demo
2017-04-07 15:14:51 +01:00
euvl
ff98ff80f2
Demo updated added pivotX and pivotY props
2017-04-05 12:13:47 +01:00
euvl
3d9c97722f
Refactored, added es5 build
2017-04-05 11:34:41 +01:00
euvl
c1913b0490
Replaced with the newer version
2017-03-10 10:46:05 +00:00