cleek 2.3.26 → 2.3.29

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/cleek.es.js CHANGED
@@ -17,7 +17,7 @@ var __spreadValues = (a, b) => {
17
17
  return a;
18
18
  };
19
19
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
- import { defineComponent, ref, openBlock, createElementBlock, createElementVNode, renderSlot, normalizeClass, createCommentVNode, computed as computed$2, normalizeStyle, unref as unref$1, watch, h, createBlock, Teleport, createVNode, createTextVNode, toDisplayString, withCtx, onMounted, nextTick as nextTick$1, onBeforeUnmount, getCurrentInstance, withDirectives, isRef as isRef$1, vModelDynamic, Fragment, renderList, mergeProps, withKeys, withModifiers, pushScopeId, popScopeId, vModelRadio, vModelSelect, vModelCheckbox, vModelText } from "vue";
20
+ import { defineComponent, ref, computed as computed$2, openBlock, createElementBlock, normalizeClass, unref as unref$1, createElementVNode, renderSlot, createCommentVNode, normalizeStyle, watch, h, createBlock, Teleport, createVNode, createTextVNode, toDisplayString, withCtx, onMounted, nextTick as nextTick$1, onBeforeUnmount, getCurrentInstance, withDirectives, isRef as isRef$1, vModelDynamic, Fragment, renderList, mergeProps, withKeys, withModifiers, pushScopeId, popScopeId, vModelRadio, vModelSelect, vModelCheckbox, vModelText } from "vue";
21
21
  var defaultCleekOptions = {
22
22
  colors: {
23
23
  primary: "#559933",
@@ -38,15 +38,23 @@ var _export_sfc = (sfc, props) => {
38
38
  }
39
39
  return target;
40
40
  };
41
- const _hoisted_1$k = { class: "ck-dropdown" };
41
+ const _hoisted_1$k = { class: "ck-dropdown__popper-container" };
42
42
  const _sfc_main$o = /* @__PURE__ */ defineComponent({
43
43
  props: {
44
44
  triggerType: { type: String, default: "click" },
45
- dark: { type: Boolean, default: false }
45
+ dark: { type: Boolean, default: false },
46
+ align: { type: String, default: void 0 }
46
47
  },
47
48
  setup(__props) {
49
+ const props = __props;
48
50
  const isOpen = ref(false);
49
51
  const popperRef = ref(null);
52
+ const computedClass = computed$2(() => {
53
+ const list = [];
54
+ if (props.align)
55
+ list.push(`align-${props.align}`);
56
+ return list;
57
+ });
50
58
  function openClose() {
51
59
  if (isOpen.value)
52
60
  return;
@@ -61,29 +69,33 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
61
69
  isOpen.value = true;
62
70
  }
63
71
  return (_ctx, _cache) => {
64
- return openBlock(), createElementBlock("div", _hoisted_1$k, [
72
+ return openBlock(), createElementBlock("div", {
73
+ class: normalizeClass(["ck-dropdown", unref$1(computedClass)])
74
+ }, [
65
75
  createElementVNode("div", {
66
76
  class: "ck-dropdown__trigger",
67
77
  onClick: _cache[0] || (_cache[0] = ($event) => openClose())
68
78
  }, [
69
79
  renderSlot(_ctx.$slots, "trigger", {}, void 0, true)
70
80
  ]),
71
- isOpen.value ? (openBlock(), createElementBlock("section", {
72
- key: 0,
73
- class: normalizeClass(["ck-dropdown__popper", { "ck-dropdown__popper--dark": __props.dark }]),
74
- ref_key: "popperRef",
75
- ref: popperRef
76
- }, [
77
- createElementVNode("div", {
78
- class: normalizeClass(["ck-dropdown__popper--arrow", { "ck-dropdown__popper--arrow--dark": __props.dark }])
79
- }, null, 2),
80
- renderSlot(_ctx.$slots, "popper", {}, void 0, true)
81
- ], 2)) : createCommentVNode("", true)
82
- ]);
81
+ createElementVNode("div", _hoisted_1$k, [
82
+ isOpen.value ? (openBlock(), createElementBlock("section", {
83
+ key: 0,
84
+ class: normalizeClass(["ck-dropdown__popper", { "ck-dropdown__popper--dark": __props.dark }]),
85
+ ref_key: "popperRef",
86
+ ref: popperRef
87
+ }, [
88
+ createElementVNode("div", {
89
+ class: normalizeClass(["ck-dropdown__popper--arrow", { "ck-dropdown__popper--arrow--dark": __props.dark }])
90
+ }, null, 2),
91
+ renderSlot(_ctx.$slots, "popper", {}, void 0, true)
92
+ ], 2)) : createCommentVNode("", true)
93
+ ])
94
+ ], 2);
83
95
  };
84
96
  }
85
97
  });
86
- var ckDropdown = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-64a91fb4"]]);
98
+ var ckDropdown = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-2120e680"]]);
87
99
  var ckNavbar_vue_vue_type_style_index_0_scoped_true_lang = "";
88
100
  const _sfc_main$n = /* @__PURE__ */ defineComponent({
89
101
  props: {
@@ -16931,7 +16943,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
16931
16943
  });
16932
16944
  const itemsPerPageEnd = computed$2(() => {
16933
16945
  const value = props.currentPage * props.itemsPerPage;
16934
- if (!itemsPerPage || value > props.listLength)
16946
+ if (!props.itemsPerPage || value > props.listLength)
16935
16947
  return props.listLength;
16936
16948
  return value;
16937
16949
  });
@@ -16993,7 +17005,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
16993
17005
  };
16994
17006
  }
16995
17007
  });
16996
- var TableHeaderItems = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-eb24f80e"]]);
17008
+ var TableHeaderItems = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-cf4f130a"]]);
16997
17009
  var ckTable__pagination_vue_vue_type_style_index_0_scoped_true_lang = "";
16998
17010
  const _hoisted_1$c = { class: "ck-table__pagination" };
16999
17011
  const _hoisted_2$7 = ["onClick"];