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