@leaflink/stash 42.8.1 → 43.0.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.
Files changed (131) hide show
  1. package/README.md +1 -1
  2. package/dist/AddressSelect.js +9 -10
  3. package/dist/AddressSelect.js.map +1 -1
  4. package/dist/Alert.js +9 -9
  5. package/dist/Alert.js.map +1 -1
  6. package/dist/AppSidebar.js +11 -11
  7. package/dist/AppSidebar.js.map +1 -1
  8. package/dist/Avatar.js +33 -32
  9. package/dist/Avatar.js.map +1 -1
  10. package/dist/Avatar.vue.d.ts +16 -95
  11. package/dist/Badge.js +2 -2
  12. package/dist/Badge.js.map +1 -1
  13. package/dist/Checkbox.js +4 -4
  14. package/dist/Checkbox.js.map +1 -1
  15. package/dist/{Checkbox.vue_vue_type_style_index_0_scoped_0cd31c8f_lang-4ed993c7.js → Checkbox.vue_vue_type_style_index_0_scoped_0d7e7fd0_lang-4ed993c7.js} +1 -1
  16. package/dist/Checkbox.vue_vue_type_style_index_0_scoped_0d7e7fd0_lang-4ed993c7.js.map +1 -0
  17. package/dist/Chip.js +32 -30
  18. package/dist/Chip.js.map +1 -1
  19. package/dist/Chip.vue.d.ts +16 -95
  20. package/dist/ConfirmationCodeInput.js +23 -23
  21. package/dist/ConfirmationCodeInput.js.map +1 -1
  22. package/dist/ContextSwitcher.js +2 -2
  23. package/dist/ContextSwitcher.js.map +1 -1
  24. package/dist/Copy.js +1 -1
  25. package/dist/Copy.js.map +1 -1
  26. package/dist/DataView.js +1 -1
  27. package/dist/DataViewFilters.js +23 -24
  28. package/dist/DataViewFilters.js.map +1 -1
  29. package/dist/DataViewSortButton.js +11 -11
  30. package/dist/DataViewSortButton.js.map +1 -1
  31. package/dist/DataViewToolbar.js +1 -1
  32. package/dist/Dialog.js +10 -10
  33. package/dist/Dialog.js.map +1 -1
  34. package/dist/Dropdown.js +7 -7
  35. package/dist/Dropdown.js.map +1 -1
  36. package/dist/FilterChip.js +2 -3
  37. package/dist/FilterChip.js.map +1 -1
  38. package/dist/FilterDrawerItem.js +5 -6
  39. package/dist/FilterDrawerItem.js.map +1 -1
  40. package/dist/FilterDropdown.js +3 -4
  41. package/dist/FilterDropdown.js.map +1 -1
  42. package/dist/FilterSelect.js +26 -27
  43. package/dist/FilterSelect.js.map +1 -1
  44. package/dist/Filters.js +3 -4
  45. package/dist/Filters.js.map +1 -1
  46. package/dist/HttpError.js +18 -18
  47. package/dist/HttpError.js.map +1 -1
  48. package/dist/IconLabel.js +12 -13
  49. package/dist/IconLabel.js.map +1 -1
  50. package/dist/IconLabel.vue.d.ts +9 -75
  51. package/dist/Illustration.js +1 -1
  52. package/dist/Illustration.js.map +1 -1
  53. package/dist/Illustration.vue.d.ts +19 -14
  54. package/dist/InputOptions.js +7 -8
  55. package/dist/InputOptions.js.map +1 -1
  56. package/dist/LicenseChip.js +32 -26
  57. package/dist/LicenseChip.js.map +1 -1
  58. package/dist/LicenseChip.vue.d.ts +2 -4
  59. package/dist/ListItem.js +1 -1
  60. package/dist/ListView.js +30 -31
  61. package/dist/ListView.js.map +1 -1
  62. package/dist/MenuItem.js +4 -4
  63. package/dist/MenuItem.js.map +1 -1
  64. package/dist/Metric.js +1 -1
  65. package/dist/Metric.js.map +1 -1
  66. package/dist/Metric.vue.d.ts +8 -74
  67. package/dist/Modal.js +13 -13
  68. package/dist/Modal.js.map +1 -1
  69. package/dist/Module.js +1 -1
  70. package/dist/Module.js.map +1 -1
  71. package/dist/ModuleFooter.js +1 -1
  72. package/dist/ModuleFooter.js.map +1 -1
  73. package/dist/ModuleHeader.js +1 -1
  74. package/dist/ModuleHeader.js.map +1 -1
  75. package/dist/PageNavigation.js +28 -29
  76. package/dist/PageNavigation.js.map +1 -1
  77. package/dist/Paginate.js +1 -1
  78. package/dist/Paginate.js.map +1 -1
  79. package/dist/Paginate.vue_used_vue_type_style_index_0_lang.module-bfccf992.js +11 -0
  80. package/dist/Paginate.vue_used_vue_type_style_index_0_lang.module-bfccf992.js.map +1 -0
  81. package/dist/QuickAction.js +14 -14
  82. package/dist/QuickAction.js.map +1 -1
  83. package/dist/RadioNew.js +14 -14
  84. package/dist/SearchBar.js +15 -15
  85. package/dist/SearchBar.js.map +1 -1
  86. package/dist/Select.js +92 -93
  87. package/dist/Select.js.map +1 -1
  88. package/dist/SelectStatus.js +53 -51
  89. package/dist/SelectStatus.js.map +1 -1
  90. package/dist/SelectStatus.vue.d.ts +52 -1
  91. package/dist/Step.js +28 -28
  92. package/dist/Step.js.map +1 -1
  93. package/dist/Tab.js +1 -1
  94. package/dist/Table.js +2 -2
  95. package/dist/TableCell.js +2 -2
  96. package/dist/TableHeaderCell.js +2 -2
  97. package/dist/TableHeaderRow.js +2 -2
  98. package/dist/TableRow.js +2 -2
  99. package/dist/Tabs.js +2 -2
  100. package/dist/{Tabs.vue_vue_type_script_setup_true_lang-aca4f8b8.js → Tabs.vue_vue_type_script_setup_true_lang-56e85faa.js} +3 -3
  101. package/dist/Tabs.vue_vue_type_script_setup_true_lang-56e85faa.js.map +1 -0
  102. package/dist/Textarea.js +1 -1
  103. package/dist/Textarea.js.map +1 -1
  104. package/dist/Toast.js +1 -1
  105. package/dist/Toasts.js +1 -1
  106. package/dist/ToastsPlugin.js +1 -1
  107. package/dist/colorScheme.d.ts +3 -16
  108. package/dist/components.css +1 -1
  109. package/dist/index.d.ts +64 -25
  110. package/dist/index.js +188 -186
  111. package/dist/index.js.map +1 -1
  112. package/dist/statusLevels-a8b041f4.js +7 -0
  113. package/dist/statusLevels-a8b041f4.js.map +1 -0
  114. package/dist/tailwind-base.d.ts +0 -10
  115. package/dist/tailwind-base.js +22 -20
  116. package/dist/tailwind-base.js.map +1 -1
  117. package/dist/utils/colorScheme.js +1 -1
  118. package/dist/utils/colorScheme.js.map +1 -1
  119. package/package.json +1 -1
  120. package/styles/base.css +2 -2
  121. package/tailwind-base.ts +22 -21
  122. package/types/colors.ts +84 -26
  123. package/types/statusLevels.ts +4 -4
  124. package/dist/Checkbox.vue_vue_type_style_index_0_scoped_0cd31c8f_lang-4ed993c7.js.map +0 -1
  125. package/dist/Paginate.vue_used_vue_type_style_index_0_lang.module-e579235f.js +0 -11
  126. package/dist/Paginate.vue_used_vue_type_style_index_0_lang.module-e579235f.js.map +0 -1
  127. package/dist/Tabs.vue_vue_type_script_setup_true_lang-aca4f8b8.js.map +0 -1
  128. package/dist/colors-13e95ebf.js +0 -6
  129. package/dist/colors-13e95ebf.js.map +0 -1
  130. package/dist/statusLevels-aabf1e3c.js +0 -7
  131. package/dist/statusLevels-aabf1e3c.js.map +0 -1
package/dist/index.js CHANGED
@@ -1,19 +1,18 @@
1
- var X = Object.defineProperty;
2
- var x = (r, o, i) => o in r ? X(r, o, { enumerable: !0, configurable: !0, writable: !0, value: i }) : r[o] = i;
3
- var g = (r, o, i) => (x(r, typeof o != "symbol" ? o + "" : o, i), i);
4
- import y from "./locale.js";
5
- import { ref as Y, reactive as D, readonly as P, defineComponent as $, computed as H, openBlock as N, createBlock as B, mergeProps as _, createSlots as I, renderList as q, unref as F, withCtx as R, createVNode as k, h as A, render as V } from "vue";
1
+ var j = Object.defineProperty;
2
+ var I = (e, r, c) => r in e ? j(e, r, { enumerable: !0, configurable: !0, writable: !0, value: c }) : e[r] = c;
3
+ var O = (e, r, c) => (I(e, typeof r != "symbol" ? r + "" : r, c), c);
4
+ import k from "./locale.js";
5
+ import { ref as X, reactive as P, readonly as x, defineComponent as D, computed as G, openBlock as $, createBlock as H, mergeProps as N, createSlots as _, renderList as q, unref as F, withCtx as A, createVNode as M, h as W, render as V } from "vue";
6
6
  import z from "lodash-es/omit";
7
- import G from "./CustomRender.js";
8
- import J from "./Dialog.js";
9
- import { M as K } from "./MenusPlugin-5e93f0a5.js";
10
- import Q from "./ModalsPlugin.js";
11
- import U from "./ToastsPlugin.js";
12
- import { overridePersistentStorage as W } from "./storage.js";
13
- import { persistentStorage as _t } from "./storage.js";
14
- import { a as qt, S as Ft } from "./colors-13e95ebf.js";
15
- import { S as At } from "./misc-d0eec261.js";
16
- import { a as zt, S as Gt, b as Jt } from "./statusLevels-aabf1e3c.js";
7
+ import J from "./CustomRender.js";
8
+ import K from "./Dialog.js";
9
+ import { M as Q } from "./MenusPlugin-5e93f0a5.js";
10
+ import U from "./ModalsPlugin.js";
11
+ import Z from "./ToastsPlugin.js";
12
+ import { overridePersistentStorage as S } from "./storage.js";
13
+ import { persistentStorage as Fe } from "./storage.js";
14
+ import { S as We } from "./misc-d0eec261.js";
15
+ import { a as ze, S as Je, b as Ke } from "./statusLevels-a8b041f4.js";
17
16
  import "lodash-es/get";
18
17
  import "lodash-es/capitalize";
19
18
  import "lodash-es/uniqueId";
@@ -35,27 +34,27 @@ import "lodash-es/camelCase";
35
34
  import "lodash-es/isFinite";
36
35
  import "lodash-es/isPlainObject";
37
36
  import "./constants.js";
38
- function M(r) {
39
- return r.type.indexOf("mouse") !== -1 ? r.clientX : r.touches[0].clientX;
37
+ function L(e) {
38
+ return e.type.indexOf("mouse") !== -1 ? e.clientX : e.touches[0].clientX;
40
39
  }
41
- function j(r) {
42
- return r.type.indexOf("mouse") !== -1 ? r.clientY : r.touches[0].clientY;
40
+ function B(e) {
41
+ return e.type.indexOf("mouse") !== -1 ? e.clientY : e.touches[0].clientY;
43
42
  }
44
- var Z = function() {
45
- var r = !1;
43
+ var C = function() {
44
+ var e = !1;
46
45
  try {
47
- var o = Object.defineProperty({}, "passive", {
46
+ var r = Object.defineProperty({}, "passive", {
48
47
  get: function() {
49
- r = !0;
48
+ e = !0;
50
49
  }
51
50
  });
52
- window.addEventListener("test", null, o);
51
+ window.addEventListener("test", null, r);
53
52
  } catch {
54
53
  }
55
- return r;
56
- }(), tt = {
57
- install: function(r, o) {
58
- var i = Object.assign({}, {
54
+ return e;
55
+ }(), ee = {
56
+ install: function(e, r) {
57
+ var c = Object.assign({}, {
59
58
  disableClick: !1,
60
59
  tapTolerance: 10,
61
60
  // px
@@ -70,249 +69,252 @@ var Z = function() {
70
69
  // ms
71
70
  rollOverFrequency: 100
72
71
  // ms
73
- }, o);
74
- function c(e) {
75
- var t = this.$$touchObj, s = e.type.indexOf("touch") >= 0, f = e.type.indexOf("mouse") >= 0, d = this;
76
- s && (t.lastTouchStartTime = e.timeStamp), !(f && t.lastTouchStartTime && e.timeStamp - t.lastTouchStartTime < 350) && (t.touchStarted || (L(this), t.touchStarted = !0, t.touchMoved = !1, t.swipeOutBounded = !1, t.startX = M(e), t.startY = j(e), t.currentX = 0, t.currentY = 0, t.touchStartTime = e.timeStamp, t.hasSwipe = u(this, "swipe") || u(this, "swipe.left") || u(this, "swipe.right") || u(this, "swipe.top") || u(this, "swipe.bottom"), u(this, "hold") && (t.touchHoldTimer = setTimeout(function() {
77
- t.touchHoldTimer = null, T(e, d, "hold");
78
- }, t.options.touchHoldTolerance)), T(e, this, "press")));
72
+ }, r);
73
+ function n(i) {
74
+ var t = this.$$touchObj, u = i.type.indexOf("touch") >= 0, v = i.type.indexOf("mouse") >= 0, m = this;
75
+ u && (t.lastTouchStartTime = i.timeStamp), !(v && t.lastTouchStartTime && i.timeStamp - t.lastTouchStartTime < 350) && (t.touchStarted || (Y(this), t.touchStarted = !0, t.touchMoved = !1, t.swipeOutBounded = !1, t.startX = L(i), t.startY = B(i), t.currentX = 0, t.currentY = 0, t.touchStartTime = i.timeStamp, t.hasSwipe = l(this, "swipe") || l(this, "swipe.left") || l(this, "swipe.right") || l(this, "swipe.top") || l(this, "swipe.bottom"), l(this, "hold") && (t.touchHoldTimer = setTimeout(function() {
76
+ t.touchHoldTimer = null, T(i, m, "hold");
77
+ }, t.options.touchHoldTolerance)), T(i, this, "press")));
79
78
  }
80
- function v(e) {
81
- var t = this.$$touchObj, s = M(e), f = j(e), d = t.currentX != s || t.currentY != f;
82
- if (t.currentX = s, t.currentY = f, t.touchMoved) {
79
+ function g(i) {
80
+ var t = this.$$touchObj, u = L(i), v = B(i), m = t.currentX != u || t.currentY != v;
81
+ if (t.currentX = u, t.currentY = v, t.touchMoved) {
83
82
  if (t.hasSwipe && !t.swipeOutBounded) {
84
- var l = t.options.swipeTolerance;
85
- t.swipeOutBounded = Math.abs(t.startX - t.currentX) > l && Math.abs(t.startY - t.currentY) > l;
83
+ var d = t.options.swipeTolerance;
84
+ t.swipeOutBounded = Math.abs(t.startX - t.currentX) > d && Math.abs(t.startY - t.currentY) > d;
86
85
  }
87
86
  } else {
88
- var n = t.options.tapTolerance;
89
- t.touchMoved = Math.abs(t.startX - t.currentX) > n || Math.abs(t.startY - t.currentY) > n, t.touchMoved && (w(t), T(e, this, "drag.once"));
87
+ var f = t.options.tapTolerance;
88
+ t.touchMoved = Math.abs(t.startX - t.currentX) > f || Math.abs(t.startY - t.currentY) > f, t.touchMoved && (h(t), T(i, this, "drag.once"));
90
89
  }
91
- if (u(this, "rollover") && d) {
92
- var a = e.timeStamp, E = t.options.rollOverFrequency;
93
- (t.touchRollTime == null || a > t.touchRollTime + E) && (t.touchRollTime = a, T(e, this, "rollover"));
90
+ if (l(this, "rollover") && m) {
91
+ var a = i.timeStamp, w = t.options.rollOverFrequency;
92
+ (t.touchRollTime == null || a > t.touchRollTime + w) && (t.touchRollTime = a, T(i, this, "rollover"));
94
93
  }
95
- if (u(this, "drag") && t.touchStarted && t.touchMoved && d) {
96
- var a = e.timeStamp, E = t.options.dragFrequency;
97
- (t.touchDragTime == null || a > t.touchDragTime + E) && (t.touchDragTime = a, T(e, this, "drag"));
94
+ if (l(this, "drag") && t.touchStarted && t.touchMoved && m) {
95
+ var a = i.timeStamp, w = t.options.dragFrequency;
96
+ (t.touchDragTime == null || a > t.touchDragTime + w) && (t.touchDragTime = a, T(i, this, "drag"));
98
97
  }
99
98
  }
100
- function p() {
101
- var e = this.$$touchObj;
102
- w(e), O(this), e.touchStarted = e.touchMoved = !1, e.startX = e.startY = 0;
99
+ function s() {
100
+ var i = this.$$touchObj;
101
+ h(i), E(this), i.touchStarted = i.touchMoved = !1, i.startX = i.startY = 0;
103
102
  }
104
- function h(e) {
105
- var t = this.$$touchObj, s = e.type.indexOf("touch") >= 0, f = e.type.indexOf("mouse") >= 0;
106
- s && (t.lastTouchEndTime = e.timeStamp);
107
- var d = s && !t.touchHoldTimer;
108
- if (w(t), t.touchStarted = !1, O(this), !(f && t.lastTouchEndTime && e.timeStamp - t.lastTouchEndTime < 350))
109
- if (T(e, this, "release"), t.touchMoved) {
103
+ function p(i) {
104
+ var t = this.$$touchObj, u = i.type.indexOf("touch") >= 0, v = i.type.indexOf("mouse") >= 0;
105
+ u && (t.lastTouchEndTime = i.timeStamp);
106
+ var m = u && !t.touchHoldTimer;
107
+ if (h(t), t.touchStarted = !1, E(this), !(v && t.lastTouchEndTime && i.timeStamp - t.lastTouchEndTime < 350))
108
+ if (T(i, this, "release"), t.touchMoved) {
110
109
  if (t.hasSwipe && !t.swipeOutBounded) {
111
- var n = t.options.swipeTolerance, l, a = Math.abs(t.startY - t.currentY), E = Math.abs(t.startX - t.currentX);
112
- (a > n || E > n) && (a > n ? l = t.startY > t.currentY ? "top" : "bottom" : l = t.startX > t.currentX ? "left" : "right", u(this, "swipe." + l) ? T(e, this, "swipe." + l, l) : T(e, this, "swipe", l));
110
+ var f = t.options.swipeTolerance, d, a = Math.abs(t.startY - t.currentY), w = Math.abs(t.startX - t.currentX);
111
+ (a > f || w > f) && (a > f ? d = t.startY > t.currentY ? "top" : "bottom" : d = t.startX > t.currentX ? "left" : "right", l(this, "swipe." + d) ? T(i, this, "swipe." + d, d) : T(i, this, "swipe", d));
113
112
  }
114
- } else if (u(this, "longtap") && e.timeStamp - t.touchStartTime > t.options.longTapTimeInterval)
115
- e.cancelable && e.preventDefault(), T(e, this, "longtap");
116
- else if (u(this, "hold") && d) {
117
- e.cancelable && e.preventDefault();
113
+ } else if (l(this, "longtap") && i.timeStamp - t.touchStartTime > t.options.longTapTimeInterval)
114
+ i.cancelable && i.preventDefault(), T(i, this, "longtap");
115
+ else if (l(this, "hold") && m) {
116
+ i.cancelable && i.preventDefault();
118
117
  return;
119
118
  } else
120
- T(e, this, "tap");
119
+ T(i, this, "tap");
121
120
  }
122
- function m() {
123
- L(this);
121
+ function o() {
122
+ Y(this);
124
123
  }
125
124
  function b() {
126
- O(this);
125
+ E(this);
127
126
  }
128
- function u(e, t) {
129
- var s = e.$$touchObj.callbacks[t];
130
- return s != null && s.length > 0;
127
+ function l(i, t) {
128
+ var u = i.$$touchObj.callbacks[t];
129
+ return u != null && u.length > 0;
131
130
  }
132
- function T(e, t, s, f) {
133
- var d = t.$$touchObj, n = d.callbacks[s];
134
- if (n == null || n.length === 0)
131
+ function T(i, t, u, v) {
132
+ var m = t.$$touchObj, f = m.callbacks[u];
133
+ if (f == null || f.length === 0)
135
134
  return null;
136
- for (var l = 0; l < n.length; l++) {
137
- var a = n[l];
138
- a.modifiers.stop && e.stopPropagation(), a.modifiers.prevent && e.preventDefault(), !(a.modifiers.self && e.target !== e.currentTarget) && typeof a.value == "function" && (f ? a.value(f, e) : a.value(e));
135
+ for (var d = 0; d < f.length; d++) {
136
+ var a = f[d];
137
+ a.modifiers.stop && i.stopPropagation(), a.modifiers.prevent && i.preventDefault(), !(a.modifiers.self && i.target !== i.currentTarget) && typeof a.value == "function" && (v ? a.value(v, i) : a.value(i));
139
138
  }
140
139
  }
141
- function L(e) {
142
- var t = e.$$touchObj.options.touchClass;
143
- t && e.classList.add(t);
140
+ function Y(i) {
141
+ var t = i.$$touchObj.options.touchClass;
142
+ t && i.classList.add(t);
144
143
  }
145
- function O(e) {
146
- var t = e.$$touchObj.options.touchClass;
147
- t && e.classList.remove(t);
144
+ function E(i) {
145
+ var t = i.$$touchObj.options.touchClass;
146
+ t && i.classList.remove(t);
148
147
  }
149
- function w(e) {
150
- e.touchHoldTimer && (clearTimeout(e.touchHoldTimer), e.touchHoldTimer = null);
148
+ function h(i) {
149
+ i.touchHoldTimer && (clearTimeout(i.touchHoldTimer), i.touchHoldTimer = null);
151
150
  }
152
- function C(e, t) {
153
- var s = e.$$touchObj || {
151
+ function R(i, t) {
152
+ var u = i.$$touchObj || {
154
153
  // an object contains all callbacks registered,
155
154
  // key is event name, value is an array
156
155
  callbacks: {},
157
156
  // prevent bind twice, set to true when event bound
158
157
  hasBindTouchEvents: !1,
159
158
  // default options, would be override by v-touch-options
160
- options: i
159
+ options: c
161
160
  };
162
- return t && (s.options = Object.assign({}, s.options, t)), e.$$touchObj = s, e.$$touchObj;
161
+ return t && (u.options = Object.assign({}, u.options, t)), i.$$touchObj = u, i.$$touchObj;
163
162
  }
164
- r.directive("touch", {
165
- beforeMount: function(e, t) {
166
- var s = C(e), f = Z ? { passive: !0 } : !1, d = t.arg || "tap";
167
- switch (d) {
163
+ e.directive("touch", {
164
+ beforeMount: function(i, t) {
165
+ var u = R(i), v = C ? { passive: !0 } : !1, m = t.arg || "tap";
166
+ switch (m) {
168
167
  case "swipe":
169
- var n = t.modifiers;
170
- if (n.left || n.right || n.top || n.bottom) {
171
- for (var l in t.modifiers)
172
- if (["left", "right", "top", "bottom"].indexOf(l) >= 0) {
173
- var a = "swipe." + l;
174
- s.callbacks[a] = s.callbacks[a] || [], s.callbacks[a].push(t);
168
+ var f = t.modifiers;
169
+ if (f.left || f.right || f.top || f.bottom) {
170
+ for (var d in t.modifiers)
171
+ if (["left", "right", "top", "bottom"].indexOf(d) >= 0) {
172
+ var a = "swipe." + d;
173
+ u.callbacks[a] = u.callbacks[a] || [], u.callbacks[a].push(t);
175
174
  }
176
175
  } else
177
- s.callbacks.swipe = s.callbacks.swipe || [], s.callbacks.swipe.push(t);
176
+ u.callbacks.swipe = u.callbacks.swipe || [], u.callbacks.swipe.push(t);
178
177
  break;
179
178
  case "press":
180
179
  case "drag":
181
- t.modifiers.disablePassive && (f = !1);
180
+ t.modifiers.disablePassive && (v = !1);
182
181
  default:
183
- s.callbacks[d] = s.callbacks[d] || [], s.callbacks[d].push(t);
182
+ u.callbacks[m] = u.callbacks[m] || [], u.callbacks[m].push(t);
184
183
  }
185
- s.hasBindTouchEvents || (e.addEventListener("touchstart", c, f), e.addEventListener("touchmove", v, f), e.addEventListener("touchcancel", p), e.addEventListener("touchend", h), s.options.disableClick || (e.addEventListener("mousedown", c), e.addEventListener("mousemove", v), e.addEventListener("mouseup", h), e.addEventListener("mouseenter", m), e.addEventListener("mouseleave", b)), s.hasBindTouchEvents = !0);
184
+ u.hasBindTouchEvents || (i.addEventListener("touchstart", n, v), i.addEventListener("touchmove", g, v), i.addEventListener("touchcancel", s), i.addEventListener("touchend", p), u.options.disableClick || (i.addEventListener("mousedown", n), i.addEventListener("mousemove", g), i.addEventListener("mouseup", p), i.addEventListener("mouseenter", o), i.addEventListener("mouseleave", b)), u.hasBindTouchEvents = !0);
186
185
  },
187
- unmounted: function(e) {
188
- e.removeEventListener("touchstart", c), e.removeEventListener("touchmove", v), e.removeEventListener("touchcancel", p), e.removeEventListener("touchend", h), e.$$touchObj && !e.$$touchObj.options.disableClick && (e.removeEventListener("mousedown", c), e.removeEventListener("mousemove", v), e.removeEventListener("mouseup", h), e.removeEventListener("mouseenter", m), e.removeEventListener("mouseleave", b)), delete e.$$touchObj;
186
+ unmounted: function(i) {
187
+ i.removeEventListener("touchstart", n), i.removeEventListener("touchmove", g), i.removeEventListener("touchcancel", s), i.removeEventListener("touchend", p), i.$$touchObj && !i.$$touchObj.options.disableClick && (i.removeEventListener("mousedown", n), i.removeEventListener("mousemove", g), i.removeEventListener("mouseup", p), i.removeEventListener("mouseenter", o), i.removeEventListener("mouseleave", b)), delete i.$$touchObj;
189
188
  }
190
- }), r.directive("touch-class", {
191
- beforeMount: function(e, t) {
192
- C(e, {
189
+ }), e.directive("touch-class", {
190
+ beforeMount: function(i, t) {
191
+ R(i, {
193
192
  touchClass: t.value
194
193
  });
195
194
  }
196
- }), r.directive("touch-options", {
197
- beforeMount: function(e, t) {
198
- C(e, t.value);
195
+ }), e.directive("touch-options", {
196
+ beforeMount: function(i, t) {
197
+ R(i, t.value);
199
198
  }
200
199
  });
201
200
  }
202
201
  };
203
- class et {
202
+ class te {
204
203
  constructor() {
205
- g(this, "promise");
206
- g(this, "reject");
207
- g(this, "resolve");
208
- this.promise = new Promise((o, i) => {
209
- this.reject = i, this.resolve = o;
204
+ O(this, "promise");
205
+ O(this, "reject");
206
+ O(this, "resolve");
207
+ this.promise = new Promise((r, c) => {
208
+ this.reject = c, this.resolve = r;
210
209
  });
211
210
  }
212
211
  }
213
- const S = Y();
214
- function ot() {
215
- function r(i) {
216
- var c;
217
- if (S.value)
212
+ const y = X();
213
+ function ie() {
214
+ function e(c) {
215
+ var n;
216
+ if (y.value)
218
217
  throw "A Dialog is already being displayed";
219
- return S.value = {
220
- ...i,
221
- deferred: new et()
222
- }, (c = S.value.deferred) == null ? void 0 : c.promise;
218
+ return y.value = {
219
+ ...c,
220
+ deferred: new te()
221
+ }, (n = y.value.deferred) == null ? void 0 : n.promise;
223
222
  }
224
- function o() {
225
- S.value = void 0;
223
+ function r() {
224
+ y.value = void 0;
226
225
  }
227
- return D({
226
+ return P({
228
227
  /**
229
228
  * The currently open dialog information.
230
229
  */
231
- active: P(S),
230
+ active: x(y),
232
231
  /**
233
232
  * Opens the dialog.
234
233
  */
235
- open: r,
234
+ open: e,
236
235
  /**
237
236
  * Closes the dialog.
238
237
  */
239
- close: o
238
+ close: r
240
239
  });
241
240
  }
242
- const rt = /* @__PURE__ */ $({
241
+ const re = /* @__PURE__ */ D({
243
242
  __name: "Dialogs",
244
- setup(r) {
245
- const o = ot(), i = H(() => o.active ? z(o.active, ["deferred", "onConfirm", "onCancel", "slots"]) : null);
246
- function c() {
247
- var p, h, m;
248
- (p = o.active) != null && p.onCancel && o.active.onCancel(), (m = (h = o.active) == null ? void 0 : h.deferred) == null || m.resolve({
243
+ setup(e) {
244
+ const r = ie(), c = G(() => r.active ? z(r.active, ["deferred", "onConfirm", "onCancel", "slots"]) : null);
245
+ function n() {
246
+ var s, p, o;
247
+ (s = r.active) != null && s.onCancel && r.active.onCancel(), (o = (p = r.active) == null ? void 0 : p.deferred) == null || o.resolve({
249
248
  isCanceled: !0
250
- }), o.close();
249
+ }), r.close();
251
250
  }
252
- async function v() {
253
- var p, h, m;
254
- (p = o.active) != null && p.onConfirm && await o.active.onConfirm(), (m = (h = o.active) == null ? void 0 : h.deferred) == null || m.resolve({
251
+ async function g() {
252
+ var s, p, o;
253
+ (s = r.active) != null && s.onConfirm && await r.active.onConfirm(), (o = (p = r.active) == null ? void 0 : p.deferred) == null || o.resolve({
255
254
  isConfirmed: !0
256
- }), o.close();
255
+ }), r.close();
257
256
  }
258
- return (p, h) => {
259
- var m;
260
- return N(), B(J, _({
261
- open: !!i.value
262
- }, i.value, {
263
- onConfirm: v,
264
- onCancel: c
265
- }), I({ _: 2 }, [
266
- q((m = F(o).active) == null ? void 0 : m.slots, (b, u) => ({
267
- name: u,
268
- fn: R(() => [
269
- k(G, { render: b }, null, 8, ["render"])
257
+ return (s, p) => {
258
+ var o;
259
+ return $(), H(K, N({
260
+ open: !!c.value
261
+ }, c.value, {
262
+ onConfirm: g,
263
+ onCancel: n
264
+ }), _({ _: 2 }, [
265
+ q((o = F(r).active) == null ? void 0 : o.slots, (b, l) => ({
266
+ name: l,
267
+ fn: A(() => [
268
+ M(J, { render: b }, null, 8, ["render"])
270
269
  ])
271
270
  }))
272
271
  ]), 1040, ["open"]);
273
272
  };
274
273
  }
275
- }), st = {
276
- install(r, o) {
277
- const i = (o == null ? void 0 : o.mountNodeId) || "stash-dialogs-mount-node";
278
- let c = document.getElementById(i);
279
- c || (c = document.createElement("div"), c.id = i), o != null && o.mountNodeClass && c.classList.add(o.mountNodeClass);
280
- const v = k(A(rt));
281
- document.body.appendChild(c), v.appContext = r._context, V(v, c);
274
+ }), ue = {
275
+ install(e, r) {
276
+ const c = (r == null ? void 0 : r.mountNodeId) || "stash-dialogs-mount-node";
277
+ let n = document.getElementById(c);
278
+ n || (n = document.createElement("div"), n.id = c), r != null && r.mountNodeClass && n.classList.add(r.mountNodeClass);
279
+ const g = M(W(re));
280
+ document.body.appendChild(n), g.appContext = e._context, V(g, n);
282
281
  }
283
- }, Ht = {
284
- install(r, {
285
- i18n: o = void 0,
286
- storage: i = void 0,
287
- staticPath: c = "/static",
288
- images: v = {
282
+ };
283
+ var ce = /* @__PURE__ */ ((e) => (e.Purple900 = "purple-900", e.Purple800 = "purple-800", e.Purple700 = "purple-700", e.Purple600 = "purple-600", e.Purple500 = "purple-500", e.Purple400 = "purple-400", e.Purple300 = "purple-300", e.Purple200 = "purple-200", e.Purple100 = "purple-100", e.Royal900 = "royal-900", e.Royal800 = "royal-800", e.Royal700 = "royal-700", e.Royal600 = "royal-600", e.Royal500 = "royal-500", e.Royal400 = "royal-400", e.Royal300 = "royal-300", e.Royal200 = "royal-200", e.Royal100 = "royal-100", e.Blue900 = "blue-900", e.Blue800 = "blue-800", e.Blue700 = "blue-700", e.Blue600 = "blue-600", e.Blue500 = "blue-500", e.Blue400 = "blue-400", e.Blue300 = "blue-300", e.Blue200 = "blue-200", e.Blue100 = "blue-100", e.Teal900 = "teal-900", e.Teal800 = "teal-800", e.Teal700 = "teal-700", e.Teal600 = "teal-600", e.Teal500 = "teal-500", e.Teal400 = "teal-400", e.Teal300 = "teal-300", e.Teal200 = "teal-200", e.Teal100 = "teal-100", e.Green900 = "green-900", e.Green800 = "green-800", e.Green700 = "green-700", e.Green600 = "green-600", e.Green500 = "green-500", e.Green400 = "green-400", e.Green300 = "green-300", e.Green200 = "green-200", e.Green100 = "green-100", e.Seafoam900 = "seafoam-900", e.Seafoam800 = "seafoam-800", e.Seafoam700 = "seafoam-700", e.Seafoam600 = "seafoam-600", e.Seafoam500 = "seafoam-500", e.Seafoam400 = "seafoam-400", e.Seafoam300 = "seafoam-300", e.Seafoam200 = "seafoam-200", e.Seafoam100 = "seafoam-100", e.Yellow900 = "yellow-900", e.Yellow800 = "yellow-800", e.Yellow700 = "yellow-700", e.Yellow600 = "yellow-600", e.Yellow500 = "yellow-500", e.Yellow400 = "yellow-400", e.Yellow300 = "yellow-300", e.Yellow200 = "yellow-200", e.Yellow100 = "yellow-100", e.Orange900 = "orange-900", e.Orange800 = "orange-800", e.Orange700 = "orange-700", e.Orange600 = "orange-600", e.Orange500 = "orange-500", e.Orange400 = "orange-400", e.Orange300 = "orange-300", e.Orange200 = "orange-200", e.Orange100 = "orange-100", e.Red900 = "red-900", e.Red800 = "red-800", e.Red700 = "red-700", e.Red600 = "red-600", e.Red500 = "red-500", e.Red400 = "red-400", e.Red300 = "red-300", e.Red200 = "red-200", e.Red100 = "red-100", e.Ice900 = "ice-900", e.Ice800 = "ice-800", e.Ice700 = "ice-700", e.Ice600 = "ice-600", e.Ice500 = "ice-500", e.Ice400 = "ice-400", e.Ice300 = "ice-300", e.Ice200 = "ice-200", e.Ice100 = "ice-100", e.White = "white", e.Black = "black", e))(ce || {}), ae = /* @__PURE__ */ ((e) => (e.Purple700 = "purple-700", e.Purple500 = "purple-500", e.Purple100 = "purple-100", e.Royal700 = "royal-700", e.Royal500 = "royal-500", e.Royal100 = "royal-100", e.Blue700 = "blue-700", e.Blue500 = "blue-500", e.Blue100 = "blue-100", e.Teal700 = "teal-700", e.Teal500 = "teal-500", e.Teal100 = "teal-100", e.Green700 = "green-700", e.Green500 = "green-500", e.Green100 = "green-100", e.Seafoam700 = "seafoam-700", e.Seafoam500 = "seafoam-500", e.Seafoam100 = "seafoam-100", e.Yellow700 = "yellow-700", e.Yellow500 = "yellow-500", e.Yellow100 = "yellow-100", e.Orange700 = "orange-700", e.Orange500 = "orange-500", e.Orange100 = "orange-100", e.Red700 = "red-700", e.Red500 = "red-500", e.Red100 = "red-100", e.Ice700 = "ice-700", e.Ice500 = "ice-500", e.Ice200 = "ice-200", e.Ice100 = "ice-100", e.White = "white", e.Black = "black", e))(ae || {}), ne = /* @__PURE__ */ ((e) => (e.Blue500 = "blue-500", e.Green500 = "green-500", e.Ice500 = "ice-500", e.Orange500 = "orange-500", e.Purple500 = "purple-500", e.Red500 = "red-500", e.Royal500 = "royal-500", e.Seafoam500 = "seafoam-500", e.Teal500 = "teal-500", e.Yellow500 = "yellow-500", e))(ne || {});
284
+ const Ne = {
285
+ install(e, {
286
+ i18n: r = void 0,
287
+ storage: c = void 0,
288
+ staticPath: n = "/static",
289
+ images: g = {
289
290
  provider: "cloudinary",
290
291
  staticDomains: []
291
292
  },
292
- googleMapsApiKey: p = void 0,
293
- menus: h,
294
- modals: m,
293
+ googleMapsApiKey: s = void 0,
294
+ menus: p,
295
+ modals: o,
295
296
  toasts: b,
296
- dialogs: u
297
+ dialogs: l
297
298
  } = {}) {
298
- r.use(tt), o && (y.use(o.locale), y.i18n(o && o.t)), i && W(i), r.provide("stashOptions", {
299
- i18n: o,
300
- images: v,
301
- storage: i,
302
- staticPath: c,
303
- googleMapsApiKey: p
304
- }), h !== !1 && r.use(K, h), m !== !1 && r.use(Q, m), b !== !1 && r.use(U, b), u !== !1 && r.use(st, u);
299
+ e.use(ee), r && (k.use(r.locale), k.i18n(r && r.t)), c && S(c), e.provide("stashOptions", {
300
+ i18n: r,
301
+ images: g,
302
+ storage: c,
303
+ staticPath: n,
304
+ googleMapsApiKey: s
305
+ }), p !== !1 && e.use(Q, p), o !== !1 && e.use(U, o), b !== !1 && e.use(Z, b), l !== !1 && e.use(ue, l);
305
306
  }
306
307
  };
307
308
  export {
308
- At as SpacingDensity,
309
- qt as StashColors,
310
- Ft as StashPrimaryColors,
311
- zt as StatusColors,
312
- Gt as StatusIcons,
313
- Jt as StatusSeverities,
314
- Ht as default,
315
- W as overridePersistentStorage,
316
- _t as persistentStorage
309
+ We as SpacingDensity,
310
+ ce as StashColors,
311
+ ae as StashCommonColors,
312
+ ne as StashPrimaryColors,
313
+ ze as StatusColors,
314
+ Je as StatusIcons,
315
+ Ke as StatusSeverities,
316
+ Ne as default,
317
+ S as overridePersistentStorage,
318
+ Fe as persistentStorage
317
319
  };
318
320
  //# sourceMappingURL=index.js.map