cisse-vue-ui 0.2.3 → 0.2.5

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.
@@ -1,4 +1,4 @@
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";
1
+ import { defineComponent, createElementBlock, openBlock, createCommentVNode, renderSlot, createElementVNode, createTextVNode, toDisplayString, useSlots, computed, createVNode, Fragment, renderList, normalizeClass, createBlock, resolveDynamicComponent, withCtx, onMounted, nextTick, getCurrentInstance, getCurrentScope, hasInjectionContext, inject, watch, shallowRef, toValue, watchEffect, unref, 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";
@@ -235,10 +235,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
235
235
  }
236
236
  });
237
237
  const _hoisted_1$6 = { class: "space-y-3" };
238
- const _hoisted_2$4 = {
239
- key: 0,
240
- class: "flex items-center gap-3 p-3 bg-gray-50 dark:bg-gray-800/50 rounded-xl"
241
- };
238
+ const _hoisted_2$4 = { class: "flex items-center gap-3 p-3" };
242
239
  const _hoisted_3$2 = { class: "text-sm text-gray-600 dark:text-gray-400" };
243
240
  const _hoisted_4$1 = {
244
241
  key: 0,
@@ -304,39 +301,47 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
304
301
  const hasEmptySlot = computed(() => !!slots.empty);
305
302
  return (_ctx, _cache) => {
306
303
  return openBlock(), createElementBlock("div", _hoisted_1$6, [
307
- __props.selectable && selectableItems.value.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_2$4, [
308
- createVNode(_sfc_main$c, {
309
- "model-value": allSelected.value,
310
- indeterminate: someSelected.value,
311
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emit("selectAll"))
312
- }, null, 8, ["model-value", "indeterminate"]),
313
- createElementVNode("span", _hoisted_3$2, toDisplayString(allSelected.value ? "Tout désélectionner" : "Tout sélectionner"), 1),
314
- __props.selectedItems && __props.selectedItems.size > 0 ? (openBlock(), createElementBlock("span", _hoisted_4$1, " (" + toDisplayString(__props.selectedItems.size) + " sélectionné" + toDisplayString(__props.selectedItems.size > 1 ? "s" : "") + ") ", 1)) : createCommentVNode("", true)
315
- ])) : createCommentVNode("", true),
304
+ __props.selectable && selectableItems.value.length > 0 ? (openBlock(), createBlock(_sfc_main$b, { key: 0 }, {
305
+ default: withCtx(() => [
306
+ createElementVNode("div", _hoisted_2$4, [
307
+ createVNode(_sfc_main$c, {
308
+ "model-value": allSelected.value,
309
+ indeterminate: someSelected.value,
310
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emit("selectAll"))
311
+ }, null, 8, ["model-value", "indeterminate"]),
312
+ createElementVNode("span", _hoisted_3$2, toDisplayString(allSelected.value ? "Tout désélectionner" : "Tout sélectionner"), 1),
313
+ __props.selectedItems && __props.selectedItems.size > 0 ? (openBlock(), createElementBlock("span", _hoisted_4$1, " (" + toDisplayString(__props.selectedItems.size) + " sélectionné" + toDisplayString(__props.selectedItems.size > 1 ? "s" : "") + ") ", 1)) : createCommentVNode("", true)
314
+ ])
315
+ ]),
316
+ _: 1
317
+ })) : createCommentVNode("", true),
316
318
  (openBlock(true), createElementBlock(Fragment, null, renderList(__props.items, (item) => {
317
- return openBlock(), createElementBlock("div", {
319
+ return openBlock(), createBlock(_sfc_main$b, {
318
320
  key: getKey(item),
319
- class: normalizeClass(["bg-white dark:bg-gray-800 rounded-xl border border-gray-200 dark:border-gray-700 hover:border-primary/30 dark:hover:border-primary/50 hover:shadow-md transition-all duration-200", {
320
- "ring-2 ring-primary border-primary": isSelected(item)
321
+ class: normalizeClass(["hover:shadow-lg transition-all duration-200", {
322
+ "ring-2 ring-primary": isSelected(item)
321
323
  }])
322
- }, [
323
- createElementVNode("div", _hoisted_5$1, [
324
- __props.selectable ? (openBlock(), createElementBlock("div", _hoisted_6$1, [
325
- isSelectable(item) ? (openBlock(), createBlock(_sfc_main$c, {
326
- key: 0,
327
- "model-value": isSelected(item),
328
- "onUpdate:modelValue": ($event) => handleSelect(item)
329
- }, null, 8, ["model-value", "onUpdate:modelValue"])) : (openBlock(), createElementBlock("div", _hoisted_7$1))
330
- ])) : createCommentVNode("", true),
331
- renderSlot(_ctx.$slots, "avatar", { item }),
332
- createElementVNode("div", _hoisted_8$1, [
333
- renderSlot(_ctx.$slots, "content", { item })
334
- ]),
335
- createElementVNode("div", _hoisted_9$1, [
336
- renderSlot(_ctx.$slots, "actions", { item })
324
+ }, {
325
+ default: withCtx(() => [
326
+ createElementVNode("div", _hoisted_5$1, [
327
+ __props.selectable ? (openBlock(), createElementBlock("div", _hoisted_6$1, [
328
+ isSelectable(item) ? (openBlock(), createBlock(_sfc_main$c, {
329
+ key: 0,
330
+ "model-value": isSelected(item),
331
+ "onUpdate:modelValue": ($event) => handleSelect(item)
332
+ }, null, 8, ["model-value", "onUpdate:modelValue"])) : (openBlock(), createElementBlock("div", _hoisted_7$1))
333
+ ])) : createCommentVNode("", true),
334
+ renderSlot(_ctx.$slots, "avatar", { item }),
335
+ createElementVNode("div", _hoisted_8$1, [
336
+ renderSlot(_ctx.$slots, "content", { item })
337
+ ]),
338
+ createElementVNode("div", _hoisted_9$1, [
339
+ renderSlot(_ctx.$slots, "actions", { item })
340
+ ])
337
341
  ])
338
- ])
339
- ], 2);
342
+ ]),
343
+ _: 2
344
+ }, 1032, ["class"]);
340
345
  }), 128)),
341
346
  __props.items.length === 0 && hasEmptySlot.value ? (openBlock(), createElementBlock("div", _hoisted_10, [
342
347
  renderSlot(_ctx.$slots, "empty")
@@ -626,44 +631,48 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
626
631
  renderSlot(_ctx.$slots, "empty")
627
632
  ]),
628
633
  _: 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")
634
+ }, 8, ["items", "key-field", "selectable", "selected-items", "selectable-filter"])) : (openBlock(), createBlock(_sfc_main$b, { key: 1 }, {
635
+ default: withCtx(() => [
636
+ createVNode(_sfc_main$a, {
637
+ items: __props.items,
638
+ properties: tableProperties.value,
639
+ "key-field": __props.keyField,
640
+ selectable: __props.selectable,
641
+ "selected-items": __props.selectedItems,
642
+ "selectable-filter": __props.selectableFilter,
643
+ onSelect: _cache[2] || (_cache[2] = ($event) => emit("select", $event)),
644
+ onSelectAll: _cache[3] || (_cache[3] = ($event) => emit("selectAll"))
645
+ }, createSlots({
646
+ empty: withCtx(() => [
647
+ renderSlot(_ctx.$slots, "empty")
648
+ ]),
649
+ _: 2
650
+ }, [
651
+ renderList(__props.columns, (col) => {
652
+ return {
653
+ name: `item-${getColumnKey(col)}`,
654
+ fn: withCtx(({ item, value }) => [
655
+ hasCellSlot(getColumnKey(col)) ? renderSlot(_ctx.$slots, `cell-${getColumnKey(col)}`, {
656
+ key: 0,
657
+ item,
658
+ value: getCellValue(item, getColumnKey(col))
659
+ }) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
660
+ createTextVNode(toDisplayString(value), 1)
661
+ ], 64))
662
+ ])
663
+ };
664
+ }),
665
+ hasActionsSlot.value ? {
666
+ name: "action",
667
+ fn: withCtx(({ item }) => [
668
+ renderSlot(_ctx.$slots, "actions", { item })
669
+ ]),
670
+ key: "0"
671
+ } : void 0
672
+ ]), 1032, ["items", "properties", "key-field", "selectable", "selected-items", "selectable-filter"])
642
673
  ]),
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 })
663
- ]),
664
- key: "0"
665
- } : void 0
666
- ]), 1032, ["items", "properties", "key-field", "selectable", "selected-items", "selectable-filter"]))
674
+ _: 3
675
+ }))
667
676
  ]);
668
677
  };
669
678
  }
@@ -1472,4 +1481,4 @@ export {
1472
1481
  _sfc_main$1 as j,
1473
1482
  _sfc_main as k
1474
1483
  };
1475
- //# sourceMappingURL=CollapsibleCard.vue_vue_type_script_setup_true_lang-Ba03HwW2.js.map
1484
+ //# sourceMappingURL=CollapsibleCard.vue_vue_type_script_setup_true_lang-Cwn5A5CH.js.map