@radiantabyss/vue 3.1.7 → 3.2.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@radiantabyss/vue",
3
- "version": "3.1.7",
3
+ "version": "3.2.0",
4
4
  "author": "radiantabyss.com",
5
5
  "license": "ISC",
6
6
  "eslintConfig": {
package/src/Bootstrap.js CHANGED
@@ -11,6 +11,7 @@ import Helpers from './Support/Helpers';
11
11
  import Invoke from './Invoke';
12
12
  import Item from './Support/Item';
13
13
  import Items from './Support/Items';
14
+ import Modal from './Modal';
14
15
  import Request from './Request';
15
16
  import ReactiveStorage from './Support/ReactiveStorage';
16
17
  import Str from './Support/Str';
@@ -36,6 +37,7 @@ export default async (app) => {
36
37
  window.Invoke = Invoke;
37
38
  window.Item = Item;
38
39
  window.Items = Items;
40
+ window.Modal = Modal;
39
41
  window.Request = Request;
40
42
  window.ReactiveStorage = ReactiveStorage;
41
43
  window.Str = Str;
@@ -44,6 +46,7 @@ export default async (app) => {
44
46
  app.config.globalProperties.Item = Item;
45
47
  app.config.globalProperties.Items = Items;
46
48
  app.config.globalProperties.Gate = Gate;
49
+ app.config.globalProperties.Modal = Modal;
47
50
  app.config.globalProperties.Str = Str;
48
51
 
49
52
  await Store(app);
package/src/Modal.js ADDED
@@ -0,0 +1,16 @@
1
+ let self = {
2
+ show(name, params) {
3
+ window.dispatchEvent(new CustomEvent('modal-show', { detail: {
4
+ name,
5
+ params,
6
+ }}));
7
+ },
8
+
9
+ hide(name) {
10
+ window.dispatchEvent(new CustomEvent('modal-hide', { detail: {
11
+ name,
12
+ }}));
13
+ },
14
+ };
15
+
16
+ export default self;