@feedmepos/mf-menu-portal 1.0.4-dev.3 → 1.0.4
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/{App-nS46pByh.js → App-CgYpEYgp.js} +3 -3
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-C9OSr8ft.js → ApplyProduct.vue_vue_type_script_setup_true_lang-Hdsnu29V.js} +1 -1
- package/dist/{BindingTable.vue_vue_type_script_setup_true_lang-DnvN5R5w.js → BindingTable.vue_vue_type_script_setup_true_lang-CWe5_Sm5.js} +1 -1
- package/dist/{Catalog-B4RS8T29.js → Catalog-BrHGEI3p.js} +4 -4
- package/dist/{CatalogBinding-6_783kbu.js → CatalogBinding-BjTeOA91.js} +3 -3
- package/dist/{CatalogEditTabs.vue_vue_type_script_setup_true_lang-BawCLY5-.js → CatalogEditTabs.vue_vue_type_script_setup_true_lang-doB3hsWD.js} +3 -3
- package/dist/{CatalogEditor.vue_vue_type_script_setup_true_lang-BjP8ZXyb.js → CatalogEditor.vue_vue_type_script_setup_true_lang-BpBR-N_x.js} +7 -7
- package/dist/{CatalogLinkProductAction.vue_vue_type_script_setup_true_lang-Diapahfp.js → CatalogLinkProductAction.vue_vue_type_script_setup_true_lang-P59vHZEn.js} +14 -14
- package/dist/{Category-CqneIGq4.js → Category-6-ppsSmZ.js} +5 -5
- package/dist/{Category-DNQH1CI7.js → Category-CdsbuUqi.js} +2 -2
- package/dist/CategoryList.vue_vue_type_script_setup_true_lang-DlNUOgyu.js +847 -0
- package/dist/{CookingGuide-DTAiFmEL.js → CookingGuide-CRyRlBeV.js} +5 -5
- package/dist/{Group-5xO2j3CL.js → Group-DVrUlq4i.js} +2 -2
- package/dist/{Group-DeUqUomY.js → Group-DqyBHSFx.js} +5 -5
- package/dist/GroupList.vue_vue_type_script_setup_true_lang-oGNs8e8f.js +1807 -0
- package/dist/Ingredient-CGLfhbvN.js +505 -0
- package/dist/LinkProductSideSheet.vue_vue_type_script_setup_true_lang-C0rc1FRO.js +782 -0
- package/dist/{MenuSetting-DdekHsQy.js → MenuSetting-Oct3vbHj.js} +4 -4
- package/dist/OrderPacing-BDkzflgE.js +769 -0
- package/dist/{OrderPacingFields.vue_vue_type_script_setup_true_lang-C3SqQPSr.js → OrderPacingFields.vue_vue_type_script_setup_true_lang-B259anSs.js} +2 -2
- package/dist/{Preview-DGTw0POk.js → Preview-V9cSpevb.js} +1 -1
- package/dist/{PriceTierNotice.vue_vue_type_script_setup_true_lang-DffhFv0Y.js → PriceTierNotice.vue_vue_type_script_setup_true_lang-k5S4mGCN.js} +1 -1
- package/dist/PrintRoute-3UwiMoBU.js +518 -0
- package/dist/{Product-CsbcyIgD.js → Product-LaB-YRTQ.js} +4 -4
- package/dist/ProductAttributeFilter.vue_vue_type_script_setup_true_lang-B2KdolJS.js +7931 -0
- package/dist/{ProductEditorHost.vue_vue_type_script_setup_true_lang--rBKdKV7.js → ProductEditorHost.vue_vue_type_script_setup_true_lang-BBXGnZtc.js} +9 -9
- package/dist/ProductGroupCreateSheet.vue_vue_type_script_setup_true_lang-BUC6qUnG.js +2011 -0
- package/dist/{ProductImageEditorDialog.vue_vue_type_script_setup_true_lang-DtCzHjpN.js → ProductImageEditorDialog.vue_vue_type_script_setup_true_lang-CjQRRqBx.js} +1 -1
- package/dist/{ProductInlineCreateHost.vue_vue_type_script_setup_true_lang-aDx01-WW.js → ProductInlineCreateHost.vue_vue_type_script_setup_true_lang-3yzUcogQ.js} +630 -587
- package/dist/{ProductInternalTools-Ccd4dAmx.js → ProductInternalTools-DWCgC825.js} +2 -2
- package/dist/{ProductInventoryDialog-DYcKdKHi.js → ProductInventoryDialog-D0d5RywR.js} +1 -1
- package/dist/{ProductInventoryDialog.vue_vue_type_script_setup_true_lang-DySFcCJz.js → ProductInventoryDialog.vue_vue_type_script_setup_true_lang-CmYKO0ZX.js} +1 -1
- package/dist/ProductList.vue_vue_type_script_setup_true_lang-DeX8Exly.js +2765 -0
- package/dist/{ProductVariantTranslationSheet.vue_vue_type_script_setup_true_lang-Dw2xiPYX.js → ProductVariantTranslationSheet.vue_vue_type_script_setup_true_lang-BFD6_Sbb.js} +1 -1
- package/dist/{Products-phZwCZhU.js → Products-BLUhwFT-.js} +3 -3
- package/dist/Publish-Dkjnls7p.js +1337 -0
- package/dist/Recipe-BGfofjHT.js +388 -0
- package/dist/{Scheduler-C-A5m92O.js → Scheduler-BL7t8aS7.js} +314 -254
- package/dist/ServingSequence-CDFXMCiN.js +374 -0
- package/dist/{Setting-C24V-lps.js → Setting-gYZoZxQG.js} +6 -6
- package/dist/Subcategory-CnlrVwCy.js +459 -0
- package/dist/{Takeaway-BFP2ohJn.js → Takeaway-BWVzwWnh.js} +5 -5
- package/dist/{Takeaway-DywX5BiX.js → Takeaway-D8FzvC2w.js} +2 -2
- package/dist/{TakeawayList.vue_vue_type_script_setup_true_lang-B3QS7o1v.js → TakeawayList.vue_vue_type_script_setup_true_lang-igS-FXq5.js} +4 -4
- package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-B8nXazx6.js +1291 -0
- package/dist/Unit-Do7Tt8U8.js +424 -0
- package/dist/{Variant-BBfWhH-s.js → Variant-D1kLupxx.js} +5 -5
- package/dist/{_id_-BooM3FX1.js → _id_-DomaBHrh.js} +3 -3
- package/dist/{app-Bmgb8ACe.js → app-C_XNYz8_.js} +312 -312
- package/dist/app.js +1 -1
- package/dist/apps/mf-menu/src/app.d.ts +60 -0
- package/dist/apps/mf-menu/src/components/Product/BulkCategorySelect.vue.d.ts +37 -0
- package/dist/apps/mf-menu/src/components/Product/ProductAttributeFilter.vue.d.ts +11 -1
- package/dist/apps/mf-menu/src/components/ProductList.vue.d.ts +2 -2
- package/dist/apps/mf-menu/src/components/feature/NestedGroupManager/NestedGroupOverrideSheets.vue.d.ts +27 -0
- package/dist/apps/mf-menu/src/components/feature/RestaurantAttributesFilter.vue.d.ts +20 -0
- package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
- package/dist/assets/{menu-compute-CG-fX5pi.js → menu-compute-Did75Kp9.js} +2 -2
- package/dist/assets/{validate-menu-BeGMWVns.js → validate-menu-DVMOLygB.js} +2 -2
- package/dist/mf-menu-portal.css +1 -1
- package/dist/{provide-CfF0FmUz.js → provide-Bwf3KcOV.js} +67991 -66892
- package/dist/{useActionFeedback-DyUCQl2x.js → useActionFeedback-CXx7dOVc.js} +1 -1
- package/dist/{FormSection.vue_vue_type_script_setup_true_lang-pY-_msnM.js → vuedraggable-CBtQLb_S.js} +140 -139
- package/package.json +2 -2
- package/dist/CategoryList.vue_vue_type_script_setup_true_lang-Bt_onPrP.js +0 -797
- package/dist/GroupList.vue_vue_type_script_setup_true_lang-Dgya_JLB.js +0 -2183
- package/dist/Ingredient-BlDW3TfZ.js +0 -463
- package/dist/LinkProductSideSheet.vue_vue_type_script_setup_true_lang-0tCpJlOf.js +0 -709
- package/dist/OrderPacing-Bb2n5wmI.js +0 -698
- package/dist/PrintRoute-CJB4gIP2.js +0 -473
- package/dist/ProductChipSummary.vue_vue_type_script_setup_true_lang-D8DygCBl.js +0 -110
- package/dist/ProductGroupCreateSheet.vue_vue_type_script_setup_true_lang-J6LpJ5wT.js +0 -1257
- package/dist/ProductList.vue_vue_type_script_setup_true_lang-DTLslTpK.js +0 -10353
- package/dist/Publish-BeKIXu3z.js +0 -1261
- package/dist/Recipe-Fo4tBkBv.js +0 -350
- package/dist/ServingSequence-BrCwLSO7.js +0 -336
- package/dist/Subcategory-B0oZIKbw.js +0 -412
- package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-D7mhnrXx.js +0 -1213
- package/dist/Unit-NhEwH-kr.js +0 -385
- package/dist/apps/mf-menu/src/views/MenuManagementEditor/RestaurantAttributesFilter.vue.d.ts +0 -2
|
@@ -1,4 +1,49 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { defineComponent as ue, openBlock as Ft, createElementBlock as Mt, normalizeClass as Ae, renderSlot as oe, createElementVNode as pe, toDisplayString as me, createCommentVNode as ge, createVNode as tn, withCtx as en, TransitionGroup as nn, resolveComponent as on, nextTick as Pe, h as ve } from "vue";
|
|
2
|
+
const rn = /* @__PURE__ */ ue({
|
|
3
|
+
__name: "FormColumn",
|
|
4
|
+
props: {
|
|
5
|
+
shrinkable: { type: Boolean }
|
|
6
|
+
},
|
|
7
|
+
setup(e) {
|
|
8
|
+
return (t, n) => (Ft(), Mt("div", {
|
|
9
|
+
class: Ae(["flex-1 flex flex-col space-y-24", { "min-h-0": t.shrinkable }])
|
|
10
|
+
}, [
|
|
11
|
+
oe(t.$slots, "default")
|
|
12
|
+
], 2));
|
|
13
|
+
}
|
|
14
|
+
}), an = {
|
|
15
|
+
key: 0,
|
|
16
|
+
class: "flex flex-row justify-between items-center"
|
|
17
|
+
}, ln = { class: "space-y-4" }, sn = { class: "fm-typo-en-title-sm-600" }, un = {
|
|
18
|
+
key: 0,
|
|
19
|
+
class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
|
|
20
|
+
}, ao = /* @__PURE__ */ ue({
|
|
21
|
+
__name: "FormSection",
|
|
22
|
+
props: {
|
|
23
|
+
title: {},
|
|
24
|
+
subTitle: {},
|
|
25
|
+
shrinkable: { type: Boolean }
|
|
26
|
+
},
|
|
27
|
+
setup(e) {
|
|
28
|
+
return (t, n) => (Ft(), Mt("div", {
|
|
29
|
+
class: Ae(["flex flex-col space-y-16", { "min-h-0": t.shrinkable }])
|
|
30
|
+
}, [
|
|
31
|
+
t.title ? (Ft(), Mt("div", an, [
|
|
32
|
+
pe("div", ln, [
|
|
33
|
+
pe("p", sn, me(t.title), 1),
|
|
34
|
+
t.subTitle ? (Ft(), Mt("p", un, me(t.subTitle), 1)) : ge("", !0)
|
|
35
|
+
]),
|
|
36
|
+
oe(t.$slots, "append-title")
|
|
37
|
+
])) : ge("", !0),
|
|
38
|
+
tn(rn, { shrinkable: t.shrinkable }, {
|
|
39
|
+
default: en(() => [
|
|
40
|
+
oe(t.$slots, "default")
|
|
41
|
+
]),
|
|
42
|
+
_: 3
|
|
43
|
+
}, 8, ["shrinkable"])
|
|
44
|
+
], 2));
|
|
45
|
+
}
|
|
46
|
+
});
|
|
2
47
|
/**!
|
|
3
48
|
* Sortable 1.14.0
|
|
4
49
|
* @author RubaXa <trash@rubaxa.org>
|
|
@@ -19,7 +64,7 @@ function j(e) {
|
|
|
19
64
|
for (var t = 1; t < arguments.length; t++) {
|
|
20
65
|
var n = arguments[t] != null ? arguments[t] : {};
|
|
21
66
|
t % 2 ? be(Object(n), !0).forEach(function(o) {
|
|
22
|
-
|
|
67
|
+
cn(e, o, n[o]);
|
|
23
68
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : be(Object(n)).forEach(function(o) {
|
|
24
69
|
Object.defineProperty(e, o, Object.getOwnPropertyDescriptor(n, o));
|
|
25
70
|
});
|
|
@@ -34,7 +79,7 @@ function kt(e) {
|
|
|
34
79
|
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
35
80
|
}, kt(e);
|
|
36
81
|
}
|
|
37
|
-
function
|
|
82
|
+
function cn(e, t, n) {
|
|
38
83
|
return t in e ? Object.defineProperty(e, t, {
|
|
39
84
|
value: n,
|
|
40
85
|
enumerable: !0,
|
|
@@ -52,16 +97,16 @@ function U() {
|
|
|
52
97
|
return e;
|
|
53
98
|
}, U.apply(this, arguments);
|
|
54
99
|
}
|
|
55
|
-
function
|
|
100
|
+
function dn(e, t) {
|
|
56
101
|
if (e == null) return {};
|
|
57
102
|
var n = {}, o = Object.keys(e), r, i;
|
|
58
103
|
for (i = 0; i < o.length; i++)
|
|
59
104
|
r = o[i], !(t.indexOf(r) >= 0) && (n[r] = e[r]);
|
|
60
105
|
return n;
|
|
61
106
|
}
|
|
62
|
-
function
|
|
107
|
+
function fn(e, t) {
|
|
63
108
|
if (e == null) return {};
|
|
64
|
-
var n =
|
|
109
|
+
var n = dn(e, t), o, r;
|
|
65
110
|
if (Object.getOwnPropertySymbols) {
|
|
66
111
|
var i = Object.getOwnPropertySymbols(e);
|
|
67
112
|
for (r = 0; r < i.length; r++)
|
|
@@ -69,12 +114,12 @@ function ln(e, t) {
|
|
|
69
114
|
}
|
|
70
115
|
return n;
|
|
71
116
|
}
|
|
72
|
-
var
|
|
117
|
+
var hn = "1.14.0";
|
|
73
118
|
function z(e) {
|
|
74
119
|
if (typeof window < "u" && window.navigator)
|
|
75
120
|
return !!/* @__PURE__ */ navigator.userAgent.match(e);
|
|
76
121
|
}
|
|
77
|
-
var q = z(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), Tt = z(/Edge/i), ye = z(/firefox/i), wt = z(/safari/i) && !z(/chrome/i) && !z(/android/i), Ne = z(/iP(ad|od|hone)/i),
|
|
122
|
+
var q = z(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), Tt = z(/Edge/i), ye = z(/firefox/i), wt = z(/safari/i) && !z(/chrome/i) && !z(/android/i), Ne = z(/iP(ad|od|hone)/i), pn = z(/chrome/i) && z(/android/i), Fe = {
|
|
78
123
|
capture: !1,
|
|
79
124
|
passive: !1
|
|
80
125
|
};
|
|
@@ -100,7 +145,7 @@ function Yt(e, t) {
|
|
|
100
145
|
return !1;
|
|
101
146
|
}
|
|
102
147
|
}
|
|
103
|
-
function
|
|
148
|
+
function mn(e) {
|
|
104
149
|
return e.host && e !== document && e.host.nodeType ? e.host : e.parentNode;
|
|
105
150
|
}
|
|
106
151
|
function V(e, t, n, o) {
|
|
@@ -110,7 +155,7 @@ function V(e, t, n, o) {
|
|
|
110
155
|
if (t != null && (t[0] === ">" ? e.parentNode === n && Yt(e, t) : Yt(e, t)) || o && e === n)
|
|
111
156
|
return e;
|
|
112
157
|
if (e === n) break;
|
|
113
|
-
} while (e =
|
|
158
|
+
} while (e = mn(e));
|
|
114
159
|
}
|
|
115
160
|
return null;
|
|
116
161
|
}
|
|
@@ -225,7 +270,7 @@ function _e(e) {
|
|
|
225
270
|
} while (e !== o && (e = e.parentNode));
|
|
226
271
|
return [t, n];
|
|
227
272
|
}
|
|
228
|
-
function
|
|
273
|
+
function gn(e, t) {
|
|
229
274
|
for (var n in e)
|
|
230
275
|
if (e.hasOwnProperty(n)) {
|
|
231
276
|
for (var o in t)
|
|
@@ -248,7 +293,7 @@ function tt(e, t) {
|
|
|
248
293
|
while (n = n.parentNode);
|
|
249
294
|
return W();
|
|
250
295
|
}
|
|
251
|
-
function
|
|
296
|
+
function vn(e, t) {
|
|
252
297
|
if (e && t)
|
|
253
298
|
for (var n in t)
|
|
254
299
|
t.hasOwnProperty(n) && (e[n] = t[n]);
|
|
@@ -268,7 +313,7 @@ function ke(e, t) {
|
|
|
268
313
|
}
|
|
269
314
|
};
|
|
270
315
|
}
|
|
271
|
-
function
|
|
316
|
+
function bn() {
|
|
272
317
|
clearTimeout(_t), _t = void 0;
|
|
273
318
|
}
|
|
274
319
|
function Le(e, t, n) {
|
|
@@ -279,7 +324,7 @@ function Re(e) {
|
|
|
279
324
|
return t && t.dom ? t.dom(e).cloneNode(!0) : n ? n(e).clone(!0)[0] : e.cloneNode(!0);
|
|
280
325
|
}
|
|
281
326
|
var k = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
|
|
282
|
-
function
|
|
327
|
+
function yn() {
|
|
283
328
|
var e = [], t;
|
|
284
329
|
return {
|
|
285
330
|
captureAnimationState: function() {
|
|
@@ -305,7 +350,7 @@ function pn() {
|
|
|
305
350
|
e.push(o);
|
|
306
351
|
},
|
|
307
352
|
removeAnimationState: function(o) {
|
|
308
|
-
e.splice(
|
|
353
|
+
e.splice(gn(e, {
|
|
309
354
|
target: o
|
|
310
355
|
}), 1);
|
|
311
356
|
},
|
|
@@ -319,7 +364,7 @@ function pn() {
|
|
|
319
364
|
e.forEach(function(l) {
|
|
320
365
|
var s = 0, u = l.target, d = u.fromRect, f = T(u), g = u.prevFromRect, w = u.prevToRect, v = l.rect, E = dt(u, !0);
|
|
321
366
|
E && (f.top -= E.f, f.left -= E.e), u.toRect = f, u.thisAnimationDuration && Gt(g, f) && !Gt(d, f) && // Make sure animatingRect is on line between toRect & fromRect
|
|
322
|
-
(v.top - f.top) / (v.left - f.left) === (d.top - f.top) / (d.left - f.left) && (s =
|
|
367
|
+
(v.top - f.top) / (v.left - f.left) === (d.top - f.top) / (d.left - f.left) && (s = wn(v, g, w, r.options)), Gt(f, d) || (u.prevFromRect = d, u.prevToRect = f, s || (s = r.options.animation), r.animate(u, v, f, s)), s && (i = !0, a = Math.max(a, s), clearTimeout(u.animationResetTimer), u.animationResetTimer = setTimeout(function() {
|
|
323
368
|
u.animationTime = 0, u.prevFromRect = null, u.fromRect = null, u.prevToRect = null, u.thisAnimationDuration = null;
|
|
324
369
|
}, s), u.thisAnimationDuration = s);
|
|
325
370
|
}), clearTimeout(t), i ? t = setTimeout(function() {
|
|
@@ -330,17 +375,17 @@ function pn() {
|
|
|
330
375
|
if (a) {
|
|
331
376
|
h(o, "transition", ""), h(o, "transform", "");
|
|
332
377
|
var l = dt(this.el), s = l && l.a, u = l && l.d, d = (r.left - i.left) / (s || 1), f = (r.top - i.top) / (u || 1);
|
|
333
|
-
o.animatingX = !!d, o.animatingY = !!f, h(o, "transform", "translate3d(" + d + "px," + f + "px,0)"), this.forRepaintDummy =
|
|
378
|
+
o.animatingX = !!d, o.animatingY = !!f, h(o, "transform", "translate3d(" + d + "px," + f + "px,0)"), this.forRepaintDummy = En(o), h(o, "transition", "transform " + a + "ms" + (this.options.easing ? " " + this.options.easing : "")), h(o, "transform", "translate3d(0,0,0)"), typeof o.animated == "number" && clearTimeout(o.animated), o.animated = setTimeout(function() {
|
|
334
379
|
h(o, "transition", ""), h(o, "transform", ""), o.animated = !1, o.animatingX = !1, o.animatingY = !1;
|
|
335
380
|
}, a);
|
|
336
381
|
}
|
|
337
382
|
}
|
|
338
383
|
};
|
|
339
384
|
}
|
|
340
|
-
function
|
|
385
|
+
function En(e) {
|
|
341
386
|
return e.offsetWidth;
|
|
342
387
|
}
|
|
343
|
-
function
|
|
388
|
+
function wn(e, t, n, o) {
|
|
344
389
|
return Math.sqrt(Math.pow(t.top - e.top, 2) + Math.pow(t.left - e.left, 2)) / Math.sqrt(Math.pow(t.top - n.top, 2) + Math.pow(t.left - n.left, 2)) * o.animation;
|
|
345
390
|
}
|
|
346
391
|
var lt = [], zt = {
|
|
@@ -395,7 +440,7 @@ var lt = [], zt = {
|
|
|
395
440
|
}), r;
|
|
396
441
|
}
|
|
397
442
|
};
|
|
398
|
-
function
|
|
443
|
+
function _n(e) {
|
|
399
444
|
var t = e.sortable, n = e.rootEl, o = e.name, r = e.targetEl, i = e.cloneEl, a = e.toEl, l = e.fromEl, s = e.oldIndex, u = e.newIndex, d = e.oldDraggableIndex, f = e.newDraggableIndex, g = e.originalEvent, w = e.putSortable, v = e.extraEventProperties;
|
|
400
445
|
if (t = t || n && n[k], !!t) {
|
|
401
446
|
var E, R = t.options, $ = "on" + o.charAt(0).toUpperCase() + o.substr(1);
|
|
@@ -409,8 +454,8 @@ function vn(e) {
|
|
|
409
454
|
n && n.dispatchEvent(E), R[$] && R[$].call(t, E);
|
|
410
455
|
}
|
|
411
456
|
}
|
|
412
|
-
var
|
|
413
|
-
var o = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = o.evt, i =
|
|
457
|
+
var Dn = ["evt"], P = function(t, n) {
|
|
458
|
+
var o = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = o.evt, i = fn(o, Dn);
|
|
414
459
|
xt.pluginEvent.bind(p)(t, n, j({
|
|
415
460
|
dragEl: c,
|
|
416
461
|
parentEl: D,
|
|
@@ -446,7 +491,7 @@ var bn = ["evt"], P = function(t, n) {
|
|
|
446
491
|
}, i));
|
|
447
492
|
};
|
|
448
493
|
function A(e) {
|
|
449
|
-
|
|
494
|
+
_n(j({
|
|
450
495
|
putSortable: x,
|
|
451
496
|
cloneEl: S,
|
|
452
497
|
targetEl: c,
|
|
@@ -457,7 +502,7 @@ function A(e) {
|
|
|
457
502
|
newDraggableIndex: Q
|
|
458
503
|
}, e));
|
|
459
504
|
}
|
|
460
|
-
var c, D, m, _, at, Lt, S, J, ct, M, Dt, Q, Ot, x, ut = !1, Ht = !1, Vt = [], rt, B, Ut, qt, De, Se, bt, st, St, Ct = !1, At = !1, Rt, I, Kt = [], re = !1, Wt = [], $t = typeof document < "u", Pt = Ne, Ce = Tt || q ? "cssFloat" : "float",
|
|
505
|
+
var c, D, m, _, at, Lt, S, J, ct, M, Dt, Q, Ot, x, ut = !1, Ht = !1, Vt = [], rt, B, Ut, qt, De, Se, bt, st, St, Ct = !1, At = !1, Rt, I, Kt = [], re = !1, Wt = [], $t = typeof document < "u", Pt = Ne, Ce = Tt || q ? "cssFloat" : "float", Sn = $t && !pn && !Ne && "draggable" in document.createElement("div"), Xe = (function() {
|
|
461
506
|
if ($t) {
|
|
462
507
|
if (q)
|
|
463
508
|
return !1;
|
|
@@ -475,10 +520,10 @@ var c, D, m, _, at, Lt, S, J, ct, M, Dt, Q, Ot, x, ut = !1, Ht = !1, Vt = [], rt
|
|
|
475
520
|
return a && (s.clear === "both" || s.clear === f) ? "vertical" : "horizontal";
|
|
476
521
|
}
|
|
477
522
|
return i && (l.display === "block" || l.display === "flex" || l.display === "table" || l.display === "grid" || u >= r && o[Ce] === "none" || a && o[Ce] === "none" && u + d > r) ? "vertical" : "horizontal";
|
|
478
|
-
},
|
|
523
|
+
}, Cn = function(t, n, o) {
|
|
479
524
|
var r = o ? t.left : t.top, i = o ? t.right : t.bottom, a = o ? t.width : t.height, l = o ? n.left : n.top, s = o ? n.right : n.bottom, u = o ? n.width : n.height;
|
|
480
525
|
return r === l || i === s || r + a / 2 === l + u / 2;
|
|
481
|
-
},
|
|
526
|
+
}, Tn = function(t, n) {
|
|
482
527
|
var o;
|
|
483
528
|
return Vt.some(function(r) {
|
|
484
529
|
var i = r[k].options.emptyInsertThreshold;
|
|
@@ -520,7 +565,7 @@ $t && document.addEventListener("click", function(e) {
|
|
|
520
565
|
var it = function(t) {
|
|
521
566
|
if (c) {
|
|
522
567
|
t = t.touches ? t.touches[0] : t;
|
|
523
|
-
var n =
|
|
568
|
+
var n = Tn(t.clientX, t.clientY);
|
|
524
569
|
if (n) {
|
|
525
570
|
var o = {};
|
|
526
571
|
for (var r in t)
|
|
@@ -528,7 +573,7 @@ var it = function(t) {
|
|
|
528
573
|
o.target = o.rootEl = n, o.preventDefault = void 0, o.stopPropagation = void 0, n[k]._onDragOver(o);
|
|
529
574
|
}
|
|
530
575
|
}
|
|
531
|
-
},
|
|
576
|
+
}, xn = function(t) {
|
|
532
577
|
c && c.parentNode[k]._isOutsideThisEl(t.target);
|
|
533
578
|
};
|
|
534
579
|
function p(e, t) {
|
|
@@ -586,7 +631,7 @@ function p(e, t) {
|
|
|
586
631
|
Ye(t);
|
|
587
632
|
for (var r in this)
|
|
588
633
|
r.charAt(0) === "_" && typeof this[r] == "function" && (this[r] = this[r].bind(this));
|
|
589
|
-
this.nativeDraggable = t.forceFallback ? !1 :
|
|
634
|
+
this.nativeDraggable = t.forceFallback ? !1 : Sn, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ? y(e, "pointerdown", this._onTapStart) : (y(e, "mousedown", this._onTapStart), y(e, "touchstart", this._onTapStart)), this.nativeDraggable && (y(e, "dragover", this), y(e, "dragenter", this)), Vt.push(this.el), t.store && t.store.get && this.sort(t.store.get(this) || []), U(this, yn());
|
|
590
635
|
}
|
|
591
636
|
p.prototype = /** @lends Sortable.prototype */
|
|
592
637
|
{
|
|
@@ -600,7 +645,7 @@ p.prototype = /** @lends Sortable.prototype */
|
|
|
600
645
|
_onTapStart: function(t) {
|
|
601
646
|
if (t.cancelable) {
|
|
602
647
|
var n = this, o = this.el, r = this.options, i = r.preventOnFilter, a = t.type, l = t.touches && t.touches[0] || t.pointerType && t.pointerType === "touch" && t, s = (l || t).target, u = t.target.shadowRoot && (t.path && t.path[0] || t.composedPath && t.composedPath()[0]) || s, d = r.filter;
|
|
603
|
-
if (
|
|
648
|
+
if (kn(o), !c && !(/mousedown|pointerdown/.test(a) && t.button !== 0 || r.disabled) && !u.isContentEditable && !(!this.nativeDraggable && wt && s && s.tagName.toUpperCase() === "SELECT") && (s = V(s, r.draggable, o, !1), !(s && s.animated) && Lt !== s)) {
|
|
604
649
|
if (ct = L(s), Dt = L(s, r.draggable), typeof d == "function") {
|
|
605
650
|
if (d.call(this, t, s, this)) {
|
|
606
651
|
A({
|
|
@@ -693,7 +738,7 @@ p.prototype = /** @lends Sortable.prototype */
|
|
|
693
738
|
if (ut = !1, _ && c) {
|
|
694
739
|
P("dragStarted", this, {
|
|
695
740
|
evt: n
|
|
696
|
-
}), this.nativeDraggable && y(document, "dragover",
|
|
741
|
+
}), this.nativeDraggable && y(document, "dragover", xn);
|
|
697
742
|
var o = this.options;
|
|
698
743
|
!t && F(c, o.dragClass, !1), F(c, o.ghostClass, !0), p.active = this, t && this._appendGhost(), A({
|
|
699
744
|
sortable: this,
|
|
@@ -824,12 +869,12 @@ p.prototype = /** @lends Sortable.prototype */
|
|
|
824
869
|
if (a)
|
|
825
870
|
return D = _, $(), this._hideClone(), R("revert"), p.eventCanceled || (at ? _.insertBefore(c, at) : _.appendChild(c)), O(!0);
|
|
826
871
|
var Y = ce(n, l.draggable);
|
|
827
|
-
if (!Y ||
|
|
872
|
+
if (!Y || Pn(t, w, this) && !Y.animated) {
|
|
828
873
|
if (Y === c)
|
|
829
874
|
return O(!1);
|
|
830
875
|
if (Y && n === t.target && (o = Y), o && (i = T(o)), Nt(_, n, c, r, o, i, t, !!o) !== !1)
|
|
831
876
|
return $(), n.appendChild(c), D = n, X(), O(!0);
|
|
832
|
-
} else if (Y &&
|
|
877
|
+
} else if (Y && An(t, w, this)) {
|
|
833
878
|
var et = ft(n, 0, l, !0);
|
|
834
879
|
if (et === c)
|
|
835
880
|
return O(!1);
|
|
@@ -837,8 +882,8 @@ p.prototype = /** @lends Sortable.prototype */
|
|
|
837
882
|
return $(), n.insertBefore(c, et), D = n, X(), O(!0);
|
|
838
883
|
} else if (o.parentNode === n) {
|
|
839
884
|
i = T(o);
|
|
840
|
-
var H = 0, nt, ht = c.parentNode !== n, N = !
|
|
841
|
-
st !== o && (nt = i[pt], Ct = !1, At = !N && l.invertSwap || ht), H =
|
|
885
|
+
var H = 0, nt, ht = c.parentNode !== n, N = !Cn(c.animated && c.toRect || r, o.animated && o.toRect || i, w), pt = w ? "top" : "left", K = we(o, "top", "top") || we(c, "top", "top"), mt = K ? K.scrollTop : void 0;
|
|
886
|
+
st !== o && (nt = i[pt], Ct = !1, At = !N && l.invertSwap || ht), H = Nn(t, o, i, w, N ? 1 : l.swapThreshold, l.invertedSwapThreshold == null ? l.swapThreshold : l.invertedSwapThreshold, At, st === o);
|
|
842
887
|
var G;
|
|
843
888
|
if (H !== 0) {
|
|
844
889
|
var ot = L(c);
|
|
@@ -853,7 +898,7 @@ p.prototype = /** @lends Sortable.prototype */
|
|
|
853
898
|
Z = H === 1;
|
|
854
899
|
var It = Nt(_, n, c, r, o, i, t, Z);
|
|
855
900
|
if (It !== !1)
|
|
856
|
-
return (It === 1 || It === -1) && (Z = It === 1), re = !0, setTimeout(
|
|
901
|
+
return (It === 1 || It === -1) && (Z = It === 1), re = !0, setTimeout(On, 30), $(), Z && !gt ? n.appendChild(c) : o.parentNode.insertBefore(c, Z ? gt : o), K && Le(K, 0, mt - K.scrollTop), D = c.parentNode, nt !== void 0 && !At && (Rt = Math.abs(nt - T(o)[pt])), X(), O(!0);
|
|
857
902
|
}
|
|
858
903
|
if (n.contains(c))
|
|
859
904
|
return O(!1);
|
|
@@ -935,7 +980,7 @@ p.prototype = /** @lends Sortable.prototype */
|
|
|
935
980
|
break;
|
|
936
981
|
case "dragenter":
|
|
937
982
|
case "dragover":
|
|
938
|
-
c && (this._onDragOver(t),
|
|
983
|
+
c && (this._onDragOver(t), In(t));
|
|
939
984
|
break;
|
|
940
985
|
case "selectstart":
|
|
941
986
|
t.preventDefault();
|
|
@@ -948,7 +993,7 @@ p.prototype = /** @lends Sortable.prototype */
|
|
|
948
993
|
*/
|
|
949
994
|
toArray: function() {
|
|
950
995
|
for (var t = [], n, o = this.el.children, r = 0, i = o.length, a = this.options; r < i; r++)
|
|
951
|
-
n = o[r], V(n, a.draggable, this.el, !1) && t.push(n.getAttribute(a.dataIdAttr) ||
|
|
996
|
+
n = o[r], V(n, a.draggable, this.el, !1) && t.push(n.getAttribute(a.dataIdAttr) || Mn(n));
|
|
952
997
|
return t;
|
|
953
998
|
},
|
|
954
999
|
/**
|
|
@@ -1020,7 +1065,7 @@ p.prototype = /** @lends Sortable.prototype */
|
|
|
1020
1065
|
}
|
|
1021
1066
|
}
|
|
1022
1067
|
};
|
|
1023
|
-
function
|
|
1068
|
+
function In(e) {
|
|
1024
1069
|
e.dataTransfer && (e.dataTransfer.dropEffect = "move"), e.cancelable && e.preventDefault();
|
|
1025
1070
|
}
|
|
1026
1071
|
function Nt(e, t, n, o, r, i, a, l) {
|
|
@@ -1033,18 +1078,18 @@ function Nt(e, t, n, o, r, i, a, l) {
|
|
|
1033
1078
|
function Zt(e) {
|
|
1034
1079
|
e.draggable = !1;
|
|
1035
1080
|
}
|
|
1036
|
-
function
|
|
1081
|
+
function On() {
|
|
1037
1082
|
re = !1;
|
|
1038
1083
|
}
|
|
1039
|
-
function
|
|
1084
|
+
function An(e, t, n) {
|
|
1040
1085
|
var o = T(ft(n.el, 0, n.options, !0)), r = 10;
|
|
1041
1086
|
return t ? e.clientX < o.left - r || e.clientY < o.top && e.clientX < o.right : e.clientY < o.top - r || e.clientY < o.bottom && e.clientX < o.left;
|
|
1042
1087
|
}
|
|
1043
|
-
function
|
|
1088
|
+
function Pn(e, t, n) {
|
|
1044
1089
|
var o = T(ce(n.el, n.options.draggable)), r = 10;
|
|
1045
1090
|
return t ? e.clientX > o.right + r || e.clientX <= o.right && e.clientY > o.bottom && e.clientX >= o.left : e.clientX > o.right && e.clientY > o.top || e.clientX <= o.right && e.clientY > o.bottom + r;
|
|
1046
1091
|
}
|
|
1047
|
-
function
|
|
1092
|
+
function Nn(e, t, n, o, r, i, a, l) {
|
|
1048
1093
|
var s = o ? e.clientY : e.clientX, u = o ? n.height : n.width, d = o ? n.top : n.left, f = o ? n.bottom : n.right, g = !1;
|
|
1049
1094
|
if (!a) {
|
|
1050
1095
|
if (l && Rt < u * r) {
|
|
@@ -1053,19 +1098,19 @@ function xn(e, t, n, o, r, i, a, l) {
|
|
|
1053
1098
|
else if (St === 1 ? s < d + Rt : s > f - Rt)
|
|
1054
1099
|
return -St;
|
|
1055
1100
|
} else if (s > d + u * (1 - r) / 2 && s < f - u * (1 - r) / 2)
|
|
1056
|
-
return
|
|
1101
|
+
return Fn(t);
|
|
1057
1102
|
}
|
|
1058
1103
|
return g = g || a, g && (s < d + u * i / 2 || s > f - u * i / 2) ? s > d + u / 2 ? 1 : -1 : 0;
|
|
1059
1104
|
}
|
|
1060
|
-
function
|
|
1105
|
+
function Fn(e) {
|
|
1061
1106
|
return L(c) < L(e) ? 1 : -1;
|
|
1062
1107
|
}
|
|
1063
|
-
function
|
|
1108
|
+
function Mn(e) {
|
|
1064
1109
|
for (var t = e.tagName + e.className + e.src + e.href + e.textContent, n = t.length, o = 0; n--; )
|
|
1065
1110
|
o += t.charCodeAt(n);
|
|
1066
1111
|
return o.toString(36);
|
|
1067
1112
|
}
|
|
1068
|
-
function
|
|
1113
|
+
function kn(e) {
|
|
1069
1114
|
Wt.length = 0;
|
|
1070
1115
|
for (var t = e.getElementsByTagName("input"), n = t.length; n--; ) {
|
|
1071
1116
|
var o = t[n];
|
|
@@ -1089,7 +1134,7 @@ p.utils = {
|
|
|
1089
1134
|
is: function(t, n) {
|
|
1090
1135
|
return !!V(t, n, t, !1);
|
|
1091
1136
|
},
|
|
1092
|
-
extend:
|
|
1137
|
+
extend: vn,
|
|
1093
1138
|
throttle: ke,
|
|
1094
1139
|
closest: V,
|
|
1095
1140
|
toggleClass: F,
|
|
@@ -1115,9 +1160,9 @@ p.mount = function() {
|
|
|
1115
1160
|
p.create = function(e, t) {
|
|
1116
1161
|
return new p(e, t);
|
|
1117
1162
|
};
|
|
1118
|
-
p.version =
|
|
1163
|
+
p.version = hn;
|
|
1119
1164
|
var C = [], yt, ae, le = !1, Qt, Jt, jt, Et;
|
|
1120
|
-
function
|
|
1165
|
+
function Ln() {
|
|
1121
1166
|
function e() {
|
|
1122
1167
|
this.defaults = {
|
|
1123
1168
|
scroll: !0,
|
|
@@ -1139,7 +1184,7 @@ function Pn() {
|
|
|
1139
1184
|
!this.options.dragOverBubble && !o.rootEl && this._handleAutoScroll(o);
|
|
1140
1185
|
},
|
|
1141
1186
|
drop: function() {
|
|
1142
|
-
this.sortable.nativeDraggable ? b(document, "dragover", this._handleAutoScroll) : (b(document, "pointermove", this._handleFallbackAutoScroll), b(document, "touchmove", this._handleFallbackAutoScroll), b(document, "mousemove", this._handleFallbackAutoScroll)), Te(), Bt(),
|
|
1187
|
+
this.sortable.nativeDraggable ? b(document, "dragover", this._handleAutoScroll) : (b(document, "pointermove", this._handleFallbackAutoScroll), b(document, "touchmove", this._handleFallbackAutoScroll), b(document, "mousemove", this._handleFallbackAutoScroll)), Te(), Bt(), bn();
|
|
1143
1188
|
},
|
|
1144
1189
|
nulling: function() {
|
|
1145
1190
|
jt = ae = yt = le = Et = Qt = Jt = null, C.length = 0;
|
|
@@ -1242,7 +1287,7 @@ fe.prototype = {
|
|
|
1242
1287
|
U(fe, {
|
|
1243
1288
|
pluginName: "removeOnSpill"
|
|
1244
1289
|
});
|
|
1245
|
-
p.mount(new
|
|
1290
|
+
p.mount(new Ln());
|
|
1246
1291
|
p.mount(fe, de);
|
|
1247
1292
|
function ee(e) {
|
|
1248
1293
|
e.parentElement !== null && e.parentElement.removeChild(e);
|
|
@@ -1251,25 +1296,25 @@ function xe(e, t, n) {
|
|
|
1251
1296
|
const o = n === 0 ? e.children[0] : e.children[n - 1].nextSibling;
|
|
1252
1297
|
e.insertBefore(t, o);
|
|
1253
1298
|
}
|
|
1254
|
-
function
|
|
1299
|
+
function Rn() {
|
|
1255
1300
|
return typeof window < "u" ? window.console : global.console;
|
|
1256
1301
|
}
|
|
1257
|
-
const
|
|
1258
|
-
function
|
|
1302
|
+
const Xn = Rn();
|
|
1303
|
+
function Bn(e) {
|
|
1259
1304
|
const t = /* @__PURE__ */ Object.create(null);
|
|
1260
1305
|
return function(o) {
|
|
1261
1306
|
return t[o] || (t[o] = e(o));
|
|
1262
1307
|
};
|
|
1263
1308
|
}
|
|
1264
|
-
const
|
|
1309
|
+
const Yn = /-(\w)/g, Hn = Bn((e) => e.replace(Yn, (t, n) => n.toUpperCase())), je = ["Start", "Add", "Remove", "Update", "End"], $e = ["Choose", "Unchoose", "Sort", "Filter", "Clone"], Ge = ["Move"], Vn = [Ge, je, $e].flatMap((e) => e).map((e) => `on${e}`), se = {
|
|
1265
1310
|
manage: Ge,
|
|
1266
1311
|
manageAndEmit: je,
|
|
1267
1312
|
emit: $e
|
|
1268
1313
|
};
|
|
1269
|
-
function
|
|
1270
|
-
return
|
|
1314
|
+
function Wn(e) {
|
|
1315
|
+
return Vn.indexOf(e) !== -1;
|
|
1271
1316
|
}
|
|
1272
|
-
const
|
|
1317
|
+
const jn = [
|
|
1273
1318
|
"a",
|
|
1274
1319
|
"abbr",
|
|
1275
1320
|
"address",
|
|
@@ -1388,10 +1433,10 @@ const Bn = [
|
|
|
1388
1433
|
"video",
|
|
1389
1434
|
"wbr"
|
|
1390
1435
|
];
|
|
1391
|
-
function
|
|
1392
|
-
return
|
|
1436
|
+
function $n(e) {
|
|
1437
|
+
return jn.includes(e);
|
|
1393
1438
|
}
|
|
1394
|
-
function
|
|
1439
|
+
function Gn(e) {
|
|
1395
1440
|
return ["transition-group", "TransitionGroup"].includes(e);
|
|
1396
1441
|
}
|
|
1397
1442
|
function ze(e) {
|
|
@@ -1400,7 +1445,7 @@ function ze(e) {
|
|
|
1400
1445
|
function Ue(e) {
|
|
1401
1446
|
return e.reduce((t, [n, o]) => (t[n] = o, t), {});
|
|
1402
1447
|
}
|
|
1403
|
-
function
|
|
1448
|
+
function zn({ $attrs: e, componentData: t = {} }) {
|
|
1404
1449
|
return {
|
|
1405
1450
|
...Ue(
|
|
1406
1451
|
Object.entries(e).filter(([o, r]) => ze(o))
|
|
@@ -1408,7 +1453,7 @@ function Vn({ $attrs: e, componentData: t = {} }) {
|
|
|
1408
1453
|
...t
|
|
1409
1454
|
};
|
|
1410
1455
|
}
|
|
1411
|
-
function
|
|
1456
|
+
function Un({ $attrs: e, callBackBuilder: t }) {
|
|
1412
1457
|
const n = Ue(qe(e));
|
|
1413
1458
|
Object.entries(t).forEach(([r, i]) => {
|
|
1414
1459
|
se[r].forEach((a) => {
|
|
@@ -1422,10 +1467,10 @@ function Wn({ $attrs: e, callBackBuilder: t }) {
|
|
|
1422
1467
|
};
|
|
1423
1468
|
}
|
|
1424
1469
|
function qe(e) {
|
|
1425
|
-
return Object.entries(e).filter(([t, n]) => !ze(t)).map(([t, n]) => [
|
|
1470
|
+
return Object.entries(e).filter(([t, n]) => !ze(t)).map(([t, n]) => [Hn(t), n]).filter(([t, n]) => !Wn(t));
|
|
1426
1471
|
}
|
|
1427
|
-
const Ie = ({ el: e }) => e,
|
|
1428
|
-
class
|
|
1472
|
+
const Ie = ({ el: e }) => e, qn = (e, t) => e.__draggable_context = t, Oe = (e) => e.__draggable_context;
|
|
1473
|
+
class Kn {
|
|
1429
1474
|
constructor({
|
|
1430
1475
|
nodes: { header: t, default: n, footer: o },
|
|
1431
1476
|
root: r,
|
|
@@ -1443,7 +1488,7 @@ class $n {
|
|
|
1443
1488
|
updated() {
|
|
1444
1489
|
const { defaultNodes: t, realList: n } = this;
|
|
1445
1490
|
t.forEach((o, r) => {
|
|
1446
|
-
|
|
1491
|
+
qn(Ie(o), {
|
|
1447
1492
|
element: n[r],
|
|
1448
1493
|
index: r
|
|
1449
1494
|
});
|
|
@@ -1467,13 +1512,13 @@ class $n {
|
|
|
1467
1512
|
return t < u ? 0 : r;
|
|
1468
1513
|
}
|
|
1469
1514
|
}
|
|
1470
|
-
function
|
|
1515
|
+
function Zn(e, t) {
|
|
1471
1516
|
const n = e[t];
|
|
1472
1517
|
return n ? n() : [];
|
|
1473
1518
|
}
|
|
1474
|
-
function
|
|
1519
|
+
function Qn({ $slots: e, realList: t, getKey: n }) {
|
|
1475
1520
|
const o = t || [], [r, i] = ["header", "footer"].map(
|
|
1476
|
-
(s) =>
|
|
1521
|
+
(s) => Zn(e, s)
|
|
1477
1522
|
), { item: a } = e;
|
|
1478
1523
|
if (!a)
|
|
1479
1524
|
throw new Error("draggable element must have an item slot");
|
|
@@ -1488,20 +1533,20 @@ function zn({ $slots: e, realList: t, getKey: n }) {
|
|
|
1488
1533
|
default: l
|
|
1489
1534
|
};
|
|
1490
1535
|
}
|
|
1491
|
-
function
|
|
1492
|
-
const t =
|
|
1536
|
+
function Jn(e) {
|
|
1537
|
+
const t = Gn(e), n = !$n(e) && !t;
|
|
1493
1538
|
return {
|
|
1494
1539
|
transition: t,
|
|
1495
1540
|
externalComponent: n,
|
|
1496
|
-
tag: n ?
|
|
1541
|
+
tag: n ? on(e) : t ? nn : e
|
|
1497
1542
|
};
|
|
1498
1543
|
}
|
|
1499
|
-
function
|
|
1500
|
-
const r =
|
|
1501
|
-
return new
|
|
1544
|
+
function to({ $slots: e, tag: t, realList: n, getKey: o }) {
|
|
1545
|
+
const r = Qn({ $slots: e, realList: n, getKey: o }), i = Jn(t);
|
|
1546
|
+
return new Kn({ nodes: r, root: i, realList: n });
|
|
1502
1547
|
}
|
|
1503
1548
|
function Ke(e, t) {
|
|
1504
|
-
|
|
1549
|
+
Pe(() => this.$emit(e.toLowerCase(), t));
|
|
1505
1550
|
}
|
|
1506
1551
|
function Ze(e) {
|
|
1507
1552
|
return (t, n) => {
|
|
@@ -1509,14 +1554,14 @@ function Ze(e) {
|
|
|
1509
1554
|
return this[`onDrag${e}`](t, n);
|
|
1510
1555
|
};
|
|
1511
1556
|
}
|
|
1512
|
-
function
|
|
1557
|
+
function eo(e) {
|
|
1513
1558
|
const t = Ze.call(this, e);
|
|
1514
1559
|
return (n, o) => {
|
|
1515
1560
|
t.call(this, n, o), Ke.call(this, e, n);
|
|
1516
1561
|
};
|
|
1517
1562
|
}
|
|
1518
1563
|
let ne = null;
|
|
1519
|
-
const
|
|
1564
|
+
const no = {
|
|
1520
1565
|
list: {
|
|
1521
1566
|
type: Array,
|
|
1522
1567
|
required: !1,
|
|
@@ -1548,15 +1593,15 @@ const Zn = {
|
|
|
1548
1593
|
required: !1,
|
|
1549
1594
|
default: null
|
|
1550
1595
|
}
|
|
1551
|
-
},
|
|
1596
|
+
}, oo = [
|
|
1552
1597
|
"update:modelValue",
|
|
1553
1598
|
"change",
|
|
1554
1599
|
...[...se.manageAndEmit, ...se.emit].map((e) => e.toLowerCase())
|
|
1555
|
-
],
|
|
1600
|
+
], lo = ue({
|
|
1556
1601
|
name: "draggable",
|
|
1557
1602
|
inheritAttrs: !1,
|
|
1558
|
-
props:
|
|
1559
|
-
emits:
|
|
1603
|
+
props: no,
|
|
1604
|
+
emits: oo,
|
|
1560
1605
|
data() {
|
|
1561
1606
|
return {
|
|
1562
1607
|
error: !1
|
|
@@ -1565,21 +1610,21 @@ const Zn = {
|
|
|
1565
1610
|
render() {
|
|
1566
1611
|
try {
|
|
1567
1612
|
this.error = !1;
|
|
1568
|
-
const { $slots: e, $attrs: t, tag: n, componentData: o, realList: r, getKey: i } = this, a =
|
|
1613
|
+
const { $slots: e, $attrs: t, tag: n, componentData: o, realList: r, getKey: i } = this, a = to({
|
|
1569
1614
|
$slots: e,
|
|
1570
1615
|
tag: n,
|
|
1571
1616
|
realList: r,
|
|
1572
1617
|
getKey: i
|
|
1573
1618
|
});
|
|
1574
1619
|
this.componentStructure = a;
|
|
1575
|
-
const l =
|
|
1576
|
-
return a.render(
|
|
1620
|
+
const l = zn({ $attrs: t, componentData: o });
|
|
1621
|
+
return a.render(ve, l);
|
|
1577
1622
|
} catch (e) {
|
|
1578
|
-
return this.error = !0,
|
|
1623
|
+
return this.error = !0, ve("pre", { style: { color: "red" } }, e.stack);
|
|
1579
1624
|
}
|
|
1580
1625
|
},
|
|
1581
1626
|
created() {
|
|
1582
|
-
this.list !== null && this.modelValue !== null &&
|
|
1627
|
+
this.list !== null && this.modelValue !== null && Xn.error(
|
|
1583
1628
|
"modelValue and list props are mutually exclusive! Please set one or another."
|
|
1584
1629
|
);
|
|
1585
1630
|
},
|
|
@@ -1588,10 +1633,10 @@ const Zn = {
|
|
|
1588
1633
|
return;
|
|
1589
1634
|
const { $attrs: e, $el: t, componentStructure: n } = this;
|
|
1590
1635
|
n.updated();
|
|
1591
|
-
const o =
|
|
1636
|
+
const o = Un({
|
|
1592
1637
|
$attrs: e,
|
|
1593
1638
|
callBackBuilder: {
|
|
1594
|
-
manageAndEmit: (i) =>
|
|
1639
|
+
manageAndEmit: (i) => eo.call(this, i),
|
|
1595
1640
|
emit: (i) => Ke.bind(this, i),
|
|
1596
1641
|
manage: (i) => Ze.call(this, i)
|
|
1597
1642
|
}
|
|
@@ -1633,7 +1678,7 @@ const Zn = {
|
|
|
1633
1678
|
return e.__draggable_component__;
|
|
1634
1679
|
},
|
|
1635
1680
|
emitChanges(e) {
|
|
1636
|
-
|
|
1681
|
+
Pe(() => this.$emit("change", e));
|
|
1637
1682
|
},
|
|
1638
1683
|
alterList(e) {
|
|
1639
1684
|
if (this.list) {
|
|
@@ -1722,53 +1767,9 @@ const Zn = {
|
|
|
1722
1767
|
ne = null;
|
|
1723
1768
|
}
|
|
1724
1769
|
}
|
|
1725
|
-
}), Jn = /* @__PURE__ */ ue({
|
|
1726
|
-
__name: "FormColumn",
|
|
1727
|
-
props: {
|
|
1728
|
-
shrinkable: { type: Boolean }
|
|
1729
|
-
},
|
|
1730
|
-
setup(e) {
|
|
1731
|
-
return (t, n) => (Ft(), Mt("div", {
|
|
1732
|
-
class: Pe(["flex-1 flex flex-col space-y-24", { "min-h-0": t.shrinkable }])
|
|
1733
|
-
}, [
|
|
1734
|
-
oe(t.$slots, "default")
|
|
1735
|
-
], 2));
|
|
1736
|
-
}
|
|
1737
|
-
}), to = {
|
|
1738
|
-
key: 0,
|
|
1739
|
-
class: "flex flex-row justify-between items-center"
|
|
1740
|
-
}, eo = { class: "space-y-4" }, no = { class: "fm-typo-en-title-sm-600" }, oo = {
|
|
1741
|
-
key: 0,
|
|
1742
|
-
class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
|
|
1743
|
-
}, lo = /* @__PURE__ */ ue({
|
|
1744
|
-
__name: "FormSection",
|
|
1745
|
-
props: {
|
|
1746
|
-
title: {},
|
|
1747
|
-
subTitle: {},
|
|
1748
|
-
shrinkable: { type: Boolean }
|
|
1749
|
-
},
|
|
1750
|
-
setup(e) {
|
|
1751
|
-
return (t, n) => (Ft(), Mt("div", {
|
|
1752
|
-
class: Pe(["flex flex-col space-y-16", { "min-h-0": t.shrinkable }])
|
|
1753
|
-
}, [
|
|
1754
|
-
t.title ? (Ft(), Mt("div", to, [
|
|
1755
|
-
me("div", eo, [
|
|
1756
|
-
me("p", no, ge(t.title), 1),
|
|
1757
|
-
t.subTitle ? (Ft(), Mt("p", oo, ge(t.subTitle), 1)) : ve("", !0)
|
|
1758
|
-
]),
|
|
1759
|
-
oe(t.$slots, "append-title")
|
|
1760
|
-
])) : ve("", !0),
|
|
1761
|
-
nn(Jn, { shrinkable: t.shrinkable }, {
|
|
1762
|
-
default: on(() => [
|
|
1763
|
-
oe(t.$slots, "default")
|
|
1764
|
-
]),
|
|
1765
|
-
_: 3
|
|
1766
|
-
}, 8, ["shrinkable"])
|
|
1767
|
-
], 2));
|
|
1768
|
-
}
|
|
1769
1770
|
});
|
|
1770
1771
|
export {
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1772
|
+
ao as _,
|
|
1773
|
+
rn as a,
|
|
1774
|
+
lo as d
|
|
1774
1775
|
};
|