cisse-vue-ui 0.2.1 → 0.2.2
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/{CollapsibleCard.vue_vue_type_script_setup_true_lang-BEE4gCBC.cjs → CollapsibleCard.vue_vue_type_script_setup_true_lang-BJdxIJo5.cjs} +295 -112
- package/dist/CollapsibleCard.vue_vue_type_script_setup_true_lang-BJdxIJo5.cjs.map +1 -0
- package/dist/{CollapsibleCard.vue_vue_type_script_setup_true_lang-Dehf9Ji3.js → CollapsibleCard.vue_vue_type_script_setup_true_lang-DqPXkdNI.js} +296 -113
- package/dist/CollapsibleCard.vue_vue_type_script_setup_true_lang-DqPXkdNI.js.map +1 -0
- package/dist/components/core/index.cjs +10 -10
- package/dist/components/core/index.js +10 -10
- package/dist/components/index.cjs +10 -10
- package/dist/components/index.js +10 -10
- package/dist/{index-ChNwGBwZ.cjs → index-BizxpOp9.cjs} +11 -11
- package/dist/index-BizxpOp9.cjs.map +1 -0
- package/dist/{index-CZNg2ZUJ.js → index-Ci6SgM2p.js} +14 -14
- package/dist/index-Ci6SgM2p.js.map +1 -0
- package/dist/index.cjs +11 -11
- package/dist/index.js +11 -11
- package/package.json +2 -1
- package/dist/CollapsibleCard.vue_vue_type_script_setup_true_lang-BEE4gCBC.cjs.map +0 -1
- package/dist/CollapsibleCard.vue_vue_type_script_setup_true_lang-Dehf9Ji3.js.map +0 -1
- package/dist/cisse-vue-ui.css +0 -47
- package/dist/index-CZNg2ZUJ.js.map +0 -1
- package/dist/index-ChNwGBwZ.cjs.map +0 -1
|
@@ -3,8 +3,8 @@ const vue = require("vue");
|
|
|
3
3
|
const Checkbox_vue_vue_type_script_setup_true_lang = require("./Checkbox.vue_vue_type_script_setup_true_lang-DIoHDji4.cjs");
|
|
4
4
|
const BadgeType_vue_vue_type_script_setup_true_lang = require("./BadgeType.vue_vue_type_script_setup_true_lang-CJb63H1I.cjs");
|
|
5
5
|
const vue$1 = require("@iconify/vue");
|
|
6
|
-
const _hoisted_1$
|
|
7
|
-
const _hoisted_2$
|
|
6
|
+
const _hoisted_1$8 = { class: "flex flex-col overflow-hidden rounded-lg bg-white shadow-md dark:bg-slate-950" };
|
|
7
|
+
const _hoisted_2$6 = {
|
|
8
8
|
key: 0,
|
|
9
9
|
class: "flex items-center justify-between border-b border-gray-200 px-5 py-3 dark:border-gray-700"
|
|
10
10
|
};
|
|
@@ -26,8 +26,8 @@ const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
|
|
|
26
26
|
},
|
|
27
27
|
setup(__props) {
|
|
28
28
|
return (_ctx, _cache) => {
|
|
29
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
30
|
-
__props.title || __props.description || _ctx.$slots.title || _ctx.$slots.description || _ctx.$slots.actions ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$
|
|
29
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$8, [
|
|
30
|
+
__props.title || __props.description || _ctx.$slots.title || _ctx.$slots.description || _ctx.$slots.actions ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$6, [
|
|
31
31
|
vue.createElementVNode("div", _hoisted_3$4, [
|
|
32
32
|
__props.title || _ctx.$slots.title ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_4$3, [
|
|
33
33
|
vue.renderSlot(_ctx.$slots, "title", {}, () => [
|
|
@@ -49,8 +49,8 @@ const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
|
|
|
49
49
|
};
|
|
50
50
|
}
|
|
51
51
|
});
|
|
52
|
-
const _hoisted_1$
|
|
53
|
-
const _hoisted_2$
|
|
52
|
+
const _hoisted_1$7 = { class: "bg-white dark:bg-gray-800 rounded-xl border border-gray-200 dark:border-gray-700 overflow-hidden" };
|
|
53
|
+
const _hoisted_2$5 = { class: "overflow-x-auto" };
|
|
54
54
|
const _hoisted_3$3 = { class: "w-full divide-y divide-black/10 text-left dark:divide-white/10" };
|
|
55
55
|
const _hoisted_4$2 = { class: "bg-black/5 text-sm font-semibold text-gray-600 uppercase dark:bg-white/5 dark:text-gray-400" };
|
|
56
56
|
const _hoisted_5$2 = {
|
|
@@ -160,8 +160,8 @@ const _sfc_main$a = /* @__PURE__ */ vue.defineComponent({
|
|
|
160
160
|
};
|
|
161
161
|
const hasActionSlot = vue.computed(() => !!slots.action);
|
|
162
162
|
return (_ctx, _cache) => {
|
|
163
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
164
|
-
vue.createElementVNode("div", _hoisted_2$
|
|
163
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$7, [
|
|
164
|
+
vue.createElementVNode("div", _hoisted_2$5, [
|
|
165
165
|
vue.createElementVNode("table", _hoisted_3$3, [
|
|
166
166
|
vue.createElementVNode("thead", _hoisted_4$2, [
|
|
167
167
|
vue.createElementVNode("tr", null, [
|
|
@@ -235,8 +235,8 @@ const _sfc_main$a = /* @__PURE__ */ vue.defineComponent({
|
|
|
235
235
|
};
|
|
236
236
|
}
|
|
237
237
|
});
|
|
238
|
-
const _hoisted_1$
|
|
239
|
-
const _hoisted_2$
|
|
238
|
+
const _hoisted_1$6 = { class: "space-y-3" };
|
|
239
|
+
const _hoisted_2$4 = {
|
|
240
240
|
key: 0,
|
|
241
241
|
class: "flex items-center gap-3 p-3 bg-gray-50 dark:bg-gray-800/50 rounded-xl"
|
|
242
242
|
};
|
|
@@ -304,8 +304,8 @@ const _sfc_main$9 = /* @__PURE__ */ vue.defineComponent({
|
|
|
304
304
|
};
|
|
305
305
|
const hasEmptySlot = vue.computed(() => !!slots.empty);
|
|
306
306
|
return (_ctx, _cache) => {
|
|
307
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
308
|
-
__props.selectable && selectableItems.value.length > 0 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$
|
|
307
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$6, [
|
|
308
|
+
__props.selectable && selectableItems.value.length > 0 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$4, [
|
|
309
309
|
vue.createVNode(Checkbox_vue_vue_type_script_setup_true_lang._sfc_main, {
|
|
310
310
|
"model-value": allSelected.value,
|
|
311
311
|
indeterminate: someSelected.value,
|
|
@@ -346,8 +346,207 @@ const _sfc_main$9 = /* @__PURE__ */ vue.defineComponent({
|
|
|
346
346
|
};
|
|
347
347
|
}
|
|
348
348
|
});
|
|
349
|
-
const
|
|
350
|
-
const
|
|
349
|
+
const localProvidedStateMap = /* @__PURE__ */ new WeakMap();
|
|
350
|
+
const injectLocal = /* @__NO_SIDE_EFFECTS__ */ (...args) => {
|
|
351
|
+
var _getCurrentInstance;
|
|
352
|
+
const key = args[0];
|
|
353
|
+
const instance = (_getCurrentInstance = vue.getCurrentInstance()) === null || _getCurrentInstance === void 0 ? void 0 : _getCurrentInstance.proxy;
|
|
354
|
+
const owner = instance !== null && instance !== void 0 ? instance : vue.getCurrentScope();
|
|
355
|
+
if (owner == null && !vue.hasInjectionContext()) throw new Error("injectLocal must be called in setup");
|
|
356
|
+
if (owner && localProvidedStateMap.has(owner) && key in localProvidedStateMap.get(owner)) return localProvidedStateMap.get(owner)[key];
|
|
357
|
+
return vue.inject(...args);
|
|
358
|
+
};
|
|
359
|
+
const isClient = typeof window !== "undefined" && typeof document !== "undefined";
|
|
360
|
+
typeof WorkerGlobalScope !== "undefined" && globalThis instanceof WorkerGlobalScope;
|
|
361
|
+
const toString = Object.prototype.toString;
|
|
362
|
+
const isObject = (val) => toString.call(val) === "[object Object]";
|
|
363
|
+
function increaseWithUnit(target, delta) {
|
|
364
|
+
var _target$match;
|
|
365
|
+
if (typeof target === "number") return target + delta;
|
|
366
|
+
const value = ((_target$match = target.match(/^-?\d+\.?\d*/)) === null || _target$match === void 0 ? void 0 : _target$match[0]) || "";
|
|
367
|
+
const unit = target.slice(value.length);
|
|
368
|
+
const result = Number.parseFloat(value) + delta;
|
|
369
|
+
if (Number.isNaN(result)) return target;
|
|
370
|
+
return result + unit;
|
|
371
|
+
}
|
|
372
|
+
function pxValue(px) {
|
|
373
|
+
return px.endsWith("rem") ? Number.parseFloat(px) * 16 : Number.parseFloat(px);
|
|
374
|
+
}
|
|
375
|
+
function toArray(value) {
|
|
376
|
+
return Array.isArray(value) ? value : [value];
|
|
377
|
+
}
|
|
378
|
+
function getLifeCycleTarget(target) {
|
|
379
|
+
return vue.getCurrentInstance();
|
|
380
|
+
}
|
|
381
|
+
function tryOnMounted(fn, sync = true, target) {
|
|
382
|
+
if (getLifeCycleTarget()) vue.onMounted(fn, target);
|
|
383
|
+
else if (sync) fn();
|
|
384
|
+
else vue.nextTick(fn);
|
|
385
|
+
}
|
|
386
|
+
function watchImmediate(source, cb, options) {
|
|
387
|
+
return vue.watch(source, cb, {
|
|
388
|
+
...options,
|
|
389
|
+
immediate: true
|
|
390
|
+
});
|
|
391
|
+
}
|
|
392
|
+
const defaultWindow = isClient ? window : void 0;
|
|
393
|
+
function unrefElement(elRef) {
|
|
394
|
+
var _$el;
|
|
395
|
+
const plain = vue.toValue(elRef);
|
|
396
|
+
return (_$el = plain === null || plain === void 0 ? void 0 : plain.$el) !== null && _$el !== void 0 ? _$el : plain;
|
|
397
|
+
}
|
|
398
|
+
function useEventListener(...args) {
|
|
399
|
+
const register = (el, event, listener, options) => {
|
|
400
|
+
el.addEventListener(event, listener, options);
|
|
401
|
+
return () => el.removeEventListener(event, listener, options);
|
|
402
|
+
};
|
|
403
|
+
const firstParamTargets = vue.computed(() => {
|
|
404
|
+
const test = toArray(vue.toValue(args[0])).filter((e) => e != null);
|
|
405
|
+
return test.every((e) => typeof e !== "string") ? test : void 0;
|
|
406
|
+
});
|
|
407
|
+
return watchImmediate(() => {
|
|
408
|
+
var _firstParamTargets$va, _firstParamTargets$va2;
|
|
409
|
+
return [
|
|
410
|
+
(_firstParamTargets$va = (_firstParamTargets$va2 = firstParamTargets.value) === null || _firstParamTargets$va2 === void 0 ? void 0 : _firstParamTargets$va2.map((e) => unrefElement(e))) !== null && _firstParamTargets$va !== void 0 ? _firstParamTargets$va : [defaultWindow].filter((e) => e != null),
|
|
411
|
+
toArray(vue.toValue(firstParamTargets.value ? args[1] : args[0])),
|
|
412
|
+
toArray(vue.unref(firstParamTargets.value ? args[2] : args[1])),
|
|
413
|
+
vue.toValue(firstParamTargets.value ? args[3] : args[2])
|
|
414
|
+
];
|
|
415
|
+
}, ([raw_targets, raw_events, raw_listeners, raw_options], _, onCleanup) => {
|
|
416
|
+
if (!(raw_targets === null || raw_targets === void 0 ? void 0 : raw_targets.length) || !(raw_events === null || raw_events === void 0 ? void 0 : raw_events.length) || !(raw_listeners === null || raw_listeners === void 0 ? void 0 : raw_listeners.length)) return;
|
|
417
|
+
const optionsClone = isObject(raw_options) ? { ...raw_options } : raw_options;
|
|
418
|
+
const cleanups = raw_targets.flatMap((el) => raw_events.flatMap((event) => raw_listeners.map((listener) => register(el, event, listener, optionsClone))));
|
|
419
|
+
onCleanup(() => {
|
|
420
|
+
cleanups.forEach((fn) => fn());
|
|
421
|
+
});
|
|
422
|
+
}, { flush: "post" });
|
|
423
|
+
}
|
|
424
|
+
// @__NO_SIDE_EFFECTS__
|
|
425
|
+
function useMounted() {
|
|
426
|
+
const isMounted = vue.shallowRef(false);
|
|
427
|
+
const instance = vue.getCurrentInstance();
|
|
428
|
+
if (instance) vue.onMounted(() => {
|
|
429
|
+
isMounted.value = true;
|
|
430
|
+
}, instance);
|
|
431
|
+
return isMounted;
|
|
432
|
+
}
|
|
433
|
+
// @__NO_SIDE_EFFECTS__
|
|
434
|
+
function useSupported(callback) {
|
|
435
|
+
const isMounted = /* @__PURE__ */ useMounted();
|
|
436
|
+
return vue.computed(() => {
|
|
437
|
+
isMounted.value;
|
|
438
|
+
return Boolean(callback());
|
|
439
|
+
});
|
|
440
|
+
}
|
|
441
|
+
const ssrWidthSymbol = Symbol("vueuse-ssr-width");
|
|
442
|
+
// @__NO_SIDE_EFFECTS__
|
|
443
|
+
function useSSRWidth() {
|
|
444
|
+
const ssrWidth = vue.hasInjectionContext() ? /* @__PURE__ */ injectLocal(ssrWidthSymbol, null) : null;
|
|
445
|
+
return typeof ssrWidth === "number" ? ssrWidth : void 0;
|
|
446
|
+
}
|
|
447
|
+
function useMediaQuery(query, options = {}) {
|
|
448
|
+
const { window: window$1 = defaultWindow, ssrWidth = /* @__PURE__ */ useSSRWidth() } = options;
|
|
449
|
+
const isSupported = /* @__PURE__ */ useSupported(() => window$1 && "matchMedia" in window$1 && typeof window$1.matchMedia === "function");
|
|
450
|
+
const ssrSupport = vue.shallowRef(typeof ssrWidth === "number");
|
|
451
|
+
const mediaQuery = vue.shallowRef();
|
|
452
|
+
const matches = vue.shallowRef(false);
|
|
453
|
+
const handler = (event) => {
|
|
454
|
+
matches.value = event.matches;
|
|
455
|
+
};
|
|
456
|
+
vue.watchEffect(() => {
|
|
457
|
+
if (ssrSupport.value) {
|
|
458
|
+
ssrSupport.value = !isSupported.value;
|
|
459
|
+
matches.value = vue.toValue(query).split(",").some((queryString) => {
|
|
460
|
+
const not = queryString.includes("not all");
|
|
461
|
+
const minWidth = queryString.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);
|
|
462
|
+
const maxWidth = queryString.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);
|
|
463
|
+
let res = Boolean(minWidth || maxWidth);
|
|
464
|
+
if (minWidth && res) res = ssrWidth >= pxValue(minWidth[1]);
|
|
465
|
+
if (maxWidth && res) res = ssrWidth <= pxValue(maxWidth[1]);
|
|
466
|
+
return not ? !res : res;
|
|
467
|
+
});
|
|
468
|
+
return;
|
|
469
|
+
}
|
|
470
|
+
if (!isSupported.value) return;
|
|
471
|
+
mediaQuery.value = window$1.matchMedia(vue.toValue(query));
|
|
472
|
+
matches.value = mediaQuery.value.matches;
|
|
473
|
+
});
|
|
474
|
+
useEventListener(mediaQuery, "change", handler, { passive: true });
|
|
475
|
+
return vue.computed(() => matches.value);
|
|
476
|
+
}
|
|
477
|
+
// @__NO_SIDE_EFFECTS__
|
|
478
|
+
function useBreakpoints(breakpoints, options = {}) {
|
|
479
|
+
function getValue$1(k, delta) {
|
|
480
|
+
let v = vue.toValue(breakpoints[vue.toValue(k)]);
|
|
481
|
+
if (delta != null) v = increaseWithUnit(v, delta);
|
|
482
|
+
if (typeof v === "number") v = `${v}px`;
|
|
483
|
+
return v;
|
|
484
|
+
}
|
|
485
|
+
const { window: window$1 = defaultWindow, strategy = "min-width", ssrWidth = /* @__PURE__ */ useSSRWidth() } = options;
|
|
486
|
+
const ssrSupport = typeof ssrWidth === "number";
|
|
487
|
+
const mounted = ssrSupport ? vue.shallowRef(false) : { value: true };
|
|
488
|
+
if (ssrSupport) tryOnMounted(() => mounted.value = !!window$1);
|
|
489
|
+
function match(query, size) {
|
|
490
|
+
if (!mounted.value && ssrSupport) return query === "min" ? ssrWidth >= pxValue(size) : ssrWidth <= pxValue(size);
|
|
491
|
+
if (!window$1) return false;
|
|
492
|
+
return window$1.matchMedia(`(${query}-width: ${size})`).matches;
|
|
493
|
+
}
|
|
494
|
+
const greaterOrEqual = (k) => {
|
|
495
|
+
return useMediaQuery(() => `(min-width: ${getValue$1(k)})`, options);
|
|
496
|
+
};
|
|
497
|
+
const smallerOrEqual = (k) => {
|
|
498
|
+
return useMediaQuery(() => `(max-width: ${getValue$1(k)})`, options);
|
|
499
|
+
};
|
|
500
|
+
const shortcutMethods = Object.keys(breakpoints).reduce((shortcuts, k) => {
|
|
501
|
+
Object.defineProperty(shortcuts, k, {
|
|
502
|
+
get: () => strategy === "min-width" ? greaterOrEqual(k) : smallerOrEqual(k),
|
|
503
|
+
enumerable: true,
|
|
504
|
+
configurable: true
|
|
505
|
+
});
|
|
506
|
+
return shortcuts;
|
|
507
|
+
}, {});
|
|
508
|
+
function current() {
|
|
509
|
+
const points = Object.keys(breakpoints).map((k) => [
|
|
510
|
+
k,
|
|
511
|
+
shortcutMethods[k],
|
|
512
|
+
pxValue(getValue$1(k))
|
|
513
|
+
]).sort((a, b) => a[2] - b[2]);
|
|
514
|
+
return vue.computed(() => points.filter(([, v]) => v.value).map(([k]) => k));
|
|
515
|
+
}
|
|
516
|
+
return Object.assign(shortcutMethods, {
|
|
517
|
+
greaterOrEqual,
|
|
518
|
+
smallerOrEqual,
|
|
519
|
+
greater(k) {
|
|
520
|
+
return useMediaQuery(() => `(min-width: ${getValue$1(k, 0.1)})`, options);
|
|
521
|
+
},
|
|
522
|
+
smaller(k) {
|
|
523
|
+
return useMediaQuery(() => `(max-width: ${getValue$1(k, -0.1)})`, options);
|
|
524
|
+
},
|
|
525
|
+
between(a, b) {
|
|
526
|
+
return useMediaQuery(() => `(min-width: ${getValue$1(a)}) and (max-width: ${getValue$1(b, -0.1)})`, options);
|
|
527
|
+
},
|
|
528
|
+
isGreater(k) {
|
|
529
|
+
return match("min", getValue$1(k, 0.1));
|
|
530
|
+
},
|
|
531
|
+
isGreaterOrEqual(k) {
|
|
532
|
+
return match("min", getValue$1(k));
|
|
533
|
+
},
|
|
534
|
+
isSmaller(k) {
|
|
535
|
+
return match("max", getValue$1(k, -0.1));
|
|
536
|
+
},
|
|
537
|
+
isSmallerOrEqual(k) {
|
|
538
|
+
return match("max", getValue$1(k));
|
|
539
|
+
},
|
|
540
|
+
isInBetween(a, b) {
|
|
541
|
+
return match("min", getValue$1(a)) && match("max", getValue$1(b, -0.1));
|
|
542
|
+
},
|
|
543
|
+
current,
|
|
544
|
+
active() {
|
|
545
|
+
const bps = current();
|
|
546
|
+
return vue.computed(() => bps.value.length === 0 ? "" : bps.value.at(strategy === "min-width" ? -1 : 0));
|
|
547
|
+
}
|
|
548
|
+
});
|
|
549
|
+
}
|
|
351
550
|
const _sfc_main$8 = /* @__PURE__ */ vue.defineComponent({
|
|
352
551
|
__name: "ResponsiveList",
|
|
353
552
|
props: {
|
|
@@ -377,16 +576,6 @@ const _sfc_main$8 = /* @__PURE__ */ vue.defineComponent({
|
|
|
377
576
|
main: col.main
|
|
378
577
|
}))
|
|
379
578
|
);
|
|
380
|
-
const breakpointPx = vue.computed(() => {
|
|
381
|
-
const breakpoints = {
|
|
382
|
-
sm: 640,
|
|
383
|
-
md: 768,
|
|
384
|
-
lg: 1024,
|
|
385
|
-
xl: 1280,
|
|
386
|
-
"2xl": 1536
|
|
387
|
-
};
|
|
388
|
-
return breakpoints[props.breakpoint];
|
|
389
|
-
});
|
|
390
579
|
const getCellValue = (item, key) => {
|
|
391
580
|
const keys = key.split(".");
|
|
392
581
|
let value = item;
|
|
@@ -403,89 +592,83 @@ const _sfc_main$8 = /* @__PURE__ */ vue.defineComponent({
|
|
|
403
592
|
return !!slots[`cell-${key}`];
|
|
404
593
|
};
|
|
405
594
|
const hasActionsSlot = vue.computed(() => !!slots.actions);
|
|
595
|
+
const breakpoints = /* @__PURE__ */ useBreakpoints({
|
|
596
|
+
sm: 640,
|
|
597
|
+
md: 768,
|
|
598
|
+
lg: 1024,
|
|
599
|
+
xl: 1280,
|
|
600
|
+
"2xl": 1536
|
|
601
|
+
});
|
|
602
|
+
const isDesktop = vue.computed(() => breakpoints.greaterOrEqual(props.breakpoint).value);
|
|
406
603
|
return (_ctx, _cache) => {
|
|
407
|
-
return vue.openBlock(), vue.createElementBlock("div",
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
"
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
604
|
+
return vue.openBlock(), vue.createElementBlock("div", null, [
|
|
605
|
+
!isDesktop.value ? (vue.openBlock(), vue.createBlock(_sfc_main$9, {
|
|
606
|
+
key: 0,
|
|
607
|
+
items: __props.items,
|
|
608
|
+
"key-field": __props.keyField,
|
|
609
|
+
selectable: __props.selectable,
|
|
610
|
+
"selected-items": __props.selectedItems,
|
|
611
|
+
"selectable-filter": __props.selectableFilter,
|
|
612
|
+
onSelect: _cache[0] || (_cache[0] = ($event) => emit("select", $event)),
|
|
613
|
+
onSelectAll: _cache[1] || (_cache[1] = ($event) => emit("selectAll"))
|
|
614
|
+
}, {
|
|
615
|
+
avatar: vue.withCtx(({ item }) => [
|
|
616
|
+
vue.renderSlot(_ctx.$slots, "avatar", { item })
|
|
617
|
+
]),
|
|
618
|
+
content: vue.withCtx(({ item }) => [
|
|
619
|
+
vue.renderSlot(_ctx.$slots, "mobileContent", { item })
|
|
620
|
+
]),
|
|
621
|
+
actions: vue.withCtx(({ item }) => [
|
|
622
|
+
vue.renderSlot(_ctx.$slots, "mobileActions", { item }, () => [
|
|
623
|
+
vue.renderSlot(_ctx.$slots, "actions", { item })
|
|
624
|
+
])
|
|
625
|
+
]),
|
|
626
|
+
empty: vue.withCtx(() => [
|
|
627
|
+
vue.renderSlot(_ctx.$slots, "empty")
|
|
628
|
+
]),
|
|
629
|
+
_: 3
|
|
630
|
+
}, 8, ["items", "key-field", "selectable", "selected-items", "selectable-filter"])) : (vue.openBlock(), vue.createBlock(_sfc_main$a, {
|
|
631
|
+
key: 1,
|
|
632
|
+
items: __props.items,
|
|
633
|
+
properties: tableProperties.value,
|
|
634
|
+
"key-field": __props.keyField,
|
|
635
|
+
selectable: __props.selectable,
|
|
636
|
+
"selected-items": __props.selectedItems,
|
|
637
|
+
"selectable-filter": __props.selectableFilter,
|
|
638
|
+
onSelect: _cache[2] || (_cache[2] = ($event) => emit("select", $event)),
|
|
639
|
+
onSelectAll: _cache[3] || (_cache[3] = ($event) => emit("selectAll"))
|
|
640
|
+
}, vue.createSlots({
|
|
641
|
+
empty: vue.withCtx(() => [
|
|
642
|
+
vue.renderSlot(_ctx.$slots, "empty")
|
|
643
|
+
]),
|
|
644
|
+
_: 2
|
|
645
|
+
}, [
|
|
646
|
+
vue.renderList(__props.columns, (col) => {
|
|
647
|
+
return {
|
|
648
|
+
name: `item-${getColumnKey(col)}`,
|
|
649
|
+
fn: vue.withCtx(({ item, value }) => [
|
|
650
|
+
hasCellSlot(getColumnKey(col)) ? vue.renderSlot(_ctx.$slots, `cell-${getColumnKey(col)}`, {
|
|
651
|
+
key: 0,
|
|
652
|
+
item,
|
|
653
|
+
value: getCellValue(item, getColumnKey(col))
|
|
654
|
+
}) : (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
|
|
655
|
+
vue.createTextVNode(vue.toDisplayString(value), 1)
|
|
656
|
+
], 64))
|
|
657
|
+
])
|
|
658
|
+
};
|
|
659
|
+
}),
|
|
660
|
+
hasActionsSlot.value ? {
|
|
661
|
+
name: "action",
|
|
662
|
+
fn: vue.withCtx(({ item }) => [
|
|
663
|
+
vue.renderSlot(_ctx.$slots, "actions", { item })
|
|
451
664
|
]),
|
|
452
|
-
|
|
453
|
-
}
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
name: `item-${getColumnKey(col)}`,
|
|
457
|
-
fn: vue.withCtx(({ item, value }) => [
|
|
458
|
-
hasCellSlot(getColumnKey(col)) ? vue.renderSlot(_ctx.$slots, `cell-${getColumnKey(col)}`, {
|
|
459
|
-
key: 0,
|
|
460
|
-
item,
|
|
461
|
-
value: getCellValue(item, getColumnKey(col))
|
|
462
|
-
}, void 0, true) : (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
|
|
463
|
-
vue.createTextVNode(vue.toDisplayString(value), 1)
|
|
464
|
-
], 64))
|
|
465
|
-
])
|
|
466
|
-
};
|
|
467
|
-
}),
|
|
468
|
-
hasActionsSlot.value ? {
|
|
469
|
-
name: "action",
|
|
470
|
-
fn: vue.withCtx(({ item }) => [
|
|
471
|
-
vue.renderSlot(_ctx.$slots, "actions", { item }, void 0, true)
|
|
472
|
-
]),
|
|
473
|
-
key: "0"
|
|
474
|
-
} : void 0
|
|
475
|
-
]), 1032, ["items", "properties", "key-field", "selectable", "selected-items", "selectable-filter"])
|
|
476
|
-
])
|
|
477
|
-
], 4);
|
|
665
|
+
key: "0"
|
|
666
|
+
} : void 0
|
|
667
|
+
]), 1032, ["items", "properties", "key-field", "selectable", "selected-items", "selectable-filter"]))
|
|
668
|
+
]);
|
|
478
669
|
};
|
|
479
670
|
}
|
|
480
671
|
});
|
|
481
|
-
const _export_sfc = (sfc, props) => {
|
|
482
|
-
const target = sfc.__vccOpts || sfc;
|
|
483
|
-
for (const [key, val] of props) {
|
|
484
|
-
target[key] = val;
|
|
485
|
-
}
|
|
486
|
-
return target;
|
|
487
|
-
};
|
|
488
|
-
const ResponsiveList = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-5563bb86"]]);
|
|
489
672
|
const _hoisted_1$5 = {
|
|
490
673
|
key: 0,
|
|
491
674
|
class: "mb-2 block text-sm font-medium text-gray-700 dark:text-gray-300"
|
|
@@ -1276,16 +1459,16 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
1276
1459
|
};
|
|
1277
1460
|
}
|
|
1278
1461
|
});
|
|
1279
|
-
exports.ResponsiveList = ResponsiveList;
|
|
1280
1462
|
exports._sfc_main = _sfc_main$b;
|
|
1281
1463
|
exports._sfc_main$1 = _sfc_main$a;
|
|
1282
|
-
exports._sfc_main$10 = _sfc_main;
|
|
1464
|
+
exports._sfc_main$10 = _sfc_main$1;
|
|
1465
|
+
exports._sfc_main$11 = _sfc_main;
|
|
1283
1466
|
exports._sfc_main$2 = _sfc_main$9;
|
|
1284
|
-
exports._sfc_main$3 = _sfc_main$
|
|
1285
|
-
exports._sfc_main$4 = _sfc_main$
|
|
1286
|
-
exports._sfc_main$5 = _sfc_main$
|
|
1287
|
-
exports._sfc_main$6 = _sfc_main$
|
|
1288
|
-
exports._sfc_main$7 = _sfc_main$
|
|
1289
|
-
exports._sfc_main$8 = _sfc_main$
|
|
1290
|
-
exports._sfc_main$9 = _sfc_main$
|
|
1291
|
-
//# sourceMappingURL=CollapsibleCard.vue_vue_type_script_setup_true_lang-
|
|
1467
|
+
exports._sfc_main$3 = _sfc_main$8;
|
|
1468
|
+
exports._sfc_main$4 = _sfc_main$7;
|
|
1469
|
+
exports._sfc_main$5 = _sfc_main$6;
|
|
1470
|
+
exports._sfc_main$6 = _sfc_main$5;
|
|
1471
|
+
exports._sfc_main$7 = _sfc_main$4;
|
|
1472
|
+
exports._sfc_main$8 = _sfc_main$3;
|
|
1473
|
+
exports._sfc_main$9 = _sfc_main$2;
|
|
1474
|
+
//# sourceMappingURL=CollapsibleCard.vue_vue_type_script_setup_true_lang-BJdxIJo5.cjs.map
|