@leaflink/stash 45.1.6 → 45.1.8
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/PageContent.js +30 -25
- package/dist/PageContent.js.map +1 -1
- package/dist/PageHeader.js +1 -1
- package/dist/PageHeader.js.map +1 -1
- package/dist/components.css +1 -1
- package/dist/index.js +138 -179
- package/dist/index.js.map +1 -1
- package/dist/useDialog.d.ts +105 -0
- package/dist/useDialog.js +47 -0
- package/dist/useDialog.js.map +1 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,18 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import { S as Ve, a as ze } from "./misc-76697f61.js";
|
|
15
|
-
import { a as Ke, S as Qe, b as Ze } from "./statusLevels-a8b041f4.js";
|
|
1
|
+
import Y from "./locale.js";
|
|
2
|
+
import { defineComponent as B, computed as M, openBlock as j, createBlock as P, mergeProps as X, createSlots as D, renderList as x, unref as G, withCtx as N, createVNode as I, h as _, render as $ } from "vue";
|
|
3
|
+
import H from "lodash-es/omit";
|
|
4
|
+
import F from "./useDialog.js";
|
|
5
|
+
import q from "./CustomRender.js";
|
|
6
|
+
import A from "./Dialog.js";
|
|
7
|
+
import { M as U } from "./MenusPlugin-9288029a.js";
|
|
8
|
+
import W from "./ModalsPlugin.js";
|
|
9
|
+
import V from "./ToastsPlugin.js";
|
|
10
|
+
import { overridePersistentStorage as z } from "./storage.js";
|
|
11
|
+
import { persistentStorage as Ge } from "./storage.js";
|
|
12
|
+
import { S as _e, a as $e } from "./misc-76697f61.js";
|
|
13
|
+
import { a as Fe, S as qe, b as Ae } from "./statusLevels-a8b041f4.js";
|
|
16
14
|
import "lodash-es/get";
|
|
17
15
|
import "lodash-es/capitalize";
|
|
18
16
|
import "lodash-es/uniqueId";
|
|
@@ -35,27 +33,27 @@ import "lodash-es/camelCase";
|
|
|
35
33
|
import "lodash-es/isFinite";
|
|
36
34
|
import "lodash-es/isPlainObject";
|
|
37
35
|
import "./constants.js";
|
|
38
|
-
function
|
|
36
|
+
function h(e) {
|
|
39
37
|
return e.type.indexOf("mouse") !== -1 ? e.clientX : e.touches[0].clientX;
|
|
40
38
|
}
|
|
41
|
-
function
|
|
39
|
+
function L(e) {
|
|
42
40
|
return e.type.indexOf("mouse") !== -1 ? e.clientY : e.touches[0].clientY;
|
|
43
41
|
}
|
|
44
|
-
var
|
|
42
|
+
var J = function() {
|
|
45
43
|
var e = !1;
|
|
46
44
|
try {
|
|
47
|
-
var
|
|
45
|
+
var u = Object.defineProperty({}, "passive", {
|
|
48
46
|
get: function() {
|
|
49
47
|
e = !0;
|
|
50
48
|
}
|
|
51
49
|
});
|
|
52
|
-
window.addEventListener("test", null,
|
|
50
|
+
window.addEventListener("test", null, u);
|
|
53
51
|
} catch {
|
|
54
52
|
}
|
|
55
53
|
return e;
|
|
56
|
-
}(),
|
|
57
|
-
install: function(e,
|
|
58
|
-
var
|
|
54
|
+
}(), K = {
|
|
55
|
+
install: function(e, u) {
|
|
56
|
+
var m = Object.assign({}, {
|
|
59
57
|
disableClick: !1,
|
|
60
58
|
tapTolerance: 10,
|
|
61
59
|
// px
|
|
@@ -70,255 +68,216 @@ var ee = function() {
|
|
|
70
68
|
// ms
|
|
71
69
|
rollOverFrequency: 100
|
|
72
70
|
// ms
|
|
73
|
-
},
|
|
71
|
+
}, u);
|
|
74
72
|
function c(i) {
|
|
75
|
-
var t = this.$$touchObj,
|
|
76
|
-
|
|
77
|
-
t.touchHoldTimer = null,
|
|
78
|
-
}, t.options.touchHoldTolerance)),
|
|
73
|
+
var t = this.$$touchObj, r = i.type.indexOf("touch") >= 0, o = i.type.indexOf("mouse") >= 0, v = this;
|
|
74
|
+
r && (t.lastTouchStartTime = i.timeStamp), !(o && t.lastTouchStartTime && i.timeStamp - t.lastTouchStartTime < 350) && (t.touchStarted || (R(this), t.touchStarted = !0, t.touchMoved = !1, t.swipeOutBounded = !1, t.startX = h(i), t.startY = L(i), t.currentX = 0, t.currentY = 0, t.touchStartTime = i.timeStamp, t.hasSwipe = n(this, "swipe") || n(this, "swipe.left") || n(this, "swipe.right") || n(this, "swipe.top") || n(this, "swipe.bottom"), n(this, "hold") && (t.touchHoldTimer = setTimeout(function() {
|
|
75
|
+
t.touchHoldTimer = null, s(i, v, "hold");
|
|
76
|
+
}, t.options.touchHoldTolerance)), s(i, this, "press")));
|
|
79
77
|
}
|
|
80
|
-
function
|
|
81
|
-
var t = this.$$touchObj,
|
|
82
|
-
if (t.currentX =
|
|
78
|
+
function g(i) {
|
|
79
|
+
var t = this.$$touchObj, r = h(i), o = L(i), v = t.currentX != r || t.currentY != o;
|
|
80
|
+
if (t.currentX = r, t.currentY = o, t.touchMoved) {
|
|
83
81
|
if (t.hasSwipe && !t.swipeOutBounded) {
|
|
84
|
-
var
|
|
85
|
-
t.swipeOutBounded = Math.abs(t.startX - t.currentX) >
|
|
82
|
+
var f = t.options.swipeTolerance;
|
|
83
|
+
t.swipeOutBounded = Math.abs(t.startX - t.currentX) > f && Math.abs(t.startY - t.currentY) > f;
|
|
86
84
|
}
|
|
87
85
|
} else {
|
|
88
|
-
var
|
|
89
|
-
t.touchMoved = Math.abs(t.startX - t.currentX) >
|
|
86
|
+
var l = t.options.tapTolerance;
|
|
87
|
+
t.touchMoved = Math.abs(t.startX - t.currentX) > l || Math.abs(t.startY - t.currentY) > l, t.touchMoved && (O(t), s(i, this, "drag.once"));
|
|
90
88
|
}
|
|
91
|
-
if (
|
|
92
|
-
var
|
|
93
|
-
(t.touchRollTime == null ||
|
|
89
|
+
if (n(this, "rollover") && v) {
|
|
90
|
+
var a = i.timeStamp, w = t.options.rollOverFrequency;
|
|
91
|
+
(t.touchRollTime == null || a > t.touchRollTime + w) && (t.touchRollTime = a, s(i, this, "rollover"));
|
|
94
92
|
}
|
|
95
|
-
if (
|
|
96
|
-
var
|
|
97
|
-
(t.touchDragTime == null ||
|
|
93
|
+
if (n(this, "drag") && t.touchStarted && t.touchMoved && v) {
|
|
94
|
+
var a = i.timeStamp, w = t.options.dragFrequency;
|
|
95
|
+
(t.touchDragTime == null || a > t.touchDragTime + w) && (t.touchDragTime = a, s(i, this, "drag"));
|
|
98
96
|
}
|
|
99
97
|
}
|
|
100
|
-
function
|
|
98
|
+
function T() {
|
|
101
99
|
var i = this.$$touchObj;
|
|
102
|
-
|
|
100
|
+
O(i), y(this), i.touchStarted = i.touchMoved = !1, i.startX = i.startY = 0;
|
|
103
101
|
}
|
|
104
102
|
function p(i) {
|
|
105
|
-
var t = this.$$touchObj,
|
|
106
|
-
|
|
107
|
-
var
|
|
108
|
-
if (
|
|
109
|
-
if (
|
|
103
|
+
var t = this.$$touchObj, r = i.type.indexOf("touch") >= 0, o = i.type.indexOf("mouse") >= 0;
|
|
104
|
+
r && (t.lastTouchEndTime = i.timeStamp);
|
|
105
|
+
var v = r && !t.touchHoldTimer;
|
|
106
|
+
if (O(t), t.touchStarted = !1, y(this), !(o && t.lastTouchEndTime && i.timeStamp - t.lastTouchEndTime < 350))
|
|
107
|
+
if (s(i, this, "release"), t.touchMoved) {
|
|
110
108
|
if (t.hasSwipe && !t.swipeOutBounded) {
|
|
111
|
-
var
|
|
112
|
-
(
|
|
109
|
+
var l = t.options.swipeTolerance, f, a = Math.abs(t.startY - t.currentY), w = Math.abs(t.startX - t.currentX);
|
|
110
|
+
(a > l || w > l) && (a > l ? f = t.startY > t.currentY ? "top" : "bottom" : f = t.startX > t.currentX ? "left" : "right", n(this, "swipe." + f) ? s(i, this, "swipe." + f, f) : s(i, this, "swipe", f));
|
|
113
111
|
}
|
|
114
|
-
} else if (
|
|
115
|
-
i.cancelable && i.preventDefault(),
|
|
116
|
-
else if (
|
|
112
|
+
} else if (n(this, "longtap") && i.timeStamp - t.touchStartTime > t.options.longTapTimeInterval)
|
|
113
|
+
i.cancelable && i.preventDefault(), s(i, this, "longtap");
|
|
114
|
+
else if (n(this, "hold") && v) {
|
|
117
115
|
i.cancelable && i.preventDefault();
|
|
118
116
|
return;
|
|
119
117
|
} else
|
|
120
|
-
|
|
118
|
+
s(i, this, "tap");
|
|
121
119
|
}
|
|
122
|
-
function
|
|
123
|
-
|
|
120
|
+
function d() {
|
|
121
|
+
R(this);
|
|
124
122
|
}
|
|
125
123
|
function b() {
|
|
126
|
-
|
|
124
|
+
y(this);
|
|
127
125
|
}
|
|
128
|
-
function
|
|
129
|
-
var
|
|
130
|
-
return
|
|
126
|
+
function n(i, t) {
|
|
127
|
+
var r = i.$$touchObj.callbacks[t];
|
|
128
|
+
return r != null && r.length > 0;
|
|
131
129
|
}
|
|
132
|
-
function
|
|
133
|
-
var
|
|
134
|
-
if (
|
|
130
|
+
function s(i, t, r, o) {
|
|
131
|
+
var v = t.$$touchObj, l = v.callbacks[r];
|
|
132
|
+
if (l == null || l.length === 0)
|
|
135
133
|
return null;
|
|
136
|
-
for (var
|
|
137
|
-
var
|
|
138
|
-
|
|
134
|
+
for (var f = 0; f < l.length; f++) {
|
|
135
|
+
var a = l[f];
|
|
136
|
+
a.modifiers.stop && i.stopPropagation(), a.modifiers.prevent && i.preventDefault(), !(a.modifiers.self && i.target !== i.currentTarget) && typeof a.value == "function" && (o ? a.value(o, i) : a.value(i));
|
|
139
137
|
}
|
|
140
138
|
}
|
|
141
|
-
function
|
|
139
|
+
function R(i) {
|
|
142
140
|
var t = i.$$touchObj.options.touchClass;
|
|
143
141
|
t && i.classList.add(t);
|
|
144
142
|
}
|
|
145
|
-
function
|
|
143
|
+
function y(i) {
|
|
146
144
|
var t = i.$$touchObj.options.touchClass;
|
|
147
145
|
t && i.classList.remove(t);
|
|
148
146
|
}
|
|
149
|
-
function
|
|
147
|
+
function O(i) {
|
|
150
148
|
i.touchHoldTimer && (clearTimeout(i.touchHoldTimer), i.touchHoldTimer = null);
|
|
151
149
|
}
|
|
152
|
-
function
|
|
153
|
-
var
|
|
150
|
+
function E(i, t) {
|
|
151
|
+
var r = i.$$touchObj || {
|
|
154
152
|
// an object contains all callbacks registered,
|
|
155
153
|
// key is event name, value is an array
|
|
156
154
|
callbacks: {},
|
|
157
155
|
// prevent bind twice, set to true when event bound
|
|
158
156
|
hasBindTouchEvents: !1,
|
|
159
157
|
// default options, would be override by v-touch-options
|
|
160
|
-
options:
|
|
158
|
+
options: m
|
|
161
159
|
};
|
|
162
|
-
return t && (
|
|
160
|
+
return t && (r.options = Object.assign({}, r.options, t)), i.$$touchObj = r, i.$$touchObj;
|
|
163
161
|
}
|
|
164
162
|
e.directive("touch", {
|
|
165
163
|
beforeMount: function(i, t) {
|
|
166
|
-
var
|
|
167
|
-
switch (
|
|
164
|
+
var r = E(i), o = J ? { passive: !0 } : !1, v = t.arg || "tap";
|
|
165
|
+
switch (v) {
|
|
168
166
|
case "swipe":
|
|
169
|
-
var
|
|
170
|
-
if (
|
|
171
|
-
for (var
|
|
172
|
-
if (["left", "right", "top", "bottom"].indexOf(
|
|
173
|
-
var
|
|
174
|
-
|
|
167
|
+
var l = t.modifiers;
|
|
168
|
+
if (l.left || l.right || l.top || l.bottom) {
|
|
169
|
+
for (var f in t.modifiers)
|
|
170
|
+
if (["left", "right", "top", "bottom"].indexOf(f) >= 0) {
|
|
171
|
+
var a = "swipe." + f;
|
|
172
|
+
r.callbacks[a] = r.callbacks[a] || [], r.callbacks[a].push(t);
|
|
175
173
|
}
|
|
176
174
|
} else
|
|
177
|
-
|
|
175
|
+
r.callbacks.swipe = r.callbacks.swipe || [], r.callbacks.swipe.push(t);
|
|
178
176
|
break;
|
|
179
177
|
case "press":
|
|
180
178
|
case "drag":
|
|
181
|
-
t.modifiers.disablePassive && (
|
|
179
|
+
t.modifiers.disablePassive && (o = !1);
|
|
182
180
|
default:
|
|
183
|
-
|
|
181
|
+
r.callbacks[v] = r.callbacks[v] || [], r.callbacks[v].push(t);
|
|
184
182
|
}
|
|
185
|
-
|
|
183
|
+
r.hasBindTouchEvents || (i.addEventListener("touchstart", c, o), i.addEventListener("touchmove", g, o), i.addEventListener("touchcancel", T), i.addEventListener("touchend", p), r.options.disableClick || (i.addEventListener("mousedown", c), i.addEventListener("mousemove", g), i.addEventListener("mouseup", p), i.addEventListener("mouseenter", d), i.addEventListener("mouseleave", b)), r.hasBindTouchEvents = !0);
|
|
186
184
|
},
|
|
187
185
|
unmounted: function(i) {
|
|
188
|
-
i.removeEventListener("touchstart", c), i.removeEventListener("touchmove",
|
|
186
|
+
i.removeEventListener("touchstart", c), i.removeEventListener("touchmove", g), i.removeEventListener("touchcancel", T), i.removeEventListener("touchend", p), i.$$touchObj && !i.$$touchObj.options.disableClick && (i.removeEventListener("mousedown", c), i.removeEventListener("mousemove", g), i.removeEventListener("mouseup", p), i.removeEventListener("mouseenter", d), i.removeEventListener("mouseleave", b)), delete i.$$touchObj;
|
|
189
187
|
}
|
|
190
188
|
}), e.directive("touch-class", {
|
|
191
189
|
beforeMount: function(i, t) {
|
|
192
|
-
|
|
190
|
+
E(i, {
|
|
193
191
|
touchClass: t.value
|
|
194
192
|
});
|
|
195
193
|
}
|
|
196
194
|
}), e.directive("touch-options", {
|
|
197
195
|
beforeMount: function(i, t) {
|
|
198
|
-
|
|
196
|
+
E(i, t.value);
|
|
199
197
|
}
|
|
200
198
|
});
|
|
201
199
|
}
|
|
202
200
|
};
|
|
203
|
-
|
|
204
|
-
constructor() {
|
|
205
|
-
E(this, "promise");
|
|
206
|
-
E(this, "reject");
|
|
207
|
-
E(this, "resolve");
|
|
208
|
-
this.promise = new Promise((r, a) => {
|
|
209
|
-
this.reject = a, this.resolve = r;
|
|
210
|
-
});
|
|
211
|
-
}
|
|
212
|
-
}
|
|
213
|
-
const y = P();
|
|
214
|
-
function re() {
|
|
215
|
-
function e(a) {
|
|
216
|
-
var c;
|
|
217
|
-
if (y.value)
|
|
218
|
-
throw new Error("A Dialog is already being displayed");
|
|
219
|
-
return y.value = {
|
|
220
|
-
...a,
|
|
221
|
-
deferred: new ie()
|
|
222
|
-
}, (c = y.value.deferred) == null ? void 0 : c.promise;
|
|
223
|
-
}
|
|
224
|
-
function r() {
|
|
225
|
-
y.value = void 0;
|
|
226
|
-
}
|
|
227
|
-
return X({
|
|
228
|
-
/**
|
|
229
|
-
* The currently open dialog information.
|
|
230
|
-
*/
|
|
231
|
-
active: x(y),
|
|
232
|
-
/**
|
|
233
|
-
* Opens the dialog.
|
|
234
|
-
*/
|
|
235
|
-
open: e,
|
|
236
|
-
/**
|
|
237
|
-
* Closes the dialog.
|
|
238
|
-
*/
|
|
239
|
-
close: r
|
|
240
|
-
});
|
|
241
|
-
}
|
|
242
|
-
const ue = /* @__PURE__ */ G({
|
|
201
|
+
const Q = /* @__PURE__ */ B({
|
|
243
202
|
__name: "Dialogs",
|
|
244
203
|
setup(e) {
|
|
245
|
-
const
|
|
204
|
+
const u = F(), m = M(() => u.active ? H(u.active, ["deferred", "onConfirm", "onCancel", "slots"]) : null);
|
|
246
205
|
function c() {
|
|
247
|
-
var
|
|
248
|
-
(
|
|
206
|
+
var T, p, d;
|
|
207
|
+
(T = u.active) != null && T.onCancel && u.active.onCancel(), (d = (p = u.active) == null ? void 0 : p.deferred) == null || d.resolve({
|
|
249
208
|
isCanceled: !0
|
|
250
|
-
}),
|
|
209
|
+
}), u.close();
|
|
251
210
|
}
|
|
252
|
-
async function
|
|
253
|
-
var
|
|
254
|
-
(
|
|
211
|
+
async function g() {
|
|
212
|
+
var T, p, d;
|
|
213
|
+
(T = u.active) != null && T.onConfirm && await u.active.onConfirm(), (d = (p = u.active) == null ? void 0 : p.deferred) == null || d.resolve({
|
|
255
214
|
isConfirmed: !0
|
|
256
|
-
}),
|
|
215
|
+
}), u.close();
|
|
257
216
|
}
|
|
258
|
-
return (
|
|
259
|
-
var
|
|
260
|
-
return
|
|
261
|
-
open: !!
|
|
262
|
-
},
|
|
263
|
-
onConfirm:
|
|
217
|
+
return (T, p) => {
|
|
218
|
+
var d;
|
|
219
|
+
return j(), P(A, X({
|
|
220
|
+
open: !!m.value
|
|
221
|
+
}, m.value, {
|
|
222
|
+
onConfirm: g,
|
|
264
223
|
onCancel: c
|
|
265
|
-
}),
|
|
266
|
-
|
|
267
|
-
name:
|
|
268
|
-
fn:
|
|
269
|
-
|
|
224
|
+
}), D({ _: 2 }, [
|
|
225
|
+
x((d = G(u).active) == null ? void 0 : d.slots, (b, n) => ({
|
|
226
|
+
name: n,
|
|
227
|
+
fn: N(() => [
|
|
228
|
+
I(q, { render: b }, null, 8, ["render"])
|
|
270
229
|
])
|
|
271
230
|
}))
|
|
272
231
|
]), 1040, ["open"]);
|
|
273
232
|
};
|
|
274
233
|
}
|
|
275
|
-
}),
|
|
276
|
-
install(e,
|
|
277
|
-
const
|
|
278
|
-
let c = document.getElementById(
|
|
234
|
+
}), k = "stash-dialogs-mount-node", Z = {
|
|
235
|
+
install(e, u) {
|
|
236
|
+
const m = (u == null ? void 0 : u.mountNodeId) || k;
|
|
237
|
+
let c = document.getElementById(m);
|
|
279
238
|
if (c)
|
|
280
239
|
return;
|
|
281
|
-
c = document.createElement("div"), c.id =
|
|
282
|
-
const
|
|
283
|
-
document.body.appendChild(c),
|
|
240
|
+
c = document.createElement("div"), c.id = m, c.dataset.test = k, u != null && u.mountNodeClass && c.classList.add(u.mountNodeClass);
|
|
241
|
+
const g = I(_(Q));
|
|
242
|
+
document.body.appendChild(c), g.appContext = e._context, $(g, c);
|
|
284
243
|
}
|
|
285
244
|
};
|
|
286
|
-
var
|
|
287
|
-
const
|
|
245
|
+
var S = /* @__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))(S || {}), C = /* @__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))(C || {}), ee = /* @__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))(ee || {});
|
|
246
|
+
const Xe = {
|
|
288
247
|
install(e, {
|
|
289
|
-
i18n:
|
|
290
|
-
storage:
|
|
248
|
+
i18n: u = void 0,
|
|
249
|
+
storage: m = void 0,
|
|
291
250
|
staticPath: c = "/static",
|
|
292
|
-
images:
|
|
251
|
+
images: g = {
|
|
293
252
|
provider: "static",
|
|
294
253
|
staticDomains: []
|
|
295
254
|
},
|
|
296
|
-
googleMapsApiKey:
|
|
255
|
+
googleMapsApiKey: T = void 0,
|
|
297
256
|
menus: p,
|
|
298
|
-
modals:
|
|
257
|
+
modals: d,
|
|
299
258
|
toasts: b,
|
|
300
|
-
dialogs:
|
|
259
|
+
dialogs: n
|
|
301
260
|
} = {}) {
|
|
302
|
-
e.use(
|
|
303
|
-
i18n:
|
|
304
|
-
images:
|
|
305
|
-
storage:
|
|
261
|
+
e.use(K), u && (Y.use(u.locale), Y.i18n(u && u.t)), m && z(m), e.provide("stashOptions", {
|
|
262
|
+
i18n: u,
|
|
263
|
+
images: g,
|
|
264
|
+
storage: m,
|
|
306
265
|
staticPath: c,
|
|
307
|
-
googleMapsApiKey:
|
|
308
|
-
}), p !== !1 && e.use(
|
|
266
|
+
googleMapsApiKey: T
|
|
267
|
+
}), p !== !1 && e.use(U, p), d !== !1 && e.use(W, d), b !== !1 && e.use(V, b), n !== !1 && e.use(Z, n);
|
|
309
268
|
}
|
|
310
269
|
};
|
|
311
270
|
export {
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
271
|
+
_e as SpacingDensity,
|
|
272
|
+
S as StashColors,
|
|
273
|
+
C as StashCommonColors,
|
|
274
|
+
$e as StashImageProvider,
|
|
275
|
+
ee as StashPrimaryColors,
|
|
276
|
+
Fe as StatusColors,
|
|
277
|
+
qe as StatusIcons,
|
|
278
|
+
Ae as StatusSeverities,
|
|
279
|
+
Xe as default,
|
|
280
|
+
z as overridePersistentStorage,
|
|
281
|
+
Ge as persistentStorage
|
|
323
282
|
};
|
|
324
283
|
//# sourceMappingURL=index.js.map
|