@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.
- package/README.md +1 -1
- package/dist/AddressSelect.js +9 -10
- package/dist/AddressSelect.js.map +1 -1
- package/dist/Alert.js +9 -9
- package/dist/Alert.js.map +1 -1
- package/dist/AppSidebar.js +11 -11
- package/dist/AppSidebar.js.map +1 -1
- package/dist/Avatar.js +33 -32
- package/dist/Avatar.js.map +1 -1
- package/dist/Avatar.vue.d.ts +16 -95
- package/dist/Badge.js +2 -2
- package/dist/Badge.js.map +1 -1
- package/dist/Checkbox.js +4 -4
- package/dist/Checkbox.js.map +1 -1
- 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
- package/dist/Checkbox.vue_vue_type_style_index_0_scoped_0d7e7fd0_lang-4ed993c7.js.map +1 -0
- package/dist/Chip.js +32 -30
- package/dist/Chip.js.map +1 -1
- package/dist/Chip.vue.d.ts +16 -95
- package/dist/ConfirmationCodeInput.js +23 -23
- package/dist/ConfirmationCodeInput.js.map +1 -1
- package/dist/ContextSwitcher.js +2 -2
- package/dist/ContextSwitcher.js.map +1 -1
- package/dist/Copy.js +1 -1
- package/dist/Copy.js.map +1 -1
- package/dist/DataView.js +1 -1
- package/dist/DataViewFilters.js +23 -24
- package/dist/DataViewFilters.js.map +1 -1
- package/dist/DataViewSortButton.js +11 -11
- package/dist/DataViewSortButton.js.map +1 -1
- package/dist/DataViewToolbar.js +1 -1
- package/dist/Dialog.js +10 -10
- package/dist/Dialog.js.map +1 -1
- package/dist/Dropdown.js +7 -7
- package/dist/Dropdown.js.map +1 -1
- package/dist/FilterChip.js +2 -3
- package/dist/FilterChip.js.map +1 -1
- package/dist/FilterDrawerItem.js +5 -6
- package/dist/FilterDrawerItem.js.map +1 -1
- package/dist/FilterDropdown.js +3 -4
- package/dist/FilterDropdown.js.map +1 -1
- package/dist/FilterSelect.js +26 -27
- package/dist/FilterSelect.js.map +1 -1
- package/dist/Filters.js +3 -4
- package/dist/Filters.js.map +1 -1
- package/dist/HttpError.js +18 -18
- package/dist/HttpError.js.map +1 -1
- package/dist/IconLabel.js +12 -13
- package/dist/IconLabel.js.map +1 -1
- package/dist/IconLabel.vue.d.ts +9 -75
- package/dist/Illustration.js +1 -1
- package/dist/Illustration.js.map +1 -1
- package/dist/Illustration.vue.d.ts +19 -14
- package/dist/InputOptions.js +7 -8
- package/dist/InputOptions.js.map +1 -1
- package/dist/LicenseChip.js +32 -26
- package/dist/LicenseChip.js.map +1 -1
- package/dist/LicenseChip.vue.d.ts +2 -4
- package/dist/ListItem.js +1 -1
- package/dist/ListView.js +30 -31
- package/dist/ListView.js.map +1 -1
- package/dist/MenuItem.js +4 -4
- package/dist/MenuItem.js.map +1 -1
- package/dist/Metric.js +1 -1
- package/dist/Metric.js.map +1 -1
- package/dist/Metric.vue.d.ts +8 -74
- package/dist/Modal.js +13 -13
- package/dist/Modal.js.map +1 -1
- package/dist/Module.js +1 -1
- package/dist/Module.js.map +1 -1
- package/dist/ModuleFooter.js +1 -1
- package/dist/ModuleFooter.js.map +1 -1
- package/dist/ModuleHeader.js +1 -1
- package/dist/ModuleHeader.js.map +1 -1
- package/dist/PageNavigation.js +28 -29
- package/dist/PageNavigation.js.map +1 -1
- package/dist/Paginate.js +1 -1
- package/dist/Paginate.js.map +1 -1
- package/dist/Paginate.vue_used_vue_type_style_index_0_lang.module-bfccf992.js +11 -0
- package/dist/Paginate.vue_used_vue_type_style_index_0_lang.module-bfccf992.js.map +1 -0
- package/dist/QuickAction.js +14 -14
- package/dist/QuickAction.js.map +1 -1
- package/dist/RadioNew.js +14 -14
- package/dist/SearchBar.js +15 -15
- package/dist/SearchBar.js.map +1 -1
- package/dist/Select.js +92 -93
- package/dist/Select.js.map +1 -1
- package/dist/SelectStatus.js +53 -51
- package/dist/SelectStatus.js.map +1 -1
- package/dist/SelectStatus.vue.d.ts +52 -1
- package/dist/Step.js +28 -28
- package/dist/Step.js.map +1 -1
- package/dist/Tab.js +1 -1
- package/dist/Table.js +2 -2
- package/dist/TableCell.js +2 -2
- package/dist/TableHeaderCell.js +2 -2
- package/dist/TableHeaderRow.js +2 -2
- package/dist/TableRow.js +2 -2
- package/dist/Tabs.js +2 -2
- package/dist/{Tabs.vue_vue_type_script_setup_true_lang-aca4f8b8.js → Tabs.vue_vue_type_script_setup_true_lang-56e85faa.js} +3 -3
- package/dist/Tabs.vue_vue_type_script_setup_true_lang-56e85faa.js.map +1 -0
- package/dist/Textarea.js +1 -1
- package/dist/Textarea.js.map +1 -1
- package/dist/Toast.js +1 -1
- package/dist/Toasts.js +1 -1
- package/dist/ToastsPlugin.js +1 -1
- package/dist/colorScheme.d.ts +3 -16
- package/dist/components.css +1 -1
- package/dist/index.d.ts +64 -25
- package/dist/index.js +188 -186
- package/dist/index.js.map +1 -1
- package/dist/statusLevels-a8b041f4.js +7 -0
- package/dist/statusLevels-a8b041f4.js.map +1 -0
- package/dist/tailwind-base.d.ts +0 -10
- package/dist/tailwind-base.js +22 -20
- package/dist/tailwind-base.js.map +1 -1
- package/dist/utils/colorScheme.js +1 -1
- package/dist/utils/colorScheme.js.map +1 -1
- package/package.json +1 -1
- package/styles/base.css +2 -2
- package/tailwind-base.ts +22 -21
- package/types/colors.ts +84 -26
- package/types/statusLevels.ts +4 -4
- package/dist/Checkbox.vue_vue_type_style_index_0_scoped_0cd31c8f_lang-4ed993c7.js.map +0 -1
- package/dist/Paginate.vue_used_vue_type_style_index_0_lang.module-e579235f.js +0 -11
- package/dist/Paginate.vue_used_vue_type_style_index_0_lang.module-e579235f.js.map +0 -1
- package/dist/Tabs.vue_vue_type_script_setup_true_lang-aca4f8b8.js.map +0 -1
- package/dist/colors-13e95ebf.js +0 -6
- package/dist/colors-13e95ebf.js.map +0 -1
- package/dist/statusLevels-aabf1e3c.js +0 -7
- package/dist/statusLevels-aabf1e3c.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,19 +1,18 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import
|
|
5
|
-
import { ref as
|
|
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
|
|
8
|
-
import
|
|
9
|
-
import { M as
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import { overridePersistentStorage as
|
|
13
|
-
import { persistentStorage as
|
|
14
|
-
import {
|
|
15
|
-
import { S as
|
|
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
|
|
39
|
-
return
|
|
37
|
+
function L(e) {
|
|
38
|
+
return e.type.indexOf("mouse") !== -1 ? e.clientX : e.touches[0].clientX;
|
|
40
39
|
}
|
|
41
|
-
function
|
|
42
|
-
return
|
|
40
|
+
function B(e) {
|
|
41
|
+
return e.type.indexOf("mouse") !== -1 ? e.clientY : e.touches[0].clientY;
|
|
43
42
|
}
|
|
44
|
-
var
|
|
45
|
-
var
|
|
43
|
+
var C = function() {
|
|
44
|
+
var e = !1;
|
|
46
45
|
try {
|
|
47
|
-
var
|
|
46
|
+
var r = Object.defineProperty({}, "passive", {
|
|
48
47
|
get: function() {
|
|
49
|
-
|
|
48
|
+
e = !0;
|
|
50
49
|
}
|
|
51
50
|
});
|
|
52
|
-
window.addEventListener("test", null,
|
|
51
|
+
window.addEventListener("test", null, r);
|
|
53
52
|
} catch {
|
|
54
53
|
}
|
|
55
|
-
return
|
|
56
|
-
}(),
|
|
57
|
-
install: function(
|
|
58
|
-
var
|
|
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
|
-
},
|
|
74
|
-
function
|
|
75
|
-
var t = this.$$touchObj,
|
|
76
|
-
|
|
77
|
-
t.touchHoldTimer = null, T(
|
|
78
|
-
}, t.options.touchHoldTolerance)), T(
|
|
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
|
|
81
|
-
var t = this.$$touchObj,
|
|
82
|
-
if (t.currentX =
|
|
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
|
|
85
|
-
t.swipeOutBounded = Math.abs(t.startX - t.currentX) >
|
|
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
|
|
89
|
-
t.touchMoved = Math.abs(t.startX - t.currentX) >
|
|
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 (
|
|
92
|
-
var a =
|
|
93
|
-
(t.touchRollTime == null || a > t.touchRollTime +
|
|
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 (
|
|
96
|
-
var a =
|
|
97
|
-
(t.touchDragTime == null || a > t.touchDragTime +
|
|
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
|
|
101
|
-
var
|
|
102
|
-
|
|
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
|
|
105
|
-
var t = this.$$touchObj,
|
|
106
|
-
|
|
107
|
-
var
|
|
108
|
-
if (
|
|
109
|
-
if (T(
|
|
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
|
|
112
|
-
(a >
|
|
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 (
|
|
115
|
-
|
|
116
|
-
else if (
|
|
117
|
-
|
|
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(
|
|
119
|
+
T(i, this, "tap");
|
|
121
120
|
}
|
|
122
|
-
function
|
|
123
|
-
|
|
121
|
+
function o() {
|
|
122
|
+
Y(this);
|
|
124
123
|
}
|
|
125
124
|
function b() {
|
|
126
|
-
|
|
125
|
+
E(this);
|
|
127
126
|
}
|
|
128
|
-
function
|
|
129
|
-
var
|
|
130
|
-
return
|
|
127
|
+
function l(i, t) {
|
|
128
|
+
var u = i.$$touchObj.callbacks[t];
|
|
129
|
+
return u != null && u.length > 0;
|
|
131
130
|
}
|
|
132
|
-
function T(
|
|
133
|
-
var
|
|
134
|
-
if (
|
|
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
|
|
137
|
-
var a =
|
|
138
|
-
a.modifiers.stop &&
|
|
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
|
|
142
|
-
var t =
|
|
143
|
-
t &&
|
|
140
|
+
function Y(i) {
|
|
141
|
+
var t = i.$$touchObj.options.touchClass;
|
|
142
|
+
t && i.classList.add(t);
|
|
144
143
|
}
|
|
145
|
-
function
|
|
146
|
-
var t =
|
|
147
|
-
t &&
|
|
144
|
+
function E(i) {
|
|
145
|
+
var t = i.$$touchObj.options.touchClass;
|
|
146
|
+
t && i.classList.remove(t);
|
|
148
147
|
}
|
|
149
|
-
function
|
|
150
|
-
|
|
148
|
+
function h(i) {
|
|
149
|
+
i.touchHoldTimer && (clearTimeout(i.touchHoldTimer), i.touchHoldTimer = null);
|
|
151
150
|
}
|
|
152
|
-
function
|
|
153
|
-
var
|
|
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:
|
|
159
|
+
options: c
|
|
161
160
|
};
|
|
162
|
-
return t && (
|
|
161
|
+
return t && (u.options = Object.assign({}, u.options, t)), i.$$touchObj = u, i.$$touchObj;
|
|
163
162
|
}
|
|
164
|
-
|
|
165
|
-
beforeMount: function(
|
|
166
|
-
var
|
|
167
|
-
switch (
|
|
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
|
|
170
|
-
if (
|
|
171
|
-
for (var
|
|
172
|
-
if (["left", "right", "top", "bottom"].indexOf(
|
|
173
|
-
var a = "swipe." +
|
|
174
|
-
|
|
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
|
-
|
|
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 && (
|
|
180
|
+
t.modifiers.disablePassive && (v = !1);
|
|
182
181
|
default:
|
|
183
|
-
|
|
182
|
+
u.callbacks[m] = u.callbacks[m] || [], u.callbacks[m].push(t);
|
|
184
183
|
}
|
|
185
|
-
|
|
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(
|
|
188
|
-
|
|
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
|
-
}),
|
|
191
|
-
beforeMount: function(
|
|
192
|
-
|
|
189
|
+
}), e.directive("touch-class", {
|
|
190
|
+
beforeMount: function(i, t) {
|
|
191
|
+
R(i, {
|
|
193
192
|
touchClass: t.value
|
|
194
193
|
});
|
|
195
194
|
}
|
|
196
|
-
}),
|
|
197
|
-
beforeMount: function(
|
|
198
|
-
|
|
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
|
|
202
|
+
class te {
|
|
204
203
|
constructor() {
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
this.promise = new Promise((
|
|
209
|
-
this.reject =
|
|
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
|
|
214
|
-
function
|
|
215
|
-
function
|
|
216
|
-
var
|
|
217
|
-
if (
|
|
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
|
|
220
|
-
...
|
|
221
|
-
deferred: new
|
|
222
|
-
}, (
|
|
218
|
+
return y.value = {
|
|
219
|
+
...c,
|
|
220
|
+
deferred: new te()
|
|
221
|
+
}, (n = y.value.deferred) == null ? void 0 : n.promise;
|
|
223
222
|
}
|
|
224
|
-
function
|
|
225
|
-
|
|
223
|
+
function r() {
|
|
224
|
+
y.value = void 0;
|
|
226
225
|
}
|
|
227
|
-
return
|
|
226
|
+
return P({
|
|
228
227
|
/**
|
|
229
228
|
* The currently open dialog information.
|
|
230
229
|
*/
|
|
231
|
-
active:
|
|
230
|
+
active: x(y),
|
|
232
231
|
/**
|
|
233
232
|
* Opens the dialog.
|
|
234
233
|
*/
|
|
235
|
-
open:
|
|
234
|
+
open: e,
|
|
236
235
|
/**
|
|
237
236
|
* Closes the dialog.
|
|
238
237
|
*/
|
|
239
|
-
close:
|
|
238
|
+
close: r
|
|
240
239
|
});
|
|
241
240
|
}
|
|
242
|
-
const
|
|
241
|
+
const re = /* @__PURE__ */ D({
|
|
243
242
|
__name: "Dialogs",
|
|
244
|
-
setup(
|
|
245
|
-
const
|
|
246
|
-
function
|
|
247
|
-
var
|
|
248
|
-
(
|
|
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
|
-
}),
|
|
249
|
+
}), r.close();
|
|
251
250
|
}
|
|
252
|
-
async function
|
|
253
|
-
var
|
|
254
|
-
(
|
|
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
|
-
}),
|
|
255
|
+
}), r.close();
|
|
257
256
|
}
|
|
258
|
-
return (
|
|
259
|
-
var
|
|
260
|
-
return
|
|
261
|
-
open: !!
|
|
262
|
-
},
|
|
263
|
-
onConfirm:
|
|
264
|
-
onCancel:
|
|
265
|
-
}),
|
|
266
|
-
q((
|
|
267
|
-
name:
|
|
268
|
-
fn:
|
|
269
|
-
|
|
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
|
-
}),
|
|
276
|
-
install(
|
|
277
|
-
const
|
|
278
|
-
let
|
|
279
|
-
|
|
280
|
-
const
|
|
281
|
-
document.body.appendChild(
|
|
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
|
-
}
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
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:
|
|
293
|
-
menus:
|
|
294
|
-
modals:
|
|
293
|
+
googleMapsApiKey: s = void 0,
|
|
294
|
+
menus: p,
|
|
295
|
+
modals: o,
|
|
295
296
|
toasts: b,
|
|
296
|
-
dialogs:
|
|
297
|
+
dialogs: l
|
|
297
298
|
} = {}) {
|
|
298
|
-
|
|
299
|
-
i18n:
|
|
300
|
-
images:
|
|
301
|
-
storage:
|
|
302
|
-
staticPath:
|
|
303
|
-
googleMapsApiKey:
|
|
304
|
-
}),
|
|
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
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
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
|