@leaflink/stash 44.4.0 → 44.5.1
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/FileUpload.js +183 -263
- package/dist/FileUpload.js.map +1 -1
- package/dist/FileUpload.vue.d.ts +98 -175
- package/dist/Image.js +1 -1
- package/dist/Image.js.map +1 -1
- package/dist/Image.vue.d.ts +10 -5
- package/dist/Modal.js +73 -69
- package/dist/Modal.js.map +1 -1
- package/dist/RadioGroup.js.map +1 -1
- package/dist/RadioGroup.vue.d.ts +4 -1
- package/dist/Table.js +1 -1
- package/dist/components.css +1 -1
- package/dist/index.d.ts +6 -1
- package/dist/index.js +56 -55
- package/dist/misc-76697f61.js +6 -0
- package/dist/misc-76697f61.js.map +1 -0
- package/package.json +1 -1
- package/types/misc.ts +6 -2
- package/dist/misc-d0eec261.js +0 -5
- package/dist/misc-d0eec261.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
var j = Object.defineProperty;
|
|
2
|
-
var I = (e, r,
|
|
3
|
-
var E = (e, r,
|
|
2
|
+
var I = (e, r, a) => r in e ? j(e, r, { enumerable: !0, configurable: !0, writable: !0, value: a }) : e[r] = a;
|
|
3
|
+
var E = (e, r, a) => (I(e, typeof r != "symbol" ? r + "" : r, a), a);
|
|
4
4
|
import k from "./locale.js";
|
|
5
|
-
import { ref as
|
|
5
|
+
import { ref as P, reactive as X, 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
7
|
import J from "./CustomRender.js";
|
|
8
8
|
import K from "./Dialog.js";
|
|
@@ -11,8 +11,8 @@ import U from "./ModalsPlugin.js";
|
|
|
11
11
|
import Z from "./ToastsPlugin.js";
|
|
12
12
|
import { overridePersistentStorage as S } from "./storage.js";
|
|
13
13
|
import { persistentStorage as Ae } from "./storage.js";
|
|
14
|
-
import { S as Ve } from "./misc-
|
|
15
|
-
import { a as
|
|
14
|
+
import { S as Ve, a as ze } from "./misc-76697f61.js";
|
|
15
|
+
import { a as Ke, S as Qe, b as Ue } from "./statusLevels-a8b041f4.js";
|
|
16
16
|
import "lodash-es/get";
|
|
17
17
|
import "lodash-es/capitalize";
|
|
18
18
|
import "lodash-es/uniqueId";
|
|
@@ -55,7 +55,7 @@ var C = function() {
|
|
|
55
55
|
return e;
|
|
56
56
|
}(), ee = {
|
|
57
57
|
install: function(e, r) {
|
|
58
|
-
var
|
|
58
|
+
var a = Object.assign({}, {
|
|
59
59
|
disableClick: !1,
|
|
60
60
|
tapTolerance: 10,
|
|
61
61
|
// px
|
|
@@ -77,7 +77,7 @@ var C = function() {
|
|
|
77
77
|
t.touchHoldTimer = null, T(i, m, "hold");
|
|
78
78
|
}, t.options.touchHoldTolerance)), T(i, this, "press")));
|
|
79
79
|
}
|
|
80
|
-
function
|
|
80
|
+
function s(i) {
|
|
81
81
|
var t = this.$$touchObj, u = L(i), v = B(i), m = t.currentX != u || t.currentY != v;
|
|
82
82
|
if (t.currentX = u, t.currentY = v, t.touchMoved) {
|
|
83
83
|
if (t.hasSwipe && !t.swipeOutBounded) {
|
|
@@ -89,15 +89,15 @@ var C = function() {
|
|
|
89
89
|
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
90
|
}
|
|
91
91
|
if (l(this, "rollover") && m) {
|
|
92
|
-
var
|
|
93
|
-
(t.touchRollTime == null ||
|
|
92
|
+
var c = i.timeStamp, w = t.options.rollOverFrequency;
|
|
93
|
+
(t.touchRollTime == null || c > t.touchRollTime + w) && (t.touchRollTime = c, T(i, this, "rollover"));
|
|
94
94
|
}
|
|
95
95
|
if (l(this, "drag") && t.touchStarted && t.touchMoved && m) {
|
|
96
|
-
var
|
|
97
|
-
(t.touchDragTime == null ||
|
|
96
|
+
var c = i.timeStamp, w = t.options.dragFrequency;
|
|
97
|
+
(t.touchDragTime == null || c > t.touchDragTime + w) && (t.touchDragTime = c, T(i, this, "drag"));
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
|
-
function
|
|
100
|
+
function g() {
|
|
101
101
|
var i = this.$$touchObj;
|
|
102
102
|
h(i), O(this), i.touchStarted = i.touchMoved = !1, i.startX = i.startY = 0;
|
|
103
103
|
}
|
|
@@ -108,8 +108,8 @@ var C = function() {
|
|
|
108
108
|
if (h(t), t.touchStarted = !1, O(this), !(v && t.lastTouchEndTime && i.timeStamp - t.lastTouchEndTime < 350))
|
|
109
109
|
if (T(i, this, "release"), t.touchMoved) {
|
|
110
110
|
if (t.hasSwipe && !t.swipeOutBounded) {
|
|
111
|
-
var f = t.options.swipeTolerance, d,
|
|
112
|
-
(
|
|
111
|
+
var f = t.options.swipeTolerance, d, c = Math.abs(t.startY - t.currentY), w = Math.abs(t.startX - t.currentX);
|
|
112
|
+
(c > f || w > f) && (c > 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
113
|
}
|
|
114
114
|
} else if (l(this, "longtap") && i.timeStamp - t.touchStartTime > t.options.longTapTimeInterval)
|
|
115
115
|
i.cancelable && i.preventDefault(), T(i, this, "longtap");
|
|
@@ -134,8 +134,8 @@ var C = function() {
|
|
|
134
134
|
if (f == null || f.length === 0)
|
|
135
135
|
return null;
|
|
136
136
|
for (var d = 0; d < f.length; d++) {
|
|
137
|
-
var
|
|
138
|
-
|
|
137
|
+
var c = f[d];
|
|
138
|
+
c.modifiers.stop && i.stopPropagation(), c.modifiers.prevent && i.preventDefault(), !(c.modifiers.self && i.target !== i.currentTarget) && typeof c.value == "function" && (v ? c.value(v, i) : c.value(i));
|
|
139
139
|
}
|
|
140
140
|
}
|
|
141
141
|
function Y(i) {
|
|
@@ -157,7 +157,7 @@ var C = function() {
|
|
|
157
157
|
// prevent bind twice, set to true when event bound
|
|
158
158
|
hasBindTouchEvents: !1,
|
|
159
159
|
// default options, would be override by v-touch-options
|
|
160
|
-
options:
|
|
160
|
+
options: a
|
|
161
161
|
};
|
|
162
162
|
return t && (u.options = Object.assign({}, u.options, t)), i.$$touchObj = u, i.$$touchObj;
|
|
163
163
|
}
|
|
@@ -170,8 +170,8 @@ var C = function() {
|
|
|
170
170
|
if (f.left || f.right || f.top || f.bottom) {
|
|
171
171
|
for (var d in t.modifiers)
|
|
172
172
|
if (["left", "right", "top", "bottom"].indexOf(d) >= 0) {
|
|
173
|
-
var
|
|
174
|
-
u.callbacks[
|
|
173
|
+
var c = "swipe." + d;
|
|
174
|
+
u.callbacks[c] = u.callbacks[c] || [], u.callbacks[c].push(t);
|
|
175
175
|
}
|
|
176
176
|
} else
|
|
177
177
|
u.callbacks.swipe = u.callbacks.swipe || [], u.callbacks.swipe.push(t);
|
|
@@ -182,10 +182,10 @@ var C = function() {
|
|
|
182
182
|
default:
|
|
183
183
|
u.callbacks[m] = u.callbacks[m] || [], u.callbacks[m].push(t);
|
|
184
184
|
}
|
|
185
|
-
u.hasBindTouchEvents || (i.addEventListener("touchstart", n, v), i.addEventListener("touchmove",
|
|
185
|
+
u.hasBindTouchEvents || (i.addEventListener("touchstart", n, v), i.addEventListener("touchmove", s, v), i.addEventListener("touchcancel", g), i.addEventListener("touchend", p), u.options.disableClick || (i.addEventListener("mousedown", n), i.addEventListener("mousemove", s), i.addEventListener("mouseup", p), i.addEventListener("mouseenter", o), i.addEventListener("mouseleave", b)), u.hasBindTouchEvents = !0);
|
|
186
186
|
},
|
|
187
187
|
unmounted: function(i) {
|
|
188
|
-
i.removeEventListener("touchstart", n), i.removeEventListener("touchmove",
|
|
188
|
+
i.removeEventListener("touchstart", n), i.removeEventListener("touchmove", s), i.removeEventListener("touchcancel", g), i.removeEventListener("touchend", p), i.$$touchObj && !i.$$touchObj.options.disableClick && (i.removeEventListener("mousedown", n), i.removeEventListener("mousemove", s), i.removeEventListener("mouseup", p), i.removeEventListener("mouseenter", o), i.removeEventListener("mouseleave", b)), delete i.$$touchObj;
|
|
189
189
|
}
|
|
190
190
|
}), e.directive("touch-class", {
|
|
191
191
|
beforeMount: function(i, t) {
|
|
@@ -205,26 +205,26 @@ class te {
|
|
|
205
205
|
E(this, "promise");
|
|
206
206
|
E(this, "reject");
|
|
207
207
|
E(this, "resolve");
|
|
208
|
-
this.promise = new Promise((r,
|
|
209
|
-
this.reject =
|
|
208
|
+
this.promise = new Promise((r, a) => {
|
|
209
|
+
this.reject = a, this.resolve = r;
|
|
210
210
|
});
|
|
211
211
|
}
|
|
212
212
|
}
|
|
213
|
-
const y =
|
|
213
|
+
const y = P();
|
|
214
214
|
function ie() {
|
|
215
|
-
function e(
|
|
215
|
+
function e(a) {
|
|
216
216
|
var n;
|
|
217
217
|
if (y.value)
|
|
218
218
|
throw new Error("A Dialog is already being displayed");
|
|
219
219
|
return y.value = {
|
|
220
|
-
...
|
|
220
|
+
...a,
|
|
221
221
|
deferred: new te()
|
|
222
222
|
}, (n = y.value.deferred) == null ? void 0 : n.promise;
|
|
223
223
|
}
|
|
224
224
|
function r() {
|
|
225
225
|
y.value = void 0;
|
|
226
226
|
}
|
|
227
|
-
return
|
|
227
|
+
return X({
|
|
228
228
|
/**
|
|
229
229
|
* The currently open dialog information.
|
|
230
230
|
*/
|
|
@@ -242,25 +242,25 @@ function ie() {
|
|
|
242
242
|
const re = /* @__PURE__ */ D({
|
|
243
243
|
__name: "Dialogs",
|
|
244
244
|
setup(e) {
|
|
245
|
-
const r = ie(),
|
|
245
|
+
const r = ie(), a = G(() => r.active ? z(r.active, ["deferred", "onConfirm", "onCancel", "slots"]) : null);
|
|
246
246
|
function n() {
|
|
247
|
-
var
|
|
248
|
-
(
|
|
247
|
+
var g, p, o;
|
|
248
|
+
(g = r.active) != null && g.onCancel && r.active.onCancel(), (o = (p = r.active) == null ? void 0 : p.deferred) == null || o.resolve({
|
|
249
249
|
isCanceled: !0
|
|
250
250
|
}), r.close();
|
|
251
251
|
}
|
|
252
|
-
async function
|
|
253
|
-
var
|
|
254
|
-
(
|
|
252
|
+
async function s() {
|
|
253
|
+
var g, p, o;
|
|
254
|
+
(g = r.active) != null && g.onConfirm && await r.active.onConfirm(), (o = (p = r.active) == null ? void 0 : p.deferred) == null || o.resolve({
|
|
255
255
|
isConfirmed: !0
|
|
256
256
|
}), r.close();
|
|
257
257
|
}
|
|
258
|
-
return (
|
|
258
|
+
return (g, p) => {
|
|
259
259
|
var o;
|
|
260
260
|
return $(), H(K, N({
|
|
261
|
-
open: !!
|
|
262
|
-
},
|
|
263
|
-
onConfirm:
|
|
261
|
+
open: !!a.value
|
|
262
|
+
}, a.value, {
|
|
263
|
+
onConfirm: s,
|
|
264
264
|
onCancel: n
|
|
265
265
|
}), _({ _: 2 }, [
|
|
266
266
|
q((o = F(r).active) == null ? void 0 : o.slots, (b, l) => ({
|
|
@@ -274,46 +274,47 @@ const re = /* @__PURE__ */ D({
|
|
|
274
274
|
}
|
|
275
275
|
}), ue = {
|
|
276
276
|
install(e, r) {
|
|
277
|
-
const
|
|
278
|
-
let n = document.getElementById(
|
|
279
|
-
n || (n = document.createElement("div"), n.id =
|
|
280
|
-
const
|
|
281
|
-
document.body.appendChild(n),
|
|
277
|
+
const a = (r == null ? void 0 : r.mountNodeId) || "stash-dialogs-mount-node";
|
|
278
|
+
let n = document.getElementById(a);
|
|
279
|
+
n || (n = document.createElement("div"), n.id = a), r != null && r.mountNodeClass && n.classList.add(r.mountNodeClass);
|
|
280
|
+
const s = M(W(re));
|
|
281
|
+
document.body.appendChild(n), s.appContext = e._context, V(s, n);
|
|
282
282
|
}
|
|
283
283
|
};
|
|
284
|
-
var
|
|
284
|
+
var ae = /* @__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))(ae || {}), ce = /* @__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))(ce || {}), 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 || {});
|
|
285
285
|
const _e = {
|
|
286
286
|
install(e, {
|
|
287
287
|
i18n: r = void 0,
|
|
288
|
-
storage:
|
|
288
|
+
storage: a = void 0,
|
|
289
289
|
staticPath: n = "/static",
|
|
290
|
-
images:
|
|
290
|
+
images: s = {
|
|
291
291
|
provider: "cloudinary",
|
|
292
292
|
staticDomains: []
|
|
293
293
|
},
|
|
294
|
-
googleMapsApiKey:
|
|
294
|
+
googleMapsApiKey: g = void 0,
|
|
295
295
|
menus: p,
|
|
296
296
|
modals: o,
|
|
297
297
|
toasts: b,
|
|
298
298
|
dialogs: l
|
|
299
299
|
} = {}) {
|
|
300
|
-
e.use(ee), r && (k.use(r.locale), k.i18n(r && r.t)),
|
|
300
|
+
e.use(ee), r && (k.use(r.locale), k.i18n(r && r.t)), a && S(a), e.provide("stashOptions", {
|
|
301
301
|
i18n: r,
|
|
302
|
-
images:
|
|
303
|
-
storage:
|
|
302
|
+
images: s,
|
|
303
|
+
storage: a,
|
|
304
304
|
staticPath: n,
|
|
305
|
-
googleMapsApiKey:
|
|
305
|
+
googleMapsApiKey: g
|
|
306
306
|
}), p !== !1 && e.use(Q, p), o !== !1 && e.use(U, o), b !== !1 && e.use(Z, b), l !== !1 && e.use(ue, l);
|
|
307
307
|
}
|
|
308
308
|
};
|
|
309
309
|
export {
|
|
310
310
|
Ve as SpacingDensity,
|
|
311
|
-
|
|
312
|
-
|
|
311
|
+
ae as StashColors,
|
|
312
|
+
ce as StashCommonColors,
|
|
313
|
+
ze as StashImageProvider,
|
|
313
314
|
ne as StashPrimaryColors,
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
315
|
+
Ke as StatusColors,
|
|
316
|
+
Qe as StatusIcons,
|
|
317
|
+
Ue as StatusSeverities,
|
|
317
318
|
_e as default,
|
|
318
319
|
S as overridePersistentStorage,
|
|
319
320
|
Ae as persistentStorage
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
var r = /* @__PURE__ */ ((a) => (a.Static = "static", a.Cloudinary = "cloudinary", a))(r || {}), t = /* @__PURE__ */ ((a) => (a.Compact = "compact", a.Comfortable = "comfortable", a))(t || {});
|
|
2
|
+
export {
|
|
3
|
+
t as S,
|
|
4
|
+
r as a
|
|
5
|
+
};
|
|
6
|
+
//# sourceMappingURL=misc-76697f61.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"misc-76697f61.js","sources":["../types/misc.ts"],"sourcesContent":["import { DefineComponent, Directive } from 'vue';\n\nexport interface I18nPlugin {\n locale: string;\n t: (key: string, value: string) => string;\n}\n\nexport interface StashProvideState {\n components?: Record<string, DefineComponent>;\n directives?: Record<string, Directive>;\n i18n?: I18nPlugin;\n images: StashOptionImages;\n storage?: unknown;\n staticPath: string;\n googleMapsApiKey?: string;\n}\n\nexport enum StashImageProvider {\n Static = 'static',\n Cloudinary = 'cloudinary',\n}\n\n/**\n * Image\n */\nexport type StashImageProviders = `${StashImageProvider}`;\n\nexport interface StashOptionImages {\n provider: StashImageProviders;\n staticDomains: string[];\n}\n\n/**\n * For controlling properties like \"padding\" and \"margin\" within and between components.\n */\nexport enum SpacingDensity {\n Compact = 'compact',\n Comfortable = 'comfortable',\n}\n\nexport type SpacingDensities = `${SpacingDensity}`;\n"],"names":["StashImageProvider","SpacingDensity"],"mappings":"AAiBY,IAAAA,sBAAAA,OACVA,EAAA,SAAS,UACTA,EAAA,aAAa,cAFHA,IAAAA,KAAA,CAAA,CAAA,GAkBAC,sBAAAA,OACVA,EAAA,UAAU,WACVA,EAAA,cAAc,eAFJA,IAAAA,KAAA,CAAA,CAAA;"}
|
package/package.json
CHANGED
package/types/misc.ts
CHANGED
|
@@ -15,11 +15,15 @@ export interface StashProvideState {
|
|
|
15
15
|
googleMapsApiKey?: string;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
+
export enum StashImageProvider {
|
|
19
|
+
Static = 'static',
|
|
20
|
+
Cloudinary = 'cloudinary',
|
|
21
|
+
}
|
|
22
|
+
|
|
18
23
|
/**
|
|
19
24
|
* Image
|
|
20
25
|
*/
|
|
21
|
-
|
|
22
|
-
export type StashImageProviders = 'cloudinary' | 'static';
|
|
26
|
+
export type StashImageProviders = `${StashImageProvider}`;
|
|
23
27
|
|
|
24
28
|
export interface StashOptionImages {
|
|
25
29
|
provider: StashImageProviders;
|
package/dist/misc-d0eec261.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"misc-d0eec261.js","sources":["../types/misc.ts"],"sourcesContent":["import { DefineComponent, Directive } from 'vue';\n\nexport interface I18nPlugin {\n locale: string;\n t: (key: string, value: string) => string;\n}\n\nexport interface StashProvideState {\n components?: Record<string, DefineComponent>;\n directives?: Record<string, Directive>;\n i18n?: I18nPlugin;\n images: StashOptionImages;\n storage?: unknown;\n staticPath: string;\n googleMapsApiKey?: string;\n}\n\n/**\n * Image\n */\n\nexport type StashImageProviders = 'cloudinary' | 'static';\n\nexport interface StashOptionImages {\n provider: StashImageProviders;\n staticDomains: string[];\n}\n\n/**\n * For controlling properties like \"padding\" and \"margin\" within and between components.\n */\nexport enum SpacingDensity {\n Compact = 'compact',\n Comfortable = 'comfortable',\n}\n\nexport type SpacingDensities = `${SpacingDensity}`;\n"],"names":["SpacingDensity"],"mappings":"AA+BY,IAAAA,sBAAAA,OACVA,EAAA,UAAU,WACVA,EAAA,cAAc,eAFJA,IAAAA,KAAA,CAAA,CAAA;"}
|