cleek 2.4.37 → 2.4.38

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
@@ -2340,7 +2340,7 @@ const _hoisted_2$1$1 = {
2340
2340
  };
2341
2341
  const _hoisted_3$8 = /* @__PURE__ */ createElementVNode("div", { class: "v-popper__arrow-outer" }, null, -1);
2342
2342
  const _hoisted_4$7 = /* @__PURE__ */ createElementVNode("div", { class: "v-popper__arrow-inner" }, null, -1);
2343
- const _hoisted_5$3 = [
2343
+ const _hoisted_5$4 = [
2344
2344
  _hoisted_3$8,
2345
2345
  _hoisted_4$7
2346
2346
  ];
@@ -2401,7 +2401,7 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
2401
2401
  left: _ctx.toPx(_ctx.result.arrow.x),
2402
2402
  top: _ctx.toPx(_ctx.result.arrow.y)
2403
2403
  } : void 0)
2404
- }, _hoisted_5$3, 4)
2404
+ }, _hoisted_5$4, 4)
2405
2405
  ], 4)
2406
2406
  ], 46, _hoisted_1$1$1);
2407
2407
  }
@@ -21296,8 +21296,9 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
21296
21296
  type: "flat",
21297
21297
  icon: "rotate-right",
21298
21298
  title: "Recargar lista",
21299
+ layout: __props.layout,
21299
21300
  onClick: _cache[0] || (_cache[0] = ($event) => emits("refreshList", false))
21300
- })) : createCommentVNode("", true),
21301
+ }, null, 8, ["layout"])) : createCommentVNode("", true),
21301
21302
  unref$1(itemsPerPageIsVisible) ? (openBlock(), createElementBlock("div", {
21302
21303
  key: 1,
21303
21304
  class: normalizeClass(["items-per-page", { "ck-component__group--left": !unref$1(hideSearch) }])
@@ -21309,27 +21310,32 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
21309
21310
  icon: "magnifying-glass",
21310
21311
  placeholder: "Buscar...",
21311
21312
  group: unref$1(searchGroupValue),
21313
+ layout: __props.layout,
21312
21314
  onInput: _cache[2] || (_cache[2] = ($event) => checkRefresh())
21313
- }, null, 8, ["modelValue", "group"])) : createCommentVNode("", true),
21315
+ }, null, 8, ["modelValue", "group", "layout"])) : createCommentVNode("", true),
21314
21316
  __props.hasColumnsManager ? (openBlock(), createBlock(CkButton, {
21315
21317
  key: 3,
21316
21318
  icon: "columns",
21317
21319
  type: "filled",
21318
21320
  title: "Administrador de columnas",
21319
21321
  group: unref$1(itemsPerPageIsVisible) || !unref$1(hideSearch) ? "right" : "",
21322
+ layout: __props.layout,
21320
21323
  onClick: _cache[3] || (_cache[3] = ($event) => emits("openColumnsManager"))
21321
- }, null, 8, ["group"])) : createCommentVNode("", true)
21324
+ }, null, 8, ["group", "layout"])) : createCommentVNode("", true)
21322
21325
  ], 64)) : createCommentVNode("", true)
21323
21326
  ], 2);
21324
21327
  };
21325
21328
  }
21326
21329
  });
21327
- var TableHeaderItems = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-3ede608c"]]);
21330
+ var TableHeaderItems = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-af0d0550"]]);
21328
21331
  var ckTable__pagination_vue_vue_type_style_index_0_scoped_true_lang = "";
21332
+ const _withScopeId$4 = (n) => (pushScopeId("data-v-78fe58de"), n = n(), popScopeId(), n);
21329
21333
  const _hoisted_1$e = { class: "ck-table__pagination" };
21330
21334
  const _hoisted_2$a = { class: "ck-table__pagination--numbers-container" };
21331
21335
  const _hoisted_3$7 = ["onClick"];
21332
- const _hoisted_4$6 = ["onClick"];
21336
+ const _hoisted_4$6 = { class: "ck-table__pagination-input-container" };
21337
+ const _hoisted_5$3 = /* @__PURE__ */ _withScopeId$4(() => /* @__PURE__ */ createElementVNode("div", { class: "ck-table__pagination--input-pointer" }, null, -1));
21338
+ const _hoisted_6$3 = ["onClick"];
21333
21339
  const _sfc_main$f = /* @__PURE__ */ defineComponent({
21334
21340
  props: {
21335
21341
  currentPage: null,
@@ -21347,19 +21353,14 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
21347
21353
  get() {
21348
21354
  return props.currentPage;
21349
21355
  },
21350
- set(val) {
21351
- validateInputNumber(val);
21356
+ set() {
21352
21357
  }
21353
21358
  });
21354
21359
  const hasArrowLeft = computed$2(() => {
21355
- if (!listLeft.value.length)
21356
- return false;
21357
- return listLeft.value[0] !== 1;
21360
+ return props.currentPage !== 1;
21358
21361
  });
21359
21362
  const hasArrowRight = computed$2(() => {
21360
- if (!listRight.value.length)
21361
- return false;
21362
- return listRight.value[listRight.value.length - 1] !== totalPages.value;
21363
+ return props.currentPage !== listRight.value[listRight.value.length - 1];
21363
21364
  });
21364
21365
  const totalPages = computed$2(() => {
21365
21366
  return Math.ceil(props.listLength / props.itemsPerPage);
@@ -21406,6 +21407,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
21406
21407
  emits("refreshList");
21407
21408
  }
21408
21409
  function validateInputNumber(val) {
21410
+ console.log("valido", val);
21409
21411
  val = +val;
21410
21412
  if (val > totalPages.value)
21411
21413
  val = totalPages.value;
@@ -21442,23 +21444,28 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
21442
21444
  onClick: ($event) => updateCurrentPage(num)
21443
21445
  }, toDisplayString(num), 9, _hoisted_3$7);
21444
21446
  }), 256)),
21445
- withDirectives(createElementVNode("input", {
21446
- class: "ck-table__pagination-input",
21447
- type: "number",
21448
- "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isRef$1(currentPageLocal) ? currentPageLocal.value = $event : null)
21449
- }, null, 512), [
21450
- [vModelText, unref$1(currentPageLocal)]
21447
+ createElementVNode("div", _hoisted_4$6, [
21448
+ withDirectives(createElementVNode("input", {
21449
+ class: "ck-table__pagination-input",
21450
+ type: "number",
21451
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isRef$1(currentPageLocal) ? currentPageLocal.value = $event : null),
21452
+ onClick: _cache[2] || (_cache[2] = ($event) => $event.target.select()),
21453
+ onChange: _cache[3] || (_cache[3] = ($event) => validateInputNumber($event.target.value))
21454
+ }, null, 544), [
21455
+ [vModelText, unref$1(currentPageLocal)]
21456
+ ]),
21457
+ _hoisted_5$3
21451
21458
  ]),
21452
21459
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref$1(listRight), (num) => {
21453
21460
  return openBlock(), createElementBlock("div", {
21454
21461
  class: "ck-table__pagination-item--right",
21455
21462
  onClick: ($event) => updateCurrentPage(num)
21456
- }, toDisplayString(num), 9, _hoisted_4$6);
21463
+ }, toDisplayString(num), 9, _hoisted_6$3);
21457
21464
  }), 256))
21458
21465
  ]),
21459
21466
  createElementVNode("div", {
21460
21467
  class: normalizeClass(["ck-table__pagination--arrow-right", { disabled: !unref$1(hasArrowRight) }]),
21461
- onClick: _cache[2] || (_cache[2] = ($event) => updateCurrentPage(__props.currentPage + 1, unref$1(hasArrowRight)))
21468
+ onClick: _cache[4] || (_cache[4] = ($event) => updateCurrentPage(__props.currentPage + 1, unref$1(hasArrowRight)))
21462
21469
  }, [
21463
21470
  createVNode(CkIcon, {
21464
21471
  icon: unref$1(hasArrowRight) ? "angle-right" : "grip-lines-vertical"
@@ -21469,7 +21476,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
21469
21476
  };
21470
21477
  }
21471
21478
  });
21472
- var TablePagination = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-079c5d65"]]);
21479
+ var TablePagination = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-78fe58de"]]);
21473
21480
  const EMPTY_OBJ = {};
21474
21481
  const NOOP = () => {
21475
21482
  };