bt-core-app 2.2.6 → 2.2.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/bt-core/core/node_modules/vuetify/lib/components/transitions/index.mjs +10 -11
- package/dist/components/BT-Assistant-Menu.vue.mjs +402 -404
- package/dist/components/BT-Background-Task.vue.mjs +44 -46
- package/dist/components/BT-Blade-Item.vue.mjs +64 -63
- package/dist/components/BT-Blade-Items.vue.mjs +2 -2
- package/dist/components/BT-Blade-Items.vue2.mjs +239 -238
- package/dist/components/BT-Blade-Steps.vue.mjs +2 -2
- package/dist/components/BT-Blade-Steps.vue2.mjs +457 -456
- package/dist/components/BT-Blade.vue.mjs +187 -189
- package/dist/components/BT-Camera-Overlay.vue.mjs +139 -141
- package/dist/components/BT-Cron.vue.mjs +127 -126
- package/dist/components/BT-Dialog-Select.vue.mjs +91 -90
- package/dist/components/BT-Drag-Counter.vue.mjs +2 -2
- package/dist/components/BT-Drag-Counter.vue2.mjs +87 -89
- package/dist/components/BT-Entity.vue.mjs +79 -81
- package/dist/components/BT-Error.vue.mjs +23 -25
- package/dist/components/BT-Form-Builder.vue.mjs +221 -220
- package/dist/components/BT-Form-Field.vue.mjs +67 -66
- package/dist/components/BT-Form.vue.mjs +192 -191
- package/dist/components/BT-Header-Option.vue.mjs +21 -20
- package/dist/components/BT-Numpad.vue.mjs +143 -145
- package/dist/components/BT-Select-List-Box.vue.mjs +270 -272
- package/dist/components/BT-Signature-Overlay.vue.mjs +107 -109
- package/dist/components/BT-Signature.vue.mjs +91 -93
- package/dist/components/BT-Slider.vue.mjs +91 -93
- package/dist/components/BT-Square-Check.vue.mjs +66 -68
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,22 +1,23 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { isLengthyArray as B, isNullOrEmpty as
|
|
3
|
-
import { useAuth as
|
|
4
|
-
import { useList as
|
|
5
|
-
import { useNavigation as
|
|
6
|
-
import { useNested as
|
|
7
|
-
import { usePresets as
|
|
8
|
-
import { useRoute as
|
|
9
|
-
import { useHeights as
|
|
10
|
-
import { useDisplay as
|
|
11
|
-
import { VTextField as
|
|
12
|
-
import { VListItem as
|
|
1
|
+
import { defineComponent as be, ref as W, computed as k, watch as Ce, onMounted as Be, resolveComponent as ae, openBlock as i, createBlock as d, unref as e, withCtx as o, renderSlot as y, createElementBlock as p, createVNode as u, withKeys as ie, withModifiers as m, createCommentVNode as c, normalizeStyle as H, mergeProps as L, Fragment as $, renderList as C, createTextVNode as O, toDisplayString as X, createElementVNode as R, normalizeClass as T, createSlots as Ie, nextTick as Ve } from "vue";
|
|
2
|
+
import { isLengthyArray as B, isNullOrEmpty as se, capitalizeWords as oe } from "../composables/helpers.mjs";
|
|
3
|
+
import { useAuth as Ae } from "../composables/auth.mjs";
|
|
4
|
+
import { useList as we } from "../composables/list.mjs";
|
|
5
|
+
import { useNavigation as Ee } from "../composables/navigation.mjs";
|
|
6
|
+
import { useNested as Pe } from "../composables/nested.mjs";
|
|
7
|
+
import { usePresets as Te } from "../composables/presets.mjs";
|
|
8
|
+
import { useRoute as Fe, useRouter as Me } from "vue-router";
|
|
9
|
+
import { useHeights as He } from "../composables/heights.mjs";
|
|
10
|
+
import { useDisplay as Ne } from "vuetify";
|
|
11
|
+
import { VTextField as re } from "../bt-core/core/node_modules/vuetify/lib/components/VTextField/VTextField.mjs";
|
|
12
|
+
import { VListItem as w } from "../bt-core/core/node_modules/vuetify/lib/components/VList/VListItem.mjs";
|
|
13
|
+
import { VSlideXTransition as N, VSlideYTransition as Ue, VFadeTransition as ue, VSlideYReverseTransition as j } from "../bt-core/core/node_modules/vuetify/lib/components/transitions/index.mjs";
|
|
13
14
|
import { VRow as de } from "../bt-core/core/node_modules/vuetify/lib/components/VGrid/VRow.mjs";
|
|
14
15
|
import { VDivider as De } from "../bt-core/core/node_modules/vuetify/lib/components/VDivider/VDivider.mjs";
|
|
15
16
|
import { VTable as Le } from "../bt-core/core/node_modules/vuetify/lib/components/VTable/VTable.mjs";
|
|
16
17
|
import { VPagination as Oe } from "../bt-core/core/node_modules/vuetify/lib/components/VPagination/VPagination.mjs";
|
|
17
|
-
import { VBtn as
|
|
18
|
-
import { VMenu as
|
|
19
|
-
import { VList as
|
|
18
|
+
import { VBtn as h } from "../bt-core/core/node_modules/vuetify/lib/components/VBtn/VBtn.mjs";
|
|
19
|
+
import { VMenu as G } from "../bt-core/core/node_modules/vuetify/lib/components/VMenu/VMenu.mjs";
|
|
20
|
+
import { VList as U } from "../bt-core/core/node_modules/vuetify/lib/components/VList/VList.mjs";
|
|
20
21
|
import { VSpacer as ce } from "../bt-core/core/node_modules/vuetify/lib/components/VGrid/VSpacer.mjs";
|
|
21
22
|
import { VIcon as pe } from "../bt-core/core/node_modules/vuetify/lib/components/VIcon/VIcon.mjs";
|
|
22
23
|
const Re = {
|
|
@@ -25,16 +26,16 @@ const Re = {
|
|
|
25
26
|
}, Ge = {
|
|
26
27
|
key: 0,
|
|
27
28
|
class: "d-flex align-center mr-2"
|
|
28
|
-
}, Ke = { key: "0" },
|
|
29
|
+
}, Ke = { key: "0" }, Ye = {
|
|
29
30
|
class: "d-flex",
|
|
30
31
|
key: "a1"
|
|
31
|
-
},
|
|
32
|
+
}, qe = {
|
|
32
33
|
key: "itemActions",
|
|
33
34
|
class: "text-right"
|
|
34
|
-
}, Qe = ["onClick"], We = { key: "0" },
|
|
35
|
+
}, Qe = ["onClick"], We = { key: "0" }, Xe = {
|
|
35
36
|
class: "d-flex",
|
|
36
37
|
key: "a1"
|
|
37
|
-
},
|
|
38
|
+
}, je = { key: 0 }, gt = /* @__PURE__ */ be({
|
|
38
39
|
__name: "BT-Blade-Items",
|
|
39
40
|
props: {
|
|
40
41
|
actionButtonSize: { default: "x-small" },
|
|
@@ -165,8 +166,8 @@ const Re = {
|
|
|
165
166
|
variant: { default: "page" }
|
|
166
167
|
},
|
|
167
168
|
emits: ["update:selected", "change", "deleted", "fetched", "input", "select", "confirm", "mouse-over-item"],
|
|
168
|
-
setup(
|
|
169
|
-
const
|
|
169
|
+
setup(ye, { emit: ve }) {
|
|
170
|
+
const K = ve, s = ye, J = W(null), Z = W(null), { getValue: x } = Pe(), { xs: he } = Ne(), D = Fe(), P = Te(s.preset), { findDisplay: me } = Ee(), E = Ae(), _ = He(), l = we(s, K, {
|
|
170
171
|
hideActions: !0,
|
|
171
172
|
onError: (t) => {
|
|
172
173
|
if (t.code == 401)
|
|
@@ -174,63 +175,63 @@ const Re = {
|
|
|
174
175
|
else
|
|
175
176
|
return t;
|
|
176
177
|
},
|
|
177
|
-
router:
|
|
178
|
-
route:
|
|
179
|
-
}), g =
|
|
178
|
+
router: Me(),
|
|
179
|
+
route: D
|
|
180
|
+
}), g = k(() => s.actionButtonSize ?? s.size), fe = k(() => P.canAdd ?? s.canAdd), ee = k(() => {
|
|
180
181
|
const t = P.fadingActions ?? s.fadingActions;
|
|
181
182
|
return l.currentExternalParty.value == null && (t ?? !he.value);
|
|
182
|
-
}), ge =
|
|
183
|
-
var n,
|
|
184
|
-
let t = s.label ?? (s.variant == "page" ? (n =
|
|
185
|
-
return s.showCount && (s.paginate == "server" ? l.totalCount.value != null && (t = `${t} (${l.totalCount.value})`) : ((
|
|
186
|
-
}),
|
|
183
|
+
}), ge = k(() => P.hideColumns ?? s.hideColumns), Se = k(() => P.hideFilters ?? s.hideFilters), Y = k(() => (P.hideIntegrations ?? s.hideIntegrations) || l.proxyID.value != null), ke = k(() => P.hideRefresh ?? s.hideRefresh), te = k(() => !!s.hideSubtoolbar || s.variant == "inline"), $e = k(() => {
|
|
184
|
+
var n, f, z;
|
|
185
|
+
let t = s.label ?? (s.variant == "page" ? (n = D == null ? void 0 : D.meta) == null ? void 0 : n.displayName : void 0) ?? me(s.nav);
|
|
186
|
+
return s.showCount && (s.paginate == "server" ? l.totalCount.value != null && (t = `${t} (${l.totalCount.value})`) : ((f = l.filteredItems.value) == null ? void 0 : f.length) != null && ((z = l.asyncItems.value) == null ? void 0 : z.length) != null && (t = `${t} (${l.filteredItems.value.length} of ${l.asyncItems.value.length})`)), t;
|
|
187
|
+
}), q = k(() => s.variant == "inline" && (s.canSearch || B(s.searchProps))), F = k(() => {
|
|
187
188
|
let t = s.opacity != null ? `opacity: ${s.opacity};` : "";
|
|
188
189
|
if (s.actualHeight != null)
|
|
189
190
|
return `${t} ${s.heightStrat == "upto" ? "max-height" : "height"}: calc(${s.actualHeight})`;
|
|
190
191
|
if (s.actualUsedHeight != null)
|
|
191
|
-
return `${t} ${s.heightStrat == "upto" ? "max-height" : "height"}: calc(100vh - ${
|
|
192
|
+
return `${t} ${s.heightStrat == "upto" ? "max-height" : "height"}: calc(100vh - ${_.getUsedHeight(s.actualUsedHeight)}px)`;
|
|
192
193
|
{
|
|
193
194
|
let n = 154;
|
|
194
|
-
return s.bordered ? n += 26 : s.variant == "page" && (n += 16), s.variant == "pure" && (n -= 96),
|
|
195
|
+
return s.bordered ? n += 26 : s.variant == "page" && (n += 16), s.variant == "pure" && (n -= 96), te.value && (n -= 48), s.hideToolbar == !0 && (n -= 48), se(s.paginate) && (n -= 58), `${t} ${s.heightStrat == "upto" ? "max-height" : "height"}: calc(100vh - ${_.getUsedHeight(n)}px)`;
|
|
195
196
|
}
|
|
196
|
-
}),
|
|
197
|
+
}), M = W([]), le = k({
|
|
197
198
|
get() {
|
|
198
|
-
const t = s.selected ??
|
|
199
|
+
const t = s.selected ?? M.value;
|
|
199
200
|
let n = s.returnCSV ? t.split(",") : t;
|
|
200
201
|
if (s.selectSingle && !Array.isArray(n) && (n = [n]), s.returnIndex && s.returnCSV)
|
|
201
|
-
return n.map((
|
|
202
|
-
let
|
|
203
|
-
return s.itemValue != null && B(n) ? l.filteredItems.value.forEach((
|
|
204
|
-
const
|
|
205
|
-
n.some((
|
|
206
|
-
}) : s.itemValue == null &&
|
|
202
|
+
return n.map((z) => Number.parseInt(z));
|
|
203
|
+
let f = [];
|
|
204
|
+
return s.itemValue != null && B(n) ? l.filteredItems.value.forEach((z) => {
|
|
205
|
+
const r = x(z, s.itemValue);
|
|
206
|
+
n.some((S) => S == r) && f.push(z);
|
|
207
|
+
}) : s.itemValue == null && f.push(...n), s.selectSingle ? B(f) ? [f[0]] : [] : f;
|
|
207
208
|
},
|
|
208
209
|
set(t) {
|
|
209
210
|
if (t == null)
|
|
210
|
-
|
|
211
|
+
K("update:selected", t), M.value = [];
|
|
211
212
|
else {
|
|
212
213
|
let n = t;
|
|
213
|
-
s.returnIndex ? n = t.map((
|
|
214
|
+
s.returnIndex ? n = t.map((f) => l.filteredItems.value.indexOf((z) => z === f)) : s.itemValue != null && (n = t.map((f) => x(f, s.itemValue))), s.selectSingle ? (n = B(n) ? n[0] : void 0, M.value = n != null ? [n] : []) : M.value = n, s.returnCSV && n != null && (n = n.toString()), K("update:selected", n), M.value = n;
|
|
214
215
|
}
|
|
215
216
|
}
|
|
216
217
|
});
|
|
217
|
-
function
|
|
218
|
-
s.onFocusSearch != null ? s.onFocusSearch() :
|
|
219
|
-
var n,
|
|
218
|
+
function ne() {
|
|
219
|
+
s.onFocusSearch != null ? s.onFocusSearch() : Ve(() => {
|
|
220
|
+
var n, f;
|
|
220
221
|
let t;
|
|
221
|
-
|
|
222
|
+
q.value ? t = (n = Z.value) == null ? void 0 : n.$el.querySelector("input:not([type=hidden]),textarea:not([type=hidden])") : l.showSearch.value && (t = (f = J.value) == null ? void 0 : f.$el.querySelector("input:not([type=hidden]),textarea:not([type=hidden])")), t == null || t.focus();
|
|
222
223
|
});
|
|
223
224
|
}
|
|
224
225
|
function ze() {
|
|
225
226
|
(s.canSearch !== !1 || B(s.searchProps)) && !l.showSearch.value && l.toggleSearch();
|
|
226
227
|
}
|
|
227
|
-
return
|
|
228
|
-
t &&
|
|
229
|
-
}),
|
|
230
|
-
|
|
228
|
+
return Ce(l.showSearch, (t) => {
|
|
229
|
+
t && ne();
|
|
230
|
+
}), Be(() => {
|
|
231
|
+
ne();
|
|
231
232
|
}), (t, n) => {
|
|
232
|
-
const
|
|
233
|
-
return i(), d(
|
|
233
|
+
const f = ae("bt-header-option"), z = ae("bt-blade");
|
|
234
|
+
return i(), d(z, {
|
|
234
235
|
onTitled: ze,
|
|
235
236
|
bladeBasic: "",
|
|
236
237
|
bladeName: t.bladeName,
|
|
@@ -239,19 +240,19 @@ const Re = {
|
|
|
239
240
|
density: t.density,
|
|
240
241
|
flat: t.flat,
|
|
241
242
|
errorMsg: e(l).errorMsg.value,
|
|
242
|
-
hideSubtoolbar:
|
|
243
|
+
hideSubtoolbar: te.value,
|
|
243
244
|
hideToolbar: t.hideToolbar,
|
|
244
245
|
label: $e.value,
|
|
245
246
|
loadingMsg: e(l).loadingMsg.value,
|
|
246
247
|
opacity: t.opacity,
|
|
247
248
|
preset: t.preset,
|
|
248
|
-
showOnlyTitleLeft:
|
|
249
|
+
showOnlyTitleLeft: q.value && e(l).showSearch.value,
|
|
249
250
|
size: t.size,
|
|
250
251
|
transparent: t.transparent,
|
|
251
252
|
variant: t.variant
|
|
252
253
|
}, {
|
|
253
254
|
"blade-toolbar": o(() => [
|
|
254
|
-
|
|
255
|
+
y(t.$slots, "blade-toolbar", {
|
|
255
256
|
refresh: e(l).refresh,
|
|
256
257
|
searchString: e(l).searchString,
|
|
257
258
|
showSearch: e(l).showSearch,
|
|
@@ -260,23 +261,23 @@ const Re = {
|
|
|
260
261
|
}, void 0, !0)
|
|
261
262
|
]),
|
|
262
263
|
"blade-toolbar-left": o(() => [
|
|
263
|
-
|
|
264
|
+
y(t.$slots, "toolbar-left", { ui: e(l) }, void 0, !0)
|
|
264
265
|
]),
|
|
265
266
|
"blade-title-left": o(() => [
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
267
|
+
q.value ? (i(), p("div", Re, [
|
|
268
|
+
y(t.$slots, "search-box", { ui: e(l) }, () => [
|
|
269
|
+
u(e(h), {
|
|
269
270
|
icon: e(l).showSearch.value ? "$close" : "$magnify",
|
|
270
271
|
size: t.size,
|
|
271
272
|
onClick: e(l).toggleSearch,
|
|
272
273
|
variant: "text"
|
|
273
274
|
}, null, 8, ["icon", "size", "onClick"]),
|
|
274
|
-
|
|
275
|
+
u(e(N), { "hide-on-leave": "" }, {
|
|
275
276
|
default: o(() => [
|
|
276
|
-
e(l).showSearch.value ? (i(), d(e(
|
|
277
|
+
e(l).showSearch.value ? (i(), d(e(re), {
|
|
277
278
|
key: 0,
|
|
278
279
|
"onClick:appendInner": n[0] || (n[0] = () => e(l).refresh({ deepRefresh: !0 })),
|
|
279
|
-
onKeyup: n[1] || (n[1] =
|
|
280
|
+
onKeyup: n[1] || (n[1] = ie(m(() => {
|
|
280
281
|
console.log("kk");
|
|
281
282
|
}, ["stop"]), ["native", "enter"])),
|
|
282
283
|
"append-inner-icon": "$magnify",
|
|
@@ -286,11 +287,11 @@ const Re = {
|
|
|
286
287
|
"hide-details": "",
|
|
287
288
|
placeholder: "Find",
|
|
288
289
|
ref_key: "inlineSearchEl",
|
|
289
|
-
ref:
|
|
290
|
+
ref: Z,
|
|
290
291
|
style: { width: "200px" },
|
|
291
292
|
variant: "solo",
|
|
292
293
|
modelValue: e(l).searchString.value,
|
|
293
|
-
"onUpdate:modelValue": n[2] || (n[2] = (
|
|
294
|
+
"onUpdate:modelValue": n[2] || (n[2] = (r) => e(l).searchString.value = r)
|
|
294
295
|
}, null, 8, ["density", "modelValue"])) : c("", !0)
|
|
295
296
|
]),
|
|
296
297
|
_: 1
|
|
@@ -299,22 +300,22 @@ const Re = {
|
|
|
299
300
|
])) : c("", !0)
|
|
300
301
|
]),
|
|
301
302
|
"blade-toolbar-right": o(() => [
|
|
302
|
-
|
|
303
|
-
style:
|
|
303
|
+
y(t.$slots, "toolbar-right", {
|
|
304
|
+
style: H(F.value),
|
|
304
305
|
ui: e(l)
|
|
305
306
|
}, void 0, !0),
|
|
306
|
-
ke.value ? c("", !0) : (i(), d(e(
|
|
307
|
+
ke.value ? c("", !0) : (i(), d(e(h), {
|
|
307
308
|
key: 0,
|
|
308
309
|
icon: "$refresh",
|
|
309
|
-
onClick: n[3] || (n[3] =
|
|
310
|
+
onClick: n[3] || (n[3] = m((r) => e(l).refresh({ deepRefresh: !0 }), ["stop"])),
|
|
310
311
|
size: t.size,
|
|
311
312
|
title: "Refresh",
|
|
312
313
|
variant: "text"
|
|
313
314
|
}, null, 8, ["size"])),
|
|
314
|
-
fe.value ? (i(), d(e(
|
|
315
|
+
fe.value ? (i(), d(e(h), {
|
|
315
316
|
key: 1,
|
|
316
317
|
icon: "$plus",
|
|
317
|
-
onClick: n[4] || (n[4] =
|
|
318
|
+
onClick: n[4] || (n[4] = m((r) => e(l).add(t.variant), ["stop"])),
|
|
318
319
|
size: t.size,
|
|
319
320
|
disabled: !e(E).canEdit(t.nav),
|
|
320
321
|
title: "Add",
|
|
@@ -322,44 +323,44 @@ const Re = {
|
|
|
322
323
|
}, null, 8, ["size", "disabled"])) : c("", !0)
|
|
323
324
|
]),
|
|
324
325
|
subtoolbar: o(() => [
|
|
325
|
-
|
|
326
|
-
t.hideSubtoolbarSettings ? c("", !0) : (i(), d(e(
|
|
326
|
+
y(t.$slots, "subtoolbar", {}, () => [
|
|
327
|
+
t.hideSubtoolbarSettings ? c("", !0) : (i(), d(e(G), {
|
|
327
328
|
key: 0,
|
|
328
329
|
"close-on-content-click": !1,
|
|
329
330
|
density: t.density
|
|
330
331
|
}, {
|
|
331
|
-
activator: o(({ props:
|
|
332
|
-
|
|
332
|
+
activator: o(({ props: r }) => [
|
|
333
|
+
u(e(h), L({
|
|
333
334
|
icon: "$cog",
|
|
334
335
|
size: t.size
|
|
335
|
-
},
|
|
336
|
+
}, r, { variant: "text" }), null, 16, ["size"])
|
|
336
337
|
]),
|
|
337
338
|
default: o(() => [
|
|
338
|
-
|
|
339
|
+
u(e(U), {
|
|
339
340
|
density: t.density,
|
|
340
341
|
"min-width": "300"
|
|
341
342
|
}, {
|
|
342
343
|
default: o(() => [
|
|
343
|
-
ge.value ? c("", !0) : (i(), d(e(
|
|
344
|
+
ge.value ? c("", !0) : (i(), d(e(G), {
|
|
344
345
|
key: 0,
|
|
345
346
|
"close-on-content-click": !1,
|
|
346
347
|
density: t.density,
|
|
347
348
|
location: "end"
|
|
348
349
|
}, {
|
|
349
|
-
activator: o(({ props:
|
|
350
|
-
|
|
350
|
+
activator: o(({ props: r }) => [
|
|
351
|
+
u(e(w), L(r, {
|
|
351
352
|
"prepend-icon": "$view-column",
|
|
352
353
|
subtitle: "Columns"
|
|
353
354
|
}), null, 16)
|
|
354
355
|
]),
|
|
355
356
|
default: o(() => [
|
|
356
|
-
|
|
357
|
+
u(e(U), null, {
|
|
357
358
|
default: o(() => [
|
|
358
|
-
(i(!0), p(
|
|
359
|
-
key:
|
|
360
|
-
"prepend-icon":
|
|
361
|
-
subtitle:
|
|
362
|
-
onClick:
|
|
359
|
+
(i(!0), p($, null, C(e(l).headerOptions.value, (r, S) => (i(), d(e(w), {
|
|
360
|
+
key: S,
|
|
361
|
+
"prepend-icon": r.hide === !0 ? "mdi" : "$check",
|
|
362
|
+
subtitle: r.title,
|
|
363
|
+
onClick: m((a) => r.hide = !r.hide, ["stop"])
|
|
363
364
|
}, null, 8, ["prepend-icon", "subtitle", "onClick"]))), 128))
|
|
364
365
|
]),
|
|
365
366
|
_: 1
|
|
@@ -367,28 +368,28 @@ const Re = {
|
|
|
367
368
|
]),
|
|
368
369
|
_: 1
|
|
369
370
|
}, 8, ["density"])),
|
|
370
|
-
t.archiveBladeName != null ? (i(), d(e(
|
|
371
|
+
t.archiveBladeName != null ? (i(), d(e(w), {
|
|
371
372
|
key: 1,
|
|
372
373
|
density: t.density,
|
|
373
374
|
"prepend-icon": "$archive-outline",
|
|
374
375
|
subtitle: "Archives",
|
|
375
376
|
to: { name: t.archiveBladeName }
|
|
376
377
|
}, null, 8, ["density", "to"])) : c("", !0),
|
|
377
|
-
t.canShowInactive ? (i(), d(e(
|
|
378
|
+
t.canShowInactive ? (i(), d(e(w), {
|
|
378
379
|
key: 2,
|
|
379
380
|
density: t.density,
|
|
380
381
|
"prepend-icon": "$eraser",
|
|
381
382
|
subtitle: e(l).showInactive.value ? "Hide Inactive" : "Show Inactive",
|
|
382
|
-
onClick: n[5] || (n[5] =
|
|
383
|
+
onClick: n[5] || (n[5] = m((r) => e(l).showInactive.value = !e(l).showInactive.value, ["stop"]))
|
|
383
384
|
}, null, 8, ["density", "subtitle"])) : c("", !0),
|
|
384
|
-
t.canExportCSV ? (i(), d(e(
|
|
385
|
+
t.canExportCSV ? (i(), d(e(w), {
|
|
385
386
|
key: 3,
|
|
386
387
|
density: t.density,
|
|
387
388
|
"prepend-icon": "$file-delimited-outline",
|
|
388
389
|
subtitle: "Export To CSV",
|
|
389
390
|
onClick: e(l).exportToCSV
|
|
390
391
|
}, null, 8, ["density", "onClick"])) : c("", !0),
|
|
391
|
-
|
|
392
|
+
y(t.$slots, "settings", {
|
|
392
393
|
items: e(l).filteredItems.value,
|
|
393
394
|
allItems: e(l).asyncItems.value,
|
|
394
395
|
size: t.size,
|
|
@@ -400,79 +401,79 @@ const Re = {
|
|
|
400
401
|
]),
|
|
401
402
|
_: 3
|
|
402
403
|
}, 8, ["density"])),
|
|
403
|
-
|
|
404
|
-
|
|
404
|
+
y(t.$slots, "search-box", { ui: e(l) }, () => [
|
|
405
|
+
u(e(Ue), { "hide-on-leave": "" }, {
|
|
405
406
|
default: o(() => [
|
|
406
|
-
(t.canSearch !== !1 || e(B)(t.searchProps)) && !e(l).showSearch.value ? (i(), d(e(
|
|
407
|
+
(t.canSearch !== !1 || e(B)(t.searchProps)) && !e(l).showSearch.value ? (i(), d(e(h), {
|
|
407
408
|
icon: "$magnify",
|
|
408
409
|
key: "11",
|
|
409
410
|
size: t.size,
|
|
410
|
-
onClick:
|
|
411
|
-
}, null, 8, ["size", "onClick"])) : (t.canSearch !== !1 || e(B)(t.searchProps)) && e(l).showSearch.value ? (i(), d(e(
|
|
411
|
+
onClick: m(e(l).toggleSearch, ["stop"])
|
|
412
|
+
}, null, 8, ["size", "onClick"])) : (t.canSearch !== !1 || e(B)(t.searchProps)) && e(l).showSearch.value ? (i(), d(e(re), {
|
|
412
413
|
"onClick:appendInner": n[6] || (n[6] = () => e(l).refresh({ deepRefresh: !0 })),
|
|
413
414
|
"onClick:prependInner": n[7] || (n[7] = () => e(l).toggleSearch()),
|
|
414
|
-
onKeyup: n[8] || (n[8] =
|
|
415
|
+
onKeyup: n[8] || (n[8] = ie(m(() => e(l).refresh({ deepRefresh: !0 }), ["stop"]), ["native", "enter"])),
|
|
415
416
|
"append-inner-icon": "$magnify",
|
|
416
417
|
"prepend-inner-icon": "$close",
|
|
417
418
|
density: t.density,
|
|
418
419
|
flat: "",
|
|
419
420
|
"hide-details": "",
|
|
420
421
|
ref_key: "searchEl",
|
|
421
|
-
ref:
|
|
422
|
+
ref: J,
|
|
422
423
|
key: "12",
|
|
423
424
|
placeholder: "Find",
|
|
424
425
|
variant: "outlined",
|
|
425
426
|
modelValue: e(l).searchString.value,
|
|
426
|
-
"onUpdate:modelValue": n[9] || (n[9] = (
|
|
427
|
+
"onUpdate:modelValue": n[9] || (n[9] = (r) => e(l).searchString.value = r)
|
|
427
428
|
}, null, 8, ["density", "modelValue"])) : c("", !0)
|
|
428
429
|
]),
|
|
429
430
|
_: 1
|
|
430
431
|
})
|
|
431
432
|
], !0),
|
|
432
|
-
|
|
433
|
+
y(t.$slots, "actions", {
|
|
433
434
|
ui: e(l),
|
|
434
435
|
allItems: e(l).asyncItems.value,
|
|
435
436
|
size: t.size
|
|
436
437
|
}, void 0, !0),
|
|
437
|
-
|
|
438
|
-
|
|
438
|
+
u(e(ce)),
|
|
439
|
+
y(t.$slots, "actions-right", {
|
|
439
440
|
ui: e(l),
|
|
440
441
|
allItems: e(l).asyncItems.value,
|
|
441
442
|
size: t.size
|
|
442
443
|
}, void 0, !0),
|
|
443
|
-
!Se.value && e(B)(e(l).filters.value) ? (i(), d(e(
|
|
444
|
+
!Se.value && e(B)(e(l).filters.value) ? (i(), d(e(G), {
|
|
444
445
|
key: 1,
|
|
445
446
|
"close-on-content-click": !1,
|
|
446
447
|
density: t.density,
|
|
447
448
|
location: "start"
|
|
448
449
|
}, {
|
|
449
|
-
activator: o(({ props:
|
|
450
|
-
|
|
450
|
+
activator: o(({ props: r }) => [
|
|
451
|
+
u(e(h), L({
|
|
451
452
|
icon: "$filter",
|
|
452
453
|
size: t.size
|
|
453
|
-
},
|
|
454
|
+
}, r, { variant: "text" }), null, 16, ["size"])
|
|
454
455
|
]),
|
|
455
456
|
default: o(() => [
|
|
456
|
-
|
|
457
|
+
u(e(U), {
|
|
457
458
|
class: "pa-0",
|
|
458
459
|
density: t.density,
|
|
459
460
|
"open-strategy": "multiple",
|
|
460
461
|
"select-strategy": "classic",
|
|
461
462
|
selected: e(l).selectedFilters.value,
|
|
462
|
-
"onUpdate:selected": n[10] || (n[10] = (
|
|
463
|
+
"onUpdate:selected": n[10] || (n[10] = (r) => e(l).selectedFilters.value = r)
|
|
463
464
|
}, {
|
|
464
465
|
default: o(() => [
|
|
465
|
-
(i(!0), p(
|
|
466
|
-
key:
|
|
467
|
-
subtitle:
|
|
468
|
-
value:
|
|
466
|
+
(i(!0), p($, null, C(e(l).filters.value, (r, S) => (i(), d(e(w), {
|
|
467
|
+
key: S,
|
|
468
|
+
subtitle: r,
|
|
469
|
+
value: S
|
|
469
470
|
}, {
|
|
470
471
|
prepend: o(({ isActive: a }) => [
|
|
471
|
-
|
|
472
|
+
u(e(N), null, {
|
|
472
473
|
default: o(() => [
|
|
473
|
-
|
|
474
|
+
u(e(pe), { size: t.size }, {
|
|
474
475
|
default: o(() => [
|
|
475
|
-
|
|
476
|
+
O(X(a ? "$check" : ""), 1)
|
|
476
477
|
]),
|
|
477
478
|
_: 2
|
|
478
479
|
}, 1032, ["size"])
|
|
@@ -482,25 +483,25 @@ const Re = {
|
|
|
482
483
|
]),
|
|
483
484
|
_: 2
|
|
484
485
|
}, 1032, ["subtitle", "value"]))), 128)),
|
|
485
|
-
|
|
486
|
+
u(e(ue), { "hide-on-leave": "" }, {
|
|
486
487
|
default: o(() => [
|
|
487
|
-
e(l).filtersChanged.value ? (i(), d(e(
|
|
488
|
+
e(l).filtersChanged.value ? (i(), d(e(h), {
|
|
488
489
|
key: 0,
|
|
489
490
|
block: "",
|
|
490
|
-
onClick:
|
|
491
|
+
onClick: m(e(l).applyFilters, ["stop"]),
|
|
491
492
|
size: t.size
|
|
492
493
|
}, {
|
|
493
494
|
default: o(() => [
|
|
494
|
-
|
|
495
|
+
u(e(pe), {
|
|
495
496
|
start: "",
|
|
496
497
|
size: t.size
|
|
497
498
|
}, {
|
|
498
499
|
default: o(() => n[16] || (n[16] = [
|
|
499
|
-
|
|
500
|
+
O("$filter")
|
|
500
501
|
])),
|
|
501
502
|
_: 1
|
|
502
503
|
}, 8, ["size"]),
|
|
503
|
-
n[17] || (n[17] =
|
|
504
|
+
n[17] || (n[17] = O("Apply "))
|
|
504
505
|
]),
|
|
505
506
|
_: 1
|
|
506
507
|
}, 8, ["onClick", "size"])) : c("", !0)
|
|
@@ -513,25 +514,25 @@ const Re = {
|
|
|
513
514
|
]),
|
|
514
515
|
_: 1
|
|
515
516
|
}, 8, ["density"])) : c("", !0),
|
|
516
|
-
!
|
|
517
|
+
!Y.value && e(B)(e(l).externalParties.value) ? (i(), d(e(G), {
|
|
517
518
|
key: 2,
|
|
518
519
|
density: t.density,
|
|
519
520
|
location: "bottom"
|
|
520
521
|
}, {
|
|
521
|
-
activator: o(({ props:
|
|
522
|
-
|
|
522
|
+
activator: o(({ props: r }) => [
|
|
523
|
+
u(e(j), { "hide-on-leave": "" }, {
|
|
523
524
|
default: o(() => [
|
|
524
525
|
e(l).currentExternalParty.value != null ? (i(), p("div", Ge, [
|
|
525
|
-
|
|
526
|
+
u(e(h), {
|
|
526
527
|
icon: "$close",
|
|
527
|
-
onClick: n[11] || (n[11] =
|
|
528
|
+
onClick: n[11] || (n[11] = m((S) => e(l).selectExternalParty(void 0), ["stop"]))
|
|
528
529
|
}),
|
|
529
|
-
|
|
530
|
-
])) : (i(), d(e(
|
|
530
|
+
R("span", null, "Sync: " + X(e(oe)(e(l).currentExternalParty.value.party)), 1)
|
|
531
|
+
])) : (i(), d(e(h), L({
|
|
531
532
|
key: 1,
|
|
532
533
|
icon: "$cloud-sync",
|
|
533
534
|
size: t.size
|
|
534
|
-
},
|
|
535
|
+
}, r, {
|
|
535
536
|
title: "Open sync options",
|
|
536
537
|
variant: "text"
|
|
537
538
|
}), null, 16, ["size"]))
|
|
@@ -540,15 +541,15 @@ const Re = {
|
|
|
540
541
|
}, 1024)
|
|
541
542
|
]),
|
|
542
543
|
default: o(() => [
|
|
543
|
-
|
|
544
|
+
u(e(U), {
|
|
544
545
|
density: t.density,
|
|
545
546
|
"min-width": "150"
|
|
546
547
|
}, {
|
|
547
548
|
default: o(() => [
|
|
548
|
-
(i(!0), p(
|
|
549
|
-
onClick:
|
|
550
|
-
key: (
|
|
551
|
-
title: e(
|
|
549
|
+
(i(!0), p($, null, C(e(l).externalParties.value, (r, S) => (i(), d(e(w), {
|
|
550
|
+
onClick: m((a) => e(l).selectExternalParty(r), ["stop"]),
|
|
551
|
+
key: (r.party ?? "") + S,
|
|
552
|
+
title: e(oe)(r.party)
|
|
552
553
|
}, null, 8, ["onClick", "title"]))), 128))
|
|
553
554
|
]),
|
|
554
555
|
_: 1
|
|
@@ -558,23 +559,23 @@ const Re = {
|
|
|
558
559
|
}, 8, ["density"])) : c("", !0)
|
|
559
560
|
], !0)
|
|
560
561
|
]),
|
|
561
|
-
content: o(({ bladeData:
|
|
562
|
-
|
|
562
|
+
content: o(({ bladeData: r, isMobile: S }) => [
|
|
563
|
+
y(t.$slots, "d", {
|
|
563
564
|
items: e(l).asyncItems
|
|
564
565
|
}, void 0, !0),
|
|
565
|
-
|
|
566
|
-
bladeData:
|
|
566
|
+
y(t.$slots, "body", {
|
|
567
|
+
bladeData: r,
|
|
567
568
|
items: e(l).filteredItems.value,
|
|
568
569
|
allItems: e(l).asyncItems.value,
|
|
569
570
|
refresh: e(l).refresh,
|
|
570
571
|
searchString: e(l).searchString,
|
|
571
572
|
showSearch: e(l).showSearch,
|
|
572
573
|
size: t.size,
|
|
573
|
-
style:
|
|
574
|
+
style: H(F.value),
|
|
574
575
|
toggleSearch: e(l).toggleSearch,
|
|
575
576
|
ui: e(l)
|
|
576
577
|
}, () => [
|
|
577
|
-
|
|
578
|
+
y(t.$slots, "top", {
|
|
578
579
|
refresh: e(l).refresh,
|
|
579
580
|
searchString: e(l).searchString,
|
|
580
581
|
showSearch: e(l).showSearch,
|
|
@@ -584,10 +585,10 @@ const Re = {
|
|
|
584
585
|
items: e(l).filteredItems.value,
|
|
585
586
|
ui: e(l)
|
|
586
587
|
}, void 0, !0),
|
|
587
|
-
e(B)(e(l).asyncItems.value) ? t.selectSingle || t.selectMulti || t.showListOnly === !0 ||
|
|
588
|
+
e(B)(e(l).asyncItems.value) ? t.selectSingle || t.selectMulti || t.showListOnly === !0 || S ? (i(), d(e(U), {
|
|
588
589
|
key: 1,
|
|
589
590
|
"active-class": t.activeClass,
|
|
590
|
-
class:
|
|
591
|
+
class: T(["pt-0", t.scrollY ? "overflow-y-auto" : ""]),
|
|
591
592
|
"bg-color": t.transparent ? "transparent" : void 0,
|
|
592
593
|
flat: "",
|
|
593
594
|
density: t.density,
|
|
@@ -595,21 +596,21 @@ const Re = {
|
|
|
595
596
|
mandatory: !t.canUnselect,
|
|
596
597
|
selectable: t.selectSingle || t.selectMulti,
|
|
597
598
|
"select-strategy": t.selectSingle ? "single-independent" : "independent",
|
|
598
|
-
style:
|
|
599
|
-
selected:
|
|
600
|
-
"onUpdate:selected": n[13] || (n[13] = (a) =>
|
|
599
|
+
style: H(F.value),
|
|
600
|
+
selected: le.value,
|
|
601
|
+
"onUpdate:selected": n[13] || (n[13] = (a) => le.value = a)
|
|
601
602
|
}, {
|
|
602
603
|
default: o(() => [
|
|
603
|
-
|
|
604
|
+
u(e(N), {
|
|
604
605
|
group: "",
|
|
605
606
|
"hide-on-leave": ""
|
|
606
607
|
}, {
|
|
607
608
|
default: o(() => [
|
|
608
|
-
(i(!0), p(
|
|
609
|
+
(i(!0), p($, null, C(e(l).filteredItems.value, (a, I) => (i(), p($, {
|
|
609
610
|
key: `${a.id}${I}-table-list-item`
|
|
610
611
|
}, [
|
|
611
|
-
|
|
612
|
-
bladeData:
|
|
612
|
+
y(t.$slots, "listItem", {
|
|
613
|
+
bladeData: r,
|
|
613
614
|
deleteItem: () => e(l).deleteItem(a),
|
|
614
615
|
item: a,
|
|
615
616
|
index: I,
|
|
@@ -617,28 +618,28 @@ const Re = {
|
|
|
617
618
|
select: () => e(l).selectItem(a, t.variant),
|
|
618
619
|
ui: e(l)
|
|
619
620
|
}, () => [
|
|
620
|
-
|
|
621
|
+
u(e(w), {
|
|
621
622
|
class: "mouse-item",
|
|
622
623
|
density: t.density,
|
|
623
624
|
ripple: t.ripple,
|
|
624
625
|
value: a,
|
|
625
|
-
onClick: (
|
|
626
|
-
onMouseover: (
|
|
627
|
-
},
|
|
626
|
+
onClick: (v) => e(l).selectItem(a, t.variant),
|
|
627
|
+
onMouseover: (v) => t.$emit("mouse-over-item", a)
|
|
628
|
+
}, Ie({
|
|
628
629
|
title: o(() => [
|
|
629
|
-
|
|
630
|
+
y(t.$slots, "itemTitle", {
|
|
630
631
|
item: a,
|
|
631
632
|
index: I,
|
|
632
633
|
size: t.size
|
|
633
634
|
}, () => [
|
|
634
|
-
(i(!0), p(
|
|
635
|
-
(i(!0), p(
|
|
636
|
-
key:
|
|
635
|
+
(i(!0), p($, null, C(e(l).titleOptions.value, (v, V) => (i(), p("span", { key: V }, [
|
|
636
|
+
(i(!0), p($, null, C(v.values, (b, A) => y(t.$slots, b.value, {
|
|
637
|
+
key: A,
|
|
637
638
|
item: a,
|
|
638
639
|
class: "mr-1"
|
|
639
640
|
}, () => [
|
|
640
|
-
|
|
641
|
-
option:
|
|
641
|
+
u(f, {
|
|
642
|
+
option: b,
|
|
642
643
|
data: a
|
|
643
644
|
}, null, 8, ["option", "data"])
|
|
644
645
|
], !0)), 128))
|
|
@@ -646,19 +647,19 @@ const Re = {
|
|
|
646
647
|
], !0)
|
|
647
648
|
]),
|
|
648
649
|
subtitle: o(() => [
|
|
649
|
-
|
|
650
|
+
y(t.$slots, "itemSubtitle", {
|
|
650
651
|
item: a,
|
|
651
652
|
index: I,
|
|
652
653
|
size: t.size
|
|
653
654
|
}, () => [
|
|
654
|
-
(i(!0), p(
|
|
655
|
-
(i(!0), p(
|
|
656
|
-
key:
|
|
655
|
+
(i(!0), p($, null, C(e(l).subtitleOptions.value, (v, V) => (i(), p("span", { key: V }, [
|
|
656
|
+
(i(!0), p($, null, C(v.values, (b, A) => y(t.$slots, b.value, {
|
|
657
|
+
key: A,
|
|
657
658
|
item: a,
|
|
658
659
|
class: "mr-1"
|
|
659
660
|
}, () => [
|
|
660
|
-
|
|
661
|
-
option:
|
|
661
|
+
u(f, {
|
|
662
|
+
option: b,
|
|
662
663
|
data: a
|
|
663
664
|
}, null, 8, ["option", "data"])
|
|
664
665
|
], !0)), 128))
|
|
@@ -666,7 +667,7 @@ const Re = {
|
|
|
666
667
|
], !0)
|
|
667
668
|
]),
|
|
668
669
|
prepend: o(() => [
|
|
669
|
-
|
|
670
|
+
y(t.$slots, "itemPrepend", {
|
|
670
671
|
item: a,
|
|
671
672
|
index: I,
|
|
672
673
|
size: t.size
|
|
@@ -677,50 +678,50 @@ const Re = {
|
|
|
677
678
|
t.hideActions ? void 0 : {
|
|
678
679
|
name: "append",
|
|
679
680
|
fn: o(() => [
|
|
680
|
-
|
|
681
|
+
u(e(de), {
|
|
681
682
|
"no-gutters": "",
|
|
682
|
-
class:
|
|
683
|
+
class: T(ee.value ? "actionButtons" : null)
|
|
683
684
|
}, {
|
|
684
685
|
default: o(() => [
|
|
685
|
-
|
|
686
|
+
y(t.$slots, "itemActions", {
|
|
686
687
|
item: a,
|
|
687
688
|
index: I,
|
|
688
689
|
items: e(l).asyncItems.value,
|
|
689
690
|
size: g.value
|
|
690
691
|
}, void 0, !0),
|
|
691
|
-
|
|
692
|
+
u(e(N), {
|
|
692
693
|
group: "",
|
|
693
694
|
"hide-on-leave": ""
|
|
694
695
|
}, {
|
|
695
696
|
default: o(() => [
|
|
696
|
-
!
|
|
697
|
-
|
|
697
|
+
!Y.value && e(l).isIntegratable.value(a) ? (i(), p("div", Ke, [
|
|
698
|
+
u(e(j), { "hide-on-leave": "" }, {
|
|
698
699
|
default: o(() => {
|
|
699
|
-
var
|
|
700
|
+
var v, V, b, A;
|
|
700
701
|
return [
|
|
701
|
-
e(l).isIntegrated.value(a) ? (i(), p("div",
|
|
702
|
-
|
|
702
|
+
e(l).isIntegrated.value(a) ? (i(), p("div", Ye, [
|
|
703
|
+
u(e(h), {
|
|
703
704
|
class: "text-success",
|
|
704
705
|
icon: "$cloud-check",
|
|
705
706
|
size: g.value,
|
|
706
|
-
title: `Synced with ${(
|
|
707
|
+
title: `Synced with ${(v = e(l).currentExternalParty.value) == null ? void 0 : v.party}`,
|
|
707
708
|
variant: "text"
|
|
708
709
|
}, null, 8, ["size", "title"]),
|
|
709
|
-
(
|
|
710
|
+
(V = e(l).currentExternalParty.value) != null && V.canUnlink ? (i(), d(e(h), {
|
|
710
711
|
key: 0,
|
|
711
|
-
onClick:
|
|
712
|
+
onClick: m((Q) => e(l).unlinkFromExternalParty(a), ["stop"]),
|
|
712
713
|
class: "text-error",
|
|
713
714
|
icon: "$cloud-remove",
|
|
714
715
|
size: g.value,
|
|
715
|
-
title: `Unlink from ${(
|
|
716
|
+
title: `Unlink from ${(b = e(l).currentExternalParty.value) == null ? void 0 : b.party}`,
|
|
716
717
|
variant: "text"
|
|
717
718
|
}, null, 8, ["onClick", "size", "title"])) : c("", !0)
|
|
718
|
-
])) : (i(), d(e(
|
|
719
|
-
onClick:
|
|
719
|
+
])) : (i(), d(e(h), {
|
|
720
|
+
onClick: m((Q) => e(l).pushToExternalParty(a), ["stop"]),
|
|
720
721
|
icon: "$cloud-upload",
|
|
721
722
|
key: "a2",
|
|
722
723
|
size: g.value,
|
|
723
|
-
title: `Send to ${(
|
|
724
|
+
title: `Send to ${(A = e(l).currentExternalParty.value) == null ? void 0 : A.party}`,
|
|
724
725
|
variant: "text"
|
|
725
726
|
}, null, 8, ["onClick", "size", "title"]))
|
|
726
727
|
];
|
|
@@ -728,8 +729,8 @@ const Re = {
|
|
|
728
729
|
_: 2
|
|
729
730
|
}, 1024)
|
|
730
731
|
])) : c("", !0),
|
|
731
|
-
a.errorMsg != null ? (i(), d(e(
|
|
732
|
-
onClick: n[12] || (n[12] =
|
|
732
|
+
a.errorMsg != null ? (i(), d(e(h), {
|
|
733
|
+
onClick: n[12] || (n[12] = m(() => {
|
|
733
734
|
}, ["stop"])),
|
|
734
735
|
class: "text-warning",
|
|
735
736
|
icon: "$alert-circle",
|
|
@@ -737,8 +738,8 @@ const Re = {
|
|
|
737
738
|
size: g.value,
|
|
738
739
|
title: a.errorMsg
|
|
739
740
|
}, null, 8, ["size", "title"])) : c("", !0),
|
|
740
|
-
t.canDelete && e(l).isDeletable.value(a) ? (i(), d(e(
|
|
741
|
-
onClick:
|
|
741
|
+
t.canDelete && e(l).isDeletable.value(a) ? (i(), d(e(h), {
|
|
742
|
+
onClick: m((v) => e(l).deleteItem(a), ["stop"]),
|
|
742
743
|
class: "text-error",
|
|
743
744
|
disabled: !e(E).canEdit(t.nav),
|
|
744
745
|
icon: "$delete",
|
|
@@ -747,8 +748,8 @@ const Re = {
|
|
|
747
748
|
size: g.value,
|
|
748
749
|
variant: "text"
|
|
749
750
|
}, null, 8, ["onClick", "disabled", "loading", "size"])) : c("", !0),
|
|
750
|
-
t.canRestore && e(l).isRestorable.value(a) ? (i(), d(e(
|
|
751
|
-
onClick:
|
|
751
|
+
t.canRestore && e(l).isRestorable.value(a) ? (i(), d(e(h), {
|
|
752
|
+
onClick: m((v) => e(l).restoreItem(a), ["stop"]),
|
|
752
753
|
disabled: !e(E).canEdit(t.nav),
|
|
753
754
|
key: "3",
|
|
754
755
|
icon: "$eraser-variant",
|
|
@@ -774,51 +775,51 @@ const Re = {
|
|
|
774
775
|
]),
|
|
775
776
|
_: 2
|
|
776
777
|
}, 1024),
|
|
777
|
-
|
|
778
|
+
y(t.$slots, "bottomItem", {}, void 0, !0)
|
|
778
779
|
]),
|
|
779
780
|
_: 2
|
|
780
|
-
}, 1032, ["active-class", "class", "bg-color", "density", "lines", "mandatory", "selectable", "select-strategy", "style", "selected"])) : t.showTableOnly === !0 || !
|
|
781
|
+
}, 1032, ["active-class", "class", "bg-color", "density", "lines", "mandatory", "selectable", "select-strategy", "style", "selected"])) : t.showTableOnly === !0 || !S ? (i(), d(e(Le), {
|
|
781
782
|
key: 2,
|
|
782
783
|
class: "text-body-2 overflow-y-auto",
|
|
783
784
|
density: t.density,
|
|
784
785
|
"fixed-header": t.fixedHeader,
|
|
785
786
|
hover: "",
|
|
786
|
-
style:
|
|
787
|
+
style: H(F.value)
|
|
787
788
|
}, {
|
|
788
789
|
default: o(() => [
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
(i(!0), p(
|
|
790
|
+
R("thead", null, [
|
|
791
|
+
R("tr", null, [
|
|
792
|
+
(i(!0), p($, null, C(e(l).tableHeaders.value, (a) => (i(), p("th", {
|
|
792
793
|
key: a.value,
|
|
793
|
-
class:
|
|
794
|
+
class: T(`d-none d-${a.showSize ?? "sm"}-table-cell ${a.align == "end" ? "text-right" : void 0}`)
|
|
794
795
|
}, [
|
|
795
|
-
|
|
796
|
-
|
|
796
|
+
y(t.$slots, `${a.value}-header`, { options: a }, () => [
|
|
797
|
+
O(X(a.title), 1)
|
|
797
798
|
], !0)
|
|
798
799
|
], 2))), 128)),
|
|
799
|
-
t.hideActions ? c("", !0) : (i(), p("th",
|
|
800
|
+
t.hideActions ? c("", !0) : (i(), p("th", qe, " Actions "))
|
|
800
801
|
])
|
|
801
802
|
]),
|
|
802
|
-
|
|
803
|
-
|
|
803
|
+
R("tbody", null, [
|
|
804
|
+
u(e(N), {
|
|
804
805
|
group: "",
|
|
805
806
|
"hide-on-leave": ""
|
|
806
807
|
}, {
|
|
807
808
|
default: o(() => [
|
|
808
|
-
(i(!0), p(
|
|
809
|
+
(i(!0), p($, null, C(e(l).filteredItems.value, (a, I) => (i(), p("tr", {
|
|
809
810
|
key: `${a.id}${I}`,
|
|
810
|
-
onClick: (
|
|
811
|
+
onClick: (v) => e(l).selectItem(a, t.variant)
|
|
811
812
|
}, [
|
|
812
|
-
(i(!0), p(
|
|
813
|
-
key: "1" +
|
|
814
|
-
class:
|
|
813
|
+
(i(!0), p($, null, C(e(l).tableHeaders.value, (v) => (i(), p("td", {
|
|
814
|
+
key: "1" + v.value,
|
|
815
|
+
class: T(`d-none d-${v.showSize ?? "sm"}-table-cell ${v.align == "end" ? "text-right" : void 0}`)
|
|
815
816
|
}, [
|
|
816
|
-
|
|
817
|
+
y(t.$slots, v.value, {
|
|
817
818
|
item: a,
|
|
818
|
-
options:
|
|
819
|
+
options: v
|
|
819
820
|
}, () => [
|
|
820
|
-
|
|
821
|
-
option:
|
|
821
|
+
u(f, {
|
|
822
|
+
option: v,
|
|
822
823
|
data: a
|
|
823
824
|
}, null, 8, ["option", "data"])
|
|
824
825
|
], !0)
|
|
@@ -827,15 +828,15 @@ const Re = {
|
|
|
827
828
|
key: "itemActions" + a.id,
|
|
828
829
|
class: "text-right"
|
|
829
830
|
}, [
|
|
830
|
-
|
|
831
|
+
u(e(ue), { "hide-on-leave": "" }, {
|
|
831
832
|
default: o(() => [
|
|
832
|
-
|
|
833
|
+
u(e(de), {
|
|
833
834
|
"no-gutters": "",
|
|
834
|
-
class:
|
|
835
|
+
class: T([ee.value ? "actionButtons" : null, "flex-nowrap"])
|
|
835
836
|
}, {
|
|
836
837
|
default: o(() => [
|
|
837
|
-
|
|
838
|
-
|
|
838
|
+
u(e(ce)),
|
|
839
|
+
y(t.$slots, "itemActions", {
|
|
839
840
|
item: a,
|
|
840
841
|
allItems: e(l).asyncItems.value,
|
|
841
842
|
items: e(l).filteredItems.value,
|
|
@@ -843,34 +844,34 @@ const Re = {
|
|
|
843
844
|
density: t.density,
|
|
844
845
|
ui: e(l)
|
|
845
846
|
}, void 0, !0),
|
|
846
|
-
!
|
|
847
|
-
|
|
847
|
+
!Y.value && e(l).isIntegratable.value(a) ? (i(), p("div", We, [
|
|
848
|
+
u(e(j), { "hide-on-leave": "" }, {
|
|
848
849
|
default: o(() => {
|
|
849
|
-
var
|
|
850
|
+
var v, V, b, A;
|
|
850
851
|
return [
|
|
851
|
-
e(l).isIntegrated.value(a) ? (i(), p("div",
|
|
852
|
-
|
|
852
|
+
e(l).isIntegrated.value(a) ? (i(), p("div", Xe, [
|
|
853
|
+
u(e(h), {
|
|
853
854
|
class: "text-success",
|
|
854
855
|
icon: "$cloud-check",
|
|
855
856
|
size: g.value,
|
|
856
|
-
title: `Synced with ${(
|
|
857
|
+
title: `Synced with ${(v = e(l).currentExternalParty.value) == null ? void 0 : v.party}`,
|
|
857
858
|
variant: "text"
|
|
858
859
|
}, null, 8, ["size", "title"]),
|
|
859
|
-
(
|
|
860
|
+
(V = e(l).currentExternalParty.value) != null && V.canUnlink ? (i(), d(e(h), {
|
|
860
861
|
key: 0,
|
|
861
|
-
onClick:
|
|
862
|
+
onClick: m((Q) => e(l).unlinkFromExternalParty(a), ["stop"]),
|
|
862
863
|
class: "text-error",
|
|
863
864
|
icon: "$cloud-remove",
|
|
864
865
|
size: g.value,
|
|
865
|
-
title: `Unlink from ${(
|
|
866
|
+
title: `Unlink from ${(b = e(l).currentExternalParty.value) == null ? void 0 : b.party}`,
|
|
866
867
|
variant: "text"
|
|
867
868
|
}, null, 8, ["onClick", "size", "title"])) : c("", !0)
|
|
868
|
-
])) : (i(), d(e(
|
|
869
|
-
onClick:
|
|
869
|
+
])) : (i(), d(e(h), {
|
|
870
|
+
onClick: m((Q) => e(l).pushToExternalParty(a), ["stop"]),
|
|
870
871
|
icon: "$cloud-upload",
|
|
871
872
|
key: "a2",
|
|
872
873
|
size: g.value,
|
|
873
|
-
title: `Send to ${(
|
|
874
|
+
title: `Send to ${(A = e(l).currentExternalParty.value) == null ? void 0 : A.party}`,
|
|
874
875
|
variant: "text"
|
|
875
876
|
}, null, 8, ["onClick", "size", "title"]))
|
|
876
877
|
];
|
|
@@ -878,8 +879,8 @@ const Re = {
|
|
|
878
879
|
_: 2
|
|
879
880
|
}, 1024)
|
|
880
881
|
])) : c("", !0),
|
|
881
|
-
a.errorMsg != null ? (i(), d(e(
|
|
882
|
-
onClick: n[14] || (n[14] =
|
|
882
|
+
a.errorMsg != null ? (i(), d(e(h), {
|
|
883
|
+
onClick: n[14] || (n[14] = m(() => {
|
|
883
884
|
}, ["stop"])),
|
|
884
885
|
class: "text-warning",
|
|
885
886
|
icon: "$alert-circle",
|
|
@@ -887,8 +888,8 @@ const Re = {
|
|
|
887
888
|
size: g.value,
|
|
888
889
|
title: a.errorMsg
|
|
889
890
|
}, null, 8, ["size", "title"])) : c("", !0),
|
|
890
|
-
t.canDelete && e(l).isDeletable.value(a) ? (i(), d(e(
|
|
891
|
-
onClick:
|
|
891
|
+
t.canDelete && e(l).isDeletable.value(a) ? (i(), d(e(h), {
|
|
892
|
+
onClick: m((v) => e(l).deleteItem(a), ["stop"]),
|
|
892
893
|
class: "text-error",
|
|
893
894
|
disabled: !e(E).canEdit(t.nav),
|
|
894
895
|
icon: "$delete",
|
|
@@ -896,8 +897,8 @@ const Re = {
|
|
|
896
897
|
size: g.value,
|
|
897
898
|
variant: "text"
|
|
898
899
|
}, null, 8, ["onClick", "disabled", "size"])) : c("", !0),
|
|
899
|
-
t.canRestore && e(l).isRestorable.value(a) ? (i(), d(e(
|
|
900
|
-
onClick:
|
|
900
|
+
t.canRestore && e(l).isRestorable.value(a) ? (i(), d(e(h), {
|
|
901
|
+
onClick: m((v) => e(l).restoreItem(a), ["stop"]),
|
|
901
902
|
disabled: !e(E).canEdit(t.nav),
|
|
902
903
|
key: "3",
|
|
903
904
|
icon: "$eraser-variant",
|
|
@@ -920,24 +921,24 @@ const Re = {
|
|
|
920
921
|
_: 3
|
|
921
922
|
}, 8, ["density", "fixed-header", "style"])) : c("", !0) : (i(), p("div", {
|
|
922
923
|
key: 0,
|
|
923
|
-
class:
|
|
924
|
-
style:
|
|
924
|
+
class: T(t.scrollY ? "overflow-y-auto" : ""),
|
|
925
|
+
style: H(F.value)
|
|
925
926
|
}, [
|
|
926
|
-
|
|
927
|
+
y(t.$slots, "notFound", {
|
|
927
928
|
ui: e(l),
|
|
928
|
-
bladeData:
|
|
929
|
+
bladeData: r,
|
|
929
930
|
refresh: e(l).refresh,
|
|
930
931
|
size: t.size
|
|
931
932
|
}, void 0, !0)
|
|
932
933
|
], 6)),
|
|
933
|
-
|
|
934
|
+
y(t.$slots, "bottom", {
|
|
934
935
|
size: t.size,
|
|
935
936
|
allItems: e(l).asyncItems.value,
|
|
936
937
|
items: e(l).filteredItems.value
|
|
937
938
|
}, void 0, !0)
|
|
938
939
|
], !0),
|
|
939
|
-
e(
|
|
940
|
-
|
|
940
|
+
e(se)(t.paginate) ? c("", !0) : (i(), p("div", je, [
|
|
941
|
+
u(e(Oe), {
|
|
941
942
|
modelValue: e(l).currentPage.value,
|
|
942
943
|
"onUpdate:modelValue": n[15] || (n[15] = (a) => e(l).currentPage.value = a),
|
|
943
944
|
length: e(l).totalPages.value
|
|
@@ -950,5 +951,5 @@ const Re = {
|
|
|
950
951
|
}
|
|
951
952
|
});
|
|
952
953
|
export {
|
|
953
|
-
|
|
954
|
+
gt as default
|
|
954
955
|
};
|